@wix/groups 1.0.96 → 1.0.98
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/index.d.ts +10 -9
- package/build/cjs/index.js +18 -9
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +10 -9
- package/build/es/index.js +10 -9
- package/build/es/index.js.map +1 -1
- package/package.json +13 -12
- package/type-bundles/context.bundle.d.ts +761 -115
- package/type-bundles/index.bundle.d.ts +761 -115
|
@@ -1,3 +1,47 @@
|
|
|
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>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
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;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
interface Group$2 {
|
|
2
46
|
/**
|
|
3
47
|
* Group ID.
|
|
@@ -821,66 +865,151 @@ interface GroupsQueryBuilder {
|
|
|
821
865
|
find: () => Promise<GroupsQueryResult>;
|
|
822
866
|
}
|
|
823
867
|
|
|
824
|
-
|
|
825
|
-
interface
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
868
|
+
declare function createGroup$1(httpClient: HttpClient): CreateGroupSignature;
|
|
869
|
+
interface CreateGroupSignature {
|
|
870
|
+
/**
|
|
871
|
+
* Creates a group.
|
|
872
|
+
*
|
|
873
|
+
*
|
|
874
|
+
* The `createGroup()` function returns a Promise that resolves to a newly-created group after it has successfully been created. The new group is added to the Groups List page of your site.
|
|
875
|
+
*
|
|
876
|
+
* Site admins can choose to allow site members to create a group. They can also require that site members request their approval when creating a group. This setting can be found in your site's Dashboard under **Groups Application > General Settings > Group Creation**. If set to admin approval required, a site member uses this function to create a group, and the group becomes a `createRequest` with a status of `PENDING` until the group is reviewed. The default is set to site members with admin approval.
|
|
877
|
+
* @param - Group to create.
|
|
878
|
+
* @param - Optional fields for group creation.
|
|
879
|
+
* @returns Created group.
|
|
880
|
+
*/
|
|
881
|
+
(group: Group$2, options?: CreateGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
829
882
|
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
packageName?: string;
|
|
848
|
-
};
|
|
849
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
850
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
851
|
-
__type: 'event-definition';
|
|
852
|
-
type: Type;
|
|
853
|
-
isDomainEvent?: boolean;
|
|
854
|
-
transformations?: (envelope: unknown) => Payload;
|
|
855
|
-
__payload: Payload;
|
|
856
|
-
};
|
|
857
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
858
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
859
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
860
|
-
|
|
861
|
-
declare global {
|
|
862
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
863
|
-
interface SymbolConstructor {
|
|
864
|
-
readonly observable: symbol;
|
|
865
|
-
}
|
|
883
|
+
declare function updateGroup$1(httpClient: HttpClient): UpdateGroupSignature;
|
|
884
|
+
interface UpdateGroupSignature {
|
|
885
|
+
/**
|
|
886
|
+
* Updates a group.
|
|
887
|
+
*
|
|
888
|
+
*
|
|
889
|
+
* The `updateGroup()` function returns a Promise that resolves to the updated group. Only site admins and group admins can update their group. Only the fields in the groupInfo object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
|
|
890
|
+
*
|
|
891
|
+
* > **Notes:**
|
|
892
|
+
*
|
|
893
|
+
* - When a group's `privacyStatus` is updated from `PRIVATE` to `PUBLIC`, all pending join requests for that group are automatically approved.
|
|
894
|
+
* - When a group's `privacyStatus` is updated from `PRIVATE` to `SECRET`, all pending join requests for that group are automatically rejected.
|
|
895
|
+
* - When a public or private group's name is updated, the slug is updated to reflect the new group name.
|
|
896
|
+
* @param - Group ID.
|
|
897
|
+
* @returns Updated group.
|
|
898
|
+
*/
|
|
899
|
+
(_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
866
900
|
}
|
|
867
|
-
|
|
868
|
-
|
|
901
|
+
declare function deleteGroup$1(httpClient: HttpClient): DeleteGroupSignature;
|
|
902
|
+
interface DeleteGroupSignature {
|
|
903
|
+
/**
|
|
904
|
+
* Deletes a group.
|
|
905
|
+
*
|
|
906
|
+
*
|
|
907
|
+
* The `deleteGroup()` function returns a Promise resolves to the deleted group after it has successfully been deleted. Only site admins and group admins can delete their group. After the group is deleted, it is removed from both your site and the site's Dashboard.
|
|
908
|
+
*
|
|
909
|
+
* @param - ID of the group to delete.
|
|
910
|
+
*/
|
|
911
|
+
(groupId: string): Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
912
|
+
}
|
|
913
|
+
declare function getGroup$1(httpClient: HttpClient): GetGroupSignature;
|
|
914
|
+
interface GetGroupSignature {
|
|
915
|
+
/**
|
|
916
|
+
* Gets a group by ID.
|
|
917
|
+
*
|
|
918
|
+
*
|
|
919
|
+
* The `getGroup()` function returns a Promise that resolves to a group whose ID matches the given ID.
|
|
920
|
+
*
|
|
921
|
+
* > **Note:** For `SECRET` groups, only site admins, group admins, and group members can see a group and its content.
|
|
922
|
+
* @param - ID of the group to retrieve.
|
|
923
|
+
* @returns Retrieved group.
|
|
924
|
+
*/
|
|
925
|
+
(groupId: string, options?: GetGroupOptions | undefined): Promise<Group$2 & GroupNonNullableFields$2>;
|
|
926
|
+
}
|
|
927
|
+
declare function getGroupBySlug$1(httpClient: HttpClient): GetGroupBySlugSignature;
|
|
928
|
+
interface GetGroupBySlugSignature {
|
|
929
|
+
/**
|
|
930
|
+
* Gets a group by slug.
|
|
931
|
+
*
|
|
932
|
+
*
|
|
933
|
+
* The `getGroupBySlug()` function returns a Promise that resolves to a group whose slug matches the given slug. The slug is the end of a group's URL that refers to a specific group. For example, if a group's URL is `https:/example.com/groups/{my-fitness-group}`, the slug is `my-fitness-group`. The slug is case-sensitive. It is generally based on the group name, but for secret groups it is an autogenerated string of characters, for example, `https:/example.com/groups/{5D3yTX}`.
|
|
934
|
+
*
|
|
935
|
+
* > **Note:** For `SECRET` groups, only site admins, group admins, and group members can see a group and its content.
|
|
936
|
+
* @param - Unique part of the group's URL, for example `group-1` in `https:/example.com/groups/group-1`. Pass only the slug. Case-sensitive.
|
|
937
|
+
*/
|
|
938
|
+
(slug: string, options?: GetGroupBySlugOptions | undefined): Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
939
|
+
}
|
|
940
|
+
declare function listGroups$1(httpClient: HttpClient): ListGroupsSignature;
|
|
941
|
+
interface ListGroupsSignature {
|
|
942
|
+
/**
|
|
943
|
+
* Lists groups.
|
|
944
|
+
*
|
|
945
|
+
*
|
|
946
|
+
* The `listGroups()` function returns a Promise that resolves to a list of up to 1,000 groups on your site. Sorts by default to `_createdDate` in descending order.
|
|
947
|
+
*
|
|
948
|
+
* > **Notes:**
|
|
949
|
+
*
|
|
950
|
+
* - For `SECRET` groups, only site admins, group admins, and group members can see a list of group and their content.
|
|
951
|
+
* - This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use `null` as a placeholder for any unspecified parameters. For example, to specify limit only, call `listGroups(paging, null)`.
|
|
952
|
+
* @param - Limit and offset options.
|
|
953
|
+
*/
|
|
954
|
+
(options?: ListGroupsOptions | undefined): Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
955
|
+
}
|
|
956
|
+
declare function queryGroups$1(httpClient: HttpClient): QueryGroupsSignature;
|
|
957
|
+
interface QueryGroupsSignature {
|
|
958
|
+
/**
|
|
959
|
+
* Creates a query to retrieve a list of groups.
|
|
960
|
+
*
|
|
961
|
+
*
|
|
962
|
+
* Note: For `SECRET` groups, only site admins, group admins, and group members can query groups and their content.
|
|
963
|
+
*
|
|
964
|
+
* The `queryGroups()` function builds a query to retrieve a list of all groups, and returns a GroupsQueryBuilder object.
|
|
965
|
+
*/
|
|
966
|
+
(options?: QueryGroupsOptions | undefined): GroupsQueryBuilder;
|
|
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">;
|
|
869
973
|
|
|
870
974
|
declare function createEventModule$7<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
871
975
|
|
|
872
|
-
declare const createGroup:
|
|
873
|
-
declare const updateGroup:
|
|
874
|
-
declare const deleteGroup:
|
|
875
|
-
declare const getGroup:
|
|
876
|
-
declare const getGroupBySlug:
|
|
877
|
-
declare const listGroups:
|
|
878
|
-
declare const queryGroups:
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
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;
|
|
983
|
+
|
|
984
|
+
type _publicOnGroupCreatedType = typeof onGroupCreated$1;
|
|
985
|
+
/**
|
|
986
|
+
* Triggered when a group is created.
|
|
987
|
+
*/
|
|
988
|
+
declare const onGroupCreated: ReturnType<typeof createEventModule$7<_publicOnGroupCreatedType>>;
|
|
989
|
+
|
|
990
|
+
type _publicOnGroupUpdatedType = typeof onGroupUpdated$1;
|
|
991
|
+
/**
|
|
992
|
+
* Triggered when a group is updated. See payload for more information about the specific trigger.
|
|
993
|
+
*/
|
|
994
|
+
declare const onGroupUpdated: ReturnType<typeof createEventModule$7<_publicOnGroupUpdatedType>>;
|
|
995
|
+
|
|
996
|
+
type _publicOnGroupCoverChangedType = typeof onGroupCoverChanged$1;
|
|
997
|
+
/**
|
|
998
|
+
* Triggered when a group's logo is changed.
|
|
999
|
+
*/
|
|
1000
|
+
declare const onGroupCoverChanged: ReturnType<typeof createEventModule$7<_publicOnGroupCoverChangedType>>;
|
|
1001
|
+
|
|
1002
|
+
type _publicOnGroupDescriptionChangedType = typeof onGroupDescriptionChanged$1;
|
|
1003
|
+
/**
|
|
1004
|
+
* Triggered when a group's description is changed.
|
|
1005
|
+
*/
|
|
1006
|
+
declare const onGroupDescriptionChanged: ReturnType<typeof createEventModule$7<_publicOnGroupDescriptionChangedType>>;
|
|
1007
|
+
|
|
1008
|
+
type _publicOnGroupDeletedType = typeof onGroupDeleted$1;
|
|
1009
|
+
/**
|
|
1010
|
+
* Triggered when a group is deleted.
|
|
1011
|
+
*/
|
|
1012
|
+
declare const onGroupDeleted: ReturnType<typeof createEventModule$7<_publicOnGroupDeletedType>>;
|
|
884
1013
|
|
|
885
1014
|
type index_d$8_BMFeatures = BMFeatures;
|
|
886
1015
|
type index_d$8_BMFeaturesBMFeatures = BMFeaturesBMFeatures;
|
|
@@ -939,6 +1068,11 @@ type index_d$8_UpdateGroupOptions = UpdateGroupOptions;
|
|
|
939
1068
|
type index_d$8_UpdateGroupRequest = UpdateGroupRequest;
|
|
940
1069
|
type index_d$8_UpdateGroupResponse = UpdateGroupResponse;
|
|
941
1070
|
type index_d$8_UpdateGroupResponseNonNullableFields = UpdateGroupResponseNonNullableFields;
|
|
1071
|
+
type index_d$8__publicOnGroupCoverChangedType = _publicOnGroupCoverChangedType;
|
|
1072
|
+
type index_d$8__publicOnGroupCreatedType = _publicOnGroupCreatedType;
|
|
1073
|
+
type index_d$8__publicOnGroupDeletedType = _publicOnGroupDeletedType;
|
|
1074
|
+
type index_d$8__publicOnGroupDescriptionChangedType = _publicOnGroupDescriptionChangedType;
|
|
1075
|
+
type index_d$8__publicOnGroupUpdatedType = _publicOnGroupUpdatedType;
|
|
942
1076
|
declare const index_d$8_createGroup: typeof createGroup;
|
|
943
1077
|
declare const index_d$8_deleteGroup: typeof deleteGroup;
|
|
944
1078
|
declare const index_d$8_getGroup: typeof getGroup;
|
|
@@ -952,7 +1086,7 @@ declare const index_d$8_onGroupUpdated: typeof onGroupUpdated;
|
|
|
952
1086
|
declare const index_d$8_queryGroups: typeof queryGroups;
|
|
953
1087
|
declare const index_d$8_updateGroup: typeof updateGroup;
|
|
954
1088
|
declare namespace index_d$8 {
|
|
955
|
-
export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, type index_d$8_BMFeatures as BMFeatures, index_d$8_BMFeaturesBMFeatures as BMFeaturesBMFeatures, type BaseEventMetadata$7 as BaseEventMetadata, index_d$8_ContentType as ContentType, type CoverImage$2 as CoverImage, type index_d$8_CreateGroupOptions as CreateGroupOptions, type index_d$8_CreateGroupRequest as CreateGroupRequest, type index_d$8_CreateGroupResponse as CreateGroupResponse, type index_d$8_CreateGroupResponseNonNullableFields as CreateGroupResponseNonNullableFields, type index_d$8_DeleteGroupRequest as DeleteGroupRequest, type index_d$8_DeleteGroupResponse as DeleteGroupResponse, type index_d$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 index_d$8_GetGroupBMFeaturesRequest as GetGroupBMFeaturesRequest, type index_d$8_GetGroupBMFeaturesResponse as GetGroupBMFeaturesResponse, type index_d$8_GetGroupBySlugOptions as GetGroupBySlugOptions, type index_d$8_GetGroupBySlugRequest as GetGroupBySlugRequest, type index_d$8_GetGroupBySlugResponse as GetGroupBySlugResponse, type index_d$8_GetGroupBySlugResponseNonNullableFields as GetGroupBySlugResponseNonNullableFields, type index_d$8_GetGroupMembersGroupIdsRequest as GetGroupMembersGroupIdsRequest, type index_d$8_GetGroupMembersGroupIdsResponse as GetGroupMembersGroupIdsResponse, type index_d$8_GetGroupOptions as GetGroupOptions, type index_d$8_GetGroupRequest as GetGroupRequest, type index_d$8_GetGroupResponse as GetGroupResponse, type index_d$8_GetGroupResponseNonNullableFields as GetGroupResponseNonNullableFields, type Group$2 as Group, type index_d$8_GroupCoverChanged as GroupCoverChanged, type index_d$8_GroupCoverChangedEnvelope as GroupCoverChangedEnvelope, type index_d$8_GroupCreatedEnvelope as GroupCreatedEnvelope, type index_d$8_GroupDeletedEnvelope as GroupDeletedEnvelope, type index_d$8_GroupDescriptionChanged as GroupDescriptionChanged, type index_d$8_GroupDescriptionChangedEnvelope as GroupDescriptionChangedEnvelope, type GroupDetails$2 as GroupDetails, type GroupDetailsPosition$2 as GroupDetailsPosition, type index_d$8_GroupIntegrationsData as GroupIntegrationsData, type GroupNonNullableFields$2 as GroupNonNullableFields, type index_d$8_GroupPermissions as GroupPermissions, type GroupSettings$2 as GroupSettings, type index_d$8_GroupUpdatedEnvelope as GroupUpdatedEnvelope, type index_d$8_GroupWithMsId as GroupWithMsId, type index_d$8_GroupsQueryBuilder as GroupsQueryBuilder, type index_d$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 index_d$8_ListGroupIntegrationsDataRequest as ListGroupIntegrationsDataRequest, type index_d$8_ListGroupIntegrationsDataResponse as ListGroupIntegrationsDataResponse, type index_d$8_ListGroupsByUserIdRequest as ListGroupsByUserIdRequest, type index_d$8_ListGroupsByUserIdResponse as ListGroupsByUserIdResponse, type index_d$8_ListGroupsOptions as ListGroupsOptions, type index_d$8_ListGroupsRequest as ListGroupsRequest, type index_d$8_ListGroupsResponse as ListGroupsResponse, type index_d$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 index_d$8_QueryGroupsByMembershipRequest as QueryGroupsByMembershipRequest, type index_d$8_QueryGroupsByMembershipResponse as QueryGroupsByMembershipResponse, type index_d$8_QueryGroupsOptions as QueryGroupsOptions, type index_d$8_QueryGroupsRequest as QueryGroupsRequest, type index_d$8_QueryGroupsResponse as QueryGroupsResponse, type index_d$8_QueryGroupsResponseNonNullableFields as QueryGroupsResponseNonNullableFields, type index_d$8_QueryJoinedGroupsRequest as QueryJoinedGroupsRequest, type index_d$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 index_d$8_UpdateGroup as UpdateGroup, type index_d$8_UpdateGroupOptions as UpdateGroupOptions, type index_d$8_UpdateGroupRequest as UpdateGroupRequest, type index_d$8_UpdateGroupResponse as UpdateGroupResponse, type index_d$8_UpdateGroupResponseNonNullableFields as UpdateGroupResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, index_d$8_createGroup as createGroup, index_d$8_deleteGroup as deleteGroup, index_d$8_getGroup as getGroup, index_d$8_getGroupBySlug as getGroupBySlug, index_d$8_listGroups as listGroups, index_d$8_onGroupCoverChanged as onGroupCoverChanged, index_d$8_onGroupCreated as onGroupCreated, index_d$8_onGroupDeleted as onGroupDeleted, index_d$8_onGroupDescriptionChanged as onGroupDescriptionChanged, index_d$8_onGroupUpdated as onGroupUpdated, index_d$8_queryGroups as queryGroups, index_d$8_updateGroup as updateGroup };
|
|
1089
|
+
export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, type index_d$8_BMFeatures as BMFeatures, index_d$8_BMFeaturesBMFeatures as BMFeaturesBMFeatures, type BaseEventMetadata$7 as BaseEventMetadata, index_d$8_ContentType as ContentType, type CoverImage$2 as CoverImage, type index_d$8_CreateGroupOptions as CreateGroupOptions, type index_d$8_CreateGroupRequest as CreateGroupRequest, type index_d$8_CreateGroupResponse as CreateGroupResponse, type index_d$8_CreateGroupResponseNonNullableFields as CreateGroupResponseNonNullableFields, type index_d$8_DeleteGroupRequest as DeleteGroupRequest, type index_d$8_DeleteGroupResponse as DeleteGroupResponse, type index_d$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 index_d$8_GetGroupBMFeaturesRequest as GetGroupBMFeaturesRequest, type index_d$8_GetGroupBMFeaturesResponse as GetGroupBMFeaturesResponse, type index_d$8_GetGroupBySlugOptions as GetGroupBySlugOptions, type index_d$8_GetGroupBySlugRequest as GetGroupBySlugRequest, type index_d$8_GetGroupBySlugResponse as GetGroupBySlugResponse, type index_d$8_GetGroupBySlugResponseNonNullableFields as GetGroupBySlugResponseNonNullableFields, type index_d$8_GetGroupMembersGroupIdsRequest as GetGroupMembersGroupIdsRequest, type index_d$8_GetGroupMembersGroupIdsResponse as GetGroupMembersGroupIdsResponse, type index_d$8_GetGroupOptions as GetGroupOptions, type index_d$8_GetGroupRequest as GetGroupRequest, type index_d$8_GetGroupResponse as GetGroupResponse, type index_d$8_GetGroupResponseNonNullableFields as GetGroupResponseNonNullableFields, type Group$2 as Group, type index_d$8_GroupCoverChanged as GroupCoverChanged, type index_d$8_GroupCoverChangedEnvelope as GroupCoverChangedEnvelope, type index_d$8_GroupCreatedEnvelope as GroupCreatedEnvelope, type index_d$8_GroupDeletedEnvelope as GroupDeletedEnvelope, type index_d$8_GroupDescriptionChanged as GroupDescriptionChanged, type index_d$8_GroupDescriptionChangedEnvelope as GroupDescriptionChangedEnvelope, type GroupDetails$2 as GroupDetails, type GroupDetailsPosition$2 as GroupDetailsPosition, type index_d$8_GroupIntegrationsData as GroupIntegrationsData, type GroupNonNullableFields$2 as GroupNonNullableFields, type index_d$8_GroupPermissions as GroupPermissions, type GroupSettings$2 as GroupSettings, type index_d$8_GroupUpdatedEnvelope as GroupUpdatedEnvelope, type index_d$8_GroupWithMsId as GroupWithMsId, type index_d$8_GroupsQueryBuilder as GroupsQueryBuilder, type index_d$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 index_d$8_ListGroupIntegrationsDataRequest as ListGroupIntegrationsDataRequest, type index_d$8_ListGroupIntegrationsDataResponse as ListGroupIntegrationsDataResponse, type index_d$8_ListGroupsByUserIdRequest as ListGroupsByUserIdRequest, type index_d$8_ListGroupsByUserIdResponse as ListGroupsByUserIdResponse, type index_d$8_ListGroupsOptions as ListGroupsOptions, type index_d$8_ListGroupsRequest as ListGroupsRequest, type index_d$8_ListGroupsResponse as ListGroupsResponse, type index_d$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 index_d$8_QueryGroupsByMembershipRequest as QueryGroupsByMembershipRequest, type index_d$8_QueryGroupsByMembershipResponse as QueryGroupsByMembershipResponse, type index_d$8_QueryGroupsOptions as QueryGroupsOptions, type index_d$8_QueryGroupsRequest as QueryGroupsRequest, type index_d$8_QueryGroupsResponse as QueryGroupsResponse, type index_d$8_QueryGroupsResponseNonNullableFields as QueryGroupsResponseNonNullableFields, type index_d$8_QueryJoinedGroupsRequest as QueryJoinedGroupsRequest, type index_d$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 index_d$8_UpdateGroup as UpdateGroup, type index_d$8_UpdateGroupOptions as UpdateGroupOptions, type index_d$8_UpdateGroupRequest as UpdateGroupRequest, type index_d$8_UpdateGroupResponse as UpdateGroupResponse, type index_d$8_UpdateGroupResponseNonNullableFields as UpdateGroupResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, type index_d$8__publicOnGroupCoverChangedType as _publicOnGroupCoverChangedType, type index_d$8__publicOnGroupCreatedType as _publicOnGroupCreatedType, type index_d$8__publicOnGroupDeletedType as _publicOnGroupDeletedType, type index_d$8__publicOnGroupDescriptionChangedType as _publicOnGroupDescriptionChangedType, type index_d$8__publicOnGroupUpdatedType as _publicOnGroupUpdatedType, index_d$8_createGroup as createGroup, index_d$8_deleteGroup as deleteGroup, index_d$8_getGroup as getGroup, index_d$8_getGroupBySlug as getGroupBySlug, index_d$8_listGroups as listGroups, index_d$8_onGroupCoverChanged as onGroupCoverChanged, index_d$8_onGroupCreated as onGroupCreated, index_d$8_onGroupDeleted as onGroupDeleted, index_d$8_onGroupDescriptionChanged as onGroupDescriptionChanged, index_d$8_onGroupUpdated as onGroupUpdated, onGroupCoverChanged$1 as publicOnGroupCoverChanged, onGroupCreated$1 as publicOnGroupCreated, onGroupDeleted$1 as publicOnGroupDeleted, onGroupDescriptionChanged$1 as publicOnGroupDescriptionChanged, onGroupUpdated$1 as publicOnGroupUpdated, index_d$8_queryGroups as queryGroups, index_d$8_updateGroup as updateGroup };
|
|
956
1090
|
}
|
|
957
1091
|
|
|
958
1092
|
interface GroupMember$1 {
|
|
@@ -1534,18 +1668,140 @@ interface QueryMembershipsOptions {
|
|
|
1534
1668
|
query?: Query$4;
|
|
1535
1669
|
}
|
|
1536
1670
|
|
|
1537
|
-
declare function
|
|
1671
|
+
declare function addGroupMembers$1(httpClient: HttpClient): AddGroupMembersSignature;
|
|
1672
|
+
interface AddGroupMembersSignature {
|
|
1673
|
+
/**
|
|
1674
|
+
* Adds site members to a group.
|
|
1675
|
+
*
|
|
1676
|
+
*
|
|
1677
|
+
* The `addGroupMembers()` function returns a Promise that resolves to the newly-added group member
|
|
1678
|
+
* after the member has successfully been added.
|
|
1679
|
+
*
|
|
1680
|
+
* For `SECRET` groups, site admins, group admins, and group members can add additional members to their group.
|
|
1681
|
+
*
|
|
1682
|
+
* For `PUBLIC` and `PRIVATE` groups, only site admins and group admins can add additional members to their group. They can also choose to allow all group members to add a new member to the group.
|
|
1683
|
+
* This setting can be found in your site's Dashboard under **Groups Application > Your Group > Admin Tools > Member Permissions**.
|
|
1684
|
+
*
|
|
1685
|
+
* <!-- > **Note:** If the `suppressAuth` option is set to `true`, all permissions are overwritten and all site members (including non-group members) can add additional members to a group. -->
|
|
1686
|
+
*
|
|
1687
|
+
* @param - Group ID.
|
|
1688
|
+
* @param - IDs of the site members to add to the group.
|
|
1689
|
+
*/
|
|
1690
|
+
(groupId: string, memberIds: string[], options?: AddGroupMembersOptions | undefined): Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1691
|
+
}
|
|
1692
|
+
declare function removeGroupMembers$1(httpClient: HttpClient): RemoveGroupMembersSignature;
|
|
1693
|
+
interface RemoveGroupMembersSignature {
|
|
1694
|
+
/**
|
|
1695
|
+
* Removes members from a group.
|
|
1696
|
+
*
|
|
1697
|
+
*
|
|
1698
|
+
* The `removeGroupMembers()` function returns a Promise that resolves when the member is removed from the group.
|
|
1699
|
+
*
|
|
1700
|
+
* > **Note:** Only site admins and group admins can remove members from their group. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten and all site members (including non-group members) can remove members from a group. -->
|
|
1701
|
+
*
|
|
1702
|
+
* @param - Group ID.
|
|
1703
|
+
* @param - IDs of the site members to remove from the group.
|
|
1704
|
+
*/
|
|
1705
|
+
(groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions | undefined): Promise<void>;
|
|
1706
|
+
}
|
|
1707
|
+
declare function listGroupMembers$1(httpClient: HttpClient): ListGroupMembersSignature;
|
|
1708
|
+
interface ListGroupMembersSignature {
|
|
1709
|
+
/**
|
|
1710
|
+
* Lists all members of a group.
|
|
1711
|
+
*
|
|
1712
|
+
*
|
|
1713
|
+
* The `listGroupMembers()` function returns a Promise that resolves to a list of up to 100 group members.
|
|
1714
|
+
* Sorts by default to `joinedDate` in descending order.
|
|
1715
|
+
*
|
|
1716
|
+
* > **Note:** For `SECRET` groups, only site admins, group admins, and group members can see the list of group members. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can see the list of group members. -->
|
|
1717
|
+
* <!-- > + This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use `null` as a placeholder for any unspecified parameters. For example, to specify `limit` only, call `listGroupMembers(groupId, paging, null)`. To specify `supressAuth` only, call `listGroupMembers(groupId, null, options)`. -->
|
|
1718
|
+
*
|
|
1719
|
+
* @param - Group ID.
|
|
1720
|
+
* @param - Paging options.
|
|
1721
|
+
*/
|
|
1722
|
+
(groupId: string, options?: ListGroupMembersOptions | undefined): Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1723
|
+
}
|
|
1724
|
+
declare function queryGroupMembers$1(httpClient: HttpClient): QueryGroupMembersSignature;
|
|
1725
|
+
interface QueryGroupMembersSignature {
|
|
1726
|
+
/**
|
|
1727
|
+
* Retrieves a list of up to 100 group members, given the provided paging, sorting and filtering.
|
|
1728
|
+
*
|
|
1729
|
+
*
|
|
1730
|
+
* Creates a query to retrieve a list of group members.
|
|
1731
|
+
*
|
|
1732
|
+
* > **Note:** For `SECRET` groups, only site admins, group admins, and group members can query group members. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can query group members. -->
|
|
1733
|
+
*
|
|
1734
|
+
* The `queryGroupMembers()` function builds a query to retrieve a list of all group members, and returns a [GroupMembersQueryBuilder](#membersquerybuilder) object.
|
|
1735
|
+
*
|
|
1736
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](#membersquerybuilder/find) function.
|
|
1737
|
+
*
|
|
1738
|
+
* You can refine the query by chaining `GroupMembersQueryBuilder` functions onto the query. `GroupMembersQueryBuilder` functions enable you to sort, filter, and control the results that `queryMembers()` returns.
|
|
1739
|
+
*
|
|
1740
|
+
* `queryGroupMembers()` runs with these `GroupMembersQueryBuilder` defaults, which you can override:
|
|
1741
|
+
* + [`limit(100)`](/members-query-builder/limit)
|
|
1742
|
+
* + [`descending("joinedDate")`](/members-query-builder/descending)
|
|
1743
|
+
*
|
|
1744
|
+
* The following `GroupMembersQueryBuilder` functions are supported for `queryGroupMembers()`. For a full description of the Members object, see the object returned for the [`items`](/members-query-result/items) property in `MembersQueryResult`.
|
|
1745
|
+
* @param - Group ID.
|
|
1746
|
+
*/
|
|
1747
|
+
(groupId: string): MembersQueryBuilder;
|
|
1748
|
+
}
|
|
1749
|
+
declare function listMemberships$1(httpClient: HttpClient): ListMembershipsSignature;
|
|
1750
|
+
interface ListMembershipsSignature {
|
|
1751
|
+
/**
|
|
1752
|
+
* Lists all group memberships of a site member.
|
|
1753
|
+
*
|
|
1754
|
+
*
|
|
1755
|
+
* The `listMemberships()` function returns a Promise that resolves to a list of up to 100 group memberships.
|
|
1756
|
+
* Sorts by default to `groupId` in descending order.
|
|
1757
|
+
*
|
|
1758
|
+
* > **Note:** Only site admins can retrieve a site member's memberships. Site members can see a list of their memberships. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can see a list of a site member's memberships. -->
|
|
1759
|
+
* <!-- > + This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use `null` as a placeholder for any unspecified parameters. For example, to specify `limit` only, call `listMemberships(memberId, paging, null)`. To specify `supressAuth` only, call `listMemberships(memberId, null, options)`. -->
|
|
1760
|
+
*
|
|
1761
|
+
* @param - Site member ID.
|
|
1762
|
+
* @param - Paging options.
|
|
1763
|
+
*/
|
|
1764
|
+
(memberId: string | null, options?: ListMembershipsOptions | undefined): Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1765
|
+
}
|
|
1766
|
+
declare function queryMemberships$1(httpClient: HttpClient): QueryMembershipsSignature;
|
|
1767
|
+
interface QueryMembershipsSignature {
|
|
1768
|
+
/**
|
|
1769
|
+
* Retrieves a list of up to 100 members and their membership status, given the provided paging and filtering.
|
|
1770
|
+
*
|
|
1771
|
+
* The queryMemberships function returns a Promise that resolves to a list of memberships.
|
|
1772
|
+
*
|
|
1773
|
+
* >**Note:** Site members can only query their own memberships.
|
|
1774
|
+
*
|
|
1775
|
+
* | Property | Supported Filters & Sorting |
|
|
1776
|
+
* | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1777
|
+
* | `status` | [`eq()`](#membershipsquerybuilder/eq), [`ne()`](#membershipsquerybuilder/ne) |
|
|
1778
|
+
* | `role` | [`eq()`](#membershipsquerybuilder/eq), [`ne()`](#membershipsquerybuilder/ne) |
|
|
1779
|
+
*
|
|
1780
|
+
* @param - Site member ID.
|
|
1781
|
+
*/
|
|
1782
|
+
(memberId: string | null, options?: QueryMembershipsOptions | undefined): Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1783
|
+
}
|
|
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">;
|
|
1538
1786
|
|
|
1539
1787
|
declare function createEventModule$6<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1540
1788
|
|
|
1541
|
-
declare const addGroupMembers:
|
|
1542
|
-
declare const removeGroupMembers:
|
|
1543
|
-
declare const listGroupMembers:
|
|
1544
|
-
declare const queryGroupMembers:
|
|
1545
|
-
declare const listMemberships:
|
|
1546
|
-
declare const queryMemberships:
|
|
1547
|
-
|
|
1548
|
-
|
|
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;
|
|
1795
|
+
|
|
1796
|
+
type _publicOnGroupMemberAddedType = typeof onGroupMemberAdded$1;
|
|
1797
|
+
/**
|
|
1798
|
+
* Triggered when a new member is added to a group, either directly by an admin or when a Join Request is approved.
|
|
1799
|
+
*/
|
|
1800
|
+
declare const onGroupMemberAdded: ReturnType<typeof createEventModule$6<_publicOnGroupMemberAddedType>>;
|
|
1801
|
+
|
|
1802
|
+
type _publicOnGroupMemberRemovedType = typeof onGroupMemberRemoved$1;
|
|
1803
|
+
/** */
|
|
1804
|
+
declare const onGroupMemberRemoved: ReturnType<typeof createEventModule$6<_publicOnGroupMemberRemovedType>>;
|
|
1549
1805
|
|
|
1550
1806
|
type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
|
|
1551
1807
|
type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
|
|
@@ -1589,6 +1845,8 @@ type index_d$7_QueryNonGroupMembersResponse = QueryNonGroupMembersResponse;
|
|
|
1589
1845
|
type index_d$7_RemoveGroupMembersOptions = RemoveGroupMembersOptions;
|
|
1590
1846
|
type index_d$7_RemoveGroupMembersRequest = RemoveGroupMembersRequest;
|
|
1591
1847
|
type index_d$7_RemoveGroupMembersResponse = RemoveGroupMembersResponse;
|
|
1848
|
+
type index_d$7__publicOnGroupMemberAddedType = _publicOnGroupMemberAddedType;
|
|
1849
|
+
type index_d$7__publicOnGroupMemberRemovedType = _publicOnGroupMemberRemovedType;
|
|
1592
1850
|
declare const index_d$7_addGroupMembers: typeof addGroupMembers;
|
|
1593
1851
|
declare const index_d$7_listGroupMembers: typeof listGroupMembers;
|
|
1594
1852
|
declare const index_d$7_listMemberships: typeof listMemberships;
|
|
@@ -1598,7 +1856,7 @@ declare const index_d$7_queryGroupMembers: typeof queryGroupMembers;
|
|
|
1598
1856
|
declare const index_d$7_queryMemberships: typeof queryMemberships;
|
|
1599
1857
|
declare const index_d$7_removeGroupMembers: typeof removeGroupMembers;
|
|
1600
1858
|
declare namespace index_d$7 {
|
|
1601
|
-
export { type ActionEvent$6 as ActionEvent, type index_d$7_AddGroupMembersOptions as AddGroupMembersOptions, type index_d$7_AddGroupMembersRequest as AddGroupMembersRequest, type index_d$7_AddGroupMembersResponse as AddGroupMembersResponse, type index_d$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 index_d$7_GroupMemberAddedEnvelope as GroupMemberAddedEnvelope, type index_d$7_GroupMemberRemovedEnvelope as GroupMemberRemovedEnvelope, type GroupRole$1 as GroupRole, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, index_d$7_JoinBy as JoinBy, type JoinRequest$1 as JoinRequest, type JoinRequestsApproved$1 as JoinRequestsApproved, type index_d$7_JoinResponse as JoinResponse, type index_d$7_LeaveRequest as LeaveRequest, type index_d$7_LeaveResponse as LeaveResponse, type index_d$7_ListGroupMembersOptions as ListGroupMembersOptions, type index_d$7_ListGroupMembersRequest as ListGroupMembersRequest, type index_d$7_ListGroupMembersResponse as ListGroupMembersResponse, type index_d$7_ListGroupMembersResponseNonNullableFields as ListGroupMembersResponseNonNullableFields, type index_d$7_ListMembershipsOptions as ListMembershipsOptions, type index_d$7_ListMembershipsRequest as ListMembershipsRequest, type index_d$7_ListMembershipsResponse as ListMembershipsResponse, type index_d$7_ListMembershipsResponseNonNullableFields as ListMembershipsResponseNonNullableFields, type index_d$7_MemberAdded as MemberAdded, type index_d$7_MemberJoined as MemberJoined, type MemberJoinedGroup$1 as MemberJoinedGroup, type index_d$7_MemberLeft as MemberLeft, type index_d$7_MemberRemoved as MemberRemoved, type MembersAddedToGroup$1 as MembersAddedToGroup, type MembersInvitedToGroup$1 as MembersInvitedToGroup, type index_d$7_MembersQueryBuilder as MembersQueryBuilder, type index_d$7_MembersQueryResult as MembersQueryResult, type index_d$7_Membership as Membership, type MembershipQuestionAnswer$3 as MembershipQuestionAnswer, index_d$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 index_d$7_QueryGroupMembersRequest as QueryGroupMembersRequest, type index_d$7_QueryGroupMembersResponse as QueryGroupMembersResponse, type index_d$7_QueryGroupMembersResponseNonNullableFields as QueryGroupMembersResponseNonNullableFields, type index_d$7_QueryMembershipsOptions as QueryMembershipsOptions, type index_d$7_QueryMembershipsRequest as QueryMembershipsRequest, type index_d$7_QueryMembershipsResponse as QueryMembershipsResponse, type index_d$7_QueryMembershipsResponseNonNullableFields as QueryMembershipsResponseNonNullableFields, type index_d$7_QueryMyMembershipRequest as QueryMyMembershipRequest, type index_d$7_QueryMyMembershipResponse as QueryMyMembershipResponse, type index_d$7_QueryNonGroupMembersRequest as QueryNonGroupMembersRequest, type index_d$7_QueryNonGroupMembersResponse as QueryNonGroupMembersResponse, type index_d$7_RemoveGroupMembersOptions as RemoveGroupMembersOptions, type index_d$7_RemoveGroupMembersRequest as RemoveGroupMembersRequest, type index_d$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, index_d$7_addGroupMembers as addGroupMembers, index_d$7_listGroupMembers as listGroupMembers, index_d$7_listMemberships as listMemberships, index_d$7_onGroupMemberAdded as onGroupMemberAdded, index_d$7_onGroupMemberRemoved as onGroupMemberRemoved, index_d$7_queryGroupMembers as queryGroupMembers, index_d$7_queryMemberships as queryMemberships, index_d$7_removeGroupMembers as removeGroupMembers };
|
|
1859
|
+
export { type ActionEvent$6 as ActionEvent, type index_d$7_AddGroupMembersOptions as AddGroupMembersOptions, type index_d$7_AddGroupMembersRequest as AddGroupMembersRequest, type index_d$7_AddGroupMembersResponse as AddGroupMembersResponse, type index_d$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 index_d$7_GroupMemberAddedEnvelope as GroupMemberAddedEnvelope, type index_d$7_GroupMemberRemovedEnvelope as GroupMemberRemovedEnvelope, type GroupRole$1 as GroupRole, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, index_d$7_JoinBy as JoinBy, type JoinRequest$1 as JoinRequest, type JoinRequestsApproved$1 as JoinRequestsApproved, type index_d$7_JoinResponse as JoinResponse, type index_d$7_LeaveRequest as LeaveRequest, type index_d$7_LeaveResponse as LeaveResponse, type index_d$7_ListGroupMembersOptions as ListGroupMembersOptions, type index_d$7_ListGroupMembersRequest as ListGroupMembersRequest, type index_d$7_ListGroupMembersResponse as ListGroupMembersResponse, type index_d$7_ListGroupMembersResponseNonNullableFields as ListGroupMembersResponseNonNullableFields, type index_d$7_ListMembershipsOptions as ListMembershipsOptions, type index_d$7_ListMembershipsRequest as ListMembershipsRequest, type index_d$7_ListMembershipsResponse as ListMembershipsResponse, type index_d$7_ListMembershipsResponseNonNullableFields as ListMembershipsResponseNonNullableFields, type index_d$7_MemberAdded as MemberAdded, type index_d$7_MemberJoined as MemberJoined, type MemberJoinedGroup$1 as MemberJoinedGroup, type index_d$7_MemberLeft as MemberLeft, type index_d$7_MemberRemoved as MemberRemoved, type MembersAddedToGroup$1 as MembersAddedToGroup, type MembersInvitedToGroup$1 as MembersInvitedToGroup, type index_d$7_MembersQueryBuilder as MembersQueryBuilder, type index_d$7_MembersQueryResult as MembersQueryResult, type index_d$7_Membership as Membership, type MembershipQuestionAnswer$3 as MembershipQuestionAnswer, index_d$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 index_d$7_QueryGroupMembersRequest as QueryGroupMembersRequest, type index_d$7_QueryGroupMembersResponse as QueryGroupMembersResponse, type index_d$7_QueryGroupMembersResponseNonNullableFields as QueryGroupMembersResponseNonNullableFields, type index_d$7_QueryMembershipsOptions as QueryMembershipsOptions, type index_d$7_QueryMembershipsRequest as QueryMembershipsRequest, type index_d$7_QueryMembershipsResponse as QueryMembershipsResponse, type index_d$7_QueryMembershipsResponseNonNullableFields as QueryMembershipsResponseNonNullableFields, type index_d$7_QueryMyMembershipRequest as QueryMyMembershipRequest, type index_d$7_QueryMyMembershipResponse as QueryMyMembershipResponse, type index_d$7_QueryNonGroupMembersRequest as QueryNonGroupMembersRequest, type index_d$7_QueryNonGroupMembersResponse as QueryNonGroupMembersResponse, type index_d$7_RemoveGroupMembersOptions as RemoveGroupMembersOptions, type index_d$7_RemoveGroupMembersRequest as RemoveGroupMembersRequest, type index_d$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 index_d$7__publicOnGroupMemberAddedType as _publicOnGroupMemberAddedType, type index_d$7__publicOnGroupMemberRemovedType as _publicOnGroupMemberRemovedType, index_d$7_addGroupMembers as addGroupMembers, index_d$7_listGroupMembers as listGroupMembers, index_d$7_listMemberships as listMemberships, index_d$7_onGroupMemberAdded as onGroupMemberAdded, index_d$7_onGroupMemberRemoved as onGroupMemberRemoved, onGroupMemberAdded$1 as publicOnGroupMemberAdded, onGroupMemberRemoved$1 as publicOnGroupMemberRemoved, index_d$7_queryGroupMembers as queryGroupMembers, index_d$7_queryMemberships as queryMemberships, index_d$7_removeGroupMembers as removeGroupMembers };
|
|
1602
1860
|
}
|
|
1603
1861
|
|
|
1604
1862
|
/**
|
|
@@ -2311,17 +2569,92 @@ interface GroupRequestsQueryBuilder {
|
|
|
2311
2569
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2312
2570
|
}
|
|
2313
2571
|
|
|
2314
|
-
declare function
|
|
2572
|
+
declare function approveGroupRequests$1(httpClient: HttpClient): ApproveGroupRequestsSignature;
|
|
2573
|
+
interface ApproveGroupRequestsSignature {
|
|
2574
|
+
/**
|
|
2575
|
+
* Approves requests to create a group.
|
|
2576
|
+
*
|
|
2577
|
+
* The `approveGroupRequests()` function returns a Promise that resolves when a site member's request to create a group is approved. Only site admins can approve requests to create a group. When the request is approved, the new group is added to the Groups List page of your site.
|
|
2578
|
+
*
|
|
2579
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
2580
|
+
* @param - IDs of the requests create groups to approve.
|
|
2581
|
+
*
|
|
2582
|
+
* Max: 100 create group request IDs
|
|
2583
|
+
*/
|
|
2584
|
+
(groupRequestIds: string[]): Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2585
|
+
}
|
|
2586
|
+
declare function rejectGroupRequests$1(httpClient: HttpClient): RejectGroupRequestsSignature;
|
|
2587
|
+
interface RejectGroupRequestsSignature {
|
|
2588
|
+
/**
|
|
2589
|
+
* Rejects a request to create a group.
|
|
2590
|
+
*
|
|
2591
|
+
* The `rejectGroupRequests()` function returns a Promise that resolves when a member's request to create a group is rejected. Only site admins can reject requests to create a group.
|
|
2592
|
+
*
|
|
2593
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
2594
|
+
* @param - Rejection data.
|
|
2595
|
+
*/
|
|
2596
|
+
(rejections: Rejection$3[]): Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2597
|
+
}
|
|
2598
|
+
declare function listGroupRequests$1(httpClient: HttpClient): ListGroupRequestsSignature;
|
|
2599
|
+
interface ListGroupRequestsSignature {
|
|
2600
|
+
/**
|
|
2601
|
+
* Lists requests to create a group.
|
|
2602
|
+
*
|
|
2603
|
+
* The `listGroupRequests()` function returns a Promise that resolves to a list of up to 1,000 create group requests on your site.
|
|
2604
|
+
*
|
|
2605
|
+
* Using the options parameter, you can filter your list of posts, set the amount of posts to be returned, and sort your list in a specified order.
|
|
2606
|
+
*
|
|
2607
|
+
* By default, the list is sorted by `_createdDate` in descending order. Only admins can see create group requests. Members can access their own create group requests in their site.
|
|
2608
|
+
*
|
|
2609
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
2610
|
+
*
|
|
2611
|
+
* @param - Paging options.
|
|
2612
|
+
*/
|
|
2613
|
+
(options?: ListGroupRequestsOptions | undefined): Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2614
|
+
}
|
|
2615
|
+
declare function queryGroupRequests$1(httpClient: HttpClient): QueryGroupRequestsSignature;
|
|
2616
|
+
interface QueryGroupRequestsSignature {
|
|
2617
|
+
/**
|
|
2618
|
+
* Creates a query to retrieve a list of create requests.
|
|
2619
|
+
*
|
|
2620
|
+
* The `queryGroupRequests()` function builds a query to retrieve a list of all requests to create a group, and returns a `GroupRequestsQueryBuilder` object.
|
|
2621
|
+
*
|
|
2622
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](/group-requests-query-builder/find) function. You can refine the query by chaining `GroupRequestQueryBuilder` functions onto the query. `GroupRequestQueryBuilder` functions enable you to sort, filter, and control the results that `queryGroupRequests()` returns.
|
|
2623
|
+
*
|
|
2624
|
+
* `queryGorupRequests()` runs with these `GroupRequestsQueryBuilder` defaults, which you can override:
|
|
2625
|
+
* - [`limit(1000)`](/group-requests-query-builder/limit)
|
|
2626
|
+
* - [`descending('_createdDate')`](/group-requests-query-builder/descending)
|
|
2627
|
+
*
|
|
2628
|
+
* The following `GroupRequestsQueryBuilder` functions are supported for `queryGroupRequests()`. For a full description of the `GroupRequests` object, see the object returned for the [`items`](/group-requests-query-result/items) property in `GroupRequestsQueryResult`.
|
|
2629
|
+
*/
|
|
2630
|
+
(options?: QueryGroupRequestsOptions | undefined): GroupRequestsQueryBuilder;
|
|
2631
|
+
}
|
|
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">;
|
|
2315
2635
|
|
|
2316
2636
|
declare function createEventModule$5<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2317
2637
|
|
|
2318
|
-
declare const approveGroupRequests:
|
|
2319
|
-
declare const rejectGroupRequests:
|
|
2320
|
-
declare const listGroupRequests:
|
|
2321
|
-
declare const queryGroupRequests:
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
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;
|
|
2642
|
+
|
|
2643
|
+
type _publicOnGroupRequestCreatedType = typeof onGroupRequestCreated$1;
|
|
2644
|
+
/** */
|
|
2645
|
+
declare const onGroupRequestCreated: ReturnType<typeof createEventModule$5<_publicOnGroupRequestCreatedType>>;
|
|
2646
|
+
|
|
2647
|
+
type _publicOnGroupRequestApprovedType = typeof onGroupRequestApproved$1;
|
|
2648
|
+
/**
|
|
2649
|
+
* Triggered when a Group Request is approved.
|
|
2650
|
+
*/
|
|
2651
|
+
declare const onGroupRequestApproved: ReturnType<typeof createEventModule$5<_publicOnGroupRequestApprovedType>>;
|
|
2652
|
+
|
|
2653
|
+
type _publicOnGroupRequestRejectedType = typeof onGroupRequestRejected$1;
|
|
2654
|
+
/**
|
|
2655
|
+
* Triggered when a Group Request is rejected.
|
|
2656
|
+
*/
|
|
2657
|
+
declare const onGroupRequestRejected: ReturnType<typeof createEventModule$5<_publicOnGroupRequestRejectedType>>;
|
|
2325
2658
|
|
|
2326
2659
|
type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
|
|
2327
2660
|
type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
|
|
@@ -2349,6 +2682,9 @@ type index_d$6_RejectGroupRequestsResponse = RejectGroupRequestsResponse;
|
|
|
2349
2682
|
type index_d$6_RejectGroupRequestsResponseNonNullableFields = RejectGroupRequestsResponseNonNullableFields;
|
|
2350
2683
|
type index_d$6_SubmitGroupRequestRequest = SubmitGroupRequestRequest;
|
|
2351
2684
|
type index_d$6_SubmitGroupRequestResponse = SubmitGroupRequestResponse;
|
|
2685
|
+
type index_d$6__publicOnGroupRequestApprovedType = _publicOnGroupRequestApprovedType;
|
|
2686
|
+
type index_d$6__publicOnGroupRequestCreatedType = _publicOnGroupRequestCreatedType;
|
|
2687
|
+
type index_d$6__publicOnGroupRequestRejectedType = _publicOnGroupRequestRejectedType;
|
|
2352
2688
|
declare const index_d$6_approveGroupRequests: typeof approveGroupRequests;
|
|
2353
2689
|
declare const index_d$6_listGroupRequests: typeof listGroupRequests;
|
|
2354
2690
|
declare const index_d$6_onGroupRequestApproved: typeof onGroupRequestApproved;
|
|
@@ -2357,7 +2693,7 @@ declare const index_d$6_onGroupRequestRejected: typeof onGroupRequestRejected;
|
|
|
2357
2693
|
declare const index_d$6_queryGroupRequests: typeof queryGroupRequests;
|
|
2358
2694
|
declare const index_d$6_rejectGroupRequests: typeof rejectGroupRequests;
|
|
2359
2695
|
declare namespace index_d$6 {
|
|
2360
|
-
export { type AccessRestriction$1 as AccessRestriction, type AccessRestrictionDataOneOf$1 as AccessRestrictionDataOneOf, type ActionEvent$5 as ActionEvent, AllowPolicy$1 as AllowPolicy, type index_d$6_ApproveGroupRequestsRequest as ApproveGroupRequestsRequest, type index_d$6_ApproveGroupRequestsResponse as ApproveGroupRequestsResponse, type index_d$6_ApproveGroupRequestsResponseNonNullableFields as ApproveGroupRequestsResponseNonNullableFields, type BaseEventMetadata$5 as BaseEventMetadata, type index_d$6_CancelGroupRequestRequest as CancelGroupRequestRequest, type index_d$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 index_d$6_GroupRequest as GroupRequest, type index_d$6_GroupRequestApproved as GroupRequestApproved, type index_d$6_GroupRequestApprovedEnvelope as GroupRequestApprovedEnvelope, type index_d$6_GroupRequestCreatedEnvelope as GroupRequestCreatedEnvelope, type index_d$6_GroupRequestRejected as GroupRequestRejected, type index_d$6_GroupRequestRejectedEnvelope as GroupRequestRejectedEnvelope, type index_d$6_GroupRequestsQueryBuilder as GroupRequestsQueryBuilder, type index_d$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 index_d$6_ListGroupRequestsOptions as ListGroupRequestsOptions, type index_d$6_ListGroupRequestsRequest as ListGroupRequestsRequest, type index_d$6_ListGroupRequestsResponse as ListGroupRequestsResponse, type index_d$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 index_d$6_QueryGroupRequestsOptions as QueryGroupRequestsOptions, type index_d$6_QueryGroupRequestsRequest as QueryGroupRequestsRequest, type index_d$6_QueryGroupRequestsResponse as QueryGroupRequestsResponse, type index_d$6_QueryGroupRequestsResponseNonNullableFields as QueryGroupRequestsResponseNonNullableFields, type index_d$6_RejectGroupRequestsRequest as RejectGroupRequestsRequest, type index_d$6_RejectGroupRequestsResponse as RejectGroupRequestsResponse, type index_d$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 index_d$6_SubmitGroupRequestRequest as SubmitGroupRequestRequest, type index_d$6_SubmitGroupRequestResponse as SubmitGroupRequestResponse, Type$1 as Type, WebhookIdentityType$5 as WebhookIdentityType, index_d$6_approveGroupRequests as approveGroupRequests, index_d$6_listGroupRequests as listGroupRequests, index_d$6_onGroupRequestApproved as onGroupRequestApproved, index_d$6_onGroupRequestCreated as onGroupRequestCreated, index_d$6_onGroupRequestRejected as onGroupRequestRejected, index_d$6_queryGroupRequests as queryGroupRequests, index_d$6_rejectGroupRequests as rejectGroupRequests };
|
|
2696
|
+
export { type AccessRestriction$1 as AccessRestriction, type AccessRestrictionDataOneOf$1 as AccessRestrictionDataOneOf, type ActionEvent$5 as ActionEvent, AllowPolicy$1 as AllowPolicy, type index_d$6_ApproveGroupRequestsRequest as ApproveGroupRequestsRequest, type index_d$6_ApproveGroupRequestsResponse as ApproveGroupRequestsResponse, type index_d$6_ApproveGroupRequestsResponseNonNullableFields as ApproveGroupRequestsResponseNonNullableFields, type BaseEventMetadata$5 as BaseEventMetadata, type index_d$6_CancelGroupRequestRequest as CancelGroupRequestRequest, type index_d$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 index_d$6_GroupRequest as GroupRequest, type index_d$6_GroupRequestApproved as GroupRequestApproved, type index_d$6_GroupRequestApprovedEnvelope as GroupRequestApprovedEnvelope, type index_d$6_GroupRequestCreatedEnvelope as GroupRequestCreatedEnvelope, type index_d$6_GroupRequestRejected as GroupRequestRejected, type index_d$6_GroupRequestRejectedEnvelope as GroupRequestRejectedEnvelope, type index_d$6_GroupRequestsQueryBuilder as GroupRequestsQueryBuilder, type index_d$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 index_d$6_ListGroupRequestsOptions as ListGroupRequestsOptions, type index_d$6_ListGroupRequestsRequest as ListGroupRequestsRequest, type index_d$6_ListGroupRequestsResponse as ListGroupRequestsResponse, type index_d$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 index_d$6_QueryGroupRequestsOptions as QueryGroupRequestsOptions, type index_d$6_QueryGroupRequestsRequest as QueryGroupRequestsRequest, type index_d$6_QueryGroupRequestsResponse as QueryGroupRequestsResponse, type index_d$6_QueryGroupRequestsResponseNonNullableFields as QueryGroupRequestsResponseNonNullableFields, type index_d$6_RejectGroupRequestsRequest as RejectGroupRequestsRequest, type index_d$6_RejectGroupRequestsResponse as RejectGroupRequestsResponse, type index_d$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 index_d$6_SubmitGroupRequestRequest as SubmitGroupRequestRequest, type index_d$6_SubmitGroupRequestResponse as SubmitGroupRequestResponse, Type$1 as Type, WebhookIdentityType$5 as WebhookIdentityType, type index_d$6__publicOnGroupRequestApprovedType as _publicOnGroupRequestApprovedType, type index_d$6__publicOnGroupRequestCreatedType as _publicOnGroupRequestCreatedType, type index_d$6__publicOnGroupRequestRejectedType as _publicOnGroupRequestRejectedType, index_d$6_approveGroupRequests as approveGroupRequests, index_d$6_listGroupRequests as listGroupRequests, index_d$6_onGroupRequestApproved as onGroupRequestApproved, index_d$6_onGroupRequestCreated as onGroupRequestCreated, index_d$6_onGroupRequestRejected as onGroupRequestRejected, onGroupRequestApproved$1 as publicOnGroupRequestApproved, onGroupRequestCreated$1 as publicOnGroupRequestCreated, onGroupRequestRejected$1 as publicOnGroupRequestRejected, index_d$6_queryGroupRequests as queryGroupRequests, index_d$6_rejectGroupRequests as rejectGroupRequests };
|
|
2361
2697
|
}
|
|
2362
2698
|
|
|
2363
2699
|
/**
|
|
@@ -2678,14 +3014,58 @@ interface UnassignRoleOptions {
|
|
|
2678
3014
|
siteMemberIds?: string[];
|
|
2679
3015
|
}
|
|
2680
3016
|
|
|
2681
|
-
declare function
|
|
3017
|
+
declare function assignRole$1(httpClient: HttpClient): AssignRoleSignature;
|
|
3018
|
+
interface AssignRoleSignature {
|
|
3019
|
+
/**
|
|
3020
|
+
* Assigns a specific role to group members.
|
|
3021
|
+
*
|
|
3022
|
+
*
|
|
3023
|
+
* >**Note:** This function is only relevant for site admins, and group members with group admin permissions.
|
|
3024
|
+
*
|
|
3025
|
+
* The `assignRole()` function returns a Promise that resolves to the newly-assigned role after it has successfully been assigned. Assigning a role overrides an existing role. For example, assigning a member role to an admin unassigned their admin role.
|
|
3026
|
+
* @param - Group ID.
|
|
3027
|
+
* @param - Member IDs.
|
|
3028
|
+
*
|
|
3029
|
+
* Max: 100 member IDs
|
|
3030
|
+
* @param - Role to assign.
|
|
3031
|
+
*/
|
|
3032
|
+
(groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions | undefined): Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
3033
|
+
}
|
|
3034
|
+
declare function unassignRole$1(httpClient: HttpClient): UnassignRoleSignature;
|
|
3035
|
+
interface UnassignRoleSignature {
|
|
3036
|
+
/**
|
|
3037
|
+
* Unassigns a role from group members.
|
|
3038
|
+
*
|
|
3039
|
+
* >**Note:** This function is only relevant for site admins, and group members with group admin permissions.
|
|
3040
|
+
*
|
|
3041
|
+
* The `unassignRole()` function returns a Promise that resolves to the unassigned role after it has successfully been unassigned. This function only applies to admin roles. Using this function with member roles returns an error.
|
|
3042
|
+
* @param - Group ID.
|
|
3043
|
+
* @param - Member IDs.
|
|
3044
|
+
*
|
|
3045
|
+
* Max: 100 member IDs
|
|
3046
|
+
* @param - Role to unassign.
|
|
3047
|
+
*/
|
|
3048
|
+
(groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions | undefined): Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
3049
|
+
}
|
|
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">;
|
|
2682
3052
|
|
|
2683
3053
|
declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2684
3054
|
|
|
2685
|
-
declare const assignRole:
|
|
2686
|
-
declare const unassignRole:
|
|
2687
|
-
|
|
2688
|
-
|
|
3055
|
+
declare const assignRole: BuildRESTFunction<typeof assignRole$1> & typeof assignRole$1;
|
|
3056
|
+
declare const unassignRole: BuildRESTFunction<typeof unassignRole$1> & typeof unassignRole$1;
|
|
3057
|
+
|
|
3058
|
+
type _publicOnGroupRoleAssignedType = typeof onGroupRoleAssigned$1;
|
|
3059
|
+
/**
|
|
3060
|
+
* Triggered when a role is assigned to an existing member.
|
|
3061
|
+
*/
|
|
3062
|
+
declare const onGroupRoleAssigned: ReturnType<typeof createEventModule$4<_publicOnGroupRoleAssignedType>>;
|
|
3063
|
+
|
|
3064
|
+
type _publicOnGroupRoleUnassignedType = typeof onGroupRoleUnassigned$1;
|
|
3065
|
+
/**
|
|
3066
|
+
* Triggered when a role is removed from a member.
|
|
3067
|
+
*/
|
|
3068
|
+
declare const onGroupRoleUnassigned: ReturnType<typeof createEventModule$4<_publicOnGroupRoleUnassignedType>>;
|
|
2689
3069
|
|
|
2690
3070
|
type index_d$5_AssignRoleOptions = AssignRoleOptions;
|
|
2691
3071
|
type index_d$5_AssignRoleRequest = AssignRoleRequest;
|
|
@@ -2703,12 +3083,14 @@ type index_d$5_UnassignRoleOptions = UnassignRoleOptions;
|
|
|
2703
3083
|
type index_d$5_UnassignRoleRequest = UnassignRoleRequest;
|
|
2704
3084
|
type index_d$5_UnassignRoleResponse = UnassignRoleResponse;
|
|
2705
3085
|
type index_d$5_UnassignRoleResponseNonNullableFields = UnassignRoleResponseNonNullableFields;
|
|
3086
|
+
type index_d$5__publicOnGroupRoleAssignedType = _publicOnGroupRoleAssignedType;
|
|
3087
|
+
type index_d$5__publicOnGroupRoleUnassignedType = _publicOnGroupRoleUnassignedType;
|
|
2706
3088
|
declare const index_d$5_assignRole: typeof assignRole;
|
|
2707
3089
|
declare const index_d$5_onGroupRoleAssigned: typeof onGroupRoleAssigned;
|
|
2708
3090
|
declare const index_d$5_onGroupRoleUnassigned: typeof onGroupRoleUnassigned;
|
|
2709
3091
|
declare const index_d$5_unassignRole: typeof unassignRole;
|
|
2710
3092
|
declare namespace index_d$5 {
|
|
2711
|
-
export { type ActionEvent$4 as ActionEvent, type index_d$5_AssignRoleOptions as AssignRoleOptions, type index_d$5_AssignRoleRequest as AssignRoleRequest, type index_d$5_AssignRoleResponse as AssignRoleResponse, type index_d$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 index_d$5_GroupMember as GroupMember, type index_d$5_GroupRole as GroupRole, type index_d$5_GroupRoleAssignedEnvelope as GroupRoleAssignedEnvelope, type index_d$5_GroupRoleUnassignedEnvelope as GroupRoleUnassignedEnvelope, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type MessageEnvelope$4 as MessageEnvelope, type RestoreInfo$4 as RestoreInfo, index_d$5_Role as Role, type index_d$5_RoleAssignedToGroupMember as RoleAssignedToGroupMember, type index_d$5_RoleUnassignedFromGroupMember as RoleUnassignedFromGroupMember, type index_d$5_UnassignRoleOptions as UnassignRoleOptions, type index_d$5_UnassignRoleRequest as UnassignRoleRequest, type index_d$5_UnassignRoleResponse as UnassignRoleResponse, type index_d$5_UnassignRoleResponseNonNullableFields as UnassignRoleResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, index_d$5_assignRole as assignRole, index_d$5_onGroupRoleAssigned as onGroupRoleAssigned, index_d$5_onGroupRoleUnassigned as onGroupRoleUnassigned, index_d$5_unassignRole as unassignRole };
|
|
3093
|
+
export { type ActionEvent$4 as ActionEvent, type index_d$5_AssignRoleOptions as AssignRoleOptions, type index_d$5_AssignRoleRequest as AssignRoleRequest, type index_d$5_AssignRoleResponse as AssignRoleResponse, type index_d$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 index_d$5_GroupMember as GroupMember, type index_d$5_GroupRole as GroupRole, type index_d$5_GroupRoleAssignedEnvelope as GroupRoleAssignedEnvelope, type index_d$5_GroupRoleUnassignedEnvelope as GroupRoleUnassignedEnvelope, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type MessageEnvelope$4 as MessageEnvelope, type RestoreInfo$4 as RestoreInfo, index_d$5_Role as Role, type index_d$5_RoleAssignedToGroupMember as RoleAssignedToGroupMember, type index_d$5_RoleUnassignedFromGroupMember as RoleUnassignedFromGroupMember, type index_d$5_UnassignRoleOptions as UnassignRoleOptions, type index_d$5_UnassignRoleRequest as UnassignRoleRequest, type index_d$5_UnassignRoleResponse as UnassignRoleResponse, type index_d$5_UnassignRoleResponseNonNullableFields as UnassignRoleResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type index_d$5__publicOnGroupRoleAssignedType as _publicOnGroupRoleAssignedType, type index_d$5__publicOnGroupRoleUnassignedType as _publicOnGroupRoleUnassignedType, index_d$5_assignRole as assignRole, index_d$5_onGroupRoleAssigned as onGroupRoleAssigned, index_d$5_onGroupRoleUnassigned as onGroupRoleUnassigned, onGroupRoleAssigned$1 as publicOnGroupRoleAssigned, onGroupRoleUnassigned$1 as publicOnGroupRoleUnassigned, index_d$5_unassignRole as unassignRole };
|
|
2712
3094
|
}
|
|
2713
3095
|
|
|
2714
3096
|
/**
|
|
@@ -2927,13 +3309,41 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
2927
3309
|
rules?: GroupRule[];
|
|
2928
3310
|
}
|
|
2929
3311
|
|
|
2930
|
-
declare function
|
|
3312
|
+
declare function listRules$1(httpClient: HttpClient): ListRulesSignature;
|
|
3313
|
+
interface ListRulesSignature {
|
|
3314
|
+
/**
|
|
3315
|
+
* Retrieves rules.
|
|
3316
|
+
*
|
|
3317
|
+
* >**Note:**
|
|
3318
|
+
* >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
3319
|
+
* @param - Group ID.
|
|
3320
|
+
*/
|
|
3321
|
+
(groupId: string): Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3322
|
+
}
|
|
3323
|
+
declare function createOrReplaceAllRules$1(httpClient: HttpClient): CreateOrReplaceAllRulesSignature;
|
|
3324
|
+
interface CreateOrReplaceAllRulesSignature {
|
|
3325
|
+
/**
|
|
3326
|
+
* Creates rules if no rules have been set up. Otherwise, replaces all existing rules.
|
|
3327
|
+
* > **Note:** Only admins can create or replace rules.
|
|
3328
|
+
*
|
|
3329
|
+
* >**Note:**
|
|
3330
|
+
* >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
3331
|
+
* @param - Group ID.
|
|
3332
|
+
*/
|
|
3333
|
+
(groupId: string, options?: CreateOrReplaceAllRulesOptions | undefined): Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3334
|
+
}
|
|
3335
|
+
declare const onGroupRulesUpdated$1: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
2931
3336
|
|
|
2932
3337
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2933
3338
|
|
|
2934
|
-
declare const listRules:
|
|
2935
|
-
declare const createOrReplaceAllRules:
|
|
2936
|
-
|
|
3339
|
+
declare const listRules: BuildRESTFunction<typeof listRules$1> & typeof listRules$1;
|
|
3340
|
+
declare const createOrReplaceAllRules: BuildRESTFunction<typeof createOrReplaceAllRules$1> & typeof createOrReplaceAllRules$1;
|
|
3341
|
+
|
|
3342
|
+
type _publicOnGroupRulesUpdatedType = typeof onGroupRulesUpdated$1;
|
|
3343
|
+
/**
|
|
3344
|
+
* Triggered when rules are updated.
|
|
3345
|
+
*/
|
|
3346
|
+
declare const onGroupRulesUpdated: ReturnType<typeof createEventModule$3<_publicOnGroupRulesUpdatedType>>;
|
|
2937
3347
|
|
|
2938
3348
|
type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
|
|
2939
3349
|
type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
|
|
@@ -2947,11 +3357,12 @@ type index_d$4_ListRulesRequest = ListRulesRequest;
|
|
|
2947
3357
|
type index_d$4_ListRulesResponse = ListRulesResponse;
|
|
2948
3358
|
type index_d$4_ListRulesResponseNonNullableFields = ListRulesResponseNonNullableFields;
|
|
2949
3359
|
type index_d$4_ListTemplatesResponse = ListTemplatesResponse;
|
|
3360
|
+
type index_d$4__publicOnGroupRulesUpdatedType = _publicOnGroupRulesUpdatedType;
|
|
2950
3361
|
declare const index_d$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
|
|
2951
3362
|
declare const index_d$4_listRules: typeof listRules;
|
|
2952
3363
|
declare const index_d$4_onGroupRulesUpdated: typeof onGroupRulesUpdated;
|
|
2953
3364
|
declare namespace index_d$4 {
|
|
2954
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_CreateOrReplaceAllRulesOptions as CreateOrReplaceAllRulesOptions, type index_d$4_CreateOrReplaceAllRulesRequest as CreateOrReplaceAllRulesRequest, type index_d$4_CreateOrReplaceAllRulesResponse as CreateOrReplaceAllRulesResponse, type index_d$4_CreateOrReplaceAllRulesResponseNonNullableFields as CreateOrReplaceAllRulesResponseNonNullableFields, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$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 index_d$4_GroupRule as GroupRule, type index_d$4_GroupRules as GroupRules, type index_d$4_GroupRulesUpdatedEnvelope as GroupRulesUpdatedEnvelope, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$4_ListRulesRequest as ListRulesRequest, type index_d$4_ListRulesResponse as ListRulesResponse, type index_d$4_ListRulesResponseNonNullableFields as ListRulesResponseNonNullableFields, type index_d$4_ListTemplatesResponse as ListTemplatesResponse, type MessageEnvelope$3 as MessageEnvelope, type RestoreInfo$3 as RestoreInfo, WebhookIdentityType$3 as WebhookIdentityType, index_d$4_createOrReplaceAllRules as createOrReplaceAllRules, index_d$4_listRules as listRules, index_d$4_onGroupRulesUpdated as onGroupRulesUpdated };
|
|
3365
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_CreateOrReplaceAllRulesOptions as CreateOrReplaceAllRulesOptions, type index_d$4_CreateOrReplaceAllRulesRequest as CreateOrReplaceAllRulesRequest, type index_d$4_CreateOrReplaceAllRulesResponse as CreateOrReplaceAllRulesResponse, type index_d$4_CreateOrReplaceAllRulesResponseNonNullableFields as CreateOrReplaceAllRulesResponseNonNullableFields, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$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 index_d$4_GroupRule as GroupRule, type index_d$4_GroupRules as GroupRules, type index_d$4_GroupRulesUpdatedEnvelope as GroupRulesUpdatedEnvelope, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$4_ListRulesRequest as ListRulesRequest, type index_d$4_ListRulesResponse as ListRulesResponse, type index_d$4_ListRulesResponseNonNullableFields as ListRulesResponseNonNullableFields, type index_d$4_ListTemplatesResponse as ListTemplatesResponse, type MessageEnvelope$3 as MessageEnvelope, type RestoreInfo$3 as RestoreInfo, WebhookIdentityType$3 as WebhookIdentityType, type index_d$4__publicOnGroupRulesUpdatedType as _publicOnGroupRulesUpdatedType, index_d$4_createOrReplaceAllRules as createOrReplaceAllRules, index_d$4_listRules as listRules, index_d$4_onGroupRulesUpdated as onGroupRulesUpdated, onGroupRulesUpdated$1 as publicOnGroupRulesUpdated };
|
|
2955
3366
|
}
|
|
2956
3367
|
|
|
2957
3368
|
/**
|
|
@@ -3496,17 +3907,111 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3496
3907
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3497
3908
|
}
|
|
3498
3909
|
|
|
3499
|
-
declare function
|
|
3910
|
+
declare function approveJoinGroupRequests$1(httpClient: HttpClient): ApproveJoinGroupRequestsSignature;
|
|
3911
|
+
interface ApproveJoinGroupRequestsSignature {
|
|
3912
|
+
/**
|
|
3913
|
+
* Approves requests to join a group.
|
|
3914
|
+
*
|
|
3915
|
+
* > **Note:** This function is only relevant for private groups.
|
|
3916
|
+
*
|
|
3917
|
+
* The `approvejoinGroupRequests()` function returns a Promise that resolves when a site member's request to join a group is approved.
|
|
3918
|
+
* Only site admins and group admins can approve site member requests to join a group, unless the group setting, `membersCanApprove` is set to `true`.
|
|
3919
|
+
*
|
|
3920
|
+
* <!--
|
|
3921
|
+
* > **Note:** If the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can approve site member requests to join a group.
|
|
3922
|
+
* -->
|
|
3923
|
+
* @param - IDs of the site members to approve.
|
|
3924
|
+
* @param - ID of the group requested to join.
|
|
3925
|
+
*/
|
|
3926
|
+
(groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions | undefined): Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3927
|
+
}
|
|
3928
|
+
declare function rejectJoinGroupRequests$1(httpClient: HttpClient): RejectJoinGroupRequestsSignature;
|
|
3929
|
+
interface RejectJoinGroupRequestsSignature {
|
|
3930
|
+
/**
|
|
3931
|
+
* Rejects requests to join a group.
|
|
3932
|
+
*
|
|
3933
|
+
* > **Note:** This function is only relevant for private groups.
|
|
3934
|
+
*
|
|
3935
|
+
* The `rejectjoinGroupRequests()` function returns a Promise that resolves when the site member's request to join a group is rejected.
|
|
3936
|
+
* Only site admins or group admins can reject site member requests to join the group, unless the group setting, `membersCanApprove` is set to `true`.
|
|
3937
|
+
*
|
|
3938
|
+
* <!--
|
|
3939
|
+
* > **Note:** If the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can reject site member requests to join a group.
|
|
3940
|
+
* -->
|
|
3941
|
+
*
|
|
3942
|
+
* @param - Rejection data.
|
|
3943
|
+
* @param - ID of the group requested to join.
|
|
3944
|
+
*/
|
|
3945
|
+
(groupId: string, rejections: Rejection$2[]): Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3946
|
+
}
|
|
3947
|
+
declare function listJoinGroupRequests$1(httpClient: HttpClient): ListJoinGroupRequestsSignature;
|
|
3948
|
+
interface ListJoinGroupRequestsSignature {
|
|
3949
|
+
/**
|
|
3950
|
+
* Lists requests to join a group.
|
|
3951
|
+
*
|
|
3952
|
+
* > **Note:** This function is only relevant for private groups.
|
|
3953
|
+
*
|
|
3954
|
+
* The `listjoinGroupRequests()` function returns a Promise that resolves to a list of up to 100 requests to join a group. Sorts by default to `_createdDate` in descending order.
|
|
3955
|
+
* Only site admins and group admins can see requests to join their group. Site members can access their own join requests in their site.
|
|
3956
|
+
*
|
|
3957
|
+
* > **Notes:**
|
|
3958
|
+
* <!-- > + If the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can see requests to join a group. -->
|
|
3959
|
+
* @param - ID of the group requested to join.
|
|
3960
|
+
*/
|
|
3961
|
+
(groupId: string, options?: ListJoinGroupRequestsOptions | undefined): Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3962
|
+
}
|
|
3963
|
+
declare function queryJoinGroupRequests$1(httpClient: HttpClient): QueryJoinGroupRequestsSignature;
|
|
3964
|
+
interface QueryJoinGroupRequestsSignature {
|
|
3965
|
+
/**
|
|
3966
|
+
* Creates a query to retrieve a list of join requests.
|
|
3967
|
+
*
|
|
3968
|
+
* > **Notes:**
|
|
3969
|
+
* > + This function is only relevant for private groups.
|
|
3970
|
+
* > + For `SECRET` groups, only site admins and group admins can query requests to join their group. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten, and all site members (including non-group members) can query requests to join a group. -->
|
|
3971
|
+
*
|
|
3972
|
+
* The `queryjoinGroupRequests()` function builds a query to retrieve a list of all requests to join a group, and returns a `JoinGroupRequestsQueryBuilder` object.
|
|
3973
|
+
*
|
|
3974
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](/join-group-requests-query-builder/find) function.
|
|
3975
|
+
*
|
|
3976
|
+
* You can refine the query by chaining `joinGroupRequestsQueryBuilder` functions onto the query. `joinGroupRequestsQueryBuilder` functions enable you to sort, filter, and control the results that `queryjoinGroupRequests()` returns.
|
|
3977
|
+
*
|
|
3978
|
+
* The results of the `queryjoinGroupRequests()` function are sorted by `_createdDate` in descending order.
|
|
3979
|
+
*
|
|
3980
|
+
* `queryjoinGroupRequests()` runs with this `joinGroupRequestsQueryBuilder` default, which you can override:
|
|
3981
|
+
* + [`limit(100)`](/join-group-requests-query-builder/limit)
|
|
3982
|
+
*
|
|
3983
|
+
* The following `joinGroupRequestsQueryBuilder` functions are supported for `queryjoinGroupRequests()`. For a full description of the joinGroupRequests object, see the object returned for the [`items`](/join-group-requests-query-result/items) property in `JoinGroupRequestsQueryResult`.
|
|
3984
|
+
*
|
|
3985
|
+
* @param - Group ID.
|
|
3986
|
+
*/
|
|
3987
|
+
(groupId: string, options?: QueryJoinGroupRequestsOptions | undefined): JoinGroupRequestsQueryBuilder;
|
|
3988
|
+
}
|
|
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">;
|
|
3500
3992
|
|
|
3501
3993
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3502
3994
|
|
|
3503
|
-
declare const approveJoinGroupRequests:
|
|
3504
|
-
declare const rejectJoinGroupRequests:
|
|
3505
|
-
declare const listJoinGroupRequests:
|
|
3506
|
-
declare const queryJoinGroupRequests:
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
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;
|
|
3999
|
+
|
|
4000
|
+
type _publicOnJoinGroupRequestCreatedType = typeof onJoinGroupRequestCreated$1;
|
|
4001
|
+
/** */
|
|
4002
|
+
declare const onJoinGroupRequestCreated: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestCreatedType>>;
|
|
4003
|
+
|
|
4004
|
+
type _publicOnJoinGroupRequestApprovedType = typeof onJoinGroupRequestApproved$1;
|
|
4005
|
+
/**
|
|
4006
|
+
* Triggered when a join group request is approved by a group admin or a groups manager.
|
|
4007
|
+
*/
|
|
4008
|
+
declare const onJoinGroupRequestApproved: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestApprovedType>>;
|
|
4009
|
+
|
|
4010
|
+
type _publicOnJoinGroupRequestRejectedType = typeof onJoinGroupRequestRejected$1;
|
|
4011
|
+
/**
|
|
4012
|
+
* Triggered when a join group request is rejected by a group admin or a groups manager.
|
|
4013
|
+
*/
|
|
4014
|
+
declare const onJoinGroupRequestRejected: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestRejectedType>>;
|
|
3510
4015
|
|
|
3511
4016
|
type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
|
|
3512
4017
|
type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
|
|
@@ -3558,6 +4063,9 @@ type index_d$3_Violation = Violation;
|
|
|
3558
4063
|
type index_d$3_ViolationType = ViolationType;
|
|
3559
4064
|
declare const index_d$3_ViolationType: typeof ViolationType;
|
|
3560
4065
|
type index_d$3_ViolationViolationOptionsOneOf = ViolationViolationOptionsOneOf;
|
|
4066
|
+
type index_d$3__publicOnJoinGroupRequestApprovedType = _publicOnJoinGroupRequestApprovedType;
|
|
4067
|
+
type index_d$3__publicOnJoinGroupRequestCreatedType = _publicOnJoinGroupRequestCreatedType;
|
|
4068
|
+
type index_d$3__publicOnJoinGroupRequestRejectedType = _publicOnJoinGroupRequestRejectedType;
|
|
3561
4069
|
declare const index_d$3_approveJoinGroupRequests: typeof approveJoinGroupRequests;
|
|
3562
4070
|
declare const index_d$3_listJoinGroupRequests: typeof listJoinGroupRequests;
|
|
3563
4071
|
declare const index_d$3_onJoinGroupRequestApproved: typeof onJoinGroupRequestApproved;
|
|
@@ -3566,7 +4074,7 @@ declare const index_d$3_onJoinGroupRequestRejected: typeof onJoinGroupRequestRej
|
|
|
3566
4074
|
declare const index_d$3_queryJoinGroupRequests: typeof queryJoinGroupRequests;
|
|
3567
4075
|
declare const index_d$3_rejectJoinGroupRequests: typeof rejectJoinGroupRequests;
|
|
3568
4076
|
declare namespace index_d$3 {
|
|
3569
|
-
export { type ActionEvent$2 as ActionEvent, type index_d$3_ApproveAllJoinGroupRequestsRequest as ApproveAllJoinGroupRequestsRequest, type index_d$3_ApproveAllJoinGroupRequestsResponse as ApproveAllJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsOptions as ApproveJoinGroupRequestsOptions, type index_d$3_ApproveJoinGroupRequestsRequest as ApproveJoinGroupRequestsRequest, type index_d$3_ApproveJoinGroupRequestsResponse as ApproveJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsResponseNonNullableFields as ApproveJoinGroupRequestsResponseNonNullableFields, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_CancelJoinGroupRequestRequest as CancelJoinGroupRequestRequest, type index_d$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 index_d$3_EventsViolationOptions as EventsViolationOptions, type index_d$3_GetJoinRequirementsRequest as GetJoinRequirementsRequest, type index_d$3_GetJoinRequirementsResponse as GetJoinRequirementsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, ItemsToUpdate$2 as ItemsToUpdate, type index_d$3_JoinGroupRequest as JoinGroupRequest, type index_d$3_JoinGroupRequestApproved as JoinGroupRequestApproved, type index_d$3_JoinGroupRequestApprovedEnvelope as JoinGroupRequestApprovedEnvelope, type index_d$3_JoinGroupRequestCancelled as JoinGroupRequestCancelled, type index_d$3_JoinGroupRequestCreatedEnvelope as JoinGroupRequestCreatedEnvelope, type index_d$3_JoinGroupRequestRejected as JoinGroupRequestRejected, type index_d$3_JoinGroupRequestRejectedEnvelope as JoinGroupRequestRejectedEnvelope, type index_d$3_JoinGroupRequestsQueryBuilder as JoinGroupRequestsQueryBuilder, type index_d$3_JoinGroupRequestsQueryResult as JoinGroupRequestsQueryResult, type index_d$3_JoinRequestsApproved as JoinRequestsApproved, type index_d$3_ListAllJoinGroupRequestsRequest as ListAllJoinGroupRequestsRequest, type index_d$3_ListAllJoinGroupRequestsResponse as ListAllJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsOptions as ListJoinGroupRequestsOptions, type index_d$3_ListJoinGroupRequestsRequest as ListJoinGroupRequestsRequest, type index_d$3_ListJoinGroupRequestsResponse as ListJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsResponseNonNullableFields as ListJoinGroupRequestsResponseNonNullableFields, type index_d$3_MemberJoinedGroup as MemberJoinedGroup, type index_d$3_MembersAddedToGroup as MembersAddedToGroup, type index_d$3_MembersInvitedToGroup as MembersInvitedToGroup, type MembershipQuestionAnswer$2 as MembershipQuestionAnswer, type index_d$3_MembershipQuestionViolationOptions as MembershipQuestionViolationOptions, type MessageEnvelope$2 as MessageEnvelope, OwnershipFilter$2 as OwnershipFilter, type Paging$3 as Paging, type PagingMetadata$3 as PagingMetadata, type index_d$3_PaidPlan as PaidPlan, type index_d$3_PricingPlanViolationOptions as PricingPlanViolationOptions, type Query$2 as Query, type index_d$3_QueryJoinGroupRequestsOptions as QueryJoinGroupRequestsOptions, type index_d$3_QueryJoinGroupRequestsRequest as QueryJoinGroupRequestsRequest, type index_d$3_QueryJoinGroupRequestsResponse as QueryJoinGroupRequestsResponse, type index_d$3_QueryJoinGroupRequestsResponseNonNullableFields as QueryJoinGroupRequestsResponseNonNullableFields, type index_d$3_RejectAllJoinGroupRequestsRequest as RejectAllJoinGroupRequestsRequest, type index_d$3_RejectAllJoinGroupRequestsResponse as RejectAllJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsRequest as RejectJoinGroupRequestsRequest, type index_d$3_RejectJoinGroupRequestsResponse as RejectJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsResponseNonNullableFields as RejectJoinGroupRequestsResponseNonNullableFields, type Rejection$2 as Rejection, type RequestDetails$2 as RequestDetails, RequestStatus$2 as RequestStatus, type RestoreInfo$2 as RestoreInfo, type index_d$3_SocialGroupsEvent as SocialGroupsEvent, type index_d$3_SocialGroupsEventPayloadOneOf as SocialGroupsEventPayloadOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_SubmitJoinGroupRequestRequest as SubmitJoinGroupRequestRequest, type index_d$3_SubmitJoinGroupRequestResponse as SubmitJoinGroupRequestResponse, type index_d$3_Violation as Violation, index_d$3_ViolationType as ViolationType, type index_d$3_ViolationViolationOptionsOneOf as ViolationViolationOptionsOneOf, WebhookIdentityType$2 as WebhookIdentityType, index_d$3_approveJoinGroupRequests as approveJoinGroupRequests, index_d$3_listJoinGroupRequests as listJoinGroupRequests, index_d$3_onJoinGroupRequestApproved as onJoinGroupRequestApproved, index_d$3_onJoinGroupRequestCreated as onJoinGroupRequestCreated, index_d$3_onJoinGroupRequestRejected as onJoinGroupRequestRejected, index_d$3_queryJoinGroupRequests as queryJoinGroupRequests, index_d$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
|
|
4077
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$3_ApproveAllJoinGroupRequestsRequest as ApproveAllJoinGroupRequestsRequest, type index_d$3_ApproveAllJoinGroupRequestsResponse as ApproveAllJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsOptions as ApproveJoinGroupRequestsOptions, type index_d$3_ApproveJoinGroupRequestsRequest as ApproveJoinGroupRequestsRequest, type index_d$3_ApproveJoinGroupRequestsResponse as ApproveJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsResponseNonNullableFields as ApproveJoinGroupRequestsResponseNonNullableFields, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_CancelJoinGroupRequestRequest as CancelJoinGroupRequestRequest, type index_d$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 index_d$3_EventsViolationOptions as EventsViolationOptions, type index_d$3_GetJoinRequirementsRequest as GetJoinRequirementsRequest, type index_d$3_GetJoinRequirementsResponse as GetJoinRequirementsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, ItemsToUpdate$2 as ItemsToUpdate, type index_d$3_JoinGroupRequest as JoinGroupRequest, type index_d$3_JoinGroupRequestApproved as JoinGroupRequestApproved, type index_d$3_JoinGroupRequestApprovedEnvelope as JoinGroupRequestApprovedEnvelope, type index_d$3_JoinGroupRequestCancelled as JoinGroupRequestCancelled, type index_d$3_JoinGroupRequestCreatedEnvelope as JoinGroupRequestCreatedEnvelope, type index_d$3_JoinGroupRequestRejected as JoinGroupRequestRejected, type index_d$3_JoinGroupRequestRejectedEnvelope as JoinGroupRequestRejectedEnvelope, type index_d$3_JoinGroupRequestsQueryBuilder as JoinGroupRequestsQueryBuilder, type index_d$3_JoinGroupRequestsQueryResult as JoinGroupRequestsQueryResult, type index_d$3_JoinRequestsApproved as JoinRequestsApproved, type index_d$3_ListAllJoinGroupRequestsRequest as ListAllJoinGroupRequestsRequest, type index_d$3_ListAllJoinGroupRequestsResponse as ListAllJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsOptions as ListJoinGroupRequestsOptions, type index_d$3_ListJoinGroupRequestsRequest as ListJoinGroupRequestsRequest, type index_d$3_ListJoinGroupRequestsResponse as ListJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsResponseNonNullableFields as ListJoinGroupRequestsResponseNonNullableFields, type index_d$3_MemberJoinedGroup as MemberJoinedGroup, type index_d$3_MembersAddedToGroup as MembersAddedToGroup, type index_d$3_MembersInvitedToGroup as MembersInvitedToGroup, type MembershipQuestionAnswer$2 as MembershipQuestionAnswer, type index_d$3_MembershipQuestionViolationOptions as MembershipQuestionViolationOptions, type MessageEnvelope$2 as MessageEnvelope, OwnershipFilter$2 as OwnershipFilter, type Paging$3 as Paging, type PagingMetadata$3 as PagingMetadata, type index_d$3_PaidPlan as PaidPlan, type index_d$3_PricingPlanViolationOptions as PricingPlanViolationOptions, type Query$2 as Query, type index_d$3_QueryJoinGroupRequestsOptions as QueryJoinGroupRequestsOptions, type index_d$3_QueryJoinGroupRequestsRequest as QueryJoinGroupRequestsRequest, type index_d$3_QueryJoinGroupRequestsResponse as QueryJoinGroupRequestsResponse, type index_d$3_QueryJoinGroupRequestsResponseNonNullableFields as QueryJoinGroupRequestsResponseNonNullableFields, type index_d$3_RejectAllJoinGroupRequestsRequest as RejectAllJoinGroupRequestsRequest, type index_d$3_RejectAllJoinGroupRequestsResponse as RejectAllJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsRequest as RejectJoinGroupRequestsRequest, type index_d$3_RejectJoinGroupRequestsResponse as RejectJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsResponseNonNullableFields as RejectJoinGroupRequestsResponseNonNullableFields, type Rejection$2 as Rejection, type RequestDetails$2 as RequestDetails, RequestStatus$2 as RequestStatus, type RestoreInfo$2 as RestoreInfo, type index_d$3_SocialGroupsEvent as SocialGroupsEvent, type index_d$3_SocialGroupsEventPayloadOneOf as SocialGroupsEventPayloadOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_SubmitJoinGroupRequestRequest as SubmitJoinGroupRequestRequest, type index_d$3_SubmitJoinGroupRequestResponse as SubmitJoinGroupRequestResponse, type index_d$3_Violation as Violation, index_d$3_ViolationType as ViolationType, type index_d$3_ViolationViolationOptionsOneOf as ViolationViolationOptionsOneOf, WebhookIdentityType$2 as WebhookIdentityType, type index_d$3__publicOnJoinGroupRequestApprovedType as _publicOnJoinGroupRequestApprovedType, type index_d$3__publicOnJoinGroupRequestCreatedType as _publicOnJoinGroupRequestCreatedType, type index_d$3__publicOnJoinGroupRequestRejectedType as _publicOnJoinGroupRequestRejectedType, index_d$3_approveJoinGroupRequests as approveJoinGroupRequests, index_d$3_listJoinGroupRequests as listJoinGroupRequests, index_d$3_onJoinGroupRequestApproved as onJoinGroupRequestApproved, index_d$3_onJoinGroupRequestCreated as onJoinGroupRequestCreated, index_d$3_onJoinGroupRequestRejected as onJoinGroupRequestRejected, onJoinGroupRequestApproved$1 as publicOnJoinGroupRequestApproved, onJoinGroupRequestCreated$1 as publicOnJoinGroupRequestCreated, onJoinGroupRequestRejected$1 as publicOnJoinGroupRequestRejected, index_d$3_queryJoinGroupRequests as queryJoinGroupRequests, index_d$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
|
|
3570
4078
|
}
|
|
3571
4079
|
|
|
3572
4080
|
/**
|
|
@@ -3686,11 +4194,46 @@ interface ListAnswersOptions {
|
|
|
3686
4194
|
paging?: Paging$2;
|
|
3687
4195
|
}
|
|
3688
4196
|
|
|
3689
|
-
declare function
|
|
4197
|
+
declare function listMembershipQuestions$1(httpClient: HttpClient): ListMembershipQuestionsSignature;
|
|
4198
|
+
interface ListMembershipQuestionsSignature {
|
|
4199
|
+
/**
|
|
4200
|
+
* Retrieves the membership questions for the given group.
|
|
4201
|
+
*
|
|
4202
|
+
* >**Note:**
|
|
4203
|
+
* >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
4204
|
+
* @param - Group ID.
|
|
4205
|
+
*/
|
|
4206
|
+
(groupId: string): Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
4207
|
+
}
|
|
4208
|
+
declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient): CreateOrReplaceAllMembershipQuestionsSignature;
|
|
4209
|
+
interface CreateOrReplaceAllMembershipQuestionsSignature {
|
|
4210
|
+
/**
|
|
4211
|
+
* Creates membership questions if none have been set up. Otherwise, replaces all existing questions.
|
|
4212
|
+
* > **Notes:**
|
|
4213
|
+
* > * Only admins can create or replace membership questions.
|
|
4214
|
+
* > * Providing an empty array means that members won't have to answer any question when joining the group.
|
|
4215
|
+
*
|
|
4216
|
+
* >**Note:**
|
|
4217
|
+
* >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
4218
|
+
* @param - Group ID.
|
|
4219
|
+
*/
|
|
4220
|
+
(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions | undefined): Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
4221
|
+
}
|
|
4222
|
+
declare function listAnswers$1(httpClient: HttpClient): ListAnswersSignature;
|
|
4223
|
+
interface ListAnswersSignature {
|
|
4224
|
+
/**
|
|
4225
|
+
* Retrieves the answers to the membership questions, given the provided filters.
|
|
4226
|
+
*
|
|
4227
|
+
* >**Note:**
|
|
4228
|
+
* >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
4229
|
+
* @param - Group ID.
|
|
4230
|
+
*/
|
|
4231
|
+
(groupId: string, options?: ListAnswersOptions | undefined): Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
4232
|
+
}
|
|
3690
4233
|
|
|
3691
|
-
declare const listMembershipQuestions:
|
|
3692
|
-
declare const createOrReplaceAllMembershipQuestions:
|
|
3693
|
-
declare const listAnswers:
|
|
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;
|
|
3694
4237
|
|
|
3695
4238
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
3696
4239
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4337,16 +4880,63 @@ interface QueryCreateRequestsOptions {
|
|
|
4337
4880
|
query?: Query$1;
|
|
4338
4881
|
}
|
|
4339
4882
|
|
|
4340
|
-
declare function
|
|
4883
|
+
declare function approveCreateRequests$1(httpClient: HttpClient): ApproveCreateRequestsSignature;
|
|
4884
|
+
interface ApproveCreateRequestsSignature {
|
|
4885
|
+
/**
|
|
4886
|
+
* Approves Create Requests.
|
|
4887
|
+
* Only admins can approve Create Requests.
|
|
4888
|
+
*/
|
|
4889
|
+
(options?: ApproveCreateRequestsOptions | undefined): Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4890
|
+
}
|
|
4891
|
+
declare function rejectCreateRequests$1(httpClient: HttpClient): RejectCreateRequestsSignature;
|
|
4892
|
+
interface RejectCreateRequestsSignature {
|
|
4893
|
+
/**
|
|
4894
|
+
* Rejects Create Requests.
|
|
4895
|
+
* Only admins can reject Create Requests.
|
|
4896
|
+
*/
|
|
4897
|
+
(options?: RejectCreateRequestsOptions | undefined): Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4898
|
+
}
|
|
4899
|
+
declare function listCreateRequests$1(httpClient: HttpClient): ListCreateRequestsSignature;
|
|
4900
|
+
interface ListCreateRequestsSignature {
|
|
4901
|
+
/**
|
|
4902
|
+
* Lists create requests across the site.
|
|
4903
|
+
*/
|
|
4904
|
+
(options?: ListCreateRequestsOptions | undefined): Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4905
|
+
}
|
|
4906
|
+
declare function queryCreateRequests$1(httpClient: HttpClient): QueryCreateRequestsSignature;
|
|
4907
|
+
interface QueryCreateRequestsSignature {
|
|
4908
|
+
/**
|
|
4909
|
+
* Retrieves a list of create requests across the site.
|
|
4910
|
+
*
|
|
4911
|
+
* Supported fields for filtering:
|
|
4912
|
+
* - `status`
|
|
4913
|
+
*
|
|
4914
|
+
* Supported fields for sorting:
|
|
4915
|
+
* - `createdDate`
|
|
4916
|
+
*/
|
|
4917
|
+
(options?: QueryCreateRequestsOptions | undefined): Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4918
|
+
}
|
|
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">;
|
|
4341
4921
|
|
|
4342
4922
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4343
4923
|
|
|
4344
|
-
declare const approveCreateRequests:
|
|
4345
|
-
declare const rejectCreateRequests:
|
|
4346
|
-
declare const listCreateRequests:
|
|
4347
|
-
declare const queryCreateRequests:
|
|
4348
|
-
|
|
4349
|
-
|
|
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;
|
|
4928
|
+
|
|
4929
|
+
type _publicOnCreateRequestApprovedType = typeof onCreateRequestApproved$1;
|
|
4930
|
+
/**
|
|
4931
|
+
* Triggered when a Create Request is approved.
|
|
4932
|
+
*/
|
|
4933
|
+
declare const onCreateRequestApproved: ReturnType<typeof createEventModule$1<_publicOnCreateRequestApprovedType>>;
|
|
4934
|
+
|
|
4935
|
+
type _publicOnCreateRequestRejectedType = typeof onCreateRequestRejected$1;
|
|
4936
|
+
/**
|
|
4937
|
+
* Triggered when a Create Request is rejected.
|
|
4938
|
+
*/
|
|
4939
|
+
declare const onCreateRequestRejected: ReturnType<typeof createEventModule$1<_publicOnCreateRequestRejectedType>>;
|
|
4350
4940
|
|
|
4351
4941
|
type index_d$1_AccessRestriction = AccessRestriction;
|
|
4352
4942
|
type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
|
|
@@ -4396,6 +4986,8 @@ type index_d$1_SubmitCreateRequestRequest = SubmitCreateRequestRequest;
|
|
|
4396
4986
|
type index_d$1_SubmitCreateRequestResponse = SubmitCreateRequestResponse;
|
|
4397
4987
|
type index_d$1_Type = Type;
|
|
4398
4988
|
declare const index_d$1_Type: typeof Type;
|
|
4989
|
+
type index_d$1__publicOnCreateRequestApprovedType = _publicOnCreateRequestApprovedType;
|
|
4990
|
+
type index_d$1__publicOnCreateRequestRejectedType = _publicOnCreateRequestRejectedType;
|
|
4399
4991
|
declare const index_d$1_approveCreateRequests: typeof approveCreateRequests;
|
|
4400
4992
|
declare const index_d$1_listCreateRequests: typeof listCreateRequests;
|
|
4401
4993
|
declare const index_d$1_onCreateRequestApproved: typeof onCreateRequestApproved;
|
|
@@ -4403,7 +4995,7 @@ declare const index_d$1_onCreateRequestRejected: typeof onCreateRequestRejected;
|
|
|
4403
4995
|
declare const index_d$1_queryCreateRequests: typeof queryCreateRequests;
|
|
4404
4996
|
declare const index_d$1_rejectCreateRequests: typeof rejectCreateRequests;
|
|
4405
4997
|
declare namespace index_d$1 {
|
|
4406
|
-
export { type index_d$1_AccessRestriction as AccessRestriction, type index_d$1_AccessRestrictionDataOneOf as AccessRestrictionDataOneOf, type ActionEvent$1 as ActionEvent, index_d$1_AllowPolicy as AllowPolicy, type index_d$1_ApproveCreateRequestsOptions as ApproveCreateRequestsOptions, type index_d$1_ApproveCreateRequestsRequest as ApproveCreateRequestsRequest, type index_d$1_ApproveCreateRequestsResponse as ApproveCreateRequestsResponse, type index_d$1_ApproveCreateRequestsResponseNonNullableFields as ApproveCreateRequestsResponseNonNullableFields, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CancelCreateRequestRequest as CancelCreateRequestRequest, type index_d$1_CancelCreateRequestResponse as CancelCreateRequestResponse, type index_d$1_CoverImage as CoverImage, type index_d$1_CreateRequest as CreateRequest, type index_d$1_CreateRequestApproved as CreateRequestApproved, type index_d$1_CreateRequestApprovedEnvelope as CreateRequestApprovedEnvelope, type index_d$1_CreateRequestRejected as CreateRequestRejected, type index_d$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 index_d$1_Events as Events, type index_d$1_Group as Group, type index_d$1_GroupDetails as GroupDetails, type index_d$1_GroupDetailsPosition as GroupDetailsPosition, type index_d$1_GroupSettings as GroupSettings, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Identity as Identity, index_d$1_IdentityType as IdentityType, type index_d$1_Image as Image, ItemsToUpdate$1 as ItemsToUpdate, type index_d$1_ListCreateRequestsOptions as ListCreateRequestsOptions, type index_d$1_ListCreateRequestsRequest as ListCreateRequestsRequest, type index_d$1_ListCreateRequestsResponse as ListCreateRequestsResponse, type index_d$1_ListCreateRequestsResponseNonNullableFields as ListCreateRequestsResponseNonNullableFields, type index_d$1_Logo as Logo, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnboardingStepSettings as OnboardingStepSettings, OwnershipFilter$1 as OwnershipFilter, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, type index_d$1_Position as Position, index_d$1_PrivacyStatus as PrivacyStatus, type Query$1 as Query, type index_d$1_QueryCreateRequestsOptions as QueryCreateRequestsOptions, type index_d$1_QueryCreateRequestsRequest as QueryCreateRequestsRequest, type index_d$1_QueryCreateRequestsResponse as QueryCreateRequestsResponse, type index_d$1_QueryCreateRequestsResponseNonNullableFields as QueryCreateRequestsResponseNonNullableFields, type index_d$1_RejectCreateRequestsOptions as RejectCreateRequestsOptions, type index_d$1_RejectCreateRequestsRequest as RejectCreateRequestsRequest, type index_d$1_RejectCreateRequestsResponse as RejectCreateRequestsResponse, type index_d$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, index_d$1_StepKey as StepKey, type index_d$1_SubmitCreateRequestRequest as SubmitCreateRequestRequest, type index_d$1_SubmitCreateRequestResponse as SubmitCreateRequestResponse, index_d$1_Type as Type, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_approveCreateRequests as approveCreateRequests, index_d$1_listCreateRequests as listCreateRequests, index_d$1_onCreateRequestApproved as onCreateRequestApproved, index_d$1_onCreateRequestRejected as onCreateRequestRejected, index_d$1_queryCreateRequests as queryCreateRequests, index_d$1_rejectCreateRequests as rejectCreateRequests };
|
|
4998
|
+
export { type index_d$1_AccessRestriction as AccessRestriction, type index_d$1_AccessRestrictionDataOneOf as AccessRestrictionDataOneOf, type ActionEvent$1 as ActionEvent, index_d$1_AllowPolicy as AllowPolicy, type index_d$1_ApproveCreateRequestsOptions as ApproveCreateRequestsOptions, type index_d$1_ApproveCreateRequestsRequest as ApproveCreateRequestsRequest, type index_d$1_ApproveCreateRequestsResponse as ApproveCreateRequestsResponse, type index_d$1_ApproveCreateRequestsResponseNonNullableFields as ApproveCreateRequestsResponseNonNullableFields, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CancelCreateRequestRequest as CancelCreateRequestRequest, type index_d$1_CancelCreateRequestResponse as CancelCreateRequestResponse, type index_d$1_CoverImage as CoverImage, type index_d$1_CreateRequest as CreateRequest, type index_d$1_CreateRequestApproved as CreateRequestApproved, type index_d$1_CreateRequestApprovedEnvelope as CreateRequestApprovedEnvelope, type index_d$1_CreateRequestRejected as CreateRequestRejected, type index_d$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 index_d$1_Events as Events, type index_d$1_Group as Group, type index_d$1_GroupDetails as GroupDetails, type index_d$1_GroupDetailsPosition as GroupDetailsPosition, type index_d$1_GroupSettings as GroupSettings, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Identity as Identity, index_d$1_IdentityType as IdentityType, type index_d$1_Image as Image, ItemsToUpdate$1 as ItemsToUpdate, type index_d$1_ListCreateRequestsOptions as ListCreateRequestsOptions, type index_d$1_ListCreateRequestsRequest as ListCreateRequestsRequest, type index_d$1_ListCreateRequestsResponse as ListCreateRequestsResponse, type index_d$1_ListCreateRequestsResponseNonNullableFields as ListCreateRequestsResponseNonNullableFields, type index_d$1_Logo as Logo, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnboardingStepSettings as OnboardingStepSettings, OwnershipFilter$1 as OwnershipFilter, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, type index_d$1_Position as Position, index_d$1_PrivacyStatus as PrivacyStatus, type Query$1 as Query, type index_d$1_QueryCreateRequestsOptions as QueryCreateRequestsOptions, type index_d$1_QueryCreateRequestsRequest as QueryCreateRequestsRequest, type index_d$1_QueryCreateRequestsResponse as QueryCreateRequestsResponse, type index_d$1_QueryCreateRequestsResponseNonNullableFields as QueryCreateRequestsResponseNonNullableFields, type index_d$1_RejectCreateRequestsOptions as RejectCreateRequestsOptions, type index_d$1_RejectCreateRequestsRequest as RejectCreateRequestsRequest, type index_d$1_RejectCreateRequestsResponse as RejectCreateRequestsResponse, type index_d$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, index_d$1_StepKey as StepKey, type index_d$1_SubmitCreateRequestRequest as SubmitCreateRequestRequest, type index_d$1_SubmitCreateRequestResponse as SubmitCreateRequestResponse, index_d$1_Type as Type, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnCreateRequestApprovedType as _publicOnCreateRequestApprovedType, type index_d$1__publicOnCreateRequestRejectedType as _publicOnCreateRequestRejectedType, index_d$1_approveCreateRequests as approveCreateRequests, index_d$1_listCreateRequests as listCreateRequests, index_d$1_onCreateRequestApproved as onCreateRequestApproved, index_d$1_onCreateRequestRejected as onCreateRequestRejected, onCreateRequestApproved$1 as publicOnCreateRequestApproved, onCreateRequestRejected$1 as publicOnCreateRequestRejected, index_d$1_queryCreateRequests as queryCreateRequests, index_d$1_rejectCreateRequests as rejectCreateRequests };
|
|
4407
4999
|
}
|
|
4408
5000
|
|
|
4409
5001
|
/**
|
|
@@ -4790,16 +5382,68 @@ interface QueryJoinRequestsOptions {
|
|
|
4790
5382
|
query?: Query;
|
|
4791
5383
|
}
|
|
4792
5384
|
|
|
4793
|
-
declare function
|
|
5385
|
+
declare function approveJoinRequests$1(httpClient: HttpClient): ApproveJoinRequestsSignature;
|
|
5386
|
+
interface ApproveJoinRequestsSignature {
|
|
5387
|
+
/**
|
|
5388
|
+
* Approves pending join requests.
|
|
5389
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
5390
|
+
* @param - Relevant group.
|
|
5391
|
+
*/
|
|
5392
|
+
(groupId: string, options: ApproveJoinRequestsOptions): Promise<ApproveJoinRequestsResponse & ApproveJoinRequestsResponseNonNullableFields>;
|
|
5393
|
+
}
|
|
5394
|
+
declare function rejectJoinRequests$1(httpClient: HttpClient): RejectJoinRequestsSignature;
|
|
5395
|
+
interface RejectJoinRequestsSignature {
|
|
5396
|
+
/**
|
|
5397
|
+
* Rejects pending join requests.
|
|
5398
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
5399
|
+
* @param - Relevant group.
|
|
5400
|
+
*/
|
|
5401
|
+
(groupId: string, options?: RejectJoinRequestsOptions | undefined): Promise<RejectJoinRequestsResponse & RejectJoinRequestsResponseNonNullableFields>;
|
|
5402
|
+
}
|
|
5403
|
+
declare function listJoinRequests$1(httpClient: HttpClient): ListJoinRequestsSignature;
|
|
5404
|
+
interface ListJoinRequestsSignature {
|
|
5405
|
+
/**
|
|
5406
|
+
* Retrieves a list of up to 100 join requests, given the provided paging.
|
|
5407
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
5408
|
+
* @param - Group ID.
|
|
5409
|
+
*/
|
|
5410
|
+
(groupId: string, options?: ListJoinRequestsOptions | undefined): Promise<ListJoinRequestsResponse & ListJoinRequestsResponseNonNullableFields>;
|
|
5411
|
+
}
|
|
5412
|
+
declare function queryJoinRequests$1(httpClient: HttpClient): QueryJoinRequestsSignature;
|
|
5413
|
+
interface QueryJoinRequestsSignature {
|
|
5414
|
+
/**
|
|
5415
|
+
* Retrieves a list of up to 100 join requests, given the provided paging and filtering.
|
|
5416
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
5417
|
+
*
|
|
5418
|
+
* Supported fields for filtering:
|
|
5419
|
+
* - `status`
|
|
5420
|
+
*
|
|
5421
|
+
* No supported fields for sorting
|
|
5422
|
+
* @param - Group ID.
|
|
5423
|
+
*/
|
|
5424
|
+
(groupId: string, options?: QueryJoinRequestsOptions | undefined): Promise<QueryJoinRequestsResponse & QueryJoinRequestsResponseNonNullableFields>;
|
|
5425
|
+
}
|
|
5426
|
+
declare const onJoinRequestApproved$1: EventDefinition<JoinRequestApprovedEnvelope, "wix.social_groups.v3.join_request_approved">;
|
|
5427
|
+
declare const onJoinRequestRejected$1: EventDefinition<JoinRequestRejectedEnvelope, "wix.social_groups.v3.join_request_rejected">;
|
|
4794
5428
|
|
|
4795
5429
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4796
5430
|
|
|
4797
|
-
declare const approveJoinRequests:
|
|
4798
|
-
declare const rejectJoinRequests:
|
|
4799
|
-
declare const listJoinRequests:
|
|
4800
|
-
declare const queryJoinRequests:
|
|
4801
|
-
|
|
4802
|
-
|
|
5431
|
+
declare const approveJoinRequests: BuildRESTFunction<typeof approveJoinRequests$1> & typeof approveJoinRequests$1;
|
|
5432
|
+
declare const rejectJoinRequests: BuildRESTFunction<typeof rejectJoinRequests$1> & typeof rejectJoinRequests$1;
|
|
5433
|
+
declare const listJoinRequests: BuildRESTFunction<typeof listJoinRequests$1> & typeof listJoinRequests$1;
|
|
5434
|
+
declare const queryJoinRequests: BuildRESTFunction<typeof queryJoinRequests$1> & typeof queryJoinRequests$1;
|
|
5435
|
+
|
|
5436
|
+
type _publicOnJoinRequestApprovedType = typeof onJoinRequestApproved$1;
|
|
5437
|
+
/**
|
|
5438
|
+
* Triggered when a join request is approved by a group admin or a groups manager.
|
|
5439
|
+
*/
|
|
5440
|
+
declare const onJoinRequestApproved: ReturnType<typeof createEventModule<_publicOnJoinRequestApprovedType>>;
|
|
5441
|
+
|
|
5442
|
+
type _publicOnJoinRequestRejectedType = typeof onJoinRequestRejected$1;
|
|
5443
|
+
/**
|
|
5444
|
+
* Triggered when a join group request is rejected by a group admin or a groups manager.
|
|
5445
|
+
*/
|
|
5446
|
+
declare const onJoinRequestRejected: ReturnType<typeof createEventModule<_publicOnJoinRequestRejectedType>>;
|
|
4803
5447
|
|
|
4804
5448
|
type index_d_ActionEvent = ActionEvent;
|
|
4805
5449
|
type index_d_ApproveJoinRequestsOptions = ApproveJoinRequestsOptions;
|
|
@@ -4856,6 +5500,8 @@ type index_d_SubmitJoinRequestRequest = SubmitJoinRequestRequest;
|
|
|
4856
5500
|
type index_d_SubmitJoinRequestResponse = SubmitJoinRequestResponse;
|
|
4857
5501
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4858
5502
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
5503
|
+
type index_d__publicOnJoinRequestApprovedType = _publicOnJoinRequestApprovedType;
|
|
5504
|
+
type index_d__publicOnJoinRequestRejectedType = _publicOnJoinRequestRejectedType;
|
|
4859
5505
|
declare const index_d_approveJoinRequests: typeof approveJoinRequests;
|
|
4860
5506
|
declare const index_d_listJoinRequests: typeof listJoinRequests;
|
|
4861
5507
|
declare const index_d_onJoinRequestApproved: typeof onJoinRequestApproved;
|
|
@@ -4863,7 +5509,7 @@ declare const index_d_onJoinRequestRejected: typeof onJoinRequestRejected;
|
|
|
4863
5509
|
declare const index_d_queryJoinRequests: typeof queryJoinRequests;
|
|
4864
5510
|
declare const index_d_rejectJoinRequests: typeof rejectJoinRequests;
|
|
4865
5511
|
declare namespace index_d {
|
|
4866
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_ApproveJoinRequestsOptions as ApproveJoinRequestsOptions, type index_d_ApproveJoinRequestsRequest as ApproveJoinRequestsRequest, type index_d_ApproveJoinRequestsResponse as ApproveJoinRequestsResponse, type index_d_ApproveJoinRequestsResponseNonNullableFields as ApproveJoinRequestsResponseNonNullableFields, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CancelJoinRequestRequest as CancelJoinRequestRequest, type index_d_CancelJoinRequestResponse as CancelJoinRequestResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_ItemsToUpdate as ItemsToUpdate, type index_d_JoinRequest as JoinRequest, type index_d_JoinRequestApproved as JoinRequestApproved, type index_d_JoinRequestApprovedEnvelope as JoinRequestApprovedEnvelope, type index_d_JoinRequestCancelled as JoinRequestCancelled, type index_d_JoinRequestRejected as JoinRequestRejected, type index_d_JoinRequestRejectedEnvelope as JoinRequestRejectedEnvelope, type index_d_ListJoinRequestsOptions as ListJoinRequestsOptions, type index_d_ListJoinRequestsRequest as ListJoinRequestsRequest, type index_d_ListJoinRequestsResponse as ListJoinRequestsResponse, type index_d_ListJoinRequestsResponseNonNullableFields as ListJoinRequestsResponseNonNullableFields, type index_d_MembershipQuestionAnswer as MembershipQuestionAnswer, type index_d_MessageEnvelope as MessageEnvelope, index_d_OwnershipFilter as OwnershipFilter, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_Query as Query, type index_d_QueryJoinRequestsOptions as QueryJoinRequestsOptions, type index_d_QueryJoinRequestsRequest as QueryJoinRequestsRequest, type index_d_QueryJoinRequestsResponse as QueryJoinRequestsResponse, type index_d_QueryJoinRequestsResponseNonNullableFields as QueryJoinRequestsResponseNonNullableFields, type index_d_RejectJoinRequestsOptions as RejectJoinRequestsOptions, type index_d_RejectJoinRequestsRequest as RejectJoinRequestsRequest, type index_d_RejectJoinRequestsResponse as RejectJoinRequestsResponse, type index_d_RejectJoinRequestsResponseNonNullableFields as RejectJoinRequestsResponseNonNullableFields, type index_d_Rejection as Rejection, type index_d_RequestDetails as RequestDetails, index_d_RequestStatus as RequestStatus, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SubmitJoinRequestRequest as SubmitJoinRequestRequest, type index_d_SubmitJoinRequestResponse as SubmitJoinRequestResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d_approveJoinRequests as approveJoinRequests, index_d_listJoinRequests as listJoinRequests, index_d_onJoinRequestApproved as onJoinRequestApproved, index_d_onJoinRequestRejected as onJoinRequestRejected, index_d_queryJoinRequests as queryJoinRequests, index_d_rejectJoinRequests as rejectJoinRequests };
|
|
5512
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_ApproveJoinRequestsOptions as ApproveJoinRequestsOptions, type index_d_ApproveJoinRequestsRequest as ApproveJoinRequestsRequest, type index_d_ApproveJoinRequestsResponse as ApproveJoinRequestsResponse, type index_d_ApproveJoinRequestsResponseNonNullableFields as ApproveJoinRequestsResponseNonNullableFields, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CancelJoinRequestRequest as CancelJoinRequestRequest, type index_d_CancelJoinRequestResponse as CancelJoinRequestResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_ItemsToUpdate as ItemsToUpdate, type index_d_JoinRequest as JoinRequest, type index_d_JoinRequestApproved as JoinRequestApproved, type index_d_JoinRequestApprovedEnvelope as JoinRequestApprovedEnvelope, type index_d_JoinRequestCancelled as JoinRequestCancelled, type index_d_JoinRequestRejected as JoinRequestRejected, type index_d_JoinRequestRejectedEnvelope as JoinRequestRejectedEnvelope, type index_d_ListJoinRequestsOptions as ListJoinRequestsOptions, type index_d_ListJoinRequestsRequest as ListJoinRequestsRequest, type index_d_ListJoinRequestsResponse as ListJoinRequestsResponse, type index_d_ListJoinRequestsResponseNonNullableFields as ListJoinRequestsResponseNonNullableFields, type index_d_MembershipQuestionAnswer as MembershipQuestionAnswer, type index_d_MessageEnvelope as MessageEnvelope, index_d_OwnershipFilter as OwnershipFilter, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_Query as Query, type index_d_QueryJoinRequestsOptions as QueryJoinRequestsOptions, type index_d_QueryJoinRequestsRequest as QueryJoinRequestsRequest, type index_d_QueryJoinRequestsResponse as QueryJoinRequestsResponse, type index_d_QueryJoinRequestsResponseNonNullableFields as QueryJoinRequestsResponseNonNullableFields, type index_d_RejectJoinRequestsOptions as RejectJoinRequestsOptions, type index_d_RejectJoinRequestsRequest as RejectJoinRequestsRequest, type index_d_RejectJoinRequestsResponse as RejectJoinRequestsResponse, type index_d_RejectJoinRequestsResponseNonNullableFields as RejectJoinRequestsResponseNonNullableFields, type index_d_Rejection as Rejection, type index_d_RequestDetails as RequestDetails, index_d_RequestStatus as RequestStatus, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SubmitJoinRequestRequest as SubmitJoinRequestRequest, type index_d_SubmitJoinRequestResponse as SubmitJoinRequestResponse, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnJoinRequestApprovedType as _publicOnJoinRequestApprovedType, type index_d__publicOnJoinRequestRejectedType as _publicOnJoinRequestRejectedType, index_d_approveJoinRequests as approveJoinRequests, index_d_listJoinRequests as listJoinRequests, index_d_onJoinRequestApproved as onJoinRequestApproved, index_d_onJoinRequestRejected as onJoinRequestRejected, onJoinRequestApproved$1 as publicOnJoinRequestApproved, onJoinRequestRejected$1 as publicOnJoinRequestRejected, index_d_queryJoinRequests as queryJoinRequests, index_d_rejectJoinRequests as rejectJoinRequests };
|
|
4867
5513
|
}
|
|
4868
5514
|
|
|
4869
5515
|
export { index_d$1 as createRequests, index_d$6 as groupRequests, index_d$8 as groups, index_d$3 as joinGroupRequests, index_d as joinRequests, index_d$7 as members, index_d$2 as membershipQuestions, index_d$5 as roles, index_d$4 as rules };
|