bitbadgesjs-sdk 0.11.2 → 0.12.0-beta.1
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.js +120 -72
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +204 -108
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.d.ts +1 -0
- package/dist/cjs/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.js +2 -1
- package/dist/cjs/api-indexer/docs/activity.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +4 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +22 -18
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +2 -0
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +29 -2
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +89 -16
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/cjs/core/balances.d.ts +3 -3
- package/dist/cjs/core/balances.d.ts.map +1 -1
- package/dist/cjs/core/balances.js +5 -5
- package/dist/cjs/core/balances.js.map +1 -1
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.d.ts.map +1 -1
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/subscriptions.d.ts +12 -0
- package/dist/cjs/core/subscriptions.d.ts.map +1 -0
- package/dist/cjs/core/subscriptions.js +218 -0
- package/dist/cjs/core/subscriptions.js.map +1 -0
- package/dist/cjs/core/transfers.d.ts +6 -3
- package/dist/cjs/core/transfers.d.ts.map +1 -1
- package/dist/cjs/core/transfers.js +29 -18
- package/dist/cjs/core/transfers.js.map +1 -1
- package/dist/cjs/core/transfers.spec.js +4 -4
- package/dist/cjs/core/transfers.spec.js.map +1 -1
- package/dist/cjs/interfaces/badges/approvals.d.ts +14 -1
- package/dist/cjs/interfaces/badges/approvals.d.ts.map +1 -1
- package/dist/cjs/interfaces/badges/core.d.ts +1 -0
- package/dist/cjs/interfaces/badges/core.d.ts.map +1 -1
- package/dist/cjs/proto/badges/transfers_pb.d.ts +32 -1
- package/dist/cjs/proto/badges/transfers_pb.d.ts.map +1 -1
- package/dist/cjs/proto/badges/transfers_pb.js +68 -3
- package/dist/cjs/proto/badges/transfers_pb.js.map +1 -1
- package/dist/cjs/transactions/eip712/payload/samples/getSampleMsg.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/samples/getSampleMsg.js +87 -10
- package/dist/cjs/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
- package/dist/cjs/transactions/messages/base.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/base.js +2 -1
- package/dist/cjs/transactions/messages/base.js.map +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +120 -72
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +204 -108
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/activity.d.ts +1 -0
- package/dist/esm/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/activity.js +3 -1
- package/dist/esm/api-indexer/docs/activity.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +4 -1
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +7 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +2 -0
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +29 -2
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +96 -16
- package/dist/esm/core/approvals.js.map +1 -1
- package/dist/esm/core/balances.d.ts +3 -3
- package/dist/esm/core/balances.d.ts.map +1 -1
- package/dist/esm/core/balances.js +5 -5
- package/dist/esm/core/balances.js.map +1 -1
- package/dist/esm/core/index.d.ts +1 -0
- package/dist/esm/core/index.d.ts.map +1 -1
- package/dist/esm/core/index.js +1 -0
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/subscriptions.d.ts +12 -0
- package/dist/esm/core/subscriptions.d.ts.map +1 -0
- package/dist/esm/core/subscriptions.js +209 -0
- package/dist/esm/core/subscriptions.js.map +1 -0
- package/dist/esm/core/transfers.d.ts +6 -3
- package/dist/esm/core/transfers.d.ts.map +1 -1
- package/dist/esm/core/transfers.js +33 -20
- package/dist/esm/core/transfers.js.map +1 -1
- package/dist/esm/core/transfers.spec.js +4 -4
- package/dist/esm/core/transfers.spec.js.map +1 -1
- package/dist/esm/interfaces/badges/approvals.d.ts +14 -1
- package/dist/esm/interfaces/badges/approvals.d.ts.map +1 -1
- package/dist/esm/interfaces/badges/core.d.ts +1 -0
- package/dist/esm/interfaces/badges/core.d.ts.map +1 -1
- package/dist/esm/proto/badges/transfers_pb.d.ts +32 -1
- package/dist/esm/proto/badges/transfers_pb.d.ts.map +1 -1
- package/dist/esm/proto/badges/transfers_pb.js +68 -2
- package/dist/esm/proto/badges/transfers_pb.js.map +1 -1
- package/dist/esm/transactions/eip712/payload/samples/getSampleMsg.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/samples/getSampleMsg.js +88 -11
- package/dist/esm/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
- package/dist/esm/transactions/messages/base.d.ts.map +1 -1
- package/dist/esm/transactions/messages/base.js +2 -1
- package/dist/esm/transactions/messages/base.js.map +1 -1
- package/dist/esm/tsconfig-esm.build.tsbuildinfo +1 -1
- package/package.json +4 -1
|
@@ -253,22 +253,22 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
253
253
|
}
|
|
254
254
|
static async CreateAddressList(api, payload) {
|
|
255
255
|
try {
|
|
256
|
-
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.uri && "string" === typeof input.customData && "boolean" === typeof input.whitelist && "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata &&
|
|
256
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.uri && "string" === typeof input.customData && "boolean" === typeof input.whitelist && "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io26(input.metadata)); const _io2 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io3(input.metadata)) && "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && _io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (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.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && _io20(input.satisfyMethod)) && (undefined === input.cachePolicy || "object" === typeof input.cachePolicy && null !== input.cachePolicy && false === Array.isArray(input.cachePolicy) && _io22(input.cachePolicy)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && _io23(elem))); const _io3 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && _io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && _io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && _io7(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 _io4 = input => Object.keys(input).every(key => {
|
|
257
257
|
const value = input[key];
|
|
258
258
|
if (undefined === value)
|
|
259
259
|
return true;
|
|
260
260
|
return "string" === typeof value;
|
|
261
|
-
}); const _io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const _io6 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io7 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); 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 &&
|
|
261
|
+
}); const _io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const _io6 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io7 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); 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 && _io14(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) && ("string" === typeof input.durationFromTimestamp || "number" === typeof input.durationFromTimestamp || "bigint" === typeof input.durationFromTimestamp) && "boolean" === typeof input.allowOverrideTimestamp && ("object" === typeof input.recurringOwnershipTimes && null !== input.recurringOwnershipTimes && _io13(input.recurringOwnershipTimes)); const _io13 = input => ("string" === typeof input.startTime || "number" === typeof input.startTime || "bigint" === typeof input.startTime) && ("string" === typeof input.intervalLength || "number" === typeof input.intervalLength || "bigint" === typeof input.intervalLength) && ("string" === typeof input.chargePeriodLength || "number" === typeof input.chargePeriodLength || "bigint" === typeof input.chargePeriodLength); const _io14 = 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 _io15 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io16(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && _io17(input.gatedContent)) && (undefined === input.calculationMethod || "object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) && _io19(input.calculationMethod)); const _io16 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const _io17 = 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) && _io18(input.params)); const _io18 = input => Object.keys(input).every(key => {
|
|
262
262
|
const value = input[key];
|
|
263
263
|
if (undefined === value)
|
|
264
264
|
return true;
|
|
265
265
|
return true;
|
|
266
|
-
}); const
|
|
266
|
+
}); const _io19 = input => (undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow) && (undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses); const _io20 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io20(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io21(input.options)); const _io21 = input => undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied; const _io22 = input => (undefined === input.ttl || "string" === typeof input.ttl || "number" === typeof input.ttl || "bigint" === typeof input.ttl) && (undefined === input.alwaysPermanent || "boolean" === typeof input.alwaysPermanent) && (undefined === input.permanentAfter || "string" === typeof input.permanentAfter || "number" === typeof input.permanentAfter || "bigint" === typeof input.permanentAfter); const _io23 = input => (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && _io24(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) && _io24(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && _io24(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io25(input.metadata)); const _io24 = input => Object.keys(input).every(key => {
|
|
267
267
|
const value = input[key];
|
|
268
268
|
if (undefined === value)
|
|
269
269
|
return true;
|
|
270
270
|
return true;
|
|
271
|
-
}); const
|
|
271
|
+
}); const _io25 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const _io26 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && _io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && _io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && _io7(elem))); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || _report(_exceptionable, {
|
|
272
272
|
path: _path + ".addressLists",
|
|
273
273
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
274
274
|
value: input.addressLists
|
|
@@ -336,7 +336,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
336
336
|
path: _path + ".metadata",
|
|
337
337
|
expected: "(iMetadataWithoutInternals<T> | undefined)",
|
|
338
338
|
value: input.metadata
|
|
339
|
-
})) &&
|
|
339
|
+
})) && _vo26(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
340
340
|
path: _path + ".metadata",
|
|
341
341
|
expected: "(iMetadataWithoutInternals<T> | undefined)",
|
|
342
342
|
value: input.metadata
|
|
@@ -376,7 +376,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
376
376
|
path: _path + ".rewards[" + _index22 + "]",
|
|
377
377
|
expected: "iClaimReward<NumberType>",
|
|
378
378
|
value: elem
|
|
379
|
-
})) &&
|
|
379
|
+
})) && _vo15(elem, _path + ".rewards[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
380
380
|
path: _path + ".rewards[" + _index22 + "]",
|
|
381
381
|
expected: "iClaimReward<NumberType>",
|
|
382
382
|
value: elem
|
|
@@ -428,7 +428,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
428
428
|
path: _path + ".satisfyMethod",
|
|
429
429
|
expected: "(iSatisfyMethod | undefined)",
|
|
430
430
|
value: input.satisfyMethod
|
|
431
|
-
})) &&
|
|
431
|
+
})) && _vo20(input.satisfyMethod, _path + ".satisfyMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
432
432
|
path: _path + ".satisfyMethod",
|
|
433
433
|
expected: "(iSatisfyMethod | undefined)",
|
|
434
434
|
value: input.satisfyMethod
|
|
@@ -436,7 +436,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
436
436
|
path: _path + ".cachePolicy",
|
|
437
437
|
expected: "(iClaimCachePolicy<NumberType> | undefined)",
|
|
438
438
|
value: input.cachePolicy
|
|
439
|
-
})) &&
|
|
439
|
+
})) && _vo22(input.cachePolicy, _path + ".cachePolicy", true && _exceptionable) || _report(_exceptionable, {
|
|
440
440
|
path: _path + ".cachePolicy",
|
|
441
441
|
expected: "(iClaimCachePolicy<NumberType> | undefined)",
|
|
442
442
|
value: input.cachePolicy
|
|
@@ -452,7 +452,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
452
452
|
path: _path + ".plugins[" + _index24 + "]",
|
|
453
453
|
expected: "ManagePluginRequest",
|
|
454
454
|
value: elem
|
|
455
|
-
})) &&
|
|
455
|
+
})) && _vo23(elem, _path + ".plugins[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
456
456
|
path: _path + ".plugins[" + _index24 + "]",
|
|
457
457
|
expected: "ManagePluginRequest",
|
|
458
458
|
value: elem
|
|
@@ -633,7 +633,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
633
633
|
path: _path + ".orderCalculationMethod",
|
|
634
634
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
635
635
|
value: input.orderCalculationMethod
|
|
636
|
-
})) &&
|
|
636
|
+
})) && _vo14(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
637
637
|
path: _path + ".orderCalculationMethod",
|
|
638
638
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
639
639
|
value: input.orderCalculationMethod
|
|
@@ -721,11 +721,35 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
721
721
|
path: _path + ".incrementOwnershipTimesBy",
|
|
722
722
|
expected: "(bigint | number | string)",
|
|
723
723
|
value: input.incrementOwnershipTimesBy
|
|
724
|
-
}), "string" === typeof input.
|
|
725
|
-
path: _path + ".
|
|
724
|
+
}), "string" === typeof input.durationFromTimestamp || "number" === typeof input.durationFromTimestamp || "bigint" === typeof input.durationFromTimestamp || _report(_exceptionable, {
|
|
725
|
+
path: _path + ".durationFromTimestamp",
|
|
726
|
+
expected: "(bigint | number | string)",
|
|
727
|
+
value: input.durationFromTimestamp
|
|
728
|
+
}), "boolean" === typeof input.allowOverrideTimestamp || _report(_exceptionable, {
|
|
729
|
+
path: _path + ".allowOverrideTimestamp",
|
|
730
|
+
expected: "boolean",
|
|
731
|
+
value: input.allowOverrideTimestamp
|
|
732
|
+
}), ("object" === typeof input.recurringOwnershipTimes && null !== input.recurringOwnershipTimes || _report(_exceptionable, {
|
|
733
|
+
path: _path + ".recurringOwnershipTimes",
|
|
734
|
+
expected: "iRecurringOwnershipTimes<NumberType>",
|
|
735
|
+
value: input.recurringOwnershipTimes
|
|
736
|
+
})) && _vo13(input.recurringOwnershipTimes, _path + ".recurringOwnershipTimes", true && _exceptionable) || _report(_exceptionable, {
|
|
737
|
+
path: _path + ".recurringOwnershipTimes",
|
|
738
|
+
expected: "iRecurringOwnershipTimes<NumberType>",
|
|
739
|
+
value: input.recurringOwnershipTimes
|
|
740
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.startTime || "number" === typeof input.startTime || "bigint" === typeof input.startTime || _report(_exceptionable, {
|
|
741
|
+
path: _path + ".startTime",
|
|
726
742
|
expected: "(bigint | number | string)",
|
|
727
|
-
value: input.
|
|
728
|
-
})
|
|
743
|
+
value: input.startTime
|
|
744
|
+
}), "string" === typeof input.intervalLength || "number" === typeof input.intervalLength || "bigint" === typeof input.intervalLength || _report(_exceptionable, {
|
|
745
|
+
path: _path + ".intervalLength",
|
|
746
|
+
expected: "(bigint | number | string)",
|
|
747
|
+
value: input.intervalLength
|
|
748
|
+
}), "string" === typeof input.chargePeriodLength || "number" === typeof input.chargePeriodLength || "bigint" === typeof input.chargePeriodLength || _report(_exceptionable, {
|
|
749
|
+
path: _path + ".chargePeriodLength",
|
|
750
|
+
expected: "(bigint | number | string)",
|
|
751
|
+
value: input.chargePeriodLength
|
|
752
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || _report(_exceptionable, {
|
|
729
753
|
path: _path + ".useOverallNumTransfers",
|
|
730
754
|
expected: "boolean",
|
|
731
755
|
value: input.useOverallNumTransfers
|
|
@@ -749,7 +773,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
749
773
|
path: _path + ".challengeTrackerId",
|
|
750
774
|
expected: "string",
|
|
751
775
|
value: input.challengeTrackerId
|
|
752
|
-
})].every(flag => flag); const
|
|
776
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
753
777
|
path: _path + ".rewardId",
|
|
754
778
|
expected: "string",
|
|
755
779
|
value: input.rewardId
|
|
@@ -761,7 +785,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
761
785
|
path: _path + ".metadata",
|
|
762
786
|
expected: "(__type.o4 | undefined)",
|
|
763
787
|
value: input.metadata
|
|
764
|
-
})) &&
|
|
788
|
+
})) && _vo16(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
765
789
|
path: _path + ".metadata",
|
|
766
790
|
expected: "(__type.o4 | undefined)",
|
|
767
791
|
value: input.metadata
|
|
@@ -773,7 +797,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
773
797
|
path: _path + ".gatedContent",
|
|
774
798
|
expected: "iClaimGatedContent",
|
|
775
799
|
value: input.gatedContent
|
|
776
|
-
})) &&
|
|
800
|
+
})) && _vo17(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
777
801
|
path: _path + ".gatedContent",
|
|
778
802
|
expected: "iClaimGatedContent",
|
|
779
803
|
value: input.gatedContent
|
|
@@ -781,11 +805,11 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
781
805
|
path: _path + ".calculationMethod",
|
|
782
806
|
expected: "(__type.o6 | undefined)",
|
|
783
807
|
value: input.calculationMethod
|
|
784
|
-
})) &&
|
|
808
|
+
})) && _vo19(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
785
809
|
path: _path + ".calculationMethod",
|
|
786
810
|
expected: "(__type.o6 | undefined)",
|
|
787
811
|
value: input.calculationMethod
|
|
788
|
-
})].every(flag => flag); const
|
|
812
|
+
})].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
789
813
|
path: _path + ".name",
|
|
790
814
|
expected: "string",
|
|
791
815
|
value: input.name
|
|
@@ -797,7 +821,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
797
821
|
path: _path + ".image",
|
|
798
822
|
expected: "string",
|
|
799
823
|
value: input.image
|
|
800
|
-
})].every(flag => flag); const
|
|
824
|
+
})].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
801
825
|
path: _path + ".content",
|
|
802
826
|
expected: "(string | undefined)",
|
|
803
827
|
value: input.content
|
|
@@ -809,16 +833,16 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
809
833
|
path: _path + ".params",
|
|
810
834
|
expected: "(__type.o5 | undefined)",
|
|
811
835
|
value: input.params
|
|
812
|
-
})) &&
|
|
836
|
+
})) && _vo18(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
813
837
|
path: _path + ".params",
|
|
814
838
|
expected: "(__type.o5 | undefined)",
|
|
815
839
|
value: input.params
|
|
816
|
-
})].every(flag => flag); const
|
|
840
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
817
841
|
const value = input[key];
|
|
818
842
|
if (undefined === value)
|
|
819
843
|
return true;
|
|
820
844
|
return true;
|
|
821
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
845
|
+
}).every(flag => flag)].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
822
846
|
path: _path + ".alwaysShow",
|
|
823
847
|
expected: "(boolean | undefined)",
|
|
824
848
|
value: input.alwaysShow
|
|
@@ -826,7 +850,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
826
850
|
path: _path + ".minClaimSuccesses",
|
|
827
851
|
expected: "(number | undefined)",
|
|
828
852
|
value: input.minClaimSuccesses
|
|
829
|
-
})].every(flag => flag); const
|
|
853
|
+
})].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["AND" === input.type || "OR" === input.type || "NOT" === input.type || _report(_exceptionable, {
|
|
830
854
|
path: _path + ".type",
|
|
831
855
|
expected: "(\"AND\" | \"NOT\" | \"OR\")",
|
|
832
856
|
value: input.type
|
|
@@ -846,7 +870,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
846
870
|
path: _path + ".conditions[" + _index33 + "]",
|
|
847
871
|
expected: "(iSatisfyMethod | string)",
|
|
848
872
|
value: elem
|
|
849
|
-
})) &&
|
|
873
|
+
})) && _vo20(elem, _path + ".conditions[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
850
874
|
path: _path + ".conditions[" + _index33 + "]",
|
|
851
875
|
expected: "(iSatisfyMethod | string)",
|
|
852
876
|
value: elem
|
|
@@ -858,15 +882,15 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
858
882
|
path: _path + ".options",
|
|
859
883
|
expected: "(__type.o7 | undefined)",
|
|
860
884
|
value: input.options
|
|
861
|
-
})) &&
|
|
885
|
+
})) && _vo21(input.options, _path + ".options", true && _exceptionable) || _report(_exceptionable, {
|
|
862
886
|
path: _path + ".options",
|
|
863
887
|
expected: "(__type.o7 | undefined)",
|
|
864
888
|
value: input.options
|
|
865
|
-
})].every(flag => flag); const
|
|
889
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied || _report(_exceptionable, {
|
|
866
890
|
path: _path + ".minNumSatisfied",
|
|
867
891
|
expected: "(number | undefined)",
|
|
868
892
|
value: input.minNumSatisfied
|
|
869
|
-
})].every(flag => flag); const
|
|
893
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.ttl || "string" === typeof input.ttl || "number" === typeof input.ttl || "bigint" === typeof input.ttl || _report(_exceptionable, {
|
|
870
894
|
path: _path + ".ttl",
|
|
871
895
|
expected: "(bigint | number | string | undefined)",
|
|
872
896
|
value: input.ttl
|
|
@@ -878,7 +902,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
878
902
|
path: _path + ".permanentAfter",
|
|
879
903
|
expected: "(bigint | number | string | undefined)",
|
|
880
904
|
value: input.permanentAfter
|
|
881
|
-
})].every(flag => flag); const
|
|
905
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
882
906
|
path: _path + ".resetState",
|
|
883
907
|
expected: "(boolean | undefined)",
|
|
884
908
|
value: input.resetState
|
|
@@ -886,7 +910,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
886
910
|
path: _path + ".newState",
|
|
887
911
|
expected: "(Record<string, any> | undefined)",
|
|
888
912
|
value: input.newState
|
|
889
|
-
})) &&
|
|
913
|
+
})) && _vo24(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
890
914
|
path: _path + ".newState",
|
|
891
915
|
expected: "(Record<string, any> | undefined)",
|
|
892
916
|
value: input.newState
|
|
@@ -910,7 +934,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
910
934
|
path: _path + ".publicParams",
|
|
911
935
|
expected: "Record<string, any>",
|
|
912
936
|
value: input.publicParams
|
|
913
|
-
})) &&
|
|
937
|
+
})) && _vo24(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
914
938
|
path: _path + ".publicParams",
|
|
915
939
|
expected: "Record<string, any>",
|
|
916
940
|
value: input.publicParams
|
|
@@ -918,7 +942,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
918
942
|
path: _path + ".privateParams",
|
|
919
943
|
expected: "Record<string, any>",
|
|
920
944
|
value: input.privateParams
|
|
921
|
-
})) &&
|
|
945
|
+
})) && _vo24(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
922
946
|
path: _path + ".privateParams",
|
|
923
947
|
expected: "Record<string, any>",
|
|
924
948
|
value: input.privateParams
|
|
@@ -926,16 +950,16 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
926
950
|
path: _path + ".metadata",
|
|
927
951
|
expected: "(__type.o8 | undefined)",
|
|
928
952
|
value: input.metadata
|
|
929
|
-
})) &&
|
|
953
|
+
})) && _vo25(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
930
954
|
path: _path + ".metadata",
|
|
931
955
|
expected: "(__type.o8 | undefined)",
|
|
932
956
|
value: input.metadata
|
|
933
|
-
})].every(flag => flag); const
|
|
957
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
934
958
|
const value = input[key];
|
|
935
959
|
if (undefined === value)
|
|
936
960
|
return true;
|
|
937
961
|
return true;
|
|
938
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
962
|
+
}).every(flag => flag)].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
939
963
|
path: _path + ".name",
|
|
940
964
|
expected: "string",
|
|
941
965
|
value: input.name
|
|
@@ -947,7 +971,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
947
971
|
path: _path + ".image",
|
|
948
972
|
expected: "(string | undefined)",
|
|
949
973
|
value: input.image
|
|
950
|
-
})].every(flag => flag); const
|
|
974
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
951
975
|
path: _path + ".name",
|
|
952
976
|
expected: "string",
|
|
953
977
|
value: input.name
|
|
@@ -1076,22 +1100,22 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1076
1100
|
}
|
|
1077
1101
|
static async UpdateAddressList(api, payload) {
|
|
1078
1102
|
try {
|
|
1079
|
-
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.uri && "string" === typeof input.customData && "boolean" === typeof input.whitelist && "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata &&
|
|
1103
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.uri && "string" === typeof input.customData && "boolean" === typeof input.whitelist && "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io26(input.metadata)); const _io2 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io3(input.metadata)) && "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && _io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (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.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && _io20(input.satisfyMethod)) && (undefined === input.cachePolicy || "object" === typeof input.cachePolicy && null !== input.cachePolicy && false === Array.isArray(input.cachePolicy) && _io22(input.cachePolicy)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && _io23(elem))); const _io3 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && _io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && _io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && _io7(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 _io4 = input => Object.keys(input).every(key => {
|
|
1080
1104
|
const value = input[key];
|
|
1081
1105
|
if (undefined === value)
|
|
1082
1106
|
return true;
|
|
1083
1107
|
return "string" === typeof value;
|
|
1084
|
-
}); const _io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const _io6 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io7 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); 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 &&
|
|
1108
|
+
}); const _io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const _io6 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io7 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); 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 && _io14(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) && ("string" === typeof input.durationFromTimestamp || "number" === typeof input.durationFromTimestamp || "bigint" === typeof input.durationFromTimestamp) && "boolean" === typeof input.allowOverrideTimestamp && ("object" === typeof input.recurringOwnershipTimes && null !== input.recurringOwnershipTimes && _io13(input.recurringOwnershipTimes)); const _io13 = input => ("string" === typeof input.startTime || "number" === typeof input.startTime || "bigint" === typeof input.startTime) && ("string" === typeof input.intervalLength || "number" === typeof input.intervalLength || "bigint" === typeof input.intervalLength) && ("string" === typeof input.chargePeriodLength || "number" === typeof input.chargePeriodLength || "bigint" === typeof input.chargePeriodLength); const _io14 = 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 _io15 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io16(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && _io17(input.gatedContent)) && (undefined === input.calculationMethod || "object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) && _io19(input.calculationMethod)); const _io16 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const _io17 = 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) && _io18(input.params)); const _io18 = input => Object.keys(input).every(key => {
|
|
1085
1109
|
const value = input[key];
|
|
1086
1110
|
if (undefined === value)
|
|
1087
1111
|
return true;
|
|
1088
1112
|
return true;
|
|
1089
|
-
}); const
|
|
1113
|
+
}); const _io19 = input => (undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow) && (undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses); const _io20 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io20(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io21(input.options)); const _io21 = input => undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied; const _io22 = input => (undefined === input.ttl || "string" === typeof input.ttl || "number" === typeof input.ttl || "bigint" === typeof input.ttl) && (undefined === input.alwaysPermanent || "boolean" === typeof input.alwaysPermanent) && (undefined === input.permanentAfter || "string" === typeof input.permanentAfter || "number" === typeof input.permanentAfter || "bigint" === typeof input.permanentAfter); const _io23 = input => (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && _io24(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) && _io24(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && _io24(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io25(input.metadata)); const _io24 = input => Object.keys(input).every(key => {
|
|
1090
1114
|
const value = input[key];
|
|
1091
1115
|
if (undefined === value)
|
|
1092
1116
|
return true;
|
|
1093
1117
|
return true;
|
|
1094
|
-
}); const
|
|
1118
|
+
}); const _io25 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const _io26 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && _io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && _io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && _io7(elem))); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || _report(_exceptionable, {
|
|
1095
1119
|
path: _path + ".addressLists",
|
|
1096
1120
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
1097
1121
|
value: input.addressLists
|
|
@@ -1159,7 +1183,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1159
1183
|
path: _path + ".metadata",
|
|
1160
1184
|
expected: "(iMetadataWithoutInternals<T> | undefined)",
|
|
1161
1185
|
value: input.metadata
|
|
1162
|
-
})) &&
|
|
1186
|
+
})) && _vo26(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
1163
1187
|
path: _path + ".metadata",
|
|
1164
1188
|
expected: "(iMetadataWithoutInternals<T> | undefined)",
|
|
1165
1189
|
value: input.metadata
|
|
@@ -1199,7 +1223,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1199
1223
|
path: _path + ".rewards[" + _index22 + "]",
|
|
1200
1224
|
expected: "iClaimReward<NumberType>",
|
|
1201
1225
|
value: elem
|
|
1202
|
-
})) &&
|
|
1226
|
+
})) && _vo15(elem, _path + ".rewards[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1203
1227
|
path: _path + ".rewards[" + _index22 + "]",
|
|
1204
1228
|
expected: "iClaimReward<NumberType>",
|
|
1205
1229
|
value: elem
|
|
@@ -1251,7 +1275,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1251
1275
|
path: _path + ".satisfyMethod",
|
|
1252
1276
|
expected: "(iSatisfyMethod | undefined)",
|
|
1253
1277
|
value: input.satisfyMethod
|
|
1254
|
-
})) &&
|
|
1278
|
+
})) && _vo20(input.satisfyMethod, _path + ".satisfyMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
1255
1279
|
path: _path + ".satisfyMethod",
|
|
1256
1280
|
expected: "(iSatisfyMethod | undefined)",
|
|
1257
1281
|
value: input.satisfyMethod
|
|
@@ -1259,7 +1283,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1259
1283
|
path: _path + ".cachePolicy",
|
|
1260
1284
|
expected: "(iClaimCachePolicy<NumberType> | undefined)",
|
|
1261
1285
|
value: input.cachePolicy
|
|
1262
|
-
})) &&
|
|
1286
|
+
})) && _vo22(input.cachePolicy, _path + ".cachePolicy", true && _exceptionable) || _report(_exceptionable, {
|
|
1263
1287
|
path: _path + ".cachePolicy",
|
|
1264
1288
|
expected: "(iClaimCachePolicy<NumberType> | undefined)",
|
|
1265
1289
|
value: input.cachePolicy
|
|
@@ -1275,7 +1299,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1275
1299
|
path: _path + ".plugins[" + _index24 + "]",
|
|
1276
1300
|
expected: "ManagePluginRequest",
|
|
1277
1301
|
value: elem
|
|
1278
|
-
})) &&
|
|
1302
|
+
})) && _vo23(elem, _path + ".plugins[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1279
1303
|
path: _path + ".plugins[" + _index24 + "]",
|
|
1280
1304
|
expected: "ManagePluginRequest",
|
|
1281
1305
|
value: elem
|
|
@@ -1456,7 +1480,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1456
1480
|
path: _path + ".orderCalculationMethod",
|
|
1457
1481
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
1458
1482
|
value: input.orderCalculationMethod
|
|
1459
|
-
})) &&
|
|
1483
|
+
})) && _vo14(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
1460
1484
|
path: _path + ".orderCalculationMethod",
|
|
1461
1485
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
1462
1486
|
value: input.orderCalculationMethod
|
|
@@ -1544,11 +1568,35 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1544
1568
|
path: _path + ".incrementOwnershipTimesBy",
|
|
1545
1569
|
expected: "(bigint | number | string)",
|
|
1546
1570
|
value: input.incrementOwnershipTimesBy
|
|
1547
|
-
}), "string" === typeof input.
|
|
1548
|
-
path: _path + ".
|
|
1571
|
+
}), "string" === typeof input.durationFromTimestamp || "number" === typeof input.durationFromTimestamp || "bigint" === typeof input.durationFromTimestamp || _report(_exceptionable, {
|
|
1572
|
+
path: _path + ".durationFromTimestamp",
|
|
1573
|
+
expected: "(bigint | number | string)",
|
|
1574
|
+
value: input.durationFromTimestamp
|
|
1575
|
+
}), "boolean" === typeof input.allowOverrideTimestamp || _report(_exceptionable, {
|
|
1576
|
+
path: _path + ".allowOverrideTimestamp",
|
|
1577
|
+
expected: "boolean",
|
|
1578
|
+
value: input.allowOverrideTimestamp
|
|
1579
|
+
}), ("object" === typeof input.recurringOwnershipTimes && null !== input.recurringOwnershipTimes || _report(_exceptionable, {
|
|
1580
|
+
path: _path + ".recurringOwnershipTimes",
|
|
1581
|
+
expected: "iRecurringOwnershipTimes<NumberType>",
|
|
1582
|
+
value: input.recurringOwnershipTimes
|
|
1583
|
+
})) && _vo13(input.recurringOwnershipTimes, _path + ".recurringOwnershipTimes", true && _exceptionable) || _report(_exceptionable, {
|
|
1584
|
+
path: _path + ".recurringOwnershipTimes",
|
|
1585
|
+
expected: "iRecurringOwnershipTimes<NumberType>",
|
|
1586
|
+
value: input.recurringOwnershipTimes
|
|
1587
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.startTime || "number" === typeof input.startTime || "bigint" === typeof input.startTime || _report(_exceptionable, {
|
|
1588
|
+
path: _path + ".startTime",
|
|
1549
1589
|
expected: "(bigint | number | string)",
|
|
1550
|
-
value: input.
|
|
1551
|
-
})
|
|
1590
|
+
value: input.startTime
|
|
1591
|
+
}), "string" === typeof input.intervalLength || "number" === typeof input.intervalLength || "bigint" === typeof input.intervalLength || _report(_exceptionable, {
|
|
1592
|
+
path: _path + ".intervalLength",
|
|
1593
|
+
expected: "(bigint | number | string)",
|
|
1594
|
+
value: input.intervalLength
|
|
1595
|
+
}), "string" === typeof input.chargePeriodLength || "number" === typeof input.chargePeriodLength || "bigint" === typeof input.chargePeriodLength || _report(_exceptionable, {
|
|
1596
|
+
path: _path + ".chargePeriodLength",
|
|
1597
|
+
expected: "(bigint | number | string)",
|
|
1598
|
+
value: input.chargePeriodLength
|
|
1599
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || _report(_exceptionable, {
|
|
1552
1600
|
path: _path + ".useOverallNumTransfers",
|
|
1553
1601
|
expected: "boolean",
|
|
1554
1602
|
value: input.useOverallNumTransfers
|
|
@@ -1572,7 +1620,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1572
1620
|
path: _path + ".challengeTrackerId",
|
|
1573
1621
|
expected: "string",
|
|
1574
1622
|
value: input.challengeTrackerId
|
|
1575
|
-
})].every(flag => flag); const
|
|
1623
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
1576
1624
|
path: _path + ".rewardId",
|
|
1577
1625
|
expected: "string",
|
|
1578
1626
|
value: input.rewardId
|
|
@@ -1584,7 +1632,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1584
1632
|
path: _path + ".metadata",
|
|
1585
1633
|
expected: "(__type.o4 | undefined)",
|
|
1586
1634
|
value: input.metadata
|
|
1587
|
-
})) &&
|
|
1635
|
+
})) && _vo16(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
1588
1636
|
path: _path + ".metadata",
|
|
1589
1637
|
expected: "(__type.o4 | undefined)",
|
|
1590
1638
|
value: input.metadata
|
|
@@ -1596,7 +1644,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1596
1644
|
path: _path + ".gatedContent",
|
|
1597
1645
|
expected: "iClaimGatedContent",
|
|
1598
1646
|
value: input.gatedContent
|
|
1599
|
-
})) &&
|
|
1647
|
+
})) && _vo17(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
1600
1648
|
path: _path + ".gatedContent",
|
|
1601
1649
|
expected: "iClaimGatedContent",
|
|
1602
1650
|
value: input.gatedContent
|
|
@@ -1604,11 +1652,11 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1604
1652
|
path: _path + ".calculationMethod",
|
|
1605
1653
|
expected: "(__type.o6 | undefined)",
|
|
1606
1654
|
value: input.calculationMethod
|
|
1607
|
-
})) &&
|
|
1655
|
+
})) && _vo19(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
1608
1656
|
path: _path + ".calculationMethod",
|
|
1609
1657
|
expected: "(__type.o6 | undefined)",
|
|
1610
1658
|
value: input.calculationMethod
|
|
1611
|
-
})].every(flag => flag); const
|
|
1659
|
+
})].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1612
1660
|
path: _path + ".name",
|
|
1613
1661
|
expected: "string",
|
|
1614
1662
|
value: input.name
|
|
@@ -1620,7 +1668,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1620
1668
|
path: _path + ".image",
|
|
1621
1669
|
expected: "string",
|
|
1622
1670
|
value: input.image
|
|
1623
|
-
})].every(flag => flag); const
|
|
1671
|
+
})].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
1624
1672
|
path: _path + ".content",
|
|
1625
1673
|
expected: "(string | undefined)",
|
|
1626
1674
|
value: input.content
|
|
@@ -1632,16 +1680,16 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1632
1680
|
path: _path + ".params",
|
|
1633
1681
|
expected: "(__type.o5 | undefined)",
|
|
1634
1682
|
value: input.params
|
|
1635
|
-
})) &&
|
|
1683
|
+
})) && _vo18(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
1636
1684
|
path: _path + ".params",
|
|
1637
1685
|
expected: "(__type.o5 | undefined)",
|
|
1638
1686
|
value: input.params
|
|
1639
|
-
})].every(flag => flag); const
|
|
1687
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1640
1688
|
const value = input[key];
|
|
1641
1689
|
if (undefined === value)
|
|
1642
1690
|
return true;
|
|
1643
1691
|
return true;
|
|
1644
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1692
|
+
}).every(flag => flag)].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
1645
1693
|
path: _path + ".alwaysShow",
|
|
1646
1694
|
expected: "(boolean | undefined)",
|
|
1647
1695
|
value: input.alwaysShow
|
|
@@ -1649,7 +1697,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1649
1697
|
path: _path + ".minClaimSuccesses",
|
|
1650
1698
|
expected: "(number | undefined)",
|
|
1651
1699
|
value: input.minClaimSuccesses
|
|
1652
|
-
})].every(flag => flag); const
|
|
1700
|
+
})].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["AND" === input.type || "OR" === input.type || "NOT" === input.type || _report(_exceptionable, {
|
|
1653
1701
|
path: _path + ".type",
|
|
1654
1702
|
expected: "(\"AND\" | \"NOT\" | \"OR\")",
|
|
1655
1703
|
value: input.type
|
|
@@ -1669,7 +1717,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1669
1717
|
path: _path + ".conditions[" + _index33 + "]",
|
|
1670
1718
|
expected: "(iSatisfyMethod | string)",
|
|
1671
1719
|
value: elem
|
|
1672
|
-
})) &&
|
|
1720
|
+
})) && _vo20(elem, _path + ".conditions[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1673
1721
|
path: _path + ".conditions[" + _index33 + "]",
|
|
1674
1722
|
expected: "(iSatisfyMethod | string)",
|
|
1675
1723
|
value: elem
|
|
@@ -1681,15 +1729,15 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1681
1729
|
path: _path + ".options",
|
|
1682
1730
|
expected: "(__type.o7 | undefined)",
|
|
1683
1731
|
value: input.options
|
|
1684
|
-
})) &&
|
|
1732
|
+
})) && _vo21(input.options, _path + ".options", true && _exceptionable) || _report(_exceptionable, {
|
|
1685
1733
|
path: _path + ".options",
|
|
1686
1734
|
expected: "(__type.o7 | undefined)",
|
|
1687
1735
|
value: input.options
|
|
1688
|
-
})].every(flag => flag); const
|
|
1736
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied || _report(_exceptionable, {
|
|
1689
1737
|
path: _path + ".minNumSatisfied",
|
|
1690
1738
|
expected: "(number | undefined)",
|
|
1691
1739
|
value: input.minNumSatisfied
|
|
1692
|
-
})].every(flag => flag); const
|
|
1740
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.ttl || "string" === typeof input.ttl || "number" === typeof input.ttl || "bigint" === typeof input.ttl || _report(_exceptionable, {
|
|
1693
1741
|
path: _path + ".ttl",
|
|
1694
1742
|
expected: "(bigint | number | string | undefined)",
|
|
1695
1743
|
value: input.ttl
|
|
@@ -1701,7 +1749,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1701
1749
|
path: _path + ".permanentAfter",
|
|
1702
1750
|
expected: "(bigint | number | string | undefined)",
|
|
1703
1751
|
value: input.permanentAfter
|
|
1704
|
-
})].every(flag => flag); const
|
|
1752
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
1705
1753
|
path: _path + ".resetState",
|
|
1706
1754
|
expected: "(boolean | undefined)",
|
|
1707
1755
|
value: input.resetState
|
|
@@ -1709,7 +1757,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1709
1757
|
path: _path + ".newState",
|
|
1710
1758
|
expected: "(Record<string, any> | undefined)",
|
|
1711
1759
|
value: input.newState
|
|
1712
|
-
})) &&
|
|
1760
|
+
})) && _vo24(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
1713
1761
|
path: _path + ".newState",
|
|
1714
1762
|
expected: "(Record<string, any> | undefined)",
|
|
1715
1763
|
value: input.newState
|
|
@@ -1733,7 +1781,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1733
1781
|
path: _path + ".publicParams",
|
|
1734
1782
|
expected: "Record<string, any>",
|
|
1735
1783
|
value: input.publicParams
|
|
1736
|
-
})) &&
|
|
1784
|
+
})) && _vo24(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
1737
1785
|
path: _path + ".publicParams",
|
|
1738
1786
|
expected: "Record<string, any>",
|
|
1739
1787
|
value: input.publicParams
|
|
@@ -1741,7 +1789,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1741
1789
|
path: _path + ".privateParams",
|
|
1742
1790
|
expected: "Record<string, any>",
|
|
1743
1791
|
value: input.privateParams
|
|
1744
|
-
})) &&
|
|
1792
|
+
})) && _vo24(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
1745
1793
|
path: _path + ".privateParams",
|
|
1746
1794
|
expected: "Record<string, any>",
|
|
1747
1795
|
value: input.privateParams
|
|
@@ -1749,16 +1797,16 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1749
1797
|
path: _path + ".metadata",
|
|
1750
1798
|
expected: "(__type.o8 | undefined)",
|
|
1751
1799
|
value: input.metadata
|
|
1752
|
-
})) &&
|
|
1800
|
+
})) && _vo25(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
1753
1801
|
path: _path + ".metadata",
|
|
1754
1802
|
expected: "(__type.o8 | undefined)",
|
|
1755
1803
|
value: input.metadata
|
|
1756
|
-
})].every(flag => flag); const
|
|
1804
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1757
1805
|
const value = input[key];
|
|
1758
1806
|
if (undefined === value)
|
|
1759
1807
|
return true;
|
|
1760
1808
|
return true;
|
|
1761
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1809
|
+
}).every(flag => flag)].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1762
1810
|
path: _path + ".name",
|
|
1763
1811
|
expected: "string",
|
|
1764
1812
|
value: input.name
|
|
@@ -1770,7 +1818,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
1770
1818
|
path: _path + ".image",
|
|
1771
1819
|
expected: "(string | undefined)",
|
|
1772
1820
|
value: input.image
|
|
1773
|
-
})].every(flag => flag); const
|
|
1821
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1774
1822
|
path: _path + ".name",
|
|
1775
1823
|
expected: "string",
|
|
1776
1824
|
value: input.name
|