@0xsequence/api
Advanced tools
Comparing version
# @0xsequence/api | ||
## 0.29.1 | ||
### Patch Changes | ||
- metadata: ContractInfo.decimals is now optional, i.e. may be undefined | ||
api: new APIs for user storage and isUsingGoogleMail | ||
## 0.29.0 | ||
@@ -4,0 +12,0 @@ |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 8e3575e965dc76a152d48e0b6660271db4d0c5be | ||
// sequence-api v0.4.0 8f5775dd706f634b662229affe41cb0d945ae8cb | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "8e3575e965dc76a152d48e0b6660271db4d0c5be"; // | ||
const WebRPCSchemaHash = "8f5775dd706f634b662229affe41cb0d945ae8cb"; // | ||
// Types | ||
@@ -208,2 +208,52 @@ // | ||
this.userStorageFetch = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
object: _data.object | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageSave = (args, headers) => { | ||
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageDelete = (args, headers) => { | ||
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageFetchAll = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
objects: _data.objects | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
yes: _data.yes | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.getInviteInfo = headers => { | ||
@@ -210,0 +260,0 @@ return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => { |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 8e3575e965dc76a152d48e0b6660271db4d0c5be | ||
// sequence-api v0.4.0 8f5775dd706f634b662229affe41cb0d945ae8cb | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "8e3575e965dc76a152d48e0b6660271db4d0c5be"; // | ||
const WebRPCSchemaHash = "8f5775dd706f634b662229affe41cb0d945ae8cb"; // | ||
// Types | ||
@@ -208,2 +208,52 @@ // | ||
this.userStorageFetch = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
object: _data.object | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageSave = (args, headers) => { | ||
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageDelete = (args, headers) => { | ||
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageFetchAll = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
objects: _data.objects | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
yes: _data.yes | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.getInviteInfo = headers => { | ||
@@ -210,0 +260,0 @@ return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => { |
@@ -22,3 +22,3 @@ import fetch from 'cross-fetch'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 8e3575e965dc76a152d48e0b6660271db4d0c5be | ||
// sequence-api v0.4.0 8f5775dd706f634b662229affe41cb0d945ae8cb | ||
// -- | ||
@@ -32,3 +32,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "8e3575e965dc76a152d48e0b6660271db4d0c5be"; // | ||
const WebRPCSchemaHash = "8f5775dd706f634b662229affe41cb0d945ae8cb"; // | ||
// Types | ||
@@ -200,2 +200,52 @@ // | ||
this.userStorageFetch = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
object: _data.object | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageSave = (args, headers) => { | ||
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageDelete = (args, headers) => { | ||
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.userStorageFetchAll = (args, headers) => { | ||
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
objects: _data.objects | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.isUsingGoogleMail = (args, headers) => { | ||
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
yes: _data.yes | ||
}; | ||
}); | ||
}); | ||
}; | ||
this.getInviteInfo = headers => { | ||
@@ -202,0 +252,0 @@ return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => { |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "8e3575e965dc76a152d48e0b6660271db4d0c5be"; | ||
export declare const WebRPCSchemaHash = "8f5775dd706f634b662229affe41cb0d945ae8cb"; | ||
export declare enum SortOrder { | ||
@@ -97,2 +97,7 @@ DESC = "DESC", | ||
} | ||
export interface UserStorage { | ||
userAddress: string; | ||
key: string; | ||
value: any; | ||
} | ||
export interface Page { | ||
@@ -126,2 +131,7 @@ pageSize?: number; | ||
lookupContractCallSelectors(args: LookupContractCallSelectorsArgs, headers?: object): Promise<LookupContractCallSelectorsReturn>; | ||
userStorageFetch(args: UserStorageFetchArgs, headers?: object): Promise<UserStorageFetchReturn>; | ||
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>; | ||
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>; | ||
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>; | ||
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>; | ||
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>; | ||
@@ -224,2 +234,35 @@ internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>; | ||
} | ||
export interface UserStorageFetchArgs { | ||
key: string; | ||
} | ||
export interface UserStorageFetchReturn { | ||
object: any; | ||
} | ||
export interface UserStorageSaveArgs { | ||
key: string; | ||
object: any; | ||
} | ||
export interface UserStorageSaveReturn { | ||
ok: boolean; | ||
} | ||
export interface UserStorageDeleteArgs { | ||
key: string; | ||
} | ||
export interface UserStorageDeleteReturn { | ||
ok: boolean; | ||
} | ||
export interface UserStorageFetchAllArgs { | ||
keys?: Array<string>; | ||
} | ||
export interface UserStorageFetchAllReturn { | ||
objects: { | ||
[key: string]: any; | ||
}; | ||
} | ||
export interface IsUsingGoogleMailArgs { | ||
domain: string; | ||
} | ||
export interface IsUsingGoogleMailReturn { | ||
yes: boolean; | ||
} | ||
export interface GetInviteInfoArgs { | ||
@@ -264,2 +307,7 @@ } | ||
lookupContractCallSelectors: (args: LookupContractCallSelectorsArgs, headers?: object | undefined) => Promise<LookupContractCallSelectorsReturn>; | ||
userStorageFetch: (args: UserStorageFetchArgs, headers?: object | undefined) => Promise<UserStorageFetchReturn>; | ||
userStorageSave: (args: UserStorageSaveArgs, headers?: object | undefined) => Promise<UserStorageSaveReturn>; | ||
userStorageDelete: (args: UserStorageDeleteArgs, headers?: object | undefined) => Promise<UserStorageDeleteReturn>; | ||
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>; | ||
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>; | ||
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>; | ||
@@ -266,0 +314,0 @@ internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>; |
{ | ||
"name": "@0xsequence/api", | ||
"version": "0.29.0", | ||
"version": "0.29.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 8e3575e965dc76a152d48e0b6660271db4d0c5be | ||
// sequence-api v0.4.0 8f5775dd706f634b662229affe41cb0d945ae8cb | ||
// -- | ||
@@ -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 = "8e3575e965dc76a152d48e0b6660271db4d0c5be" | ||
export const WebRPCSchemaHash = "8f5775dd706f634b662229affe41cb0d945ae8cb" | ||
@@ -133,2 +133,8 @@ | ||
export interface UserStorage { | ||
userAddress: string | ||
key: string | ||
value: any | ||
} | ||
export interface Page { | ||
@@ -164,2 +170,7 @@ pageSize?: number | ||
lookupContractCallSelectors(args: LookupContractCallSelectorsArgs, headers?: object): Promise<LookupContractCallSelectorsReturn> | ||
userStorageFetch(args: UserStorageFetchArgs, headers?: object): Promise<UserStorageFetchReturn> | ||
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn> | ||
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn> | ||
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn> | ||
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> | ||
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn> | ||
@@ -277,2 +288,38 @@ internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn> | ||
} | ||
export interface UserStorageFetchArgs { | ||
key: string | ||
} | ||
export interface UserStorageFetchReturn { | ||
object: any | ||
} | ||
export interface UserStorageSaveArgs { | ||
key: string | ||
object: any | ||
} | ||
export interface UserStorageSaveReturn { | ||
ok: boolean | ||
} | ||
export interface UserStorageDeleteArgs { | ||
key: string | ||
} | ||
export interface UserStorageDeleteReturn { | ||
ok: boolean | ||
} | ||
export interface UserStorageFetchAllArgs { | ||
keys?: Array<string> | ||
} | ||
export interface UserStorageFetchAllReturn { | ||
objects: {[key: string]: any} | ||
} | ||
export interface IsUsingGoogleMailArgs { | ||
domain: string | ||
} | ||
export interface IsUsingGoogleMailReturn { | ||
yes: boolean | ||
} | ||
export interface GetInviteInfoArgs { | ||
@@ -499,2 +546,62 @@ } | ||
userStorageFetch = (args: UserStorageFetchArgs, headers?: object): Promise<UserStorageFetchReturn> => { | ||
return this.fetch( | ||
this.url('UserStorageFetch'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
object: <any>(_data.object) | ||
} | ||
}) | ||
}) | ||
} | ||
userStorageSave = (args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn> => { | ||
return this.fetch( | ||
this.url('UserStorageSave'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: <boolean>(_data.ok) | ||
} | ||
}) | ||
}) | ||
} | ||
userStorageDelete = (args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn> => { | ||
return this.fetch( | ||
this.url('UserStorageDelete'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: <boolean>(_data.ok) | ||
} | ||
}) | ||
}) | ||
} | ||
userStorageFetchAll = (args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn> => { | ||
return this.fetch( | ||
this.url('UserStorageFetchAll'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
objects: <{[key: string]: any}>(_data.objects) | ||
} | ||
}) | ||
}) | ||
} | ||
isUsingGoogleMail = (args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> => { | ||
return this.fetch( | ||
this.url('IsUsingGoogleMail'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
yes: <boolean>(_data.yes) | ||
} | ||
}) | ||
}) | ||
} | ||
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => { | ||
@@ -501,0 +608,0 @@ return this.fetch( |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62853
17.75%1844
17.83%7
-12.5%12
-7.69%