bitbadgesjs-sdk 0.3.199 → 0.3.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +18 -18
- package/dist/cjs/api-indexer/BitBadgesApi.js +101 -69
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +3 -3
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +9 -0
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +5 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +18 -18
- package/dist/esm/api-indexer/BitBadgesApi.js +101 -69
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +3 -3
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +9 -0
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +9 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -198,12 +198,12 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
198
198
|
}
|
|
199
199
|
static async CreateAddressList(api, payload) {
|
|
200
200
|
try {
|
|
201
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (undefined === input.private || "boolean" === typeof input.private) && (undefined === input.viewableWithLink || "boolean" === typeof input.viewableWithLink) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.approach || "string" === typeof input.approach); const $io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $
|
|
201
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (undefined === input.private || "boolean" === typeof input.private) && (undefined === input.viewableWithLink || "boolean" === typeof input.viewableWithLink) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.approach || "string" === typeof input.approach); const $io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io4(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io5(input.metadata)); const $io4 = input => Object.keys(input).every(key => {
|
|
202
202
|
const value = input[key];
|
|
203
203
|
if (undefined === value)
|
|
204
204
|
return true;
|
|
205
205
|
return true;
|
|
206
|
-
}); const $io5 = input =>
|
|
206
|
+
}); const $io5 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || $report(_exceptionable, {
|
|
207
207
|
path: _path + ".addressLists",
|
|
208
208
|
expected: "Array<iAddressListCreateObject>",
|
|
209
209
|
value: input.addressLists
|
|
@@ -361,26 +361,26 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
361
361
|
value: input.publicParams
|
|
362
362
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
363
363
|
path: _path + ".privateParams",
|
|
364
|
-
expected: "
|
|
364
|
+
expected: "Record<string, any>",
|
|
365
365
|
value: input.privateParams
|
|
366
|
-
})) && $
|
|
366
|
+
})) && $vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
367
367
|
path: _path + ".privateParams",
|
|
368
|
-
expected: "
|
|
368
|
+
expected: "Record<string, any>",
|
|
369
369
|
value: input.privateParams
|
|
370
370
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
371
371
|
path: _path + ".metadata",
|
|
372
|
-
expected: "(__type.
|
|
372
|
+
expected: "(__type.o1 | undefined)",
|
|
373
373
|
value: input.metadata
|
|
374
|
-
})) && $
|
|
374
|
+
})) && $vo5(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
375
375
|
path: _path + ".metadata",
|
|
376
|
-
expected: "(__type.
|
|
376
|
+
expected: "(__type.o1 | undefined)",
|
|
377
377
|
value: input.metadata
|
|
378
378
|
})].every(flag => flag); const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
379
379
|
const value = input[key];
|
|
380
380
|
if (undefined === value)
|
|
381
381
|
return true;
|
|
382
382
|
return true;
|
|
383
|
-
}).every(flag => flag)].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) =>
|
|
383
|
+
}).every(flag => flag)].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
384
384
|
path: _path + ".name",
|
|
385
385
|
expected: "string",
|
|
386
386
|
value: input.name
|
|
@@ -427,12 +427,12 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
427
427
|
}
|
|
428
428
|
static async UpdateAddressList(api, payload) {
|
|
429
429
|
try {
|
|
430
|
-
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (undefined === input.private || "boolean" === typeof input.private) && (undefined === input.viewableWithLink || "boolean" === typeof input.viewableWithLink) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.approach || "string" === typeof input.approach); const $io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $
|
|
430
|
+
const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (undefined === input.private || "boolean" === typeof input.private) && (undefined === input.viewableWithLink || "boolean" === typeof input.viewableWithLink) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.approach || "string" === typeof input.approach); const $io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io4(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io5(input.metadata)); const $io4 = input => Object.keys(input).every(key => {
|
|
431
431
|
const value = input[key];
|
|
432
432
|
if (undefined === value)
|
|
433
433
|
return true;
|
|
434
434
|
return true;
|
|
435
|
-
}); const $io5 = input =>
|
|
435
|
+
}); const $io5 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || $report(_exceptionable, {
|
|
436
436
|
path: _path + ".addressLists",
|
|
437
437
|
expected: "Array<iAddressListCreateObject>",
|
|
438
438
|
value: input.addressLists
|
|
@@ -590,26 +590,26 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
590
590
|
value: input.publicParams
|
|
591
591
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
592
592
|
path: _path + ".privateParams",
|
|
593
|
-
expected: "
|
|
593
|
+
expected: "Record<string, any>",
|
|
594
594
|
value: input.privateParams
|
|
595
|
-
})) && $
|
|
595
|
+
})) && $vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
596
596
|
path: _path + ".privateParams",
|
|
597
|
-
expected: "
|
|
597
|
+
expected: "Record<string, any>",
|
|
598
598
|
value: input.privateParams
|
|
599
599
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
600
600
|
path: _path + ".metadata",
|
|
601
|
-
expected: "(__type.
|
|
601
|
+
expected: "(__type.o1 | undefined)",
|
|
602
602
|
value: input.metadata
|
|
603
|
-
})) && $
|
|
603
|
+
})) && $vo5(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
604
604
|
path: _path + ".metadata",
|
|
605
|
-
expected: "(__type.
|
|
605
|
+
expected: "(__type.o1 | undefined)",
|
|
606
606
|
value: input.metadata
|
|
607
607
|
})].every(flag => flag); const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
608
608
|
const value = input[key];
|
|
609
609
|
if (undefined === value)
|
|
610
610
|
return true;
|
|
611
611
|
return true;
|
|
612
|
-
}).every(flag => flag)].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) =>
|
|
612
|
+
}).every(flag => flag)].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
613
613
|
path: _path + ".name",
|
|
614
614
|
expected: "string",
|
|
615
615
|
value: input.name
|