@0xsequence/api 0.0.0-20220519151110 → 0.0.0-20220609204505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -303,47 +303,6 @@ class API {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
this.listPayCardsOnFile = headers => {
|
|
307
|
-
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
308
|
-
return buildResponse(res).then(_data => {
|
|
309
|
-
return {
|
|
310
|
-
payCards: _data.payCards
|
|
311
|
-
};
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
this.savePayCard = (args, headers) => {
|
|
317
|
-
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
-
return buildResponse(res).then(_data => {
|
|
319
|
-
return {
|
|
320
|
-
ok: _data.ok,
|
|
321
|
-
payCard: _data.payCard
|
|
322
|
-
};
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
this.deletePayCard = (args, headers) => {
|
|
328
|
-
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
329
|
-
return buildResponse(res).then(_data => {
|
|
330
|
-
return {
|
|
331
|
-
ok: _data.ok
|
|
332
|
-
};
|
|
333
|
-
});
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
this.smartRampPurchase = (args, headers) => {
|
|
338
|
-
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
339
|
-
return buildResponse(res).then(_data => {
|
|
340
|
-
return {
|
|
341
|
-
status: _data.status
|
|
342
|
-
};
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
};
|
|
346
|
-
|
|
347
306
|
this.getInviteInfo = headers => {
|
|
348
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
349
308
|
return buildResponse(res).then(_data => {
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -303,47 +303,6 @@ class API {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
this.listPayCardsOnFile = headers => {
|
|
307
|
-
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
308
|
-
return buildResponse(res).then(_data => {
|
|
309
|
-
return {
|
|
310
|
-
payCards: _data.payCards
|
|
311
|
-
};
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
this.savePayCard = (args, headers) => {
|
|
317
|
-
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
-
return buildResponse(res).then(_data => {
|
|
319
|
-
return {
|
|
320
|
-
ok: _data.ok,
|
|
321
|
-
payCard: _data.payCard
|
|
322
|
-
};
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
this.deletePayCard = (args, headers) => {
|
|
328
|
-
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
329
|
-
return buildResponse(res).then(_data => {
|
|
330
|
-
return {
|
|
331
|
-
ok: _data.ok
|
|
332
|
-
};
|
|
333
|
-
});
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
this.smartRampPurchase = (args, headers) => {
|
|
338
|
-
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
339
|
-
return buildResponse(res).then(_data => {
|
|
340
|
-
return {
|
|
341
|
-
status: _data.status
|
|
342
|
-
};
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
};
|
|
346
|
-
|
|
347
306
|
this.getInviteInfo = headers => {
|
|
348
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
349
308
|
return buildResponse(res).then(_data => {
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-api v0.4.0
|
|
22
|
+
// sequence-api v0.4.0 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -295,47 +295,6 @@ class API {
|
|
|
295
295
|
});
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
this.listPayCardsOnFile = headers => {
|
|
299
|
-
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
300
|
-
return buildResponse(res).then(_data => {
|
|
301
|
-
return {
|
|
302
|
-
payCards: _data.payCards
|
|
303
|
-
};
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
this.savePayCard = (args, headers) => {
|
|
309
|
-
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
310
|
-
return buildResponse(res).then(_data => {
|
|
311
|
-
return {
|
|
312
|
-
ok: _data.ok,
|
|
313
|
-
payCard: _data.payCard
|
|
314
|
-
};
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
this.deletePayCard = (args, headers) => {
|
|
320
|
-
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
321
|
-
return buildResponse(res).then(_data => {
|
|
322
|
-
return {
|
|
323
|
-
ok: _data.ok
|
|
324
|
-
};
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
this.smartRampPurchase = (args, headers) => {
|
|
330
|
-
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
331
|
-
return buildResponse(res).then(_data => {
|
|
332
|
-
return {
|
|
333
|
-
status: _data.status
|
|
334
|
-
};
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
|
|
339
298
|
this.getInviteInfo = headers => {
|
|
340
299
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
341
300
|
return buildResponse(res).then(_data => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "4d2479b7b4da1f3902a2593f729835aa16931146";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -137,19 +137,6 @@ export interface ExchangeRate {
|
|
|
137
137
|
vsCurrency: string;
|
|
138
138
|
currencyType: string;
|
|
139
139
|
}
|
|
140
|
-
export interface PayCard {
|
|
141
|
-
id: number;
|
|
142
|
-
userAddress: string;
|
|
143
|
-
cardType: string;
|
|
144
|
-
cardHolder: string;
|
|
145
|
-
cardNumberLastFourDigits: string;
|
|
146
|
-
cardNumberToken: string;
|
|
147
|
-
cardCVCToken: string;
|
|
148
|
-
cardExpMonth: number;
|
|
149
|
-
cardExpYear: number;
|
|
150
|
-
updatedAt?: string;
|
|
151
|
-
createdAt?: string;
|
|
152
|
-
}
|
|
153
140
|
export interface API {
|
|
154
141
|
ping(headers?: object): Promise<PingReturn>;
|
|
155
142
|
version(headers?: object): Promise<VersionReturn>;
|
|
@@ -175,10 +162,6 @@ export interface API {
|
|
|
175
162
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>;
|
|
176
163
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
177
164
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
178
|
-
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>;
|
|
179
|
-
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>;
|
|
180
|
-
deletePayCard(args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn>;
|
|
181
|
-
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>;
|
|
182
165
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
183
166
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
184
167
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -343,31 +326,6 @@ export interface GetExchangeRateArgs {
|
|
|
343
326
|
export interface GetExchangeRateReturn {
|
|
344
327
|
exchangeRate: ExchangeRate;
|
|
345
328
|
}
|
|
346
|
-
export interface ListPayCardsOnFileArgs {
|
|
347
|
-
}
|
|
348
|
-
export interface ListPayCardsOnFileReturn {
|
|
349
|
-
payCards: Array<PayCard>;
|
|
350
|
-
}
|
|
351
|
-
export interface SavePayCardArgs {
|
|
352
|
-
payCard: PayCard;
|
|
353
|
-
}
|
|
354
|
-
export interface SavePayCardReturn {
|
|
355
|
-
ok: boolean;
|
|
356
|
-
payCard: PayCard;
|
|
357
|
-
}
|
|
358
|
-
export interface DeletePayCardArgs {
|
|
359
|
-
payCardId: number;
|
|
360
|
-
}
|
|
361
|
-
export interface DeletePayCardReturn {
|
|
362
|
-
ok: boolean;
|
|
363
|
-
}
|
|
364
|
-
export interface SmartRampPurchaseArgs {
|
|
365
|
-
payCardId: number;
|
|
366
|
-
payload: any;
|
|
367
|
-
}
|
|
368
|
-
export interface SmartRampPurchaseReturn {
|
|
369
|
-
status: boolean;
|
|
370
|
-
}
|
|
371
329
|
export interface GetInviteInfoArgs {
|
|
372
330
|
}
|
|
373
331
|
export interface GetInviteInfoReturn {
|
|
@@ -423,10 +381,6 @@ export declare class API implements API {
|
|
|
423
381
|
getCoinPrices: (args: GetCoinPricesArgs, headers?: object | undefined) => Promise<GetCoinPricesReturn>;
|
|
424
382
|
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
425
383
|
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
426
|
-
listPayCardsOnFile: (headers?: object | undefined) => Promise<ListPayCardsOnFileReturn>;
|
|
427
|
-
savePayCard: (args: SavePayCardArgs, headers?: object | undefined) => Promise<SavePayCardReturn>;
|
|
428
|
-
deletePayCard: (args: DeletePayCardArgs, headers?: object | undefined) => Promise<DeletePayCardReturn>;
|
|
429
|
-
smartRampPurchase: (args: SmartRampPurchaseArgs, headers?: object | undefined) => Promise<SmartRampPurchaseReturn>;
|
|
430
384
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
431
385
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
432
386
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "4d2479b7b4da1f3902a2593f729835aa16931146"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -179,20 +179,6 @@ export interface ExchangeRate {
|
|
|
179
179
|
currencyType: string
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export interface PayCard {
|
|
183
|
-
id: number
|
|
184
|
-
userAddress: string
|
|
185
|
-
cardType: string
|
|
186
|
-
cardHolder: string
|
|
187
|
-
cardNumberLastFourDigits: string
|
|
188
|
-
cardNumberToken: string
|
|
189
|
-
cardCVCToken: string
|
|
190
|
-
cardExpMonth: number
|
|
191
|
-
cardExpYear: number
|
|
192
|
-
updatedAt?: string
|
|
193
|
-
createdAt?: string
|
|
194
|
-
}
|
|
195
|
-
|
|
196
182
|
export interface API {
|
|
197
183
|
ping(headers?: object): Promise<PingReturn>
|
|
198
184
|
version(headers?: object): Promise<VersionReturn>
|
|
@@ -218,10 +204,6 @@ export interface API {
|
|
|
218
204
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>
|
|
219
205
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
220
206
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
221
|
-
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>
|
|
222
|
-
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>
|
|
223
|
-
deletePayCard(args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn>
|
|
224
|
-
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>
|
|
225
207
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
226
208
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
227
209
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -409,35 +391,6 @@ export interface GetExchangeRateArgs {
|
|
|
409
391
|
export interface GetExchangeRateReturn {
|
|
410
392
|
exchangeRate: ExchangeRate
|
|
411
393
|
}
|
|
412
|
-
export interface ListPayCardsOnFileArgs {
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export interface ListPayCardsOnFileReturn {
|
|
416
|
-
payCards: Array<PayCard>
|
|
417
|
-
}
|
|
418
|
-
export interface SavePayCardArgs {
|
|
419
|
-
payCard: PayCard
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export interface SavePayCardReturn {
|
|
423
|
-
ok: boolean
|
|
424
|
-
payCard: PayCard
|
|
425
|
-
}
|
|
426
|
-
export interface DeletePayCardArgs {
|
|
427
|
-
payCardId: number
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
export interface DeletePayCardReturn {
|
|
431
|
-
ok: boolean
|
|
432
|
-
}
|
|
433
|
-
export interface SmartRampPurchaseArgs {
|
|
434
|
-
payCardId: number
|
|
435
|
-
payload: any
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export interface SmartRampPurchaseReturn {
|
|
439
|
-
status: boolean
|
|
440
|
-
}
|
|
441
394
|
export interface GetInviteInfoArgs {
|
|
442
395
|
}
|
|
443
396
|
|
|
@@ -786,56 +739,6 @@ export class API implements API {
|
|
|
786
739
|
})
|
|
787
740
|
}
|
|
788
741
|
|
|
789
|
-
listPayCardsOnFile = (headers?: object): Promise<ListPayCardsOnFileReturn> => {
|
|
790
|
-
return this.fetch(
|
|
791
|
-
this.url('ListPayCardsOnFile'),
|
|
792
|
-
createHTTPRequest({}, headers)
|
|
793
|
-
).then((res) => {
|
|
794
|
-
return buildResponse(res).then(_data => {
|
|
795
|
-
return {
|
|
796
|
-
payCards: <Array<PayCard>>(_data.payCards)
|
|
797
|
-
}
|
|
798
|
-
})
|
|
799
|
-
})
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
savePayCard = (args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn> => {
|
|
803
|
-
return this.fetch(
|
|
804
|
-
this.url('SavePayCard'),
|
|
805
|
-
createHTTPRequest(args, headers)).then((res) => {
|
|
806
|
-
return buildResponse(res).then(_data => {
|
|
807
|
-
return {
|
|
808
|
-
ok: <boolean>(_data.ok),
|
|
809
|
-
payCard: <PayCard>(_data.payCard)
|
|
810
|
-
}
|
|
811
|
-
})
|
|
812
|
-
})
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
deletePayCard = (args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn> => {
|
|
816
|
-
return this.fetch(
|
|
817
|
-
this.url('DeletePayCard'),
|
|
818
|
-
createHTTPRequest(args, headers)).then((res) => {
|
|
819
|
-
return buildResponse(res).then(_data => {
|
|
820
|
-
return {
|
|
821
|
-
ok: <boolean>(_data.ok)
|
|
822
|
-
}
|
|
823
|
-
})
|
|
824
|
-
})
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
smartRampPurchase = (args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn> => {
|
|
828
|
-
return this.fetch(
|
|
829
|
-
this.url('SmartRampPurchase'),
|
|
830
|
-
createHTTPRequest(args, headers)).then((res) => {
|
|
831
|
-
return buildResponse(res).then(_data => {
|
|
832
|
-
return {
|
|
833
|
-
status: <boolean>(_data.status)
|
|
834
|
-
}
|
|
835
|
-
})
|
|
836
|
-
})
|
|
837
|
-
}
|
|
838
|
-
|
|
839
742
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
840
743
|
return this.fetch(
|
|
841
744
|
this.url('GetInviteInfo'),
|