bitbadgesjs-sdk 0.3.60 → 0.3.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-indexer/BitBadgesApi.js +463 -437
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/docs/docs.d.ts +7 -0
- package/dist/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/api-indexer/docs/docs.js +2 -0
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.d.ts +11 -2
- package/dist/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/api-indexer/requests/requests.d.ts +9 -0
- package/dist/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/api-indexer/requests/requests.js +2 -0
- package/dist/api-indexer/requests/requests.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -472,11 +472,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
472
472
|
const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id;
|
|
473
473
|
const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id;
|
|
474
474
|
const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id;
|
|
475
|
-
const $io18 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io19(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io20(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io21(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io22(input.github));
|
|
475
|
+
const $io18 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io19(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io20(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io21(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io22(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io23(input.twitch));
|
|
476
476
|
const $io19 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated);
|
|
477
477
|
const $io20 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated);
|
|
478
478
|
const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated);
|
|
479
479
|
const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated);
|
|
480
|
+
const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated);
|
|
480
481
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
481
482
|
};
|
|
482
483
|
if (false === __is(input)) {
|
|
@@ -992,6 +993,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
992
993
|
path: _path + ".github",
|
|
993
994
|
expected: "(__type.o13 | undefined)",
|
|
994
995
|
value: input.github
|
|
996
|
+
}), undefined === input.twitch || ("object" === typeof input.twitch && null !== input.twitch || $report(_exceptionable, {
|
|
997
|
+
path: _path + ".twitch",
|
|
998
|
+
expected: "(__type.o14 | undefined)",
|
|
999
|
+
value: input.twitch
|
|
1000
|
+
})) && $vo23(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
|
|
1001
|
+
path: _path + ".twitch",
|
|
1002
|
+
expected: "(__type.o14 | undefined)",
|
|
1003
|
+
value: input.twitch
|
|
995
1004
|
})].every(flag => flag);
|
|
996
1005
|
const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
997
1006
|
path: _path + ".username",
|
|
@@ -1049,6 +1058,19 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1049
1058
|
expected: "(bigint | number | string)",
|
|
1050
1059
|
value: input.lastUpdated
|
|
1051
1060
|
})].every(flag => flag);
|
|
1061
|
+
const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1062
|
+
path: _path + ".username",
|
|
1063
|
+
expected: "string",
|
|
1064
|
+
value: input.username
|
|
1065
|
+
}), "string" === typeof input.id || $report(_exceptionable, {
|
|
1066
|
+
path: _path + ".id",
|
|
1067
|
+
expected: "string",
|
|
1068
|
+
value: input.id
|
|
1069
|
+
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
|
|
1070
|
+
path: _path + ".lastUpdated",
|
|
1071
|
+
expected: "(bigint | number | string)",
|
|
1072
|
+
value: input.lastUpdated
|
|
1073
|
+
})].every(flag => flag);
|
|
1052
1074
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
1053
1075
|
path: _path + "",
|
|
1054
1076
|
expected: "UpdateAccountInfoPayload",
|
|
@@ -3437,21 +3459,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3437
3459
|
const errors = [];
|
|
3438
3460
|
const __is = input => {
|
|
3439
3461
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3440
|
-
const $io1 = input => (undefined === input.
|
|
3441
|
-
const $io2 = input =>
|
|
3442
|
-
const $io3 = input =>
|
|
3462
|
+
const $io1 = input => (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
|
|
3463
|
+
const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3464
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3465
|
+
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)));
|
|
3466
|
+
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);
|
|
3467
|
+
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);
|
|
3468
|
+
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);
|
|
3469
|
+
const $io9 = input => Object.keys(input).every(key => {
|
|
3443
3470
|
const value = input[key];
|
|
3444
3471
|
if (undefined === value)
|
|
3445
3472
|
return true;
|
|
3446
3473
|
return "string" === typeof value;
|
|
3447
3474
|
});
|
|
3448
|
-
const $
|
|
3449
|
-
const $
|
|
3450
|
-
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));
|
|
3451
|
-
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3452
|
-
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)));
|
|
3453
|
-
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);
|
|
3454
|
-
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);
|
|
3475
|
+
const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3476
|
+
const $io11 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
3455
3477
|
const $io12 = input => (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);
|
|
3456
3478
|
const $io13 = input => true;
|
|
3457
3479
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -3477,15 +3499,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3477
3499
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3478
3500
|
value: input.claims
|
|
3479
3501
|
})].every(flag => flag);
|
|
3480
|
-
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
3481
|
-
path: _path + ".metadata",
|
|
3482
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3483
|
-
value: input.metadata
|
|
3484
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3485
|
-
path: _path + ".metadata",
|
|
3486
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3487
|
-
value: input.metadata
|
|
3488
|
-
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3502
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3489
3503
|
path: _path + ".seedCode",
|
|
3490
3504
|
expected: "(string | undefined)",
|
|
3491
3505
|
value: input.seedCode
|
|
@@ -3497,7 +3511,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3497
3511
|
path: _path + ".balancesToSet",
|
|
3498
3512
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3499
3513
|
value: input.balancesToSet
|
|
3500
|
-
})) && $
|
|
3514
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3501
3515
|
path: _path + ".balancesToSet",
|
|
3502
3516
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3503
3517
|
value: input.balancesToSet
|
|
@@ -3509,6 +3523,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3509
3523
|
path: _path + ".approach",
|
|
3510
3524
|
expected: "(string | undefined)",
|
|
3511
3525
|
value: input.approach
|
|
3526
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3527
|
+
path: _path + ".metadata",
|
|
3528
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3529
|
+
value: input.metadata
|
|
3530
|
+
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3531
|
+
path: _path + ".metadata",
|
|
3532
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3533
|
+
value: input.metadata
|
|
3512
3534
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3513
3535
|
path: _path + ".assignMethod",
|
|
3514
3536
|
expected: "(string | undefined)",
|
|
@@ -3542,129 +3564,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3542
3564
|
expected: "Array<ManagePluginRequest>",
|
|
3543
3565
|
value: input.plugins
|
|
3544
3566
|
})].every(flag => flag);
|
|
3545
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
3546
|
-
path: _path + ".name",
|
|
3547
|
-
expected: "string",
|
|
3548
|
-
value: input.name
|
|
3549
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3550
|
-
path: _path + ".description",
|
|
3551
|
-
expected: "string",
|
|
3552
|
-
value: input.description
|
|
3553
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3554
|
-
path: _path + ".image",
|
|
3555
|
-
expected: "string",
|
|
3556
|
-
value: input.image
|
|
3557
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3558
|
-
path: _path + ".video",
|
|
3559
|
-
expected: "(string | undefined)",
|
|
3560
|
-
value: input.video
|
|
3561
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3562
|
-
path: _path + ".category",
|
|
3563
|
-
expected: "(string | undefined)",
|
|
3564
|
-
value: input.category
|
|
3565
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3566
|
-
path: _path + ".externalUrl",
|
|
3567
|
-
expected: "(string | undefined)",
|
|
3568
|
-
value: input.externalUrl
|
|
3569
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3570
|
-
path: _path + ".tags",
|
|
3571
|
-
expected: "(Array<string> | undefined)",
|
|
3572
|
-
value: input.tags
|
|
3573
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
3574
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
3575
|
-
expected: "string",
|
|
3576
|
-
value: elem
|
|
3577
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3578
|
-
path: _path + ".tags",
|
|
3579
|
-
expected: "(Array<string> | undefined)",
|
|
3580
|
-
value: input.tags
|
|
3581
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3582
|
-
path: _path + ".socials",
|
|
3583
|
-
expected: "(__type | undefined)",
|
|
3584
|
-
value: input.socials
|
|
3585
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3586
|
-
path: _path + ".socials",
|
|
3587
|
-
expected: "(__type | undefined)",
|
|
3588
|
-
value: input.socials
|
|
3589
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3590
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3591
|
-
expected: "(__type.o1 | undefined)",
|
|
3592
|
-
value: input.offChainTransferabilityInfo
|
|
3593
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3594
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3595
|
-
expected: "(__type.o1 | undefined)",
|
|
3596
|
-
value: input.offChainTransferabilityInfo
|
|
3597
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3598
|
-
path: _path + ".attributes",
|
|
3599
|
-
expected: "(Array<__type> | undefined)",
|
|
3600
|
-
value: input.attributes
|
|
3601
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3602
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3603
|
-
expected: "__type.o2",
|
|
3604
|
-
value: elem
|
|
3605
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3606
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3607
|
-
expected: "__type.o2",
|
|
3608
|
-
value: elem
|
|
3609
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3610
|
-
path: _path + ".attributes",
|
|
3611
|
-
expected: "(Array<__type> | undefined)",
|
|
3612
|
-
value: input.attributes
|
|
3613
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3614
|
-
path: _path + ".fetchedAtBlock",
|
|
3615
|
-
expected: "(bigint | number | string | undefined)",
|
|
3616
|
-
value: input.fetchedAtBlock
|
|
3617
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3618
|
-
path: _path + ".fetchedAt",
|
|
3619
|
-
expected: "(bigint | number | string | undefined)",
|
|
3620
|
-
value: input.fetchedAt
|
|
3621
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3622
|
-
path: _path + "._isUpdating",
|
|
3623
|
-
expected: "(boolean | undefined)",
|
|
3624
|
-
value: input._isUpdating
|
|
3625
|
-
})].every(flag => flag);
|
|
3626
|
-
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3627
|
-
const value = input[key];
|
|
3628
|
-
if (undefined === value)
|
|
3629
|
-
return true;
|
|
3630
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3631
|
-
path: _path + $join(key),
|
|
3632
|
-
expected: "string",
|
|
3633
|
-
value: value
|
|
3634
|
-
});
|
|
3635
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3636
|
-
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3637
|
-
path: _path + ".host",
|
|
3638
|
-
expected: "string",
|
|
3639
|
-
value: input.host
|
|
3640
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3641
|
-
path: _path + ".assignMethod",
|
|
3642
|
-
expected: "string",
|
|
3643
|
-
value: input.assignMethod
|
|
3644
|
-
})].every(flag => flag);
|
|
3645
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3646
|
-
path: _path + ".type",
|
|
3647
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3648
|
-
value: input.type
|
|
3649
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3650
|
-
path: _path + ".name",
|
|
3651
|
-
expected: "string",
|
|
3652
|
-
value: input.name
|
|
3653
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3654
|
-
path: _path + ".value",
|
|
3655
|
-
expected: "(boolean | number | string)",
|
|
3656
|
-
value: input.value
|
|
3657
|
-
})].every(flag => flag);
|
|
3658
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3567
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3659
3568
|
path: _path + ".manualBalances",
|
|
3660
3569
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3661
3570
|
value: input.manualBalances
|
|
3662
|
-
})) && input.manualBalances.map((elem,
|
|
3663
|
-
path: _path + ".manualBalances[" +
|
|
3571
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3572
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3664
3573
|
expected: "iManualBalances<NumberType>",
|
|
3665
3574
|
value: elem
|
|
3666
|
-
})) && $
|
|
3667
|
-
path: _path + ".manualBalances[" +
|
|
3575
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3576
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3668
3577
|
expected: "iManualBalances<NumberType>",
|
|
3669
3578
|
value: elem
|
|
3670
3579
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3675,7 +3584,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3675
3584
|
path: _path + ".incrementedBalances",
|
|
3676
3585
|
expected: "iIncrementedBalances<NumberType>",
|
|
3677
3586
|
value: input.incrementedBalances
|
|
3678
|
-
})) && $
|
|
3587
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3679
3588
|
path: _path + ".incrementedBalances",
|
|
3680
3589
|
expected: "iIncrementedBalances<NumberType>",
|
|
3681
3590
|
value: input.incrementedBalances
|
|
@@ -3683,21 +3592,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3683
3592
|
path: _path + ".orderCalculationMethod",
|
|
3684
3593
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3685
3594
|
value: input.orderCalculationMethod
|
|
3686
|
-
})) && $
|
|
3595
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3687
3596
|
path: _path + ".orderCalculationMethod",
|
|
3688
3597
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3689
3598
|
value: input.orderCalculationMethod
|
|
3690
3599
|
})].every(flag => flag);
|
|
3691
|
-
const $
|
|
3600
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3692
3601
|
path: _path + ".balances",
|
|
3693
3602
|
expected: "Array<iBalance<NumberType>>",
|
|
3694
3603
|
value: input.balances
|
|
3695
|
-
})) && input.balances.map((elem,
|
|
3696
|
-
path: _path + ".balances[" +
|
|
3604
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3605
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3697
3606
|
expected: "iBalance<NumberType>",
|
|
3698
3607
|
value: elem
|
|
3699
|
-
})) && $
|
|
3700
|
-
path: _path + ".balances[" +
|
|
3608
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3609
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3701
3610
|
expected: "iBalance<NumberType>",
|
|
3702
3611
|
value: elem
|
|
3703
3612
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3705,7 +3614,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3705
3614
|
expected: "Array<iBalance<NumberType>>",
|
|
3706
3615
|
value: input.balances
|
|
3707
3616
|
})].every(flag => flag);
|
|
3708
|
-
const $
|
|
3617
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3709
3618
|
path: _path + ".amount",
|
|
3710
3619
|
expected: "(bigint | number | string)",
|
|
3711
3620
|
value: input.amount
|
|
@@ -3713,12 +3622,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3713
3622
|
path: _path + ".badgeIds",
|
|
3714
3623
|
expected: "Array<iUintRange<NumberType>>",
|
|
3715
3624
|
value: input.badgeIds
|
|
3716
|
-
})) && input.badgeIds.map((elem,
|
|
3717
|
-
path: _path + ".badgeIds[" +
|
|
3625
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3626
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3718
3627
|
expected: "iUintRange<NumberType>",
|
|
3719
3628
|
value: elem
|
|
3720
|
-
})) && $
|
|
3721
|
-
path: _path + ".badgeIds[" +
|
|
3629
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3630
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3722
3631
|
expected: "iUintRange<NumberType>",
|
|
3723
3632
|
value: elem
|
|
3724
3633
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3729,12 +3638,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3729
3638
|
path: _path + ".ownershipTimes",
|
|
3730
3639
|
expected: "Array<iUintRange<NumberType>>",
|
|
3731
3640
|
value: input.ownershipTimes
|
|
3732
|
-
})) && input.ownershipTimes.map((elem,
|
|
3733
|
-
path: _path + ".ownershipTimes[" +
|
|
3641
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3642
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3734
3643
|
expected: "iUintRange<NumberType>",
|
|
3735
3644
|
value: elem
|
|
3736
|
-
})) && $
|
|
3737
|
-
path: _path + ".ownershipTimes[" +
|
|
3645
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3646
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3738
3647
|
expected: "iUintRange<NumberType>",
|
|
3739
3648
|
value: elem
|
|
3740
3649
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3742,7 +3651,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3742
3651
|
expected: "Array<iUintRange<NumberType>>",
|
|
3743
3652
|
value: input.ownershipTimes
|
|
3744
3653
|
})].every(flag => flag);
|
|
3745
|
-
const $
|
|
3654
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3746
3655
|
path: _path + ".start",
|
|
3747
3656
|
expected: "(bigint | number | string)",
|
|
3748
3657
|
value: input.start
|
|
@@ -3751,16 +3660,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3751
3660
|
expected: "(bigint | number | string)",
|
|
3752
3661
|
value: input.end
|
|
3753
3662
|
})].every(flag => flag);
|
|
3754
|
-
const $
|
|
3663
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3755
3664
|
path: _path + ".startBalances",
|
|
3756
3665
|
expected: "Array<iBalance<NumberType>>",
|
|
3757
3666
|
value: input.startBalances
|
|
3758
|
-
})) && input.startBalances.map((elem,
|
|
3759
|
-
path: _path + ".startBalances[" +
|
|
3667
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3668
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3760
3669
|
expected: "iBalance<NumberType>",
|
|
3761
3670
|
value: elem
|
|
3762
|
-
})) && $
|
|
3763
|
-
path: _path + ".startBalances[" +
|
|
3671
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3672
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3764
3673
|
expected: "iBalance<NumberType>",
|
|
3765
3674
|
value: elem
|
|
3766
3675
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3776,7 +3685,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3776
3685
|
expected: "(bigint | number | string)",
|
|
3777
3686
|
value: input.incrementOwnershipTimesBy
|
|
3778
3687
|
})].every(flag => flag);
|
|
3779
|
-
const $
|
|
3688
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3780
3689
|
path: _path + ".useOverallNumTransfers",
|
|
3781
3690
|
expected: "boolean",
|
|
3782
3691
|
value: input.useOverallNumTransfers
|
|
@@ -3801,6 +3710,119 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3801
3710
|
expected: "string",
|
|
3802
3711
|
value: input.challengeTrackerId
|
|
3803
3712
|
})].every(flag => flag);
|
|
3713
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3714
|
+
path: _path + ".name",
|
|
3715
|
+
expected: "string",
|
|
3716
|
+
value: input.name
|
|
3717
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3718
|
+
path: _path + ".description",
|
|
3719
|
+
expected: "string",
|
|
3720
|
+
value: input.description
|
|
3721
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3722
|
+
path: _path + ".image",
|
|
3723
|
+
expected: "string",
|
|
3724
|
+
value: input.image
|
|
3725
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3726
|
+
path: _path + ".video",
|
|
3727
|
+
expected: "(string | undefined)",
|
|
3728
|
+
value: input.video
|
|
3729
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3730
|
+
path: _path + ".category",
|
|
3731
|
+
expected: "(string | undefined)",
|
|
3732
|
+
value: input.category
|
|
3733
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3734
|
+
path: _path + ".externalUrl",
|
|
3735
|
+
expected: "(string | undefined)",
|
|
3736
|
+
value: input.externalUrl
|
|
3737
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3738
|
+
path: _path + ".tags",
|
|
3739
|
+
expected: "(Array<string> | undefined)",
|
|
3740
|
+
value: input.tags
|
|
3741
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3742
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
3743
|
+
expected: "string",
|
|
3744
|
+
value: elem
|
|
3745
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3746
|
+
path: _path + ".tags",
|
|
3747
|
+
expected: "(Array<string> | undefined)",
|
|
3748
|
+
value: input.tags
|
|
3749
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3750
|
+
path: _path + ".socials",
|
|
3751
|
+
expected: "(__type | undefined)",
|
|
3752
|
+
value: input.socials
|
|
3753
|
+
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3754
|
+
path: _path + ".socials",
|
|
3755
|
+
expected: "(__type | undefined)",
|
|
3756
|
+
value: input.socials
|
|
3757
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3758
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3759
|
+
expected: "(__type.o1 | undefined)",
|
|
3760
|
+
value: input.offChainTransferabilityInfo
|
|
3761
|
+
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3762
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3763
|
+
expected: "(__type.o1 | undefined)",
|
|
3764
|
+
value: input.offChainTransferabilityInfo
|
|
3765
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3766
|
+
path: _path + ".attributes",
|
|
3767
|
+
expected: "(Array<__type> | undefined)",
|
|
3768
|
+
value: input.attributes
|
|
3769
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3770
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3771
|
+
expected: "__type.o2",
|
|
3772
|
+
value: elem
|
|
3773
|
+
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3774
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3775
|
+
expected: "__type.o2",
|
|
3776
|
+
value: elem
|
|
3777
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3778
|
+
path: _path + ".attributes",
|
|
3779
|
+
expected: "(Array<__type> | undefined)",
|
|
3780
|
+
value: input.attributes
|
|
3781
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3782
|
+
path: _path + ".fetchedAtBlock",
|
|
3783
|
+
expected: "(bigint | number | string | undefined)",
|
|
3784
|
+
value: input.fetchedAtBlock
|
|
3785
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3786
|
+
path: _path + ".fetchedAt",
|
|
3787
|
+
expected: "(bigint | number | string | undefined)",
|
|
3788
|
+
value: input.fetchedAt
|
|
3789
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3790
|
+
path: _path + "._isUpdating",
|
|
3791
|
+
expected: "(boolean | undefined)",
|
|
3792
|
+
value: input._isUpdating
|
|
3793
|
+
})].every(flag => flag);
|
|
3794
|
+
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3795
|
+
const value = input[key];
|
|
3796
|
+
if (undefined === value)
|
|
3797
|
+
return true;
|
|
3798
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3799
|
+
path: _path + $join(key),
|
|
3800
|
+
expected: "string",
|
|
3801
|
+
value: value
|
|
3802
|
+
});
|
|
3803
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3804
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3805
|
+
path: _path + ".host",
|
|
3806
|
+
expected: "string",
|
|
3807
|
+
value: input.host
|
|
3808
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3809
|
+
path: _path + ".assignMethod",
|
|
3810
|
+
expected: "string",
|
|
3811
|
+
value: input.assignMethod
|
|
3812
|
+
})].every(flag => flag);
|
|
3813
|
+
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3814
|
+
path: _path + ".type",
|
|
3815
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3816
|
+
value: input.type
|
|
3817
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3818
|
+
path: _path + ".name",
|
|
3819
|
+
expected: "string",
|
|
3820
|
+
value: input.name
|
|
3821
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3822
|
+
path: _path + ".value",
|
|
3823
|
+
expected: "(boolean | number | string)",
|
|
3824
|
+
value: input.value
|
|
3825
|
+
})].every(flag => flag);
|
|
3804
3826
|
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
3805
3827
|
path: _path + ".resetState",
|
|
3806
3828
|
expected: "(boolean | undefined)",
|
|
@@ -3933,23 +3955,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3933
3955
|
const errors = [];
|
|
3934
3956
|
const __is = input => {
|
|
3935
3957
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3936
|
-
const $io1 = input =>
|
|
3937
|
-
const $io2 = input =>
|
|
3938
|
-
const $io3 = input =>
|
|
3958
|
+
const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io10(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
|
|
3959
|
+
const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3960
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3961
|
+
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)));
|
|
3962
|
+
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);
|
|
3963
|
+
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);
|
|
3964
|
+
const $io8 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io9(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io9(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
3965
|
+
const $io9 = input => true;
|
|
3966
|
+
const $io10 = 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) && $io11(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io12(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io13(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);
|
|
3967
|
+
const $io11 = input => Object.keys(input).every(key => {
|
|
3939
3968
|
const value = input[key];
|
|
3940
3969
|
if (undefined === value)
|
|
3941
3970
|
return true;
|
|
3942
3971
|
return "string" === typeof value;
|
|
3943
3972
|
});
|
|
3944
|
-
const $
|
|
3945
|
-
const $
|
|
3946
|
-
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));
|
|
3947
|
-
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3948
|
-
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)));
|
|
3949
|
-
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);
|
|
3950
|
-
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);
|
|
3951
|
-
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);
|
|
3952
|
-
const $io13 = input => true;
|
|
3973
|
+
const $io12 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3974
|
+
const $io13 = 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);
|
|
3953
3975
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3954
3976
|
};
|
|
3955
3977
|
if (false === __is(input)) {
|
|
@@ -3973,15 +3995,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3973
3995
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
3974
3996
|
value: input.claims
|
|
3975
3997
|
})].every(flag => flag);
|
|
3976
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
3977
|
-
path: _path + ".metadata",
|
|
3978
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3979
|
-
value: input.metadata
|
|
3980
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3981
|
-
path: _path + ".metadata",
|
|
3982
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3983
|
-
value: input.metadata
|
|
3984
|
-
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
3998
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
3985
3999
|
path: _path + ".claimId",
|
|
3986
4000
|
expected: "string",
|
|
3987
4001
|
value: input.claimId
|
|
@@ -3989,7 +4003,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3989
4003
|
path: _path + ".balancesToSet",
|
|
3990
4004
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3991
4005
|
value: input.balancesToSet
|
|
3992
|
-
})) && $
|
|
4006
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3993
4007
|
path: _path + ".balancesToSet",
|
|
3994
4008
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3995
4009
|
value: input.balancesToSet
|
|
@@ -4001,7 +4015,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4001
4015
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4002
4016
|
expected: "IntegrationPluginDetails<string>",
|
|
4003
4017
|
value: elem
|
|
4004
|
-
})) && $
|
|
4018
|
+
})) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4005
4019
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4006
4020
|
expected: "IntegrationPluginDetails<string>",
|
|
4007
4021
|
value: elem
|
|
@@ -4017,134 +4031,29 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4017
4031
|
path: _path + ".approach",
|
|
4018
4032
|
expected: "(string | undefined)",
|
|
4019
4033
|
value: input.approach
|
|
4034
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4035
|
+
path: _path + ".metadata",
|
|
4036
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4037
|
+
value: input.metadata
|
|
4038
|
+
})) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4039
|
+
path: _path + ".metadata",
|
|
4040
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4041
|
+
value: input.metadata
|
|
4020
4042
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4021
4043
|
path: _path + ".assignMethod",
|
|
4022
4044
|
expected: "(string | undefined)",
|
|
4023
4045
|
value: input.assignMethod
|
|
4024
4046
|
})].every(flag => flag);
|
|
4025
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
4026
|
-
path: _path + ".name",
|
|
4027
|
-
expected: "string",
|
|
4028
|
-
value: input.name
|
|
4029
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4030
|
-
path: _path + ".description",
|
|
4031
|
-
expected: "string",
|
|
4032
|
-
value: input.description
|
|
4033
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4034
|
-
path: _path + ".image",
|
|
4035
|
-
expected: "string",
|
|
4036
|
-
value: input.image
|
|
4037
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4038
|
-
path: _path + ".video",
|
|
4039
|
-
expected: "(string | undefined)",
|
|
4040
|
-
value: input.video
|
|
4041
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4042
|
-
path: _path + ".category",
|
|
4043
|
-
expected: "(string | undefined)",
|
|
4044
|
-
value: input.category
|
|
4045
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4046
|
-
path: _path + ".externalUrl",
|
|
4047
|
-
expected: "(string | undefined)",
|
|
4048
|
-
value: input.externalUrl
|
|
4049
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4050
|
-
path: _path + ".tags",
|
|
4051
|
-
expected: "(Array<string> | undefined)",
|
|
4052
|
-
value: input.tags
|
|
4053
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
4054
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
4055
|
-
expected: "string",
|
|
4056
|
-
value: elem
|
|
4057
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4058
|
-
path: _path + ".tags",
|
|
4059
|
-
expected: "(Array<string> | undefined)",
|
|
4060
|
-
value: input.tags
|
|
4061
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4062
|
-
path: _path + ".socials",
|
|
4063
|
-
expected: "(__type | undefined)",
|
|
4064
|
-
value: input.socials
|
|
4065
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4066
|
-
path: _path + ".socials",
|
|
4067
|
-
expected: "(__type | undefined)",
|
|
4068
|
-
value: input.socials
|
|
4069
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4070
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4071
|
-
expected: "(__type.o1 | undefined)",
|
|
4072
|
-
value: input.offChainTransferabilityInfo
|
|
4073
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4074
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4075
|
-
expected: "(__type.o1 | undefined)",
|
|
4076
|
-
value: input.offChainTransferabilityInfo
|
|
4077
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4078
|
-
path: _path + ".attributes",
|
|
4079
|
-
expected: "(Array<__type> | undefined)",
|
|
4080
|
-
value: input.attributes
|
|
4081
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4082
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4083
|
-
expected: "__type.o2",
|
|
4084
|
-
value: elem
|
|
4085
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4086
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4087
|
-
expected: "__type.o2",
|
|
4088
|
-
value: elem
|
|
4089
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4090
|
-
path: _path + ".attributes",
|
|
4091
|
-
expected: "(Array<__type> | undefined)",
|
|
4092
|
-
value: input.attributes
|
|
4093
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4094
|
-
path: _path + ".fetchedAtBlock",
|
|
4095
|
-
expected: "(bigint | number | string | undefined)",
|
|
4096
|
-
value: input.fetchedAtBlock
|
|
4097
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4098
|
-
path: _path + ".fetchedAt",
|
|
4099
|
-
expected: "(bigint | number | string | undefined)",
|
|
4100
|
-
value: input.fetchedAt
|
|
4101
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4102
|
-
path: _path + "._isUpdating",
|
|
4103
|
-
expected: "(boolean | undefined)",
|
|
4104
|
-
value: input._isUpdating
|
|
4105
|
-
})].every(flag => flag);
|
|
4106
|
-
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4107
|
-
const value = input[key];
|
|
4108
|
-
if (undefined === value)
|
|
4109
|
-
return true;
|
|
4110
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
4111
|
-
path: _path + $join(key),
|
|
4112
|
-
expected: "string",
|
|
4113
|
-
value: value
|
|
4114
|
-
});
|
|
4115
|
-
}).every(flag => flag)].every(flag => flag);
|
|
4116
|
-
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4117
|
-
path: _path + ".host",
|
|
4118
|
-
expected: "string",
|
|
4119
|
-
value: input.host
|
|
4120
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4121
|
-
path: _path + ".assignMethod",
|
|
4122
|
-
expected: "string",
|
|
4123
|
-
value: input.assignMethod
|
|
4124
|
-
})].every(flag => flag);
|
|
4125
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4126
|
-
path: _path + ".type",
|
|
4127
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4128
|
-
value: input.type
|
|
4129
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4130
|
-
path: _path + ".name",
|
|
4131
|
-
expected: "string",
|
|
4132
|
-
value: input.name
|
|
4133
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4134
|
-
path: _path + ".value",
|
|
4135
|
-
expected: "(boolean | number | string)",
|
|
4136
|
-
value: input.value
|
|
4137
|
-
})].every(flag => flag);
|
|
4138
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4047
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4139
4048
|
path: _path + ".manualBalances",
|
|
4140
4049
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4141
4050
|
value: input.manualBalances
|
|
4142
|
-
})) && input.manualBalances.map((elem,
|
|
4143
|
-
path: _path + ".manualBalances[" +
|
|
4051
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4052
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4144
4053
|
expected: "iManualBalances<NumberType>",
|
|
4145
4054
|
value: elem
|
|
4146
|
-
})) && $
|
|
4147
|
-
path: _path + ".manualBalances[" +
|
|
4055
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4056
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4148
4057
|
expected: "iManualBalances<NumberType>",
|
|
4149
4058
|
value: elem
|
|
4150
4059
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4155,7 +4064,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4155
4064
|
path: _path + ".incrementedBalances",
|
|
4156
4065
|
expected: "iIncrementedBalances<NumberType>",
|
|
4157
4066
|
value: input.incrementedBalances
|
|
4158
|
-
})) && $
|
|
4067
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4159
4068
|
path: _path + ".incrementedBalances",
|
|
4160
4069
|
expected: "iIncrementedBalances<NumberType>",
|
|
4161
4070
|
value: input.incrementedBalances
|
|
@@ -4163,21 +4072,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4163
4072
|
path: _path + ".orderCalculationMethod",
|
|
4164
4073
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4165
4074
|
value: input.orderCalculationMethod
|
|
4166
|
-
})) && $
|
|
4075
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4167
4076
|
path: _path + ".orderCalculationMethod",
|
|
4168
4077
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4169
4078
|
value: input.orderCalculationMethod
|
|
4170
4079
|
})].every(flag => flag);
|
|
4171
|
-
const $
|
|
4080
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4172
4081
|
path: _path + ".balances",
|
|
4173
4082
|
expected: "Array<iBalance<NumberType>>",
|
|
4174
4083
|
value: input.balances
|
|
4175
|
-
})) && input.balances.map((elem,
|
|
4176
|
-
path: _path + ".balances[" +
|
|
4084
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4085
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4177
4086
|
expected: "iBalance<NumberType>",
|
|
4178
4087
|
value: elem
|
|
4179
|
-
})) && $
|
|
4180
|
-
path: _path + ".balances[" +
|
|
4088
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4089
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4181
4090
|
expected: "iBalance<NumberType>",
|
|
4182
4091
|
value: elem
|
|
4183
4092
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4185,7 +4094,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4185
4094
|
expected: "Array<iBalance<NumberType>>",
|
|
4186
4095
|
value: input.balances
|
|
4187
4096
|
})].every(flag => flag);
|
|
4188
|
-
const $
|
|
4097
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4189
4098
|
path: _path + ".amount",
|
|
4190
4099
|
expected: "(bigint | number | string)",
|
|
4191
4100
|
value: input.amount
|
|
@@ -4193,12 +4102,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4193
4102
|
path: _path + ".badgeIds",
|
|
4194
4103
|
expected: "Array<iUintRange<NumberType>>",
|
|
4195
4104
|
value: input.badgeIds
|
|
4196
|
-
})) && input.badgeIds.map((elem,
|
|
4197
|
-
path: _path + ".badgeIds[" +
|
|
4105
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4106
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4198
4107
|
expected: "iUintRange<NumberType>",
|
|
4199
4108
|
value: elem
|
|
4200
|
-
})) && $
|
|
4201
|
-
path: _path + ".badgeIds[" +
|
|
4109
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4110
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4202
4111
|
expected: "iUintRange<NumberType>",
|
|
4203
4112
|
value: elem
|
|
4204
4113
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4209,12 +4118,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4209
4118
|
path: _path + ".ownershipTimes",
|
|
4210
4119
|
expected: "Array<iUintRange<NumberType>>",
|
|
4211
4120
|
value: input.ownershipTimes
|
|
4212
|
-
})) && input.ownershipTimes.map((elem,
|
|
4213
|
-
path: _path + ".ownershipTimes[" +
|
|
4121
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4122
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4214
4123
|
expected: "iUintRange<NumberType>",
|
|
4215
4124
|
value: elem
|
|
4216
|
-
})) && $
|
|
4217
|
-
path: _path + ".ownershipTimes[" +
|
|
4125
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4126
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4218
4127
|
expected: "iUintRange<NumberType>",
|
|
4219
4128
|
value: elem
|
|
4220
4129
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4222,7 +4131,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4222
4131
|
expected: "Array<iUintRange<NumberType>>",
|
|
4223
4132
|
value: input.ownershipTimes
|
|
4224
4133
|
})].every(flag => flag);
|
|
4225
|
-
const $
|
|
4134
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4226
4135
|
path: _path + ".start",
|
|
4227
4136
|
expected: "(bigint | number | string)",
|
|
4228
4137
|
value: input.start
|
|
@@ -4231,16 +4140,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4231
4140
|
expected: "(bigint | number | string)",
|
|
4232
4141
|
value: input.end
|
|
4233
4142
|
})].every(flag => flag);
|
|
4234
|
-
const $
|
|
4143
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4235
4144
|
path: _path + ".startBalances",
|
|
4236
4145
|
expected: "Array<iBalance<NumberType>>",
|
|
4237
4146
|
value: input.startBalances
|
|
4238
|
-
})) && input.startBalances.map((elem,
|
|
4239
|
-
path: _path + ".startBalances[" +
|
|
4147
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4148
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4240
4149
|
expected: "iBalance<NumberType>",
|
|
4241
4150
|
value: elem
|
|
4242
|
-
})) && $
|
|
4243
|
-
path: _path + ".startBalances[" +
|
|
4151
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4152
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4244
4153
|
expected: "iBalance<NumberType>",
|
|
4245
4154
|
value: elem
|
|
4246
4155
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4256,7 +4165,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4256
4165
|
expected: "(bigint | number | string)",
|
|
4257
4166
|
value: input.incrementOwnershipTimesBy
|
|
4258
4167
|
})].every(flag => flag);
|
|
4259
|
-
const $
|
|
4168
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4260
4169
|
path: _path + ".useOverallNumTransfers",
|
|
4261
4170
|
expected: "boolean",
|
|
4262
4171
|
value: input.useOverallNumTransfers
|
|
@@ -4281,21 +4190,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4281
4190
|
expected: "string",
|
|
4282
4191
|
value: input.challengeTrackerId
|
|
4283
4192
|
})].every(flag => flag);
|
|
4284
|
-
const $
|
|
4193
|
+
const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4285
4194
|
path: _path + ".publicState",
|
|
4286
|
-
expected: "__type
|
|
4195
|
+
expected: "__type",
|
|
4287
4196
|
value: input.publicState
|
|
4288
|
-
})) && $
|
|
4197
|
+
})) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4289
4198
|
path: _path + ".publicState",
|
|
4290
|
-
expected: "__type
|
|
4199
|
+
expected: "__type",
|
|
4291
4200
|
value: input.publicState
|
|
4292
4201
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4293
4202
|
path: _path + ".privateState",
|
|
4294
|
-
expected: "(__type
|
|
4203
|
+
expected: "(__type | undefined)",
|
|
4295
4204
|
value: input.privateState
|
|
4296
|
-
})) && $
|
|
4205
|
+
})) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4297
4206
|
path: _path + ".privateState",
|
|
4298
|
-
expected: "(__type
|
|
4207
|
+
expected: "(__type | undefined)",
|
|
4299
4208
|
value: input.privateState
|
|
4300
4209
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4301
4210
|
path: _path + ".resetState",
|
|
@@ -4303,11 +4212,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4303
4212
|
value: input.resetState
|
|
4304
4213
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4305
4214
|
path: _path + ".newState",
|
|
4306
|
-
expected: "(__type
|
|
4215
|
+
expected: "(__type | undefined)",
|
|
4307
4216
|
value: input.newState
|
|
4308
|
-
})) && $
|
|
4217
|
+
})) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4309
4218
|
path: _path + ".newState",
|
|
4310
|
-
expected: "(__type
|
|
4219
|
+
expected: "(__type | undefined)",
|
|
4311
4220
|
value: input.newState
|
|
4312
4221
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4313
4222
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4323,22 +4232,135 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4323
4232
|
value: input.pluginId
|
|
4324
4233
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4325
4234
|
path: _path + ".publicParams",
|
|
4326
|
-
expected: "__type
|
|
4235
|
+
expected: "__type",
|
|
4327
4236
|
value: input.publicParams
|
|
4328
|
-
})) && $
|
|
4237
|
+
})) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4329
4238
|
path: _path + ".publicParams",
|
|
4330
|
-
expected: "__type
|
|
4239
|
+
expected: "__type",
|
|
4331
4240
|
value: input.publicParams
|
|
4332
4241
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4333
4242
|
path: _path + ".privateParams",
|
|
4334
|
-
expected: "__type
|
|
4243
|
+
expected: "__type",
|
|
4335
4244
|
value: input.privateParams
|
|
4336
|
-
})) && $
|
|
4245
|
+
})) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4337
4246
|
path: _path + ".privateParams",
|
|
4338
|
-
expected: "__type
|
|
4247
|
+
expected: "__type",
|
|
4339
4248
|
value: input.privateParams
|
|
4340
4249
|
})].every(flag => flag);
|
|
4341
|
-
const $
|
|
4250
|
+
const $vo9 = (input, _path, _exceptionable = true) => true;
|
|
4251
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4252
|
+
path: _path + ".name",
|
|
4253
|
+
expected: "string",
|
|
4254
|
+
value: input.name
|
|
4255
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4256
|
+
path: _path + ".description",
|
|
4257
|
+
expected: "string",
|
|
4258
|
+
value: input.description
|
|
4259
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4260
|
+
path: _path + ".image",
|
|
4261
|
+
expected: "string",
|
|
4262
|
+
value: input.image
|
|
4263
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4264
|
+
path: _path + ".video",
|
|
4265
|
+
expected: "(string | undefined)",
|
|
4266
|
+
value: input.video
|
|
4267
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4268
|
+
path: _path + ".category",
|
|
4269
|
+
expected: "(string | undefined)",
|
|
4270
|
+
value: input.category
|
|
4271
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4272
|
+
path: _path + ".externalUrl",
|
|
4273
|
+
expected: "(string | undefined)",
|
|
4274
|
+
value: input.externalUrl
|
|
4275
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4276
|
+
path: _path + ".tags",
|
|
4277
|
+
expected: "(Array<string> | undefined)",
|
|
4278
|
+
value: input.tags
|
|
4279
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4280
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
4281
|
+
expected: "string",
|
|
4282
|
+
value: elem
|
|
4283
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4284
|
+
path: _path + ".tags",
|
|
4285
|
+
expected: "(Array<string> | undefined)",
|
|
4286
|
+
value: input.tags
|
|
4287
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4288
|
+
path: _path + ".socials",
|
|
4289
|
+
expected: "(__type.o1 | undefined)",
|
|
4290
|
+
value: input.socials
|
|
4291
|
+
})) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4292
|
+
path: _path + ".socials",
|
|
4293
|
+
expected: "(__type.o1 | undefined)",
|
|
4294
|
+
value: input.socials
|
|
4295
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4296
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4297
|
+
expected: "(__type.o2 | undefined)",
|
|
4298
|
+
value: input.offChainTransferabilityInfo
|
|
4299
|
+
})) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4300
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4301
|
+
expected: "(__type.o2 | undefined)",
|
|
4302
|
+
value: input.offChainTransferabilityInfo
|
|
4303
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4304
|
+
path: _path + ".attributes",
|
|
4305
|
+
expected: "(Array<__type> | undefined)",
|
|
4306
|
+
value: input.attributes
|
|
4307
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4308
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4309
|
+
expected: "__type.o3",
|
|
4310
|
+
value: elem
|
|
4311
|
+
})) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4312
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4313
|
+
expected: "__type.o3",
|
|
4314
|
+
value: elem
|
|
4315
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4316
|
+
path: _path + ".attributes",
|
|
4317
|
+
expected: "(Array<__type> | undefined)",
|
|
4318
|
+
value: input.attributes
|
|
4319
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4320
|
+
path: _path + ".fetchedAtBlock",
|
|
4321
|
+
expected: "(bigint | number | string | undefined)",
|
|
4322
|
+
value: input.fetchedAtBlock
|
|
4323
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4324
|
+
path: _path + ".fetchedAt",
|
|
4325
|
+
expected: "(bigint | number | string | undefined)",
|
|
4326
|
+
value: input.fetchedAt
|
|
4327
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4328
|
+
path: _path + "._isUpdating",
|
|
4329
|
+
expected: "(boolean | undefined)",
|
|
4330
|
+
value: input._isUpdating
|
|
4331
|
+
})].every(flag => flag);
|
|
4332
|
+
const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4333
|
+
const value = input[key];
|
|
4334
|
+
if (undefined === value)
|
|
4335
|
+
return true;
|
|
4336
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4337
|
+
path: _path + $join(key),
|
|
4338
|
+
expected: "string",
|
|
4339
|
+
value: value
|
|
4340
|
+
});
|
|
4341
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4342
|
+
const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4343
|
+
path: _path + ".host",
|
|
4344
|
+
expected: "string",
|
|
4345
|
+
value: input.host
|
|
4346
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4347
|
+
path: _path + ".assignMethod",
|
|
4348
|
+
expected: "string",
|
|
4349
|
+
value: input.assignMethod
|
|
4350
|
+
})].every(flag => flag);
|
|
4351
|
+
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4352
|
+
path: _path + ".type",
|
|
4353
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4354
|
+
value: input.type
|
|
4355
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4356
|
+
path: _path + ".name",
|
|
4357
|
+
expected: "string",
|
|
4358
|
+
value: input.name
|
|
4359
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4360
|
+
path: _path + ".value",
|
|
4361
|
+
expected: "(boolean | number | string)",
|
|
4362
|
+
value: input.value
|
|
4363
|
+
})].every(flag => flag);
|
|
4342
4364
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4343
4365
|
path: _path + "",
|
|
4344
4366
|
expected: "UpdateClaimPayload",
|
|
@@ -5767,23 +5789,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5767
5789
|
const errors = [];
|
|
5768
5790
|
const __is = input => {
|
|
5769
5791
|
const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
5770
|
-
const $io1 = input =>
|
|
5771
|
-
const $io2 = input =>
|
|
5792
|
+
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);
|
|
5793
|
+
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);
|
|
5794
|
+
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);
|
|
5795
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
5772
5796
|
const value = input[key];
|
|
5773
5797
|
if (undefined === value)
|
|
5774
5798
|
return true;
|
|
5775
5799
|
return "string" === typeof value;
|
|
5776
5800
|
});
|
|
5777
|
-
const $
|
|
5778
|
-
const $
|
|
5779
|
-
const $
|
|
5780
|
-
const $io6 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
5781
|
-
const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
5801
|
+
const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
5802
|
+
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);
|
|
5803
|
+
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);
|
|
5782
5804
|
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);
|
|
5783
5805
|
const $io9 = input => true;
|
|
5784
5806
|
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);
|
|
5785
|
-
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@
|
|
5786
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
5807
|
+
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@870"] && Object.keys(input).every(key => {
|
|
5808
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
5787
5809
|
return true;
|
|
5788
5810
|
const value = input[key];
|
|
5789
5811
|
if (undefined === value)
|
|
@@ -5793,14 +5815,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5793
5815
|
return true;
|
|
5794
5816
|
});
|
|
5795
5817
|
const $iu0 = input => (() => {
|
|
5796
|
-
if (undefined !== input.
|
|
5818
|
+
if (undefined !== input.badgeIds)
|
|
5797
5819
|
return $io1(input);
|
|
5798
|
-
else if (undefined !== input.
|
|
5799
|
-
return $
|
|
5820
|
+
else if (undefined !== input.name)
|
|
5821
|
+
return $io3(input);
|
|
5800
5822
|
else if (undefined !== input.leaves)
|
|
5801
5823
|
return $io8(input);
|
|
5802
5824
|
else
|
|
5803
|
-
return $
|
|
5825
|
+
return $io7(input);
|
|
5804
5826
|
})();
|
|
5805
5827
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5806
5828
|
};
|
|
@@ -5810,7 +5832,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5810
5832
|
const $join = typia_1.default.validate.join;
|
|
5811
5833
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
5812
5834
|
path: _path + ".contents",
|
|
5813
|
-
expected: "(Array<
|
|
5835
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
5814
5836
|
value: input.contents
|
|
5815
5837
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5816
5838
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -5822,10 +5844,60 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5822
5844
|
value: elem
|
|
5823
5845
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
5824
5846
|
path: _path + ".contents",
|
|
5825
|
-
expected: "(Array<
|
|
5847
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
5826
5848
|
value: input.contents
|
|
5827
5849
|
})].every(flag => flag);
|
|
5828
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
5850
|
+
const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
5851
|
+
path: _path + ".badgeIds",
|
|
5852
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
5853
|
+
value: input.badgeIds
|
|
5854
|
+
})) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5855
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
5856
|
+
expected: "iUintRange<NumberType>",
|
|
5857
|
+
value: elem
|
|
5858
|
+
})) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5859
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
5860
|
+
expected: "iUintRange<NumberType>",
|
|
5861
|
+
value: elem
|
|
5862
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5863
|
+
path: _path + ".badgeIds",
|
|
5864
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
5865
|
+
value: input.badgeIds
|
|
5866
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5867
|
+
path: _path + ".metadata",
|
|
5868
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
5869
|
+
value: input.metadata
|
|
5870
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5871
|
+
path: _path + ".metadata",
|
|
5872
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
5873
|
+
value: input.metadata
|
|
5874
|
+
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
5875
|
+
path: _path + ".uri",
|
|
5876
|
+
expected: "string",
|
|
5877
|
+
value: input.uri
|
|
5878
|
+
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
5879
|
+
path: _path + ".fetchedUri",
|
|
5880
|
+
expected: "(string | undefined)",
|
|
5881
|
+
value: input.fetchedUri
|
|
5882
|
+
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
5883
|
+
path: _path + ".customData",
|
|
5884
|
+
expected: "string",
|
|
5885
|
+
value: input.customData
|
|
5886
|
+
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
5887
|
+
path: _path + ".toUploadToIpfs",
|
|
5888
|
+
expected: "(boolean | undefined)",
|
|
5889
|
+
value: input.toUploadToIpfs
|
|
5890
|
+
})].every(flag => flag);
|
|
5891
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
5892
|
+
path: _path + ".start",
|
|
5893
|
+
expected: "(bigint | number | string)",
|
|
5894
|
+
value: input.start
|
|
5895
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
5896
|
+
path: _path + ".end",
|
|
5897
|
+
expected: "(bigint | number | string)",
|
|
5898
|
+
value: input.end
|
|
5899
|
+
})].every(flag => flag);
|
|
5900
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
5829
5901
|
path: _path + ".name",
|
|
5830
5902
|
expected: "string",
|
|
5831
5903
|
value: input.name
|
|
@@ -5853,8 +5925,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5853
5925
|
path: _path + ".tags",
|
|
5854
5926
|
expected: "(Array<string> | undefined)",
|
|
5855
5927
|
value: input.tags
|
|
5856
|
-
})) && input.tags.map((elem,
|
|
5857
|
-
path: _path + ".tags[" +
|
|
5928
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
5929
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
5858
5930
|
expected: "string",
|
|
5859
5931
|
value: elem
|
|
5860
5932
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -5865,7 +5937,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5865
5937
|
path: _path + ".socials",
|
|
5866
5938
|
expected: "(__type | undefined)",
|
|
5867
5939
|
value: input.socials
|
|
5868
|
-
})) && $
|
|
5940
|
+
})) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
5869
5941
|
path: _path + ".socials",
|
|
5870
5942
|
expected: "(__type | undefined)",
|
|
5871
5943
|
value: input.socials
|
|
@@ -5873,7 +5945,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5873
5945
|
path: _path + ".offChainTransferabilityInfo",
|
|
5874
5946
|
expected: "(__type.o1 | undefined)",
|
|
5875
5947
|
value: input.offChainTransferabilityInfo
|
|
5876
|
-
})) && $
|
|
5948
|
+
})) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
5877
5949
|
path: _path + ".offChainTransferabilityInfo",
|
|
5878
5950
|
expected: "(__type.o1 | undefined)",
|
|
5879
5951
|
value: input.offChainTransferabilityInfo
|
|
@@ -5881,12 +5953,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5881
5953
|
path: _path + ".attributes",
|
|
5882
5954
|
expected: "(Array<__type> | undefined)",
|
|
5883
5955
|
value: input.attributes
|
|
5884
|
-
})) && input.attributes.map((elem,
|
|
5885
|
-
path: _path + ".attributes[" +
|
|
5956
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5957
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
5886
5958
|
expected: "__type.o2",
|
|
5887
5959
|
value: elem
|
|
5888
|
-
})) && $
|
|
5889
|
-
path: _path + ".attributes[" +
|
|
5960
|
+
})) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5961
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
5890
5962
|
expected: "__type.o2",
|
|
5891
5963
|
value: elem
|
|
5892
5964
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -5906,7 +5978,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5906
5978
|
expected: "(boolean | undefined)",
|
|
5907
5979
|
value: input._isUpdating
|
|
5908
5980
|
})].every(flag => flag);
|
|
5909
|
-
const $
|
|
5981
|
+
const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5910
5982
|
const value = input[key];
|
|
5911
5983
|
if (undefined === value)
|
|
5912
5984
|
return true;
|
|
@@ -5916,7 +5988,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5916
5988
|
value: value
|
|
5917
5989
|
});
|
|
5918
5990
|
}).every(flag => flag)].every(flag => flag);
|
|
5919
|
-
const $
|
|
5991
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
5920
5992
|
path: _path + ".host",
|
|
5921
5993
|
expected: "string",
|
|
5922
5994
|
value: input.host
|
|
@@ -5925,7 +5997,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5925
5997
|
expected: "string",
|
|
5926
5998
|
value: input.assignMethod
|
|
5927
5999
|
})].every(flag => flag);
|
|
5928
|
-
const $
|
|
6000
|
+
const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5929
6001
|
path: _path + ".type",
|
|
5930
6002
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
5931
6003
|
value: input.type
|
|
@@ -5938,11 +6010,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5938
6010
|
expected: "(boolean | number | string)",
|
|
5939
6011
|
value: input.value
|
|
5940
6012
|
})].every(flag => flag);
|
|
5941
|
-
const $
|
|
6013
|
+
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5942
6014
|
path: _path + ".metadata",
|
|
5943
6015
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
5944
6016
|
value: input.metadata
|
|
5945
|
-
})) && $
|
|
6017
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5946
6018
|
path: _path + ".metadata",
|
|
5947
6019
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
5948
6020
|
value: input.metadata
|
|
@@ -5963,56 +6035,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5963
6035
|
expected: "(boolean | undefined)",
|
|
5964
6036
|
value: input.toUploadToIpfs
|
|
5965
6037
|
})].every(flag => flag);
|
|
5966
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
5967
|
-
path: _path + ".badgeIds",
|
|
5968
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
5969
|
-
value: input.badgeIds
|
|
5970
|
-
})) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5971
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
5972
|
-
expected: "iUintRange<NumberType>",
|
|
5973
|
-
value: elem
|
|
5974
|
-
})) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5975
|
-
path: _path + ".badgeIds[" + _index4 + "]",
|
|
5976
|
-
expected: "iUintRange<NumberType>",
|
|
5977
|
-
value: elem
|
|
5978
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
5979
|
-
path: _path + ".badgeIds",
|
|
5980
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
5981
|
-
value: input.badgeIds
|
|
5982
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5983
|
-
path: _path + ".metadata",
|
|
5984
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
5985
|
-
value: input.metadata
|
|
5986
|
-
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5987
|
-
path: _path + ".metadata",
|
|
5988
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
5989
|
-
value: input.metadata
|
|
5990
|
-
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
5991
|
-
path: _path + ".uri",
|
|
5992
|
-
expected: "string",
|
|
5993
|
-
value: input.uri
|
|
5994
|
-
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
5995
|
-
path: _path + ".fetchedUri",
|
|
5996
|
-
expected: "(string | undefined)",
|
|
5997
|
-
value: input.fetchedUri
|
|
5998
|
-
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
5999
|
-
path: _path + ".customData",
|
|
6000
|
-
expected: "string",
|
|
6001
|
-
value: input.customData
|
|
6002
|
-
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6003
|
-
path: _path + ".toUploadToIpfs",
|
|
6004
|
-
expected: "(boolean | undefined)",
|
|
6005
|
-
value: input.toUploadToIpfs
|
|
6006
|
-
})].every(flag => flag);
|
|
6007
|
-
const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6008
|
-
path: _path + ".start",
|
|
6009
|
-
expected: "(bigint | number | string)",
|
|
6010
|
-
value: input.start
|
|
6011
|
-
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6012
|
-
path: _path + ".end",
|
|
6013
|
-
expected: "(bigint | number | string)",
|
|
6014
|
-
value: input.end
|
|
6015
|
-
})].every(flag => flag);
|
|
6016
6038
|
const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
|
|
6017
6039
|
path: _path + ".leaves",
|
|
6018
6040
|
expected: "Array<string>",
|
|
@@ -6136,12 +6158,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6136
6158
|
path: _path + ".length",
|
|
6137
6159
|
expected: "number",
|
|
6138
6160
|
value: input.length
|
|
6139
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6140
|
-
path: _path + "[\"__@toStringTag@
|
|
6161
|
+
}), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
|
|
6162
|
+
path: _path + "[\"__@toStringTag@870\"]",
|
|
6141
6163
|
expected: "\"Uint8Array\"",
|
|
6142
|
-
value: input["__@toStringTag@
|
|
6164
|
+
value: input["__@toStringTag@870"]
|
|
6143
6165
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6144
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6166
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6145
6167
|
return true;
|
|
6146
6168
|
const value = input[key];
|
|
6147
6169
|
if (undefined === value)
|
|
@@ -6155,14 +6177,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6155
6177
|
return true;
|
|
6156
6178
|
}).every(flag => flag)].every(flag => flag);
|
|
6157
6179
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
6158
|
-
if (undefined !== input.
|
|
6180
|
+
if (undefined !== input.badgeIds)
|
|
6159
6181
|
return $vo1(input, _path, true && _exceptionable);
|
|
6160
|
-
else if (undefined !== input.
|
|
6161
|
-
return $
|
|
6182
|
+
else if (undefined !== input.name)
|
|
6183
|
+
return $vo3(input, _path, true && _exceptionable);
|
|
6162
6184
|
else if (undefined !== input.leaves)
|
|
6163
6185
|
return $vo8(input, _path, true && _exceptionable);
|
|
6164
6186
|
else
|
|
6165
|
-
return $
|
|
6187
|
+
return $vo7(input, _path, true && _exceptionable);
|
|
6166
6188
|
})();
|
|
6167
6189
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6168
6190
|
path: _path + "",
|
|
@@ -6204,8 +6226,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6204
6226
|
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);
|
|
6205
6227
|
const $io4 = input => true;
|
|
6206
6228
|
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);
|
|
6207
|
-
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@
|
|
6208
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6229
|
+
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@870"] && Object.keys(input).every(key => {
|
|
6230
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6209
6231
|
return true;
|
|
6210
6232
|
const value = input[key];
|
|
6211
6233
|
if (undefined === value)
|
|
@@ -6419,12 +6441,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6419
6441
|
path: _path + ".length",
|
|
6420
6442
|
expected: "number",
|
|
6421
6443
|
value: input.length
|
|
6422
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6423
|
-
path: _path + "[\"__@toStringTag@
|
|
6444
|
+
}), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
|
|
6445
|
+
path: _path + "[\"__@toStringTag@870\"]",
|
|
6424
6446
|
expected: "\"Uint8Array\"",
|
|
6425
|
-
value: input["__@toStringTag@
|
|
6447
|
+
value: input["__@toStringTag@870"]
|
|
6426
6448
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6427
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6449
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6428
6450
|
return true;
|
|
6429
6451
|
const value = input[key];
|
|
6430
6452
|
if (undefined === value)
|
|
@@ -6943,7 +6965,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6943
6965
|
const validateRes = (input => {
|
|
6944
6966
|
const errors = [];
|
|
6945
6967
|
const __is = input => {
|
|
6946
|
-
const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub);
|
|
6968
|
+
const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch);
|
|
6947
6969
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6948
6970
|
};
|
|
6949
6971
|
if (false === __is(input)) {
|
|
@@ -6969,6 +6991,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6969
6991
|
path: _path + ".signOutGithub",
|
|
6970
6992
|
expected: "(boolean | undefined)",
|
|
6971
6993
|
value: input.signOutGithub
|
|
6994
|
+
}), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
|
|
6995
|
+
path: _path + ".signOutTwitch",
|
|
6996
|
+
expected: "(boolean | undefined)",
|
|
6997
|
+
value: input.signOutTwitch
|
|
6972
6998
|
})].every(flag => flag);
|
|
6973
6999
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
6974
7000
|
path: _path + "",
|