@0xsequence/marketplace 2.3.35 → 3.0.0-beta.1

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.
@@ -1,22 +1,23 @@
1
1
  /* eslint-disable */
2
- // marketplace-api v0-25.11.10+0a30dcb 3e347e76053c79e670f06121aeba79d137faefc2
2
+ // marketplace-api 652676d9951ceb12f6846907c7c4b5160c73c57a
3
3
  // --
4
- // Code generated by webrpc-gen@v0.31.1 with github.com/webrpc/gen-typescript@v0.19.0 generator. DO NOT EDIT.
4
+ // Code generated by webrpc-gen@v0.30.2 with github.com/webrpc/gen-typescript@v0.19.0 generator. DO NOT EDIT.
5
5
  //
6
- // webrpc-gen -schema=./schema_old/schema.ridl -target=github.com/webrpc/gen-typescript@v0.19.0 -client -out=./clients/marketplace.gen.ts
6
+ // webrpc-gen -schema=./schema/schema.ridl -target=github.com/webrpc/gen-typescript@v0.19.0 -client -out=./clients/marketplace.gen.ts
7
7
 
8
8
  export const WebrpcHeader = 'Webrpc'
9
9
 
10
- export const WebrpcHeaderValue = 'webrpc@v0.31.1;gen-typescript@v0.19.0;marketplace-api@v0-25.11.10+0a30dcb'
10
+ export const WebrpcHeaderValue =
11
+ 'webrpc@v0.30.2;gen-typescript@v0.19.0;marketplace-api@v0.0.0-652676d9951ceb12f6846907c7c4b5160c73c57a'
11
12
 
12
13
  // WebRPC description and code-gen version
13
14
  export const WebRPCVersion = 'v1'
14
15
 
15
16
  // Schema version of your RIDL schema
16
- export const WebRPCSchemaVersion = 'v0-25.11.10+0a30dcb'
17
+ export const WebRPCSchemaVersion = ''
17
18
 
18
19
  // Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = '3e347e76053c79e670f06121aeba79d137faefc2'
20
+ export const WebRPCSchemaHash = '652676d9951ceb12f6846907c7c4b5160c73c57a'
20
21
 
21
22
  type WebrpcGenVersions = {
22
23
  webrpcGenVersion: string
@@ -34,7 +35,7 @@ export function VersionFromHeader(headers: Headers): WebrpcGenVersions {
34
35
  codeGenName: '',
35
36
  codeGenVersion: '',
36
37
  schemaName: '',
37
- schemaVersion: ''
38
+ schemaVersion: '',
38
39
  }
39
40
  }
40
41
 
@@ -49,7 +50,7 @@ function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
49
50
  codeGenName: '',
50
51
  codeGenVersion: '',
51
52
  schemaName: '',
52
- schemaVersion: ''
53
+ schemaVersion: '',
53
54
  }
54
55
  }
55
56
 
@@ -62,7 +63,7 @@ function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
62
63
  codeGenName: codeGenName ?? '',
63
64
  codeGenVersion: codeGenVersion ?? '',
64
65
  schemaName: schemaName ?? '',
65
- schemaVersion: schemaVersion ?? ''
66
+ schemaVersion: schemaVersion ?? '',
66
67
  }
67
68
  }
68
69
 
@@ -72,14 +73,14 @@ function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
72
73
 
73
74
  export enum SortOrder {
74
75
  ASC = 'ASC',
75
- DESC = 'DESC'
76
+ DESC = 'DESC',
76
77
  }
77
78
 
78
79
  export enum PropertyType {
79
80
  INT = 'INT',
80
81
  STRING = 'STRING',
81
82
  ARRAY = 'ARRAY',
82
- GENERIC = 'GENERIC'
83
+ GENERIC = 'GENERIC',
83
84
  }
84
85
 
