@wix/groups 1.0.99 → 1.0.101
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/build/cjs/context.js +0 -1
- package/build/cjs/index.js +0 -1
- package/build/cjs/meta.js +0 -1
- package/package.json +11 -11
- package/type-bundles/context.bundle.d.ts +444 -102
- package/type-bundles/index.bundle.d.ts +444 -102
- package/build/cjs/context.js.map +0 -1
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/meta.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$8<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$8) => T;
|
|
2
|
+
interface HttpClient$8 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
8
|
+
type HttpResponse$8<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$8;
|
|
21
|
+
type APIMetadata$8 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
26
|
+
type BuildRESTFunction$8<T extends RESTFunctionDescriptor$8> = T extends RESTFunctionDescriptor$8<infer U> ? U : never;
|
|
27
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
30
30
|
isDomainEvent?: boolean;
|
|
31
31
|
transformations?: (envelope: unknown) => Payload;
|
|
32
32
|
__payload: Payload;
|
|
33
33
|
};
|
|
34
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
34
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
35
|
+
type EventHandler$7<T extends EventDefinition$7> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition$7<T extends EventDefinition$7<any, string>> = (handler: EventHandler$7<T>) => void;
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -865,7 +865,7 @@ interface GroupsQueryBuilder {
|
|
|
865
865
|
find: () => Promise<GroupsQueryResult>;
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
declare function createGroup$1(httpClient: HttpClient): CreateGroupSignature;
|
|
868
|
+
declare function createGroup$1(httpClient: HttpClient$8): CreateGroupSignature;
|
|
869
869
|
interface CreateGroupSignature {
|
|
870
870
|
/**
|
|
871
871
|
* Creates a group.
|
|
@@ -880,7 +880,7 @@ interface CreateGroupSignature {
|
|
|
880
880
|
*/
|
|
881
881
|
(group: Group$2, options?: CreateGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
882
882
|
}
|
|
883
|
-
declare function updateGroup$1(httpClient: HttpClient): UpdateGroupSignature;
|
|
883
|
+
declare function updateGroup$1(httpClient: HttpClient$8): UpdateGroupSignature;
|
|
884
884
|
interface UpdateGroupSignature {
|
|
885
885
|
/**
|
|
886
886
|
* Updates a group.
|
|
@@ -898,7 +898,7 @@ interface UpdateGroupSignature {
|
|
|
898
898
|
*/
|
|
899
899
|
(_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
900
900
|
}
|
|
901
|
-
declare function deleteGroup$1(httpClient: HttpClient): DeleteGroupSignature;
|
|
901
|
+
declare function deleteGroup$1(httpClient: HttpClient$8): DeleteGroupSignature;
|
|
902
902
|
interface DeleteGroupSignature {
|
|
903
903
|
/**
|
|
904
904
|
* Deletes a group.
|
|
@@ -910,7 +910,7 @@ interface DeleteGroupSignature {
|
|
|
910
910
|
*/
|
|
911
911
|
(groupId: string): Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
912
912
|
}
|
|
913
|
-
declare function getGroup$1(httpClient: HttpClient): GetGroupSignature;
|
|
913
|
+
declare function getGroup$1(httpClient: HttpClient$8): GetGroupSignature;
|
|
914
914
|
interface GetGroupSignature {
|
|
915
915
|
/**
|
|
916
916
|
* Gets a group by ID.
|
|
@@ -924,7 +924,7 @@ interface GetGroupSignature {
|
|
|
924
924
|
*/
|
|
925
925
|
(groupId: string, options?: GetGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
926
926
|
}
|
|
927
|
-
declare function getGroupBySlug$1(httpClient: HttpClient): GetGroupBySlugSignature;
|
|
927
|
+
declare function getGroupBySlug$1(httpClient: HttpClient$8): GetGroupBySlugSignature;
|
|
928
928
|
interface GetGroupBySlugSignature {
|
|
929
929
|
/**
|
|
930
930
|
* Gets a group by slug.
|
|
@@ -937,7 +937,7 @@ interface GetGroupBySlugSignature {
|
|
|
937
937
|
*/
|
|
938
938
|
(slug: string, options?: GetGroupBySlugOptions | undefined): Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
939
939
|
}
|
|
940
|
-
declare function listGroups$1(httpClient: HttpClient): ListGroupsSignature;
|
|
940
|
+
declare function listGroups$1(httpClient: HttpClient$8): ListGroupsSignature;
|
|
941
941
|
interface ListGroupsSignature {
|
|
942
942
|
/**
|
|
943
943
|
* Lists groups.
|
|
@@ -953,7 +953,7 @@ interface ListGroupsSignature {
|
|
|
953
953
|
*/
|
|
954
954
|
(options?: ListGroupsOptions | undefined): Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
955
955
|
}
|
|
956
|
-
declare function queryGroups$1(httpClient: HttpClient): QueryGroupsSignature;
|
|
956
|
+
declare function queryGroups$1(httpClient: HttpClient$8): QueryGroupsSignature;
|
|
957
957
|
interface QueryGroupsSignature {
|
|
958
958
|
/**
|
|
959
959
|
* Creates a query to retrieve a list of groups.
|
|
@@ -965,21 +965,21 @@ interface QueryGroupsSignature {
|
|
|
965
965
|
*/
|
|
966
966
|
(options?: QueryGroupsOptions | undefined): GroupsQueryBuilder;
|
|
967
967
|
}
|
|
968
|
-
declare const onGroupCreated$1: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
969
|
-
declare const onGroupUpdated$1: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
970
|
-
declare const onGroupCoverChanged$1: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
971
|
-
declare const onGroupDescriptionChanged$1: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
972
|
-
declare const onGroupDeleted$1: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
968
|
+
declare const onGroupCreated$1: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
969
|
+
declare const onGroupUpdated$1: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
970
|
+
declare const onGroupCoverChanged$1: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
971
|
+
declare const onGroupDescriptionChanged$1: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
972
|
+
declare const onGroupDeleted$1: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
973
973
|
|
|
974
|
-
declare function createEventModule$7<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
974
|
+
declare function createEventModule$7<T extends EventDefinition$7<any, string>>(eventDefinition: T): BuildEventDefinition$7<T> & T;
|
|
975
975
|
|
|
976
|
-
declare const createGroup: BuildRESTFunction<typeof createGroup$1> & typeof createGroup$1;
|
|
977
|
-
declare const updateGroup: BuildRESTFunction<typeof updateGroup$1> & typeof updateGroup$1;
|
|
978
|
-
declare const deleteGroup: BuildRESTFunction<typeof deleteGroup$1> & typeof deleteGroup$1;
|
|
979
|
-
declare const getGroup: BuildRESTFunction<typeof getGroup$1> & typeof getGroup$1;
|
|
980
|
-
declare const getGroupBySlug: BuildRESTFunction<typeof getGroupBySlug$1> & typeof getGroupBySlug$1;
|
|
981
|
-
declare const listGroups: BuildRESTFunction<typeof listGroups$1> & typeof listGroups$1;
|
|
982
|
-
declare const queryGroups: BuildRESTFunction<typeof queryGroups$1> & typeof queryGroups$1;
|
|
976
|
+
declare const createGroup: BuildRESTFunction$8<typeof createGroup$1> & typeof createGroup$1;
|
|
977
|
+
declare const updateGroup: BuildRESTFunction$8<typeof updateGroup$1> & typeof updateGroup$1;
|
|
978
|
+
declare const deleteGroup: BuildRESTFunction$8<typeof deleteGroup$1> & typeof deleteGroup$1;
|
|
979
|
+
declare const getGroup: BuildRESTFunction$8<typeof getGroup$1> & typeof getGroup$1;
|
|
980
|
+
declare const getGroupBySlug: BuildRESTFunction$8<typeof getGroupBySlug$1> & typeof getGroupBySlug$1;
|
|
981
|
+
declare const listGroups: BuildRESTFunction$8<typeof listGroups$1> & typeof listGroups$1;
|
|
982
|
+
declare const queryGroups: BuildRESTFunction$8<typeof queryGroups$1> & typeof queryGroups$1;
|
|
983
983
|
|
|
984
984
|
type _publicOnGroupCreatedType = typeof onGroupCreated$1;
|
|
985
985
|
/**
|
|
@@ -1089,6 +1089,50 @@ declare namespace context$8 {
|
|
|
1089
1089
|
export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, type context$8_BMFeatures as BMFeatures, context$8_BMFeaturesBMFeatures as BMFeaturesBMFeatures, type BaseEventMetadata$7 as BaseEventMetadata, context$8_ContentType as ContentType, type CoverImage$2 as CoverImage, type context$8_CreateGroupOptions as CreateGroupOptions, type context$8_CreateGroupRequest as CreateGroupRequest, type context$8_CreateGroupResponse as CreateGroupResponse, type context$8_CreateGroupResponseNonNullableFields as CreateGroupResponseNonNullableFields, type context$8_DeleteGroupRequest as DeleteGroupRequest, type context$8_DeleteGroupResponse as DeleteGroupResponse, type context$8_DeleteGroupResponseNonNullableFields as DeleteGroupResponseNonNullableFields, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type Events$2 as Events, type context$8_GetGroupBMFeaturesRequest as GetGroupBMFeaturesRequest, type context$8_GetGroupBMFeaturesResponse as GetGroupBMFeaturesResponse, type context$8_GetGroupBySlugOptions as GetGroupBySlugOptions, type context$8_GetGroupBySlugRequest as GetGroupBySlugRequest, type context$8_GetGroupBySlugResponse as GetGroupBySlugResponse, type context$8_GetGroupBySlugResponseNonNullableFields as GetGroupBySlugResponseNonNullableFields, type context$8_GetGroupMembersGroupIdsRequest as GetGroupMembersGroupIdsRequest, type context$8_GetGroupMembersGroupIdsResponse as GetGroupMembersGroupIdsResponse, type context$8_GetGroupOptions as GetGroupOptions, type context$8_GetGroupRequest as GetGroupRequest, type context$8_GetGroupResponse as GetGroupResponse, type context$8_GetGroupResponseNonNullableFields as GetGroupResponseNonNullableFields, type Group$2 as Group, type context$8_GroupCoverChanged as GroupCoverChanged, type context$8_GroupCoverChangedEnvelope as GroupCoverChangedEnvelope, type context$8_GroupCreatedEnvelope as GroupCreatedEnvelope, type context$8_GroupDeletedEnvelope as GroupDeletedEnvelope, type context$8_GroupDescriptionChanged as GroupDescriptionChanged, type context$8_GroupDescriptionChangedEnvelope as GroupDescriptionChangedEnvelope, type GroupDetails$2 as GroupDetails, type GroupDetailsPosition$2 as GroupDetailsPosition, type context$8_GroupIntegrationsData as GroupIntegrationsData, type GroupNonNullableFields$2 as GroupNonNullableFields, type context$8_GroupPermissions as GroupPermissions, type GroupSettings$2 as GroupSettings, type context$8_GroupUpdatedEnvelope as GroupUpdatedEnvelope, type context$8_GroupWithMsId as GroupWithMsId, type context$8_GroupsQueryBuilder as GroupsQueryBuilder, type context$8_GroupsQueryResult as GroupsQueryResult, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, type Identity$2 as Identity, IdentityType$2 as IdentityType, type Image$2 as Image, type context$8_ListGroupIntegrationsDataRequest as ListGroupIntegrationsDataRequest, type context$8_ListGroupIntegrationsDataResponse as ListGroupIntegrationsDataResponse, type context$8_ListGroupsByUserIdRequest as ListGroupsByUserIdRequest, type context$8_ListGroupsByUserIdResponse as ListGroupsByUserIdResponse, type context$8_ListGroupsOptions as ListGroupsOptions, type context$8_ListGroupsRequest as ListGroupsRequest, type context$8_ListGroupsResponse as ListGroupsResponse, type context$8_ListGroupsResponseNonNullableFields as ListGroupsResponseNonNullableFields, type Logo$2 as Logo, MembershipStatus$1 as MembershipStatus, type MessageEnvelope$7 as MessageEnvelope, type OnboardingStepSettings$2 as OnboardingStepSettings, type Paging$6 as Paging, type PagingMetadata$6 as PagingMetadata, type Position$2 as Position, PrivacyStatus$2 as PrivacyStatus, type Query$5 as Query, type context$8_QueryGroupsByMembershipRequest as QueryGroupsByMembershipRequest, type context$8_QueryGroupsByMembershipResponse as QueryGroupsByMembershipResponse, type context$8_QueryGroupsOptions as QueryGroupsOptions, type context$8_QueryGroupsRequest as QueryGroupsRequest, type context$8_QueryGroupsResponse as QueryGroupsResponse, type context$8_QueryGroupsResponseNonNullableFields as QueryGroupsResponseNonNullableFields, type context$8_QueryJoinedGroupsRequest as QueryJoinedGroupsRequest, type context$8_QueryJoinedGroupsResponse as QueryJoinedGroupsResponse, type RestoreInfo$7 as RestoreInfo, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, StepKey$2 as StepKey, Type$2 as Type, type context$8_UpdateGroup as UpdateGroup, type context$8_UpdateGroupOptions as UpdateGroupOptions, type context$8_UpdateGroupRequest as UpdateGroupRequest, type context$8_UpdateGroupResponse as UpdateGroupResponse, type context$8_UpdateGroupResponseNonNullableFields as UpdateGroupResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, type context$8__publicOnGroupCoverChangedType as _publicOnGroupCoverChangedType, type context$8__publicOnGroupCreatedType as _publicOnGroupCreatedType, type context$8__publicOnGroupDeletedType as _publicOnGroupDeletedType, type context$8__publicOnGroupDescriptionChangedType as _publicOnGroupDescriptionChangedType, type context$8__publicOnGroupUpdatedType as _publicOnGroupUpdatedType, context$8_createGroup as createGroup, context$8_deleteGroup as deleteGroup, context$8_getGroup as getGroup, context$8_getGroupBySlug as getGroupBySlug, context$8_listGroups as listGroups, context$8_onGroupCoverChanged as onGroupCoverChanged, context$8_onGroupCreated as onGroupCreated, context$8_onGroupDeleted as onGroupDeleted, context$8_onGroupDescriptionChanged as onGroupDescriptionChanged, context$8_onGroupUpdated as onGroupUpdated, onGroupCoverChanged$1 as publicOnGroupCoverChanged, onGroupCreated$1 as publicOnGroupCreated, onGroupDeleted$1 as publicOnGroupDeleted, onGroupDescriptionChanged$1 as publicOnGroupDescriptionChanged, onGroupUpdated$1 as publicOnGroupUpdated, context$8_queryGroups as queryGroups, context$8_updateGroup as updateGroup };
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
|
+
type RESTFunctionDescriptor$7<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$7) => T;
|
|
1093
|
+
interface HttpClient$7 {
|
|
1094
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
1095
|
+
fetchWithAuth: typeof fetch;
|
|
1096
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1097
|
+
}
|
|
1098
|
+
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
1099
|
+
type HttpResponse$7<T = any> = {
|
|
1100
|
+
data: T;
|
|
1101
|
+
status: number;
|
|
1102
|
+
statusText: string;
|
|
1103
|
+
headers: any;
|
|
1104
|
+
request?: any;
|
|
1105
|
+
};
|
|
1106
|
+
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
1107
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1108
|
+
url: string;
|
|
1109
|
+
data?: Data;
|
|
1110
|
+
params?: URLSearchParams;
|
|
1111
|
+
} & APIMetadata$7;
|
|
1112
|
+
type APIMetadata$7 = {
|
|
1113
|
+
methodFqn?: string;
|
|
1114
|
+
entityFqdn?: string;
|
|
1115
|
+
packageName?: string;
|
|
1116
|
+
};
|
|
1117
|
+
type BuildRESTFunction$7<T extends RESTFunctionDescriptor$7> = T extends RESTFunctionDescriptor$7<infer U> ? U : never;
|
|
1118
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
1119
|
+
__type: 'event-definition';
|
|
1120
|
+
type: Type;
|
|
1121
|
+
isDomainEvent?: boolean;
|
|
1122
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1123
|
+
__payload: Payload;
|
|
1124
|
+
};
|
|
1125
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
1126
|
+
type EventHandler$6<T extends EventDefinition$6> = (payload: T['__payload']) => void | Promise<void>;
|
|
1127
|
+
type BuildEventDefinition$6<T extends EventDefinition$6<any, string>> = (handler: EventHandler$6<T>) => void;
|
|
1128
|
+
|
|
1129
|
+
declare global {
|
|
1130
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1131
|
+
interface SymbolConstructor {
|
|
1132
|
+
readonly observable: symbol;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1092
1136
|
interface GroupMember$1 {
|
|
1093
1137
|
/**
|
|
1094
1138
|
* @internal
|
|
@@ -1668,7 +1712,7 @@ interface QueryMembershipsOptions {
|
|
|
1668
1712
|
query?: Query$4;
|
|
1669
1713
|
}
|
|
1670
1714
|
|
|
1671
|
-
declare function addGroupMembers$1(httpClient: HttpClient): AddGroupMembersSignature;
|
|
1715
|
+
declare function addGroupMembers$1(httpClient: HttpClient$7): AddGroupMembersSignature;
|
|
1672
1716
|
interface AddGroupMembersSignature {
|
|
1673
1717
|
/**
|
|
1674
1718
|
* Adds site members to a group.
|
|
@@ -1689,7 +1733,7 @@ interface AddGroupMembersSignature {
|
|
|
1689
1733
|
*/
|
|
1690
1734
|
(groupId: string, memberIds: string[], options?: AddGroupMembersOptions | undefined): Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1691
1735
|
}
|
|
1692
|
-
declare function removeGroupMembers$1(httpClient: HttpClient): RemoveGroupMembersSignature;
|
|
1736
|
+
declare function removeGroupMembers$1(httpClient: HttpClient$7): RemoveGroupMembersSignature;
|
|
1693
1737
|
interface RemoveGroupMembersSignature {
|
|
1694
1738
|
/**
|
|
1695
1739
|
* Removes members from a group.
|
|
@@ -1704,7 +1748,7 @@ interface RemoveGroupMembersSignature {
|
|
|
1704
1748
|
*/
|
|
1705
1749
|
(groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions | undefined): Promise<void>;
|
|
1706
1750
|
}
|
|
1707
|
-
declare function listGroupMembers$1(httpClient: HttpClient): ListGroupMembersSignature;
|
|
1751
|
+
declare function listGroupMembers$1(httpClient: HttpClient$7): ListGroupMembersSignature;
|
|
1708
1752
|
interface ListGroupMembersSignature {
|
|
1709
1753
|
/**
|
|
1710
1754
|
* Lists all members of a group.
|
|
@@ -1721,7 +1765,7 @@ interface ListGroupMembersSignature {
|
|
|
1721
1765
|
*/
|
|
1722
1766
|
(groupId: string, options?: ListGroupMembersOptions | undefined): Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1723
1767
|
}
|
|
1724
|
-
declare function queryGroupMembers$1(httpClient: HttpClient): QueryGroupMembersSignature;
|
|
1768
|
+
declare function queryGroupMembers$1(httpClient: HttpClient$7): QueryGroupMembersSignature;
|
|
1725
1769
|
interface QueryGroupMembersSignature {
|
|
1726
1770
|
/**
|
|
1727
1771
|
* Retrieves a list of up to 100 group members, given the provided paging, sorting and filtering.
|
|
@@ -1746,7 +1790,7 @@ interface QueryGroupMembersSignature {
|
|
|
1746
1790
|
*/
|
|
1747
1791
|
(groupId: string): MembersQueryBuilder;
|
|
1748
1792
|
}
|
|
1749
|
-
declare function listMemberships$1(httpClient: HttpClient): ListMembershipsSignature;
|
|
1793
|
+
declare function listMemberships$1(httpClient: HttpClient$7): ListMembershipsSignature;
|
|
1750
1794
|
interface ListMembershipsSignature {
|
|
1751
1795
|
/**
|
|
1752
1796
|
* Lists all group memberships of a site member.
|
|
@@ -1763,7 +1807,7 @@ interface ListMembershipsSignature {
|
|
|
1763
1807
|
*/
|
|
1764
1808
|
(memberId: string | null, options?: ListMembershipsOptions | undefined): Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1765
1809
|
}
|
|
1766
|
-
declare function queryMemberships$1(httpClient: HttpClient): QueryMembershipsSignature;
|
|
1810
|
+
declare function queryMemberships$1(httpClient: HttpClient$7): QueryMembershipsSignature;
|
|
1767
1811
|
interface QueryMembershipsSignature {
|
|
1768
1812
|
/**
|
|
1769
1813
|
* Retrieves a list of up to 100 members and their membership status, given the provided paging and filtering.
|
|
@@ -1781,17 +1825,17 @@ interface QueryMembershipsSignature {
|
|
|
1781
1825
|
*/
|
|
1782
1826
|
(memberId: string | null, options?: QueryMembershipsOptions | undefined): Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1783
1827
|
}
|
|
1784
|
-
declare const onGroupMemberAdded$1: EventDefinition<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1785
|
-
declare const onGroupMemberRemoved$1: EventDefinition<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1828
|
+
declare const onGroupMemberAdded$1: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1829
|
+
declare const onGroupMemberRemoved$1: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1786
1830
|
|
|
1787
|
-
declare function createEventModule$6<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1831
|
+
declare function createEventModule$6<T extends EventDefinition$6<any, string>>(eventDefinition: T): BuildEventDefinition$6<T> & T;
|
|
1788
1832
|
|
|
1789
|
-
declare const addGroupMembers: BuildRESTFunction<typeof addGroupMembers$1> & typeof addGroupMembers$1;
|
|
1790
|
-
declare const removeGroupMembers: BuildRESTFunction<typeof removeGroupMembers$1> & typeof removeGroupMembers$1;
|
|
1791
|
-
declare const listGroupMembers: BuildRESTFunction<typeof listGroupMembers$1> & typeof listGroupMembers$1;
|
|
1792
|
-
declare const queryGroupMembers: BuildRESTFunction<typeof queryGroupMembers$1> & typeof queryGroupMembers$1;
|
|
1793
|
-
declare const listMemberships: BuildRESTFunction<typeof listMemberships$1> & typeof listMemberships$1;
|
|
1794
|
-
declare const queryMemberships: BuildRESTFunction<typeof queryMemberships$1> & typeof queryMemberships$1;
|
|
1833
|
+
declare const addGroupMembers: BuildRESTFunction$7<typeof addGroupMembers$1> & typeof addGroupMembers$1;
|
|
1834
|
+
declare const removeGroupMembers: BuildRESTFunction$7<typeof removeGroupMembers$1> & typeof removeGroupMembers$1;
|
|
1835
|
+
declare const listGroupMembers: BuildRESTFunction$7<typeof listGroupMembers$1> & typeof listGroupMembers$1;
|
|
1836
|
+
declare const queryGroupMembers: BuildRESTFunction$7<typeof queryGroupMembers$1> & typeof queryGroupMembers$1;
|
|
1837
|
+
declare const listMemberships: BuildRESTFunction$7<typeof listMemberships$1> & typeof listMemberships$1;
|
|
1838
|
+
declare const queryMemberships: BuildRESTFunction$7<typeof queryMemberships$1> & typeof queryMemberships$1;
|
|
1795
1839
|
|
|
1796
1840
|
type _publicOnGroupMemberAddedType = typeof onGroupMemberAdded$1;
|
|
1797
1841
|
/**
|
|
@@ -1859,6 +1903,50 @@ declare namespace context$7 {
|
|
|
1859
1903
|
export { type ActionEvent$6 as ActionEvent, type context$7_AddGroupMembersOptions as AddGroupMembersOptions, type context$7_AddGroupMembersRequest as AddGroupMembersRequest, type context$7_AddGroupMembersResponse as AddGroupMembersResponse, type context$7_AddGroupMembersResponseNonNullableFields as AddGroupMembersResponseNonNullableFields, type BaseEventMetadata$6 as BaseEventMetadata, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type GroupMember$1 as GroupMember, type context$7_GroupMemberAddedEnvelope as GroupMemberAddedEnvelope, type context$7_GroupMemberRemovedEnvelope as GroupMemberRemovedEnvelope, type GroupRole$1 as GroupRole, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, context$7_JoinBy as JoinBy, type JoinRequest$1 as JoinRequest, type JoinRequestsApproved$1 as JoinRequestsApproved, type context$7_JoinResponse as JoinResponse, type context$7_LeaveRequest as LeaveRequest, type context$7_LeaveResponse as LeaveResponse, type context$7_ListGroupMembersOptions as ListGroupMembersOptions, type context$7_ListGroupMembersRequest as ListGroupMembersRequest, type context$7_ListGroupMembersResponse as ListGroupMembersResponse, type context$7_ListGroupMembersResponseNonNullableFields as ListGroupMembersResponseNonNullableFields, type context$7_ListMembershipsOptions as ListMembershipsOptions, type context$7_ListMembershipsRequest as ListMembershipsRequest, type context$7_ListMembershipsResponse as ListMembershipsResponse, type context$7_ListMembershipsResponseNonNullableFields as ListMembershipsResponseNonNullableFields, type context$7_MemberAdded as MemberAdded, type context$7_MemberJoined as MemberJoined, type MemberJoinedGroup$1 as MemberJoinedGroup, type context$7_MemberLeft as MemberLeft, type context$7_MemberRemoved as MemberRemoved, type MembersAddedToGroup$1 as MembersAddedToGroup, type MembersInvitedToGroup$1 as MembersInvitedToGroup, type context$7_MembersQueryBuilder as MembersQueryBuilder, type context$7_MembersQueryResult as MembersQueryResult, type context$7_Membership as Membership, type MembershipQuestionAnswer$3 as MembershipQuestionAnswer, context$7_MembershipStatus as MembershipStatus, type MessageEnvelope$6 as MessageEnvelope, type Paging$5 as Paging, type PagingMetadata$5 as PagingMetadata, type Query$4 as Query, type context$7_QueryGroupMembersRequest as QueryGroupMembersRequest, type context$7_QueryGroupMembersResponse as QueryGroupMembersResponse, type context$7_QueryGroupMembersResponseNonNullableFields as QueryGroupMembersResponseNonNullableFields, type context$7_QueryMembershipsOptions as QueryMembershipsOptions, type context$7_QueryMembershipsRequest as QueryMembershipsRequest, type context$7_QueryMembershipsResponse as QueryMembershipsResponse, type context$7_QueryMembershipsResponseNonNullableFields as QueryMembershipsResponseNonNullableFields, type context$7_QueryMyMembershipRequest as QueryMyMembershipRequest, type context$7_QueryMyMembershipResponse as QueryMyMembershipResponse, type context$7_QueryNonGroupMembersRequest as QueryNonGroupMembersRequest, type context$7_QueryNonGroupMembersResponse as QueryNonGroupMembersResponse, type context$7_RemoveGroupMembersOptions as RemoveGroupMembersOptions, type context$7_RemoveGroupMembersRequest as RemoveGroupMembersRequest, type context$7_RemoveGroupMembersResponse as RemoveGroupMembersResponse, type RestoreInfo$6 as RestoreInfo, Role$1 as Role, type SocialGroupsEvent$1 as SocialGroupsEvent, type SocialGroupsEventPayloadOneOf$1 as SocialGroupsEventPayloadOneOf, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, WebhookIdentityType$6 as WebhookIdentityType, type context$7__publicOnGroupMemberAddedType as _publicOnGroupMemberAddedType, type context$7__publicOnGroupMemberRemovedType as _publicOnGroupMemberRemovedType, context$7_addGroupMembers as addGroupMembers, context$7_listGroupMembers as listGroupMembers, context$7_listMemberships as listMemberships, context$7_onGroupMemberAdded as onGroupMemberAdded, context$7_onGroupMemberRemoved as onGroupMemberRemoved, onGroupMemberAdded$1 as publicOnGroupMemberAdded, onGroupMemberRemoved$1 as publicOnGroupMemberRemoved, context$7_queryGroupMembers as queryGroupMembers, context$7_queryMemberships as queryMemberships, context$7_removeGroupMembers as removeGroupMembers };
|
|
1860
1904
|
}
|
|
1861
1905
|
|
|
1906
|
+
type RESTFunctionDescriptor$6<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$6) => T;
|
|
1907
|
+
interface HttpClient$6 {
|
|
1908
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
1909
|
+
fetchWithAuth: typeof fetch;
|
|
1910
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1911
|
+
}
|
|
1912
|
+
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
1913
|
+
type HttpResponse$6<T = any> = {
|
|
1914
|
+
data: T;
|
|
1915
|
+
status: number;
|
|
1916
|
+
statusText: string;
|
|
1917
|
+
headers: any;
|
|
1918
|
+
request?: any;
|
|
1919
|
+
};
|
|
1920
|
+
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
1921
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1922
|
+
url: string;
|
|
1923
|
+
data?: Data;
|
|
1924
|
+
params?: URLSearchParams;
|
|
1925
|
+
} & APIMetadata$6;
|
|
1926
|
+
type APIMetadata$6 = {
|
|
1927
|
+
methodFqn?: string;
|
|
1928
|
+
entityFqdn?: string;
|
|
1929
|
+
packageName?: string;
|
|
1930
|
+
};
|
|
1931
|
+
type BuildRESTFunction$6<T extends RESTFunctionDescriptor$6> = T extends RESTFunctionDescriptor$6<infer U> ? U : never;
|
|
1932
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
1933
|
+
__type: 'event-definition';
|
|
1934
|
+
type: Type;
|
|
1935
|
+
isDomainEvent?: boolean;
|
|
1936
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1937
|
+
__payload: Payload;
|
|
1938
|
+
};
|
|
1939
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
1940
|
+
type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
|
|
1941
|
+
type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
|
|
1942
|
+
|
|
1943
|
+
declare global {
|
|
1944
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1945
|
+
interface SymbolConstructor {
|
|
1946
|
+
readonly observable: symbol;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1862
1950
|
/**
|
|
1863
1951
|
* >**Notes:**
|
|
1864
1952
|
* > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
|
|
@@ -2569,7 +2657,7 @@ interface GroupRequestsQueryBuilder {
|
|
|
2569
2657
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2570
2658
|
}
|
|
2571
2659
|
|
|
2572
|
-
declare function approveGroupRequests$1(httpClient: HttpClient): ApproveGroupRequestsSignature;
|
|
2660
|
+
declare function approveGroupRequests$1(httpClient: HttpClient$6): ApproveGroupRequestsSignature;
|
|
2573
2661
|
interface ApproveGroupRequestsSignature {
|
|
2574
2662
|
/**
|
|
2575
2663
|
* Approves requests to create a group.
|
|
@@ -2583,7 +2671,7 @@ interface ApproveGroupRequestsSignature {
|
|
|
2583
2671
|
*/
|
|
2584
2672
|
(groupRequestIds: string[]): Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2585
2673
|
}
|
|
2586
|
-
declare function rejectGroupRequests$1(httpClient: HttpClient): RejectGroupRequestsSignature;
|
|
2674
|
+
declare function rejectGroupRequests$1(httpClient: HttpClient$6): RejectGroupRequestsSignature;
|
|
2587
2675
|
interface RejectGroupRequestsSignature {
|
|
2588
2676
|
/**
|
|
2589
2677
|
* Rejects a request to create a group.
|
|
@@ -2595,7 +2683,7 @@ interface RejectGroupRequestsSignature {
|
|
|
2595
2683
|
*/
|
|
2596
2684
|
(rejections: Rejection$3[]): Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2597
2685
|
}
|
|
2598
|
-
declare function listGroupRequests$1(httpClient: HttpClient): ListGroupRequestsSignature;
|
|
2686
|
+
declare function listGroupRequests$1(httpClient: HttpClient$6): ListGroupRequestsSignature;
|
|
2599
2687
|
interface ListGroupRequestsSignature {
|
|
2600
2688
|
/**
|
|
2601
2689
|
* Lists requests to create a group.
|
|
@@ -2612,7 +2700,7 @@ interface ListGroupRequestsSignature {
|
|
|
2612
2700
|
*/
|
|
2613
2701
|
(options?: ListGroupRequestsOptions | undefined): Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2614
2702
|
}
|
|
2615
|
-
declare function queryGroupRequests$1(httpClient: HttpClient): QueryGroupRequestsSignature;
|
|
2703
|
+
declare function queryGroupRequests$1(httpClient: HttpClient$6): QueryGroupRequestsSignature;
|
|
2616
2704
|
interface QueryGroupRequestsSignature {
|
|
2617
2705
|
/**
|
|
2618
2706
|
* Creates a query to retrieve a list of create requests.
|
|
@@ -2629,16 +2717,16 @@ interface QueryGroupRequestsSignature {
|
|
|
2629
2717
|
*/
|
|
2630
2718
|
(options?: QueryGroupRequestsOptions | undefined): GroupRequestsQueryBuilder;
|
|
2631
2719
|
}
|
|
2632
|
-
declare const onGroupRequestCreated$1: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2633
|
-
declare const onGroupRequestApproved$1: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2634
|
-
declare const onGroupRequestRejected$1: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2720
|
+
declare const onGroupRequestCreated$1: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2721
|
+
declare const onGroupRequestApproved$1: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2722
|
+
declare const onGroupRequestRejected$1: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2635
2723
|
|
|
2636
|
-
declare function createEventModule$5<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2724
|
+
declare function createEventModule$5<T extends EventDefinition$5<any, string>>(eventDefinition: T): BuildEventDefinition$5<T> & T;
|
|
2637
2725
|
|
|
2638
|
-
declare const approveGroupRequests: BuildRESTFunction<typeof approveGroupRequests$1> & typeof approveGroupRequests$1;
|
|
2639
|
-
declare const rejectGroupRequests: BuildRESTFunction<typeof rejectGroupRequests$1> & typeof rejectGroupRequests$1;
|
|
2640
|
-
declare const listGroupRequests: BuildRESTFunction<typeof listGroupRequests$1> & typeof listGroupRequests$1;
|
|
2641
|
-
declare const queryGroupRequests: BuildRESTFunction<typeof queryGroupRequests$1> & typeof queryGroupRequests$1;
|
|
2726
|
+
declare const approveGroupRequests: BuildRESTFunction$6<typeof approveGroupRequests$1> & typeof approveGroupRequests$1;
|
|
2727
|
+
declare const rejectGroupRequests: BuildRESTFunction$6<typeof rejectGroupRequests$1> & typeof rejectGroupRequests$1;
|
|
2728
|
+
declare const listGroupRequests: BuildRESTFunction$6<typeof listGroupRequests$1> & typeof listGroupRequests$1;
|
|
2729
|
+
declare const queryGroupRequests: BuildRESTFunction$6<typeof queryGroupRequests$1> & typeof queryGroupRequests$1;
|
|
2642
2730
|
|
|
2643
2731
|
type _publicOnGroupRequestCreatedType = typeof onGroupRequestCreated$1;
|
|
2644
2732
|
/** */
|
|
@@ -2696,6 +2784,50 @@ declare namespace context$6 {
|
|
|
2696
2784
|
export { type AccessRestriction$1 as AccessRestriction, type AccessRestrictionDataOneOf$1 as AccessRestrictionDataOneOf, type ActionEvent$5 as ActionEvent, AllowPolicy$1 as AllowPolicy, type context$6_ApproveGroupRequestsRequest as ApproveGroupRequestsRequest, type context$6_ApproveGroupRequestsResponse as ApproveGroupRequestsResponse, type context$6_ApproveGroupRequestsResponseNonNullableFields as ApproveGroupRequestsResponseNonNullableFields, type BaseEventMetadata$5 as BaseEventMetadata, type context$6_CancelGroupRequestRequest as CancelGroupRequestRequest, type context$6_CancelGroupRequestResponse as CancelGroupRequestResponse, type CoverImage$1 as CoverImage, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type Events$1 as Events, type Group$1 as Group, type GroupDetails$1 as GroupDetails, type GroupDetailsPosition$1 as GroupDetailsPosition, type context$6_GroupRequest as GroupRequest, type context$6_GroupRequestApproved as GroupRequestApproved, type context$6_GroupRequestApprovedEnvelope as GroupRequestApprovedEnvelope, type context$6_GroupRequestCreatedEnvelope as GroupRequestCreatedEnvelope, type context$6_GroupRequestRejected as GroupRequestRejected, type context$6_GroupRequestRejectedEnvelope as GroupRequestRejectedEnvelope, type context$6_GroupRequestsQueryBuilder as GroupRequestsQueryBuilder, type context$6_GroupRequestsQueryResult as GroupRequestsQueryResult, type GroupSettings$1 as GroupSettings, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Identity$1 as Identity, IdentityType$1 as IdentityType, type Image$1 as Image, ItemsToUpdate$3 as ItemsToUpdate, type context$6_ListGroupRequestsOptions as ListGroupRequestsOptions, type context$6_ListGroupRequestsRequest as ListGroupRequestsRequest, type context$6_ListGroupRequestsResponse as ListGroupRequestsResponse, type context$6_ListGroupRequestsResponseNonNullableFields as ListGroupRequestsResponseNonNullableFields, type Logo$1 as Logo, type MessageEnvelope$5 as MessageEnvelope, type OnboardingStepSettings$1 as OnboardingStepSettings, OwnershipFilter$3 as OwnershipFilter, type Paging$4 as Paging, type PagingMetadata$4 as PagingMetadata, type Position$1 as Position, PrivacyStatus$1 as PrivacyStatus, type Query$3 as Query, type context$6_QueryGroupRequestsOptions as QueryGroupRequestsOptions, type context$6_QueryGroupRequestsRequest as QueryGroupRequestsRequest, type context$6_QueryGroupRequestsResponse as QueryGroupRequestsResponse, type context$6_QueryGroupRequestsResponseNonNullableFields as QueryGroupRequestsResponseNonNullableFields, type context$6_RejectGroupRequestsRequest as RejectGroupRequestsRequest, type context$6_RejectGroupRequestsResponse as RejectGroupRequestsResponse, type context$6_RejectGroupRequestsResponseNonNullableFields as RejectGroupRequestsResponseNonNullableFields, type Rejection$3 as Rejection, type RequestDetails$3 as RequestDetails, RequestStatus$3 as RequestStatus, type RestoreInfo$5 as RestoreInfo, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, StepKey$1 as StepKey, type context$6_SubmitGroupRequestRequest as SubmitGroupRequestRequest, type context$6_SubmitGroupRequestResponse as SubmitGroupRequestResponse, Type$1 as Type, WebhookIdentityType$5 as WebhookIdentityType, type context$6__publicOnGroupRequestApprovedType as _publicOnGroupRequestApprovedType, type context$6__publicOnGroupRequestCreatedType as _publicOnGroupRequestCreatedType, type context$6__publicOnGroupRequestRejectedType as _publicOnGroupRequestRejectedType, context$6_approveGroupRequests as approveGroupRequests, context$6_listGroupRequests as listGroupRequests, context$6_onGroupRequestApproved as onGroupRequestApproved, context$6_onGroupRequestCreated as onGroupRequestCreated, context$6_onGroupRequestRejected as onGroupRequestRejected, onGroupRequestApproved$1 as publicOnGroupRequestApproved, onGroupRequestCreated$1 as publicOnGroupRequestCreated, onGroupRequestRejected$1 as publicOnGroupRequestRejected, context$6_queryGroupRequests as queryGroupRequests, context$6_rejectGroupRequests as rejectGroupRequests };
|
|
2697
2785
|
}
|
|
2698
2786
|
|
|
2787
|
+
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
2788
|
+
interface HttpClient$5 {
|
|
2789
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
2790
|
+
fetchWithAuth: typeof fetch;
|
|
2791
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2792
|
+
}
|
|
2793
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
2794
|
+
type HttpResponse$5<T = any> = {
|
|
2795
|
+
data: T;
|
|
2796
|
+
status: number;
|
|
2797
|
+
statusText: string;
|
|
2798
|
+
headers: any;
|
|
2799
|
+
request?: any;
|
|
2800
|
+
};
|
|
2801
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
2802
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2803
|
+
url: string;
|
|
2804
|
+
data?: Data;
|
|
2805
|
+
params?: URLSearchParams;
|
|
2806
|
+
} & APIMetadata$5;
|
|
2807
|
+
type APIMetadata$5 = {
|
|
2808
|
+
methodFqn?: string;
|
|
2809
|
+
entityFqdn?: string;
|
|
2810
|
+
packageName?: string;
|
|
2811
|
+
};
|
|
2812
|
+
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
2813
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
2814
|
+
__type: 'event-definition';
|
|
2815
|
+
type: Type;
|
|
2816
|
+
isDomainEvent?: boolean;
|
|
2817
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2818
|
+
__payload: Payload;
|
|
2819
|
+
};
|
|
2820
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
2821
|
+
type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
|
|
2822
|
+
type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
|
|
2823
|
+
|
|
2824
|
+
declare global {
|
|
2825
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2826
|
+
interface SymbolConstructor {
|
|
2827
|
+
readonly observable: symbol;
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2699
2831
|
/**
|
|
2700
2832
|
* A group member may have multiple roles in a single group.
|
|
2701
2833
|
* Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
|
|
@@ -3014,7 +3146,7 @@ interface UnassignRoleOptions {
|
|
|
3014
3146
|
siteMemberIds?: string[];
|
|
3015
3147
|
}
|
|
3016
3148
|
|
|
3017
|
-
declare function assignRole$1(httpClient: HttpClient): AssignRoleSignature;
|
|
3149
|
+
declare function assignRole$1(httpClient: HttpClient$5): AssignRoleSignature;
|
|
3018
3150
|
interface AssignRoleSignature {
|
|
3019
3151
|
/**
|
|
3020
3152
|
* Assigns a specific role to group members.
|
|
@@ -3031,7 +3163,7 @@ interface AssignRoleSignature {
|
|
|
3031
3163
|
*/
|
|
3032
3164
|
(groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions | undefined): Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
3033
3165
|
}
|
|
3034
|
-
declare function unassignRole$1(httpClient: HttpClient): UnassignRoleSignature;
|
|
3166
|
+
declare function unassignRole$1(httpClient: HttpClient$5): UnassignRoleSignature;
|
|
3035
3167
|
interface UnassignRoleSignature {
|
|
3036
3168
|
/**
|
|
3037
3169
|
* Unassigns a role from group members.
|
|
@@ -3047,13 +3179,13 @@ interface UnassignRoleSignature {
|
|
|
3047
3179
|
*/
|
|
3048
3180
|
(groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions | undefined): Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
3049
3181
|
}
|
|
3050
|
-
declare const onGroupRoleAssigned$1: EventDefinition<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
3051
|
-
declare const onGroupRoleUnassigned$1: EventDefinition<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
3182
|
+
declare const onGroupRoleAssigned$1: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
3183
|
+
declare const onGroupRoleUnassigned$1: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
3052
3184
|
|
|
3053
|
-
declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3185
|
+
declare function createEventModule$4<T extends EventDefinition$4<any, string>>(eventDefinition: T): BuildEventDefinition$4<T> & T;
|
|
3054
3186
|
|
|
3055
|
-
declare const assignRole: BuildRESTFunction<typeof assignRole$1> & typeof assignRole$1;
|
|
3056
|
-
declare const unassignRole: BuildRESTFunction<typeof unassignRole$1> & typeof unassignRole$1;
|
|
3187
|
+
declare const assignRole: BuildRESTFunction$5<typeof assignRole$1> & typeof assignRole$1;
|
|
3188
|
+
declare const unassignRole: BuildRESTFunction$5<typeof unassignRole$1> & typeof unassignRole$1;
|
|
3057
3189
|
|
|
3058
3190
|
type _publicOnGroupRoleAssignedType = typeof onGroupRoleAssigned$1;
|
|
3059
3191
|
/**
|
|
@@ -3093,6 +3225,50 @@ declare namespace context$5 {
|
|
|
3093
3225
|
export { type ActionEvent$4 as ActionEvent, type context$5_AssignRoleOptions as AssignRoleOptions, type context$5_AssignRoleRequest as AssignRoleRequest, type context$5_AssignRoleResponse as AssignRoleResponse, type context$5_AssignRoleResponseNonNullableFields as AssignRoleResponseNonNullableFields, type BaseEventMetadata$4 as BaseEventMetadata, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type context$5_GroupMember as GroupMember, type context$5_GroupRole as GroupRole, type context$5_GroupRoleAssignedEnvelope as GroupRoleAssignedEnvelope, type context$5_GroupRoleUnassignedEnvelope as GroupRoleUnassignedEnvelope, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type MessageEnvelope$4 as MessageEnvelope, type RestoreInfo$4 as RestoreInfo, context$5_Role as Role, type context$5_RoleAssignedToGroupMember as RoleAssignedToGroupMember, type context$5_RoleUnassignedFromGroupMember as RoleUnassignedFromGroupMember, type context$5_UnassignRoleOptions as UnassignRoleOptions, type context$5_UnassignRoleRequest as UnassignRoleRequest, type context$5_UnassignRoleResponse as UnassignRoleResponse, type context$5_UnassignRoleResponseNonNullableFields as UnassignRoleResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$5__publicOnGroupRoleAssignedType as _publicOnGroupRoleAssignedType, type context$5__publicOnGroupRoleUnassignedType as _publicOnGroupRoleUnassignedType, context$5_assignRole as assignRole, context$5_onGroupRoleAssigned as onGroupRoleAssigned, context$5_onGroupRoleUnassigned as onGroupRoleUnassigned, onGroupRoleAssigned$1 as publicOnGroupRoleAssigned, onGroupRoleUnassigned$1 as publicOnGroupRoleUnassigned, context$5_unassignRole as unassignRole };
|
|
3094
3226
|
}
|
|
3095
3227
|
|
|
3228
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
3229
|
+
interface HttpClient$4 {
|
|
3230
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
3231
|
+
fetchWithAuth: typeof fetch;
|
|
3232
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3233
|
+
}
|
|
3234
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
3235
|
+
type HttpResponse$4<T = any> = {
|
|
3236
|
+
data: T;
|
|
3237
|
+
status: number;
|
|
3238
|
+
statusText: string;
|
|
3239
|
+
headers: any;
|
|
3240
|
+
request?: any;
|
|
3241
|
+
};
|
|
3242
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
3243
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3244
|
+
url: string;
|
|
3245
|
+
data?: Data;
|
|
3246
|
+
params?: URLSearchParams;
|
|
3247
|
+
} & APIMetadata$4;
|
|
3248
|
+
type APIMetadata$4 = {
|
|
3249
|
+
methodFqn?: string;
|
|
3250
|
+
entityFqdn?: string;
|
|
3251
|
+
packageName?: string;
|
|
3252
|
+
};
|
|
3253
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
3254
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
3255
|
+
__type: 'event-definition';
|
|
3256
|
+
type: Type;
|
|
3257
|
+
isDomainEvent?: boolean;
|
|
3258
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3259
|
+
__payload: Payload;
|
|
3260
|
+
};
|
|
3261
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
3262
|
+
type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
|
|
3263
|
+
type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
|
|
3264
|
+
|
|
3265
|
+
declare global {
|
|
3266
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3267
|
+
interface SymbolConstructor {
|
|
3268
|
+
readonly observable: symbol;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3096
3272
|
/**
|
|
3097
3273
|
* Guidelines ensuring that members post responsibly and respectfully. Site owners can set up Group Rules in the dashboard.
|
|
3098
3274
|
* >**Note:** Only admins can update the group rules.
|
|
@@ -3309,7 +3485,7 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
3309
3485
|
rules?: GroupRule[];
|
|
3310
3486
|
}
|
|
3311
3487
|
|
|
3312
|
-
declare function listRules$1(httpClient: HttpClient): ListRulesSignature;
|
|
3488
|
+
declare function listRules$1(httpClient: HttpClient$4): ListRulesSignature;
|
|
3313
3489
|
interface ListRulesSignature {
|
|
3314
3490
|
/**
|
|
3315
3491
|
* Retrieves rules.
|
|
@@ -3320,7 +3496,7 @@ interface ListRulesSignature {
|
|
|
3320
3496
|
*/
|
|
3321
3497
|
(groupId: string): Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3322
3498
|
}
|
|
3323
|
-
declare function createOrReplaceAllRules$1(httpClient: HttpClient): CreateOrReplaceAllRulesSignature;
|
|
3499
|
+
declare function createOrReplaceAllRules$1(httpClient: HttpClient$4): CreateOrReplaceAllRulesSignature;
|
|
3324
3500
|
interface CreateOrReplaceAllRulesSignature {
|
|
3325
3501
|
/**
|
|
3326
3502
|
* Creates rules if no rules have been set up. Otherwise, replaces all existing rules.
|
|
@@ -3332,12 +3508,12 @@ interface CreateOrReplaceAllRulesSignature {
|
|
|
3332
3508
|
*/
|
|
3333
3509
|
(groupId: string, options?: CreateOrReplaceAllRulesOptions | undefined): Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3334
3510
|
}
|
|
3335
|
-
declare const onGroupRulesUpdated$1: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3511
|
+
declare const onGroupRulesUpdated$1: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3336
3512
|
|
|
3337
|
-
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3513
|
+
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
3338
3514
|
|
|
3339
|
-
declare const listRules: BuildRESTFunction<typeof listRules$1> & typeof listRules$1;
|
|
3340
|
-
declare const createOrReplaceAllRules: BuildRESTFunction<typeof createOrReplaceAllRules$1> & typeof createOrReplaceAllRules$1;
|
|
3515
|
+
declare const listRules: BuildRESTFunction$4<typeof listRules$1> & typeof listRules$1;
|
|
3516
|
+
declare const createOrReplaceAllRules: BuildRESTFunction$4<typeof createOrReplaceAllRules$1> & typeof createOrReplaceAllRules$1;
|
|
3341
3517
|
|
|
3342
3518
|
type _publicOnGroupRulesUpdatedType = typeof onGroupRulesUpdated$1;
|
|
3343
3519
|
/**
|
|
@@ -3365,6 +3541,50 @@ declare namespace context$4 {
|
|
|
3365
3541
|
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_CreateOrReplaceAllRulesOptions as CreateOrReplaceAllRulesOptions, type context$4_CreateOrReplaceAllRulesRequest as CreateOrReplaceAllRulesRequest, type context$4_CreateOrReplaceAllRulesResponse as CreateOrReplaceAllRulesResponse, type context$4_CreateOrReplaceAllRulesResponseNonNullableFields as CreateOrReplaceAllRulesResponseNonNullableFields, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$4_Empty as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type context$4_GroupRule as GroupRule, type context$4_GroupRules as GroupRules, type context$4_GroupRulesUpdatedEnvelope as GroupRulesUpdatedEnvelope, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$4_ListRulesRequest as ListRulesRequest, type context$4_ListRulesResponse as ListRulesResponse, type context$4_ListRulesResponseNonNullableFields as ListRulesResponseNonNullableFields, type context$4_ListTemplatesResponse as ListTemplatesResponse, type MessageEnvelope$3 as MessageEnvelope, type RestoreInfo$3 as RestoreInfo, WebhookIdentityType$3 as WebhookIdentityType, type context$4__publicOnGroupRulesUpdatedType as _publicOnGroupRulesUpdatedType, context$4_createOrReplaceAllRules as createOrReplaceAllRules, context$4_listRules as listRules, context$4_onGroupRulesUpdated as onGroupRulesUpdated, onGroupRulesUpdated$1 as publicOnGroupRulesUpdated };
|
|
3366
3542
|
}
|
|
3367
3543
|
|
|
3544
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
3545
|
+
interface HttpClient$3 {
|
|
3546
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
3547
|
+
fetchWithAuth: typeof fetch;
|
|
3548
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3549
|
+
}
|
|
3550
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
3551
|
+
type HttpResponse$3<T = any> = {
|
|
3552
|
+
data: T;
|
|
3553
|
+
status: number;
|
|
3554
|
+
statusText: string;
|
|
3555
|
+
headers: any;
|
|
3556
|
+
request?: any;
|
|
3557
|
+
};
|
|
3558
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
3559
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3560
|
+
url: string;
|
|
3561
|
+
data?: Data;
|
|
3562
|
+
params?: URLSearchParams;
|
|
3563
|
+
} & APIMetadata$3;
|
|
3564
|
+
type APIMetadata$3 = {
|
|
3565
|
+
methodFqn?: string;
|
|
3566
|
+
entityFqdn?: string;
|
|
3567
|
+
packageName?: string;
|
|
3568
|
+
};
|
|
3569
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
3570
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
3571
|
+
__type: 'event-definition';
|
|
3572
|
+
type: Type;
|
|
3573
|
+
isDomainEvent?: boolean;
|
|
3574
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3575
|
+
__payload: Payload;
|
|
3576
|
+
};
|
|
3577
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
3578
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
3579
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
3580
|
+
|
|
3581
|
+
declare global {
|
|
3582
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3583
|
+
interface SymbolConstructor {
|
|
3584
|
+
readonly observable: symbol;
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3368
3588
|
/**
|
|
3369
3589
|
* To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
|
|
3370
3590
|
* When the request is approved, the site member becomes a group member.
|
|
@@ -3907,7 +4127,7 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3907
4127
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3908
4128
|
}
|
|
3909
4129
|
|
|
3910
|
-
declare function approveJoinGroupRequests$1(httpClient: HttpClient): ApproveJoinGroupRequestsSignature;
|
|
4130
|
+
declare function approveJoinGroupRequests$1(httpClient: HttpClient$3): ApproveJoinGroupRequestsSignature;
|
|
3911
4131
|
interface ApproveJoinGroupRequestsSignature {
|
|
3912
4132
|
/**
|
|
3913
4133
|
* Approves requests to join a group.
|
|
@@ -3925,7 +4145,7 @@ interface ApproveJoinGroupRequestsSignature {
|
|
|
3925
4145
|
*/
|
|
3926
4146
|
(groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions | undefined): Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3927
4147
|
}
|
|
3928
|
-
declare function rejectJoinGroupRequests$1(httpClient: HttpClient): RejectJoinGroupRequestsSignature;
|
|
4148
|
+
declare function rejectJoinGroupRequests$1(httpClient: HttpClient$3): RejectJoinGroupRequestsSignature;
|
|
3929
4149
|
interface RejectJoinGroupRequestsSignature {
|
|
3930
4150
|
/**
|
|
3931
4151
|
* Rejects requests to join a group.
|
|
@@ -3944,7 +4164,7 @@ interface RejectJoinGroupRequestsSignature {
|
|
|
3944
4164
|
*/
|
|
3945
4165
|
(groupId: string, rejections: Rejection$2[]): Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3946
4166
|
}
|
|
3947
|
-
declare function listJoinGroupRequests$1(httpClient: HttpClient): ListJoinGroupRequestsSignature;
|
|
4167
|
+
declare function listJoinGroupRequests$1(httpClient: HttpClient$3): ListJoinGroupRequestsSignature;
|
|
3948
4168
|
interface ListJoinGroupRequestsSignature {
|
|
3949
4169
|
/**
|
|
3950
4170
|
* Lists requests to join a group.
|
|
@@ -3960,7 +4180,7 @@ interface ListJoinGroupRequestsSignature {
|
|
|
3960
4180
|
*/
|
|
3961
4181
|
(groupId: string, options?: ListJoinGroupRequestsOptions | undefined): Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3962
4182
|
}
|
|
3963
|
-
declare function queryJoinGroupRequests$1(httpClient: HttpClient): QueryJoinGroupRequestsSignature;
|
|
4183
|
+
declare function queryJoinGroupRequests$1(httpClient: HttpClient$3): QueryJoinGroupRequestsSignature;
|
|
3964
4184
|
interface QueryJoinGroupRequestsSignature {
|
|
3965
4185
|
/**
|
|
3966
4186
|
* Creates a query to retrieve a list of join requests.
|
|
@@ -3986,16 +4206,16 @@ interface QueryJoinGroupRequestsSignature {
|
|
|
3986
4206
|
*/
|
|
3987
4207
|
(groupId: string, options?: QueryJoinGroupRequestsOptions | undefined): JoinGroupRequestsQueryBuilder;
|
|
3988
4208
|
}
|
|
3989
|
-
declare const onJoinGroupRequestCreated$1: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3990
|
-
declare const onJoinGroupRequestApproved$1: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3991
|
-
declare const onJoinGroupRequestRejected$1: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
4209
|
+
declare const onJoinGroupRequestCreated$1: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
4210
|
+
declare const onJoinGroupRequestApproved$1: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
4211
|
+
declare const onJoinGroupRequestRejected$1: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3992
4212
|
|
|
3993
|
-
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4213
|
+
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
3994
4214
|
|
|
3995
|
-
declare const approveJoinGroupRequests: BuildRESTFunction<typeof approveJoinGroupRequests$1> & typeof approveJoinGroupRequests$1;
|
|
3996
|
-
declare const rejectJoinGroupRequests: BuildRESTFunction<typeof rejectJoinGroupRequests$1> & typeof rejectJoinGroupRequests$1;
|
|
3997
|
-
declare const listJoinGroupRequests: BuildRESTFunction<typeof listJoinGroupRequests$1> & typeof listJoinGroupRequests$1;
|
|
3998
|
-
declare const queryJoinGroupRequests: BuildRESTFunction<typeof queryJoinGroupRequests$1> & typeof queryJoinGroupRequests$1;
|
|
4215
|
+
declare const approveJoinGroupRequests: BuildRESTFunction$3<typeof approveJoinGroupRequests$1> & typeof approveJoinGroupRequests$1;
|
|
4216
|
+
declare const rejectJoinGroupRequests: BuildRESTFunction$3<typeof rejectJoinGroupRequests$1> & typeof rejectJoinGroupRequests$1;
|
|
4217
|
+
declare const listJoinGroupRequests: BuildRESTFunction$3<typeof listJoinGroupRequests$1> & typeof listJoinGroupRequests$1;
|
|
4218
|
+
declare const queryJoinGroupRequests: BuildRESTFunction$3<typeof queryJoinGroupRequests$1> & typeof queryJoinGroupRequests$1;
|
|
3999
4219
|
|
|
4000
4220
|
type _publicOnJoinGroupRequestCreatedType = typeof onJoinGroupRequestCreated$1;
|
|
4001
4221
|
/** */
|
|
@@ -4077,6 +4297,40 @@ declare namespace context$3 {
|
|
|
4077
4297
|
export { type ActionEvent$2 as ActionEvent, type context$3_ApproveAllJoinGroupRequestsRequest as ApproveAllJoinGroupRequestsRequest, type context$3_ApproveAllJoinGroupRequestsResponse as ApproveAllJoinGroupRequestsResponse, type context$3_ApproveJoinGroupRequestsOptions as ApproveJoinGroupRequestsOptions, type context$3_ApproveJoinGroupRequestsRequest as ApproveJoinGroupRequestsRequest, type context$3_ApproveJoinGroupRequestsResponse as ApproveJoinGroupRequestsResponse, type context$3_ApproveJoinGroupRequestsResponseNonNullableFields as ApproveJoinGroupRequestsResponseNonNullableFields, type BaseEventMetadata$2 as BaseEventMetadata, type context$3_CancelJoinGroupRequestRequest as CancelJoinGroupRequestRequest, type context$3_CancelJoinGroupRequestResponse as CancelJoinGroupRequestResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type context$3_EventsViolationOptions as EventsViolationOptions, type context$3_GetJoinRequirementsRequest as GetJoinRequirementsRequest, type context$3_GetJoinRequirementsResponse as GetJoinRequirementsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, ItemsToUpdate$2 as ItemsToUpdate, type context$3_JoinGroupRequest as JoinGroupRequest, type context$3_JoinGroupRequestApproved as JoinGroupRequestApproved, type context$3_JoinGroupRequestApprovedEnvelope as JoinGroupRequestApprovedEnvelope, type context$3_JoinGroupRequestCancelled as JoinGroupRequestCancelled, type context$3_JoinGroupRequestCreatedEnvelope as JoinGroupRequestCreatedEnvelope, type context$3_JoinGroupRequestRejected as JoinGroupRequestRejected, type context$3_JoinGroupRequestRejectedEnvelope as JoinGroupRequestRejectedEnvelope, type context$3_JoinGroupRequestsQueryBuilder as JoinGroupRequestsQueryBuilder, type context$3_JoinGroupRequestsQueryResult as JoinGroupRequestsQueryResult, type context$3_JoinRequestsApproved as JoinRequestsApproved, type context$3_ListAllJoinGroupRequestsRequest as ListAllJoinGroupRequestsRequest, type context$3_ListAllJoinGroupRequestsResponse as ListAllJoinGroupRequestsResponse, type context$3_ListJoinGroupRequestsOptions as ListJoinGroupRequestsOptions, type context$3_ListJoinGroupRequestsRequest as ListJoinGroupRequestsRequest, type context$3_ListJoinGroupRequestsResponse as ListJoinGroupRequestsResponse, type context$3_ListJoinGroupRequestsResponseNonNullableFields as ListJoinGroupRequestsResponseNonNullableFields, type context$3_MemberJoinedGroup as MemberJoinedGroup, type context$3_MembersAddedToGroup as MembersAddedToGroup, type context$3_MembersInvitedToGroup as MembersInvitedToGroup, type MembershipQuestionAnswer$2 as MembershipQuestionAnswer, type context$3_MembershipQuestionViolationOptions as MembershipQuestionViolationOptions, type MessageEnvelope$2 as MessageEnvelope, OwnershipFilter$2 as OwnershipFilter, type Paging$3 as Paging, type PagingMetadata$3 as PagingMetadata, type context$3_PaidPlan as PaidPlan, type context$3_PricingPlanViolationOptions as PricingPlanViolationOptions, type Query$2 as Query, type context$3_QueryJoinGroupRequestsOptions as QueryJoinGroupRequestsOptions, type context$3_QueryJoinGroupRequestsRequest as QueryJoinGroupRequestsRequest, type context$3_QueryJoinGroupRequestsResponse as QueryJoinGroupRequestsResponse, type context$3_QueryJoinGroupRequestsResponseNonNullableFields as QueryJoinGroupRequestsResponseNonNullableFields, type context$3_RejectAllJoinGroupRequestsRequest as RejectAllJoinGroupRequestsRequest, type context$3_RejectAllJoinGroupRequestsResponse as RejectAllJoinGroupRequestsResponse, type context$3_RejectJoinGroupRequestsRequest as RejectJoinGroupRequestsRequest, type context$3_RejectJoinGroupRequestsResponse as RejectJoinGroupRequestsResponse, type context$3_RejectJoinGroupRequestsResponseNonNullableFields as RejectJoinGroupRequestsResponseNonNullableFields, type Rejection$2 as Rejection, type RequestDetails$2 as RequestDetails, RequestStatus$2 as RequestStatus, type RestoreInfo$2 as RestoreInfo, type context$3_SocialGroupsEvent as SocialGroupsEvent, type context$3_SocialGroupsEventPayloadOneOf as SocialGroupsEventPayloadOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$3_SubmitJoinGroupRequestRequest as SubmitJoinGroupRequestRequest, type context$3_SubmitJoinGroupRequestResponse as SubmitJoinGroupRequestResponse, type context$3_Violation as Violation, context$3_ViolationType as ViolationType, type context$3_ViolationViolationOptionsOneOf as ViolationViolationOptionsOneOf, WebhookIdentityType$2 as WebhookIdentityType, type context$3__publicOnJoinGroupRequestApprovedType as _publicOnJoinGroupRequestApprovedType, type context$3__publicOnJoinGroupRequestCreatedType as _publicOnJoinGroupRequestCreatedType, type context$3__publicOnJoinGroupRequestRejectedType as _publicOnJoinGroupRequestRejectedType, context$3_approveJoinGroupRequests as approveJoinGroupRequests, context$3_listJoinGroupRequests as listJoinGroupRequests, context$3_onJoinGroupRequestApproved as onJoinGroupRequestApproved, context$3_onJoinGroupRequestCreated as onJoinGroupRequestCreated, context$3_onJoinGroupRequestRejected as onJoinGroupRequestRejected, onJoinGroupRequestApproved$1 as publicOnJoinGroupRequestApproved, onJoinGroupRequestCreated$1 as publicOnJoinGroupRequestCreated, onJoinGroupRequestRejected$1 as publicOnJoinGroupRequestRejected, context$3_queryJoinGroupRequests as queryJoinGroupRequests, context$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
|
|
4078
4298
|
}
|
|
4079
4299
|
|
|
4300
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
4301
|
+
interface HttpClient$2 {
|
|
4302
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
4303
|
+
fetchWithAuth: typeof fetch;
|
|
4304
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
4305
|
+
}
|
|
4306
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
4307
|
+
type HttpResponse$2<T = any> = {
|
|
4308
|
+
data: T;
|
|
4309
|
+
status: number;
|
|
4310
|
+
statusText: string;
|
|
4311
|
+
headers: any;
|
|
4312
|
+
request?: any;
|
|
4313
|
+
};
|
|
4314
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
4315
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4316
|
+
url: string;
|
|
4317
|
+
data?: Data;
|
|
4318
|
+
params?: URLSearchParams;
|
|
4319
|
+
} & APIMetadata$2;
|
|
4320
|
+
type APIMetadata$2 = {
|
|
4321
|
+
methodFqn?: string;
|
|
4322
|
+
entityFqdn?: string;
|
|
4323
|
+
packageName?: string;
|
|
4324
|
+
};
|
|
4325
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
4326
|
+
|
|
4327
|
+
declare global {
|
|
4328
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4329
|
+
interface SymbolConstructor {
|
|
4330
|
+
readonly observable: symbol;
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4080
4334
|
/**
|
|
4081
4335
|
* Question asked to members when joining a group. Site owners can set whether it is required to answer the question in the dashboard.
|
|
4082
4336
|
* > **Note:** Only admins can create or update membership questions.
|
|
@@ -4194,7 +4448,7 @@ interface ListAnswersOptions {
|
|
|
4194
4448
|
paging?: Paging$2;
|
|
4195
4449
|
}
|
|
4196
4450
|
|
|
4197
|
-
declare function listMembershipQuestions$1(httpClient: HttpClient): ListMembershipQuestionsSignature;
|
|
4451
|
+
declare function listMembershipQuestions$1(httpClient: HttpClient$2): ListMembershipQuestionsSignature;
|
|
4198
4452
|
interface ListMembershipQuestionsSignature {
|
|
4199
4453
|
/**
|
|
4200
4454
|
* Retrieves the membership questions for the given group.
|
|
@@ -4205,7 +4459,7 @@ interface ListMembershipQuestionsSignature {
|
|
|
4205
4459
|
*/
|
|
4206
4460
|
(groupId: string): Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
4207
4461
|
}
|
|
4208
|
-
declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient): CreateOrReplaceAllMembershipQuestionsSignature;
|
|
4462
|
+
declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient$2): CreateOrReplaceAllMembershipQuestionsSignature;
|
|
4209
4463
|
interface CreateOrReplaceAllMembershipQuestionsSignature {
|
|
4210
4464
|
/**
|
|
4211
4465
|
* Creates membership questions if none have been set up. Otherwise, replaces all existing questions.
|
|
@@ -4219,7 +4473,7 @@ interface CreateOrReplaceAllMembershipQuestionsSignature {
|
|
|
4219
4473
|
*/
|
|
4220
4474
|
(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions | undefined): Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
4221
4475
|
}
|
|
4222
|
-
declare function listAnswers$1(httpClient: HttpClient): ListAnswersSignature;
|
|
4476
|
+
declare function listAnswers$1(httpClient: HttpClient$2): ListAnswersSignature;
|
|
4223
4477
|
interface ListAnswersSignature {
|
|
4224
4478
|
/**
|
|
4225
4479
|
* Retrieves the answers to the membership questions, given the provided filters.
|
|
@@ -4231,9 +4485,9 @@ interface ListAnswersSignature {
|
|
|
4231
4485
|
(groupId: string, options?: ListAnswersOptions | undefined): Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
4232
4486
|
}
|
|
4233
4487
|
|
|
4234
|
-
declare const listMembershipQuestions: BuildRESTFunction<typeof listMembershipQuestions$1> & typeof listMembershipQuestions$1;
|
|
4235
|
-
declare const createOrReplaceAllMembershipQuestions: BuildRESTFunction<typeof createOrReplaceAllMembershipQuestions$1> & typeof createOrReplaceAllMembershipQuestions$1;
|
|
4236
|
-
declare const listAnswers: BuildRESTFunction<typeof listAnswers$1> & typeof listAnswers$1;
|
|
4488
|
+
declare const listMembershipQuestions: BuildRESTFunction$2<typeof listMembershipQuestions$1> & typeof listMembershipQuestions$1;
|
|
4489
|
+
declare const createOrReplaceAllMembershipQuestions: BuildRESTFunction$2<typeof createOrReplaceAllMembershipQuestions$1> & typeof createOrReplaceAllMembershipQuestions$1;
|
|
4490
|
+
declare const listAnswers: BuildRESTFunction$2<typeof listAnswers$1> & typeof listAnswers$1;
|
|
4237
4491
|
|
|
4238
4492
|
type context$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
4239
4493
|
type context$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4258,6 +4512,50 @@ declare namespace context$2 {
|
|
|
4258
4512
|
export { type context$2_CreateOrReplaceAllMembershipQuestionsOptions as CreateOrReplaceAllMembershipQuestionsOptions, type context$2_CreateOrReplaceAllMembershipQuestionsRequest as CreateOrReplaceAllMembershipQuestionsRequest, type context$2_CreateOrReplaceAllMembershipQuestionsResponse as CreateOrReplaceAllMembershipQuestionsResponse, type context$2_CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields as CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields, type context$2_ListAnswerCountsRequest as ListAnswerCountsRequest, type context$2_ListAnswerCountsResponse as ListAnswerCountsResponse, type context$2_ListAnswersOptions as ListAnswersOptions, type context$2_ListAnswersRequest as ListAnswersRequest, type context$2_ListAnswersResponse as ListAnswersResponse, type context$2_ListAnswersResponseNonNullableFields as ListAnswersResponseNonNullableFields, type context$2_ListMembershipQuestionsRequest as ListMembershipQuestionsRequest, type context$2_ListMembershipQuestionsResponse as ListMembershipQuestionsResponse, type context$2_ListMembershipQuestionsResponseNonNullableFields as ListMembershipQuestionsResponseNonNullableFields, type context$2_MemberAnswerCount as MemberAnswerCount, type context$2_MemberMembershipQuestionAnswers as MemberMembershipQuestionAnswers, type context$2_MembershipQuestion as MembershipQuestion, type MembershipQuestionAnswer$1 as MembershipQuestionAnswer, type Paging$2 as Paging, type PagingMetadata$2 as PagingMetadata, context$2_createOrReplaceAllMembershipQuestions as createOrReplaceAllMembershipQuestions, context$2_listAnswers as listAnswers, context$2_listMembershipQuestions as listMembershipQuestions };
|
|
4259
4513
|
}
|
|
4260
4514
|
|
|
4515
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
4516
|
+
interface HttpClient$1 {
|
|
4517
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4518
|
+
fetchWithAuth: typeof fetch;
|
|
4519
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
4520
|
+
}
|
|
4521
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4522
|
+
type HttpResponse$1<T = any> = {
|
|
4523
|
+
data: T;
|
|
4524
|
+
status: number;
|
|
4525
|
+
statusText: string;
|
|
4526
|
+
headers: any;
|
|
4527
|
+
request?: any;
|
|
4528
|
+
};
|
|
4529
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4530
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4531
|
+
url: string;
|
|
4532
|
+
data?: Data;
|
|
4533
|
+
params?: URLSearchParams;
|
|
4534
|
+
} & APIMetadata$1;
|
|
4535
|
+
type APIMetadata$1 = {
|
|
4536
|
+
methodFqn?: string;
|
|
4537
|
+
entityFqdn?: string;
|
|
4538
|
+
packageName?: string;
|
|
4539
|
+
};
|
|
4540
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
4541
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
4542
|
+
__type: 'event-definition';
|
|
4543
|
+
type: Type;
|
|
4544
|
+
isDomainEvent?: boolean;
|
|
4545
|
+
transformations?: (envelope: unknown) => Payload;
|
|
4546
|
+
__payload: Payload;
|
|
4547
|
+
};
|
|
4548
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
4549
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
4550
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
4551
|
+
|
|
4552
|
+
declare global {
|
|
4553
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4554
|
+
interface SymbolConstructor {
|
|
4555
|
+
readonly observable: symbol;
|
|
4556
|
+
}
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4261
4559
|
/**
|
|
4262
4560
|
* >**Notes:**
|
|
4263
4561
|
* > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
|
|
@@ -4880,7 +5178,7 @@ interface QueryCreateRequestsOptions {
|
|
|
4880
5178
|
query?: Query$1;
|
|
4881
5179
|
}
|
|
4882
5180
|
|
|
4883
|
-
declare function approveCreateRequests$1(httpClient: HttpClient): ApproveCreateRequestsSignature;
|
|
5181
|
+
declare function approveCreateRequests$1(httpClient: HttpClient$1): ApproveCreateRequestsSignature;
|
|
4884
5182
|
interface ApproveCreateRequestsSignature {
|
|
4885
5183
|
/**
|
|
4886
5184
|
* Approves Create Requests.
|
|
@@ -4888,7 +5186,7 @@ interface ApproveCreateRequestsSignature {
|
|
|
4888
5186
|
*/
|
|
4889
5187
|
(options?: ApproveCreateRequestsOptions | undefined): Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4890
5188
|
}
|
|
4891
|
-
declare function rejectCreateRequests$1(httpClient: HttpClient): RejectCreateRequestsSignature;
|
|
5189
|
+
declare function rejectCreateRequests$1(httpClient: HttpClient$1): RejectCreateRequestsSignature;
|
|
4892
5190
|
interface RejectCreateRequestsSignature {
|
|
4893
5191
|
/**
|
|
4894
5192
|
* Rejects Create Requests.
|
|
@@ -4896,14 +5194,14 @@ interface RejectCreateRequestsSignature {
|
|
|
4896
5194
|
*/
|
|
4897
5195
|
(options?: RejectCreateRequestsOptions | undefined): Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4898
5196
|
}
|
|
4899
|
-
declare function listCreateRequests$1(httpClient: HttpClient): ListCreateRequestsSignature;
|
|
5197
|
+
declare function listCreateRequests$1(httpClient: HttpClient$1): ListCreateRequestsSignature;
|
|
4900
5198
|
interface ListCreateRequestsSignature {
|
|
4901
5199
|
/**
|
|
4902
5200
|
* Lists create requests across the site.
|
|
4903
5201
|
*/
|
|
4904
5202
|
(options?: ListCreateRequestsOptions | undefined): Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4905
5203
|
}
|
|
4906
|
-
declare function queryCreateRequests$1(httpClient: HttpClient): QueryCreateRequestsSignature;
|
|
5204
|
+
declare function queryCreateRequests$1(httpClient: HttpClient$1): QueryCreateRequestsSignature;
|
|
4907
5205
|
interface QueryCreateRequestsSignature {
|
|
4908
5206
|
/**
|
|
4909
5207
|
* Retrieves a list of create requests across the site.
|
|
@@ -4916,15 +5214,15 @@ interface QueryCreateRequestsSignature {
|
|
|
4916
5214
|
*/
|
|
4917
5215
|
(options?: QueryCreateRequestsOptions | undefined): Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4918
5216
|
}
|
|
4919
|
-
declare const onCreateRequestApproved$1: EventDefinition<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4920
|
-
declare const onCreateRequestRejected$1: EventDefinition<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
5217
|
+
declare const onCreateRequestApproved$1: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
5218
|
+
declare const onCreateRequestRejected$1: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4921
5219
|
|
|
4922
|
-
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
5220
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
4923
5221
|
|
|
4924
|
-
declare const approveCreateRequests: BuildRESTFunction<typeof approveCreateRequests$1> & typeof approveCreateRequests$1;
|
|
4925
|
-
declare const rejectCreateRequests: BuildRESTFunction<typeof rejectCreateRequests$1> & typeof rejectCreateRequests$1;
|
|
4926
|
-
declare const listCreateRequests: BuildRESTFunction<typeof listCreateRequests$1> & typeof listCreateRequests$1;
|
|
4927
|
-
declare const queryCreateRequests: BuildRESTFunction<typeof queryCreateRequests$1> & typeof queryCreateRequests$1;
|
|
5222
|
+
declare const approveCreateRequests: BuildRESTFunction$1<typeof approveCreateRequests$1> & typeof approveCreateRequests$1;
|
|
5223
|
+
declare const rejectCreateRequests: BuildRESTFunction$1<typeof rejectCreateRequests$1> & typeof rejectCreateRequests$1;
|
|
5224
|
+
declare const listCreateRequests: BuildRESTFunction$1<typeof listCreateRequests$1> & typeof listCreateRequests$1;
|
|
5225
|
+
declare const queryCreateRequests: BuildRESTFunction$1<typeof queryCreateRequests$1> & typeof queryCreateRequests$1;
|
|
4928
5226
|
|
|
4929
5227
|
type _publicOnCreateRequestApprovedType = typeof onCreateRequestApproved$1;
|
|
4930
5228
|
/**
|
|
@@ -4998,6 +5296,50 @@ declare namespace context$1 {
|
|
|
4998
5296
|
export { type context$1_AccessRestriction as AccessRestriction, type context$1_AccessRestrictionDataOneOf as AccessRestrictionDataOneOf, type ActionEvent$1 as ActionEvent, context$1_AllowPolicy as AllowPolicy, type context$1_ApproveCreateRequestsOptions as ApproveCreateRequestsOptions, type context$1_ApproveCreateRequestsRequest as ApproveCreateRequestsRequest, type context$1_ApproveCreateRequestsResponse as ApproveCreateRequestsResponse, type context$1_ApproveCreateRequestsResponseNonNullableFields as ApproveCreateRequestsResponseNonNullableFields, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CancelCreateRequestRequest as CancelCreateRequestRequest, type context$1_CancelCreateRequestResponse as CancelCreateRequestResponse, type context$1_CoverImage as CoverImage, type context$1_CreateRequest as CreateRequest, type context$1_CreateRequestApproved as CreateRequestApproved, type context$1_CreateRequestApprovedEnvelope as CreateRequestApprovedEnvelope, type context$1_CreateRequestRejected as CreateRequestRejected, type context$1_CreateRequestRejectedEnvelope as CreateRequestRejectedEnvelope, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_Events as Events, type context$1_Group as Group, type context$1_GroupDetails as GroupDetails, type context$1_GroupDetailsPosition as GroupDetailsPosition, type context$1_GroupSettings as GroupSettings, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_Identity as Identity, context$1_IdentityType as IdentityType, type context$1_Image as Image, ItemsToUpdate$1 as ItemsToUpdate, type context$1_ListCreateRequestsOptions as ListCreateRequestsOptions, type context$1_ListCreateRequestsRequest as ListCreateRequestsRequest, type context$1_ListCreateRequestsResponse as ListCreateRequestsResponse, type context$1_ListCreateRequestsResponseNonNullableFields as ListCreateRequestsResponseNonNullableFields, type context$1_Logo as Logo, type MessageEnvelope$1 as MessageEnvelope, type context$1_OnboardingStepSettings as OnboardingStepSettings, OwnershipFilter$1 as OwnershipFilter, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, type context$1_Position as Position, context$1_PrivacyStatus as PrivacyStatus, type Query$1 as Query, type context$1_QueryCreateRequestsOptions as QueryCreateRequestsOptions, type context$1_QueryCreateRequestsRequest as QueryCreateRequestsRequest, type context$1_QueryCreateRequestsResponse as QueryCreateRequestsResponse, type context$1_QueryCreateRequestsResponseNonNullableFields as QueryCreateRequestsResponseNonNullableFields, type context$1_RejectCreateRequestsOptions as RejectCreateRequestsOptions, type context$1_RejectCreateRequestsRequest as RejectCreateRequestsRequest, type context$1_RejectCreateRequestsResponse as RejectCreateRequestsResponse, type context$1_RejectCreateRequestsResponseNonNullableFields as RejectCreateRequestsResponseNonNullableFields, type Rejection$1 as Rejection, type RequestDetails$1 as RequestDetails, RequestStatus$1 as RequestStatus, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_StepKey as StepKey, type context$1_SubmitCreateRequestRequest as SubmitCreateRequestRequest, type context$1_SubmitCreateRequestResponse as SubmitCreateRequestResponse, context$1_Type as Type, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnCreateRequestApprovedType as _publicOnCreateRequestApprovedType, type context$1__publicOnCreateRequestRejectedType as _publicOnCreateRequestRejectedType, context$1_approveCreateRequests as approveCreateRequests, context$1_listCreateRequests as listCreateRequests, context$1_onCreateRequestApproved as onCreateRequestApproved, context$1_onCreateRequestRejected as onCreateRequestRejected, onCreateRequestApproved$1 as publicOnCreateRequestApproved, onCreateRequestRejected$1 as publicOnCreateRequestRejected, context$1_queryCreateRequests as queryCreateRequests, context$1_rejectCreateRequests as rejectCreateRequests };
|
|
4999
5297
|
}
|
|
5000
5298
|
|
|
5299
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
5300
|
+
interface HttpClient {
|
|
5301
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5302
|
+
fetchWithAuth: typeof fetch;
|
|
5303
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
5304
|
+
}
|
|
5305
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5306
|
+
type HttpResponse<T = any> = {
|
|
5307
|
+
data: T;
|
|
5308
|
+
status: number;
|
|
5309
|
+
statusText: string;
|
|
5310
|
+
headers: any;
|
|
5311
|
+
request?: any;
|
|
5312
|
+
};
|
|
5313
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5314
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5315
|
+
url: string;
|
|
5316
|
+
data?: Data;
|
|
5317
|
+
params?: URLSearchParams;
|
|
5318
|
+
} & APIMetadata;
|
|
5319
|
+
type APIMetadata = {
|
|
5320
|
+
methodFqn?: string;
|
|
5321
|
+
entityFqdn?: string;
|
|
5322
|
+
packageName?: string;
|
|
5323
|
+
};
|
|
5324
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
5325
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5326
|
+
__type: 'event-definition';
|
|
5327
|
+
type: Type;
|
|
5328
|
+
isDomainEvent?: boolean;
|
|
5329
|
+
transformations?: (envelope: unknown) => Payload;
|
|
5330
|
+
__payload: Payload;
|
|
5331
|
+
};
|
|
5332
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5333
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
5334
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5335
|
+
|
|
5336
|
+
declare global {
|
|
5337
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5338
|
+
interface SymbolConstructor {
|
|
5339
|
+
readonly observable: symbol;
|
|
5340
|
+
}
|
|
5341
|
+
}
|
|
5342
|
+
|
|
5001
5343
|
/**
|
|
5002
5344
|
* To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
|
|
5003
5345
|
* When the request is approved, the site member becomes a group member.
|