bitbadgesjs-sdk 0.6.10 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts +8 -5
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +29 -6
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +50 -22
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts +6 -2
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.js +22 -3
- package/dist/cjs/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +12 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +18 -1
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +14 -1
- 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/collections.d.ts +1 -1
- package/dist/cjs/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +3 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +8 -5
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +31 -7
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +50 -22
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts +6 -2
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.js +24 -4
- package/dist/esm/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +12 -1
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +21 -0
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +14 -1
- 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/collections.d.ts +1 -1
- package/dist/esm/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +3 -1
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import type { iAddressList } from '../interfaces/badges/core.js';
|
|
|
5
5
|
import type { BaseBitBadgesApi, PaginationInfo } from './base.js';
|
|
6
6
|
import { EmptyResponseClass } from './base.js';
|
|
7
7
|
import { ListActivityDoc } from './docs/activity.js';
|
|
8
|
-
import { AddressListDoc } from './docs/docs.js';
|
|
9
|
-
import type { ClaimIntegrationPluginType, ClaimReward, IntegrationPluginDetails, iAddressListDoc, iClaimDetails, iListActivityDoc } from './docs/interfaces.js';
|
|
8
|
+
import { AddressListDoc, UtilityListingDoc } from './docs/docs.js';
|
|
9
|
+
import type { ClaimIntegrationPluginType, ClaimReward, IntegrationPluginDetails, iAddressListDoc, iClaimDetails, iListActivityDoc, iUtilityListingDoc } from './docs/interfaces.js';
|
|
10
10
|
import type { iMetadata } from './metadata/metadata.js';
|
|
11
11
|
import { Metadata } from './metadata/metadata.js';
|
|
12
12
|
import { ClaimDetails } from '../core/approvals.js';
|
|
@@ -21,6 +21,7 @@ export interface iBitBadgesAddressList<T extends NumberType> extends iAddressLis
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
claims: iClaimDetails<T>[];
|
|
24
|
+
listings?: iUtilityListingDoc<T>[];
|
|
24
25
|
}
|
|
25
26
|
export declare class BitBadgesAddressList<T extends NumberType> extends AddressListDoc<T> implements iBitBadgesAddressList<T>, CustomType<BitBadgesAddressList<T>> {
|
|
26
27
|
metadata?: Metadata<T>;
|
|
@@ -32,6 +33,7 @@ export declare class BitBadgesAddressList<T extends NumberType> extends AddressL
|
|
|
32
33
|
pagination: PaginationInfo;
|
|
33
34
|
};
|
|
34
35
|
};
|
|
36
|
+
listings?: UtilityListingDoc<T>[];
|
|
35
37
|
claims: ClaimDetails<T>[];
|
|
36
38
|
constructor(data: iBitBadgesAddressList<T>);
|
|
37
39
|
getNumberFieldNames(): string[];
|
|
@@ -56,10 +58,11 @@ export declare class BitBadgesAddressList<T extends NumberType> extends AddressL
|
|
|
56
58
|
viewHasMore(viewId: string): boolean;
|
|
57
59
|
getViewPagination(viewId: string): PaginationInfo;
|
|
58
60
|
getViewBookmark(viewId: string): string;
|
|
59
|
-
fetchNextForView(api: BaseBitBadgesApi<T>, viewType: 'listActivity', viewId: string): Promise<void>;
|
|
61
|
+
fetchNextForView(api: BaseBitBadgesApi<T>, viewType: 'listActivity' | 'listings', viewId: string): Promise<void>;
|
|
60
62
|
fetchAllForView(api: BaseBitBadgesApi<T>, viewType: 'listActivity', viewId: string): Promise<void>;
|
|
61
|
-
getView(viewType: 'listActivity', viewId: string): ListActivityDoc<T>[];
|
|
63
|
+
getView(viewType: 'listActivity' | 'listings', viewId: string): ListActivityDoc<T>[] | UtilityListingDoc<T>[];
|
|
62
64
|
getActivityView(viewId: string): ListActivityDoc<T>[];
|
|
65
|
+
getListingsView(viewId: string): UtilityListingDoc<T>[];
|
|
63
66
|
isStoredOffChain(): boolean;
|
|
64
67
|
updateWithNewResponse(newResponse: BitBadgesAddressList<T>, forceful?: boolean): void;
|
|
65
68
|
static GetAddressLists<T extends NumberType>(api: BaseBitBadgesApi<T>, payload: GetAddressListsPayload): Promise<GetAddressListsSuccessResponse<T>>;
|
|
@@ -72,7 +75,7 @@ export interface GetAddressListsPayload {
|
|
|
72
75
|
listId: string;
|
|
73
76
|
viewsToFetch?: {
|
|
74
77
|
viewId: string;
|
|
75
|
-
viewType: 'listActivity';
|
|
78
|
+
viewType: 'listActivity' | 'listings';
|
|
76
79
|
bookmark: string;
|
|
77
80
|
}[];
|
|
78
81
|
fetchPrivateParams?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitBadgesAddressList.d.ts","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAsE,MAAM,kBAAkB,CAAC;AAC3H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"BitBadgesAddressList.d.ts","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAsE,MAAM,kBAAkB,CAAC;AAC3H,OAAO,KAAK,EAAE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C,EAAE,MAAM,CAAC;QACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;CACL,CAAC;AAKF,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU;IAC7D,YAAY,EAAE,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC7C;AAKD,MAAM,WAAW,kCAAkC;CAAG;AAItD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG;AAK5E,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU,CAAE,SAAQ,yBAAyB,CAAC,CAAC,CAAC;CAAG;AAKxG,MAAM,WAAW,kCAAkC;CAAG;AAKtD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG;AAK5E,MAAM,WAAW,yBAAyB;IAIxC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAID,MAAM,WAAW,kCAAkC;CAAG;AAItD,qBAAa,iCAAkC,SAAQ,kBAAkB;CAAG"}
|
|
@@ -19,6 +19,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
19
19
|
this.listsActivity = data.listsActivity.map((activity) => new activity_js_1.ListActivityDoc(activity));
|
|
20
20
|
this.views = data.views;
|
|
21
21
|
this.claims = data.claims.map((claim) => new approvals_js_1.ClaimDetails(claim));
|
|
22
|
+
this.listings = data.listings?.map((listing) => new docs_js_1.UtilityListingDoc(listing));
|
|
22
23
|
}
|
|
23
24
|
getNumberFieldNames() {
|
|
24
25
|
return [...super.getNumberFieldNames(), 'createdBlock', 'lastUpdated'];
|
|
@@ -69,15 +70,21 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
69
70
|
const list = res.addressLists[0];
|
|
70
71
|
if (!list)
|
|
71
72
|
throw new Error('No list found');
|
|
73
|
+
const type = viewType === 'listings' ? 'listings' : 'listActivity';
|
|
72
74
|
if (!this.views[viewId]) {
|
|
73
75
|
this.views[viewId] = {
|
|
74
76
|
ids: [...list.views[viewId].ids],
|
|
75
|
-
type:
|
|
77
|
+
type: type,
|
|
76
78
|
pagination: list.views[viewId].pagination
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
81
|
else {
|
|
80
|
-
|
|
82
|
+
if (viewType === 'listings') {
|
|
83
|
+
this.listings = [...(this.listings || []), ...(list.listings || [])];
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
this.listsActivity.push(...list.listsActivity);
|
|
87
|
+
}
|
|
81
88
|
this.views[viewId].ids.push(...list.views[viewId].ids);
|
|
82
89
|
this.views[viewId].pagination = list.views[viewId].pagination;
|
|
83
90
|
}
|
|
@@ -89,13 +96,18 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
getView(viewType, viewId) {
|
|
92
|
-
return this.getActivityView(viewId);
|
|
99
|
+
return viewType === 'listActivity' ? this.getActivityView(viewId) : this.getListingsView(viewId);
|
|
93
100
|
}
|
|
94
101
|
getActivityView(viewId) {
|
|
95
102
|
return (this.views[viewId]?.ids.map((x) => {
|
|
96
103
|
return this.listsActivity.find((y) => y._docId === x);
|
|
97
104
|
}) ?? []);
|
|
98
105
|
}
|
|
106
|
+
getListingsView(viewId) {
|
|
107
|
+
return (this.views[viewId]?.ids.map((x) => {
|
|
108
|
+
return this.listings?.find((y) => y._docId === x);
|
|
109
|
+
}) ?? []);
|
|
110
|
+
}
|
|
99
111
|
isStoredOffChain() {
|
|
100
112
|
return this._docId.includes('_');
|
|
101
113
|
}
|
|
@@ -113,7 +125,7 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
113
125
|
}
|
|
114
126
|
static async GetAddressLists(api, payload) {
|
|
115
127
|
try {
|
|
116
|
-
const validateRes = (() => { const $io0 = input => Array.isArray(input.listsToFetch) && input.listsToFetch.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (undefined === input.viewsToFetch || Array.isArray(input.viewsToFetch) && input.viewsToFetch.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams); const $io2 = input => "string" === typeof input.viewId && "listActivity" === input.viewType && "string" === typeof input.bookmark; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.listsToFetch) || $report(_exceptionable, {
|
|
128
|
+
const validateRes = (() => { const $io0 = input => Array.isArray(input.listsToFetch) && input.listsToFetch.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.listId && (undefined === input.viewsToFetch || Array.isArray(input.viewsToFetch) && input.viewsToFetch.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams); const $io2 = input => "string" === typeof input.viewId && ("listActivity" === input.viewType || "listings" === input.viewType) && "string" === typeof input.bookmark; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.listsToFetch) || $report(_exceptionable, {
|
|
117
129
|
path: _path + ".listsToFetch",
|
|
118
130
|
expected: "Array<__type>",
|
|
119
131
|
value: input.listsToFetch
|
|
@@ -157,9 +169,9 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
157
169
|
path: _path + ".viewId",
|
|
158
170
|
expected: "string",
|
|
159
171
|
value: input.viewId
|
|
160
|
-
}), "listActivity" === input.viewType || $report(_exceptionable, {
|
|
172
|
+
}), "listActivity" === input.viewType || "listings" === input.viewType || $report(_exceptionable, {
|
|
161
173
|
path: _path + ".viewType",
|
|
162
|
-
expected: "\"listActivity\"",
|
|
174
|
+
expected: "(\"listActivity\" | \"listings\")",
|
|
163
175
|
value: input.viewType
|
|
164
176
|
}), "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
165
177
|
path: _path + ".bookmark",
|
|
@@ -981,10 +993,21 @@ const updateAddressListWithResponse = (oldList, newResponse) => {
|
|
|
981
993
|
activity.push(newActivity);
|
|
982
994
|
}
|
|
983
995
|
}
|
|
996
|
+
const listings = cachedList.listings || [];
|
|
997
|
+
for (const newListing of newCollection.listings || []) {
|
|
998
|
+
const existingListing = listings.findIndex((x) => x._docId === newListing._docId);
|
|
999
|
+
if (existingListing !== -1) {
|
|
1000
|
+
listings[existingListing] = newListing;
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
listings.push(newListing);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
984
1006
|
cachedList = new BitBadgesAddressList({
|
|
985
1007
|
...cachedList,
|
|
986
1008
|
...newCollection,
|
|
987
1009
|
listsActivity: activity,
|
|
1010
|
+
listings: listings,
|
|
988
1011
|
views: newViews
|
|
989
1012
|
});
|
|
990
1013
|
return cachedList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitBadgesAddressList.js","sourceRoot":"","sources":["../../../src/api-indexer/BitBadgesAddressList.ts"],"names":[],"mappings":";;;;;;AACA,8CAA2H;AAG3H,kDAA0B;AAE1B,uCAA+C;AAC/C,oDAAqD;AACrD,4CAAgD;AAUhD,wDAAkD;AAClD,oDAA0D;AAC1D,sDAAmD;AA2BnD,MAAa,oBACX,SAAQ,wBAAiB;IAczB,YAAY,IAA8B;QACxC,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,6BAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IA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+BF,MAAa,8BACX,SAAQ,6BAAsD;IAK9D,YAAY,IAAwC;QAClD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAChI,CAAC;IAED,OAAO,CAAuB,eAAwC,EAAE,OAAwB;QAC9F,OAAO,IAAA,sDAA4C,EAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAsC,CAAC;IAC3H,CAAC;CACF;AAdD,wEAcC;AAoCD,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E;AAe5E,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E;AAkB5E,MAAa,iCAAkC,SAAQ,4BAAkB;CAAG;AAA5E,8EAA4E"}
|
|
@@ -361,7 +361,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
361
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 && $io39(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.mailchimp || "object" === typeof input.mailchimp && null !== input.mailchimp && $io31(input.mailchimp)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io32(input.facebook)) && (undefined === input.googleCalendar || "object" === typeof input.googleCalendar && null !== input.googleCalendar && $io33(input.googleCalendar)) && (undefined === input.linkedIn || "object" === typeof input.linkedIn && null !== input.linkedIn && $io34(input.linkedIn)) && (undefined === input.shopify || "object" === typeof input.shopify && null !== input.shopify && $io35(input.shopify)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io36(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io37(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io38(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.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io39 = 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 && $io40(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.mailchimp || "object" === typeof input.mailchimp && null !== input.mailchimp && $io31(input.mailchimp)) && (undefined === input.facebook || "object" === typeof input.facebook && null !== input.facebook && $io32(input.facebook)) && (undefined === input.googleCalendar || "object" === typeof input.googleCalendar && null !== input.googleCalendar && $io33(input.googleCalendar)) && (undefined === input.youtube || "object" === typeof input.youtube && null !== input.youtube && $io34(input.youtube)) && (undefined === input.linkedIn || "object" === typeof input.linkedIn && null !== input.linkedIn && $io35(input.linkedIn)) && (undefined === input.shopify || "object" === typeof input.shopify && null !== input.shopify && $io36(input.shopify)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io37(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io38(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io39(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.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io39 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io40 = 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.o31",
|
|
495
495
|
value: elem
|
|
496
|
-
})) && $
|
|
496
|
+
})) && $vo40(elem, _path + ".publicSocialConnectionsToSet[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
497
497
|
path: _path + ".publicSocialConnectionsToSet[" + _index26 + "]",
|
|
498
|
-
expected: "__type.
|
|
498
|
+
expected: "__type.o31",
|
|
499
499
|
value: elem
|
|
500
500
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
501
501
|
path: _path + ".publicSocialConnectionsToSet",
|
|
@@ -1085,45 +1085,53 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
1085
1085
|
path: _path + ".googleCalendar",
|
|
1086
1086
|
expected: "(__type.o24 | undefined)",
|
|
1087
1087
|
value: input.googleCalendar
|
|
1088
|
+
}), undefined === input.youtube || ("object" === typeof input.youtube && null !== input.youtube || $report(_exceptionable, {
|
|
1089
|
+
path: _path + ".youtube",
|
|
1090
|
+
expected: "(__type.o25 | undefined)",
|
|
1091
|
+
value: input.youtube
|
|
1092
|
+
})) && $vo34(input.youtube, _path + ".youtube", true && _exceptionable) || $report(_exceptionable, {
|
|
1093
|
+
path: _path + ".youtube",
|
|
1094
|
+
expected: "(__type.o25 | undefined)",
|
|
1095
|
+
value: input.youtube
|
|
1088
1096
|
}), undefined === input.linkedIn || ("object" === typeof input.linkedIn && null !== input.linkedIn || $report(_exceptionable, {
|
|
1089
1097
|
path: _path + ".linkedIn",
|
|
1090
|
-
expected: "(__type.
|
|
1098
|
+
expected: "(__type.o26 | undefined)",
|
|
1091
1099
|
value: input.linkedIn
|
|
1092
|
-
})) && $
|
|
1100
|
+
})) && $vo35(input.linkedIn, _path + ".linkedIn", true && _exceptionable) || $report(_exceptionable, {
|
|
1093
1101
|
path: _path + ".linkedIn",
|
|
1094
|
-
expected: "(__type.
|
|
1102
|
+
expected: "(__type.o26 | undefined)",
|
|
1095
1103
|
value: input.linkedIn
|
|
1096
1104
|
}), undefined === input.shopify || ("object" === typeof input.shopify && null !== input.shopify || $report(_exceptionable, {
|
|
1097
1105
|
path: _path + ".shopify",
|
|
1098
|
-
expected: "(__type.
|
|
1106
|
+
expected: "(__type.o27 | undefined)",
|
|
1099
1107
|
value: input.shopify
|
|
1100
|
-
})) && $
|
|
1108
|
+
})) && $vo36(input.shopify, _path + ".shopify", true && _exceptionable) || $report(_exceptionable, {
|
|
1101
1109
|
path: _path + ".shopify",
|
|
1102
|
-
expected: "(__type.
|
|
1110
|
+
expected: "(__type.o27 | undefined)",
|
|
1103
1111
|
value: input.shopify
|
|
1104
1112
|
}), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
|
|
1105
1113
|
path: _path + ".telegram",
|
|
1106
|
-
expected: "(__type.
|
|
1114
|
+
expected: "(__type.o28 | undefined)",
|
|
1107
1115
|
value: input.telegram
|
|
1108
|
-
})) && $
|
|
1116
|
+
})) && $vo37(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
|
|
1109
1117
|
path: _path + ".telegram",
|
|
1110
|
-
expected: "(__type.
|
|
1118
|
+
expected: "(__type.o28 | undefined)",
|
|
1111
1119
|
value: input.telegram
|
|
1112
1120
|
}), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
|
|
1113
1121
|
path: _path + ".farcaster",
|
|
1114
|
-
expected: "(__type.
|
|
1122
|
+
expected: "(__type.o29 | undefined)",
|
|
1115
1123
|
value: input.farcaster
|
|
1116
|
-
})) && $
|
|
1124
|
+
})) && $vo38(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
|
|
1117
1125
|
path: _path + ".farcaster",
|
|
1118
|
-
expected: "(__type.
|
|
1126
|
+
expected: "(__type.o29 | undefined)",
|
|
1119
1127
|
value: input.farcaster
|
|
1120
1128
|
}), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || $report(_exceptionable, {
|
|
1121
1129
|
path: _path + ".slack",
|
|
1122
|
-
expected: "(__type.
|
|
1130
|
+
expected: "(__type.o30 | undefined)",
|
|
1123
1131
|
value: input.slack
|
|
1124
|
-
})) && $
|
|
1132
|
+
})) && $vo39(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
|
|
1125
1133
|
path: _path + ".slack",
|
|
1126
|
-
expected: "(__type.
|
|
1134
|
+
expected: "(__type.o30 | undefined)",
|
|
1127
1135
|
value: input.slack
|
|
1128
1136
|
})].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1129
1137
|
path: _path + ".username",
|
|
@@ -1333,7 +1341,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
|
|
|
1333
1341
|
path: _path + ".lastUpdated",
|
|
1334
1342
|
expected: "(bigint | number | string)",
|
|
1335
1343
|
value: input.lastUpdated
|
|
1336
|
-
})].every(flag => flag); const $vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
1344
|
+
})].every(flag => flag); const $vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1345
|
+
path: _path + ".username",
|
|
1346
|
+
expected: "string",
|
|
1347
|
+
value: input.username
|
|
1348
|
+
}), "string" === typeof input.id || $report(_exceptionable, {
|
|
1349
|
+
path: _path + ".id",
|
|
1350
|
+
expected: "string",
|
|
1351
|
+
value: input.id
|
|
1352
|
+
}), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
|
|
1353
|
+
path: _path + ".lastUpdated",
|
|
1354
|
+
expected: "(bigint | number | string)",
|
|
1355
|
+
value: input.lastUpdated
|
|
1356
|
+
})].every(flag => flag); const $vo40 = (input, _path, _exceptionable = true) => ["string" === typeof input.appName || $report(_exceptionable, {
|
|
1337
1357
|
path: _path + ".appName",
|
|
1338
1358
|
expected: "string",
|
|
1339
1359
|
value: input.appName
|
|
@@ -7365,7 +7385,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7365
7385
|
}
|
|
7366
7386
|
async createPlugin(payload) {
|
|
7367
7387
|
try {
|
|
7368
|
-
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, {
|
|
7388
|
+
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.passYoutube || "boolean" === typeof input.passYoutube) && (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, {
|
|
7369
7389
|
path: _path + ".pluginId",
|
|
7370
7390
|
expected: "string",
|
|
7371
7391
|
value: input.pluginId
|
|
@@ -7685,6 +7705,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7685
7705
|
path: _path + ".passGoogle",
|
|
7686
7706
|
expected: "(boolean | undefined)",
|
|
7687
7707
|
value: input.passGoogle
|
|
7708
|
+
}), undefined === input.passYoutube || "boolean" === typeof input.passYoutube || $report(_exceptionable, {
|
|
7709
|
+
path: _path + ".passYoutube",
|
|
7710
|
+
expected: "(boolean | undefined)",
|
|
7711
|
+
value: input.passYoutube
|
|
7688
7712
|
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || $report(_exceptionable, {
|
|
7689
7713
|
path: _path + ".passGithub",
|
|
7690
7714
|
expected: "(boolean | undefined)",
|
|
@@ -7792,7 +7816,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7792
7816
|
}
|
|
7793
7817
|
async updatePlugin(payload) {
|
|
7794
7818
|
try {
|
|
7795
|
-
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, {
|
|
7819
|
+
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.passYoutube || "boolean" === typeof input.passYoutube) && (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, {
|
|
7796
7820
|
path: _path + ".pluginId",
|
|
7797
7821
|
expected: "string",
|
|
7798
7822
|
value: input.pluginId
|
|
@@ -8148,6 +8172,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8148
8172
|
path: _path + ".passGoogle",
|
|
8149
8173
|
expected: "(boolean | undefined)",
|
|
8150
8174
|
value: input.passGoogle
|
|
8175
|
+
}), undefined === input.passYoutube || "boolean" === typeof input.passYoutube || $report(_exceptionable, {
|
|
8176
|
+
path: _path + ".passYoutube",
|
|
8177
|
+
expected: "(boolean | undefined)",
|
|
8178
|
+
value: input.passYoutube
|
|
8151
8179
|
}), undefined === input.passGithub || "boolean" === typeof input.passGithub || $report(_exceptionable, {
|
|
8152
8180
|
path: _path + ".passGithub",
|
|
8153
8181
|
expected: "(boolean | undefined)",
|