85
86
  export enum MarketplaceKind {
@@ -94,7 +95,7 @@ export enum MarketplaceKind {
94
95
  alienswap = 'alienswap',
95
96
  payment_processor = 'payment_processor',
96
97
  mintify = 'mintify',
97
- magic_eden = 'magic_eden'
98
+ magic_eden = 'magic_eden',
98
99
  }
99
100
 
100
101
  export enum OrderbookKind {
@@ -106,7 +107,7 @@ export enum OrderbookKind {
106
107
  looks_rare = 'looks_rare',
107
108
  reservoir = 'reservoir',
108
109
  x2y2 = 'x2y2',
109
- magic_eden = 'magic_eden'
110
+ magic_eden = 'magic_eden',
110
111
  }
111
112
 
112
113
  export enum SourceKind {
@@ -115,19 +116,19 @@ export enum SourceKind {
115
116
  sequence_marketplace_v1 = 'sequence_marketplace_v1',
116
117
  sequence_marketplace_v2 = 'sequence_marketplace_v2',
117
118
  opensea = 'opensea',
118
- magic_eden = 'magic_eden'
119
+ magic_eden = 'magic_eden',
119
120
  }
120
121
 
121
122
  export enum OrderSide {
122
123
  unknown = 'unknown',
123
124
  listing = 'listing',
124
- offer = 'offer'
125
+ offer = 'offer',
125
126
  }
126
127
 
127
128
  export enum OfferType {
128
129
  unknown = 'unknown',
129
130
  item = 'item',
130
- collection = 'collection'
131
+ collection = 'collection',
131
132
  }
132
133
 
133
134
  export enum OrderStatus {
@@ -137,21 +138,21 @@ export enum OrderStatus {
137
138
  expired = 'expired',
138
139
  cancelled = 'cancelled',
139
140
  filled = 'filled',
140
- decimals_missing = 'decimals_missing'
141
+ decimals_missing = 'decimals_missing',
141
142
  }
142
143
 
143
144
  export enum ContractType {
144
145
  UNKNOWN = 'UNKNOWN',
145
146
  ERC20 = 'ERC20',
146
147
  ERC721 = 'ERC721',
147
- ERC1155 = 'ERC1155'
148
+ ERC1155 = 'ERC1155',
148
149
  }
149
150
 
150
151
  export enum CollectionPriority {
151
152
  unknown = 'unknown',
152
153
  low = 'low',
153
154
  normal = 'normal',
154
- high = 'high'
155
+ high = 'high',
155
156
  }
156
157
 
157
158
  export enum CollectionStatus {
@@ -161,13 +162,13 @@ export enum CollectionStatus {
161
162
  active = 'active',
162
163
  failed = 'failed',
163
164
  inactive = 'inactive',
164
- incompatible_type = 'incompatible_type'
165
+ incompatible_type = 'incompatible_type',
165
166
  }
166
167
 
167
168
  export enum ProjectStatus {
168
169
  unknown = 'unknown',
169
170
  active = 'active',
170
- inactive = 'inactive'
171
+ inactive = 'inactive',
171
172
  }
172
173
 
173
174
  export enum ItemsContractStatus {
@@ -179,19 +180,19 @@ export enum ItemsContractStatus {
179
180
  synced_tokens = 'synced_tokens',
180
181
  active = 'active',
181
182
  inactive = 'inactive',
182
- incompatible_type = 'incompatible_type'
183
+ incompatible_type = 'incompatible_type',
183
184
  }
184
185
 
185
186
  export enum CollectibleStatus {
186
187
  unknown = 'unknown',
187
188
  active = 'active',
188
- inactive = 'inactive'
189
+ inactive = 'inactive',
189
190
  }
190
191
 
191
192
  export enum CollectibleSource {
192
193
  unknown = 'unknown',
193
194
  indexer = 'indexer',
194
- manual = 'manual'
195
+ manual = 'manual',
195
196
  }
196
197
 
197
198
  export enum CurrencyStatus {
@@ -199,12 +200,12 @@ export enum CurrencyStatus {
199
200
  created = 'created',
200
201
  syncing_metadata = 'syncing_metadata',
201
202
  active = 'active',
202
- failed = 'failed'
203
+ failed = 'failed',
203
204
  }
204
205
 
205
206
  export enum WalletKind {
206
207
  unknown = 'unknown',
207
- sequence = 'sequence'
208
+ sequence = 'sequence',
208
209
  }
209
210
 
210
211
  export enum StepType {
@@ -216,30 +217,30 @@ export enum StepType {
216
217
  createOffer = 'createOffer',
217
218
  signEIP712 = 'signEIP712',
218
219
  signEIP191 = 'signEIP191',
219
- cancel = 'cancel'
220
+ cancel = 'cancel',
220
221
  }
221
222
 
222
223
  export enum TransactionCrypto {
223
224
  none = 'none',
224
225
  partially = 'partially',
225
- all = 'all'
226
+ all = 'all',
226
227
  }
227
228
 
228
229
  export enum TransactionNFTCheckoutProvider {
229
230
  unknown = 'unknown',
230
231
  transak = 'transak',
231
- sardine = 'sardine'
232
+ sardine = 'sardine',
232
233
  }
233
234
 
234
235
  export enum TransactionOnRampProvider {
235
236
  unknown = 'unknown',
236
237
  transak = 'transak',
237
- sardine = 'sardine'
238
+ sardine = 'sardine',
238
239
  }
239
240
 
240
241
  export enum TransactionSwapProvider {
241
242
  unknown = 'unknown',
242
- lifi = 'lifi'
243
+ lifi = 'lifi',
243
244
  }
244
245
 
245
246
  export enum ExecuteType {
@@ -247,7 +248,7 @@ export enum ExecuteType {
247
248
  order = 'order',
248
249
  createListing = 'createListing',
249
250
  createItemOffer = 'createItemOffer',
250
- createTraitOffer = 'createTraitOffer'
251
+ createTraitOffer = 'createTraitOffer',
251
252
  }
252
253
 
253
254
  export enum ActivityAction {
@@ -258,7 +259,7 @@ export enum ActivityAction {
258
259
  sale = 'sale',
259
260
  listingCancel = 'listingCancel',
260
261
  offerCancel = 'offerCancel',
261
- transfer = 'transfer'
262
+ transfer = 'transfer',
262
263
  }
263
264
 
264
265
  export enum PrimarySaleContractStatus {
@@ -268,24 +269,24 @@ export enum PrimarySaleContractStatus {
268
269
  active = 'active',
269
270
  inactive = 'inactive',
270
271
  incompatible_type = 'incompatible_type',
271
- failed = 'failed'
272
+ failed = 'failed',
272
273
  }
273
274
 
274
275
  export enum PrimarySaleVersion {
275
276
  v0 = 'v0',
276
- v1 = 'v1'
277
+ v1 = 'v1',
277
278
  }
278
279
 
279
280
  export enum PrimarySaleItemDetailType {
280
281
  unknown = 'unknown',
281
282
  global = 'global',
282
- individual = 'individual'
283
+ individual = 'individual',
283
284
  }
284
285
 
285
286
  export enum MetadataStatus {
286
287
  NOT_AVAILABLE = 'NOT_AVAILABLE',
287
288
  REFRESHING = 'REFRESHING',
288
- AVAILABLE = 'AVAILABLE'
289
+ AVAILABLE = 'AVAILABLE',
289
290
  }
290
291
 
291
292
  export interface Page {
@@ -682,12 +683,12 @@ export interface Admin {
682
683
  createPrimarySaleContract(
683
684
  args: CreatePrimarySaleContractArgs,
684
685
  headers?: object,
685
- signal?: AbortSignal
686
+ signal?: AbortSignal,
686
687
  ): Promise<CreatePrimarySaleContractReturn>
687
688
  deletePrimarySaleContract(
688
689
  args: DeletePrimarySaleContractArgs,
689
690
  headers?: object,
690
- signal?: AbortSignal
691
+ signal?: AbortSignal,
691
692
  ): Promise<DeletePrimarySaleContractReturn>
692
693
  createCurrency(args: CreateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrencyReturn>
693
694
  createCurrencies(args: CreateCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrenciesReturn>
@@ -817,70 +818,78 @@ export interface AddCollectiblesReturn {}
817
818
 
818
819
  export interface Marketplace {
819
820
  listCurrencies(args: ListCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn>
820
- getCollectionDetail(args: GetCollectionDetailArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectionDetailReturn>
821
+ getCollectionDetail(
822
+ args: GetCollectionDetailArgs,
823
+ headers?: object,
824
+ signal?: AbortSignal,
825
+ ): Promise<GetCollectionDetailReturn>
821
826
  getCollectionActiveListingsCurrencies(
822
827
  args: GetCollectionActiveListingsCurrenciesArgs,
823
828
  headers?: object,
824
- signal?: AbortSignal
829
+ signal?: AbortSignal,
825
830
  ): Promise<GetCollectionActiveListingsCurrenciesReturn>
826
831
  getCollectionActiveOffersCurrencies(
827
832
  args: GetCollectionActiveOffersCurrenciesArgs,
828
833
  headers?: object,
829
- signal?: AbortSignal
834
+ signal?: AbortSignal,
830
835
  ): Promise<GetCollectionActiveOffersCurrenciesReturn>
831
836
  getCollectible(args: GetCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleReturn>
832
837
  getLowestPriceOfferForCollectible(
833
838
  args: GetLowestPriceOfferForCollectibleArgs,
834
839
  headers?: object,
835
- signal?: AbortSignal
840
+ signal?: AbortSignal,
836
841
  ): Promise<GetLowestPriceOfferForCollectibleReturn>
837
842
  getHighestPriceOfferForCollectible(
838
843
  args: GetHighestPriceOfferForCollectibleArgs,
839
844
  headers?: object,
840
- signal?: AbortSignal
845
+ signal?: AbortSignal,
841
846
  ): Promise<GetHighestPriceOfferForCollectibleReturn>
842
847
  getLowestPriceListingForCollectible(
843
848
  args: GetLowestPriceListingForCollectibleArgs,
844
849
  headers?: object,
845
- signal?: AbortSignal
850
+ signal?: AbortSignal,
846
851
  ): Promise<GetLowestPriceListingForCollectibleReturn>
847
852
  getHighestPriceListingForCollectible(
848
853
  args: GetHighestPriceListingForCollectibleArgs,
849
854
  headers?: object,
850
- signal?: AbortSignal
855
+ signal?: AbortSignal,
851
856
  ): Promise<GetHighestPriceListingForCollectibleReturn>
852
857
  listListingsForCollectible(
853
858
  args: ListListingsForCollectibleArgs,
854
859
  headers?: object,
855
- signal?: AbortSignal
860
+ signal?: AbortSignal,
856
861
  ): Promise<ListListingsForCollectibleReturn>
857
862
  listOffersForCollectible(
858
863
  args: ListOffersForCollectibleArgs,
859
864
  headers?: object,
860
- signal?: AbortSignal
865
+ signal?: AbortSignal,
861
866
  ): Promise<ListOffersForCollectibleReturn>
862
867
  listOrdersWithCollectibles(
863
868
  args: ListOrdersWithCollectiblesArgs,
864
869
  headers?: object,
865
- signal?: AbortSignal
870
+ signal?: AbortSignal,
866
871
  ): Promise<ListOrdersWithCollectiblesReturn>
867
- getCountOfAllOrders(args: GetCountOfAllOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllOrdersReturn>
872
+ getCountOfAllOrders(
873
+ args: GetCountOfAllOrdersArgs,
874
+ headers?: object,
875
+ signal?: AbortSignal,
876
+ ): Promise<GetCountOfAllOrdersReturn>
868
877
  getCountOfFilteredOrders(
869
878
  args: GetCountOfFilteredOrdersArgs,
870
879
  headers?: object,
871
- signal?: AbortSignal
880
+ signal?: AbortSignal,
872
881
  ): Promise<GetCountOfFilteredOrdersReturn>
873
882
  listListings(args: ListListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsReturn>
874
883
  listOffers(args: ListOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersReturn>
875
884
  getCountOfListingsForCollectible(
876
885
  args: GetCountOfListingsForCollectibleArgs,
877
886
  headers?: object,
878
- signal?: AbortSignal
887
+ signal?: AbortSignal,
879
888
  ): Promise<GetCountOfListingsForCollectibleReturn>
880
889
  getCountOfOffersForCollectible(
881
890
  args: GetCountOfOffersForCollectibleArgs,
882
891
  headers?: object,
883
- signal?: AbortSignal
892
+ signal?: AbortSignal,
884
893
  ): Promise<GetCountOfOffersForCollectibleReturn>
885
894
  /**
886
895
  * @deprecated Please use GetLowestPriceOfferForCollectible instead.
@@ -888,7 +897,7 @@ export interface Marketplace {
888
897
  getCollectibleLowestOffer(
889
898
  args: GetCollectibleLowestOfferArgs,
890
899
  headers?: object,
891
- signal?: AbortSignal
900
+ signal?: AbortSignal,
892
901
  ): Promise<GetCollectibleLowestOfferReturn>
893
902
  /**
894
903
  * @deprecated Please use GetHighestPriceOfferForCollectible instead.
@@ -896,7 +905,7 @@ export interface Marketplace {
896
905
  getCollectibleHighestOffer(
897
906
  args: GetCollectibleHighestOfferArgs,
898
907
  headers?: object,
899
- signal?: AbortSignal
908
+ signal?: AbortSignal,
900
909
  ): Promise<GetCollectibleHighestOfferReturn>
901
910
  /**
902
911
  * @deprecated Please use GetLowestPriceListingForCollectible instead.
@@ -904,7 +913,7 @@ export interface Marketplace {
904
913
  getCollectibleLowestListing(
905
914
  args: GetCollectibleLowestListingArgs,
906
915
  headers?: object,
907
- signal?: AbortSignal
916
+ signal?: AbortSignal,
908
917
  ): Promise<GetCollectibleLowestListingReturn>
909
918
  /**
910
919
  * @deprecated Please use GetHighestPriceListingForCollectible instead.
@@ -912,7 +921,7 @@ export interface Marketplace {
912
921
  getCollectibleHighestListing(
913
922
  args: GetCollectibleHighestListingArgs,
914
923
  headers?: object,
915
- signal?: AbortSignal
924
+ signal?: AbortSignal,
916
925
  ): Promise<GetCollectibleHighestListingReturn>
917
926
  /**
918
927
  * @deprecated Please use ListListingsForCollectible instead.
@@ -920,7 +929,7 @@ export interface Marketplace {
920
929
  listCollectibleListings(
921
930
  args: ListCollectibleListingsArgs,
922
931
  headers?: object,
923
- signal?: AbortSignal
932
+ signal?: AbortSignal,
924
933
  ): Promise<ListCollectibleListingsReturn>
925
934
  /**
926
935
  * @deprecated Please use ListOffersForCollectible instead.
@@ -928,7 +937,7 @@ export interface Marketplace {
928
937
  listCollectibleOffers(
929
938
  args: ListCollectibleOffersArgs,
930
939
  headers?: object,
931
- signal?: AbortSignal
940
+ signal?: AbortSignal,
932
941
  ): Promise<ListCollectibleOffersReturn>
933
942
  /**
934
943
  * checkout process
@@ -936,27 +945,27 @@ export interface Marketplace {
936
945
  generateBuyTransaction(
937
946
  args: GenerateBuyTransactionArgs,
938
947
  headers?: object,
939
- signal?: AbortSignal
948
+ signal?: AbortSignal,
940
949
  ): Promise<GenerateBuyTransactionReturn>
941
950
  generateSellTransaction(
942
951
  args: GenerateSellTransactionArgs,
943
952
  headers?: object,
944
- signal?: AbortSignal
953
+ signal?: AbortSignal,
945
954
  ): Promise<GenerateSellTransactionReturn>
946
955
  generateListingTransaction(
947
956
  args: GenerateListingTransactionArgs,
948
957
  headers?: object,
949
- signal?: AbortSignal
958
+ signal?: AbortSignal,
950
959
  ): Promise<GenerateListingTransactionReturn>
951
960
  generateOfferTransaction(
952
961
  args: GenerateOfferTransactionArgs,
953
962
  headers?: object,
954
- signal?: AbortSignal
963
+ signal?: AbortSignal,
955
964
  ): Promise<GenerateOfferTransactionReturn>
956
965
  generateCancelTransaction(
957
966
  args: GenerateCancelTransactionArgs,
958
967
  headers?: object,
959
- signal?: AbortSignal
968
+ signal?: AbortSignal,
960
969
  ): Promise<GenerateCancelTransactionReturn>
961
970
  /**
962
971
  * only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market, use only ExecuteInput params and leave other root inputs empty, they are depracated and kept only for backward compatibility
@@ -969,39 +978,33 @@ export interface Marketplace {
969
978
  getCountOfAllCollectibles(
970
979
  args: GetCountOfAllCollectiblesArgs,
971
980
  headers?: object,
972
- signal?: AbortSignal
981
+ signal?: AbortSignal,
973
982
  ): Promise<GetCountOfAllCollectiblesReturn>
974
983
  getCountOfFilteredCollectibles(
975
984
  args: GetCountOfFilteredCollectiblesArgs,
976
985
  headers?: object,
977
- signal?: AbortSignal
986
+ signal?: AbortSignal,
978
987
  ): Promise<GetCountOfFilteredCollectiblesReturn>
979
988
  getFloorOrder(args: GetFloorOrderArgs, headers?: object, signal?: AbortSignal): Promise<GetFloorOrderReturn>
980
- /**
981
- * Not Implemented
982
- */
983
989
  listCollectionActivities(
984
990
  args: ListCollectionActivitiesArgs,
985
991
  headers?: object,
986
- signal?: AbortSignal
992
+ signal?: AbortSignal,
987
993
  ): Promise<ListCollectionActivitiesReturn>
988
- /**
989
- * Not Implemented
990
- */
991
994
  listCollectibleActivities(
992
995
  args: ListCollectibleActivitiesArgs,
993
996
  headers?: object,
994
- signal?: AbortSignal
997
+ signal?: AbortSignal,
995
998
  ): Promise<ListCollectibleActivitiesReturn>
996
999
  listCollectiblesWithLowestListing(
997
1000
  args: ListCollectiblesWithLowestListingArgs,
998
1001
  headers?: object,
999
- signal?: AbortSignal
1002
+ signal?: AbortSignal,
1000
1003
  ): Promise<ListCollectiblesWithLowestListingReturn>
1001
1004
  listCollectiblesWithHighestOffer(
1002
1005
  args: ListCollectiblesWithHighestOfferArgs,
1003
1006
  headers?: object,
1004
- signal?: AbortSignal
1007
+ signal?: AbortSignal,
1005
1008
  ): Promise<ListCollectiblesWithHighestOfferReturn>
1006
1009
  syncOrder(args: SyncOrderArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrderReturn>
1007
1010
  syncOrders(args: SyncOrdersArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrdersReturn>
@@ -1009,28 +1012,32 @@ export interface Marketplace {
1009
1012
  checkoutOptionsMarketplace(
1010
1013
  args: CheckoutOptionsMarketplaceArgs,
1011
1014
  headers?: object,
1012
- signal?: AbortSignal
1015
+ signal?: AbortSignal,
1013
1016
  ): Promise<CheckoutOptionsMarketplaceReturn>
1014
1017
  checkoutOptionsSalesContract(
1015
1018
  args: CheckoutOptionsSalesContractArgs,
1016
1019
  headers?: object,
1017
- signal?: AbortSignal
1020
+ signal?: AbortSignal,
1018
1021
  ): Promise<CheckoutOptionsSalesContractReturn>
1019
1022
  supportedMarketplaces(
1020
1023
  args: SupportedMarketplacesArgs,
1021
1024
  headers?: object,
1022
- signal?: AbortSignal
1025
+ signal?: AbortSignal,
1023
1026
  ): Promise<SupportedMarketplacesReturn>
1024
- getPrimarySaleItem(args: GetPrimarySaleItemArgs, headers?: object, signal?: AbortSignal): Promise<GetPrimarySaleItemReturn>
1027
+ getPrimarySaleItem(
1028
+ args: GetPrimarySaleItemArgs,
1029
+ headers?: object,
1030
+ signal?: AbortSignal,
1031
+ ): Promise<GetPrimarySaleItemReturn>
1025
1032
  listPrimarySaleItems(
1026
1033
  args: ListPrimarySaleItemsArgs,
1027
1034
  headers?: object,
1028
- signal?: AbortSignal
1035
+ signal?: AbortSignal,
1029
1036
  ): Promise<ListPrimarySaleItemsReturn>
1030
1037
  getCountOfPrimarySaleItems(
1031
1038
  args: GetCountOfPrimarySaleItemsArgs,
1032
1039
  headers?: object,
1033
- signal?: AbortSignal
1040
+ signal?: AbortSignal,
1034
1041
  ): Promise<GetCountOfPrimarySaleItemsReturn>
1035
1042
  }
1036
1043
 
@@ -1533,216 +1540,288 @@ export class Admin implements Admin {
1533
1540
  return this.hostname + this.path + name
1534
1541
  }
1535
1542
 
1536
- createCollection = (args: CreateCollectionArgs, headers?: object, signal?: AbortSignal): Promise<CreateCollectionReturn> => {
1543
+ createCollection = (
1544
+ args: CreateCollectionArgs,
1545
+ headers?: object,
1546
+ signal?: AbortSignal,
1547
+ ): Promise<CreateCollectionReturn> => {
1537
1548
  return this.fetch(this.url('CreateCollection'), createHTTPRequest(args, headers, signal)).then(
1538
- res => {
1539
- return buildResponse(res).then(_data => {
1549
+ (res) => {
1550
+ return buildResponse(res).then((_data) => {
1540
1551
  return {
1541
- collection: <Collection>_data.collection
1552
+ collection: <Collection>_data.collection,
1542
1553
  }
1543
1554
  })
1544
1555
  },
1545
- error => {
1546
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1547
- }
1556
+ (error) => {
1557
+ throw WebrpcRequestFailedError.new({
1558
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1559
+ })
1560
+ },
1548
1561
  )
1549
1562
  }
1550
1563
 
1551
1564
  getCollection = (args: GetCollectionArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectionReturn> => {
1552
1565
  return this.fetch(this.url('GetCollection'), createHTTPRequest(args, headers, signal)).then(
1553
- res => {
1554
- return buildResponse(res).then(_data => {
1566
+ (res) => {
1567
+ return buildResponse(res).then((_data) => {
1555
1568
  return {
1556
- collection: <Collection>_data.collection
1569
+ collection: <Collection>_data.collection,
1557
1570
  }
1558
1571
  })
1559
1572
  },
1560
- error => {
1561
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1562
- }
1573
+ (error) => {
1574
+ throw WebrpcRequestFailedError.new({
1575
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1576
+ })
1577
+ },
1563
1578
  )
1564
1579
  }
1565
1580
 
1566
- updateCollection = (args: UpdateCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCollectionReturn> => {
1581
+ updateCollection = (
1582
+ args: UpdateCollectionArgs,
1583
+ headers?: object,
1584
+ signal?: AbortSignal,
1585
+ ): Promise<UpdateCollectionReturn> => {
1567
1586
  return this.fetch(this.url('UpdateCollection'), createHTTPRequest(args, headers, signal)).then(
1568
- res => {
1569
- return buildResponse(res).then(_data => {
1587
+ (res) => {
1588
+ return buildResponse(res).then((_data) => {
1570
1589
  return {
1571
- collection: <Collection>_data.collection
1590
+ collection: <Collection>_data.collection,
1572
1591
  }
1573
1592
  })
1574
1593
  },
1575
- error => {
1576
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1577
- }
1594
+ (error) => {
1595
+ throw WebrpcRequestFailedError.new({
1596
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1597
+ })
1598
+ },
1578
1599
  )
1579
1600
  }
1580
1601
 
1581
- listCollections = (args: ListCollectionsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectionsReturn> => {
1602
+ listCollections = (
1603
+ args: ListCollectionsArgs,
1604
+ headers?: object,
1605
+ signal?: AbortSignal,
1606
+ ): Promise<ListCollectionsReturn> => {
1582
1607
  return this.fetch(this.url('ListCollections'), createHTTPRequest(args, headers, signal)).then(
1583
- res => {
1584
- return buildResponse(res).then(_data => {
1608
+ (res) => {
1609
+ return buildResponse(res).then((_data) => {
1585
1610
  return {
1586
1611
  collections: <Array<Collection>>_data.collections,
1587
- page: <Page>_data.page
1612
+ page: <Page>_data.page,
1588
1613
  }
1589
1614
  })
1590
1615
  },
1591
- error => {
1592
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1593
- }
1616
+ (error) => {
1617
+ throw WebrpcRequestFailedError.new({
1618
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1619
+ })
1620
+ },
1594
1621
  )
1595
1622
  }
1596
1623
 
1597
- deleteCollection = (args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn> => {
1624
+ deleteCollection = (
1625
+ args: DeleteCollectionArgs,
1626
+ headers?: object,
1627
+ signal?: AbortSignal,
1628
+ ): Promise<DeleteCollectionReturn> => {
1598
1629
  return this.fetch(this.url('DeleteCollection'), createHTTPRequest(args, headers, signal)).then(
1599
- res => {
1600
- return buildResponse(res).then(_data => {
1630
+ (res) => {
1631
+ return buildResponse(res).then((_data) => {
1601
1632
  return {
1602
- collection: <Collection>_data.collection
1633
+ collection: <Collection>_data.collection,
1603
1634
  }
1604
1635
  })
1605
1636
  },
1606
- error => {
1607
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1608
- }
1637
+ (error) => {
1638
+ throw WebrpcRequestFailedError.new({
1639
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1640
+ })
1641
+ },
1609
1642
  )
1610
1643
  }
1611
1644
 
1612
- syncCollection = (args: SyncCollectionArgs, headers?: object, signal?: AbortSignal): Promise<SyncCollectionReturn> => {
1645
+ syncCollection = (
1646
+ args: SyncCollectionArgs,
1647
+ headers?: object,
1648
+ signal?: AbortSignal,
1649
+ ): Promise<SyncCollectionReturn> => {
1613
1650
  return this.fetch(this.url('SyncCollection'), createHTTPRequest(args, headers, signal)).then(
1614
- res => {
1615
- return buildResponse(res).then(_data => {
1651
+ (res) => {
1652
+ return buildResponse(res).then((_data) => {
1616
1653
  return {}
1617
1654
  })
1618
1655
  },
1619
- error => {
1620
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1621
- }
1656
+ (error) => {
1657
+ throw WebrpcRequestFailedError.new({
1658
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1659
+ })
1660
+ },
1622
1661
  )
1623
1662
  }
1624
1663
 
1625
1664
  createPrimarySaleContract = (
1626
1665
  args: CreatePrimarySaleContractArgs,
1627
1666
  headers?: object,
1628
- signal?: AbortSignal
1667
+ signal?: AbortSignal,
1629
1668
  ): Promise<CreatePrimarySaleContractReturn> => {
1630
1669
  return this.fetch(this.url('CreatePrimarySaleContract'), createHTTPRequest(args, headers, signal)).then(
1631
- res => {
1632
- return buildResponse(res).then(_data => {
1670
+ (res) => {
1671
+ return buildResponse(res).then((_data) => {
1633
1672
  return {
1634
- primarySaleContract: <PrimarySaleContract>_data.primarySaleContract
1673
+ primarySaleContract: <PrimarySaleContract>_data.primarySaleContract,
1635
1674
  }
1636
1675
  })
1637
1676
  },
1638
- error => {
1639
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1640
- }
1677
+ (error) => {
1678
+ throw WebrpcRequestFailedError.new({
1679
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1680
+ })
1681
+ },
1641
1682
  )
1642
1683
  }
1643
1684
 
1644
1685
  deletePrimarySaleContract = (
1645
1686
  args: DeletePrimarySaleContractArgs,
1646
1687
  headers?: object,
1647
- signal?: AbortSignal
1688
+ signal?: AbortSignal,
1648
1689
  ): Promise<DeletePrimarySaleContractReturn> => {
1649
1690
  return this.fetch(this.url('DeletePrimarySaleContract'), createHTTPRequest(args, headers, signal)).then(
1650
- res => {
1651
- return buildResponse(res).then(_data => {
1691
+ (res) => {
1692
+ return buildResponse(res).then((_data) => {
1652
1693
  return {}
1653
1694
  })
1654
1695
  },
1655
- error => {
1656
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1657
- }
1696
+ (error) => {
1697
+ throw WebrpcRequestFailedError.new({
1698
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1699
+ })
1700
+ },
1658
1701
  )
1659
1702
  }
1660
1703
 
1661
- createCurrency = (args: CreateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrencyReturn> => {
1704
+ createCurrency = (
1705
+ args: CreateCurrencyArgs,
1706
+ headers?: object,
1707
+ signal?: AbortSignal,
1708
+ ): Promise<CreateCurrencyReturn> => {
1662
1709
  return this.fetch(this.url('CreateCurrency'), createHTTPRequest(args, headers, signal)).then(
1663
- res => {
1664
- return buildResponse(res).then(_data => {
1710
+ (res) => {
1711
+ return buildResponse(res).then((_data) => {
1665
1712
  return {
1666
- currency: <Currency>_data.currency
1713
+ currency: <Currency>_data.currency,
1667
1714
  }
1668
1715
  })
1669
1716
  },
1670
- error => {
1671
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1672
- }
1717
+ (error) => {
1718
+ throw WebrpcRequestFailedError.new({
1719
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1720
+ })
1721
+ },
1673
1722
  )
1674
1723
  }
1675
1724
 
1676
- createCurrencies = (args: CreateCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrenciesReturn> => {
1725
+ createCurrencies = (
1726
+ args: CreateCurrenciesArgs,
1727
+ headers?: object,
1728
+ signal?: AbortSignal,
1729
+ ): Promise<CreateCurrenciesReturn> => {
1677
1730
  return this.fetch(this.url('CreateCurrencies'), createHTTPRequest(args, headers, signal)).then(
1678
- res => {
1679
- return buildResponse(res).then(_data => {
1731
+ (res) => {
1732
+ return buildResponse(res).then((_data) => {
1680
1733
  return {
1681
- currency: <{ [key: string]: Currency }>_data.currency
1734
+ currency: <{ [key: string]: Currency }>_data.currency,
1682
1735
  }
1683
1736
  })
1684
1737
  },
1685
- error => {
1686
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1687
- }
1738
+ (error) => {
1739
+ throw WebrpcRequestFailedError.new({
1740
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1741
+ })
1742
+ },
1688
1743
  )
1689
1744
  }
1690
1745
 
1691
- updateCurrency = (args: UpdateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyReturn> => {
1746
+ updateCurrency = (
1747
+ args: UpdateCurrencyArgs,
1748
+ headers?: object,
1749
+ signal?: AbortSignal,
1750
+ ): Promise<UpdateCurrencyReturn> => {
1692
1751
  return this.fetch(this.url('UpdateCurrency'), createHTTPRequest(args, headers, signal)).then(
1693
- res => {
1694
- return buildResponse(res).then(_data => {
1752
+ (res) => {
1753
+ return buildResponse(res).then((_data) => {
1695
1754
  return {
1696
- currency: <Currency>_data.currency
1755
+ currency: <Currency>_data.currency,
1697
1756
  }
1698
1757
  })
1699
1758
  },
1700
- error => {
1701
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1702
- }
1759
+ (error) => {
1760
+ throw WebrpcRequestFailedError.new({
1761
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1762
+ })
1763
+ },
1703
1764
  )
1704
1765
  }
1705
1766
 
1706
- listCurrencies = (args: ListCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn> => {
1767
+ listCurrencies = (
1768
+ args: ListCurrenciesArgs,
1769
+ headers?: object,
1770
+ signal?: AbortSignal,
1771
+ ): Promise<ListCurrenciesReturn> => {
1707
1772
  return this.fetch(this.url('ListCurrencies'), createHTTPRequest(args, headers, signal)).then(
1708
- res => {
1709
- return buildResponse(res).then(_data => {
1773
+ (res) => {
1774
+ return buildResponse(res).then((_data) => {
1710
1775
  return {
1711
- currencies: <Array<Currency>>_data.currencies
1776
+ currencies: <Array<Currency>>_data.currencies,
1712
1777
  }
1713
1778
  })
1714
1779
  },
1715
- error => {
1716
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1717
- }
1780
+ (error) => {
1781
+ throw WebrpcRequestFailedError.new({
1782
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1783
+ })
1784
+ },
1718
1785
  )
1719
1786
  }
1720
1787
 
1721
- deleteCurrency = (args: DeleteCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCurrencyReturn> => {
1788
+ deleteCurrency = (
1789
+ args: DeleteCurrencyArgs,
1790
+ headers?: object,
1791
+ signal?: AbortSignal,
1792
+ ): Promise<DeleteCurrencyReturn> => {
1722
1793
  return this.fetch(this.url('DeleteCurrency'), createHTTPRequest(args, headers, signal)).then(
1723
- res => {
1724
- return buildResponse(res).then(_data => {
1794
+ (res) => {
1795
+ return buildResponse(res).then((_data) => {
1725
1796
  return {
1726
- currency: <Currency>_data.currency
1797
+ currency: <Currency>_data.currency,
1727
1798
  }
1728
1799
  })
1729
1800
  },
1730
- error => {
1731
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1732
- }
1801
+ (error) => {
1802
+ throw WebrpcRequestFailedError.new({
1803
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1804
+ })
1805
+ },
1733
1806
  )
1734
1807
  }
1735
1808
 
1736
- addCollectibles = (args: AddCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<AddCollectiblesReturn> => {
1809
+ addCollectibles = (
1810
+ args: AddCollectiblesArgs,
1811
+ headers?: object,
1812
+ signal?: AbortSignal,
1813
+ ): Promise<AddCollectiblesReturn> => {
1737
1814
  return this.fetch(this.url('AddCollectibles'), createHTTPRequest(args, headers, signal)).then(
1738
- res => {
1739
- return buildResponse(res).then(_data => {
1815
+ (res) => {
1816
+ return buildResponse(res).then((_data) => {
1740
1817
  return {}
1741
1818
  })
1742
1819
  },
1743
- error => {
1744
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1745
- }
1820
+ (error) => {
1821
+ throw WebrpcRequestFailedError.new({
1822
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1823
+ })
1824
+ },
1746
1825
  )
1747
1826
  }
1748
1827
  }
@@ -1760,866 +1839,972 @@ export class Marketplace implements Marketplace {
1760
1839
  return this.hostname + this.path + name
1761
1840
  }
1762
1841
 
1763
- listCurrencies = (args: ListCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn> => {
1842
+ listCurrencies = (
1843
+ args: ListCurrenciesArgs,
1844
+ headers?: object,
1845
+ signal?: AbortSignal,
1846
+ ): Promise<ListCurrenciesReturn> => {
1764
1847
  return this.fetch(this.url('ListCurrencies'), createHTTPRequest(args, headers, signal)).then(
1765
- res => {
1766
- return buildResponse(res).then(_data => {
1848
+ (res) => {
1849
+ return buildResponse(res).then((_data) => {
1767
1850
  return {
1768
- currencies: <Array<Currency>>_data.currencies
1851
+ currencies: <Array<Currency>>_data.currencies,
1769
1852
  }
1770
1853
  })
1771
1854
  },
1772
- error => {
1773
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1774
- }
1855
+ (error) => {
1856
+ throw WebrpcRequestFailedError.new({
1857
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1858
+ })
1859
+ },
1775
1860
  )
1776
1861
  }
1777
1862
 
1778
1863
  getCollectionDetail = (
1779
1864
  args: GetCollectionDetailArgs,
1780
1865
  headers?: object,
1781
- signal?: AbortSignal
1866
+ signal?: AbortSignal,
1782
1867
  ): Promise<GetCollectionDetailReturn> => {
1783
1868
  return this.fetch(this.url('GetCollectionDetail'), createHTTPRequest(args, headers, signal)).then(
1784
- res => {
1785
- return buildResponse(res).then(_data => {
1869
+ (res) => {
1870
+ return buildResponse(res).then((_data) => {
1786
1871
  return {
1787
- collection: <Collection>_data.collection
1872
+ collection: <Collection>_data.collection,
1788
1873
  }
1789
1874
  })
1790
1875
  },
1791
- error => {
1792
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1793
- }
1876
+ (error) => {
1877
+ throw WebrpcRequestFailedError.new({
1878
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1879
+ })
1880
+ },
1794
1881
  )
1795
1882
  }
1796
1883
 
1797
1884
  getCollectionActiveListingsCurrencies = (
1798
1885
  args: GetCollectionActiveListingsCurrenciesArgs,
1799
1886
  headers?: object,
1800
- signal?: AbortSignal
1887
+ signal?: AbortSignal,
1801
1888
  ): Promise<GetCollectionActiveListingsCurrenciesReturn> => {
1802
1889
  return this.fetch(this.url('GetCollectionActiveListingsCurrencies'), createHTTPRequest(args, headers, signal)).then(
1803
- res => {
1804
- return buildResponse(res).then(_data => {
1890
+ (res) => {
1891
+ return buildResponse(res).then((_data) => {
1805
1892
  return {
1806
- currencies: <Array<Currency>>_data.currencies
1893
+ currencies: <Array<Currency>>_data.currencies,
1807
1894
  }
1808
1895
  })
1809
1896
  },
1810
- error => {
1811
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1812
- }
1897
+ (error) => {
1898
+ throw WebrpcRequestFailedError.new({
1899
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1900
+ })
1901
+ },
1813
1902
  )
1814
1903
  }
1815
1904
 
1816
1905
  getCollectionActiveOffersCurrencies = (
1817
1906
  args: GetCollectionActiveOffersCurrenciesArgs,
1818
1907
  headers?: object,
1819
- signal?: AbortSignal
1908
+ signal?: AbortSignal,
1820
1909
  ): Promise<GetCollectionActiveOffersCurrenciesReturn> => {
1821
1910
  return this.fetch(this.url('GetCollectionActiveOffersCurrencies'), createHTTPRequest(args, headers, signal)).then(
1822
- res => {
1823
- return buildResponse(res).then(_data => {
1911
+ (res) => {
1912
+ return buildResponse(res).then((_data) => {
1824
1913
  return {
1825
- currencies: <Array<Currency>>_data.currencies
1914
+ currencies: <Array<Currency>>_data.currencies,
1826
1915
  }
1827
1916
  })
1828
1917
  },
1829
- error => {
1830
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1831
- }
1918
+ (error) => {
1919
+ throw WebrpcRequestFailedError.new({
1920
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1921
+ })
1922
+ },
1832
1923
  )
1833
1924
  }
1834
1925
 
1835
- getCollectible = (args: GetCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleReturn> => {
1926
+ getCollectible = (
1927
+ args: GetCollectibleArgs,
1928
+ headers?: object,
1929
+ signal?: AbortSignal,
1930
+ ): Promise<GetCollectibleReturn> => {
1836
1931
  return this.fetch(this.url('GetCollectible'), createHTTPRequest(args, headers, signal)).then(
1837
- res => {
1838
- return buildResponse(res).then(_data => {
1932
+ (res) => {
1933
+ return buildResponse(res).then((_data) => {
1839
1934
  return {
1840
- metadata: <TokenMetadata>_data.metadata
1935
+ metadata: <TokenMetadata>_data.metadata,
1841
1936
  }
1842
1937
  })
1843
1938
  },
1844
- error => {
1845
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1846
- }
1939
+ (error) => {
1940
+ throw WebrpcRequestFailedError.new({
1941
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1942
+ })
1943
+ },
1847
1944
  )
1848
1945
  }
1849
1946
 
1850
1947
  getLowestPriceOfferForCollectible = (
1851
1948
  args: GetLowestPriceOfferForCollectibleArgs,
1852
1949
  headers?: object,
1853
- signal?: AbortSignal
1950
+ signal?: AbortSignal,
1854
1951
  ): Promise<GetLowestPriceOfferForCollectibleReturn> => {
1855
1952
  return this.fetch(this.url('GetLowestPriceOfferForCollectible'), createHTTPRequest(args, headers, signal)).then(
1856
- res => {
1857
- return buildResponse(res).then(_data => {
1953
+ (res) => {
1954
+ return buildResponse(res).then((_data) => {
1858
1955
  return {
1859
- order: <Order>_data.order
1956
+ order: <Order>_data.order,
1860
1957
  }
1861
1958
  })
1862
1959
  },
1863
- error => {
1864
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1865
- }
1960
+ (error) => {
1961
+ throw WebrpcRequestFailedError.new({
1962
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1963
+ })
1964
+ },
1866
1965
  )
1867
1966
  }
1868
1967
 
1869
1968
  getHighestPriceOfferForCollectible = (
1870
1969
  args: GetHighestPriceOfferForCollectibleArgs,
1871
1970
  headers?: object,
1872
- signal?: AbortSignal
1971
+ signal?: AbortSignal,
1873
1972
  ): Promise<GetHighestPriceOfferForCollectibleReturn> => {
1874
1973
  return this.fetch(this.url('GetHighestPriceOfferForCollectible'), createHTTPRequest(args, headers, signal)).then(
1875
- res => {
1876
- return buildResponse(res).then(_data => {
1974
+ (res) => {
1975
+ return buildResponse(res).then((_data) => {
1877
1976
  return {
1878
- order: <Order>_data.order
1977
+ order: <Order>_data.order,
1879
1978
  }
1880
1979
  })
1881
1980
  },
1882
- error => {
1883
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1884
- }
1981
+ (error) => {
1982
+ throw WebrpcRequestFailedError.new({
1983
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
1984
+ })
1985
+ },
1885
1986
  )
1886
1987
  }
1887
1988
 
1888
1989
  getLowestPriceListingForCollectible = (
1889
1990
  args: GetLowestPriceListingForCollectibleArgs,
1890
1991
  headers?: object,
1891
- signal?: AbortSignal
1992
+ signal?: AbortSignal,
1892
1993
  ): Promise<GetLowestPriceListingForCollectibleReturn> => {
1893
1994
  return this.fetch(this.url('GetLowestPriceListingForCollectible'), createHTTPRequest(args, headers, signal)).then(
1894
- res => {
1895
- return buildResponse(res).then(_data => {
1995
+ (res) => {
1996
+ return buildResponse(res).then((_data) => {
1896
1997
  return {
1897
- order: <Order>_data.order
1998
+ order: <Order>_data.order,
1898
1999
  }
1899
2000
  })
1900
2001
  },
1901
- error => {
1902
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1903
- }
2002
+ (error) => {
2003
+ throw WebrpcRequestFailedError.new({
2004
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2005
+ })
2006
+ },
1904
2007
  )
1905
2008
  }
1906
2009
 
1907
2010
  getHighestPriceListingForCollectible = (
1908
2011
  args: GetHighestPriceListingForCollectibleArgs,
1909
2012
  headers?: object,
1910
- signal?: AbortSignal
2013
+ signal?: AbortSignal,
1911
2014
  ): Promise<GetHighestPriceListingForCollectibleReturn> => {
1912
2015
  return this.fetch(this.url('GetHighestPriceListingForCollectible'), createHTTPRequest(args, headers, signal)).then(
1913
- res => {
1914
- return buildResponse(res).then(_data => {
2016
+ (res) => {
2017
+ return buildResponse(res).then((_data) => {
1915
2018
  return {
1916
- order: <Order>_data.order
2019
+ order: <Order>_data.order,
1917
2020
  }
1918
2021
  })
1919
2022
  },
1920
- error => {
1921
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1922
- }
2023
+ (error) => {
2024
+ throw WebrpcRequestFailedError.new({
2025
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2026
+ })
2027
+ },
1923
2028
  )
1924
2029
  }
1925
2030
 
1926
2031
  listListingsForCollectible = (
1927
2032
  args: ListListingsForCollectibleArgs,
1928
2033
  headers?: object,
1929
- signal?: AbortSignal
2034
+ signal?: AbortSignal,
1930
2035
  ): Promise<ListListingsForCollectibleReturn> => {
1931
2036
  return this.fetch(this.url('ListListingsForCollectible'), createHTTPRequest(args, headers, signal)).then(
1932
- res => {
1933
- return buildResponse(res).then(_data => {
2037
+ (res) => {
2038
+ return buildResponse(res).then((_data) => {
1934
2039
  return {
1935
2040
  listings: <Array<Order>>_data.listings,
1936
- page: <Page>_data.page
2041
+ page: <Page>_data.page,
1937
2042
  }
1938
2043
  })
1939
2044
  },
1940
- error => {
1941
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1942
- }
2045
+ (error) => {
2046
+ throw WebrpcRequestFailedError.new({
2047
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2048
+ })
2049
+ },
1943
2050
  )
1944
2051
  }
1945
2052
 
1946
2053
  listOffersForCollectible = (
1947
2054
  args: ListOffersForCollectibleArgs,
1948
2055
  headers?: object,
1949
- signal?: AbortSignal
2056
+ signal?: AbortSignal,
1950
2057
  ): Promise<ListOffersForCollectibleReturn> => {
1951
2058
  return this.fetch(this.url('ListOffersForCollectible'), createHTTPRequest(args, headers, signal)).then(
1952
- res => {
1953
- return buildResponse(res).then(_data => {
2059
+ (res) => {
2060
+ return buildResponse(res).then((_data) => {
1954
2061
  return {
1955
2062
  offers: <Array<Order>>_data.offers,
1956
- page: <Page>_data.page
2063
+ page: <Page>_data.page,
1957
2064
  }
1958
2065
  })
1959
2066
  },
1960
- error => {
1961
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1962
- }
2067
+ (error) => {
2068
+ throw WebrpcRequestFailedError.new({
2069
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2070
+ })
2071
+ },
1963
2072
  )
1964
2073
  }
1965
2074
 
1966
2075
  listOrdersWithCollectibles = (
1967
2076
  args: ListOrdersWithCollectiblesArgs,
1968
2077
  headers?: object,
1969
- signal?: AbortSignal
2078
+ signal?: AbortSignal,
1970
2079
  ): Promise<ListOrdersWithCollectiblesReturn> => {
1971
2080
  return this.fetch(this.url('ListOrdersWithCollectibles'), createHTTPRequest(args, headers, signal)).then(
1972
- res => {
1973
- return buildResponse(res).then(_data => {
2081
+ (res) => {
2082
+ return buildResponse(res).then((_data) => {
1974
2083
  return {
1975
2084
  collectibles: <Array<CollectibleOrder>>_data.collectibles,
1976
- page: <Page>_data.page
2085
+ page: <Page>_data.page,
1977
2086
  }
1978
2087
  })
1979
2088
  },
1980
- error => {
1981
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
1982
- }
2089
+ (error) => {
2090
+ throw WebrpcRequestFailedError.new({
2091
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2092
+ })
2093
+ },
1983
2094
  )
1984
2095
  }
1985
2096
 
1986
2097
  getCountOfAllOrders = (
1987
2098
  args: GetCountOfAllOrdersArgs,
1988
2099
  headers?: object,
1989
- signal?: AbortSignal
2100
+ signal?: AbortSignal,
1990
2101
  ): Promise<GetCountOfAllOrdersReturn> => {
1991
2102
  return this.fetch(this.url('GetCountOfAllOrders'), createHTTPRequest(args, headers, signal)).then(
1992
- res => {
1993
- return buildResponse(res).then(_data => {
2103
+ (res) => {
2104
+ return buildResponse(res).then((_data) => {
1994
2105
  return {
1995
- count: <number>_data.count
2106
+ count: <number>_data.count,
1996
2107
  }
1997
2108
  })
1998
2109
  },
1999
- error => {
2000
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2001
- }
2110
+ (error) => {
2111
+ throw WebrpcRequestFailedError.new({
2112
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2113
+ })
2114
+ },
2002
2115
  )
2003
2116
  }
2004
2117
 
2005
2118
  getCountOfFilteredOrders = (
2006
2119
  args: GetCountOfFilteredOrdersArgs,
2007
2120
  headers?: object,
2008
- signal?: AbortSignal
2121
+ signal?: AbortSignal,
2009
2122
  ): Promise<GetCountOfFilteredOrdersReturn> => {
2010
2123
  return this.fetch(this.url('GetCountOfFilteredOrders'), createHTTPRequest(args, headers, signal)).then(
2011
- res => {
2012
- return buildResponse(res).then(_data => {
2124
+ (res) => {
2125
+ return buildResponse(res).then((_data) => {
2013
2126
  return {
2014
- count: <number>_data.count
2127
+ count: <number>_data.count,
2015
2128
  }
2016
2129
  })
2017
2130
  },
2018
- error => {
2019
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2020
- }
2131
+ (error) => {
2132
+ throw WebrpcRequestFailedError.new({
2133
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2134
+ })
2135
+ },
2021
2136
  )
2022
2137
  }
2023
2138
 
2024
2139
  listListings = (args: ListListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsReturn> => {
2025
2140
  return this.fetch(this.url('ListListings'), createHTTPRequest(args, headers, signal)).then(
2026
- res => {
2027
- return buildResponse(res).then(_data => {
2141
+ (res) => {
2142
+ return buildResponse(res).then((_data) => {
2028
2143
  return {
2029
2144
  listings: <Array<Order>>_data.listings,
2030
- page: <Page>_data.page
2145
+ page: <Page>_data.page,
2031
2146
  }
2032
2147
  })
2033
2148
  },
2034
- error => {
2035
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2036
- }
2149
+ (error) => {
2150
+ throw WebrpcRequestFailedError.new({
2151
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2152
+ })
2153
+ },
2037
2154
  )
2038
2155
  }
2039
2156
 
2040
2157
  listOffers = (args: ListOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersReturn> => {
2041
2158
  return this.fetch(this.url('ListOffers'), createHTTPRequest(args, headers, signal)).then(
2042
- res => {
2043
- return buildResponse(res).then(_data => {
2159
+ (res) => {
2160
+ return buildResponse(res).then((_data) => {
2044
2161
  return {
2045
2162
  offers: <Array<Order>>_data.offers,
2046
- page: <Page>_data.page
2163
+ page: <Page>_data.page,
2047
2164
  }
2048
2165
  })
2049
2166
  },
2050
- error => {
2051
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2052
- }
2167
+ (error) => {
2168
+ throw WebrpcRequestFailedError.new({
2169
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2170
+ })
2171
+ },
2053
2172
  )
2054
2173
  }
2055
2174
 
2056
2175
  getCountOfListingsForCollectible = (
2057
2176
  args: GetCountOfListingsForCollectibleArgs,
2058
2177
  headers?: object,
2059
- signal?: AbortSignal
2178
+ signal?: AbortSignal,
2060
2179
  ): Promise<GetCountOfListingsForCollectibleReturn> => {
2061
2180
  return this.fetch(this.url('GetCountOfListingsForCollectible'), createHTTPRequest(args, headers, signal)).then(
2062
- res => {
2063
- return buildResponse(res).then(_data => {
2181
+ (res) => {
2182
+ return buildResponse(res).then((_data) => {
2064
2183
  return {
2065
- count: <number>_data.count
2184
+ count: <number>_data.count,
2066
2185
  }
2067
2186
  })
2068
2187
  },
2069
- error => {
2070
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2071
- }
2188
+ (error) => {
2189
+ throw WebrpcRequestFailedError.new({
2190
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2191
+ })
2192
+ },
2072
2193
  )
2073
2194
  }
2074
2195
 
2075
2196
  getCountOfOffersForCollectible = (
2076
2197
  args: GetCountOfOffersForCollectibleArgs,
2077
2198
  headers?: object,
2078
- signal?: AbortSignal
2199
+ signal?: AbortSignal,
2079
2200
  ): Promise<GetCountOfOffersForCollectibleReturn> => {
2080
2201
  return this.fetch(this.url('GetCountOfOffersForCollectible'), createHTTPRequest(args, headers, signal)).then(
2081
- res => {
2082
- return buildResponse(res).then(_data => {
2202
+ (res) => {
2203
+ return buildResponse(res).then((_data) => {
2083
2204
  return {
2084
- count: <number>_data.count
2205
+ count: <number>_data.count,
2085
2206
  }
2086
2207
  })
2087
2208
  },
2088
- error => {
2089
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2090
- }
2209
+ (error) => {
2210
+ throw WebrpcRequestFailedError.new({
2211
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2212
+ })
2213
+ },
2091
2214
  )
2092
2215
  }
2093
2216
 
2094
2217
  getCollectibleLowestOffer = (
2095
2218
  args: GetCollectibleLowestOfferArgs,
2096
2219
  headers?: object,
2097
- signal?: AbortSignal
2220
+ signal?: AbortSignal,
2098
2221
  ): Promise<GetCollectibleLowestOfferReturn> => {
2099
2222
  return this.fetch(this.url('GetCollectibleLowestOffer'), createHTTPRequest(args, headers, signal)).then(
2100
- res => {
2101
- return buildResponse(res).then(_data => {
2223
+ (res) => {
2224
+ return buildResponse(res).then((_data) => {
2102
2225
  return {
2103
- order: <Order>_data.order
2226
+ order: <Order>_data.order,
2104
2227
  }
2105
2228
  })
2106
2229
  },
2107
- error => {
2108
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2109
- }
2230
+ (error) => {
2231
+ throw WebrpcRequestFailedError.new({
2232
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2233
+ })
2234
+ },
2110
2235
  )
2111
2236
  }
2112
2237
 
2113
2238
  getCollectibleHighestOffer = (
2114
2239
  args: GetCollectibleHighestOfferArgs,
2115
2240
  headers?: object,
2116
- signal?: AbortSignal
2241
+ signal?: AbortSignal,
2117
2242
  ): Promise<GetCollectibleHighestOfferReturn> => {
2118
2243
  return this.fetch(this.url('GetCollectibleHighestOffer'), createHTTPRequest(args, headers, signal)).then(
2119
- res => {
2120
- return buildResponse(res).then(_data => {
2244
+ (res) => {
2245
+ return buildResponse(res).then((_data) => {
2121
2246
  return {
2122
- order: <Order>_data.order
2247
+ order: <Order>_data.order,
2123
2248
  }
2124
2249
  })
2125
2250
  },
2126
- error => {
2127
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2128
- }
2251
+ (error) => {
2252
+ throw WebrpcRequestFailedError.new({
2253
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2254
+ })
2255
+ },
2129
2256
  )
2130
2257
  }
2131
2258
 
2132
2259
  getCollectibleLowestListing = (
2133
2260
  args: GetCollectibleLowestListingArgs,
2134
2261
  headers?: object,
2135
- signal?: AbortSignal
2262
+ signal?: AbortSignal,
2136
2263
  ): Promise<GetCollectibleLowestListingReturn> => {
2137
2264
  return this.fetch(this.url('GetCollectibleLowestListing'), createHTTPRequest(args, headers, signal)).then(
2138
- res => {
2139
- return buildResponse(res).then(_data => {
2265
+ (res) => {
2266
+ return buildResponse(res).then((_data) => {
2140
2267
  return {
2141
- order: <Order>_data.order
2268
+ order: <Order>_data.order,
2142
2269
  }
2143
2270
  })
2144
2271
  },
2145
- error => {
2146
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2147
- }
2272
+ (error) => {
2273
+ throw WebrpcRequestFailedError.new({
2274
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2275
+ })
2276
+ },
2148
2277
  )
2149
2278
  }
2150
2279
 
2151
2280
  getCollectibleHighestListing = (
2152
2281
  args: GetCollectibleHighestListingArgs,
2153
2282
  headers?: object,
2154
- signal?: AbortSignal
2283
+ signal?: AbortSignal,
2155
2284
  ): Promise<GetCollectibleHighestListingReturn> => {
2156
2285
  return this.fetch(this.url('GetCollectibleHighestListing'), createHTTPRequest(args, headers, signal)).then(
2157
- res => {
2158
- return buildResponse(res).then(_data => {
2286
+ (res) => {
2287
+ return buildResponse(res).then((_data) => {
2159
2288
  return {
2160
- order: <Order>_data.order
2289
+ order: <Order>_data.order,
2161
2290
  }
2162
2291
  })
2163
2292
  },
2164
- error => {
2165
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2166
- }
2293
+ (error) => {
2294
+ throw WebrpcRequestFailedError.new({
2295
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2296
+ })
2297
+ },
2167
2298
  )
2168
2299
  }
2169
2300
 
2170
2301
  listCollectibleListings = (
2171
2302
  args: ListCollectibleListingsArgs,
2172
2303
  headers?: object,
2173
- signal?: AbortSignal
2304
+ signal?: AbortSignal,
2174
2305
  ): Promise<ListCollectibleListingsReturn> => {
2175
2306
  return this.fetch(this.url('ListCollectibleListings'), createHTTPRequest(args, headers, signal)).then(
2176
- res => {
2177
- return buildResponse(res).then(_data => {
2307
+ (res) => {
2308
+ return buildResponse(res).then((_data) => {
2178
2309
  return {
2179
2310
  listings: <Array<Order>>_data.listings,
2180
- page: <Page>_data.page
2311
+ page: <Page>_data.page,
2181
2312
  }
2182
2313
  })
2183
2314
  },
2184
- error => {
2185
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2186
- }
2315
+ (error) => {
2316
+ throw WebrpcRequestFailedError.new({
2317
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2318
+ })
2319
+ },
2187
2320
  )
2188
2321
  }
2189
2322
 
2190
2323
  listCollectibleOffers = (
2191
2324
  args: ListCollectibleOffersArgs,
2192
2325
  headers?: object,
2193
- signal?: AbortSignal
2326
+ signal?: AbortSignal,
2194
2327
  ): Promise<ListCollectibleOffersReturn> => {
2195
2328
  return this.fetch(this.url('ListCollectibleOffers'), createHTTPRequest(args, headers, signal)).then(
2196
- res => {
2197
- return buildResponse(res).then(_data => {
2329
+ (res) => {
2330
+ return buildResponse(res).then((_data) => {
2198
2331
  return {
2199
2332
  offers: <Array<Order>>_data.offers,
2200
- page: <Page>_data.page
2333
+ page: <Page>_data.page,
2201
2334
  }
2202
2335
  })
2203
2336
  },
2204
- error => {
2205
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2206
- }
2337
+ (error) => {
2338
+ throw WebrpcRequestFailedError.new({
2339
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2340
+ })
2341
+ },
2207
2342
  )
2208
2343
  }
2209
2344
 
2210
2345
  generateBuyTransaction = (
2211
2346
  args: GenerateBuyTransactionArgs,
2212
2347
  headers?: object,
2213
- signal?: AbortSignal
2348
+ signal?: AbortSignal,
2214
2349
  ): Promise<GenerateBuyTransactionReturn> => {
2215
2350
  return this.fetch(this.url('GenerateBuyTransaction'), createHTTPRequest(args, headers, signal)).then(
2216
- res => {
2217
- return buildResponse(res).then(_data => {
2351
+ (res) => {
2352
+ return buildResponse(res).then((_data) => {
2218
2353
  return {
2219
- steps: <Array<Step>>_data.steps
2354
+ steps: <Array<Step>>_data.steps,
2220
2355
  }
2221
2356
  })
2222
2357
  },
2223
- error => {
2224
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2225
- }
2358
+ (error) => {
2359
+ throw WebrpcRequestFailedError.new({
2360
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2361
+ })
2362
+ },
2226
2363
  )
2227
2364
  }
2228
2365
 
2229
2366
  generateSellTransaction = (
2230
2367
  args: GenerateSellTransactionArgs,
2231
2368
  headers?: object,
2232
- signal?: AbortSignal
2369
+ signal?: AbortSignal,
2233
2370
  ): Promise<GenerateSellTransactionReturn> => {
2234
2371
  return this.fetch(this.url('GenerateSellTransaction'), createHTTPRequest(args, headers, signal)).then(
2235
- res => {
2236
- return buildResponse(res).then(_data => {
2372
+ (res) => {
2373
+ return buildResponse(res).then((_data) => {
2237
2374
  return {
2238
- steps: <Array<Step>>_data.steps
2375
+ steps: <Array<Step>>_data.steps,
2239
2376
  }
2240
2377
  })
2241
2378
  },
2242
- error => {
2243
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2244
- }
2379
+ (error) => {
2380
+ throw WebrpcRequestFailedError.new({
2381
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2382
+ })
2383
+ },
2245
2384
  )
2246
2385
  }
2247
2386
 
2248
2387
  generateListingTransaction = (
2249
2388
  args: GenerateListingTransactionArgs,
2250
2389
  headers?: object,
2251
- signal?: AbortSignal
2390
+ signal?: AbortSignal,
2252
2391
  ): Promise<GenerateListingTransactionReturn> => {
2253
2392
  return this.fetch(this.url('GenerateListingTransaction'), createHTTPRequest(args, headers, signal)).then(
2254
- res => {
2255
- return buildResponse(res).then(_data => {
2393
+ (res) => {
2394
+ return buildResponse(res).then((_data) => {
2256
2395
  return {
2257
- steps: <Array<Step>>_data.steps
2396
+ steps: <Array<Step>>_data.steps,
2258
2397
  }
2259
2398
  })
2260
2399
  },
2261
- error => {
2262
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2263
- }
2400
+ (error) => {
2401
+ throw WebrpcRequestFailedError.new({
2402
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2403
+ })
2404
+ },
2264
2405
  )
2265
2406
  }
2266
2407
 
2267
2408
  generateOfferTransaction = (
2268
2409
  args: GenerateOfferTransactionArgs,
2269
2410
  headers?: object,
2270
- signal?: AbortSignal
2411
+ signal?: AbortSignal,
2271
2412
  ): Promise<GenerateOfferTransactionReturn> => {
2272
2413
  return this.fetch(this.url('GenerateOfferTransaction'), createHTTPRequest(args, headers, signal)).then(
2273
- res => {
2274
- return buildResponse(res).then(_data => {
2414
+ (res) => {
2415
+ return buildResponse(res).then((_data) => {
2275
2416
  return {
2276
- steps: <Array<Step>>_data.steps
2417
+ steps: <Array<Step>>_data.steps,
2277
2418
  }
2278
2419
  })
2279
2420
  },
2280
- error => {
2281
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2282
- }
2421
+ (error) => {
2422
+ throw WebrpcRequestFailedError.new({
2423
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2424
+ })
2425
+ },
2283
2426
  )
2284
2427
  }
2285
2428
 
2286
2429
  generateCancelTransaction = (
2287
2430
  args: GenerateCancelTransactionArgs,
2288
2431
  headers?: object,
2289
- signal?: AbortSignal
2432
+ signal?: AbortSignal,
2290
2433
  ): Promise<GenerateCancelTransactionReturn> => {
2291
2434
  return this.fetch(this.url('GenerateCancelTransaction'), createHTTPRequest(args, headers, signal)).then(
2292
- res => {
2293
- return buildResponse(res).then(_data => {
2435
+ (res) => {
2436
+ return buildResponse(res).then((_data) => {
2294
2437
  return {
2295
- steps: <Array<Step>>_data.steps
2438
+ steps: <Array<Step>>_data.steps,
2296
2439
  }
2297
2440
  })
2298
2441
  },
2299
- error => {
2300
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2301
- }
2442
+ (error) => {
2443
+ throw WebrpcRequestFailedError.new({
2444
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2445
+ })
2446
+ },
2302
2447
  )
2303
2448
  }
2304
2449
 
2305
2450
  execute = (args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn> => {
2306
2451
  return this.fetch(this.url('Execute'), createHTTPRequest(args, headers, signal)).then(
2307
- res => {
2308
- return buildResponse(res).then(_data => {
2452
+ (res) => {
2453
+ return buildResponse(res).then((_data) => {
2309
2454
  return {
2310
- orderId: <string>_data.orderId
2455
+ orderId: <string>_data.orderId,
2311
2456
  }
2312
2457
  })
2313
2458
  },
2314
- error => {
2315
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2316
- }
2459
+ (error) => {
2460
+ throw WebrpcRequestFailedError.new({
2461
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2462
+ })
2463
+ },
2317
2464
  )
2318
2465
  }
2319
2466
 
2320
- listCollectibles = (args: ListCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesReturn> => {
2467
+ listCollectibles = (
2468
+ args: ListCollectiblesArgs,
2469
+ headers?: object,
2470
+ signal?: AbortSignal,
2471
+ ): Promise<ListCollectiblesReturn> => {
2321
2472
  return this.fetch(this.url('ListCollectibles'), createHTTPRequest(args, headers, signal)).then(
2322
- res => {
2323
- return buildResponse(res).then(_data => {
2473
+ (res) => {
2474
+ return buildResponse(res).then((_data) => {
2324
2475
  return {
2325
2476
  collectibles: <Array<CollectibleOrder>>_data.collectibles,
2326
- page: <Page>_data.page
2477
+ page: <Page>_data.page,
2327
2478
  }
2328
2479
  })
2329
2480
  },
2330
- error => {
2331
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2332
- }
2481
+ (error) => {
2482
+ throw WebrpcRequestFailedError.new({
2483
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2484
+ })
2485
+ },
2333
2486
  )
2334
2487
  }
2335
2488
 
2336
2489
  getCountOfAllCollectibles = (
2337
2490
  args: GetCountOfAllCollectiblesArgs,
2338
2491
  headers?: object,
2339
- signal?: AbortSignal
2492
+ signal?: AbortSignal,
2340
2493
  ): Promise<GetCountOfAllCollectiblesReturn> => {
2341
2494
  return this.fetch(this.url('GetCountOfAllCollectibles'), createHTTPRequest(args, headers, signal)).then(
2342
- res => {
2343
- return buildResponse(res).then(_data => {
2495
+ (res) => {
2496
+ return buildResponse(res).then((_data) => {
2344
2497
  return {
2345
- count: <number>_data.count
2498
+ count: <number>_data.count,
2346
2499
  }
2347
2500
  })
2348
2501
  },
2349
- error => {
2350
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2351
- }
2502
+ (error) => {
2503
+ throw WebrpcRequestFailedError.new({
2504
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2505
+ })
2506
+ },
2352
2507
  )
2353
2508
  }
2354
2509
 
2355
2510
  getCountOfFilteredCollectibles = (
2356
2511
  args: GetCountOfFilteredCollectiblesArgs,
2357
2512
  headers?: object,
2358
- signal?: AbortSignal
2513
+ signal?: AbortSignal,
2359
2514
  ): Promise<GetCountOfFilteredCollectiblesReturn> => {
2360
2515
  return this.fetch(this.url('GetCountOfFilteredCollectibles'), createHTTPRequest(args, headers, signal)).then(
2361
- res => {
2362
- return buildResponse(res).then(_data => {
2516
+ (res) => {
2517
+ return buildResponse(res).then((_data) => {
2363
2518
  return {
2364
- count: <number>_data.count
2519
+ count: <number>_data.count,
2365
2520
  }
2366
2521
  })
2367
2522
  },
2368
- error => {
2369
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2370
- }
2523
+ (error) => {
2524
+ throw WebrpcRequestFailedError.new({
2525
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2526
+ })
2527
+ },
2371
2528
  )
2372
2529
  }
2373
2530
 
2374
2531
  getFloorOrder = (args: GetFloorOrderArgs, headers?: object, signal?: AbortSignal): Promise<GetFloorOrderReturn> => {
2375
2532
  return this.fetch(this.url('GetFloorOrder'), createHTTPRequest(args, headers, signal)).then(
2376
- res => {
2377
- return buildResponse(res).then(_data => {
2533
+ (res) => {
2534
+ return buildResponse(res).then((_data) => {
2378
2535
  return {
2379
- collectible: <CollectibleOrder>_data.collectible
2536
+ collectible: <CollectibleOrder>_data.collectible,
2380
2537
  }
2381
2538
  })
2382
2539
  },
2383
- error => {
2384
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2385
- }
2540
+ (error) => {
2541
+ throw WebrpcRequestFailedError.new({
2542
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2543
+ })
2544
+ },
2386
2545
  )
2387
2546
  }
2388
2547
 
2389
2548
  listCollectionActivities = (
2390
2549
  args: ListCollectionActivitiesArgs,
2391
2550
  headers?: object,
2392
- signal?: AbortSignal
2551
+ signal?: AbortSignal,
2393
2552
  ): Promise<ListCollectionActivitiesReturn> => {
2394
2553
  return this.fetch(this.url('ListCollectionActivities'), createHTTPRequest(args, headers, signal)).then(
2395
- res => {
2396
- return buildResponse(res).then(_data => {
2554
+ (res) => {
2555
+ return buildResponse(res).then((_data) => {
2397
2556
  return {
2398
2557
  activities: <Array<Activity>>_data.activities,
2399
- page: <Page>_data.page
2558
+ page: <Page>_data.page,
2400
2559
  }
2401
2560
  })
2402
2561
  },
2403
- error => {
2404
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2405
- }
2562
+ (error) => {
2563
+ throw WebrpcRequestFailedError.new({
2564
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2565
+ })
2566
+ },
2406
2567
  )
2407
2568
  }
2408
2569
 
2409
2570
  listCollectibleActivities = (
2410
2571
  args: ListCollectibleActivitiesArgs,
2411
2572
  headers?: object,
2412
- signal?: AbortSignal
2573
+ signal?: AbortSignal,
2413
2574
  ): Promise<ListCollectibleActivitiesReturn> => {
2414
2575
  return this.fetch(this.url('ListCollectibleActivities'), createHTTPRequest(args, headers, signal)).then(
2415
- res => {
2416
- return buildResponse(res).then(_data => {
2576
+ (res) => {
2577
+ return buildResponse(res).then((_data) => {
2417
2578
  return {
2418
2579
  activities: <Array<Activity>>_data.activities,
2419
- page: <Page>_data.page
2580
+ page: <Page>_data.page,
2420
2581
  }
2421
2582
  })
2422
2583
  },
2423
- error => {
2424
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2425
- }
2584
+ (error) => {
2585
+ throw WebrpcRequestFailedError.new({
2586
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2587
+ })
2588
+ },
2426
2589
  )
2427
2590
  }
2428
2591
 
2429
2592
  listCollectiblesWithLowestListing = (
2430
2593
  args: ListCollectiblesWithLowestListingArgs,
2431
2594
  headers?: object,
2432
- signal?: AbortSignal
2595
+ signal?: AbortSignal,
2433
2596
  ): Promise<ListCollectiblesWithLowestListingReturn> => {
2434
2597
  return this.fetch(this.url('ListCollectiblesWithLowestListing'), createHTTPRequest(args, headers, signal)).then(
2435
- res => {
2436
- return buildResponse(res).then(_data => {
2598
+ (res) => {
2599
+ return buildResponse(res).then((_data) => {
2437
2600
  return {
2438
2601
  collectibles: <Array<CollectibleOrder>>_data.collectibles,
2439
- page: <Page>_data.page
2602
+ page: <Page>_data.page,
2440
2603
  }
2441
2604
  })
2442
2605
  },
2443
- error => {
2444
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2445
- }
2606
+ (error) => {
2607
+ throw WebrpcRequestFailedError.new({
2608
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2609
+ })
2610
+ },
2446
2611
  )
2447
2612
  }
2448
2613
 
2449
2614
  listCollectiblesWithHighestOffer = (
2450
2615
  args: ListCollectiblesWithHighestOfferArgs,
2451
2616
  headers?: object,
2452
- signal?: AbortSignal
2617
+ signal?: AbortSignal,
2453
2618
  ): Promise<ListCollectiblesWithHighestOfferReturn> => {
2454
2619
  return this.fetch(this.url('ListCollectiblesWithHighestOffer'), createHTTPRequest(args, headers, signal)).then(
2455
- res => {
2456
- return buildResponse(res).then(_data => {
2620
+ (res) => {
2621
+ return buildResponse(res).then((_data) => {
2457
2622
  return {
2458
2623
  collectibles: <Array<CollectibleOrder>>_data.collectibles,
2459
- page: <Page>_data.page
2624
+ page: <Page>_data.page,
2460
2625
  }
2461
2626
  })
2462
2627
  },
2463
- error => {
2464
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2465
- }
2628
+ (error) => {
2629
+ throw WebrpcRequestFailedError.new({
2630
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2631
+ })
2632
+ },
2466
2633
  )
2467
2634
  }
2468
2635
 
2469
2636
  syncOrder = (args: SyncOrderArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrderReturn> => {
2470
2637
  return this.fetch(this.url('SyncOrder'), createHTTPRequest(args, headers, signal)).then(
2471
- res => {
2472
- return buildResponse(res).then(_data => {
2638
+ (res) => {
2639
+ return buildResponse(res).then((_data) => {
2473
2640
  return {}
2474
2641
  })
2475
2642
  },
2476
- error => {
2477
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2478
- }
2643
+ (error) => {
2644
+ throw WebrpcRequestFailedError.new({
2645
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2646
+ })
2647
+ },
2479
2648
  )
2480
2649
  }
2481
2650
 
2482
2651
  syncOrders = (args: SyncOrdersArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrdersReturn> => {
2483
2652
  return this.fetch(this.url('SyncOrders'), createHTTPRequest(args, headers, signal)).then(
2484
- res => {
2485
- return buildResponse(res).then(_data => {
2653
+ (res) => {
2654
+ return buildResponse(res).then((_data) => {
2486
2655
  return {}
2487
2656
  })
2488
2657
  },
2489
- error => {
2490
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2491
- }
2658
+ (error) => {
2659
+ throw WebrpcRequestFailedError.new({
2660
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2661
+ })
2662
+ },
2492
2663
  )
2493
2664
  }
2494
2665
 
2495
2666
  getOrders = (args: GetOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetOrdersReturn> => {
2496
2667
  return this.fetch(this.url('GetOrders'), createHTTPRequest(args, headers, signal)).then(
2497
- res => {
2498
- return buildResponse(res).then(_data => {
2668
+ (res) => {
2669
+ return buildResponse(res).then((_data) => {
2499
2670
  return {
2500
2671
  orders: <Array<Order>>_data.orders,
2501
- page: <Page>_data.page
2672
+ page: <Page>_data.page,
2502
2673
  }
2503
2674
  })
2504
2675
  },
2505
- error => {
2506
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2507
- }
2676
+ (error) => {
2677
+ throw WebrpcRequestFailedError.new({
2678
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2679
+ })
2680
+ },
2508
2681
  )
2509
2682
  }
2510
2683
 
2511
2684
  checkoutOptionsMarketplace = (
2512
2685
  args: CheckoutOptionsMarketplaceArgs,
2513
2686
  headers?: object,
2514
- signal?: AbortSignal
2687
+ signal?: AbortSignal,
2515
2688
  ): Promise<CheckoutOptionsMarketplaceReturn> => {
2516
2689
  return this.fetch(this.url('CheckoutOptionsMarketplace'), createHTTPRequest(args, headers, signal)).then(
2517
- res => {
2518
- return buildResponse(res).then(_data => {
2690
+ (res) => {
2691
+ return buildResponse(res).then((_data) => {
2519
2692
  return {
2520
- options: <CheckoutOptions>_data.options
2693
+ options: <CheckoutOptions>_data.options,
2521
2694
  }
2522
2695
  })
2523
2696
  },
2524
- error => {
2525
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2526
- }
2697
+ (error) => {
2698
+ throw WebrpcRequestFailedError.new({
2699
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2700
+ })
2701
+ },
2527
2702
  )
2528
2703
  }
2529
2704
 
2530
2705
  checkoutOptionsSalesContract = (
2531
2706
  args: CheckoutOptionsSalesContractArgs,
2532
2707
  headers?: object,
2533
- signal?: AbortSignal
2708
+ signal?: AbortSignal,
2534
2709
  ): Promise<CheckoutOptionsSalesContractReturn> => {
2535
2710
  return this.fetch(this.url('CheckoutOptionsSalesContract'), createHTTPRequest(args, headers, signal)).then(
2536
- res => {
2537
- return buildResponse(res).then(_data => {
2711
+ (res) => {
2712
+ return buildResponse(res).then((_data) => {
2538
2713
  return {
2539
- options: <CheckoutOptions>_data.options
2714
+ options: <CheckoutOptions>_data.options,
2540
2715
  }
2541
2716
  })
2542
2717
  },
2543
- error => {
2544
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2545
- }
2718
+ (error) => {
2719
+ throw WebrpcRequestFailedError.new({
2720
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2721
+ })
2722
+ },
2546
2723
  )
2547
2724
  }
2548
2725
 
2549
2726
  supportedMarketplaces = (
2550
2727
  args: SupportedMarketplacesArgs,
2551
2728
  headers?: object,
2552
- signal?: AbortSignal
2729
+ signal?: AbortSignal,
2553
2730
  ): Promise<SupportedMarketplacesReturn> => {
2554
2731
  return this.fetch(this.url('SupportedMarketplaces'), createHTTPRequest(args, headers, signal)).then(
2555
- res => {
2556
- return buildResponse(res).then(_data => {
2732
+ (res) => {
2733
+ return buildResponse(res).then((_data) => {
2557
2734
  return {
2558
- marketplaces: <Array<MarketplaceKind>>_data.marketplaces
2735
+ marketplaces: <Array<MarketplaceKind>>_data.marketplaces,
2559
2736
  }
2560
2737
  })
2561
2738
  },
2562
- error => {
2563
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2564
- }
2739
+ (error) => {
2740
+ throw WebrpcRequestFailedError.new({
2741
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2742
+ })
2743
+ },
2565
2744
  )
2566
2745
  }
2567
2746
 
2568
2747
  getPrimarySaleItem = (
2569
2748
  args: GetPrimarySaleItemArgs,
2570
2749
  headers?: object,
2571
- signal?: AbortSignal
2750
+ signal?: AbortSignal,
2572
2751
  ): Promise<GetPrimarySaleItemReturn> => {
2573
2752
  return this.fetch(this.url('GetPrimarySaleItem'), createHTTPRequest(args, headers, signal)).then(
2574
- res => {
2575
- return buildResponse(res).then(_data => {
2753
+ (res) => {
2754
+ return buildResponse(res).then((_data) => {
2576
2755
  return {
2577
- item: <CollectiblePrimarySaleItem>_data.item
2756
+ item: <CollectiblePrimarySaleItem>_data.item,
2578
2757
  }
2579
2758
  })
2580
2759
  },
2581
- error => {
2582
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2583
- }
2760
+ (error) => {
2761
+ throw WebrpcRequestFailedError.new({
2762
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2763
+ })
2764
+ },
2584
2765
  )
2585
2766
  }
2586
2767
 
2587
2768
  listPrimarySaleItems = (
2588
2769
  args: ListPrimarySaleItemsArgs,
2589
2770
  headers?: object,
2590
- signal?: AbortSignal
2771
+ signal?: AbortSignal,
2591
2772
  ): Promise<ListPrimarySaleItemsReturn> => {
2592
2773
  return this.fetch(this.url('ListPrimarySaleItems'), createHTTPRequest(args, headers, signal)).then(
2593
- res => {
2594
- return buildResponse(res).then(_data => {
2774
+ (res) => {
2775
+ return buildResponse(res).then((_data) => {
2595
2776
  return {
2596
2777
  primarySaleItems: <Array<CollectiblePrimarySaleItem>>_data.primarySaleItems,
2597
- page: <Page>_data.page
2778
+ page: <Page>_data.page,
2598
2779
  }
2599
2780
  })
2600
2781
  },
2601
- error => {
2602
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2603
- }
2782
+ (error) => {
2783
+ throw WebrpcRequestFailedError.new({
2784
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2785
+ })
2786
+ },
2604
2787
  )
2605
2788
  }
2606
2789
 
2607
2790
  getCountOfPrimarySaleItems = (
2608
2791
  args: GetCountOfPrimarySaleItemsArgs,
2609
2792
  headers?: object,
2610
- signal?: AbortSignal
2793
+ signal?: AbortSignal,
2611
2794
  ): Promise<GetCountOfPrimarySaleItemsReturn> => {
2612
2795
  return this.fetch(this.url('GetCountOfPrimarySaleItems'), createHTTPRequest(args, headers, signal)).then(
2613
- res => {
2614
- return buildResponse(res).then(_data => {
2796
+ (res) => {
2797
+ return buildResponse(res).then((_data) => {
2615
2798
  return {
2616
- count: <number>_data.count
2799
+ count: <number>_data.count,
2617
2800
  }
2618
2801
  })
2619
2802
  },
2620
- error => {
2621
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
2622
- }
2803
+ (error) => {
2804
+ throw WebrpcRequestFailedError.new({
2805
+ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`,
2806
+ })
2807
+ },
2623
2808
  )
2624
2809
  }
2625
2810
  }
@@ -2632,19 +2817,19 @@ const createHTTPRequest = (body: object = {}, headers: object = {}, signal: Abor
2632
2817
  method: 'POST',
2633
2818
  headers: reqHeaders,
2634
2819
  body: JSON.stringify(body || {}),
2635
- signal
2820
+ signal,
2636
2821
  }
2637
2822
  }
2638
2823
 
2639
2824
  const buildResponse = (res: Response): Promise<any> => {
2640
- return res.text().then(text => {
2825
+ return res.text().then((text) => {
2641
2826
  let data
2642
2827
  try {
2643
2828
  data = JSON.parse(text)
2644
2829
  } catch (error) {
2645
2830
  throw WebrpcBadResponseError.new({
2646
2831
  status: res.status,
2647
- cause: `JSON.parse(): ${error instanceof Error ? error.message : String(error)}: response text: ${text}`
2832
+ cause: `JSON.parse(): ${error instanceof Error ? error.message : String(error)}: response text: ${text}`,
2648
2833
  })
2649
2834
  }
2650
2835
  if (!res.ok) {
@@ -2693,7 +2878,7 @@ export class WebrpcEndpointError extends WebrpcError {
2693
2878
  code: number = 0,
2694
2879
  message: string = `endpoint error`,
2695
2880
  status: number = 400,
2696
- cause?: string
2881
+ cause?: string,
2697
2882
  ) {
2698
2883
  super(name, code, message, status, cause)
2699
2884
  Object.setPrototypeOf(this, WebrpcEndpointError.prototype)
@@ -2706,7 +2891,7 @@ export class WebrpcRequestFailedError extends WebrpcError {
2706
2891
  code: number = -1,
2707
2892
  message: string = `request failed`,
2708
2893
  status: number = 400,
2709
- cause?: string
2894
+ cause?: string,
2710
2895
  ) {
2711
2896
  super(name, code, message, status, cause)
2712
2897
  Object.setPrototypeOf(this, WebrpcRequestFailedError.prototype)
@@ -2719,7 +2904,7 @@ export class WebrpcBadRouteError extends WebrpcError {
2719
2904
  code: number = -2,
2720
2905
  message: string = `bad route`,
2721
2906
  status: number = 404,
2722
- cause?: string
2907
+ cause?: string,
2723
2908
  ) {
2724
2909
  super(name, code, message, status, cause)
2725
2910
  Object.setPrototypeOf(this, WebrpcBadRouteError.prototype)
@@ -2732,7 +2917,7 @@ export class WebrpcBadMethodError extends WebrpcError {
2732
2917
  code: number = -3,
2733
2918
  message: string = `bad method`,
2734
2919
  status: number = 405,
2735
- cause?: string
2920
+ cause?: string,
2736
2921
  ) {
2737
2922
  super(name, code, message, status, cause)
2738
2923
  Object.setPrototypeOf(this, WebrpcBadMethodError.prototype)
@@ -2745,7 +2930,7 @@ export class WebrpcBadRequestError extends WebrpcError {
2745
2930
  code: number = -4,
2746
2931
  message: string = `bad request`,
2747
2932
  status: number = 400,
2748
- cause?: string
2933
+ cause?: string,
2749
2934
  ) {
2750
2935
  super(name, code, message, status, cause)
2751
2936
  Object.setPrototypeOf(this, WebrpcBadRequestError.prototype)
@@ -2758,7 +2943,7 @@ export class WebrpcBadResponseError extends WebrpcError {
2758
2943
  code: number = -5,
2759
2944
  message: string = `bad response`,
2760
2945
  status: number = 500,
2761
- cause?: string
2946
+ cause?: string,
2762
2947
  ) {
2763
2948
  super(name, code, message, status, cause)
2764
2949
  Object.setPrototypeOf(this, WebrpcBadResponseError.prototype)
@@ -2771,7 +2956,7 @@ export class WebrpcServerPanicError extends WebrpcError {
2771
2956
  code: number = -6,
2772
2957
  message: string = `server panic`,
2773
2958
  status: number = 500,
2774
- cause?: string
2959
+ cause?: string,
2775
2960
  ) {
2776
2961
  super(name, code, message, status, cause)
2777
2962
  Object.setPrototypeOf(this, WebrpcServerPanicError.prototype)
@@ -2784,7 +2969,7 @@ export class WebrpcInternalErrorError extends WebrpcError {
2784
2969
  code: number = -7,
2785
2970
  message: string = `internal error`,
2786
2971
  status: number = 500,
2787
- cause?: string
2972
+ cause?: string,
2788
2973
  ) {
2789
2974
  super(name, code, message, status, cause)
2790
2975
  Object.setPrototypeOf(this, WebrpcInternalErrorError.prototype)
@@ -2797,7 +2982,7 @@ export class WebrpcClientAbortedError extends WebrpcError {
2797
2982
  code: number = -8,
2798
2983
  message: string = `request aborted by client`,
2799
2984
  status: number = 400,
2800
- cause?: string
2985
+ cause?: string,
2801
2986
  ) {
2802
2987
  super(name, code, message, status, cause)
2803
2988
  Object.setPrototypeOf(this, WebrpcClientAbortedError.prototype)
@@ -2810,7 +2995,7 @@ export class WebrpcStreamLostError extends WebrpcError {
2810
2995
  code: number = -9,
2811
2996
  message: string = `stream lost`,
2812
2997
  status: number = 400,
2813
- cause?: string
2998
+ cause?: string,
2814
2999
  ) {
2815
3000
  super(name, code, message, status, cause)
2816
3001
  Object.setPrototypeOf(this, WebrpcStreamLostError.prototype)
@@ -2823,7 +3008,7 @@ export class WebrpcStreamFinishedError extends WebrpcError {
2823
3008
  code: number = -10,
2824
3009
  message: string = `stream finished`,
2825
3010
  status: number = 200,
2826
- cause?: string
3011
+ cause?: string,
2827
3012
  ) {
2828
3013
  super(name, code, message, status, cause)
2829
3014
  Object.setPrototypeOf(this, WebrpcStreamFinishedError.prototype)
@@ -2838,7 +3023,7 @@ export class UnauthorizedError extends WebrpcError {
2838
3023
  code: number = 1000,
2839
3024
  message: string = `Unauthorized access`,
2840
3025
  status: number = 401,
2841
- cause?: string
3026
+ cause?: string,
2842
3027
  ) {
2843
3028
  super(name, code, message, status, cause)
2844
3029
  Object.setPrototypeOf(this, UnauthorizedError.prototype)
@@ -2851,7 +3036,7 @@ export class PermissionDeniedError extends WebrpcError {
2851
3036
  code: number = 1001,
2852
3037
  message: string = `Permission denied`,
2853
3038
  status: number = 403,
2854
- cause?: string
3039
+ cause?: string,
2855
3040
  ) {
2856
3041
  super(name, code, message, status, cause)
2857
3042
  Object.setPrototypeOf(this, PermissionDeniedError.prototype)
@@ -2864,7 +3049,7 @@ export class SessionExpiredError extends WebrpcError {
2864
3049
  code: number = 1002,
2865
3050
  message: string = `Session expired`,
2866
3051
  status: number = 403,
2867
- cause?: string
3052
+ cause?: string,
2868
3053
  ) {
2869
3054
  super(name, code, message, status, cause)
2870
3055
  Object.setPrototypeOf(this, SessionExpiredError.prototype)
@@ -2877,7 +3062,7 @@ export class MethodNotFoundError extends WebrpcError {
2877
3062
  code: number = 1003,
2878
3063
  message: string = `Method not found`,
2879
3064
  status: number = 404,
2880
- cause?: string
3065
+ cause?: string,
2881
3066
  ) {
2882
3067
  super(name, code, message, status, cause)
2883
3068
  Object.setPrototypeOf(this, MethodNotFoundError.prototype)
@@ -2890,7 +3075,7 @@ export class RequestConflictError extends WebrpcError {
2890
3075
  code: number = 1004,
2891
3076
  message: string = `Conflict with target resource`,
2892
3077
  status: number = 409,
2893
- cause?: string
3078
+ cause?: string,
2894
3079
  ) {
2895
3080
  super(name, code, message, status, cause)
2896
3081
  Object.setPrototypeOf(this, RequestConflictError.prototype)
@@ -2903,7 +3088,7 @@ export class AbortedError extends WebrpcError {
2903
3088
  code: number = 1005,
2904
3089
  message: string = `Request aborted`,
2905
3090
  status: number = 400,
2906
- cause?: string
3091
+ cause?: string,
2907
3092
  ) {
2908
3093
  super(name, code, message, status, cause)
2909
3094
  Object.setPrototypeOf(this, AbortedError.prototype)
@@ -2916,7 +3101,7 @@ export class GeoblockedError extends WebrpcError {
2916
3101
  code: number = 1006,
2917
3102
  message: string = `Geoblocked region`,
2918
3103
  status: number = 451,
2919
- cause?: string
3104
+ cause?: string,
2920
3105
  ) {
2921
3106
  super(name, code, message, status, cause)
2922
3107
  Object.setPrototypeOf(this, GeoblockedError.prototype)
@@ -2929,7 +3114,7 @@ export class RateLimitedError extends WebrpcError {
2929
3114
  code: number = 1007,
2930
3115
  message: string = `Rate-limited. Please slow down.`,
2931
3116
  status: number = 429,
2932
- cause?: string
3117
+ cause?: string,
2933
3118
  ) {
2934
3119
  super(name, code, message, status, cause)
2935
3120
  Object.setPrototypeOf(this, RateLimitedError.prototype)
@@ -2942,7 +3127,7 @@ export class ProjectNotFoundError extends WebrpcError {
2942
3127
  code: number = 1008,
2943
3128
  message: string = `Project not found`,
2944
3129
  status: number = 401,
2945
- cause?: string
3130
+ cause?: string,
2946
3131
  ) {
2947
3132
  super(name, code, message, status, cause)
2948
3133
  Object.setPrototypeOf(this, ProjectNotFoundError.prototype)
@@ -2955,7 +3140,7 @@ export class SecretKeyCorsDisallowedError extends WebrpcError {
2955
3140
  code: number = 1009,
2956
3141
  message: string = `CORS disallowed. Admin API Secret Key can't be used from a web app.`,
2957
3142
  status: number = 403,
2958
- cause?: string
3143
+ cause?: string,
2959
3144
  ) {
2960
3145
  super(name, code, message, status, cause)
2961
3146
  Object.setPrototypeOf(this, SecretKeyCorsDisallowedError.prototype)
@@ -2968,7 +3153,7 @@ export class AccessKeyNotFoundError extends WebrpcError {
2968
3153
  code: number = 1101,
2969
3154
  message: string = `Access key not found`,
2970
3155
  status: number = 401,
2971
- cause?: string
3156
+ cause?: string,
2972
3157
  ) {
2973
3158
  super(name, code, message, status, cause)
2974
3159
  Object.setPrototypeOf(this, AccessKeyNotFoundError.prototype)
@@ -2981,7 +3166,7 @@ export class AccessKeyMismatchError extends WebrpcError {
2981
3166
  code: number = 1102,
2982
3167
  message: string = `Access key mismatch`,
2983
3168
  status: number = 403,
2984
- cause?: string
3169
+ cause?: string,
2985
3170
  ) {
2986
3171
  super(name, code, message, status, cause)
2987
3172
  Object.setPrototypeOf(this, AccessKeyMismatchError.prototype)
@@ -2994,7 +3179,7 @@ export class InvalidOriginError extends WebrpcError {
2994
3179
  code: number = 1103,
2995
3180
  message: string = `Invalid origin for Access Key`,
2996
3181
  status: number = 403,
2997
- cause?: string
3182
+ cause?: string,
2998
3183
  ) {
2999
3184
  super(name, code, message, status, cause)
3000
3185
  Object.setPrototypeOf(this, InvalidOriginError.prototype)
@@ -3007,7 +3192,7 @@ export class InvalidServiceError extends WebrpcError {
3007
3192
  code: number = 1104,
3008
3193
  message: string = `Service not enabled for Access key`,
3009
3194
  status: number = 403,
3010
- cause?: string
3195
+ cause?: string,
3011
3196
  ) {
3012
3197
  super(name, code, message, status, cause)
3013
3198
  Object.setPrototypeOf(this, InvalidServiceError.prototype)
@@ -3020,7 +3205,7 @@ export class UnauthorizedUserError extends WebrpcError {
3020
3205
  code: number = 1105,
3021
3206
  message: string = `Unauthorized user`,
3022
3207
  status: number = 403,
3023
- cause?: string
3208
+ cause?: string,
3024
3209
  ) {
3025
3210
  super(name, code, message, status, cause)
3026
3211
  Object.setPrototypeOf(this, UnauthorizedUserError.prototype)
@@ -3033,7 +3218,7 @@ export class InvalidChainError extends WebrpcError {
3033
3218
  code: number = 1106,
3034
3219
  message: string = `Network not enabled for Access key`,
3035
3220
  status: number = 403,
3036
- cause?: string
3221
+ cause?: string,
3037
3222
  ) {
3038
3223
  super(name, code, message, status, cause)
3039
3224
  Object.setPrototypeOf(this, InvalidChainError.prototype)
@@ -3046,7 +3231,7 @@ export class QuotaExceededError extends WebrpcError {
3046
3231
  code: number = 1200,
3047
3232
  message: string = `Quota request exceeded`,
3048
3233
  status: number = 429,
3049
- cause?: string
3234
+ cause?: string,
3050
3235
  ) {
3051
3236
  super(name, code, message, status, cause)
3052
3237
  Object.setPrototypeOf(this, QuotaExceededError.prototype)
@@ -3059,7 +3244,7 @@ export class QuotaRateLimitError extends WebrpcError {
3059
3244
  code: number = 1201,
3060
3245
  message: string = `Quota rate limit exceeded`,
3061
3246
  status: number = 429,
3062
- cause?: string
3247
+ cause?: string,
3063
3248
  ) {
3064
3249
  super(name, code, message, status, cause)
3065
3250
  Object.setPrototypeOf(this, QuotaRateLimitError.prototype)
@@ -3072,7 +3257,7 @@ export class NoDefaultKeyError extends WebrpcError {
3072
3257
  code: number = 1300,
3073
3258
  message: string = `No default access key found`,
3074
3259
  status: number = 403,
3075
- cause?: string
3260
+ cause?: string,
3076
3261
  ) {
3077
3262
  super(name, code, message, status, cause)
3078
3263
  Object.setPrototypeOf(this, NoDefaultKeyError.prototype)
@@ -3085,7 +3270,7 @@ export class MaxAccessKeysError extends WebrpcError {
3085
3270
  code: number = 1301,
3086
3271
  message: string = `Access keys limit reached`,
3087
3272
  status: number = 403,
3088
- cause?: string
3273
+ cause?: string,
3089
3274
  ) {
3090
3275
  super(name, code, message, status, cause)
3091
3276
  Object.setPrototypeOf(this, MaxAccessKeysError.prototype)
@@ -3098,7 +3283,7 @@ export class AtLeastOneKeyError extends WebrpcError {
3098
3283
  code: number = 1302,
3099
3284
  message: string = `You need at least one Access Key`,
3100
3285
  status: number = 403,
3101
- cause?: string
3286
+ cause?: string,
3102
3287
  ) {
3103
3288
  super(name, code, message, status, cause)
3104
3289
  Object.setPrototypeOf(this, AtLeastOneKeyError.prototype)
@@ -3111,7 +3296,7 @@ export class TimeoutError extends WebrpcError {
3111
3296
  code: number = 1900,
3112
3297
  message: string = `Request timed out`,
3113
3298
  status: number = 408,
3114
- cause?: string
3299
+ cause?: string,
3115
3300
  ) {
3116
3301
  super(name, code, message, status, cause)
3117
3302
  Object.setPrototypeOf(this, TimeoutError.prototype)
@@ -3124,7 +3309,7 @@ export class NotFoundError extends WebrpcError {
3124
3309
  code: number = 2000,
3125
3310
  message: string = `Resource not found`,
3126
3311
  status: number = 400,
3127
- cause?: string
3312
+ cause?: string,
3128
3313
  ) {
3129
3314
  super(name, code, message, status, cause)
3130
3315
  Object.setPrototypeOf(this, NotFoundError.prototype)
@@ -3137,7 +3322,7 @@ export class InvalidArgumentError extends WebrpcError {
3137
3322
  code: number = 2001,
3138
3323
  message: string = `Invalid argument`,
3139
3324
  status: number = 400,
3140
- cause?: string
3325
+ cause?: string,
3141
3326
  ) {
3142
3327
  super(name, code, message, status, cause)
3143
3328
  Object.setPrototypeOf(this, InvalidArgumentError.prototype)
@@ -3150,7 +3335,7 @@ export class NotImplementedError extends WebrpcError {
3150
3335
  code: number = 9999,
3151
3336
  message: string = `Not Implemented`,
3152
3337
  status: number = 500,
3153
- cause?: string
3338
+ cause?: string,
3154
3339
  ) {
3155
3340
  super(name, code, message, status, cause)
3156
3341
  Object.setPrototypeOf(this, NotImplementedError.prototype)
@@ -3193,7 +3378,7 @@ export enum errors {
3193
3378
  Timeout = 'Timeout',
3194
3379
  NotFound = 'NotFound',
3195
3380
  InvalidArgument = 'InvalidArgument',
3196
- NotImplemented = 'NotImplemented'
3381
+ NotImplemented = 'NotImplemented',
3197
3382
  }
3198
3383
 
3199
3384
  export enum WebrpcErrorCodes {
@@ -3232,7 +3417,7 @@ export enum WebrpcErrorCodes {
3232
3417
  Timeout = 1900,
3233
3418
  NotFound = 2000,
3234
3419
  InvalidArgument = 2001,
3235
- NotImplemented = 9999
3420
+ NotImplemented = 9999,
3236
3421
  }
3237
3422
 
3238
3423
  export const webrpcErrorByCode: { [code: number]: any } = {
@@ -3271,7 +3456,7 @@ export const webrpcErrorByCode: { [code: number]: any } = {
3271
3456
  [1900]: TimeoutError,
3272
3457
  [2000]: NotFoundError,
3273
3458
  [2001]: InvalidArgumentError,
3274
- [9999]: NotImplementedError
3459
+ [9999]: NotImplementedError,
3275
3460
  }
3276
3461
 
3277
3462
  export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>