bitbadgesjs-sdk 0.4.7 → 0.4.9
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/api-indexer/BitBadgesAddressList.d.ts +10 -7
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +592 -193
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +6 -3
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +6 -2
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +55 -0
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js +19 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +13 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +9 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -0
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +4 -0
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +4 -0
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +10 -7
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +593 -194
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +6 -3
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +9 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +55 -0
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js +22 -0
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +13 -1
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +8 -0
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -0
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +4 -0
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +7 -0
- package/dist/esm/core/approvals.js.map +1 -1
- package/package.json +1 -1
|
@@ -3251,12 +3251,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3251
3251
|
}
|
|
3252
3252
|
async createClaims(payload) {
|
|
3253
3253
|
try {
|
|
3254
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $
|
|
3254
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io17(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
3255
3255
|
const value = input[key];
|
|
3256
3256
|
if (undefined === value)
|
|
3257
3257
|
return true;
|
|
3258
3258
|
return "string" === typeof value;
|
|
3259
|
-
}); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) &&
|
|
3259
|
+
}); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io15(input.gatedContent)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io15 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io16(input.params)); const $io16 = input => Object.keys(input).every(key => {
|
|
3260
|
+
const value = input[key];
|
|
3261
|
+
if (undefined === value)
|
|
3262
|
+
return true;
|
|
3263
|
+
return true;
|
|
3264
|
+
}); const $io17 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io19(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io19(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io19(input.privateParams)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io19 = input => Object.keys(input).every(key => {
|
|
3260
3265
|
const value = input[key];
|
|
3261
3266
|
if (undefined === value)
|
|
3262
3267
|
return true;
|
|
@@ -3265,12 +3270,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3265
3270
|
path: _path + ".claims",
|
|
3266
3271
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3267
3272
|
value: input.claims
|
|
3268
|
-
})) && input.claims.map((elem,
|
|
3269
|
-
path: _path + ".claims[" +
|
|
3273
|
+
})) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3274
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3270
3275
|
expected: "CreateClaimRequest<NumberType>",
|
|
3271
3276
|
value: elem
|
|
3272
|
-
})) && $vo1(elem, _path + ".claims[" +
|
|
3273
|
-
path: _path + ".claims[" +
|
|
3277
|
+
})) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3278
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3274
3279
|
expected: "CreateClaimRequest<NumberType>",
|
|
3275
3280
|
value: elem
|
|
3276
3281
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3325,6 +3330,30 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3325
3330
|
path: _path + ".balancesToSet",
|
|
3326
3331
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3327
3332
|
value: input.balancesToSet
|
|
3333
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
3334
|
+
path: _path + ".rewards",
|
|
3335
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3336
|
+
value: input.rewards
|
|
3337
|
+
})) && input.rewards.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3338
|
+
path: _path + ".rewards[" + _index13 + "]",
|
|
3339
|
+
expected: "iClaimReward<NumberType>",
|
|
3340
|
+
value: elem
|
|
3341
|
+
})) && $vo13(elem, _path + ".rewards[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3342
|
+
path: _path + ".rewards[" + _index13 + "]",
|
|
3343
|
+
expected: "iClaimReward<NumberType>",
|
|
3344
|
+
value: elem
|
|
3345
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3346
|
+
path: _path + ".rewards",
|
|
3347
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3348
|
+
value: input.rewards
|
|
3349
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
3350
|
+
path: _path + ".estimatedCost",
|
|
3351
|
+
expected: "(string | undefined)",
|
|
3352
|
+
value: input.estimatedCost
|
|
3353
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
3354
|
+
path: _path + ".estimatedTime",
|
|
3355
|
+
expected: "(string | undefined)",
|
|
3356
|
+
value: input.estimatedTime
|
|
3328
3357
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
3329
3358
|
path: _path + ".manualDistribution",
|
|
3330
3359
|
expected: "(boolean | undefined)",
|
|
@@ -3345,12 +3374,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3345
3374
|
path: _path + ".plugins",
|
|
3346
3375
|
expected: "Array<ManagePluginRequest>",
|
|
3347
3376
|
value: input.plugins
|
|
3348
|
-
})) && input.plugins.map((elem,
|
|
3349
|
-
path: _path + ".plugins[" +
|
|
3377
|
+
})) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3378
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
3350
3379
|
expected: "ManagePluginRequest",
|
|
3351
3380
|
value: elem
|
|
3352
|
-
})) && $
|
|
3353
|
-
path: _path + ".plugins[" +
|
|
3381
|
+
})) && $vo17(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3382
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
3354
3383
|
expected: "ManagePluginRequest",
|
|
3355
3384
|
value: elem
|
|
3356
3385
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3385,8 +3414,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3385
3414
|
path: _path + ".tags",
|
|
3386
3415
|
expected: "(Array<string> | undefined)",
|
|
3387
3416
|
value: input.tags
|
|
3388
|
-
})) && input.tags.map((elem,
|
|
3389
|
-
path: _path + ".tags[" +
|
|
3417
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
3418
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
3390
3419
|
expected: "string",
|
|
3391
3420
|
value: elem
|
|
3392
3421
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3413,12 +3442,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3413
3442
|
path: _path + ".attributes",
|
|
3414
3443
|
expected: "(Array<__type> | undefined)",
|
|
3415
3444
|
value: input.attributes
|
|
3416
|
-
})) && input.attributes.map((elem,
|
|
3417
|
-
path: _path + ".attributes[" +
|
|
3445
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3446
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3418
3447
|
expected: "__type.o2",
|
|
3419
3448
|
value: elem
|
|
3420
|
-
})) && $vo5(elem, _path + ".attributes[" +
|
|
3421
|
-
path: _path + ".attributes[" +
|
|
3449
|
+
})) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3450
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3422
3451
|
expected: "__type.o2",
|
|
3423
3452
|
value: elem
|
|
3424
3453
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3429,12 +3458,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3429
3458
|
path: _path + ".utility",
|
|
3430
3459
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3431
3460
|
value: input.utility
|
|
3432
|
-
})) && input.utility.map((elem,
|
|
3433
|
-
path: _path + ".utility[" +
|
|
3461
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3462
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3434
3463
|
expected: "__type.o3",
|
|
3435
3464
|
value: elem
|
|
3436
|
-
})) && $vo6(elem, _path + ".utility[" +
|
|
3437
|
-
path: _path + ".utility[" +
|
|
3465
|
+
})) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3466
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3438
3467
|
expected: "__type.o3",
|
|
3439
3468
|
value: elem
|
|
3440
3469
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3502,12 +3531,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3502
3531
|
path: _path + ".manualBalances",
|
|
3503
3532
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3504
3533
|
value: input.manualBalances
|
|
3505
|
-
})) && input.manualBalances.map((elem,
|
|
3506
|
-
path: _path + ".manualBalances[" +
|
|
3534
|
+
})) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3535
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
3507
3536
|
expected: "iManualBalances<NumberType>",
|
|
3508
3537
|
value: elem
|
|
3509
|
-
})) && $vo8(elem, _path + ".manualBalances[" +
|
|
3510
|
-
path: _path + ".manualBalances[" +
|
|
3538
|
+
})) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3539
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
3511
3540
|
expected: "iManualBalances<NumberType>",
|
|
3512
3541
|
value: elem
|
|
3513
3542
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3534,12 +3563,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3534
3563
|
path: _path + ".balances",
|
|
3535
3564
|
expected: "Array<iBalance<NumberType>>",
|
|
3536
3565
|
value: input.balances
|
|
3537
|
-
})) && input.balances.map((elem,
|
|
3538
|
-
path: _path + ".balances[" +
|
|
3566
|
+
})) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3567
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
3539
3568
|
expected: "iBalance<NumberType>",
|
|
3540
3569
|
value: elem
|
|
3541
|
-
})) && $vo9(elem, _path + ".balances[" +
|
|
3542
|
-
path: _path + ".balances[" +
|
|
3570
|
+
})) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3571
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
3543
3572
|
expected: "iBalance<NumberType>",
|
|
3544
3573
|
value: elem
|
|
3545
3574
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3554,12 +3583,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3554
3583
|
path: _path + ".badgeIds",
|
|
3555
3584
|
expected: "Array<iUintRange<NumberType>>",
|
|
3556
3585
|
value: input.badgeIds
|
|
3557
|
-
})) && input.badgeIds.map((elem,
|
|
3558
|
-
path: _path + ".badgeIds[" +
|
|
3586
|
+
})) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3587
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
3559
3588
|
expected: "iUintRange<NumberType>",
|
|
3560
3589
|
value: elem
|
|
3561
|
-
})) && $vo10(elem, _path + ".badgeIds[" +
|
|
3562
|
-
path: _path + ".badgeIds[" +
|
|
3590
|
+
})) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3591
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
3563
3592
|
expected: "iUintRange<NumberType>",
|
|
3564
3593
|
value: elem
|
|
3565
3594
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3570,12 +3599,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3570
3599
|
path: _path + ".ownershipTimes",
|
|
3571
3600
|
expected: "Array<iUintRange<NumberType>>",
|
|
3572
3601
|
value: input.ownershipTimes
|
|
3573
|
-
})) && input.ownershipTimes.map((elem,
|
|
3574
|
-
path: _path + ".ownershipTimes[" +
|
|
3602
|
+
})) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3603
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
3575
3604
|
expected: "iUintRange<NumberType>",
|
|
3576
3605
|
value: elem
|
|
3577
|
-
})) && $vo10(elem, _path + ".ownershipTimes[" +
|
|
3578
|
-
path: _path + ".ownershipTimes[" +
|
|
3606
|
+
})) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3607
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
3579
3608
|
expected: "iUintRange<NumberType>",
|
|
3580
3609
|
value: elem
|
|
3581
3610
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3594,12 +3623,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3594
3623
|
path: _path + ".startBalances",
|
|
3595
3624
|
expected: "Array<iBalance<NumberType>>",
|
|
3596
3625
|
value: input.startBalances
|
|
3597
|
-
})) && input.startBalances.map((elem,
|
|
3598
|
-
path: _path + ".startBalances[" +
|
|
3626
|
+
})) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3627
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
3599
3628
|
expected: "iBalance<NumberType>",
|
|
3600
3629
|
value: elem
|
|
3601
|
-
})) && $vo9(elem, _path + ".startBalances[" +
|
|
3602
|
-
path: _path + ".startBalances[" +
|
|
3630
|
+
})) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3631
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
3603
3632
|
expected: "iBalance<NumberType>",
|
|
3604
3633
|
value: elem
|
|
3605
3634
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3638,7 +3667,15 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3638
3667
|
path: _path + ".challengeTrackerId",
|
|
3639
3668
|
expected: "string",
|
|
3640
3669
|
value: input.challengeTrackerId
|
|
3641
|
-
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [
|
|
3670
|
+
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
3671
|
+
path: _path + ".rewardId",
|
|
3672
|
+
expected: "string",
|
|
3673
|
+
value: input.rewardId
|
|
3674
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
3675
|
+
path: _path + ".instanceId",
|
|
3676
|
+
expected: "string",
|
|
3677
|
+
value: input.instanceId
|
|
3678
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3642
3679
|
path: _path + ".metadata",
|
|
3643
3680
|
expected: "(__type.o4 | undefined)",
|
|
3644
3681
|
value: input.metadata
|
|
@@ -3646,6 +3683,59 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3646
3683
|
path: _path + ".metadata",
|
|
3647
3684
|
expected: "(__type.o4 | undefined)",
|
|
3648
3685
|
value: input.metadata
|
|
3686
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
3687
|
+
path: _path + ".automatic",
|
|
3688
|
+
expected: "(boolean | undefined)",
|
|
3689
|
+
value: input.automatic
|
|
3690
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
3691
|
+
path: _path + ".gatedContent",
|
|
3692
|
+
expected: "iClaimGatedContent",
|
|
3693
|
+
value: input.gatedContent
|
|
3694
|
+
})) && $vo15(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
3695
|
+
path: _path + ".gatedContent",
|
|
3696
|
+
expected: "iClaimGatedContent",
|
|
3697
|
+
value: input.gatedContent
|
|
3698
|
+
})].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3699
|
+
path: _path + ".name",
|
|
3700
|
+
expected: "string",
|
|
3701
|
+
value: input.name
|
|
3702
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3703
|
+
path: _path + ".description",
|
|
3704
|
+
expected: "string",
|
|
3705
|
+
value: input.description
|
|
3706
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3707
|
+
path: _path + ".image",
|
|
3708
|
+
expected: "string",
|
|
3709
|
+
value: input.image
|
|
3710
|
+
})].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
3711
|
+
path: _path + ".content",
|
|
3712
|
+
expected: "(string | undefined)",
|
|
3713
|
+
value: input.content
|
|
3714
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
3715
|
+
path: _path + ".url",
|
|
3716
|
+
expected: "(string | undefined)",
|
|
3717
|
+
value: input.url
|
|
3718
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
3719
|
+
path: _path + ".params",
|
|
3720
|
+
expected: "(__type.o5 | undefined)",
|
|
3721
|
+
value: input.params
|
|
3722
|
+
})) && $vo16(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
3723
|
+
path: _path + ".params",
|
|
3724
|
+
expected: "(__type.o5 | undefined)",
|
|
3725
|
+
value: input.params
|
|
3726
|
+
})].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3727
|
+
const value = input[key];
|
|
3728
|
+
if (undefined === value)
|
|
3729
|
+
return true;
|
|
3730
|
+
return true;
|
|
3731
|
+
}).every(flag => flag)].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3732
|
+
path: _path + ".metadata",
|
|
3733
|
+
expected: "(__type.o6 | undefined)",
|
|
3734
|
+
value: input.metadata
|
|
3735
|
+
})) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3736
|
+
path: _path + ".metadata",
|
|
3737
|
+
expected: "(__type.o6 | undefined)",
|
|
3738
|
+
value: input.metadata
|
|
3649
3739
|
}), "string" === typeof input.version || $report(_exceptionable, {
|
|
3650
3740
|
path: _path + ".version",
|
|
3651
3741
|
expected: "string",
|
|
@@ -3658,7 +3748,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3658
3748
|
path: _path + ".newState",
|
|
3659
3749
|
expected: "(Record<string, any> | undefined)",
|
|
3660
3750
|
value: input.newState
|
|
3661
|
-
})) && $
|
|
3751
|
+
})) && $vo19(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
3662
3752
|
path: _path + ".newState",
|
|
3663
3753
|
expected: "(Record<string, any> | undefined)",
|
|
3664
3754
|
value: input.newState
|
|
@@ -3678,7 +3768,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3678
3768
|
path: _path + ".publicParams",
|
|
3679
3769
|
expected: "Record<string, any>",
|
|
3680
3770
|
value: input.publicParams
|
|
3681
|
-
})) && $
|
|
3771
|
+
})) && $vo19(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
3682
3772
|
path: _path + ".publicParams",
|
|
3683
3773
|
expected: "Record<string, any>",
|
|
3684
3774
|
value: input.publicParams
|
|
@@ -3686,11 +3776,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3686
3776
|
path: _path + ".privateParams",
|
|
3687
3777
|
expected: "Record<string, any>",
|
|
3688
3778
|
value: input.privateParams
|
|
3689
|
-
})) && $
|
|
3779
|
+
})) && $vo19(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
3690
3780
|
path: _path + ".privateParams",
|
|
3691
3781
|
expected: "Record<string, any>",
|
|
3692
3782
|
value: input.privateParams
|
|
3693
|
-
})].every(flag => flag); const $
|
|
3783
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3694
3784
|
path: _path + ".name",
|
|
3695
3785
|
expected: "string",
|
|
3696
3786
|
value: input.name
|
|
@@ -3702,7 +3792,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3702
3792
|
path: _path + ".image",
|
|
3703
3793
|
expected: "(string | undefined)",
|
|
3704
3794
|
value: input.image
|
|
3705
|
-
})].every(flag => flag); const $
|
|
3795
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3706
3796
|
const value = input[key];
|
|
3707
3797
|
if (undefined === value)
|
|
3708
3798
|
return true;
|
|
@@ -3799,7 +3889,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3799
3889
|
}
|
|
3800
3890
|
async updateClaims(payload) {
|
|
3801
3891
|
try {
|
|
3802
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
3892
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io16(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
3803
3893
|
const value = input[key];
|
|
3804
3894
|
if (undefined === value)
|
|
3805
3895
|
return true;
|
|
@@ -3809,16 +3899,21 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3809
3899
|
if (undefined === value)
|
|
3810
3900
|
return true;
|
|
3811
3901
|
return true;
|
|
3812
|
-
}); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $
|
|
3902
|
+
}); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io16 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io18(input.gatedContent)); const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io18 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io19(input.params)); const $io19 = input => Object.keys(input).every(key => {
|
|
3903
|
+
const value = input[key];
|
|
3904
|
+
if (undefined === value)
|
|
3905
|
+
return true;
|
|
3906
|
+
return true;
|
|
3907
|
+
}); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3813
3908
|
path: _path + ".claims",
|
|
3814
3909
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
|
|
3815
3910
|
value: input.claims
|
|
3816
|
-
})) && input.claims.map((elem,
|
|
3817
|
-
path: _path + ".claims[" +
|
|
3911
|
+
})) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3912
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3818
3913
|
expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
|
|
3819
3914
|
value: elem
|
|
3820
|
-
})) && $vo1(elem, _path + ".claims[" +
|
|
3821
|
-
path: _path + ".claims[" +
|
|
3915
|
+
})) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3916
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3822
3917
|
expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
|
|
3823
3918
|
value: elem
|
|
3824
3919
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3865,18 +3960,42 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3865
3960
|
path: _path + ".plugins",
|
|
3866
3961
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
3867
3962
|
value: input.plugins
|
|
3868
|
-
})) && input.plugins.map((elem,
|
|
3869
|
-
path: _path + ".plugins[" +
|
|
3963
|
+
})) && input.plugins.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3964
|
+
path: _path + ".plugins[" + _index13 + "]",
|
|
3870
3965
|
expected: "IntegrationPluginDetails<string>",
|
|
3871
3966
|
value: elem
|
|
3872
|
-
})) && $vo13(elem, _path + ".plugins[" +
|
|
3873
|
-
path: _path + ".plugins[" +
|
|
3967
|
+
})) && $vo13(elem, _path + ".plugins[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3968
|
+
path: _path + ".plugins[" + _index13 + "]",
|
|
3874
3969
|
expected: "IntegrationPluginDetails<string>",
|
|
3875
3970
|
value: elem
|
|
3876
3971
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
3877
3972
|
path: _path + ".plugins",
|
|
3878
3973
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
3879
3974
|
value: input.plugins
|
|
3975
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
3976
|
+
path: _path + ".rewards",
|
|
3977
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3978
|
+
value: input.rewards
|
|
3979
|
+
})) && input.rewards.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3980
|
+
path: _path + ".rewards[" + _index14 + "]",
|
|
3981
|
+
expected: "iClaimReward<NumberType>",
|
|
3982
|
+
value: elem
|
|
3983
|
+
})) && $vo16(elem, _path + ".rewards[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3984
|
+
path: _path + ".rewards[" + _index14 + "]",
|
|
3985
|
+
expected: "iClaimReward<NumberType>",
|
|
3986
|
+
value: elem
|
|
3987
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3988
|
+
path: _path + ".rewards",
|
|
3989
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3990
|
+
value: input.rewards
|
|
3991
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
3992
|
+
path: _path + ".estimatedCost",
|
|
3993
|
+
expected: "(string | undefined)",
|
|
3994
|
+
value: input.estimatedCost
|
|
3995
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
3996
|
+
path: _path + ".estimatedTime",
|
|
3997
|
+
expected: "(string | undefined)",
|
|
3998
|
+
value: input.estimatedTime
|
|
3880
3999
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
3881
4000
|
path: _path + ".manualDistribution",
|
|
3882
4001
|
expected: "(boolean | undefined)",
|
|
@@ -3917,8 +4036,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3917
4036
|
path: _path + ".tags",
|
|
3918
4037
|
expected: "(Array<string> | undefined)",
|
|
3919
4038
|
value: input.tags
|
|
3920
|
-
})) && input.tags.map((elem,
|
|
3921
|
-
path: _path + ".tags[" +
|
|
4039
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
4040
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
3922
4041
|
expected: "string",
|
|
3923
4042
|
value: elem
|
|
3924
4043
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3945,12 +4064,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3945
4064
|
path: _path + ".attributes",
|
|
3946
4065
|
expected: "(Array<__type> | undefined)",
|
|
3947
4066
|
value: input.attributes
|
|
3948
|
-
})) && input.attributes.map((elem,
|
|
3949
|
-
path: _path + ".attributes[" +
|
|
4067
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4068
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3950
4069
|
expected: "__type.o2",
|
|
3951
4070
|
value: elem
|
|
3952
|
-
})) && $vo5(elem, _path + ".attributes[" +
|
|
3953
|
-
path: _path + ".attributes[" +
|
|
4071
|
+
})) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4072
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3954
4073
|
expected: "__type.o2",
|
|
3955
4074
|
value: elem
|
|
3956
4075
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3961,12 +4080,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3961
4080
|
path: _path + ".utility",
|
|
3962
4081
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3963
4082
|
value: input.utility
|
|
3964
|
-
})) && input.utility.map((elem,
|
|
3965
|
-
path: _path + ".utility[" +
|
|
4083
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4084
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3966
4085
|
expected: "__type.o3",
|
|
3967
4086
|
value: elem
|
|
3968
|
-
})) && $vo6(elem, _path + ".utility[" +
|
|
3969
|
-
path: _path + ".utility[" +
|
|
4087
|
+
})) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4088
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3970
4089
|
expected: "__type.o3",
|
|
3971
4090
|
value: elem
|
|
3972
4091
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4034,12 +4153,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4034
4153
|
path: _path + ".manualBalances",
|
|
4035
4154
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4036
4155
|
value: input.manualBalances
|
|
4037
|
-
})) && input.manualBalances.map((elem,
|
|
4038
|
-
path: _path + ".manualBalances[" +
|
|
4156
|
+
})) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4157
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
4039
4158
|
expected: "iManualBalances<NumberType>",
|
|
4040
4159
|
value: elem
|
|
4041
|
-
})) && $vo8(elem, _path + ".manualBalances[" +
|
|
4042
|
-
path: _path + ".manualBalances[" +
|
|
4160
|
+
})) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4161
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
4043
4162
|
expected: "iManualBalances<NumberType>",
|
|
4044
4163
|
value: elem
|
|
4045
4164
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4066,12 +4185,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4066
4185
|
path: _path + ".balances",
|
|
4067
4186
|
expected: "Array<iBalance<NumberType>>",
|
|
4068
4187
|
value: input.balances
|
|
4069
|
-
})) && input.balances.map((elem,
|
|
4070
|
-
path: _path + ".balances[" +
|
|
4188
|
+
})) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4189
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
4071
4190
|
expected: "iBalance<NumberType>",
|
|
4072
4191
|
value: elem
|
|
4073
|
-
})) && $vo9(elem, _path + ".balances[" +
|
|
4074
|
-
path: _path + ".balances[" +
|
|
4192
|
+
})) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4193
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
4075
4194
|
expected: "iBalance<NumberType>",
|
|
4076
4195
|
value: elem
|
|
4077
4196
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4086,12 +4205,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4086
4205
|
path: _path + ".badgeIds",
|
|
4087
4206
|
expected: "Array<iUintRange<NumberType>>",
|
|
4088
4207
|
value: input.badgeIds
|
|
4089
|
-
})) && input.badgeIds.map((elem,
|
|
4090
|
-
path: _path + ".badgeIds[" +
|
|
4208
|
+
})) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4209
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
4091
4210
|
expected: "iUintRange<NumberType>",
|
|
4092
4211
|
value: elem
|
|
4093
|
-
})) && $vo10(elem, _path + ".badgeIds[" +
|
|
4094
|
-
path: _path + ".badgeIds[" +
|
|
4212
|
+
})) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4213
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
4095
4214
|
expected: "iUintRange<NumberType>",
|
|
4096
4215
|
value: elem
|
|
4097
4216
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4102,12 +4221,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4102
4221
|
path: _path + ".ownershipTimes",
|
|
4103
4222
|
expected: "Array<iUintRange<NumberType>>",
|
|
4104
4223
|
value: input.ownershipTimes
|
|
4105
|
-
})) && input.ownershipTimes.map((elem,
|
|
4106
|
-
path: _path + ".ownershipTimes[" +
|
|
4224
|
+
})) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4225
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
4107
4226
|
expected: "iUintRange<NumberType>",
|
|
4108
4227
|
value: elem
|
|
4109
|
-
})) && $vo10(elem, _path + ".ownershipTimes[" +
|
|
4110
|
-
path: _path + ".ownershipTimes[" +
|
|
4228
|
+
})) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4229
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
4111
4230
|
expected: "iUintRange<NumberType>",
|
|
4112
4231
|
value: elem
|
|
4113
4232
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4126,12 +4245,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4126
4245
|
path: _path + ".startBalances",
|
|
4127
4246
|
expected: "Array<iBalance<NumberType>>",
|
|
4128
4247
|
value: input.startBalances
|
|
4129
|
-
})) && input.startBalances.map((elem,
|
|
4130
|
-
path: _path + ".startBalances[" +
|
|
4248
|
+
})) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4249
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
4131
4250
|
expected: "iBalance<NumberType>",
|
|
4132
4251
|
value: elem
|
|
4133
|
-
})) && $vo9(elem, _path + ".startBalances[" +
|
|
4134
|
-
path: _path + ".startBalances[" +
|
|
4252
|
+
})) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4253
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
4135
4254
|
expected: "iBalance<NumberType>",
|
|
4136
4255
|
value: elem
|
|
4137
4256
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4255,7 +4374,68 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4255
4374
|
path: _path + ".image",
|
|
4256
4375
|
expected: "(string | undefined)",
|
|
4257
4376
|
value: input.image
|
|
4258
|
-
})].every(flag => flag); const
|
|
4377
|
+
})].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
4378
|
+
path: _path + ".rewardId",
|
|
4379
|
+
expected: "string",
|
|
4380
|
+
value: input.rewardId
|
|
4381
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4382
|
+
path: _path + ".instanceId",
|
|
4383
|
+
expected: "string",
|
|
4384
|
+
value: input.instanceId
|
|
4385
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4386
|
+
path: _path + ".metadata",
|
|
4387
|
+
expected: "(__type.o5 | undefined)",
|
|
4388
|
+
value: input.metadata
|
|
4389
|
+
})) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4390
|
+
path: _path + ".metadata",
|
|
4391
|
+
expected: "(__type.o5 | undefined)",
|
|
4392
|
+
value: input.metadata
|
|
4393
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
4394
|
+
path: _path + ".automatic",
|
|
4395
|
+
expected: "(boolean | undefined)",
|
|
4396
|
+
value: input.automatic
|
|
4397
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
4398
|
+
path: _path + ".gatedContent",
|
|
4399
|
+
expected: "iClaimGatedContent",
|
|
4400
|
+
value: input.gatedContent
|
|
4401
|
+
})) && $vo18(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
4402
|
+
path: _path + ".gatedContent",
|
|
4403
|
+
expected: "iClaimGatedContent",
|
|
4404
|
+
value: input.gatedContent
|
|
4405
|
+
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4406
|
+
path: _path + ".name",
|
|
4407
|
+
expected: "string",
|
|
4408
|
+
value: input.name
|
|
4409
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4410
|
+
path: _path + ".description",
|
|
4411
|
+
expected: "string",
|
|
4412
|
+
value: input.description
|
|
4413
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4414
|
+
path: _path + ".image",
|
|
4415
|
+
expected: "string",
|
|
4416
|
+
value: input.image
|
|
4417
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
4418
|
+
path: _path + ".content",
|
|
4419
|
+
expected: "(string | undefined)",
|
|
4420
|
+
value: input.content
|
|
4421
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
4422
|
+
path: _path + ".url",
|
|
4423
|
+
expected: "(string | undefined)",
|
|
4424
|
+
value: input.url
|
|
4425
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
4426
|
+
path: _path + ".params",
|
|
4427
|
+
expected: "(__type.o6 | undefined)",
|
|
4428
|
+
value: input.params
|
|
4429
|
+
})) && $vo19(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
4430
|
+
path: _path + ".params",
|
|
4431
|
+
expected: "(__type.o6 | undefined)",
|
|
4432
|
+
value: input.params
|
|
4433
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4434
|
+
const value = input[key];
|
|
4435
|
+
if (undefined === value)
|
|
4436
|
+
return true;
|
|
4437
|
+
return true;
|
|
4438
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
4259
4439
|
if (false === __is(input)) {
|
|
4260
4440
|
errors = [];
|
|
4261
4441
|
$report = typia_1.default.validate.report(errors);
|
|
@@ -4342,12 +4522,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4342
4522
|
if (undefined === value)
|
|
4343
4523
|
return true;
|
|
4344
4524
|
return Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
|
|
4345
|
-
}); const $io2 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
4525
|
+
}); const $io2 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io12(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach); const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io6(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io6(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io6(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)); const $io6 = input => Object.keys(input).every(key => {
|
|
4346
4526
|
const value = input[key];
|
|
4347
4527
|
if (undefined === value)
|
|
4348
4528
|
return true;
|
|
4349
4529
|
return true;
|
|
4350
|
-
}); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input =>
|
|
4530
|
+
}); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io9(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io10(input.gatedContent)); const $io9 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io10 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io11(input.params)); const $io11 = input => Object.keys(input).every(key => {
|
|
4531
|
+
const value = input[key];
|
|
4532
|
+
if (undefined === value)
|
|
4533
|
+
return true;
|
|
4534
|
+
return true;
|
|
4535
|
+
}); const $io12 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io14(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io15(input.orderCalculationMethod)); const $io13 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io14 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io15 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4351
4536
|
path: _path + ".balances",
|
|
4352
4537
|
expected: "(iOffChainBalancesMap<NumberType> | undefined)",
|
|
4353
4538
|
value: input.balances
|
|
@@ -4359,12 +4544,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4359
4544
|
path: _path + ".claims",
|
|
4360
4545
|
expected: "(Array<__type> | undefined)",
|
|
4361
4546
|
value: input.claims
|
|
4362
|
-
})) && input.claims.map((elem,
|
|
4363
|
-
path: _path + ".claims[" +
|
|
4547
|
+
})) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4548
|
+
path: _path + ".claims[" + _index10 + "]",
|
|
4364
4549
|
expected: "__type",
|
|
4365
4550
|
value: elem
|
|
4366
|
-
})) && $vo4(elem, _path + ".claims[" +
|
|
4367
|
-
path: _path + ".claims[" +
|
|
4551
|
+
})) && $vo4(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4552
|
+
path: _path + ".claims[" + _index10 + "]",
|
|
4368
4553
|
expected: "__type",
|
|
4369
4554
|
value: elem
|
|
4370
4555
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4391,12 +4576,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4391
4576
|
path: _path + $join(key),
|
|
4392
4577
|
expected: "Array<iBalance<NumberType>>",
|
|
4393
4578
|
value: value
|
|
4394
|
-
})) && value.map((elem,
|
|
4395
|
-
path: _path + $join(key) + "[" +
|
|
4579
|
+
})) && value.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4580
|
+
path: _path + $join(key) + "[" + _index11 + "]",
|
|
4396
4581
|
expected: "iBalance<NumberType>",
|
|
4397
4582
|
value: elem
|
|
4398
|
-
})) && $vo2(elem, _path + $join(key) + "[" +
|
|
4399
|
-
path: _path + $join(key) + "[" +
|
|
4583
|
+
})) && $vo2(elem, _path + $join(key) + "[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4584
|
+
path: _path + $join(key) + "[" + _index11 + "]",
|
|
4400
4585
|
expected: "iBalance<NumberType>",
|
|
4401
4586
|
value: elem
|
|
4402
4587
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4412,12 +4597,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4412
4597
|
path: _path + ".badgeIds",
|
|
4413
4598
|
expected: "Array<iUintRange<NumberType>>",
|
|
4414
4599
|
value: input.badgeIds
|
|
4415
|
-
})) && input.badgeIds.map((elem,
|
|
4416
|
-
path: _path + ".badgeIds[" +
|
|
4600
|
+
})) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4601
|
+
path: _path + ".badgeIds[" + _index12 + "]",
|
|
4417
4602
|
expected: "iUintRange<NumberType>",
|
|
4418
4603
|
value: elem
|
|
4419
|
-
})) && $vo3(elem, _path + ".badgeIds[" +
|
|
4420
|
-
path: _path + ".badgeIds[" +
|
|
4604
|
+
})) && $vo3(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4605
|
+
path: _path + ".badgeIds[" + _index12 + "]",
|
|
4421
4606
|
expected: "iUintRange<NumberType>",
|
|
4422
4607
|
value: elem
|
|
4423
4608
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4428,12 +4613,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4428
4613
|
path: _path + ".ownershipTimes",
|
|
4429
4614
|
expected: "Array<iUintRange<NumberType>>",
|
|
4430
4615
|
value: input.ownershipTimes
|
|
4431
|
-
})) && input.ownershipTimes.map((elem,
|
|
4432
|
-
path: _path + ".ownershipTimes[" +
|
|
4616
|
+
})) && input.ownershipTimes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4617
|
+
path: _path + ".ownershipTimes[" + _index13 + "]",
|
|
4433
4618
|
expected: "iUintRange<NumberType>",
|
|
4434
4619
|
value: elem
|
|
4435
|
-
})) && $vo3(elem, _path + ".ownershipTimes[" +
|
|
4436
|
-
path: _path + ".ownershipTimes[" +
|
|
4620
|
+
})) && $vo3(elem, _path + ".ownershipTimes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4621
|
+
path: _path + ".ownershipTimes[" + _index13 + "]",
|
|
4437
4622
|
expected: "iUintRange<NumberType>",
|
|
4438
4623
|
value: elem
|
|
4439
4624
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4456,23 +4641,47 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4456
4641
|
path: _path + ".plugins",
|
|
4457
4642
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4458
4643
|
value: input.plugins
|
|
4459
|
-
})) && input.plugins.map((elem,
|
|
4460
|
-
path: _path + ".plugins[" +
|
|
4644
|
+
})) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4645
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
4461
4646
|
expected: "IntegrationPluginDetails<string>",
|
|
4462
4647
|
value: elem
|
|
4463
|
-
})) && $vo5(elem, _path + ".plugins[" +
|
|
4464
|
-
path: _path + ".plugins[" +
|
|
4648
|
+
})) && $vo5(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4649
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
4465
4650
|
expected: "IntegrationPluginDetails<string>",
|
|
4466
4651
|
value: elem
|
|
4467
4652
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
4468
4653
|
path: _path + ".plugins",
|
|
4469
4654
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4470
4655
|
value: input.plugins
|
|
4656
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
4657
|
+
path: _path + ".rewards",
|
|
4658
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
4659
|
+
value: input.rewards
|
|
4660
|
+
})) && input.rewards.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4661
|
+
path: _path + ".rewards[" + _index15 + "]",
|
|
4662
|
+
expected: "iClaimReward<NumberType>",
|
|
4663
|
+
value: elem
|
|
4664
|
+
})) && $vo8(elem, _path + ".rewards[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4665
|
+
path: _path + ".rewards[" + _index15 + "]",
|
|
4666
|
+
expected: "iClaimReward<NumberType>",
|
|
4667
|
+
value: elem
|
|
4668
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4669
|
+
path: _path + ".rewards",
|
|
4670
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
4671
|
+
value: input.rewards
|
|
4672
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
4673
|
+
path: _path + ".estimatedCost",
|
|
4674
|
+
expected: "(string | undefined)",
|
|
4675
|
+
value: input.estimatedCost
|
|
4676
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
4677
|
+
path: _path + ".estimatedTime",
|
|
4678
|
+
expected: "(string | undefined)",
|
|
4679
|
+
value: input.estimatedTime
|
|
4471
4680
|
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4472
4681
|
path: _path + ".balancesToSet",
|
|
4473
4682
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4474
4683
|
value: input.balancesToSet
|
|
4475
|
-
})) && $
|
|
4684
|
+
})) && $vo12(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4476
4685
|
path: _path + ".balancesToSet",
|
|
4477
4686
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4478
4687
|
value: input.balancesToSet
|
|
@@ -4565,16 +4774,77 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4565
4774
|
path: _path + ".image",
|
|
4566
4775
|
expected: "(string | undefined)",
|
|
4567
4776
|
value: input.image
|
|
4568
|
-
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [
|
|
4777
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
4778
|
+
path: _path + ".rewardId",
|
|
4779
|
+
expected: "string",
|
|
4780
|
+
value: input.rewardId
|
|
4781
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4782
|
+
path: _path + ".instanceId",
|
|
4783
|
+
expected: "string",
|
|
4784
|
+
value: input.instanceId
|
|
4785
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4786
|
+
path: _path + ".metadata",
|
|
4787
|
+
expected: "(__type.o2 | undefined)",
|
|
4788
|
+
value: input.metadata
|
|
4789
|
+
})) && $vo9(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4790
|
+
path: _path + ".metadata",
|
|
4791
|
+
expected: "(__type.o2 | undefined)",
|
|
4792
|
+
value: input.metadata
|
|
4793
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
4794
|
+
path: _path + ".automatic",
|
|
4795
|
+
expected: "(boolean | undefined)",
|
|
4796
|
+
value: input.automatic
|
|
4797
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
4798
|
+
path: _path + ".gatedContent",
|
|
4799
|
+
expected: "iClaimGatedContent",
|
|
4800
|
+
value: input.gatedContent
|
|
4801
|
+
})) && $vo10(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
4802
|
+
path: _path + ".gatedContent",
|
|
4803
|
+
expected: "iClaimGatedContent",
|
|
4804
|
+
value: input.gatedContent
|
|
4805
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4806
|
+
path: _path + ".name",
|
|
4807
|
+
expected: "string",
|
|
4808
|
+
value: input.name
|
|
4809
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4810
|
+
path: _path + ".description",
|
|
4811
|
+
expected: "string",
|
|
4812
|
+
value: input.description
|
|
4813
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4814
|
+
path: _path + ".image",
|
|
4815
|
+
expected: "string",
|
|
4816
|
+
value: input.image
|
|
4817
|
+
})].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
4818
|
+
path: _path + ".content",
|
|
4819
|
+
expected: "(string | undefined)",
|
|
4820
|
+
value: input.content
|
|
4821
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
4822
|
+
path: _path + ".url",
|
|
4823
|
+
expected: "(string | undefined)",
|
|
4824
|
+
value: input.url
|
|
4825
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
4826
|
+
path: _path + ".params",
|
|
4827
|
+
expected: "(__type.o3 | undefined)",
|
|
4828
|
+
value: input.params
|
|
4829
|
+
})) && $vo11(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
4830
|
+
path: _path + ".params",
|
|
4831
|
+
expected: "(__type.o3 | undefined)",
|
|
4832
|
+
value: input.params
|
|
4833
|
+
})].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4834
|
+
const value = input[key];
|
|
4835
|
+
if (undefined === value)
|
|
4836
|
+
return true;
|
|
4837
|
+
return true;
|
|
4838
|
+
}).every(flag => flag)].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4569
4839
|
path: _path + ".manualBalances",
|
|
4570
4840
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4571
4841
|
value: input.manualBalances
|
|
4572
|
-
})) && input.manualBalances.map((elem,
|
|
4573
|
-
path: _path + ".manualBalances[" +
|
|
4842
|
+
})) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4843
|
+
path: _path + ".manualBalances[" + _index16 + "]",
|
|
4574
4844
|
expected: "iManualBalances<NumberType>",
|
|
4575
4845
|
value: elem
|
|
4576
|
-
})) && $
|
|
4577
|
-
path: _path + ".manualBalances[" +
|
|
4846
|
+
})) && $vo13(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4847
|
+
path: _path + ".manualBalances[" + _index16 + "]",
|
|
4578
4848
|
expected: "iManualBalances<NumberType>",
|
|
4579
4849
|
value: elem
|
|
4580
4850
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4585,7 +4855,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4585
4855
|
path: _path + ".incrementedBalances",
|
|
4586
4856
|
expected: "iIncrementedBalances<NumberType>",
|
|
4587
4857
|
value: input.incrementedBalances
|
|
4588
|
-
})) && $
|
|
4858
|
+
})) && $vo14(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4589
4859
|
path: _path + ".incrementedBalances",
|
|
4590
4860
|
expected: "iIncrementedBalances<NumberType>",
|
|
4591
4861
|
value: input.incrementedBalances
|
|
@@ -4593,36 +4863,36 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4593
4863
|
path: _path + ".orderCalculationMethod",
|
|
4594
4864
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4595
4865
|
value: input.orderCalculationMethod
|
|
4596
|
-
})) && $
|
|
4866
|
+
})) && $vo15(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4597
4867
|
path: _path + ".orderCalculationMethod",
|
|
4598
4868
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4599
4869
|
value: input.orderCalculationMethod
|
|
4600
|
-
})].every(flag => flag); const $
|
|
4870
|
+
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4601
4871
|
path: _path + ".balances",
|
|
4602
4872
|
expected: "Array<iBalance<NumberType>>",
|
|
4603
4873
|
value: input.balances
|
|
4604
|
-
})) && input.balances.map((elem,
|
|
4605
|
-
path: _path + ".balances[" +
|
|
4874
|
+
})) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4875
|
+
path: _path + ".balances[" + _index17 + "]",
|
|
4606
4876
|
expected: "iBalance<NumberType>",
|
|
4607
4877
|
value: elem
|
|
4608
|
-
})) && $vo2(elem, _path + ".balances[" +
|
|
4609
|
-
path: _path + ".balances[" +
|
|
4878
|
+
})) && $vo2(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4879
|
+
path: _path + ".balances[" + _index17 + "]",
|
|
4610
4880
|
expected: "iBalance<NumberType>",
|
|
4611
4881
|
value: elem
|
|
4612
4882
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
4613
4883
|
path: _path + ".balances",
|
|
4614
4884
|
expected: "Array<iBalance<NumberType>>",
|
|
4615
4885
|
value: input.balances
|
|
4616
|
-
})].every(flag => flag); const $
|
|
4886
|
+
})].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4617
4887
|
path: _path + ".startBalances",
|
|
4618
4888
|
expected: "Array<iBalance<NumberType>>",
|
|
4619
4889
|
value: input.startBalances
|
|
4620
|
-
})) && input.startBalances.map((elem,
|
|
4621
|
-
path: _path + ".startBalances[" +
|
|
4890
|
+
})) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4891
|
+
path: _path + ".startBalances[" + _index18 + "]",
|
|
4622
4892
|
expected: "iBalance<NumberType>",
|
|
4623
4893
|
value: elem
|
|
4624
|
-
})) && $vo2(elem, _path + ".startBalances[" +
|
|
4625
|
-
path: _path + ".startBalances[" +
|
|
4894
|
+
})) && $vo2(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4895
|
+
path: _path + ".startBalances[" + _index18 + "]",
|
|
4626
4896
|
expected: "iBalance<NumberType>",
|
|
4627
4897
|
value: elem
|
|
4628
4898
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4637,7 +4907,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4637
4907
|
path: _path + ".incrementOwnershipTimesBy",
|
|
4638
4908
|
expected: "(bigint | number | string)",
|
|
4639
4909
|
value: input.incrementOwnershipTimesBy
|
|
4640
|
-
})].every(flag => flag); const $
|
|
4910
|
+
})].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4641
4911
|
path: _path + ".useOverallNumTransfers",
|
|
4642
4912
|
expected: "boolean",
|
|
4643
4913
|
value: input.useOverallNumTransfers
|
|
@@ -4981,6 +5251,45 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4981
5251
|
return Promise.reject(error);
|
|
4982
5252
|
}
|
|
4983
5253
|
}
|
|
5254
|
+
async getGatedContentForClaim(claimId) {
|
|
5255
|
+
try {
|
|
5256
|
+
const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
5257
|
+
if (false === __is(input)) {
|
|
5258
|
+
errors = [];
|
|
5259
|
+
$report = typia_1.default.validate.report(errors);
|
|
5260
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
5261
|
+
path: _path + "",
|
|
5262
|
+
expected: "GetGatedContentForClaimPayload",
|
|
5263
|
+
value: input
|
|
5264
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5265
|
+
path: _path + "",
|
|
5266
|
+
expected: "GetGatedContentForClaimPayload",
|
|
5267
|
+
value: input
|
|
5268
|
+
}))(input, "$input", true);
|
|
5269
|
+
const success = 0 === errors.length;
|
|
5270
|
+
return {
|
|
5271
|
+
success,
|
|
5272
|
+
errors,
|
|
5273
|
+
data: success ? input : undefined
|
|
5274
|
+
};
|
|
5275
|
+
}
|
|
5276
|
+
return {
|
|
5277
|
+
success: true,
|
|
5278
|
+
errors: [],
|
|
5279
|
+
data: input
|
|
5280
|
+
};
|
|
5281
|
+
}; })()({});
|
|
5282
|
+
if (!validateRes.success) {
|
|
5283
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5284
|
+
}
|
|
5285
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetGatedContentForClaimRoute(claimId)}`);
|
|
5286
|
+
return new requests_js_1.GetGatedContentForClaimSuccessResponse(response.data);
|
|
5287
|
+
}
|
|
5288
|
+
catch (error) {
|
|
5289
|
+
await this.handleApiError(error);
|
|
5290
|
+
return Promise.reject(error);
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
4984
5293
|
async updateUserSeenActivity() {
|
|
4985
5294
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
4986
5295
|
}
|
|
@@ -6915,26 +7224,31 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6915
7224
|
if ("number" === typeof Number(key))
|
|
6916
7225
|
return "number" === typeof value;
|
|
6917
7226
|
return true;
|
|
6918
|
-
}); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $
|
|
7227
|
+
}); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io21(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io12(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io13(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)); const $io10 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))); const $io11 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io12 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io13 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io14 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io15(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io15(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io15(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata)); const $io15 = input => Object.keys(input).every(key => {
|
|
7228
|
+
const value = input[key];
|
|
7229
|
+
if (undefined === value)
|
|
7230
|
+
return true;
|
|
7231
|
+
return true;
|
|
7232
|
+
}); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io17 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io19(input.gatedContent)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io19 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io20(input.params)); const $io20 = input => Object.keys(input).every(key => {
|
|
6919
7233
|
const value = input[key];
|
|
6920
7234
|
if (undefined === value)
|
|
6921
7235
|
return true;
|
|
6922
7236
|
return true;
|
|
6923
|
-
}); const $
|
|
7237
|
+
}); const $io21 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io22(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io23(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io25(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io22 = input => Object.keys(input).every(key => {
|
|
6924
7238
|
const value = input[key];
|
|
6925
7239
|
if (undefined === value)
|
|
6926
7240
|
return true;
|
|
6927
7241
|
return "string" === typeof value;
|
|
6928
|
-
}); const $
|
|
7242
|
+
}); const $io23 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io24 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io25 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
|
|
6929
7243
|
path: _path + ".approvalDetails",
|
|
6930
7244
|
expected: "Array<__type>",
|
|
6931
7245
|
value: input.approvalDetails
|
|
6932
|
-
})) && input.approvalDetails.map((elem,
|
|
6933
|
-
path: _path + ".approvalDetails[" +
|
|
7246
|
+
})) && input.approvalDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7247
|
+
path: _path + ".approvalDetails[" + _index15 + "]",
|
|
6934
7248
|
expected: "__type",
|
|
6935
7249
|
value: elem
|
|
6936
|
-
})) && $vo1(elem, _path + ".approvalDetails[" +
|
|
6937
|
-
path: _path + ".approvalDetails[" +
|
|
7250
|
+
})) && $vo1(elem, _path + ".approvalDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7251
|
+
path: _path + ".approvalDetails[" + _index15 + "]",
|
|
6938
7252
|
expected: "__type",
|
|
6939
7253
|
value: elem
|
|
6940
7254
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6953,12 +7267,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6953
7267
|
path: _path + ".challengeInfoDetails",
|
|
6954
7268
|
expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
|
|
6955
7269
|
value: input.challengeInfoDetails
|
|
6956
|
-
})) && input.challengeInfoDetails.map((elem,
|
|
6957
|
-
path: _path + ".challengeInfoDetails[" +
|
|
7270
|
+
})) && input.challengeInfoDetails.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7271
|
+
path: _path + ".challengeInfoDetails[" + _index16 + "]",
|
|
6958
7272
|
expected: "iChallengeInfoDetails<NumberType>",
|
|
6959
7273
|
value: elem
|
|
6960
|
-
})) && $vo2(elem, _path + ".challengeInfoDetails[" +
|
|
6961
|
-
path: _path + ".challengeInfoDetails[" +
|
|
7274
|
+
})) && $vo2(elem, _path + ".challengeInfoDetails[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7275
|
+
path: _path + ".challengeInfoDetails[" + _index16 + "]",
|
|
6962
7276
|
expected: "iChallengeInfoDetails<NumberType>",
|
|
6963
7277
|
value: elem
|
|
6964
7278
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6985,8 +7299,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6985
7299
|
path: _path + ".leaves",
|
|
6986
7300
|
expected: "Array<string>",
|
|
6987
7301
|
value: input.leaves
|
|
6988
|
-
})) && input.leaves.map((elem,
|
|
6989
|
-
path: _path + ".leaves[" +
|
|
7302
|
+
})) && input.leaves.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
|
|
7303
|
+
path: _path + ".leaves[" + _index17 + "]",
|
|
6990
7304
|
expected: "string",
|
|
6991
7305
|
value: elem
|
|
6992
7306
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7001,8 +7315,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7001
7315
|
path: _path + ".preimages",
|
|
7002
7316
|
expected: "(Array<string> | undefined)",
|
|
7003
7317
|
value: input.preimages
|
|
7004
|
-
})) && input.preimages.map((elem,
|
|
7005
|
-
path: _path + ".preimages[" +
|
|
7318
|
+
})) && input.preimages.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable, {
|
|
7319
|
+
path: _path + ".preimages[" + _index18 + "]",
|
|
7006
7320
|
expected: "string",
|
|
7007
7321
|
value: elem
|
|
7008
7322
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7146,18 +7460,42 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7146
7460
|
path: _path + ".plugins",
|
|
7147
7461
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
7148
7462
|
value: input.plugins
|
|
7149
|
-
})) && input.plugins.map((elem,
|
|
7150
|
-
path: _path + ".plugins[" +
|
|
7463
|
+
})) && input.plugins.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7464
|
+
path: _path + ".plugins[" + _index19 + "]",
|
|
7151
7465
|
expected: "IntegrationPluginDetails<string>",
|
|
7152
7466
|
value: elem
|
|
7153
|
-
})) && $vo14(elem, _path + ".plugins[" +
|
|
7154
|
-
path: _path + ".plugins[" +
|
|
7467
|
+
})) && $vo14(elem, _path + ".plugins[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7468
|
+
path: _path + ".plugins[" + _index19 + "]",
|
|
7155
7469
|
expected: "IntegrationPluginDetails<string>",
|
|
7156
7470
|
value: elem
|
|
7157
7471
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7158
7472
|
path: _path + ".plugins",
|
|
7159
7473
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
7160
7474
|
value: input.plugins
|
|
7475
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
7476
|
+
path: _path + ".rewards",
|
|
7477
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
7478
|
+
value: input.rewards
|
|
7479
|
+
})) && input.rewards.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7480
|
+
path: _path + ".rewards[" + _index20 + "]",
|
|
7481
|
+
expected: "iClaimReward<NumberType>",
|
|
7482
|
+
value: elem
|
|
7483
|
+
})) && $vo17(elem, _path + ".rewards[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7484
|
+
path: _path + ".rewards[" + _index20 + "]",
|
|
7485
|
+
expected: "iClaimReward<NumberType>",
|
|
7486
|
+
value: elem
|
|
7487
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
7488
|
+
path: _path + ".rewards",
|
|
7489
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
7490
|
+
value: input.rewards
|
|
7491
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
7492
|
+
path: _path + ".estimatedCost",
|
|
7493
|
+
expected: "(string | undefined)",
|
|
7494
|
+
value: input.estimatedCost
|
|
7495
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
7496
|
+
path: _path + ".estimatedTime",
|
|
7497
|
+
expected: "(string | undefined)",
|
|
7498
|
+
value: input.estimatedTime
|
|
7161
7499
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
7162
7500
|
path: _path + ".manualDistribution",
|
|
7163
7501
|
expected: "(boolean | undefined)",
|
|
@@ -7174,7 +7512,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7174
7512
|
path: _path + ".metadata",
|
|
7175
7513
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
7176
7514
|
value: input.metadata
|
|
7177
|
-
})) && $
|
|
7515
|
+
})) && $vo21(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
7178
7516
|
path: _path + ".metadata",
|
|
7179
7517
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
7180
7518
|
value: input.metadata
|
|
@@ -7194,12 +7532,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7194
7532
|
path: _path + ".manualBalances",
|
|
7195
7533
|
expected: "Array<iManualBalances<NumberType>>",
|
|
7196
7534
|
value: input.manualBalances
|
|
7197
|
-
})) && input.manualBalances.map((elem,
|
|
7198
|
-
path: _path + ".manualBalances[" +
|
|
7535
|
+
})) && input.manualBalances.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7536
|
+
path: _path + ".manualBalances[" + _index21 + "]",
|
|
7199
7537
|
expected: "iManualBalances<NumberType>",
|
|
7200
7538
|
value: elem
|
|
7201
|
-
})) && $vo9(elem, _path + ".manualBalances[" +
|
|
7202
|
-
path: _path + ".manualBalances[" +
|
|
7539
|
+
})) && $vo9(elem, _path + ".manualBalances[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7540
|
+
path: _path + ".manualBalances[" + _index21 + "]",
|
|
7203
7541
|
expected: "iManualBalances<NumberType>",
|
|
7204
7542
|
value: elem
|
|
7205
7543
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7226,12 +7564,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7226
7564
|
path: _path + ".balances",
|
|
7227
7565
|
expected: "Array<iBalance<NumberType>>",
|
|
7228
7566
|
value: input.balances
|
|
7229
|
-
})) && input.balances.map((elem,
|
|
7230
|
-
path: _path + ".balances[" +
|
|
7567
|
+
})) && input.balances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7568
|
+
path: _path + ".balances[" + _index22 + "]",
|
|
7231
7569
|
expected: "iBalance<NumberType>",
|
|
7232
7570
|
value: elem
|
|
7233
|
-
})) && $vo10(elem, _path + ".balances[" +
|
|
7234
|
-
path: _path + ".balances[" +
|
|
7571
|
+
})) && $vo10(elem, _path + ".balances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7572
|
+
path: _path + ".balances[" + _index22 + "]",
|
|
7235
7573
|
expected: "iBalance<NumberType>",
|
|
7236
7574
|
value: elem
|
|
7237
7575
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7246,12 +7584,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7246
7584
|
path: _path + ".badgeIds",
|
|
7247
7585
|
expected: "Array<iUintRange<NumberType>>",
|
|
7248
7586
|
value: input.badgeIds
|
|
7249
|
-
})) && input.badgeIds.map((elem,
|
|
7250
|
-
path: _path + ".badgeIds[" +
|
|
7587
|
+
})) && input.badgeIds.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7588
|
+
path: _path + ".badgeIds[" + _index23 + "]",
|
|
7251
7589
|
expected: "iUintRange<NumberType>",
|
|
7252
7590
|
value: elem
|
|
7253
|
-
})) && $vo11(elem, _path + ".badgeIds[" +
|
|
7254
|
-
path: _path + ".badgeIds[" +
|
|
7591
|
+
})) && $vo11(elem, _path + ".badgeIds[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7592
|
+
path: _path + ".badgeIds[" + _index23 + "]",
|
|
7255
7593
|
expected: "iUintRange<NumberType>",
|
|
7256
7594
|
value: elem
|
|
7257
7595
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7262,12 +7600,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7262
7600
|
path: _path + ".ownershipTimes",
|
|
7263
7601
|
expected: "Array<iUintRange<NumberType>>",
|
|
7264
7602
|
value: input.ownershipTimes
|
|
7265
|
-
})) && input.ownershipTimes.map((elem,
|
|
7266
|
-
path: _path + ".ownershipTimes[" +
|
|
7603
|
+
})) && input.ownershipTimes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7604
|
+
path: _path + ".ownershipTimes[" + _index24 + "]",
|
|
7267
7605
|
expected: "iUintRange<NumberType>",
|
|
7268
7606
|
value: elem
|
|
7269
|
-
})) && $vo11(elem, _path + ".ownershipTimes[" +
|
|
7270
|
-
path: _path + ".ownershipTimes[" +
|
|
7607
|
+
})) && $vo11(elem, _path + ".ownershipTimes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7608
|
+
path: _path + ".ownershipTimes[" + _index24 + "]",
|
|
7271
7609
|
expected: "iUintRange<NumberType>",
|
|
7272
7610
|
value: elem
|
|
7273
7611
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7286,12 +7624,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7286
7624
|
path: _path + ".startBalances",
|
|
7287
7625
|
expected: "Array<iBalance<NumberType>>",
|
|
7288
7626
|
value: input.startBalances
|
|
7289
|
-
})) && input.startBalances.map((elem,
|
|
7290
|
-
path: _path + ".startBalances[" +
|
|
7627
|
+
})) && input.startBalances.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7628
|
+
path: _path + ".startBalances[" + _index25 + "]",
|
|
7291
7629
|
expected: "iBalance<NumberType>",
|
|
7292
7630
|
value: elem
|
|
7293
|
-
})) && $vo10(elem, _path + ".startBalances[" +
|
|
7294
|
-
path: _path + ".startBalances[" +
|
|
7631
|
+
})) && $vo10(elem, _path + ".startBalances[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7632
|
+
path: _path + ".startBalances[" + _index25 + "]",
|
|
7295
7633
|
expected: "iBalance<NumberType>",
|
|
7296
7634
|
value: elem
|
|
7297
7635
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7415,7 +7753,68 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7415
7753
|
path: _path + ".image",
|
|
7416
7754
|
expected: "(string | undefined)",
|
|
7417
7755
|
value: input.image
|
|
7418
|
-
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
7756
|
+
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
7757
|
+
path: _path + ".rewardId",
|
|
7758
|
+
expected: "string",
|
|
7759
|
+
value: input.rewardId
|
|
7760
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
7761
|
+
path: _path + ".instanceId",
|
|
7762
|
+
expected: "string",
|
|
7763
|
+
value: input.instanceId
|
|
7764
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
7765
|
+
path: _path + ".metadata",
|
|
7766
|
+
expected: "(__type.o2 | undefined)",
|
|
7767
|
+
value: input.metadata
|
|
7768
|
+
})) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
7769
|
+
path: _path + ".metadata",
|
|
7770
|
+
expected: "(__type.o2 | undefined)",
|
|
7771
|
+
value: input.metadata
|
|
7772
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
7773
|
+
path: _path + ".automatic",
|
|
7774
|
+
expected: "(boolean | undefined)",
|
|
7775
|
+
value: input.automatic
|
|
7776
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
7777
|
+
path: _path + ".gatedContent",
|
|
7778
|
+
expected: "iClaimGatedContent",
|
|
7779
|
+
value: input.gatedContent
|
|
7780
|
+
})) && $vo19(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
7781
|
+
path: _path + ".gatedContent",
|
|
7782
|
+
expected: "iClaimGatedContent",
|
|
7783
|
+
value: input.gatedContent
|
|
7784
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7785
|
+
path: _path + ".name",
|
|
7786
|
+
expected: "string",
|
|
7787
|
+
value: input.name
|
|
7788
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
7789
|
+
path: _path + ".description",
|
|
7790
|
+
expected: "string",
|
|
7791
|
+
value: input.description
|
|
7792
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
7793
|
+
path: _path + ".image",
|
|
7794
|
+
expected: "string",
|
|
7795
|
+
value: input.image
|
|
7796
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
7797
|
+
path: _path + ".content",
|
|
7798
|
+
expected: "(string | undefined)",
|
|
7799
|
+
value: input.content
|
|
7800
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
7801
|
+
path: _path + ".url",
|
|
7802
|
+
expected: "(string | undefined)",
|
|
7803
|
+
value: input.url
|
|
7804
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
7805
|
+
path: _path + ".params",
|
|
7806
|
+
expected: "(__type.o3 | undefined)",
|
|
7807
|
+
value: input.params
|
|
7808
|
+
})) && $vo20(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
7809
|
+
path: _path + ".params",
|
|
7810
|
+
expected: "(__type.o3 | undefined)",
|
|
7811
|
+
value: input.params
|
|
7812
|
+
})].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7813
|
+
const value = input[key];
|
|
7814
|
+
if (undefined === value)
|
|
7815
|
+
return true;
|
|
7816
|
+
return true;
|
|
7817
|
+
}).every(flag => flag)].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7419
7818
|
path: _path + ".name",
|
|
7420
7819
|
expected: "string",
|
|
7421
7820
|
value: input.name
|
|
@@ -7443,8 +7842,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7443
7842
|
path: _path + ".tags",
|
|
7444
7843
|
expected: "(Array<string> | undefined)",
|
|
7445
7844
|
value: input.tags
|
|
7446
|
-
})) && input.tags.map((elem,
|
|
7447
|
-
path: _path + ".tags[" +
|
|
7845
|
+
})) && input.tags.map((elem, _index26) => "string" === typeof elem || $report(_exceptionable, {
|
|
7846
|
+
path: _path + ".tags[" + _index26 + "]",
|
|
7448
7847
|
expected: "string",
|
|
7449
7848
|
value: elem
|
|
7450
7849
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7453,31 +7852,31 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7453
7852
|
value: input.tags
|
|
7454
7853
|
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
7455
7854
|
path: _path + ".socials",
|
|
7456
|
-
expected: "(__type.
|
|
7855
|
+
expected: "(__type.o4 | undefined)",
|
|
7457
7856
|
value: input.socials
|
|
7458
|
-
})) && $
|
|
7857
|
+
})) && $vo22(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
7459
7858
|
path: _path + ".socials",
|
|
7460
|
-
expected: "(__type.
|
|
7859
|
+
expected: "(__type.o4 | undefined)",
|
|
7461
7860
|
value: input.socials
|
|
7462
7861
|
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
7463
7862
|
path: _path + ".offChainTransferabilityInfo",
|
|
7464
|
-
expected: "(__type.
|
|
7863
|
+
expected: "(__type.o5 | undefined)",
|
|
7465
7864
|
value: input.offChainTransferabilityInfo
|
|
7466
|
-
})) && $
|
|
7865
|
+
})) && $vo23(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
7467
7866
|
path: _path + ".offChainTransferabilityInfo",
|
|
7468
|
-
expected: "(__type.
|
|
7867
|
+
expected: "(__type.o5 | undefined)",
|
|
7469
7868
|
value: input.offChainTransferabilityInfo
|
|
7470
7869
|
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
7471
7870
|
path: _path + ".attributes",
|
|
7472
7871
|
expected: "(Array<__type>.o1 | undefined)",
|
|
7473
7872
|
value: input.attributes
|
|
7474
|
-
})) && input.attributes.map((elem,
|
|
7475
|
-
path: _path + ".attributes[" +
|
|
7476
|
-
expected: "__type.
|
|
7873
|
+
})) && input.attributes.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7874
|
+
path: _path + ".attributes[" + _index27 + "]",
|
|
7875
|
+
expected: "__type.o6",
|
|
7477
7876
|
value: elem
|
|
7478
|
-
})) && $
|
|
7479
|
-
path: _path + ".attributes[" +
|
|
7480
|
-
expected: "__type.
|
|
7877
|
+
})) && $vo24(elem, _path + ".attributes[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7878
|
+
path: _path + ".attributes[" + _index27 + "]",
|
|
7879
|
+
expected: "__type.o6",
|
|
7481
7880
|
value: elem
|
|
7482
7881
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7483
7882
|
path: _path + ".attributes",
|
|
@@ -7487,13 +7886,13 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7487
7886
|
path: _path + ".utility",
|
|
7488
7887
|
expected: "(Array<__type>.o2 | undefined)",
|
|
7489
7888
|
value: input.utility
|
|
7490
|
-
})) && input.utility.map((elem,
|
|
7491
|
-
path: _path + ".utility[" +
|
|
7492
|
-
expected: "__type.
|
|
7889
|
+
})) && input.utility.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7890
|
+
path: _path + ".utility[" + _index28 + "]",
|
|
7891
|
+
expected: "__type.o7",
|
|
7493
7892
|
value: elem
|
|
7494
|
-
})) && $
|
|
7495
|
-
path: _path + ".utility[" +
|
|
7496
|
-
expected: "__type.
|
|
7893
|
+
})) && $vo25(elem, _path + ".utility[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7894
|
+
path: _path + ".utility[" + _index28 + "]",
|
|
7895
|
+
expected: "__type.o7",
|
|
7497
7896
|
value: elem
|
|
7498
7897
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7499
7898
|
path: _path + ".utility",
|
|
@@ -7511,7 +7910,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7511
7910
|
path: _path + "._isUpdating",
|
|
7512
7911
|
expected: "(boolean | undefined)",
|
|
7513
7912
|
value: input._isUpdating
|
|
7514
|
-
})].every(flag => flag); const $
|
|
7913
|
+
})].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7515
7914
|
const value = input[key];
|
|
7516
7915
|
if (undefined === value)
|
|
7517
7916
|
return true;
|
|
@@ -7520,7 +7919,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7520
7919
|
expected: "string",
|
|
7521
7920
|
value: value
|
|
7522
7921
|
});
|
|
7523
|
-
}).every(flag => flag)].every(flag => flag); const $
|
|
7922
|
+
}).every(flag => flag)].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
7524
7923
|
path: _path + ".host",
|
|
7525
7924
|
expected: "string",
|
|
7526
7925
|
value: input.host
|
|
@@ -7528,7 +7927,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7528
7927
|
path: _path + ".assignMethod",
|
|
7529
7928
|
expected: "string",
|
|
7530
7929
|
value: input.assignMethod
|
|
7531
|
-
})].every(flag => flag); const $
|
|
7930
|
+
})].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
7532
7931
|
path: _path + ".type",
|
|
7533
7932
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7534
7933
|
value: input.type
|
|
@@ -7540,7 +7939,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7540
7939
|
path: _path + ".value",
|
|
7541
7940
|
expected: "(boolean | number | string)",
|
|
7542
7941
|
value: input.value
|
|
7543
|
-
})].every(flag => flag); const $
|
|
7942
|
+
})].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7544
7943
|
path: _path + ".name",
|
|
7545
7944
|
expected: "string",
|
|
7546
7945
|
value: input.name
|