@0xsequence/api
Advanced tools
Comparing version 0.31.0 to 0.33.1
# @0xsequence/api | ||
## 0.33.1 | ||
### Patch Changes | ||
- update bindings | ||
## 0.31.0 | ||
@@ -4,0 +10,0 @@ |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 9145ebfd73f30f454c1622e1eb6a549d08cbe972 | ||
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39 | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "9145ebfd73f30f454c1622e1eb6a549d08cbe972"; // | ||
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; // | ||
// Types | ||
@@ -258,2 +258,12 @@ // | ||
this.getMoonpayLink = (args, headers) => { | ||
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
signedUrl: _data.signedUrl | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
@@ -260,0 +270,0 @@ return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 9145ebfd73f30f454c1622e1eb6a549d08cbe972 | ||
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39 | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "9145ebfd73f30f454c1622e1eb6a549d08cbe972"; // | ||
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; // | ||
// Types | ||
@@ -258,2 +258,12 @@ // | ||
this.getMoonpayLink = (args, headers) => { | ||
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
signedUrl: _data.signedUrl | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
@@ -260,0 +270,0 @@ return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { |
@@ -22,3 +22,3 @@ import fetch from 'cross-fetch'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 9145ebfd73f30f454c1622e1eb6a549d08cbe972 | ||
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39 | ||
// -- | ||
@@ -32,3 +32,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "9145ebfd73f30f454c1622e1eb6a549d08cbe972"; // | ||
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; // | ||
// Types | ||
@@ -250,2 +250,12 @@ // | ||
this.getMoonpayLink = (args, headers) => { | ||
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
signedUrl: _data.signedUrl | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
@@ -252,0 +262,0 @@ return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "9145ebfd73f30f454c1622e1eb6a549d08cbe972"; | ||
export declare const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; | ||
export declare enum SortOrder { | ||
@@ -135,2 +135,3 @@ DESC = "DESC", | ||
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>; | ||
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>; | ||
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>; | ||
@@ -271,2 +272,8 @@ getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>; | ||
} | ||
export interface GetMoonpayLinkArgs { | ||
url: string; | ||
} | ||
export interface GetMoonpayLinkReturn { | ||
signedUrl: string; | ||
} | ||
export interface IsUsingGoogleMailArgs { | ||
@@ -328,2 +335,3 @@ domain: string; | ||
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>; | ||
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>; | ||
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>; | ||
@@ -330,0 +338,0 @@ getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>; |
{ | ||
"name": "@0xsequence/api", | ||
"version": "0.31.0", | ||
"version": "0.33.1", | ||
"description": "api sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api", |
/* eslint-disable */ | ||
// sequence-api v0.4.0 9145ebfd73f30f454c1622e1eb6a549d08cbe972 | ||
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39 | ||
// -- | ||
@@ -14,3 +14,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
// Schema hash generated from your RIDL schema | ||
export const WebRPCSchemaHash = "9145ebfd73f30f454c1622e1eb6a549d08cbe972" | ||
export const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39" | ||
@@ -174,2 +174,3 @@ | ||
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn> | ||
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn> | ||
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> | ||
@@ -328,2 +329,9 @@ getInviteInfo(headers?: object): Promise<GetInviteInfoReturn> | ||
} | ||
export interface GetMoonpayLinkArgs { | ||
url: string | ||
} | ||
export interface GetMoonpayLinkReturn { | ||
signedUrl: string | ||
} | ||
export interface IsUsingGoogleMailArgs { | ||
@@ -624,2 +632,14 @@ domain: string | ||
getMoonpayLink = (args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn> => { | ||
return this.fetch( | ||
this.url('GetMoonpayLink'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
signedUrl: <string>(_data.signedUrl) | ||
} | ||
}) | ||
}) | ||
} | ||
isUsingGoogleMail = (args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> => { | ||
@@ -626,0 +646,0 @@ return this.fetch( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68843
2009