bitbadgesjs-sdk 0.4.7 → 0.4.8
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.d.ts +10 -7
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +592 -193
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +6 -3
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +6 -2
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +45 -0
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js +19 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +13 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +9 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -0
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +4 -0
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +4 -0
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +10 -7
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +226 -46
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -3
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +593 -194
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +6 -3
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +9 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +45 -0
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js +22 -0
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +13 -1
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +8 -0
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -0
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +4 -0
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +7 -0
- package/dist/esm/core/approvals.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import type { BaseBitBadgesApi, PaginationInfo } from './base.js';
|
|
|
6
6
|
import { EmptyResponseClass } from './base.js';
|
|
7
7
|
import { ListActivityDoc } from './docs/activity.js';
|
|
8
8
|
import { AddressListDoc } from './docs/docs.js';
|
|
9
|
-
import type { ClaimIntegrationPluginType, IntegrationPluginDetails, iAddressListDoc, iClaimDetails, iListActivityDoc } from './docs/interfaces.js';
|
|
9
|
+
import type { ClaimIntegrationPluginType, ClaimReward, IntegrationPluginDetails, iAddressListDoc, iClaimDetails, iListActivityDoc } from './docs/interfaces.js';
|
|
10
10
|
import type { iMetadata } from './metadata/metadata.js';
|
|
11
11
|
import { Metadata } from './metadata/metadata.js';
|
|
12
12
|
import { ClaimDetails } from '../core/approvals.js';
|
|
@@ -63,8 +63,8 @@ export declare class BitBadgesAddressList<T extends NumberType> extends AddressL
|
|
|
63
63
|
isStoredOffChain(): boolean;
|
|
64
64
|
updateWithNewResponse(newResponse: BitBadgesAddressList<T>, forceful?: boolean): void;
|
|
65
65
|
static GetAddressLists<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: GetAddressListsPayload): Promise<GetAddressListsSuccessResponse<T>>;
|
|
66
|
-
static CreateAddressList<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: CreateAddressListsPayload): Promise<CreateAddressListsSuccessResponse>;
|
|
67
|
-
static UpdateAddressList<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: UpdateAddressListsPayload): Promise<UpdateAddressListsSuccessResponse>;
|
|
66
|
+
static CreateAddressList<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: CreateAddressListsPayload<T>): Promise<CreateAddressListsSuccessResponse>;
|
|
67
|
+
static UpdateAddressList<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: UpdateAddressListsPayload<T>): Promise<UpdateAddressListsSuccessResponse>;
|
|
68
68
|
static DeleteAddressList<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: DeleteAddressListsPayload): Promise<DeleteAddressListsSuccessResponse>;
|
|
69
69
|
}
|
|
70
70
|
export interface GetAddressListsPayload {
|
|
@@ -86,24 +86,27 @@ export declare class GetAddressListsSuccessResponse<T extends NumberType> extend
|
|
|
86
86
|
constructor(data: iGetAddressListsSuccessResponse<T>);
|
|
87
87
|
convert<U extends NumberType>(convertFunction: (item: NumberType) => U): GetAddressListsSuccessResponse<U>;
|
|
88
88
|
}
|
|
89
|
-
export type iAddressListCreateObject = iAddressList & {
|
|
89
|
+
export type iAddressListCreateObject<T extends NumberType> = iAddressList & {
|
|
90
90
|
updateAddresses?: boolean;
|
|
91
91
|
private?: boolean;
|
|
92
92
|
viewableWithLink?: boolean;
|
|
93
93
|
claims: {
|
|
94
94
|
claimId: string;
|
|
95
95
|
plugins: IntegrationPluginDetails<ClaimIntegrationPluginType>[];
|
|
96
|
+
rewards?: ClaimReward<T>[];
|
|
97
|
+
estimatedCost?: string;
|
|
98
|
+
estimatedTime?: string;
|
|
96
99
|
approach?: string;
|
|
97
100
|
}[];
|
|
98
101
|
};
|
|
99
|
-
export interface UpdateAddressListsPayload {
|
|
100
|
-
addressLists: iAddressListCreateObject[];
|
|
102
|
+
export interface UpdateAddressListsPayload<T extends NumberType> {
|
|
103
|
+
addressLists: iAddressListCreateObject<T>[];
|
|
101
104
|
}
|
|
102
105
|
export interface iUpdateAddressListsSuccessResponse {
|
|
103
106
|
}
|
|
104
107
|
export declare class UpdateAddressListsSuccessResponse extends EmptyResponseClass {
|
|
105
108
|
}
|
|
106
|
-
export interface CreateAddressListsPayload extends UpdateAddressListsPayload {
|
|
109
|
+
export interface CreateAddressListsPayload<T extends NumberType> extends UpdateAddressListsPayload<T> {
|
|
107
110
|
}
|
|
108
111
|
export interface iCreateAddressListsSuccessResponse {
|
|
109
112
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitBadgesAddressList.d.ts","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAsE,MAAM,kBAAkB,CAAC;AAC3H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,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E,MAAM,CAAC;QAChB,OAAO,EAAE,wBAAwB,CAAC,0BAA0B,CAAC,EAAE,CAAC;QAChE,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;CACL,CAAC;AAKF,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU;IAC7D,YAAY,EAAE,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC7C;AAKD,MAAM,WAAW,kCAAkC;CAAG;AAItD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG;AAK5E,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU,CAAE,SAAQ,yBAAyB,CAAC,CAAC,CAAC;CAAG;AAKxG,MAAM,WAAW,kCAAkC;CAAG;AAKtD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG;AAK5E,MAAM,WAAW,yBAAyB;IAIxC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAID,MAAM,WAAW,kCAAkC;CAAG;AAItD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG"}
|
|
@@ -198,26 +198,31 @@ 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) && $io4(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io5(input.metadata)); const $io4 = input => Object.keys(input).every(key => {
|
|
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.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (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 => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $
|
|
206
|
+
}); const $io5 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io6 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io8(input.gatedContent)) && (undefined === input.automatic || "boolean" === typeof input.automatic); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io8 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io9(input.params)); const $io9 = input => Object.keys(input).every(key => {
|
|
207
|
+
const value = input[key];
|
|
208
|
+
if (undefined === value)
|
|
209
|
+
return true;
|
|
210
|
+
return true;
|
|
211
|
+
}); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || $report(_exceptionable, {
|
|
207
212
|
path: _path + ".addressLists",
|
|
208
|
-
expected: "Array<iAddressListCreateObject
|
|
213
|
+
expected: "Array<iAddressListCreateObject<T>>",
|
|
209
214
|
value: input.addressLists
|
|
210
|
-
})) && input.addressLists.map((elem,
|
|
211
|
-
path: _path + ".addressLists[" +
|
|
212
|
-
expected: "iAddressListCreateObject",
|
|
215
|
+
})) && input.addressLists.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
216
|
+
path: _path + ".addressLists[" + _index6 + "]",
|
|
217
|
+
expected: "iAddressListCreateObject<T>",
|
|
213
218
|
value: elem
|
|
214
|
-
})) && $vo1(elem, _path + ".addressLists[" +
|
|
215
|
-
path: _path + ".addressLists[" +
|
|
216
|
-
expected: "iAddressListCreateObject",
|
|
219
|
+
})) && $vo1(elem, _path + ".addressLists[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
220
|
+
path: _path + ".addressLists[" + _index6 + "]",
|
|
221
|
+
expected: "iAddressListCreateObject<T>",
|
|
217
222
|
value: elem
|
|
218
223
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
219
224
|
path: _path + ".addressLists",
|
|
220
|
-
expected: "Array<iAddressListCreateObject
|
|
225
|
+
expected: "Array<iAddressListCreateObject<T>>",
|
|
221
226
|
value: input.addressLists
|
|
222
227
|
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || $report(_exceptionable, {
|
|
223
228
|
path: _path + ".listId",
|
|
@@ -227,8 +232,8 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
227
232
|
path: _path + ".addresses",
|
|
228
233
|
expected: "Array<string>",
|
|
229
234
|
value: input.addresses
|
|
230
|
-
})) && input.addresses.map((elem,
|
|
231
|
-
path: _path + ".addresses[" +
|
|
235
|
+
})) && input.addresses.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
|
|
236
|
+
path: _path + ".addresses[" + _index7 + "]",
|
|
232
237
|
expected: "string",
|
|
233
238
|
value: elem
|
|
234
239
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -271,12 +276,12 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
271
276
|
path: _path + ".claims",
|
|
272
277
|
expected: "Array<__type>",
|
|
273
278
|
value: input.claims
|
|
274
|
-
})) && input.claims.map((elem,
|
|
275
|
-
path: _path + ".claims[" +
|
|
279
|
+
})) && input.claims.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
280
|
+
path: _path + ".claims[" + _index8 + "]",
|
|
276
281
|
expected: "__type",
|
|
277
282
|
value: elem
|
|
278
|
-
})) && $vo2(elem, _path + ".claims[" +
|
|
279
|
-
path: _path + ".claims[" +
|
|
283
|
+
})) && $vo2(elem, _path + ".claims[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
284
|
+
path: _path + ".claims[" + _index8 + "]",
|
|
280
285
|
expected: "__type",
|
|
281
286
|
value: elem
|
|
282
287
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -291,18 +296,42 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
291
296
|
path: _path + ".plugins",
|
|
292
297
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
293
298
|
value: input.plugins
|
|
294
|
-
})) && input.plugins.map((elem,
|
|
295
|
-
path: _path + ".plugins[" +
|
|
299
|
+
})) && input.plugins.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
300
|
+
path: _path + ".plugins[" + _index9 + "]",
|
|
296
301
|
expected: "IntegrationPluginDetails<string>",
|
|
297
302
|
value: elem
|
|
298
|
-
})) && $vo3(elem, _path + ".plugins[" +
|
|
299
|
-
path: _path + ".plugins[" +
|
|
303
|
+
})) && $vo3(elem, _path + ".plugins[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
304
|
+
path: _path + ".plugins[" + _index9 + "]",
|
|
300
305
|
expected: "IntegrationPluginDetails<string>",
|
|
301
306
|
value: elem
|
|
302
307
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
303
308
|
path: _path + ".plugins",
|
|
304
309
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
305
310
|
value: input.plugins
|
|
311
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
312
|
+
path: _path + ".rewards",
|
|
313
|
+
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
314
|
+
value: input.rewards
|
|
315
|
+
})) && input.rewards.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
316
|
+
path: _path + ".rewards[" + _index10 + "]",
|
|
317
|
+
expected: "ClaimReward<T>",
|
|
318
|
+
value: elem
|
|
319
|
+
})) && $vo6(elem, _path + ".rewards[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
320
|
+
path: _path + ".rewards[" + _index10 + "]",
|
|
321
|
+
expected: "ClaimReward<T>",
|
|
322
|
+
value: elem
|
|
323
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
324
|
+
path: _path + ".rewards",
|
|
325
|
+
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
326
|
+
value: input.rewards
|
|
327
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
328
|
+
path: _path + ".estimatedCost",
|
|
329
|
+
expected: "(string | undefined)",
|
|
330
|
+
value: input.estimatedCost
|
|
331
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
332
|
+
path: _path + ".estimatedTime",
|
|
333
|
+
expected: "(string | undefined)",
|
|
334
|
+
value: input.estimatedTime
|
|
306
335
|
}), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
|
|
307
336
|
path: _path + ".approach",
|
|
308
337
|
expected: "(string | undefined)",
|
|
@@ -392,17 +421,78 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
392
421
|
path: _path + ".image",
|
|
393
422
|
expected: "(string | undefined)",
|
|
394
423
|
value: input.image
|
|
395
|
-
})].every(flag => flag); const
|
|
424
|
+
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
425
|
+
path: _path + ".rewardId",
|
|
426
|
+
expected: "string",
|
|
427
|
+
value: input.rewardId
|
|
428
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
429
|
+
path: _path + ".instanceId",
|
|
430
|
+
expected: "string",
|
|
431
|
+
value: input.instanceId
|
|
432
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
433
|
+
path: _path + ".metadata",
|
|
434
|
+
expected: "(__type.o2 | undefined)",
|
|
435
|
+
value: input.metadata
|
|
436
|
+
})) && $vo7(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
437
|
+
path: _path + ".metadata",
|
|
438
|
+
expected: "(__type.o2 | undefined)",
|
|
439
|
+
value: input.metadata
|
|
440
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
441
|
+
path: _path + ".gatedContent",
|
|
442
|
+
expected: "__type.o3",
|
|
443
|
+
value: input.gatedContent
|
|
444
|
+
})) && $vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
445
|
+
path: _path + ".gatedContent",
|
|
446
|
+
expected: "__type.o3",
|
|
447
|
+
value: input.gatedContent
|
|
448
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
449
|
+
path: _path + ".automatic",
|
|
450
|
+
expected: "(boolean | undefined)",
|
|
451
|
+
value: input.automatic
|
|
452
|
+
})].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
453
|
+
path: _path + ".name",
|
|
454
|
+
expected: "string",
|
|
455
|
+
value: input.name
|
|
456
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
457
|
+
path: _path + ".description",
|
|
458
|
+
expected: "string",
|
|
459
|
+
value: input.description
|
|
460
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
461
|
+
path: _path + ".image",
|
|
462
|
+
expected: "string",
|
|
463
|
+
value: input.image
|
|
464
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
465
|
+
path: _path + ".content",
|
|
466
|
+
expected: "(string | undefined)",
|
|
467
|
+
value: input.content
|
|
468
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
469
|
+
path: _path + ".url",
|
|
470
|
+
expected: "(string | undefined)",
|
|
471
|
+
value: input.url
|
|
472
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
473
|
+
path: _path + ".params",
|
|
474
|
+
expected: "(__type.o4 | undefined)",
|
|
475
|
+
value: input.params
|
|
476
|
+
})) && $vo9(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
477
|
+
path: _path + ".params",
|
|
478
|
+
expected: "(__type.o4 | undefined)",
|
|
479
|
+
value: input.params
|
|
480
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
481
|
+
const value = input[key];
|
|
482
|
+
if (undefined === value)
|
|
483
|
+
return true;
|
|
484
|
+
return true;
|
|
485
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
396
486
|
if (false === __is(input)) {
|
|
397
487
|
errors = [];
|
|
398
488
|
$report = typia_1.default.validate.report(errors);
|
|
399
489
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
400
490
|
path: _path + "",
|
|
401
|
-
expected: "CreateAddressListsPayload",
|
|
491
|
+
expected: "CreateAddressListsPayload<T>",
|
|
402
492
|
value: input
|
|
403
493
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
404
494
|
path: _path + "",
|
|
405
|
-
expected: "CreateAddressListsPayload",
|
|
495
|
+
expected: "CreateAddressListsPayload<T>",
|
|
406
496
|
value: input
|
|
407
497
|
}))(input, "$input", true);
|
|
408
498
|
const success = 0 === errors.length;
|
|
@@ -431,26 +521,31 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
431
521
|
}
|
|
432
522
|
static async UpdateAddressList(api, payload) {
|
|
433
523
|
try {
|
|
434
|
-
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 => {
|
|
524
|
+
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.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (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 => {
|
|
435
525
|
const value = input[key];
|
|
436
526
|
if (undefined === value)
|
|
437
527
|
return true;
|
|
438
528
|
return true;
|
|
439
|
-
}); const $io5 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $
|
|
529
|
+
}); const $io5 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io6 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io8(input.gatedContent)) && (undefined === input.automatic || "boolean" === typeof input.automatic); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io8 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io9(input.params)); const $io9 = input => Object.keys(input).every(key => {
|
|
530
|
+
const value = input[key];
|
|
531
|
+
if (undefined === value)
|
|
532
|
+
return true;
|
|
533
|
+
return true;
|
|
534
|
+
}); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || $report(_exceptionable, {
|
|
440
535
|
path: _path + ".addressLists",
|
|
441
|
-
expected: "Array<iAddressListCreateObject
|
|
536
|
+
expected: "Array<iAddressListCreateObject<T>>",
|
|
442
537
|
value: input.addressLists
|
|
443
|
-
})) && input.addressLists.map((elem,
|
|
444
|
-
path: _path + ".addressLists[" +
|
|
445
|
-
expected: "iAddressListCreateObject",
|
|
538
|
+
})) && input.addressLists.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
539
|
+
path: _path + ".addressLists[" + _index6 + "]",
|
|
540
|
+
expected: "iAddressListCreateObject<T>",
|
|
446
541
|
value: elem
|
|
447
|
-
})) && $vo1(elem, _path + ".addressLists[" +
|
|
448
|
-
path: _path + ".addressLists[" +
|
|
449
|
-
expected: "iAddressListCreateObject",
|
|
542
|
+
})) && $vo1(elem, _path + ".addressLists[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
543
|
+
path: _path + ".addressLists[" + _index6 + "]",
|
|
544
|
+
expected: "iAddressListCreateObject<T>",
|
|
450
545
|
value: elem
|
|
451
546
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
452
547
|
path: _path + ".addressLists",
|
|
453
|
-
expected: "Array<iAddressListCreateObject
|
|
548
|
+
expected: "Array<iAddressListCreateObject<T>>",
|
|
454
549
|
value: input.addressLists
|
|
455
550
|
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || $report(_exceptionable, {
|
|
456
551
|
path: _path + ".listId",
|
|
@@ -460,8 +555,8 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
460
555
|
path: _path + ".addresses",
|
|
461
556
|
expected: "Array<string>",
|
|
462
557
|
value: input.addresses
|
|
463
|
-
})) && input.addresses.map((elem,
|
|
464
|
-
path: _path + ".addresses[" +
|
|
558
|
+
})) && input.addresses.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
|
|
559
|
+
path: _path + ".addresses[" + _index7 + "]",
|
|
465
560
|
expected: "string",
|
|
466
561
|
value: elem
|
|
467
562
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -504,12 +599,12 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
504
599
|
path: _path + ".claims",
|
|
505
600
|
expected: "Array<__type>",
|
|
506
601
|
value: input.claims
|
|
507
|
-
})) && input.claims.map((elem,
|
|
508
|
-
path: _path + ".claims[" +
|
|
602
|
+
})) && input.claims.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
603
|
+
path: _path + ".claims[" + _index8 + "]",
|
|
509
604
|
expected: "__type",
|
|
510
605
|
value: elem
|
|
511
|
-
})) && $vo2(elem, _path + ".claims[" +
|
|
512
|
-
path: _path + ".claims[" +
|
|
606
|
+
})) && $vo2(elem, _path + ".claims[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
607
|
+
path: _path + ".claims[" + _index8 + "]",
|
|
513
608
|
expected: "__type",
|
|
514
609
|
value: elem
|
|
515
610
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -524,18 +619,42 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
524
619
|
path: _path + ".plugins",
|
|
525
620
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
526
621
|
value: input.plugins
|
|
527
|
-
})) && input.plugins.map((elem,
|
|
528
|
-
path: _path + ".plugins[" +
|
|
622
|
+
})) && input.plugins.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
623
|
+
path: _path + ".plugins[" + _index9 + "]",
|
|
529
624
|
expected: "IntegrationPluginDetails<string>",
|
|
530
625
|
value: elem
|
|
531
|
-
})) && $vo3(elem, _path + ".plugins[" +
|
|
532
|
-
path: _path + ".plugins[" +
|
|
626
|
+
})) && $vo3(elem, _path + ".plugins[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
627
|
+
path: _path + ".plugins[" + _index9 + "]",
|
|
533
628
|
expected: "IntegrationPluginDetails<string>",
|
|
534
629
|
value: elem
|
|
535
630
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
536
631
|
path: _path + ".plugins",
|
|
537
632
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
538
633
|
value: input.plugins
|
|
634
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
|
|
635
|
+
path: _path + ".rewards",
|
|
636
|
+
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
637
|
+
value: input.rewards
|
|
638
|
+
})) && input.rewards.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
639
|
+
path: _path + ".rewards[" + _index10 + "]",
|
|
640
|
+
expected: "ClaimReward<T>",
|
|
641
|
+
value: elem
|
|
642
|
+
})) && $vo6(elem, _path + ".rewards[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
643
|
+
path: _path + ".rewards[" + _index10 + "]",
|
|
644
|
+
expected: "ClaimReward<T>",
|
|
645
|
+
value: elem
|
|
646
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
647
|
+
path: _path + ".rewards",
|
|
648
|
+
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
649
|
+
value: input.rewards
|
|
650
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
|
|
651
|
+
path: _path + ".estimatedCost",
|
|
652
|
+
expected: "(string | undefined)",
|
|
653
|
+
value: input.estimatedCost
|
|
654
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
|
|
655
|
+
path: _path + ".estimatedTime",
|
|
656
|
+
expected: "(string | undefined)",
|
|
657
|
+
value: input.estimatedTime
|
|
539
658
|
}), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
|
|
540
659
|
path: _path + ".approach",
|
|
541
660
|
expected: "(string | undefined)",
|
|
@@ -625,17 +744,78 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
625
744
|
path: _path + ".image",
|
|
626
745
|
expected: "(string | undefined)",
|
|
627
746
|
value: input.image
|
|
628
|
-
})].every(flag => flag); const
|
|
747
|
+
})].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
|
|
748
|
+
path: _path + ".rewardId",
|
|
749
|
+
expected: "string",
|
|
750
|
+
value: input.rewardId
|
|
751
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
752
|
+
path: _path + ".instanceId",
|
|
753
|
+
expected: "string",
|
|
754
|
+
value: input.instanceId
|
|
755
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
756
|
+
path: _path + ".metadata",
|
|
757
|
+
expected: "(__type.o2 | undefined)",
|
|
758
|
+
value: input.metadata
|
|
759
|
+
})) && $vo7(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
760
|
+
path: _path + ".metadata",
|
|
761
|
+
expected: "(__type.o2 | undefined)",
|
|
762
|
+
value: input.metadata
|
|
763
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
|
|
764
|
+
path: _path + ".gatedContent",
|
|
765
|
+
expected: "__type.o3",
|
|
766
|
+
value: input.gatedContent
|
|
767
|
+
})) && $vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
|
|
768
|
+
path: _path + ".gatedContent",
|
|
769
|
+
expected: "__type.o3",
|
|
770
|
+
value: input.gatedContent
|
|
771
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
|
|
772
|
+
path: _path + ".automatic",
|
|
773
|
+
expected: "(boolean | undefined)",
|
|
774
|
+
value: input.automatic
|
|
775
|
+
})].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
776
|
+
path: _path + ".name",
|
|
777
|
+
expected: "string",
|
|
778
|
+
value: input.name
|
|
779
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
780
|
+
path: _path + ".description",
|
|
781
|
+
expected: "string",
|
|
782
|
+
value: input.description
|
|
783
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
784
|
+
path: _path + ".image",
|
|
785
|
+
expected: "string",
|
|
786
|
+
value: input.image
|
|
787
|
+
})].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
|
|
788
|
+
path: _path + ".content",
|
|
789
|
+
expected: "(string | undefined)",
|
|
790
|
+
value: input.content
|
|
791
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
|
792
|
+
path: _path + ".url",
|
|
793
|
+
expected: "(string | undefined)",
|
|
794
|
+
value: input.url
|
|
795
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
|
|
796
|
+
path: _path + ".params",
|
|
797
|
+
expected: "(__type.o4 | undefined)",
|
|
798
|
+
value: input.params
|
|
799
|
+
})) && $vo9(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
|
|
800
|
+
path: _path + ".params",
|
|
801
|
+
expected: "(__type.o4 | undefined)",
|
|
802
|
+
value: input.params
|
|
803
|
+
})].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
804
|
+
const value = input[key];
|
|
805
|
+
if (undefined === value)
|
|
806
|
+
return true;
|
|
807
|
+
return true;
|
|
808
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
629
809
|
if (false === __is(input)) {
|
|
630
810
|
errors = [];
|
|
631
811
|
$report = typia_1.default.validate.report(errors);
|
|
632
812
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
633
813
|
path: _path + "",
|
|
634
|
-
expected: "UpdateAddressListsPayload",
|
|
814
|
+
expected: "UpdateAddressListsPayload<T>",
|
|
635
815
|
value: input
|
|
636
816
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
637
817
|
path: _path + "",
|
|
638
|
-
expected: "UpdateAddressListsPayload",
|
|
818
|
+
expected: "UpdateAddressListsPayload<T>",
|
|
639
819
|
value: input
|
|
640
820
|
}))(input, "$input", true);
|
|
641
821
|
const success = 0 === errors.length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitBadgesAddressList.js","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":";;;;;;AACA,8CAA2H;AAG3H,kDAA0B;AAE1B,uCAA+C;AAC/C,oDAAqD;AACrD,4CAAgD;
|
|
1
|
+
{"version":3,"file":"BitBadgesAddressList.js","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":";;;;;;AACA,8CAA2H;AAG3H,kDAA0B;AAE1B,uCAA+C;AAC/C,oDAAqD;AACrD,4CAAgD;AAUhD,wDAAkD;AAClD,oDAA0D;AAC1D,sDAAmD;AA2BnD,MAAa,oBACX,SAAQ,wBAAiB;IAczB,YAAY,IAA8B;QACxC,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CA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,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC;IACpG,CAAC;IAED,OAAO,CAAuB,eAAwC;QACpE,OAAO,IAAA,sDAA4C,EAAC,IAAI,EAAE,eAAe,CAAsC,CAAC;IAClH,CAAC;CACF;AAdD,wEAcC;AA0CD,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E;AAe5E,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E;AAkB5E,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E"}
|
|
@@ -8,7 +8,7 @@ import { NativeAddress } from './docs/interfaces.js';
|
|
|
8
8
|
import type { FilterBadgesInCollectionPayload, FilterBadgesInCollectionSuccessResponse, FilterSuggestionsPayload, GetBadgeActivityPayload, GetBadgeActivitySuccessResponse, GetBadgeBalanceByAddressPayload, GetBadgeBalanceByAddressSuccessResponse, GetOwnersForBadgePayload, GetOwnersForBadgeSuccessResponse, RefreshMetadataPayload, RefreshMetadataSuccessResponse, RefreshStatusSuccessResponse } from './requests/collections.js';
|
|
9
9
|
import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
|
|
10
10
|
import { GetMapValuesPayload, GetMapValuesSuccessResponse, GetMapsPayload, GetMapsSuccessResponse } from './requests/maps.js';
|
|
11
|
-
import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateAttestationPayload, CreateAttestationProofPayload, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, CreateGatedContentPayload, CreateGatedContentSuccessResponse, CreateInternalActionPayload, CreateInternalActionSuccessResponse, CreatePaymentIntentPayload, CreatePaymentIntentSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, DeleteAttestationPayload, DeleteAttestationProofPayload, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeleteGatedContentPayload, DeleteGatedContentSuccessResponse, DeleteInternalActionPayload, DeleteInternalActionSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletPayload, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetAttestationPayload, GetAttestationProofPayload, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsPayload, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, GetGatedContentPayload, GetGatedContentSuccessResponse, GetInternalActionPayload, GetInternalActionSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdateGatedContentPayload, UpdateGatedContentSuccessResponse, UpdateInternalActionPayload, UpdateInternalActionSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
11
|
+
import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateAttestationPayload, CreateAttestationProofPayload, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, CreateGatedContentPayload, CreateGatedContentSuccessResponse, CreateInternalActionPayload, CreateInternalActionSuccessResponse, CreatePaymentIntentPayload, CreatePaymentIntentSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, DeleteAttestationPayload, DeleteAttestationProofPayload, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeleteGatedContentPayload, DeleteGatedContentSuccessResponse, DeleteInternalActionPayload, DeleteInternalActionSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletPayload, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetAttestationPayload, GetAttestationProofPayload, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsPayload, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, GetGatedContentForClaimSuccessResponse, GetGatedContentPayload, GetGatedContentSuccessResponse, GetInternalActionPayload, GetInternalActionSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdateGatedContentPayload, UpdateGatedContentSuccessResponse, UpdateInternalActionPayload, UpdateInternalActionSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
12
12
|
export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi<T> {
|
|
13
13
|
constructor(apiDetails: iBitBadgesApi<T>);
|
|
14
14
|
getStatus(): Promise<GetStatusSuccessResponse<T>>;
|
|
@@ -28,8 +28,8 @@ export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi
|
|
|
28
28
|
getBrowseCollections(payload?: GetBrowseCollectionsPayload): Promise<GetBrowseCollectionsSuccessResponse<T>>;
|
|
29
29
|
broadcastTx(payload: BroadcastTxPayload | string): Promise<BroadcastTxSuccessResponse>;
|
|
30
30
|
simulateTx(payload: SimulateTxPayload | string): Promise<SimulateTxSuccessResponse>;
|
|
31
|
-
createAddressLists(payload: CreateAddressListsPayload): Promise<CreateAddressListsSuccessResponse>;
|
|
32
|
-
updateAddressLists(payload: UpdateAddressListsPayload): Promise<UpdateAddressListsSuccessResponse>;
|
|
31
|
+
createAddressLists(payload: CreateAddressListsPayload<T>): Promise<CreateAddressListsSuccessResponse>;
|
|
32
|
+
updateAddressLists(payload: UpdateAddressListsPayload<T>): Promise<UpdateAddressListsSuccessResponse>;
|
|
33
33
|
getAddressLists(payload: GetAddressListsPayload): Promise<GetAddressListsSuccessResponse<T>>;
|
|
34
34
|
deleteAddressLists(payload: DeleteAddressListsPayload): Promise<DeleteAddressListsSuccessResponse>;
|
|
35
35
|
exchangeSIWBBAuthorizationCode(payload?: ExchangeSIWBBAuthorizationCodePayload): Promise<ExchangeSIWBBAuthorizationCodeSuccessResponse<T>>;
|
|
@@ -59,6 +59,7 @@ export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi
|
|
|
59
59
|
getAttestationProof(payload: GetAttestationProofPayload): Promise<GetAttestationProofSuccessResponse<T>>;
|
|
60
60
|
createAttestationProof(payload: CreateAttestationProofPayload): Promise<CreateAttestationProofSuccessResponse>;
|
|
61
61
|
deleteAttestationProof(payload: DeleteAttestationProofPayload): Promise<DeleteAttestationProofSuccessResponse>;
|
|
62
|
+
getGatedContentForClaim(claimId: string): Promise<GetGatedContentForClaimSuccessResponse<T>>;
|
|
62
63
|
updateUserSeenActivity(): Promise<UpdateAccountInfoSuccessResponse>;
|
|
63
64
|
}
|
|
64
65
|
export declare class BitBadgesAdminAPI<T extends NumberType> extends BitBadgesAPI<T> {
|