@0xsequence/api 2.3.11 → 2.3.13

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.
@@ -13,7 +13,7 @@ function _extends() {
13
13
  }
14
14
 
15
15
  /* eslint-disable */
16
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
16
+ // sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85
17
17
  // --
18
18
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
19
19
  //
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
29
29
  const WebRPCSchemaVersion = "v0.4.0";
30
30
 
31
31
  // Schema hash generated from your RIDL schema
32
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
32
+ const WebRPCSchemaHash = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85";
33
33
  function VersionFromHeader(headers) {
34
34
  const headerValue = headers.get(WebrpcHeader);
35
35
  if (!headerValue) {
@@ -1171,6 +1171,19 @@ class API {
1171
1171
  });
1172
1172
  });
1173
1173
  };
1174
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1175
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
+ return buildResponse(res).then(_data => {
1177
+ return {
1178
+ options: _data.options
1179
+ };
1180
+ });
1181
+ }, error => {
1182
+ throw WebrpcRequestFailedError.new({
1183
+ cause: `fetch(): ${error.message || ''}`
1184
+ });
1185
+ });
1186
+ };
1174
1187
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1175
1188
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
1189
  return buildResponse(res).then(_data => {
@@ -13,7 +13,7 @@ function _extends() {
13
13
  }
14
14
 
15
15
  /* eslint-disable */
16
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
16
+ // sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85
17
17
  // --
18
18
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
19
19
  //
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
29
29
  const WebRPCSchemaVersion = "v0.4.0";
30
30
 
31
31
  // Schema hash generated from your RIDL schema
32
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
32
+ const WebRPCSchemaHash = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85";
33
33
  function VersionFromHeader(headers) {
34
34
  const headerValue = headers.get(WebrpcHeader);
35
35
  if (!headerValue) {
@@ -1171,6 +1171,19 @@ class API {
1171
1171
  });
1172
1172
  });
1173
1173
  };
1174
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1175
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
+ return buildResponse(res).then(_data => {
1177
+ return {
1178
+ options: _data.options
1179
+ };
1180
+ });
1181
+ }, error => {
1182
+ throw WebrpcRequestFailedError.new({
1183
+ cause: `fetch(): ${error.message || ''}`
1184
+ });
1185
+ });
1186
+ };
1174
1187
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1175
1188
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
1189
  return buildResponse(res).then(_data => {
@@ -9,7 +9,7 @@ function _extends() {
9
9
  }
10
10
 
11
11
  /* eslint-disable */
12
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
12
+ // sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85
13
13
  // --
14
14
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
15
15
  //
@@ -25,7 +25,7 @@ const WebRPCVersion = "v1";
25
25
  const WebRPCSchemaVersion = "v0.4.0";
26
26
 
27
27
  // Schema hash generated from your RIDL schema
28
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
28
+ const WebRPCSchemaHash = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85";
29
29
  function VersionFromHeader(headers) {
30
30
  const headerValue = headers.get(WebrpcHeader);
31
31
  if (!headerValue) {
@@ -1167,6 +1167,19 @@ class API {
1167
1167
  });
1168
1168
  });
1169
1169
  };
