bitbadgesjs-sdk 0.6.21 → 0.7.0
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 +8 -8
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +8 -8
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +101 -95
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +479 -270
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts +11 -11
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.js +13 -13
- package/dist/cjs/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts +2 -5
- package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesUserInfo.js +4 -20
- package/dist/cjs/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +1 -0
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/collections.d.ts +31 -8
- package/dist/cjs/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/collections.js +49 -1
- package/dist/cjs/api-indexer/requests/collections.js.map +1 -1
- package/dist/cjs/api-indexer/requests/maps.d.ts +17 -8
- package/dist/cjs/api-indexer/requests/maps.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/maps.js +27 -1
- package/dist/cjs/api-indexer/requests/maps.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +333 -167
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +314 -35
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +15 -11
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +24 -20
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/common/base.d.ts +4 -0
- package/dist/cjs/common/base.d.ts.map +1 -1
- package/dist/cjs/common/base.js +19 -1
- package/dist/cjs/common/base.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +1 -0
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +1 -0
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +8 -8
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +8 -8
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +101 -95
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +480 -271
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts +11 -11
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.js +13 -13
- package/dist/esm/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts +2 -5
- package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesUserInfo.js +4 -20
- package/dist/esm/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +1 -0
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/collections.d.ts +31 -8
- package/dist/esm/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/collections.js +50 -1
- package/dist/esm/api-indexer/requests/collections.js.map +1 -1
- package/dist/esm/api-indexer/requests/maps.d.ts +17 -8
- package/dist/esm/api-indexer/requests/maps.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/maps.js +28 -1
- package/dist/esm/api-indexer/requests/maps.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +333 -167
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +317 -23
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +15 -11
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +24 -20
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/common/base.d.ts +4 -0
- package/dist/esm/common/base.d.ts.map +1 -1
- package/dist/esm/common/base.js +17 -0
- package/dist/esm/common/base.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +1 -0
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +2 -0
- package/dist/esm/core/approvals.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { BitBadgesUserInfo } from './BitBadgesUserInfo.js';
|
|
|
5
5
|
import { BaseBitBadgesApi } from './base.js';
|
|
6
6
|
import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
|
|
7
7
|
import { GetMapValuesSuccessResponse, GetMapsSuccessResponse } from './requests/maps.js';
|
|
8
|
-
import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse,
|
|
8
|
+
import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BatchStoreActionSuccessResponse, BroadcastTxSuccessResponse, CalculatePointsSuccessResponse, CheckClaimSuccessSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateApiKeySuccessResponse, CreateApplicationSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateDynamicDataStoreSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, CreateUtilityListingSuccessResponse, DeleteApiKeySuccessResponse, DeleteApplicationSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteDynamicDataStoreSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, DeleteUtilityListingSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetApiKeysSuccessResponse, GetApplicationsSuccessResponse, GetAttestationsSuccessResponse, GetBrowseSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimAttemptsSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetDynamicDataActivitySuccessResponse, GetDynamicDataStoresSuccessResponse, GetGatedContentForClaimSuccessResponse, GetOrCreateEmbeddedWalletSuccessResponse, GetPluginErrorsSuccessResponse, GetPluginSuccessResponse, GetPointsActivitySuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, GetUtilityListingsSuccessResponse, OauthRevokeSuccessResponse, PerformStoreActionSuccessResponse, RotateApiKeySuccessResponse, RotateSIWBBRequestSuccessResponse, ScheduleTokenRefreshSuccessResponse, SearchApplicationsSuccessResponse, SearchClaimsSuccessResponse, SearchDeveloperAppsSuccessResponse, SearchDynamicDataStoresSuccessResponse, SearchPluginsSuccessResponse, SearchUtilityListingsSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SignWithEmbeddedWalletSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateApplicationSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateDynamicDataStoreSuccessResponse, UpdatePluginSuccessResponse, UpdateUtilityListingSuccessResponse, VerifyAttestationSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
9
9
|
import { BitBadgesApiRoutes } from './requests/routes.js';
|
|
10
10
|
export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
11
11
|
constructor(apiDetails) {
|
|
@@ -23,11 +23,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
23
23
|
$report = typia.validate.report(errors);
|
|
24
24
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
25
25
|
path: _path + "",
|
|
26
|
-
expected: "
|
|
26
|
+
expected: "iGetStatusPayload",
|
|
27
27
|
value: input
|
|
28
28
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
29
29
|
path: _path + "",
|
|
30
|
-
expected: "
|
|
30
|
+
expected: "iGetStatusPayload",
|
|
31
31
|
value: input
|
|
32
32
|
}))(input, "$input", true);
|
|
33
33
|
const success = 0 === errors.length;
|
|
@@ -94,11 +94,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
94
94
|
$report = typia.validate.report(errors);
|
|
95
95
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
96
96
|
path: _path + "",
|
|
97
|
-
expected: "
|
|
97
|
+
expected: "iGetSearchPayload<NumberType>",
|
|
98
98
|
value: input
|
|
99
99
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
100
100
|
path: _path + "",
|
|
101
|
-
expected: "
|
|
101
|
+
expected: "iGetSearchPayload<NumberType>",
|
|
102
102
|
value: input
|
|
103
103
|
}))(input, "$input", true);
|
|
104
104
|
const success = 0 === errors.length;
|
|
@@ -178,11 +178,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
178
178
|
$report = typia.validate.report(errors);
|
|
179
179
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
180
180
|
path: _path + "",
|
|
181
|
-
expected: "
|
|
181
|
+
expected: "iCompleteClaimPayload",
|
|
182
182
|
value: input
|
|
183
183
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
184
184
|
path: _path + "",
|
|
185
|
-
expected: "
|
|
185
|
+
expected: "iCompleteClaimPayload",
|
|
186
186
|
value: input
|
|
187
187
|
}))(input, "$input", true);
|
|
188
188
|
const success = 0 === errors.length;
|
|
@@ -250,11 +250,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
250
250
|
$report = typia.validate.report(errors);
|
|
251
251
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
252
252
|
path: _path + "",
|
|
253
|
-
expected: "
|
|
253
|
+
expected: "iSimulateClaimPayload",
|
|
254
254
|
value: input
|
|
255
255
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
256
256
|
path: _path + "",
|
|
257
|
-
expected: "
|
|
257
|
+
expected: "iSimulateClaimPayload",
|
|
258
258
|
value: input
|
|
259
259
|
}))(input, "$input", true);
|
|
260
260
|
const success = 0 === errors.length;
|
|
@@ -292,11 +292,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
292
292
|
$report = typia.validate.report(errors);
|
|
293
293
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
294
294
|
path: _path + "",
|
|
295
|
-
expected: "
|
|
295
|
+
expected: "iGetReservedClaimCodesPayload",
|
|
296
296
|
value: input
|
|
297
297
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
298
298
|
path: _path + "",
|
|
299
|
-
expected: "
|
|
299
|
+
expected: "iGetReservedClaimCodesPayload",
|
|
300
300
|
value: input
|
|
301
301
|
}))(input, "$input", true);
|
|
302
302
|
const success = 0 === errors.length;
|
|
@@ -1361,11 +1361,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1361
1361
|
$report = typia.validate.report(errors);
|
|
1362
1362
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
1363
1363
|
path: _path + "",
|
|
1364
|
-
expected: "
|
|
1364
|
+
expected: "iUpdateAccountInfoPayload",
|
|
1365
1365
|
value: input
|
|
1366
1366
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
1367
1367
|
path: _path + "",
|
|
1368
|
-
expected: "
|
|
1368
|
+
expected: "iUpdateAccountInfoPayload",
|
|
1369
1369
|
value: input
|
|
1370
1370
|
}))(input, "$input", true);
|
|
1371
1371
|
const success = 0 === errors.length;
|
|
@@ -1404,11 +1404,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1404
1404
|
$report = typia.validate.report(errors);
|
|
1405
1405
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
1406
1406
|
path: _path + "",
|
|
1407
|
-
expected: "
|
|
1407
|
+
expected: "iCheckSignInStatusPayload",
|
|
1408
1408
|
value: input
|
|
1409
1409
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
1410
1410
|
path: _path + "",
|
|
1411
|
-
expected: "
|
|
1411
|
+
expected: "iCheckSignInStatusPayload",
|
|
1412
1412
|
value: input
|
|
1413
1413
|
}))(input, "$input", true);
|
|
1414
1414
|
const success = 0 === errors.length;
|
|
@@ -1437,19 +1437,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
async getBrowse(payload) {
|
|
1439
1439
|
try {
|
|
1440
|
-
const validateRes = (() => { const $iv1 = new Set(["badges", "attestations", "pointsActivity", "collections", "addressLists", "maps", "claims", "activity", "utilityListings", "groups", "claimActivity"]); const $vv2 = new Set(["badges", "attestations", "pointsActivity", "collections", "addressLists", "maps", "claims", "activity", "utilityListings", "groups", "claimActivity"]); const $io0 = input => true === $iv1.has(input.type) && (undefined === input.
|
|
1440
|
+
const validateRes = (() => { const $iv1 = new Set(["badges", "attestations", "pointsActivity", "collections", "addressLists", "maps", "claims", "activity", "utilityListings", "groups", "claimActivity"]); const $vv2 = new Set(["badges", "attestations", "pointsActivity", "collections", "addressLists", "maps", "claims", "activity", "utilityListings", "groups", "claimActivity"]); const $io0 = input => true === $iv1.has(input.type) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.sortBy || "string" === typeof input.sortBy) && (undefined === input.timeFrame || "string" === typeof input.timeFrame) && (undefined === input.searchTerm || "string" === typeof input.searchTerm) && (undefined === input.locale || "string" === typeof input.locale); const $vo0 = (input, _path, _exceptionable = true) => [true === $vv2.has(input.type) || $report(_exceptionable, {
|
|
1441
1441
|
path: _path + ".type",
|
|
1442
1442
|
expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claimActivity\" | \"claims\" | \"collections\" | \"groups\" | \"maps\" | \"pointsActivity\" | \"utilityListings\")",
|
|
1443
1443
|
value: input.type
|
|
1444
|
-
}), undefined === input.
|
|
1445
|
-
path: _path + ".filters",
|
|
1446
|
-
expected: "(__type | undefined)",
|
|
1447
|
-
value: input.filters
|
|
1448
|
-
})) && $vo1(input.filters, _path + ".filters", true && _exceptionable) || $report(_exceptionable, {
|
|
1449
|
-
path: _path + ".filters",
|
|
1450
|
-
expected: "(__type | undefined)",
|
|
1451
|
-
value: input.filters
|
|
1452
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
1444
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
1453
1445
|
path: _path + ".category",
|
|
1454
1446
|
expected: "(string | undefined)",
|
|
1455
1447
|
value: input.category
|
|
@@ -1475,11 +1467,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1475
1467
|
$report = typia.validate.report(errors);
|
|
1476
1468
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
1477
1469
|
path: _path + "",
|
|
1478
|
-
expected: "
|
|
1470
|
+
expected: "iGetBrowsePayload",
|
|
1479
1471
|
value: input
|
|
1480
1472
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
1481
1473
|
path: _path + "",
|
|
1482
|
-
expected: "
|
|
1474
|
+
expected: "iGetBrowsePayload",
|
|
1483
1475
|
value: input
|
|
1484
1476
|
}))(input, "$input", true);
|
|
1485
1477
|
const success = 0 === errors.length;
|
|
@@ -1744,11 +1736,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1744
1736
|
$report = typia.validate.report(errors);
|
|
1745
1737
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
1746
1738
|
path: _path + "",
|
|
1747
|
-
expected: "
|
|
1739
|
+
expected: "iExchangeSIWBBAuthorizationCodePayload",
|
|
1748
1740
|
value: input
|
|
1749
1741
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
1750
1742
|
path: _path + "",
|
|
1751
|
-
expected: "
|
|
1743
|
+
expected: "iExchangeSIWBBAuthorizationCodePayload",
|
|
1752
1744
|
value: input
|
|
1753
1745
|
}))(input, "$input", true);
|
|
1754
1746
|
const success = 0 === errors.length;
|
|
@@ -1791,11 +1783,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1791
1783
|
$report = typia.validate.report(errors);
|
|
1792
1784
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
1793
1785
|
path: _path + "",
|
|
1794
|
-
expected: "
|
|
1786
|
+
expected: "iGetSIWBBRequestsForDeveloperAppPayload",
|
|
1795
1787
|
value: input
|
|
1796
1788
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
1797
1789
|
path: _path + "",
|
|
1798
|
-
expected: "
|
|
1790
|
+
expected: "iGetSIWBBRequestsForDeveloperAppPayload",
|
|
1799
1791
|
value: input
|
|
1800
1792
|
}))(input, "$input", true);
|
|
1801
1793
|
const success = 0 === errors.length;
|
|
@@ -2118,11 +2110,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2118
2110
|
$report = typia.validate.report(errors);
|
|
2119
2111
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
2120
2112
|
path: _path + "",
|
|
2121
|
-
expected: "
|
|
2113
|
+
expected: "iCreateSIWBBRequestPayload",
|
|
2122
2114
|
value: input
|
|
2123
2115
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
2124
2116
|
path: _path + "",
|
|
2125
|
-
expected: "
|
|
2117
|
+
expected: "iCreateSIWBBRequestPayload",
|
|
2126
2118
|
value: input
|
|
2127
2119
|
}))(input, "$input", true);
|
|
2128
2120
|
const success = 0 === errors.length;
|
|
@@ -2161,11 +2153,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2161
2153
|
$report = typia.validate.report(errors);
|
|
2162
2154
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
2163
2155
|
path: _path + "",
|
|
2164
|
-
expected: "
|
|
2156
|
+
expected: "iRotateSIWBBRequestPayload",
|
|
2165
2157
|
value: input
|
|
2166
2158
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
2167
2159
|
path: _path + "",
|
|
2168
|
-
expected: "
|
|
2160
|
+
expected: "iRotateSIWBBRequestPayload",
|
|
2169
2161
|
value: input
|
|
2170
2162
|
}))(input, "$input", true);
|
|
2171
2163
|
const success = 0 === errors.length;
|
|
@@ -2204,11 +2196,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2204
2196
|
$report = typia.validate.report(errors);
|
|
2205
2197
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
2206
2198
|
path: _path + "",
|
|
2207
|
-
expected: "
|
|
2199
|
+
expected: "iDeleteSIWBBRequestPayload",
|
|
2208
2200
|
value: input
|
|
2209
2201
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
2210
2202
|
path: _path + "",
|
|
2211
|
-
expected: "
|
|
2203
|
+
expected: "iDeleteSIWBBRequestPayload",
|
|
2212
2204
|
value: input
|
|
2213
2205
|
}))(input, "$input", true);
|
|
2214
2206
|
const success = 0 === errors.length;
|
|
@@ -2749,11 +2741,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2749
2741
|
$report = typia.validate.report(errors);
|
|
2750
2742
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
2751
2743
|
path: _path + "",
|
|
2752
|
-
expected: "
|
|
2744
|
+
expected: "iGenericBlockinVerifyPayload",
|
|
2753
2745
|
value: input
|
|
2754
2746
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
2755
2747
|
path: _path + "",
|
|
2756
|
-
expected: "
|
|
2748
|
+
expected: "iGenericBlockinVerifyPayload",
|
|
2757
2749
|
value: input
|
|
2758
2750
|
}))(input, "$input", true);
|
|
2759
2751
|
const success = 0 === errors.length;
|
|
@@ -2950,11 +2942,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2950
2942
|
$report = typia.validate.report(errors);
|
|
2951
2943
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
2952
2944
|
path: _path + "",
|
|
2953
|
-
expected: "
|
|
2945
|
+
expected: "iGenericVerifyAssetsPayload",
|
|
2954
2946
|
value: input
|
|
2955
2947
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
2956
2948
|
path: _path + "",
|
|
2957
|
-
expected: "
|
|
2949
|
+
expected: "iGenericVerifyAssetsPayload",
|
|
2958
2950
|
value: input
|
|
2959
2951
|
}))(input, "$input", true);
|
|
2960
2952
|
const success = 0 === errors.length;
|
|
@@ -3025,11 +3017,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3025
3017
|
$report = typia.validate.report(errors);
|
|
3026
3018
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3027
3019
|
path: _path + "",
|
|
3028
|
-
expected: "
|
|
3020
|
+
expected: "iSendClaimAlertsPayload",
|
|
3029
3021
|
value: input
|
|
3030
3022
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3031
3023
|
path: _path + "",
|
|
3032
|
-
expected: "
|
|
3024
|
+
expected: "iSendClaimAlertsPayload",
|
|
3033
3025
|
value: input
|
|
3034
3026
|
}))(input, "$input", true);
|
|
3035
3027
|
const success = 0 === errors.length;
|
|
@@ -3072,11 +3064,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3072
3064
|
$report = typia.validate.report(errors);
|
|
3073
3065
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3074
3066
|
path: _path + "",
|
|
3075
|
-
expected: "
|
|
3067
|
+
expected: "iGetClaimAlertsForCollectionPayload<NumberType>",
|
|
3076
3068
|
value: input
|
|
3077
3069
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3078
3070
|
path: _path + "",
|
|
3079
|
-
expected: "
|
|
3071
|
+
expected: "iGetClaimAlertsForCollectionPayload<NumberType>",
|
|
3080
3072
|
value: input
|
|
3081
3073
|
}))(input, "$input", true);
|
|
3082
3074
|
const success = 0 === errors.length;
|
|
@@ -3126,11 +3118,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3126
3118
|
$report = typia.validate.report(errors);
|
|
3127
3119
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3128
3120
|
path: _path + "",
|
|
3129
|
-
expected: "
|
|
3121
|
+
expected: "iGetMapsPayload",
|
|
3130
3122
|
value: input
|
|
3131
3123
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3132
3124
|
path: _path + "",
|
|
3133
|
-
expected: "
|
|
3125
|
+
expected: "iGetMapsPayload",
|
|
3134
3126
|
value: input
|
|
3135
3127
|
}))(input, "$input", true);
|
|
3136
3128
|
const success = 0 === errors.length;
|
|
@@ -3159,23 +3151,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3159
3151
|
}
|
|
3160
3152
|
async getMapValues(payload) {
|
|
3161
3153
|
try {
|
|
3162
|
-
const validateRes = (() => { const $io0 = input =>
|
|
3163
|
-
path: _path + ".valuesToFetch",
|
|
3164
|
-
expected: "Array<__type>",
|
|
3165
|
-
value: input.valuesToFetch
|
|
3166
|
-
})) && input.valuesToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3167
|
-
path: _path + ".valuesToFetch[" + _index3 + "]",
|
|
3168
|
-
expected: "__type",
|
|
3169
|
-
value: elem
|
|
3170
|
-
})) && $vo1(elem, _path + ".valuesToFetch[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3171
|
-
path: _path + ".valuesToFetch[" + _index3 + "]",
|
|
3172
|
-
expected: "__type",
|
|
3173
|
-
value: elem
|
|
3174
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3175
|
-
path: _path + ".valuesToFetch",
|
|
3176
|
-
expected: "Array<__type>",
|
|
3177
|
-
value: input.valuesToFetch
|
|
3178
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.mapId || $report(_exceptionable, {
|
|
3154
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.mapId && (Array.isArray(input.keys) && input.keys.every(elem => "string" === typeof elem)); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.mapId || $report(_exceptionable, {
|
|
3179
3155
|
path: _path + ".mapId",
|
|
3180
3156
|
expected: "string",
|
|
3181
3157
|
value: input.mapId
|
|
@@ -3183,8 +3159,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3183
3159
|
path: _path + ".keys",
|
|
3184
3160
|
expected: "Array<string>",
|
|
3185
3161
|
value: input.keys
|
|
3186
|
-
})) && input.keys.map((elem,
|
|
3187
|
-
path: _path + ".keys[" +
|
|
3162
|
+
})) && input.keys.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
|
|
3163
|
+
path: _path + ".keys[" + _index2 + "]",
|
|
3188
3164
|
expected: "string",
|
|
3189
3165
|
value: elem
|
|
3190
3166
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3197,11 +3173,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3197
3173
|
$report = typia.validate.report(errors);
|
|
3198
3174
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3199
3175
|
path: _path + "",
|
|
3200
|
-
expected: "
|
|
3176
|
+
expected: "iGetMapValuesPayload",
|
|
3201
3177
|
value: input
|
|
3202
3178
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3203
3179
|
path: _path + "",
|
|
3204
|
-
expected: "
|
|
3180
|
+
expected: "iGetMapValuesPayload",
|
|
3205
3181
|
value: input
|
|
3206
3182
|
}))(input, "$input", true);
|
|
3207
3183
|
const success = 0 === errors.length;
|
|
@@ -3239,11 +3215,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3239
3215
|
$report = typia.validate.report(errors);
|
|
3240
3216
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
3241
3217
|
path: _path + "",
|
|
3242
|
-
expected: "
|
|
3218
|
+
expected: "iFilterSuggestionsPayload",
|
|
3243
3219
|
value: input
|
|
3244
3220
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3245
3221
|
path: _path + "",
|
|
3246
|
-
expected: "
|
|
3222
|
+
expected: "iFilterSuggestionsPayload",
|
|
3247
3223
|
value: input
|
|
3248
3224
|
}))(input, "$input", true);
|
|
3249
3225
|
const success = 0 === errors.length;
|
|
@@ -3272,19 +3248,86 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3272
3248
|
}
|
|
3273
3249
|
async getClaims(payload) {
|
|
3274
3250
|
try {
|
|
3275
|
-
const validateRes = (() => { const $io0 = input =>
|
|
3276
|
-
path: _path + ".
|
|
3251
|
+
const validateRes = (() => { const $io0 = input => Array.isArray(input.claimsToFetch) && input.claimsToFetch.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.claimId && (undefined === input.privateStatesToFetch || Array.isArray(input.privateStatesToFetch) && input.privateStatesToFetch.every(elem => "string" === typeof elem)) && (undefined === input.fetchAllClaimedUsers || "boolean" === typeof input.fetchAllClaimedUsers) && (undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimsToFetch) || $report(_exceptionable, {
|
|
3252
|
+
path: _path + ".claimsToFetch",
|
|
3253
|
+
expected: "Array<__type>",
|
|
3254
|
+
value: input.claimsToFetch
|
|
3255
|
+
})) && input.claimsToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3256
|
+
path: _path + ".claimsToFetch[" + _index3 + "]",
|
|
3257
|
+
expected: "__type",
|
|
3258
|
+
value: elem
|
|
3259
|
+
})) && $vo1(elem, _path + ".claimsToFetch[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3260
|
+
path: _path + ".claimsToFetch[" + _index3 + "]",
|
|
3261
|
+
expected: "__type",
|
|
3262
|
+
value: elem
|
|
3263
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3264
|
+
path: _path + ".claimsToFetch",
|
|
3265
|
+
expected: "Array<__type>",
|
|
3266
|
+
value: input.claimsToFetch
|
|
3267
|
+
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
3268
|
+
path: _path + ".claimId",
|
|
3269
|
+
expected: "string",
|
|
3270
|
+
value: input.claimId
|
|
3271
|
+
}), undefined === input.privateStatesToFetch || (Array.isArray(input.privateStatesToFetch) || $report(_exceptionable, {
|
|
3272
|
+
path: _path + ".privateStatesToFetch",
|
|
3277
3273
|
expected: "(Array<string> | undefined)",
|
|
3278
|
-
value: input.
|
|
3279
|
-
})) && input.
|
|
3280
|
-
path: _path + ".
|
|
3274
|
+
value: input.privateStatesToFetch
|
|
3275
|
+
})) && input.privateStatesToFetch.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
|
|
3276
|
+
path: _path + ".privateStatesToFetch[" + _index4 + "]",
|
|
3281
3277
|
expected: "string",
|
|
3282
3278
|
value: elem
|
|
3283
3279
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
3284
|
-
path: _path + ".
|
|
3280
|
+
path: _path + ".privateStatesToFetch",
|
|
3285
3281
|
expected: "(Array<string> | undefined)",
|
|
3286
|
-
value: input.
|
|
3287
|
-
}), undefined === input.
|
|
3282
|
+
value: input.privateStatesToFetch
|
|
3283
|
+
}), undefined === input.fetchAllClaimedUsers || "boolean" === typeof input.fetchAllClaimedUsers || $report(_exceptionable, {
|
|
3284
|
+
path: _path + ".fetchAllClaimedUsers",
|
|
3285
|
+
expected: "(boolean | undefined)",
|
|
3286
|
+
value: input.fetchAllClaimedUsers
|
|
3287
|
+
}), undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams || $report(_exceptionable, {
|
|
3288
|
+
path: _path + ".fetchPrivateParams",
|
|
3289
|
+
expected: "(boolean | undefined)",
|
|
3290
|
+
value: input.fetchPrivateParams
|
|
3291
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
3292
|
+
if (false === __is(input)) {
|
|
3293
|
+
errors = [];
|
|
3294
|
+
$report = typia.validate.report(errors);
|
|
3295
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3296
|
+
path: _path + "",
|
|
3297
|
+
expected: "iGetClaimsPayloadV1",
|
|
3298
|
+
value: input
|
|
3299
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3300
|
+
path: _path + "",
|
|
3301
|
+
expected: "iGetClaimsPayloadV1",
|
|
3302
|
+
value: input
|
|
3303
|
+
}))(input, "$input", true);
|
|
3304
|
+
const success = 0 === errors.length;
|
|
3305
|
+
return {
|
|
3306
|
+
success,
|
|
3307
|
+
errors,
|
|
3308
|
+
data: success ? input : undefined
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
return {
|
|
3312
|
+
success: true,
|
|
3313
|
+
errors: [],
|
|
3314
|
+
data: input
|
|
3315
|
+
};
|
|
3316
|
+
}; })()(payload ?? {});
|
|
3317
|
+
if (!validateRes.success) {
|
|
3318
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3319
|
+
}
|
|
3320
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
|
|
3321
|
+
return new GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3322
|
+
}
|
|
3323
|
+
catch (error) {
|
|
3324
|
+
await this.handleApiError(error);
|
|
3325
|
+
return Promise.reject(error);
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
async searchClaims(payload) {
|
|
3329
|
+
try {
|
|
3330
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.standaloneClaimsOnly || "boolean" === typeof input.standaloneClaimsOnly) && (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams) && (undefined === input.searchValue || "string" === typeof input.searchValue); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.standaloneClaimsOnly || "boolean" === typeof input.standaloneClaimsOnly || $report(_exceptionable, {
|
|
3288
3331
|
path: _path + ".standaloneClaimsOnly",
|
|
3289
3332
|
expected: "(boolean | undefined)",
|
|
3290
3333
|
value: input.standaloneClaimsOnly
|
|
@@ -3300,45 +3343,17 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3300
3343
|
path: _path + ".searchValue",
|
|
3301
3344
|
expected: "(string | undefined)",
|
|
3302
3345
|
value: input.searchValue
|
|
3303
|
-
}), undefined === input.privateStatesToFetch || (Array.isArray(input.privateStatesToFetch) || $report(_exceptionable, {
|
|
3304
|
-
path: _path + ".privateStatesToFetch",
|
|
3305
|
-
expected: "(Array<__type> | undefined)",
|
|
3306
|
-
value: input.privateStatesToFetch
|
|
3307
|
-
})) && input.privateStatesToFetch.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3308
|
-
path: _path + ".privateStatesToFetch[" + _index4 + "]",
|
|
3309
|
-
expected: "__type",
|
|
3310
|
-
value: elem
|
|
3311
|
-
})) && $vo1(elem, _path + ".privateStatesToFetch[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3312
|
-
path: _path + ".privateStatesToFetch[" + _index4 + "]",
|
|
3313
|
-
expected: "__type",
|
|
3314
|
-
value: elem
|
|
3315
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3316
|
-
path: _path + ".privateStatesToFetch",
|
|
3317
|
-
expected: "(Array<__type> | undefined)",
|
|
3318
|
-
value: input.privateStatesToFetch
|
|
3319
|
-
}), undefined === input.fetchAllClaimedUsers || "boolean" === typeof input.fetchAllClaimedUsers || $report(_exceptionable, {
|
|
3320
|
-
path: _path + ".fetchAllClaimedUsers",
|
|
3321
|
-
expected: "(boolean | undefined)",
|
|
3322
|
-
value: input.fetchAllClaimedUsers
|
|
3323
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
3324
|
-
path: _path + ".claimId",
|
|
3325
|
-
expected: "string",
|
|
3326
|
-
value: input.claimId
|
|
3327
|
-
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
3328
|
-
path: _path + ".instanceId",
|
|
3329
|
-
expected: "string",
|
|
3330
|
-
value: input.instanceId
|
|
3331
3346
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
3332
3347
|
if (false === __is(input)) {
|
|
3333
3348
|
errors = [];
|
|
3334
3349
|
$report = typia.validate.report(errors);
|
|
3335
3350
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
3336
3351
|
path: _path + "",
|
|
3337
|
-
expected: "
|
|
3352
|
+
expected: "iSearchClaimsPayload",
|
|
3338
3353
|
value: input
|
|
3339
3354
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3340
3355
|
path: _path + "",
|
|
3341
|
-
expected: "
|
|
3356
|
+
expected: "iSearchClaimsPayload",
|
|
3342
3357
|
value: input
|
|
3343
3358
|
}))(input, "$input", true);
|
|
3344
3359
|
const success = 0 === errors.length;
|
|
@@ -3357,8 +3372,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3357
3372
|
if (!validateRes.success) {
|
|
3358
3373
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3359
3374
|
}
|
|
3360
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
3361
|
-
return new
|
|
3375
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchClaimsRoute()}`, payload);
|
|
3376
|
+
return new SearchClaimsSuccessResponse(response.data);
|
|
3362
3377
|
}
|
|
3363
3378
|
catch (error) {
|
|
3364
3379
|
await this.handleApiError(error);
|
|
@@ -3389,11 +3404,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3389
3404
|
$report = typia.validate.report(errors);
|
|
3390
3405
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
3391
3406
|
path: _path + "",
|
|
3392
|
-
expected: "
|
|
3407
|
+
expected: "iGetAttestationsPayload",
|
|
3393
3408
|
value: input
|
|
3394
3409
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3395
3410
|
path: _path + "",
|
|
3396
|
-
expected: "
|
|
3411
|
+
expected: "iGetAttestationsPayload",
|
|
3397
3412
|
value: input
|
|
3398
3413
|
}))(input, "$input", true);
|
|
3399
3414
|
const success = 0 === errors.length;
|
|
@@ -3540,11 +3555,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3540
3555
|
$report = typia.validate.report(errors);
|
|
3541
3556
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3542
3557
|
path: _path + "",
|
|
3543
|
-
expected: "
|
|
3558
|
+
expected: "iCreateAttestationPayload",
|
|
3544
3559
|
value: input
|
|
3545
3560
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3546
3561
|
path: _path + "",
|
|
3547
|
-
expected: "
|
|
3562
|
+
expected: "iCreateAttestationPayload",
|
|
3548
3563
|
value: input
|
|
3549
3564
|
}))(input, "$input", true);
|
|
3550
3565
|
const success = 0 === errors.length;
|
|
@@ -3583,11 +3598,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3583
3598
|
$report = typia.validate.report(errors);
|
|
3584
3599
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
3585
3600
|
path: _path + "",
|
|
3586
|
-
expected: "
|
|
3601
|
+
expected: "iDeleteAttestationPayload",
|
|
3587
3602
|
value: input
|
|
3588
3603
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3589
3604
|
path: _path + "",
|
|
3590
|
-
expected: "
|
|
3605
|
+
expected: "iDeleteAttestationPayload",
|
|
3591
3606
|
value: input
|
|
3592
3607
|
}))(input, "$input", true);
|
|
3593
3608
|
const success = 0 === errors.length;
|
|
@@ -3772,11 +3787,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3772
3787
|
$report = typia.validate.report(errors);
|
|
3773
3788
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
3774
3789
|
path: _path + "",
|
|
3775
|
-
expected: "
|
|
3790
|
+
expected: "iUpdateAttestationPayload",
|
|
3776
3791
|
value: input
|
|
3777
3792
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3778
3793
|
path: _path + "",
|
|
3779
|
-
expected: "
|
|
3794
|
+
expected: "iUpdateAttestationPayload",
|
|
3780
3795
|
value: input
|
|
3781
3796
|
}))(input, "$input", true);
|
|
3782
3797
|
const success = 0 === errors.length;
|
|
@@ -4023,11 +4038,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4023
4038
|
$report = typia.validate.report(errors);
|
|
4024
4039
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
4025
4040
|
path: _path + "",
|
|
4026
|
-
expected: "
|
|
4041
|
+
expected: "iVerifyAttestationPayload",
|
|
4027
4042
|
value: input
|
|
4028
4043
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
4029
4044
|
path: _path + "",
|
|
4030
|
-
expected: "
|
|
4045
|
+
expected: "iVerifyAttestationPayload",
|
|
4031
4046
|
value: input
|
|
4032
4047
|
}))(input, "$input", true);
|
|
4033
4048
|
const success = 0 === errors.length;
|
|
@@ -4056,7 +4071,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4056
4071
|
}
|
|
4057
4072
|
async createClaims(payload) {
|
|
4058
4073
|
try {
|
|
4059
|
-
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io19(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io21(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
4074
|
+
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.managedBy || "string" === typeof input.managedBy) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io19(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io21(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
4060
4075
|
const value = input[key];
|
|
4061
4076
|
if (undefined === value)
|
|
4062
4077
|
return true;
|
|
@@ -4127,6 +4142,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4127
4142
|
path: _path + ".seedCode",
|
|
4128
4143
|
expected: "(string | undefined)",
|
|
4129
4144
|
value: input.seedCode
|
|
4145
|
+
}), undefined === input.managedBy || "string" === typeof input.managedBy || $report(_exceptionable, {
|
|
4146
|
+
path: _path + ".managedBy",
|
|
4147
|
+
expected: "(string | undefined)",
|
|
4148
|
+
value: input.managedBy
|
|
4130
4149
|
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
4131
4150
|
path: _path + ".listId",
|
|
4132
4151
|
expected: "(string | undefined)",
|
|
@@ -4712,11 +4731,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4712
4731
|
$report = typia.validate.report(errors);
|
|
4713
4732
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
4714
4733
|
path: _path + "",
|
|
4715
|
-
expected: "
|
|
4734
|
+
expected: "iCreateClaimPayload",
|
|
4716
4735
|
value: input
|
|
4717
4736
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
4718
4737
|
path: _path + "",
|
|
4719
|
-
expected: "
|
|
4738
|
+
expected: "iCreateClaimPayload",
|
|
4720
4739
|
value: input
|
|
4721
4740
|
}))(input, "$input", true);
|
|
4722
4741
|
const success = 0 === errors.length;
|
|
@@ -4763,11 +4782,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4763
4782
|
$report = typia.validate.report(errors);
|
|
4764
4783
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
4765
4784
|
path: _path + "",
|
|
4766
|
-
expected: "
|
|
4785
|
+
expected: "iDeleteClaimPayload",
|
|
4767
4786
|
value: input
|
|
4768
4787
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
4769
4788
|
path: _path + "",
|
|
4770
|
-
expected: "
|
|
4789
|
+
expected: "iDeleteClaimPayload",
|
|
4771
4790
|
value: input
|
|
4772
4791
|
}))(input, "$input", true);
|
|
4773
4792
|
const success = 0 === errors.length;
|
|
@@ -4798,7 +4817,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4798
4817
|
}
|
|
4799
4818
|
async updateClaims(payload) {
|
|
4800
4819
|
try {
|
|
4801
|
-
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io22(input.satisfyMethod)); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
4820
|
+
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.managedBy || "string" === typeof input.managedBy) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io22(input.satisfyMethod)); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
4802
4821
|
const value = input[key];
|
|
4803
4822
|
if (undefined === value)
|
|
4804
4823
|
return true;
|
|
@@ -4865,6 +4884,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4865
4884
|
path: _path + ".createdBy",
|
|
4866
4885
|
expected: "(string | undefined)",
|
|
4867
4886
|
value: input.createdBy
|
|
4887
|
+
}), undefined === input.managedBy || "string" === typeof input.managedBy || $report(_exceptionable, {
|
|
4888
|
+
path: _path + ".managedBy",
|
|
4889
|
+
expected: "(string | undefined)",
|
|
4890
|
+
value: input.managedBy
|
|
4868
4891
|
}), undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim || $report(_exceptionable, {
|
|
4869
4892
|
path: _path + ".standaloneClaim",
|
|
4870
4893
|
expected: "(boolean | undefined)",
|
|
@@ -5466,11 +5489,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5466
5489
|
$report = typia.validate.report(errors);
|
|
5467
5490
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5468
5491
|
path: _path + "",
|
|
5469
|
-
expected: "
|
|
5492
|
+
expected: "iUpdateClaimPayload",
|
|
5470
5493
|
value: input
|
|
5471
5494
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5472
5495
|
path: _path + "",
|
|
5473
|
-
expected: "
|
|
5496
|
+
expected: "iUpdateClaimPayload",
|
|
5474
5497
|
value: input
|
|
5475
5498
|
}))(input, "$input", true);
|
|
5476
5499
|
const success = 0 === errors.length;
|
|
@@ -5509,11 +5532,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5509
5532
|
$report = typia.validate.report(errors);
|
|
5510
5533
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5511
5534
|
path: _path + "",
|
|
5512
|
-
expected: "
|
|
5535
|
+
expected: "iOauthRevokePayload",
|
|
5513
5536
|
value: input
|
|
5514
5537
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5515
5538
|
path: _path + "",
|
|
5516
|
-
expected: "
|
|
5539
|
+
expected: "iOauthRevokePayload",
|
|
5517
5540
|
value: input
|
|
5518
5541
|
}))(input, "$input", true);
|
|
5519
5542
|
const success = 0 === errors.length;
|
|
@@ -5994,11 +6017,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5994
6017
|
$report = typia.validate.report(errors);
|
|
5995
6018
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5996
6019
|
path: _path + "",
|
|
5997
|
-
expected: "
|
|
6020
|
+
expected: "iAddBalancesToOffChainStoragePayload",
|
|
5998
6021
|
value: input
|
|
5999
6022
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6000
6023
|
path: _path + "",
|
|
6001
|
-
expected: "
|
|
6024
|
+
expected: "iAddBalancesToOffChainStoragePayload",
|
|
6002
6025
|
value: input
|
|
6003
6026
|
}))(input, "$input", true);
|
|
6004
6027
|
const success = 0 === errors.length;
|
|
@@ -6033,11 +6056,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6033
6056
|
$report = typia.validate.report(errors);
|
|
6034
6057
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6035
6058
|
path: _path + "",
|
|
6036
|
-
expected: "
|
|
6059
|
+
expected: "iGetGatedContentForClaimPayload",
|
|
6037
6060
|
value: input
|
|
6038
6061
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6039
6062
|
path: _path + "",
|
|
6040
|
-
expected: "
|
|
6063
|
+
expected: "iGetGatedContentForClaimPayload",
|
|
6041
6064
|
value: input
|
|
6042
6065
|
}))(input, "$input", true);
|
|
6043
6066
|
const success = 0 === errors.length;
|
|
@@ -6080,11 +6103,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6080
6103
|
$report = typia.validate.report(errors);
|
|
6081
6104
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6082
6105
|
path: _path + "",
|
|
6083
|
-
expected: "
|
|
6106
|
+
expected: "iGetSignInChallengePayload",
|
|
6084
6107
|
value: input
|
|
6085
6108
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6086
6109
|
path: _path + "",
|
|
6087
|
-
expected: "
|
|
6110
|
+
expected: "iGetSignInChallengePayload",
|
|
6088
6111
|
value: input
|
|
6089
6112
|
}))(input, "$input", true);
|
|
6090
6113
|
const success = 0 === errors.length;
|
|
@@ -6143,11 +6166,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6143
6166
|
$report = typia.validate.report(errors);
|
|
6144
6167
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6145
6168
|
path: _path + "",
|
|
6146
|
-
expected: "
|
|
6169
|
+
expected: "iVerifySignInPayload",
|
|
6147
6170
|
value: input
|
|
6148
6171
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6149
6172
|
path: _path + "",
|
|
6150
|
-
expected: "
|
|
6173
|
+
expected: "iVerifySignInPayload",
|
|
6151
6174
|
value: input
|
|
6152
6175
|
}))(input, "$input", true);
|
|
6153
6176
|
const success = 0 === errors.length;
|
|
@@ -6262,11 +6285,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6262
6285
|
$report = typia.validate.report(errors);
|
|
6263
6286
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6264
6287
|
path: _path + "",
|
|
6265
|
-
expected: "
|
|
6288
|
+
expected: "iSignOutPayload",
|
|
6266
6289
|
value: input
|
|
6267
6290
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6268
6291
|
path: _path + "",
|
|
6269
|
-
expected: "
|
|
6292
|
+
expected: "iSignOutPayload",
|
|
6270
6293
|
value: input
|
|
6271
6294
|
}))(input, "$input", true);
|
|
6272
6295
|
const success = 0 === errors.length;
|
|
@@ -6293,7 +6316,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6293
6316
|
return Promise.reject(error);
|
|
6294
6317
|
}
|
|
6295
6318
|
}
|
|
6296
|
-
async
|
|
6319
|
+
async performStoreAction(payload, actionName, dynamicDataId, dynamicDataSecret, bodyAuth = true) {
|
|
6297
6320
|
try {
|
|
6298
6321
|
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Object.keys(input).every(key => {
|
|
6299
6322
|
const value = input[key];
|
|
@@ -6311,11 +6334,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6311
6334
|
$report = typia.validate.report(errors);
|
|
6312
6335
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6313
6336
|
path: _path + "",
|
|
6314
|
-
expected: "
|
|
6337
|
+
expected: "iPerformStoreActionPayload",
|
|
6315
6338
|
value: input
|
|
6316
6339
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6317
6340
|
path: _path + "",
|
|
6318
|
-
expected: "
|
|
6341
|
+
expected: "iPerformStoreActionPayload",
|
|
6319
6342
|
value: input
|
|
6320
6343
|
}))(input, "$input", true);
|
|
6321
6344
|
const success = 0 === errors.length;
|
|
@@ -6335,17 +6358,17 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6335
6358
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6336
6359
|
}
|
|
6337
6360
|
if (bodyAuth) {
|
|
6338
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6339
|
-
dynamicDataId:
|
|
6340
|
-
dataSecret:
|
|
6361
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.PerformStoreActionSingleWithBodyAuthRoute()}`, {
|
|
6362
|
+
dynamicDataId: dynamicDataId,
|
|
6363
|
+
dataSecret: dynamicDataSecret,
|
|
6341
6364
|
actionName: actionName,
|
|
6342
6365
|
payload: payload
|
|
6343
6366
|
});
|
|
6344
|
-
return new
|
|
6367
|
+
return new PerformStoreActionSuccessResponse(response.data);
|
|
6345
6368
|
}
|
|
6346
6369
|
else {
|
|
6347
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6348
|
-
return new
|
|
6370
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.PerformStoreActionSingleRoute(actionName, dynamicDataId, dynamicDataSecret)}`, payload);
|
|
6371
|
+
return new PerformStoreActionSuccessResponse(response.data);
|
|
6349
6372
|
}
|
|
6350
6373
|
}
|
|
6351
6374
|
catch (error) {
|
|
@@ -6353,7 +6376,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6353
6376
|
return Promise.reject(error);
|
|
6354
6377
|
}
|
|
6355
6378
|
}
|
|
6356
|
-
async
|
|
6379
|
+
async performBatchStoreAction(payload, dynamicDataId, dynamicDataSecret, bodyAuth = true) {
|
|
6357
6380
|
try {
|
|
6358
6381
|
const validateRes = (() => { const $io0 = input => Array.isArray(input.actions) && input.actions.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.actionName && true; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.actions) || $report(_exceptionable, {
|
|
6359
6382
|
path: _path + ".actions",
|
|
@@ -6381,11 +6404,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6381
6404
|
$report = typia.validate.report(errors);
|
|
6382
6405
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6383
6406
|
path: _path + "",
|
|
6384
|
-
expected: "
|
|
6407
|
+
expected: "iBatchStoreActionPayload",
|
|
6385
6408
|
value: input
|
|
6386
6409
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6387
6410
|
path: _path + "",
|
|
6388
|
-
expected: "
|
|
6411
|
+
expected: "iBatchStoreActionPayload",
|
|
6389
6412
|
value: input
|
|
6390
6413
|
}))(input, "$input", true);
|
|
6391
6414
|
const success = 0 === errors.length;
|
|
@@ -6405,16 +6428,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6405
6428
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6406
6429
|
}
|
|
6407
6430
|
if (bodyAuth) {
|
|
6408
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6431
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.PerformStoreActionBatchWithBodyAuthRoute()}`, {
|
|
6409
6432
|
...payload,
|
|
6410
|
-
dynamicDataId:
|
|
6411
|
-
dataSecret:
|
|
6433
|
+
dynamicDataId: dynamicDataId,
|
|
6434
|
+
dataSecret: dynamicDataSecret
|
|
6412
6435
|
});
|
|
6413
|
-
return new
|
|
6436
|
+
return new BatchStoreActionSuccessResponse(response.data);
|
|
6414
6437
|
}
|
|
6415
6438
|
else {
|
|
6416
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6417
|
-
return new
|
|
6439
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.PerformStoreActionBatchRoute(dynamicDataId, dynamicDataSecret)}`, payload);
|
|
6440
|
+
return new BatchStoreActionSuccessResponse(response.data);
|
|
6418
6441
|
}
|
|
6419
6442
|
}
|
|
6420
6443
|
catch (error) {
|
|
@@ -6424,7 +6447,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6424
6447
|
}
|
|
6425
6448
|
async getDynamicDataActivity(payload) {
|
|
6426
6449
|
try {
|
|
6427
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6450
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDynamicDataStoreActivityRoute()}`, payload);
|
|
6428
6451
|
return new GetDynamicDataActivitySuccessResponse(response.data);
|
|
6429
6452
|
}
|
|
6430
6453
|
catch (error) {
|
|
@@ -6432,47 +6455,59 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6432
6455
|
return Promise.reject(error);
|
|
6433
6456
|
}
|
|
6434
6457
|
}
|
|
6435
|
-
async
|
|
6458
|
+
async getDynamicDataStores(payload) {
|
|
6436
6459
|
try {
|
|
6437
|
-
const validateRes = (() => { const $io0 = input => (undefined === input.
|
|
6460
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.dynamicDataId && (undefined === input.dataSecret || "string" === typeof input.dataSecret) && (undefined === input.fetchAllData || "boolean" === typeof input.fetchAllData) && (undefined === input.bookmark || "string" === typeof input.bookmark) && (undefined === input.lookupKeys || Array.isArray(input.lookupKeys) && input.lookupKeys.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io1 = input => "string" === typeof input.key && (undefined === input.lookupType || "username" === input.lookupType || "id" === input.lookupType); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.dynamicDataId || $report(_exceptionable, {
|
|
6438
6461
|
path: _path + ".dynamicDataId",
|
|
6439
|
-
expected: "
|
|
6462
|
+
expected: "string",
|
|
6440
6463
|
value: input.dynamicDataId
|
|
6441
6464
|
}), undefined === input.dataSecret || "string" === typeof input.dataSecret || $report(_exceptionable, {
|
|
6442
6465
|
path: _path + ".dataSecret",
|
|
6443
6466
|
expected: "(string | undefined)",
|
|
6444
6467
|
value: input.dataSecret
|
|
6468
|
+
}), undefined === input.fetchAllData || "boolean" === typeof input.fetchAllData || $report(_exceptionable, {
|
|
6469
|
+
path: _path + ".fetchAllData",
|
|
6470
|
+
expected: "(boolean | undefined)",
|
|
6471
|
+
value: input.fetchAllData
|
|
6445
6472
|
}), undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
6446
6473
|
path: _path + ".bookmark",
|
|
6447
6474
|
expected: "(string | undefined)",
|
|
6448
6475
|
value: input.bookmark
|
|
6449
|
-
}), undefined === input.
|
|
6450
|
-
path: _path + ".
|
|
6451
|
-
expected: "(__type | undefined)",
|
|
6452
|
-
value: input.
|
|
6453
|
-
})) &&
|
|
6454
|
-
path: _path + ".
|
|
6455
|
-
expected: "
|
|
6456
|
-
value:
|
|
6457
|
-
})
|
|
6458
|
-
path: _path + ".
|
|
6459
|
-
expected: "
|
|
6460
|
-
value:
|
|
6461
|
-
})
|
|
6476
|
+
}), undefined === input.lookupKeys || (Array.isArray(input.lookupKeys) || $report(_exceptionable, {
|
|
6477
|
+
path: _path + ".lookupKeys",
|
|
6478
|
+
expected: "(Array<__type> | undefined)",
|
|
6479
|
+
value: input.lookupKeys
|
|
6480
|
+
})) && input.lookupKeys.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6481
|
+
path: _path + ".lookupKeys[" + _index2 + "]",
|
|
6482
|
+
expected: "__type",
|
|
6483
|
+
value: elem
|
|
6484
|
+
})) && $vo1(elem, _path + ".lookupKeys[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6485
|
+
path: _path + ".lookupKeys[" + _index2 + "]",
|
|
6486
|
+
expected: "__type",
|
|
6487
|
+
value: elem
|
|
6488
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6489
|
+
path: _path + ".lookupKeys",
|
|
6490
|
+
expected: "(Array<__type> | undefined)",
|
|
6491
|
+
value: input.lookupKeys
|
|
6492
|
+
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
|
|
6462
6493
|
path: _path + ".key",
|
|
6463
6494
|
expected: "string",
|
|
6464
6495
|
value: input.key
|
|
6465
|
-
})
|
|
6496
|
+
}), undefined === input.lookupType || "username" === input.lookupType || "id" === input.lookupType || $report(_exceptionable, {
|
|
6497
|
+
path: _path + ".lookupType",
|
|
6498
|
+
expected: "(\"id\" | \"username\" | undefined)",
|
|
6499
|
+
value: input.lookupType
|
|
6500
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
6466
6501
|
if (false === __is(input)) {
|
|
6467
6502
|
errors = [];
|
|
6468
6503
|
$report = typia.validate.report(errors);
|
|
6469
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input
|
|
6504
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6470
6505
|
path: _path + "",
|
|
6471
|
-
expected: "
|
|
6506
|
+
expected: "iGetDynamicDataStoresPayload",
|
|
6472
6507
|
value: input
|
|
6473
6508
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6474
6509
|
path: _path + "",
|
|
6475
|
-
expected: "
|
|
6510
|
+
expected: "iGetDynamicDataStoresPayload",
|
|
6476
6511
|
value: input
|
|
6477
6512
|
}))(input, "$input", true);
|
|
6478
6513
|
const success = 0 === errors.length;
|
|
@@ -6491,23 +6526,62 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6491
6526
|
if (!validateRes.success) {
|
|
6492
6527
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6493
6528
|
}
|
|
6494
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6495
|
-
return new
|
|
6529
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDynamicDataStoresRoute()}`, payload);
|
|
6530
|
+
return new GetDynamicDataStoresSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6496
6531
|
}
|
|
6497
6532
|
catch (error) {
|
|
6498
6533
|
await this.handleApiError(error);
|
|
6499
6534
|
return Promise.reject(error);
|
|
6500
6535
|
}
|
|
6501
6536
|
}
|
|
6502
|
-
async
|
|
6537
|
+
async searchDynamicDataStores(payload) {
|
|
6503
6538
|
try {
|
|
6504
|
-
const validateRes = (() => { const $io0 = input =>
|
|
6539
|
+
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, {
|
|
6505
6540
|
path: _path + ".bookmark",
|
|
6506
6541
|
expected: "(string | undefined)",
|
|
6507
6542
|
value: input.bookmark
|
|
6508
|
-
})
|
|
6543
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
6544
|
+
if (false === __is(input)) {
|
|
6545
|
+
errors = [];
|
|
6546
|
+
$report = typia.validate.report(errors);
|
|
6547
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6548
|
+
path: _path + "",
|
|
6549
|
+
expected: "iSearchDynamicDataStoresPayload",
|
|
6550
|
+
value: input
|
|
6551
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6552
|
+
path: _path + "",
|
|
6553
|
+
expected: "iSearchDynamicDataStoresPayload",
|
|
6554
|
+
value: input
|
|
6555
|
+
}))(input, "$input", true);
|
|
6556
|
+
const success = 0 === errors.length;
|
|
6557
|
+
return {
|
|
6558
|
+
success,
|
|
6559
|
+
errors,
|
|
6560
|
+
data: success ? input : undefined
|
|
6561
|
+
};
|
|
6562
|
+
}
|
|
6563
|
+
return {
|
|
6564
|
+
success: true,
|
|
6565
|
+
errors: [],
|
|
6566
|
+
data: input
|
|
6567
|
+
};
|
|
6568
|
+
}; })()(payload ?? {});
|
|
6569
|
+
if (!validateRes.success) {
|
|
6570
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6571
|
+
}
|
|
6572
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchDynamicDataStoresRoute()}`, payload);
|
|
6573
|
+
return new SearchDynamicDataStoresSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6574
|
+
}
|
|
6575
|
+
catch (error) {
|
|
6576
|
+
await this.handleApiError(error);
|
|
6577
|
+
return Promise.reject(error);
|
|
6578
|
+
}
|
|
6579
|
+
}
|
|
6580
|
+
async getApplications(payload) {
|
|
6581
|
+
try {
|
|
6582
|
+
const validateRes = (() => { const $io0 = input => Array.isArray(input.groupIds) && input.groupIds.every(elem => "string" === typeof elem); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.groupIds) || $report(_exceptionable, {
|
|
6509
6583
|
path: _path + ".groupIds",
|
|
6510
|
-
expected: "
|
|
6584
|
+
expected: "Array<string>",
|
|
6511
6585
|
value: input.groupIds
|
|
6512
6586
|
})) && input.groupIds.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
|
|
6513
6587
|
path: _path + ".groupIds[" + _index2 + "]",
|
|
@@ -6515,19 +6589,62 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6515
6589
|
value: elem
|
|
6516
6590
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6517
6591
|
path: _path + ".groupIds",
|
|
6518
|
-
expected: "
|
|
6592
|
+
expected: "Array<string>",
|
|
6519
6593
|
value: input.groupIds
|
|
6594
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
6595
|
+
if (false === __is(input)) {
|
|
6596
|
+
errors = [];
|
|
6597
|
+
$report = typia.validate.report(errors);
|
|
6598
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6599
|
+
path: _path + "",
|
|
6600
|
+
expected: "iGetApplicationsPayload",
|
|
6601
|
+
value: input
|
|
6602
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6603
|
+
path: _path + "",
|
|
6604
|
+
expected: "iGetApplicationsPayload",
|
|
6605
|
+
value: input
|
|
6606
|
+
}))(input, "$input", true);
|
|
6607
|
+
const success = 0 === errors.length;
|
|
6608
|
+
return {
|
|
6609
|
+
success,
|
|
6610
|
+
errors,
|
|
6611
|
+
data: success ? input : undefined
|
|
6612
|
+
};
|
|
6613
|
+
}
|
|
6614
|
+
return {
|
|
6615
|
+
success: true,
|
|
6616
|
+
errors: [],
|
|
6617
|
+
data: input
|
|
6618
|
+
};
|
|
6619
|
+
}; })()(payload ?? {});
|
|
6620
|
+
if (!validateRes.success) {
|
|
6621
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6622
|
+
}
|
|
6623
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetApplicationsRoute()}`, payload);
|
|
6624
|
+
return new GetApplicationsSuccessResponse(response.data);
|
|
6625
|
+
}
|
|
6626
|
+
catch (error) {
|
|
6627
|
+
await this.handleApiError(error);
|
|
6628
|
+
return Promise.reject(error);
|
|
6629
|
+
}
|
|
6630
|
+
}
|
|
6631
|
+
async searchApplications(payload) {
|
|
6632
|
+
try {
|
|
6633
|
+
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, {
|
|
6634
|
+
path: _path + ".bookmark",
|
|
6635
|
+
expected: "(string | undefined)",
|
|
6636
|
+
value: input.bookmark
|
|
6520
6637
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
6521
6638
|
if (false === __is(input)) {
|
|
6522
6639
|
errors = [];
|
|
6523
6640
|
$report = typia.validate.report(errors);
|
|
6524
6641
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6525
6642
|
path: _path + "",
|
|
6526
|
-
expected: "
|
|
6643
|
+
expected: "iSearchApplicationsPayload",
|
|
6527
6644
|
value: input
|
|
6528
6645
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6529
6646
|
path: _path + "",
|
|
6530
|
-
expected: "
|
|
6647
|
+
expected: "iSearchApplicationsPayload",
|
|
6531
6648
|
value: input
|
|
6532
6649
|
}))(input, "$input", true);
|
|
6533
6650
|
const success = 0 === errors.length;
|
|
@@ -6546,15 +6663,15 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6546
6663
|
if (!validateRes.success) {
|
|
6547
6664
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6548
6665
|
}
|
|
6549
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6550
|
-
return new
|
|
6666
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchApplicationsRoute()}`, payload);
|
|
6667
|
+
return new SearchApplicationsSuccessResponse(response.data);
|
|
6551
6668
|
}
|
|
6552
6669
|
catch (error) {
|
|
6553
6670
|
await this.handleApiError(error);
|
|
6554
6671
|
return Promise.reject(error);
|
|
6555
6672
|
}
|
|
6556
6673
|
}
|
|
6557
|
-
async
|
|
6674
|
+
async createApplication(payload) {
|
|
6558
6675
|
try {
|
|
6559
6676
|
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata) && (Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io2 = input => Object.keys(input).every(key => {
|
|
6560
6677
|
const value = input[key];
|
|
@@ -6812,11 +6929,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6812
6929
|
$report = typia.validate.report(errors);
|
|
6813
6930
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
6814
6931
|
path: _path + "",
|
|
6815
|
-
expected: "
|
|
6932
|
+
expected: "iCreateApplicationPayload",
|
|
6816
6933
|
value: input
|
|
6817
6934
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
6818
6935
|
path: _path + "",
|
|
6819
|
-
expected: "
|
|
6936
|
+
expected: "iCreateApplicationPayload",
|
|
6820
6937
|
value: input
|
|
6821
6938
|
}))(input, "$input", true);
|
|
6822
6939
|
const success = 0 === errors.length;
|
|
@@ -6835,15 +6952,15 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
6835
6952
|
if (!validateRes.success) {
|
|
6836
6953
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6837
6954
|
}
|
|
6838
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
6839
|
-
return new
|
|
6955
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDApplicationsRoute()}`, payload);
|
|
6956
|
+
return new CreateApplicationSuccessResponse(response.data);
|
|
6840
6957
|
}
|
|
6841
6958
|
catch (error) {
|
|
6842
6959
|
await this.handleApiError(error);
|
|
6843
6960
|
return Promise.reject(error);
|
|
6844
6961
|
}
|
|
6845
6962
|
}
|
|
6846
|
-
async
|
|
6963
|
+
async updateApplication(payload) {
|
|
6847
6964
|
try {
|
|
6848
6965
|
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => "string" === typeof input.groupId && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.additionalInfo || Array.isArray(input.additionalInfo) && input.additionalInfo.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io2 = input => Object.keys(input).every(key => {
|
|
6849
6966
|
const value = input[key];
|
|
@@ -7105,11 +7222,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7105
7222
|
$report = typia.validate.report(errors);
|
|
7106
7223
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
7107
7224
|
path: _path + "",
|
|
7108
|
-
expected: "
|
|
7225
|
+
expected: "iUpdateApplicationPayload",
|
|
7109
7226
|
value: input
|
|
7110
7227
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7111
7228
|
path: _path + "",
|
|
7112
|
-
expected: "
|
|
7229
|
+
expected: "iUpdateApplicationPayload",
|
|
7113
7230
|
value: input
|
|
7114
7231
|
}))(input, "$input", true);
|
|
7115
7232
|
const success = 0 === errors.length;
|
|
@@ -7128,15 +7245,15 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7128
7245
|
if (!validateRes.success) {
|
|
7129
7246
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7130
7247
|
}
|
|
7131
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
7132
|
-
return new
|
|
7248
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDApplicationsRoute()}`, payload);
|
|
7249
|
+
return new UpdateApplicationSuccessResponse(response.data);
|
|
7133
7250
|
}
|
|
7134
7251
|
catch (error) {
|
|
7135
7252
|
await this.handleApiError(error);
|
|
7136
7253
|
return Promise.reject(error);
|
|
7137
7254
|
}
|
|
7138
7255
|
}
|
|
7139
|
-
async
|
|
7256
|
+
async deleteApplication(payload) {
|
|
7140
7257
|
try {
|
|
7141
7258
|
const validateRes = (() => { const $io0 = input => "string" === typeof input.groupId; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.groupId || $report(_exceptionable, {
|
|
7142
7259
|
path: _path + ".groupId",
|
|
@@ -7148,11 +7265,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7148
7265
|
$report = typia.validate.report(errors);
|
|
7149
7266
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
7150
7267
|
path: _path + "",
|
|
7151
|
-
expected: "
|
|
7268
|
+
expected: "iDeleteApplicationPayload",
|
|
7152
7269
|
value: input
|
|
7153
7270
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7154
7271
|
path: _path + "",
|
|
7155
|
-
expected: "
|
|
7272
|
+
expected: "iDeleteApplicationPayload",
|
|
7156
7273
|
value: input
|
|
7157
7274
|
}))(input, "$input", true);
|
|
7158
7275
|
const success = 0 === errors.length;
|
|
@@ -7171,10 +7288,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7171
7288
|
if (!validateRes.success) {
|
|
7172
7289
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7173
7290
|
}
|
|
7174
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
7291
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDApplicationsRoute()}`, {
|
|
7175
7292
|
data: payload
|
|
7176
7293
|
});
|
|
7177
|
-
return new
|
|
7294
|
+
return new DeleteApplicationSuccessResponse(response.data);
|
|
7178
7295
|
}
|
|
7179
7296
|
catch (error) {
|
|
7180
7297
|
await this.handleApiError(error);
|
|
@@ -7215,11 +7332,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7215
7332
|
$report = typia.validate.report(errors);
|
|
7216
7333
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
7217
7334
|
path: _path + "",
|
|
7218
|
-
expected: "
|
|
7335
|
+
expected: "iGetPointsActivityPayload",
|
|
7219
7336
|
value: input
|
|
7220
7337
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7221
7338
|
path: _path + "",
|
|
7222
|
-
expected: "
|
|
7339
|
+
expected: "iGetPointsActivityPayload",
|
|
7223
7340
|
value: input
|
|
7224
7341
|
}))(input, "$input", true);
|
|
7225
7342
|
const success = 0 === errors.length;
|
|
@@ -7256,6 +7373,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7256
7373
|
return Promise.reject(error);
|
|
7257
7374
|
}
|
|
7258
7375
|
}
|
|
7376
|
+
async searchUtilityListings(payload) {
|
|
7377
|
+
try {
|
|
7378
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchUtilityListingsRoute()}`, payload);
|
|
7379
|
+
return new SearchUtilityListingsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
7380
|
+
}
|
|
7381
|
+
catch (error) {
|
|
7382
|
+
await this.handleApiError(error);
|
|
7383
|
+
return Promise.reject(error);
|
|
7384
|
+
}
|
|
7385
|
+
}
|
|
7259
7386
|
async createUtilityListing(payload) {
|
|
7260
7387
|
try {
|
|
7261
7388
|
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDUtilityListingsRoute()}`, payload);
|
|
@@ -7306,11 +7433,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
7306
7433
|
$report = typia.validate.report(errors);
|
|
7307
7434
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
7308
7435
|
path: _path + "",
|
|
7309
|
-
expected: "
|
|
7436
|
+
expected: "iGetClaimAttemptsPayload",
|
|
7310
7437
|
value: input
|
|
7311
7438
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7312
7439
|
path: _path + "",
|
|
7313
|
-
expected: "
|
|
7440
|
+
expected: "iGetClaimAttemptsPayload",
|
|
7314
7441
|
value: input
|
|
7315
7442
|
}))(input, "$input", true);
|
|
7316
7443
|
const success = 0 === errors.length;
|
|
@@ -7363,11 +7490,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7363
7490
|
$report = typia.validate.report(errors);
|
|
7364
7491
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
7365
7492
|
path: _path + "",
|
|
7366
|
-
expected: "
|
|
7493
|
+
expected: "iGetActiveAuthorizationsPayload",
|
|
7367
7494
|
value: input
|
|
7368
7495
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7369
7496
|
path: _path + "",
|
|
7370
|
-
expected: "
|
|
7497
|
+
expected: "iGetActiveAuthorizationsPayload",
|
|
7371
7498
|
value: input
|
|
7372
7499
|
}))(input, "$input", true);
|
|
7373
7500
|
const success = 0 === errors.length;
|
|
@@ -7798,11 +7925,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7798
7925
|
$report = typia.validate.report(errors);
|
|
7799
7926
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
7800
7927
|
path: _path + "",
|
|
7801
|
-
expected: "
|
|
7928
|
+
expected: "iCreatePluginPayload",
|
|
7802
7929
|
value: input
|
|
7803
7930
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7804
7931
|
path: _path + "",
|
|
7805
|
-
expected: "
|
|
7932
|
+
expected: "iCreatePluginPayload",
|
|
7806
7933
|
value: input
|
|
7807
7934
|
}))(input, "$input", true);
|
|
7808
7935
|
const success = 0 === errors.length;
|
|
@@ -8381,11 +8508,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8381
8508
|
$report = typia.validate.report(errors);
|
|
8382
8509
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8383
8510
|
path: _path + "",
|
|
8384
|
-
expected: "
|
|
8511
|
+
expected: "iUpdatePluginPayload",
|
|
8385
8512
|
value: input
|
|
8386
8513
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8387
8514
|
path: _path + "",
|
|
8388
|
-
expected: "
|
|
8515
|
+
expected: "iUpdatePluginPayload",
|
|
8389
8516
|
value: input
|
|
8390
8517
|
}))(input, "$input", true);
|
|
8391
8518
|
const success = 0 === errors.length;
|
|
@@ -8424,11 +8551,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8424
8551
|
$report = typia.validate.report(errors);
|
|
8425
8552
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8426
8553
|
path: _path + "",
|
|
8427
|
-
expected: "
|
|
8554
|
+
expected: "iDeletePluginPayload",
|
|
8428
8555
|
value: input
|
|
8429
8556
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8430
8557
|
path: _path + "",
|
|
8431
|
-
expected: "
|
|
8558
|
+
expected: "iDeletePluginPayload",
|
|
8432
8559
|
value: input
|
|
8433
8560
|
}))(input, "$input", true);
|
|
8434
8561
|
const success = 0 === errors.length;
|
|
@@ -8459,11 +8586,50 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8459
8586
|
}
|
|
8460
8587
|
async getDeveloperApps(payload) {
|
|
8461
8588
|
try {
|
|
8462
|
-
const validateRes = (() => { const $io0 = input =>
|
|
8589
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.clientId; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
|
|
8463
8590
|
path: _path + ".clientId",
|
|
8464
|
-
expected: "
|
|
8591
|
+
expected: "string",
|
|
8465
8592
|
value: input.clientId
|
|
8466
|
-
})
|
|
8593
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
8594
|
+
if (false === __is(input)) {
|
|
8595
|
+
errors = [];
|
|
8596
|
+
$report = typia.validate.report(errors);
|
|
8597
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8598
|
+
path: _path + "",
|
|
8599
|
+
expected: "iGetDeveloperAppsPayload",
|
|
8600
|
+
value: input
|
|
8601
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8602
|
+
path: _path + "",
|
|
8603
|
+
expected: "iGetDeveloperAppsPayload",
|
|
8604
|
+
value: input
|
|
8605
|
+
}))(input, "$input", true);
|
|
8606
|
+
const success = 0 === errors.length;
|
|
8607
|
+
return {
|
|
8608
|
+
success,
|
|
8609
|
+
errors,
|
|
8610
|
+
data: success ? input : undefined
|
|
8611
|
+
};
|
|
8612
|
+
}
|
|
8613
|
+
return {
|
|
8614
|
+
success: true,
|
|
8615
|
+
errors: [],
|
|
8616
|
+
data: input
|
|
8617
|
+
};
|
|
8618
|
+
}; })()(payload ?? {});
|
|
8619
|
+
if (!validateRes.success) {
|
|
8620
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8621
|
+
}
|
|
8622
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
|
|
8623
|
+
return new GetDeveloperAppSuccessResponse(response.data);
|
|
8624
|
+
}
|
|
8625
|
+
catch (error) {
|
|
8626
|
+
await this.handleApiError(error);
|
|
8627
|
+
return Promise.reject(error);
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
async searchDeveloperApps(payload) {
|
|
8631
|
+
try {
|
|
8632
|
+
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, {
|
|
8467
8633
|
path: _path + ".bookmark",
|
|
8468
8634
|
expected: "(string | undefined)",
|
|
8469
8635
|
value: input.bookmark
|
|
@@ -8473,11 +8639,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8473
8639
|
$report = typia.validate.report(errors);
|
|
8474
8640
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
8475
8641
|
path: _path + "",
|
|
8476
|
-
expected: "
|
|
8642
|
+
expected: "iSearchDeveloperAppsPayload",
|
|
8477
8643
|
value: input
|
|
8478
8644
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8479
8645
|
path: _path + "",
|
|
8480
|
-
expected: "
|
|
8646
|
+
expected: "iSearchDeveloperAppsPayload",
|
|
8481
8647
|
value: input
|
|
8482
8648
|
}))(input, "$input", true);
|
|
8483
8649
|
const success = 0 === errors.length;
|
|
@@ -8496,8 +8662,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8496
8662
|
if (!validateRes.success) {
|
|
8497
8663
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8498
8664
|
}
|
|
8499
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
8500
|
-
return new
|
|
8665
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchDeveloperAppsRoute()}`, payload);
|
|
8666
|
+
return new SearchDeveloperAppsSuccessResponse(response.data);
|
|
8501
8667
|
}
|
|
8502
8668
|
catch (error) {
|
|
8503
8669
|
await this.handleApiError(error);
|
|
@@ -8536,11 +8702,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8536
8702
|
$report = typia.validate.report(errors);
|
|
8537
8703
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8538
8704
|
path: _path + "",
|
|
8539
|
-
expected: "
|
|
8705
|
+
expected: "iCreateDeveloperAppPayload",
|
|
8540
8706
|
value: input
|
|
8541
8707
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8542
8708
|
path: _path + "",
|
|
8543
|
-
expected: "
|
|
8709
|
+
expected: "iCreateDeveloperAppPayload",
|
|
8544
8710
|
value: input
|
|
8545
8711
|
}))(input, "$input", true);
|
|
8546
8712
|
const success = 0 === errors.length;
|
|
@@ -8583,11 +8749,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8583
8749
|
$report = typia.validate.report(errors);
|
|
8584
8750
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8585
8751
|
path: _path + "",
|
|
8586
|
-
expected: "
|
|
8752
|
+
expected: "iDeleteDeveloperAppPayload",
|
|
8587
8753
|
value: input
|
|
8588
8754
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8589
8755
|
path: _path + "",
|
|
8590
|
-
expected: "
|
|
8756
|
+
expected: "iDeleteDeveloperAppPayload",
|
|
8591
8757
|
value: input
|
|
8592
8758
|
}))(input, "$input", true);
|
|
8593
8759
|
const success = 0 === errors.length;
|
|
@@ -8654,11 +8820,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8654
8820
|
$report = typia.validate.report(errors);
|
|
8655
8821
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8656
8822
|
path: _path + "",
|
|
8657
|
-
expected: "
|
|
8823
|
+
expected: "iUpdateDeveloperAppPayload",
|
|
8658
8824
|
value: input
|
|
8659
8825
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8660
8826
|
path: _path + "",
|
|
8661
|
-
expected: "
|
|
8827
|
+
expected: "iUpdateDeveloperAppPayload",
|
|
8662
8828
|
value: input
|
|
8663
8829
|
}))(input, "$input", true);
|
|
8664
8830
|
const success = 0 === errors.length;
|
|
@@ -8687,13 +8853,9 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8687
8853
|
}
|
|
8688
8854
|
async getPlugins(payload) {
|
|
8689
8855
|
try {
|
|
8690
|
-
const validateRes = (() => { const $io0 = input =>
|
|
8691
|
-
path: _path + ".createdPluginsOnly",
|
|
8692
|
-
expected: "(boolean | undefined)",
|
|
8693
|
-
value: input.createdPluginsOnly
|
|
8694
|
-
}), undefined === input.pluginIds || (Array.isArray(input.pluginIds) || $report(_exceptionable, {
|
|
8856
|
+
const validateRes = (() => { const $io0 = input => Array.isArray(input.pluginIds) && input.pluginIds.every(elem => "string" === typeof elem) && (undefined === input.inviteCode || "string" === typeof input.inviteCode); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.pluginIds) || $report(_exceptionable, {
|
|
8695
8857
|
path: _path + ".pluginIds",
|
|
8696
|
-
expected: "
|
|
8858
|
+
expected: "Array<string>",
|
|
8697
8859
|
value: input.pluginIds
|
|
8698
8860
|
})) && input.pluginIds.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
|
|
8699
8861
|
path: _path + ".pluginIds[" + _index2 + "]",
|
|
@@ -8701,12 +8863,55 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8701
8863
|
value: elem
|
|
8702
8864
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
8703
8865
|
path: _path + ".pluginIds",
|
|
8704
|
-
expected: "
|
|
8866
|
+
expected: "Array<string>",
|
|
8705
8867
|
value: input.pluginIds
|
|
8706
8868
|
}), undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
|
|
8707
8869
|
path: _path + ".inviteCode",
|
|
8708
8870
|
expected: "(string | undefined)",
|
|
8709
8871
|
value: input.inviteCode
|
|
8872
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
8873
|
+
if (false === __is(input)) {
|
|
8874
|
+
errors = [];
|
|
8875
|
+
$report = typia.validate.report(errors);
|
|
8876
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8877
|
+
path: _path + "",
|
|
8878
|
+
expected: "iGetPluginsPayload",
|
|
8879
|
+
value: input
|
|
8880
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8881
|
+
path: _path + "",
|
|
8882
|
+
expected: "iGetPluginsPayload",
|
|
8883
|
+
value: input
|
|
8884
|
+
}))(input, "$input", true);
|
|
8885
|
+
const success = 0 === errors.length;
|
|
8886
|
+
return {
|
|
8887
|
+
success,
|
|
8888
|
+
errors,
|
|
8889
|
+
data: success ? input : undefined
|
|
8890
|
+
};
|
|
8891
|
+
}
|
|
8892
|
+
return {
|
|
8893
|
+
success: true,
|
|
8894
|
+
errors: [],
|
|
8895
|
+
data: input
|
|
8896
|
+
};
|
|
8897
|
+
}; })()(payload ?? {});
|
|
8898
|
+
if (!validateRes.success) {
|
|
8899
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8900
|
+
}
|
|
8901
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetPluginRoute()}`, payload);
|
|
8902
|
+
return new GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
8903
|
+
}
|
|
8904
|
+
catch (error) {
|
|
8905
|
+
await this.handleApiError(error);
|
|
8906
|
+
return Promise.reject(error);
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8909
|
+
async searchPlugins(payload) {
|
|
8910
|
+
try {
|
|
8911
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.createdPluginsOnly || "boolean" === typeof input.createdPluginsOnly) && (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.createdPluginsOnly || "boolean" === typeof input.createdPluginsOnly || $report(_exceptionable, {
|
|
8912
|
+
path: _path + ".createdPluginsOnly",
|
|
8913
|
+
expected: "(boolean | undefined)",
|
|
8914
|
+
value: input.createdPluginsOnly
|
|
8710
8915
|
}), undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
8711
8916
|
path: _path + ".bookmark",
|
|
8712
8917
|
expected: "(string | undefined)",
|
|
@@ -8725,11 +8930,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8725
8930
|
$report = typia.validate.report(errors);
|
|
8726
8931
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
8727
8932
|
path: _path + "",
|
|
8728
|
-
expected: "
|
|
8933
|
+
expected: "iSearchPluginsPayload",
|
|
8729
8934
|
value: input
|
|
8730
8935
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8731
8936
|
path: _path + "",
|
|
8732
|
-
expected: "
|
|
8937
|
+
expected: "iSearchPluginsPayload",
|
|
8733
8938
|
value: input
|
|
8734
8939
|
}))(input, "$input", true);
|
|
8735
8940
|
const success = 0 === errors.length;
|
|
@@ -8748,8 +8953,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8748
8953
|
if (!validateRes.success) {
|
|
8749
8954
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8750
8955
|
}
|
|
8751
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
8752
|
-
return new
|
|
8956
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchPluginsRoute()}`, payload);
|
|
8957
|
+
return new SearchPluginsSuccessResponse(response.data);
|
|
8753
8958
|
}
|
|
8754
8959
|
catch (error) {
|
|
8755
8960
|
await this.handleApiError(error);
|
|
@@ -8768,11 +8973,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8768
8973
|
$report = typia.validate.report(errors);
|
|
8769
8974
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8770
8975
|
path: _path + "",
|
|
8771
|
-
expected: "
|
|
8976
|
+
expected: "iGenerateGoogleWalletPayload",
|
|
8772
8977
|
value: input
|
|
8773
8978
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8774
8979
|
path: _path + "",
|
|
8775
|
-
expected: "
|
|
8980
|
+
expected: "iGenerateGoogleWalletPayload",
|
|
8776
8981
|
value: input
|
|
8777
8982
|
}))(input, "$input", true);
|
|
8778
8983
|
const success = 0 === errors.length;
|
|
@@ -8811,11 +9016,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8811
9016
|
$report = typia.validate.report(errors);
|
|
8812
9017
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8813
9018
|
path: _path + "",
|
|
8814
|
-
expected: "
|
|
9019
|
+
expected: "iGenerateAppleWalletPassPayload",
|
|
8815
9020
|
value: input
|
|
8816
9021
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8817
9022
|
path: _path + "",
|
|
8818
|
-
expected: "
|
|
9023
|
+
expected: "iGenerateAppleWalletPassPayload",
|
|
8819
9024
|
value: input
|
|
8820
9025
|
}))(input, "$input", true);
|
|
8821
9026
|
const success = 0 === errors.length;
|
|
@@ -8862,11 +9067,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8862
9067
|
$report = typia.validate.report(errors);
|
|
8863
9068
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8864
9069
|
path: _path + "",
|
|
8865
|
-
expected: "
|
|
9070
|
+
expected: "iFetchMetadataDirectlyPayload",
|
|
8866
9071
|
value: input
|
|
8867
9072
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8868
9073
|
path: _path + "",
|
|
8869
|
-
expected: "
|
|
9074
|
+
expected: "iFetchMetadataDirectlyPayload",
|
|
8870
9075
|
value: input
|
|
8871
9076
|
}))(input, "$input", true);
|
|
8872
9077
|
const success = 0 === errors.length;
|
|
@@ -8901,11 +9106,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8901
9106
|
$report = typia.validate.report(errors);
|
|
8902
9107
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
8903
9108
|
path: _path + "",
|
|
8904
|
-
expected: "
|
|
9109
|
+
expected: "iGetTokensFromFaucetPayload",
|
|
8905
9110
|
value: input
|
|
8906
9111
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8907
9112
|
path: _path + "",
|
|
8908
|
-
expected: "
|
|
9113
|
+
expected: "iGetTokensFromFaucetPayload",
|
|
8909
9114
|
value: input
|
|
8910
9115
|
}))(input, "$input", true);
|
|
8911
9116
|
const success = 0 === errors.length;
|
|
@@ -9346,11 +9551,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
9346
9551
|
$report = typia.validate.report(errors);
|
|
9347
9552
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
9348
9553
|
path: _path + "",
|
|
9349
|
-
expected: "
|
|
9554
|
+
expected: "iAddToIpfsPayload",
|
|
9350
9555
|
value: input
|
|
9351
9556
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
9352
9557
|
path: _path + "",
|
|
9353
|
-
expected: "
|
|
9558
|
+
expected: "iAddToIpfsPayload",
|
|
9354
9559
|
value: input
|
|
9355
9560
|
}))(input, "$input", true);
|
|
9356
9561
|
const success = 0 === errors.length;
|
|
@@ -9388,7 +9593,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
9388
9593
|
if ("number" === typeof Number(key))
|
|
9389
9594
|
return "number" === typeof value;
|
|
9390
9595
|
return true;
|
|
9391
|
-
}); const $io7 = input => "boolean" === typeof input._includesPrivateParams && "string" === typeof input.claimId && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io8(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io9(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io15(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io18(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io23(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io28(input.satisfyMethod)); const $io8 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && "string" === typeof input.approvalId && "string" === typeof input.challengeTrackerId && ("" === input.approvalLevel || "collection" === input.approvalLevel || "incoming" === input.approvalLevel || "outgoing" === input.approvalLevel) && "string" === typeof input.approverAddress; const $io9 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io13(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io14(input.orderCalculationMethod)); const $io10 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io11(elem)); const $io11 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io12(elem))); const $io12 = 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 $io13 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io14 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io15 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io16(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io16(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io16(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) && $io16(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io16(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)); const $io16 = input => Object.keys(input).every(key => {
|
|
9596
|
+
}); const $io7 = input => "boolean" === typeof input._includesPrivateParams && "string" === typeof input.claimId && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.managedBy || "string" === typeof input.managedBy) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.standaloneClaim || "boolean" === typeof input.standaloneClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io8(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io9(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io15(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io18(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io23(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io28(input.satisfyMethod)); const $io8 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && "string" === typeof input.approvalId && "string" === typeof input.challengeTrackerId && ("" === input.approvalLevel || "collection" === input.approvalLevel || "incoming" === input.approvalLevel || "outgoing" === input.approvalLevel) && "string" === typeof input.approverAddress; const $io9 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io13(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io14(input.orderCalculationMethod)); const $io10 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io11(elem)); const $io11 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io12(elem))); const $io12 = 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 $io13 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io14 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io15 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io16(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io16(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io16(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) && $io16(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io16(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)); const $io16 = input => Object.keys(input).every(key => {
|
|
9392
9597
|
const value = input[key];
|
|
9393
9598
|
if (undefined === value)
|
|
9394
9599
|
return true;
|
|
@@ -9612,6 +9817,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
9612
9817
|
path: _path + ".createdBy",
|
|
9613
9818
|
expected: "(string | undefined)",
|
|
9614
9819
|
value: input.createdBy
|
|
9820
|
+
}), undefined === input.managedBy || "string" === typeof input.managedBy || $report(_exceptionable, {
|
|
9821
|
+
path: _path + ".managedBy",
|
|
9822
|
+
expected: "(string | undefined)",
|
|
9823
|
+
value: input.managedBy
|
|
9615
9824
|
}), undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
9616
9825
|
path: _path + ".collectionId",
|
|
9617
9826
|
expected: "(bigint | number | string | undefined)",
|
|
@@ -10249,11 +10458,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10249
10458
|
$report = typia.validate.report(errors);
|
|
10250
10459
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
10251
10460
|
path: _path + "",
|
|
10252
|
-
expected: "
|
|
10461
|
+
expected: "iAddApprovalDetailsToOffChainStoragePayload",
|
|
10253
10462
|
value: input
|
|
10254
10463
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
10255
10464
|
path: _path + "",
|
|
10256
|
-
expected: "
|
|
10465
|
+
expected: "iAddApprovalDetailsToOffChainStoragePayload",
|
|
10257
10466
|
value: input
|
|
10258
10467
|
}))(input, "$input", true);
|
|
10259
10468
|
const success = 0 === errors.length;
|
|
@@ -10290,7 +10499,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10290
10499
|
return Promise.reject(error);
|
|
10291
10500
|
}
|
|
10292
10501
|
}
|
|
10293
|
-
async
|
|
10502
|
+
async createDynamicDataStore(payload) {
|
|
10294
10503
|
try {
|
|
10295
10504
|
const validateRes = (() => { const $io0 = input => "string" === typeof input.handlerId && "string" === typeof input.label; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.handlerId || $report(_exceptionable, {
|
|
10296
10505
|
path: _path + ".handlerId",
|
|
@@ -10306,11 +10515,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10306
10515
|
$report = typia.validate.report(errors);
|
|
10307
10516
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
10308
10517
|
path: _path + "",
|
|
10309
|
-
expected: "
|
|
10518
|
+
expected: "iCreateDynamicDataStorePayload",
|
|
10310
10519
|
value: input
|
|
10311
10520
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
10312
10521
|
path: _path + "",
|
|
10313
|
-
expected: "
|
|
10522
|
+
expected: "iCreateDynamicDataStorePayload",
|
|
10314
10523
|
value: input
|
|
10315
10524
|
}))(input, "$input", true);
|
|
10316
10525
|
const success = 0 === errors.length;
|
|
@@ -10329,15 +10538,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10329
10538
|
if (!validateRes.success) {
|
|
10330
10539
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
10331
10540
|
}
|
|
10332
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
10333
|
-
return new
|
|
10541
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDynamicDataStoreRoute()}`, payload);
|
|
10542
|
+
return new CreateDynamicDataStoreSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
10334
10543
|
}
|
|
10335
10544
|
catch (error) {
|
|
10336
10545
|
await this.handleApiError(error);
|
|
10337
10546
|
return Promise.reject(error);
|
|
10338
10547
|
}
|
|
10339
10548
|
}
|
|
10340
|
-
async
|
|
10549
|
+
async updateDynamicDataStore(payload) {
|
|
10341
10550
|
try {
|
|
10342
10551
|
const validateRes = (() => { const $io0 = input => "string" === typeof input.dynamicDataId && (undefined === input.rotateDataSecret || "boolean" === typeof input.rotateDataSecret) && (undefined === input.label || "string" === typeof input.label); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.dynamicDataId || $report(_exceptionable, {
|
|
10343
10552
|
path: _path + ".dynamicDataId",
|
|
@@ -10357,11 +10566,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10357
10566
|
$report = typia.validate.report(errors);
|
|
10358
10567
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
10359
10568
|
path: _path + "",
|
|
10360
|
-
expected: "
|
|
10569
|
+
expected: "iUpdateDynamicDataStorePayload",
|
|
10361
10570
|
value: input
|
|
10362
10571
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
10363
10572
|
path: _path + "",
|
|
10364
|
-
expected: "
|
|
10573
|
+
expected: "iUpdateDynamicDataStorePayload",
|
|
10365
10574
|
value: input
|
|
10366
10575
|
}))(input, "$input", true);
|
|
10367
10576
|
const success = 0 === errors.length;
|
|
@@ -10380,15 +10589,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10380
10589
|
if (!validateRes.success) {
|
|
10381
10590
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
10382
10591
|
}
|
|
10383
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
10384
|
-
return new
|
|
10592
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDynamicDataStoreRoute()}`, payload);
|
|
10593
|
+
return new UpdateDynamicDataStoreSuccessResponse(response.data);
|
|
10385
10594
|
}
|
|
10386
10595
|
catch (error) {
|
|
10387
10596
|
await this.handleApiError(error);
|
|
10388
10597
|
return Promise.reject(error);
|
|
10389
10598
|
}
|
|
10390
10599
|
}
|
|
10391
|
-
async
|
|
10600
|
+
async deleteDynamicDataStore(payload) {
|
|
10392
10601
|
try {
|
|
10393
10602
|
const validateRes = (() => { const $io0 = input => "string" === typeof input.dynamicDataId; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.dynamicDataId || $report(_exceptionable, {
|
|
10394
10603
|
path: _path + ".dynamicDataId",
|
|
@@ -10400,11 +10609,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10400
10609
|
$report = typia.validate.report(errors);
|
|
10401
10610
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
10402
10611
|
path: _path + "",
|
|
10403
|
-
expected: "
|
|
10612
|
+
expected: "iDeleteDynamicDataStorePayload",
|
|
10404
10613
|
value: input
|
|
10405
10614
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
10406
10615
|
path: _path + "",
|
|
10407
|
-
expected: "
|
|
10616
|
+
expected: "iDeleteDynamicDataStorePayload",
|
|
10408
10617
|
value: input
|
|
10409
10618
|
}))(input, "$input", true);
|
|
10410
10619
|
const success = 0 === errors.length;
|
|
@@ -10423,8 +10632,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10423
10632
|
if (!validateRes.success) {
|
|
10424
10633
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
10425
10634
|
}
|
|
10426
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
10427
|
-
return new
|
|
10635
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDynamicDataStoreRoute()}`, { data: payload });
|
|
10636
|
+
return new DeleteDynamicDataStoreSuccessResponse(response.data);
|
|
10428
10637
|
}
|
|
10429
10638
|
catch (error) {
|
|
10430
10639
|
await this.handleApiError(error);
|
|
@@ -10489,11 +10698,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
10489
10698
|
$report = typia.validate.report(errors);
|
|
10490
10699
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
10491
10700
|
path: _path + "",
|
|
10492
|
-
expected: "
|
|
10701
|
+
expected: "iGetPluginErrorsPayload",
|
|
10493
10702
|
value: input
|
|
10494
10703
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
10495
10704
|
path: _path + "",
|
|
10496
|
-
expected: "
|
|
10705
|
+
expected: "iGetPluginErrorsPayload",
|
|
10497
10706
|
value: input
|
|
10498
10707
|
}))(input, "$input", true);
|
|
10499
10708
|
const success = 0 === errors.length;
|