bitbadgesjs-sdk 0.3.60 → 0.3.62
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 +530 -443
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/docs/docs.d.ts +8 -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 +22 -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 +24 -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",
|
|
@@ -1083,12 +1105,17 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1083
1105
|
const validateRes = (input => {
|
|
1084
1106
|
const errors = [];
|
|
1085
1107
|
const __is = input => {
|
|
1086
|
-
|
|
1108
|
+
const $io0 = input => undefined === input.validateAccessTokens || "boolean" === typeof input.validateAccessTokens;
|
|
1109
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1087
1110
|
};
|
|
1088
1111
|
if (false === __is(input)) {
|
|
1089
1112
|
const $report = typia_1.default.validate.report(errors);
|
|
1090
1113
|
((input, _path, _exceptionable = true) => {
|
|
1091
|
-
const $vo0 = (input, _path, _exceptionable = true) =>
|
|
1114
|
+
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.validateAccessTokens || "boolean" === typeof input.validateAccessTokens || $report(_exceptionable, {
|
|
1115
|
+
path: _path + ".validateAccessTokens",
|
|
1116
|
+
expected: "(boolean | undefined)",
|
|
1117
|
+
value: input.validateAccessTokens
|
|
1118
|
+
})].every(flag => flag);
|
|
1092
1119
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
1093
1120
|
path: _path + "",
|
|
1094
1121
|
expected: "CheckSignInStatusPayload",
|
|
@@ -3437,21 +3464,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3437
3464
|
const errors = [];
|
|
3438
3465
|
const __is = input => {
|
|
3439
3466
|
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 =>
|
|
3467
|
+
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)));
|
|
3468
|
+
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));
|
|
3469
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3470
|
+
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)));
|
|
3471
|
+
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);
|
|
3472
|
+
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);
|
|
3473
|
+
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);
|
|
3474
|
+
const $io9 = input => Object.keys(input).every(key => {
|
|
3443
3475
|
const value = input[key];
|
|
3444
3476
|
if (undefined === value)
|
|
3445
3477
|
return true;
|
|
3446
3478
|
return "string" === typeof value;
|
|
3447
3479
|
});
|
|
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);
|
|
3480
|
+
const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3481
|
+
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
3482
|
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
3483
|
const $io13 = input => true;
|
|
3457
3484
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -3477,15 +3504,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3477
3504
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3478
3505
|
value: input.claims
|
|
3479
3506
|
})].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, {
|
|
3507
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3489
3508
|
path: _path + ".seedCode",
|
|
3490
3509
|
expected: "(string | undefined)",
|
|
3491
3510
|
value: input.seedCode
|
|
@@ -3497,7 +3516,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3497
3516
|
path: _path + ".balancesToSet",
|
|
3498
3517
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3499
3518
|
value: input.balancesToSet
|
|
3500
|
-
})) && $
|
|
3519
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3501
3520
|
path: _path + ".balancesToSet",
|
|
3502
3521
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3503
3522
|
value: input.balancesToSet
|
|
@@ -3509,6 +3528,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3509
3528
|
path: _path + ".approach",
|
|
3510
3529
|
expected: "(string | undefined)",
|
|
3511
3530
|
value: input.approach
|
|
3531
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3532
|
+
path: _path + ".metadata",
|
|
3533
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3534
|
+
value: input.metadata
|
|
3535
|
+
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3536
|
+
path: _path + ".metadata",
|
|
3537
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3538
|
+
value: input.metadata
|
|
3512
3539
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3513
3540
|
path: _path + ".assignMethod",
|
|
3514
3541
|
expected: "(string | undefined)",
|
|
@@ -3542,129 +3569,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3542
3569
|
expected: "Array<ManagePluginRequest>",
|
|
3543
3570
|
value: input.plugins
|
|
3544
3571
|
})].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, {
|
|
3572
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3659
3573
|
path: _path + ".manualBalances",
|
|
3660
3574
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3661
3575
|
value: input.manualBalances
|
|
3662
|
-
})) && input.manualBalances.map((elem,
|
|
3663
|
-
path: _path + ".manualBalances[" +
|
|
3576
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3577
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3664
3578
|
expected: "iManualBalances<NumberType>",
|
|
3665
3579
|
value: elem
|
|
3666
|
-
})) && $
|
|
3667
|
-
path: _path + ".manualBalances[" +
|
|
3580
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3581
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3668
3582
|
expected: "iManualBalances<NumberType>",
|
|
3669
3583
|
value: elem
|
|
3670
3584
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3675,7 +3589,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3675
3589
|
path: _path + ".incrementedBalances",
|
|
3676
3590
|
expected: "iIncrementedBalances<NumberType>",
|
|
3677
3591
|
value: input.incrementedBalances
|
|
3678
|
-
})) && $
|
|
3592
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3679
3593
|
path: _path + ".incrementedBalances",
|
|
3680
3594
|
expected: "iIncrementedBalances<NumberType>",
|
|
3681
3595
|
value: input.incrementedBalances
|
|
@@ -3683,21 +3597,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3683
3597
|
path: _path + ".orderCalculationMethod",
|
|
3684
3598
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3685
3599
|
value: input.orderCalculationMethod
|
|
3686
|
-
})) && $
|
|
3600
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3687
3601
|
path: _path + ".orderCalculationMethod",
|
|
3688
3602
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3689
3603
|
value: input.orderCalculationMethod
|
|
3690
3604
|
})].every(flag => flag);
|
|
3691
|
-
const $
|
|
3605
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3692
3606
|
path: _path + ".balances",
|
|
3693
3607
|
expected: "Array<iBalance<NumberType>>",
|
|
3694
3608
|
value: input.balances
|
|
3695
|
-
})) && input.balances.map((elem,
|
|
3696
|
-
path: _path + ".balances[" +
|
|
3609
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3610
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3697
3611
|
expected: "iBalance<NumberType>",
|
|
3698
3612
|
value: elem
|
|
3699
|
-
})) && $
|
|
3700
|
-
path: _path + ".balances[" +
|
|
3613
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3614
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3701
3615
|
expected: "iBalance<NumberType>",
|
|
3702
3616
|
value: elem
|
|
3703
3617
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3705,7 +3619,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3705
3619
|
expected: "Array<iBalance<NumberType>>",
|
|
3706
3620
|
value: input.balances
|
|
3707
3621
|
})].every(flag => flag);
|
|
3708
|
-
const $
|
|
3622
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3709
3623
|
path: _path + ".amount",
|
|
3710
3624
|
expected: "(bigint | number | string)",
|
|
3711
3625
|
value: input.amount
|
|
@@ -3713,12 +3627,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3713
3627
|
path: _path + ".badgeIds",
|
|
3714
3628
|
expected: "Array<iUintRange<NumberType>>",
|
|
3715
3629
|
value: input.badgeIds
|
|
3716
|
-
})) && input.badgeIds.map((elem,
|
|
3717
|
-
path: _path + ".badgeIds[" +
|
|
3630
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3631
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3718
3632
|
expected: "iUintRange<NumberType>",
|
|
3719
3633
|
value: elem
|
|
3720
|
-
})) && $
|
|
3721
|
-
path: _path + ".badgeIds[" +
|
|
3634
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3635
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3722
3636
|
expected: "iUintRange<NumberType>",
|
|
3723
3637
|
value: elem
|
|
3724
3638
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3729,12 +3643,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3729
3643
|
path: _path + ".ownershipTimes",
|
|
3730
3644
|
expected: "Array<iUintRange<NumberType>>",
|
|
3731
3645
|
value: input.ownershipTimes
|
|
3732
|
-
})) && input.ownershipTimes.map((elem,
|
|
3733
|
-
path: _path + ".ownershipTimes[" +
|
|
3646
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3647
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3734
3648
|
expected: "iUintRange<NumberType>",
|
|
3735
3649
|
value: elem
|
|
3736
|
-
})) && $
|
|
3737
|
-
path: _path + ".ownershipTimes[" +
|
|
3650
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3651
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3738
3652
|
expected: "iUintRange<NumberType>",
|
|
3739
3653
|
value: elem
|
|
3740
3654
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3742,7 +3656,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3742
3656
|
expected: "Array<iUintRange<NumberType>>",
|
|
3743
3657
|
value: input.ownershipTimes
|
|
3744
3658
|
})].every(flag => flag);
|
|
3745
|
-
const $
|
|
3659
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3746
3660
|
path: _path + ".start",
|
|
3747
3661
|
expected: "(bigint | number | string)",
|
|
3748
3662
|
value: input.start
|
|
@@ -3751,16 +3665,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3751
3665
|
expected: "(bigint | number | string)",
|
|
3752
3666
|
value: input.end
|
|
3753
3667
|
})].every(flag => flag);
|
|
3754
|
-
const $
|
|
3668
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3755
3669
|
path: _path + ".startBalances",
|
|
3756
3670
|
expected: "Array<iBalance<NumberType>>",
|
|
3757
3671
|
value: input.startBalances
|
|
3758
|
-
})) && input.startBalances.map((elem,
|
|
3759
|
-
path: _path + ".startBalances[" +
|
|
3672
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3673
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3760
3674
|
expected: "iBalance<NumberType>",
|
|
3761
3675
|
value: elem
|
|
3762
|
-
})) && $
|
|
3763
|
-
path: _path + ".startBalances[" +
|
|
3676
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3677
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3764
3678
|
expected: "iBalance<NumberType>",
|
|
3765
3679
|
value: elem
|
|
3766
3680
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3776,7 +3690,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3776
3690
|
expected: "(bigint | number | string)",
|
|
3777
3691
|
value: input.incrementOwnershipTimesBy
|
|
3778
3692
|
})].every(flag => flag);
|
|
3779
|
-
const $
|
|
3693
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3780
3694
|
path: _path + ".useOverallNumTransfers",
|
|
3781
3695
|
expected: "boolean",
|
|
3782
3696
|
value: input.useOverallNumTransfers
|
|
@@ -3801,6 +3715,119 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3801
3715
|
expected: "string",
|
|
3802
3716
|
value: input.challengeTrackerId
|
|
3803
3717
|
})].every(flag => flag);
|
|
3718
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3719
|
+
path: _path + ".name",
|
|
3720
|
+
expected: "string",
|
|
3721
|
+
value: input.name
|
|
3722
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3723
|
+
path: _path + ".description",
|
|
3724
|
+
expected: "string",
|
|
3725
|
+
value: input.description
|
|
3726
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3727
|
+
path: _path + ".image",
|
|
3728
|
+
expected: "string",
|
|
3729
|
+
value: input.image
|
|
3730
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3731
|
+
path: _path + ".video",
|
|
3732
|
+
expected: "(string | undefined)",
|
|
3733
|
+
value: input.video
|
|
3734
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3735
|
+
path: _path + ".category",
|
|
3736
|
+
expected: "(string | undefined)",
|
|
3737
|
+
value: input.category
|
|
3738
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3739
|
+
path: _path + ".externalUrl",
|
|
3740
|
+
expected: "(string | undefined)",
|
|
3741
|
+
value: input.externalUrl
|
|
3742
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3743
|
+
path: _path + ".tags",
|
|
3744
|
+
expected: "(Array<string> | undefined)",
|
|
3745
|
+
value: input.tags
|
|
3746
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3747
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
3748
|
+
expected: "string",
|
|
3749
|
+
value: elem
|
|
3750
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3751
|
+
path: _path + ".tags",
|
|
3752
|
+
expected: "(Array<string> | undefined)",
|
|
3753
|
+
value: input.tags
|
|
3754
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3755
|
+
path: _path + ".socials",
|
|
3756
|
+
expected: "(__type | undefined)",
|
|
3757
|
+
value: input.socials
|
|
3758
|
+
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3759
|
+
path: _path + ".socials",
|
|
3760
|
+
expected: "(__type | undefined)",
|
|
3761
|
+
value: input.socials
|
|
3762
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3763
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3764
|
+
expected: "(__type.o1 | undefined)",
|
|
3765
|
+
value: input.offChainTransferabilityInfo
|
|
3766
|
+
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3767
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3768
|
+
expected: "(__type.o1 | undefined)",
|
|
3769
|
+
value: input.offChainTransferabilityInfo
|
|
3770
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3771
|
+
path: _path + ".attributes",
|
|
3772
|
+
expected: "(Array<__type> | undefined)",
|
|
3773
|
+
value: input.attributes
|
|
3774
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3775
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3776
|
+
expected: "__type.o2",
|
|
3777
|
+
value: elem
|
|
3778
|
+
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3779
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3780
|
+
expected: "__type.o2",
|
|
3781
|
+
value: elem
|
|
3782
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3783
|
+
path: _path + ".attributes",
|
|
3784
|
+
expected: "(Array<__type> | undefined)",
|
|
3785
|
+
value: input.attributes
|
|
3786
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3787
|
+
path: _path + ".fetchedAtBlock",
|
|
3788
|
+
expected: "(bigint | number | string | undefined)",
|
|
3789
|
+
value: input.fetchedAtBlock
|
|
3790
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3791
|
+
path: _path + ".fetchedAt",
|
|
3792
|
+
expected: "(bigint | number | string | undefined)",
|
|
3793
|
+
value: input.fetchedAt
|
|
3794
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3795
|
+
path: _path + "._isUpdating",
|
|
3796
|
+
expected: "(boolean | undefined)",
|
|
3797
|
+
value: input._isUpdating
|
|
3798
|
+
})].every(flag => flag);
|
|
3799
|
+
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3800
|
+
const value = input[key];
|
|
3801
|
+
if (undefined === value)
|
|
3802
|
+
return true;
|
|
3803
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3804
|
+
path: _path + $join(key),
|
|
3805
|
+
expected: "string",
|
|
3806
|
+
value: value
|
|
3807
|
+
});
|
|
3808
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3809
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3810
|
+
path: _path + ".host",
|
|
3811
|
+
expected: "string",
|
|
3812
|
+
value: input.host
|
|
3813
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3814
|
+
path: _path + ".assignMethod",
|
|
3815
|
+
expected: "string",
|
|
3816
|
+
value: input.assignMethod
|
|
3817
|
+
})].every(flag => flag);
|
|
3818
|
+
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3819
|
+
path: _path + ".type",
|
|
3820
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3821
|
+
value: input.type
|
|
3822
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3823
|
+
path: _path + ".name",
|
|
3824
|
+
expected: "string",
|
|
3825
|
+
value: input.name
|
|
3826
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3827
|
+
path: _path + ".value",
|
|
3828
|
+
expected: "(boolean | number | string)",
|
|
3829
|
+
value: input.value
|
|
3830
|
+
})].every(flag => flag);
|
|
3804
3831
|
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
3805
3832
|
path: _path + ".resetState",
|
|
3806
3833
|
expected: "(boolean | undefined)",
|
|
@@ -3933,23 +3960,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3933
3960
|
const errors = [];
|
|
3934
3961
|
const __is = input => {
|
|
3935
3962
|
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 =>
|
|
3963
|
+
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);
|
|
3964
|
+
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));
|
|
3965
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3966
|
+
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)));
|
|
3967
|
+
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);
|
|
3968
|
+
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);
|
|
3969
|
+
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);
|
|
3970
|
+
const $io9 = input => true;
|
|
3971
|
+
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);
|
|
3972
|
+
const $io11 = input => Object.keys(input).every(key => {
|
|
3939
3973
|
const value = input[key];
|
|
3940
3974
|
if (undefined === value)
|
|
3941
3975
|
return true;
|
|
3942
3976
|
return "string" === typeof value;
|
|
3943
3977
|
});
|
|
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;
|
|
3978
|
+
const $io12 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3979
|
+
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
3980
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3954
3981
|
};
|
|
3955
3982
|
if (false === __is(input)) {
|
|
@@ -3973,15 +4000,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3973
4000
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
3974
4001
|
value: input.claims
|
|
3975
4002
|
})].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, {
|
|
4003
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
3985
4004
|
path: _path + ".claimId",
|
|
3986
4005
|
expected: "string",
|
|
3987
4006
|
value: input.claimId
|
|
@@ -3989,7 +4008,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3989
4008
|
path: _path + ".balancesToSet",
|
|
3990
4009
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3991
4010
|
value: input.balancesToSet
|
|
3992
|
-
})) && $
|
|
4011
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3993
4012
|
path: _path + ".balancesToSet",
|
|
3994
4013
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3995
4014
|
value: input.balancesToSet
|
|
@@ -4001,7 +4020,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4001
4020
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4002
4021
|
expected: "IntegrationPluginDetails<string>",
|
|
4003
4022
|
value: elem
|
|
4004
|
-
})) && $
|
|
4023
|
+
})) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4005
4024
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4006
4025
|
expected: "IntegrationPluginDetails<string>",
|
|
4007
4026
|
value: elem
|
|
@@ -4017,134 +4036,29 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4017
4036
|
path: _path + ".approach",
|
|
4018
4037
|
expected: "(string | undefined)",
|
|
4019
4038
|
value: input.approach
|
|
4020
|
-
}), undefined === input.
|
|
4021
|
-
path: _path + ".
|
|
4022
|
-
expected: "(
|
|
4023
|
-
value: input.
|
|
4024
|
-
})
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
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, {
|
|
4039
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4040
|
+
path: _path + ".metadata",
|
|
4041
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4042
|
+
value: input.metadata
|
|
4043
|
+
})) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4044
|
+
path: _path + ".metadata",
|
|
4045
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4046
|
+
value: input.metadata
|
|
4047
|
+
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4121
4048
|
path: _path + ".assignMethod",
|
|
4122
|
-
expected: "string",
|
|
4049
|
+
expected: "(string | undefined)",
|
|
4123
4050
|
value: input.assignMethod
|
|
4124
4051
|
})].every(flag => flag);
|
|
4125
|
-
const $
|
|
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, {
|
|
4052
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4139
4053
|
path: _path + ".manualBalances",
|
|
4140
4054
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4141
4055
|
value: input.manualBalances
|
|
4142
|
-
})) && input.manualBalances.map((elem,
|
|
4143
|
-
path: _path + ".manualBalances[" +
|
|
4056
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4057
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4144
4058
|
expected: "iManualBalances<NumberType>",
|
|
4145
4059
|
value: elem
|
|
4146
|
-
})) && $
|
|
4147
|
-
path: _path + ".manualBalances[" +
|
|
4060
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4061
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4148
4062
|
expected: "iManualBalances<NumberType>",
|
|
4149
4063
|
value: elem
|
|
4150
4064
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4155,7 +4069,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4155
4069
|
path: _path + ".incrementedBalances",
|
|
4156
4070
|
expected: "iIncrementedBalances<NumberType>",
|
|
4157
4071
|
value: input.incrementedBalances
|
|
4158
|
-
})) && $
|
|
4072
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4159
4073
|
path: _path + ".incrementedBalances",
|
|
4160
4074
|
expected: "iIncrementedBalances<NumberType>",
|
|
4161
4075
|
value: input.incrementedBalances
|
|
@@ -4163,21 +4077,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4163
4077
|
path: _path + ".orderCalculationMethod",
|
|
4164
4078
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4165
4079
|
value: input.orderCalculationMethod
|
|
4166
|
-
})) && $
|
|
4080
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4167
4081
|
path: _path + ".orderCalculationMethod",
|
|
4168
4082
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4169
4083
|
value: input.orderCalculationMethod
|
|
4170
4084
|
})].every(flag => flag);
|
|
4171
|
-
const $
|
|
4085
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4172
4086
|
path: _path + ".balances",
|
|
4173
4087
|
expected: "Array<iBalance<NumberType>>",
|
|
4174
4088
|
value: input.balances
|
|
4175
|
-
})) && input.balances.map((elem,
|
|
4176
|
-
path: _path + ".balances[" +
|
|
4089
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4090
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4177
4091
|
expected: "iBalance<NumberType>",
|
|
4178
4092
|
value: elem
|
|
4179
|
-
})) && $
|
|
4180
|
-
path: _path + ".balances[" +
|
|
4093
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4094
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4181
4095
|
expected: "iBalance<NumberType>",
|
|
4182
4096
|
value: elem
|
|
4183
4097
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4185,7 +4099,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4185
4099
|
expected: "Array<iBalance<NumberType>>",
|
|
4186
4100
|
value: input.balances
|
|
4187
4101
|
})].every(flag => flag);
|
|
4188
|
-
const $
|
|
4102
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4189
4103
|
path: _path + ".amount",
|
|
4190
4104
|
expected: "(bigint | number | string)",
|
|
4191
4105
|
value: input.amount
|
|
@@ -4193,12 +4107,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4193
4107
|
path: _path + ".badgeIds",
|
|
4194
4108
|
expected: "Array<iUintRange<NumberType>>",
|
|
4195
4109
|
value: input.badgeIds
|
|
4196
|
-
})) && input.badgeIds.map((elem,
|
|
4197
|
-
path: _path + ".badgeIds[" +
|
|
4110
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4111
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4198
4112
|
expected: "iUintRange<NumberType>",
|
|
4199
4113
|
value: elem
|
|
4200
|
-
})) && $
|
|
4201
|
-
path: _path + ".badgeIds[" +
|
|
4114
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4115
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4202
4116
|
expected: "iUintRange<NumberType>",
|
|
4203
4117
|
value: elem
|
|
4204
4118
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4209,12 +4123,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4209
4123
|
path: _path + ".ownershipTimes",
|
|
4210
4124
|
expected: "Array<iUintRange<NumberType>>",
|
|
4211
4125
|
value: input.ownershipTimes
|
|
4212
|
-
})) && input.ownershipTimes.map((elem,
|
|
4213
|
-
path: _path + ".ownershipTimes[" +
|
|
4126
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4127
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4214
4128
|
expected: "iUintRange<NumberType>",
|
|
4215
4129
|
value: elem
|
|
4216
|
-
})) && $
|
|
4217
|
-
path: _path + ".ownershipTimes[" +
|
|
4130
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4131
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4218
4132
|
expected: "iUintRange<NumberType>",
|
|
4219
4133
|
value: elem
|
|
4220
4134
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4222,7 +4136,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4222
4136
|
expected: "Array<iUintRange<NumberType>>",
|
|
4223
4137
|
value: input.ownershipTimes
|
|
4224
4138
|
})].every(flag => flag);
|
|
4225
|
-
const $
|
|
4139
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4226
4140
|
path: _path + ".start",
|
|
4227
4141
|
expected: "(bigint | number | string)",
|
|
4228
4142
|
value: input.start
|
|
@@ -4231,16 +4145,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4231
4145
|
expected: "(bigint | number | string)",
|
|
4232
4146
|
value: input.end
|
|
4233
4147
|
})].every(flag => flag);
|
|
4234
|
-
const $
|
|
4148
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4235
4149
|
path: _path + ".startBalances",
|
|
4236
4150
|
expected: "Array<iBalance<NumberType>>",
|
|
4237
4151
|
value: input.startBalances
|
|
4238
|
-
})) && input.startBalances.map((elem,
|
|
4239
|
-
path: _path + ".startBalances[" +
|
|
4152
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4153
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4240
4154
|
expected: "iBalance<NumberType>",
|
|
4241
4155
|
value: elem
|
|
4242
|
-
})) && $
|
|
4243
|
-
path: _path + ".startBalances[" +
|
|
4156
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4157
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4244
4158
|
expected: "iBalance<NumberType>",
|
|
4245
4159
|
value: elem
|
|
4246
4160
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4256,7 +4170,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4256
4170
|
expected: "(bigint | number | string)",
|
|
4257
4171
|
value: input.incrementOwnershipTimesBy
|
|
4258
4172
|
})].every(flag => flag);
|
|
4259
|
-
const $
|
|
4173
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4260
4174
|
path: _path + ".useOverallNumTransfers",
|
|
4261
4175
|
expected: "boolean",
|
|
4262
4176
|
value: input.useOverallNumTransfers
|
|
@@ -4281,21 +4195,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4281
4195
|
expected: "string",
|
|
4282
4196
|
value: input.challengeTrackerId
|
|
4283
4197
|
})].every(flag => flag);
|
|
4284
|
-
const $
|
|
4198
|
+
const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4285
4199
|
path: _path + ".publicState",
|
|
4286
|
-
expected: "__type
|
|
4200
|
+
expected: "__type",
|
|
4287
4201
|
value: input.publicState
|
|
4288
|
-
})) && $
|
|
4202
|
+
})) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4289
4203
|
path: _path + ".publicState",
|
|
4290
|
-
expected: "__type
|
|
4204
|
+
expected: "__type",
|
|
4291
4205
|
value: input.publicState
|
|
4292
4206
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4293
4207
|
path: _path + ".privateState",
|
|
4294
|
-
expected: "(__type
|
|
4208
|
+
expected: "(__type | undefined)",
|
|
4295
4209
|
value: input.privateState
|
|
4296
|
-
})) && $
|
|
4210
|
+
})) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4297
4211
|
path: _path + ".privateState",
|
|
4298
|
-
expected: "(__type
|
|
4212
|
+
expected: "(__type | undefined)",
|
|
4299
4213
|
value: input.privateState
|
|
4300
4214
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4301
4215
|
path: _path + ".resetState",
|
|
@@ -4303,11 +4217,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4303
4217
|
value: input.resetState
|
|
4304
4218
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4305
4219
|
path: _path + ".newState",
|
|
4306
|
-
expected: "(__type
|
|
4220
|
+
expected: "(__type | undefined)",
|
|
4307
4221
|
value: input.newState
|
|
4308
|
-
})) && $
|
|
4222
|
+
})) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4309
4223
|
path: _path + ".newState",
|
|
4310
|
-
expected: "(__type
|
|
4224
|
+
expected: "(__type | undefined)",
|
|
4311
4225
|
value: input.newState
|
|
4312
4226
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4313
4227
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4323,22 +4237,135 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4323
4237
|
value: input.pluginId
|
|
4324
4238
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4325
4239
|
path: _path + ".publicParams",
|
|
4326
|
-
expected: "__type
|
|
4240
|
+
expected: "__type",
|
|
4327
4241
|
value: input.publicParams
|
|
4328
|
-
})) && $
|
|
4242
|
+
})) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4329
4243
|
path: _path + ".publicParams",
|
|
4330
|
-
expected: "__type
|
|
4244
|
+
expected: "__type",
|
|
4331
4245
|
value: input.publicParams
|
|
4332
4246
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4333
4247
|
path: _path + ".privateParams",
|
|
4334
|
-
expected: "__type
|
|
4248
|
+
expected: "__type",
|
|
4335
4249
|
value: input.privateParams
|
|
4336
|
-
})) && $
|
|
4250
|
+
})) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4337
4251
|
path: _path + ".privateParams",
|
|
4338
|
-
expected: "__type
|
|
4252
|
+
expected: "__type",
|
|
4339
4253
|
value: input.privateParams
|
|
4340
4254
|
})].every(flag => flag);
|
|
4341
|
-
const $
|
|
4255
|
+
const $vo9 = (input, _path, _exceptionable = true) => true;
|
|
4256
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4257
|
+
path: _path + ".name",
|
|
4258
|
+
expected: "string",
|
|
4259
|
+
value: input.name
|
|
4260
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4261
|
+
path: _path + ".description",
|
|
4262
|
+
expected: "string",
|
|
4263
|
+
value: input.description
|
|
4264
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4265
|
+
path: _path + ".image",
|
|
4266
|
+
expected: "string",
|
|
4267
|
+
value: input.image
|
|
4268
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4269
|
+
path: _path + ".video",
|
|
4270
|
+
expected: "(string | undefined)",
|
|
4271
|
+
value: input.video
|
|
4272
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4273
|
+
path: _path + ".category",
|
|
4274
|
+
expected: "(string | undefined)",
|
|
4275
|
+
value: input.category
|
|
4276
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4277
|
+
path: _path + ".externalUrl",
|
|
4278
|
+
expected: "(string | undefined)",
|
|
4279
|
+
value: input.externalUrl
|
|
4280
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4281
|
+
path: _path + ".tags",
|
|
4282
|
+
expected: "(Array<string> | undefined)",
|
|
4283
|
+
value: input.tags
|
|
4284
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4285
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
4286
|
+
expected: "string",
|
|
4287
|
+
value: elem
|
|
4288
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4289
|
+
path: _path + ".tags",
|
|
4290
|
+
expected: "(Array<string> | undefined)",
|
|
4291
|
+
value: input.tags
|
|
4292
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4293
|
+
path: _path + ".socials",
|
|
4294
|
+
expected: "(__type.o1 | undefined)",
|
|
4295
|
+
value: input.socials
|
|
4296
|
+
})) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4297
|
+
path: _path + ".socials",
|
|
4298
|
+
expected: "(__type.o1 | undefined)",
|
|
4299
|
+
value: input.socials
|
|
4300
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4301
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4302
|
+
expected: "(__type.o2 | undefined)",
|
|
4303
|
+
value: input.offChainTransferabilityInfo
|
|
4304
|
+
})) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4305
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4306
|
+
expected: "(__type.o2 | undefined)",
|
|
4307
|
+
value: input.offChainTransferabilityInfo
|
|
4308
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4309
|
+
path: _path + ".attributes",
|
|
4310
|
+
expected: "(Array<__type> | undefined)",
|
|
4311
|
+
value: input.attributes
|
|
4312
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4313
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4314
|
+
expected: "__type.o3",
|
|
4315
|
+
value: elem
|
|
4316
|
+
})) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4317
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4318
|
+
expected: "__type.o3",
|
|
4319
|
+
value: elem
|
|
4320
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4321
|
+
path: _path + ".attributes",
|
|
4322
|
+
expected: "(Array<__type> | undefined)",
|
|
4323
|
+
value: input.attributes
|
|
4324
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4325
|
+
path: _path + ".fetchedAtBlock",
|
|
4326
|
+
expected: "(bigint | number | string | undefined)",
|
|
4327
|
+
value: input.fetchedAtBlock
|
|
4328
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4329
|
+
path: _path + ".fetchedAt",
|
|
4330
|
+
expected: "(bigint | number | string | undefined)",
|
|
4331
|
+
value: input.fetchedAt
|
|
4332
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4333
|
+
path: _path + "._isUpdating",
|
|
4334
|
+
expected: "(boolean | undefined)",
|
|
4335
|
+
value: input._isUpdating
|
|
4336
|
+
})].every(flag => flag);
|
|
4337
|
+
const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4338
|
+
const value = input[key];
|
|
4339
|
+
if (undefined === value)
|
|
4340
|
+
return true;
|
|
4341
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4342
|
+
path: _path + $join(key),
|
|
4343
|
+
expected: "string",
|
|
4344
|
+
value: value
|
|
4345
|
+
});
|
|
4346
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4347
|
+
const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4348
|
+
path: _path + ".host",
|
|
4349
|
+
expected: "string",
|
|
4350
|
+
value: input.host
|
|
4351
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4352
|
+
path: _path + ".assignMethod",
|
|
4353
|
+
expected: "string",
|
|
4354
|
+
value: input.assignMethod
|
|
4355
|
+
})].every(flag => flag);
|
|
4356
|
+
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4357
|
+
path: _path + ".type",
|
|
4358
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4359
|
+
value: input.type
|
|
4360
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4361
|
+
path: _path + ".name",
|
|
4362
|
+
expected: "string",
|
|
4363
|
+
value: input.name
|
|
4364
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4365
|
+
path: _path + ".value",
|
|
4366
|
+
expected: "(boolean | number | string)",
|
|
4367
|
+
value: input.value
|
|
4368
|
+
})].every(flag => flag);
|
|
4342
4369
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4343
4370
|
path: _path + "",
|
|
4344
4371
|
expected: "UpdateClaimPayload",
|
|
@@ -4976,7 +5003,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
4976
5003
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy;
|
|
4977
5004
|
const $io2 = input => "string" === typeof input.baseUri;
|
|
4978
5005
|
const $io3 = input => "string" === typeof input.baseUri;
|
|
4979
|
-
const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method);
|
|
5006
|
+
const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
4980
5007
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4981
5008
|
};
|
|
4982
5009
|
if (false === __is(input)) {
|
|
@@ -5102,6 +5129,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5102
5129
|
path: _path + ".method",
|
|
5103
5130
|
expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
|
|
5104
5131
|
value: input.method
|
|
5132
|
+
}), undefined === input.passAddress || "boolean" === typeof input.passAddress || $report(_exceptionable, {
|
|
5133
|
+
path: _path + ".passAddress",
|
|
5134
|
+
expected: "(boolean | undefined)",
|
|
5135
|
+
value: input.passAddress
|
|
5136
|
+
}), undefined === input.passDiscord || "boolean" === typeof input.passDiscord || $report(_exceptionable, {
|
|
5137
|
+
path: _path + ".passDiscord",
|
|
5138
|
+
expected: "(boolean | undefined)",
|
|
5139
|
+
value: input.passDiscord
|
|
5140
|
+
}), undefined === input.passEmail || "boolean" === typeof input.passEmail || $report(_exceptionable, {
|
|
5141
|
+
path: _path + ".passEmail",
|
|
5142
|
+
expected: "(boolean | undefined)",
|
|
5143
|
+
value: input.passEmail
|
|
5144
|
+
}), undefined === input.passTwitter || "boolean" === typeof input.passTwitter || $report(_exceptionable, {
|
|
5145
|
+
path: _path + ".passTwitter",
|
|
5146
|
+
expected: "(boolean | undefined)",
|
|
5147
|
+
value: input.passTwitter
|
|
5148
|
+
}), undefined === input.passGoogle || "boolean" === typeof input.passGoogle || $report(_exceptionable, {
|
|
5149
|
+
path: _path + ".passGoogle",
|
|
5150
|
+
expected: "(boolean | undefined)",
|
|
5151
|
+
value: input.passGoogle
|
|
5152
|
+
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || $report(_exceptionable, {
|
|
5153
|
+
path: _path + ".passGithub",
|
|
5154
|
+
expected: "(boolean | undefined)",
|
|
5155
|
+
value: input.passGithub
|
|
5156
|
+
}), undefined === input.passTwitch || "boolean" === typeof input.passTwitch || $report(_exceptionable, {
|
|
5157
|
+
path: _path + ".passTwitch",
|
|
5158
|
+
expected: "(boolean | undefined)",
|
|
5159
|
+
value: input.passTwitch
|
|
5105
5160
|
})].every(flag => flag);
|
|
5106
5161
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
5107
5162
|
path: _path + "",
|
|
@@ -5141,7 +5196,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5141
5196
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink);
|
|
5142
5197
|
const $io2 = input => "string" === typeof input.baseUri;
|
|
5143
5198
|
const $io3 = input => "string" === typeof input.baseUri;
|
|
5144
|
-
const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method);
|
|
5199
|
+
const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
5145
5200
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5146
5201
|
};
|
|
5147
5202
|
if (false === __is(input)) {
|
|
@@ -5263,6 +5318,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5263
5318
|
path: _path + ".method",
|
|
5264
5319
|
expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
|
|
5265
5320
|
value: input.method
|
|
5321
|
+
}), undefined === input.passAddress || "boolean" === typeof input.passAddress || $report(_exceptionable, {
|
|
5322
|
+
path: _path + ".passAddress",
|
|
5323
|
+
expected: "(boolean | undefined)",
|
|
5324
|
+
value: input.passAddress
|
|
5325
|
+
}), undefined === input.passDiscord || "boolean" === typeof input.passDiscord || $report(_exceptionable, {
|
|
5326
|
+
path: _path + ".passDiscord",
|
|
5327
|
+
expected: "(boolean | undefined)",
|
|
5328
|
+
value: input.passDiscord
|
|
5329
|
+
}), undefined === input.passEmail || "boolean" === typeof input.passEmail || $report(_exceptionable, {
|
|
5330
|
+
path: _path + ".passEmail",
|
|
5331
|
+
expected: "(boolean | undefined)",
|
|
5332
|
+
value: input.passEmail
|
|
5333
|
+
}), undefined === input.passTwitter || "boolean" === typeof input.passTwitter || $report(_exceptionable, {
|
|
5334
|
+
path: _path + ".passTwitter",
|
|
5335
|
+
expected: "(boolean | undefined)",
|
|
5336
|
+
value: input.passTwitter
|
|
5337
|
+
}), undefined === input.passGoogle || "boolean" === typeof input.passGoogle || $report(_exceptionable, {
|
|
5338
|
+
path: _path + ".passGoogle",
|
|
5339
|
+
expected: "(boolean | undefined)",
|
|
5340
|
+
value: input.passGoogle
|
|
5341
|
+
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || $report(_exceptionable, {
|
|
5342
|
+
path: _path + ".passGithub",
|
|
5343
|
+
expected: "(boolean | undefined)",
|
|
5344
|
+
value: input.passGithub
|
|
5345
|
+
}), undefined === input.passTwitch || "boolean" === typeof input.passTwitch || $report(_exceptionable, {
|
|
5346
|
+
path: _path + ".passTwitch",
|
|
5347
|
+
expected: "(boolean | undefined)",
|
|
5348
|
+
value: input.passTwitch
|
|
5266
5349
|
})].every(flag => flag);
|
|
5267
5350
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
5268
5351
|
path: _path + "",
|
|
@@ -5767,23 +5850,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5767
5850
|
const errors = [];
|
|
5768
5851
|
const __is = input => {
|
|
5769
5852
|
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 =>
|
|
5853
|
+
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);
|
|
5854
|
+
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);
|
|
5855
|
+
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);
|
|
5856
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
5772
5857
|
const value = input[key];
|
|
5773
5858
|
if (undefined === value)
|
|
5774
5859
|
return true;
|
|
5775
5860
|
return "string" === typeof value;
|
|
5776
5861
|
});
|
|
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);
|
|
5862
|
+
const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
5863
|
+
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);
|
|
5864
|
+
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
5865
|
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
5866
|
const $io9 = input => true;
|
|
5784
5867
|
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@
|
|
5868
|
+
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 => {
|
|
5869
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
5787
5870
|
return true;
|
|
5788
5871
|
const value = input[key];
|
|
5789
5872
|
if (undefined === value)
|
|
@@ -5793,14 +5876,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5793
5876
|
return true;
|
|
5794
5877
|
});
|
|
5795
5878
|
const $iu0 = input => (() => {
|
|
5796
|
-
if (undefined !== input.
|
|
5879
|
+
if (undefined !== input.badgeIds)
|
|
5797
5880
|
return $io1(input);
|
|
5798
|
-
else if (undefined !== input.
|
|
5799
|
-
return $
|
|
5881
|
+
else if (undefined !== input.name)
|
|
5882
|
+
return $io3(input);
|
|
5800
5883
|
else if (undefined !== input.leaves)
|
|
5801
5884
|
return $io8(input);
|
|
5802
5885
|
else
|
|
5803
|
-
return $
|
|
5886
|
+
return $io7(input);
|
|
5804
5887
|
})();
|
|
5805
5888
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5806
5889
|
};
|
|
@@ -5810,7 +5893,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5810
5893
|
const $join = typia_1.default.validate.join;
|
|
5811
5894
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
5812
5895
|
path: _path + ".contents",
|
|
5813
|
-
expected: "(Array<
|
|
5896
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
5814
5897
|
value: input.contents
|
|
5815
5898
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5816
5899
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -5822,10 +5905,60 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5822
5905
|
value: elem
|
|
5823
5906
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
5824
5907
|
path: _path + ".contents",
|
|
5825
|
-
expected: "(Array<
|
|
5908
|
+
expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
5826
5909
|
value: input.contents
|
|
5827
5910
|
})].every(flag => flag);
|
|
5828
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
5911
|
+
const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
5912
|
+
path: _path + ".badgeIds",
|
|
5913
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
5914
|
+
value: input.badgeIds
|
|
5915
|
+
})) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5916
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
5917
|
+
expected: "iUintRange<NumberType>",
|
|
5918
|
+
value: elem
|
|
5919
|
+
})) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5920
|
+
path: _path + ".badgeIds[" + _index2 + "]",
|
|
5921
|
+
expected: "iUintRange<NumberType>",
|
|
5922
|
+
value: elem
|
|
5923
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5924
|
+
path: _path + ".badgeIds",
|
|
5925
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
5926
|
+
value: input.badgeIds
|
|
5927
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5928
|
+
path: _path + ".metadata",
|
|
5929
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
5930
|
+
value: input.metadata
|
|
5931
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5932
|
+
path: _path + ".metadata",
|
|
5933
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
5934
|
+
value: input.metadata
|
|
5935
|
+
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
5936
|
+
path: _path + ".uri",
|
|
5937
|
+
expected: "string",
|
|
5938
|
+
value: input.uri
|
|
5939
|
+
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
5940
|
+
path: _path + ".fetchedUri",
|
|
5941
|
+
expected: "(string | undefined)",
|
|
5942
|
+
value: input.fetchedUri
|
|
5943
|
+
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
5944
|
+
path: _path + ".customData",
|
|
5945
|
+
expected: "string",
|
|
5946
|
+
value: input.customData
|
|
5947
|
+
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
5948
|
+
path: _path + ".toUploadToIpfs",
|
|
5949
|
+
expected: "(boolean | undefined)",
|
|
5950
|
+
value: input.toUploadToIpfs
|
|
5951
|
+
})].every(flag => flag);
|
|
5952
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
5953
|
+
path: _path + ".start",
|
|
5954
|
+
expected: "(bigint | number | string)",
|
|
5955
|
+
value: input.start
|
|
5956
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
5957
|
+
path: _path + ".end",
|
|
5958
|
+
expected: "(bigint | number | string)",
|
|
5959
|
+
value: input.end
|
|
5960
|
+
})].every(flag => flag);
|
|
5961
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
5829
5962
|
path: _path + ".name",
|
|
5830
5963
|
expected: "string",
|
|
5831
5964
|
value: input.name
|
|
@@ -5853,8 +5986,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5853
5986
|
path: _path + ".tags",
|
|
5854
5987
|
expected: "(Array<string> | undefined)",
|
|
5855
5988
|
value: input.tags
|
|
5856
|
-
})) && input.tags.map((elem,
|
|
5857
|
-
path: _path + ".tags[" +
|
|
5989
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
5990
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
5858
5991
|
expected: "string",
|
|
5859
5992
|
value: elem
|
|
5860
5993
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -5865,7 +5998,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5865
5998
|
path: _path + ".socials",
|
|
5866
5999
|
expected: "(__type | undefined)",
|
|
5867
6000
|
value: input.socials
|
|
5868
|
-
})) && $
|
|
6001
|
+
})) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
5869
6002
|
path: _path + ".socials",
|
|
5870
6003
|
expected: "(__type | undefined)",
|
|
5871
6004
|
value: input.socials
|
|
@@ -5873,7 +6006,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5873
6006
|
path: _path + ".offChainTransferabilityInfo",
|
|
5874
6007
|
expected: "(__type.o1 | undefined)",
|
|
5875
6008
|
value: input.offChainTransferabilityInfo
|
|
5876
|
-
})) && $
|
|
6009
|
+
})) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
5877
6010
|
path: _path + ".offChainTransferabilityInfo",
|
|
5878
6011
|
expected: "(__type.o1 | undefined)",
|
|
5879
6012
|
value: input.offChainTransferabilityInfo
|
|
@@ -5881,12 +6014,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5881
6014
|
path: _path + ".attributes",
|
|
5882
6015
|
expected: "(Array<__type> | undefined)",
|
|
5883
6016
|
value: input.attributes
|
|
5884
|
-
})) && input.attributes.map((elem,
|
|
5885
|
-
path: _path + ".attributes[" +
|
|
6017
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6018
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
5886
6019
|
expected: "__type.o2",
|
|
5887
6020
|
value: elem
|
|
5888
|
-
})) && $
|
|
5889
|
-
path: _path + ".attributes[" +
|
|
6021
|
+
})) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6022
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
5890
6023
|
expected: "__type.o2",
|
|
5891
6024
|
value: elem
|
|
5892
6025
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -5906,7 +6039,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5906
6039
|
expected: "(boolean | undefined)",
|
|
5907
6040
|
value: input._isUpdating
|
|
5908
6041
|
})].every(flag => flag);
|
|
5909
|
-
const $
|
|
6042
|
+
const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5910
6043
|
const value = input[key];
|
|
5911
6044
|
if (undefined === value)
|
|
5912
6045
|
return true;
|
|
@@ -5916,7 +6049,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5916
6049
|
value: value
|
|
5917
6050
|
});
|
|
5918
6051
|
}).every(flag => flag)].every(flag => flag);
|
|
5919
|
-
const $
|
|
6052
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
5920
6053
|
path: _path + ".host",
|
|
5921
6054
|
expected: "string",
|
|
5922
6055
|
value: input.host
|
|
@@ -5925,7 +6058,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5925
6058
|
expected: "string",
|
|
5926
6059
|
value: input.assignMethod
|
|
5927
6060
|
})].every(flag => flag);
|
|
5928
|
-
const $
|
|
6061
|
+
const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5929
6062
|
path: _path + ".type",
|
|
5930
6063
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
5931
6064
|
value: input.type
|
|
@@ -5938,11 +6071,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5938
6071
|
expected: "(boolean | number | string)",
|
|
5939
6072
|
value: input.value
|
|
5940
6073
|
})].every(flag => flag);
|
|
5941
|
-
const $
|
|
6074
|
+
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5942
6075
|
path: _path + ".metadata",
|
|
5943
6076
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
5944
6077
|
value: input.metadata
|
|
5945
|
-
})) && $
|
|
6078
|
+
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5946
6079
|
path: _path + ".metadata",
|
|
5947
6080
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
5948
6081
|
value: input.metadata
|
|
@@ -5963,56 +6096,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5963
6096
|
expected: "(boolean | undefined)",
|
|
5964
6097
|
value: input.toUploadToIpfs
|
|
5965
6098
|
})].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
6099
|
const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
|
|
6017
6100
|
path: _path + ".leaves",
|
|
6018
6101
|
expected: "Array<string>",
|
|
@@ -6136,12 +6219,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6136
6219
|
path: _path + ".length",
|
|
6137
6220
|
expected: "number",
|
|
6138
6221
|
value: input.length
|
|
6139
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6140
|
-
path: _path + "[\"__@toStringTag@
|
|
6222
|
+
}), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
|
|
6223
|
+
path: _path + "[\"__@toStringTag@870\"]",
|
|
6141
6224
|
expected: "\"Uint8Array\"",
|
|
6142
|
-
value: input["__@toStringTag@
|
|
6225
|
+
value: input["__@toStringTag@870"]
|
|
6143
6226
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6144
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6227
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6145
6228
|
return true;
|
|
6146
6229
|
const value = input[key];
|
|
6147
6230
|
if (undefined === value)
|
|
@@ -6155,14 +6238,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6155
6238
|
return true;
|
|
6156
6239
|
}).every(flag => flag)].every(flag => flag);
|
|
6157
6240
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
6158
|
-
if (undefined !== input.
|
|
6241
|
+
if (undefined !== input.badgeIds)
|
|
6159
6242
|
return $vo1(input, _path, true && _exceptionable);
|
|
6160
|
-
else if (undefined !== input.
|
|
6161
|
-
return $
|
|
6243
|
+
else if (undefined !== input.name)
|
|
6244
|
+
return $vo3(input, _path, true && _exceptionable);
|
|
6162
6245
|
else if (undefined !== input.leaves)
|
|
6163
6246
|
return $vo8(input, _path, true && _exceptionable);
|
|
6164
6247
|
else
|
|
6165
|
-
return $
|
|
6248
|
+
return $vo7(input, _path, true && _exceptionable);
|
|
6166
6249
|
})();
|
|
6167
6250
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6168
6251
|
path: _path + "",
|
|
@@ -6204,8 +6287,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6204
6287
|
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
6288
|
const $io4 = input => true;
|
|
6206
6289
|
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@
|
|
6290
|
+
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 => {
|
|
6291
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6209
6292
|
return true;
|
|
6210
6293
|
const value = input[key];
|
|
6211
6294
|
if (undefined === value)
|
|
@@ -6419,12 +6502,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6419
6502
|
path: _path + ".length",
|
|
6420
6503
|
expected: "number",
|
|
6421
6504
|
value: input.length
|
|
6422
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6423
|
-
path: _path + "[\"__@toStringTag@
|
|
6505
|
+
}), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
|
|
6506
|
+
path: _path + "[\"__@toStringTag@870\"]",
|
|
6424
6507
|
expected: "\"Uint8Array\"",
|
|
6425
|
-
value: input["__@toStringTag@
|
|
6508
|
+
value: input["__@toStringTag@870"]
|
|
6426
6509
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6427
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6510
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
|
|
6428
6511
|
return true;
|
|
6429
6512
|
const value = input[key];
|
|
6430
6513
|
if (undefined === value)
|
|
@@ -6943,7 +7026,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6943
7026
|
const validateRes = (input => {
|
|
6944
7027
|
const errors = [];
|
|
6945
7028
|
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);
|
|
7029
|
+
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
7030
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6948
7031
|
};
|
|
6949
7032
|
if (false === __is(input)) {
|
|
@@ -6969,6 +7052,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6969
7052
|
path: _path + ".signOutGithub",
|
|
6970
7053
|
expected: "(boolean | undefined)",
|
|
6971
7054
|
value: input.signOutGithub
|
|
7055
|
+
}), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
|
|
7056
|
+
path: _path + ".signOutTwitch",
|
|
7057
|
+
expected: "(boolean | undefined)",
|
|
7058
|
+
value: input.signOutTwitch
|
|
6972
7059
|
})].every(flag => flag);
|
|
6973
7060
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
6974
7061
|
path: _path + "",
|