@wix/members 1.0.87 → 1.0.88
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/package.json +5 -6
- package/type-bundles/context.bundle.d.ts +142 -58
- package/type-bundles/index.bundle.d.ts +110 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/members",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/members_authentication": "1.0.
|
|
22
|
-
"@wix/members_badges": "1.0.
|
|
23
|
-
"@wix/members_members": "1.0.
|
|
21
|
+
"@wix/members_authentication": "1.0.17",
|
|
22
|
+
"@wix/members_badges": "1.0.25",
|
|
23
|
+
"@wix/members_members": "1.0.31"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
27
26
|
"glob": "^10.4.1",
|
|
28
27
|
"rollup": "^4.18.0",
|
|
29
28
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -45,5 +44,5 @@
|
|
|
45
44
|
"fqdn": ""
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "829837d34a9c7989cd18b8905a5cb1e3576d598de1586c89b00d305d"
|
|
49
48
|
}
|
|
@@ -304,80 +304,88 @@ interface ListMembersByBadgeOptions {
|
|
|
304
304
|
paging?: Paging$1;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
308
|
-
interface HttpClient {
|
|
309
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
307
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
308
|
+
interface HttpClient$2 {
|
|
309
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
310
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
310
311
|
}
|
|
311
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
312
|
-
type HttpResponse<T = any> = {
|
|
312
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
313
|
+
type HttpResponse$2<T = any> = {
|
|
313
314
|
data: T;
|
|
314
315
|
status: number;
|
|
315
316
|
statusText: string;
|
|
316
317
|
headers: any;
|
|
317
318
|
request?: any;
|
|
318
319
|
};
|
|
319
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
320
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
320
321
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
321
322
|
url: string;
|
|
322
323
|
data?: Data;
|
|
323
324
|
params?: URLSearchParams;
|
|
324
|
-
} & APIMetadata;
|
|
325
|
-
type APIMetadata = {
|
|
325
|
+
} & APIMetadata$2;
|
|
326
|
+
type APIMetadata$2 = {
|
|
326
327
|
methodFqn?: string;
|
|
327
328
|
entityFqdn?: string;
|
|
328
329
|
packageName?: string;
|
|
329
330
|
};
|
|
330
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
331
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
331
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
332
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
332
333
|
__type: 'event-definition';
|
|
333
334
|
type: Type;
|
|
334
335
|
isDomainEvent?: boolean;
|
|
335
|
-
transformations?: unknown;
|
|
336
|
+
transformations?: (envelope: unknown) => Payload;
|
|
336
337
|
__payload: Payload;
|
|
337
338
|
};
|
|
338
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
339
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
340
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
339
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
340
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
341
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
342
|
+
|
|
343
|
+
declare global {
|
|
344
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
345
|
+
interface SymbolConstructor {
|
|
346
|
+
readonly observable: symbol;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
341
349
|
|
|
342
|
-
declare function createBadge$1(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
|
|
350
|
+
declare function createBadge$1(httpClient: HttpClient$2): (badge: Badge) => Promise<Badge & {
|
|
343
351
|
_id: string;
|
|
344
352
|
}>;
|
|
345
|
-
declare function updateBadge$1(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
353
|
+
declare function updateBadge$1(httpClient: HttpClient$2): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
346
354
|
_id: string;
|
|
347
355
|
}>;
|
|
348
|
-
declare function listBadges$1(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
349
|
-
declare function getBadge$1(httpClient: HttpClient): (_id: string) => Promise<Badge & {
|
|
356
|
+
declare function listBadges$1(httpClient: HttpClient$2): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
357
|
+
declare function getBadge$1(httpClient: HttpClient$2): (_id: string) => Promise<Badge & {
|
|
350
358
|
_id: string;
|
|
351
359
|
}>;
|
|
352
|
-
declare function deleteBadge$1(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
353
|
-
declare function assignBadge$1(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
354
|
-
declare function unassignBadge$1(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<void>;
|
|
355
|
-
declare function listMembersByBadge$1(httpClient: HttpClient): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$1 & ListMembersResponseNonNullableFields$1>;
|
|
356
|
-
declare function listBadgesPerMember$1(httpClient: HttpClient): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
357
|
-
declare function getMemberCountsPerBadge$1(httpClient: HttpClient): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
358
|
-
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
359
|
-
declare const onBadgeCreated$1: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
360
|
-
declare const onBadgeUpdated$1: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
361
|
-
declare const onBadgeDeleted$1: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
362
|
-
declare const onBadgeAssigned$1: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
363
|
-
declare const onBadgeUnassigned$1: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
360
|
+
declare function deleteBadge$1(httpClient: HttpClient$2): (_id: string) => Promise<void>;
|
|
361
|
+
declare function assignBadge$1(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
362
|
+
declare function unassignBadge$1(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<void>;
|
|
363
|
+
declare function listMembersByBadge$1(httpClient: HttpClient$2): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$1 & ListMembersResponseNonNullableFields$1>;
|
|
364
|
+
declare function listBadgesPerMember$1(httpClient: HttpClient$2): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
365
|
+
declare function getMemberCountsPerBadge$1(httpClient: HttpClient$2): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
366
|
+
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient$2): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
367
|
+
declare const onBadgeCreated$1: EventDefinition$1<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
368
|
+
declare const onBadgeUpdated$1: EventDefinition$1<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
369
|
+
declare const onBadgeDeleted$1: EventDefinition$1<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
370
|
+
declare const onBadgeAssigned$1: EventDefinition$1<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
371
|
+
declare const onBadgeUnassigned$1: EventDefinition$1<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
364
372
|
|
|
365
|
-
declare const createBadge: BuildRESTFunction<typeof createBadge$1>;
|
|
366
|
-
declare const updateBadge: BuildRESTFunction<typeof updateBadge$1>;
|
|
367
|
-
declare const listBadges: BuildRESTFunction<typeof listBadges$1>;
|
|
368
|
-
declare const getBadge: BuildRESTFunction<typeof getBadge$1>;
|
|
369
|
-
declare const deleteBadge: BuildRESTFunction<typeof deleteBadge$1>;
|
|
370
|
-
declare const assignBadge: BuildRESTFunction<typeof assignBadge$1>;
|
|
371
|
-
declare const unassignBadge: BuildRESTFunction<typeof unassignBadge$1>;
|
|
372
|
-
declare const listMembersByBadge: BuildRESTFunction<typeof listMembersByBadge$1>;
|
|
373
|
-
declare const listBadgesPerMember: BuildRESTFunction<typeof listBadgesPerMember$1>;
|
|
374
|
-
declare const getMemberCountsPerBadge: BuildRESTFunction<typeof getMemberCountsPerBadge$1>;
|
|
375
|
-
declare const updateBadgesDisplayOrder: BuildRESTFunction<typeof updateBadgesDisplayOrder$1>;
|
|
376
|
-
declare const onBadgeCreated: BuildEventDefinition<typeof onBadgeCreated$1>;
|
|
377
|
-
declare const onBadgeUpdated: BuildEventDefinition<typeof onBadgeUpdated$1>;
|
|
378
|
-
declare const onBadgeDeleted: BuildEventDefinition<typeof onBadgeDeleted$1>;
|
|
379
|
-
declare const onBadgeAssigned: BuildEventDefinition<typeof onBadgeAssigned$1>;
|
|
380
|
-
declare const onBadgeUnassigned: BuildEventDefinition<typeof onBadgeUnassigned$1>;
|
|
373
|
+
declare const createBadge: BuildRESTFunction$2<typeof createBadge$1>;
|
|
374
|
+
declare const updateBadge: BuildRESTFunction$2<typeof updateBadge$1>;
|
|
375
|
+
declare const listBadges: BuildRESTFunction$2<typeof listBadges$1>;
|
|
376
|
+
declare const getBadge: BuildRESTFunction$2<typeof getBadge$1>;
|
|
377
|
+
declare const deleteBadge: BuildRESTFunction$2<typeof deleteBadge$1>;
|
|
378
|
+
declare const assignBadge: BuildRESTFunction$2<typeof assignBadge$1>;
|
|
379
|
+
declare const unassignBadge: BuildRESTFunction$2<typeof unassignBadge$1>;
|
|
380
|
+
declare const listMembersByBadge: BuildRESTFunction$2<typeof listMembersByBadge$1>;
|
|
381
|
+
declare const listBadgesPerMember: BuildRESTFunction$2<typeof listBadgesPerMember$1>;
|
|
382
|
+
declare const getMemberCountsPerBadge: BuildRESTFunction$2<typeof getMemberCountsPerBadge$1>;
|
|
383
|
+
declare const updateBadgesDisplayOrder: BuildRESTFunction$2<typeof updateBadgesDisplayOrder$1>;
|
|
384
|
+
declare const onBadgeCreated: BuildEventDefinition$1<typeof onBadgeCreated$1>;
|
|
385
|
+
declare const onBadgeUpdated: BuildEventDefinition$1<typeof onBadgeUpdated$1>;
|
|
386
|
+
declare const onBadgeDeleted: BuildEventDefinition$1<typeof onBadgeDeleted$1>;
|
|
387
|
+
declare const onBadgeAssigned: BuildEventDefinition$1<typeof onBadgeAssigned$1>;
|
|
388
|
+
declare const onBadgeUnassigned: BuildEventDefinition$1<typeof onBadgeUnassigned$1>;
|
|
381
389
|
|
|
382
390
|
declare const context$2_assignBadge: typeof assignBadge;
|
|
383
391
|
declare const context$2_createBadge: typeof createBadge;
|
|
@@ -826,19 +834,52 @@ interface SendSetPasswordEmailOptions {
|
|
|
826
834
|
hideIgnoreMessage?: boolean;
|
|
827
835
|
}
|
|
828
836
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
837
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
838
|
+
interface HttpClient$1 {
|
|
839
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
840
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
841
|
+
}
|
|
842
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
843
|
+
type HttpResponse$1<T = any> = {
|
|
844
|
+
data: T;
|
|
845
|
+
status: number;
|
|
846
|
+
statusText: string;
|
|
847
|
+
headers: any;
|
|
848
|
+
request?: any;
|
|
849
|
+
};
|
|
850
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
851
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
852
|
+
url: string;
|
|
853
|
+
data?: Data;
|
|
854
|
+
params?: URLSearchParams;
|
|
855
|
+
} & APIMetadata$1;
|
|
856
|
+
type APIMetadata$1 = {
|
|
857
|
+
methodFqn?: string;
|
|
858
|
+
entityFqdn?: string;
|
|
859
|
+
packageName?: string;
|
|
860
|
+
};
|
|
861
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
862
|
+
|
|
863
|
+
declare global {
|
|
864
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
865
|
+
interface SymbolConstructor {
|
|
866
|
+
readonly observable: symbol;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
declare function changeLoginEmail$1(httpClient: HttpClient$1): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
871
|
+
declare function approve$1(httpClient: HttpClient$1): (options?: ApproveOptions) => Promise<ApproveMemberResponse>;
|
|
872
|
+
declare function block$1(httpClient: HttpClient$1): (options?: BlockOptions) => Promise<void>;
|
|
873
|
+
declare function register$1(httpClient: HttpClient$1): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
874
|
+
declare function login$1(httpClient: HttpClient$1): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
875
|
+
declare function sendSetPasswordEmail$1(httpClient: HttpClient$1): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
835
876
|
|
|
836
|
-
declare const changeLoginEmail: BuildRESTFunction<typeof changeLoginEmail$1>;
|
|
837
|
-
declare const approve: BuildRESTFunction<typeof approve$1>;
|
|
838
|
-
declare const block: BuildRESTFunction<typeof block$1>;
|
|
839
|
-
declare const register: BuildRESTFunction<typeof register$1>;
|
|
840
|
-
declare const login: BuildRESTFunction<typeof login$1>;
|
|
841
|
-
declare const sendSetPasswordEmail: BuildRESTFunction<typeof sendSetPasswordEmail$1>;
|
|
877
|
+
declare const changeLoginEmail: BuildRESTFunction$1<typeof changeLoginEmail$1>;
|
|
878
|
+
declare const approve: BuildRESTFunction$1<typeof approve$1>;
|
|
879
|
+
declare const block: BuildRESTFunction$1<typeof block$1>;
|
|
880
|
+
declare const register: BuildRESTFunction$1<typeof register$1>;
|
|
881
|
+
declare const login: BuildRESTFunction$1<typeof login$1>;
|
|
882
|
+
declare const sendSetPasswordEmail: BuildRESTFunction$1<typeof sendSetPasswordEmail$1>;
|
|
842
883
|
|
|
843
884
|
declare const context$1_approve: typeof approve;
|
|
844
885
|
declare const context$1_block: typeof block;
|
|
@@ -1676,6 +1717,49 @@ interface UpdateMember {
|
|
|
1676
1717
|
lastLoginDate?: Date;
|
|
1677
1718
|
}
|
|
1678
1719
|
|
|
1720
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1721
|
+
interface HttpClient {
|
|
1722
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1723
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1724
|
+
}
|
|
1725
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1726
|
+
type HttpResponse<T = any> = {
|
|
1727
|
+
data: T;
|
|
1728
|
+
status: number;
|
|
1729
|
+
statusText: string;
|
|
1730
|
+
headers: any;
|
|
1731
|
+
request?: any;
|
|
1732
|
+
};
|
|
1733
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1734
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1735
|
+
url: string;
|
|
1736
|
+
data?: Data;
|
|
1737
|
+
params?: URLSearchParams;
|
|
1738
|
+
} & APIMetadata;
|
|
1739
|
+
type APIMetadata = {
|
|
1740
|
+
methodFqn?: string;
|
|
1741
|
+
entityFqdn?: string;
|
|
1742
|
+
packageName?: string;
|
|
1743
|
+
};
|
|
1744
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1745
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1746
|
+
__type: 'event-definition';
|
|
1747
|
+
type: Type;
|
|
1748
|
+
isDomainEvent?: boolean;
|
|
1749
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1750
|
+
__payload: Payload;
|
|
1751
|
+
};
|
|
1752
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1753
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1754
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1755
|
+
|
|
1756
|
+
declare global {
|
|
1757
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1758
|
+
interface SymbolConstructor {
|
|
1759
|
+
readonly observable: symbol;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1679
1763
|
declare function updateCurrentMemberSlug$1(httpClient: HttpClient): (slug: string) => Promise<UpdateMySlugResponse & UpdateMySlugResponseNonNullableFields>;
|
|
1680
1764
|
declare function joinCommunity$1(httpClient: HttpClient): () => Promise<JoinCommunityResponse & JoinCommunityResponseNonNullableFields>;
|
|
1681
1765
|
declare function leaveCommunity$1(httpClient: HttpClient): () => Promise<LeaveCommunityResponse & LeaveCommunityResponseNonNullableFields>;
|
|
@@ -560,62 +560,70 @@ interface ListMembersByBadgeOptions {
|
|
|
560
560
|
paging?: Paging$2;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
interface HttpClient {
|
|
564
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
563
|
+
interface HttpClient$2 {
|
|
564
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
565
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
565
566
|
}
|
|
566
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
567
|
-
type HttpResponse<T = any> = {
|
|
567
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
568
|
+
type HttpResponse$2<T = any> = {
|
|
568
569
|
data: T;
|
|
569
570
|
status: number;
|
|
570
571
|
statusText: string;
|
|
571
572
|
headers: any;
|
|
572
573
|
request?: any;
|
|
573
574
|
};
|
|
574
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
575
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
575
576
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
576
577
|
url: string;
|
|
577
578
|
data?: Data;
|
|
578
579
|
params?: URLSearchParams;
|
|
579
|
-
} & APIMetadata;
|
|
580
|
-
type APIMetadata = {
|
|
580
|
+
} & APIMetadata$2;
|
|
581
|
+
type APIMetadata$2 = {
|
|
581
582
|
methodFqn?: string;
|
|
582
583
|
entityFqdn?: string;
|
|
583
584
|
packageName?: string;
|
|
584
585
|
};
|
|
585
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
586
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
586
587
|
__type: 'event-definition';
|
|
587
588
|
type: Type;
|
|
588
589
|
isDomainEvent?: boolean;
|
|
589
|
-
transformations?: unknown;
|
|
590
|
+
transformations?: (envelope: unknown) => Payload;
|
|
590
591
|
__payload: Payload;
|
|
591
592
|
};
|
|
592
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
593
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
594
|
+
|
|
595
|
+
declare global {
|
|
596
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
597
|
+
interface SymbolConstructor {
|
|
598
|
+
readonly observable: symbol;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
593
601
|
|
|
594
602
|
declare const __metadata$2: {
|
|
595
603
|
PACKAGE_NAME: string;
|
|
596
604
|
};
|
|
597
|
-
declare function createBadge(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
|
|
605
|
+
declare function createBadge(httpClient: HttpClient$2): (badge: Badge) => Promise<Badge & {
|
|
598
606
|
_id: string;
|
|
599
607
|
}>;
|
|
600
|
-
declare function updateBadge(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
608
|
+
declare function updateBadge(httpClient: HttpClient$2): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
601
609
|
_id: string;
|
|
602
610
|
}>;
|
|
603
|
-
declare function listBadges(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
604
|
-
declare function getBadge(httpClient: HttpClient): (_id: string) => Promise<Badge & {
|
|
611
|
+
declare function listBadges(httpClient: HttpClient$2): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
612
|
+
declare function getBadge(httpClient: HttpClient$2): (_id: string) => Promise<Badge & {
|
|
605
613
|
_id: string;
|
|
606
614
|
}>;
|
|
607
|
-
declare function deleteBadge(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
608
|
-
declare function assignBadge(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
609
|
-
declare function unassignBadge(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<void>;
|
|
610
|
-
declare function listMembersByBadge(httpClient: HttpClient): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$2 & ListMembersResponseNonNullableFields$1>;
|
|
611
|
-
declare function listBadgesPerMember(httpClient: HttpClient): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
612
|
-
declare function getMemberCountsPerBadge(httpClient: HttpClient): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
613
|
-
declare function updateBadgesDisplayOrder(httpClient: HttpClient): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
614
|
-
declare const onBadgeCreated: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
615
|
-
declare const onBadgeUpdated: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
616
|
-
declare const onBadgeDeleted: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
617
|
-
declare const onBadgeAssigned: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
618
|
-
declare const onBadgeUnassigned: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
615
|
+
declare function deleteBadge(httpClient: HttpClient$2): (_id: string) => Promise<void>;
|
|
616
|
+
declare function assignBadge(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
617
|
+
declare function unassignBadge(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<void>;
|
|
618
|
+
declare function listMembersByBadge(httpClient: HttpClient$2): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$2 & ListMembersResponseNonNullableFields$1>;
|
|
619
|
+
declare function listBadgesPerMember(httpClient: HttpClient$2): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
620
|
+
declare function getMemberCountsPerBadge(httpClient: HttpClient$2): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
621
|
+
declare function updateBadgesDisplayOrder(httpClient: HttpClient$2): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
622
|
+
declare const onBadgeCreated: EventDefinition$1<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
623
|
+
declare const onBadgeUpdated: EventDefinition$1<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
624
|
+
declare const onBadgeDeleted: EventDefinition$1<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
625
|
+
declare const onBadgeAssigned: EventDefinition$1<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
626
|
+
declare const onBadgeUnassigned: EventDefinition$1<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
619
627
|
|
|
620
628
|
type index_d$2_AssignBadgeRequest = AssignBadgeRequest;
|
|
621
629
|
type index_d$2_AssignBadgeResponse = AssignBadgeResponse;
|
|
@@ -1491,15 +1499,46 @@ interface SendSetPasswordEmailOptions {
|
|
|
1491
1499
|
hideIgnoreMessage?: boolean;
|
|
1492
1500
|
}
|
|
1493
1501
|
|
|
1502
|
+
interface HttpClient$1 {
|
|
1503
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1504
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1505
|
+
}
|
|
1506
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1507
|
+
type HttpResponse$1<T = any> = {
|
|
1508
|
+
data: T;
|
|
1509
|
+
status: number;
|
|
1510
|
+
statusText: string;
|
|
1511
|
+
headers: any;
|
|
1512
|
+
request?: any;
|
|
1513
|
+
};
|
|
1514
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1515
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1516
|
+
url: string;
|
|
1517
|
+
data?: Data;
|
|
1518
|
+
params?: URLSearchParams;
|
|
1519
|
+
} & APIMetadata$1;
|
|
1520
|
+
type APIMetadata$1 = {
|
|
1521
|
+
methodFqn?: string;
|
|
1522
|
+
entityFqdn?: string;
|
|
1523
|
+
packageName?: string;
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
declare global {
|
|
1527
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1528
|
+
interface SymbolConstructor {
|
|
1529
|
+
readonly observable: symbol;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1494
1533
|
declare const __metadata$1: {
|
|
1495
1534
|
PACKAGE_NAME: string;
|
|
1496
1535
|
};
|
|
1497
|
-
declare function changeLoginEmail(httpClient: HttpClient): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
1498
|
-
declare function approve(httpClient: HttpClient): (options?: ApproveOptions) => Promise<ApproveMemberResponse$1>;
|
|
1499
|
-
declare function block(httpClient: HttpClient): (options?: BlockOptions) => Promise<void>;
|
|
1500
|
-
declare function register(httpClient: HttpClient): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
1501
|
-
declare function login(httpClient: HttpClient): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
1502
|
-
declare function sendSetPasswordEmail(httpClient: HttpClient): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
1536
|
+
declare function changeLoginEmail(httpClient: HttpClient$1): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
1537
|
+
declare function approve(httpClient: HttpClient$1): (options?: ApproveOptions) => Promise<ApproveMemberResponse$1>;
|
|
1538
|
+
declare function block(httpClient: HttpClient$1): (options?: BlockOptions) => Promise<void>;
|
|
1539
|
+
declare function register(httpClient: HttpClient$1): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
1540
|
+
declare function login(httpClient: HttpClient$1): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
1541
|
+
declare function sendSetPasswordEmail(httpClient: HttpClient$1): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
1503
1542
|
|
|
1504
1543
|
type index_d$1_AppleLogin = AppleLogin;
|
|
1505
1544
|
type index_d$1_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
|
|
@@ -3277,6 +3316,45 @@ interface UpdateMember {
|
|
|
3277
3316
|
lastLoginDate?: Date;
|
|
3278
3317
|
}
|
|
3279
3318
|
|
|
3319
|
+
interface HttpClient {
|
|
3320
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
3321
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3322
|
+
}
|
|
3323
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
3324
|
+
type HttpResponse<T = any> = {
|
|
3325
|
+
data: T;
|
|
3326
|
+
status: number;
|
|
3327
|
+
statusText: string;
|
|
3328
|
+
headers: any;
|
|
3329
|
+
request?: any;
|
|
3330
|
+
};
|
|
3331
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
3332
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3333
|
+
url: string;
|
|
3334
|
+
data?: Data;
|
|
3335
|
+
params?: URLSearchParams;
|
|
3336
|
+
} & APIMetadata;
|
|
3337
|
+
type APIMetadata = {
|
|
3338
|
+
methodFqn?: string;
|
|
3339
|
+
entityFqdn?: string;
|
|
3340
|
+
packageName?: string;
|
|
3341
|
+
};
|
|
3342
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3343
|
+
__type: 'event-definition';
|
|
3344
|
+
type: Type;
|
|
3345
|
+
isDomainEvent?: boolean;
|
|
3346
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3347
|
+
__payload: Payload;
|
|
3348
|
+
};
|
|
3349
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3350
|
+
|
|
3351
|
+
declare global {
|
|
3352
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3353
|
+
interface SymbolConstructor {
|
|
3354
|
+
readonly observable: symbol;
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3280
3358
|
declare const __metadata: {
|
|
3281
3359
|
PACKAGE_NAME: string;
|
|
3282
3360
|
};
|