1170
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1171
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1172
+ return buildResponse(res).then(_data => {
1173
+ return {
1174
+ options: _data.options
1175
+ };
1176
+ });
1177
+ }, error => {
1178
+ throw WebrpcRequestFailedError.new({
1179
+ cause: `fetch(): ${error.message || ''}`
1180
+ });
1181
+ });
1182
+ };
1170
1183
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1171
1184
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1172
1185
  return buildResponse(res).then(_data => {
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
2
2
  export declare const WebrpcHeaderValue = "webrpc@v0.25.3;gen-typescript@v0.17.0;sequence-api@v0.4.0";
3
3
  export declare const WebRPCVersion = "v1";
4
4
  export declare const WebRPCSchemaVersion = "v0.4.0";
5
- export declare const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
5
+ export declare const WebRPCSchemaHash = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85";
6
6
  type WebrpcGenVersions = {
7
7
  webrpcGenVersion: string;
8
8
  codeGenName: string;
@@ -601,7 +601,11 @@ export interface TransakChain {
601
601
  name: string;
602
602
  chainId: number;
603
603
  }
604
- export interface SecondaryCheckoutOptionsParams {
604
+ export interface CheckoutOptionsPrimaryParams {
605
+ quantity: string;
606
+ tokenId: string;
607
+ }
608
+ export interface CheckoutOptionsSecondaryParams {
605
609
  collectionAddress: string;
606
610
  marketplaceAddress: string;
607
611
  currencyAddress: string;
@@ -803,6 +807,7 @@ export interface API {
803
807
  getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>;
804
808
  deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>;
805
809
  updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>;
810
+ checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>;
806
811
  checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>;
807
812
  checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>;
808
813
  }
@@ -1337,10 +1342,20 @@ export interface UpdatePackContentArgs {
1337
1342
  export interface UpdatePackContentReturn {
1338
1343
  merkleRoot: string;
1339
1344
  }
1345
+ export interface CheckoutOptionsPrimaryArgs {
1346
+ chainId: number;
1347
+ wallet: string;
1348
+ contractAddress: string;
1349
+ collectionAddress: string;
1350
+ params: Array<CheckoutOptionsPrimaryParams>;
1351
+ }
1352
+ export interface CheckoutOptionsPrimaryReturn {
1353
+ options: CheckoutOptions;
1354
+ }
1340
1355
  export interface CheckoutOptionsSecondaryArgs {
1341
1356
  chainId: number;
1342
1357
  wallet: string;
1343
- params: Array<SecondaryCheckoutOptionsParams>;
1358
+ params: Array<CheckoutOptionsSecondaryParams>;
1344
1359
  }
1345
1360
  export interface CheckoutOptionsSecondaryReturn {
1346
1361
  options: CheckoutOptions;
@@ -1437,6 +1452,7 @@ export declare class API implements API {
1437
1452
  getPack: (args: GetPackArgs, headers?: object, signal?: AbortSignal) => Promise<GetPackReturn>;
1438
1453
  deletePack: (args: DeletePackArgs, headers?: object, signal?: AbortSignal) => Promise<DeletePackReturn>;
1439
1454
  updatePackContent: (args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal) => Promise<UpdatePackContentReturn>;
1455
+ checkoutOptionsPrimary: (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsPrimaryReturn>;
1440
1456
  checkoutOptionsSecondary: (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsSecondaryReturn>;
1441
1457
  checkoutOptionsGetTransakContractID: (args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsGetTransakContractIDReturn>;
1442
1458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/api",
3
- "version": "2.3.11",
3
+ "version": "2.3.13",
4
4
  "description": "api sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api",
6
6
  "source": "src/index.ts",
package/src/api.gen.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
2
+ // sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85
3
3
  // --
4
4
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
5
5
  //
@@ -16,7 +16,7 @@ export const WebRPCVersion = "v1"
16
16
  export const WebRPCSchemaVersion = "v0.4.0"
17
17
 
18
18
  // Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3"
19
+ export const WebRPCSchemaHash = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85"
20
20
 
21
21
  type WebrpcGenVersions = {
22
22
  webrpcGenVersion: string;
@@ -732,7 +732,12 @@ export interface TransakChain {
732
732
  chainId: number
733
733
  }
734
734
 
735
- export interface SecondaryCheckoutOptionsParams {
735
+ export interface CheckoutOptionsPrimaryParams {
736
+ quantity: string
737
+ tokenId: string
738
+ }
739
+
740
+ export interface CheckoutOptionsSecondaryParams {
736
741
  collectionAddress: string
737
742
  marketplaceAddress: string
738
743
  currencyAddress: string
@@ -936,6 +941,7 @@ export interface API {
936
941
  getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>
937
942
  deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>
938
943
  updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>
944
+ checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>
939
945
  checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>
940
946
  checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>
941
947
  }
@@ -1548,10 +1554,21 @@ export interface UpdatePackContentArgs {
1548
1554
  export interface UpdatePackContentReturn {
1549
1555
  merkleRoot: string
1550
1556
  }
1557
+ export interface CheckoutOptionsPrimaryArgs {
1558
+ chainId: number
1559
+ wallet: string
1560
+ contractAddress: string
1561
+ collectionAddress: string
1562
+ params: Array<CheckoutOptionsPrimaryParams>
1563
+ }
1564
+
1565
+ export interface CheckoutOptionsPrimaryReturn {
1566
+ options: CheckoutOptions
1567
+ }
1551
1568
  export interface CheckoutOptionsSecondaryArgs {
1552
1569
  chainId: number
1553
1570
  wallet: string
1554
- params: Array<SecondaryCheckoutOptionsParams>
1571
+ params: Array<CheckoutOptionsSecondaryParams>
1555
1572
  }
1556
1573
 
1557
1574
  export interface CheckoutOptionsSecondaryReturn {
@@ -2721,6 +2738,20 @@ export class API implements API {
2721
2738
  })
2722
2739
  }
2723
2740
 
2741
+ checkoutOptionsPrimary = (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn> => {
2742
+ return this.fetch(
2743
+ this.url('CheckoutOptionsPrimary'),
2744
+ createHTTPRequest(args, headers, signal)).then((res) => {
2745
+ return buildResponse(res).then(_data => {
2746
+ return {
2747
+ options: <CheckoutOptions>(_data.options),
2748
+ }
2749
+ })
2750
+ }, (error) => {
2751
+ throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
2752
+ })
2753
+ }
2754
+
2724
2755
  checkoutOptionsSecondary = (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn> => {
2725
2756
  return this.fetch(
2726
2757
  this.url('CheckoutOptionsSecondary'),