bitbadgesjs-sdk 0.5.52 → 0.5.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +2 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +117 -34
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.d.ts +10 -1
- package/dist/cjs/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.js +15 -1
- package/dist/cjs/api-indexer/docs/activity.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +2 -0
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +1 -0
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +18 -2
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +36 -3
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +14 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +1 -0
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +2 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +118 -35
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/activity.d.ts +10 -1
- package/dist/esm/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/activity.js +18 -0
- package/dist/esm/api-indexer/docs/activity.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +2 -0
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +2 -0
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +18 -2
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +36 -3
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +17 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +1 -0
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import type { DynamicDataHandlerType, NativeAddress } from './docs/interfaces.js
|
|
|
8
8
|
import type { FilterBadgesInCollectionPayload, FilterBadgesInCollectionSuccessResponse, FilterSuggestionsPayload, GetBadgeActivityPayload, GetBadgeActivitySuccessResponse, GetBadgeBalanceByAddressPayload, GetBadgeBalanceByAddressSuccessResponse, GetOwnersForBadgePayload, GetOwnersForBadgeSuccessResponse, RefreshMetadataPayload, RefreshMetadataSuccessResponse, RefreshStatusSuccessResponse } from './requests/collections.js';
|
|
9
9
|
import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
|
|
10
10
|
import { GetMapValuesPayload, GetMapValuesSuccessResponse, GetMapsPayload, GetMapsSuccessResponse } from './requests/maps.js';
|
|
11
|
-
import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BatchBinActionPayload, BatchBinActionSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CalculatePointsPayload, CalculatePointsSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateAttestationPayload, CreateAttestationSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, CreateDynamicDataBinPayload, CreateDynamicDataBinSuccessResponse, CreateGroupPayload, CreateGroupSuccessResponse, CreatePaymentIntentPayload, CreatePaymentIntentSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, DeleteAttestationPayload, DeleteAttestationSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeleteDynamicDataBinPayload, DeleteDynamicDataBinSuccessResponse, DeleteGroupPayload, DeleteGroupSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletPayload, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetAttestationsPayload, GetAttestationsSuccessResponse, GetBrowsePayload, GetBrowseSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, GetDynamicDataActivityPayload, GetDynamicDataActivitySuccessResponse, GetDynamicDataBinsPayload, GetDynamicDataBinsSuccessResponse, GetGatedContentForClaimSuccessResponse, GetGroupsPayload, GetGroupsSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusPayload, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, PerformBinActionPayload, PerformBinActionSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdateDynamicDataBinPayload, UpdateDynamicDataBinSuccessResponse, UpdateGroupPayload, UpdateGroupSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, VerifyAttestationPayload, VerifyAttestationSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse } from './requests/requests.js';
|
|
11
|
+
import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BatchBinActionPayload, BatchBinActionSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CalculatePointsPayload, CalculatePointsSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateAttestationPayload, CreateAttestationSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, CreateDynamicDataBinPayload, CreateDynamicDataBinSuccessResponse, CreateGroupPayload, CreateGroupSuccessResponse, CreatePaymentIntentPayload, CreatePaymentIntentSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, DeleteAttestationPayload, DeleteAttestationSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeleteDynamicDataBinPayload, DeleteDynamicDataBinSuccessResponse, DeleteGroupPayload, DeleteGroupSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletPayload, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetAttestationsPayload, GetAttestationsSuccessResponse, GetBrowsePayload, GetBrowseSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, GetDynamicDataActivityPayload, GetDynamicDataActivitySuccessResponse, GetDynamicDataBinsPayload, GetDynamicDataBinsSuccessResponse, GetGatedContentForClaimSuccessResponse, GetGroupsPayload, GetGroupsSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetPointsActivitySuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusPayload, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, PerformBinActionPayload, PerformBinActionSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdateDynamicDataBinPayload, UpdateDynamicDataBinSuccessResponse, UpdateGroupPayload, UpdateGroupSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, VerifyAttestationPayload, VerifyAttestationSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse, GetPointsActivityPayload } from './requests/requests.js';
|
|
12
12
|
export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi<T> {
|
|
13
13
|
constructor(apiDetails: iBitBadgesApi<T>);
|
|
14
14
|
getStatus(payload?: GetStatusPayload): Promise<GetStatusSuccessResponse<T>>;
|
|
@@ -70,6 +70,7 @@ export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi
|
|
|
70
70
|
updateGroup(payload: UpdateGroupPayload): Promise<UpdateGroupSuccessResponse<T>>;
|
|
71
71
|
deleteGroup(payload: DeleteGroupPayload): Promise<DeleteGroupSuccessResponse>;
|
|
72
72
|
calculatePoints(payload: CalculatePointsPayload): Promise<CalculatePointsSuccessResponse>;
|
|
73
|
+
getPointsActivity<T extends NumberType>(payload: GetPointsActivityPayload): Promise<GetPointsActivitySuccessResponse<T>>;
|
|
73
74
|
updateUserSeenActivity(): Promise<UpdateAccountInfoSuccessResponse>;
|
|
74
75
|
}
|
|
75
76
|
export declare class BitBadgesAdminAPI<T extends NumberType> extends BitBadgesAPI<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitBadgesApi.d.ts","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAuB,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAGrH,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EACjC,yBAAyB,EACzB,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAE7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EACV,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,cAAc,EACd,sBAAsB,EAGvB,MAAM,oBAAoB,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
361
|
}
|
|
362
362
|
async updateAccountInfo(payload) {
|
|
363
363
|
try {
|
|
364
|
-
const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.bluesky || "string" === typeof input.bluesky) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io21(input.socialConnections)) && (undefined === input.publicSocialConnectionsToSet || Array.isArray(input.publicSocialConnectionsToSet) && input.publicSocialConnectionsToSet.every(elem => "object" === typeof elem && null !== elem && $io37(elem))); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io18(input.facebook)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io19(elem))) && (undefined === input.passwords || Array.isArray(input.passwords) && input.passwords.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io19 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io20 = input => "string" === typeof input.passwordHash && "string" === typeof input.salt && (undefined === input.password || "string" === typeof input.password) && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io21 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io22(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io23(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io24(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io25(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io26(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io27(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io28(input.reddit)) && (undefined === input.bluesky || "object" === typeof input.bluesky && null !== input.bluesky && $io29(input.bluesky)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io30(input.facebook)) && (undefined === input.googleCalendar || "object" === typeof input.googleCalendar && null !== input.googleCalendar && $io31(input.googleCalendar)) && (undefined === input.linkedIn || "object" === typeof input.linkedIn && null !== input.linkedIn && $io32(input.linkedIn)) && (undefined === input.shopify || "object" === typeof input.shopify && null !== input.shopify && $io33(input.shopify)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io34(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io35(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io36(input.slack)); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io30 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io31 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io32 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io33 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io34 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io35 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io36 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io37 = input => "string" === typeof input.appName && (undefined === input.toDelete || "boolean" === typeof input.toDelete); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
|
|
364
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.bluesky || "string" === typeof input.bluesky) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io21(input.socialConnections)) && (undefined === input.publicSocialConnectionsToSet || Array.isArray(input.publicSocialConnectionsToSet) && input.publicSocialConnectionsToSet.every(elem => "object" === typeof elem && null !== elem && $io38(elem))); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io18(input.facebook)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io19(elem))) && (undefined === input.passwords || Array.isArray(input.passwords) && input.passwords.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io19 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io20 = input => "string" === typeof input.passwordHash && "string" === typeof input.salt && (undefined === input.password || "string" === typeof input.password) && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io21 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io22(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io23(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io24(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io25(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io26(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io27(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io28(input.reddit)) && (undefined === input.meetup || "object" === typeof input.meetup && null !== input.meetup && $io29(input.meetup)) && (undefined === input.bluesky || "object" === typeof input.bluesky && null !== input.bluesky && $io30(input.bluesky)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io31(input.facebook)) && (undefined === input.googleCalendar || "object" === typeof input.googleCalendar && null !== input.googleCalendar && $io32(input.googleCalendar)) && (undefined === input.linkedIn || "object" === typeof input.linkedIn && null !== input.linkedIn && $io33(input.linkedIn)) && (undefined === input.shopify || "object" === typeof input.shopify && null !== input.shopify && $io34(input.shopify)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io35(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io36(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io37(input.slack)); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io30 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io31 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io32 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io33 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io34 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io35 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io36 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io37 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io38 = input => "string" === typeof input.appName && (undefined === input.toDelete || "boolean" === typeof input.toDelete); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
|
|
365
365
|
path: _path + ".discord",
|
|
366
366
|
expected: "(string | undefined)",
|
|
367
367
|
value: input.discord
|
|
@@ -491,11 +491,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
491
491
|
value: input.publicSocialConnectionsToSet
|
|
492
492
|
})) && input.publicSocialConnectionsToSet.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
493
493
|
path: _path + ".publicSocialConnectionsToSet[" + _index26 + "]",
|
|
494
|
-
expected: "__type.
|
|
494
|
+
expected: "__type.o29",
|
|
495
495
|
value: elem
|
|
496
|
-
})) && $
|
|
496
|
+
})) && $vo38(elem, _path + ".publicSocialConnectionsToSet[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
497
497
|
path: _path + ".publicSocialConnectionsToSet[" + _index26 + "]",
|
|
498
|
-
expected: "__type.
|
|
498
|
+
expected: "__type.o29",
|
|
499
499
|
value: elem
|
|
500
500
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
501
501
|
path: _path + ".publicSocialConnectionsToSet",
|
|
@@ -1045,69 +1045,77 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
1045
1045
|
path: _path + ".reddit",
|
|
1046
1046
|
expected: "(__type.o19 | undefined)",
|
|
1047
1047
|
value: input.reddit
|
|
1048
|
+
}), undefined === input.meetup || ("object" === typeof input.meetup && null !== input.meetup || $report(_exceptionable, {
|
|
1049
|
+
path: _path + ".meetup",
|
|
1050
|
+
expected: "(__type.o20 | undefined)",
|
|
1051
|
+
value: input.meetup
|
|
1052
|
+
})) && $vo29(input.meetup, _path + ".meetup", true && _exceptionable) || $report(_exceptionable, {
|
|
1053
|
+
path: _path + ".meetup",
|
|
1054
|
+
expected: "(__type.o20 | undefined)",
|
|
1055
|
+
value: input.meetup
|
|
1048
1056
|
}), undefined === input.bluesky || ("object" === typeof input.bluesky && null !== input.bluesky || $report(_exceptionable, {
|
|
1049
1057
|
path: _path + ".bluesky",
|
|
1050
|
-
expected: "(__type.
|
|
1058
|
+
expected: "(__type.o21 | undefined)",
|
|
1051
1059
|
value: input.bluesky
|
|
1052
|
-
})) && $
|
|
1060
|
+
})) && $vo30(input.bluesky, _path + ".bluesky", true && _exceptionable) || $report(_exceptionable, {
|
|
1053
1061
|
path: _path + ".bluesky",
|
|
1054
|
-
expected: "(__type.
|
|
1062
|
+
expected: "(__type.o21 | undefined)",
|
|
1055
1063
|
value: input.bluesky
|
|
1056
1064
|
}), undefined === input.facebook || ("object" === typeof input.facebook && null !== input.facebook || $report(_exceptionable, {
|
|
1057
1065
|
path: _path + ".facebook",
|
|
1058
|
-
expected: "(__type.
|
|
1066
|
+
expected: "(__type.o22 | undefined)",
|
|
1059
1067
|
value: input.facebook
|
|
1060
|
-
})) && $
|
|
1068
|
+
})) && $vo31(input.facebook, _path + ".facebook", true && _exceptionable) || $report(_exceptionable, {
|
|
1061
1069
|
path: _path + ".facebook",
|
|
1062
|
-
expected: "(__type.
|
|
1070
|
+
expected: "(__type.o22 | undefined)",
|
|
1063
1071
|
value: input.facebook
|
|
1064
1072
|
}), undefined === input.googleCalendar || ("object" === typeof input.googleCalendar && null !== input.googleCalendar || $report(_exceptionable, {
|
|
1065
1073
|
path: _path + ".googleCalendar",
|
|
1066
|
-
expected: "(__type.
|
|
1074
|
+
expected: "(__type.o23 | undefined)",
|
|
1067
1075
|
value: input.googleCalendar
|
|
1068
|
-
})) && $
|
|
1076
|
+
})) && $vo32(input.googleCalendar, _path + ".googleCalendar", true && _exceptionable) || $report(_exceptionable, {
|
|
1069
1077
|
path: _path + ".googleCalendar",
|
|
1070
|
-
expected: "(__type.
|
|
1078
|
+
expected: "(__type.o23 | undefined)",
|
|
1071
1079
|
value: input.googleCalendar
|
|
1072
1080
|
}), undefined === input.linkedIn || ("object" === typeof input.linkedIn && null !== input.linkedIn || $report(_exceptionable, {
|
|
1073
1081
|
path: _path + ".linkedIn",
|
|
1074
|
-
expected: "(__type.
|
|
1082
|
+
expected: "(__type.o24 | undefined)",
|
|
1075
1083
|
value: input.linkedIn
|
|
1076
|
-
})) && $
|
|
1084
|
+
})) && $vo33(input.linkedIn, _path + ".linkedIn", true && _exceptionable) || $report(_exceptionable, {
|
|
1077
1085
|
path: _path + ".linkedIn",
|
|
1078
|
-
expected: "(__type.
|
|
1086
|
+
expected: "(__type.o24 | undefined)",
|
|
1079
1087
|
value: input.linkedIn
|
|
1080
1088
|
}), undefined === input.shopify || ("object" === typeof input.shopify && null !== input.shopify || $report(_exceptionable, {
|
|
1081
1089
|
path: _path + ".shopify",
|
|
1082
|
-
expected: "(__type.
|
|
1090
|
+
expected: "(__type.o25 | undefined)",
|
|
1083
1091
|
value: input.shopify
|
|
1084
|
-
})) && $
|
|
1092
|
+
})) && $vo34(input.shopify, _path + ".shopify", true && _exceptionable) || $report(_exceptionable, {
|
|
1085
1093
|
path: _path + ".shopify",
|
|
1086
|
-
expected: "(__type.
|
|
1094
|
+
expected: "(__type.o25 | undefined)",
|
|
1087
1095
|
value: input.shopify
|
|
1088
1096
|
}), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
|
|
1089
1097
|
path: _path + ".telegram",
|
|
1090
|
-
expected: "(__type.
|
|
1098
|
+
expected: "(__type.o26 | undefined)",
|
|
1091
1099
|
value: input.telegram
|
|
1092
|
-
})) && $
|
|
1100
|
+
})) && $vo35(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
|
|
1093
1101
|
path: _path + ".telegram",
|
|
1094
|
-
expected: "(__type.
|
|
1102
|
+
expected: "(__type.o26 | undefined)",
|
|
1095
1103
|
value: input.telegram
|
|
1096
1104
|
}), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
|
|
1097
1105
|
path: _path + ".farcaster",
|
|
1098
|
-
expected: "(__type.
|
|
1106
|
+
expected: "(__type.o27 | undefined)",
|
|
1099
1107
|
value: input.farcaster
|
|
1100
|
-
})) && $
|
|
1108
|
+
})) && $vo36(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
|
|
1101
1109
|
path: _path + ".farcaster",
|
|
1102
|
-
expected: "(__type.
|
|
1110
|
+
expected: "(__type.o27 | undefined)",
|
|
1103
1111
|
value: input.farcaster
|
|
1104
1112
|
}), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || $report(_exceptionable, {
|
|
1105
1113
|
path: _path + ".slack",
|
|
1106
|
-
expected: "(__type.
|
|
1114
|
+
expected: "(__type.o28 | undefined)",
|
|
1107
1115
|
value: input.slack
|
|
1108
|
-
})) && $
|
|
1116
|
+
})) && $vo37(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
|
|
1109
1117
|
path: _path + ".slack",
|
|
1110
|
-
expected: "(__type.
|
|
1118
|
+
expected: "(__type.o28 | undefined)",
|
|
1111
1119
|
value: input.slack
|
|
1112
1120
|
})].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1113
1121
|
path: _path + ".username",
|
|
@@ -1293,7 +1301,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
1293
1301
|
path: _path + ".lastUpdated",
|
|
1294
1302
|
expected: "(bigint | number | string)",
|
|
1295
1303
|
value: input.lastUpdated
|
|
1296
|
-
})].every(flag => flag); const $vo37 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
1304
|
+
})].every(flag => flag); const $vo37 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1305
|
+
path: _path + ".username",
|
|
1306
|
+
expected: "string",
|
|
1307
|
+
value: input.username
|
|
1308
|
+
}), "string" === typeof input.id || $report(_exceptionable, {
|
|
1309
|
+
path: _path + ".id",
|
|
1310
|
+
expected: "string",
|
|
1311
|
+
value: input.id
|
|
1312
|
+
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
|
|
1313
|
+
path: _path + ".lastUpdated",
|
|
1314
|
+
expected: "(bigint | number | string)",
|
|
1315
|
+
value: input.lastUpdated
|
|
1316
|
+
})].every(flag => flag); const $vo38 = (input, _path, _exceptionable = true) => ["string" === typeof input.appName || $report(_exceptionable, {
|
|
1297
1317
|
path: _path + ".appName",
|
|
1298
1318
|
expected: "string",
|
|
1299
1319
|
value: input.appName
|
|
@@ -1383,9 +1403,9 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
1383
1403
|
}
|
|
1384
1404
|
async getBrowse(payload) {
|
|
1385
1405
|
try {
|
|
1386
|
-
const validateRes = (() => { const $
|
|
1406
|
+
const validateRes = (() => { const $iv1 = new Set(["badges", "attestations", "collections", "addressLists", "maps", "claims", "activity", "groups", "claimActivity", "pointsActivity"]); const $vv2 = new Set(["badges", "attestations", "collections", "addressLists", "maps", "claims", "activity", "groups", "claimActivity", "pointsActivity"]); const $io0 = input => true === $iv1.has(input.type) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && $io1(input.filters)); const $io1 = input => (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); const $vo0 = (input, _path, _exceptionable = true) => [true === $vv2.has(input.type) || $report(_exceptionable, {
|
|
1387
1407
|
path: _path + ".type",
|
|
1388
|
-
expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claimActivity\" | \"claims\" | \"collections\" | \"groups\" | \"maps\")",
|
|
1408
|
+
expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claimActivity\" | \"claims\" | \"collections\" | \"groups\" | \"maps\" | \"pointsActivity\")",
|
|
1389
1409
|
value: input.type
|
|
1390
1410
|
}), undefined === input.filters || ("object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) || $report(_exceptionable, {
|
|
1391
1411
|
path: _path + ".filters",
|
|
@@ -6106,7 +6126,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6106
6126
|
}
|
|
6107
6127
|
async signOut(payload) {
|
|
6108
6128
|
try {
|
|
6109
|
-
const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutBluesky || "boolean" === typeof input.signOutBluesky) && (undefined === input.signOutGoogleCalendar || "boolean" === typeof input.signOutGoogleCalendar) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack) && (undefined === input.signOutEmail || "boolean" === typeof input.signOutEmail) && (undefined === input.signOutFacebook || "boolean" === typeof input.signOutFacebook) && (undefined === input.signOutLinkedIn || "boolean" === typeof input.signOutLinkedIn) && (undefined === input.signOutShopify || "boolean" === typeof input.signOutShopify); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
6129
|
+
const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutMeetup || "boolean" === typeof input.signOutMeetup) && (undefined === input.signOutBluesky || "boolean" === typeof input.signOutBluesky) && (undefined === input.signOutGoogleCalendar || "boolean" === typeof input.signOutGoogleCalendar) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack) && (undefined === input.signOutEmail || "boolean" === typeof input.signOutEmail) && (undefined === input.signOutFacebook || "boolean" === typeof input.signOutFacebook) && (undefined === input.signOutLinkedIn || "boolean" === typeof input.signOutLinkedIn) && (undefined === input.signOutShopify || "boolean" === typeof input.signOutShopify); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
6110
6130
|
path: _path + ".signOutBlockin",
|
|
6111
6131
|
expected: "boolean",
|
|
6112
6132
|
value: input.signOutBlockin
|
|
@@ -6142,6 +6162,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
6142
6162
|
path: _path + ".signOutReddit",
|
|
6143
6163
|
expected: "(boolean | undefined)",
|
|
6144
6164
|
value: input.signOutReddit
|
|
6165
|
+
}), undefined === input.signOutMeetup || "boolean" === typeof input.signOutMeetup || $report(_exceptionable, {
|
|
6166
|
+
path: _path + ".signOutMeetup",
|
|
6167
|
+
expected: "(boolean | undefined)",
|
|
6168
|
+
value: input.signOutMeetup
|
|
6145
6169
|
}), undefined === input.signOutBluesky || "boolean" === typeof input.signOutBluesky || $report(_exceptionable, {
|
|
6146
6170
|
path: _path + ".signOutBluesky",
|
|
6147
6171
|
expected: "(boolean | undefined)",
|
|
@@ -7313,6 +7337,57 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
7313
7337
|
return Promise.reject(error);
|
|
7314
7338
|
}
|
|
7315
7339
|
}
|
|
7340
|
+
async getPointsActivity(payload) {
|
|
7341
|
+
try {
|
|
7342
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.groupId && "string" === typeof input.pageId && (undefined === input.bookmark || "string" === typeof input.bookmark); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.groupId || $report(_exceptionable, {
|
|
7343
|
+
path: _path + ".groupId",
|
|
7344
|
+
expected: "string",
|
|
7345
|
+
value: input.groupId
|
|
7346
|
+
}), "string" === typeof input.pageId || $report(_exceptionable, {
|
|
7347
|
+
path: _path + ".pageId",
|
|
7348
|
+
expected: "string",
|
|
7349
|
+
value: input.pageId
|
|
7350
|
+
}), undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
7351
|
+
path: _path + ".bookmark",
|
|
7352
|
+
expected: "(string | undefined)",
|
|
7353
|
+
value: input.bookmark
|
|
7354
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
7355
|
+
if (false === __is(input)) {
|
|
7356
|
+
errors = [];
|
|
7357
|
+
$report = typia_1.default.validate.report(errors);
|
|
7358
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
7359
|
+
path: _path + "",
|
|
7360
|
+
expected: "GetPointsActivityPayload",
|
|
7361
|
+
value: input
|
|
7362
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
7363
|
+
path: _path + "",
|
|
7364
|
+
expected: "GetPointsActivityPayload",
|
|
7365
|
+
value: input
|
|
7366
|
+
}))(input, "$input", true);
|
|
7367
|
+
const success = 0 === errors.length;
|
|
7368
|
+
return {
|
|
7369
|
+
success,
|
|
7370
|
+
errors,
|
|
7371
|
+
data: success ? input : undefined
|
|
7372
|
+
};
|
|
7373
|
+
}
|
|
7374
|
+
return {
|
|
7375
|
+
success: true,
|
|
7376
|
+
errors: [],
|
|
7377
|
+
data: input
|
|
7378
|
+
};
|
|
7379
|
+
}; })()(payload ?? {});
|
|
7380
|
+
if (!validateRes.success) {
|
|
7381
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7382
|
+
}
|
|
7383
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetPointsActivityRoute()}`, payload);
|
|
7384
|
+
return new requests_js_1.GetPointsActivitySuccessResponse(response.data);
|
|
7385
|
+
}
|
|
7386
|
+
catch (error) {
|
|
7387
|
+
await this.handleApiError(error);
|
|
7388
|
+
return Promise.reject(error);
|
|
7389
|
+
}
|
|
7390
|
+
}
|
|
7316
7391
|
async updateUserSeenActivity() {
|
|
7317
7392
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
7318
7393
|
}
|
|
@@ -7363,7 +7438,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7363
7438
|
}
|
|
7364
7439
|
async createPlugin(payload) {
|
|
7365
7440
|
try {
|
|
7366
|
-
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri) && (undefined === input.testerUri || "string" === typeof input.testerUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passFacebook || "boolean" === typeof input.passFacebook) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && (undefined === input.passShopify || "boolean" === typeof input.passShopify) && (undefined === input.passBluesky || "boolean" === typeof input.passBluesky) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
7441
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri) && (undefined === input.testerUri || "string" === typeof input.testerUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passMeetup || "boolean" === typeof input.passMeetup) && (undefined === input.passFacebook || "boolean" === typeof input.passFacebook) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && (undefined === input.passShopify || "boolean" === typeof input.passShopify) && (undefined === input.passBluesky || "boolean" === typeof input.passBluesky) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
7367
7442
|
path: _path + ".pluginId",
|
|
7368
7443
|
expected: "string",
|
|
7369
7444
|
value: input.pluginId
|
|
@@ -7699,6 +7774,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7699
7774
|
path: _path + ".passReddit",
|
|
7700
7775
|
expected: "(boolean | undefined)",
|
|
7701
7776
|
value: input.passReddit
|
|
7777
|
+
}), undefined === input.passMeetup || "boolean" === typeof input.passMeetup || $report(_exceptionable, {
|
|
7778
|
+
path: _path + ".passMeetup",
|
|
7779
|
+
expected: "(boolean | undefined)",
|
|
7780
|
+
value: input.passMeetup
|
|
7702
7781
|
}), undefined === input.passFacebook || "boolean" === typeof input.passFacebook || $report(_exceptionable, {
|
|
7703
7782
|
path: _path + ".passFacebook",
|
|
7704
7783
|
expected: "(boolean | undefined)",
|
|
@@ -7786,7 +7865,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7786
7865
|
}
|
|
7787
7866
|
async updatePlugin(payload) {
|
|
7788
7867
|
try {
|
|
7789
|
-
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io6(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io7 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri) && (undefined === input.testerUri || "string" === typeof input.testerUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passFacebook || "boolean" === typeof input.passFacebook) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && (undefined === input.passShopify || "boolean" === typeof input.passShopify) && (undefined === input.passBluesky || "boolean" === typeof input.passBluesky) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
7868
|
+
const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io6(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.hideFromDetailsDisplay || "boolean" === typeof input.hideFromDetailsDisplay) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io7 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri) && (undefined === input.testerUri || "string" === typeof input.testerUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passMeetup || "boolean" === typeof input.passMeetup) && (undefined === input.passFacebook || "boolean" === typeof input.passFacebook) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && (undefined === input.passShopify || "boolean" === typeof input.passShopify) && (undefined === input.passBluesky || "boolean" === typeof input.passBluesky) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)) && (undefined === input.requireSignIn || "boolean" === typeof input.requireSignIn) && (undefined === input.customDetailsDisplay || "string" === typeof input.customDetailsDisplay); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
7790
7869
|
path: _path + ".pluginId",
|
|
7791
7870
|
expected: "string",
|
|
7792
7871
|
value: input.pluginId
|
|
@@ -8158,6 +8237,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8158
8237
|
path: _path + ".passReddit",
|
|
8159
8238
|
expected: "(boolean | undefined)",
|
|
8160
8239
|
value: input.passReddit
|
|
8240
|
+
}), undefined === input.passMeetup || "boolean" === typeof input.passMeetup || $report(_exceptionable, {
|
|
8241
|
+
path: _path + ".passMeetup",
|
|
8242
|
+
expected: "(boolean | undefined)",
|
|
8243
|
+
value: input.passMeetup
|
|
8161
8244
|
}), undefined === input.passFacebook || "boolean" === typeof input.passFacebook || $report(_exceptionable, {
|
|
8162
8245
|
path: _path + ".passFacebook",
|
|
8163
8246
|
expected: "(boolean | undefined)",
|