bitbadgesjs-sdk 0.3.199 → 0.3.201
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.js +18 -18
- package/dist/cjs/api-indexer/BitBadgesApi.js +101 -69
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +3 -3
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +9 -0
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +5 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +18 -18
- package/dist/esm/api-indexer/BitBadgesApi.js +101 -69
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +3 -3
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +9 -0
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +9 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -2774,7 +2774,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
async getClaims(payload) {
|
|
2776
2776
|
try {
|
|
2777
|
-
const validateRes = (() => { const $io0 = input => (undefined === input.claimIds || Array.isArray(input.claimIds) && input.claimIds.every(elem => "string" === typeof elem)) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.siwbbClaimsOnly || "boolean" === typeof input.siwbbClaimsOnly); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.claimIds || (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
2777
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.claimIds || Array.isArray(input.claimIds) && input.claimIds.every(elem => "string" === typeof elem)) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.siwbbClaimsOnly || "boolean" === typeof input.siwbbClaimsOnly) && (undefined === input.bookmark || "string" === typeof input.bookmark); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.claimIds || (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
2778
2778
|
path: _path + ".claimIds",
|
|
2779
2779
|
expected: "(Array<string> | undefined)",
|
|
2780
2780
|
value: input.claimIds
|
|
@@ -2794,6 +2794,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
2794
2794
|
path: _path + ".siwbbClaimsOnly",
|
|
2795
2795
|
expected: "(boolean | undefined)",
|
|
2796
2796
|
value: input.siwbbClaimsOnly
|
|
2797
|
+
}), undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
2798
|
+
path: _path + ".bookmark",
|
|
2799
|
+
expected: "(string | undefined)",
|
|
2800
|
+
value: input.bookmark
|
|
2797
2801
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
2798
2802
|
if (false === __is(input)) {
|
|
2799
2803
|
errors = [];
|
|
@@ -3223,17 +3227,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3223
3227
|
}
|
|
3224
3228
|
async createClaims(payload) {
|
|
3225
3229
|
try {
|
|
3226
|
-
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.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) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.
|
|
3230
|
+
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) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(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 && $io12(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.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 => {
|
|
3227
3231
|
const value = input[key];
|
|
3228
3232
|
if (undefined === value)
|
|
3229
3233
|
return true;
|
|
3230
3234
|
return "string" === typeof value;
|
|
3231
|
-
}); 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 => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); const $io8 = 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 && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem))); const $io9 = 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 $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(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 $io11 = 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 $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(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) && $io14(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) && $io14(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $
|
|
3235
|
+
}); 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 => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); const $io8 = 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 && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem))); const $io9 = 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 $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(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 $io11 = 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 $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(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) && $io14(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) && $io14(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io14(input.privateParams)); const $io13 = input => "string" === typeof input.name && "string" === typeof input.description; const $io14 = input => Object.keys(input).every(key => {
|
|
3232
3236
|
const value = input[key];
|
|
3233
3237
|
if (undefined === value)
|
|
3234
3238
|
return true;
|
|
3235
3239
|
return true;
|
|
3236
|
-
}); const $
|
|
3240
|
+
}); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3237
3241
|
path: _path + ".claims",
|
|
3238
3242
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3239
3243
|
value: input.claims
|
|
@@ -3257,7 +3261,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3257
3261
|
path: _path + ".siwbbClaim",
|
|
3258
3262
|
expected: "(boolean | undefined)",
|
|
3259
3263
|
value: input.siwbbClaim
|
|
3260
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
3264
|
+
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
3265
|
+
path: _path + ".collectionId",
|
|
3266
|
+
expected: "(bigint | number | string | undefined)",
|
|
3267
|
+
value: input.collectionId
|
|
3268
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3261
3269
|
path: _path + ".metadata",
|
|
3262
3270
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
3263
3271
|
value: input.metadata
|
|
@@ -3277,6 +3285,14 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3277
3285
|
path: _path + ".seedCode",
|
|
3278
3286
|
expected: "(string | undefined)",
|
|
3279
3287
|
value: input.seedCode
|
|
3288
|
+
}), undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim || $report(_exceptionable, {
|
|
3289
|
+
path: _path + ".siwbbClaim",
|
|
3290
|
+
expected: "(boolean | undefined)",
|
|
3291
|
+
value: input.siwbbClaim
|
|
3292
|
+
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
3293
|
+
path: _path + ".listId",
|
|
3294
|
+
expected: "(string | undefined)",
|
|
3295
|
+
value: input.listId
|
|
3280
3296
|
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
3281
3297
|
path: _path + ".balancesToSet",
|
|
3282
3298
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
@@ -3297,14 +3313,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3297
3313
|
path: _path + ".assignMethod",
|
|
3298
3314
|
expected: "(string | undefined)",
|
|
3299
3315
|
value: input.assignMethod
|
|
3300
|
-
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
3301
|
-
path: _path + ".listId",
|
|
3302
|
-
expected: "(string | undefined)",
|
|
3303
|
-
value: input.listId
|
|
3304
|
-
}), undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
3305
|
-
path: _path + ".collectionId",
|
|
3306
|
-
expected: "(bigint | number | string | undefined)",
|
|
3307
|
-
value: input.collectionId
|
|
3308
3316
|
}), undefined === input.cid || "string" === typeof input.cid || $report(_exceptionable, {
|
|
3309
3317
|
path: _path + ".cid",
|
|
3310
3318
|
expected: "(string | undefined)",
|
|
@@ -3620,11 +3628,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3620
3628
|
value: input.publicParams
|
|
3621
3629
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
3622
3630
|
path: _path + ".privateParams",
|
|
3623
|
-
expected: "
|
|
3631
|
+
expected: "Record<string, any>",
|
|
3624
3632
|
value: input.privateParams
|
|
3625
|
-
})) && $
|
|
3633
|
+
})) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
3626
3634
|
path: _path + ".privateParams",
|
|
3627
|
-
expected: "
|
|
3635
|
+
expected: "Record<string, any>",
|
|
3628
3636
|
value: input.privateParams
|
|
3629
3637
|
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3630
3638
|
path: _path + ".name",
|
|
@@ -3639,7 +3647,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3639
3647
|
if (undefined === value)
|
|
3640
3648
|
return true;
|
|
3641
3649
|
return true;
|
|
3642
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
3650
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
3643
3651
|
if (false === __is(input)) {
|
|
3644
3652
|
errors = [];
|
|
3645
3653
|
$report = typia_1.default.validate.report(errors);
|
|
@@ -3731,17 +3739,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3731
3739
|
}
|
|
3732
3740
|
async updateClaims(payload) {
|
|
3733
3741
|
try {
|
|
3734
|
-
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.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) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(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.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 => {
|
|
3742
|
+
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) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(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.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 => {
|
|
3735
3743
|
const value = input[key];
|
|
3736
3744
|
if (undefined === value)
|
|
3737
3745
|
return true;
|
|
3738
3746
|
return "string" === typeof value;
|
|
3739
|
-
}); 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 => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); const $io8 = 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 && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem))); const $io9 = 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 $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(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 $io11 = 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 $io12 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io13(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io13(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(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) && $io13(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $
|
|
3747
|
+
}); 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 => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); const $io8 = 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 && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem))); const $io9 = 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 $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(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 $io11 = 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 $io12 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io13(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io13(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(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) && $io13(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io13(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)); const $io13 = input => Object.keys(input).every(key => {
|
|
3740
3748
|
const value = input[key];
|
|
3741
3749
|
if (undefined === value)
|
|
3742
3750
|
return true;
|
|
3743
3751
|
return true;
|
|
3744
|
-
}); const $io14 = input =>
|
|
3752
|
+
}); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3745
3753
|
path: _path + ".claims",
|
|
3746
3754
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
|
|
3747
3755
|
value: input.claims
|
|
@@ -3757,7 +3765,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3757
3765
|
path: _path + ".claims",
|
|
3758
3766
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
|
|
3759
3767
|
value: input.claims
|
|
3760
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
3768
|
+
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
3769
|
+
path: _path + ".collectionId",
|
|
3770
|
+
expected: "(bigint | number | string | undefined)",
|
|
3771
|
+
value: input.collectionId
|
|
3772
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3761
3773
|
path: _path + ".metadata",
|
|
3762
3774
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
3763
3775
|
value: input.metadata
|
|
@@ -3773,6 +3785,14 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3773
3785
|
path: _path + ".claimId",
|
|
3774
3786
|
expected: "string",
|
|
3775
3787
|
value: input.claimId
|
|
3788
|
+
}), undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim || $report(_exceptionable, {
|
|
3789
|
+
path: _path + ".siwbbClaim",
|
|
3790
|
+
expected: "(boolean | undefined)",
|
|
3791
|
+
value: input.siwbbClaim
|
|
3792
|
+
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
3793
|
+
path: _path + ".listId",
|
|
3794
|
+
expected: "(string | undefined)",
|
|
3795
|
+
value: input.listId
|
|
3776
3796
|
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
3777
3797
|
path: _path + ".balancesToSet",
|
|
3778
3798
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
@@ -4112,26 +4132,26 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4112
4132
|
value: input.publicParams
|
|
4113
4133
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4114
4134
|
path: _path + ".privateParams",
|
|
4115
|
-
expected: "
|
|
4135
|
+
expected: "Record<string, any>",
|
|
4116
4136
|
value: input.privateParams
|
|
4117
|
-
})) && $
|
|
4137
|
+
})) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4118
4138
|
path: _path + ".privateParams",
|
|
4119
|
-
expected: "
|
|
4139
|
+
expected: "Record<string, any>",
|
|
4120
4140
|
value: input.privateParams
|
|
4121
4141
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4122
4142
|
path: _path + ".metadata",
|
|
4123
|
-
expected: "(__type.
|
|
4143
|
+
expected: "(__type.o3 | undefined)",
|
|
4124
4144
|
value: input.metadata
|
|
4125
|
-
})) && $
|
|
4145
|
+
})) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4126
4146
|
path: _path + ".metadata",
|
|
4127
|
-
expected: "(__type.
|
|
4147
|
+
expected: "(__type.o3 | undefined)",
|
|
4128
4148
|
value: input.metadata
|
|
4129
4149
|
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4130
4150
|
const value = input[key];
|
|
4131
4151
|
if (undefined === value)
|
|
4132
4152
|
return true;
|
|
4133
4153
|
return true;
|
|
4134
|
-
}).every(flag => flag)].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) =>
|
|
4154
|
+
}).every(flag => flag)].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4135
4155
|
path: _path + ".name",
|
|
4136
4156
|
expected: "string",
|
|
4137
4157
|
value: input.name
|
|
@@ -4226,12 +4246,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4226
4246
|
if (undefined === value)
|
|
4227
4247
|
return true;
|
|
4228
4248
|
return Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
|
|
4229
|
-
}); 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 && $
|
|
4249
|
+
}); 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 && $io8(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 => {
|
|
4230
4250
|
const value = input[key];
|
|
4231
4251
|
if (undefined === value)
|
|
4232
4252
|
return true;
|
|
4233
4253
|
return true;
|
|
4234
|
-
}); const $io7 = input =>
|
|
4254
|
+
}); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description; 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 && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io10 = 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 $io11 = 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, {
|
|
4235
4255
|
path: _path + ".balances",
|
|
4236
4256
|
expected: "(iOffChainBalancesMap<NumberType> | undefined)",
|
|
4237
4257
|
value: input.balances
|
|
@@ -4356,7 +4376,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4356
4376
|
path: _path + ".balancesToSet",
|
|
4357
4377
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4358
4378
|
value: input.balancesToSet
|
|
4359
|
-
})) && $
|
|
4379
|
+
})) && $vo8(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4360
4380
|
path: _path + ".balancesToSet",
|
|
4361
4381
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4362
4382
|
value: input.balancesToSet
|
|
@@ -4418,26 +4438,26 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4418
4438
|
value: input.publicParams
|
|
4419
4439
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4420
4440
|
path: _path + ".privateParams",
|
|
4421
|
-
expected: "
|
|
4441
|
+
expected: "Record<string, any>",
|
|
4422
4442
|
value: input.privateParams
|
|
4423
|
-
})) && $
|
|
4443
|
+
})) && $vo6(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4424
4444
|
path: _path + ".privateParams",
|
|
4425
|
-
expected: "
|
|
4445
|
+
expected: "Record<string, any>",
|
|
4426
4446
|
value: input.privateParams
|
|
4427
4447
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4428
4448
|
path: _path + ".metadata",
|
|
4429
|
-
expected: "(__type.
|
|
4449
|
+
expected: "(__type.o1 | undefined)",
|
|
4430
4450
|
value: input.metadata
|
|
4431
|
-
})) && $
|
|
4451
|
+
})) && $vo7(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4432
4452
|
path: _path + ".metadata",
|
|
4433
|
-
expected: "(__type.
|
|
4453
|
+
expected: "(__type.o1 | undefined)",
|
|
4434
4454
|
value: input.metadata
|
|
4435
4455
|
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4436
4456
|
const value = input[key];
|
|
4437
4457
|
if (undefined === value)
|
|
4438
4458
|
return true;
|
|
4439
4459
|
return true;
|
|
4440
|
-
}).every(flag => flag)].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) =>
|
|
4460
|
+
}).every(flag => flag)].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4441
4461
|
path: _path + ".name",
|
|
4442
4462
|
expected: "string",
|
|
4443
4463
|
value: input.name
|
|
@@ -4445,7 +4465,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4445
4465
|
path: _path + ".description",
|
|
4446
4466
|
expected: "string",
|
|
4447
4467
|
value: input.description
|
|
4448
|
-
})].every(flag => flag); const $
|
|
4468
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4449
4469
|
path: _path + ".manualBalances",
|
|
4450
4470
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4451
4471
|
value: input.manualBalances
|
|
@@ -4453,7 +4473,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4453
4473
|
path: _path + ".manualBalances[" + _index14 + "]",
|
|
4454
4474
|
expected: "iManualBalances<NumberType>",
|
|
4455
4475
|
value: elem
|
|
4456
|
-
})) && $
|
|
4476
|
+
})) && $vo9(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4457
4477
|
path: _path + ".manualBalances[" + _index14 + "]",
|
|
4458
4478
|
expected: "iManualBalances<NumberType>",
|
|
4459
4479
|
value: elem
|
|
@@ -4465,7 +4485,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4465
4485
|
path: _path + ".incrementedBalances",
|
|
4466
4486
|
expected: "iIncrementedBalances<NumberType>",
|
|
4467
4487
|
value: input.incrementedBalances
|
|
4468
|
-
})) && $
|
|
4488
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4469
4489
|
path: _path + ".incrementedBalances",
|
|
4470
4490
|
expected: "iIncrementedBalances<NumberType>",
|
|
4471
4491
|
value: input.incrementedBalances
|
|
@@ -4473,11 +4493,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4473
4493
|
path: _path + ".orderCalculationMethod",
|
|
4474
4494
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4475
4495
|
value: input.orderCalculationMethod
|
|
4476
|
-
})) && $
|
|
4496
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4477
4497
|
path: _path + ".orderCalculationMethod",
|
|
4478
4498
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4479
4499
|
value: input.orderCalculationMethod
|
|
4480
|
-
})].every(flag => flag); const $
|
|
4500
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4481
4501
|
path: _path + ".balances",
|
|
4482
4502
|
expected: "Array<iBalance<NumberType>>",
|
|
4483
4503
|
value: input.balances
|
|
@@ -4493,7 +4513,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4493
4513
|
path: _path + ".balances",
|
|
4494
4514
|
expected: "Array<iBalance<NumberType>>",
|
|
4495
4515
|
value: input.balances
|
|
4496
|
-
})].every(flag => flag); const $
|
|
4516
|
+
})].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4497
4517
|
path: _path + ".startBalances",
|
|
4498
4518
|
expected: "Array<iBalance<NumberType>>",
|
|
4499
4519
|
value: input.startBalances
|
|
@@ -4517,7 +4537,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4517
4537
|
path: _path + ".incrementOwnershipTimesBy",
|
|
4518
4538
|
expected: "(bigint | number | string)",
|
|
4519
4539
|
value: input.incrementOwnershipTimesBy
|
|
4520
|
-
})].every(flag => flag); const $
|
|
4540
|
+
})].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4521
4541
|
path: _path + ".useOverallNumTransfers",
|
|
4522
4542
|
expected: "boolean",
|
|
4523
4543
|
value: input.useOverallNumTransfers
|
|
@@ -6747,17 +6767,17 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6747
6767
|
if ("number" === typeof Number(key))
|
|
6748
6768
|
return "number" === typeof value;
|
|
6749
6769
|
return true;
|
|
6750
|
-
}); const $io7 = input => "string" === typeof input.claimId && (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 && $
|
|
6770
|
+
}); 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 && $io17(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 => {
|
|
6751
6771
|
const value = input[key];
|
|
6752
6772
|
if (undefined === value)
|
|
6753
6773
|
return true;
|
|
6754
6774
|
return true;
|
|
6755
|
-
}); const $io16 = input =>
|
|
6775
|
+
}); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description; const $io17 = 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) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(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 $io18 = input => Object.keys(input).every(key => {
|
|
6756
6776
|
const value = input[key];
|
|
6757
6777
|
if (undefined === value)
|
|
6758
6778
|
return true;
|
|
6759
6779
|
return "string" === typeof value;
|
|
6760
|
-
}); const $
|
|
6780
|
+
}); const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io20 = 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 $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
|
|
6761
6781
|
path: _path + ".approvalDetails",
|
|
6762
6782
|
expected: "Array<__type>",
|
|
6763
6783
|
value: input.approvalDetails
|
|
@@ -6954,6 +6974,18 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6954
6974
|
path: _path + ".claimId",
|
|
6955
6975
|
expected: "string",
|
|
6956
6976
|
value: input.claimId
|
|
6977
|
+
}), undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
6978
|
+
path: _path + ".collectionId",
|
|
6979
|
+
expected: "(bigint | number | string | undefined)",
|
|
6980
|
+
value: input.collectionId
|
|
6981
|
+
}), undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim || $report(_exceptionable, {
|
|
6982
|
+
path: _path + ".siwbbClaim",
|
|
6983
|
+
expected: "(boolean | undefined)",
|
|
6984
|
+
value: input.siwbbClaim
|
|
6985
|
+
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
6986
|
+
path: _path + ".listId",
|
|
6987
|
+
expected: "(string | undefined)",
|
|
6988
|
+
value: input.listId
|
|
6957
6989
|
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
6958
6990
|
path: _path + ".balancesToSet",
|
|
6959
6991
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
@@ -6994,7 +7026,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6994
7026
|
path: _path + ".metadata",
|
|
6995
7027
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6996
7028
|
value: input.metadata
|
|
6997
|
-
})) && $
|
|
7029
|
+
})) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6998
7030
|
path: _path + ".metadata",
|
|
6999
7031
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
7000
7032
|
value: input.metadata
|
|
@@ -7204,26 +7236,26 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7204
7236
|
value: input.publicParams
|
|
7205
7237
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
7206
7238
|
path: _path + ".privateParams",
|
|
7207
|
-
expected: "
|
|
7239
|
+
expected: "Record<string, any>",
|
|
7208
7240
|
value: input.privateParams
|
|
7209
|
-
})) && $
|
|
7241
|
+
})) && $vo15(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
7210
7242
|
path: _path + ".privateParams",
|
|
7211
|
-
expected: "
|
|
7243
|
+
expected: "Record<string, any>",
|
|
7212
7244
|
value: input.privateParams
|
|
7213
7245
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
7214
7246
|
path: _path + ".metadata",
|
|
7215
|
-
expected: "(__type.
|
|
7247
|
+
expected: "(__type.o1 | undefined)",
|
|
7216
7248
|
value: input.metadata
|
|
7217
|
-
})) && $
|
|
7249
|
+
})) && $vo16(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
7218
7250
|
path: _path + ".metadata",
|
|
7219
|
-
expected: "(__type.
|
|
7251
|
+
expected: "(__type.o1 | undefined)",
|
|
7220
7252
|
value: input.metadata
|
|
7221
7253
|
})].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7222
7254
|
const value = input[key];
|
|
7223
7255
|
if (undefined === value)
|
|
7224
7256
|
return true;
|
|
7225
7257
|
return true;
|
|
7226
|
-
}).every(flag => flag)].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) =>
|
|
7258
|
+
}).every(flag => flag)].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7227
7259
|
path: _path + ".name",
|
|
7228
7260
|
expected: "string",
|
|
7229
7261
|
value: input.name
|
|
@@ -7231,7 +7263,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7231
7263
|
path: _path + ".description",
|
|
7232
7264
|
expected: "string",
|
|
7233
7265
|
value: input.description
|
|
7234
|
-
})].every(flag => flag); const $
|
|
7266
|
+
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7235
7267
|
path: _path + ".name",
|
|
7236
7268
|
expected: "string",
|
|
7237
7269
|
value: input.name
|
|
@@ -7269,19 +7301,19 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7269
7301
|
value: input.tags
|
|
7270
7302
|
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
7271
7303
|
path: _path + ".socials",
|
|
7272
|
-
expected: "(__type.
|
|
7304
|
+
expected: "(__type.o2 | undefined)",
|
|
7273
7305
|
value: input.socials
|
|
7274
|
-
})) && $
|
|
7306
|
+
})) && $vo18(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
7275
7307
|
path: _path + ".socials",
|
|
7276
|
-
expected: "(__type.
|
|
7308
|
+
expected: "(__type.o2 | undefined)",
|
|
7277
7309
|
value: input.socials
|
|
7278
7310
|
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
7279
7311
|
path: _path + ".offChainTransferabilityInfo",
|
|
7280
|
-
expected: "(__type.
|
|
7312
|
+
expected: "(__type.o3 | undefined)",
|
|
7281
7313
|
value: input.offChainTransferabilityInfo
|
|
7282
|
-
})) && $
|
|
7314
|
+
})) && $vo19(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
7283
7315
|
path: _path + ".offChainTransferabilityInfo",
|
|
7284
|
-
expected: "(__type.
|
|
7316
|
+
expected: "(__type.o3 | undefined)",
|
|
7285
7317
|
value: input.offChainTransferabilityInfo
|
|
7286
7318
|
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
7287
7319
|
path: _path + ".attributes",
|
|
@@ -7289,11 +7321,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7289
7321
|
value: input.attributes
|
|
7290
7322
|
})) && input.attributes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7291
7323
|
path: _path + ".attributes[" + _index24 + "]",
|
|
7292
|
-
expected: "__type.
|
|
7324
|
+
expected: "__type.o4",
|
|
7293
7325
|
value: elem
|
|
7294
|
-
})) && $
|
|
7326
|
+
})) && $vo20(elem, _path + ".attributes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7295
7327
|
path: _path + ".attributes[" + _index24 + "]",
|
|
7296
|
-
expected: "__type.
|
|
7328
|
+
expected: "__type.o4",
|
|
7297
7329
|
value: elem
|
|
7298
7330
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7299
7331
|
path: _path + ".attributes",
|
|
@@ -7311,7 +7343,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7311
7343
|
path: _path + "._isUpdating",
|
|
7312
7344
|
expected: "(boolean | undefined)",
|
|
7313
7345
|
value: input._isUpdating
|
|
7314
|
-
})].every(flag => flag); const $
|
|
7346
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7315
7347
|
const value = input[key];
|
|
7316
7348
|
if (undefined === value)
|
|
7317
7349
|
return true;
|
|
@@ -7320,7 +7352,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7320
7352
|
expected: "string",
|
|
7321
7353
|
value: value
|
|
7322
7354
|
});
|
|
7323
|
-
}).every(flag => flag)].every(flag => flag); const $
|
|
7355
|
+
}).every(flag => flag)].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
7324
7356
|
path: _path + ".host",
|
|
7325
7357
|
expected: "string",
|
|
7326
7358
|
value: input.host
|
|
@@ -7328,7 +7360,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7328
7360
|
path: _path + ".assignMethod",
|
|
7329
7361
|
expected: "string",
|
|
7330
7362
|
value: input.assignMethod
|
|
7331
|
-
})].every(flag => flag); const $
|
|
7363
|
+
})].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
7332
7364
|
path: _path + ".type",
|
|
7333
7365
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7334
7366
|
value: input.type
|