bitbadgesjs-sdk 0.3.78 → 0.3.80
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.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +486 -491
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.d.ts +3 -3
- package/dist/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.js +4 -3
- package/dist/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -4
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
2
1
|
import { BitBadgesCollection } from './BitBadgesCollection';
|
|
3
2
|
import typia from 'typia';
|
|
4
3
|
import { BitBadgesAddressList } from './BitBadgesAddressList';
|
|
@@ -3610,21 +3609,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3610
3609
|
const errors = [];
|
|
3611
3610
|
const __is = input => {
|
|
3612
3611
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3613
|
-
const $io1 = input =>
|
|
3614
|
-
const $io2 = input => Array.isArray(input.
|
|
3615
|
-
const $io3 = input =>
|
|
3616
|
-
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)));
|
|
3617
|
-
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);
|
|
3618
|
-
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);
|
|
3619
|
-
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);
|
|
3620
|
-
const $io9 = input => Object.keys(input).every(key => {
|
|
3612
|
+
const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.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)));
|
|
3613
|
+
const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
3614
|
+
const $io3 = input => Object.keys(input).every(key => {
|
|
3621
3615
|
const value = input[key];
|
|
3622
3616
|
if (undefined === value)
|
|
3623
3617
|
return true;
|
|
3624
3618
|
return "string" === typeof value;
|
|
3625
3619
|
});
|
|
3626
|
-
const $
|
|
3627
|
-
const $
|
|
3620
|
+
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3621
|
+
const $io5 = 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);
|
|
3622
|
+
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));
|
|
3623
|
+
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3624
|
+
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)));
|
|
3625
|
+
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);
|
|
3626
|
+
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);
|
|
3628
3627
|
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);
|
|
3629
3628
|
const $io13 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
3630
3629
|
const $io14 = input => true;
|
|
@@ -3651,7 +3650,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3651
3650
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3652
3651
|
value: input.claims
|
|
3653
3652
|
})].every(flag => flag);
|
|
3654
|
-
const $vo1 = (input, _path, _exceptionable = true) => ["
|
|
3653
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3654
|
+
path: _path + ".metadata",
|
|
3655
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3656
|
+
value: input.metadata
|
|
3657
|
+
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3658
|
+
path: _path + ".metadata",
|
|
3659
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3660
|
+
value: input.metadata
|
|
3661
|
+
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3662
|
+
path: _path + ".seedCode",
|
|
3663
|
+
expected: "(string | undefined)",
|
|
3664
|
+
value: input.seedCode
|
|
3665
|
+
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
3655
3666
|
path: _path + ".claimId",
|
|
3656
3667
|
expected: "string",
|
|
3657
3668
|
value: input.claimId
|
|
@@ -3659,7 +3670,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3659
3670
|
path: _path + ".balancesToSet",
|
|
3660
3671
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3661
3672
|
value: input.balancesToSet
|
|
3662
|
-
})) && $
|
|
3673
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3663
3674
|
path: _path + ".balancesToSet",
|
|
3664
3675
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3665
3676
|
value: input.balancesToSet
|
|
@@ -3671,18 +3682,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3671
3682
|
path: _path + ".approach",
|
|
3672
3683
|
expected: "(string | undefined)",
|
|
3673
3684
|
value: input.approach
|
|
3674
|
-
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3675
|
-
path: _path + ".seedCode",
|
|
3676
|
-
expected: "(string | undefined)",
|
|
3677
|
-
value: input.seedCode
|
|
3678
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3679
|
-
path: _path + ".metadata",
|
|
3680
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3681
|
-
value: input.metadata
|
|
3682
|
-
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3683
|
-
path: _path + ".metadata",
|
|
3684
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3685
|
-
value: input.metadata
|
|
3686
3685
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3687
3686
|
path: _path + ".assignMethod",
|
|
3688
3687
|
expected: "(string | undefined)",
|
|
@@ -3716,16 +3715,129 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3716
3715
|
expected: "Array<ManagePluginRequest>",
|
|
3717
3716
|
value: input.plugins
|
|
3718
3717
|
})].every(flag => flag);
|
|
3719
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
3718
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3719
|
+
path: _path + ".name",
|
|
3720
|
+
expected: "string",
|
|
3721
|
+
value: input.name
|
|
3722
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3723
|
+
path: _path + ".description",
|
|
3724
|
+
expected: "string",
|
|
3725
|
+
value: input.description
|
|
3726
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3727
|
+
path: _path + ".image",
|
|
3728
|
+
expected: "string",
|
|
3729
|
+
value: input.image
|
|
3730
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3731
|
+
path: _path + ".video",
|
|
3732
|
+
expected: "(string | undefined)",
|
|
3733
|
+
value: input.video
|
|
3734
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3735
|
+
path: _path + ".category",
|
|
3736
|
+
expected: "(string | undefined)",
|
|
3737
|
+
value: input.category
|
|
3738
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3739
|
+
path: _path + ".externalUrl",
|
|
3740
|
+
expected: "(string | undefined)",
|
|
3741
|
+
value: input.externalUrl
|
|
3742
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3743
|
+
path: _path + ".tags",
|
|
3744
|
+
expected: "(Array<string> | undefined)",
|
|
3745
|
+
value: input.tags
|
|
3746
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
3747
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
3748
|
+
expected: "string",
|
|
3749
|
+
value: elem
|
|
3750
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3751
|
+
path: _path + ".tags",
|
|
3752
|
+
expected: "(Array<string> | undefined)",
|
|
3753
|
+
value: input.tags
|
|
3754
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3755
|
+
path: _path + ".socials",
|
|
3756
|
+
expected: "(__type | undefined)",
|
|
3757
|
+
value: input.socials
|
|
3758
|
+
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3759
|
+
path: _path + ".socials",
|
|
3760
|
+
expected: "(__type | undefined)",
|
|
3761
|
+
value: input.socials
|
|
3762
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3763
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3764
|
+
expected: "(__type.o1 | undefined)",
|
|
3765
|
+
value: input.offChainTransferabilityInfo
|
|
3766
|
+
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3767
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3768
|
+
expected: "(__type.o1 | undefined)",
|
|
3769
|
+
value: input.offChainTransferabilityInfo
|
|
3770
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3771
|
+
path: _path + ".attributes",
|
|
3772
|
+
expected: "(Array<__type> | undefined)",
|
|
3773
|
+
value: input.attributes
|
|
3774
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3775
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
3776
|
+
expected: "__type.o2",
|
|
3777
|
+
value: elem
|
|
3778
|
+
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3779
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
3780
|
+
expected: "__type.o2",
|
|
3781
|
+
value: elem
|
|
3782
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3783
|
+
path: _path + ".attributes",
|
|
3784
|
+
expected: "(Array<__type> | undefined)",
|
|
3785
|
+
value: input.attributes
|
|
3786
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3787
|
+
path: _path + ".fetchedAtBlock",
|
|
3788
|
+
expected: "(bigint | number | string | undefined)",
|
|
3789
|
+
value: input.fetchedAtBlock
|
|
3790
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3791
|
+
path: _path + ".fetchedAt",
|
|
3792
|
+
expected: "(bigint | number | string | undefined)",
|
|
3793
|
+
value: input.fetchedAt
|
|
3794
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3795
|
+
path: _path + "._isUpdating",
|
|
3796
|
+
expected: "(boolean | undefined)",
|
|
3797
|
+
value: input._isUpdating
|
|
3798
|
+
})].every(flag => flag);
|
|
3799
|
+
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3800
|
+
const value = input[key];
|
|
3801
|
+
if (undefined === value)
|
|
3802
|
+
return true;
|
|
3803
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3804
|
+
path: _path + $join(key),
|
|
3805
|
+
expected: "string",
|
|
3806
|
+
value: value
|
|
3807
|
+
});
|
|
3808
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3809
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3810
|
+
path: _path + ".host",
|
|
3811
|
+
expected: "string",
|
|
3812
|
+
value: input.host
|
|
3813
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3814
|
+
path: _path + ".assignMethod",
|
|
3815
|
+
expected: "string",
|
|
3816
|
+
value: input.assignMethod
|
|
3817
|
+
})].every(flag => flag);
|
|
3818
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3819
|
+
path: _path + ".type",
|
|
3820
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3821
|
+
value: input.type
|
|
3822
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3823
|
+
path: _path + ".name",
|
|
3824
|
+
expected: "string",
|
|
3825
|
+
value: input.name
|
|
3826
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3827
|
+
path: _path + ".value",
|
|
3828
|
+
expected: "(boolean | number | string)",
|
|
3829
|
+
value: input.value
|
|
3830
|
+
})].every(flag => flag);
|
|
3831
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3720
3832
|
path: _path + ".manualBalances",
|
|
3721
3833
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3722
3834
|
value: input.manualBalances
|
|
3723
|
-
})) && input.manualBalances.map((elem,
|
|
3724
|
-
path: _path + ".manualBalances[" +
|
|
3835
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3836
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3725
3837
|
expected: "iManualBalances<NumberType>",
|
|
3726
3838
|
value: elem
|
|
3727
|
-
})) && $
|
|
3728
|
-
path: _path + ".manualBalances[" +
|
|
3839
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3840
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3729
3841
|
expected: "iManualBalances<NumberType>",
|
|
3730
3842
|
value: elem
|
|
3731
3843
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3736,7 +3848,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3736
3848
|
path: _path + ".incrementedBalances",
|
|
3737
3849
|
expected: "iIncrementedBalances<NumberType>",
|
|
3738
3850
|
value: input.incrementedBalances
|
|
3739
|
-
})) && $
|
|
3851
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3740
3852
|
path: _path + ".incrementedBalances",
|
|
3741
3853
|
expected: "iIncrementedBalances<NumberType>",
|
|
3742
3854
|
value: input.incrementedBalances
|
|
@@ -3744,21 +3856,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3744
3856
|
path: _path + ".orderCalculationMethod",
|
|
3745
3857
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3746
3858
|
value: input.orderCalculationMethod
|
|
3747
|
-
})) && $
|
|
3859
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3748
3860
|
path: _path + ".orderCalculationMethod",
|
|
3749
3861
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3750
3862
|
value: input.orderCalculationMethod
|
|
3751
3863
|
})].every(flag => flag);
|
|
3752
|
-
const $
|
|
3864
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3753
3865
|
path: _path + ".balances",
|
|
3754
3866
|
expected: "Array<iBalance<NumberType>>",
|
|
3755
3867
|
value: input.balances
|
|
3756
|
-
})) && input.balances.map((elem,
|
|
3757
|
-
path: _path + ".balances[" +
|
|
3868
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3869
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3758
3870
|
expected: "iBalance<NumberType>",
|
|
3759
3871
|
value: elem
|
|
3760
|
-
})) && $
|
|
3761
|
-
path: _path + ".balances[" +
|
|
3872
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3873
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3762
3874
|
expected: "iBalance<NumberType>",
|
|
3763
3875
|
value: elem
|
|
3764
3876
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3766,7 +3878,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3766
3878
|
expected: "Array<iBalance<NumberType>>",
|
|
3767
3879
|
value: input.balances
|
|
3768
3880
|
})].every(flag => flag);
|
|
3769
|
-
const $
|
|
3881
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3770
3882
|
path: _path + ".amount",
|
|
3771
3883
|
expected: "(bigint | number | string)",
|
|
3772
3884
|
value: input.amount
|
|
@@ -3774,12 +3886,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3774
3886
|
path: _path + ".badgeIds",
|
|
3775
3887
|
expected: "Array<iUintRange<NumberType>>",
|
|
3776
3888
|
value: input.badgeIds
|
|
3777
|
-
})) && input.badgeIds.map((elem,
|
|
3778
|
-
path: _path + ".badgeIds[" +
|
|
3889
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3890
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3779
3891
|
expected: "iUintRange<NumberType>",
|
|
3780
3892
|
value: elem
|
|
3781
|
-
})) && $
|
|
3782
|
-
path: _path + ".badgeIds[" +
|
|
3893
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3894
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3783
3895
|
expected: "iUintRange<NumberType>",
|
|
3784
3896
|
value: elem
|
|
3785
3897
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3790,12 +3902,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3790
3902
|
path: _path + ".ownershipTimes",
|
|
3791
3903
|
expected: "Array<iUintRange<NumberType>>",
|
|
3792
3904
|
value: input.ownershipTimes
|
|
3793
|
-
})) && input.ownershipTimes.map((elem,
|
|
3794
|
-
path: _path + ".ownershipTimes[" +
|
|
3905
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3906
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3795
3907
|
expected: "iUintRange<NumberType>",
|
|
3796
3908
|
value: elem
|
|
3797
|
-
})) && $
|
|
3798
|
-
path: _path + ".ownershipTimes[" +
|
|
3909
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3910
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3799
3911
|
expected: "iUintRange<NumberType>",
|
|
3800
3912
|
value: elem
|
|
3801
3913
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3803,7 +3915,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3803
3915
|
expected: "Array<iUintRange<NumberType>>",
|
|
3804
3916
|
value: input.ownershipTimes
|
|
3805
3917
|
})].every(flag => flag);
|
|
3806
|
-
const $
|
|
3918
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3807
3919
|
path: _path + ".start",
|
|
3808
3920
|
expected: "(bigint | number | string)",
|
|
3809
3921
|
value: input.start
|
|
@@ -3812,16 +3924,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3812
3924
|
expected: "(bigint | number | string)",
|
|
3813
3925
|
value: input.end
|
|
3814
3926
|
})].every(flag => flag);
|
|
3815
|
-
const $
|
|
3927
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3816
3928
|
path: _path + ".startBalances",
|
|
3817
3929
|
expected: "Array<iBalance<NumberType>>",
|
|
3818
3930
|
value: input.startBalances
|
|
3819
|
-
})) && input.startBalances.map((elem,
|
|
3820
|
-
path: _path + ".startBalances[" +
|
|
3931
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3932
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3821
3933
|
expected: "iBalance<NumberType>",
|
|
3822
3934
|
value: elem
|
|
3823
|
-
})) && $
|
|
3824
|
-
path: _path + ".startBalances[" +
|
|
3935
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3936
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3825
3937
|
expected: "iBalance<NumberType>",
|
|
3826
3938
|
value: elem
|
|
3827
3939
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3837,7 +3949,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3837
3949
|
expected: "(bigint | number | string)",
|
|
3838
3950
|
value: input.incrementOwnershipTimesBy
|
|
3839
3951
|
})].every(flag => flag);
|
|
3840
|
-
const $
|
|
3952
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3841
3953
|
path: _path + ".useOverallNumTransfers",
|
|
3842
3954
|
expected: "boolean",
|
|
3843
3955
|
value: input.useOverallNumTransfers
|
|
@@ -3862,119 +3974,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3862
3974
|
expected: "string",
|
|
3863
3975
|
value: input.challengeTrackerId
|
|
3864
3976
|
})].every(flag => flag);
|
|
3865
|
-
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3866
|
-
path: _path + ".name",
|
|
3867
|
-
expected: "string",
|
|
3868
|
-
value: input.name
|
|
3869
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3870
|
-
path: _path + ".description",
|
|
3871
|
-
expected: "string",
|
|
3872
|
-
value: input.description
|
|
3873
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3874
|
-
path: _path + ".image",
|
|
3875
|
-
expected: "string",
|
|
3876
|
-
value: input.image
|
|
3877
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3878
|
-
path: _path + ".video",
|
|
3879
|
-
expected: "(string | undefined)",
|
|
3880
|
-
value: input.video
|
|
3881
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3882
|
-
path: _path + ".category",
|
|
3883
|
-
expected: "(string | undefined)",
|
|
3884
|
-
value: input.category
|
|
3885
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3886
|
-
path: _path + ".externalUrl",
|
|
3887
|
-
expected: "(string | undefined)",
|
|
3888
|
-
value: input.externalUrl
|
|
3889
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3890
|
-
path: _path + ".tags",
|
|
3891
|
-
expected: "(Array<string> | undefined)",
|
|
3892
|
-
value: input.tags
|
|
3893
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3894
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
3895
|
-
expected: "string",
|
|
3896
|
-
value: elem
|
|
3897
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3898
|
-
path: _path + ".tags",
|
|
3899
|
-
expected: "(Array<string> | undefined)",
|
|
3900
|
-
value: input.tags
|
|
3901
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3902
|
-
path: _path + ".socials",
|
|
3903
|
-
expected: "(__type | undefined)",
|
|
3904
|
-
value: input.socials
|
|
3905
|
-
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3906
|
-
path: _path + ".socials",
|
|
3907
|
-
expected: "(__type | undefined)",
|
|
3908
|
-
value: input.socials
|
|
3909
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3910
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3911
|
-
expected: "(__type.o1 | undefined)",
|
|
3912
|
-
value: input.offChainTransferabilityInfo
|
|
3913
|
-
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3914
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3915
|
-
expected: "(__type.o1 | undefined)",
|
|
3916
|
-
value: input.offChainTransferabilityInfo
|
|
3917
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3918
|
-
path: _path + ".attributes",
|
|
3919
|
-
expected: "(Array<__type> | undefined)",
|
|
3920
|
-
value: input.attributes
|
|
3921
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3922
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3923
|
-
expected: "__type.o2",
|
|
3924
|
-
value: elem
|
|
3925
|
-
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3926
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3927
|
-
expected: "__type.o2",
|
|
3928
|
-
value: elem
|
|
3929
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3930
|
-
path: _path + ".attributes",
|
|
3931
|
-
expected: "(Array<__type> | undefined)",
|
|
3932
|
-
value: input.attributes
|
|
3933
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3934
|
-
path: _path + ".fetchedAtBlock",
|
|
3935
|
-
expected: "(bigint | number | string | undefined)",
|
|
3936
|
-
value: input.fetchedAtBlock
|
|
3937
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3938
|
-
path: _path + ".fetchedAt",
|
|
3939
|
-
expected: "(bigint | number | string | undefined)",
|
|
3940
|
-
value: input.fetchedAt
|
|
3941
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3942
|
-
path: _path + "._isUpdating",
|
|
3943
|
-
expected: "(boolean | undefined)",
|
|
3944
|
-
value: input._isUpdating
|
|
3945
|
-
})].every(flag => flag);
|
|
3946
|
-
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3947
|
-
const value = input[key];
|
|
3948
|
-
if (undefined === value)
|
|
3949
|
-
return true;
|
|
3950
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3951
|
-
path: _path + $join(key),
|
|
3952
|
-
expected: "string",
|
|
3953
|
-
value: value
|
|
3954
|
-
});
|
|
3955
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3956
|
-
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3957
|
-
path: _path + ".host",
|
|
3958
|
-
expected: "string",
|
|
3959
|
-
value: input.host
|
|
3960
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3961
|
-
path: _path + ".assignMethod",
|
|
3962
|
-
expected: "string",
|
|
3963
|
-
value: input.assignMethod
|
|
3964
|
-
})].every(flag => flag);
|
|
3965
|
-
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3966
|
-
path: _path + ".type",
|
|
3967
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3968
|
-
value: input.type
|
|
3969
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3970
|
-
path: _path + ".name",
|
|
3971
|
-
expected: "string",
|
|
3972
|
-
value: input.name
|
|
3973
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3974
|
-
path: _path + ".value",
|
|
3975
|
-
expected: "(boolean | number | string)",
|
|
3976
|
-
value: input.value
|
|
3977
|
-
})].every(flag => flag);
|
|
3978
3977
|
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3979
3978
|
path: _path + ".metadata",
|
|
3980
3979
|
expected: "(__type.o3 | undefined)",
|
|
@@ -4124,24 +4123,24 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4124
4123
|
const errors = [];
|
|
4125
4124
|
const __is = input => {
|
|
4126
4125
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4127
|
-
const $io1 = input =>
|
|
4128
|
-
const $io2 = input => "
|
|
4129
|
-
const $io3 = input =>
|
|
4130
|
-
const $io4 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4131
|
-
const $io5 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io9(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));
|
|
4132
|
-
const $io6 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io7(elem));
|
|
4133
|
-
const $io7 = 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 && $io8(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io8(elem)));
|
|
4134
|
-
const $io8 = 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);
|
|
4135
|
-
const $io9 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io7(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);
|
|
4136
|
-
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);
|
|
4137
|
-
const $io12 = input => Object.keys(input).every(key => {
|
|
4126
|
+
const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
|
|
4127
|
+
const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
4128
|
+
const $io3 = input => Object.keys(input).every(key => {
|
|
4138
4129
|
const value = input[key];
|
|
4139
4130
|
if (undefined === value)
|
|
4140
4131
|
return true;
|
|
4141
4132
|
return "string" === typeof value;
|
|
4142
4133
|
});
|
|
4143
|
-
const $
|
|
4144
|
-
const $
|
|
4134
|
+
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
4135
|
+
const $io5 = 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);
|
|
4136
|
+
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));
|
|
4137
|
+
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
4138
|
+
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)));
|
|
4139
|
+
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);
|
|
4140
|
+
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);
|
|
4141
|
+
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));
|
|
4142
|
+
const $io13 = input => true;
|
|
4143
|
+
const $io14 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4145
4144
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4146
4145
|
};
|
|
4147
4146
|
if (false === __is(input)) {
|
|
@@ -4165,7 +4164,27 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4165
4164
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4166
4165
|
value: input.claims
|
|
4167
4166
|
})].every(flag => flag);
|
|
4168
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
4167
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4168
|
+
path: _path + ".metadata",
|
|
4169
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4170
|
+
value: input.metadata
|
|
4171
|
+
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4172
|
+
path: _path + ".metadata",
|
|
4173
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4174
|
+
value: input.metadata
|
|
4175
|
+
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4176
|
+
path: _path + ".claimId",
|
|
4177
|
+
expected: "string",
|
|
4178
|
+
value: input.claimId
|
|
4179
|
+
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4180
|
+
path: _path + ".balancesToSet",
|
|
4181
|
+
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4182
|
+
value: input.balancesToSet
|
|
4183
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4184
|
+
path: _path + ".balancesToSet",
|
|
4185
|
+
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4186
|
+
value: input.balancesToSet
|
|
4187
|
+
}), (Array.isArray(input.plugins) || $report(_exceptionable, {
|
|
4169
4188
|
path: _path + ".plugins",
|
|
4170
4189
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4171
4190
|
value: input.plugins
|
|
@@ -4173,7 +4192,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4173
4192
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4174
4193
|
expected: "IntegrationPluginDetails<string>",
|
|
4175
4194
|
value: elem
|
|
4176
|
-
})) && $
|
|
4195
|
+
})) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4177
4196
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4178
4197
|
expected: "IntegrationPluginDetails<string>",
|
|
4179
4198
|
value: elem
|
|
@@ -4181,18 +4200,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4181
4200
|
path: _path + ".plugins",
|
|
4182
4201
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4183
4202
|
value: input.plugins
|
|
4184
|
-
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4185
|
-
path: _path + ".claimId",
|
|
4186
|
-
expected: "string",
|
|
4187
|
-
value: input.claimId
|
|
4188
|
-
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4189
|
-
path: _path + ".balancesToSet",
|
|
4190
|
-
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4191
|
-
value: input.balancesToSet
|
|
4192
|
-
})) && $vo5(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4193
|
-
path: _path + ".balancesToSet",
|
|
4194
|
-
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4195
|
-
value: input.balancesToSet
|
|
4196
4203
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
4197
4204
|
path: _path + ".manualDistribution",
|
|
4198
4205
|
expected: "(boolean | undefined)",
|
|
@@ -4201,104 +4208,134 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4201
4208
|
path: _path + ".approach",
|
|
4202
4209
|
expected: "(string | undefined)",
|
|
4203
4210
|
value: input.approach
|
|
4204
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4205
|
-
path: _path + ".metadata",
|
|
4206
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4207
|
-
value: input.metadata
|
|
4208
|
-
})) && $vo11(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4209
|
-
path: _path + ".metadata",
|
|
4210
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4211
|
-
value: input.metadata
|
|
4212
4211
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4213
4212
|
path: _path + ".assignMethod",
|
|
4214
4213
|
expected: "(string | undefined)",
|
|
4215
4214
|
value: input.assignMethod
|
|
4216
4215
|
})].every(flag => flag);
|
|
4217
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
4218
|
-
path: _path + ".
|
|
4219
|
-
expected: "
|
|
4220
|
-
value: input.
|
|
4221
|
-
})
|
|
4222
|
-
path: _path + ".
|
|
4223
|
-
expected: "
|
|
4224
|
-
value: input.
|
|
4225
|
-
}),
|
|
4226
|
-
path: _path + ".
|
|
4227
|
-
expected: "
|
|
4228
|
-
value: input.
|
|
4229
|
-
})
|
|
4230
|
-
path: _path + ".
|
|
4231
|
-
expected: "(
|
|
4232
|
-
value: input.
|
|
4233
|
-
}), undefined === input.
|
|
4234
|
-
path: _path + ".
|
|
4235
|
-
expected: "(
|
|
4236
|
-
value: input.
|
|
4237
|
-
}), undefined === input.
|
|
4238
|
-
path: _path + ".
|
|
4216
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4217
|
+
path: _path + ".name",
|
|
4218
|
+
expected: "string",
|
|
4219
|
+
value: input.name
|
|
4220
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4221
|
+
path: _path + ".description",
|
|
4222
|
+
expected: "string",
|
|
4223
|
+
value: input.description
|
|
4224
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4225
|
+
path: _path + ".image",
|
|
4226
|
+
expected: "string",
|
|
4227
|
+
value: input.image
|
|
4228
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4229
|
+
path: _path + ".video",
|
|
4230
|
+
expected: "(string | undefined)",
|
|
4231
|
+
value: input.video
|
|
4232
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4233
|
+
path: _path + ".category",
|
|
4234
|
+
expected: "(string | undefined)",
|
|
4235
|
+
value: input.category
|
|
4236
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4237
|
+
path: _path + ".externalUrl",
|
|
4238
|
+
expected: "(string | undefined)",
|
|
4239
|
+
value: input.externalUrl
|
|
4240
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4241
|
+
path: _path + ".tags",
|
|
4242
|
+
expected: "(Array<string> | undefined)",
|
|
4243
|
+
value: input.tags
|
|
4244
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
4245
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
4246
|
+
expected: "string",
|
|
4247
|
+
value: elem
|
|
4248
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4249
|
+
path: _path + ".tags",
|
|
4250
|
+
expected: "(Array<string> | undefined)",
|
|
4251
|
+
value: input.tags
|
|
4252
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4253
|
+
path: _path + ".socials",
|
|
4239
4254
|
expected: "(__type | undefined)",
|
|
4240
|
-
value: input.
|
|
4241
|
-
})) && $vo3(input.
|
|
4242
|
-
path: _path + ".
|
|
4255
|
+
value: input.socials
|
|
4256
|
+
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4257
|
+
path: _path + ".socials",
|
|
4243
4258
|
expected: "(__type | undefined)",
|
|
4244
|
-
value: input.
|
|
4245
|
-
}), undefined === input.
|
|
4246
|
-
path: _path + ".
|
|
4259
|
+
value: input.socials
|
|
4260
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4261
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4262
|
+
expected: "(__type.o1 | undefined)",
|
|
4263
|
+
value: input.offChainTransferabilityInfo
|
|
4264
|
+
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4265
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4266
|
+
expected: "(__type.o1 | undefined)",
|
|
4267
|
+
value: input.offChainTransferabilityInfo
|
|
4268
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4269
|
+
path: _path + ".attributes",
|
|
4270
|
+
expected: "(Array<__type> | undefined)",
|
|
4271
|
+
value: input.attributes
|
|
4272
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4273
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
4274
|
+
expected: "__type.o2",
|
|
4275
|
+
value: elem
|
|
4276
|
+
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4277
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
4278
|
+
expected: "__type.o2",
|
|
4279
|
+
value: elem
|
|
4280
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4281
|
+
path: _path + ".attributes",
|
|
4282
|
+
expected: "(Array<__type> | undefined)",
|
|
4283
|
+
value: input.attributes
|
|
4284
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4285
|
+
path: _path + ".fetchedAtBlock",
|
|
4286
|
+
expected: "(bigint | number | string | undefined)",
|
|
4287
|
+
value: input.fetchedAtBlock
|
|
4288
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4289
|
+
path: _path + ".fetchedAt",
|
|
4290
|
+
expected: "(bigint | number | string | undefined)",
|
|
4291
|
+
value: input.fetchedAt
|
|
4292
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4293
|
+
path: _path + "._isUpdating",
|
|
4247
4294
|
expected: "(boolean | undefined)",
|
|
4248
|
-
value: input.
|
|
4249
|
-
})
|
|
4250
|
-
|
|
4295
|
+
value: input._isUpdating
|
|
4296
|
+
})].every(flag => flag);
|
|
4297
|
+
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4298
|
+
const value = input[key];
|
|
4299
|
+
if (undefined === value)
|
|
4300
|
+
return true;
|
|
4301
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4302
|
+
path: _path + $join(key),
|
|
4303
|
+
expected: "string",
|
|
4304
|
+
value: value
|
|
4305
|
+
});
|
|
4306
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4307
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4308
|
+
path: _path + ".host",
|
|
4251
4309
|
expected: "string",
|
|
4252
|
-
value: input.
|
|
4253
|
-
}), "string" === typeof input.
|
|
4254
|
-
path: _path + ".
|
|
4310
|
+
value: input.host
|
|
4311
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4312
|
+
path: _path + ".assignMethod",
|
|
4255
4313
|
expected: "string",
|
|
4256
|
-
value: input.
|
|
4257
|
-
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4258
|
-
path: _path + ".publicParams",
|
|
4259
|
-
expected: "__type",
|
|
4260
|
-
value: input.publicParams
|
|
4261
|
-
})) && $vo3(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4262
|
-
path: _path + ".publicParams",
|
|
4263
|
-
expected: "__type",
|
|
4264
|
-
value: input.publicParams
|
|
4265
|
-
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4266
|
-
path: _path + ".privateParams",
|
|
4267
|
-
expected: "__type",
|
|
4268
|
-
value: input.privateParams
|
|
4269
|
-
})) && $vo3(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4270
|
-
path: _path + ".privateParams",
|
|
4271
|
-
expected: "__type",
|
|
4272
|
-
value: input.privateParams
|
|
4273
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4274
|
-
path: _path + ".metadata",
|
|
4275
|
-
expected: "(__type.o1 | undefined)",
|
|
4276
|
-
value: input.metadata
|
|
4277
|
-
})) && $vo4(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4278
|
-
path: _path + ".metadata",
|
|
4279
|
-
expected: "(__type.o1 | undefined)",
|
|
4280
|
-
value: input.metadata
|
|
4314
|
+
value: input.assignMethod
|
|
4281
4315
|
})].every(flag => flag);
|
|
4282
|
-
const $
|
|
4283
|
-
|
|
4316
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4317
|
+
path: _path + ".type",
|
|
4318
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4319
|
+
value: input.type
|
|
4320
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4284
4321
|
path: _path + ".name",
|
|
4285
4322
|
expected: "string",
|
|
4286
4323
|
value: input.name
|
|
4287
|
-
}), "string" === typeof input.
|
|
4288
|
-
path: _path + ".
|
|
4289
|
-
expected: "string",
|
|
4290
|
-
value: input.
|
|
4324
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4325
|
+
path: _path + ".value",
|
|
4326
|
+
expected: "(boolean | number | string)",
|
|
4327
|
+
value: input.value
|
|
4291
4328
|
})].every(flag => flag);
|
|
4292
|
-
const $
|
|
4329
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4293
4330
|
path: _path + ".manualBalances",
|
|
4294
4331
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4295
4332
|
value: input.manualBalances
|
|
4296
|
-
})) && input.manualBalances.map((elem,
|
|
4297
|
-
path: _path + ".manualBalances[" +
|
|
4333
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4334
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4298
4335
|
expected: "iManualBalances<NumberType>",
|
|
4299
4336
|
value: elem
|
|
4300
|
-
})) && $
|
|
4301
|
-
path: _path + ".manualBalances[" +
|
|
4337
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4338
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4302
4339
|
expected: "iManualBalances<NumberType>",
|
|
4303
4340
|
value: elem
|
|
4304
4341
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4309,7 +4346,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4309
4346
|
path: _path + ".incrementedBalances",
|
|
4310
4347
|
expected: "iIncrementedBalances<NumberType>",
|
|
4311
4348
|
value: input.incrementedBalances
|
|
4312
|
-
})) && $
|
|
4349
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4313
4350
|
path: _path + ".incrementedBalances",
|
|
4314
4351
|
expected: "iIncrementedBalances<NumberType>",
|
|
4315
4352
|
value: input.incrementedBalances
|
|
@@ -4317,21 +4354,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4317
4354
|
path: _path + ".orderCalculationMethod",
|
|
4318
4355
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4319
4356
|
value: input.orderCalculationMethod
|
|
4320
|
-
})) && $
|
|
4357
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4321
4358
|
path: _path + ".orderCalculationMethod",
|
|
4322
4359
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4323
4360
|
value: input.orderCalculationMethod
|
|
4324
4361
|
})].every(flag => flag);
|
|
4325
|
-
const $
|
|
4362
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4326
4363
|
path: _path + ".balances",
|
|
4327
4364
|
expected: "Array<iBalance<NumberType>>",
|
|
4328
4365
|
value: input.balances
|
|
4329
|
-
})) && input.balances.map((elem,
|
|
4330
|
-
path: _path + ".balances[" +
|
|
4366
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4367
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4331
4368
|
expected: "iBalance<NumberType>",
|
|
4332
4369
|
value: elem
|
|
4333
|
-
})) && $
|
|
4334
|
-
path: _path + ".balances[" +
|
|
4370
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4371
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4335
4372
|
expected: "iBalance<NumberType>",
|
|
4336
4373
|
value: elem
|
|
4337
4374
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4339,7 +4376,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4339
4376
|
expected: "Array<iBalance<NumberType>>",
|
|
4340
4377
|
value: input.balances
|
|
4341
4378
|
})].every(flag => flag);
|
|
4342
|
-
const $
|
|
4379
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4343
4380
|
path: _path + ".amount",
|
|
4344
4381
|
expected: "(bigint | number | string)",
|
|
4345
4382
|
value: input.amount
|
|
@@ -4347,12 +4384,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4347
4384
|
path: _path + ".badgeIds",
|
|
4348
4385
|
expected: "Array<iUintRange<NumberType>>",
|
|
4349
4386
|
value: input.badgeIds
|
|
4350
|
-
})) && input.badgeIds.map((elem,
|
|
4351
|
-
path: _path + ".badgeIds[" +
|
|
4387
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4388
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4352
4389
|
expected: "iUintRange<NumberType>",
|
|
4353
4390
|
value: elem
|
|
4354
|
-
})) && $
|
|
4355
|
-
path: _path + ".badgeIds[" +
|
|
4391
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4392
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4356
4393
|
expected: "iUintRange<NumberType>",
|
|
4357
4394
|
value: elem
|
|
4358
4395
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4363,12 +4400,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4363
4400
|
path: _path + ".ownershipTimes",
|
|
4364
4401
|
expected: "Array<iUintRange<NumberType>>",
|
|
4365
4402
|
value: input.ownershipTimes
|
|
4366
|
-
})) && input.ownershipTimes.map((elem,
|
|
4367
|
-
path: _path + ".ownershipTimes[" +
|
|
4403
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4404
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4368
4405
|
expected: "iUintRange<NumberType>",
|
|
4369
4406
|
value: elem
|
|
4370
|
-
})) && $
|
|
4371
|
-
path: _path + ".ownershipTimes[" +
|
|
4407
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4408
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4372
4409
|
expected: "iUintRange<NumberType>",
|
|
4373
4410
|
value: elem
|
|
4374
4411
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4376,7 +4413,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4376
4413
|
expected: "Array<iUintRange<NumberType>>",
|
|
4377
4414
|
value: input.ownershipTimes
|
|
4378
4415
|
})].every(flag => flag);
|
|
4379
|
-
const $
|
|
4416
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4380
4417
|
path: _path + ".start",
|
|
4381
4418
|
expected: "(bigint | number | string)",
|
|
4382
4419
|
value: input.start
|
|
@@ -4385,16 +4422,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4385
4422
|
expected: "(bigint | number | string)",
|
|
4386
4423
|
value: input.end
|
|
4387
4424
|
})].every(flag => flag);
|
|
4388
|
-
const $
|
|
4425
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4389
4426
|
path: _path + ".startBalances",
|
|
4390
4427
|
expected: "Array<iBalance<NumberType>>",
|
|
4391
4428
|
value: input.startBalances
|
|
4392
|
-
})) && input.startBalances.map((elem,
|
|
4393
|
-
path: _path + ".startBalances[" +
|
|
4429
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4430
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4394
4431
|
expected: "iBalance<NumberType>",
|
|
4395
4432
|
value: elem
|
|
4396
|
-
})) && $
|
|
4397
|
-
path: _path + ".startBalances[" +
|
|
4433
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4434
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4398
4435
|
expected: "iBalance<NumberType>",
|
|
4399
4436
|
value: elem
|
|
4400
4437
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4410,7 +4447,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4410
4447
|
expected: "(bigint | number | string)",
|
|
4411
4448
|
value: input.incrementOwnershipTimesBy
|
|
4412
4449
|
})].every(flag => flag);
|
|
4413
|
-
const $
|
|
4450
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4414
4451
|
path: _path + ".useOverallNumTransfers",
|
|
4415
4452
|
expected: "boolean",
|
|
4416
4453
|
value: input.useOverallNumTransfers
|
|
@@ -4435,118 +4472,80 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4435
4472
|
expected: "string",
|
|
4436
4473
|
value: input.challengeTrackerId
|
|
4437
4474
|
})].every(flag => flag);
|
|
4438
|
-
const $
|
|
4439
|
-
path: _path + ".
|
|
4440
|
-
expected: "
|
|
4441
|
-
value: input.
|
|
4442
|
-
}), "
|
|
4443
|
-
path: _path + ".
|
|
4444
|
-
expected: "
|
|
4445
|
-
value: input.
|
|
4446
|
-
}), "
|
|
4447
|
-
path: _path + ".
|
|
4448
|
-
expected: "string",
|
|
4449
|
-
value: input.image
|
|
4450
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4451
|
-
path: _path + ".video",
|
|
4452
|
-
expected: "(string | undefined)",
|
|
4453
|
-
value: input.video
|
|
4454
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4455
|
-
path: _path + ".category",
|
|
4456
|
-
expected: "(string | undefined)",
|
|
4457
|
-
value: input.category
|
|
4458
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4459
|
-
path: _path + ".externalUrl",
|
|
4460
|
-
expected: "(string | undefined)",
|
|
4461
|
-
value: input.externalUrl
|
|
4462
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4463
|
-
path: _path + ".tags",
|
|
4464
|
-
expected: "(Array<string> | undefined)",
|
|
4465
|
-
value: input.tags
|
|
4466
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4467
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
4468
|
-
expected: "string",
|
|
4469
|
-
value: elem
|
|
4470
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4471
|
-
path: _path + ".tags",
|
|
4472
|
-
expected: "(Array<string> | undefined)",
|
|
4473
|
-
value: input.tags
|
|
4474
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4475
|
-
path: _path + ".socials",
|
|
4476
|
-
expected: "(__type.o2 | undefined)",
|
|
4477
|
-
value: input.socials
|
|
4478
|
-
})) && $vo12(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4479
|
-
path: _path + ".socials",
|
|
4480
|
-
expected: "(__type.o2 | undefined)",
|
|
4481
|
-
value: input.socials
|
|
4482
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4483
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4475
|
+
const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4476
|
+
path: _path + ".publicState",
|
|
4477
|
+
expected: "__type.o3",
|
|
4478
|
+
value: input.publicState
|
|
4479
|
+
})) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4480
|
+
path: _path + ".publicState",
|
|
4481
|
+
expected: "__type.o3",
|
|
4482
|
+
value: input.publicState
|
|
4483
|
+
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4484
|
+
path: _path + ".privateState",
|
|
4484
4485
|
expected: "(__type.o3 | undefined)",
|
|
4485
|
-
value: input.
|
|
4486
|
-
})) && $vo13(input.
|
|
4487
|
-
path: _path + ".
|
|
4486
|
+
value: input.privateState
|
|
4487
|
+
})) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4488
|
+
path: _path + ".privateState",
|
|
4488
4489
|
expected: "(__type.o3 | undefined)",
|
|
4489
|
-
value: input.
|
|
4490
|
-
}), undefined === input.
|
|
4491
|
-
path: _path + ".
|
|
4492
|
-
expected: "(Array<__type> | undefined)",
|
|
4493
|
-
value: input.attributes
|
|
4494
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4495
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4496
|
-
expected: "__type.o4",
|
|
4497
|
-
value: elem
|
|
4498
|
-
})) && $vo14(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4499
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4500
|
-
expected: "__type.o4",
|
|
4501
|
-
value: elem
|
|
4502
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4503
|
-
path: _path + ".attributes",
|
|
4504
|
-
expected: "(Array<__type> | undefined)",
|
|
4505
|
-
value: input.attributes
|
|
4506
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4507
|
-
path: _path + ".fetchedAtBlock",
|
|
4508
|
-
expected: "(bigint | number | string | undefined)",
|
|
4509
|
-
value: input.fetchedAtBlock
|
|
4510
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4511
|
-
path: _path + ".fetchedAt",
|
|
4512
|
-
expected: "(bigint | number | string | undefined)",
|
|
4513
|
-
value: input.fetchedAt
|
|
4514
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4515
|
-
path: _path + "._isUpdating",
|
|
4490
|
+
value: input.privateState
|
|
4491
|
+
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4492
|
+
path: _path + ".resetState",
|
|
4516
4493
|
expected: "(boolean | undefined)",
|
|
4517
|
-
value: input.
|
|
4518
|
-
})
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4494
|
+
value: input.resetState
|
|
4495
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4496
|
+
path: _path + ".newState",
|
|
4497
|
+
expected: "(__type.o3 | undefined)",
|
|
4498
|
+
value: input.newState
|
|
4499
|
+
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4500
|
+
path: _path + ".newState",
|
|
4501
|
+
expected: "(__type.o3 | undefined)",
|
|
4502
|
+
value: input.newState
|
|
4503
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4504
|
+
path: _path + ".onlyUpdateProvidedNewState",
|
|
4505
|
+
expected: "(boolean | undefined)",
|
|
4506
|
+
value: input.onlyUpdateProvidedNewState
|
|
4507
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4508
|
+
path: _path + ".instanceId",
|
|
4531
4509
|
expected: "string",
|
|
4532
|
-
value: input.
|
|
4533
|
-
}), "string" === typeof input.
|
|
4534
|
-
path: _path + ".
|
|
4510
|
+
value: input.instanceId
|
|
4511
|
+
}), "string" === typeof input.pluginId || $report(_exceptionable, {
|
|
4512
|
+
path: _path + ".pluginId",
|
|
4535
4513
|
expected: "string",
|
|
4536
|
-
value: input.
|
|
4514
|
+
value: input.pluginId
|
|
4515
|
+
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4516
|
+
path: _path + ".publicParams",
|
|
4517
|
+
expected: "__type.o3",
|
|
4518
|
+
value: input.publicParams
|
|
4519
|
+
})) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4520
|
+
path: _path + ".publicParams",
|
|
4521
|
+
expected: "__type.o3",
|
|
4522
|
+
value: input.publicParams
|
|
4523
|
+
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4524
|
+
path: _path + ".privateParams",
|
|
4525
|
+
expected: "__type.o3",
|
|
4526
|
+
value: input.privateParams
|
|
4527
|
+
})) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4528
|
+
path: _path + ".privateParams",
|
|
4529
|
+
expected: "__type.o3",
|
|
4530
|
+
value: input.privateParams
|
|
4531
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4532
|
+
path: _path + ".metadata",
|
|
4533
|
+
expected: "(__type.o4 | undefined)",
|
|
4534
|
+
value: input.metadata
|
|
4535
|
+
})) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4536
|
+
path: _path + ".metadata",
|
|
4537
|
+
expected: "(__type.o4 | undefined)",
|
|
4538
|
+
value: input.metadata
|
|
4537
4539
|
})].every(flag => flag);
|
|
4538
|
-
const $
|
|
4539
|
-
|
|
4540
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4541
|
-
value: input.type
|
|
4542
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4540
|
+
const $vo13 = (input, _path, _exceptionable = true) => true;
|
|
4541
|
+
const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4543
4542
|
path: _path + ".name",
|
|
4544
4543
|
expected: "string",
|
|
4545
4544
|
value: input.name
|
|
4546
|
-
}), "string" === typeof input.
|
|
4547
|
-
path: _path + ".
|
|
4548
|
-
expected: "
|
|
4549
|
-
value: input.
|
|
4545
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4546
|
+
path: _path + ".description",
|
|
4547
|
+
expected: "string",
|
|
4548
|
+
value: input.description
|
|
4550
4549
|
})].every(flag => flag);
|
|
4551
4550
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4552
4551
|
path: _path + "",
|
|
@@ -6243,10 +6242,6 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6243
6242
|
if (!validateRes.success) {
|
|
6244
6243
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6245
6244
|
}
|
|
6246
|
-
const error = payload.uris.find((uri) => Joi.string().uri().required().validate(uri).error);
|
|
6247
|
-
if (error) {
|
|
6248
|
-
throw `Invalid URIs`;
|
|
6249
|
-
}
|
|
6250
6245
|
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
|
|
6251
6246
|
return new FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6252
6247
|
}
|
|
@@ -6301,23 +6296,23 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6301
6296
|
const errors = [];
|
|
6302
6297
|
const __is = input => {
|
|
6303
6298
|
const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
6304
|
-
const $io1 = input =>
|
|
6305
|
-
const $io2 = input =>
|
|
6299
|
+
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);
|
|
6300
|
+
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);
|
|
6301
|
+
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);
|
|
6302
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
6306
6303
|
const value = input[key];
|
|
6307
6304
|
if (undefined === value)
|
|
6308
6305
|
return true;
|
|
6309
6306
|
return "string" === typeof value;
|
|
6310
6307
|
});
|
|
6311
|
-
const $
|
|
6312
|
-
const $
|
|
6313
|
-
const $
|
|
6314
|
-
const $io6 = 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);
|
|
6315
|
-
const $io7 = input => (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);
|
|
6308
|
+
const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6309
|
+
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);
|
|
6310
|
+
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);
|
|
6316
6311
|
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);
|
|
6317
6312
|
const $io9 = input => true;
|
|
6318
6313
|
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);
|
|
6319
|
-
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@
|
|
6320
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6314
|
+
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@546"] && Object.keys(input).every(key => {
|
|
6315
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@546"].some(prop => key === prop))
|
|
6321
6316
|
return true;
|
|
6322
6317
|
const value = input[key];
|
|
6323
6318
|
if (undefined === value)
|
|
@@ -6327,10 +6322,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6327
6322
|
return true;
|
|
6328
6323
|
});
|
|
6329
6324
|
const $iu0 = input => (() => {
|
|
6330
|
-
if (undefined !== input.
|
|
6325
|
+
if (undefined !== input.badgeIds)
|
|
6331
6326
|
return $io1(input);
|
|
6332
|
-
else if (undefined !== input.
|
|
6333
|
-
return $
|
|
6327
|
+
else if (undefined !== input.name)
|
|
6328
|
+
return $io3(input);
|
|
6334
6329
|
else if (undefined !== input.leaves)
|
|
6335
6330
|
return $io8(input);
|
|
6336
6331
|
else
|
|
@@ -6344,7 +6339,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6344
6339
|
const $join = typia.validate.join;
|
|
6345
6340
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
6346
6341
|
path: _path + ".contents",
|
|
6347
|
-
expected: "(Array<
|
|
6342
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6348
6343
|
value: input.contents
|
|
6349
6344
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6350
6345
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -6356,10 +6351,60 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6356
6351
|
value: elem
|
|
6357
6352
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6358
6353
|
path: _path + ".contents",
|
|
6359
|
-
expected: "(Array<
|
|
6354
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6360
6355
|
value: input.contents
|
|
6361
6356
|
})].every(flag => flag);
|
|
6362
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
6357
|
+
const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6358
|
+
path: _path + ".badgeIds",
|
|
6359
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6360
|
+
value: input.badgeIds
|
|
6361
|
+
})) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6362
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6363
|
+
expected: "iUintRange<NumberType>",
|
|
6364
|
+
value: elem
|
|
6365
|
+
})) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6366
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6367
|
+
expected: "iUintRange<NumberType>",
|
|
6368
|
+
value: elem
|
|
6369
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6370
|
+
path: _path + ".badgeIds",
|
|
6371
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6372
|
+
value: input.badgeIds
|
|
6373
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6374
|
+
path: _path + ".metadata",
|
|
6375
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6376
|
+
value: input.metadata
|
|
6377
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6378
|
+
path: _path + ".metadata",
|
|
6379
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6380
|
+
value: input.metadata
|
|
6381
|
+
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6382
|
+
path: _path + ".uri",
|
|
6383
|
+
expected: "string",
|
|
6384
|
+
value: input.uri
|
|
6385
|
+
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6386
|
+
path: _path + ".fetchedUri",
|
|
6387
|
+
expected: "(string | undefined)",
|
|
6388
|
+
value: input.fetchedUri
|
|
6389
|
+
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6390
|
+
path: _path + ".customData",
|
|
6391
|
+
expected: "string",
|
|
6392
|
+
value: input.customData
|
|
6393
|
+
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6394
|
+
path: _path + ".toUploadToIpfs",
|
|
6395
|
+
expected: "(boolean | undefined)",
|
|
6396
|
+
value: input.toUploadToIpfs
|
|
6397
|
+
})].every(flag => flag);
|
|
6398
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6399
|
+
path: _path + ".start",
|
|
6400
|
+
expected: "(bigint | number | string)",
|
|
6401
|
+
value: input.start
|
|
6402
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6403
|
+
path: _path + ".end",
|
|
6404
|
+
expected: "(bigint | number | string)",
|
|
6405
|
+
value: input.end
|
|
6406
|
+
})].every(flag => flag);
|
|
6407
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6363
6408
|
path: _path + ".name",
|
|
6364
6409
|
expected: "string",
|
|
6365
6410
|
value: input.name
|
|
@@ -6387,8 +6432,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6387
6432
|
path: _path + ".tags",
|
|
6388
6433
|
expected: "(Array<string> | undefined)",
|
|
6389
6434
|
value: input.tags
|
|
6390
|
-
})) && input.tags.map((elem,
|
|
6391
|
-
path: _path + ".tags[" +
|
|
6435
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
6436
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
6392
6437
|
expected: "string",
|
|
6393
6438
|
value: elem
|
|
6394
6439
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6399,7 +6444,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6399
6444
|
path: _path + ".socials",
|
|
6400
6445
|
expected: "(__type | undefined)",
|
|
6401
6446
|
value: input.socials
|
|
6402
|
-
})) && $
|
|
6447
|
+
})) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
6403
6448
|
path: _path + ".socials",
|
|
6404
6449
|
expected: "(__type | undefined)",
|
|
6405
6450
|
value: input.socials
|
|
@@ -6407,7 +6452,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6407
6452
|
path: _path + ".offChainTransferabilityInfo",
|
|
6408
6453
|
expected: "(__type.o1 | undefined)",
|
|
6409
6454
|
value: input.offChainTransferabilityInfo
|
|
6410
|
-
})) && $
|
|
6455
|
+
})) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
6411
6456
|
path: _path + ".offChainTransferabilityInfo",
|
|
6412
6457
|
expected: "(__type.o1 | undefined)",
|
|
6413
6458
|
value: input.offChainTransferabilityInfo
|
|
@@ -6415,12 +6460,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6415
6460
|
path: _path + ".attributes",
|
|
6416
6461
|
expected: "(Array<__type> | undefined)",
|
|
6417
6462
|
value: input.attributes
|
|
6418
|
-
})) && input.attributes.map((elem,
|
|
6419
|
-
path: _path + ".attributes[" +
|
|
6463
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6464
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
6420
6465
|
expected: "__type.o2",
|
|
6421
6466
|
value: elem
|
|
6422
|
-
})) && $
|
|
6423
|
-
path: _path + ".attributes[" +
|
|
6467
|
+
})) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6468
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
6424
6469
|
expected: "__type.o2",
|
|
6425
6470
|
value: elem
|
|
6426
6471
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6440,7 +6485,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6440
6485
|
expected: "(boolean | undefined)",
|
|
6441
6486
|
value: input._isUpdating
|
|
6442
6487
|
})].every(flag => flag);
|
|
6443
|
-
const $
|
|
6488
|
+
const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
6444
6489
|
const value = input[key];
|
|
6445
6490
|
if (undefined === value)
|
|
6446
6491
|
return true;
|
|
@@ -6450,7 +6495,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6450
6495
|
value: value
|
|
6451
6496
|
});
|
|
6452
6497
|
}).every(flag => flag)].every(flag => flag);
|
|
6453
|
-
const $
|
|
6498
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
6454
6499
|
path: _path + ".host",
|
|
6455
6500
|
expected: "string",
|
|
6456
6501
|
value: input.host
|
|
@@ -6459,7 +6504,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6459
6504
|
expected: "string",
|
|
6460
6505
|
value: input.assignMethod
|
|
6461
6506
|
})].every(flag => flag);
|
|
6462
|
-
const $
|
|
6507
|
+
const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
6463
6508
|
path: _path + ".type",
|
|
6464
6509
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
6465
6510
|
value: input.type
|
|
@@ -6472,61 +6517,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6472
6517
|
expected: "(boolean | number | string)",
|
|
6473
6518
|
value: input.value
|
|
6474
6519
|
})].every(flag => flag);
|
|
6475
|
-
const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6476
|
-
path: _path + ".badgeIds",
|
|
6477
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6478
|
-
value: input.badgeIds
|
|
6479
|
-
})) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6480
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6481
|
-
expected: "iUintRange<NumberType>",
|
|
6482
|
-
value: elem
|
|
6483
|
-
})) && $vo6(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6484
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6485
|
-
expected: "iUintRange<NumberType>",
|
|
6486
|
-
value: elem
|
|
6487
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6488
|
-
path: _path + ".badgeIds",
|
|
6489
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6490
|
-
value: input.badgeIds
|
|
6491
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6492
|
-
path: _path + ".metadata",
|
|
6493
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6494
|
-
value: input.metadata
|
|
6495
|
-
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6496
|
-
path: _path + ".metadata",
|
|
6497
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6498
|
-
value: input.metadata
|
|
6499
|
-
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6500
|
-
path: _path + ".uri",
|
|
6501
|
-
expected: "string",
|
|
6502
|
-
value: input.uri
|
|
6503
|
-
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6504
|
-
path: _path + ".fetchedUri",
|
|
6505
|
-
expected: "(string | undefined)",
|
|
6506
|
-
value: input.fetchedUri
|
|
6507
|
-
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6508
|
-
path: _path + ".customData",
|
|
6509
|
-
expected: "string",
|
|
6510
|
-
value: input.customData
|
|
6511
|
-
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6512
|
-
path: _path + ".toUploadToIpfs",
|
|
6513
|
-
expected: "(boolean | undefined)",
|
|
6514
|
-
value: input.toUploadToIpfs
|
|
6515
|
-
})].every(flag => flag);
|
|
6516
|
-
const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6517
|
-
path: _path + ".start",
|
|
6518
|
-
expected: "(bigint | number | string)",
|
|
6519
|
-
value: input.start
|
|
6520
|
-
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6521
|
-
path: _path + ".end",
|
|
6522
|
-
expected: "(bigint | number | string)",
|
|
6523
|
-
value: input.end
|
|
6524
|
-
})].every(flag => flag);
|
|
6525
6520
|
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6526
6521
|
path: _path + ".metadata",
|
|
6527
6522
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6528
6523
|
value: input.metadata
|
|
6529
|
-
})) && $
|
|
6524
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6530
6525
|
path: _path + ".metadata",
|
|
6531
6526
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6532
6527
|
value: input.metadata
|
|
@@ -6670,12 +6665,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6670
6665
|
path: _path + ".length",
|
|
6671
6666
|
expected: "number",
|
|
6672
6667
|
value: input.length
|
|
6673
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6674
|
-
path: _path + "[\"__@toStringTag@
|
|
6668
|
+
}), "Uint8Array" === input["__@toStringTag@546"] || $report(_exceptionable, {
|
|
6669
|
+
path: _path + "[\"__@toStringTag@546\"]",
|
|
6675
6670
|
expected: "\"Uint8Array\"",
|
|
6676
|
-
value: input["__@toStringTag@
|
|
6671
|
+
value: input["__@toStringTag@546"]
|
|
6677
6672
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6678
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6673
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@546"].some(prop => key === prop))
|
|
6679
6674
|
return true;
|
|
6680
6675
|
const value = input[key];
|
|
6681
6676
|
if (undefined === value)
|
|
@@ -6689,10 +6684,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6689
6684
|
return true;
|
|
6690
6685
|
}).every(flag => flag)].every(flag => flag);
|
|
6691
6686
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
6692
|
-
if (undefined !== input.
|
|
6687
|
+
if (undefined !== input.badgeIds)
|
|
6693
6688
|
return $vo1(input, _path, true && _exceptionable);
|
|
6694
|
-
else if (undefined !== input.
|
|
6695
|
-
return $
|
|
6689
|
+
else if (undefined !== input.name)
|
|
6690
|
+
return $vo3(input, _path, true && _exceptionable);
|
|
6696
6691
|
else if (undefined !== input.leaves)
|
|
6697
6692
|
return $vo8(input, _path, true && _exceptionable);
|
|
6698
6693
|
else
|
|
@@ -6738,8 +6733,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6738
6733
|
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);
|
|
6739
6734
|
const $io4 = input => true;
|
|
6740
6735
|
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);
|
|
6741
|
-
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@
|
|
6742
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6736
|
+
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@546"] && Object.keys(input).every(key => {
|
|
6737
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@546"].some(prop => key === prop))
|
|
6743
6738
|
return true;
|
|
6744
6739
|
const value = input[key];
|
|
6745
6740
|
if (undefined === value)
|
|
@@ -6954,12 +6949,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6954
6949
|
path: _path + ".length",
|
|
6955
6950
|
expected: "number",
|
|
6956
6951
|
value: input.length
|
|
6957
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6958
|
-
path: _path + "[\"__@toStringTag@
|
|
6952
|
+
}), "Uint8Array" === input["__@toStringTag@546"] || $report(_exceptionable, {
|
|
6953
|
+
path: _path + "[\"__@toStringTag@546\"]",
|
|
6959
6954
|
expected: "\"Uint8Array\"",
|
|
6960
|
-
value: input["__@toStringTag@
|
|
6955
|
+
value: input["__@toStringTag@546"]
|
|
6961
6956
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6962
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6957
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@546"].some(prop => key === prop))
|
|
6963
6958
|
return true;
|
|
6964
6959
|
const value = input[key];
|
|
6965
6960
|
if (undefined === value)
|