bitbadgesjs-sdk 0.3.86 → 0.3.87
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/api-indexer/BitBadgesApi.js +460 -456
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +2 -2
- package/dist/api-indexer/docs/docs.d.ts +1 -1
- package/dist/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/requests/requests.d.ts +3 -3
- package/dist/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/chain-drivers/verifySig.d.ts +1 -1
- package/dist/core/blockin.d.ts +0 -1
- package/dist/core/blockin.d.ts.map +1 -1
- package/dist/core/blockin.js +0 -15
- package/dist/core/blockin.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1254,7 +1254,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1254
1254
|
const errors = [];
|
|
1255
1255
|
const __is = input => {
|
|
1256
1256
|
const $io0 = input => (undefined === input.code || "string" === typeof input.code) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.client_secret || "string" === typeof input.client_secret) && (undefined === input.client_id || "string" === typeof input.client_id) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.grant_type || "authorization_code" === input.grant_type || "refresh_token" === input.grant_type) && (undefined === input.refresh_token || "string" === typeof input.refresh_token);
|
|
1257
|
-
const $io1 = input => (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "
|
|
1257
|
+
const $io1 = input => (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "twitter" === elem || "github" === elem || "google" === elem)) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification);
|
|
1258
1258
|
const $io2 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
1259
1259
|
const $io3 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
1260
1260
|
const $io4 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io7(input.options));
|
|
@@ -1319,15 +1319,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1319
1319
|
value: input.ownershipRequirements
|
|
1320
1320
|
}), undefined === input.otherSignIns || (Array.isArray(input.otherSignIns) || $report(_exceptionable, {
|
|
1321
1321
|
path: _path + ".otherSignIns",
|
|
1322
|
-
expected: "(Array<\"discord\" | \"
|
|
1322
|
+
expected: "(Array<\"discord\" | \"twitter\" | \"github\" | \"google\"> | undefined)",
|
|
1323
1323
|
value: input.otherSignIns
|
|
1324
|
-
})) && input.otherSignIns.map((elem, _index1) => "discord" === elem || "
|
|
1324
|
+
})) && input.otherSignIns.map((elem, _index1) => "discord" === elem || "twitter" === elem || "github" === elem || "google" === elem || $report(_exceptionable, {
|
|
1325
1325
|
path: _path + ".otherSignIns[" + _index1 + "]",
|
|
1326
1326
|
expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
|
|
1327
1327
|
value: elem
|
|
1328
1328
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
1329
1329
|
path: _path + ".otherSignIns",
|
|
1330
|
-
expected: "(Array<\"discord\" | \"
|
|
1330
|
+
expected: "(Array<\"discord\" | \"twitter\" | \"github\" | \"google\"> | undefined)",
|
|
1331
1331
|
value: input.otherSignIns
|
|
1332
1332
|
}), undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs || $report(_exceptionable, {
|
|
1333
1333
|
path: _path + ".issuedAtTimeWindowMs",
|
|
@@ -1569,7 +1569,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1569
1569
|
const validateRes = (input => {
|
|
1570
1570
|
const errors = [];
|
|
1571
1571
|
const __is = input => {
|
|
1572
|
-
const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && "string" === typeof input.client_id && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "
|
|
1572
|
+
const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && "string" === typeof input.client_id && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "twitter" === elem || "github" === elem || "google" === elem)) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.state || "string" === typeof input.state);
|
|
1573
1573
|
const $io1 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io2(input.options));
|
|
1574
1574
|
const $io2 = input => true;
|
|
1575
1575
|
const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
@@ -1660,15 +1660,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1660
1660
|
value: input.client_id
|
|
1661
1661
|
}), undefined === input.otherSignIns || (Array.isArray(input.otherSignIns) || $report(_exceptionable, {
|
|
1662
1662
|
path: _path + ".otherSignIns",
|
|
1663
|
-
expected: "(Array<\"discord\" | \"
|
|
1663
|
+
expected: "(Array<\"discord\" | \"twitter\" | \"github\" | \"google\"> | undefined)",
|
|
1664
1664
|
value: input.otherSignIns
|
|
1665
|
-
})) && input.otherSignIns.map((elem, _index3) => "discord" === elem || "
|
|
1665
|
+
})) && input.otherSignIns.map((elem, _index3) => "discord" === elem || "twitter" === elem || "github" === elem || "google" === elem || $report(_exceptionable, {
|
|
1666
1666
|
path: _path + ".otherSignIns[" + _index3 + "]",
|
|
1667
1667
|
expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
|
|
1668
1668
|
value: elem
|
|
1669
1669
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
1670
1670
|
path: _path + ".otherSignIns",
|
|
1671
|
-
expected: "(Array<\"discord\" | \"
|
|
1671
|
+
expected: "(Array<\"discord\" | \"twitter\" | \"github\" | \"google\"> | undefined)",
|
|
1672
1672
|
value: input.otherSignIns
|
|
1673
1673
|
}), undefined === input.redirect_uri || "string" === typeof input.redirect_uri || $report(_exceptionable, {
|
|
1674
1674
|
path: _path + ".redirect_uri",
|
|
@@ -2121,7 +2121,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
2121
2121
|
const errors = [];
|
|
2122
2122
|
const __is = input => {
|
|
2123
2123
|
const $io0 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
2124
|
-
const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification);
|
|
2124
|
+
const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification);
|
|
2125
2125
|
const $io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.statement || "string" === typeof input.statement) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.uri || "string" === typeof input.uri) && (undefined === input.nonce || "string" === typeof input.nonce) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.chainId || "string" === typeof input.chainId) && (undefined === input.issuedAt || "string" === typeof input.issuedAt) && (undefined === input.expirationDate || "string" === typeof input.expirationDate) && (undefined === input.notBefore || "string" === typeof input.notBefore) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every(elem => "string" === typeof elem)) && (undefined === input.assetOwnershipRequirements || "object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements && $iu0(input.assetOwnershipRequirements));
|
|
2126
2126
|
const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
2127
2127
|
const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
@@ -2207,6 +2207,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
2207
2207
|
path: _path + ".balancesSnapshot",
|
|
2208
2208
|
expected: "(object | undefined)",
|
|
2209
2209
|
value: input.balancesSnapshot
|
|
2210
|
+
}), undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride || $report(_exceptionable, {
|
|
2211
|
+
path: _path + ".verificationTimeOverride",
|
|
2212
|
+
expected: "(number | undefined)",
|
|
2213
|
+
value: input.verificationTimeOverride
|
|
2210
2214
|
}), undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification || $report(_exceptionable, {
|
|
2211
2215
|
path: _path + ".skipTimestampVerification",
|
|
2212
2216
|
expected: "(boolean | undefined)",
|
|
@@ -3615,21 +3619,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3615
3619
|
const errors = [];
|
|
3616
3620
|
const __is = input => {
|
|
3617
3621
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3618
|
-
const $io1 = input => (undefined === input.
|
|
3619
|
-
const $io2 = input =>
|
|
3620
|
-
const $io3 = input =>
|
|
3622
|
+
const $io1 = input => (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
|
|
3623
|
+
const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3624
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3625
|
+
const $io4 = 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 && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
|
|
3626
|
+
const $io5 = 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);
|
|
3627
|
+
const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(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);
|
|
3628
|
+
const $io8 = 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) && $io9(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io10(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io11(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);
|
|
3629
|
+
const $io9 = input => Object.keys(input).every(key => {
|
|
3621
3630
|
const value = input[key];
|
|
3622
3631
|
if (undefined === value)
|
|
3623
3632
|
return true;
|
|
3624
3633
|
return "string" === typeof value;
|
|
3625
3634
|
});
|
|
3626
|
-
const $
|
|
3627
|
-
const $
|
|
3628
|
-
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 && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3629
|
-
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3630
|
-
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)));
|
|
3631
|
-
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);
|
|
3632
|
-
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);
|
|
3635
|
+
const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3636
|
+
const $io11 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
3633
3637
|
const $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(input.metadata)) && (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 && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
3634
3638
|
const $io13 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
3635
3639
|
const $io14 = input => true;
|
|
@@ -3656,15 +3660,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3656
3660
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3657
3661
|
value: input.claims
|
|
3658
3662
|
})].every(flag => flag);
|
|
3659
|
-
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
3660
|
-
path: _path + ".metadata",
|
|
3661
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3662
|
-
value: input.metadata
|
|
3663
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3664
|
-
path: _path + ".metadata",
|
|
3665
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3666
|
-
value: input.metadata
|
|
3667
|
-
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3663
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3668
3664
|
path: _path + ".seedCode",
|
|
3669
3665
|
expected: "(string | undefined)",
|
|
3670
3666
|
value: input.seedCode
|
|
@@ -3676,7 +3672,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3676
3672
|
path: _path + ".balancesToSet",
|
|
3677
3673
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3678
3674
|
value: input.balancesToSet
|
|
3679
|
-
})) && $
|
|
3675
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3680
3676
|
path: _path + ".balancesToSet",
|
|
3681
3677
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3682
3678
|
value: input.balancesToSet
|
|
@@ -3688,6 +3684,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3688
3684
|
path: _path + ".approach",
|
|
3689
3685
|
expected: "(string | undefined)",
|
|
3690
3686
|
value: input.approach
|
|
3687
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3688
|
+
path: _path + ".metadata",
|
|
3689
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3690
|
+
value: input.metadata
|
|
3691
|
+
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3692
|
+
path: _path + ".metadata",
|
|
3693
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3694
|
+
value: input.metadata
|
|
3691
3695
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3692
3696
|
path: _path + ".assignMethod",
|
|
3693
3697
|
expected: "(string | undefined)",
|
|
@@ -3721,129 +3725,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3721
3725
|
expected: "Array<ManagePluginRequest>",
|
|
3722
3726
|
value: input.plugins
|
|
3723
3727
|
})].every(flag => flag);
|
|
3724
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
3725
|
-
path: _path + ".name",
|
|
3726
|
-
expected: "string",
|
|
3727
|
-
value: input.name
|
|
3728
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3729
|
-
path: _path + ".description",
|
|
3730
|
-
expected: "string",
|
|
3731
|
-
value: input.description
|
|
3732
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3733
|
-
path: _path + ".image",
|
|
3734
|
-
expected: "string",
|
|
3735
|
-
value: input.image
|
|
3736
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3737
|
-
path: _path + ".video",
|
|
3738
|
-
expected: "(string | undefined)",
|
|
3739
|
-
value: input.video
|
|
3740
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3741
|
-
path: _path + ".category",
|
|
3742
|
-
expected: "(string | undefined)",
|
|
3743
|
-
value: input.category
|
|
3744
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3745
|
-
path: _path + ".externalUrl",
|
|
3746
|
-
expected: "(string | undefined)",
|
|
3747
|
-
value: input.externalUrl
|
|
3748
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3749
|
-
path: _path + ".tags",
|
|
3750
|
-
expected: "(Array<string> | undefined)",
|
|
3751
|
-
value: input.tags
|
|
3752
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
3753
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
3754
|
-
expected: "string",
|
|
3755
|
-
value: elem
|
|
3756
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3757
|
-
path: _path + ".tags",
|
|
3758
|
-
expected: "(Array<string> | undefined)",
|
|
3759
|
-
value: input.tags
|
|
3760
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3761
|
-
path: _path + ".socials",
|
|
3762
|
-
expected: "(__type | undefined)",
|
|
3763
|
-
value: input.socials
|
|
3764
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3765
|
-
path: _path + ".socials",
|
|
3766
|
-
expected: "(__type | undefined)",
|
|
3767
|
-
value: input.socials
|
|
3768
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3769
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3770
|
-
expected: "(__type.o1 | undefined)",
|
|
3771
|
-
value: input.offChainTransferabilityInfo
|
|
3772
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3773
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3774
|
-
expected: "(__type.o1 | undefined)",
|
|
3775
|
-
value: input.offChainTransferabilityInfo
|
|
3776
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3777
|
-
path: _path + ".attributes",
|
|
3778
|
-
expected: "(Array<__type> | undefined)",
|
|
3779
|
-
value: input.attributes
|
|
3780
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3781
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3782
|
-
expected: "__type.o2",
|
|
3783
|
-
value: elem
|
|
3784
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3785
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3786
|
-
expected: "__type.o2",
|
|
3787
|
-
value: elem
|
|
3788
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3789
|
-
path: _path + ".attributes",
|
|
3790
|
-
expected: "(Array<__type> | undefined)",
|
|
3791
|
-
value: input.attributes
|
|
3792
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3793
|
-
path: _path + ".fetchedAtBlock",
|
|
3794
|
-
expected: "(bigint | number | string | undefined)",
|
|
3795
|
-
value: input.fetchedAtBlock
|
|
3796
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3797
|
-
path: _path + ".fetchedAt",
|
|
3798
|
-
expected: "(bigint | number | string | undefined)",
|
|
3799
|
-
value: input.fetchedAt
|
|
3800
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3801
|
-
path: _path + "._isUpdating",
|
|
3802
|
-
expected: "(boolean | undefined)",
|
|
3803
|
-
value: input._isUpdating
|
|
3804
|
-
})].every(flag => flag);
|
|
3805
|
-
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3806
|
-
const value = input[key];
|
|
3807
|
-
if (undefined === value)
|
|
3808
|
-
return true;
|
|
3809
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3810
|
-
path: _path + $join(key),
|
|
3811
|
-
expected: "string",
|
|
3812
|
-
value: value
|
|
3813
|
-
});
|
|
3814
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3815
|
-
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3816
|
-
path: _path + ".host",
|
|
3817
|
-
expected: "string",
|
|
3818
|
-
value: input.host
|
|
3819
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3820
|
-
path: _path + ".assignMethod",
|
|
3821
|
-
expected: "string",
|
|
3822
|
-
value: input.assignMethod
|
|
3823
|
-
})].every(flag => flag);
|
|
3824
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
3825
|
-
path: _path + ".type",
|
|
3826
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3827
|
-
value: input.type
|
|
3828
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3829
|
-
path: _path + ".name",
|
|
3830
|
-
expected: "string",
|
|
3831
|
-
value: input.name
|
|
3832
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3833
|
-
path: _path + ".value",
|
|
3834
|
-
expected: "(boolean | number | string)",
|
|
3835
|
-
value: input.value
|
|
3836
|
-
})].every(flag => flag);
|
|
3837
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3728
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3838
3729
|
path: _path + ".manualBalances",
|
|
3839
3730
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3840
3731
|
value: input.manualBalances
|
|
3841
|
-
})) && input.manualBalances.map((elem,
|
|
3842
|
-
path: _path + ".manualBalances[" +
|
|
3732
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3733
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3843
3734
|
expected: "iManualBalances<NumberType>",
|
|
3844
3735
|
value: elem
|
|
3845
|
-
})) && $
|
|
3846
|
-
path: _path + ".manualBalances[" +
|
|
3736
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3737
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3847
3738
|
expected: "iManualBalances<NumberType>",
|
|
3848
3739
|
value: elem
|
|
3849
3740
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3854,7 +3745,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3854
3745
|
path: _path + ".incrementedBalances",
|
|
3855
3746
|
expected: "iIncrementedBalances<NumberType>",
|
|
3856
3747
|
value: input.incrementedBalances
|
|
3857
|
-
})) && $
|
|
3748
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3858
3749
|
path: _path + ".incrementedBalances",
|
|
3859
3750
|
expected: "iIncrementedBalances<NumberType>",
|
|
3860
3751
|
value: input.incrementedBalances
|
|
@@ -3862,21 +3753,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3862
3753
|
path: _path + ".orderCalculationMethod",
|
|
3863
3754
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3864
3755
|
value: input.orderCalculationMethod
|
|
3865
|
-
})) && $
|
|
3756
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3866
3757
|
path: _path + ".orderCalculationMethod",
|
|
3867
3758
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3868
3759
|
value: input.orderCalculationMethod
|
|
3869
3760
|
})].every(flag => flag);
|
|
3870
|
-
const $
|
|
3761
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3871
3762
|
path: _path + ".balances",
|
|
3872
3763
|
expected: "Array<iBalance<NumberType>>",
|
|
3873
3764
|
value: input.balances
|
|
3874
|
-
})) && input.balances.map((elem,
|
|
3875
|
-
path: _path + ".balances[" +
|
|
3765
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3766
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3876
3767
|
expected: "iBalance<NumberType>",
|
|
3877
3768
|
value: elem
|
|
3878
|
-
})) && $
|
|
3879
|
-
path: _path + ".balances[" +
|
|
3769
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3770
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3880
3771
|
expected: "iBalance<NumberType>",
|
|
3881
3772
|
value: elem
|
|
3882
3773
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3884,7 +3775,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3884
3775
|
expected: "Array<iBalance<NumberType>>",
|
|
3885
3776
|
value: input.balances
|
|
3886
3777
|
})].every(flag => flag);
|
|
3887
|
-
const $
|
|
3778
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3888
3779
|
path: _path + ".amount",
|
|
3889
3780
|
expected: "(bigint | number | string)",
|
|
3890
3781
|
value: input.amount
|
|
@@ -3892,12 +3783,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3892
3783
|
path: _path + ".badgeIds",
|
|
3893
3784
|
expected: "Array<iUintRange<NumberType>>",
|
|
3894
3785
|
value: input.badgeIds
|
|
3895
|
-
})) && input.badgeIds.map((elem,
|
|
3896
|
-
path: _path + ".badgeIds[" +
|
|
3786
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3787
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3897
3788
|
expected: "iUintRange<NumberType>",
|
|
3898
3789
|
value: elem
|
|
3899
|
-
})) && $
|
|
3900
|
-
path: _path + ".badgeIds[" +
|
|
3790
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3791
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3901
3792
|
expected: "iUintRange<NumberType>",
|
|
3902
3793
|
value: elem
|
|
3903
3794
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3908,12 +3799,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3908
3799
|
path: _path + ".ownershipTimes",
|
|
3909
3800
|
expected: "Array<iUintRange<NumberType>>",
|
|
3910
3801
|
value: input.ownershipTimes
|
|
3911
|
-
})) && input.ownershipTimes.map((elem,
|
|
3912
|
-
path: _path + ".ownershipTimes[" +
|
|
3802
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3803
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3913
3804
|
expected: "iUintRange<NumberType>",
|
|
3914
3805
|
value: elem
|
|
3915
|
-
})) && $
|
|
3916
|
-
path: _path + ".ownershipTimes[" +
|
|
3806
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3807
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3917
3808
|
expected: "iUintRange<NumberType>",
|
|
3918
3809
|
value: elem
|
|
3919
3810
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3921,7 +3812,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3921
3812
|
expected: "Array<iUintRange<NumberType>>",
|
|
3922
3813
|
value: input.ownershipTimes
|
|
3923
3814
|
})].every(flag => flag);
|
|
3924
|
-
const $
|
|
3815
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3925
3816
|
path: _path + ".start",
|
|
3926
3817
|
expected: "(bigint | number | string)",
|
|
3927
3818
|
value: input.start
|
|
@@ -3930,16 +3821,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3930
3821
|
expected: "(bigint | number | string)",
|
|
3931
3822
|
value: input.end
|
|
3932
3823
|
})].every(flag => flag);
|
|
3933
|
-
const $
|
|
3824
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3934
3825
|
path: _path + ".startBalances",
|
|
3935
3826
|
expected: "Array<iBalance<NumberType>>",
|
|
3936
3827
|
value: input.startBalances
|
|
3937
|
-
})) && input.startBalances.map((elem,
|
|
3938
|
-
path: _path + ".startBalances[" +
|
|
3828
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3829
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3939
3830
|
expected: "iBalance<NumberType>",
|
|
3940
3831
|
value: elem
|
|
3941
|
-
})) && $
|
|
3942
|
-
path: _path + ".startBalances[" +
|
|
3832
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3833
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3943
3834
|
expected: "iBalance<NumberType>",
|
|
3944
3835
|
value: elem
|
|
3945
3836
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3955,7 +3846,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3955
3846
|
expected: "(bigint | number | string)",
|
|
3956
3847
|
value: input.incrementOwnershipTimesBy
|
|
3957
3848
|
})].every(flag => flag);
|
|
3958
|
-
const $
|
|
3849
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3959
3850
|
path: _path + ".useOverallNumTransfers",
|
|
3960
3851
|
expected: "boolean",
|
|
3961
3852
|
value: input.useOverallNumTransfers
|
|
@@ -3980,6 +3871,119 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3980
3871
|
expected: "string",
|
|
3981
3872
|
value: input.challengeTrackerId
|
|
3982
3873
|
})].every(flag => flag);
|
|
3874
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3875
|
+
path: _path + ".name",
|
|
3876
|
+
expected: "string",
|
|
3877
|
+
value: input.name
|
|
3878
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3879
|
+
path: _path + ".description",
|
|
3880
|
+
expected: "string",
|
|
3881
|
+
value: input.description
|
|
3882
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3883
|
+
path: _path + ".image",
|
|
3884
|
+
expected: "string",
|
|
3885
|
+
value: input.image
|
|
3886
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3887
|
+
path: _path + ".video",
|
|
3888
|
+
expected: "(string | undefined)",
|
|
3889
|
+
value: input.video
|
|
3890
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3891
|
+
path: _path + ".category",
|
|
3892
|
+
expected: "(string | undefined)",
|
|
3893
|
+
value: input.category
|
|
3894
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3895
|
+
path: _path + ".externalUrl",
|
|
3896
|
+
expected: "(string | undefined)",
|
|
3897
|
+
value: input.externalUrl
|
|
3898
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3899
|
+
path: _path + ".tags",
|
|
3900
|
+
expected: "(Array<string> | undefined)",
|
|
3901
|
+
value: input.tags
|
|
3902
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3903
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
3904
|
+
expected: "string",
|
|
3905
|
+
value: elem
|
|
3906
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3907
|
+
path: _path + ".tags",
|
|
3908
|
+
expected: "(Array<string> | undefined)",
|
|
3909
|
+
value: input.tags
|
|
3910
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3911
|
+
path: _path + ".socials",
|
|
3912
|
+
expected: "(__type | undefined)",
|
|
3913
|
+
value: input.socials
|
|
3914
|
+
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3915
|
+
path: _path + ".socials",
|
|
3916
|
+
expected: "(__type | undefined)",
|
|
3917
|
+
value: input.socials
|
|
3918
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3919
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3920
|
+
expected: "(__type.o1 | undefined)",
|
|
3921
|
+
value: input.offChainTransferabilityInfo
|
|
3922
|
+
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3923
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3924
|
+
expected: "(__type.o1 | undefined)",
|
|
3925
|
+
value: input.offChainTransferabilityInfo
|
|
3926
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3927
|
+
path: _path + ".attributes",
|
|
3928
|
+
expected: "(Array<__type> | undefined)",
|
|
3929
|
+
value: input.attributes
|
|
3930
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3931
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3932
|
+
expected: "__type.o2",
|
|
3933
|
+
value: elem
|
|
3934
|
+
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3935
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3936
|
+
expected: "__type.o2",
|
|
3937
|
+
value: elem
|
|
3938
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3939
|
+
path: _path + ".attributes",
|
|
3940
|
+
expected: "(Array<__type> | undefined)",
|
|
3941
|
+
value: input.attributes
|
|
3942
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3943
|
+
path: _path + ".fetchedAtBlock",
|
|
3944
|
+
expected: "(bigint | number | string | undefined)",
|
|
3945
|
+
value: input.fetchedAtBlock
|
|
3946
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3947
|
+
path: _path + ".fetchedAt",
|
|
3948
|
+
expected: "(bigint | number | string | undefined)",
|
|
3949
|
+
value: input.fetchedAt
|
|
3950
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3951
|
+
path: _path + "._isUpdating",
|
|
3952
|
+
expected: "(boolean | undefined)",
|
|
3953
|
+
value: input._isUpdating
|
|
3954
|
+
})].every(flag => flag);
|
|
3955
|
+
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3956
|
+
const value = input[key];
|
|
3957
|
+
if (undefined === value)
|
|
3958
|
+
return true;
|
|
3959
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3960
|
+
path: _path + $join(key),
|
|
3961
|
+
expected: "string",
|
|
3962
|
+
value: value
|
|
3963
|
+
});
|
|
3964
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3965
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3966
|
+
path: _path + ".host",
|
|
3967
|
+
expected: "string",
|
|
3968
|
+
value: input.host
|
|
3969
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3970
|
+
path: _path + ".assignMethod",
|
|
3971
|
+
expected: "string",
|
|
3972
|
+
value: input.assignMethod
|
|
3973
|
+
})].every(flag => flag);
|
|
3974
|
+
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3975
|
+
path: _path + ".type",
|
|
3976
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3977
|
+
value: input.type
|
|
3978
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3979
|
+
path: _path + ".name",
|
|
3980
|
+
expected: "string",
|
|
3981
|
+
value: input.name
|
|
3982
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3983
|
+
path: _path + ".value",
|
|
3984
|
+
expected: "(boolean | number | string)",
|
|
3985
|
+
value: input.value
|
|
3986
|
+
})].every(flag => flag);
|
|
3983
3987
|
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3984
3988
|
path: _path + ".metadata",
|
|
3985
3989
|
expected: "(__type.o3 | undefined)",
|
|
@@ -4129,24 +4133,24 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4129
4133
|
const errors = [];
|
|
4130
4134
|
const __is = input => {
|
|
4131
4135
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4132
|
-
const $io1 = input =>
|
|
4133
|
-
const $io2 = input =>
|
|
4134
|
-
const $io3 = input =>
|
|
4136
|
+
const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io11(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
|
|
4137
|
+
const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
4138
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
4139
|
+
const $io4 = 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 && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
|
|
4140
|
+
const $io5 = 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);
|
|
4141
|
+
const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(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);
|
|
4142
|
+
const $io8 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io9(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io9(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io10(input.metadata));
|
|
4143
|
+
const $io9 = input => true;
|
|
4144
|
+
const $io10 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4145
|
+
const $io11 = 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) && $io12(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io13(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io14(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);
|
|
4146
|
+
const $io12 = input => Object.keys(input).every(key => {
|
|
4135
4147
|
const value = input[key];
|
|
4136
4148
|
if (undefined === value)
|
|
4137
4149
|
return true;
|
|
4138
4150
|
return "string" === typeof value;
|
|
4139
4151
|
});
|
|
4140
|
-
const $
|
|
4141
|
-
const $
|
|
4142
|
-
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 && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
4143
|
-
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
4144
|
-
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)));
|
|
4145
|
-
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);
|
|
4146
|
-
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);
|
|
4147
|
-
const $io12 = input => "object" === typeof input.publicState && null !== input.publicState && true && (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 && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata));
|
|
4148
|
-
const $io13 = input => true;
|
|
4149
|
-
const $io14 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4152
|
+
const $io13 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
4153
|
+
const $io14 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
4150
4154
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4151
4155
|
};
|
|
4152
4156
|
if (false === __is(input)) {
|
|
@@ -4170,15 +4174,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4170
4174
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4171
4175
|
value: input.claims
|
|
4172
4176
|
})].every(flag => flag);
|
|
4173
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
4174
|
-
path: _path + ".metadata",
|
|
4175
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4176
|
-
value: input.metadata
|
|
4177
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4178
|
-
path: _path + ".metadata",
|
|
4179
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4180
|
-
value: input.metadata
|
|
4181
|
-
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4177
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
4182
4178
|
path: _path + ".claimId",
|
|
4183
4179
|
expected: "string",
|
|
4184
4180
|
value: input.claimId
|
|
@@ -4186,7 +4182,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4186
4182
|
path: _path + ".balancesToSet",
|
|
4187
4183
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4188
4184
|
value: input.balancesToSet
|
|
4189
|
-
})) && $
|
|
4185
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4190
4186
|
path: _path + ".balancesToSet",
|
|
4191
4187
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4192
4188
|
value: input.balancesToSet
|
|
@@ -4198,7 +4194,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4198
4194
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4199
4195
|
expected: "IntegrationPluginDetails<string>",
|
|
4200
4196
|
value: elem
|
|
4201
|
-
})) && $
|
|
4197
|
+
})) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4202
4198
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4203
4199
|
expected: "IntegrationPluginDetails<string>",
|
|
4204
4200
|
value: elem
|
|
@@ -4214,134 +4210,29 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4214
4210
|
path: _path + ".approach",
|
|
4215
4211
|
expected: "(string | undefined)",
|
|
4216
4212
|
value: input.approach
|
|
4213
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4214
|
+
path: _path + ".metadata",
|
|
4215
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4216
|
+
value: input.metadata
|
|
4217
|
+
})) && $vo11(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4218
|
+
path: _path + ".metadata",
|
|
4219
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4220
|
+
value: input.metadata
|
|
4217
4221
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4218
4222
|
path: _path + ".assignMethod",
|
|
4219
|
-
expected: "(string | undefined)",
|
|
4220
|
-
value: input.assignMethod
|
|
4221
|
-
})].every(flag => flag);
|
|
4222
|
-
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4223
|
-
path: _path + ".name",
|
|
4224
|
-
expected: "string",
|
|
4225
|
-
value: input.name
|
|
4226
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4227
|
-
path: _path + ".description",
|
|
4228
|
-
expected: "string",
|
|
4229
|
-
value: input.description
|
|
4230
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4231
|
-
path: _path + ".image",
|
|
4232
|
-
expected: "string",
|
|
4233
|
-
value: input.image
|
|
4234
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4235
|
-
path: _path + ".video",
|
|
4236
|
-
expected: "(string | undefined)",
|
|
4237
|
-
value: input.video
|
|
4238
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4239
|
-
path: _path + ".category",
|
|
4240
|
-
expected: "(string | undefined)",
|
|
4241
|
-
value: input.category
|
|
4242
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4243
|
-
path: _path + ".externalUrl",
|
|
4244
|
-
expected: "(string | undefined)",
|
|
4245
|
-
value: input.externalUrl
|
|
4246
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4247
|
-
path: _path + ".tags",
|
|
4248
|
-
expected: "(Array<string> | undefined)",
|
|
4249
|
-
value: input.tags
|
|
4250
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
4251
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
4252
|
-
expected: "string",
|
|
4253
|
-
value: elem
|
|
4254
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4255
|
-
path: _path + ".tags",
|
|
4256
|
-
expected: "(Array<string> | undefined)",
|
|
4257
|
-
value: input.tags
|
|
4258
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4259
|
-
path: _path + ".socials",
|
|
4260
|
-
expected: "(__type | undefined)",
|
|
4261
|
-
value: input.socials
|
|
4262
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4263
|
-
path: _path + ".socials",
|
|
4264
|
-
expected: "(__type | undefined)",
|
|
4265
|
-
value: input.socials
|
|
4266
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4267
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4268
|
-
expected: "(__type.o1 | undefined)",
|
|
4269
|
-
value: input.offChainTransferabilityInfo
|
|
4270
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4271
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4272
|
-
expected: "(__type.o1 | undefined)",
|
|
4273
|
-
value: input.offChainTransferabilityInfo
|
|
4274
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4275
|
-
path: _path + ".attributes",
|
|
4276
|
-
expected: "(Array<__type> | undefined)",
|
|
4277
|
-
value: input.attributes
|
|
4278
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4279
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4280
|
-
expected: "__type.o2",
|
|
4281
|
-
value: elem
|
|
4282
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4283
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4284
|
-
expected: "__type.o2",
|
|
4285
|
-
value: elem
|
|
4286
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4287
|
-
path: _path + ".attributes",
|
|
4288
|
-
expected: "(Array<__type> | undefined)",
|
|
4289
|
-
value: input.attributes
|
|
4290
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4291
|
-
path: _path + ".fetchedAtBlock",
|
|
4292
|
-
expected: "(bigint | number | string | undefined)",
|
|
4293
|
-
value: input.fetchedAtBlock
|
|
4294
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4295
|
-
path: _path + ".fetchedAt",
|
|
4296
|
-
expected: "(bigint | number | string | undefined)",
|
|
4297
|
-
value: input.fetchedAt
|
|
4298
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4299
|
-
path: _path + "._isUpdating",
|
|
4300
|
-
expected: "(boolean | undefined)",
|
|
4301
|
-
value: input._isUpdating
|
|
4302
|
-
})].every(flag => flag);
|
|
4303
|
-
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4304
|
-
const value = input[key];
|
|
4305
|
-
if (undefined === value)
|
|
4306
|
-
return true;
|
|
4307
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
4308
|
-
path: _path + $join(key),
|
|
4309
|
-
expected: "string",
|
|
4310
|
-
value: value
|
|
4311
|
-
});
|
|
4312
|
-
}).every(flag => flag)].every(flag => flag);
|
|
4313
|
-
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4314
|
-
path: _path + ".host",
|
|
4315
|
-
expected: "string",
|
|
4316
|
-
value: input.host
|
|
4317
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4318
|
-
path: _path + ".assignMethod",
|
|
4319
|
-
expected: "string",
|
|
4223
|
+
expected: "(string | undefined)",
|
|
4320
4224
|
value: input.assignMethod
|
|
4321
4225
|
})].every(flag => flag);
|
|
4322
|
-
const $
|
|
4323
|
-
path: _path + ".type",
|
|
4324
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4325
|
-
value: input.type
|
|
4326
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4327
|
-
path: _path + ".name",
|
|
4328
|
-
expected: "string",
|
|
4329
|
-
value: input.name
|
|
4330
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4331
|
-
path: _path + ".value",
|
|
4332
|
-
expected: "(boolean | number | string)",
|
|
4333
|
-
value: input.value
|
|
4334
|
-
})].every(flag => flag);
|
|
4335
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4226
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4336
4227
|
path: _path + ".manualBalances",
|
|
4337
4228
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4338
4229
|
value: input.manualBalances
|
|
4339
|
-
})) && input.manualBalances.map((elem,
|
|
4340
|
-
path: _path + ".manualBalances[" +
|
|
4230
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4231
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4341
4232
|
expected: "iManualBalances<NumberType>",
|
|
4342
4233
|
value: elem
|
|
4343
|
-
})) && $
|
|
4344
|
-
path: _path + ".manualBalances[" +
|
|
4234
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4235
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4345
4236
|
expected: "iManualBalances<NumberType>",
|
|
4346
4237
|
value: elem
|
|
4347
4238
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4352,7 +4243,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4352
4243
|
path: _path + ".incrementedBalances",
|
|
4353
4244
|
expected: "iIncrementedBalances<NumberType>",
|
|
4354
4245
|
value: input.incrementedBalances
|
|
4355
|
-
})) && $
|
|
4246
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4356
4247
|
path: _path + ".incrementedBalances",
|
|
4357
4248
|
expected: "iIncrementedBalances<NumberType>",
|
|
4358
4249
|
value: input.incrementedBalances
|
|
@@ -4360,21 +4251,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4360
4251
|
path: _path + ".orderCalculationMethod",
|
|
4361
4252
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4362
4253
|
value: input.orderCalculationMethod
|
|
4363
|
-
})) && $
|
|
4254
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4364
4255
|
path: _path + ".orderCalculationMethod",
|
|
4365
4256
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4366
4257
|
value: input.orderCalculationMethod
|
|
4367
4258
|
})].every(flag => flag);
|
|
4368
|
-
const $
|
|
4259
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4369
4260
|
path: _path + ".balances",
|
|
4370
4261
|
expected: "Array<iBalance<NumberType>>",
|
|
4371
4262
|
value: input.balances
|
|
4372
|
-
})) && input.balances.map((elem,
|
|
4373
|
-
path: _path + ".balances[" +
|
|
4263
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4264
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4374
4265
|
expected: "iBalance<NumberType>",
|
|
4375
4266
|
value: elem
|
|
4376
|
-
})) && $
|
|
4377
|
-
path: _path + ".balances[" +
|
|
4267
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4268
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4378
4269
|
expected: "iBalance<NumberType>",
|
|
4379
4270
|
value: elem
|
|
4380
4271
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4382,7 +4273,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4382
4273
|
expected: "Array<iBalance<NumberType>>",
|
|
4383
4274
|
value: input.balances
|
|
4384
4275
|
})].every(flag => flag);
|
|
4385
|
-
const $
|
|
4276
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4386
4277
|
path: _path + ".amount",
|
|
4387
4278
|
expected: "(bigint | number | string)",
|
|
4388
4279
|
value: input.amount
|
|
@@ -4390,12 +4281,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4390
4281
|
path: _path + ".badgeIds",
|
|
4391
4282
|
expected: "Array<iUintRange<NumberType>>",
|
|
4392
4283
|
value: input.badgeIds
|
|
4393
|
-
})) && input.badgeIds.map((elem,
|
|
4394
|
-
path: _path + ".badgeIds[" +
|
|
4284
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4285
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4395
4286
|
expected: "iUintRange<NumberType>",
|
|
4396
4287
|
value: elem
|
|
4397
|
-
})) && $
|
|
4398
|
-
path: _path + ".badgeIds[" +
|
|
4288
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4289
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4399
4290
|
expected: "iUintRange<NumberType>",
|
|
4400
4291
|
value: elem
|
|
4401
4292
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4406,12 +4297,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4406
4297
|
path: _path + ".ownershipTimes",
|
|
4407
4298
|
expected: "Array<iUintRange<NumberType>>",
|
|
4408
4299
|
value: input.ownershipTimes
|
|
4409
|
-
})) && input.ownershipTimes.map((elem,
|
|
4410
|
-
path: _path + ".ownershipTimes[" +
|
|
4300
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4301
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4411
4302
|
expected: "iUintRange<NumberType>",
|
|
4412
4303
|
value: elem
|
|
4413
|
-
})) && $
|
|
4414
|
-
path: _path + ".ownershipTimes[" +
|
|
4304
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4305
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4415
4306
|
expected: "iUintRange<NumberType>",
|
|
4416
4307
|
value: elem
|
|
4417
4308
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4419,7 +4310,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4419
4310
|
expected: "Array<iUintRange<NumberType>>",
|
|
4420
4311
|
value: input.ownershipTimes
|
|
4421
4312
|
})].every(flag => flag);
|
|
4422
|
-
const $
|
|
4313
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4423
4314
|
path: _path + ".start",
|
|
4424
4315
|
expected: "(bigint | number | string)",
|
|
4425
4316
|
value: input.start
|
|
@@ -4428,16 +4319,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4428
4319
|
expected: "(bigint | number | string)",
|
|
4429
4320
|
value: input.end
|
|
4430
4321
|
})].every(flag => flag);
|
|
4431
|
-
const $
|
|
4322
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4432
4323
|
path: _path + ".startBalances",
|
|
4433
4324
|
expected: "Array<iBalance<NumberType>>",
|
|
4434
4325
|
value: input.startBalances
|
|
4435
|
-
})) && input.startBalances.map((elem,
|
|
4436
|
-
path: _path + ".startBalances[" +
|
|
4326
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4327
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4437
4328
|
expected: "iBalance<NumberType>",
|
|
4438
4329
|
value: elem
|
|
4439
|
-
})) && $
|
|
4440
|
-
path: _path + ".startBalances[" +
|
|
4330
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4331
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4441
4332
|
expected: "iBalance<NumberType>",
|
|
4442
4333
|
value: elem
|
|
4443
4334
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4453,7 +4344,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4453
4344
|
expected: "(bigint | number | string)",
|
|
4454
4345
|
value: input.incrementOwnershipTimesBy
|
|
4455
4346
|
})].every(flag => flag);
|
|
4456
|
-
const $
|
|
4347
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4457
4348
|
path: _path + ".useOverallNumTransfers",
|
|
4458
4349
|
expected: "boolean",
|
|
4459
4350
|
value: input.useOverallNumTransfers
|
|
@@ -4478,21 +4369,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4478
4369
|
expected: "string",
|
|
4479
4370
|
value: input.challengeTrackerId
|
|
4480
4371
|
})].every(flag => flag);
|
|
4481
|
-
const $
|
|
4372
|
+
const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4482
4373
|
path: _path + ".publicState",
|
|
4483
|
-
expected: "__type
|
|
4374
|
+
expected: "__type",
|
|
4484
4375
|
value: input.publicState
|
|
4485
|
-
})) && $
|
|
4376
|
+
})) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4486
4377
|
path: _path + ".publicState",
|
|
4487
|
-
expected: "__type
|
|
4378
|
+
expected: "__type",
|
|
4488
4379
|
value: input.publicState
|
|
4489
4380
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4490
4381
|
path: _path + ".privateState",
|
|
4491
|
-
expected: "(__type
|
|
4382
|
+
expected: "(__type | undefined)",
|
|
4492
4383
|
value: input.privateState
|
|
4493
|
-
})) && $
|
|
4384
|
+
})) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4494
4385
|
path: _path + ".privateState",
|
|
4495
|
-
expected: "(__type
|
|
4386
|
+
expected: "(__type | undefined)",
|
|
4496
4387
|
value: input.privateState
|
|
4497
4388
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4498
4389
|
path: _path + ".resetState",
|
|
@@ -4500,11 +4391,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4500
4391
|
value: input.resetState
|
|
4501
4392
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4502
4393
|
path: _path + ".newState",
|
|
4503
|
-
expected: "(__type
|
|
4394
|
+
expected: "(__type | undefined)",
|
|
4504
4395
|
value: input.newState
|
|
4505
|
-
})) && $
|
|
4396
|
+
})) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4506
4397
|
path: _path + ".newState",
|
|
4507
|
-
expected: "(__type
|
|
4398
|
+
expected: "(__type | undefined)",
|
|
4508
4399
|
value: input.newState
|
|
4509
4400
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4510
4401
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4520,31 +4411,40 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4520
4411
|
value: input.pluginId
|
|
4521
4412
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4522
4413
|
path: _path + ".publicParams",
|
|
4523
|
-
expected: "__type
|
|
4414
|
+
expected: "__type",
|
|
4524
4415
|
value: input.publicParams
|
|
4525
|
-
})) && $
|
|
4416
|
+
})) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4526
4417
|
path: _path + ".publicParams",
|
|
4527
|
-
expected: "__type
|
|
4418
|
+
expected: "__type",
|
|
4528
4419
|
value: input.publicParams
|
|
4529
4420
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4530
4421
|
path: _path + ".privateParams",
|
|
4531
|
-
expected: "__type
|
|
4422
|
+
expected: "__type",
|
|
4532
4423
|
value: input.privateParams
|
|
4533
|
-
})) && $
|
|
4424
|
+
})) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4534
4425
|
path: _path + ".privateParams",
|
|
4535
|
-
expected: "__type
|
|
4426
|
+
expected: "__type",
|
|
4536
4427
|
value: input.privateParams
|
|
4537
4428
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4538
4429
|
path: _path + ".metadata",
|
|
4539
|
-
expected: "(__type.
|
|
4430
|
+
expected: "(__type.o1 | undefined)",
|
|
4540
4431
|
value: input.metadata
|
|
4541
|
-
})) && $
|
|
4432
|
+
})) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4542
4433
|
path: _path + ".metadata",
|
|
4543
|
-
expected: "(__type.
|
|
4434
|
+
expected: "(__type.o1 | undefined)",
|
|
4544
4435
|
value: input.metadata
|
|
4545
4436
|
})].every(flag => flag);
|
|
4546
|
-
const $
|
|
4547
|
-
const $
|
|
4437
|
+
const $vo9 = (input, _path, _exceptionable = true) => true;
|
|
4438
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4439
|
+
path: _path + ".name",
|
|
4440
|
+
expected: "string",
|
|
4441
|
+
value: input.name
|
|
4442
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4443
|
+
path: _path + ".description",
|
|
4444
|
+
expected: "string",
|
|
4445
|
+
value: input.description
|
|
4446
|
+
})].every(flag => flag);
|
|
4447
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4548
4448
|
path: _path + ".name",
|
|
4549
4449
|
expected: "string",
|
|
4550
4450
|
value: input.name
|
|
@@ -4552,6 +4452,110 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4552
4452
|
path: _path + ".description",
|
|
4553
4453
|
expected: "string",
|
|
4554
4454
|
value: input.description
|
|
4455
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4456
|
+
path: _path + ".image",
|
|
4457
|
+
expected: "string",
|
|
4458
|
+
value: input.image
|
|
4459
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4460
|
+
path: _path + ".video",
|
|
4461
|
+
expected: "(string | undefined)",
|
|
4462
|
+
value: input.video
|
|
4463
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4464
|
+
path: _path + ".category",
|
|
4465
|
+
expected: "(string | undefined)",
|
|
4466
|
+
value: input.category
|
|
4467
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4468
|
+
path: _path + ".externalUrl",
|
|
4469
|
+
expected: "(string | undefined)",
|
|
4470
|
+
value: input.externalUrl
|
|
4471
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4472
|
+
path: _path + ".tags",
|
|
4473
|
+
expected: "(Array<string> | undefined)",
|
|
4474
|
+
value: input.tags
|
|
4475
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4476
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
4477
|
+
expected: "string",
|
|
4478
|
+
value: elem
|
|
4479
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4480
|
+
path: _path + ".tags",
|
|
4481
|
+
expected: "(Array<string> | undefined)",
|
|
4482
|
+
value: input.tags
|
|
4483
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4484
|
+
path: _path + ".socials",
|
|
4485
|
+
expected: "(__type.o2 | undefined)",
|
|
4486
|
+
value: input.socials
|
|
4487
|
+
})) && $vo12(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4488
|
+
path: _path + ".socials",
|
|
4489
|
+
expected: "(__type.o2 | undefined)",
|
|
4490
|
+
value: input.socials
|
|
4491
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4492
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4493
|
+
expected: "(__type.o3 | undefined)",
|
|
4494
|
+
value: input.offChainTransferabilityInfo
|
|
4495
|
+
})) && $vo13(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4496
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4497
|
+
expected: "(__type.o3 | undefined)",
|
|
4498
|
+
value: input.offChainTransferabilityInfo
|
|
4499
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4500
|
+
path: _path + ".attributes",
|
|
4501
|
+
expected: "(Array<__type> | undefined)",
|
|
4502
|
+
value: input.attributes
|
|
4503
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4504
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4505
|
+
expected: "__type.o4",
|
|
4506
|
+
value: elem
|
|
4507
|
+
})) && $vo14(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4508
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4509
|
+
expected: "__type.o4",
|
|
4510
|
+
value: elem
|
|
4511
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4512
|
+
path: _path + ".attributes",
|
|
4513
|
+
expected: "(Array<__type> | undefined)",
|
|
4514
|
+
value: input.attributes
|
|
4515
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4516
|
+
path: _path + ".fetchedAtBlock",
|
|
4517
|
+
expected: "(bigint | number | string | undefined)",
|
|
4518
|
+
value: input.fetchedAtBlock
|
|
4519
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4520
|
+
path: _path + ".fetchedAt",
|
|
4521
|
+
expected: "(bigint | number | string | undefined)",
|
|
4522
|
+
value: input.fetchedAt
|
|
4523
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4524
|
+
path: _path + "._isUpdating",
|
|
4525
|
+
expected: "(boolean | undefined)",
|
|
4526
|
+
value: input._isUpdating
|
|
4527
|
+
})].every(flag => flag);
|
|
4528
|
+
const $vo12 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4529
|
+
const value = input[key];
|
|
4530
|
+
if (undefined === value)
|
|
4531
|
+
return true;
|
|
4532
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4533
|
+
path: _path + $join(key),
|
|
4534
|
+
expected: "string",
|
|
4535
|
+
value: value
|
|
4536
|
+
});
|
|
4537
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4538
|
+
const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4539
|
+
path: _path + ".host",
|
|
4540
|
+
expected: "string",
|
|
4541
|
+
value: input.host
|
|
4542
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4543
|
+
path: _path + ".assignMethod",
|
|
4544
|
+
expected: "string",
|
|
4545
|
+
value: input.assignMethod
|
|
4546
|
+
})].every(flag => flag);
|
|
4547
|
+
const $vo14 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4548
|
+
path: _path + ".type",
|
|
4549
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4550
|
+
value: input.type
|
|
4551
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4552
|
+
path: _path + ".name",
|
|
4553
|
+
expected: "string",
|
|
4554
|
+
value: input.name
|
|
4555
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4556
|
+
path: _path + ".value",
|
|
4557
|
+
expected: "(boolean | number | string)",
|
|
4558
|
+
value: input.value
|
|
4555
4559
|
})].every(flag => flag);
|
|
4556
4560
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4557
4561
|
path: _path + "",
|
|
@@ -5347,7 +5351,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5347
5351
|
const $io0 = input => "string" === typeof input.pluginId && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.reuseForLists && "boolean" === typeof input.requiresUserInputs && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io2(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem));
|
|
5348
5352
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy;
|
|
5349
5353
|
const $io2 = input => "string" === typeof input.baseUri;
|
|
5350
|
-
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5354
|
+
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5351
5355
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5352
5356
|
const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
5353
5357
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -5486,7 +5490,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5486
5490
|
path: _path + ".label",
|
|
5487
5491
|
expected: "string",
|
|
5488
5492
|
value: input.label
|
|
5489
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5493
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5490
5494
|
path: _path + ".type",
|
|
5491
5495
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5492
5496
|
value: input.type
|
|
@@ -5573,7 +5577,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5573
5577
|
const __is = input => {
|
|
5574
5578
|
const $io0 = input => "string" === typeof input.pluginId && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.reuseForLists || "boolean" === typeof input.reuseForLists) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret);
|
|
5575
5579
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink);
|
|
5576
|
-
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5580
|
+
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5577
5581
|
const $io3 = input => "string" === typeof input.baseUri;
|
|
5578
5582
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5579
5583
|
const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
@@ -5704,7 +5708,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5704
5708
|
path: _path + ".label",
|
|
5705
5709
|
expected: "string",
|
|
5706
5710
|
value: input.label
|
|
5707
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5711
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5708
5712
|
path: _path + ".type",
|
|
5709
5713
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5710
5714
|
value: input.type
|
|
@@ -6303,23 +6307,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6303
6307
|
const errors = [];
|
|
6304
6308
|
const __is = input => {
|
|
6305
6309
|
const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
6306
|
-
const $io1 = input =>
|
|
6307
|
-
const $io2 = input =>
|
|
6310
|
+
const $io1 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6311
|
+
const $io2 = 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);
|
|
6312
|
+
const $io3 = 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) && $io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.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);
|
|
6313
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
6308
6314
|
const value = input[key];
|
|
6309
6315
|
if (undefined === value)
|
|
6310
6316
|
return true;
|
|
6311
6317
|
return "string" === typeof value;
|
|
6312
6318
|
});
|
|
6313
|
-
const $
|
|
6314
|
-
const $
|
|
6315
|
-
const $
|
|
6316
|
-
const $io6 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6317
|
-
const $io7 = 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);
|
|
6319
|
+
const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6320
|
+
const $io6 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6321
|
+
const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6318
6322
|
const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6319
6323
|
const $io9 = input => true;
|
|
6320
6324
|
const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6321
|
-
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6322
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6325
|
+
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@182"] && Object.keys(input).every(key => {
|
|
6326
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@182"].some(prop => key === prop))
|
|
6323
6327
|
return true;
|
|
6324
6328
|
const value = input[key];
|
|
6325
6329
|
if (undefined === value)
|
|
@@ -6329,14 +6333,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6329
6333
|
return true;
|
|
6330
6334
|
});
|
|
6331
6335
|
const $iu0 = input => (() => {
|
|
6332
|
-
if (undefined !== input.
|
|
6336
|
+
if (undefined !== input.badgeIds)
|
|
6333
6337
|
return $io1(input);
|
|
6334
|
-
else if (undefined !== input.
|
|
6335
|
-
return $
|
|
6338
|
+
else if (undefined !== input.name)
|
|
6339
|
+
return $io3(input);
|
|
6336
6340
|
else if (undefined !== input.leaves)
|
|
6337
6341
|
return $io8(input);
|
|
6338
6342
|
else
|
|
6339
|
-
return $
|
|
6343
|
+
return $io7(input);
|
|
6340
6344
|
})();
|
|
6341
6345
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
6342
6346
|
};
|
|
@@ -6346,7 +6350,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6346
6350
|
const $join = typia_1.default.validate.join;
|
|
6347
6351
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
6348
6352
|
path: _path + ".contents",
|
|
6349
|
-
expected: "(Array<
|
|
6353
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6350
6354
|
value: input.contents
|
|
6351
6355
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6352
6356
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -6358,10 +6362,60 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6358
6362
|
value: elem
|
|
6359
6363
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6360
6364
|
path: _path + ".contents",
|
|
6361
|
-
expected: "(Array<
|
|
6365
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6362
6366
|
value: input.contents
|
|
6363
6367
|
})].every(flag => flag);
|
|
6364
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
6368
|
+
const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6369
|
+
path: _path + ".badgeIds",
|
|
6370
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6371
|
+
value: input.badgeIds
|
|
6372
|
+
})) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6373
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6374
|
+
expected: "iUintRange<NumberType>",
|
|
6375
|
+
value: elem
|
|
6376
|
+
})) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6377
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6378
|
+
expected: "iUintRange<NumberType>",
|
|
6379
|
+
value: elem
|
|
6380
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6381
|
+
path: _path + ".badgeIds",
|
|
6382
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6383
|
+
value: input.badgeIds
|
|
6384
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6385
|
+
path: _path + ".metadata",
|
|
6386
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6387
|
+
value: input.metadata
|
|
6388
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6389
|
+
path: _path + ".metadata",
|
|
6390
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6391
|
+
value: input.metadata
|
|
6392
|
+
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6393
|
+
path: _path + ".uri",
|
|
6394
|
+
expected: "string",
|
|
6395
|
+
value: input.uri
|
|
6396
|
+
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6397
|
+
path: _path + ".fetchedUri",
|
|
6398
|
+
expected: "(string | undefined)",
|
|
6399
|
+
value: input.fetchedUri
|
|
6400
|
+
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6401
|
+
path: _path + ".customData",
|
|
6402
|
+
expected: "string",
|
|
6403
|
+
value: input.customData
|
|
6404
|
+
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6405
|
+
path: _path + ".toUploadToIpfs",
|
|
6406
|
+
expected: "(boolean | undefined)",
|
|
6407
|
+
value: input.toUploadToIpfs
|
|
6408
|
+
})].every(flag => flag);
|
|
6409
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6410
|
+
path: _path + ".start",
|
|
6411
|
+
expected: "(bigint | number | string)",
|
|
6412
|
+
value: input.start
|
|
6413
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6414
|
+
path: _path + ".end",
|
|
6415
|
+
expected: "(bigint | number | string)",
|
|
6416
|
+
value: input.end
|
|
6417
|
+
})].every(flag => flag);
|
|
6418
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6365
6419
|
path: _path + ".name",
|
|
6366
6420
|
expected: "string",
|
|
6367
6421
|
value: input.name
|
|
@@ -6389,8 +6443,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6389
6443
|
path: _path + ".tags",
|
|
6390
6444
|
expected: "(Array<string> | undefined)",
|
|
6391
6445
|
value: input.tags
|
|
6392
|
-
})) && input.tags.map((elem,
|
|
6393
|
-
path: _path + ".tags[" +
|
|
6446
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
6447
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
6394
6448
|
expected: "string",
|
|
6395
6449
|
value: elem
|
|
6396
6450
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6401,7 +6455,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6401
6455
|
path: _path + ".socials",
|
|
6402
6456
|
expected: "(__type | undefined)",
|
|
6403
6457
|
value: input.socials
|
|
6404
|
-
})) && $
|
|
6458
|
+
})) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
6405
6459
|
path: _path + ".socials",
|
|
6406
6460
|
expected: "(__type | undefined)",
|
|
6407
6461
|
value: input.socials
|
|
@@ -6409,7 +6463,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6409
6463
|
path: _path + ".offChainTransferabilityInfo",
|
|
6410
6464
|
expected: "(__type.o1 | undefined)",
|
|
6411
6465
|
value: input.offChainTransferabilityInfo
|
|
6412
|
-
})) && $
|
|
6466
|
+
})) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
6413
6467
|
path: _path + ".offChainTransferabilityInfo",
|
|
6414
6468
|
expected: "(__type.o1 | undefined)",
|
|
6415
6469
|
value: input.offChainTransferabilityInfo
|
|
@@ -6417,12 +6471,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6417
6471
|
path: _path + ".attributes",
|
|
6418
6472
|
expected: "(Array<__type> | undefined)",
|
|
6419
6473
|
value: input.attributes
|
|
6420
|
-
})) && input.attributes.map((elem,
|
|
6421
|
-
path: _path + ".attributes[" +
|
|
6474
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6475
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
6422
6476
|
expected: "__type.o2",
|
|
6423
6477
|
value: elem
|
|
6424
|
-
})) && $
|
|
6425
|
-
path: _path + ".attributes[" +
|
|
6478
|
+
})) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6479
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
6426
6480
|
expected: "__type.o2",
|
|
6427
6481
|
value: elem
|
|
6428
6482
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6442,7 +6496,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6442
6496
|
expected: "(boolean | undefined)",
|
|
6443
6497
|
value: input._isUpdating
|
|
6444
6498
|
})].every(flag => flag);
|
|
6445
|
-
const $
|
|
6499
|
+
const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
6446
6500
|
const value = input[key];
|
|
6447
6501
|
if (undefined === value)
|
|
6448
6502
|
return true;
|
|
@@ -6452,7 +6506,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6452
6506
|
value: value
|
|
6453
6507
|
});
|
|
6454
6508
|
}).every(flag => flag)].every(flag => flag);
|
|
6455
|
-
const $
|
|
6509
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
6456
6510
|
path: _path + ".host",
|
|
6457
6511
|
expected: "string",
|
|
6458
6512
|
value: input.host
|
|
@@ -6461,7 +6515,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6461
6515
|
expected: "string",
|
|
6462
6516
|
value: input.assignMethod
|
|
6463
6517
|
})].every(flag => flag);
|
|
6464
|
-
const $
|
|
6518
|
+
const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
6465
6519
|
path: _path + ".type",
|
|
6466
6520
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
6467
6521
|
value: input.type
|
|
@@ -6474,52 +6528,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6474
6528
|
expected: "(boolean | number | string)",
|
|
6475
6529
|
value: input.value
|
|
6476
6530
|
})].every(flag => flag);
|
|
6477
|
-
const $
|
|
6478
|
-
path: _path + ".metadata",
|
|
6479
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6480
|
-
value: input.metadata
|
|
6481
|
-
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6482
|
-
path: _path + ".metadata",
|
|
6483
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6484
|
-
value: input.metadata
|
|
6485
|
-
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6486
|
-
path: _path + ".uri",
|
|
6487
|
-
expected: "string",
|
|
6488
|
-
value: input.uri
|
|
6489
|
-
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6490
|
-
path: _path + ".fetchedUri",
|
|
6491
|
-
expected: "(string | undefined)",
|
|
6492
|
-
value: input.fetchedUri
|
|
6493
|
-
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6494
|
-
path: _path + ".customData",
|
|
6495
|
-
expected: "string",
|
|
6496
|
-
value: input.customData
|
|
6497
|
-
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6498
|
-
path: _path + ".toUploadToIpfs",
|
|
6499
|
-
expected: "(boolean | undefined)",
|
|
6500
|
-
value: input.toUploadToIpfs
|
|
6501
|
-
})].every(flag => flag);
|
|
6502
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6503
|
-
path: _path + ".badgeIds",
|
|
6504
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6505
|
-
value: input.badgeIds
|
|
6506
|
-
})) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6507
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6508
|
-
expected: "iUintRange<NumberType>",
|
|
6509
|
-
value: elem
|
|
6510
|
-
})) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6511
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6512
|
-
expected: "iUintRange<NumberType>",
|
|
6513
|
-
value: elem
|
|
6514
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6515
|
-
path: _path + ".badgeIds",
|
|
6516
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6517
|
-
value: input.badgeIds
|
|
6518
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6531
|
+
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6519
6532
|
path: _path + ".metadata",
|
|
6520
6533
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6521
6534
|
value: input.metadata
|
|
6522
|
-
})) && $
|
|
6535
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6523
6536
|
path: _path + ".metadata",
|
|
6524
6537
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6525
6538
|
value: input.metadata
|
|
@@ -6540,15 +6553,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6540
6553
|
expected: "(boolean | undefined)",
|
|
6541
6554
|
value: input.toUploadToIpfs
|
|
6542
6555
|
})].every(flag => flag);
|
|
6543
|
-
const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6544
|
-
path: _path + ".start",
|
|
6545
|
-
expected: "(bigint | number | string)",
|
|
6546
|
-
value: input.start
|
|
6547
|
-
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6548
|
-
path: _path + ".end",
|
|
6549
|
-
expected: "(bigint | number | string)",
|
|
6550
|
-
value: input.end
|
|
6551
|
-
})].every(flag => flag);
|
|
6552
6556
|
const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
|
|
6553
6557
|
path: _path + ".leaves",
|
|
6554
6558
|
expected: "Array<string>",
|
|
@@ -6672,12 +6676,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6672
6676
|
path: _path + ".length",
|
|
6673
6677
|
expected: "number",
|
|
6674
6678
|
value: input.length
|
|
6675
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6676
|
-
path: _path + "[\"__@toStringTag@
|
|
6679
|
+
}), "Uint8Array" === input["__@toStringTag@182"] || $report(_exceptionable, {
|
|
6680
|
+
path: _path + "[\"__@toStringTag@182\"]",
|
|
6677
6681
|
expected: "\"Uint8Array\"",
|
|
6678
|
-
value: input["__@toStringTag@
|
|
6682
|
+
value: input["__@toStringTag@182"]
|
|
6679
6683
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6680
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6684
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@182"].some(prop => key === prop))
|
|
6681
6685
|
return true;
|
|
6682
6686
|
const value = input[key];
|
|
6683
6687
|
if (undefined === value)
|
|
@@ -6691,14 +6695,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6691
6695
|
return true;
|
|
6692
6696
|
}).every(flag => flag)].every(flag => flag);
|
|
6693
6697
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
6694
|
-
if (undefined !== input.
|
|
6698
|
+
if (undefined !== input.badgeIds)
|
|
6695
6699
|
return $vo1(input, _path, true && _exceptionable);
|
|
6696
|
-
else if (undefined !== input.
|
|
6697
|
-
return $
|
|
6700
|
+
else if (undefined !== input.name)
|
|
6701
|
+
return $vo3(input, _path, true && _exceptionable);
|
|
6698
6702
|
else if (undefined !== input.leaves)
|
|
6699
6703
|
return $vo8(input, _path, true && _exceptionable);
|
|
6700
6704
|
else
|
|
6701
|
-
return $
|
|
6705
|
+
return $vo7(input, _path, true && _exceptionable);
|
|
6702
6706
|
})();
|
|
6703
6707
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6704
6708
|
path: _path + "",
|
|
@@ -6740,8 +6744,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6740
6744
|
const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6741
6745
|
const $io4 = input => true;
|
|
6742
6746
|
const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6743
|
-
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6744
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6747
|
+
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@182"] && Object.keys(input).every(key => {
|
|
6748
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@182"].some(prop => key === prop))
|
|
6745
6749
|
return true;
|
|
6746
6750
|
const value = input[key];
|
|
6747
6751
|
if (undefined === value)
|
|
@@ -6767,7 +6771,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6767
6771
|
return "string" === typeof value;
|
|
6768
6772
|
});
|
|
6769
6773
|
const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6770
|
-
const $io20 = input => (undefined === input.type || "
|
|
6774
|
+
const $io20 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6771
6775
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6772
6776
|
};
|
|
6773
6777
|
if (false === __is(input)) {
|
|
@@ -6956,12 +6960,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6956
6960
|
path: _path + ".length",
|
|
6957
6961
|
expected: "number",
|
|
6958
6962
|
value: input.length
|
|
6959
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6960
|
-
path: _path + "[\"__@toStringTag@
|
|
6963
|
+
}), "Uint8Array" === input["__@toStringTag@182"] || $report(_exceptionable, {
|
|
6964
|
+
path: _path + "[\"__@toStringTag@182\"]",
|
|
6961
6965
|
expected: "\"Uint8Array\"",
|
|
6962
|
-
value: input["__@toStringTag@
|
|
6966
|
+
value: input["__@toStringTag@182"]
|
|
6963
6967
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6964
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6968
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@182"].some(prop => key === prop))
|
|
6965
6969
|
return true;
|
|
6966
6970
|
const value = input[key];
|
|
6967
6971
|
if (undefined === value)
|
|
@@ -7348,7 +7352,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7348
7352
|
expected: "string",
|
|
7349
7353
|
value: input.assignMethod
|
|
7350
7354
|
})].every(flag => flag);
|
|
7351
|
-
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
7355
|
+
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
7352
7356
|
path: _path + ".type",
|
|
7353
7357
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7354
7358
|
value: input.type
|