@snagsolutions/sdk 0.1.0-alpha.216 → 0.1.0-alpha.218
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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/loyalty/rules.d.ts +12 -0
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +12 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/minting/contracts.d.ts +127 -1
- package/resources/minting/contracts.d.ts.map +1 -1
- package/resources/minting/contracts.js +7 -0
- package/resources/minting/contracts.js.map +1 -1
- package/resources/minting/contracts.mjs +7 -0
- package/resources/minting/contracts.mjs.map +1 -1
- package/resources/minting/index.d.ts +1 -1
- package/resources/minting/index.d.ts.map +1 -1
- package/resources/minting/index.js.map +1 -1
- package/resources/minting/index.mjs +1 -1
- package/resources/minting/index.mjs.map +1 -1
- package/resources/minting/minting.d.ts +2 -2
- package/resources/minting/minting.d.ts.map +1 -1
- package/resources/minting/minting.js.map +1 -1
- package/resources/minting/minting.mjs +1 -1
- package/resources/minting/minting.mjs.map +1 -1
- package/src/resources/loyalty/rules.ts +15 -0
- package/src/resources/loyalty/transactions/transactions.ts +15 -0
- package/src/resources/minting/contracts.ts +333 -1
- package/src/resources/minting/index.ts +7 -1
- package/src/resources/minting/minting.ts +9 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
4
5
|
import * as Core from '../../core';
|
|
5
6
|
|
|
6
7
|
export class Contracts extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get minting contracts
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const contracts = await client.minting.contracts.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(query?: ContractListParams, options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
18
|
+
list(
|
|
19
|
+
query: ContractListParams | Core.RequestOptions = {},
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<ContractListResponse> {
|
|
22
|
+
if (isRequestOptions(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
25
|
+
return this._client.get('/api/minting/contracts', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
7
28
|
/**
|
|
8
29
|
* Generates a signature for minting an asset on a given contract
|
|
9
30
|
*
|
|
@@ -20,6 +41,298 @@ export class Contracts extends APIResource {
|
|
|
20
41
|
}
|
|
21
42
|
}
|
|
22
43
|
|
|
44
|
+
export interface ContractListResponse {
|
|
45
|
+
data: Array<ContractListResponse.Data>;
|
|
46
|
+
|
|
47
|
+
hasNextPage: boolean;
|
|
48
|
+
|
|
49
|
+
stats: Array<ContractListResponse.Stat>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace ContractListResponse {
|
|
53
|
+
export interface Data {
|
|
54
|
+
id: string;
|
|
55
|
+
|
|
56
|
+
_count: Data._Count;
|
|
57
|
+
|
|
58
|
+
address: string;
|
|
59
|
+
|
|
60
|
+
description: string | null;
|
|
61
|
+
|
|
62
|
+
enableGasless: boolean;
|
|
63
|
+
|
|
64
|
+
externalLinkUrl: string | null;
|
|
65
|
+
|
|
66
|
+
hasRevealMechanic: boolean;
|
|
67
|
+
|
|
68
|
+
hideInactiveListings: boolean;
|
|
69
|
+
|
|
70
|
+
imageUrl: string | null;
|
|
71
|
+
|
|
72
|
+
isFreeClaimForBadgeHolders: boolean;
|
|
73
|
+
|
|
74
|
+
isFreeClaimForTokenHolders: boolean;
|
|
75
|
+
|
|
76
|
+
isListed: boolean;
|
|
77
|
+
|
|
78
|
+
isPerAssetMintLimit: boolean;
|
|
79
|
+
|
|
80
|
+
isSoulbound: boolean;
|
|
81
|
+
|
|
82
|
+
mintingContractAssets: Array<Data.MintingContractAsset>;
|
|
83
|
+
|
|
84
|
+
mintingContractBadgeAssociation: Array<Data.MintingContractBadgeAssociation>;
|
|
85
|
+
|
|
86
|
+
mustOwnCollections: Array<Data.MustOwnCollection>;
|
|
87
|
+
|
|
88
|
+
name: string;
|
|
89
|
+
|
|
90
|
+
network:
|
|
91
|
+
| 'abstract'
|
|
92
|
+
| 'abstractTestnet'
|
|
93
|
+
| 'apechain'
|
|
94
|
+
| 'arbitrum'
|
|
95
|
+
| 'avalanche'
|
|
96
|
+
| 'avalancheFuji'
|
|
97
|
+
| 'base'
|
|
98
|
+
| 'baseSepolia'
|
|
99
|
+
| 'berachain'
|
|
100
|
+
| 'berachainArtio'
|
|
101
|
+
| 'berachainBepolia'
|
|
102
|
+
| 'binance'
|
|
103
|
+
| 'bscTestnet'
|
|
104
|
+
| 'campTestnet'
|
|
105
|
+
| 'fantom'
|
|
106
|
+
| 'fantomTestnet'
|
|
107
|
+
| 'flowMainnet'
|
|
108
|
+
| 'mainnet'
|
|
109
|
+
| 'nexusTestnet'
|
|
110
|
+
| 'optimism'
|
|
111
|
+
| 'polygon'
|
|
112
|
+
| 'polygon_mumbai'
|
|
113
|
+
| 'skaleNebula'
|
|
114
|
+
| 'skaleEuropa'
|
|
115
|
+
| 'skaleCalypso'
|
|
116
|
+
| 'solana'
|
|
117
|
+
| 'sophon'
|
|
118
|
+
| 'sophonTestnet'
|
|
119
|
+
| 'sui'
|
|
120
|
+
| 'superseed'
|
|
121
|
+
| 'superseedSepolia'
|
|
122
|
+
| 'vanar'
|
|
123
|
+
| 'xai'
|
|
124
|
+
| 'zksync'
|
|
125
|
+
| 'coti'
|
|
126
|
+
| 'cotiTestnet'
|
|
127
|
+
| 'morph'
|
|
128
|
+
| 'morphTestnet'
|
|
129
|
+
| 'morphHolesky'
|
|
130
|
+
| 'ultra'
|
|
131
|
+
| 'ultraTestnet'
|
|
132
|
+
| 'nitrograph'
|
|
133
|
+
| 'sepolia'
|
|
134
|
+
| 'optimism_sepolia'
|
|
135
|
+
| 'arbitrumSepolia'
|
|
136
|
+
| 'goerli'
|
|
137
|
+
| 'optimism_goerli'
|
|
138
|
+
| 'arbitrumGoerli'
|
|
139
|
+
| 'basecamp'
|
|
140
|
+
| 'somnia'
|
|
141
|
+
| 'zkverify'
|
|
142
|
+
| 'polkadot'
|
|
143
|
+
| 'kusama'
|
|
144
|
+
| 'flow_cadence';
|
|
145
|
+
|
|
146
|
+
organizationId: string;
|
|
147
|
+
|
|
148
|
+
preRevealMedia: string | null;
|
|
149
|
+
|
|
150
|
+
primarySaleRecipientAddress: string;
|
|
151
|
+
|
|
152
|
+
relayerId: string | null;
|
|
153
|
+
|
|
154
|
+
requireHoldingAllGatedItems: boolean;
|
|
155
|
+
|
|
156
|
+
revealAvailableAt: string | null;
|
|
157
|
+
|
|
158
|
+
royaltyFee: unknown;
|
|
159
|
+
|
|
160
|
+
royaltyFeeAddress: string;
|
|
161
|
+
|
|
162
|
+
shouldCollectEmail: boolean;
|
|
163
|
+
|
|
164
|
+
showOnMarketplace: boolean;
|
|
165
|
+
|
|
166
|
+
sortId: number | null;
|
|
167
|
+
|
|
168
|
+
symbol: string;
|
|
169
|
+
|
|
170
|
+
tokenType: 'erc721' | 'erc1155' | 'erc721c';
|
|
171
|
+
|
|
172
|
+
websiteCollectionId: string | null;
|
|
173
|
+
|
|
174
|
+
websiteId: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace Data {
|
|
178
|
+
export interface _Count {
|
|
179
|
+
mintingContractAssets: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface MintingContractAsset {
|
|
183
|
+
id: string;
|
|
184
|
+
|
|
185
|
+
animationUrl: string | null;
|
|
186
|
+
|
|
187
|
+
assetNr: number;
|
|
188
|
+
|
|
189
|
+
auctionItems: Array<MintingContractAsset.AuctionItem>;
|
|
190
|
+
|
|
191
|
+
collectInfoType: 'customInput' | 'freeText' | 'shippingDetails' | null;
|
|
192
|
+
|
|
193
|
+
currencyAddress: string | null;
|
|
194
|
+
|
|
195
|
+
currencyDecimals: number | null;
|
|
196
|
+
|
|
197
|
+
description: string | null;
|
|
198
|
+
|
|
199
|
+
imageUrl: string | null;
|
|
200
|
+
|
|
201
|
+
isHidden: boolean;
|
|
202
|
+
|
|
203
|
+
isListed: boolean;
|
|
204
|
+
|
|
205
|
+
isPhygitalItem: boolean;
|
|
206
|
+
|
|
207
|
+
listingEndsAt: string | null;
|
|
208
|
+
|
|
209
|
+
listingStartsAt: string | null;
|
|
210
|
+
|
|
211
|
+
loyaltyCurrencyId: string | null;
|
|
212
|
+
|
|
213
|
+
name: string;
|
|
214
|
+
|
|
215
|
+
organizationId: string;
|
|
216
|
+
|
|
217
|
+
price: unknown;
|
|
218
|
+
|
|
219
|
+
quantity: number;
|
|
220
|
+
|
|
221
|
+
quantityMinted: number;
|
|
222
|
+
|
|
223
|
+
revealedAt: string | null;
|
|
224
|
+
|
|
225
|
+
shouldCollectUserInfo: boolean;
|
|
226
|
+
|
|
227
|
+
tokenId: number | null;
|
|
228
|
+
|
|
229
|
+
unlimitedQty: boolean;
|
|
230
|
+
|
|
231
|
+
websiteId: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export namespace MintingContractAsset {
|
|
235
|
+
export interface AuctionItem {
|
|
236
|
+
id: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface MintingContractBadgeAssociation {
|
|
241
|
+
loyaltyBadge: MintingContractBadgeAssociation.LoyaltyBadge;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export namespace MintingContractBadgeAssociation {
|
|
245
|
+
export interface LoyaltyBadge {
|
|
246
|
+
id: string;
|
|
247
|
+
|
|
248
|
+
imageUrl: string | null;
|
|
249
|
+
|
|
250
|
+
name: string;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface MustOwnCollection {
|
|
255
|
+
address: string;
|
|
256
|
+
|
|
257
|
+
network:
|
|
258
|
+
| 'abstract'
|
|
259
|
+
| 'abstractTestnet'
|
|
260
|
+
| 'apechain'
|
|
261
|
+
| 'arbitrum'
|
|
262
|
+
| 'avalanche'
|
|
263
|
+
| 'avalancheFuji'
|
|
264
|
+
| 'base'
|
|
265
|
+
| 'baseSepolia'
|
|
266
|
+
| 'berachain'
|
|
267
|
+
| 'berachainArtio'
|
|
268
|
+
| 'berachainBepolia'
|
|
269
|
+
| 'binance'
|
|
270
|
+
| 'bscTestnet'
|
|
271
|
+
| 'campTestnet'
|
|
272
|
+
| 'fantom'
|
|
273
|
+
| 'fantomTestnet'
|
|
274
|
+
| 'flowMainnet'
|
|
275
|
+
| 'mainnet'
|
|
276
|
+
| 'nexusTestnet'
|
|
277
|
+
| 'optimism'
|
|
278
|
+
| 'polygon'
|
|
279
|
+
| 'polygon_mumbai'
|
|
280
|
+
| 'skaleNebula'
|
|
281
|
+
| 'skaleEuropa'
|
|
282
|
+
| 'skaleCalypso'
|
|
283
|
+
| 'solana'
|
|
284
|
+
| 'sophon'
|
|
285
|
+
| 'sophonTestnet'
|
|
286
|
+
| 'sui'
|
|
287
|
+
| 'superseed'
|
|
288
|
+
| 'superseedSepolia'
|
|
289
|
+
| 'vanar'
|
|
290
|
+
| 'xai'
|
|
291
|
+
| 'zksync'
|
|
292
|
+
| 'coti'
|
|
293
|
+
| 'cotiTestnet'
|
|
294
|
+
| 'morph'
|
|
295
|
+
| 'morphTestnet'
|
|
296
|
+
| 'morphHolesky'
|
|
297
|
+
| 'ultra'
|
|
298
|
+
| 'ultraTestnet'
|
|
299
|
+
| 'nitrograph'
|
|
300
|
+
| 'sepolia'
|
|
301
|
+
| 'optimism_sepolia'
|
|
302
|
+
| 'arbitrumSepolia'
|
|
303
|
+
| 'goerli'
|
|
304
|
+
| 'optimism_goerli'
|
|
305
|
+
| 'arbitrumGoerli'
|
|
306
|
+
| 'basecamp'
|
|
307
|
+
| 'somnia'
|
|
308
|
+
| 'zkverify'
|
|
309
|
+
| 'polkadot'
|
|
310
|
+
| 'kusama'
|
|
311
|
+
| 'flow_cadence';
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface Stat {
|
|
316
|
+
_count: Stat._Count;
|
|
317
|
+
|
|
318
|
+
_sum: Stat._Sum;
|
|
319
|
+
|
|
320
|
+
mintingContractId: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export namespace Stat {
|
|
324
|
+
export interface _Count {
|
|
325
|
+
isListed: number;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface _Sum {
|
|
329
|
+
quantity: number | null;
|
|
330
|
+
|
|
331
|
+
quantityMinted: number | null;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
23
336
|
/**
|
|
24
337
|
* Use the id returned here to fetch the status and signature of the mint from the
|
|
25
338
|
* `/api/minting/status/:id` endpoint
|
|
@@ -28,6 +341,20 @@ export interface ContractMintResponse {
|
|
|
28
341
|
mintingContractAssetMintStatusId: string;
|
|
29
342
|
}
|
|
30
343
|
|
|
344
|
+
export interface ContractListParams {
|
|
345
|
+
includeDeleted?: boolean | null;
|
|
346
|
+
|
|
347
|
+
limit?: number;
|
|
348
|
+
|
|
349
|
+
organizationId?: string;
|
|
350
|
+
|
|
351
|
+
showOnMarketplace?: boolean | null;
|
|
352
|
+
|
|
353
|
+
startingAfter?: string;
|
|
354
|
+
|
|
355
|
+
websiteId?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
31
358
|
export interface ContractMintParams {
|
|
32
359
|
assetId: string;
|
|
33
360
|
|
|
@@ -69,5 +396,10 @@ export interface ContractMintParams {
|
|
|
69
396
|
}
|
|
70
397
|
|
|
71
398
|
export declare namespace Contracts {
|
|
72
|
-
export {
|
|
399
|
+
export {
|
|
400
|
+
type ContractListResponse as ContractListResponse,
|
|
401
|
+
type ContractMintResponse as ContractMintResponse,
|
|
402
|
+
type ContractListParams as ContractListParams,
|
|
403
|
+
type ContractMintParams as ContractMintParams,
|
|
404
|
+
};
|
|
73
405
|
}
|
|
@@ -7,7 +7,13 @@ export {
|
|
|
7
7
|
type AllowlistListParams,
|
|
8
8
|
type AllowlistUpsertParams,
|
|
9
9
|
} from './allowlist';
|
|
10
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
Contracts,
|
|
12
|
+
type ContractListResponse,
|
|
13
|
+
type ContractMintResponse,
|
|
14
|
+
type ContractListParams,
|
|
15
|
+
type ContractMintParams,
|
|
16
|
+
} from './contracts';
|
|
11
17
|
export {
|
|
12
18
|
Minting,
|
|
13
19
|
type MintingGetAssetsResponse,
|
|
@@ -11,7 +11,13 @@ import {
|
|
|
11
11
|
AllowlistUpsertResponse,
|
|
12
12
|
} from './allowlist';
|
|
13
13
|
import * as ContractsAPI from './contracts';
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
ContractListParams,
|
|
16
|
+
ContractListResponse,
|
|
17
|
+
ContractMintParams,
|
|
18
|
+
ContractMintResponse,
|
|
19
|
+
Contracts,
|
|
20
|
+
} from './contracts';
|
|
15
21
|
import * as StatusAPI from './status';
|
|
16
22
|
import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from './status';
|
|
17
23
|
|
|
@@ -263,7 +269,9 @@ export declare namespace Minting {
|
|
|
263
269
|
|
|
264
270
|
export {
|
|
265
271
|
Contracts as Contracts,
|
|
272
|
+
type ContractListResponse as ContractListResponse,
|
|
266
273
|
type ContractMintResponse as ContractMintResponse,
|
|
274
|
+
type ContractListParams as ContractListParams,
|
|
267
275
|
type ContractMintParams as ContractMintParams,
|
|
268
276
|
};
|
|
269
277
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.218'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.218";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.218'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.218'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|