@wix/members 1.0.89 → 1.0.90
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 +2 -2
- package/type-bundles/context.bundle.d.ts +117 -57
- package/type-bundles/index.bundle.d.ts +85 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/members",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"fqdn": ""
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
48
|
+
"falconPackageHash": "39248d25d1538c8015bf9bae14692a23358f43a3d5afef028d82fe3b"
|
|
49
49
|
}
|
|
@@ -304,80 +304,80 @@ 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
310
|
}
|
|
311
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
312
|
-
type HttpResponse<T = any> = {
|
|
311
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
312
|
+
type HttpResponse$2<T = any> = {
|
|
313
313
|
data: T;
|
|
314
314
|
status: number;
|
|
315
315
|
statusText: string;
|
|
316
316
|
headers: any;
|
|
317
317
|
request?: any;
|
|
318
318
|
};
|
|
319
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
319
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
320
320
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
321
321
|
url: string;
|
|
322
322
|
data?: Data;
|
|
323
323
|
params?: URLSearchParams;
|
|
324
|
-
} & APIMetadata;
|
|
325
|
-
type APIMetadata = {
|
|
324
|
+
} & APIMetadata$2;
|
|
325
|
+
type APIMetadata$2 = {
|
|
326
326
|
methodFqn?: string;
|
|
327
327
|
entityFqdn?: string;
|
|
328
328
|
packageName?: string;
|
|
329
329
|
};
|
|
330
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
331
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
330
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
331
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
332
332
|
__type: 'event-definition';
|
|
333
333
|
type: Type;
|
|
334
334
|
isDomainEvent?: boolean;
|
|
335
335
|
transformations?: unknown;
|
|
336
336
|
__payload: Payload;
|
|
337
337
|
};
|
|
338
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
339
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
340
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
338
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
339
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
340
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
341
341
|
|
|
342
|
-
declare function createBadge$1(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
|
|
342
|
+
declare function createBadge$1(httpClient: HttpClient$2): (badge: Badge) => Promise<Badge & {
|
|
343
343
|
_id: string;
|
|
344
344
|
}>;
|
|
345
|
-
declare function updateBadge$1(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
345
|
+
declare function updateBadge$1(httpClient: HttpClient$2): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
346
346
|
_id: string;
|
|
347
347
|
}>;
|
|
348
|
-
declare function listBadges$1(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
349
|
-
declare function getBadge$1(httpClient: HttpClient): (_id: string) => Promise<Badge & {
|
|
348
|
+
declare function listBadges$1(httpClient: HttpClient$2): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
349
|
+
declare function getBadge$1(httpClient: HttpClient$2): (_id: string) => Promise<Badge & {
|
|
350
350
|
_id: string;
|
|
351
351
|
}>;
|
|
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">;
|
|
352
|
+
declare function deleteBadge$1(httpClient: HttpClient$2): (_id: string) => Promise<void>;
|
|
353
|
+
declare function assignBadge$1(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
354
|
+
declare function unassignBadge$1(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<void>;
|
|
355
|
+
declare function listMembersByBadge$1(httpClient: HttpClient$2): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$1 & ListMembersResponseNonNullableFields$1>;
|
|
356
|
+
declare function listBadgesPerMember$1(httpClient: HttpClient$2): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
357
|
+
declare function getMemberCountsPerBadge$1(httpClient: HttpClient$2): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
358
|
+
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient$2): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
359
|
+
declare const onBadgeCreated$1: EventDefinition$1<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
360
|
+
declare const onBadgeUpdated$1: EventDefinition$1<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
361
|
+
declare const onBadgeDeleted$1: EventDefinition$1<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
362
|
+
declare const onBadgeAssigned$1: EventDefinition$1<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
363
|
+
declare const onBadgeUnassigned$1: EventDefinition$1<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
364
364
|
|
|
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>;
|
|
365
|
+
declare const createBadge: BuildRESTFunction$2<typeof createBadge$1>;
|
|
366
|
+
declare const updateBadge: BuildRESTFunction$2<typeof updateBadge$1>;
|
|
367
|
+
declare const listBadges: BuildRESTFunction$2<typeof listBadges$1>;
|
|
368
|
+
declare const getBadge: BuildRESTFunction$2<typeof getBadge$1>;
|
|
369
|
+
declare const deleteBadge: BuildRESTFunction$2<typeof deleteBadge$1>;
|
|
370
|
+
declare const assignBadge: BuildRESTFunction$2<typeof assignBadge$1>;
|
|
371
|
+
declare const unassignBadge: BuildRESTFunction$2<typeof unassignBadge$1>;
|
|
372
|
+
declare const listMembersByBadge: BuildRESTFunction$2<typeof listMembersByBadge$1>;
|
|
373
|
+
declare const listBadgesPerMember: BuildRESTFunction$2<typeof listBadgesPerMember$1>;
|
|
374
|
+
declare const getMemberCountsPerBadge: BuildRESTFunction$2<typeof getMemberCountsPerBadge$1>;
|
|
375
|
+
declare const updateBadgesDisplayOrder: BuildRESTFunction$2<typeof updateBadgesDisplayOrder$1>;
|
|
376
|
+
declare const onBadgeCreated: BuildEventDefinition$1<typeof onBadgeCreated$1>;
|
|
377
|
+
declare const onBadgeUpdated: BuildEventDefinition$1<typeof onBadgeUpdated$1>;
|
|
378
|
+
declare const onBadgeDeleted: BuildEventDefinition$1<typeof onBadgeDeleted$1>;
|
|
379
|
+
declare const onBadgeAssigned: BuildEventDefinition$1<typeof onBadgeAssigned$1>;
|
|
380
|
+
declare const onBadgeUnassigned: BuildEventDefinition$1<typeof onBadgeUnassigned$1>;
|
|
381
381
|
|
|
382
382
|
declare const context$2_assignBadge: typeof assignBadge;
|
|
383
383
|
declare const context$2_createBadge: typeof createBadge;
|
|
@@ -826,19 +826,44 @@ interface SendSetPasswordEmailOptions {
|
|
|
826
826
|
hideIgnoreMessage?: boolean;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
829
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
830
|
+
interface HttpClient$1 {
|
|
831
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
832
|
+
}
|
|
833
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
834
|
+
type HttpResponse$1<T = any> = {
|
|
835
|
+
data: T;
|
|
836
|
+
status: number;
|
|
837
|
+
statusText: string;
|
|
838
|
+
headers: any;
|
|
839
|
+
request?: any;
|
|
840
|
+
};
|
|
841
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
842
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
843
|
+
url: string;
|
|
844
|
+
data?: Data;
|
|
845
|
+
params?: URLSearchParams;
|
|
846
|
+
} & APIMetadata$1;
|
|
847
|
+
type APIMetadata$1 = {
|
|
848
|
+
methodFqn?: string;
|
|
849
|
+
entityFqdn?: string;
|
|
850
|
+
packageName?: string;
|
|
851
|
+
};
|
|
852
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
853
|
+
|
|
854
|
+
declare function changeLoginEmail$1(httpClient: HttpClient$1): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
855
|
+
declare function approve$1(httpClient: HttpClient$1): (options?: ApproveOptions) => Promise<ApproveMemberResponse>;
|
|
856
|
+
declare function block$1(httpClient: HttpClient$1): (options?: BlockOptions) => Promise<void>;
|
|
857
|
+
declare function register$1(httpClient: HttpClient$1): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
858
|
+
declare function login$1(httpClient: HttpClient$1): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
859
|
+
declare function sendSetPasswordEmail$1(httpClient: HttpClient$1): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
835
860
|
|
|
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>;
|
|
861
|
+
declare const changeLoginEmail: BuildRESTFunction$1<typeof changeLoginEmail$1>;
|
|
862
|
+
declare const approve: BuildRESTFunction$1<typeof approve$1>;
|
|
863
|
+
declare const block: BuildRESTFunction$1<typeof block$1>;
|
|
864
|
+
declare const register: BuildRESTFunction$1<typeof register$1>;
|
|
865
|
+
declare const login: BuildRESTFunction$1<typeof login$1>;
|
|
866
|
+
declare const sendSetPasswordEmail: BuildRESTFunction$1<typeof sendSetPasswordEmail$1>;
|
|
842
867
|
|
|
843
868
|
declare const context$1_approve: typeof approve;
|
|
844
869
|
declare const context$1_block: typeof block;
|
|
@@ -1676,6 +1701,41 @@ interface UpdateMember {
|
|
|
1676
1701
|
lastLoginDate?: Date;
|
|
1677
1702
|
}
|
|
1678
1703
|
|
|
1704
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1705
|
+
interface HttpClient {
|
|
1706
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1707
|
+
}
|
|
1708
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1709
|
+
type HttpResponse<T = any> = {
|
|
1710
|
+
data: T;
|
|
1711
|
+
status: number;
|
|
1712
|
+
statusText: string;
|
|
1713
|
+
headers: any;
|
|
1714
|
+
request?: any;
|
|
1715
|
+
};
|
|
1716
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1717
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1718
|
+
url: string;
|
|
1719
|
+
data?: Data;
|
|
1720
|
+
params?: URLSearchParams;
|
|
1721
|
+
} & APIMetadata;
|
|
1722
|
+
type APIMetadata = {
|
|
1723
|
+
methodFqn?: string;
|
|
1724
|
+
entityFqdn?: string;
|
|
1725
|
+
packageName?: string;
|
|
1726
|
+
};
|
|
1727
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1728
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1729
|
+
__type: 'event-definition';
|
|
1730
|
+
type: Type;
|
|
1731
|
+
isDomainEvent?: boolean;
|
|
1732
|
+
transformations?: unknown;
|
|
1733
|
+
__payload: Payload;
|
|
1734
|
+
};
|
|
1735
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1736
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1737
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1738
|
+
|
|
1679
1739
|
declare function updateCurrentMemberSlug$1(httpClient: HttpClient): (slug: string) => Promise<UpdateMySlugResponse & UpdateMySlugResponseNonNullableFields>;
|
|
1680
1740
|
declare function joinCommunity$1(httpClient: HttpClient): () => Promise<JoinCommunityResponse & JoinCommunityResponseNonNullableFields>;
|
|
1681
1741
|
declare function leaveCommunity$1(httpClient: HttpClient): () => Promise<LeaveCommunityResponse & LeaveCommunityResponseNonNullableFields>;
|
|
@@ -560,62 +560,62 @@ 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
565
|
}
|
|
566
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
567
|
-
type HttpResponse<T = any> = {
|
|
566
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
567
|
+
type HttpResponse$2<T = any> = {
|
|
568
568
|
data: T;
|
|
569
569
|
status: number;
|
|
570
570
|
statusText: string;
|
|
571
571
|
headers: any;
|
|
572
572
|
request?: any;
|
|
573
573
|
};
|
|
574
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
574
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
575
575
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
576
576
|
url: string;
|
|
577
577
|
data?: Data;
|
|
578
578
|
params?: URLSearchParams;
|
|
579
|
-
} & APIMetadata;
|
|
580
|
-
type APIMetadata = {
|
|
579
|
+
} & APIMetadata$2;
|
|
580
|
+
type APIMetadata$2 = {
|
|
581
581
|
methodFqn?: string;
|
|
582
582
|
entityFqdn?: string;
|
|
583
583
|
packageName?: string;
|
|
584
584
|
};
|
|
585
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
585
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
586
586
|
__type: 'event-definition';
|
|
587
587
|
type: Type;
|
|
588
588
|
isDomainEvent?: boolean;
|
|
589
589
|
transformations?: unknown;
|
|
590
590
|
__payload: Payload;
|
|
591
591
|
};
|
|
592
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
592
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
593
593
|
|
|
594
594
|
declare const __metadata$2: {
|
|
595
595
|
PACKAGE_NAME: string;
|
|
596
596
|
};
|
|
597
|
-
declare function createBadge(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
|
|
597
|
+
declare function createBadge(httpClient: HttpClient$2): (badge: Badge) => Promise<Badge & {
|
|
598
598
|
_id: string;
|
|
599
599
|
}>;
|
|
600
|
-
declare function updateBadge(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
600
|
+
declare function updateBadge(httpClient: HttpClient$2): (_id: string, badge: UpdateBadge) => Promise<Badge & {
|
|
601
601
|
_id: string;
|
|
602
602
|
}>;
|
|
603
|
-
declare function listBadges(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
604
|
-
declare function getBadge(httpClient: HttpClient): (_id: string) => Promise<Badge & {
|
|
603
|
+
declare function listBadges(httpClient: HttpClient$2): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
604
|
+
declare function getBadge(httpClient: HttpClient$2): (_id: string) => Promise<Badge & {
|
|
605
605
|
_id: string;
|
|
606
606
|
}>;
|
|
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">;
|
|
607
|
+
declare function deleteBadge(httpClient: HttpClient$2): (_id: string) => Promise<void>;
|
|
608
|
+
declare function assignBadge(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
609
|
+
declare function unassignBadge(httpClient: HttpClient$2): (_id: string, memberIds: string[]) => Promise<void>;
|
|
610
|
+
declare function listMembersByBadge(httpClient: HttpClient$2): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$2 & ListMembersResponseNonNullableFields$1>;
|
|
611
|
+
declare function listBadgesPerMember(httpClient: HttpClient$2): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
612
|
+
declare function getMemberCountsPerBadge(httpClient: HttpClient$2): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
613
|
+
declare function updateBadgesDisplayOrder(httpClient: HttpClient$2): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
614
|
+
declare const onBadgeCreated: EventDefinition$1<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
615
|
+
declare const onBadgeUpdated: EventDefinition$1<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
616
|
+
declare const onBadgeDeleted: EventDefinition$1<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
617
|
+
declare const onBadgeAssigned: EventDefinition$1<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
618
|
+
declare const onBadgeUnassigned: EventDefinition$1<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
619
619
|
|
|
620
620
|
type index_d$2_AssignBadgeRequest = AssignBadgeRequest;
|
|
621
621
|
type index_d$2_AssignBadgeResponse = AssignBadgeResponse;
|
|
@@ -1491,15 +1491,38 @@ interface SendSetPasswordEmailOptions {
|
|
|
1491
1491
|
hideIgnoreMessage?: boolean;
|
|
1492
1492
|
}
|
|
1493
1493
|
|
|
1494
|
+
interface HttpClient$1 {
|
|
1495
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1496
|
+
}
|
|
1497
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1498
|
+
type HttpResponse$1<T = any> = {
|
|
1499
|
+
data: T;
|
|
1500
|
+
status: number;
|
|
1501
|
+
statusText: string;
|
|
1502
|
+
headers: any;
|
|
1503
|
+
request?: any;
|
|
1504
|
+
};
|
|
1505
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1506
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1507
|
+
url: string;
|
|
1508
|
+
data?: Data;
|
|
1509
|
+
params?: URLSearchParams;
|
|
1510
|
+
} & APIMetadata$1;
|
|
1511
|
+
type APIMetadata$1 = {
|
|
1512
|
+
methodFqn?: string;
|
|
1513
|
+
entityFqdn?: string;
|
|
1514
|
+
packageName?: string;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1494
1517
|
declare const __metadata$1: {
|
|
1495
1518
|
PACKAGE_NAME: string;
|
|
1496
1519
|
};
|
|
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>;
|
|
1520
|
+
declare function changeLoginEmail(httpClient: HttpClient$1): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
1521
|
+
declare function approve(httpClient: HttpClient$1): (options?: ApproveOptions) => Promise<ApproveMemberResponse$1>;
|
|
1522
|
+
declare function block(httpClient: HttpClient$1): (options?: BlockOptions) => Promise<void>;
|
|
1523
|
+
declare function register(httpClient: HttpClient$1): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
1524
|
+
declare function login(httpClient: HttpClient$1): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
1525
|
+
declare function sendSetPasswordEmail(httpClient: HttpClient$1): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
1503
1526
|
|
|
1504
1527
|
type index_d$1_AppleLogin = AppleLogin;
|
|
1505
1528
|
type index_d$1_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
|
|
@@ -3277,6 +3300,37 @@ interface UpdateMember {
|
|
|
3277
3300
|
lastLoginDate?: Date;
|
|
3278
3301
|
}
|
|
3279
3302
|
|
|
3303
|
+
interface HttpClient {
|
|
3304
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
3305
|
+
}
|
|
3306
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
3307
|
+
type HttpResponse<T = any> = {
|
|
3308
|
+
data: T;
|
|
3309
|
+
status: number;
|
|
3310
|
+
statusText: string;
|
|
3311
|
+
headers: any;
|
|
3312
|
+
request?: any;
|
|
3313
|
+
};
|
|
3314
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
3315
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3316
|
+
url: string;
|
|
3317
|
+
data?: Data;
|
|
3318
|
+
params?: URLSearchParams;
|
|
3319
|
+
} & APIMetadata;
|
|
3320
|
+
type APIMetadata = {
|
|
3321
|
+
methodFqn?: string;
|
|
3322
|
+
entityFqdn?: string;
|
|
3323
|
+
packageName?: string;
|
|
3324
|
+
};
|
|
3325
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3326
|
+
__type: 'event-definition';
|
|
3327
|
+
type: Type;
|
|
3328
|
+
isDomainEvent?: boolean;
|
|
3329
|
+
transformations?: unknown;
|
|
3330
|
+
__payload: Payload;
|
|
3331
|
+
};
|
|
3332
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3333
|
+
|
|
3280
3334
|
declare const __metadata: {
|
|
3281
3335
|
PACKAGE_NAME: string;
|
|
3282
3336
|
};
|