@wix/groups 1.0.90 → 1.0.91
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 +447 -113
- package/type-bundles/index.bundle.d.ts +363 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/groups",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": ""
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "d0a4c38481f14d795a7d3c8c2526c5c406396d7160bd4323ad0a9538"
|
|
54
54
|
}
|
|
@@ -509,41 +509,41 @@ interface GroupsQueryBuilder {
|
|
|
509
509
|
find: () => Promise<GroupsQueryResult>;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
513
|
-
interface HttpClient {
|
|
514
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
512
|
+
type RESTFunctionDescriptor$8<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$8) => T;
|
|
513
|
+
interface HttpClient$8 {
|
|
514
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
515
515
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
516
516
|
}
|
|
517
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
518
|
-
type HttpResponse<T = any> = {
|
|
517
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
518
|
+
type HttpResponse$8<T = any> = {
|
|
519
519
|
data: T;
|
|
520
520
|
status: number;
|
|
521
521
|
statusText: string;
|
|
522
522
|
headers: any;
|
|
523
523
|
request?: any;
|
|
524
524
|
};
|
|
525
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
525
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
526
526
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
527
527
|
url: string;
|
|
528
528
|
data?: Data;
|
|
529
529
|
params?: URLSearchParams;
|
|
530
|
-
} & APIMetadata;
|
|
531
|
-
type APIMetadata = {
|
|
530
|
+
} & APIMetadata$8;
|
|
531
|
+
type APIMetadata$8 = {
|
|
532
532
|
methodFqn?: string;
|
|
533
533
|
entityFqdn?: string;
|
|
534
534
|
packageName?: string;
|
|
535
535
|
};
|
|
536
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
537
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
536
|
+
type BuildRESTFunction$8<T extends RESTFunctionDescriptor$8> = T extends RESTFunctionDescriptor$8<infer U> ? U : never;
|
|
537
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
538
538
|
__type: 'event-definition';
|
|
539
539
|
type: Type;
|
|
540
540
|
isDomainEvent?: boolean;
|
|
541
541
|
transformations?: (envelope: unknown) => Payload;
|
|
542
542
|
__payload: Payload;
|
|
543
543
|
};
|
|
544
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
545
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
546
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
544
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
545
|
+
type EventHandler$7<T extends EventDefinition$7> = (payload: T['__payload']) => void | Promise<void>;
|
|
546
|
+
type BuildEventDefinition$7<T extends EventDefinition$7<any, string>> = (handler: EventHandler$7<T>) => void;
|
|
547
547
|
|
|
548
548
|
declare global {
|
|
549
549
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -552,7 +552,7 @@ declare global {
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
declare function createGroup$1(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
555
|
+
declare function createGroup$1(httpClient: HttpClient$8): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
556
556
|
privacyLevel: PrivacyStatus$2;
|
|
557
557
|
privacyStatus: PrivacyStatus$2;
|
|
558
558
|
coverImage?: {
|
|
@@ -569,7 +569,7 @@ declare function createGroup$1(httpClient: HttpClient): (group: Group$2, options
|
|
|
569
569
|
identityType: IdentityType$2;
|
|
570
570
|
} | undefined;
|
|
571
571
|
}>;
|
|
572
|
-
declare function updateGroup$1(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
572
|
+
declare function updateGroup$1(httpClient: HttpClient$8): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
573
573
|
privacyLevel: PrivacyStatus$2;
|
|
574
574
|
privacyStatus: PrivacyStatus$2;
|
|
575
575
|
coverImage?: {
|
|
@@ -586,8 +586,8 @@ declare function updateGroup$1(httpClient: HttpClient): (_id: string | null, gro
|
|
|
586
586
|
identityType: IdentityType$2;
|
|
587
587
|
} | undefined;
|
|
588
588
|
}>;
|
|
589
|
-
declare function deleteGroup$1(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
590
|
-
declare function getGroup$1(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
589
|
+
declare function deleteGroup$1(httpClient: HttpClient$8): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
590
|
+
declare function getGroup$1(httpClient: HttpClient$8): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
591
591
|
privacyLevel: PrivacyStatus$2;
|
|
592
592
|
privacyStatus: PrivacyStatus$2;
|
|
593
593
|
coverImage?: {
|
|
@@ -604,27 +604,27 @@ declare function getGroup$1(httpClient: HttpClient): (groupId: string, options?:
|
|
|
604
604
|
identityType: IdentityType$2;
|
|
605
605
|
} | undefined;
|
|
606
606
|
}>;
|
|
607
|
-
declare function getGroupBySlug$1(httpClient: HttpClient): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
608
|
-
declare function listGroups$1(httpClient: HttpClient): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
609
|
-
declare function queryGroups$1(httpClient: HttpClient): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
610
|
-
declare const onGroupCreated$1: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
611
|
-
declare const onGroupUpdated$1: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
612
|
-
declare const onGroupCoverChanged$1: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
613
|
-
declare const onGroupDescriptionChanged$1: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
614
|
-
declare const onGroupDeleted$1: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
607
|
+
declare function getGroupBySlug$1(httpClient: HttpClient$8): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
608
|
+
declare function listGroups$1(httpClient: HttpClient$8): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
609
|
+
declare function queryGroups$1(httpClient: HttpClient$8): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
610
|
+
declare const onGroupCreated$1: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
611
|
+
declare const onGroupUpdated$1: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
612
|
+
declare const onGroupCoverChanged$1: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
613
|
+
declare const onGroupDescriptionChanged$1: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
614
|
+
declare const onGroupDeleted$1: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
615
615
|
|
|
616
|
-
declare const createGroup: BuildRESTFunction<typeof createGroup$1>;
|
|
617
|
-
declare const updateGroup: BuildRESTFunction<typeof updateGroup$1>;
|
|
618
|
-
declare const deleteGroup: BuildRESTFunction<typeof deleteGroup$1>;
|
|
619
|
-
declare const getGroup: BuildRESTFunction<typeof getGroup$1>;
|
|
620
|
-
declare const getGroupBySlug: BuildRESTFunction<typeof getGroupBySlug$1>;
|
|
621
|
-
declare const listGroups: BuildRESTFunction<typeof listGroups$1>;
|
|
622
|
-
declare const queryGroups: BuildRESTFunction<typeof queryGroups$1>;
|
|
623
|
-
declare const onGroupCreated: BuildEventDefinition<typeof onGroupCreated$1>;
|
|
624
|
-
declare const onGroupUpdated: BuildEventDefinition<typeof onGroupUpdated$1>;
|
|
625
|
-
declare const onGroupCoverChanged: BuildEventDefinition<typeof onGroupCoverChanged$1>;
|
|
626
|
-
declare const onGroupDescriptionChanged: BuildEventDefinition<typeof onGroupDescriptionChanged$1>;
|
|
627
|
-
declare const onGroupDeleted: BuildEventDefinition<typeof onGroupDeleted$1>;
|
|
616
|
+
declare const createGroup: BuildRESTFunction$8<typeof createGroup$1>;
|
|
617
|
+
declare const updateGroup: BuildRESTFunction$8<typeof updateGroup$1>;
|
|
618
|
+
declare const deleteGroup: BuildRESTFunction$8<typeof deleteGroup$1>;
|
|
619
|
+
declare const getGroup: BuildRESTFunction$8<typeof getGroup$1>;
|
|
620
|
+
declare const getGroupBySlug: BuildRESTFunction$8<typeof getGroupBySlug$1>;
|
|
621
|
+
declare const listGroups: BuildRESTFunction$8<typeof listGroups$1>;
|
|
622
|
+
declare const queryGroups: BuildRESTFunction$8<typeof queryGroups$1>;
|
|
623
|
+
declare const onGroupCreated: BuildEventDefinition$7<typeof onGroupCreated$1>;
|
|
624
|
+
declare const onGroupUpdated: BuildEventDefinition$7<typeof onGroupUpdated$1>;
|
|
625
|
+
declare const onGroupCoverChanged: BuildEventDefinition$7<typeof onGroupCoverChanged$1>;
|
|
626
|
+
declare const onGroupDescriptionChanged: BuildEventDefinition$7<typeof onGroupDescriptionChanged$1>;
|
|
627
|
+
declare const onGroupDeleted: BuildEventDefinition$7<typeof onGroupDeleted$1>;
|
|
628
628
|
|
|
629
629
|
declare const context$8_createGroup: typeof createGroup;
|
|
630
630
|
declare const context$8_deleteGroup: typeof deleteGroup;
|
|
@@ -984,23 +984,66 @@ interface QueryMembershipsOptions {
|
|
|
984
984
|
query?: Query$2;
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
987
|
+
type RESTFunctionDescriptor$7<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$7) => T;
|
|
988
|
+
interface HttpClient$7 {
|
|
989
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
990
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
991
|
+
}
|
|
992
|
+
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
993
|
+
type HttpResponse$7<T = any> = {
|
|
994
|
+
data: T;
|
|
995
|
+
status: number;
|
|
996
|
+
statusText: string;
|
|
997
|
+
headers: any;
|
|
998
|
+
request?: any;
|
|
999
|
+
};
|
|
1000
|
+
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
1001
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1002
|
+
url: string;
|
|
1003
|
+
data?: Data;
|
|
1004
|
+
params?: URLSearchParams;
|
|
1005
|
+
} & APIMetadata$7;
|
|
1006
|
+
type APIMetadata$7 = {
|
|
1007
|
+
methodFqn?: string;
|
|
1008
|
+
entityFqdn?: string;
|
|
1009
|
+
packageName?: string;
|
|
1010
|
+
};
|
|
1011
|
+
type BuildRESTFunction$7<T extends RESTFunctionDescriptor$7> = T extends RESTFunctionDescriptor$7<infer U> ? U : never;
|
|
1012
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
1013
|
+
__type: 'event-definition';
|
|
1014
|
+
type: Type;
|
|
1015
|
+
isDomainEvent?: boolean;
|
|
1016
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1017
|
+
__payload: Payload;
|
|
1018
|
+
};
|
|
1019
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
1020
|
+
type EventHandler$6<T extends EventDefinition$6> = (payload: T['__payload']) => void | Promise<void>;
|
|
1021
|
+
type BuildEventDefinition$6<T extends EventDefinition$6<any, string>> = (handler: EventHandler$6<T>) => void;
|
|
1022
|
+
|
|
1023
|
+
declare global {
|
|
1024
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1025
|
+
interface SymbolConstructor {
|
|
1026
|
+
readonly observable: symbol;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
declare function addGroupMembers$1(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1031
|
+
declare function removeGroupMembers$1(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1032
|
+
declare function listGroupMembers$1(httpClient: HttpClient$7): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1033
|
+
declare function queryGroupMembers$1(httpClient: HttpClient$7): (groupId: string) => MembersQueryBuilder;
|
|
1034
|
+
declare function listMemberships$1(httpClient: HttpClient$7): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1035
|
+
declare function queryMemberships$1(httpClient: HttpClient$7): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1036
|
+
declare const onGroupMemberAdded$1: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1037
|
+
declare const onGroupMemberRemoved$1: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
995
1038
|
|
|
996
|
-
declare const addGroupMembers: BuildRESTFunction<typeof addGroupMembers$1>;
|
|
997
|
-
declare const removeGroupMembers: BuildRESTFunction<typeof removeGroupMembers$1>;
|
|
998
|
-
declare const listGroupMembers: BuildRESTFunction<typeof listGroupMembers$1>;
|
|
999
|
-
declare const queryGroupMembers: BuildRESTFunction<typeof queryGroupMembers$1>;
|
|
1000
|
-
declare const listMemberships: BuildRESTFunction<typeof listMemberships$1>;
|
|
1001
|
-
declare const queryMemberships: BuildRESTFunction<typeof queryMemberships$1>;
|
|
1002
|
-
declare const onGroupMemberAdded: BuildEventDefinition<typeof onGroupMemberAdded$1>;
|
|
1003
|
-
declare const onGroupMemberRemoved: BuildEventDefinition<typeof onGroupMemberRemoved$1>;
|
|
1039
|
+
declare const addGroupMembers: BuildRESTFunction$7<typeof addGroupMembers$1>;
|
|
1040
|
+
declare const removeGroupMembers: BuildRESTFunction$7<typeof removeGroupMembers$1>;
|
|
1041
|
+
declare const listGroupMembers: BuildRESTFunction$7<typeof listGroupMembers$1>;
|
|
1042
|
+
declare const queryGroupMembers: BuildRESTFunction$7<typeof queryGroupMembers$1>;
|
|
1043
|
+
declare const listMemberships: BuildRESTFunction$7<typeof listMemberships$1>;
|
|
1044
|
+
declare const queryMemberships: BuildRESTFunction$7<typeof queryMemberships$1>;
|
|
1045
|
+
declare const onGroupMemberAdded: BuildEventDefinition$6<typeof onGroupMemberAdded$1>;
|
|
1046
|
+
declare const onGroupMemberRemoved: BuildEventDefinition$6<typeof onGroupMemberRemoved$1>;
|
|
1004
1047
|
|
|
1005
1048
|
declare const context$7_addGroupMembers: typeof addGroupMembers;
|
|
1006
1049
|
declare const context$7_listGroupMembers: typeof listGroupMembers;
|
|
@@ -1509,21 +1552,64 @@ interface GroupRequestsQueryBuilder {
|
|
|
1509
1552
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
1510
1553
|
}
|
|
1511
1554
|
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1555
|
+
type RESTFunctionDescriptor$6<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$6) => T;
|
|
1556
|
+
interface HttpClient$6 {
|
|
1557
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
1558
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1559
|
+
}
|
|
1560
|
+
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
1561
|
+
type HttpResponse$6<T = any> = {
|
|
1562
|
+
data: T;
|
|
1563
|
+
status: number;
|
|
1564
|
+
statusText: string;
|
|
1565
|
+
headers: any;
|
|
1566
|
+
request?: any;
|
|
1567
|
+
};
|
|
1568
|
+
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
1569
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1570
|
+
url: string;
|
|
1571
|
+
data?: Data;
|
|
1572
|
+
params?: URLSearchParams;
|
|
1573
|
+
} & APIMetadata$6;
|
|
1574
|
+
type APIMetadata$6 = {
|
|
1575
|
+
methodFqn?: string;
|
|
1576
|
+
entityFqdn?: string;
|
|
1577
|
+
packageName?: string;
|
|
1578
|
+
};
|
|
1579
|
+
type BuildRESTFunction$6<T extends RESTFunctionDescriptor$6> = T extends RESTFunctionDescriptor$6<infer U> ? U : never;
|
|
1580
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
1581
|
+
__type: 'event-definition';
|
|
1582
|
+
type: Type;
|
|
1583
|
+
isDomainEvent?: boolean;
|
|
1584
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1585
|
+
__payload: Payload;
|
|
1586
|
+
};
|
|
1587
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
1588
|
+
type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
|
|
1589
|
+
type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
|
|
1590
|
+
|
|
1591
|
+
declare global {
|
|
1592
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1593
|
+
interface SymbolConstructor {
|
|
1594
|
+
readonly observable: symbol;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare function approveGroupRequests$1(httpClient: HttpClient$6): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
1599
|
+
declare function rejectGroupRequests$1(httpClient: HttpClient$6): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
1600
|
+
declare function listGroupRequests$1(httpClient: HttpClient$6): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
1601
|
+
declare function queryGroupRequests$1(httpClient: HttpClient$6): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
1602
|
+
declare const onGroupRequestCreated$1: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
1603
|
+
declare const onGroupRequestApproved$1: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
1604
|
+
declare const onGroupRequestRejected$1: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
1519
1605
|
|
|
1520
|
-
declare const approveGroupRequests: BuildRESTFunction<typeof approveGroupRequests$1>;
|
|
1521
|
-
declare const rejectGroupRequests: BuildRESTFunction<typeof rejectGroupRequests$1>;
|
|
1522
|
-
declare const listGroupRequests: BuildRESTFunction<typeof listGroupRequests$1>;
|
|
1523
|
-
declare const queryGroupRequests: BuildRESTFunction<typeof queryGroupRequests$1>;
|
|
1524
|
-
declare const onGroupRequestCreated: BuildEventDefinition<typeof onGroupRequestCreated$1>;
|
|
1525
|
-
declare const onGroupRequestApproved: BuildEventDefinition<typeof onGroupRequestApproved$1>;
|
|
1526
|
-
declare const onGroupRequestRejected: BuildEventDefinition<typeof onGroupRequestRejected$1>;
|
|
1606
|
+
declare const approveGroupRequests: BuildRESTFunction$6<typeof approveGroupRequests$1>;
|
|
1607
|
+
declare const rejectGroupRequests: BuildRESTFunction$6<typeof rejectGroupRequests$1>;
|
|
1608
|
+
declare const listGroupRequests: BuildRESTFunction$6<typeof listGroupRequests$1>;
|
|
1609
|
+
declare const queryGroupRequests: BuildRESTFunction$6<typeof queryGroupRequests$1>;
|
|
1610
|
+
declare const onGroupRequestCreated: BuildEventDefinition$5<typeof onGroupRequestCreated$1>;
|
|
1611
|
+
declare const onGroupRequestApproved: BuildEventDefinition$5<typeof onGroupRequestApproved$1>;
|
|
1612
|
+
declare const onGroupRequestRejected: BuildEventDefinition$5<typeof onGroupRequestRejected$1>;
|
|
1527
1613
|
|
|
1528
1614
|
declare const context$6_approveGroupRequests: typeof approveGroupRequests;
|
|
1529
1615
|
declare const context$6_listGroupRequests: typeof listGroupRequests;
|
|
@@ -1739,15 +1825,58 @@ interface UnassignRoleOptions {
|
|
|
1739
1825
|
siteMemberIds?: string[];
|
|
1740
1826
|
}
|
|
1741
1827
|
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1828
|
+
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
1829
|
+
interface HttpClient$5 {
|
|
1830
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
1831
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1832
|
+
}
|
|
1833
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
1834
|
+
type HttpResponse$5<T = any> = {
|
|
1835
|
+
data: T;
|
|
1836
|
+
status: number;
|
|
1837
|
+
statusText: string;
|
|
1838
|
+
headers: any;
|
|
1839
|
+
request?: any;
|
|
1840
|
+
};
|
|
1841
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
1842
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1843
|
+
url: string;
|
|
1844
|
+
data?: Data;
|
|
1845
|
+
params?: URLSearchParams;
|
|
1846
|
+
} & APIMetadata$5;
|
|
1847
|
+
type APIMetadata$5 = {
|
|
1848
|
+
methodFqn?: string;
|
|
1849
|
+
entityFqdn?: string;
|
|
1850
|
+
packageName?: string;
|
|
1851
|
+
};
|
|
1852
|
+
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
1853
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
1854
|
+
__type: 'event-definition';
|
|
1855
|
+
type: Type;
|
|
1856
|
+
isDomainEvent?: boolean;
|
|
1857
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1858
|
+
__payload: Payload;
|
|
1859
|
+
};
|
|
1860
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
1861
|
+
type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
|
|
1862
|
+
type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
|
|
1746
1863
|
|
|
1747
|
-
declare
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1864
|
+
declare global {
|
|
1865
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1866
|
+
interface SymbolConstructor {
|
|
1867
|
+
readonly observable: symbol;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
declare function assignRole$1(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
1872
|
+
declare function unassignRole$1(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
1873
|
+
declare const onGroupRoleAssigned$1: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
1874
|
+
declare const onGroupRoleUnassigned$1: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
1875
|
+
|
|
1876
|
+
declare const assignRole: BuildRESTFunction$5<typeof assignRole$1>;
|
|
1877
|
+
declare const unassignRole: BuildRESTFunction$5<typeof unassignRole$1>;
|
|
1878
|
+
declare const onGroupRoleAssigned: BuildEventDefinition$4<typeof onGroupRoleAssigned$1>;
|
|
1879
|
+
declare const onGroupRoleUnassigned: BuildEventDefinition$4<typeof onGroupRoleUnassigned$1>;
|
|
1751
1880
|
|
|
1752
1881
|
declare const context$5_assignRole: typeof assignRole;
|
|
1753
1882
|
declare const context$5_onGroupRoleAssigned: typeof onGroupRoleAssigned;
|
|
@@ -1879,13 +2008,56 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
1879
2008
|
rules?: GroupRule[];
|
|
1880
2009
|
}
|
|
1881
2010
|
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
2011
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
2012
|
+
interface HttpClient$4 {
|
|
2013
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
2014
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2015
|
+
}
|
|
2016
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
2017
|
+
type HttpResponse$4<T = any> = {
|
|
2018
|
+
data: T;
|
|
2019
|
+
status: number;
|
|
2020
|
+
statusText: string;
|
|
2021
|
+
headers: any;
|
|
2022
|
+
request?: any;
|
|
2023
|
+
};
|
|
2024
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
2025
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2026
|
+
url: string;
|
|
2027
|
+
data?: Data;
|
|
2028
|
+
params?: URLSearchParams;
|
|
2029
|
+
} & APIMetadata$4;
|
|
2030
|
+
type APIMetadata$4 = {
|
|
2031
|
+
methodFqn?: string;
|
|
2032
|
+
entityFqdn?: string;
|
|
2033
|
+
packageName?: string;
|
|
2034
|
+
};
|
|
2035
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
2036
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
2037
|
+
__type: 'event-definition';
|
|
2038
|
+
type: Type;
|
|
2039
|
+
isDomainEvent?: boolean;
|
|
2040
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2041
|
+
__payload: Payload;
|
|
2042
|
+
};
|
|
2043
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
2044
|
+
type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
|
|
2045
|
+
type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
|
|
2046
|
+
|
|
2047
|
+
declare global {
|
|
2048
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2049
|
+
interface SymbolConstructor {
|
|
2050
|
+
readonly observable: symbol;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
declare function listRules$1(httpClient: HttpClient$4): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
2055
|
+
declare function createOrReplaceAllRules$1(httpClient: HttpClient$4): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
2056
|
+
declare const onGroupRulesUpdated$1: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
1885
2057
|
|
|
1886
|
-
declare const listRules: BuildRESTFunction<typeof listRules$1>;
|
|
1887
|
-
declare const createOrReplaceAllRules: BuildRESTFunction<typeof createOrReplaceAllRules$1>;
|
|
1888
|
-
declare const onGroupRulesUpdated: BuildEventDefinition<typeof onGroupRulesUpdated$1>;
|
|
2058
|
+
declare const listRules: BuildRESTFunction$4<typeof listRules$1>;
|
|
2059
|
+
declare const createOrReplaceAllRules: BuildRESTFunction$4<typeof createOrReplaceAllRules$1>;
|
|
2060
|
+
declare const onGroupRulesUpdated: BuildEventDefinition$3<typeof onGroupRulesUpdated$1>;
|
|
1889
2061
|
|
|
1890
2062
|
declare const context$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
|
|
1891
2063
|
declare const context$4_listRules: typeof listRules;
|
|
@@ -2136,21 +2308,64 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
2136
2308
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
2137
2309
|
}
|
|
2138
2310
|
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2311
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
2312
|
+
interface HttpClient$3 {
|
|
2313
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
2314
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2315
|
+
}
|
|
2316
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
2317
|
+
type HttpResponse$3<T = any> = {
|
|
2318
|
+
data: T;
|
|
2319
|
+
status: number;
|
|
2320
|
+
statusText: string;
|
|
2321
|
+
headers: any;
|
|
2322
|
+
request?: any;
|
|
2323
|
+
};
|
|
2324
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
2325
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2326
|
+
url: string;
|
|
2327
|
+
data?: Data;
|
|
2328
|
+
params?: URLSearchParams;
|
|
2329
|
+
} & APIMetadata$3;
|
|
2330
|
+
type APIMetadata$3 = {
|
|
2331
|
+
methodFqn?: string;
|
|
2332
|
+
entityFqdn?: string;
|
|
2333
|
+
packageName?: string;
|
|
2334
|
+
};
|
|
2335
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
2336
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
2337
|
+
__type: 'event-definition';
|
|
2338
|
+
type: Type;
|
|
2339
|
+
isDomainEvent?: boolean;
|
|
2340
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2341
|
+
__payload: Payload;
|
|
2342
|
+
};
|
|
2343
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
2344
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
2345
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
2346
|
+
|
|
2347
|
+
declare global {
|
|
2348
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2349
|
+
interface SymbolConstructor {
|
|
2350
|
+
readonly observable: symbol;
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
declare function approveJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
2355
|
+
declare function rejectJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
2356
|
+
declare function listJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
2357
|
+
declare function queryJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
2358
|
+
declare const onJoinGroupRequestCreated$1: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
2359
|
+
declare const onJoinGroupRequestApproved$1: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
2360
|
+
declare const onJoinGroupRequestRejected$1: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
2146
2361
|
|
|
2147
|
-
declare const approveJoinGroupRequests: BuildRESTFunction<typeof approveJoinGroupRequests$1>;
|
|
2148
|
-
declare const rejectJoinGroupRequests: BuildRESTFunction<typeof rejectJoinGroupRequests$1>;
|
|
2149
|
-
declare const listJoinGroupRequests: BuildRESTFunction<typeof listJoinGroupRequests$1>;
|
|
2150
|
-
declare const queryJoinGroupRequests: BuildRESTFunction<typeof queryJoinGroupRequests$1>;
|
|
2151
|
-
declare const onJoinGroupRequestCreated: BuildEventDefinition<typeof onJoinGroupRequestCreated$1>;
|
|
2152
|
-
declare const onJoinGroupRequestApproved: BuildEventDefinition<typeof onJoinGroupRequestApproved$1>;
|
|
2153
|
-
declare const onJoinGroupRequestRejected: BuildEventDefinition<typeof onJoinGroupRequestRejected$1>;
|
|
2362
|
+
declare const approveJoinGroupRequests: BuildRESTFunction$3<typeof approveJoinGroupRequests$1>;
|
|
2363
|
+
declare const rejectJoinGroupRequests: BuildRESTFunction$3<typeof rejectJoinGroupRequests$1>;
|
|
2364
|
+
declare const listJoinGroupRequests: BuildRESTFunction$3<typeof listJoinGroupRequests$1>;
|
|
2365
|
+
declare const queryJoinGroupRequests: BuildRESTFunction$3<typeof queryJoinGroupRequests$1>;
|
|
2366
|
+
declare const onJoinGroupRequestCreated: BuildEventDefinition$2<typeof onJoinGroupRequestCreated$1>;
|
|
2367
|
+
declare const onJoinGroupRequestApproved: BuildEventDefinition$2<typeof onJoinGroupRequestApproved$1>;
|
|
2368
|
+
declare const onJoinGroupRequestRejected: BuildEventDefinition$2<typeof onJoinGroupRequestRejected$1>;
|
|
2154
2369
|
|
|
2155
2370
|
declare const context$3_approveJoinGroupRequests: typeof approveJoinGroupRequests;
|
|
2156
2371
|
declare const context$3_listJoinGroupRequests: typeof listJoinGroupRequests;
|
|
@@ -2256,13 +2471,46 @@ interface ListAnswersOptions {
|
|
|
2256
2471
|
paging?: Paging$2;
|
|
2257
2472
|
}
|
|
2258
2473
|
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2474
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
2475
|
+
interface HttpClient$2 {
|
|
2476
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2477
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2478
|
+
}
|
|
2479
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2480
|
+
type HttpResponse$2<T = any> = {
|
|
2481
|
+
data: T;
|
|
2482
|
+
status: number;
|
|
2483
|
+
statusText: string;
|
|
2484
|
+
headers: any;
|
|
2485
|
+
request?: any;
|
|
2486
|
+
};
|
|
2487
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2488
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2489
|
+
url: string;
|
|
2490
|
+
data?: Data;
|
|
2491
|
+
params?: URLSearchParams;
|
|
2492
|
+
} & APIMetadata$2;
|
|
2493
|
+
type APIMetadata$2 = {
|
|
2494
|
+
methodFqn?: string;
|
|
2495
|
+
entityFqdn?: string;
|
|
2496
|
+
packageName?: string;
|
|
2497
|
+
};
|
|
2498
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
2262
2499
|
|
|
2263
|
-
declare
|
|
2264
|
-
|
|
2265
|
-
|
|
2500
|
+
declare global {
|
|
2501
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2502
|
+
interface SymbolConstructor {
|
|
2503
|
+
readonly observable: symbol;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
declare function listMembershipQuestions$1(httpClient: HttpClient$2): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
2508
|
+
declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient$2): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
2509
|
+
declare function listAnswers$1(httpClient: HttpClient$2): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
2510
|
+
|
|
2511
|
+
declare const listMembershipQuestions: BuildRESTFunction$2<typeof listMembershipQuestions$1>;
|
|
2512
|
+
declare const createOrReplaceAllMembershipQuestions: BuildRESTFunction$2<typeof createOrReplaceAllMembershipQuestions$1>;
|
|
2513
|
+
declare const listAnswers: BuildRESTFunction$2<typeof listAnswers$1>;
|
|
2266
2514
|
|
|
2267
2515
|
declare const context$2_createOrReplaceAllMembershipQuestions: typeof createOrReplaceAllMembershipQuestions;
|
|
2268
2516
|
declare const context$2_listAnswers: typeof listAnswers;
|
|
@@ -2754,19 +3002,62 @@ interface QueryCreateRequestsOptions {
|
|
|
2754
3002
|
query?: Query$1;
|
|
2755
3003
|
}
|
|
2756
3004
|
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
3005
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
3006
|
+
interface HttpClient$1 {
|
|
3007
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
3008
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3009
|
+
}
|
|
3010
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
3011
|
+
type HttpResponse$1<T = any> = {
|
|
3012
|
+
data: T;
|
|
3013
|
+
status: number;
|
|
3014
|
+
statusText: string;
|
|
3015
|
+
headers: any;
|
|
3016
|
+
request?: any;
|
|
3017
|
+
};
|
|
3018
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
3019
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3020
|
+
url: string;
|
|
3021
|
+
data?: Data;
|
|
3022
|
+
params?: URLSearchParams;
|
|
3023
|
+
} & APIMetadata$1;
|
|
3024
|
+
type APIMetadata$1 = {
|
|
3025
|
+
methodFqn?: string;
|
|
3026
|
+
entityFqdn?: string;
|
|
3027
|
+
packageName?: string;
|
|
3028
|
+
};
|
|
3029
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
3030
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
3031
|
+
__type: 'event-definition';
|
|
3032
|
+
type: Type;
|
|
3033
|
+
isDomainEvent?: boolean;
|
|
3034
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3035
|
+
__payload: Payload;
|
|
3036
|
+
};
|
|
3037
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
3038
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
3039
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
3040
|
+
|
|
3041
|
+
declare global {
|
|
3042
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3043
|
+
interface SymbolConstructor {
|
|
3044
|
+
readonly observable: symbol;
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
declare function approveCreateRequests$1(httpClient: HttpClient$1): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
3049
|
+
declare function rejectCreateRequests$1(httpClient: HttpClient$1): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
3050
|
+
declare function listCreateRequests$1(httpClient: HttpClient$1): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
3051
|
+
declare function queryCreateRequests$1(httpClient: HttpClient$1): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
3052
|
+
declare const onCreateRequestApproved$1: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
3053
|
+
declare const onCreateRequestRejected$1: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
2763
3054
|
|
|
2764
|
-
declare const approveCreateRequests: BuildRESTFunction<typeof approveCreateRequests$1>;
|
|
2765
|
-
declare const rejectCreateRequests: BuildRESTFunction<typeof rejectCreateRequests$1>;
|
|
2766
|
-
declare const listCreateRequests: BuildRESTFunction<typeof listCreateRequests$1>;
|
|
2767
|
-
declare const queryCreateRequests: BuildRESTFunction<typeof queryCreateRequests$1>;
|
|
2768
|
-
declare const onCreateRequestApproved: BuildEventDefinition<typeof onCreateRequestApproved$1>;
|
|
2769
|
-
declare const onCreateRequestRejected: BuildEventDefinition<typeof onCreateRequestRejected$1>;
|
|
3055
|
+
declare const approveCreateRequests: BuildRESTFunction$1<typeof approveCreateRequests$1>;
|
|
3056
|
+
declare const rejectCreateRequests: BuildRESTFunction$1<typeof rejectCreateRequests$1>;
|
|
3057
|
+
declare const listCreateRequests: BuildRESTFunction$1<typeof listCreateRequests$1>;
|
|
3058
|
+
declare const queryCreateRequests: BuildRESTFunction$1<typeof queryCreateRequests$1>;
|
|
3059
|
+
declare const onCreateRequestApproved: BuildEventDefinition$1<typeof onCreateRequestApproved$1>;
|
|
3060
|
+
declare const onCreateRequestRejected: BuildEventDefinition$1<typeof onCreateRequestRejected$1>;
|
|
2770
3061
|
|
|
2771
3062
|
declare const context$1_approveCreateRequests: typeof approveCreateRequests;
|
|
2772
3063
|
declare const context$1_listCreateRequests: typeof listCreateRequests;
|
|
@@ -3024,6 +3315,49 @@ interface QueryJoinRequestsOptions {
|
|
|
3024
3315
|
query?: Query;
|
|
3025
3316
|
}
|
|
3026
3317
|
|
|
3318
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
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 BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
3343
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3344
|
+
__type: 'event-definition';
|
|
3345
|
+
type: Type;
|
|
3346
|
+
isDomainEvent?: boolean;
|
|
3347
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3348
|
+
__payload: Payload;
|
|
3349
|
+
};
|
|
3350
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3351
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
3352
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
3353
|
+
|
|
3354
|
+
declare global {
|
|
3355
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3356
|
+
interface SymbolConstructor {
|
|
3357
|
+
readonly observable: symbol;
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3027
3361
|
declare function approveJoinRequests$1(httpClient: HttpClient): (groupId: string, options: ApproveJoinRequestsOptions) => Promise<ApproveJoinRequestsResponse & ApproveJoinRequestsResponseNonNullableFields>;
|
|
3028
3362
|
declare function rejectJoinRequests$1(httpClient: HttpClient): (groupId: string, options?: RejectJoinRequestsOptions) => Promise<RejectJoinRequestsResponse & RejectJoinRequestsResponseNonNullableFields>;
|
|
3029
3363
|
declare function listJoinRequests$1(httpClient: HttpClient): (groupId: string, options?: ListJoinRequestsOptions) => Promise<ListJoinRequestsResponse & ListJoinRequestsResponseNonNullableFields>;
|
|
@@ -870,37 +870,37 @@ interface GroupsQueryBuilder {
|
|
|
870
870
|
find: () => Promise<GroupsQueryResult>;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
interface HttpClient {
|
|
874
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
873
|
+
interface HttpClient$8 {
|
|
874
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
875
875
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
876
876
|
}
|
|
877
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
878
|
-
type HttpResponse<T = any> = {
|
|
877
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
878
|
+
type HttpResponse$8<T = any> = {
|
|
879
879
|
data: T;
|
|
880
880
|
status: number;
|
|
881
881
|
statusText: string;
|
|
882
882
|
headers: any;
|
|
883
883
|
request?: any;
|
|
884
884
|
};
|
|
885
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
885
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
886
886
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
887
887
|
url: string;
|
|
888
888
|
data?: Data;
|
|
889
889
|
params?: URLSearchParams;
|
|
890
|
-
} & APIMetadata;
|
|
891
|
-
type APIMetadata = {
|
|
890
|
+
} & APIMetadata$8;
|
|
891
|
+
type APIMetadata$8 = {
|
|
892
892
|
methodFqn?: string;
|
|
893
893
|
entityFqdn?: string;
|
|
894
894
|
packageName?: string;
|
|
895
895
|
};
|
|
896
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
896
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
897
897
|
__type: 'event-definition';
|
|
898
898
|
type: Type;
|
|
899
899
|
isDomainEvent?: boolean;
|
|
900
900
|
transformations?: (envelope: unknown) => Payload;
|
|
901
901
|
__payload: Payload;
|
|
902
902
|
};
|
|
903
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
903
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
904
904
|
|
|
905
905
|
declare global {
|
|
906
906
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -912,7 +912,7 @@ declare global {
|
|
|
912
912
|
declare const __metadata$8: {
|
|
913
913
|
PACKAGE_NAME: string;
|
|
914
914
|
};
|
|
915
|
-
declare function createGroup(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
915
|
+
declare function createGroup(httpClient: HttpClient$8): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
916
916
|
privacyLevel: PrivacyStatus$2;
|
|
917
917
|
privacyStatus: PrivacyStatus$2;
|
|
918
918
|
coverImage?: {
|
|
@@ -929,7 +929,7 @@ declare function createGroup(httpClient: HttpClient): (group: Group$2, options?:
|
|
|
929
929
|
identityType: IdentityType$2;
|
|
930
930
|
} | undefined;
|
|
931
931
|
}>;
|
|
932
|
-
declare function updateGroup(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
932
|
+
declare function updateGroup(httpClient: HttpClient$8): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
933
933
|
privacyLevel: PrivacyStatus$2;
|
|
934
934
|
privacyStatus: PrivacyStatus$2;
|
|
935
935
|
coverImage?: {
|
|
@@ -946,8 +946,8 @@ declare function updateGroup(httpClient: HttpClient): (_id: string | null, group
|
|
|
946
946
|
identityType: IdentityType$2;
|
|
947
947
|
} | undefined;
|
|
948
948
|
}>;
|
|
949
|
-
declare function deleteGroup(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
950
|
-
declare function getGroup(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
949
|
+
declare function deleteGroup(httpClient: HttpClient$8): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
950
|
+
declare function getGroup(httpClient: HttpClient$8): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
951
951
|
privacyLevel: PrivacyStatus$2;
|
|
952
952
|
privacyStatus: PrivacyStatus$2;
|
|
953
953
|
coverImage?: {
|
|
@@ -964,14 +964,14 @@ declare function getGroup(httpClient: HttpClient): (groupId: string, options?: G
|
|
|
964
964
|
identityType: IdentityType$2;
|
|
965
965
|
} | undefined;
|
|
966
966
|
}>;
|
|
967
|
-
declare function getGroupBySlug(httpClient: HttpClient): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
968
|
-
declare function listGroups(httpClient: HttpClient): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
969
|
-
declare function queryGroups(httpClient: HttpClient): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
970
|
-
declare const onGroupCreated: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
971
|
-
declare const onGroupUpdated: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
972
|
-
declare const onGroupCoverChanged: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
973
|
-
declare const onGroupDescriptionChanged: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
974
|
-
declare const onGroupDeleted: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
967
|
+
declare function getGroupBySlug(httpClient: HttpClient$8): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
968
|
+
declare function listGroups(httpClient: HttpClient$8): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
969
|
+
declare function queryGroups(httpClient: HttpClient$8): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
970
|
+
declare const onGroupCreated: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
971
|
+
declare const onGroupUpdated: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
972
|
+
declare const onGroupCoverChanged: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
973
|
+
declare const onGroupDescriptionChanged: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
974
|
+
declare const onGroupDeleted: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
975
975
|
|
|
976
976
|
type index_d$8_ContentType = ContentType;
|
|
977
977
|
declare const index_d$8_ContentType: typeof ContentType;
|
|
@@ -1628,17 +1628,56 @@ interface QueryMembershipsOptions {
|
|
|
1628
1628
|
query?: Query$4;
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
|
+
interface HttpClient$7 {
|
|
1632
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
1633
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1634
|
+
}
|
|
1635
|
+
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
1636
|
+
type HttpResponse$7<T = any> = {
|
|
1637
|
+
data: T;
|
|
1638
|
+
status: number;
|
|
1639
|
+
statusText: string;
|
|
1640
|
+
headers: any;
|
|
1641
|
+
request?: any;
|
|
1642
|
+
};
|
|
1643
|
+
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
1644
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1645
|
+
url: string;
|
|
1646
|
+
data?: Data;
|
|
1647
|
+
params?: URLSearchParams;
|
|
1648
|
+
} & APIMetadata$7;
|
|
1649
|
+
type APIMetadata$7 = {
|
|
1650
|
+
methodFqn?: string;
|
|
1651
|
+
entityFqdn?: string;
|
|
1652
|
+
packageName?: string;
|
|
1653
|
+
};
|
|
1654
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
1655
|
+
__type: 'event-definition';
|
|
1656
|
+
type: Type;
|
|
1657
|
+
isDomainEvent?: boolean;
|
|
1658
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1659
|
+
__payload: Payload;
|
|
1660
|
+
};
|
|
1661
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
1662
|
+
|
|
1663
|
+
declare global {
|
|
1664
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1665
|
+
interface SymbolConstructor {
|
|
1666
|
+
readonly observable: symbol;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1631
1670
|
declare const __metadata$7: {
|
|
1632
1671
|
PACKAGE_NAME: string;
|
|
1633
1672
|
};
|
|
1634
|
-
declare function addGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1635
|
-
declare function removeGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1636
|
-
declare function listGroupMembers(httpClient: HttpClient): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1637
|
-
declare function queryGroupMembers(httpClient: HttpClient): (groupId: string) => MembersQueryBuilder;
|
|
1638
|
-
declare function listMemberships(httpClient: HttpClient): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1639
|
-
declare function queryMemberships(httpClient: HttpClient): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1640
|
-
declare const onGroupMemberAdded: EventDefinition<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1641
|
-
declare const onGroupMemberRemoved: EventDefinition<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1673
|
+
declare function addGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1674
|
+
declare function removeGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1675
|
+
declare function listGroupMembers(httpClient: HttpClient$7): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1676
|
+
declare function queryGroupMembers(httpClient: HttpClient$7): (groupId: string) => MembersQueryBuilder;
|
|
1677
|
+
declare function listMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1678
|
+
declare function queryMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1679
|
+
declare const onGroupMemberAdded: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1680
|
+
declare const onGroupMemberRemoved: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1642
1681
|
|
|
1643
1682
|
type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
|
|
1644
1683
|
type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
|
|
@@ -2427,16 +2466,55 @@ interface GroupRequestsQueryBuilder {
|
|
|
2427
2466
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2428
2467
|
}
|
|
2429
2468
|
|
|
2469
|
+
interface HttpClient$6 {
|
|
2470
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
2471
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2472
|
+
}
|
|
2473
|
+
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
2474
|
+
type HttpResponse$6<T = any> = {
|
|
2475
|
+
data: T;
|
|
2476
|
+
status: number;
|
|
2477
|
+
statusText: string;
|
|
2478
|
+
headers: any;
|
|
2479
|
+
request?: any;
|
|
2480
|
+
};
|
|
2481
|
+
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
2482
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2483
|
+
url: string;
|
|
2484
|
+
data?: Data;
|
|
2485
|
+
params?: URLSearchParams;
|
|
2486
|
+
} & APIMetadata$6;
|
|
2487
|
+
type APIMetadata$6 = {
|
|
2488
|
+
methodFqn?: string;
|
|
2489
|
+
entityFqdn?: string;
|
|
2490
|
+
packageName?: string;
|
|
2491
|
+
};
|
|
2492
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
2493
|
+
__type: 'event-definition';
|
|
2494
|
+
type: Type;
|
|
2495
|
+
isDomainEvent?: boolean;
|
|
2496
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2497
|
+
__payload: Payload;
|
|
2498
|
+
};
|
|
2499
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
2500
|
+
|
|
2501
|
+
declare global {
|
|
2502
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2503
|
+
interface SymbolConstructor {
|
|
2504
|
+
readonly observable: symbol;
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2430
2508
|
declare const __metadata$6: {
|
|
2431
2509
|
PACKAGE_NAME: string;
|
|
2432
2510
|
};
|
|
2433
|
-
declare function approveGroupRequests(httpClient: HttpClient): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2434
|
-
declare function rejectGroupRequests(httpClient: HttpClient): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2435
|
-
declare function listGroupRequests(httpClient: HttpClient): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2436
|
-
declare function queryGroupRequests(httpClient: HttpClient): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
2437
|
-
declare const onGroupRequestCreated: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2438
|
-
declare const onGroupRequestApproved: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2439
|
-
declare const onGroupRequestRejected: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2511
|
+
declare function approveGroupRequests(httpClient: HttpClient$6): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2512
|
+
declare function rejectGroupRequests(httpClient: HttpClient$6): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2513
|
+
declare function listGroupRequests(httpClient: HttpClient$6): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2514
|
+
declare function queryGroupRequests(httpClient: HttpClient$6): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
2515
|
+
declare const onGroupRequestCreated: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2516
|
+
declare const onGroupRequestApproved: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2517
|
+
declare const onGroupRequestRejected: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2440
2518
|
|
|
2441
2519
|
type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
|
|
2442
2520
|
type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
|
|
@@ -2794,13 +2872,52 @@ interface UnassignRoleOptions {
|
|
|
2794
2872
|
siteMemberIds?: string[];
|
|
2795
2873
|
}
|
|
2796
2874
|
|
|
2875
|
+
interface HttpClient$5 {
|
|
2876
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
2877
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2878
|
+
}
|
|
2879
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
2880
|
+
type HttpResponse$5<T = any> = {
|
|
2881
|
+
data: T;
|
|
2882
|
+
status: number;
|
|
2883
|
+
statusText: string;
|
|
2884
|
+
headers: any;
|
|
2885
|
+
request?: any;
|
|
2886
|
+
};
|
|
2887
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
2888
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2889
|
+
url: string;
|
|
2890
|
+
data?: Data;
|
|
2891
|
+
params?: URLSearchParams;
|
|
2892
|
+
} & APIMetadata$5;
|
|
2893
|
+
type APIMetadata$5 = {
|
|
2894
|
+
methodFqn?: string;
|
|
2895
|
+
entityFqdn?: string;
|
|
2896
|
+
packageName?: string;
|
|
2897
|
+
};
|
|
2898
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
2899
|
+
__type: 'event-definition';
|
|
2900
|
+
type: Type;
|
|
2901
|
+
isDomainEvent?: boolean;
|
|
2902
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2903
|
+
__payload: Payload;
|
|
2904
|
+
};
|
|
2905
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
2906
|
+
|
|
2907
|
+
declare global {
|
|
2908
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2909
|
+
interface SymbolConstructor {
|
|
2910
|
+
readonly observable: symbol;
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2797
2914
|
declare const __metadata$5: {
|
|
2798
2915
|
PACKAGE_NAME: string;
|
|
2799
2916
|
};
|
|
2800
|
-
declare function assignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
2801
|
-
declare function unassignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
2802
|
-
declare const onGroupRoleAssigned: EventDefinition<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
2803
|
-
declare const onGroupRoleUnassigned: EventDefinition<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
2917
|
+
declare function assignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
2918
|
+
declare function unassignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
2919
|
+
declare const onGroupRoleAssigned: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
2920
|
+
declare const onGroupRoleUnassigned: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
2804
2921
|
|
|
2805
2922
|
type index_d$5_AssignRoleOptions = AssignRoleOptions;
|
|
2806
2923
|
type index_d$5_AssignRoleRequest = AssignRoleRequest;
|
|
@@ -3044,12 +3161,51 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
3044
3161
|
rules?: GroupRule[];
|
|
3045
3162
|
}
|
|
3046
3163
|
|
|
3164
|
+
interface HttpClient$4 {
|
|
3165
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
3166
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3167
|
+
}
|
|
3168
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
3169
|
+
type HttpResponse$4<T = any> = {
|
|
3170
|
+
data: T;
|
|
3171
|
+
status: number;
|
|
3172
|
+
statusText: string;
|
|
3173
|
+
headers: any;
|
|
3174
|
+
request?: any;
|
|
3175
|
+
};
|
|
3176
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
3177
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3178
|
+
url: string;
|
|
3179
|
+
data?: Data;
|
|
3180
|
+
params?: URLSearchParams;
|
|
3181
|
+
} & APIMetadata$4;
|
|
3182
|
+
type APIMetadata$4 = {
|
|
3183
|
+
methodFqn?: string;
|
|
3184
|
+
entityFqdn?: string;
|
|
3185
|
+
packageName?: string;
|
|
3186
|
+
};
|
|
3187
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
3188
|
+
__type: 'event-definition';
|
|
3189
|
+
type: Type;
|
|
3190
|
+
isDomainEvent?: boolean;
|
|
3191
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3192
|
+
__payload: Payload;
|
|
3193
|
+
};
|
|
3194
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
3195
|
+
|
|
3196
|
+
declare global {
|
|
3197
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3198
|
+
interface SymbolConstructor {
|
|
3199
|
+
readonly observable: symbol;
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3047
3203
|
declare const __metadata$4: {
|
|
3048
3204
|
PACKAGE_NAME: string;
|
|
3049
3205
|
};
|
|
3050
|
-
declare function listRules(httpClient: HttpClient): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3051
|
-
declare function createOrReplaceAllRules(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3052
|
-
declare const onGroupRulesUpdated: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3206
|
+
declare function listRules(httpClient: HttpClient$4): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3207
|
+
declare function createOrReplaceAllRules(httpClient: HttpClient$4): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3208
|
+
declare const onGroupRulesUpdated: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3053
3209
|
|
|
3054
3210
|
type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
|
|
3055
3211
|
type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
|
|
@@ -3623,16 +3779,55 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3623
3779
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3624
3780
|
}
|
|
3625
3781
|
|
|
3782
|
+
interface HttpClient$3 {
|
|
3783
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
3784
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3785
|
+
}
|
|
3786
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
3787
|
+
type HttpResponse$3<T = any> = {
|
|
3788
|
+
data: T;
|
|
3789
|
+
status: number;
|
|
3790
|
+
statusText: string;
|
|
3791
|
+
headers: any;
|
|
3792
|
+
request?: any;
|
|
3793
|
+
};
|
|
3794
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
3795
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3796
|
+
url: string;
|
|
3797
|
+
data?: Data;
|
|
3798
|
+
params?: URLSearchParams;
|
|
3799
|
+
} & APIMetadata$3;
|
|
3800
|
+
type APIMetadata$3 = {
|
|
3801
|
+
methodFqn?: string;
|
|
3802
|
+
entityFqdn?: string;
|
|
3803
|
+
packageName?: string;
|
|
3804
|
+
};
|
|
3805
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
3806
|
+
__type: 'event-definition';
|
|
3807
|
+
type: Type;
|
|
3808
|
+
isDomainEvent?: boolean;
|
|
3809
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3810
|
+
__payload: Payload;
|
|
3811
|
+
};
|
|
3812
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
3813
|
+
|
|
3814
|
+
declare global {
|
|
3815
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3816
|
+
interface SymbolConstructor {
|
|
3817
|
+
readonly observable: symbol;
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3626
3821
|
declare const __metadata$3: {
|
|
3627
3822
|
PACKAGE_NAME: string;
|
|
3628
3823
|
};
|
|
3629
|
-
declare function approveJoinGroupRequests(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3630
|
-
declare function rejectJoinGroupRequests(httpClient: HttpClient): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3631
|
-
declare function listJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3632
|
-
declare function queryJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
3633
|
-
declare const onJoinGroupRequestCreated: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3634
|
-
declare const onJoinGroupRequestApproved: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3635
|
-
declare const onJoinGroupRequestRejected: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3824
|
+
declare function approveJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3825
|
+
declare function rejectJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3826
|
+
declare function listJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3827
|
+
declare function queryJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
3828
|
+
declare const onJoinGroupRequestCreated: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3829
|
+
declare const onJoinGroupRequestApproved: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3830
|
+
declare const onJoinGroupRequestRejected: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3636
3831
|
|
|
3637
3832
|
type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
|
|
3638
3833
|
type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
|
|
@@ -3816,12 +4011,43 @@ interface ListAnswersOptions {
|
|
|
3816
4011
|
paging?: Paging$2;
|
|
3817
4012
|
}
|
|
3818
4013
|
|
|
4014
|
+
interface HttpClient$2 {
|
|
4015
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
4016
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4017
|
+
}
|
|
4018
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
4019
|
+
type HttpResponse$2<T = any> = {
|
|
4020
|
+
data: T;
|
|
4021
|
+
status: number;
|
|
4022
|
+
statusText: string;
|
|
4023
|
+
headers: any;
|
|
4024
|
+
request?: any;
|
|
4025
|
+
};
|
|
4026
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
4027
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4028
|
+
url: string;
|
|
4029
|
+
data?: Data;
|
|
4030
|
+
params?: URLSearchParams;
|
|
4031
|
+
} & APIMetadata$2;
|
|
4032
|
+
type APIMetadata$2 = {
|
|
4033
|
+
methodFqn?: string;
|
|
4034
|
+
entityFqdn?: string;
|
|
4035
|
+
packageName?: string;
|
|
4036
|
+
};
|
|
4037
|
+
|
|
4038
|
+
declare global {
|
|
4039
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4040
|
+
interface SymbolConstructor {
|
|
4041
|
+
readonly observable: symbol;
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
|
|
3819
4045
|
declare const __metadata$2: {
|
|
3820
4046
|
PACKAGE_NAME: string;
|
|
3821
4047
|
};
|
|
3822
|
-
declare function listMembershipQuestions(httpClient: HttpClient): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
3823
|
-
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
3824
|
-
declare function listAnswers(httpClient: HttpClient): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
4048
|
+
declare function listMembershipQuestions(httpClient: HttpClient$2): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
4049
|
+
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient$2): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
4050
|
+
declare function listAnswers(httpClient: HttpClient$2): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
3825
4051
|
|
|
3826
4052
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
3827
4053
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4493,15 +4719,54 @@ interface QueryCreateRequestsOptions {
|
|
|
4493
4719
|
query?: Query$1;
|
|
4494
4720
|
}
|
|
4495
4721
|
|
|
4722
|
+
interface HttpClient$1 {
|
|
4723
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4724
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4725
|
+
}
|
|
4726
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4727
|
+
type HttpResponse$1<T = any> = {
|
|
4728
|
+
data: T;
|
|
4729
|
+
status: number;
|
|
4730
|
+
statusText: string;
|
|
4731
|
+
headers: any;
|
|
4732
|
+
request?: any;
|
|
4733
|
+
};
|
|
4734
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4735
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4736
|
+
url: string;
|
|
4737
|
+
data?: Data;
|
|
4738
|
+
params?: URLSearchParams;
|
|
4739
|
+
} & APIMetadata$1;
|
|
4740
|
+
type APIMetadata$1 = {
|
|
4741
|
+
methodFqn?: string;
|
|
4742
|
+
entityFqdn?: string;
|
|
4743
|
+
packageName?: string;
|
|
4744
|
+
};
|
|
4745
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
4746
|
+
__type: 'event-definition';
|
|
4747
|
+
type: Type;
|
|
4748
|
+
isDomainEvent?: boolean;
|
|
4749
|
+
transformations?: (envelope: unknown) => Payload;
|
|
4750
|
+
__payload: Payload;
|
|
4751
|
+
};
|
|
4752
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
4753
|
+
|
|
4754
|
+
declare global {
|
|
4755
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4756
|
+
interface SymbolConstructor {
|
|
4757
|
+
readonly observable: symbol;
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4496
4761
|
declare const __metadata$1: {
|
|
4497
4762
|
PACKAGE_NAME: string;
|
|
4498
4763
|
};
|
|
4499
|
-
declare function approveCreateRequests(httpClient: HttpClient): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4500
|
-
declare function rejectCreateRequests(httpClient: HttpClient): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4501
|
-
declare function listCreateRequests(httpClient: HttpClient): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4502
|
-
declare function queryCreateRequests(httpClient: HttpClient): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4503
|
-
declare const onCreateRequestApproved: EventDefinition<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4504
|
-
declare const onCreateRequestRejected: EventDefinition<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4764
|
+
declare function approveCreateRequests(httpClient: HttpClient$1): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4765
|
+
declare function rejectCreateRequests(httpClient: HttpClient$1): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4766
|
+
declare function listCreateRequests(httpClient: HttpClient$1): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4767
|
+
declare function queryCreateRequests(httpClient: HttpClient$1): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4768
|
+
declare const onCreateRequestApproved: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4769
|
+
declare const onCreateRequestRejected: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4505
4770
|
|
|
4506
4771
|
type index_d$1_AccessRestriction = AccessRestriction;
|
|
4507
4772
|
type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
|
|
@@ -4953,6 +5218,45 @@ interface QueryJoinRequestsOptions {
|
|
|
4953
5218
|
query?: Query;
|
|
4954
5219
|
}
|
|
4955
5220
|
|
|
5221
|
+
interface HttpClient {
|
|
5222
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5223
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
5224
|
+
}
|
|
5225
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5226
|
+
type HttpResponse<T = any> = {
|
|
5227
|
+
data: T;
|
|
5228
|
+
status: number;
|
|
5229
|
+
statusText: string;
|
|
5230
|
+
headers: any;
|
|
5231
|
+
request?: any;
|
|
5232
|
+
};
|
|
5233
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5234
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5235
|
+
url: string;
|
|
5236
|
+
data?: Data;
|
|
5237
|
+
params?: URLSearchParams;
|
|
5238
|
+
} & APIMetadata;
|
|
5239
|
+
type APIMetadata = {
|
|
5240
|
+
methodFqn?: string;
|
|
5241
|
+
entityFqdn?: string;
|
|
5242
|
+
packageName?: string;
|
|
5243
|
+
};
|
|
5244
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5245
|
+
__type: 'event-definition';
|
|
5246
|
+
type: Type;
|
|
5247
|
+
isDomainEvent?: boolean;
|
|
5248
|
+
transformations?: (envelope: unknown) => Payload;
|
|
5249
|
+
__payload: Payload;
|
|
5250
|
+
};
|
|
5251
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5252
|
+
|
|
5253
|
+
declare global {
|
|
5254
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5255
|
+
interface SymbolConstructor {
|
|
5256
|
+
readonly observable: symbol;
|
|
5257
|
+
}
|
|
5258
|
+
}
|
|
5259
|
+
|
|
4956
5260
|
declare const __metadata: {
|
|
4957
5261
|
PACKAGE_NAME: string;
|
|
4958
5262
|
};
|