@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,6 +1,16 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
export declare class Contracts extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get minting contracts
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const contracts = await client.minting.contracts.list();
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
list(query?: ContractListParams, options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
13
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
4
14
|
/**
|
|
5
15
|
* Generates a signature for minting an asset on a given contract
|
|
6
16
|
*
|
|
@@ -14,6 +24,114 @@ export declare class Contracts extends APIResource {
|
|
|
14
24
|
*/
|
|
15
25
|
mint(body: ContractMintParams, options?: Core.RequestOptions): Core.APIPromise<ContractMintResponse>;
|
|
16
26
|
}
|
|
27
|
+
export interface ContractListResponse {
|
|
28
|
+
data: Array<ContractListResponse.Data>;
|
|
29
|
+
hasNextPage: boolean;
|
|
30
|
+
stats: Array<ContractListResponse.Stat>;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace ContractListResponse {
|
|
33
|
+
interface Data {
|
|
34
|
+
id: string;
|
|
35
|
+
_count: Data._Count;
|
|
36
|
+
address: string;
|
|
37
|
+
description: string | null;
|
|
38
|
+
enableGasless: boolean;
|
|
39
|
+
externalLinkUrl: string | null;
|
|
40
|
+
hasRevealMechanic: boolean;
|
|
41
|
+
hideInactiveListings: boolean;
|
|
42
|
+
imageUrl: string | null;
|
|
43
|
+
isFreeClaimForBadgeHolders: boolean;
|
|
44
|
+
isFreeClaimForTokenHolders: boolean;
|
|
45
|
+
isListed: boolean;
|
|
46
|
+
isPerAssetMintLimit: boolean;
|
|
47
|
+
isSoulbound: boolean;
|
|
48
|
+
mintingContractAssets: Array<Data.MintingContractAsset>;
|
|
49
|
+
mintingContractBadgeAssociation: Array<Data.MintingContractBadgeAssociation>;
|
|
50
|
+
mustOwnCollections: Array<Data.MustOwnCollection>;
|
|
51
|
+
name: string;
|
|
52
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
53
|
+
organizationId: string;
|
|
54
|
+
preRevealMedia: string | null;
|
|
55
|
+
primarySaleRecipientAddress: string;
|
|
56
|
+
relayerId: string | null;
|
|
57
|
+
requireHoldingAllGatedItems: boolean;
|
|
58
|
+
revealAvailableAt: string | null;
|
|
59
|
+
royaltyFee: unknown;
|
|
60
|
+
royaltyFeeAddress: string;
|
|
61
|
+
shouldCollectEmail: boolean;
|
|
62
|
+
showOnMarketplace: boolean;
|
|
63
|
+
sortId: number | null;
|
|
64
|
+
symbol: string;
|
|
65
|
+
tokenType: 'erc721' | 'erc1155' | 'erc721c';
|
|
66
|
+
websiteCollectionId: string | null;
|
|
67
|
+
websiteId: string;
|
|
68
|
+
}
|
|
69
|
+
namespace Data {
|
|
70
|
+
interface _Count {
|
|
71
|
+
mintingContractAssets: number;
|
|
72
|
+
}
|
|
73
|
+
interface MintingContractAsset {
|
|
74
|
+
id: string;
|
|
75
|
+
animationUrl: string | null;
|
|
76
|
+
assetNr: number;
|
|
77
|
+
auctionItems: Array<MintingContractAsset.AuctionItem>;
|
|
78
|
+
collectInfoType: 'customInput' | 'freeText' | 'shippingDetails' | null;
|
|
79
|
+
currencyAddress: string | null;
|
|
80
|
+
currencyDecimals: number | null;
|
|
81
|
+
description: string | null;
|
|
82
|
+
imageUrl: string | null;
|
|
83
|
+
isHidden: boolean;
|
|
84
|
+
isListed: boolean;
|
|
85
|
+
isPhygitalItem: boolean;
|
|
86
|
+
listingEndsAt: string | null;
|
|
87
|
+
listingStartsAt: string | null;
|
|
88
|
+
loyaltyCurrencyId: string | null;
|
|
89
|
+
name: string;
|
|
90
|
+
organizationId: string;
|
|
91
|
+
price: unknown;
|
|
92
|
+
quantity: number;
|
|
93
|
+
quantityMinted: number;
|
|
94
|
+
revealedAt: string | null;
|
|
95
|
+
shouldCollectUserInfo: boolean;
|
|
96
|
+
tokenId: number | null;
|
|
97
|
+
unlimitedQty: boolean;
|
|
98
|
+
websiteId: string;
|
|
99
|
+
}
|
|
100
|
+
namespace MintingContractAsset {
|
|
101
|
+
interface AuctionItem {
|
|
102
|
+
id: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface MintingContractBadgeAssociation {
|
|
106
|
+
loyaltyBadge: MintingContractBadgeAssociation.LoyaltyBadge;
|
|
107
|
+
}
|
|
108
|
+
namespace MintingContractBadgeAssociation {
|
|
109
|
+
interface LoyaltyBadge {
|
|
110
|
+
id: string;
|
|
111
|
+
imageUrl: string | null;
|
|
112
|
+
name: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
interface MustOwnCollection {
|
|
116
|
+
address: string;
|
|
117
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
interface Stat {
|
|
121
|
+
_count: Stat._Count;
|
|
122
|
+
_sum: Stat._Sum;
|
|
123
|
+
mintingContractId: string;
|
|
124
|
+
}
|
|
125
|
+
namespace Stat {
|
|
126
|
+
interface _Count {
|
|
127
|
+
isListed: number;
|
|
128
|
+
}
|
|
129
|
+
interface _Sum {
|
|
130
|
+
quantity: number | null;
|
|
131
|
+
quantityMinted: number | null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
17
135
|
/**
|
|
18
136
|
* Use the id returned here to fetch the status and signature of the mint from the
|
|
19
137
|
* `/api/minting/status/:id` endpoint
|
|
@@ -21,6 +139,14 @@ export declare class Contracts extends APIResource {
|
|
|
21
139
|
export interface ContractMintResponse {
|
|
22
140
|
mintingContractAssetMintStatusId: string;
|
|
23
141
|
}
|
|
142
|
+
export interface ContractListParams {
|
|
143
|
+
includeDeleted?: boolean | null;
|
|
144
|
+
limit?: number;
|
|
145
|
+
organizationId?: string;
|
|
146
|
+
showOnMarketplace?: boolean | null;
|
|
147
|
+
startingAfter?: string;
|
|
148
|
+
websiteId?: string;
|
|
149
|
+
}
|
|
24
150
|
export interface ContractMintParams {
|
|
25
151
|
assetId: string;
|
|
26
152
|
contractId: string;
|
|
@@ -33,6 +159,6 @@ export interface ContractMintParams {
|
|
|
33
159
|
walletAddress?: string;
|
|
34
160
|
}
|
|
35
161
|
export declare namespace Contracts {
|
|
36
|
-
export { type ContractMintResponse as ContractMintResponse, type ContractMintParams as ContractMintParams };
|
|
162
|
+
export { type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
|
|
37
163
|
}
|
|
38
164
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IACtG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAW1E;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAGrG;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEvC,WAAW,EAAE,OAAO,CAAC;IAErB,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAEpB,OAAO,EAAE,MAAM,CAAC;QAEhB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE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B,CAAC,EACd,QAAQ,GACR,aAAa,GACb,MAAM,GACN,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,QAAQ,GACR,eAAe,GACf,OAAO,GACP,OAAO,GACP,UAAU,GACV,OAAO,GACP,SAAS,GACT,YAAY,GACZ,SAAS,GACT,OAAO,GACP,QAAQ,CAAC;IAEb,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Contracts = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
6
7
|
class Contracts extends resource_1.APIResource {
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.list({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/api/minting/contracts', { query, ...options });
|
|
13
|
+
}
|
|
7
14
|
/**
|
|
8
15
|
* Generates a signature for minting an asset on a given contract
|
|
9
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,SAAU,SAAQ,sBAAW;IAWxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAwB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAnCD,8BAmCC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
3
4
|
export class Contracts extends APIResource {
|
|
5
|
+
list(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.list({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/api/minting/contracts', { query, ...options });
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Generates a signature for minting an asset on a given contract
|
|
6
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.mjs","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"contracts.mjs","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,SAAU,SAAQ,WAAW;IAWxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAwB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Allowlist, type AllowlistListResponse, type AllowlistUpsertResponse, type AllowlistListParams, type AllowlistUpsertParams, } from "./allowlist.js";
|
|
2
|
-
export { Contracts, type ContractMintResponse, type ContractMintParams } from "./contracts.js";
|
|
2
|
+
export { Contracts, type ContractListResponse, type ContractMintResponse, type ContractListParams, type ContractMintParams, } from "./contracts.js";
|
|
3
3
|
export { Minting, type MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse, type MintingGetAssetsParams, type MintingGetTokenGateStatusParams, } from "./minting.js";
|
|
4
4
|
export { Status, type StatusRetrieveResponse, type StatusUpdateResponse, type StatusUpdateParams, } from "./status.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,GACrC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Allowlist, } from "./allowlist.mjs";
|
|
3
|
-
export { Contracts } from "./contracts.mjs";
|
|
3
|
+
export { Contracts, } from "./contracts.mjs";
|
|
4
4
|
export { Minting, } from "./minting.mjs";
|
|
5
5
|
export { Status, } from "./status.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAKV;OACM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAKV;OACM,EACL,SAAS,GAKV;OACM,EACL,OAAO,GAKR;OACM,EACL,MAAM,GAIP"}
|
|
@@ -3,7 +3,7 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
import * as AllowlistAPI from "./allowlist.js";
|
|
4
4
|
import { Allowlist, AllowlistListParams, AllowlistListResponse, AllowlistUpsertParams, AllowlistUpsertResponse } from "./allowlist.js";
|
|
5
5
|
import * as ContractsAPI from "./contracts.js";
|
|
6
|
-
import { ContractMintParams, ContractMintResponse, Contracts } from "./contracts.js";
|
|
6
|
+
import { ContractListParams, ContractListResponse, ContractMintParams, ContractMintResponse, Contracts } from "./contracts.js";
|
|
7
7
|
import * as StatusAPI from "./status.js";
|
|
8
8
|
import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from "./status.js";
|
|
9
9
|
export declare class Minting extends APIResource {
|
|
@@ -137,6 +137,6 @@ export declare namespace Minting {
|
|
|
137
137
|
export { type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
138
138
|
export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse, type StatusUpdateResponse as StatusUpdateResponse, type StatusUpdateParams as StatusUpdateParams, };
|
|
139
139
|
export { Allowlist as Allowlist, type AllowlistListResponse as AllowlistListResponse, type AllowlistUpsertResponse as AllowlistUpsertResponse, type AllowlistListParams as AllowlistListParams, type AllowlistUpsertParams as AllowlistUpsertParams, };
|
|
140
|
-
export { Contracts as Contracts, type ContractMintResponse as ContractMintResponse, type ContractMintParams as ContractMintParams, };
|
|
140
|
+
export { Contracts as Contracts, type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
|
|
141
141
|
}
|
|
142
142
|
//# sourceMappingURL=minting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minting.d.ts","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"minting.d.ts","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,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C,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,iBAAiB,EAAE,MAAM,CAAC;IAE1B,sBAAsB,EAAE,MAAM,CAAC;IAE/B,iBAAiB,EAAE,MAAM,CAAC;IAE1B,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minting.js","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,6DAA4C;AAC5C,8CAMqB;AACrB,6DAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"minting.js","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,6DAA4C;AAC5C,8CAMqB;AACrB,6DAA4C;AAC5C,8CAMqB;AACrB,uDAAsC;AACtC,wCAAoG;AAEpG,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyC/E,CAAC;IAvCC;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA5CD,0BA4CC;AA+KD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC9B,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
import * as AllowlistAPI from "./allowlist.mjs";
|
|
4
4
|
import { Allowlist, } from "./allowlist.mjs";
|
|
5
5
|
import * as ContractsAPI from "./contracts.mjs";
|
|
6
|
-
import { Contracts } from "./contracts.mjs";
|
|
6
|
+
import { Contracts, } from "./contracts.mjs";
|
|
7
7
|
import * as StatusAPI from "./status.mjs";
|
|
8
8
|
import { Status } from "./status.mjs";
|
|
9
9
|
export class Minting extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minting.mjs","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EACL,SAAS,GAKV;OACM,KAAK,YAAY;OACjB,
|
|
1
|
+
{"version":3,"file":"minting.mjs","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EACL,SAAS,GAKV;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAoE;AAEnF,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyC/E,CAAC;IAvCC;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA+KD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -2835,6 +2835,12 @@ export namespace RuleListResponse {
|
|
|
2835
2835
|
* Name of the rule chain
|
|
2836
2836
|
*/
|
|
2837
2837
|
name: string;
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* Type of the operator. AND if all conditions must be met, OR if any condition can
|
|
2841
|
+
* be met.
|
|
2842
|
+
*/
|
|
2843
|
+
operatorType?: 'AND' | 'OR';
|
|
2838
2844
|
}
|
|
2839
2845
|
|
|
2840
2846
|
export namespace LoyaltyRuleChain {
|
|
@@ -2889,6 +2895,8 @@ export namespace RuleListResponse {
|
|
|
2889
2895
|
*/
|
|
2890
2896
|
loyaltyBadgeId: string | null;
|
|
2891
2897
|
|
|
2898
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
2899
|
+
|
|
2892
2900
|
/**
|
|
2893
2901
|
* Unique identifier for the loyalty currency
|
|
2894
2902
|
*/
|
|
@@ -2908,6 +2916,13 @@ export namespace RuleListResponse {
|
|
|
2908
2916
|
}
|
|
2909
2917
|
|
|
2910
2918
|
export namespace Association {
|
|
2919
|
+
export interface LoyaltyCurrency {
|
|
2920
|
+
/**
|
|
2921
|
+
* Name of the loyalty currency
|
|
2922
|
+
*/
|
|
2923
|
+
name: string;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2911
2926
|
export interface LoyaltyRule {
|
|
2912
2927
|
/**
|
|
2913
2928
|
* Name of the loyalty rule
|
|
@@ -380,6 +380,12 @@ export namespace TransactionListRuleChainsResponse {
|
|
|
380
380
|
* Name of the rule chain
|
|
381
381
|
*/
|
|
382
382
|
name: string;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Type of the operator. AND if all conditions must be met, OR if any condition can
|
|
386
|
+
* be met.
|
|
387
|
+
*/
|
|
388
|
+
operatorType?: 'AND' | 'OR';
|
|
383
389
|
}
|
|
384
390
|
|
|
385
391
|
export namespace Data {
|
|
@@ -434,6 +440,8 @@ export namespace TransactionListRuleChainsResponse {
|
|
|
434
440
|
*/
|
|
435
441
|
loyaltyBadgeId: string | null;
|
|
436
442
|
|
|
443
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
444
|
+
|
|
437
445
|
/**
|
|
438
446
|
* Unique identifier for the loyalty currency
|
|
439
447
|
*/
|
|
@@ -453,6 +461,13 @@ export namespace TransactionListRuleChainsResponse {
|
|
|
453
461
|
}
|
|
454
462
|
|
|
455
463
|
export namespace Association {
|
|
464
|
+
export interface LoyaltyCurrency {
|
|
465
|
+
/**
|
|
466
|
+
* Name of the loyalty currency
|
|
467
|
+
*/
|
|
468
|
+
name: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
456
471
|
export interface LoyaltyRule {
|
|
457
472
|
/**
|
|
458
473
|
* Name of the loyalty rule
|