@wix/groups 1.0.107 → 1.0.109

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.
@@ -490,12 +490,7 @@ interface Group$2 {
490
490
  * @deprecated
491
491
  */
492
492
  privacyLevel?: PrivacyStatus$2;
493
- /**
494
- * Group privacy status.
495
- * - `PUBLIC` - Anyone can see the group and its content. Anyone can join the group.
496
- * - `PRIVATE` - Anyone can see the group, but only members can see its content. New member must submit a `Join Group Request`.
497
- * - `SECRET` - Only admins and members can see the group. New members can only be added by other members.
498
- */
493
+ /** Group privacy status. */
499
494
  privacyStatus?: PrivacyStatus$2;
500
495
  /**
501
496
  * @internal
@@ -615,12 +610,13 @@ declare enum StepKey$2 {
615
610
  INVITE_MEMBERS = "INVITE_MEMBERS"
616
611
  }
617
612
  declare enum PrivacyStatus$2 {
613
+ /** Undefined group privacy status. */
618
614
  UNKNOWN = "UNKNOWN",
619
- /** Anyone can see the group in the group list and view its content. Anyone can join. */
615
+ /** Anyone can see the group and its content. Anyone can join the group. */
620
616
  PUBLIC = "PUBLIC",
621
- /** Anyone can see the group in the group list, but only group members can see its content. In order to join a group, a group join request must be submitted. */
617
+ /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
622
618
  PRIVATE = "PRIVATE",
623
- /** Only group members and admins can see the group in the group list. New group members can only be added by existing group members. */
619
+ /** Only admins and members can see the group. New members can only be added by other members. */
624
620
  SECRET = "SECRET"
625
621
  }
