bitbadgesjs-sdk 0.5.35 → 0.5.36
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/BitBadgesApi.js +300 -164
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +22 -6
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +28 -7
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +17 -5
- 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/api-indexer/requests/requests.d.ts +3 -11
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +300 -164
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +22 -6
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +37 -11
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +17 -5
- 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/api-indexer/requests/requests.d.ts +3 -11
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -6238,12 +6238,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6238
6238
|
}
|
|
6239
6239
|
async createGroup(payload) {
|
|
6240
6240
|
try {
|
|
6241
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata) && (Array.isArray(input.
|
|
6241
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata) && (Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io1 = 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) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io2 = input => Object.keys(input).every(key => {
|
|
6242
6242
|
const value = input[key];
|
|
6243
6243
|
if (undefined === value)
|
|
6244
6244
|
return true;
|
|
6245
6245
|
return "string" === typeof value;
|
|
6246
|
-
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.eventId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.eventTimes) && input.eventTimes.every(elem => "object" === typeof elem && null !== elem && $
|
|
6246
|
+
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.pageId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.tiers || Array.isArray(input.tiers) && input.tiers.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.quests || Array.isArray(input.quests) && input.quests.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.events || Array.isArray(input.events) && input.events.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.collectionIds || Array.isArray(input.collectionIds) && input.collectionIds.every(elem => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem)) && (undefined === input.claimIds || Array.isArray(input.claimIds) && input.claimIds.every(elem => "string" === typeof elem)) && (undefined === input.listIds || Array.isArray(input.listIds) && input.listIds.every(elem => "string" === typeof elem)) && (undefined === input.mapIds || Array.isArray(input.mapIds) && input.mapIds.every(elem => "string" === typeof elem)); const $io7 = input => "string" === typeof input.claimId; const $io8 = input => "string" === typeof input.claimId; const $io9 = input => "string" === typeof input.eventId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.eventTimes) && input.eventTimes.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 $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6247
6247
|
path: _path + ".metadata",
|
|
6248
6248
|
expected: "iMetadata<NumberType>",
|
|
6249
6249
|
value: input.metadata
|
|
@@ -6251,70 +6251,22 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6251
6251
|
path: _path + ".metadata",
|
|
6252
6252
|
expected: "iMetadata<NumberType>",
|
|
6253
6253
|
value: input.metadata
|
|
6254
|
-
}), (Array.isArray(input.
|
|
6255
|
-
path: _path + ".
|
|
6256
|
-
expected: "Array<
|
|
6257
|
-
value: input.
|
|
6258
|
-
})) && input.
|
|
6259
|
-
path: _path + ".
|
|
6260
|
-
expected: "
|
|
6261
|
-
value: elem
|
|
6262
|
-
})) && $vo6(elem, _path + ".
|
|
6263
|
-
path: _path + ".
|
|
6264
|
-
expected: "
|
|
6265
|
-
value: elem
|
|
6266
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6267
|
-
path: _path + ".
|
|
6268
|
-
expected: "Array<
|
|
6269
|
-
value: input.
|
|
6270
|
-
}), (Array.isArray(input.collectionIds) || $report(_exceptionable, {
|
|
6271
|
-
path: _path + ".collectionIds",
|
|
6272
|
-
expected: "Array<NumberType>",
|
|
6273
|
-
value: input.collectionIds
|
|
6274
|
-
})) && input.collectionIds.map((elem, _index11) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6275
|
-
path: _path + ".collectionIds[" + _index11 + "]",
|
|
6276
|
-
expected: "(bigint | number | string)",
|
|
6277
|
-
value: elem
|
|
6278
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6279
|
-
path: _path + ".collectionIds",
|
|
6280
|
-
expected: "Array<NumberType>",
|
|
6281
|
-
value: input.collectionIds
|
|
6282
|
-
}), (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
6283
|
-
path: _path + ".claimIds",
|
|
6284
|
-
expected: "Array<string>",
|
|
6285
|
-
value: input.claimIds
|
|
6286
|
-
})) && input.claimIds.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
|
|
6287
|
-
path: _path + ".claimIds[" + _index12 + "]",
|
|
6288
|
-
expected: "string",
|
|
6289
|
-
value: elem
|
|
6290
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6291
|
-
path: _path + ".claimIds",
|
|
6292
|
-
expected: "Array<string>",
|
|
6293
|
-
value: input.claimIds
|
|
6294
|
-
}), (Array.isArray(input.listIds) || $report(_exceptionable, {
|
|
6295
|
-
path: _path + ".listIds",
|
|
6296
|
-
expected: "Array<string>",
|
|
6297
|
-
value: input.listIds
|
|
6298
|
-
})) && input.listIds.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
|
|
6299
|
-
path: _path + ".listIds[" + _index13 + "]",
|
|
6300
|
-
expected: "string",
|
|
6301
|
-
value: elem
|
|
6302
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6303
|
-
path: _path + ".listIds",
|
|
6304
|
-
expected: "Array<string>",
|
|
6305
|
-
value: input.listIds
|
|
6306
|
-
}), (Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
6307
|
-
path: _path + ".mapIds",
|
|
6308
|
-
expected: "Array<string>",
|
|
6309
|
-
value: input.mapIds
|
|
6310
|
-
})) && input.mapIds.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
|
|
6311
|
-
path: _path + ".mapIds[" + _index14 + "]",
|
|
6312
|
-
expected: "string",
|
|
6313
|
-
value: elem
|
|
6314
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6315
|
-
path: _path + ".mapIds",
|
|
6316
|
-
expected: "Array<string>",
|
|
6317
|
-
value: input.mapIds
|
|
6254
|
+
}), (Array.isArray(input.pages) || $report(_exceptionable, {
|
|
6255
|
+
path: _path + ".pages",
|
|
6256
|
+
expected: "Array<iGroupPage<NumberType>>",
|
|
6257
|
+
value: input.pages
|
|
6258
|
+
})) && input.pages.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6259
|
+
path: _path + ".pages[" + _index13 + "]",
|
|
6260
|
+
expected: "iGroupPage<NumberType>",
|
|
6261
|
+
value: elem
|
|
6262
|
+
})) && $vo6(elem, _path + ".pages[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6263
|
+
path: _path + ".pages[" + _index13 + "]",
|
|
6264
|
+
expected: "iGroupPage<NumberType>",
|
|
6265
|
+
value: elem
|
|
6266
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6267
|
+
path: _path + ".pages",
|
|
6268
|
+
expected: "Array<iGroupPage<NumberType>>",
|
|
6269
|
+
value: input.pages
|
|
6318
6270
|
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6319
6271
|
path: _path + ".name",
|
|
6320
6272
|
expected: "string",
|
|
@@ -6347,8 +6299,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6347
6299
|
path: _path + ".tags",
|
|
6348
6300
|
expected: "(Array<string> | undefined)",
|
|
6349
6301
|
value: input.tags
|
|
6350
|
-
})) && input.tags.map((elem,
|
|
6351
|
-
path: _path + ".tags[" +
|
|
6302
|
+
})) && input.tags.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
|
|
6303
|
+
path: _path + ".tags[" + _index14 + "]",
|
|
6352
6304
|
expected: "string",
|
|
6353
6305
|
value: elem
|
|
6354
6306
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6375,12 +6327,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6375
6327
|
path: _path + ".attributes",
|
|
6376
6328
|
expected: "(Array<__type> | undefined)",
|
|
6377
6329
|
value: input.attributes
|
|
6378
|
-
})) && input.attributes.map((elem,
|
|
6379
|
-
path: _path + ".attributes[" +
|
|
6330
|
+
})) && input.attributes.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6331
|
+
path: _path + ".attributes[" + _index15 + "]",
|
|
6380
6332
|
expected: "__type.o2",
|
|
6381
6333
|
value: elem
|
|
6382
|
-
})) && $vo4(elem, _path + ".attributes[" +
|
|
6383
|
-
path: _path + ".attributes[" +
|
|
6334
|
+
})) && $vo4(elem, _path + ".attributes[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6335
|
+
path: _path + ".attributes[" + _index15 + "]",
|
|
6384
6336
|
expected: "__type.o2",
|
|
6385
6337
|
value: elem
|
|
6386
6338
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6391,12 +6343,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6391
6343
|
path: _path + ".utility",
|
|
6392
6344
|
expected: "(Array<__type>.o1 | undefined)",
|
|
6393
6345
|
value: input.utility
|
|
6394
|
-
})) && input.utility.map((elem,
|
|
6395
|
-
path: _path + ".utility[" +
|
|
6346
|
+
})) && input.utility.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6347
|
+
path: _path + ".utility[" + _index16 + "]",
|
|
6396
6348
|
expected: "__type.o3",
|
|
6397
6349
|
value: elem
|
|
6398
|
-
})) && $vo5(elem, _path + ".utility[" +
|
|
6399
|
-
path: _path + ".utility[" +
|
|
6350
|
+
})) && $vo5(elem, _path + ".utility[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6351
|
+
path: _path + ".utility[" + _index16 + "]",
|
|
6400
6352
|
expected: "__type.o3",
|
|
6401
6353
|
value: elem
|
|
6402
6354
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6460,7 +6412,123 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6460
6412
|
path: _path + ".url",
|
|
6461
6413
|
expected: "(string | undefined)",
|
|
6462
6414
|
value: input.url
|
|
6463
|
-
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
6415
|
+
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.pageId || $report(_exceptionable, {
|
|
6416
|
+
path: _path + ".pageId",
|
|
6417
|
+
expected: "string",
|
|
6418
|
+
value: input.pageId
|
|
6419
|
+
}), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6420
|
+
path: _path + ".metadata",
|
|
6421
|
+
expected: "iMetadata<NumberType>",
|
|
6422
|
+
value: input.metadata
|
|
6423
|
+
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6424
|
+
path: _path + ".metadata",
|
|
6425
|
+
expected: "iMetadata<NumberType>",
|
|
6426
|
+
value: input.metadata
|
|
6427
|
+
}), undefined === input.tiers || (Array.isArray(input.tiers) || $report(_exceptionable, {
|
|
6428
|
+
path: _path + ".tiers",
|
|
6429
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
6430
|
+
value: input.tiers
|
|
6431
|
+
})) && input.tiers.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6432
|
+
path: _path + ".tiers[" + _index17 + "]",
|
|
6433
|
+
expected: "__type.o4",
|
|
6434
|
+
value: elem
|
|
6435
|
+
})) && $vo7(elem, _path + ".tiers[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6436
|
+
path: _path + ".tiers[" + _index17 + "]",
|
|
6437
|
+
expected: "__type.o4",
|
|
6438
|
+
value: elem
|
|
6439
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6440
|
+
path: _path + ".tiers",
|
|
6441
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
6442
|
+
value: input.tiers
|
|
6443
|
+
}), undefined === input.quests || (Array.isArray(input.quests) || $report(_exceptionable, {
|
|
6444
|
+
path: _path + ".quests",
|
|
6445
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
6446
|
+
value: input.quests
|
|
6447
|
+
})) && input.quests.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6448
|
+
path: _path + ".quests[" + _index18 + "]",
|
|
6449
|
+
expected: "__type.o5",
|
|
6450
|
+
value: elem
|
|
6451
|
+
})) && $vo8(elem, _path + ".quests[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6452
|
+
path: _path + ".quests[" + _index18 + "]",
|
|
6453
|
+
expected: "__type.o5",
|
|
6454
|
+
value: elem
|
|
6455
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6456
|
+
path: _path + ".quests",
|
|
6457
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
6458
|
+
value: input.quests
|
|
6459
|
+
}), undefined === input.events || (Array.isArray(input.events) || $report(_exceptionable, {
|
|
6460
|
+
path: _path + ".events",
|
|
6461
|
+
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6462
|
+
value: input.events
|
|
6463
|
+
})) && input.events.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6464
|
+
path: _path + ".events[" + _index19 + "]",
|
|
6465
|
+
expected: "iEvent<NumberType>",
|
|
6466
|
+
value: elem
|
|
6467
|
+
})) && $vo9(elem, _path + ".events[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6468
|
+
path: _path + ".events[" + _index19 + "]",
|
|
6469
|
+
expected: "iEvent<NumberType>",
|
|
6470
|
+
value: elem
|
|
6471
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6472
|
+
path: _path + ".events",
|
|
6473
|
+
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6474
|
+
value: input.events
|
|
6475
|
+
}), undefined === input.collectionIds || (Array.isArray(input.collectionIds) || $report(_exceptionable, {
|
|
6476
|
+
path: _path + ".collectionIds",
|
|
6477
|
+
expected: "(Array<NumberType> | undefined)",
|
|
6478
|
+
value: input.collectionIds
|
|
6479
|
+
})) && input.collectionIds.map((elem, _index20) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6480
|
+
path: _path + ".collectionIds[" + _index20 + "]",
|
|
6481
|
+
expected: "(bigint | number | string)",
|
|
6482
|
+
value: elem
|
|
6483
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6484
|
+
path: _path + ".collectionIds",
|
|
6485
|
+
expected: "(Array<NumberType> | undefined)",
|
|
6486
|
+
value: input.collectionIds
|
|
6487
|
+
}), undefined === input.claimIds || (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
6488
|
+
path: _path + ".claimIds",
|
|
6489
|
+
expected: "(Array<string> | undefined)",
|
|
6490
|
+
value: input.claimIds
|
|
6491
|
+
})) && input.claimIds.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable, {
|
|
6492
|
+
path: _path + ".claimIds[" + _index21 + "]",
|
|
6493
|
+
expected: "string",
|
|
6494
|
+
value: elem
|
|
6495
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6496
|
+
path: _path + ".claimIds",
|
|
6497
|
+
expected: "(Array<string> | undefined)",
|
|
6498
|
+
value: input.claimIds
|
|
6499
|
+
}), undefined === input.listIds || (Array.isArray(input.listIds) || $report(_exceptionable, {
|
|
6500
|
+
path: _path + ".listIds",
|
|
6501
|
+
expected: "(Array<string> | undefined)",
|
|
6502
|
+
value: input.listIds
|
|
6503
|
+
})) && input.listIds.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
|
|
6504
|
+
path: _path + ".listIds[" + _index22 + "]",
|
|
6505
|
+
expected: "string",
|
|
6506
|
+
value: elem
|
|
6507
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6508
|
+
path: _path + ".listIds",
|
|
6509
|
+
expected: "(Array<string> | undefined)",
|
|
6510
|
+
value: input.listIds
|
|
6511
|
+
}), undefined === input.mapIds || (Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
6512
|
+
path: _path + ".mapIds",
|
|
6513
|
+
expected: "(Array<string> | undefined)",
|
|
6514
|
+
value: input.mapIds
|
|
6515
|
+
})) && input.mapIds.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
|
|
6516
|
+
path: _path + ".mapIds[" + _index23 + "]",
|
|
6517
|
+
expected: "string",
|
|
6518
|
+
value: elem
|
|
6519
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6520
|
+
path: _path + ".mapIds",
|
|
6521
|
+
expected: "(Array<string> | undefined)",
|
|
6522
|
+
value: input.mapIds
|
|
6523
|
+
})].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
6524
|
+
path: _path + ".claimId",
|
|
6525
|
+
expected: "string",
|
|
6526
|
+
value: input.claimId
|
|
6527
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
6528
|
+
path: _path + ".claimId",
|
|
6529
|
+
expected: "string",
|
|
6530
|
+
value: input.claimId
|
|
6531
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.eventId || $report(_exceptionable, {
|
|
6464
6532
|
path: _path + ".eventId",
|
|
6465
6533
|
expected: "string",
|
|
6466
6534
|
value: input.eventId
|
|
@@ -6476,19 +6544,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6476
6544
|
path: _path + ".eventTimes",
|
|
6477
6545
|
expected: "Array<iUintRange<NumberType>>",
|
|
6478
6546
|
value: input.eventTimes
|
|
6479
|
-
})) && input.eventTimes.map((elem,
|
|
6480
|
-
path: _path + ".eventTimes[" +
|
|
6547
|
+
})) && input.eventTimes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6548
|
+
path: _path + ".eventTimes[" + _index24 + "]",
|
|
6481
6549
|
expected: "iUintRange<NumberType>",
|
|
6482
6550
|
value: elem
|
|
6483
|
-
})) && $
|
|
6484
|
-
path: _path + ".eventTimes[" +
|
|
6551
|
+
})) && $vo10(elem, _path + ".eventTimes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6552
|
+
path: _path + ".eventTimes[" + _index24 + "]",
|
|
6485
6553
|
expected: "iUintRange<NumberType>",
|
|
6486
6554
|
value: elem
|
|
6487
6555
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6488
6556
|
path: _path + ".eventTimes",
|
|
6489
6557
|
expected: "Array<iUintRange<NumberType>>",
|
|
6490
6558
|
value: input.eventTimes
|
|
6491
|
-
})].every(flag => flag); const $
|
|
6559
|
+
})].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6492
6560
|
path: _path + ".start",
|
|
6493
6561
|
expected: "(bigint | number | string)",
|
|
6494
6562
|
value: input.start
|
|
@@ -6535,12 +6603,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6535
6603
|
}
|
|
6536
6604
|
async updateGroup(payload) {
|
|
6537
6605
|
try {
|
|
6538
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "string" === typeof input.groupId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.
|
|
6606
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "string" === typeof input.groupId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io1 = 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) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io2 = input => Object.keys(input).every(key => {
|
|
6539
6607
|
const value = input[key];
|
|
6540
6608
|
if (undefined === value)
|
|
6541
6609
|
return true;
|
|
6542
6610
|
return "string" === typeof value;
|
|
6543
|
-
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.eventId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.eventTimes) && input.eventTimes.every(elem => "object" === typeof elem && null !== elem && $
|
|
6611
|
+
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.pageId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.tiers || Array.isArray(input.tiers) && input.tiers.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.quests || Array.isArray(input.quests) && input.quests.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.events || Array.isArray(input.events) && input.events.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.collectionIds || Array.isArray(input.collectionIds) && input.collectionIds.every(elem => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem)) && (undefined === input.claimIds || Array.isArray(input.claimIds) && input.claimIds.every(elem => "string" === typeof elem)) && (undefined === input.listIds || Array.isArray(input.listIds) && input.listIds.every(elem => "string" === typeof elem)) && (undefined === input.mapIds || Array.isArray(input.mapIds) && input.mapIds.every(elem => "string" === typeof elem)); const $io7 = input => "string" === typeof input.claimId; const $io8 = input => "string" === typeof input.claimId; const $io9 = input => "string" === typeof input.eventId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.eventTimes) && input.eventTimes.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 $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.groupId || $report(_exceptionable, {
|
|
6544
6612
|
path: _path + ".groupId",
|
|
6545
6613
|
expected: "string",
|
|
6546
6614
|
value: input.groupId
|
|
@@ -6552,70 +6620,22 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6552
6620
|
path: _path + ".metadata",
|
|
6553
6621
|
expected: "iMetadata<NumberType>",
|
|
6554
6622
|
value: input.metadata
|
|
6555
|
-
}), (Array.isArray(input.
|
|
6556
|
-
path: _path + ".
|
|
6557
|
-
expected: "Array<
|
|
6558
|
-
value: input.
|
|
6559
|
-
})) && input.
|
|
6560
|
-
path: _path + ".
|
|
6561
|
-
expected: "
|
|
6562
|
-
value: elem
|
|
6563
|
-
})) && $vo6(elem, _path + ".
|
|
6564
|
-
path: _path + ".
|
|
6565
|
-
expected: "
|
|
6566
|
-
value: elem
|
|
6567
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6568
|
-
path: _path + ".
|
|
6569
|
-
expected: "Array<
|
|
6570
|
-
value: input.
|
|
6571
|
-
}), (Array.isArray(input.collectionIds) || $report(_exceptionable, {
|
|
6572
|
-
path: _path + ".collectionIds",
|
|
6573
|
-
expected: "Array<NumberType>",
|
|
6574
|
-
value: input.collectionIds
|
|
6575
|
-
})) && input.collectionIds.map((elem, _index11) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6576
|
-
path: _path + ".collectionIds[" + _index11 + "]",
|
|
6577
|
-
expected: "(bigint | number | string)",
|
|
6578
|
-
value: elem
|
|
6579
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6580
|
-
path: _path + ".collectionIds",
|
|
6581
|
-
expected: "Array<NumberType>",
|
|
6582
|
-
value: input.collectionIds
|
|
6583
|
-
}), (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
6584
|
-
path: _path + ".claimIds",
|
|
6585
|
-
expected: "Array<string>",
|
|
6586
|
-
value: input.claimIds
|
|
6587
|
-
})) && input.claimIds.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
|
|
6588
|
-
path: _path + ".claimIds[" + _index12 + "]",
|
|
6589
|
-
expected: "string",
|
|
6590
|
-
value: elem
|
|
6591
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6592
|
-
path: _path + ".claimIds",
|
|
6593
|
-
expected: "Array<string>",
|
|
6594
|
-
value: input.claimIds
|
|
6595
|
-
}), (Array.isArray(input.listIds) || $report(_exceptionable, {
|
|
6596
|
-
path: _path + ".listIds",
|
|
6597
|
-
expected: "Array<string>",
|
|
6598
|
-
value: input.listIds
|
|
6599
|
-
})) && input.listIds.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
|
|
6600
|
-
path: _path + ".listIds[" + _index13 + "]",
|
|
6601
|
-
expected: "string",
|
|
6602
|
-
value: elem
|
|
6603
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6604
|
-
path: _path + ".listIds",
|
|
6605
|
-
expected: "Array<string>",
|
|
6606
|
-
value: input.listIds
|
|
6607
|
-
}), (Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
6608
|
-
path: _path + ".mapIds",
|
|
6609
|
-
expected: "Array<string>",
|
|
6610
|
-
value: input.mapIds
|
|
6611
|
-
})) && input.mapIds.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
|
|
6612
|
-
path: _path + ".mapIds[" + _index14 + "]",
|
|
6613
|
-
expected: "string",
|
|
6614
|
-
value: elem
|
|
6615
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6616
|
-
path: _path + ".mapIds",
|
|
6617
|
-
expected: "Array<string>",
|
|
6618
|
-
value: input.mapIds
|
|
6623
|
+
}), (Array.isArray(input.pages) || $report(_exceptionable, {
|
|
6624
|
+
path: _path + ".pages",
|
|
6625
|
+
expected: "Array<iGroupPage<NumberType>>",
|
|
6626
|
+
value: input.pages
|
|
6627
|
+
})) && input.pages.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6628
|
+
path: _path + ".pages[" + _index13 + "]",
|
|
6629
|
+
expected: "iGroupPage<NumberType>",
|
|
6630
|
+
value: elem
|
|
6631
|
+
})) && $vo6(elem, _path + ".pages[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6632
|
+
path: _path + ".pages[" + _index13 + "]",
|
|
6633
|
+
expected: "iGroupPage<NumberType>",
|
|
6634
|
+
value: elem
|
|
6635
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6636
|
+
path: _path + ".pages",
|
|
6637
|
+
expected: "Array<iGroupPage<NumberType>>",
|
|
6638
|
+
value: input.pages
|
|
6619
6639
|
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6620
6640
|
path: _path + ".name",
|
|
6621
6641
|
expected: "string",
|
|
@@ -6648,8 +6668,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6648
6668
|
path: _path + ".tags",
|
|
6649
6669
|
expected: "(Array<string> | undefined)",
|
|
6650
6670
|
value: input.tags
|
|
6651
|
-
})) && input.tags.map((elem,
|
|
6652
|
-
path: _path + ".tags[" +
|
|
6671
|
+
})) && input.tags.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
|
|
6672
|
+
path: _path + ".tags[" + _index14 + "]",
|
|
6653
6673
|
expected: "string",
|
|
6654
6674
|
value: elem
|
|
6655
6675
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6676,12 +6696,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6676
6696
|
path: _path + ".attributes",
|
|
6677
6697
|
expected: "(Array<__type> | undefined)",
|
|
6678
6698
|
value: input.attributes
|
|
6679
|
-
})) && input.attributes.map((elem,
|
|
6680
|
-
path: _path + ".attributes[" +
|
|
6699
|
+
})) && input.attributes.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6700
|
+
path: _path + ".attributes[" + _index15 + "]",
|
|
6681
6701
|
expected: "__type.o2",
|
|
6682
6702
|
value: elem
|
|
6683
|
-
})) && $vo4(elem, _path + ".attributes[" +
|
|
6684
|
-
path: _path + ".attributes[" +
|
|
6703
|
+
})) && $vo4(elem, _path + ".attributes[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6704
|
+
path: _path + ".attributes[" + _index15 + "]",
|
|
6685
6705
|
expected: "__type.o2",
|
|
6686
6706
|
value: elem
|
|
6687
6707
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6692,12 +6712,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6692
6712
|
path: _path + ".utility",
|
|
6693
6713
|
expected: "(Array<__type>.o1 | undefined)",
|
|
6694
6714
|
value: input.utility
|
|
6695
|
-
})) && input.utility.map((elem,
|
|
6696
|
-
path: _path + ".utility[" +
|
|
6715
|
+
})) && input.utility.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6716
|
+
path: _path + ".utility[" + _index16 + "]",
|
|
6697
6717
|
expected: "__type.o3",
|
|
6698
6718
|
value: elem
|
|
6699
|
-
})) && $vo5(elem, _path + ".utility[" +
|
|
6700
|
-
path: _path + ".utility[" +
|
|
6719
|
+
})) && $vo5(elem, _path + ".utility[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6720
|
+
path: _path + ".utility[" + _index16 + "]",
|
|
6701
6721
|
expected: "__type.o3",
|
|
6702
6722
|
value: elem
|
|
6703
6723
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6761,7 +6781,123 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6761
6781
|
path: _path + ".url",
|
|
6762
6782
|
expected: "(string | undefined)",
|
|
6763
6783
|
value: input.url
|
|
6764
|
-
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
6784
|
+
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.pageId || $report(_exceptionable, {
|
|
6785
|
+
path: _path + ".pageId",
|
|
6786
|
+
expected: "string",
|
|
6787
|
+
value: input.pageId
|
|
6788
|
+
}), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6789
|
+
path: _path + ".metadata",
|
|
6790
|
+
expected: "iMetadata<NumberType>",
|
|
6791
|
+
value: input.metadata
|
|
6792
|
+
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6793
|
+
path: _path + ".metadata",
|
|
6794
|
+
expected: "iMetadata<NumberType>",
|
|
6795
|
+
value: input.metadata
|
|
6796
|
+
}), undefined === input.tiers || (Array.isArray(input.tiers) || $report(_exceptionable, {
|
|
6797
|
+
path: _path + ".tiers",
|
|
6798
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
6799
|
+
value: input.tiers
|
|
6800
|
+
})) && input.tiers.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6801
|
+
path: _path + ".tiers[" + _index17 + "]",
|
|
6802
|
+
expected: "__type.o4",
|
|
6803
|
+
value: elem
|
|
6804
|
+
})) && $vo7(elem, _path + ".tiers[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6805
|
+
path: _path + ".tiers[" + _index17 + "]",
|
|
6806
|
+
expected: "__type.o4",
|
|
6807
|
+
value: elem
|
|
6808
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6809
|
+
path: _path + ".tiers",
|
|
6810
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
6811
|
+
value: input.tiers
|
|
6812
|
+
}), undefined === input.quests || (Array.isArray(input.quests) || $report(_exceptionable, {
|
|
6813
|
+
path: _path + ".quests",
|
|
6814
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
6815
|
+
value: input.quests
|
|
6816
|
+
})) && input.quests.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6817
|
+
path: _path + ".quests[" + _index18 + "]",
|
|
6818
|
+
expected: "__type.o5",
|
|
6819
|
+
value: elem
|
|
6820
|
+
})) && $vo8(elem, _path + ".quests[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6821
|
+
path: _path + ".quests[" + _index18 + "]",
|
|
6822
|
+
expected: "__type.o5",
|
|
6823
|
+
value: elem
|
|
6824
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6825
|
+
path: _path + ".quests",
|
|
6826
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
6827
|
+
value: input.quests
|
|
6828
|
+
}), undefined === input.events || (Array.isArray(input.events) || $report(_exceptionable, {
|
|
6829
|
+
path: _path + ".events",
|
|
6830
|
+
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6831
|
+
value: input.events
|
|
6832
|
+
})) && input.events.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6833
|
+
path: _path + ".events[" + _index19 + "]",
|
|
6834
|
+
expected: "iEvent<NumberType>",
|
|
6835
|
+
value: elem
|
|
6836
|
+
})) && $vo9(elem, _path + ".events[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6837
|
+
path: _path + ".events[" + _index19 + "]",
|
|
6838
|
+
expected: "iEvent<NumberType>",
|
|
6839
|
+
value: elem
|
|
6840
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6841
|
+
path: _path + ".events",
|
|
6842
|
+
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6843
|
+
value: input.events
|
|
6844
|
+
}), undefined === input.collectionIds || (Array.isArray(input.collectionIds) || $report(_exceptionable, {
|
|
6845
|
+
path: _path + ".collectionIds",
|
|
6846
|
+
expected: "(Array<NumberType> | undefined)",
|
|
6847
|
+
value: input.collectionIds
|
|
6848
|
+
})) && input.collectionIds.map((elem, _index20) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6849
|
+
path: _path + ".collectionIds[" + _index20 + "]",
|
|
6850
|
+
expected: "(bigint | number | string)",
|
|
6851
|
+
value: elem
|
|
6852
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6853
|
+
path: _path + ".collectionIds",
|
|
6854
|
+
expected: "(Array<NumberType> | undefined)",
|
|
6855
|
+
value: input.collectionIds
|
|
6856
|
+
}), undefined === input.claimIds || (Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
6857
|
+
path: _path + ".claimIds",
|
|
6858
|
+
expected: "(Array<string> | undefined)",
|
|
6859
|
+
value: input.claimIds
|
|
6860
|
+
})) && input.claimIds.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable, {
|
|
6861
|
+
path: _path + ".claimIds[" + _index21 + "]",
|
|
6862
|
+
expected: "string",
|
|
6863
|
+
value: elem
|
|
6864
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6865
|
+
path: _path + ".claimIds",
|
|
6866
|
+
expected: "(Array<string> | undefined)",
|
|
6867
|
+
value: input.claimIds
|
|
6868
|
+
}), undefined === input.listIds || (Array.isArray(input.listIds) || $report(_exceptionable, {
|
|
6869
|
+
path: _path + ".listIds",
|
|
6870
|
+
expected: "(Array<string> | undefined)",
|
|
6871
|
+
value: input.listIds
|
|
6872
|
+
})) && input.listIds.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
|
|
6873
|
+
path: _path + ".listIds[" + _index22 + "]",
|
|
6874
|
+
expected: "string",
|
|
6875
|
+
value: elem
|
|
6876
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6877
|
+
path: _path + ".listIds",
|
|
6878
|
+
expected: "(Array<string> | undefined)",
|
|
6879
|
+
value: input.listIds
|
|
6880
|
+
}), undefined === input.mapIds || (Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
6881
|
+
path: _path + ".mapIds",
|
|
6882
|
+
expected: "(Array<string> | undefined)",
|
|
6883
|
+
value: input.mapIds
|
|
6884
|
+
})) && input.mapIds.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
|
|
6885
|
+
path: _path + ".mapIds[" + _index23 + "]",
|
|
6886
|
+
expected: "string",
|
|
6887
|
+
value: elem
|
|
6888
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6889
|
+
path: _path + ".mapIds",
|
|
6890
|
+
expected: "(Array<string> | undefined)",
|
|
6891
|
+
value: input.mapIds
|
|
6892
|
+
})].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
6893
|
+
path: _path + ".claimId",
|
|
6894
|
+
expected: "string",
|
|
6895
|
+
value: input.claimId
|
|
6896
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
6897
|
+
path: _path + ".claimId",
|
|
6898
|
+
expected: "string",
|
|
6899
|
+
value: input.claimId
|
|
6900
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.eventId || $report(_exceptionable, {
|
|
6765
6901
|
path: _path + ".eventId",
|
|
6766
6902
|
expected: "string",
|
|
6767
6903
|
value: input.eventId
|
|
@@ -6777,19 +6913,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6777
6913
|
path: _path + ".eventTimes",
|
|
6778
6914
|
expected: "Array<iUintRange<NumberType>>",
|
|
6779
6915
|
value: input.eventTimes
|
|
6780
|
-
})) && input.eventTimes.map((elem,
|
|
6781
|
-
path: _path + ".eventTimes[" +
|
|
6916
|
+
})) && input.eventTimes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6917
|
+
path: _path + ".eventTimes[" + _index24 + "]",
|
|
6782
6918
|
expected: "iUintRange<NumberType>",
|
|
6783
6919
|
value: elem
|
|
6784
|
-
})) && $
|
|
6785
|
-
path: _path + ".eventTimes[" +
|
|
6920
|
+
})) && $vo10(elem, _path + ".eventTimes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6921
|
+
path: _path + ".eventTimes[" + _index24 + "]",
|
|
6786
6922
|
expected: "iUintRange<NumberType>",
|
|
6787
6923
|
value: elem
|
|
6788
6924
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6789
6925
|
path: _path + ".eventTimes",
|
|
6790
6926
|
expected: "Array<iUintRange<NumberType>>",
|
|
6791
6927
|
value: input.eventTimes
|
|
6792
|
-
})].every(flag => flag); const $
|
|
6928
|
+
})].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6793
6929
|
path: _path + ".start",
|
|
6794
6930
|
expected: "(bigint | number | string)",
|
|
6795
6931
|
value: input.start
|