bitbadgesjs-sdk 0.30.4 → 0.31.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/BitBadgesApi.d.ts +3 -3
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +182 -871
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs-types/docs.d.ts +49 -98
- package/dist/cjs/api-indexer/docs-types/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs-types/docs.js +59 -88
- package/dist/cjs/api-indexer/docs-types/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs-types/interfaces.d.ts +23 -203
- package/dist/cjs/api-indexer/docs-types/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs-types/interfaces.js +0 -1
- package/dist/cjs/api-indexer/docs-types/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +73 -82
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +49 -16
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -1
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/core/permissions.js +4 -4
- package/dist/cjs/core/permissions.js.map +1 -1
- package/dist/cjs/core/permissions.spec.d.ts +2 -0
- package/dist/cjs/core/permissions.spec.d.ts.map +1 -0
- package/dist/cjs/core/permissions.spec.js +982 -0
- package/dist/cjs/core/permissions.spec.js.map +1 -0
- package/dist/cjs/core/transfers.d.ts.map +1 -1
- package/dist/cjs/core/transfers.js +11 -7
- package/dist/cjs/core/transfers.js.map +1 -1
- package/dist/cjs/core/transfers.spec.js +123 -0
- package/dist/cjs/core/transfers.spec.js.map +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +3 -3
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +184 -873
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs-types/docs.d.ts +49 -98
- package/dist/esm/api-indexer/docs-types/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs-types/docs.js +90 -129
- package/dist/esm/api-indexer/docs-types/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs-types/interfaces.d.ts +23 -203
- package/dist/esm/api-indexer/docs-types/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs-types/interfaces.js +0 -1
- package/dist/esm/api-indexer/docs-types/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +73 -82
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +48 -16
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -1
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/core/permissions.js +4 -4
- package/dist/esm/core/permissions.js.map +1 -1
- package/dist/esm/core/permissions.spec.d.ts +2 -0
- package/dist/esm/core/permissions.spec.d.ts.map +1 -0
- package/dist/esm/core/permissions.spec.js +980 -0
- package/dist/esm/core/permissions.spec.js.map +1 -0
- package/dist/esm/core/transfers.d.ts.map +1 -1
- package/dist/esm/core/transfers.js +11 -7
- package/dist/esm/core/transfers.js.map +1 -1
- package/dist/esm/core/transfers.spec.js +124 -1
- package/dist/esm/core/transfers.spec.js.map +1 -1
- package/dist/esm/tsconfig-esm.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3491,7 +3491,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3491
3491
|
}
|
|
3492
3492
|
async getClaimAttempts(claimId, payload) {
|
|
3493
3493
|
try {
|
|
3494
|
-
const validateRes = (() => { const _io0 = input => (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.includeErrors || "boolean" === typeof input.includeErrors) && (undefined === input.address || "string" === typeof input.address)
|
|
3494
|
+
const validateRes = (() => { const _io0 = input => (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.includeErrors || "boolean" === typeof input.includeErrors) && (undefined === input.address || "string" === typeof input.address); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.bookmark || "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
3495
3495
|
path: _path + ".bookmark",
|
|
3496
3496
|
expected: "(string | undefined)",
|
|
3497
3497
|
value: input.bookmark
|
|
@@ -3503,10 +3503,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
3503
3503
|
path: _path + ".address",
|
|
3504
3504
|
expected: "(string | undefined)",
|
|
3505
3505
|
value: input.address
|
|
3506
|
-
}), undefined === input.includeRequestBinAttemptData || "boolean" === typeof input.includeRequestBinAttemptData || _report(_exceptionable, {
|
|
3507
|
-
path: _path + ".includeRequestBinAttemptData",
|
|
3508
|
-
expected: "(boolean | undefined)",
|
|
3509
|
-
value: input.includeRequestBinAttemptData
|
|
3510
3506
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
3511
3507
|
if (false === __is(input)) {
|
|
3512
3508
|
errors = [];
|
|
@@ -4498,7 +4494,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4498
4494
|
}
|
|
4499
4495
|
async getPlugins(payload) {
|
|
4500
4496
|
try {
|
|
4501
|
-
const validateRes = (() => { const _io0 = input => Array.isArray(input.pluginIds) && input.pluginIds.every(elem => "string" === typeof elem) && (undefined === input.
|
|
4497
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.pluginIds) && input.pluginIds.every(elem => "string" === typeof elem) && (undefined === input.returnSensitiveData || "boolean" === typeof input.returnSensitiveData); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.pluginIds) || _report(_exceptionable, {
|
|
4502
4498
|
path: _path + ".pluginIds",
|
|
4503
4499
|
expected: "Array<string>",
|
|
4504
4500
|
value: input.pluginIds
|
|
@@ -4510,10 +4506,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
4510
4506
|
path: _path + ".pluginIds",
|
|
4511
4507
|
expected: "Array<string>",
|
|
4512
4508
|
value: input.pluginIds
|
|
4513
|
-
}), undefined === input.
|
|
4514
|
-
path: _path + ".
|
|
4515
|
-
expected: "(
|
|
4516
|
-
value: input.
|
|
4509
|
+
}), undefined === input.returnSensitiveData || "boolean" === typeof input.returnSensitiveData || _report(_exceptionable, {
|
|
4510
|
+
path: _path + ".returnSensitiveData",
|
|
4511
|
+
expected: "(boolean | undefined)",
|
|
4512
|
+
value: input.returnSensitiveData
|
|
4517
4513
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
4518
4514
|
if (false === __is(input)) {
|
|
4519
4515
|
errors = [];
|
|
@@ -5208,16 +5204,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
5208
5204
|
return Promise.reject(error);
|
|
5209
5205
|
}
|
|
5210
5206
|
}
|
|
5211
|
-
async getAttemptDataFromRequestBin(claimId, claimAttemptId, payload) {
|
|
5212
|
-
try {
|
|
5213
|
-
const response = await this.axios.get(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetAttemptDataFromRequestBinRoute(claimId, claimAttemptId)}`, { params: payload });
|
|
5214
|
-
return new requests_js_1.GetAttemptDataFromRequestBinSuccessResponse(response.data);
|
|
5215
|
-
}
|
|
5216
|
-
catch (error) {
|
|
5217
|
-
await this.handleApiError(error);
|
|
5218
|
-
return Promise.reject(error);
|
|
5219
|
-
}
|
|
5220
|
-
}
|
|
5221
5207
|
async getSwapActivities(payload) {
|
|
5222
5208
|
try {
|
|
5223
5209
|
const validateRes = (() => { const _io0 = input => undefined === input.bookmark || "string" === typeof input.bookmark; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.bookmark || "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
@@ -5390,14 +5376,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5390
5376
|
}
|
|
5391
5377
|
async createPlugin(payload) {
|
|
5392
5378
|
try {
|
|
5393
|
-
const validateRes = (() => { const _io0 = input => "string" === typeof input.pluginId && (
|
|
5379
|
+
const validateRes = (() => { const _io0 = input => "string" === typeof input.pluginId && ("object" === typeof input.metadata && null !== input.metadata && _io1(input.metadata)) && "boolean" === typeof input.toPublish && ("object" === typeof input.initialVersion && null !== input.initialVersion && _io2(input.initialVersion)) && (undefined === input.locale || "string" === typeof input.locale); const _io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const _io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && "boolean" === typeof input.requiresSessions && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && _io6(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const _io3 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && _io4(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const _io4 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const _io5 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io6 = input => "string" === typeof input.uri && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress); const _io7 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || _report(_exceptionable, {
|
|
5394
5380
|
path: _path + ".pluginId",
|
|
5395
5381
|
expected: "string",
|
|
5396
5382
|
value: input.pluginId
|
|
5397
|
-
}), undefined === input.inviteCode || "string" === typeof input.inviteCode || _report(_exceptionable, {
|
|
5398
|
-
path: _path + ".inviteCode",
|
|
5399
|
-
expected: "(string | undefined)",
|
|
5400
|
-
value: input.inviteCode
|
|
5401
5383
|
}), ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
5402
5384
|
path: _path + ".metadata",
|
|
5403
5385
|
expected: "__type",
|
|
@@ -5410,18 +5392,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5410
5392
|
path: _path + ".toPublish",
|
|
5411
5393
|
expected: "boolean",
|
|
5412
5394
|
value: input.toPublish
|
|
5413
|
-
}), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || _report(_exceptionable, {
|
|
5414
|
-
path: _path + ".approvedUsers",
|
|
5415
|
-
expected: "(Array<string> | undefined)",
|
|
5416
|
-
value: input.approvedUsers
|
|
5417
|
-
})) && input.approvedUsers.map((elem, _index7) => "string" === typeof elem || _report(_exceptionable, {
|
|
5418
|
-
path: _path + ".approvedUsers[" + _index7 + "]",
|
|
5419
|
-
expected: "string",
|
|
5420
|
-
value: elem
|
|
5421
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
5422
|
-
path: _path + ".approvedUsers",
|
|
5423
|
-
expected: "(Array<string> | undefined)",
|
|
5424
|
-
value: input.approvedUsers
|
|
5425
5395
|
}), ("object" === typeof input.initialVersion && null !== input.initialVersion || _report(_exceptionable, {
|
|
5426
5396
|
path: _path + ".initialVersion",
|
|
5427
5397
|
expected: "PluginVersionConfigPayload",
|
|
@@ -5470,9 +5440,9 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5470
5440
|
path: _path + ".finalized",
|
|
5471
5441
|
expected: "boolean",
|
|
5472
5442
|
value: input.finalized
|
|
5473
|
-
}), "Stateless" === input.stateFunctionPreset || "
|
|
5443
|
+
}), "Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || _report(_exceptionable, {
|
|
5474
5444
|
path: _path + ".stateFunctionPreset",
|
|
5475
|
-
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\"
|
|
5445
|
+
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\")",
|
|
5476
5446
|
value: input.stateFunctionPreset
|
|
5477
5447
|
}), "boolean" === typeof input.duplicatesAllowed || _report(_exceptionable, {
|
|
5478
5448
|
path: _path + ".duplicatesAllowed",
|
|
@@ -5498,48 +5468,36 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5498
5468
|
path: _path + ".requiresUserInputs",
|
|
5499
5469
|
expected: "boolean",
|
|
5500
5470
|
value: input.requiresUserInputs
|
|
5501
|
-
}),
|
|
5502
|
-
path: _path + ".
|
|
5503
|
-
expected: "
|
|
5504
|
-
value: input.
|
|
5505
|
-
})) && _vo3(input.userInputRedirect, _path + ".userInputRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
5506
|
-
path: _path + ".userInputRedirect",
|
|
5507
|
-
expected: "(__type.o1 | undefined)",
|
|
5508
|
-
value: input.userInputRedirect
|
|
5471
|
+
}), "boolean" === typeof input.requiresSessions || _report(_exceptionable, {
|
|
5472
|
+
path: _path + ".requiresSessions",
|
|
5473
|
+
expected: "boolean",
|
|
5474
|
+
value: input.requiresSessions
|
|
5509
5475
|
}), undefined === input.userInputsSchema || (Array.isArray(input.userInputsSchema) || _report(_exceptionable, {
|
|
5510
5476
|
path: _path + ".userInputsSchema",
|
|
5511
5477
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
5512
5478
|
value: input.userInputsSchema
|
|
5513
|
-
})) && input.userInputsSchema.map((elem,
|
|
5514
|
-
path: _path + ".userInputsSchema[" +
|
|
5479
|
+
})) && input.userInputsSchema.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5480
|
+
path: _path + ".userInputsSchema[" + _index6 + "]",
|
|
5515
5481
|
expected: "JsonBodyInputSchema",
|
|
5516
5482
|
value: elem
|
|
5517
|
-
})) &&
|
|
5518
|
-
path: _path + ".userInputsSchema[" +
|
|
5483
|
+
})) && _vo3(elem, _path + ".userInputsSchema[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5484
|
+
path: _path + ".userInputsSchema[" + _index6 + "]",
|
|
5519
5485
|
expected: "JsonBodyInputSchema",
|
|
5520
5486
|
value: elem
|
|
5521
5487
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
5522
5488
|
path: _path + ".userInputsSchema",
|
|
5523
5489
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
5524
5490
|
value: input.userInputsSchema
|
|
5525
|
-
}), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || _report(_exceptionable, {
|
|
5526
|
-
path: _path + ".claimCreatorRedirect",
|
|
5527
|
-
expected: "(__type.o4 | undefined)",
|
|
5528
|
-
value: input.claimCreatorRedirect
|
|
5529
|
-
})) && _vo7(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
5530
|
-
path: _path + ".claimCreatorRedirect",
|
|
5531
|
-
expected: "(__type.o4 | undefined)",
|
|
5532
|
-
value: input.claimCreatorRedirect
|
|
5533
5491
|
}), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || _report(_exceptionable, {
|
|
5534
5492
|
path: _path + ".publicParamsSchema",
|
|
5535
5493
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
5536
5494
|
value: input.publicParamsSchema
|
|
5537
|
-
})) && input.publicParamsSchema.map((elem,
|
|
5538
|
-
path: _path + ".publicParamsSchema[" +
|
|
5495
|
+
})) && input.publicParamsSchema.map((elem, _index7) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5496
|
+
path: _path + ".publicParamsSchema[" + _index7 + "]",
|
|
5539
5497
|
expected: "JsonBodyInputSchema",
|
|
5540
5498
|
value: elem
|
|
5541
|
-
})) &&
|
|
5542
|
-
path: _path + ".publicParamsSchema[" +
|
|
5499
|
+
})) && _vo3(elem, _path + ".publicParamsSchema[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5500
|
+
path: _path + ".publicParamsSchema[" + _index7 + "]",
|
|
5543
5501
|
expected: "JsonBodyInputSchema",
|
|
5544
5502
|
value: elem
|
|
5545
5503
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -5550,12 +5508,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5550
5508
|
path: _path + ".privateParamsSchema",
|
|
5551
5509
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
5552
5510
|
value: input.privateParamsSchema
|
|
5553
|
-
})) && input.privateParamsSchema.map((elem,
|
|
5554
|
-
path: _path + ".privateParamsSchema[" +
|
|
5511
|
+
})) && input.privateParamsSchema.map((elem, _index8) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5512
|
+
path: _path + ".privateParamsSchema[" + _index8 + "]",
|
|
5555
5513
|
expected: "JsonBodyInputSchema",
|
|
5556
5514
|
value: elem
|
|
5557
|
-
})) &&
|
|
5558
|
-
path: _path + ".privateParamsSchema[" +
|
|
5515
|
+
})) && _vo3(elem, _path + ".privateParamsSchema[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5516
|
+
path: _path + ".privateParamsSchema[" + _index8 + "]",
|
|
5559
5517
|
expected: "JsonBodyInputSchema",
|
|
5560
5518
|
value: elem
|
|
5561
5519
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -5564,11 +5522,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5564
5522
|
value: input.privateParamsSchema
|
|
5565
5523
|
}), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || _report(_exceptionable, {
|
|
5566
5524
|
path: _path + ".verificationCall",
|
|
5567
|
-
expected: "(__type.
|
|
5525
|
+
expected: "(__type.o3 | undefined)",
|
|
5568
5526
|
value: input.verificationCall
|
|
5569
|
-
})) &&
|
|
5527
|
+
})) && _vo6(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || _report(_exceptionable, {
|
|
5570
5528
|
path: _path + ".verificationCall",
|
|
5571
|
-
expected: "(__type.
|
|
5529
|
+
expected: "(__type.o3 | undefined)",
|
|
5572
5530
|
value: input.verificationCall
|
|
5573
5531
|
}), undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn || _report(_exceptionable, {
|
|
5574
5532
|
path: _path + ".requireSignIn",
|
|
@@ -5578,15 +5536,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5578
5536
|
path: _path + ".customDetailsDisplay",
|
|
5579
5537
|
expected: "(string | undefined)",
|
|
5580
5538
|
value: input.customDetailsDisplay
|
|
5581
|
-
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [
|
|
5582
|
-
path: _path + ".baseUri",
|
|
5583
|
-
expected: "(string | undefined)",
|
|
5584
|
-
value: input.baseUri
|
|
5585
|
-
}), undefined === input.tutorialUri || "string" === typeof input.tutorialUri || _report(_exceptionable, {
|
|
5586
|
-
path: _path + ".tutorialUri",
|
|
5587
|
-
expected: "(string | undefined)",
|
|
5588
|
-
value: input.tutorialUri
|
|
5589
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5539
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5590
5540
|
path: _path + ".key",
|
|
5591
5541
|
expected: "string",
|
|
5592
5542
|
value: input.key
|
|
@@ -5600,11 +5550,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5600
5550
|
value: input.type
|
|
5601
5551
|
}), undefined === input.hyperlink || ("object" === typeof input.hyperlink && null !== input.hyperlink || _report(_exceptionable, {
|
|
5602
5552
|
path: _path + ".hyperlink",
|
|
5603
|
-
expected: "(__type.
|
|
5553
|
+
expected: "(__type.o1 | undefined)",
|
|
5604
5554
|
value: input.hyperlink
|
|
5605
|
-
})) &&
|
|
5555
|
+
})) && _vo4(input.hyperlink, _path + ".hyperlink", true && _exceptionable) || _report(_exceptionable, {
|
|
5606
5556
|
path: _path + ".hyperlink",
|
|
5607
|
-
expected: "(__type.
|
|
5557
|
+
expected: "(__type.o1 | undefined)",
|
|
5608
5558
|
value: input.hyperlink
|
|
5609
5559
|
}), undefined === input.helper || "string" === typeof input.helper || _report(_exceptionable, {
|
|
5610
5560
|
path: _path + ".helper",
|
|
@@ -5630,13 +5580,13 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5630
5580
|
path: _path + ".options",
|
|
5631
5581
|
expected: "(Array<__type> | undefined)",
|
|
5632
5582
|
value: input.options
|
|
5633
|
-
})) && input.options.map((elem,
|
|
5634
|
-
path: _path + ".options[" +
|
|
5635
|
-
expected: "__type.
|
|
5583
|
+
})) && input.options.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5584
|
+
path: _path + ".options[" + _index9 + "]",
|
|
5585
|
+
expected: "__type.o2",
|
|
5636
5586
|
value: elem
|
|
5637
|
-
})) &&
|
|
5638
|
-
path: _path + ".options[" +
|
|
5639
|
-
expected: "__type.
|
|
5587
|
+
})) && _vo5(elem, _path + ".options[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5588
|
+
path: _path + ".options[" + _index9 + "]",
|
|
5589
|
+
expected: "__type.o2",
|
|
5640
5590
|
value: elem
|
|
5641
5591
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
5642
5592
|
path: _path + ".options",
|
|
@@ -5646,7 +5596,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5646
5596
|
path: _path + ".arrayField",
|
|
5647
5597
|
expected: "(boolean | undefined)",
|
|
5648
5598
|
value: input.arrayField
|
|
5649
|
-
})].every(flag => flag); const
|
|
5599
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
5650
5600
|
path: _path + ".url",
|
|
5651
5601
|
expected: "string",
|
|
5652
5602
|
value: input.url
|
|
@@ -5654,7 +5604,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5654
5604
|
path: _path + ".showAsGenericView",
|
|
5655
5605
|
expected: "(boolean | undefined)",
|
|
5656
5606
|
value: input.showAsGenericView
|
|
5657
|
-
})].every(flag => flag); const
|
|
5607
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || _report(_exceptionable, {
|
|
5658
5608
|
path: _path + ".label",
|
|
5659
5609
|
expected: "string",
|
|
5660
5610
|
value: input.label
|
|
@@ -5662,36 +5612,20 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5662
5612
|
path: _path + ".value",
|
|
5663
5613
|
expected: "(boolean | number | string)",
|
|
5664
5614
|
value: input.value
|
|
5665
|
-
})].every(flag => flag); const
|
|
5666
|
-
path: _path + ".toolUri",
|
|
5667
|
-
expected: "(string | undefined)",
|
|
5668
|
-
value: input.toolUri
|
|
5669
|
-
}), undefined === input.tutorialUri || "string" === typeof input.tutorialUri || _report(_exceptionable, {
|
|
5670
|
-
path: _path + ".tutorialUri",
|
|
5671
|
-
expected: "(string | undefined)",
|
|
5672
|
-
value: input.tutorialUri
|
|
5673
|
-
}), undefined === input.testerUri || "string" === typeof input.testerUri || _report(_exceptionable, {
|
|
5674
|
-
path: _path + ".testerUri",
|
|
5675
|
-
expected: "(string | undefined)",
|
|
5676
|
-
value: input.testerUri
|
|
5677
|
-
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
5615
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
5678
5616
|
path: _path + ".uri",
|
|
5679
5617
|
expected: "string",
|
|
5680
5618
|
value: input.uri
|
|
5681
|
-
}), "POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method || _report(_exceptionable, {
|
|
5682
|
-
path: _path + ".method",
|
|
5683
|
-
expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
|
|
5684
|
-
value: input.method
|
|
5685
5619
|
}), (Array.isArray(input.hardcodedInputs) || _report(_exceptionable, {
|
|
5686
5620
|
path: _path + ".hardcodedInputs",
|
|
5687
5621
|
expected: "Array<JsonBodyInputWithValue>",
|
|
5688
5622
|
value: input.hardcodedInputs
|
|
5689
|
-
})) && input.hardcodedInputs.map((elem,
|
|
5690
|
-
path: _path + ".hardcodedInputs[" +
|
|
5623
|
+
})) && input.hardcodedInputs.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5624
|
+
path: _path + ".hardcodedInputs[" + _index10 + "]",
|
|
5691
5625
|
expected: "JsonBodyInputWithValue",
|
|
5692
5626
|
value: elem
|
|
5693
|
-
})) &&
|
|
5694
|
-
path: _path + ".hardcodedInputs[" +
|
|
5627
|
+
})) && _vo7(elem, _path + ".hardcodedInputs[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5628
|
+
path: _path + ".hardcodedInputs[" + _index10 + "]",
|
|
5695
5629
|
expected: "JsonBodyInputWithValue",
|
|
5696
5630
|
value: elem
|
|
5697
5631
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -5702,75 +5636,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5702
5636
|
path: _path + ".passAddress",
|
|
5703
5637
|
expected: "(boolean | undefined)",
|
|
5704
5638
|
value: input.passAddress
|
|
5705
|
-
})
|
|
5706
|
-
path: _path + ".passDiscord",
|
|
5707
|
-
expected: "(boolean | undefined)",
|
|
5708
|
-
value: input.passDiscord
|
|
5709
|
-
}), undefined === input.passEmail || "boolean" === typeof input.passEmail || _report(_exceptionable, {
|
|
5710
|
-
path: _path + ".passEmail",
|
|
5711
|
-
expected: "(boolean | undefined)",
|
|
5712
|
-
value: input.passEmail
|
|
5713
|
-
}), undefined === input.passTwitter || "boolean" === typeof input.passTwitter || _report(_exceptionable, {
|
|
5714
|
-
path: _path + ".passTwitter",
|
|
5715
|
-
expected: "(boolean | undefined)",
|
|
5716
|
-
value: input.passTwitter
|
|
5717
|
-
}), undefined === input.passGoogle || "boolean" === typeof input.passGoogle || _report(_exceptionable, {
|
|
5718
|
-
path: _path + ".passGoogle",
|
|
5719
|
-
expected: "(boolean | undefined)",
|
|
5720
|
-
value: input.passGoogle
|
|
5721
|
-
}), undefined === input.passYoutube || "boolean" === typeof input.passYoutube || _report(_exceptionable, {
|
|
5722
|
-
path: _path + ".passYoutube",
|
|
5723
|
-
expected: "(boolean | undefined)",
|
|
5724
|
-
value: input.passYoutube
|
|
5725
|
-
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || _report(_exceptionable, {
|
|
5726
|
-
path: _path + ".passGithub",
|
|
5727
|
-
expected: "(boolean | undefined)",
|
|
5728
|
-
value: input.passGithub
|
|
5729
|
-
}), undefined === input.passStrava || "boolean" === typeof input.passStrava || _report(_exceptionable, {
|
|
5730
|
-
path: _path + ".passStrava",
|
|
5731
|
-
expected: "(boolean | undefined)",
|
|
5732
|
-
value: input.passStrava
|
|
5733
|
-
}), undefined === input.passTwitch || "boolean" === typeof input.passTwitch || _report(_exceptionable, {
|
|
5734
|
-
path: _path + ".passTwitch",
|
|
5735
|
-
expected: "(boolean | undefined)",
|
|
5736
|
-
value: input.passTwitch
|
|
5737
|
-
}), undefined === input.passReddit || "boolean" === typeof input.passReddit || _report(_exceptionable, {
|
|
5738
|
-
path: _path + ".passReddit",
|
|
5739
|
-
expected: "(boolean | undefined)",
|
|
5740
|
-
value: input.passReddit
|
|
5741
|
-
}), undefined === input.passMeetup || "boolean" === typeof input.passMeetup || _report(_exceptionable, {
|
|
5742
|
-
path: _path + ".passMeetup",
|
|
5743
|
-
expected: "(boolean | undefined)",
|
|
5744
|
-
value: input.passMeetup
|
|
5745
|
-
}), undefined === input.passFacebook || "boolean" === typeof input.passFacebook || _report(_exceptionable, {
|
|
5746
|
-
path: _path + ".passFacebook",
|
|
5747
|
-
expected: "(boolean | undefined)",
|
|
5748
|
-
value: input.passFacebook
|
|
5749
|
-
}), undefined === input.passTelegram || "boolean" === typeof input.passTelegram || _report(_exceptionable, {
|
|
5750
|
-
path: _path + ".passTelegram",
|
|
5751
|
-
expected: "(boolean | undefined)",
|
|
5752
|
-
value: input.passTelegram
|
|
5753
|
-
}), undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster || _report(_exceptionable, {
|
|
5754
|
-
path: _path + ".passFarcaster",
|
|
5755
|
-
expected: "(boolean | undefined)",
|
|
5756
|
-
value: input.passFarcaster
|
|
5757
|
-
}), undefined === input.passSlack || "boolean" === typeof input.passSlack || _report(_exceptionable, {
|
|
5758
|
-
path: _path + ".passSlack",
|
|
5759
|
-
expected: "(boolean | undefined)",
|
|
5760
|
-
value: input.passSlack
|
|
5761
|
-
}), undefined === input.passShopify || "boolean" === typeof input.passShopify || _report(_exceptionable, {
|
|
5762
|
-
path: _path + ".passShopify",
|
|
5763
|
-
expected: "(boolean | undefined)",
|
|
5764
|
-
value: input.passShopify
|
|
5765
|
-
}), undefined === input.passBluesky || "boolean" === typeof input.passBluesky || _report(_exceptionable, {
|
|
5766
|
-
path: _path + ".passBluesky",
|
|
5767
|
-
expected: "(boolean | undefined)",
|
|
5768
|
-
value: input.passBluesky
|
|
5769
|
-
}), "string" === typeof input.postProcessingJs || _report(_exceptionable, {
|
|
5770
|
-
path: _path + ".postProcessingJs",
|
|
5771
|
-
expected: "string",
|
|
5772
|
-
value: input.postProcessingJs
|
|
5773
|
-
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5639
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5774
5640
|
path: _path + ".key",
|
|
5775
5641
|
expected: "string",
|
|
5776
5642
|
value: input.key
|
|
@@ -5831,18 +5697,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5831
5697
|
}
|
|
5832
5698
|
async updatePlugin(payload) {
|
|
5833
5699
|
try {
|
|
5834
|
-
const validateRes = (() => { const _io0 = input => "string" === typeof input.pluginId && (undefined === input.
|
|
5700
|
+
const validateRes = (() => { const _io0 = input => "string" === typeof input.pluginId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && _io9(input.versionCreate)) && (undefined === input.locale || "string" === typeof input.locale); const _io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const _io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && _io3(input.config)); const _io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.requiresSessions || "boolean" === typeof input.requiresSessions) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && _io7(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const _io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && _io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const _io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const _io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const _io7 = input => "string" === typeof input.uri && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress); const _io8 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const _io9 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && "boolean" === typeof input.requiresSessions && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && _io7(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || _report(_exceptionable, {
|
|
5835
5701
|
path: _path + ".pluginId",
|
|
5836
5702
|
expected: "string",
|
|
5837
5703
|
value: input.pluginId
|
|
5838
|
-
}), undefined === input.inviteCode || "string" === typeof input.inviteCode || _report(_exceptionable, {
|
|
5839
|
-
path: _path + ".inviteCode",
|
|
5840
|
-
expected: "(string | undefined)",
|
|
5841
|
-
value: input.inviteCode
|
|
5842
|
-
}), undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers || _report(_exceptionable, {
|
|
5843
|
-
path: _path + ".removeSelfFromApprovedUsers",
|
|
5844
|
-
expected: "(boolean | undefined)",
|
|
5845
|
-
value: input.removeSelfFromApprovedUsers
|
|
5846
5704
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
5847
5705
|
path: _path + ".metadata",
|
|
5848
5706
|
expected: "(__type | undefined)",
|
|
@@ -5855,18 +5713,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5855
5713
|
path: _path + ".toPublish",
|
|
5856
5714
|
expected: "(boolean | undefined)",
|
|
5857
5715
|
value: input.toPublish
|
|
5858
|
-
}), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || _report(_exceptionable, {
|
|
5859
|
-
path: _path + ".approvedUsers",
|
|
5860
|
-
expected: "(Array<string> | undefined)",
|
|
5861
|
-
value: input.approvedUsers
|
|
5862
|
-
})) && input.approvedUsers.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
5863
|
-
path: _path + ".approvedUsers[" + _index11 + "]",
|
|
5864
|
-
expected: "string",
|
|
5865
|
-
value: elem
|
|
5866
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
5867
|
-
path: _path + ".approvedUsers",
|
|
5868
|
-
expected: "(Array<string> | undefined)",
|
|
5869
|
-
value: input.approvedUsers
|
|
5870
5716
|
}), undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret || _report(_exceptionable, {
|
|
5871
5717
|
path: _path + ".rotatePluginSecret",
|
|
5872
5718
|
expected: "(boolean | undefined)",
|
|
@@ -5875,12 +5721,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5875
5721
|
path: _path + ".versionUpdates",
|
|
5876
5722
|
expected: "(Array<__type> | undefined)",
|
|
5877
5723
|
value: input.versionUpdates
|
|
5878
|
-
})) && input.versionUpdates.map((elem,
|
|
5879
|
-
path: _path + ".versionUpdates[" +
|
|
5724
|
+
})) && input.versionUpdates.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5725
|
+
path: _path + ".versionUpdates[" + _index10 + "]",
|
|
5880
5726
|
expected: "__type.o1",
|
|
5881
5727
|
value: elem
|
|
5882
|
-
})) && _vo2(elem, _path + ".versionUpdates[" +
|
|
5883
|
-
path: _path + ".versionUpdates[" +
|
|
5728
|
+
})) && _vo2(elem, _path + ".versionUpdates[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5729
|
+
path: _path + ".versionUpdates[" + _index10 + "]",
|
|
5884
5730
|
expected: "__type.o1",
|
|
5885
5731
|
value: elem
|
|
5886
5732
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -5891,7 +5737,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5891
5737
|
path: _path + ".versionCreate",
|
|
5892
5738
|
expected: "(PluginVersionConfigPayload | undefined)",
|
|
5893
5739
|
value: input.versionCreate
|
|
5894
|
-
})) &&
|
|
5740
|
+
})) && _vo9(input.versionCreate, _path + ".versionCreate", true && _exceptionable) || _report(_exceptionable, {
|
|
5895
5741
|
path: _path + ".versionCreate",
|
|
5896
5742
|
expected: "(PluginVersionConfigPayload | undefined)",
|
|
5897
5743
|
value: input.versionCreate
|
|
@@ -5947,9 +5793,9 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5947
5793
|
path: _path + ".finalized",
|
|
5948
5794
|
expected: "(boolean | undefined)",
|
|
5949
5795
|
value: input.finalized
|
|
5950
|
-
}), undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "
|
|
5796
|
+
}), undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || _report(_exceptionable, {
|
|
5951
5797
|
path: _path + ".stateFunctionPreset",
|
|
5952
|
-
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\" |
|
|
5798
|
+
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\" | undefined)",
|
|
5953
5799
|
value: input.stateFunctionPreset
|
|
5954
5800
|
}), undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed || _report(_exceptionable, {
|
|
5955
5801
|
path: _path + ".duplicatesAllowed",
|
|
@@ -5975,48 +5821,36 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5975
5821
|
path: _path + ".requiresUserInputs",
|
|
5976
5822
|
expected: "(boolean | undefined)",
|
|
5977
5823
|
value: input.requiresUserInputs
|
|
5978
|
-
}), undefined === input.
|
|
5979
|
-
path: _path + ".
|
|
5980
|
-
expected: "(
|
|
5981
|
-
value: input.
|
|
5982
|
-
})) && _vo4(input.userInputRedirect, _path + ".userInputRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
5983
|
-
path: _path + ".userInputRedirect",
|
|
5984
|
-
expected: "(__type.o2 | undefined)",
|
|
5985
|
-
value: input.userInputRedirect
|
|
5824
|
+
}), undefined === input.requiresSessions || "boolean" === typeof input.requiresSessions || _report(_exceptionable, {
|
|
5825
|
+
path: _path + ".requiresSessions",
|
|
5826
|
+
expected: "(boolean | undefined)",
|
|
5827
|
+
value: input.requiresSessions
|
|
5986
5828
|
}), undefined === input.userInputsSchema || (Array.isArray(input.userInputsSchema) || _report(_exceptionable, {
|
|
5987
5829
|
path: _path + ".userInputsSchema",
|
|
5988
5830
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
5989
5831
|
value: input.userInputsSchema
|
|
5990
|
-
})) && input.userInputsSchema.map((elem,
|
|
5991
|
-
path: _path + ".userInputsSchema[" +
|
|
5832
|
+
})) && input.userInputsSchema.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5833
|
+
path: _path + ".userInputsSchema[" + _index11 + "]",
|
|
5992
5834
|
expected: "JsonBodyInputSchema",
|
|
5993
5835
|
value: elem
|
|
5994
|
-
})) &&
|
|
5995
|
-
path: _path + ".userInputsSchema[" +
|
|
5836
|
+
})) && _vo4(elem, _path + ".userInputsSchema[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5837
|
+
path: _path + ".userInputsSchema[" + _index11 + "]",
|
|
5996
5838
|
expected: "JsonBodyInputSchema",
|
|
5997
5839
|
value: elem
|
|
5998
5840
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
5999
5841
|
path: _path + ".userInputsSchema",
|
|
6000
5842
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6001
5843
|
value: input.userInputsSchema
|
|
6002
|
-
}), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || _report(_exceptionable, {
|
|
6003
|
-
path: _path + ".claimCreatorRedirect",
|
|
6004
|
-
expected: "(__type.o5 | undefined)",
|
|
6005
|
-
value: input.claimCreatorRedirect
|
|
6006
|
-
})) && _vo8(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
6007
|
-
path: _path + ".claimCreatorRedirect",
|
|
6008
|
-
expected: "(__type.o5 | undefined)",
|
|
6009
|
-
value: input.claimCreatorRedirect
|
|
6010
5844
|
}), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || _report(_exceptionable, {
|
|
6011
5845
|
path: _path + ".publicParamsSchema",
|
|
6012
5846
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6013
5847
|
value: input.publicParamsSchema
|
|
6014
|
-
})) && input.publicParamsSchema.map((elem,
|
|
6015
|
-
path: _path + ".publicParamsSchema[" +
|
|
5848
|
+
})) && input.publicParamsSchema.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5849
|
+
path: _path + ".publicParamsSchema[" + _index12 + "]",
|
|
6016
5850
|
expected: "JsonBodyInputSchema",
|
|
6017
5851
|
value: elem
|
|
6018
|
-
})) &&
|
|
6019
|
-
path: _path + ".publicParamsSchema[" +
|
|
5852
|
+
})) && _vo4(elem, _path + ".publicParamsSchema[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5853
|
+
path: _path + ".publicParamsSchema[" + _index12 + "]",
|
|
6020
5854
|
expected: "JsonBodyInputSchema",
|
|
6021
5855
|
value: elem
|
|
6022
5856
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -6027,12 +5861,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6027
5861
|
path: _path + ".privateParamsSchema",
|
|
6028
5862
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6029
5863
|
value: input.privateParamsSchema
|
|
6030
|
-
})) && input.privateParamsSchema.map((elem,
|
|
6031
|
-
path: _path + ".privateParamsSchema[" +
|
|
5864
|
+
})) && input.privateParamsSchema.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5865
|
+
path: _path + ".privateParamsSchema[" + _index13 + "]",
|
|
6032
5866
|
expected: "JsonBodyInputSchema",
|
|
6033
5867
|
value: elem
|
|
6034
|
-
})) &&
|
|
6035
|
-
path: _path + ".privateParamsSchema[" +
|
|
5868
|
+
})) && _vo4(elem, _path + ".privateParamsSchema[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5869
|
+
path: _path + ".privateParamsSchema[" + _index13 + "]",
|
|
6036
5870
|
expected: "JsonBodyInputSchema",
|
|
6037
5871
|
value: elem
|
|
6038
5872
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -6041,11 +5875,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6041
5875
|
value: input.privateParamsSchema
|
|
6042
5876
|
}), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || _report(_exceptionable, {
|
|
6043
5877
|
path: _path + ".verificationCall",
|
|
6044
|
-
expected: "(__type.
|
|
5878
|
+
expected: "(__type.o4 | undefined)",
|
|
6045
5879
|
value: input.verificationCall
|
|
6046
|
-
})) &&
|
|
5880
|
+
})) && _vo7(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || _report(_exceptionable, {
|
|
6047
5881
|
path: _path + ".verificationCall",
|
|
6048
|
-
expected: "(__type.
|
|
5882
|
+
expected: "(__type.o4 | undefined)",
|
|
6049
5883
|
value: input.verificationCall
|
|
6050
5884
|
}), undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn || _report(_exceptionable, {
|
|
6051
5885
|
path: _path + ".requireSignIn",
|
|
@@ -6055,15 +5889,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6055
5889
|
path: _path + ".customDetailsDisplay",
|
|
6056
5890
|
expected: "(string | undefined)",
|
|
6057
5891
|
value: input.customDetailsDisplay
|
|
6058
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [
|
|
6059
|
-
path: _path + ".baseUri",
|
|
6060
|
-
expected: "(string | undefined)",
|
|
6061
|
-
value: input.baseUri
|
|
6062
|
-
}), undefined === input.tutorialUri || "string" === typeof input.tutorialUri || _report(_exceptionable, {
|
|
6063
|
-
path: _path + ".tutorialUri",
|
|
6064
|
-
expected: "(string | undefined)",
|
|
6065
|
-
value: input.tutorialUri
|
|
6066
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5892
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
6067
5893
|
path: _path + ".key",
|
|
6068
5894
|
expected: "string",
|
|
6069
5895
|
value: input.key
|
|
@@ -6077,11 +5903,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6077
5903
|
value: input.type
|
|
6078
5904
|
}), undefined === input.hyperlink || ("object" === typeof input.hyperlink && null !== input.hyperlink || _report(_exceptionable, {
|
|
6079
5905
|
path: _path + ".hyperlink",
|
|
6080
|
-
expected: "(__type.
|
|
5906
|
+
expected: "(__type.o2 | undefined)",
|
|
6081
5907
|
value: input.hyperlink
|
|
6082
|
-
})) &&
|
|
5908
|
+
})) && _vo5(input.hyperlink, _path + ".hyperlink", true && _exceptionable) || _report(_exceptionable, {
|
|
6083
5909
|
path: _path + ".hyperlink",
|
|
6084
|
-
expected: "(__type.
|
|
5910
|
+
expected: "(__type.o2 | undefined)",
|
|
6085
5911
|
value: input.hyperlink
|
|
6086
5912
|
}), undefined === input.helper || "string" === typeof input.helper || _report(_exceptionable, {
|
|
6087
5913
|
path: _path + ".helper",
|
|
@@ -6107,13 +5933,13 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6107
5933
|
path: _path + ".options",
|
|
6108
5934
|
expected: "(Array<__type>.o1 | undefined)",
|
|
6109
5935
|
value: input.options
|
|
6110
|
-
})) && input.options.map((elem,
|
|
6111
|
-
path: _path + ".options[" +
|
|
6112
|
-
expected: "__type.
|
|
5936
|
+
})) && input.options.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5937
|
+
path: _path + ".options[" + _index14 + "]",
|
|
5938
|
+
expected: "__type.o3",
|
|
6113
5939
|
value: elem
|
|
6114
|
-
})) &&
|
|
6115
|
-
path: _path + ".options[" +
|
|
6116
|
-
expected: "__type.
|
|
5940
|
+
})) && _vo6(elem, _path + ".options[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5941
|
+
path: _path + ".options[" + _index14 + "]",
|
|
5942
|
+
expected: "__type.o3",
|
|
6117
5943
|
value: elem
|
|
6118
5944
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
6119
5945
|
path: _path + ".options",
|
|
@@ -6123,7 +5949,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6123
5949
|
path: _path + ".arrayField",
|
|
6124
5950
|
expected: "(boolean | undefined)",
|
|
6125
5951
|
value: input.arrayField
|
|
6126
|
-
})].every(flag => flag); const
|
|
5952
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
6127
5953
|
path: _path + ".url",
|
|
6128
5954
|
expected: "string",
|
|
6129
5955
|
value: input.url
|
|
@@ -6131,7 +5957,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6131
5957
|
path: _path + ".showAsGenericView",
|
|
6132
5958
|
expected: "(boolean | undefined)",
|
|
6133
5959
|
value: input.showAsGenericView
|
|
6134
|
-
})].every(flag => flag); const
|
|
5960
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || _report(_exceptionable, {
|
|
6135
5961
|
path: _path + ".label",
|
|
6136
5962
|
expected: "string",
|
|
6137
5963
|
value: input.label
|
|
@@ -6139,36 +5965,20 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6139
5965
|
path: _path + ".value",
|
|
6140
5966
|
expected: "(boolean | number | string)",
|
|
6141
5967
|
value: input.value
|
|
6142
|
-
})].every(flag => flag); const
|
|
6143
|
-
path: _path + ".toolUri",
|
|
6144
|
-
expected: "(string | undefined)",
|
|
6145
|
-
value: input.toolUri
|
|
6146
|
-
}), undefined === input.tutorialUri || "string" === typeof input.tutorialUri || _report(_exceptionable, {
|
|
6147
|
-
path: _path + ".tutorialUri",
|
|
6148
|
-
expected: "(string | undefined)",
|
|
6149
|
-
value: input.tutorialUri
|
|
6150
|
-
}), undefined === input.testerUri || "string" === typeof input.testerUri || _report(_exceptionable, {
|
|
6151
|
-
path: _path + ".testerUri",
|
|
6152
|
-
expected: "(string | undefined)",
|
|
6153
|
-
value: input.testerUri
|
|
6154
|
-
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
5968
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
6155
5969
|
path: _path + ".uri",
|
|
6156
5970
|
expected: "string",
|
|
6157
5971
|
value: input.uri
|
|
6158
|
-
}), "POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method || _report(_exceptionable, {
|
|
6159
|
-
path: _path + ".method",
|
|
6160
|
-
expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
|
|
6161
|
-
value: input.method
|
|
6162
5972
|
}), (Array.isArray(input.hardcodedInputs) || _report(_exceptionable, {
|
|
6163
5973
|
path: _path + ".hardcodedInputs",
|
|
6164
5974
|
expected: "Array<JsonBodyInputWithValue>",
|
|
6165
5975
|
value: input.hardcodedInputs
|
|
6166
|
-
})) && input.hardcodedInputs.map((elem,
|
|
6167
|
-
path: _path + ".hardcodedInputs[" +
|
|
5976
|
+
})) && input.hardcodedInputs.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5977
|
+
path: _path + ".hardcodedInputs[" + _index15 + "]",
|
|
6168
5978
|
expected: "JsonBodyInputWithValue",
|
|
6169
5979
|
value: elem
|
|
6170
|
-
})) &&
|
|
6171
|
-
path: _path + ".hardcodedInputs[" +
|
|
5980
|
+
})) && _vo8(elem, _path + ".hardcodedInputs[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5981
|
+
path: _path + ".hardcodedInputs[" + _index15 + "]",
|
|
6172
5982
|
expected: "JsonBodyInputWithValue",
|
|
6173
5983
|
value: elem
|
|
6174
5984
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -6179,75 +5989,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6179
5989
|
path: _path + ".passAddress",
|
|
6180
5990
|
expected: "(boolean | undefined)",
|
|
6181
5991
|
value: input.passAddress
|
|
6182
|
-
})
|
|
6183
|
-
path: _path + ".passDiscord",
|
|
6184
|
-
expected: "(boolean | undefined)",
|
|
6185
|
-
value: input.passDiscord
|
|
6186
|
-
}), undefined === input.passEmail || "boolean" === typeof input.passEmail || _report(_exceptionable, {
|
|
6187
|
-
path: _path + ".passEmail",
|
|
6188
|
-
expected: "(boolean | undefined)",
|
|
6189
|
-
value: input.passEmail
|
|
6190
|
-
}), undefined === input.passTwitter || "boolean" === typeof input.passTwitter || _report(_exceptionable, {
|
|
6191
|
-
path: _path + ".passTwitter",
|
|
6192
|
-
expected: "(boolean | undefined)",
|
|
6193
|
-
value: input.passTwitter
|
|
6194
|
-
}), undefined === input.passGoogle || "boolean" === typeof input.passGoogle || _report(_exceptionable, {
|
|
6195
|
-
path: _path + ".passGoogle",
|
|
6196
|
-
expected: "(boolean | undefined)",
|
|
6197
|
-
value: input.passGoogle
|
|
6198
|
-
}), undefined === input.passYoutube || "boolean" === typeof input.passYoutube || _report(_exceptionable, {
|
|
6199
|
-
path: _path + ".passYoutube",
|
|
6200
|
-
expected: "(boolean | undefined)",
|
|
6201
|
-
value: input.passYoutube
|
|
6202
|
-
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || _report(_exceptionable, {
|
|
6203
|
-
path: _path + ".passGithub",
|
|
6204
|
-
expected: "(boolean | undefined)",
|
|
6205
|
-
value: input.passGithub
|
|
6206
|
-
}), undefined === input.passStrava || "boolean" === typeof input.passStrava || _report(_exceptionable, {
|
|
6207
|
-
path: _path + ".passStrava",
|
|
6208
|
-
expected: "(boolean | undefined)",
|
|
6209
|
-
value: input.passStrava
|
|
6210
|
-
}), undefined === input.passTwitch || "boolean" === typeof input.passTwitch || _report(_exceptionable, {
|
|
6211
|
-
path: _path + ".passTwitch",
|
|
6212
|
-
expected: "(boolean | undefined)",
|
|
6213
|
-
value: input.passTwitch
|
|
6214
|
-
}), undefined === input.passReddit || "boolean" === typeof input.passReddit || _report(_exceptionable, {
|
|
6215
|
-
path: _path + ".passReddit",
|
|
6216
|
-
expected: "(boolean | undefined)",
|
|
6217
|
-
value: input.passReddit
|
|
6218
|
-
}), undefined === input.passMeetup || "boolean" === typeof input.passMeetup || _report(_exceptionable, {
|
|
6219
|
-
path: _path + ".passMeetup",
|
|
6220
|
-
expected: "(boolean | undefined)",
|
|
6221
|
-
value: input.passMeetup
|
|
6222
|
-
}), undefined === input.passFacebook || "boolean" === typeof input.passFacebook || _report(_exceptionable, {
|
|
6223
|
-
path: _path + ".passFacebook",
|
|
6224
|
-
expected: "(boolean | undefined)",
|
|
6225
|
-
value: input.passFacebook
|
|
6226
|
-
}), undefined === input.passTelegram || "boolean" === typeof input.passTelegram || _report(_exceptionable, {
|
|
6227
|
-
path: _path + ".passTelegram",
|
|
6228
|
-
expected: "(boolean | undefined)",
|
|
6229
|
-
value: input.passTelegram
|
|
6230
|
-
}), undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster || _report(_exceptionable, {
|
|
6231
|
-
path: _path + ".passFarcaster",
|
|
6232
|
-
expected: "(boolean | undefined)",
|
|
6233
|
-
value: input.passFarcaster
|
|
6234
|
-
}), undefined === input.passSlack || "boolean" === typeof input.passSlack || _report(_exceptionable, {
|
|
6235
|
-
path: _path + ".passSlack",
|
|
6236
|
-
expected: "(boolean | undefined)",
|
|
6237
|
-
value: input.passSlack
|
|
6238
|
-
}), undefined === input.passShopify || "boolean" === typeof input.passShopify || _report(_exceptionable, {
|
|
6239
|
-
path: _path + ".passShopify",
|
|
6240
|
-
expected: "(boolean | undefined)",
|
|
6241
|
-
value: input.passShopify
|
|
6242
|
-
}), undefined === input.passBluesky || "boolean" === typeof input.passBluesky || _report(_exceptionable, {
|
|
6243
|
-
path: _path + ".passBluesky",
|
|
6244
|
-
expected: "(boolean | undefined)",
|
|
6245
|
-
value: input.passBluesky
|
|
6246
|
-
}), "string" === typeof input.postProcessingJs || _report(_exceptionable, {
|
|
6247
|
-
path: _path + ".postProcessingJs",
|
|
6248
|
-
expected: "string",
|
|
6249
|
-
value: input.postProcessingJs
|
|
6250
|
-
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
5992
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || _report(_exceptionable, {
|
|
6251
5993
|
path: _path + ".key",
|
|
6252
5994
|
expected: "string",
|
|
6253
5995
|
value: input.key
|
|
@@ -6267,13 +6009,13 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6267
6009
|
path: _path + ".headerField",
|
|
6268
6010
|
expected: "(boolean | undefined)",
|
|
6269
6011
|
value: input.headerField
|
|
6270
|
-
})].every(flag => flag); const
|
|
6012
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.finalized || _report(_exceptionable, {
|
|
6271
6013
|
path: _path + ".finalized",
|
|
6272
6014
|
expected: "boolean",
|
|
6273
6015
|
value: input.finalized
|
|
6274
|
-
}), "Stateless" === input.stateFunctionPreset || "
|
|
6016
|
+
}), "Stateless" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || _report(_exceptionable, {
|
|
6275
6017
|
path: _path + ".stateFunctionPreset",
|
|
6276
|
-
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\"
|
|
6018
|
+
expected: "(\"ClaimNumbers\" | \"ClaimToken\" | \"CustomResponseHandler\" | \"Stateless\")",
|
|
6277
6019
|
value: input.stateFunctionPreset
|
|
6278
6020
|
}), "boolean" === typeof input.duplicatesAllowed || _report(_exceptionable, {
|
|
6279
6021
|
path: _path + ".duplicatesAllowed",
|
|
@@ -6299,48 +6041,36 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6299
6041
|
path: _path + ".requiresUserInputs",
|
|
6300
6042
|
expected: "boolean",
|
|
6301
6043
|
value: input.requiresUserInputs
|
|
6302
|
-
}),
|
|
6303
|
-
path: _path + ".
|
|
6304
|
-
expected: "
|
|
6305
|
-
value: input.
|
|
6306
|
-
})) && _vo4(input.userInputRedirect, _path + ".userInputRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
6307
|
-
path: _path + ".userInputRedirect",
|
|
6308
|
-
expected: "(__type.o2 | undefined)",
|
|
6309
|
-
value: input.userInputRedirect
|
|
6044
|
+
}), "boolean" === typeof input.requiresSessions || _report(_exceptionable, {
|
|
6045
|
+
path: _path + ".requiresSessions",
|
|
6046
|
+
expected: "boolean",
|
|
6047
|
+
value: input.requiresSessions
|
|
6310
6048
|
}), undefined === input.userInputsSchema || (Array.isArray(input.userInputsSchema) || _report(_exceptionable, {
|
|
6311
6049
|
path: _path + ".userInputsSchema",
|
|
6312
6050
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6313
6051
|
value: input.userInputsSchema
|
|
6314
|
-
})) && input.userInputsSchema.map((elem,
|
|
6315
|
-
path: _path + ".userInputsSchema[" +
|
|
6052
|
+
})) && input.userInputsSchema.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
6053
|
+
path: _path + ".userInputsSchema[" + _index16 + "]",
|
|
6316
6054
|
expected: "JsonBodyInputSchema",
|
|
6317
6055
|
value: elem
|
|
6318
|
-
})) &&
|
|
6319
|
-
path: _path + ".userInputsSchema[" +
|
|
6056
|
+
})) && _vo4(elem, _path + ".userInputsSchema[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
6057
|
+
path: _path + ".userInputsSchema[" + _index16 + "]",
|
|
6320
6058
|
expected: "JsonBodyInputSchema",
|
|
6321
6059
|
value: elem
|
|
6322
6060
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
6323
6061
|
path: _path + ".userInputsSchema",
|
|
6324
6062
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6325
6063
|
value: input.userInputsSchema
|
|
6326
|
-
}), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || _report(_exceptionable, {
|
|
6327
|
-
path: _path + ".claimCreatorRedirect",
|
|
6328
|
-
expected: "(__type.o5 | undefined)",
|
|
6329
|
-
value: input.claimCreatorRedirect
|
|
6330
|
-
})) && _vo8(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || _report(_exceptionable, {
|
|
6331
|
-
path: _path + ".claimCreatorRedirect",
|
|
6332
|
-
expected: "(__type.o5 | undefined)",
|
|
6333
|
-
value: input.claimCreatorRedirect
|
|
6334
6064
|
}), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || _report(_exceptionable, {
|
|
6335
6065
|
path: _path + ".publicParamsSchema",
|
|
6336
6066
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6337
6067
|
value: input.publicParamsSchema
|
|
6338
|
-
})) && input.publicParamsSchema.map((elem,
|
|
6339
|
-
path: _path + ".publicParamsSchema[" +
|
|
6068
|
+
})) && input.publicParamsSchema.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
6069
|
+
path: _path + ".publicParamsSchema[" + _index17 + "]",
|
|
6340
6070
|
expected: "JsonBodyInputSchema",
|
|
6341
6071
|
value: elem
|
|
6342
|
-
})) &&
|
|
6343
|
-
path: _path + ".publicParamsSchema[" +
|
|
6072
|
+
})) && _vo4(elem, _path + ".publicParamsSchema[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
6073
|
+
path: _path + ".publicParamsSchema[" + _index17 + "]",
|
|
6344
6074
|
expected: "JsonBodyInputSchema",
|
|
6345
6075
|
value: elem
|
|
6346
6076
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -6351,12 +6081,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6351
6081
|
path: _path + ".privateParamsSchema",
|
|
6352
6082
|
expected: "(Array<JsonBodyInputSchema> | undefined)",
|
|
6353
6083
|
value: input.privateParamsSchema
|
|
6354
|
-
})) && input.privateParamsSchema.map((elem,
|
|
6355
|
-
path: _path + ".privateParamsSchema[" +
|
|
6084
|
+
})) && input.privateParamsSchema.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
6085
|
+
path: _path + ".privateParamsSchema[" + _index18 + "]",
|
|
6356
6086
|
expected: "JsonBodyInputSchema",
|
|
6357
6087
|
value: elem
|
|
6358
|
-
})) &&
|
|
6359
|
-
path: _path + ".privateParamsSchema[" +
|
|
6088
|
+
})) && _vo4(elem, _path + ".privateParamsSchema[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
6089
|
+
path: _path + ".privateParamsSchema[" + _index18 + "]",
|
|
6360
6090
|
expected: "JsonBodyInputSchema",
|
|
6361
6091
|
value: elem
|
|
6362
6092
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -6365,11 +6095,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6365
6095
|
value: input.privateParamsSchema
|
|
6366
6096
|
}), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || _report(_exceptionable, {
|
|
6367
6097
|
path: _path + ".verificationCall",
|
|
6368
|
-
expected: "(__type.
|
|
6098
|
+
expected: "(__type.o4 | undefined)",
|
|
6369
6099
|
value: input.verificationCall
|
|
6370
|
-
})) &&
|
|
6100
|
+
})) && _vo7(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || _report(_exceptionable, {
|
|
6371
6101
|
path: _path + ".verificationCall",
|
|
6372
|
-
expected: "(__type.
|
|
6102
|
+
expected: "(__type.o4 | undefined)",
|
|
6373
6103
|
value: input.verificationCall
|
|
6374
6104
|
}), undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn || _report(_exceptionable, {
|
|
6375
6105
|
path: _path + ".requireSignIn",
|
|
@@ -6467,11 +6197,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6467
6197
|
}
|
|
6468
6198
|
async searchPlugins(payload) {
|
|
6469
6199
|
try {
|
|
6470
|
-
const validateRes = (() => { const _io0 = input => (undefined === input.
|
|
6471
|
-
path: _path + ".pluginsForSignedInUser",
|
|
6472
|
-
expected: "(boolean | undefined)",
|
|
6473
|
-
value: input.pluginsForSignedInUser
|
|
6474
|
-
}), undefined === input.bookmark || "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
6200
|
+
const validateRes = (() => { const _io0 = input => (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.searchValue || "string" === typeof input.searchValue) && (undefined === input.locale || "string" === typeof input.locale); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.bookmark || "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
6475
6201
|
path: _path + ".bookmark",
|
|
6476
6202
|
expected: "(string | undefined)",
|
|
6477
6203
|
value: input.bookmark
|
|
@@ -6524,6 +6250,61 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6524
6250
|
return Promise.reject(error);
|
|
6525
6251
|
}
|
|
6526
6252
|
}
|
|
6253
|
+
async getCreatorPlugins(payload) {
|
|
6254
|
+
try {
|
|
6255
|
+
const validateRes = (() => { const _io0 = input => "string" === typeof input.creatorAddress && (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.returnSensitiveData || "boolean" === typeof input.returnSensitiveData); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.creatorAddress || _report(_exceptionable, {
|
|
6256
|
+
path: _path + ".creatorAddress",
|
|
6257
|
+
expected: "string",
|
|
6258
|
+
value: input.creatorAddress
|
|
6259
|
+
}), undefined === input.bookmark || "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
6260
|
+
path: _path + ".bookmark",
|
|
6261
|
+
expected: "(string | undefined)",
|
|
6262
|
+
value: input.bookmark
|
|
6263
|
+
}), undefined === input.returnSensitiveData || "boolean" === typeof input.returnSensitiveData || _report(_exceptionable, {
|
|
6264
|
+
path: _path + ".returnSensitiveData",
|
|
6265
|
+
expected: "(boolean | undefined)",
|
|
6266
|
+
value: input.returnSensitiveData
|
|
6267
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
6268
|
+
if (false === __is(input)) {
|
|
6269
|
+
errors = [];
|
|
6270
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
6271
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
6272
|
+
path: _path + "",
|
|
6273
|
+
expected: "iGetCreatorPluginsPayload",
|
|
6274
|
+
value: input
|
|
6275
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
6276
|
+
path: _path + "",
|
|
6277
|
+
expected: "iGetCreatorPluginsPayload",
|
|
6278
|
+
value: input
|
|
6279
|
+
}))(input, "$input", true);
|
|
6280
|
+
const success = 0 === errors.length;
|
|
6281
|
+
return success ? {
|
|
6282
|
+
success,
|
|
6283
|
+
data: input
|
|
6284
|
+
} : {
|
|
6285
|
+
success,
|
|
6286
|
+
errors,
|
|
6287
|
+
data: input
|
|
6288
|
+
};
|
|
6289
|
+
}
|
|
6290
|
+
return {
|
|
6291
|
+
success: true,
|
|
6292
|
+
data: input
|
|
6293
|
+
};
|
|
6294
|
+
}; })()(payload ?? {});
|
|
6295
|
+
if (!validateRes.success) {
|
|
6296
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6297
|
+
}
|
|
6298
|
+
const response = await this.axios.get(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetCreatorPluginsRoute()}`, {
|
|
6299
|
+
params: payload
|
|
6300
|
+
});
|
|
6301
|
+
return new requests_js_1.GetPluginsSuccessResponse(response.data);
|
|
6302
|
+
}
|
|
6303
|
+
catch (error) {
|
|
6304
|
+
await this.handleApiError(error);
|
|
6305
|
+
return Promise.reject(error);
|
|
6306
|
+
}
|
|
6307
|
+
}
|
|
6527
6308
|
async fetchMetadataDirectly(payload) {
|
|
6528
6309
|
try {
|
|
6529
6310
|
const validateRes = (() => { const _io0 = input => Array.isArray(input.uris) && input.uris.every(elem => "string" === typeof elem); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.uris) || _report(_exceptionable, {
|
|
@@ -7831,7 +7612,9 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7831
7612
|
if (!validateRes.success) {
|
|
7832
7613
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7833
7614
|
}
|
|
7834
|
-
const response = await this.axios.get(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetPluginErrorsRoute()}
|
|
7615
|
+
const response = await this.axios.get(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetPluginErrorsRoute()}`, {
|
|
7616
|
+
params: payload
|
|
7617
|
+
});
|
|
7835
7618
|
return new requests_js_1.GetPluginErrorsSuccessResponse(response.data);
|
|
7836
7619
|
}
|
|
7837
7620
|
catch (error) {
|
|
@@ -7973,86 +7756,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7973
7756
|
}
|
|
7974
7757
|
async signOut(payload) {
|
|
7975
7758
|
try {
|
|
7976
|
-
const validateRes = (() => { const _io0 = input => "boolean" === typeof input.signOutBlockin
|
|
7759
|
+
const validateRes = (() => { const _io0 = input => "boolean" === typeof input.signOutBlockin; const _vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || _report(_exceptionable, {
|
|
7977
7760
|
path: _path + ".signOutBlockin",
|
|
7978
7761
|
expected: "boolean",
|
|
7979
7762
|
value: input.signOutBlockin
|
|
7980
|
-
}), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || _report(_exceptionable, {
|
|
7981
|
-
path: _path + ".signOutDiscord",
|
|
7982
|
-
expected: "(boolean | undefined)",
|
|
7983
|
-
value: input.signOutDiscord
|
|
7984
|
-
}), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || _report(_exceptionable, {
|
|
7985
|
-
path: _path + ".signOutTwitter",
|
|
7986
|
-
expected: "(boolean | undefined)",
|
|
7987
|
-
value: input.signOutTwitter
|
|
7988
|
-
}), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || _report(_exceptionable, {
|
|
7989
|
-
path: _path + ".signOutGoogle",
|
|
7990
|
-
expected: "(boolean | undefined)",
|
|
7991
|
-
value: input.signOutGoogle
|
|
7992
|
-
}), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || _report(_exceptionable, {
|
|
7993
|
-
path: _path + ".signOutGithub",
|
|
7994
|
-
expected: "(boolean | undefined)",
|
|
7995
|
-
value: input.signOutGithub
|
|
7996
|
-
}), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || _report(_exceptionable, {
|
|
7997
|
-
path: _path + ".signOutTwitch",
|
|
7998
|
-
expected: "(boolean | undefined)",
|
|
7999
|
-
value: input.signOutTwitch
|
|
8000
|
-
}), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || _report(_exceptionable, {
|
|
8001
|
-
path: _path + ".signOutStrava",
|
|
8002
|
-
expected: "(boolean | undefined)",
|
|
8003
|
-
value: input.signOutStrava
|
|
8004
|
-
}), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || _report(_exceptionable, {
|
|
8005
|
-
path: _path + ".signOutYoutube",
|
|
8006
|
-
expected: "(boolean | undefined)",
|
|
8007
|
-
value: input.signOutYoutube
|
|
8008
|
-
}), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || _report(_exceptionable, {
|
|
8009
|
-
path: _path + ".signOutReddit",
|
|
8010
|
-
expected: "(boolean | undefined)",
|
|
8011
|
-
value: input.signOutReddit
|
|
8012
|
-
}), undefined === input.signOutMeetup || "boolean" === typeof input.signOutMeetup || _report(_exceptionable, {
|
|
8013
|
-
path: _path + ".signOutMeetup",
|
|
8014
|
-
expected: "(boolean | undefined)",
|
|
8015
|
-
value: input.signOutMeetup
|
|
8016
|
-
}), undefined === input.signOutBluesky || "boolean" === typeof input.signOutBluesky || _report(_exceptionable, {
|
|
8017
|
-
path: _path + ".signOutBluesky",
|
|
8018
|
-
expected: "(boolean | undefined)",
|
|
8019
|
-
value: input.signOutBluesky
|
|
8020
|
-
}), undefined === input.signOutMailchimp || "boolean" === typeof input.signOutMailchimp || _report(_exceptionable, {
|
|
8021
|
-
path: _path + ".signOutMailchimp",
|
|
8022
|
-
expected: "(boolean | undefined)",
|
|
8023
|
-
value: input.signOutMailchimp
|
|
8024
|
-
}), undefined === input.signOutGoogleCalendar || "boolean" === typeof input.signOutGoogleCalendar || _report(_exceptionable, {
|
|
8025
|
-
path: _path + ".signOutGoogleCalendar",
|
|
8026
|
-
expected: "(boolean | undefined)",
|
|
8027
|
-
value: input.signOutGoogleCalendar
|
|
8028
|
-
}), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || _report(_exceptionable, {
|
|
8029
|
-
path: _path + ".signOutTelegram",
|
|
8030
|
-
expected: "(boolean | undefined)",
|
|
8031
|
-
value: input.signOutTelegram
|
|
8032
|
-
}), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || _report(_exceptionable, {
|
|
8033
|
-
path: _path + ".signOutFarcaster",
|
|
8034
|
-
expected: "(boolean | undefined)",
|
|
8035
|
-
value: input.signOutFarcaster
|
|
8036
|
-
}), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || _report(_exceptionable, {
|
|
8037
|
-
path: _path + ".signOutSlack",
|
|
8038
|
-
expected: "(boolean | undefined)",
|
|
8039
|
-
value: input.signOutSlack
|
|
8040
|
-
}), undefined === input.signOutEmail || "boolean" === typeof input.signOutEmail || _report(_exceptionable, {
|
|
8041
|
-
path: _path + ".signOutEmail",
|
|
8042
|
-
expected: "(boolean | undefined)",
|
|
8043
|
-
value: input.signOutEmail
|
|
8044
|
-
}), undefined === input.signOutFacebook || "boolean" === typeof input.signOutFacebook || _report(_exceptionable, {
|
|
8045
|
-
path: _path + ".signOutFacebook",
|
|
8046
|
-
expected: "(boolean | undefined)",
|
|
8047
|
-
value: input.signOutFacebook
|
|
8048
|
-
}), undefined === input.signOutLinkedIn || "boolean" === typeof input.signOutLinkedIn || _report(_exceptionable, {
|
|
8049
|
-
path: _path + ".signOutLinkedIn",
|
|
8050
|
-
expected: "(boolean | undefined)",
|
|
8051
|
-
value: input.signOutLinkedIn
|
|
8052
|
-
}), undefined === input.signOutShopify || "boolean" === typeof input.signOutShopify || _report(_exceptionable, {
|
|
8053
|
-
path: _path + ".signOutShopify",
|
|
8054
|
-
expected: "(boolean | undefined)",
|
|
8055
|
-
value: input.signOutShopify
|
|
8056
7763
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
8057
7764
|
if (false === __is(input)) {
|
|
8058
7765
|
errors = [];
|
|
@@ -8200,7 +7907,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8200
7907
|
}
|
|
8201
7908
|
async updateAccountInfo(payload) {
|
|
8202
7909
|
try {
|
|
8203
|
-
const validateRes = (() => { const _io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.bluesky || "string" === typeof input.bluesky) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenTokens || Array.isArray(input.hiddenTokens) && input.hiddenTokens.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io3(input.notifications))
|
|
7910
|
+
const validateRes = (() => { const _io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.bluesky || "string" === typeof input.bluesky) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenTokens || Array.isArray(input.hiddenTokens) && input.hiddenTokens.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io3(input.notifications)); const _io1 = input => "string" === typeof input.collectionId && (Array.isArray(input.tokenIds) && input.tokenIds.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const _io3 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && _io4(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && _io5(input.preferences)); const _io4 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const _io5 = input => (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator) && (undefined === input.signInAlertsEnabled || "boolean" === typeof input.signInAlertsEnabled); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || _report(_exceptionable, {
|
|
8204
7911
|
path: _path + ".discord",
|
|
8205
7912
|
expected: "(string | undefined)",
|
|
8206
7913
|
value: input.discord
|
|
@@ -8232,12 +7939,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8232
7939
|
path: _path + ".hiddenTokens",
|
|
8233
7940
|
expected: "(Array<iBatchTokenDetails<NumberType>> | undefined)",
|
|
8234
7941
|
value: input.hiddenTokens
|
|
8235
|
-
})) && input.hiddenTokens.map((elem,
|
|
8236
|
-
path: _path + ".hiddenTokens[" +
|
|
7942
|
+
})) && input.hiddenTokens.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
7943
|
+
path: _path + ".hiddenTokens[" + _index3 + "]",
|
|
8237
7944
|
expected: "iBatchTokenDetails<NumberType>",
|
|
8238
7945
|
value: elem
|
|
8239
|
-
})) && _vo1(elem, _path + ".hiddenTokens[" +
|
|
8240
|
-
path: _path + ".hiddenTokens[" +
|
|
7946
|
+
})) && _vo1(elem, _path + ".hiddenTokens[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
7947
|
+
path: _path + ".hiddenTokens[" + _index3 + "]",
|
|
8241
7948
|
expected: "iBatchTokenDetails<NumberType>",
|
|
8242
7949
|
value: elem
|
|
8243
7950
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -8264,30 +7971,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8264
7971
|
path: _path + ".notifications",
|
|
8265
7972
|
expected: "(__type | undefined)",
|
|
8266
7973
|
value: input.notifications
|
|
8267
|
-
}), undefined === input.socialConnections || ("object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) || _report(_exceptionable, {
|
|
8268
|
-
path: _path + ".socialConnections",
|
|
8269
|
-
expected: "(iSocialConnections<NumberType> | undefined)",
|
|
8270
|
-
value: input.socialConnections
|
|
8271
|
-
})) && _vo6(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || _report(_exceptionable, {
|
|
8272
|
-
path: _path + ".socialConnections",
|
|
8273
|
-
expected: "(iSocialConnections<NumberType> | undefined)",
|
|
8274
|
-
value: input.socialConnections
|
|
8275
|
-
}), undefined === input.publicSocialConnectionsToSet || (Array.isArray(input.publicSocialConnectionsToSet) || _report(_exceptionable, {
|
|
8276
|
-
path: _path + ".publicSocialConnectionsToSet",
|
|
8277
|
-
expected: "(Array<__type> | undefined)",
|
|
8278
|
-
value: input.publicSocialConnectionsToSet
|
|
8279
|
-
})) && input.publicSocialConnectionsToSet.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
8280
|
-
path: _path + ".publicSocialConnectionsToSet[" + _index5 + "]",
|
|
8281
|
-
expected: "__type.o21",
|
|
8282
|
-
value: elem
|
|
8283
|
-
})) && _vo25(elem, _path + ".publicSocialConnectionsToSet[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8284
|
-
path: _path + ".publicSocialConnectionsToSet[" + _index5 + "]",
|
|
8285
|
-
expected: "__type.o21",
|
|
8286
|
-
value: elem
|
|
8287
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
8288
|
-
path: _path + ".publicSocialConnectionsToSet",
|
|
8289
|
-
expected: "(Array<__type> | undefined)",
|
|
8290
|
-
value: input.publicSocialConnectionsToSet
|
|
8291
7974
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.collectionId || _report(_exceptionable, {
|
|
8292
7975
|
path: _path + ".collectionId",
|
|
8293
7976
|
expected: "string",
|
|
@@ -8296,12 +7979,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8296
7979
|
path: _path + ".tokenIds",
|
|
8297
7980
|
expected: "Array<iUintRange<NumberType>>",
|
|
8298
7981
|
value: input.tokenIds
|
|
8299
|
-
})) && input.tokenIds.map((elem,
|
|
8300
|
-
path: _path + ".tokenIds[" +
|
|
7982
|
+
})) && input.tokenIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
7983
|
+
path: _path + ".tokenIds[" + _index4 + "]",
|
|
8301
7984
|
expected: "iUintRange<NumberType>",
|
|
8302
7985
|
value: elem
|
|
8303
|
-
})) && _vo2(elem, _path + ".tokenIds[" +
|
|
8304
|
-
path: _path + ".tokenIds[" +
|
|
7986
|
+
})) && _vo2(elem, _path + ".tokenIds[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
7987
|
+
path: _path + ".tokenIds[" + _index4 + "]",
|
|
8305
7988
|
expected: "iUintRange<NumberType>",
|
|
8306
7989
|
value: elem
|
|
8307
7990
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -8364,378 +8047,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8364
8047
|
path: _path + ".signInAlertsEnabled",
|
|
8365
8048
|
expected: "(boolean | undefined)",
|
|
8366
8049
|
value: input.signInAlertsEnabled
|
|
8367
|
-
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || _report(_exceptionable, {
|
|
8368
|
-
path: _path + ".discord",
|
|
8369
|
-
expected: "(__type.o3 | undefined)",
|
|
8370
|
-
value: input.discord
|
|
8371
|
-
})) && _vo7(input.discord, _path + ".discord", true && _exceptionable) || _report(_exceptionable, {
|
|
8372
|
-
path: _path + ".discord",
|
|
8373
|
-
expected: "(__type.o3 | undefined)",
|
|
8374
|
-
value: input.discord
|
|
8375
|
-
}), undefined === input.twitter || ("object" === typeof input.twitter && null !== input.twitter || _report(_exceptionable, {
|
|
8376
|
-
path: _path + ".twitter",
|
|
8377
|
-
expected: "(__type.o4 | undefined)",
|
|
8378
|
-
value: input.twitter
|
|
8379
|
-
})) && _vo8(input.twitter, _path + ".twitter", true && _exceptionable) || _report(_exceptionable, {
|
|
8380
|
-
path: _path + ".twitter",
|
|
8381
|
-
expected: "(__type.o4 | undefined)",
|
|
8382
|
-
value: input.twitter
|
|
8383
|
-
}), undefined === input.google || ("object" === typeof input.google && null !== input.google || _report(_exceptionable, {
|
|
8384
|
-
path: _path + ".google",
|
|
8385
|
-
expected: "(__type.o5 | undefined)",
|
|
8386
|
-
value: input.google
|
|
8387
|
-
})) && _vo9(input.google, _path + ".google", true && _exceptionable) || _report(_exceptionable, {
|
|
8388
|
-
path: _path + ".google",
|
|
8389
|
-
expected: "(__type.o5 | undefined)",
|
|
8390
|
-
value: input.google
|
|
8391
|
-
}), undefined === input.github || ("object" === typeof input.github && null !== input.github || _report(_exceptionable, {
|
|
8392
|
-
path: _path + ".github",
|
|
8393
|
-
expected: "(__type.o6 | undefined)",
|
|
8394
|
-
value: input.github
|
|
8395
|
-
})) && _vo10(input.github, _path + ".github", true && _exceptionable) || _report(_exceptionable, {
|
|
8396
|
-
path: _path + ".github",
|
|
8397
|
-
expected: "(__type.o6 | undefined)",
|
|
8398
|
-
value: input.github
|
|
8399
|
-
}), undefined === input.twitch || ("object" === typeof input.twitch && null !== input.twitch || _report(_exceptionable, {
|
|
8400
|
-
path: _path + ".twitch",
|
|
8401
|
-
expected: "(__type.o7 | undefined)",
|
|
8402
|
-
value: input.twitch
|
|
8403
|
-
})) && _vo11(input.twitch, _path + ".twitch", true && _exceptionable) || _report(_exceptionable, {
|
|
8404
|
-
path: _path + ".twitch",
|
|
8405
|
-
expected: "(__type.o7 | undefined)",
|
|
8406
|
-
value: input.twitch
|
|
8407
|
-
}), undefined === input.strava || ("object" === typeof input.strava && null !== input.strava || _report(_exceptionable, {
|
|
8408
|
-
path: _path + ".strava",
|
|
8409
|
-
expected: "(__type.o8 | undefined)",
|
|
8410
|
-
value: input.strava
|
|
8411
|
-
})) && _vo12(input.strava, _path + ".strava", true && _exceptionable) || _report(_exceptionable, {
|
|
8412
|
-
path: _path + ".strava",
|
|
8413
|
-
expected: "(__type.o8 | undefined)",
|
|
8414
|
-
value: input.strava
|
|
8415
|
-
}), undefined === input.reddit || ("object" === typeof input.reddit && null !== input.reddit || _report(_exceptionable, {
|
|
8416
|
-
path: _path + ".reddit",
|
|
8417
|
-
expected: "(__type.o9 | undefined)",
|
|
8418
|
-
value: input.reddit
|
|
8419
|
-
})) && _vo13(input.reddit, _path + ".reddit", true && _exceptionable) || _report(_exceptionable, {
|
|
8420
|
-
path: _path + ".reddit",
|
|
8421
|
-
expected: "(__type.o9 | undefined)",
|
|
8422
|
-
value: input.reddit
|
|
8423
|
-
}), undefined === input.meetup || ("object" === typeof input.meetup && null !== input.meetup || _report(_exceptionable, {
|
|
8424
|
-
path: _path + ".meetup",
|
|
8425
|
-
expected: "(__type.o10 | undefined)",
|
|
8426
|
-
value: input.meetup
|
|
8427
|
-
})) && _vo14(input.meetup, _path + ".meetup", true && _exceptionable) || _report(_exceptionable, {
|
|
8428
|
-
path: _path + ".meetup",
|
|
8429
|
-
expected: "(__type.o10 | undefined)",
|
|
8430
|
-
value: input.meetup
|
|
8431
|
-
}), undefined === input.bluesky || ("object" === typeof input.bluesky && null !== input.bluesky || _report(_exceptionable, {
|
|
8432
|
-
path: _path + ".bluesky",
|
|
8433
|
-
expected: "(__type.o11 | undefined)",
|
|
8434
|
-
value: input.bluesky
|
|
8435
|
-
})) && _vo15(input.bluesky, _path + ".bluesky", true && _exceptionable) || _report(_exceptionable, {
|
|
8436
|
-
path: _path + ".bluesky",
|
|
8437
|
-
expected: "(__type.o11 | undefined)",
|
|
8438
|
-
value: input.bluesky
|
|
8439
|
-
}), undefined === input.mailchimp || ("object" === typeof input.mailchimp && null !== input.mailchimp || _report(_exceptionable, {
|
|
8440
|
-
path: _path + ".mailchimp",
|
|
8441
|
-
expected: "(__type.o12 | undefined)",
|
|
8442
|
-
value: input.mailchimp
|
|
8443
|
-
})) && _vo16(input.mailchimp, _path + ".mailchimp", true && _exceptionable) || _report(_exceptionable, {
|
|
8444
|
-
path: _path + ".mailchimp",
|
|
8445
|
-
expected: "(__type.o12 | undefined)",
|
|
8446
|
-
value: input.mailchimp
|
|
8447
|
-
}), undefined === input.facebook || ("object" === typeof input.facebook && null !== input.facebook || _report(_exceptionable, {
|
|
8448
|
-
path: _path + ".facebook",
|
|
8449
|
-
expected: "(__type.o13 | undefined)",
|
|
8450
|
-
value: input.facebook
|
|
8451
|
-
})) && _vo17(input.facebook, _path + ".facebook", true && _exceptionable) || _report(_exceptionable, {
|
|
8452
|
-
path: _path + ".facebook",
|
|
8453
|
-
expected: "(__type.o13 | undefined)",
|
|
8454
|
-
value: input.facebook
|
|
8455
|
-
}), undefined === input.googleCalendar || ("object" === typeof input.googleCalendar && null !== input.googleCalendar || _report(_exceptionable, {
|
|
8456
|
-
path: _path + ".googleCalendar",
|
|
8457
|
-
expected: "(__type.o14 | undefined)",
|
|
8458
|
-
value: input.googleCalendar
|
|
8459
|
-
})) && _vo18(input.googleCalendar, _path + ".googleCalendar", true && _exceptionable) || _report(_exceptionable, {
|
|
8460
|
-
path: _path + ".googleCalendar",
|
|
8461
|
-
expected: "(__type.o14 | undefined)",
|
|
8462
|
-
value: input.googleCalendar
|
|
8463
|
-
}), undefined === input.youtube || ("object" === typeof input.youtube && null !== input.youtube || _report(_exceptionable, {
|
|
8464
|
-
path: _path + ".youtube",
|
|
8465
|
-
expected: "(__type.o15 | undefined)",
|
|
8466
|
-
value: input.youtube
|
|
8467
|
-
})) && _vo19(input.youtube, _path + ".youtube", true && _exceptionable) || _report(_exceptionable, {
|
|
8468
|
-
path: _path + ".youtube",
|
|
8469
|
-
expected: "(__type.o15 | undefined)",
|
|
8470
|
-
value: input.youtube
|
|
8471
|
-
}), undefined === input.linkedIn || ("object" === typeof input.linkedIn && null !== input.linkedIn || _report(_exceptionable, {
|
|
8472
|
-
path: _path + ".linkedIn",
|
|
8473
|
-
expected: "(__type.o16 | undefined)",
|
|
8474
|
-
value: input.linkedIn
|
|
8475
|
-
})) && _vo20(input.linkedIn, _path + ".linkedIn", true && _exceptionable) || _report(_exceptionable, {
|
|
8476
|
-
path: _path + ".linkedIn",
|
|
8477
|
-
expected: "(__type.o16 | undefined)",
|
|
8478
|
-
value: input.linkedIn
|
|
8479
|
-
}), undefined === input.shopify || ("object" === typeof input.shopify && null !== input.shopify || _report(_exceptionable, {
|
|
8480
|
-
path: _path + ".shopify",
|
|
8481
|
-
expected: "(__type.o17 | undefined)",
|
|
8482
|
-
value: input.shopify
|
|
8483
|
-
})) && _vo21(input.shopify, _path + ".shopify", true && _exceptionable) || _report(_exceptionable, {
|
|
8484
|
-
path: _path + ".shopify",
|
|
8485
|
-
expected: "(__type.o17 | undefined)",
|
|
8486
|
-
value: input.shopify
|
|
8487
|
-
}), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || _report(_exceptionable, {
|
|
8488
|
-
path: _path + ".telegram",
|
|
8489
|
-
expected: "(__type.o18 | undefined)",
|
|
8490
|
-
value: input.telegram
|
|
8491
|
-
})) && _vo22(input.telegram, _path + ".telegram", true && _exceptionable) || _report(_exceptionable, {
|
|
8492
|
-
path: _path + ".telegram",
|
|
8493
|
-
expected: "(__type.o18 | undefined)",
|
|
8494
|
-
value: input.telegram
|
|
8495
|
-
}), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || _report(_exceptionable, {
|
|
8496
|
-
path: _path + ".farcaster",
|
|
8497
|
-
expected: "(__type.o19 | undefined)",
|
|
8498
|
-
value: input.farcaster
|
|
8499
|
-
})) && _vo23(input.farcaster, _path + ".farcaster", true && _exceptionable) || _report(_exceptionable, {
|
|
8500
|
-
path: _path + ".farcaster",
|
|
8501
|
-
expected: "(__type.o19 | undefined)",
|
|
8502
|
-
value: input.farcaster
|
|
8503
|
-
}), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || _report(_exceptionable, {
|
|
8504
|
-
path: _path + ".slack",
|
|
8505
|
-
expected: "(__type.o20 | undefined)",
|
|
8506
|
-
value: input.slack
|
|
8507
|
-
})) && _vo24(input.slack, _path + ".slack", true && _exceptionable) || _report(_exceptionable, {
|
|
8508
|
-
path: _path + ".slack",
|
|
8509
|
-
expected: "(__type.o20 | undefined)",
|
|
8510
|
-
value: input.slack
|
|
8511
|
-
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8512
|
-
path: _path + ".username",
|
|
8513
|
-
expected: "string",
|
|
8514
|
-
value: input.username
|
|
8515
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8516
|
-
path: _path + ".id",
|
|
8517
|
-
expected: "string",
|
|
8518
|
-
value: input.id
|
|
8519
|
-
}), undefined === input.discriminator || "string" === typeof input.discriminator || _report(_exceptionable, {
|
|
8520
|
-
path: _path + ".discriminator",
|
|
8521
|
-
expected: "(string | undefined)",
|
|
8522
|
-
value: input.discriminator
|
|
8523
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8524
|
-
path: _path + ".lastUpdated",
|
|
8525
|
-
expected: "(bigint | number | string)",
|
|
8526
|
-
value: input.lastUpdated
|
|
8527
|
-
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8528
|
-
path: _path + ".username",
|
|
8529
|
-
expected: "string",
|
|
8530
|
-
value: input.username
|
|
8531
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8532
|
-
path: _path + ".id",
|
|
8533
|
-
expected: "string",
|
|
8534
|
-
value: input.id
|
|
8535
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8536
|
-
path: _path + ".lastUpdated",
|
|
8537
|
-
expected: "(bigint | number | string)",
|
|
8538
|
-
value: input.lastUpdated
|
|
8539
|
-
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8540
|
-
path: _path + ".username",
|
|
8541
|
-
expected: "string",
|
|
8542
|
-
value: input.username
|
|
8543
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8544
|
-
path: _path + ".id",
|
|
8545
|
-
expected: "string",
|
|
8546
|
-
value: input.id
|
|
8547
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8548
|
-
path: _path + ".lastUpdated",
|
|
8549
|
-
expected: "(bigint | number | string)",
|
|
8550
|
-
value: input.lastUpdated
|
|
8551
|
-
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8552
|
-
path: _path + ".username",
|
|
8553
|
-
expected: "string",
|
|
8554
|
-
value: input.username
|
|
8555
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8556
|
-
path: _path + ".id",
|
|
8557
|
-
expected: "string",
|
|
8558
|
-
value: input.id
|
|
8559
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8560
|
-
path: _path + ".lastUpdated",
|
|
8561
|
-
expected: "(bigint | number | string)",
|
|
8562
|
-
value: input.lastUpdated
|
|
8563
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8564
|
-
path: _path + ".username",
|
|
8565
|
-
expected: "string",
|
|
8566
|
-
value: input.username
|
|
8567
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8568
|
-
path: _path + ".id",
|
|
8569
|
-
expected: "string",
|
|
8570
|
-
value: input.id
|
|
8571
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8572
|
-
path: _path + ".lastUpdated",
|
|
8573
|
-
expected: "(bigint | number | string)",
|
|
8574
|
-
value: input.lastUpdated
|
|
8575
|
-
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8576
|
-
path: _path + ".username",
|
|
8577
|
-
expected: "string",
|
|
8578
|
-
value: input.username
|
|
8579
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8580
|
-
path: _path + ".id",
|
|
8581
|
-
expected: "string",
|
|
8582
|
-
value: input.id
|
|
8583
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8584
|
-
path: _path + ".lastUpdated",
|
|
8585
|
-
expected: "(bigint | number | string)",
|
|
8586
|
-
value: input.lastUpdated
|
|
8587
|
-
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8588
|
-
path: _path + ".username",
|
|
8589
|
-
expected: "string",
|
|
8590
|
-
value: input.username
|
|
8591
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8592
|
-
path: _path + ".id",
|
|
8593
|
-
expected: "string",
|
|
8594
|
-
value: input.id
|
|
8595
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8596
|
-
path: _path + ".lastUpdated",
|
|
8597
|
-
expected: "(bigint | number | string)",
|
|
8598
|
-
value: input.lastUpdated
|
|
8599
|
-
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8600
|
-
path: _path + ".username",
|
|
8601
|
-
expected: "string",
|
|
8602
|
-
value: input.username
|
|
8603
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8604
|
-
path: _path + ".id",
|
|
8605
|
-
expected: "string",
|
|
8606
|
-
value: input.id
|
|
8607
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8608
|
-
path: _path + ".lastUpdated",
|
|
8609
|
-
expected: "(bigint | number | string)",
|
|
8610
|
-
value: input.lastUpdated
|
|
8611
|
-
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8612
|
-
path: _path + ".username",
|
|
8613
|
-
expected: "string",
|
|
8614
|
-
value: input.username
|
|
8615
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8616
|
-
path: _path + ".id",
|
|
8617
|
-
expected: "string",
|
|
8618
|
-
value: input.id
|
|
8619
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8620
|
-
path: _path + ".lastUpdated",
|
|
8621
|
-
expected: "(bigint | number | string)",
|
|
8622
|
-
value: input.lastUpdated
|
|
8623
|
-
})].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8624
|
-
path: _path + ".username",
|
|
8625
|
-
expected: "string",
|
|
8626
|
-
value: input.username
|
|
8627
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8628
|
-
path: _path + ".id",
|
|
8629
|
-
expected: "string",
|
|
8630
|
-
value: input.id
|
|
8631
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8632
|
-
path: _path + ".lastUpdated",
|
|
8633
|
-
expected: "(bigint | number | string)",
|
|
8634
|
-
value: input.lastUpdated
|
|
8635
|
-
})].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8636
|
-
path: _path + ".username",
|
|
8637
|
-
expected: "string",
|
|
8638
|
-
value: input.username
|
|
8639
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8640
|
-
path: _path + ".id",
|
|
8641
|
-
expected: "string",
|
|
8642
|
-
value: input.id
|
|
8643
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8644
|
-
path: _path + ".lastUpdated",
|
|
8645
|
-
expected: "(bigint | number | string)",
|
|
8646
|
-
value: input.lastUpdated
|
|
8647
|
-
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8648
|
-
path: _path + ".username",
|
|
8649
|
-
expected: "string",
|
|
8650
|
-
value: input.username
|
|
8651
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8652
|
-
path: _path + ".id",
|
|
8653
|
-
expected: "string",
|
|
8654
|
-
value: input.id
|
|
8655
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8656
|
-
path: _path + ".lastUpdated",
|
|
8657
|
-
expected: "(bigint | number | string)",
|
|
8658
|
-
value: input.lastUpdated
|
|
8659
|
-
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8660
|
-
path: _path + ".username",
|
|
8661
|
-
expected: "string",
|
|
8662
|
-
value: input.username
|
|
8663
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8664
|
-
path: _path + ".id",
|
|
8665
|
-
expected: "string",
|
|
8666
|
-
value: input.id
|
|
8667
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8668
|
-
path: _path + ".lastUpdated",
|
|
8669
|
-
expected: "(bigint | number | string)",
|
|
8670
|
-
value: input.lastUpdated
|
|
8671
|
-
})].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8672
|
-
path: _path + ".username",
|
|
8673
|
-
expected: "string",
|
|
8674
|
-
value: input.username
|
|
8675
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8676
|
-
path: _path + ".id",
|
|
8677
|
-
expected: "string",
|
|
8678
|
-
value: input.id
|
|
8679
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8680
|
-
path: _path + ".lastUpdated",
|
|
8681
|
-
expected: "(bigint | number | string)",
|
|
8682
|
-
value: input.lastUpdated
|
|
8683
|
-
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8684
|
-
path: _path + ".username",
|
|
8685
|
-
expected: "string",
|
|
8686
|
-
value: input.username
|
|
8687
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8688
|
-
path: _path + ".id",
|
|
8689
|
-
expected: "string",
|
|
8690
|
-
value: input.id
|
|
8691
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8692
|
-
path: _path + ".lastUpdated",
|
|
8693
|
-
expected: "(bigint | number | string)",
|
|
8694
|
-
value: input.lastUpdated
|
|
8695
|
-
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8696
|
-
path: _path + ".username",
|
|
8697
|
-
expected: "string",
|
|
8698
|
-
value: input.username
|
|
8699
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8700
|
-
path: _path + ".id",
|
|
8701
|
-
expected: "string",
|
|
8702
|
-
value: input.id
|
|
8703
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8704
|
-
path: _path + ".lastUpdated",
|
|
8705
|
-
expected: "(bigint | number | string)",
|
|
8706
|
-
value: input.lastUpdated
|
|
8707
|
-
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8708
|
-
path: _path + ".username",
|
|
8709
|
-
expected: "string",
|
|
8710
|
-
value: input.username
|
|
8711
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8712
|
-
path: _path + ".id",
|
|
8713
|
-
expected: "string",
|
|
8714
|
-
value: input.id
|
|
8715
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8716
|
-
path: _path + ".lastUpdated",
|
|
8717
|
-
expected: "(bigint | number | string)",
|
|
8718
|
-
value: input.lastUpdated
|
|
8719
|
-
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || _report(_exceptionable, {
|
|
8720
|
-
path: _path + ".username",
|
|
8721
|
-
expected: "string",
|
|
8722
|
-
value: input.username
|
|
8723
|
-
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
8724
|
-
path: _path + ".id",
|
|
8725
|
-
expected: "string",
|
|
8726
|
-
value: input.id
|
|
8727
|
-
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || _report(_exceptionable, {
|
|
8728
|
-
path: _path + ".lastUpdated",
|
|
8729
|
-
expected: "(bigint | number | string)",
|
|
8730
|
-
value: input.lastUpdated
|
|
8731
|
-
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.appName || _report(_exceptionable, {
|
|
8732
|
-
path: _path + ".appName",
|
|
8733
|
-
expected: "string",
|
|
8734
|
-
value: input.appName
|
|
8735
|
-
}), undefined === input.toDelete || "boolean" === typeof input.toDelete || _report(_exceptionable, {
|
|
8736
|
-
path: _path + ".toDelete",
|
|
8737
|
-
expected: "(boolean | undefined)",
|
|
8738
|
-
value: input.toDelete
|
|
8739
8050
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
8740
8051
|
if (false === __is(input)) {
|
|
8741
8052
|
errors = [];
|