626
622
  interface AccessRestriction$2 extends AccessRestrictionDataOneOf$2 {
@@ -746,6 +742,14 @@ interface GetGroupBySlugResponse {
746
742
  /** Retrieved group. */
747
743
  group?: Group$2;
748
744
  }
745
+ interface GetGroupIdBySlugRequest {
746
+ /** Unique part of the group's URL, for example `group-1` in `https:/example.com/groups/group-1`. Pass only the slug. Case-sensitive. */
747
+ slug?: string;
748
+ autoInviteId?: string | null;
749
+ }
750
+ interface GetGroupIdBySlugResponse {
751
+ groupId?: string;
752
+ }
749
753
  interface ListGroupsRequest {
750
754
  /** Number of items to load. Maximum `100`. */
751
755
  limit?: number | null;
@@ -1057,6 +1061,7 @@ interface GroupSettingsNonNullableFields$2 {
1057
1061
  allowedToCreatePosts: AllowPolicy$2;
1058
1062
  allowedToCommentPosts: AllowPolicy$2;
1059
1063
  onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$2[];
1064
+ allowedToCreateEvents: AllowPolicy$2;
1060
1065
  }
1061
1066
  interface IdentityNonNullableFields$2 {
1062
1067
  identityType: IdentityType$2;
@@ -1141,8 +1146,7 @@ interface GroupCreatedEnvelope {
1141
1146
  entity: Group$2;
1142
1147
  metadata: EventMetadata$7;
1143
1148
  }
1144
- interface GroupUpdatedEnvelope {
1145
- entity: Group$2;
1149
+ interface GroupDeletedEnvelope {
1146
1150
  metadata: EventMetadata$7;
1147
1151
  }
1148
1152
  interface GroupCoverChangedEnvelope {
@@ -1153,7 +1157,8 @@ interface GroupDescriptionChangedEnvelope {
1153
1157
  data: GroupDescriptionChanged;
1154
1158
  metadata: EventMetadata$7;
1155
1159
  }
1156
- interface GroupDeletedEnvelope {
1160
+ interface GroupUpdatedEnvelope {
1161
+ entity: Group$2;
1157
1162
  metadata: EventMetadata$7;
1158
1163
  }
1159
1164
  interface CreateGroupOptions {
@@ -1175,12 +1180,7 @@ interface UpdateGroup {
1175
1180
  * @deprecated
1176
1181
  */
1177
1182
  privacyLevel?: PrivacyStatus$2;
1178
- /**
1179
- * Group privacy status.
1180
- * - `PUBLIC` - Anyone can see the group and its content. Anyone can join the group.
1181
- * - `PRIVATE` - Anyone can see the group, but only members can see its content. New member must submit a `Join Group Request`.
1182
- * - `SECRET` - Only admins and members can see the group. New members can only be added by other members.
1183
- */
1183
+ /** Group privacy status. */
1184
1184
  privacyStatus?: PrivacyStatus$2;
1185
1185
  /**
1186
1186
  * @internal
@@ -1413,10 +1413,10 @@ interface QueryGroupsSignature {
1413
1413
  (options?: QueryGroupsOptions | undefined): GroupsQueryBuilder;
1414
1414
  }
1415
1415
  declare const onGroupCreated$1: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
1416
- declare const onGroupUpdated$1: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
1416
+ declare const onGroupDeleted$1: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
1417
1417
  declare const onGroupCoverChanged$1: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
1418
1418
  declare const onGroupDescriptionChanged$1: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
1419
- declare const onGroupDeleted$1: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
1419
+ declare const onGroupUpdated$1: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
1420
1420
 
1421
1421
  declare function createEventModule$7<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1422
1422
 
@@ -1434,11 +1434,11 @@ type _publicOnGroupCreatedType = typeof onGroupCreated$1;
1434
1434
  */
1435
1435
  declare const onGroupCreated: ReturnType<typeof createEventModule$7<_publicOnGroupCreatedType>>;
1436
1436
 
1437
- type _publicOnGroupUpdatedType = typeof onGroupUpdated$1;
1437
+ type _publicOnGroupDeletedType = typeof onGroupDeleted$1;
1438
1438
  /**
1439
- * Triggered when a group is updated. See payload for more information about the specific trigger.
1439
+ * Triggered when a group is deleted.
1440
1440
  */
1441
- declare const onGroupUpdated: ReturnType<typeof createEventModule$7<_publicOnGroupUpdatedType>>;
1441
+ declare const onGroupDeleted: ReturnType<typeof createEventModule$7<_publicOnGroupDeletedType>>;
1442
1442
 
1443
1443
  type _publicOnGroupCoverChangedType = typeof onGroupCoverChanged$1;
1444
1444
  /**
@@ -1452,11 +1452,11 @@ type _publicOnGroupDescriptionChangedType = typeof onGroupDescriptionChanged$1;
1452
1452
  */
1453
1453
  declare const onGroupDescriptionChanged: ReturnType<typeof createEventModule$7<_publicOnGroupDescriptionChangedType>>;
1454
1454
 
1455
- type _publicOnGroupDeletedType = typeof onGroupDeleted$1;
1455
+ type _publicOnGroupUpdatedType = typeof onGroupUpdated$1;
1456
1456
  /**
1457
- * Triggered when a group is deleted.
1457
+ * Triggered when a group is updated. See payload for more information about the specific trigger.
1458
1458
  */
1459
- declare const onGroupDeleted: ReturnType<typeof createEventModule$7<_publicOnGroupDeletedType>>;
1459
+ declare const onGroupUpdated: ReturnType<typeof createEventModule$7<_publicOnGroupUpdatedType>>;
1460
1460
 
1461
1461
  type index_d$8_BMFeatures = BMFeatures;
1462
1462
  type index_d$8_BMFeaturesBMFeatures = BMFeaturesBMFeatures;
@@ -1476,6 +1476,8 @@ type index_d$8_GetGroupBySlugOptions = GetGroupBySlugOptions;
1476
1476
  type index_d$8_GetGroupBySlugRequest = GetGroupBySlugRequest;
1477
1477
  type index_d$8_GetGroupBySlugResponse = GetGroupBySlugResponse;
1478
1478
  type index_d$8_GetGroupBySlugResponseNonNullableFields = GetGroupBySlugResponseNonNullableFields;
1479
+ type index_d$8_GetGroupIdBySlugRequest = GetGroupIdBySlugRequest;
1480
+ type index_d$8_GetGroupIdBySlugResponse = GetGroupIdBySlugResponse;
1479
1481
  type index_d$8_GetGroupMembersGroupIdsRequest = GetGroupMembersGroupIdsRequest;
1480
1482
  type index_d$8_GetGroupMembersGroupIdsResponse = GetGroupMembersGroupIdsResponse;
1481
1483
  type index_d$8_GetGroupOptions = GetGroupOptions;
@@ -1535,7 +1537,7 @@ declare const index_d$8_onGroupUpdated: typeof onGroupUpdated;
1535
1537
  declare const index_d$8_queryGroups: typeof queryGroups;
1536
1538
  declare const index_d$8_updateGroup: typeof updateGroup;
1537
1539
  declare namespace index_d$8 {
1538
- 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 index_d$8_QueryJoinedGroupsWithMemberRequest as QueryJoinedGroupsWithMemberRequest, type index_d$8_QueryJoinedGroupsWithMemberResponse as QueryJoinedGroupsWithMemberResponse, 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 };
1540
+ 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_GetGroupIdBySlugRequest as GetGroupIdBySlugRequest, type index_d$8_GetGroupIdBySlugResponse as GetGroupIdBySlugResponse, 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 index_d$8_QueryJoinedGroupsWithMemberRequest as QueryJoinedGroupsWithMemberRequest, type index_d$8_QueryJoinedGroupsWithMemberResponse as QueryJoinedGroupsWithMemberResponse, 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 };
1539
1541
  }
1540
1542
 
1541
1543
  interface GroupMember$1 {
@@ -1572,6 +1574,7 @@ interface GroupRole$1 {
1572
1574
  value?: Role$1;
1573
1575
  }
1574
1576
  declare enum Role$1 {
1577
+ /** Undefined group member role. */
1575
1578
  UNKNOWN_ROLE = "UNKNOWN_ROLE",
1576
1579
  /** Regular group member. */
1577
1580
  MEMBER = "MEMBER",
@@ -1815,10 +1818,11 @@ interface Membership {
1815
1818
  role?: GroupRole$1;
1816
1819
  }
1817
1820
  declare enum MembershipStatus {
1821
+ /** Undefined membership status. */
1818
1822
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
1819
1823
  /** Site member is a group member. */
1820
1824
  JOINED = "JOINED",
1821
- /** Site member has join group request with `PENDING` status for this group. */
1825
+ /** Site member has submitted a Join Request for this group that is still `PENDING`. */
1822
1826
  PENDING = "PENDING"
1823
1827
  }
1824
1828
  interface QueryMembershipsRequest {
@@ -2487,12 +2491,13 @@ declare enum StepKey$1 {
2487
2491
  INVITE_MEMBERS = "INVITE_MEMBERS"
2488
2492
  }
2489
2493
  declare enum PrivacyStatus$1 {
2494
+ /** Undefined group privacy status. */
2490
2495
  UNKNOWN = "UNKNOWN",
2491
- /** Anyone can see the group in the group list and view its content. Anyone can join. */
2496
+ /** Anyone can see the group and its content. Anyone can join the group. */
2492
2497
  PUBLIC = "PUBLIC",
2493
- /** Anyone can see the group in the group list, but only group members can see its content. In order to join a group, a group join request must be submitted. */
2498
+ /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
2494
2499
  PRIVATE = "PRIVATE",
2495
- /** Only group members and admins can see the group in the group list. New group members can only be added by existing group members. */
2500
+ /** Only admins and members can see the group. New members can only be added by other members. */
2496
2501
  SECRET = "SECRET"
2497
2502
  }
2498
2503
  interface AccessRestriction$1 extends AccessRestrictionDataOneOf$1 {
@@ -2567,16 +2572,17 @@ declare enum IdentityType$1 {
2567
2572
  MEMBER = "MEMBER"
2568
2573
  }
2569
2574
  declare enum RequestStatus$3 {
2575
+ /** Undefined request status. */
2570
2576
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
2571
- /** Pending request. */
2577
+ /** Pending group request. */
2572
2578
  PENDING = "PENDING",
2573
- /** Approved request. */
2579
+ /** Approved group request. */
2574
2580
  APPROVED = "APPROVED",
2575
- /** Rejected request. */
2581
+ /** Rejected group request. */
2576
2582
  REJECTED = "REJECTED",
2577
- /** Cancelled request. */
2583
+ /** Cancelled group request. */
2578
2584
  CANCELLED = "CANCELLED",
2579
- /** Canceled request. */
2585
+ /** Canceled group request. */
2580
2586
  CANCELED = "CANCELED"
2581
2587
  }
2582
2588
  interface RequestDetails$3 {
@@ -2600,7 +2606,7 @@ interface ApproveGroupRequestsRequest {
2600
2606
  groupRequestIds?: string[];
2601
2607
  }
2602
2608
  declare enum ItemsToUpdate$3 {
2603
- /** Take into account only items which are listed in request. */
2609
+ /** Take into account only items which are listed in the request. */
2604
2610
  BY_ID = "BY_ID",
2605
2611
  /** Update all items. */
2606
2612
  ALL_ITEMS = "ALL_ITEMS"
@@ -2655,7 +2661,7 @@ interface ListGroupRequestsRequest {
2655
2661
  declare enum OwnershipFilter$3 {
2656
2662
  /** All items. */
2657
2663
  ALL = "ALL",
2658
- /** Items for current site member. */
2664
+ /** Items for the current site member. */
2659
2665
  CURRENT_MEMBER = "CURRENT_MEMBER"
2660
2666
  }
2661
2667
  interface ListGroupRequestsResponse {
@@ -2871,6 +2877,7 @@ interface GroupSettingsNonNullableFields$1 {
2871
2877
  allowedToCreatePosts: AllowPolicy$1;
2872
2878
  allowedToCommentPosts: AllowPolicy$1;
2873
2879
  onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$1[];
2880
+ allowedToCreateEvents: AllowPolicy$1;
2874
2881
  }
2875
2882
  interface IdentityNonNullableFields$1 {
2876
2883
  identityType: IdentityType$1;
@@ -2946,14 +2953,14 @@ interface EventMetadata$5 extends BaseEventMetadata$5 {
2946
2953
  */
2947
2954
  entityEventSequence?: string | null;
2948
2955
  }
2949
- interface GroupRequestCreatedEnvelope {
2950
- entity: GroupRequest;
2951
- metadata: EventMetadata$5;
2952
- }
2953
2956
  interface GroupRequestApprovedEnvelope {
2954
2957
  data: GroupRequestApproved;
2955
2958
  metadata: EventMetadata$5;
2956
2959
  }
2960
+ interface GroupRequestCreatedEnvelope {
2961
+ entity: GroupRequest;
2962
+ metadata: EventMetadata$5;
2963
+ }
2957
2964
  interface GroupRequestRejectedEnvelope {
2958
2965
  data: GroupRequestRejected;
2959
2966
  metadata: EventMetadata$5;
@@ -3078,8 +3085,8 @@ interface QueryGroupRequestsSignature {
3078
3085
  */
3079
3086
  (options?: QueryGroupRequestsOptions | undefined): GroupRequestsQueryBuilder;
3080
3087
  }
3081
- declare const onGroupRequestCreated$1: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
3082
3088
  declare const onGroupRequestApproved$1: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
3089
+ declare const onGroupRequestCreated$1: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
3083
3090
  declare const onGroupRequestRejected$1: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
3084
3091
 
3085
3092
  declare function createEventModule$5<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
@@ -3089,16 +3096,16 @@ declare const rejectGroupRequests: MaybeContext<BuildRESTFunction<typeof rejectG
3089
3096
  declare const listGroupRequests: MaybeContext<BuildRESTFunction<typeof listGroupRequests$1> & typeof listGroupRequests$1>;
3090
3097
  declare const queryGroupRequests: MaybeContext<BuildRESTFunction<typeof queryGroupRequests$1> & typeof queryGroupRequests$1>;
3091
3098
 
3092
- type _publicOnGroupRequestCreatedType = typeof onGroupRequestCreated$1;
3093
- /** */
3094
- declare const onGroupRequestCreated: ReturnType<typeof createEventModule$5<_publicOnGroupRequestCreatedType>>;
3095
-
3096
3099
  type _publicOnGroupRequestApprovedType = typeof onGroupRequestApproved$1;
3097
3100
  /**
3098
3101
  * Triggered when a Group Request is approved.
3099
3102
  */
3100
3103
  declare const onGroupRequestApproved: ReturnType<typeof createEventModule$5<_publicOnGroupRequestApprovedType>>;
3101
3104
 
3105
+ type _publicOnGroupRequestCreatedType = typeof onGroupRequestCreated$1;
3106
+ /** */
3107
+ declare const onGroupRequestCreated: ReturnType<typeof createEventModule$5<_publicOnGroupRequestCreatedType>>;
3108
+
3102
3109
  type _publicOnGroupRequestRejectedType = typeof onGroupRequestRejected$1;
3103
3110
  /**
3104
3111
  * Triggered when a Group Request is rejected.
@@ -3150,14 +3157,11 @@ declare namespace index_d$6 {
3150
3157
  * Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
3151
3158
  */
3152
3159
  interface GroupRole {
3153
- /**
3154
- * Member's role.
3155
- * - `MEMBER` - Regular group member.
3156
- * - `ADMIN` - Group administrator.
3157
- */
3160
+ /** Member's role. */
3158
3161
  value?: Role;
3159
3162
  }
3160
3163
  declare enum Role {
3164
+ /** Undefined group member role. */
3161
3165
  UNKNOWN_ROLE = "UNKNOWN_ROLE",
3162
3166
  /** Regular group member. */
3163
3167
  MEMBER = "MEMBER",
@@ -3839,16 +3843,17 @@ interface JoinGroupRequest {
3839
3843
  requestDetails?: RequestDetails$2;
3840
3844
  }
3841
3845
  declare enum RequestStatus$2 {
3846
+ /** Undefined request status. */
3842
3847
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
3843
- /** Pending request. */
3848
+ /** Pending group request. */
3844
3849
  PENDING = "PENDING",
3845
- /** Approved request. */
3850
+ /** Approved group request. */
3846
3851
  APPROVED = "APPROVED",
3847
- /** Rejected request. */
3852
+ /** Rejected group request. */
3848
3853
  REJECTED = "REJECTED",
3849
- /** Cancelled request. */
3854
+ /** Cancelled group request. */
3850
3855
  CANCELLED = "CANCELLED",
3851
- /** Canceled request. */
3856
+ /** Canceled group request. */
3852
3857
  CANCELED = "CANCELED"
3853
3858
  }
3854
3859
  interface RequestDetails$2 {
@@ -3988,7 +3993,7 @@ interface ApproveJoinGroupRequestsRequest {
3988
3993
  memberIds?: string[];
3989
3994
  }
3990
3995
  declare enum ItemsToUpdate$2 {
3991
- /** Take into account only items which are listed in request. */
3996
+ /** Take into account only items which are listed in the request. */
3992
3997
  BY_ID = "BY_ID",
3993
3998
  /** Update all items. */
3994
3999
  ALL_ITEMS = "ALL_ITEMS"
@@ -4034,7 +4039,7 @@ interface ListJoinGroupRequestsRequest {
4034
4039
  declare enum OwnershipFilter$2 {
4035
4040
  /** All items. */
4036
4041
  ALL = "ALL",
4037
- /** Items for current site member. */
4042
+ /** Items for the current site member. */
4038
4043
  CURRENT_MEMBER = "CURRENT_MEMBER"
4039
4044
  }
4040
4045
  interface ListJoinGroupRequestsResponse {
@@ -4293,14 +4298,14 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
4293
4298
  */
4294
4299
  entityEventSequence?: string | null;
4295
4300
  }
4296
- interface JoinGroupRequestCreatedEnvelope {
4297
- entity: JoinGroupRequest;
4298
- metadata: EventMetadata$2;
4299
- }
4300
4301
  interface JoinGroupRequestApprovedEnvelope {
4301
4302
  data: JoinGroupRequestApproved;
4302
4303
  metadata: EventMetadata$2;
4303
4304
  }
4305
+ interface JoinGroupRequestCreatedEnvelope {
4306
+ entity: JoinGroupRequest;
4307
+ metadata: EventMetadata$2;
4308
+ }
4304
4309
  interface JoinGroupRequestRejectedEnvelope {
4305
4310
  data: JoinGroupRequestRejected;
4306
4311
  metadata: EventMetadata$2;
@@ -4435,8 +4440,8 @@ interface QueryJoinGroupRequestsSignature {
4435
4440
  */
4436
4441
  (groupId: string, options?: QueryJoinGroupRequestsOptions | undefined): JoinGroupRequestsQueryBuilder;
4437
4442
  }
4438
- declare const onJoinGroupRequestCreated$1: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
4439
4443
  declare const onJoinGroupRequestApproved$1: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
4444
+ declare const onJoinGroupRequestCreated$1: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
4440
4445
  declare const onJoinGroupRequestRejected$1: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
4441
4446
 
4442
4447
  declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
@@ -4446,16 +4451,16 @@ declare const rejectJoinGroupRequests: MaybeContext<BuildRESTFunction<typeof rej
4446
4451
  declare const listJoinGroupRequests: MaybeContext<BuildRESTFunction<typeof listJoinGroupRequests$1> & typeof listJoinGroupRequests$1>;
4447
4452
  declare const queryJoinGroupRequests: MaybeContext<BuildRESTFunction<typeof queryJoinGroupRequests$1> & typeof queryJoinGroupRequests$1>;
4448
4453
 
4449
- type _publicOnJoinGroupRequestCreatedType = typeof onJoinGroupRequestCreated$1;
4450
- /** */
4451
- declare const onJoinGroupRequestCreated: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestCreatedType>>;
4452
-
4453
4454
  type _publicOnJoinGroupRequestApprovedType = typeof onJoinGroupRequestApproved$1;
4454
4455
  /**
4455
4456
  * Triggered when a join group request is approved by a group admin or a groups manager.
4456
4457
  */
4457
4458
  declare const onJoinGroupRequestApproved: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestApprovedType>>;
4458
4459
 
4460
+ type _publicOnJoinGroupRequestCreatedType = typeof onJoinGroupRequestCreated$1;
4461
+ /** */
4462
+ declare const onJoinGroupRequestCreated: ReturnType<typeof createEventModule$2<_publicOnJoinGroupRequestCreatedType>>;
4463
+
4459
4464
  type _publicOnJoinGroupRequestRejectedType = typeof onJoinGroupRequestRejected$1;
4460
4465
  /**
4461
4466
  * Triggered when a join group request is rejected by a group admin or a groups manager.
@@ -4748,12 +4753,7 @@ interface Group {
4748
4753
  * @deprecated
4749
4754
  */
4750
4755
  privacyLevel?: PrivacyStatus;
4751
- /**
4752
- * Group privacy status.
4753
- * - `PUBLIC` - Anyone can see the group and its content. Anyone can join the group.
4754
- * - `PRIVATE` - Anyone can see the group, but only members can see its content. New member must submit a `Join Group Request`.
4755
- * - `SECRET` - Only admins and members can see the group. New members can only be added by other members.
4756
- */
4756
+ /** Group privacy status. */
4757
4757
  privacyStatus?: PrivacyStatus;
4758
4758
  /**
4759
4759
  * __Deprecated.__ Use `name` instead.
@@ -4875,12 +4875,13 @@ declare enum StepKey {
4875
4875
  INVITE_MEMBERS = "INVITE_MEMBERS"
4876
4876
  }
4877
4877
  declare enum PrivacyStatus {
4878
+ /** Undefined group privacy status. */
4878
4879
  UNKNOWN = "UNKNOWN",
4879
- /** Anyone can see the group in the group list and view its content. Anyone can join. */
4880
+ /** Anyone can see the group and its content. Anyone can join the group. */
4880
4881
  PUBLIC = "PUBLIC",
4881
- /** Anyone can see the group in the group list, but only group members can see its content. In order to join a group, a group join request must be submitted. */
4882
+ /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
4882
4883
  PRIVATE = "PRIVATE",
4883
- /** Only group members and admins can see the group in the group list. New group members can only be added by existing group members. */
4884
+ /** Only admins and members can see the group. New members can only be added by other members. */
4884
4885
  SECRET = "SECRET"
4885
4886
  }
4886
4887
  interface AccessRestriction extends AccessRestrictionDataOneOf {
@@ -4943,16 +4944,17 @@ declare enum IdentityType {
4943
4944
  MEMBER = "MEMBER"
4944
4945
  }
4945
4946
  declare enum RequestStatus$1 {
4947
+ /** Undefined request status. */
4946
4948
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
4947
- /** Pending request. */
4949
+ /** Pending group request. */
4948
4950
  PENDING = "PENDING",
4949
- /** Approved request. */
4951
+ /** Approved group request. */
4950
4952
  APPROVED = "APPROVED",
4951
- /** Rejected request. */
4953
+ /** Rejected group request. */
4952
4954
  REJECTED = "REJECTED",
4953
- /** Cancelled request. */
4955
+ /** Cancelled group request. */
4954
4956
  CANCELLED = "CANCELLED",
4955
- /** Canceled request. */
4957
+ /** Canceled group request. */
4956
4958
  CANCELED = "CANCELED"
4957
4959
  }
4958
4960
  interface RequestDetails$1 {
@@ -4972,7 +4974,7 @@ interface ApproveCreateRequestsRequest {
4972
4974
  createRequestIds?: string[];
4973
4975
  }
4974
4976
  declare enum ItemsToUpdate$1 {
4975
- /** Take into account only items which are listed in request. */
4977
+ /** Take into account only items which are listed in the request. */
4976
4978
  BY_ID = "BY_ID",
4977
4979
  /** Update all items. */
4978
4980
  ALL_ITEMS = "ALL_ITEMS"
@@ -5020,7 +5022,7 @@ interface ListCreateRequestsRequest {
5020
5022
  declare enum OwnershipFilter$1 {
5021
5023
  /** All items. */
5022
5024
  ALL = "ALL",
5023
- /** Items for current site member. */
5025
+ /** Items for the current site member. */
5024
5026
  CURRENT_MEMBER = "CURRENT_MEMBER"
5025
5027
  }
5026
5028
  interface ListCreateRequestsResponse {
@@ -5469,16 +5471,17 @@ interface JoinRequest {
5469
5471
  requestDetails?: RequestDetails;
5470
5472
  }
5471
5473
  declare enum RequestStatus {
5474
+ /** Undefined request status. */
5472
5475
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
5473
- /** Pending request. */
5476
+ /** Pending group request. */
5474
5477
  PENDING = "PENDING",
5475
- /** Approved request. */
5478
+ /** Approved group request. */
5476
5479
  APPROVED = "APPROVED",
5477
- /** Rejected request. */
5480
+ /** Rejected group request. */
5478
5481
  REJECTED = "REJECTED",
5479
- /** Cancelled request. */
5482
+ /** Cancelled group request. */
5480
5483
  CANCELLED = "CANCELLED",
5481
- /** Canceled request. */
5484
+ /** Canceled group request. */
5482
5485
  CANCELED = "CANCELED"
5483
5486
  }
5484
5487
  interface RequestDetails {
@@ -5523,7 +5526,7 @@ interface ApproveJoinRequestsRequest {
5523
5526
  memberIds: string[];
5524
5527
  }
5525
5528
  declare enum ItemsToUpdate {
5526
- /** Take into account only items which are listed in request. */
5529
+ /** Take into account only items which are listed in the request. */
5527
5530
  BY_ID = "BY_ID",
5528
5531
  /** Update all items. */
5529
5532
  ALL_ITEMS = "ALL_ITEMS"
@@ -5569,7 +5572,7 @@ interface ListJoinRequestsRequest {
5569
5572
  declare enum OwnershipFilter {
5570
5573
  /** All items. */
5571
5574
  ALL = "ALL",
5572
- /** Items for current site member. */
5575
+ /** Items for the current site member. */
5573
5576
  CURRENT_MEMBER = "CURRENT_MEMBER"
5574
5577
  }
5575
5578
  interface ListJoinRequestsResponse {