@niftykit/diamond 0.2.15 → 0.3.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.
- package/dist/cjs/Diamond.js +2 -2
- package/dist/esm/Diamond.js +2 -2
- package/dist/types/Diamond.d.ts +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +3 -3
package/dist/cjs/Diamond.js
CHANGED
|
@@ -190,14 +190,14 @@ var Diamond = /** @class */ (function () {
|
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
};
|
|
193
|
-
Diamond.getMintLinkByPublicKey = function (collectionId, publicKey, isDev, unique) {
|
|
193
|
+
Diamond.getMintLinkByPublicKey = function (collectionId, publicKey, isDev, unique, quantity) {
|
|
194
194
|
return __awaiter(this, void 0, void 0, function () {
|
|
195
195
|
var baseUrl, url, resp, message;
|
|
196
196
|
return __generator(this, function (_a) {
|
|
197
197
|
switch (_a.label) {
|
|
198
198
|
case 0:
|
|
199
199
|
baseUrl = isDev ? endpoint_1.API_ENDPOINT_DEV : endpoint_1.API_ENDPOINT;
|
|
200
|
-
url = "".concat(baseUrl, "/onboarding/mintLinks/public/").concat(publicKey, "/").concat(collectionId, "?unique=").concat(unique);
|
|
200
|
+
url = "".concat(baseUrl, "/onboarding/mintLinks/public/").concat(publicKey, "/").concat(collectionId, "?unique=").concat(unique, "&quantity=").concat(quantity);
|
|
201
201
|
return [4 /*yield*/, axios_1.default.get(url, {
|
|
202
202
|
validateStatus: function (status) { return status < 500; },
|
|
203
203
|
})];
|
package/dist/esm/Diamond.js
CHANGED
|
@@ -185,14 +185,14 @@ var Diamond = /** @class */ (function () {
|
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
-
Diamond.getMintLinkByPublicKey = function (collectionId, publicKey, isDev, unique) {
|
|
188
|
+
Diamond.getMintLinkByPublicKey = function (collectionId, publicKey, isDev, unique, quantity) {
|
|
189
189
|
return __awaiter(this, void 0, void 0, function () {
|
|
190
190
|
var baseUrl, url, resp, message;
|
|
191
191
|
return __generator(this, function (_a) {
|
|
192
192
|
switch (_a.label) {
|
|
193
193
|
case 0:
|
|
194
194
|
baseUrl = isDev ? API_ENDPOINT_DEV : API_ENDPOINT;
|
|
195
|
-
url = "".concat(baseUrl, "/onboarding/mintLinks/public/").concat(publicKey, "/").concat(collectionId, "?unique=").concat(unique);
|
|
195
|
+
url = "".concat(baseUrl, "/onboarding/mintLinks/public/").concat(publicKey, "/").concat(collectionId, "?unique=").concat(unique, "&quantity=").concat(quantity);
|
|
196
196
|
return [4 /*yield*/, axios.get(url, {
|
|
197
197
|
validateStatus: function (status) { return status < 500; },
|
|
198
198
|
})];
|
package/dist/types/Diamond.d.ts
CHANGED
|
@@ -29,5 +29,5 @@ export default class Diamond {
|
|
|
29
29
|
static verifyWallet(collectionId: string, wallet: string, isDev?: boolean): Promise<VerifyApiResponse>;
|
|
30
30
|
static verifyWalletForEdition(collectionId: string, wallet: string, editionId: number, isDev?: boolean): Promise<VerifyApiResponse>;
|
|
31
31
|
static getCollectionData(collectionId: string, isDev?: boolean): Promise<CollectionApiResponse>;
|
|
32
|
-
static getMintLinkByPublicKey(collectionId: string, publicKey: string, isDev?: boolean, unique?: boolean): Promise<MintLinkApiResponse>;
|
|
32
|
+
static getMintLinkByPublicKey(collectionId: string, publicKey: string, isDev?: boolean, unique?: boolean, quantity?: number): Promise<MintLinkApiResponse>;
|
|
33
33
|
}
|