bitbadgesjs-sdk 0.5.39 → 0.5.40
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.d.ts +2 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +148 -106
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +23 -7
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +37 -3
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +14 -7
- 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 +27 -0
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +9 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -0
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +2 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +149 -107
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +23 -7
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +44 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +14 -7
- 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 +27 -0
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +9 -0
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -0
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { BitBadgesUserInfo } from './BitBadgesUserInfo.js';
|
|
|
5
5
|
import { BaseBitBadgesApi } from './base.js';
|
|
6
6
|
import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
|
|
7
7
|
import { GetMapValuesSuccessResponse, GetMapsSuccessResponse } from './requests/maps.js';
|
|
8
|
-
import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BatchBinActionSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateDynamicDataBinSuccessResponse, CreateGroupSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteDynamicDataBinSuccessResponse, DeleteGroupSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationsSuccessResponse, GetBrowseSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetDynamicDataActivitySuccessResponse, GetDynamicDataBinsSuccessResponse, GetGatedContentForClaimSuccessResponse, GetGroupsSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, PerformBinActionSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateDynamicDataBinSuccessResponse, UpdateGroupSuccessResponse, UpdatePluginSuccessResponse, VerifyAttestationSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
8
|
+
import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BatchBinActionSuccessResponse, BroadcastTxSuccessResponse, CalculatePointsSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateDynamicDataBinSuccessResponse, CreateGroupSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteDynamicDataBinSuccessResponse, DeleteGroupSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationsSuccessResponse, GetBrowseSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetDynamicDataActivitySuccessResponse, GetDynamicDataBinsSuccessResponse, GetGatedContentForClaimSuccessResponse, GetGroupsSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, PerformBinActionSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateDynamicDataBinSuccessResponse, UpdateGroupSuccessResponse, UpdatePluginSuccessResponse, VerifyAttestationSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
9
9
|
import { BitBadgesApiRoutes } from './requests/routes.js';
|
|
10
10
|
export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
11
11
|
constructor(apiDetails) {
|
|
@@ -6241,7 +6241,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6241
6241
|
if (undefined === value)
|
|
6242
6242
|
return true;
|
|
6243
6243
|
return "string" === typeof value;
|
|
6244
|
-
}); 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 && $
|
|
6244
|
+
}); 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.points || Array.isArray(input.points) && input.points.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (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 && $io7(elem))) && (undefined === input.events || Array.isArray(input.events) && input.events.every(elem => "object" === typeof elem && null !== elem && $io8(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 && (undefined === input.weight || "string" === typeof input.weight || "number" === typeof input.weight || "bigint" === typeof input.weight); const $io8 = 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 && $io9(elem))); const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6245
6245
|
path: _path + ".metadata",
|
|
6246
6246
|
expected: "iMetadata<NumberType>",
|
|
6247
6247
|
value: input.metadata
|
|
@@ -6253,12 +6253,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6253
6253
|
path: _path + ".pages",
|
|
6254
6254
|
expected: "Array<iGroupPage<NumberType>>",
|
|
6255
6255
|
value: input.pages
|
|
6256
|
-
})) && input.pages.map((elem,
|
|
6257
|
-
path: _path + ".pages[" +
|
|
6256
|
+
})) && input.pages.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6257
|
+
path: _path + ".pages[" + _index14 + "]",
|
|
6258
6258
|
expected: "iGroupPage<NumberType>",
|
|
6259
6259
|
value: elem
|
|
6260
|
-
})) && $vo6(elem, _path + ".pages[" +
|
|
6261
|
-
path: _path + ".pages[" +
|
|
6260
|
+
})) && $vo6(elem, _path + ".pages[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6261
|
+
path: _path + ".pages[" + _index14 + "]",
|
|
6262
6262
|
expected: "iGroupPage<NumberType>",
|
|
6263
6263
|
value: elem
|
|
6264
6264
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6297,8 +6297,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6297
6297
|
path: _path + ".tags",
|
|
6298
6298
|
expected: "(Array<string> | undefined)",
|
|
6299
6299
|
value: input.tags
|
|
6300
|
-
})) && input.tags.map((elem,
|
|
6301
|
-
path: _path + ".tags[" +
|
|
6300
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
6301
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
6302
6302
|
expected: "string",
|
|
6303
6303
|
value: elem
|
|
6304
6304
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6325,12 +6325,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6325
6325
|
path: _path + ".attributes",
|
|
6326
6326
|
expected: "(Array<__type> | undefined)",
|
|
6327
6327
|
value: input.attributes
|
|
6328
|
-
})) && input.attributes.map((elem,
|
|
6329
|
-
path: _path + ".attributes[" +
|
|
6328
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6329
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
6330
6330
|
expected: "__type.o2",
|
|
6331
6331
|
value: elem
|
|
6332
|
-
})) && $vo4(elem, _path + ".attributes[" +
|
|
6333
|
-
path: _path + ".attributes[" +
|
|
6332
|
+
})) && $vo4(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6333
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
6334
6334
|
expected: "__type.o2",
|
|
6335
6335
|
value: elem
|
|
6336
6336
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6341,12 +6341,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6341
6341
|
path: _path + ".utility",
|
|
6342
6342
|
expected: "(Array<__type>.o1 | undefined)",
|
|
6343
6343
|
value: input.utility
|
|
6344
|
-
})) && input.utility.map((elem,
|
|
6345
|
-
path: _path + ".utility[" +
|
|
6344
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6345
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
6346
6346
|
expected: "__type.o3",
|
|
6347
6347
|
value: elem
|
|
6348
|
-
})) && $vo5(elem, _path + ".utility[" +
|
|
6349
|
-
path: _path + ".utility[" +
|
|
6348
|
+
})) && $vo5(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6349
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
6350
6350
|
expected: "__type.o3",
|
|
6351
6351
|
value: elem
|
|
6352
6352
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6422,48 +6422,64 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6422
6422
|
path: _path + ".metadata",
|
|
6423
6423
|
expected: "iMetadata<NumberType>",
|
|
6424
6424
|
value: input.metadata
|
|
6425
|
+
}), undefined === input.points || (Array.isArray(input.points) || $report(_exceptionable, {
|
|
6426
|
+
path: _path + ".points",
|
|
6427
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6428
|
+
value: input.points
|
|
6429
|
+
})) && input.points.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6430
|
+
path: _path + ".points[" + _index18 + "]",
|
|
6431
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6432
|
+
value: elem
|
|
6433
|
+
})) && $vo7(elem, _path + ".points[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6434
|
+
path: _path + ".points[" + _index18 + "]",
|
|
6435
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6436
|
+
value: elem
|
|
6437
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6438
|
+
path: _path + ".points",
|
|
6439
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6440
|
+
value: input.points
|
|
6425
6441
|
}), undefined === input.tiers || (Array.isArray(input.tiers) || $report(_exceptionable, {
|
|
6426
6442
|
path: _path + ".tiers",
|
|
6427
|
-
expected: "(Array<
|
|
6443
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6428
6444
|
value: input.tiers
|
|
6429
|
-
})) && input.tiers.map((elem,
|
|
6430
|
-
path: _path + ".tiers[" +
|
|
6431
|
-
expected: "
|
|
6445
|
+
})) && input.tiers.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6446
|
+
path: _path + ".tiers[" + _index19 + "]",
|
|
6447
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6432
6448
|
value: elem
|
|
6433
|
-
})) && $vo7(elem, _path + ".tiers[" +
|
|
6434
|
-
path: _path + ".tiers[" +
|
|
6435
|
-
expected: "
|
|
6449
|
+
})) && $vo7(elem, _path + ".tiers[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6450
|
+
path: _path + ".tiers[" + _index19 + "]",
|
|
6451
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6436
6452
|
value: elem
|
|
6437
6453
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6438
6454
|
path: _path + ".tiers",
|
|
6439
|
-
expected: "(Array<
|
|
6455
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6440
6456
|
value: input.tiers
|
|
6441
6457
|
}), undefined === input.quests || (Array.isArray(input.quests) || $report(_exceptionable, {
|
|
6442
6458
|
path: _path + ".quests",
|
|
6443
|
-
expected: "(Array<
|
|
6459
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6444
6460
|
value: input.quests
|
|
6445
|
-
})) && input.quests.map((elem,
|
|
6446
|
-
path: _path + ".quests[" +
|
|
6447
|
-
expected: "
|
|
6461
|
+
})) && input.quests.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6462
|
+
path: _path + ".quests[" + _index20 + "]",
|
|
6463
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6448
6464
|
value: elem
|
|
6449
|
-
})) && $
|
|
6450
|
-
path: _path + ".quests[" +
|
|
6451
|
-
expected: "
|
|
6465
|
+
})) && $vo7(elem, _path + ".quests[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6466
|
+
path: _path + ".quests[" + _index20 + "]",
|
|
6467
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6452
6468
|
value: elem
|
|
6453
6469
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6454
6470
|
path: _path + ".quests",
|
|
6455
|
-
expected: "(Array<
|
|
6471
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6456
6472
|
value: input.quests
|
|
6457
6473
|
}), undefined === input.events || (Array.isArray(input.events) || $report(_exceptionable, {
|
|
6458
6474
|
path: _path + ".events",
|
|
6459
6475
|
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6460
6476
|
value: input.events
|
|
6461
|
-
})) && input.events.map((elem,
|
|
6462
|
-
path: _path + ".events[" +
|
|
6477
|
+
})) && input.events.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6478
|
+
path: _path + ".events[" + _index21 + "]",
|
|
6463
6479
|
expected: "iEvent<NumberType>",
|
|
6464
6480
|
value: elem
|
|
6465
|
-
})) && $
|
|
6466
|
-
path: _path + ".events[" +
|
|
6481
|
+
})) && $vo8(elem, _path + ".events[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6482
|
+
path: _path + ".events[" + _index21 + "]",
|
|
6467
6483
|
expected: "iEvent<NumberType>",
|
|
6468
6484
|
value: elem
|
|
6469
6485
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6474,8 +6490,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6474
6490
|
path: _path + ".collectionIds",
|
|
6475
6491
|
expected: "(Array<NumberType> | undefined)",
|
|
6476
6492
|
value: input.collectionIds
|
|
6477
|
-
})) && input.collectionIds.map((elem,
|
|
6478
|
-
path: _path + ".collectionIds[" +
|
|
6493
|
+
})) && input.collectionIds.map((elem, _index22) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6494
|
+
path: _path + ".collectionIds[" + _index22 + "]",
|
|
6479
6495
|
expected: "(bigint | number | string)",
|
|
6480
6496
|
value: elem
|
|
6481
6497
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6486,8 +6502,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6486
6502
|
path: _path + ".claimIds",
|
|
6487
6503
|
expected: "(Array<string> | undefined)",
|
|
6488
6504
|
value: input.claimIds
|
|
6489
|
-
})) && input.claimIds.map((elem,
|
|
6490
|
-
path: _path + ".claimIds[" +
|
|
6505
|
+
})) && input.claimIds.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
|
|
6506
|
+
path: _path + ".claimIds[" + _index23 + "]",
|
|
6491
6507
|
expected: "string",
|
|
6492
6508
|
value: elem
|
|
6493
6509
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6498,8 +6514,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6498
6514
|
path: _path + ".listIds",
|
|
6499
6515
|
expected: "(Array<string> | undefined)",
|
|
6500
6516
|
value: input.listIds
|
|
6501
|
-
})) && input.listIds.map((elem,
|
|
6502
|
-
path: _path + ".listIds[" +
|
|
6517
|
+
})) && input.listIds.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
|
|
6518
|
+
path: _path + ".listIds[" + _index24 + "]",
|
|
6503
6519
|
expected: "string",
|
|
6504
6520
|
value: elem
|
|
6505
6521
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6510,8 +6526,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6510
6526
|
path: _path + ".mapIds",
|
|
6511
6527
|
expected: "(Array<string> | undefined)",
|
|
6512
6528
|
value: input.mapIds
|
|
6513
|
-
})) && input.mapIds.map((elem,
|
|
6514
|
-
path: _path + ".mapIds[" +
|
|
6529
|
+
})) && input.mapIds.map((elem, _index25) => "string" === typeof elem || $report(_exceptionable, {
|
|
6530
|
+
path: _path + ".mapIds[" + _index25 + "]",
|
|
6515
6531
|
expected: "string",
|
|
6516
6532
|
value: elem
|
|
6517
6533
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6522,11 +6538,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6522
6538
|
path: _path + ".claimId",
|
|
6523
6539
|
expected: "string",
|
|
6524
6540
|
value: input.claimId
|
|
6525
|
-
})
|
|
6526
|
-
path: _path + ".
|
|
6527
|
-
expected: "string",
|
|
6528
|
-
value: input.
|
|
6529
|
-
})].every(flag => flag); const $
|
|
6541
|
+
}), undefined === input.weight || "string" === typeof input.weight || "number" === typeof input.weight || "bigint" === typeof input.weight || $report(_exceptionable, {
|
|
6542
|
+
path: _path + ".weight",
|
|
6543
|
+
expected: "(bigint | number | string | undefined)",
|
|
6544
|
+
value: input.weight
|
|
6545
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.eventId || $report(_exceptionable, {
|
|
6530
6546
|
path: _path + ".eventId",
|
|
6531
6547
|
expected: "string",
|
|
6532
6548
|
value: input.eventId
|
|
@@ -6542,19 +6558,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6542
6558
|
path: _path + ".eventTimes",
|
|
6543
6559
|
expected: "Array<iUintRange<NumberType>>",
|
|
6544
6560
|
value: input.eventTimes
|
|
6545
|
-
})) && input.eventTimes.map((elem,
|
|
6546
|
-
path: _path + ".eventTimes[" +
|
|
6561
|
+
})) && input.eventTimes.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6562
|
+
path: _path + ".eventTimes[" + _index26 + "]",
|
|
6547
6563
|
expected: "iUintRange<NumberType>",
|
|
6548
6564
|
value: elem
|
|
6549
|
-
})) && $
|
|
6550
|
-
path: _path + ".eventTimes[" +
|
|
6565
|
+
})) && $vo9(elem, _path + ".eventTimes[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6566
|
+
path: _path + ".eventTimes[" + _index26 + "]",
|
|
6551
6567
|
expected: "iUintRange<NumberType>",
|
|
6552
6568
|
value: elem
|
|
6553
6569
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6554
6570
|
path: _path + ".eventTimes",
|
|
6555
6571
|
expected: "Array<iUintRange<NumberType>>",
|
|
6556
6572
|
value: input.eventTimes
|
|
6557
|
-
})].every(flag => flag); const $
|
|
6573
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6558
6574
|
path: _path + ".start",
|
|
6559
6575
|
expected: "(bigint | number | string)",
|
|
6560
6576
|
value: input.start
|
|
@@ -6606,7 +6622,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6606
6622
|
if (undefined === value)
|
|
6607
6623
|
return true;
|
|
6608
6624
|
return "string" === typeof value;
|
|
6609
|
-
}); 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 && $
|
|
6625
|
+
}); 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.points || Array.isArray(input.points) && input.points.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (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 && $io7(elem))) && (undefined === input.events || Array.isArray(input.events) && input.events.every(elem => "object" === typeof elem && null !== elem && $io8(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 && (undefined === input.weight || "string" === typeof input.weight || "number" === typeof input.weight || "bigint" === typeof input.weight); const $io8 = 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 && $io9(elem))); const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.groupId || $report(_exceptionable, {
|
|
6610
6626
|
path: _path + ".groupId",
|
|
6611
6627
|
expected: "string",
|
|
6612
6628
|
value: input.groupId
|
|
@@ -6622,12 +6638,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6622
6638
|
path: _path + ".pages",
|
|
6623
6639
|
expected: "Array<iGroupPage<NumberType>>",
|
|
6624
6640
|
value: input.pages
|
|
6625
|
-
})) && input.pages.map((elem,
|
|
6626
|
-
path: _path + ".pages[" +
|
|
6641
|
+
})) && input.pages.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6642
|
+
path: _path + ".pages[" + _index14 + "]",
|
|
6627
6643
|
expected: "iGroupPage<NumberType>",
|
|
6628
6644
|
value: elem
|
|
6629
|
-
})) && $vo6(elem, _path + ".pages[" +
|
|
6630
|
-
path: _path + ".pages[" +
|
|
6645
|
+
})) && $vo6(elem, _path + ".pages[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6646
|
+
path: _path + ".pages[" + _index14 + "]",
|
|
6631
6647
|
expected: "iGroupPage<NumberType>",
|
|
6632
6648
|
value: elem
|
|
6633
6649
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6666,8 +6682,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6666
6682
|
path: _path + ".tags",
|
|
6667
6683
|
expected: "(Array<string> | undefined)",
|
|
6668
6684
|
value: input.tags
|
|
6669
|
-
})) && input.tags.map((elem,
|
|
6670
|
-
path: _path + ".tags[" +
|
|
6685
|
+
})) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
|
|
6686
|
+
path: _path + ".tags[" + _index15 + "]",
|
|
6671
6687
|
expected: "string",
|
|
6672
6688
|
value: elem
|
|
6673
6689
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6694,12 +6710,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6694
6710
|
path: _path + ".attributes",
|
|
6695
6711
|
expected: "(Array<__type> | undefined)",
|
|
6696
6712
|
value: input.attributes
|
|
6697
|
-
})) && input.attributes.map((elem,
|
|
6698
|
-
path: _path + ".attributes[" +
|
|
6713
|
+
})) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6714
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
6699
6715
|
expected: "__type.o2",
|
|
6700
6716
|
value: elem
|
|
6701
|
-
})) && $vo4(elem, _path + ".attributes[" +
|
|
6702
|
-
path: _path + ".attributes[" +
|
|
6717
|
+
})) && $vo4(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6718
|
+
path: _path + ".attributes[" + _index16 + "]",
|
|
6703
6719
|
expected: "__type.o2",
|
|
6704
6720
|
value: elem
|
|
6705
6721
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6710,12 +6726,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6710
6726
|
path: _path + ".utility",
|
|
6711
6727
|
expected: "(Array<__type>.o1 | undefined)",
|
|
6712
6728
|
value: input.utility
|
|
6713
|
-
})) && input.utility.map((elem,
|
|
6714
|
-
path: _path + ".utility[" +
|
|
6729
|
+
})) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6730
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
6715
6731
|
expected: "__type.o3",
|
|
6716
6732
|
value: elem
|
|
6717
|
-
})) && $vo5(elem, _path + ".utility[" +
|
|
6718
|
-
path: _path + ".utility[" +
|
|
6733
|
+
})) && $vo5(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6734
|
+
path: _path + ".utility[" + _index17 + "]",
|
|
6719
6735
|
expected: "__type.o3",
|
|
6720
6736
|
value: elem
|
|
6721
6737
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6791,48 +6807,64 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6791
6807
|
path: _path + ".metadata",
|
|
6792
6808
|
expected: "iMetadata<NumberType>",
|
|
6793
6809
|
value: input.metadata
|
|
6810
|
+
}), undefined === input.points || (Array.isArray(input.points) || $report(_exceptionable, {
|
|
6811
|
+
path: _path + ".points",
|
|
6812
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6813
|
+
value: input.points
|
|
6814
|
+
})) && input.points.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6815
|
+
path: _path + ".points[" + _index18 + "]",
|
|
6816
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6817
|
+
value: elem
|
|
6818
|
+
})) && $vo7(elem, _path + ".points[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6819
|
+
path: _path + ".points[" + _index18 + "]",
|
|
6820
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6821
|
+
value: elem
|
|
6822
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6823
|
+
path: _path + ".points",
|
|
6824
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6825
|
+
value: input.points
|
|
6794
6826
|
}), undefined === input.tiers || (Array.isArray(input.tiers) || $report(_exceptionable, {
|
|
6795
6827
|
path: _path + ".tiers",
|
|
6796
|
-
expected: "(Array<
|
|
6828
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6797
6829
|
value: input.tiers
|
|
6798
|
-
})) && input.tiers.map((elem,
|
|
6799
|
-
path: _path + ".tiers[" +
|
|
6800
|
-
expected: "
|
|
6830
|
+
})) && input.tiers.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6831
|
+
path: _path + ".tiers[" + _index19 + "]",
|
|
6832
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6801
6833
|
value: elem
|
|
6802
|
-
})) && $vo7(elem, _path + ".tiers[" +
|
|
6803
|
-
path: _path + ".tiers[" +
|
|
6804
|
-
expected: "
|
|
6834
|
+
})) && $vo7(elem, _path + ".tiers[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6835
|
+
path: _path + ".tiers[" + _index19 + "]",
|
|
6836
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6805
6837
|
value: elem
|
|
6806
6838
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6807
6839
|
path: _path + ".tiers",
|
|
6808
|
-
expected: "(Array<
|
|
6840
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6809
6841
|
value: input.tiers
|
|
6810
6842
|
}), undefined === input.quests || (Array.isArray(input.quests) || $report(_exceptionable, {
|
|
6811
6843
|
path: _path + ".quests",
|
|
6812
|
-
expected: "(Array<
|
|
6844
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6813
6845
|
value: input.quests
|
|
6814
|
-
})) && input.quests.map((elem,
|
|
6815
|
-
path: _path + ".quests[" +
|
|
6816
|
-
expected: "
|
|
6846
|
+
})) && input.quests.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6847
|
+
path: _path + ".quests[" + _index20 + "]",
|
|
6848
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6817
6849
|
value: elem
|
|
6818
|
-
})) && $
|
|
6819
|
-
path: _path + ".quests[" +
|
|
6820
|
-
expected: "
|
|
6850
|
+
})) && $vo7(elem, _path + ".quests[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6851
|
+
path: _path + ".quests[" + _index20 + "]",
|
|
6852
|
+
expected: "iTierWithOptionalWeight<NumberType>",
|
|
6821
6853
|
value: elem
|
|
6822
6854
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6823
6855
|
path: _path + ".quests",
|
|
6824
|
-
expected: "(Array<
|
|
6856
|
+
expected: "(Array<iTierWithOptionalWeight<NumberType>> | undefined)",
|
|
6825
6857
|
value: input.quests
|
|
6826
6858
|
}), undefined === input.events || (Array.isArray(input.events) || $report(_exceptionable, {
|
|
6827
6859
|
path: _path + ".events",
|
|
6828
6860
|
expected: "(Array<iEvent<NumberType>> | undefined)",
|
|
6829
6861
|
value: input.events
|
|
6830
|
-
})) && input.events.map((elem,
|
|
6831
|
-
path: _path + ".events[" +
|
|
6862
|
+
})) && input.events.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6863
|
+
path: _path + ".events[" + _index21 + "]",
|
|
6832
6864
|
expected: "iEvent<NumberType>",
|
|
6833
6865
|
value: elem
|
|
6834
|
-
})) && $
|
|
6835
|
-
path: _path + ".events[" +
|
|
6866
|
+
})) && $vo8(elem, _path + ".events[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6867
|
+
path: _path + ".events[" + _index21 + "]",
|
|
6836
6868
|
expected: "iEvent<NumberType>",
|
|
6837
6869
|
value: elem
|
|
6838
6870
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6843,8 +6875,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6843
6875
|
path: _path + ".collectionIds",
|
|
6844
6876
|
expected: "(Array<NumberType> | undefined)",
|
|
6845
6877
|
value: input.collectionIds
|
|
6846
|
-
})) && input.collectionIds.map((elem,
|
|
6847
|
-
path: _path + ".collectionIds[" +
|
|
6878
|
+
})) && input.collectionIds.map((elem, _index22) => "string" === typeof elem || "number" === typeof elem || "bigint" === typeof elem || $report(_exceptionable, {
|
|
6879
|
+
path: _path + ".collectionIds[" + _index22 + "]",
|
|
6848
6880
|
expected: "(bigint | number | string)",
|
|
6849
6881
|
value: elem
|
|
6850
6882
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6855,8 +6887,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6855
6887
|
path: _path + ".claimIds",
|
|
6856
6888
|
expected: "(Array<string> | undefined)",
|
|
6857
6889
|
value: input.claimIds
|
|
6858
|
-
})) && input.claimIds.map((elem,
|
|
6859
|
-
path: _path + ".claimIds[" +
|
|
6890
|
+
})) && input.claimIds.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
|
|
6891
|
+
path: _path + ".claimIds[" + _index23 + "]",
|
|
6860
6892
|
expected: "string",
|
|
6861
6893
|
value: elem
|
|
6862
6894
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6867,8 +6899,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6867
6899
|
path: _path + ".listIds",
|
|
6868
6900
|
expected: "(Array<string> | undefined)",
|
|
6869
6901
|
value: input.listIds
|
|
6870
|
-
})) && input.listIds.map((elem,
|
|
6871
|
-
path: _path + ".listIds[" +
|
|
6902
|
+
})) && input.listIds.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
|
|
6903
|
+
path: _path + ".listIds[" + _index24 + "]",
|
|
6872
6904
|
expected: "string",
|
|
6873
6905
|
value: elem
|
|
6874
6906
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6879,8 +6911,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6879
6911
|
path: _path + ".mapIds",
|
|
6880
6912
|
expected: "(Array<string> | undefined)",
|
|
6881
6913
|
value: input.mapIds
|
|
6882
|
-
})) && input.mapIds.map((elem,
|
|
6883
|
-
path: _path + ".mapIds[" +
|
|
6914
|
+
})) && input.mapIds.map((elem, _index25) => "string" === typeof elem || $report(_exceptionable, {
|
|
6915
|
+
path: _path + ".mapIds[" + _index25 + "]",
|
|
6884
6916
|
expected: "string",
|
|
6885
6917
|
value: elem
|
|
6886
6918
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6891,11 +6923,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6891
6923
|
path: _path + ".claimId",
|
|
6892
6924
|
expected: "string",
|
|
6893
6925
|
value: input.claimId
|
|
6894
|
-
})
|
|
6895
|
-
path: _path + ".
|
|
6896
|
-
expected: "string",
|
|
6897
|
-
value: input.
|
|
6898
|
-
})].every(flag => flag); const $
|
|
6926
|
+
}), undefined === input.weight || "string" === typeof input.weight || "number" === typeof input.weight || "bigint" === typeof input.weight || $report(_exceptionable, {
|
|
6927
|
+
path: _path + ".weight",
|
|
6928
|
+
expected: "(bigint | number | string | undefined)",
|
|
6929
|
+
value: input.weight
|
|
6930
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.eventId || $report(_exceptionable, {
|
|
6899
6931
|
path: _path + ".eventId",
|
|
6900
6932
|
expected: "string",
|
|
6901
6933
|
value: input.eventId
|
|
@@ -6911,19 +6943,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6911
6943
|
path: _path + ".eventTimes",
|
|
6912
6944
|
expected: "Array<iUintRange<NumberType>>",
|
|
6913
6945
|
value: input.eventTimes
|
|
6914
|
-
})) && input.eventTimes.map((elem,
|
|
6915
|
-
path: _path + ".eventTimes[" +
|
|
6946
|
+
})) && input.eventTimes.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6947
|
+
path: _path + ".eventTimes[" + _index26 + "]",
|
|
6916
6948
|
expected: "iUintRange<NumberType>",
|
|
6917
6949
|
value: elem
|
|
6918
|
-
})) && $
|
|
6919
|
-
path: _path + ".eventTimes[" +
|
|
6950
|
+
})) && $vo9(elem, _path + ".eventTimes[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6951
|
+
path: _path + ".eventTimes[" + _index26 + "]",
|
|
6920
6952
|
expected: "iUintRange<NumberType>",
|
|
6921
6953
|
value: elem
|
|
6922
6954
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6923
6955
|
path: _path + ".eventTimes",
|
|
6924
6956
|
expected: "Array<iUintRange<NumberType>>",
|
|
6925
6957
|
value: input.eventTimes
|
|
6926
|
-
})].every(flag => flag); const $
|
|
6958
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6927
6959
|
path: _path + ".start",
|
|
6928
6960
|
expected: "(bigint | number | string)",
|
|
6929
6961
|
value: input.start
|
|
@@ -7013,6 +7045,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7013
7045
|
return Promise.reject(error);
|
|
7014
7046
|
}
|
|
7015
7047
|
}
|
|
7048
|
+
async calculatePoints(payload) {
|
|
7049
|
+
try {
|
|
7050
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CalculatePointsRoute()}`, payload);
|
|
7051
|
+
return new CalculatePointsSuccessResponse(response.data);
|
|
7052
|
+
}
|
|
7053
|
+
catch (error) {
|
|
7054
|
+
await this.handleApiError(error);
|
|
7055
|
+
return Promise.reject(error);
|
|
7056
|
+
}
|
|
7057
|
+
}
|
|
7016
7058
|
async updateUserSeenActivity() {
|
|
7017
7059
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
7018
7060
|
}
|