bitbadgesjs-sdk 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts +10 -7
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +628 -197
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +8 -3
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +7 -2
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +53 -2
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js +19 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +23 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +10 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -0
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +4 -0
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +4 -0
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +10 -7
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +629 -198
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +8 -3
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +11 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +53 -2
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js +22 -0
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +23 -1
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +10 -0
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -0
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +4 -0
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +7 -0
- package/dist/esm/core/approvals.js.map +1 -1
- package/package.json +1 -1
|
@@ -337,7 +337,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
337
337
|
}
|
|
338
338
|
async updateAccountInfo(payload) {
|
|
339
339
|
try {
|
|
340
|
-
const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io19(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); 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); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; 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; 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; 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; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io20(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io21(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io22(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io23(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io24(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io25(input.strava)); const $io20 = 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); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
|
|
340
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io19(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); 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); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; 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; 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; 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; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io20(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io21(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io22(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io23(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io24(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io25(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io26(input.reddit)); const $io20 = 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); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
|
|
341
341
|
path: _path + ".discord",
|
|
342
342
|
expected: "(string | undefined)",
|
|
343
343
|
value: input.discord
|
|
@@ -913,6 +913,14 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
913
913
|
path: _path + ".strava",
|
|
914
914
|
expected: "(__type.o16 | undefined)",
|
|
915
915
|
value: input.strava
|
|
916
|
+
}), undefined === input.reddit || ("object" === typeof input.reddit && null !== input.reddit || $report(_exceptionable, {
|
|
917
|
+
path: _path + ".reddit",
|
|
918
|
+
expected: "(__type.o17 | undefined)",
|
|
919
|
+
value: input.reddit
|
|
920
|
+
})) && $vo26(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
|
|
921
|
+
path: _path + ".reddit",
|
|
922
|
+
expected: "(__type.o17 | undefined)",
|
|
923
|
+
value: input.reddit
|
|
916
924
|
})].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
917
925
|
path: _path + ".username",
|
|
918
926
|
expected: "string",
|
|
@@ -989,6 +997,18 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
989
997
|
path: _path + ".lastUpdated",
|
|
990
998
|
expected: "(bigint | number | string)",
|
|
991
999
|
value: input.lastUpdated
|
|
1000
|
+
})].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1001
|
+
path: _path + ".username",
|
|
1002
|
+
expected: "string",
|
|
1003
|
+
value: input.username
|
|
1004
|
+
}), "string" === typeof input.id || $report(_exceptionable, {
|
|
1005
|
+
path: _path + ".id",
|
|
1006
|
+
expected: "string",
|
|
1007
|
+
value: input.id
|
|
1008
|
+
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
|
|
1009
|
+
path: _path + ".lastUpdated",
|
|
1010
|
+
expected: "(bigint | number | string)",
|
|
1011
|
+
value: input.lastUpdated
|
|
992
1012
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
993
1013
|
if (false === __is(input)) {
|
|
994
1014
|
errors = [];
|
|
@@ -3231,12 +3251,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3231
3251
|
}
|
|
3232
3252
|
async createClaims(payload) {
|
|
3233
3253
|
try {
|
|
3234
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $
|
|
3254
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io17(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.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); const $io3 = input => Object.keys(input).every(key => {
|
|
3235
3255
|
const value = input[key];
|
|
3236
3256
|
if (undefined === value)
|
|
3237
3257
|
return true;
|
|
3238
3258
|
return "string" === typeof value;
|
|
3239
|
-
}); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = 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 && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) &&
|
|
3259
|
+
}); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = 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 && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io15(input.gatedContent)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io15 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io16(input.params)); const $io16 = input => Object.keys(input).every(key => {
|
|
3260
|
+
const value = input[key];
|
|
3261
|
+
if (undefined === value)
|
|
3262
|
+
return true;
|
|
3263
|
+
return true;
|
|
3264
|
+
}); const $io17 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io19(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io19(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io19(input.privateParams)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io19 = input => Object.keys(input).every(key => {
|
|
3240
3265
|
const value = input[key];
|
|
3241
3266
|
if (undefined === value)
|
|
3242
3267
|
return true;
|
|
@@ -3245,12 +3270,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3245
3270
|
path: _path + ".claims",
|
|
3246
3271
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3247
3272
|
value: input.claims
|
|
3248
|
-
})) && input.claims.map((elem,
|
|
3249
|
-
path: _path + ".claims[" +
|
|
3273
|
+
})) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3274
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3250
3275
|
expected: "CreateClaimRequest<NumberType>",
|
|
3251
3276
|
value: elem
|
|
3252
|
-
})) && $vo1(elem, _path + ".claims[" +
|
|
3253
|
-
path: _path + ".claims[" +
|
|
3277
|
+
})) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3278
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3254
3279
|
expected: "CreateClaimRequest<NumberType>",
|
|
3255
3280
|
value: elem
|
|
3256
3281
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3305,6 +3330,30 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3305
3330
|
path: _path + ".balancesToSet",
|
|
3306
3331
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3307
3332
|
value: input.balancesToSet
|
|
3333
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
3334
|
+
path: _path + ".rewards",
|
|
3335
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3336
|
+
value: input.rewards
|
|
3337
|
+
})) && input.rewards.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3338
|
+
path: _path + ".rewards[" + _index13 + "]",
|
|
3339
|
+
expected: "iClaimReward<NumberType>",
|
|
3340
|
+
value: elem
|
|
3341
|
+
})) && $vo13(elem, _path + ".rewards[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3342
|
+
path: _path + ".rewards[" + _index13 + "]",
|
|
3343
|
+
expected: "iClaimReward<NumberType>",
|
|
3344
|
+
value: elem
|
|
3345
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3346
|
+
path: _path + ".rewards",
|
|
3347
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3348
|
+
value: input.rewards
|
|
3349
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
3350
|
+
path: _path + ".estimatedCost",
|
|
3351
|
+
expected: "(string | undefined)",
|
|
3352
|
+
value: input.estimatedCost
|
|
3353
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
3354
|
+
path: _path + ".estimatedTime",
|
|
3355
|
+
expected: "(string | undefined)",
|
|
3356
|
+
value: input.estimatedTime
|
|
3308
3357
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
3309
3358
|
path: _path + ".manualDistribution",
|
|
3310
3359
|
expected: "(boolean | undefined)",
|
|
@@ -3325,12 +3374,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3325
3374
|
path: _path + ".plugins",
|
|
3326
3375
|
expected: "Array<ManagePluginRequest>",
|
|
3327
3376
|
value: input.plugins
|
|
3328
|
-
})) && input.plugins.map((elem,
|
|
3329
|
-
path: _path + ".plugins[" +
|
|
3377
|
+
})) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3378
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
3330
3379
|
expected: "ManagePluginRequest",
|
|
3331
3380
|
value: elem
|
|
3332
|
-
})) && $
|
|
3333
|
-
path: _path + ".plugins[" +
|
|
3381
|
+
})) && $vo17(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3382
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
3334
3383
|
expected: "ManagePluginRequest",
|
|
3335
3384
|
value: elem
|
|
3336
3385
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3365,8 +3414,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3365
3414
|
path: _path + ".tags",
|
|
3366
3415
|
expected: "(Array<string> | undefined)",
|
|
3367
3416
|
value: input.tags
|
|
3368
|
-
})) && input.tags.map((elem,
|
|
3369
|
-
path: _path + ".tags[" +
|
|
3417
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
3418
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
3370
3419
|
expected: "string",
|
|
3371
3420
|
value: elem
|
|
3372
3421
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3393,12 +3442,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3393
3442
|
path: _path + ".attributes",
|
|
3394
3443
|
expected: "(Array<__type> | undefined)",
|
|
3395
3444
|
value: input.attributes
|
|
3396
|
-
})) && input.attributes.map((elem,
|
|
3397
|
-
path: _path + ".attributes[" +
|
|
3445
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3446
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3398
3447
|
expected: "__type.o2",
|
|
3399
3448
|
value: elem
|
|
3400
|
-
})) && $vo5(elem, _path + ".attributes[" +
|
|
3401
|
-
path: _path + ".attributes[" +
|
|
3449
|
+
})) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3450
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3402
3451
|
expected: "__type.o2",
|
|
3403
3452
|
value: elem
|
|
3404
3453
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3409,12 +3458,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3409
3458
|
path: _path + ".utility",
|
|
3410
3459
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3411
3460
|
value: input.utility
|
|
3412
|
-
})) && input.utility.map((elem,
|
|
3413
|
-
path: _path + ".utility[" +
|
|
3461
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3462
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3414
3463
|
expected: "__type.o3",
|
|
3415
3464
|
value: elem
|
|
3416
|
-
})) && $vo6(elem, _path + ".utility[" +
|
|
3417
|
-
path: _path + ".utility[" +
|
|
3465
|
+
})) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3466
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3418
3467
|
expected: "__type.o3",
|
|
3419
3468
|
value: elem
|
|
3420
3469
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3482,12 +3531,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3482
3531
|
path: _path + ".manualBalances",
|
|
3483
3532
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3484
3533
|
value: input.manualBalances
|
|
3485
|
-
})) && input.manualBalances.map((elem,
|
|
3486
|
-
path: _path + ".manualBalances[" +
|
|
3534
|
+
})) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3535
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
3487
3536
|
expected: "iManualBalances<NumberType>",
|
|
3488
3537
|
value: elem
|
|
3489
|
-
})) && $vo8(elem, _path + ".manualBalances[" +
|
|
3490
|
-
path: _path + ".manualBalances[" +
|
|
3538
|
+
})) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3539
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
3491
3540
|
expected: "iManualBalances<NumberType>",
|
|
3492
3541
|
value: elem
|
|
3493
3542
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3514,12 +3563,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3514
3563
|
path: _path + ".balances",
|
|
3515
3564
|
expected: "Array<iBalance<NumberType>>",
|
|
3516
3565
|
value: input.balances
|
|
3517
|
-
})) && input.balances.map((elem,
|
|
3518
|
-
path: _path + ".balances[" +
|
|
3566
|
+
})) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3567
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
3519
3568
|
expected: "iBalance<NumberType>",
|
|
3520
3569
|
value: elem
|
|
3521
|
-
})) && $vo9(elem, _path + ".balances[" +
|
|
3522
|
-
path: _path + ".balances[" +
|
|
3570
|
+
})) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3571
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
3523
3572
|
expected: "iBalance<NumberType>",
|
|
3524
3573
|
value: elem
|
|
3525
3574
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3534,12 +3583,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3534
3583
|
path: _path + ".badgeIds",
|
|
3535
3584
|
expected: "Array<iUintRange<NumberType>>",
|
|
3536
3585
|
value: input.badgeIds
|
|
3537
|
-
})) && input.badgeIds.map((elem,
|
|
3538
|
-
path: _path + ".badgeIds[" +
|
|
3586
|
+
})) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3587
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
3539
3588
|
expected: "iUintRange<NumberType>",
|
|
3540
3589
|
value: elem
|
|
3541
|
-
})) && $vo10(elem, _path + ".badgeIds[" +
|
|
3542
|
-
path: _path + ".badgeIds[" +
|
|
3590
|
+
})) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3591
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
3543
3592
|
expected: "iUintRange<NumberType>",
|
|
3544
3593
|
value: elem
|
|
3545
3594
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3550,12 +3599,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3550
3599
|
path: _path + ".ownershipTimes",
|
|
3551
3600
|
expected: "Array<iUintRange<NumberType>>",
|
|
3552
3601
|
value: input.ownershipTimes
|
|
3553
|
-
})) && input.ownershipTimes.map((elem,
|
|
3554
|
-
path: _path + ".ownershipTimes[" +
|
|
3602
|
+
})) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3603
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
3555
3604
|
expected: "iUintRange<NumberType>",
|
|
3556
3605
|
value: elem
|
|
3557
|
-
})) && $vo10(elem, _path + ".ownershipTimes[" +
|
|
3558
|
-
path: _path + ".ownershipTimes[" +
|
|
3606
|
+
})) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3607
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
3559
3608
|
expected: "iUintRange<NumberType>",
|
|
3560
3609
|
value: elem
|
|
3561
3610
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3574,12 +3623,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3574
3623
|
path: _path + ".startBalances",
|
|
3575
3624
|
expected: "Array<iBalance<NumberType>>",
|
|
3576
3625
|
value: input.startBalances
|
|
3577
|
-
})) && input.startBalances.map((elem,
|
|
3578
|
-
path: _path + ".startBalances[" +
|
|
3626
|
+
})) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3627
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
3579
3628
|
expected: "iBalance<NumberType>",
|
|
3580
3629
|
value: elem
|
|
3581
|
-
})) && $vo9(elem, _path + ".startBalances[" +
|
|
3582
|
-
path: _path + ".startBalances[" +
|
|
3630
|
+
})) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3631
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
3583
3632
|
expected: "iBalance<NumberType>",
|
|
3584
3633
|
value: elem
|
|
3585
3634
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3618,7 +3667,15 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3618
3667
|
path: _path + ".challengeTrackerId",
|
|
3619
3668
|
expected: "string",
|
|
3620
3669
|
value: input.challengeTrackerId
|
|
3621
|
-
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [
|
|
3670
|
+
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
3671
|
+
path: _path + ".rewardId",
|
|
3672
|
+
expected: "string",
|
|
3673
|
+
value: input.rewardId
|
|
3674
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
3675
|
+
path: _path + ".instanceId",
|
|
3676
|
+
expected: "string",
|
|
3677
|
+
value: input.instanceId
|
|
3678
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3622
3679
|
path: _path + ".metadata",
|
|
3623
3680
|
expected: "(__type.o4 | undefined)",
|
|
3624
3681
|
value: input.metadata
|
|
@@ -3626,6 +3683,59 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3626
3683
|
path: _path + ".metadata",
|
|
3627
3684
|
expected: "(__type.o4 | undefined)",
|
|
3628
3685
|
value: input.metadata
|
|
3686
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
3687
|
+
path: _path + ".automatic",
|
|
3688
|
+
expected: "(boolean | undefined)",
|
|
3689
|
+
value: input.automatic
|
|
3690
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
3691
|
+
path: _path + ".gatedContent",
|
|
3692
|
+
expected: "iClaimGatedContent",
|
|
3693
|
+
value: input.gatedContent
|
|
3694
|
+
})) && $vo15(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
3695
|
+
path: _path + ".gatedContent",
|
|
3696
|
+
expected: "iClaimGatedContent",
|
|
3697
|
+
value: input.gatedContent
|
|
3698
|
+
})].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3699
|
+
path: _path + ".name",
|
|
3700
|
+
expected: "string",
|
|
3701
|
+
value: input.name
|
|
3702
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3703
|
+
path: _path + ".description",
|
|
3704
|
+
expected: "string",
|
|
3705
|
+
value: input.description
|
|
3706
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3707
|
+
path: _path + ".image",
|
|
3708
|
+
expected: "string",
|
|
3709
|
+
value: input.image
|
|
3710
|
+
})].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
3711
|
+
path: _path + ".content",
|
|
3712
|
+
expected: "(string | undefined)",
|
|
3713
|
+
value: input.content
|
|
3714
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
3715
|
+
path: _path + ".url",
|
|
3716
|
+
expected: "(string | undefined)",
|
|
3717
|
+
value: input.url
|
|
3718
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
3719
|
+
path: _path + ".params",
|
|
3720
|
+
expected: "(__type.o5 | undefined)",
|
|
3721
|
+
value: input.params
|
|
3722
|
+
})) && $vo16(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
3723
|
+
path: _path + ".params",
|
|
3724
|
+
expected: "(__type.o5 | undefined)",
|
|
3725
|
+
value: input.params
|
|
3726
|
+
})].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3727
|
+
const value = input[key];
|
|
3728
|
+
if (undefined === value)
|
|
3729
|
+
return true;
|
|
3730
|
+
return true;
|
|
3731
|
+
}).every(flag => flag)].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3732
|
+
path: _path + ".metadata",
|
|
3733
|
+
expected: "(__type.o6 | undefined)",
|
|
3734
|
+
value: input.metadata
|
|
3735
|
+
})) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3736
|
+
path: _path + ".metadata",
|
|
3737
|
+
expected: "(__type.o6 | undefined)",
|
|
3738
|
+
value: input.metadata
|
|
3629
3739
|
}), "string" === typeof input.version || $report(_exceptionable, {
|
|
3630
3740
|
path: _path + ".version",
|
|
3631
3741
|
expected: "string",
|
|
@@ -3638,7 +3748,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3638
3748
|
path: _path + ".newState",
|
|
3639
3749
|
expected: "(Record<string, any> | undefined)",
|
|
3640
3750
|
value: input.newState
|
|
3641
|
-
})) && $
|
|
3751
|
+
})) && $vo19(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
3642
3752
|
path: _path + ".newState",
|
|
3643
3753
|
expected: "(Record<string, any> | undefined)",
|
|
3644
3754
|
value: input.newState
|
|
@@ -3658,7 +3768,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3658
3768
|
path: _path + ".publicParams",
|
|
3659
3769
|
expected: "Record<string, any>",
|
|
3660
3770
|
value: input.publicParams
|
|
3661
|
-
})) && $
|
|
3771
|
+
})) && $vo19(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
3662
3772
|
path: _path + ".publicParams",
|
|
3663
3773
|
expected: "Record<string, any>",
|
|
3664
3774
|
value: input.publicParams
|
|
@@ -3666,11 +3776,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3666
3776
|
path: _path + ".privateParams",
|
|
3667
3777
|
expected: "Record<string, any>",
|
|
3668
3778
|
value: input.privateParams
|
|
3669
|
-
})) && $
|
|
3779
|
+
})) && $vo19(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
3670
3780
|
path: _path + ".privateParams",
|
|
3671
3781
|
expected: "Record<string, any>",
|
|
3672
3782
|
value: input.privateParams
|
|
3673
|
-
})].every(flag => flag); const $
|
|
3783
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3674
3784
|
path: _path + ".name",
|
|
3675
3785
|
expected: "string",
|
|
3676
3786
|
value: input.name
|
|
@@ -3682,7 +3792,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3682
3792
|
path: _path + ".image",
|
|
3683
3793
|
expected: "(string | undefined)",
|
|
3684
3794
|
value: input.image
|
|
3685
|
-
})].every(flag => flag); const $
|
|
3795
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3686
3796
|
const value = input[key];
|
|
3687
3797
|
if (undefined === value)
|
|
3688
3798
|
return true;
|
|
@@ -3779,7 +3889,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3779
3889
|
}
|
|
3780
3890
|
async updateClaims(payload) {
|
|
3781
3891
|
try {
|
|
3782
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.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); const $io3 = input => Object.keys(input).every(key => {
|
|
3892
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io16(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.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); const $io3 = input => Object.keys(input).every(key => {
|
|
3783
3893
|
const value = input[key];
|
|
3784
3894
|
if (undefined === value)
|
|
3785
3895
|
return true;
|
|
@@ -3789,16 +3899,21 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3789
3899
|
if (undefined === value)
|
|
3790
3900
|
return true;
|
|
3791
3901
|
return true;
|
|
3792
|
-
}); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $
|
|
3902
|
+
}); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io16 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io18(input.gatedContent)); const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io18 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io19(input.params)); const $io19 = input => Object.keys(input).every(key => {
|
|
3903
|
+
const value = input[key];
|
|
3904
|
+
if (undefined === value)
|
|
3905
|
+
return true;
|
|
3906
|
+
return true;
|
|
3907
|
+
}); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3793
3908
|
path: _path + ".claims",
|
|
3794
3909
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
|
|
3795
3910
|
value: input.claims
|
|
3796
|
-
})) && input.claims.map((elem,
|
|
3797
|
-
path: _path + ".claims[" +
|
|
3911
|
+
})) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3912
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3798
3913
|
expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
|
|
3799
3914
|
value: elem
|
|
3800
|
-
})) && $vo1(elem, _path + ".claims[" +
|
|
3801
|
-
path: _path + ".claims[" +
|
|
3915
|
+
})) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3916
|
+
path: _path + ".claims[" + _index12 + "]",
|
|
3802
3917
|
expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
|
|
3803
3918
|
value: elem
|
|
3804
3919
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3845,18 +3960,42 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3845
3960
|
path: _path + ".plugins",
|
|
3846
3961
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
3847
3962
|
value: input.plugins
|
|
3848
|
-
})) && input.plugins.map((elem,
|
|
3849
|
-
path: _path + ".plugins[" +
|
|
3963
|
+
})) && input.plugins.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3964
|
+
path: _path + ".plugins[" + _index13 + "]",
|
|
3850
3965
|
expected: "IntegrationPluginDetails<string>",
|
|
3851
3966
|
value: elem
|
|
3852
|
-
})) && $vo13(elem, _path + ".plugins[" +
|
|
3853
|
-
path: _path + ".plugins[" +
|
|
3967
|
+
})) && $vo13(elem, _path + ".plugins[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3968
|
+
path: _path + ".plugins[" + _index13 + "]",
|
|
3854
3969
|
expected: "IntegrationPluginDetails<string>",
|
|
3855
3970
|
value: elem
|
|
3856
3971
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
3857
3972
|
path: _path + ".plugins",
|
|
3858
3973
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
3859
3974
|
value: input.plugins
|
|
3975
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
3976
|
+
path: _path + ".rewards",
|
|
3977
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3978
|
+
value: input.rewards
|
|
3979
|
+
})) && input.rewards.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3980
|
+
path: _path + ".rewards[" + _index14 + "]",
|
|
3981
|
+
expected: "iClaimReward<NumberType>",
|
|
3982
|
+
value: elem
|
|
3983
|
+
})) && $vo16(elem, _path + ".rewards[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3984
|
+
path: _path + ".rewards[" + _index14 + "]",
|
|
3985
|
+
expected: "iClaimReward<NumberType>",
|
|
3986
|
+
value: elem
|
|
3987
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3988
|
+
path: _path + ".rewards",
|
|
3989
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
3990
|
+
value: input.rewards
|
|
3991
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
3992
|
+
path: _path + ".estimatedCost",
|
|
3993
|
+
expected: "(string | undefined)",
|
|
3994
|
+
value: input.estimatedCost
|
|
3995
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
3996
|
+
path: _path + ".estimatedTime",
|
|
3997
|
+
expected: "(string | undefined)",
|
|
3998
|
+
value: input.estimatedTime
|
|
3860
3999
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
3861
4000
|
path: _path + ".manualDistribution",
|
|
3862
4001
|
expected: "(boolean | undefined)",
|
|
@@ -3897,8 +4036,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3897
4036
|
path: _path + ".tags",
|
|
3898
4037
|
expected: "(Array<string> | undefined)",
|
|
3899
4038
|
value: input.tags
|
|
3900
|
-
})) && input.tags.map((elem,
|
|
3901
|
-
path: _path + ".tags[" +
|
|
4039
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
4040
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
3902
4041
|
expected: "string",
|
|
3903
4042
|
value: elem
|
|
3904
4043
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3925,12 +4064,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3925
4064
|
path: _path + ".attributes",
|
|
3926
4065
|
expected: "(Array<__type> | undefined)",
|
|
3927
4066
|
value: input.attributes
|
|
3928
|
-
})) && input.attributes.map((elem,
|
|
3929
|
-
path: _path + ".attributes[" +
|
|
4067
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4068
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3930
4069
|
expected: "__type.o2",
|
|
3931
4070
|
value: elem
|
|
3932
|
-
})) && $vo5(elem, _path + ".attributes[" +
|
|
3933
|
-
path: _path + ".attributes[" +
|
|
4071
|
+
})) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4072
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
3934
4073
|
expected: "__type.o2",
|
|
3935
4074
|
value: elem
|
|
3936
4075
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3941,12 +4080,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3941
4080
|
path: _path + ".utility",
|
|
3942
4081
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3943
4082
|
value: input.utility
|
|
3944
|
-
})) && input.utility.map((elem,
|
|
3945
|
-
path: _path + ".utility[" +
|
|
4083
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4084
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3946
4085
|
expected: "__type.o3",
|
|
3947
4086
|
value: elem
|
|
3948
|
-
})) && $vo6(elem, _path + ".utility[" +
|
|
3949
|
-
path: _path + ".utility[" +
|
|
4087
|
+
})) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4088
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
3950
4089
|
expected: "__type.o3",
|
|
3951
4090
|
value: elem
|
|
3952
4091
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4014,12 +4153,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4014
4153
|
path: _path + ".manualBalances",
|
|
4015
4154
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4016
4155
|
value: input.manualBalances
|
|
4017
|
-
})) && input.manualBalances.map((elem,
|
|
4018
|
-
path: _path + ".manualBalances[" +
|
|
4156
|
+
})) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4157
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
4019
4158
|
expected: "iManualBalances<NumberType>",
|
|
4020
4159
|
value: elem
|
|
4021
|
-
})) && $vo8(elem, _path + ".manualBalances[" +
|
|
4022
|
-
path: _path + ".manualBalances[" +
|
|
4160
|
+
})) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4161
|
+
path: _path + ".manualBalances[" + _index18 + "]",
|
|
4023
4162
|
expected: "iManualBalances<NumberType>",
|
|
4024
4163
|
value: elem
|
|
4025
4164
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4046,12 +4185,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4046
4185
|
path: _path + ".balances",
|
|
4047
4186
|
expected: "Array<iBalance<NumberType>>",
|
|
4048
4187
|
value: input.balances
|
|
4049
|
-
})) && input.balances.map((elem,
|
|
4050
|
-
path: _path + ".balances[" +
|
|
4188
|
+
})) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4189
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
4051
4190
|
expected: "iBalance<NumberType>",
|
|
4052
4191
|
value: elem
|
|
4053
|
-
})) && $vo9(elem, _path + ".balances[" +
|
|
4054
|
-
path: _path + ".balances[" +
|
|
4192
|
+
})) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4193
|
+
path: _path + ".balances[" + _index19 + "]",
|
|
4055
4194
|
expected: "iBalance<NumberType>",
|
|
4056
4195
|
value: elem
|
|
4057
4196
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4066,12 +4205,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4066
4205
|
path: _path + ".badgeIds",
|
|
4067
4206
|
expected: "Array<iUintRange<NumberType>>",
|
|
4068
4207
|
value: input.badgeIds
|
|
4069
|
-
})) && input.badgeIds.map((elem,
|
|
4070
|
-
path: _path + ".badgeIds[" +
|
|
4208
|
+
})) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4209
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
4071
4210
|
expected: "iUintRange<NumberType>",
|
|
4072
4211
|
value: elem
|
|
4073
|
-
})) && $vo10(elem, _path + ".badgeIds[" +
|
|
4074
|
-
path: _path + ".badgeIds[" +
|
|
4212
|
+
})) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4213
|
+
path: _path + ".badgeIds[" + _index20 + "]",
|
|
4075
4214
|
expected: "iUintRange<NumberType>",
|
|
4076
4215
|
value: elem
|
|
4077
4216
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4082,12 +4221,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4082
4221
|
path: _path + ".ownershipTimes",
|
|
4083
4222
|
expected: "Array<iUintRange<NumberType>>",
|
|
4084
4223
|
value: input.ownershipTimes
|
|
4085
|
-
})) && input.ownershipTimes.map((elem,
|
|
4086
|
-
path: _path + ".ownershipTimes[" +
|
|
4224
|
+
})) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4225
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
4087
4226
|
expected: "iUintRange<NumberType>",
|
|
4088
4227
|
value: elem
|
|
4089
|
-
})) && $vo10(elem, _path + ".ownershipTimes[" +
|
|
4090
|
-
path: _path + ".ownershipTimes[" +
|
|
4228
|
+
})) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4229
|
+
path: _path + ".ownershipTimes[" + _index21 + "]",
|
|
4091
4230
|
expected: "iUintRange<NumberType>",
|
|
4092
4231
|
value: elem
|
|
4093
4232
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4106,12 +4245,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4106
4245
|
path: _path + ".startBalances",
|
|
4107
4246
|
expected: "Array<iBalance<NumberType>>",
|
|
4108
4247
|
value: input.startBalances
|
|
4109
|
-
})) && input.startBalances.map((elem,
|
|
4110
|
-
path: _path + ".startBalances[" +
|
|
4248
|
+
})) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4249
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
4111
4250
|
expected: "iBalance<NumberType>",
|
|
4112
4251
|
value: elem
|
|
4113
|
-
})) && $vo9(elem, _path + ".startBalances[" +
|
|
4114
|
-
path: _path + ".startBalances[" +
|
|
4252
|
+
})) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4253
|
+
path: _path + ".startBalances[" + _index22 + "]",
|
|
4115
4254
|
expected: "iBalance<NumberType>",
|
|
4116
4255
|
value: elem
|
|
4117
4256
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4235,7 +4374,68 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4235
4374
|
path: _path + ".image",
|
|
4236
4375
|
expected: "(string | undefined)",
|
|
4237
4376
|
value: input.image
|
|
4238
|
-
})].every(flag => flag); const
|
|
4377
|
+
})].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
4378
|
+
path: _path + ".rewardId",
|
|
4379
|
+
expected: "string",
|
|
4380
|
+
value: input.rewardId
|
|
4381
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4382
|
+
path: _path + ".instanceId",
|
|
4383
|
+
expected: "string",
|
|
4384
|
+
value: input.instanceId
|
|
4385
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4386
|
+
path: _path + ".metadata",
|
|
4387
|
+
expected: "(__type.o5 | undefined)",
|
|
4388
|
+
value: input.metadata
|
|
4389
|
+
})) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4390
|
+
path: _path + ".metadata",
|
|
4391
|
+
expected: "(__type.o5 | undefined)",
|
|
4392
|
+
value: input.metadata
|
|
4393
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
4394
|
+
path: _path + ".automatic",
|
|
4395
|
+
expected: "(boolean | undefined)",
|
|
4396
|
+
value: input.automatic
|
|
4397
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
4398
|
+
path: _path + ".gatedContent",
|
|
4399
|
+
expected: "iClaimGatedContent",
|
|
4400
|
+
value: input.gatedContent
|
|
4401
|
+
})) && $vo18(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
4402
|
+
path: _path + ".gatedContent",
|
|
4403
|
+
expected: "iClaimGatedContent",
|
|
4404
|
+
value: input.gatedContent
|
|
4405
|
+
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4406
|
+
path: _path + ".name",
|
|
4407
|
+
expected: "string",
|
|
4408
|
+
value: input.name
|
|
4409
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4410
|
+
path: _path + ".description",
|
|
4411
|
+
expected: "string",
|
|
4412
|
+
value: input.description
|
|
4413
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4414
|
+
path: _path + ".image",
|
|
4415
|
+
expected: "string",
|
|
4416
|
+
value: input.image
|
|
4417
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
4418
|
+
path: _path + ".content",
|
|
4419
|
+
expected: "(string | undefined)",
|
|
4420
|
+
value: input.content
|
|
4421
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
4422
|
+
path: _path + ".url",
|
|
4423
|
+
expected: "(string | undefined)",
|
|
4424
|
+
value: input.url
|
|
4425
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
4426
|
+
path: _path + ".params",
|
|
4427
|
+
expected: "(__type.o6 | undefined)",
|
|
4428
|
+
value: input.params
|
|
4429
|
+
})) && $vo19(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
4430
|
+
path: _path + ".params",
|
|
4431
|
+
expected: "(__type.o6 | undefined)",
|
|
4432
|
+
value: input.params
|
|
4433
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4434
|
+
const value = input[key];
|
|
4435
|
+
if (undefined === value)
|
|
4436
|
+
return true;
|
|
4437
|
+
return true;
|
|
4438
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
4239
4439
|
if (false === __is(input)) {
|
|
4240
4440
|
errors = [];
|
|
4241
4441
|
$report = typia_1.default.validate.report(errors);
|
|
@@ -4322,12 +4522,17 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4322
4522
|
if (undefined === value)
|
|
4323
4523
|
return true;
|
|
4324
4524
|
return Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
|
|
4325
|
-
}); const $io2 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
4525
|
+
}); const $io2 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io12(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach); const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io6(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io6(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io6(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)); const $io6 = input => Object.keys(input).every(key => {
|
|
4326
4526
|
const value = input[key];
|
|
4327
4527
|
if (undefined === value)
|
|
4328
4528
|
return true;
|
|
4329
4529
|
return true;
|
|
4330
|
-
}); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input =>
|
|
4530
|
+
}); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io9(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io10(input.gatedContent)); const $io9 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io10 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io11(input.params)); const $io11 = input => Object.keys(input).every(key => {
|
|
4531
|
+
const value = input[key];
|
|
4532
|
+
if (undefined === value)
|
|
4533
|
+
return true;
|
|
4534
|
+
return true;
|
|
4535
|
+
}); const $io12 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io14(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io15(input.orderCalculationMethod)); const $io13 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io14 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io15 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4331
4536
|
path: _path + ".balances",
|
|
4332
4537
|
expected: "(iOffChainBalancesMap<NumberType> | undefined)",
|
|
4333
4538
|
value: input.balances
|
|
@@ -4339,12 +4544,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4339
4544
|
path: _path + ".claims",
|
|
4340
4545
|
expected: "(Array<__type> | undefined)",
|
|
4341
4546
|
value: input.claims
|
|
4342
|
-
})) && input.claims.map((elem,
|
|
4343
|
-
path: _path + ".claims[" +
|
|
4547
|
+
})) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4548
|
+
path: _path + ".claims[" + _index10 + "]",
|
|
4344
4549
|
expected: "__type",
|
|
4345
4550
|
value: elem
|
|
4346
|
-
})) && $vo4(elem, _path + ".claims[" +
|
|
4347
|
-
path: _path + ".claims[" +
|
|
4551
|
+
})) && $vo4(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4552
|
+
path: _path + ".claims[" + _index10 + "]",
|
|
4348
4553
|
expected: "__type",
|
|
4349
4554
|
value: elem
|
|
4350
4555
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4371,12 +4576,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4371
4576
|
path: _path + $join(key),
|
|
4372
4577
|
expected: "Array<iBalance<NumberType>>",
|
|
4373
4578
|
value: value
|
|
4374
|
-
})) && value.map((elem,
|
|
4375
|
-
path: _path + $join(key) + "[" +
|
|
4579
|
+
})) && value.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4580
|
+
path: _path + $join(key) + "[" + _index11 + "]",
|
|
4376
4581
|
expected: "iBalance<NumberType>",
|
|
4377
4582
|
value: elem
|
|
4378
|
-
})) && $vo2(elem, _path + $join(key) + "[" +
|
|
4379
|
-
path: _path + $join(key) + "[" +
|
|
4583
|
+
})) && $vo2(elem, _path + $join(key) + "[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4584
|
+
path: _path + $join(key) + "[" + _index11 + "]",
|
|
4380
4585
|
expected: "iBalance<NumberType>",
|
|
4381
4586
|
value: elem
|
|
4382
4587
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4392,12 +4597,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4392
4597
|
path: _path + ".badgeIds",
|
|
4393
4598
|
expected: "Array<iUintRange<NumberType>>",
|
|
4394
4599
|
value: input.badgeIds
|
|
4395
|
-
})) && input.badgeIds.map((elem,
|
|
4396
|
-
path: _path + ".badgeIds[" +
|
|
4600
|
+
})) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4601
|
+
path: _path + ".badgeIds[" + _index12 + "]",
|
|
4397
4602
|
expected: "iUintRange<NumberType>",
|
|
4398
4603
|
value: elem
|
|
4399
|
-
})) && $vo3(elem, _path + ".badgeIds[" +
|
|
4400
|
-
path: _path + ".badgeIds[" +
|
|
4604
|
+
})) && $vo3(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4605
|
+
path: _path + ".badgeIds[" + _index12 + "]",
|
|
4401
4606
|
expected: "iUintRange<NumberType>",
|
|
4402
4607
|
value: elem
|
|
4403
4608
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4408,12 +4613,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4408
4613
|
path: _path + ".ownershipTimes",
|
|
4409
4614
|
expected: "Array<iUintRange<NumberType>>",
|
|
4410
4615
|
value: input.ownershipTimes
|
|
4411
|
-
})) && input.ownershipTimes.map((elem,
|
|
4412
|
-
path: _path + ".ownershipTimes[" +
|
|
4616
|
+
})) && input.ownershipTimes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4617
|
+
path: _path + ".ownershipTimes[" + _index13 + "]",
|
|
4413
4618
|
expected: "iUintRange<NumberType>",
|
|
4414
4619
|
value: elem
|
|
4415
|
-
})) && $vo3(elem, _path + ".ownershipTimes[" +
|
|
4416
|
-
path: _path + ".ownershipTimes[" +
|
|
4620
|
+
})) && $vo3(elem, _path + ".ownershipTimes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4621
|
+
path: _path + ".ownershipTimes[" + _index13 + "]",
|
|
4417
4622
|
expected: "iUintRange<NumberType>",
|
|
4418
4623
|
value: elem
|
|
4419
4624
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4436,23 +4641,47 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4436
4641
|
path: _path + ".plugins",
|
|
4437
4642
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4438
4643
|
value: input.plugins
|
|
4439
|
-
})) && input.plugins.map((elem,
|
|
4440
|
-
path: _path + ".plugins[" +
|
|
4644
|
+
})) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4645
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
4441
4646
|
expected: "IntegrationPluginDetails<string>",
|
|
4442
4647
|
value: elem
|
|
4443
|
-
})) && $vo5(elem, _path + ".plugins[" +
|
|
4444
|
-
path: _path + ".plugins[" +
|
|
4648
|
+
})) && $vo5(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4649
|
+
path: _path + ".plugins[" + _index14 + "]",
|
|
4445
4650
|
expected: "IntegrationPluginDetails<string>",
|
|
4446
4651
|
value: elem
|
|
4447
4652
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
4448
4653
|
path: _path + ".plugins",
|
|
4449
4654
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4450
4655
|
value: input.plugins
|
|
4656
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
4657
|
+
path: _path + ".rewards",
|
|
4658
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
4659
|
+
value: input.rewards
|
|
4660
|
+
})) && input.rewards.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4661
|
+
path: _path + ".rewards[" + _index15 + "]",
|
|
4662
|
+
expected: "iClaimReward<NumberType>",
|
|
4663
|
+
value: elem
|
|
4664
|
+
})) && $vo8(elem, _path + ".rewards[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4665
|
+
path: _path + ".rewards[" + _index15 + "]",
|
|
4666
|
+
expected: "iClaimReward<NumberType>",
|
|
4667
|
+
value: elem
|
|
4668
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4669
|
+
path: _path + ".rewards",
|
|
4670
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
4671
|
+
value: input.rewards
|
|
4672
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
4673
|
+
path: _path + ".estimatedCost",
|
|
4674
|
+
expected: "(string | undefined)",
|
|
4675
|
+
value: input.estimatedCost
|
|
4676
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
4677
|
+
path: _path + ".estimatedTime",
|
|
4678
|
+
expected: "(string | undefined)",
|
|
4679
|
+
value: input.estimatedTime
|
|
4451
4680
|
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4452
4681
|
path: _path + ".balancesToSet",
|
|
4453
4682
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4454
4683
|
value: input.balancesToSet
|
|
4455
|
-
})) && $
|
|
4684
|
+
})) && $vo12(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4456
4685
|
path: _path + ".balancesToSet",
|
|
4457
4686
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4458
4687
|
value: input.balancesToSet
|
|
@@ -4545,16 +4774,77 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4545
4774
|
path: _path + ".image",
|
|
4546
4775
|
expected: "(string | undefined)",
|
|
4547
4776
|
value: input.image
|
|
4548
|
-
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [
|
|
4777
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
4778
|
+
path: _path + ".rewardId",
|
|
4779
|
+
expected: "string",
|
|
4780
|
+
value: input.rewardId
|
|
4781
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4782
|
+
path: _path + ".instanceId",
|
|
4783
|
+
expected: "string",
|
|
4784
|
+
value: input.instanceId
|
|
4785
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4786
|
+
path: _path + ".metadata",
|
|
4787
|
+
expected: "(__type.o2 | undefined)",
|
|
4788
|
+
value: input.metadata
|
|
4789
|
+
})) && $vo9(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4790
|
+
path: _path + ".metadata",
|
|
4791
|
+
expected: "(__type.o2 | undefined)",
|
|
4792
|
+
value: input.metadata
|
|
4793
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
4794
|
+
path: _path + ".automatic",
|
|
4795
|
+
expected: "(boolean | undefined)",
|
|
4796
|
+
value: input.automatic
|
|
4797
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
4798
|
+
path: _path + ".gatedContent",
|
|
4799
|
+
expected: "iClaimGatedContent",
|
|
4800
|
+
value: input.gatedContent
|
|
4801
|
+
})) && $vo10(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
4802
|
+
path: _path + ".gatedContent",
|
|
4803
|
+
expected: "iClaimGatedContent",
|
|
4804
|
+
value: input.gatedContent
|
|
4805
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4806
|
+
path: _path + ".name",
|
|
4807
|
+
expected: "string",
|
|
4808
|
+
value: input.name
|
|
4809
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4810
|
+
path: _path + ".description",
|
|
4811
|
+
expected: "string",
|
|
4812
|
+
value: input.description
|
|
4813
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4814
|
+
path: _path + ".image",
|
|
4815
|
+
expected: "string",
|
|
4816
|
+
value: input.image
|
|
4817
|
+
})].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
4818
|
+
path: _path + ".content",
|
|
4819
|
+
expected: "(string | undefined)",
|
|
4820
|
+
value: input.content
|
|
4821
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
4822
|
+
path: _path + ".url",
|
|
4823
|
+
expected: "(string | undefined)",
|
|
4824
|
+
value: input.url
|
|
4825
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
4826
|
+
path: _path + ".params",
|
|
4827
|
+
expected: "(__type.o3 | undefined)",
|
|
4828
|
+
value: input.params
|
|
4829
|
+
})) && $vo11(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
4830
|
+
path: _path + ".params",
|
|
4831
|
+
expected: "(__type.o3 | undefined)",
|
|
4832
|
+
value: input.params
|
|
4833
|
+
})].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4834
|
+
const value = input[key];
|
|
4835
|
+
if (undefined === value)
|
|
4836
|
+
return true;
|
|
4837
|
+
return true;
|
|
4838
|
+
}).every(flag => flag)].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4549
4839
|
path: _path + ".manualBalances",
|
|
4550
4840
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4551
4841
|
value: input.manualBalances
|
|
4552
|
-
})) && input.manualBalances.map((elem,
|
|
4553
|
-
path: _path + ".manualBalances[" +
|
|
4842
|
+
})) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4843
|
+
path: _path + ".manualBalances[" + _index16 + "]",
|
|
4554
4844
|
expected: "iManualBalances<NumberType>",
|
|
4555
4845
|
value: elem
|
|
4556
|
-
})) && $
|
|
4557
|
-
path: _path + ".manualBalances[" +
|
|
4846
|
+
})) && $vo13(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4847
|
+
path: _path + ".manualBalances[" + _index16 + "]",
|
|
4558
4848
|
expected: "iManualBalances<NumberType>",
|
|
4559
4849
|
value: elem
|
|
4560
4850
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4565,7 +4855,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4565
4855
|
path: _path + ".incrementedBalances",
|
|
4566
4856
|
expected: "iIncrementedBalances<NumberType>",
|
|
4567
4857
|
value: input.incrementedBalances
|
|
4568
|
-
})) && $
|
|
4858
|
+
})) && $vo14(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4569
4859
|
path: _path + ".incrementedBalances",
|
|
4570
4860
|
expected: "iIncrementedBalances<NumberType>",
|
|
4571
4861
|
value: input.incrementedBalances
|
|
@@ -4573,36 +4863,36 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4573
4863
|
path: _path + ".orderCalculationMethod",
|
|
4574
4864
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4575
4865
|
value: input.orderCalculationMethod
|
|
4576
|
-
})) && $
|
|
4866
|
+
})) && $vo15(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4577
4867
|
path: _path + ".orderCalculationMethod",
|
|
4578
4868
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4579
4869
|
value: input.orderCalculationMethod
|
|
4580
|
-
})].every(flag => flag); const $
|
|
4870
|
+
})].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4581
4871
|
path: _path + ".balances",
|
|
4582
4872
|
expected: "Array<iBalance<NumberType>>",
|
|
4583
4873
|
value: input.balances
|
|
4584
|
-
})) && input.balances.map((elem,
|
|
4585
|
-
path: _path + ".balances[" +
|
|
4874
|
+
})) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4875
|
+
path: _path + ".balances[" + _index17 + "]",
|
|
4586
4876
|
expected: "iBalance<NumberType>",
|
|
4587
4877
|
value: elem
|
|
4588
|
-
})) && $vo2(elem, _path + ".balances[" +
|
|
4589
|
-
path: _path + ".balances[" +
|
|
4878
|
+
})) && $vo2(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4879
|
+
path: _path + ".balances[" + _index17 + "]",
|
|
4590
4880
|
expected: "iBalance<NumberType>",
|
|
4591
4881
|
value: elem
|
|
4592
4882
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
4593
4883
|
path: _path + ".balances",
|
|
4594
4884
|
expected: "Array<iBalance<NumberType>>",
|
|
4595
4885
|
value: input.balances
|
|
4596
|
-
})].every(flag => flag); const $
|
|
4886
|
+
})].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4597
4887
|
path: _path + ".startBalances",
|
|
4598
4888
|
expected: "Array<iBalance<NumberType>>",
|
|
4599
4889
|
value: input.startBalances
|
|
4600
|
-
})) && input.startBalances.map((elem,
|
|
4601
|
-
path: _path + ".startBalances[" +
|
|
4890
|
+
})) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4891
|
+
path: _path + ".startBalances[" + _index18 + "]",
|
|
4602
4892
|
expected: "iBalance<NumberType>",
|
|
4603
4893
|
value: elem
|
|
4604
|
-
})) && $vo2(elem, _path + ".startBalances[" +
|
|
4605
|
-
path: _path + ".startBalances[" +
|
|
4894
|
+
})) && $vo2(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4895
|
+
path: _path + ".startBalances[" + _index18 + "]",
|
|
4606
4896
|
expected: "iBalance<NumberType>",
|
|
4607
4897
|
value: elem
|
|
4608
4898
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4617,7 +4907,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4617
4907
|
path: _path + ".incrementOwnershipTimesBy",
|
|
4618
4908
|
expected: "(bigint | number | string)",
|
|
4619
4909
|
value: input.incrementOwnershipTimesBy
|
|
4620
|
-
})].every(flag => flag); const $
|
|
4910
|
+
})].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4621
4911
|
path: _path + ".useOverallNumTransfers",
|
|
4622
4912
|
expected: "boolean",
|
|
4623
4913
|
value: input.useOverallNumTransfers
|
|
@@ -4961,6 +5251,45 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4961
5251
|
return Promise.reject(error);
|
|
4962
5252
|
}
|
|
4963
5253
|
}
|
|
5254
|
+
async getGatedContentForClaim(claimId) {
|
|
5255
|
+
try {
|
|
5256
|
+
const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
5257
|
+
if (false === __is(input)) {
|
|
5258
|
+
errors = [];
|
|
5259
|
+
$report = typia_1.default.validate.report(errors);
|
|
5260
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
5261
|
+
path: _path + "",
|
|
5262
|
+
expected: "GetGatedContentForClaimPayload",
|
|
5263
|
+
value: input
|
|
5264
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5265
|
+
path: _path + "",
|
|
5266
|
+
expected: "GetGatedContentForClaimPayload",
|
|
5267
|
+
value: input
|
|
5268
|
+
}))(input, "$input", true);
|
|
5269
|
+
const success = 0 === errors.length;
|
|
5270
|
+
return {
|
|
5271
|
+
success,
|
|
5272
|
+
errors,
|
|
5273
|
+
data: success ? input : undefined
|
|
5274
|
+
};
|
|
5275
|
+
}
|
|
5276
|
+
return {
|
|
5277
|
+
success: true,
|
|
5278
|
+
errors: [],
|
|
5279
|
+
data: input
|
|
5280
|
+
};
|
|
5281
|
+
}; })()({});
|
|
5282
|
+
if (!validateRes.success) {
|
|
5283
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5284
|
+
}
|
|
5285
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetGatedContentForClaimRoute(claimId)}`);
|
|
5286
|
+
return new requests_js_1.GetGatedContentForClaimSuccessResponse(response.data);
|
|
5287
|
+
}
|
|
5288
|
+
catch (error) {
|
|
5289
|
+
await this.handleApiError(error);
|
|
5290
|
+
return Promise.reject(error);
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
4964
5293
|
async updateUserSeenActivity() {
|
|
4965
5294
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
4966
5295
|
}
|
|
@@ -5011,7 +5340,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5011
5340
|
}
|
|
5012
5341
|
async createPlugin(payload) {
|
|
5013
5342
|
try {
|
|
5014
|
-
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); 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; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (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.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $iu0 = input => (() => {
|
|
5343
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); 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; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (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.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $iu0 = input => (() => {
|
|
5015
5344
|
if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
|
|
5016
5345
|
return $io4(input);
|
|
5017
5346
|
else if ("ownershipRequirements" === input.type || "attestations" === input.type)
|
|
@@ -5330,6 +5659,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5330
5659
|
path: _path + ".passTwitch",
|
|
5331
5660
|
expected: "(boolean | undefined)",
|
|
5332
5661
|
value: input.passTwitch
|
|
5662
|
+
}), undefined === input.passReddit || "boolean" === typeof input.passReddit || $report(_exceptionable, {
|
|
5663
|
+
path: _path + ".passReddit",
|
|
5664
|
+
expected: "(boolean | undefined)",
|
|
5665
|
+
value: input.passReddit
|
|
5333
5666
|
}), "string" === typeof input.postProcessingJs || $report(_exceptionable, {
|
|
5334
5667
|
path: _path + ".postProcessingJs",
|
|
5335
5668
|
expected: "string",
|
|
@@ -5404,7 +5737,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5404
5737
|
}
|
|
5405
5738
|
async updatePlugin(payload) {
|
|
5406
5739
|
try {
|
|
5407
|
-
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); 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) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (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.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $iu0 = input => (() => {
|
|
5740
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); 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) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (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.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $iu0 = input => (() => {
|
|
5408
5741
|
if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
|
|
5409
5742
|
return $io5(input);
|
|
5410
5743
|
else if ("ownershipRequirements" === input.type || "attestations" === input.type)
|
|
@@ -5759,6 +6092,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5759
6092
|
path: _path + ".passTwitch",
|
|
5760
6093
|
expected: "(boolean | undefined)",
|
|
5761
6094
|
value: input.passTwitch
|
|
6095
|
+
}), undefined === input.passReddit || "boolean" === typeof input.passReddit || $report(_exceptionable, {
|
|
6096
|
+
path: _path + ".passReddit",
|
|
6097
|
+
expected: "(boolean | undefined)",
|
|
6098
|
+
value: input.passReddit
|
|
5762
6099
|
}), "string" === typeof input.postProcessingJs || $report(_exceptionable, {
|
|
5763
6100
|
path: _path + ".postProcessingJs",
|
|
5764
6101
|
expected: "string",
|
|
@@ -6887,26 +7224,31 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6887
7224
|
if ("number" === typeof Number(key))
|
|
6888
7225
|
return "number" === typeof value;
|
|
6889
7226
|
return true;
|
|
6890
|
-
}); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $
|
|
7227
|
+
}); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io21(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io12(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io13(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)); const $io10 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))); const $io11 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io12 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io13 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io14 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io15(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io15(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io15(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata)); const $io15 = input => Object.keys(input).every(key => {
|
|
6891
7228
|
const value = input[key];
|
|
6892
7229
|
if (undefined === value)
|
|
6893
7230
|
return true;
|
|
6894
7231
|
return true;
|
|
6895
|
-
}); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io17 = input => "string" === typeof input.
|
|
7232
|
+
}); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io17 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io19(input.gatedContent)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io19 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io20(input.params)); const $io20 = input => Object.keys(input).every(key => {
|
|
7233
|
+
const value = input[key];
|
|
7234
|
+
if (undefined === value)
|
|
7235
|
+
return true;
|
|
7236
|
+
return true;
|
|
7237
|
+
}); const $io21 = 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) && $io22(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io23(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io25(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io22 = input => Object.keys(input).every(key => {
|
|
6896
7238
|
const value = input[key];
|
|
6897
7239
|
if (undefined === value)
|
|
6898
7240
|
return true;
|
|
6899
7241
|
return "string" === typeof value;
|
|
6900
|
-
}); const $
|
|
7242
|
+
}); const $io23 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io24 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io25 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
|
|
6901
7243
|
path: _path + ".approvalDetails",
|
|
6902
7244
|
expected: "Array<__type>",
|
|
6903
7245
|
value: input.approvalDetails
|
|
6904
|
-
})) && input.approvalDetails.map((elem,
|
|
6905
|
-
path: _path + ".approvalDetails[" +
|
|
7246
|
+
})) && input.approvalDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7247
|
+
path: _path + ".approvalDetails[" + _index15 + "]",
|
|
6906
7248
|
expected: "__type",
|
|
6907
7249
|
value: elem
|
|
6908
|
-
})) && $vo1(elem, _path + ".approvalDetails[" +
|
|
6909
|
-
path: _path + ".approvalDetails[" +
|
|
7250
|
+
})) && $vo1(elem, _path + ".approvalDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7251
|
+
path: _path + ".approvalDetails[" + _index15 + "]",
|
|
6910
7252
|
expected: "__type",
|
|
6911
7253
|
value: elem
|
|
6912
7254
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6925,12 +7267,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6925
7267
|
path: _path + ".challengeInfoDetails",
|
|
6926
7268
|
expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
|
|
6927
7269
|
value: input.challengeInfoDetails
|
|
6928
|
-
})) && input.challengeInfoDetails.map((elem,
|
|
6929
|
-
path: _path + ".challengeInfoDetails[" +
|
|
7270
|
+
})) && input.challengeInfoDetails.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7271
|
+
path: _path + ".challengeInfoDetails[" + _index16 + "]",
|
|
6930
7272
|
expected: "iChallengeInfoDetails<NumberType>",
|
|
6931
7273
|
value: elem
|
|
6932
|
-
})) && $vo2(elem, _path + ".challengeInfoDetails[" +
|
|
6933
|
-
path: _path + ".challengeInfoDetails[" +
|
|
7274
|
+
})) && $vo2(elem, _path + ".challengeInfoDetails[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7275
|
+
path: _path + ".challengeInfoDetails[" + _index16 + "]",
|
|
6934
7276
|
expected: "iChallengeInfoDetails<NumberType>",
|
|
6935
7277
|
value: elem
|
|
6936
7278
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6957,8 +7299,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6957
7299
|
path: _path + ".leaves",
|
|
6958
7300
|
expected: "Array<string>",
|
|
6959
7301
|
value: input.leaves
|
|
6960
|
-
})) && input.leaves.map((elem,
|
|
6961
|
-
path: _path + ".leaves[" +
|
|
7302
|
+
})) && input.leaves.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
|
|
7303
|
+
path: _path + ".leaves[" + _index17 + "]",
|
|
6962
7304
|
expected: "string",
|
|
6963
7305
|
value: elem
|
|
6964
7306
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6973,8 +7315,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6973
7315
|
path: _path + ".preimages",
|
|
6974
7316
|
expected: "(Array<string> | undefined)",
|
|
6975
7317
|
value: input.preimages
|
|
6976
|
-
})) && input.preimages.map((elem,
|
|
6977
|
-
path: _path + ".preimages[" +
|
|
7318
|
+
})) && input.preimages.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable, {
|
|
7319
|
+
path: _path + ".preimages[" + _index18 + "]",
|
|
6978
7320
|
expected: "string",
|
|
6979
7321
|
value: elem
|
|
6980
7322
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7118,18 +7460,42 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7118
7460
|
path: _path + ".plugins",
|
|
7119
7461
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
7120
7462
|
value: input.plugins
|
|
7121
|
-
})) && input.plugins.map((elem,
|
|
7122
|
-
path: _path + ".plugins[" +
|
|
7463
|
+
})) && input.plugins.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7464
|
+
path: _path + ".plugins[" + _index19 + "]",
|
|
7123
7465
|
expected: "IntegrationPluginDetails<string>",
|
|
7124
7466
|
value: elem
|
|
7125
|
-
})) && $vo14(elem, _path + ".plugins[" +
|
|
7126
|
-
path: _path + ".plugins[" +
|
|
7467
|
+
})) && $vo14(elem, _path + ".plugins[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7468
|
+
path: _path + ".plugins[" + _index19 + "]",
|
|
7127
7469
|
expected: "IntegrationPluginDetails<string>",
|
|
7128
7470
|
value: elem
|
|
7129
7471
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7130
7472
|
path: _path + ".plugins",
|
|
7131
7473
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
7132
7474
|
value: input.plugins
|
|
7475
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
7476
|
+
path: _path + ".rewards",
|
|
7477
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
7478
|
+
value: input.rewards
|
|
7479
|
+
})) && input.rewards.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7480
|
+
path: _path + ".rewards[" + _index20 + "]",
|
|
7481
|
+
expected: "iClaimReward<NumberType>",
|
|
7482
|
+
value: elem
|
|
7483
|
+
})) && $vo17(elem, _path + ".rewards[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7484
|
+
path: _path + ".rewards[" + _index20 + "]",
|
|
7485
|
+
expected: "iClaimReward<NumberType>",
|
|
7486
|
+
value: elem
|
|
7487
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
7488
|
+
path: _path + ".rewards",
|
|
7489
|
+
expected: "(Array<iClaimReward<NumberType>> | undefined)",
|
|
7490
|
+
value: input.rewards
|
|
7491
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
7492
|
+
path: _path + ".estimatedCost",
|
|
7493
|
+
expected: "(string | undefined)",
|
|
7494
|
+
value: input.estimatedCost
|
|
7495
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
7496
|
+
path: _path + ".estimatedTime",
|
|
7497
|
+
expected: "(string | undefined)",
|
|
7498
|
+
value: input.estimatedTime
|
|
7133
7499
|
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
7134
7500
|
path: _path + ".manualDistribution",
|
|
7135
7501
|
expected: "(boolean | undefined)",
|
|
@@ -7146,7 +7512,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7146
7512
|
path: _path + ".metadata",
|
|
7147
7513
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
7148
7514
|
value: input.metadata
|
|
7149
|
-
})) && $
|
|
7515
|
+
})) && $vo21(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
7150
7516
|
path: _path + ".metadata",
|
|
7151
7517
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
7152
7518
|
value: input.metadata
|
|
@@ -7166,12 +7532,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7166
7532
|
path: _path + ".manualBalances",
|
|
7167
7533
|
expected: "Array<iManualBalances<NumberType>>",
|
|
7168
7534
|
value: input.manualBalances
|
|
7169
|
-
})) && input.manualBalances.map((elem,
|
|
7170
|
-
path: _path + ".manualBalances[" +
|
|
7535
|
+
})) && input.manualBalances.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7536
|
+
path: _path + ".manualBalances[" + _index21 + "]",
|
|
7171
7537
|
expected: "iManualBalances<NumberType>",
|
|
7172
7538
|
value: elem
|
|
7173
|
-
})) && $vo9(elem, _path + ".manualBalances[" +
|
|
7174
|
-
path: _path + ".manualBalances[" +
|
|
7539
|
+
})) && $vo9(elem, _path + ".manualBalances[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7540
|
+
path: _path + ".manualBalances[" + _index21 + "]",
|
|
7175
7541
|
expected: "iManualBalances<NumberType>",
|
|
7176
7542
|
value: elem
|
|
7177
7543
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7198,12 +7564,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7198
7564
|
path: _path + ".balances",
|
|
7199
7565
|
expected: "Array<iBalance<NumberType>>",
|
|
7200
7566
|
value: input.balances
|
|
7201
|
-
})) && input.balances.map((elem,
|
|
7202
|
-
path: _path + ".balances[" +
|
|
7567
|
+
})) && input.balances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7568
|
+
path: _path + ".balances[" + _index22 + "]",
|
|
7203
7569
|
expected: "iBalance<NumberType>",
|
|
7204
7570
|
value: elem
|
|
7205
|
-
})) && $vo10(elem, _path + ".balances[" +
|
|
7206
|
-
path: _path + ".balances[" +
|
|
7571
|
+
})) && $vo10(elem, _path + ".balances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7572
|
+
path: _path + ".balances[" + _index22 + "]",
|
|
7207
7573
|
expected: "iBalance<NumberType>",
|
|
7208
7574
|
value: elem
|
|
7209
7575
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7218,12 +7584,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7218
7584
|
path: _path + ".badgeIds",
|
|
7219
7585
|
expected: "Array<iUintRange<NumberType>>",
|
|
7220
7586
|
value: input.badgeIds
|
|
7221
|
-
})) && input.badgeIds.map((elem,
|
|
7222
|
-
path: _path + ".badgeIds[" +
|
|
7587
|
+
})) && input.badgeIds.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7588
|
+
path: _path + ".badgeIds[" + _index23 + "]",
|
|
7223
7589
|
expected: "iUintRange<NumberType>",
|
|
7224
7590
|
value: elem
|
|
7225
|
-
})) && $vo11(elem, _path + ".badgeIds[" +
|
|
7226
|
-
path: _path + ".badgeIds[" +
|
|
7591
|
+
})) && $vo11(elem, _path + ".badgeIds[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7592
|
+
path: _path + ".badgeIds[" + _index23 + "]",
|
|
7227
7593
|
expected: "iUintRange<NumberType>",
|
|
7228
7594
|
value: elem
|
|
7229
7595
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7234,12 +7600,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7234
7600
|
path: _path + ".ownershipTimes",
|
|
7235
7601
|
expected: "Array<iUintRange<NumberType>>",
|
|
7236
7602
|
value: input.ownershipTimes
|
|
7237
|
-
})) && input.ownershipTimes.map((elem,
|
|
7238
|
-
path: _path + ".ownershipTimes[" +
|
|
7603
|
+
})) && input.ownershipTimes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7604
|
+
path: _path + ".ownershipTimes[" + _index24 + "]",
|
|
7239
7605
|
expected: "iUintRange<NumberType>",
|
|
7240
7606
|
value: elem
|
|
7241
|
-
})) && $vo11(elem, _path + ".ownershipTimes[" +
|
|
7242
|
-
path: _path + ".ownershipTimes[" +
|
|
7607
|
+
})) && $vo11(elem, _path + ".ownershipTimes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7608
|
+
path: _path + ".ownershipTimes[" + _index24 + "]",
|
|
7243
7609
|
expected: "iUintRange<NumberType>",
|
|
7244
7610
|
value: elem
|
|
7245
7611
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7258,12 +7624,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7258
7624
|
path: _path + ".startBalances",
|
|
7259
7625
|
expected: "Array<iBalance<NumberType>>",
|
|
7260
7626
|
value: input.startBalances
|
|
7261
|
-
})) && input.startBalances.map((elem,
|
|
7262
|
-
path: _path + ".startBalances[" +
|
|
7627
|
+
})) && input.startBalances.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7628
|
+
path: _path + ".startBalances[" + _index25 + "]",
|
|
7263
7629
|
expected: "iBalance<NumberType>",
|
|
7264
7630
|
value: elem
|
|
7265
|
-
})) && $vo10(elem, _path + ".startBalances[" +
|
|
7266
|
-
path: _path + ".startBalances[" +
|
|
7631
|
+
})) && $vo10(elem, _path + ".startBalances[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7632
|
+
path: _path + ".startBalances[" + _index25 + "]",
|
|
7267
7633
|
expected: "iBalance<NumberType>",
|
|
7268
7634
|
value: elem
|
|
7269
7635
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7387,7 +7753,68 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7387
7753
|
path: _path + ".image",
|
|
7388
7754
|
expected: "(string | undefined)",
|
|
7389
7755
|
value: input.image
|
|
7390
|
-
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
7756
|
+
})].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
7757
|
+
path: _path + ".rewardId",
|
|
7758
|
+
expected: "string",
|
|
7759
|
+
value: input.rewardId
|
|
7760
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
7761
|
+
path: _path + ".instanceId",
|
|
7762
|
+
expected: "string",
|
|
7763
|
+
value: input.instanceId
|
|
7764
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
7765
|
+
path: _path + ".metadata",
|
|
7766
|
+
expected: "(__type.o2 | undefined)",
|
|
7767
|
+
value: input.metadata
|
|
7768
|
+
})) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
7769
|
+
path: _path + ".metadata",
|
|
7770
|
+
expected: "(__type.o2 | undefined)",
|
|
7771
|
+
value: input.metadata
|
|
7772
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
7773
|
+
path: _path + ".automatic",
|
|
7774
|
+
expected: "(boolean | undefined)",
|
|
7775
|
+
value: input.automatic
|
|
7776
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
7777
|
+
path: _path + ".gatedContent",
|
|
7778
|
+
expected: "iClaimGatedContent",
|
|
7779
|
+
value: input.gatedContent
|
|
7780
|
+
})) && $vo19(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
7781
|
+
path: _path + ".gatedContent",
|
|
7782
|
+
expected: "iClaimGatedContent",
|
|
7783
|
+
value: input.gatedContent
|
|
7784
|
+
})].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7785
|
+
path: _path + ".name",
|
|
7786
|
+
expected: "string",
|
|
7787
|
+
value: input.name
|
|
7788
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
7789
|
+
path: _path + ".description",
|
|
7790
|
+
expected: "string",
|
|
7791
|
+
value: input.description
|
|
7792
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
7793
|
+
path: _path + ".image",
|
|
7794
|
+
expected: "string",
|
|
7795
|
+
value: input.image
|
|
7796
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
7797
|
+
path: _path + ".content",
|
|
7798
|
+
expected: "(string | undefined)",
|
|
7799
|
+
value: input.content
|
|
7800
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
7801
|
+
path: _path + ".url",
|
|
7802
|
+
expected: "(string | undefined)",
|
|
7803
|
+
value: input.url
|
|
7804
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
7805
|
+
path: _path + ".params",
|
|
7806
|
+
expected: "(__type.o3 | undefined)",
|
|
7807
|
+
value: input.params
|
|
7808
|
+
})) && $vo20(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
7809
|
+
path: _path + ".params",
|
|
7810
|
+
expected: "(__type.o3 | undefined)",
|
|
7811
|
+
value: input.params
|
|
7812
|
+
})].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7813
|
+
const value = input[key];
|
|
7814
|
+
if (undefined === value)
|
|
7815
|
+
return true;
|
|
7816
|
+
return true;
|
|
7817
|
+
}).every(flag => flag)].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7391
7818
|
path: _path + ".name",
|
|
7392
7819
|
expected: "string",
|
|
7393
7820
|
value: input.name
|
|
@@ -7415,8 +7842,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7415
7842
|
path: _path + ".tags",
|
|
7416
7843
|
expected: "(Array<string> | undefined)",
|
|
7417
7844
|
value: input.tags
|
|
7418
|
-
})) && input.tags.map((elem,
|
|
7419
|
-
path: _path + ".tags[" +
|
|
7845
|
+
})) && input.tags.map((elem, _index26) => "string" === typeof elem || $report(_exceptionable, {
|
|
7846
|
+
path: _path + ".tags[" + _index26 + "]",
|
|
7420
7847
|
expected: "string",
|
|
7421
7848
|
value: elem
|
|
7422
7849
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -7425,31 +7852,31 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7425
7852
|
value: input.tags
|
|
7426
7853
|
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
7427
7854
|
path: _path + ".socials",
|
|
7428
|
-
expected: "(__type.
|
|
7855
|
+
expected: "(__type.o4 | undefined)",
|
|
7429
7856
|
value: input.socials
|
|
7430
|
-
})) && $
|
|
7857
|
+
})) && $vo22(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
7431
7858
|
path: _path + ".socials",
|
|
7432
|
-
expected: "(__type.
|
|
7859
|
+
expected: "(__type.o4 | undefined)",
|
|
7433
7860
|
value: input.socials
|
|
7434
7861
|
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
7435
7862
|
path: _path + ".offChainTransferabilityInfo",
|
|
7436
|
-
expected: "(__type.
|
|
7863
|
+
expected: "(__type.o5 | undefined)",
|
|
7437
7864
|
value: input.offChainTransferabilityInfo
|
|
7438
|
-
})) && $
|
|
7865
|
+
})) && $vo23(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
7439
7866
|
path: _path + ".offChainTransferabilityInfo",
|
|
7440
|
-
expected: "(__type.
|
|
7867
|
+
expected: "(__type.o5 | undefined)",
|
|
7441
7868
|
value: input.offChainTransferabilityInfo
|
|
7442
7869
|
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
7443
7870
|
path: _path + ".attributes",
|
|
7444
7871
|
expected: "(Array<__type>.o1 | undefined)",
|
|
7445
7872
|
value: input.attributes
|
|
7446
|
-
})) && input.attributes.map((elem,
|
|
7447
|
-
path: _path + ".attributes[" +
|
|
7448
|
-
expected: "__type.
|
|
7873
|
+
})) && input.attributes.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7874
|
+
path: _path + ".attributes[" + _index27 + "]",
|
|
7875
|
+
expected: "__type.o6",
|
|
7449
7876
|
value: elem
|
|
7450
|
-
})) && $
|
|
7451
|
-
path: _path + ".attributes[" +
|
|
7452
|
-
expected: "__type.
|
|
7877
|
+
})) && $vo24(elem, _path + ".attributes[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7878
|
+
path: _path + ".attributes[" + _index27 + "]",
|
|
7879
|
+
expected: "__type.o6",
|
|
7453
7880
|
value: elem
|
|
7454
7881
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7455
7882
|
path: _path + ".attributes",
|
|
@@ -7459,13 +7886,13 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7459
7886
|
path: _path + ".utility",
|
|
7460
7887
|
expected: "(Array<__type>.o2 | undefined)",
|
|
7461
7888
|
value: input.utility
|
|
7462
|
-
})) && input.utility.map((elem,
|
|
7463
|
-
path: _path + ".utility[" +
|
|
7464
|
-
expected: "__type.
|
|
7889
|
+
})) && input.utility.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
7890
|
+
path: _path + ".utility[" + _index28 + "]",
|
|
7891
|
+
expected: "__type.o7",
|
|
7465
7892
|
value: elem
|
|
7466
|
-
})) && $
|
|
7467
|
-
path: _path + ".utility[" +
|
|
7468
|
-
expected: "__type.
|
|
7893
|
+
})) && $vo25(elem, _path + ".utility[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
7894
|
+
path: _path + ".utility[" + _index28 + "]",
|
|
7895
|
+
expected: "__type.o7",
|
|
7469
7896
|
value: elem
|
|
7470
7897
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
7471
7898
|
path: _path + ".utility",
|
|
@@ -7483,7 +7910,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7483
7910
|
path: _path + "._isUpdating",
|
|
7484
7911
|
expected: "(boolean | undefined)",
|
|
7485
7912
|
value: input._isUpdating
|
|
7486
|
-
})].every(flag => flag); const $
|
|
7913
|
+
})].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
7487
7914
|
const value = input[key];
|
|
7488
7915
|
if (undefined === value)
|
|
7489
7916
|
return true;
|
|
@@ -7492,7 +7919,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7492
7919
|
expected: "string",
|
|
7493
7920
|
value: value
|
|
7494
7921
|
});
|
|
7495
|
-
}).every(flag => flag)].every(flag => flag); const $
|
|
7922
|
+
}).every(flag => flag)].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
7496
7923
|
path: _path + ".host",
|
|
7497
7924
|
expected: "string",
|
|
7498
7925
|
value: input.host
|
|
@@ -7500,7 +7927,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7500
7927
|
path: _path + ".assignMethod",
|
|
7501
7928
|
expected: "string",
|
|
7502
7929
|
value: input.assignMethod
|
|
7503
|
-
})].every(flag => flag); const $
|
|
7930
|
+
})].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
7504
7931
|
path: _path + ".type",
|
|
7505
7932
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7506
7933
|
value: input.type
|
|
@@ -7512,7 +7939,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7512
7939
|
path: _path + ".value",
|
|
7513
7940
|
expected: "(boolean | number | string)",
|
|
7514
7941
|
value: input.value
|
|
7515
|
-
})].every(flag => flag); const $
|
|
7942
|
+
})].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
7516
7943
|
path: _path + ".name",
|
|
7517
7944
|
expected: "string",
|
|
7518
7945
|
value: input.name
|
|
@@ -7669,7 +8096,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7669
8096
|
}
|
|
7670
8097
|
async signOut(payload) {
|
|
7671
8098
|
try {
|
|
7672
|
-
const validateRes = (() => { 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) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
8099
|
+
const validateRes = (() => { 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) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
7673
8100
|
path: _path + ".signOutBlockin",
|
|
7674
8101
|
expected: "boolean",
|
|
7675
8102
|
value: input.signOutBlockin
|
|
@@ -7701,6 +8128,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7701
8128
|
path: _path + ".signOutYoutube",
|
|
7702
8129
|
expected: "(boolean | undefined)",
|
|
7703
8130
|
value: input.signOutYoutube
|
|
8131
|
+
}), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
|
|
8132
|
+
path: _path + ".signOutReddit",
|
|
8133
|
+
expected: "(boolean | undefined)",
|
|
8134
|
+
value: input.signOutReddit
|
|
7704
8135
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
7705
8136
|
if (false === __is(input)) {
|
|
7706
8137
|
errors = [];
|