@wix/groups 1.0.91 → 1.0.93

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.
@@ -429,7 +429,7 @@ interface DomainEvent$7 extends DomainEventBodyOneOf$7 {
429
429
  slug?: string;
430
430
  /** ID of the entity associated with the event. */
431
431
  entityId?: string;
432
- /** Event timestamp. */
432
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
433
433
  eventTime?: Date;
434
434
  /**
435
435
  * Whether the event was triggered as a result of a privacy regulation application
@@ -516,138 +516,73 @@ declare enum WebhookIdentityType$7 {
516
516
  WIX_USER = "WIX_USER",
517
517
  APP = "APP"
518
518
  }
519
+ interface EventsNonNullableFields$2 {
520
+ eventIds: string[];
521
+ }
522
+ interface AccessRestrictionNonNullableFields$2 {
523
+ events?: EventsNonNullableFields$2;
524
+ type: Type$2;
525
+ }
526
+ interface GroupDetailsPositionNonNullableFields$2 {
527
+ x: number;
528
+ y: number;
529
+ }
530
+ interface GroupDetailsNonNullableFields$2 {
531
+ logoPosition?: GroupDetailsPositionNonNullableFields$2;
532
+ mobileLogoPosition?: GroupDetailsPositionNonNullableFields$2;
533
+ }
534
+ interface PositionNonNullableFields$2 {
535
+ x: number;
536
+ y: number;
537
+ }
538
+ interface CoverImageNonNullableFields$2 {
539
+ position?: PositionNonNullableFields$2;
540
+ mobilePosition?: PositionNonNullableFields$2;
541
+ }
542
+ interface OnboardingStepSettingsNonNullableFields$2 {
543
+ stepKey: StepKey$2;
544
+ visible: boolean;
545
+ }
546
+ interface GroupSettingsNonNullableFields$2 {
547
+ allowedToInviteMembers: AllowPolicy$2;
548
+ allowedToApproveJoinRequests: AllowPolicy$2;
549
+ allowedToAddMembers: AllowPolicy$2;
550
+ allowedToCreatePosts: AllowPolicy$2;
551
+ allowedToCommentPosts: AllowPolicy$2;
552
+ onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$2[];
553
+ }
554
+ interface IdentityNonNullableFields$2 {
555
+ identityType: IdentityType$2;
556
+ }
557
+ interface GroupNonNullableFields$2 {
558
+ privacyLevel: PrivacyStatus$2;
559
+ privacyStatus: PrivacyStatus$2;
560
+ accessRestriction?: AccessRestrictionNonNullableFields$2;
561
+ details?: GroupDetailsNonNullableFields$2;
562
+ coverImage?: CoverImageNonNullableFields$2;
563
+ settings?: GroupSettingsNonNullableFields$2;
564
+ createdBy?: IdentityNonNullableFields$2;
565
+ }
519
566
  interface CreateGroupResponseNonNullableFields {
520
- group?: {
521
- privacyLevel: PrivacyStatus$2;
522
- privacyStatus: PrivacyStatus$2;
523
- coverImage?: {
524
- position?: {
525
- x: number;
526
- y: number;
527
- };
528
- mobilePosition?: {
529
- x: number;
530
- y: number;
531
- };
532
- };
533
- createdBy?: {
534
- identityType: IdentityType$2;
535
- };
536
- };
567
+ group?: GroupNonNullableFields$2;
537
568
  }
538
569
  interface UpdateGroupResponseNonNullableFields {
539
- group?: {
540
- privacyLevel: PrivacyStatus$2;
541
- privacyStatus: PrivacyStatus$2;
542
- coverImage?: {
543
- position?: {
544
- x: number;
545
- y: number;
546
- };
547
- mobilePosition?: {
548
- x: number;
549
- y: number;
550
- };
551
- };
552
- createdBy?: {
553
- identityType: IdentityType$2;
554
- };
555
- };
570
+ group?: GroupNonNullableFields$2;
556
571
  }
557
572
  interface DeleteGroupResponseNonNullableFields {
558
- group?: {
559
- privacyLevel: PrivacyStatus$2;
560
- privacyStatus: PrivacyStatus$2;
561
- coverImage?: {
562
- position?: {
563
- x: number;
564
- y: number;
565
- };
566
- mobilePosition?: {
567
- x: number;
568
- y: number;
569
- };
570
- };
571
- createdBy?: {
572
- identityType: IdentityType$2;
573
- };
574
- };
573
+ group?: GroupNonNullableFields$2;
575
574
  }
576
575
  interface GetGroupResponseNonNullableFields {
577
- group?: {
578
- privacyLevel: PrivacyStatus$2;
579
- privacyStatus: PrivacyStatus$2;
580
- coverImage?: {
581
- position?: {
582
- x: number;
583
- y: number;
584
- };
585
- mobilePosition?: {
586
- x: number;
587
- y: number;
588
- };
589
- };
590
- createdBy?: {
591
- identityType: IdentityType$2;
592
- };
593
- };
576
+ group?: GroupNonNullableFields$2;
594
577
  }
595
578
  interface GetGroupBySlugResponseNonNullableFields {
596
- group?: {
597
- privacyLevel: PrivacyStatus$2;
598
- privacyStatus: PrivacyStatus$2;
599
- coverImage?: {
600
- position?: {
601
- x: number;
602
- y: number;
603
- };
604
- mobilePosition?: {
605
- x: number;
606
- y: number;
607
- };
608
- };
609
- createdBy?: {
610
- identityType: IdentityType$2;
611
- };
612
- };
579
+ group?: GroupNonNullableFields$2;
613
580
  }
614
581
  interface ListGroupsResponseNonNullableFields {
615
- groups: {
616
- privacyLevel: PrivacyStatus$2;
617
- privacyStatus: PrivacyStatus$2;
618
- coverImage?: {
619
- position?: {
620
- x: number;
621
- y: number;
622
- };
623
- mobilePosition?: {
624
- x: number;
625
- y: number;
626
- };
627
- };
628
- createdBy?: {
629
- identityType: IdentityType$2;
630
- };
631
- }[];
582
+ groups: GroupNonNullableFields$2[];
632
583
  }
633
584
  interface QueryGroupsResponseNonNullableFields {
634
- groups: {
635
- privacyLevel: PrivacyStatus$2;
636
- privacyStatus: PrivacyStatus$2;
637
- coverImage?: {
638
- position?: {
639
- x: number;
640
- y: number;
641
- };
642
- mobilePosition?: {
643
- x: number;
644
- y: number;
645
- };
646
- };
647
- createdBy?: {
648
- identityType: IdentityType$2;
649
- };
650
- }[];
585
+ groups: GroupNonNullableFields$2[];
651
586
  }
652
587
  interface BaseEventMetadata$7 {
653
588
  /** App instance ID. */
@@ -676,7 +611,7 @@ interface EventMetadata$7 extends BaseEventMetadata$7 {
676
611
  slug?: string;
677
612
  /** ID of the entity associated with the event. */
678
613
  entityId?: string;
679
- /** Event timestamp. */
614
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
680
615
  eventTime?: Date;
681
616
  /**
682
617
  * Whether the event was triggered as a result of a privacy regulation application
@@ -870,37 +805,42 @@ interface GroupsQueryBuilder {
870
805
  find: () => Promise<GroupsQueryResult>;
871
806
  }
872
807
 
873
- interface HttpClient$8 {
874
- request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
875
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
808
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
809
+ interface HttpClient {
810
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
811
+ fetchWithAuth: typeof fetch;
812
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
876
813
  }
877
- type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
878
- type HttpResponse$8<T = any> = {
814
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
815
+ type HttpResponse<T = any> = {
879
816
  data: T;
880
817
  status: number;
881
818
  statusText: string;
882
819
  headers: any;
883
820
  request?: any;
884
821
  };
885
- type RequestOptions$8<_TResponse = any, Data = any> = {
822
+ type RequestOptions<_TResponse = any, Data = any> = {
886
823
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
887
824
  url: string;
888
825
  data?: Data;
889
826
  params?: URLSearchParams;
890
- } & APIMetadata$8;
891
- type APIMetadata$8 = {
827
+ } & APIMetadata;
828
+ type APIMetadata = {
892
829
  methodFqn?: string;
893
830
  entityFqdn?: string;
894
831
  packageName?: string;
895
832
  };
896
- type EventDefinition$7<Payload = unknown, Type extends string = string> = {
833
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
834
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
897
835
  __type: 'event-definition';
898
836
  type: Type;
899
837
  isDomainEvent?: boolean;
900
838
  transformations?: (envelope: unknown) => Payload;
901
839
  __payload: Payload;
902
840
  };
903
- declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
841
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
842
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
843
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
904
844
 
905
845
  declare global {
906
846
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -909,69 +849,22 @@ declare global {
909
849
  }
910
850
  }
911
851
 
912
- declare const __metadata$8: {
913
- PACKAGE_NAME: string;
914
- };
915
- declare function createGroup(httpClient: HttpClient$8): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
916
- privacyLevel: PrivacyStatus$2;
917
- privacyStatus: PrivacyStatus$2;
918
- coverImage?: {
919
- position?: {
920
- x: number;
921
- y: number;
922
- } | undefined;
923
- mobilePosition?: {
924
- x: number;
925
- y: number;
926
- } | undefined;
927
- } | undefined;
928
- createdBy?: {
929
- identityType: IdentityType$2;
930
- } | undefined;
931
- }>;
932
- declare function updateGroup(httpClient: HttpClient$8): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
933
- privacyLevel: PrivacyStatus$2;
934
- privacyStatus: PrivacyStatus$2;
935
- coverImage?: {
936
- position?: {
937
- x: number;
938
- y: number;
939
- } | undefined;
940
- mobilePosition?: {
941
- x: number;
942
- y: number;
943
- } | undefined;
944
- } | undefined;
945
- createdBy?: {
946
- identityType: IdentityType$2;
947
- } | undefined;
948
- }>;
949
- declare function deleteGroup(httpClient: HttpClient$8): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
950
- declare function getGroup(httpClient: HttpClient$8): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
951
- privacyLevel: PrivacyStatus$2;
952
- privacyStatus: PrivacyStatus$2;
953
- coverImage?: {
954
- position?: {
955
- x: number;
956
- y: number;
957
- } | undefined;
958
- mobilePosition?: {
959
- x: number;
960
- y: number;
961
- } | undefined;
962
- } | undefined;
963
- createdBy?: {
964
- identityType: IdentityType$2;
965
- } | undefined;
966
- }>;
967
- declare function getGroupBySlug(httpClient: HttpClient$8): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
968
- declare function listGroups(httpClient: HttpClient$8): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
969
- declare function queryGroups(httpClient: HttpClient$8): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
970
- declare const onGroupCreated: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
971
- declare const onGroupUpdated: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
972
- declare const onGroupCoverChanged: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
973
- declare const onGroupDescriptionChanged: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
974
- declare const onGroupDeleted: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
852
+ declare function createRESTModule$8<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
853
+
854
+ declare function createEventModule$7<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
855
+
856
+ declare const createGroup: ReturnType<typeof createRESTModule$8<typeof publicCreateGroup>>;
857
+ declare const updateGroup: ReturnType<typeof createRESTModule$8<typeof publicUpdateGroup>>;
858
+ declare const deleteGroup: ReturnType<typeof createRESTModule$8<typeof publicDeleteGroup>>;
859
+ declare const getGroup: ReturnType<typeof createRESTModule$8<typeof publicGetGroup>>;
860
+ declare const getGroupBySlug: ReturnType<typeof createRESTModule$8<typeof publicGetGroupBySlug>>;
861
+ declare const listGroups: ReturnType<typeof createRESTModule$8<typeof publicListGroups>>;
862
+ declare const queryGroups: ReturnType<typeof createRESTModule$8<typeof publicQueryGroups>>;
863
+ declare const onGroupCreated: ReturnType<typeof createEventModule$7<typeof publicOnGroupCreated>>;
864
+ declare const onGroupUpdated: ReturnType<typeof createEventModule$7<typeof publicOnGroupUpdated>>;
865
+ declare const onGroupCoverChanged: ReturnType<typeof createEventModule$7<typeof publicOnGroupCoverChanged>>;
866
+ declare const onGroupDescriptionChanged: ReturnType<typeof createEventModule$7<typeof publicOnGroupDescriptionChanged>>;
867
+ declare const onGroupDeleted: ReturnType<typeof createEventModule$7<typeof publicOnGroupDeleted>>;
975
868
 
976
869
  type index_d$8_ContentType = ContentType;
977
870
  declare const index_d$8_ContentType: typeof ContentType;
@@ -1038,7 +931,7 @@ declare const index_d$8_onGroupUpdated: typeof onGroupUpdated;
1038
931
  declare const index_d$8_queryGroups: typeof queryGroups;
1039
932
  declare const index_d$8_updateGroup: typeof updateGroup;
1040
933
  declare namespace index_d$8 {
1041
- export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, 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_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 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, __metadata$8 as __metadata, 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 };
934
+ export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, 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_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 };
1042
935
  }
1043
936
 
1044
937
  interface GroupMember$1 {
@@ -1364,7 +1257,7 @@ interface DomainEvent$6 extends DomainEventBodyOneOf$6 {
1364
1257
  slug?: string;
1365
1258
  /** ID of the entity associated with the event. */
1366
1259
  entityId?: string;
1367
- /** Event timestamp. */
1260
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1368
1261
  eventTime?: Date;
1369
1262
  /**
1370
1263
  * Whether the event was triggered as a result of a privacy regulation application
@@ -1451,50 +1344,33 @@ declare enum WebhookIdentityType$6 {
1451
1344
  WIX_USER = "WIX_USER",
1452
1345
  APP = "APP"
1453
1346
  }
1347
+ interface GroupRoleNonNullableFields$1 {
1348
+ value: Role$1;
1349
+ }
1350
+ interface GroupMemberNonNullableFields {
1351
+ siteMemberId: string;
1352
+ memberId: string;
1353
+ role?: GroupRoleNonNullableFields$1;
1354
+ }
1454
1355
  interface AddGroupMembersResponseNonNullableFields {
1455
- members: {
1456
- siteMemberId: string;
1457
- memberId: string;
1458
- role?: {
1459
- value: Role$1;
1460
- };
1461
- }[];
1356
+ members: GroupMemberNonNullableFields[];
1462
1357
  }
1463
1358
  interface ListGroupMembersResponseNonNullableFields {
1464
- members: {
1465
- siteMemberId: string;
1466
- memberId: string;
1467
- role?: {
1468
- value: Role$1;
1469
- };
1470
- }[];
1359
+ members: GroupMemberNonNullableFields[];
1471
1360
  }
1472
1361
  interface QueryGroupMembersResponseNonNullableFields {
1473
- members: {
1474
- siteMemberId: string;
1475
- memberId: string;
1476
- role?: {
1477
- value: Role$1;
1478
- };
1479
- }[];
1362
+ members: GroupMemberNonNullableFields[];
1363
+ }
1364
+ interface MembershipNonNullableFields {
1365
+ groupId: string;
1366
+ status: MembershipStatus;
1367
+ role?: GroupRoleNonNullableFields$1;
1480
1368
  }
1481
1369
  interface ListMembershipsResponseNonNullableFields {
1482
- memberships: {
1483
- groupId: string;
1484
- status: MembershipStatus;
1485
- role?: {
1486
- value: Role$1;
1487
- };
1488
- }[];
1370
+ memberships: MembershipNonNullableFields[];
1489
1371
  }
1490
1372
  interface QueryMembershipsResponseNonNullableFields {
1491
- memberships: {
1492
- groupId: string;
1493
- status: MembershipStatus;
1494
- role?: {
1495
- value: Role$1;
1496
- };
1497
- }[];
1373
+ memberships: MembershipNonNullableFields[];
1498
1374
  }
1499
1375
  interface BaseEventMetadata$6 {
1500
1376
  /** App instance ID. */
@@ -1523,7 +1399,7 @@ interface EventMetadata$6 extends BaseEventMetadata$6 {
1523
1399
  slug?: string;
1524
1400
  /** ID of the entity associated with the event. */
1525
1401
  entityId?: string;
1526
- /** Event timestamp. */
1402
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1527
1403
  eventTime?: Date;
1528
1404
  /**
1529
1405
  * Whether the event was triggered as a result of a privacy regulation application
@@ -1628,56 +1504,18 @@ interface QueryMembershipsOptions {
1628
1504
  query?: Query$4;
1629
1505
  }
1630
1506
 
1631
- interface HttpClient$7 {
1632
- request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
1633
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1634
- }
1635
- type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
1636
- type HttpResponse$7<T = any> = {
1637
- data: T;
1638
- status: number;
1639
- statusText: string;
1640
- headers: any;
1641
- request?: any;
1642
- };
1643
- type RequestOptions$7<_TResponse = any, Data = any> = {
1644
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1645
- url: string;
1646
- data?: Data;
1647
- params?: URLSearchParams;
1648
- } & APIMetadata$7;
1649
- type APIMetadata$7 = {
1650
- methodFqn?: string;
1651
- entityFqdn?: string;
1652
- packageName?: string;
1653
- };
1654
- type EventDefinition$6<Payload = unknown, Type extends string = string> = {
1655
- __type: 'event-definition';
1656
- type: Type;
1657
- isDomainEvent?: boolean;
1658
- transformations?: (envelope: unknown) => Payload;
1659
- __payload: Payload;
1660
- };
1661
- declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
1507
+ declare function createRESTModule$7<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1662
1508
 
1663
- declare global {
1664
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1665
- interface SymbolConstructor {
1666
- readonly observable: symbol;
1667
- }
1668
- }
1509
+ declare function createEventModule$6<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1669
1510
 
1670
- declare const __metadata$7: {
1671
- PACKAGE_NAME: string;
1672
- };
1673
- declare function addGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
1674
- declare function removeGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
1675
- declare function listGroupMembers(httpClient: HttpClient$7): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
1676
- declare function queryGroupMembers(httpClient: HttpClient$7): (groupId: string) => MembersQueryBuilder;
1677
- declare function listMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
1678
- declare function queryMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
1679
- declare const onGroupMemberAdded: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
1680
- declare const onGroupMemberRemoved: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
1511
+ declare const addGroupMembers: ReturnType<typeof createRESTModule$7<typeof publicAddGroupMembers>>;
1512
+ declare const removeGroupMembers: ReturnType<typeof createRESTModule$7<typeof publicRemoveGroupMembers>>;
1513
+ declare const listGroupMembers: ReturnType<typeof createRESTModule$7<typeof publicListGroupMembers>>;
1514
+ declare const queryGroupMembers: ReturnType<typeof createRESTModule$7<typeof publicQueryGroupMembers>>;
1515
+ declare const listMemberships: ReturnType<typeof createRESTModule$7<typeof publicListMemberships>>;
1516
+ declare const queryMemberships: ReturnType<typeof createRESTModule$7<typeof publicQueryMemberships>>;
1517
+ declare const onGroupMemberAdded: ReturnType<typeof createEventModule$6<typeof publicOnGroupMemberAdded>>;
1518
+ declare const onGroupMemberRemoved: ReturnType<typeof createEventModule$6<typeof publicOnGroupMemberRemoved>>;
1681
1519
 
1682
1520
  type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
1683
1521
  type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
@@ -1728,7 +1566,7 @@ declare const index_d$7_queryGroupMembers: typeof queryGroupMembers;
1728
1566
  declare const index_d$7_queryMemberships: typeof queryMemberships;
1729
1567
  declare const index_d$7_removeGroupMembers: typeof removeGroupMembers;
1730
1568
  declare namespace index_d$7 {
1731
- 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_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, __metadata$7 as __metadata, 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 };
1569
+ 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_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 };
1732
1570
  }
1733
1571
 
1734
1572
  /**
@@ -2173,7 +2011,7 @@ interface DomainEvent$5 extends DomainEventBodyOneOf$5 {
2173
2011
  slug?: string;
2174
2012
  /** ID of the entity associated with the event. */
2175
2013
  entityId?: string;
2176
- /** Event timestamp. */
2014
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2177
2015
  eventTime?: Date;
2178
2016
  /**
2179
2017
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2260,93 +2098,68 @@ declare enum WebhookIdentityType$5 {
2260
2098
  WIX_USER = "WIX_USER",
2261
2099
  APP = "APP"
2262
2100
  }
2101
+ interface EventsNonNullableFields$1 {
2102
+ eventIds: string[];
2103
+ }
2104
+ interface AccessRestrictionNonNullableFields$1 {
2105
+ events?: EventsNonNullableFields$1;
2106
+ type: Type$1;
2107
+ }
2108
+ interface GroupDetailsPositionNonNullableFields$1 {
2109
+ x: number;
2110
+ y: number;
2111
+ }
2112
+ interface GroupDetailsNonNullableFields$1 {
2113
+ logoPosition?: GroupDetailsPositionNonNullableFields$1;
2114
+ mobileLogoPosition?: GroupDetailsPositionNonNullableFields$1;
2115
+ }
2116
+ interface PositionNonNullableFields$1 {
2117
+ x: number;
2118
+ y: number;
2119
+ }
2120
+ interface CoverImageNonNullableFields$1 {
2121
+ position?: PositionNonNullableFields$1;
2122
+ mobilePosition?: PositionNonNullableFields$1;
2123
+ }
2124
+ interface OnboardingStepSettingsNonNullableFields$1 {
2125
+ stepKey: StepKey$1;
2126
+ visible: boolean;
2127
+ }
2128
+ interface GroupSettingsNonNullableFields$1 {
2129
+ allowedToInviteMembers: AllowPolicy$1;
2130
+ allowedToApproveJoinRequests: AllowPolicy$1;
2131
+ allowedToAddMembers: AllowPolicy$1;
2132
+ allowedToCreatePosts: AllowPolicy$1;
2133
+ allowedToCommentPosts: AllowPolicy$1;
2134
+ onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$1[];
2135
+ }
2136
+ interface IdentityNonNullableFields$1 {
2137
+ identityType: IdentityType$1;
2138
+ }
2139
+ interface GroupNonNullableFields$1 {
2140
+ privacyLevel: PrivacyStatus$1;
2141
+ privacyStatus: PrivacyStatus$1;
2142
+ accessRestriction?: AccessRestrictionNonNullableFields$1;
2143
+ details?: GroupDetailsNonNullableFields$1;
2144
+ coverImage?: CoverImageNonNullableFields$1;
2145
+ settings?: GroupSettingsNonNullableFields$1;
2146
+ createdBy?: IdentityNonNullableFields$1;
2147
+ }
2148
+ interface GroupRequestNonNullableFields {
2149
+ group?: GroupNonNullableFields$1;
2150
+ status: RequestStatus$3;
2151
+ }
2263
2152
  interface ApproveGroupRequestsResponseNonNullableFields {
2264
- groupRequest: {
2265
- group?: {
2266
- privacyLevel: PrivacyStatus$1;
2267
- privacyStatus: PrivacyStatus$1;
2268
- coverImage?: {
2269
- position?: {
2270
- x: number;
2271
- y: number;
2272
- };
2273
- mobilePosition?: {
2274
- x: number;
2275
- y: number;
2276
- };
2277
- };
2278
- createdBy?: {
2279
- identityType: IdentityType$1;
2280
- };
2281
- };
2282
- status: RequestStatus$3;
2283
- }[];
2153
+ groupRequest: GroupRequestNonNullableFields[];
2284
2154
  }
2285
2155
  interface RejectGroupRequestsResponseNonNullableFields {
2286
- groupRequest: {
2287
- group?: {
2288
- privacyLevel: PrivacyStatus$1;
2289
- privacyStatus: PrivacyStatus$1;
2290
- coverImage?: {
2291
- position?: {
2292
- x: number;
2293
- y: number;
2294
- };
2295
- mobilePosition?: {
2296
- x: number;
2297
- y: number;
2298
- };
2299
- };
2300
- createdBy?: {
2301
- identityType: IdentityType$1;
2302
- };
2303
- };
2304
- status: RequestStatus$3;
2305
- }[];
2156
+ groupRequest: GroupRequestNonNullableFields[];
2306
2157
  }
2307
2158
  interface ListGroupRequestsResponseNonNullableFields {
2308
- groupRequests: {
2309
- group?: {
2310
- privacyLevel: PrivacyStatus$1;
2311
- privacyStatus: PrivacyStatus$1;
2312
- coverImage?: {
2313
- position?: {
2314
- x: number;
2315
- y: number;
2316
- };
2317
- mobilePosition?: {
2318
- x: number;
2319
- y: number;
2320
- };
2321
- };
2322
- createdBy?: {
2323
- identityType: IdentityType$1;
2324
- };
2325
- };
2326
- status: RequestStatus$3;
2327
- }[];
2159
+ groupRequests: GroupRequestNonNullableFields[];
2328
2160
  }
2329
2161
  interface QueryGroupRequestsResponseNonNullableFields {
2330
- groupRequests: {
2331
- group?: {
2332
- privacyLevel: PrivacyStatus$1;
2333
- privacyStatus: PrivacyStatus$1;
2334
- coverImage?: {
2335
- position?: {
2336
- x: number;
2337
- y: number;
2338
- };
2339
- mobilePosition?: {
2340
- x: number;
2341
- y: number;
2342
- };
2343
- };
2344
- createdBy?: {
2345
- identityType: IdentityType$1;
2346
- };
2347
- };
2348
- status: RequestStatus$3;
2349
- }[];
2162
+ groupRequests: GroupRequestNonNullableFields[];
2350
2163
  }
2351
2164
  interface BaseEventMetadata$5 {
2352
2165
  /** App instance ID. */
@@ -2375,7 +2188,7 @@ interface EventMetadata$5 extends BaseEventMetadata$5 {
2375
2188
  slug?: string;
2376
2189
  /** ID of the entity associated with the event. */
2377
2190
  entityId?: string;
2378
- /** Event timestamp. */
2191
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2379
2192
  eventTime?: Date;
2380
2193
  /**
2381
2194
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2466,55 +2279,17 @@ interface GroupRequestsQueryBuilder {
2466
2279
  find: () => Promise<GroupRequestsQueryResult>;
2467
2280
  }
2468
2281
 
2469
- interface HttpClient$6 {
2470
- request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
2471
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2472
- }
2473
- type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
2474
- type HttpResponse$6<T = any> = {
2475
- data: T;
2476
- status: number;
2477
- statusText: string;
2478
- headers: any;
2479
- request?: any;
2480
- };
2481
- type RequestOptions$6<_TResponse = any, Data = any> = {
2482
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2483
- url: string;
2484
- data?: Data;
2485
- params?: URLSearchParams;
2486
- } & APIMetadata$6;
2487
- type APIMetadata$6 = {
2488
- methodFqn?: string;
2489
- entityFqdn?: string;
2490
- packageName?: string;
2491
- };
2492
- type EventDefinition$5<Payload = unknown, Type extends string = string> = {
2493
- __type: 'event-definition';
2494
- type: Type;
2495
- isDomainEvent?: boolean;
2496
- transformations?: (envelope: unknown) => Payload;
2497
- __payload: Payload;
2498
- };
2499
- declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
2282
+ declare function createRESTModule$6<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2500
2283
 
2501
- declare global {
2502
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2503
- interface SymbolConstructor {
2504
- readonly observable: symbol;
2505
- }
2506
- }
2284
+ declare function createEventModule$5<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2507
2285
 
2508
- declare const __metadata$6: {
2509
- PACKAGE_NAME: string;
2510
- };
2511
- declare function approveGroupRequests(httpClient: HttpClient$6): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
2512
- declare function rejectGroupRequests(httpClient: HttpClient$6): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
2513
- declare function listGroupRequests(httpClient: HttpClient$6): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
2514
- declare function queryGroupRequests(httpClient: HttpClient$6): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
2515
- declare const onGroupRequestCreated: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
2516
- declare const onGroupRequestApproved: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
2517
- declare const onGroupRequestRejected: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
2286
+ declare const approveGroupRequests: ReturnType<typeof createRESTModule$6<typeof publicApproveGroupRequests>>;
2287
+ declare const rejectGroupRequests: ReturnType<typeof createRESTModule$6<typeof publicRejectGroupRequests>>;
2288
+ declare const listGroupRequests: ReturnType<typeof createRESTModule$6<typeof publicListGroupRequests>>;
2289
+ declare const queryGroupRequests: ReturnType<typeof createRESTModule$6<typeof publicQueryGroupRequests>>;
2290
+ declare const onGroupRequestCreated: ReturnType<typeof createEventModule$5<typeof publicOnGroupRequestCreated>>;
2291
+ declare const onGroupRequestApproved: ReturnType<typeof createEventModule$5<typeof publicOnGroupRequestApproved>>;
2292
+ declare const onGroupRequestRejected: ReturnType<typeof createEventModule$5<typeof publicOnGroupRequestRejected>>;
2518
2293
 
2519
2294
  type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
2520
2295
  type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
@@ -2550,7 +2325,7 @@ declare const index_d$6_onGroupRequestRejected: typeof onGroupRequestRejected;
2550
2325
  declare const index_d$6_queryGroupRequests: typeof queryGroupRequests;
2551
2326
  declare const index_d$6_rejectGroupRequests: typeof rejectGroupRequests;
2552
2327
  declare namespace index_d$6 {
2553
- 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, __metadata$6 as __metadata, 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 };
2328
+ 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 };
2554
2329
  }
2555
2330
 
2556
2331
  /**
@@ -2700,7 +2475,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
2700
2475
  slug?: string;
2701
2476
  /** ID of the entity associated with the event. */
2702
2477
  entityId?: string;
2703
- /** Event timestamp. */
2478
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2704
2479
  eventTime?: Date;
2705
2480
  /**
2706
2481
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2787,21 +2562,20 @@ declare enum WebhookIdentityType$4 {
2787
2562
  WIX_USER = "WIX_USER",
2788
2563
  APP = "APP"
2789
2564
  }
2565
+ interface GroupRoleNonNullableFields {
2566
+ value: Role;
2567
+ }
2790
2568
  interface AssignRoleResponseNonNullableFields {
2791
2569
  groupId: string;
2792
2570
  siteMemberIds: string[];
2793
2571
  memberIds: string[];
2794
- role?: {
2795
- value: Role;
2796
- };
2572
+ role?: GroupRoleNonNullableFields;
2797
2573
  }
2798
2574
  interface UnassignRoleResponseNonNullableFields {
2799
2575
  groupId: string;
2800
2576
  siteMemberIds: string[];
2801
2577
  memberIds: string[];
2802
- role?: {
2803
- value: Role;
2804
- };
2578
+ role?: GroupRoleNonNullableFields;
2805
2579
  }
2806
2580
  interface BaseEventMetadata$4 {
2807
2581
  /** App instance ID. */
@@ -2830,7 +2604,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
2830
2604
  slug?: string;
2831
2605
  /** ID of the entity associated with the event. */
2832
2606
  entityId?: string;
2833
- /** Event timestamp. */
2607
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2834
2608
  eventTime?: Date;
2835
2609
  /**
2836
2610
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2872,52 +2646,14 @@ interface UnassignRoleOptions {
2872
2646
  siteMemberIds?: string[];
2873
2647
  }
2874
2648
 
2875
- interface HttpClient$5 {
2876
- request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
2877
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2878
- }
2879
- type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
2880
- type HttpResponse$5<T = any> = {
2881
- data: T;
2882
- status: number;
2883
- statusText: string;
2884
- headers: any;
2885
- request?: any;
2886
- };
2887
- type RequestOptions$5<_TResponse = any, Data = any> = {
2888
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2889
- url: string;
2890
- data?: Data;
2891
- params?: URLSearchParams;
2892
- } & APIMetadata$5;
2893
- type APIMetadata$5 = {
2894
- methodFqn?: string;
2895
- entityFqdn?: string;
2896
- packageName?: string;
2897
- };
2898
- type EventDefinition$4<Payload = unknown, Type extends string = string> = {
2899
- __type: 'event-definition';
2900
- type: Type;
2901
- isDomainEvent?: boolean;
2902
- transformations?: (envelope: unknown) => Payload;
2903
- __payload: Payload;
2904
- };
2905
- declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
2649
+ declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2906
2650
 
2907
- declare global {
2908
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2909
- interface SymbolConstructor {
2910
- readonly observable: symbol;
2911
- }
2912
- }
2651
+ declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2913
2652
 
2914
- declare const __metadata$5: {
2915
- PACKAGE_NAME: string;
2916
- };
2917
- declare function assignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
2918
- declare function unassignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
2919
- declare const onGroupRoleAssigned: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
2920
- declare const onGroupRoleUnassigned: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
2653
+ declare const assignRole: ReturnType<typeof createRESTModule$5<typeof publicAssignRole>>;
2654
+ declare const unassignRole: ReturnType<typeof createRESTModule$5<typeof publicUnassignRole>>;
2655
+ declare const onGroupRoleAssigned: ReturnType<typeof createEventModule$4<typeof publicOnGroupRoleAssigned>>;
2656
+ declare const onGroupRoleUnassigned: ReturnType<typeof createEventModule$4<typeof publicOnGroupRoleUnassigned>>;
2921
2657
 
2922
2658
  type index_d$5_AssignRoleOptions = AssignRoleOptions;
2923
2659
  type index_d$5_AssignRoleRequest = AssignRoleRequest;
@@ -2940,7 +2676,7 @@ declare const index_d$5_onGroupRoleAssigned: typeof onGroupRoleAssigned;
2940
2676
  declare const index_d$5_onGroupRoleUnassigned: typeof onGroupRoleUnassigned;
2941
2677
  declare const index_d$5_unassignRole: typeof unassignRole;
2942
2678
  declare namespace index_d$5 {
2943
- 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, __metadata$5 as __metadata, index_d$5_assignRole as assignRole, index_d$5_onGroupRoleAssigned as onGroupRoleAssigned, index_d$5_onGroupRoleUnassigned as onGroupRoleUnassigned, index_d$5_unassignRole as unassignRole };
2679
+ 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 };
2944
2680
  }
2945
2681
 
2946
2682
  /**
@@ -3006,7 +2742,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
3006
2742
  slug?: string;
3007
2743
  /** ID of the entity associated with the event. */
3008
2744
  entityId?: string;
3009
- /** Event timestamp. */
2745
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3010
2746
  eventTime?: Date;
3011
2747
  /**
3012
2748
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3093,18 +2829,16 @@ declare enum WebhookIdentityType$3 {
3093
2829
  WIX_USER = "WIX_USER",
3094
2830
  APP = "APP"
3095
2831
  }
2832
+ interface GroupRuleNonNullableFields {
2833
+ title: string;
2834
+ description: string;
2835
+ }
3096
2836
  interface ListRulesResponseNonNullableFields {
3097
- rules: {
3098
- title: string;
3099
- description: string;
3100
- }[];
2837
+ rules: GroupRuleNonNullableFields[];
3101
2838
  }
3102
2839
  interface CreateOrReplaceAllRulesResponseNonNullableFields {
3103
2840
  groupId: string;
3104
- rules: {
3105
- title: string;
3106
- description: string;
3107
- }[];
2841
+ rules: GroupRuleNonNullableFields[];
3108
2842
  }
3109
2843
  interface BaseEventMetadata$3 {
3110
2844
  /** App instance ID. */
@@ -3133,7 +2867,7 @@ interface EventMetadata$3 extends BaseEventMetadata$3 {
3133
2867
  slug?: string;
3134
2868
  /** ID of the entity associated with the event. */
3135
2869
  entityId?: string;
3136
- /** Event timestamp. */
2870
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3137
2871
  eventTime?: Date;
3138
2872
  /**
3139
2873
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3161,51 +2895,13 @@ interface CreateOrReplaceAllRulesOptions {
3161
2895
  rules?: GroupRule[];
3162
2896
  }
3163
2897
 
3164
- interface HttpClient$4 {
3165
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
3166
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3167
- }
3168
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
3169
- type HttpResponse$4<T = any> = {
3170
- data: T;
3171
- status: number;
3172
- statusText: string;
3173
- headers: any;
3174
- request?: any;
3175
- };
3176
- type RequestOptions$4<_TResponse = any, Data = any> = {
3177
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3178
- url: string;
3179
- data?: Data;
3180
- params?: URLSearchParams;
3181
- } & APIMetadata$4;
3182
- type APIMetadata$4 = {
3183
- methodFqn?: string;
3184
- entityFqdn?: string;
3185
- packageName?: string;
3186
- };
3187
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
3188
- __type: 'event-definition';
3189
- type: Type;
3190
- isDomainEvent?: boolean;
3191
- transformations?: (envelope: unknown) => Payload;
3192
- __payload: Payload;
3193
- };
3194
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
2898
+ declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3195
2899
 
3196
- declare global {
3197
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3198
- interface SymbolConstructor {
3199
- readonly observable: symbol;
3200
- }
3201
- }
2900
+ declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3202
2901
 
3203
- declare const __metadata$4: {
3204
- PACKAGE_NAME: string;
3205
- };
3206
- declare function listRules(httpClient: HttpClient$4): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
3207
- declare function createOrReplaceAllRules(httpClient: HttpClient$4): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
3208
- declare const onGroupRulesUpdated: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
2902
+ declare const listRules: ReturnType<typeof createRESTModule$4<typeof publicListRules>>;
2903
+ declare const createOrReplaceAllRules: ReturnType<typeof createRESTModule$4<typeof publicCreateOrReplaceAllRules>>;
2904
+ declare const onGroupRulesUpdated: ReturnType<typeof createEventModule$3<typeof publicOnGroupRulesUpdated>>;
3209
2905
 
3210
2906
  type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
3211
2907
  type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
@@ -3223,7 +2919,7 @@ declare const index_d$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
3223
2919
  declare const index_d$4_listRules: typeof listRules;
3224
2920
  declare const index_d$4_onGroupRulesUpdated: typeof onGroupRulesUpdated;
3225
2921
  declare namespace index_d$4 {
3226
- 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, __metadata$4 as __metadata, index_d$4_createOrReplaceAllRules as createOrReplaceAllRules, index_d$4_listRules as listRules, index_d$4_onGroupRulesUpdated as onGroupRulesUpdated };
2922
+ 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 };
3227
2923
  }
3228
2924
 
3229
2925
  /**
@@ -3555,7 +3251,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
3555
3251
  slug?: string;
3556
3252
  /** ID of the entity associated with the event. */
3557
3253
  entityId?: string;
3558
- /** Event timestamp. */
3254
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3559
3255
  eventTime?: Date;
3560
3256
  /**
3561
3257
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3642,33 +3338,22 @@ declare enum WebhookIdentityType$2 {
3642
3338
  WIX_USER = "WIX_USER",
3643
3339
  APP = "APP"
3644
3340
  }
3341
+ interface JoinGroupRequestNonNullableFields {
3342
+ siteMemberId: string;
3343
+ contactId: string;
3344
+ status: RequestStatus$2;
3345
+ }
3645
3346
  interface ApproveJoinGroupRequestsResponseNonNullableFields {
3646
- joinGroupRequests: {
3647
- siteMemberId: string;
3648
- contactId: string;
3649
- status: RequestStatus$2;
3650
- }[];
3347
+ joinGroupRequests: JoinGroupRequestNonNullableFields[];
3651
3348
  }
3652
3349
  interface RejectJoinGroupRequestsResponseNonNullableFields {
3653
- joinGroupRequests: {
3654
- siteMemberId: string;
3655
- contactId: string;
3656
- status: RequestStatus$2;
3657
- }[];
3350
+ joinGroupRequests: JoinGroupRequestNonNullableFields[];
3658
3351
  }
3659
3352
  interface ListJoinGroupRequestsResponseNonNullableFields {
3660
- joinGroupRequests: {
3661
- siteMemberId: string;
3662
- contactId: string;
3663
- status: RequestStatus$2;
3664
- }[];
3353
+ joinGroupRequests: JoinGroupRequestNonNullableFields[];
3665
3354
  }
3666
3355
  interface QueryJoinGroupRequestsResponseNonNullableFields {
3667
- joinGroupRequests: {
3668
- siteMemberId: string;
3669
- contactId: string;
3670
- status: RequestStatus$2;
3671
- }[];
3356
+ joinGroupRequests: JoinGroupRequestNonNullableFields[];
3672
3357
  }
3673
3358
  interface BaseEventMetadata$2 {
3674
3359
  /** App instance ID. */
@@ -3697,7 +3382,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
3697
3382
  slug?: string;
3698
3383
  /** ID of the entity associated with the event. */
3699
3384
  entityId?: string;
3700
- /** Event timestamp. */
3385
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3701
3386
  eventTime?: Date;
3702
3387
  /**
3703
3388
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3779,55 +3464,17 @@ interface JoinGroupRequestsQueryBuilder {
3779
3464
  find: () => Promise<JoinGroupRequestsQueryResult>;
3780
3465
  }
3781
3466
 
3782
- interface HttpClient$3 {
3783
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
3784
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3785
- }
3786
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
3787
- type HttpResponse$3<T = any> = {
3788
- data: T;
3789
- status: number;
3790
- statusText: string;
3791
- headers: any;
3792
- request?: any;
3793
- };
3794
- type RequestOptions$3<_TResponse = any, Data = any> = {
3795
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3796
- url: string;
3797
- data?: Data;
3798
- params?: URLSearchParams;
3799
- } & APIMetadata$3;
3800
- type APIMetadata$3 = {
3801
- methodFqn?: string;
3802
- entityFqdn?: string;
3803
- packageName?: string;
3804
- };
3805
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
3806
- __type: 'event-definition';
3807
- type: Type;
3808
- isDomainEvent?: boolean;
3809
- transformations?: (envelope: unknown) => Payload;
3810
- __payload: Payload;
3811
- };
3812
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
3467
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3813
3468
 
3814
- declare global {
3815
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3816
- interface SymbolConstructor {
3817
- readonly observable: symbol;
3818
- }
3819
- }
3469
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3820
3470
 
3821
- declare const __metadata$3: {
3822
- PACKAGE_NAME: string;
3823
- };
3824
- declare function approveJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
3825
- declare function rejectJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
3826
- declare function listJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
3827
- declare function queryJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
3828
- declare const onJoinGroupRequestCreated: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
3829
- declare const onJoinGroupRequestApproved: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
3830
- declare const onJoinGroupRequestRejected: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
3471
+ declare const approveJoinGroupRequests: ReturnType<typeof createRESTModule$3<typeof publicApproveJoinGroupRequests>>;
3472
+ declare const rejectJoinGroupRequests: ReturnType<typeof createRESTModule$3<typeof publicRejectJoinGroupRequests>>;
3473
+ declare const listJoinGroupRequests: ReturnType<typeof createRESTModule$3<typeof publicListJoinGroupRequests>>;
3474
+ declare const queryJoinGroupRequests: ReturnType<typeof createRESTModule$3<typeof publicQueryJoinGroupRequests>>;
3475
+ declare const onJoinGroupRequestCreated: ReturnType<typeof createEventModule$2<typeof publicOnJoinGroupRequestCreated>>;
3476
+ declare const onJoinGroupRequestApproved: ReturnType<typeof createEventModule$2<typeof publicOnJoinGroupRequestApproved>>;
3477
+ declare const onJoinGroupRequestRejected: ReturnType<typeof createEventModule$2<typeof publicOnJoinGroupRequestRejected>>;
3831
3478
 
3832
3479
  type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
3833
3480
  type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
@@ -3887,7 +3534,7 @@ declare const index_d$3_onJoinGroupRequestRejected: typeof onJoinGroupRequestRej
3887
3534
  declare const index_d$3_queryJoinGroupRequests: typeof queryJoinGroupRequests;
3888
3535
  declare const index_d$3_rejectJoinGroupRequests: typeof rejectJoinGroupRequests;
3889
3536
  declare namespace index_d$3 {
3890
- 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, __metadata$3 as __metadata, 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 };
3537
+ 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 };
3891
3538
  }
3892
3539
 
3893
3540
  /**
@@ -3977,29 +3624,25 @@ interface MemberAnswerCount {
3977
3624
  groupId?: string;
3978
3625
  count?: number;
3979
3626
  }
3627
+ interface MembershipQuestionNonNullableFields {
3628
+ required: boolean;
3629
+ text: string;
3630
+ }
3980
3631
  interface ListMembershipQuestionsResponseNonNullableFields {
3981
- questions: {
3982
- required: boolean;
3983
- text: string;
3984
- }[];
3632
+ questions: MembershipQuestionNonNullableFields[];
3985
3633
  }
3986
3634
  interface CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields {
3987
- questions: {
3988
- required: boolean;
3989
- text: string;
3990
- }[];
3635
+ questions: MembershipQuestionNonNullableFields[];
3636
+ }
3637
+ interface MembershipQuestionAnswerNonNullableFields {
3638
+ _id: string;
3639
+ }
3640
+ interface MemberMembershipQuestionAnswersNonNullableFields {
3641
+ memberId: string;
3642
+ answers: MembershipQuestionAnswerNonNullableFields[];
3991
3643
  }
3992
3644
  interface ListAnswersResponseNonNullableFields {
3993
- memberAnswers: {
3994
- memberId: string;
3995
- answers: {
3996
- _id: string;
3997
- }[];
3998
- }[];
3999
- questions?: {
4000
- required: boolean;
4001
- text: string;
4002
- };
3645
+ memberAnswers: MemberMembershipQuestionAnswersNonNullableFields[];
4003
3646
  }
4004
3647
  interface CreateOrReplaceAllMembershipQuestionsOptions {
4005
3648
  /** New membership questions. */
@@ -4011,43 +3654,11 @@ interface ListAnswersOptions {
4011
3654
  paging?: Paging$2;
4012
3655
  }
4013
3656
 
4014
- interface HttpClient$2 {
4015
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
4016
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
4017
- }
4018
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
4019
- type HttpResponse$2<T = any> = {
4020
- data: T;
4021
- status: number;
4022
- statusText: string;
4023
- headers: any;
4024
- request?: any;
4025
- };
4026
- type RequestOptions$2<_TResponse = any, Data = any> = {
4027
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
4028
- url: string;
4029
- data?: Data;
4030
- params?: URLSearchParams;
4031
- } & APIMetadata$2;
4032
- type APIMetadata$2 = {
4033
- methodFqn?: string;
4034
- entityFqdn?: string;
4035
- packageName?: string;
4036
- };
4037
-
4038
- declare global {
4039
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4040
- interface SymbolConstructor {
4041
- readonly observable: symbol;
4042
- }
4043
- }
3657
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4044
3658
 
4045
- declare const __metadata$2: {
4046
- PACKAGE_NAME: string;
4047
- };
4048
- declare function listMembershipQuestions(httpClient: HttpClient$2): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
4049
- declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient$2): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
4050
- declare function listAnswers(httpClient: HttpClient$2): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
3659
+ declare const listMembershipQuestions: ReturnType<typeof createRESTModule$2<typeof publicListMembershipQuestions>>;
3660
+ declare const createOrReplaceAllMembershipQuestions: ReturnType<typeof createRESTModule$2<typeof publicCreateOrReplaceAllMembershipQuestions>>;
3661
+ declare const listAnswers: ReturnType<typeof createRESTModule$2<typeof publicListAnswers>>;
4051
3662
 
4052
3663
  type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
4053
3664
  type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
@@ -4069,7 +3680,7 @@ declare const index_d$2_createOrReplaceAllMembershipQuestions: typeof createOrRe
4069
3680
  declare const index_d$2_listAnswers: typeof listAnswers;
4070
3681
  declare const index_d$2_listMembershipQuestions: typeof listMembershipQuestions;
4071
3682
  declare namespace index_d$2 {
4072
- export { type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions as CreateOrReplaceAllMembershipQuestionsOptions, type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest as CreateOrReplaceAllMembershipQuestionsRequest, type index_d$2_CreateOrReplaceAllMembershipQuestionsResponse as CreateOrReplaceAllMembershipQuestionsResponse, type index_d$2_CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields as CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields, type index_d$2_ListAnswerCountsRequest as ListAnswerCountsRequest, type index_d$2_ListAnswerCountsResponse as ListAnswerCountsResponse, type index_d$2_ListAnswersOptions as ListAnswersOptions, type index_d$2_ListAnswersRequest as ListAnswersRequest, type index_d$2_ListAnswersResponse as ListAnswersResponse, type index_d$2_ListAnswersResponseNonNullableFields as ListAnswersResponseNonNullableFields, type index_d$2_ListMembershipQuestionsRequest as ListMembershipQuestionsRequest, type index_d$2_ListMembershipQuestionsResponse as ListMembershipQuestionsResponse, type index_d$2_ListMembershipQuestionsResponseNonNullableFields as ListMembershipQuestionsResponseNonNullableFields, type index_d$2_MemberAnswerCount as MemberAnswerCount, type index_d$2_MemberMembershipQuestionAnswers as MemberMembershipQuestionAnswers, type index_d$2_MembershipQuestion as MembershipQuestion, type MembershipQuestionAnswer$1 as MembershipQuestionAnswer, type Paging$2 as Paging, type PagingMetadata$2 as PagingMetadata, __metadata$2 as __metadata, index_d$2_createOrReplaceAllMembershipQuestions as createOrReplaceAllMembershipQuestions, index_d$2_listAnswers as listAnswers, index_d$2_listMembershipQuestions as listMembershipQuestions };
3683
+ export { type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions as CreateOrReplaceAllMembershipQuestionsOptions, type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest as CreateOrReplaceAllMembershipQuestionsRequest, type index_d$2_CreateOrReplaceAllMembershipQuestionsResponse as CreateOrReplaceAllMembershipQuestionsResponse, type index_d$2_CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields as CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields, type index_d$2_ListAnswerCountsRequest as ListAnswerCountsRequest, type index_d$2_ListAnswerCountsResponse as ListAnswerCountsResponse, type index_d$2_ListAnswersOptions as ListAnswersOptions, type index_d$2_ListAnswersRequest as ListAnswersRequest, type index_d$2_ListAnswersResponse as ListAnswersResponse, type index_d$2_ListAnswersResponseNonNullableFields as ListAnswersResponseNonNullableFields, type index_d$2_ListMembershipQuestionsRequest as ListMembershipQuestionsRequest, type index_d$2_ListMembershipQuestionsResponse as ListMembershipQuestionsResponse, type index_d$2_ListMembershipQuestionsResponseNonNullableFields as ListMembershipQuestionsResponseNonNullableFields, type index_d$2_MemberAnswerCount as MemberAnswerCount, type index_d$2_MemberMembershipQuestionAnswers as MemberMembershipQuestionAnswers, type index_d$2_MembershipQuestion as MembershipQuestion, type MembershipQuestionAnswer$1 as MembershipQuestionAnswer, type Paging$2 as Paging, type PagingMetadata$2 as PagingMetadata, index_d$2_createOrReplaceAllMembershipQuestions as createOrReplaceAllMembershipQuestions, index_d$2_listAnswers as listAnswers, index_d$2_listMembershipQuestions as listMembershipQuestions };
4073
3684
  }
4074
3685
 
4075
3686
  /**
@@ -4472,7 +4083,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
4472
4083
  slug?: string;
4473
4084
  /** ID of the entity associated with the event. */
4474
4085
  entityId?: string;
4475
- /** Event timestamp. */
4086
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4476
4087
  eventTime?: Date;
4477
4088
  /**
4478
4089
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4559,93 +4170,68 @@ declare enum WebhookIdentityType$1 {
4559
4170
  WIX_USER = "WIX_USER",
4560
4171
  APP = "APP"
4561
4172
  }
4173
+ interface EventsNonNullableFields {
4174
+ eventIds: string[];
4175
+ }
4176
+ interface AccessRestrictionNonNullableFields {
4177
+ events?: EventsNonNullableFields;
4178
+ type: Type;
4179
+ }
4180
+ interface GroupDetailsPositionNonNullableFields {
4181
+ x: number;
4182
+ y: number;
4183
+ }
4184
+ interface GroupDetailsNonNullableFields {
4185
+ logoPosition?: GroupDetailsPositionNonNullableFields;
4186
+ mobileLogoPosition?: GroupDetailsPositionNonNullableFields;
4187
+ }
4188
+ interface PositionNonNullableFields {
4189
+ x: number;
4190
+ y: number;
4191
+ }
4192
+ interface CoverImageNonNullableFields {
4193
+ position?: PositionNonNullableFields;
4194
+ mobilePosition?: PositionNonNullableFields;
4195
+ }
4196
+ interface OnboardingStepSettingsNonNullableFields {
4197
+ stepKey: StepKey;
4198
+ visible: boolean;
4199
+ }
4200
+ interface GroupSettingsNonNullableFields {
4201
+ allowedToInviteMembers: AllowPolicy;
4202
+ allowedToApproveJoinRequests: AllowPolicy;
4203
+ allowedToAddMembers: AllowPolicy;
4204
+ allowedToCreatePosts: AllowPolicy;
4205
+ allowedToCommentPosts: AllowPolicy;
4206
+ onboardingStepsSettings: OnboardingStepSettingsNonNullableFields[];
4207
+ }
4208
+ interface IdentityNonNullableFields {
4209
+ identityType: IdentityType;
4210
+ }
4211
+ interface GroupNonNullableFields {
4212
+ privacyLevel: PrivacyStatus;
4213
+ privacyStatus: PrivacyStatus;
4214
+ accessRestriction?: AccessRestrictionNonNullableFields;
4215
+ details?: GroupDetailsNonNullableFields;
4216
+ coverImage?: CoverImageNonNullableFields;
4217
+ settings?: GroupSettingsNonNullableFields;
4218
+ createdBy?: IdentityNonNullableFields;
4219
+ }
4220
+ interface CreateRequestNonNullableFields {
4221
+ group?: GroupNonNullableFields;
4222
+ status: RequestStatus$1;
4223
+ }
4562
4224
  interface ApproveCreateRequestsResponseNonNullableFields {
4563
- createRequest: {
4564
- group?: {
4565
- privacyLevel: PrivacyStatus;
4566
- privacyStatus: PrivacyStatus;
4567
- coverImage?: {
4568
- position?: {
4569
- x: number;
4570
- y: number;
4571
- };
4572
- mobilePosition?: {
4573
- x: number;
4574
- y: number;
4575
- };
4576
- };
4577
- createdBy?: {
4578
- identityType: IdentityType;
4579
- };
4580
- };
4581
- status: RequestStatus$1;
4582
- }[];
4225
+ createRequest: CreateRequestNonNullableFields[];
4583
4226
  }
4584
4227
  interface RejectCreateRequestsResponseNonNullableFields {
4585
- createRequest: {
4586
- group?: {
4587
- privacyLevel: PrivacyStatus;
4588
- privacyStatus: PrivacyStatus;
4589
- coverImage?: {
4590
- position?: {
4591
- x: number;
4592
- y: number;
4593
- };
4594
- mobilePosition?: {
4595
- x: number;
4596
- y: number;
4597
- };
4598
- };
4599
- createdBy?: {
4600
- identityType: IdentityType;
4601
- };
4602
- };
4603
- status: RequestStatus$1;
4604
- }[];
4228
+ createRequest: CreateRequestNonNullableFields[];
4605
4229
  }
4606
4230
  interface ListCreateRequestsResponseNonNullableFields {
4607
- createRequests: {
4608
- group?: {
4609
- privacyLevel: PrivacyStatus;
4610
- privacyStatus: PrivacyStatus;
4611
- coverImage?: {
4612
- position?: {
4613
- x: number;
4614
- y: number;
4615
- };
4616
- mobilePosition?: {
4617
- x: number;
4618
- y: number;
4619
- };
4620
- };
4621
- createdBy?: {
4622
- identityType: IdentityType;
4623
- };
4624
- };
4625
- status: RequestStatus$1;
4626
- }[];
4231
+ createRequests: CreateRequestNonNullableFields[];
4627
4232
  }
4628
4233
  interface QueryCreateRequestsResponseNonNullableFields {
4629
- createRequests: {
4630
- group?: {
4631
- privacyLevel: PrivacyStatus;
4632
- privacyStatus: PrivacyStatus;
4633
- coverImage?: {
4634
- position?: {
4635
- x: number;
4636
- y: number;
4637
- };
4638
- mobilePosition?: {
4639
- x: number;
4640
- y: number;
4641
- };
4642
- };
4643
- createdBy?: {
4644
- identityType: IdentityType;
4645
- };
4646
- };
4647
- status: RequestStatus$1;
4648
- }[];
4234
+ createRequests: CreateRequestNonNullableFields[];
4649
4235
  }
4650
4236
  interface BaseEventMetadata$1 {
4651
4237
  /** App instance ID. */
@@ -4674,7 +4260,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
4674
4260
  slug?: string;
4675
4261
  /** ID of the entity associated with the event. */
4676
4262
  entityId?: string;
4677
- /** Event timestamp. */
4263
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4678
4264
  eventTime?: Date;
4679
4265
  /**
4680
4266
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4719,54 +4305,16 @@ interface QueryCreateRequestsOptions {
4719
4305
  query?: Query$1;
4720
4306
  }
4721
4307
 
4722
- interface HttpClient$1 {
4723
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
4724
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
4725
- }
4726
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
4727
- type HttpResponse$1<T = any> = {
4728
- data: T;
4729
- status: number;
4730
- statusText: string;
4731
- headers: any;
4732
- request?: any;
4733
- };
4734
- type RequestOptions$1<_TResponse = any, Data = any> = {
4735
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
4736
- url: string;
4737
- data?: Data;
4738
- params?: URLSearchParams;
4739
- } & APIMetadata$1;
4740
- type APIMetadata$1 = {
4741
- methodFqn?: string;
4742
- entityFqdn?: string;
4743
- packageName?: string;
4744
- };
4745
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
4746
- __type: 'event-definition';
4747
- type: Type;
4748
- isDomainEvent?: boolean;
4749
- transformations?: (envelope: unknown) => Payload;
4750
- __payload: Payload;
4751
- };
4752
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
4308
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4753
4309
 
4754
- declare global {
4755
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4756
- interface SymbolConstructor {
4757
- readonly observable: symbol;
4758
- }
4759
- }
4310
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
4760
4311
 
4761
- declare const __metadata$1: {
4762
- PACKAGE_NAME: string;
4763
- };
4764
- declare function approveCreateRequests(httpClient: HttpClient$1): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
4765
- declare function rejectCreateRequests(httpClient: HttpClient$1): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
4766
- declare function listCreateRequests(httpClient: HttpClient$1): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
4767
- declare function queryCreateRequests(httpClient: HttpClient$1): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
4768
- declare const onCreateRequestApproved: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
4769
- declare const onCreateRequestRejected: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
4312
+ declare const approveCreateRequests: ReturnType<typeof createRESTModule$1<typeof publicApproveCreateRequests>>;
4313
+ declare const rejectCreateRequests: ReturnType<typeof createRESTModule$1<typeof publicRejectCreateRequests>>;
4314
+ declare const listCreateRequests: ReturnType<typeof createRESTModule$1<typeof publicListCreateRequests>>;
4315
+ declare const queryCreateRequests: ReturnType<typeof createRESTModule$1<typeof publicQueryCreateRequests>>;
4316
+ declare const onCreateRequestApproved: ReturnType<typeof createEventModule$1<typeof publicOnCreateRequestApproved>>;
4317
+ declare const onCreateRequestRejected: ReturnType<typeof createEventModule$1<typeof publicOnCreateRequestRejected>>;
4770
4318
 
4771
4319
  type index_d$1_AccessRestriction = AccessRestriction;
4772
4320
  type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
@@ -4823,7 +4371,7 @@ declare const index_d$1_onCreateRequestRejected: typeof onCreateRequestRejected;
4823
4371
  declare const index_d$1_queryCreateRequests: typeof queryCreateRequests;
4824
4372
  declare const index_d$1_rejectCreateRequests: typeof rejectCreateRequests;
4825
4373
  declare namespace index_d$1 {
4826
- 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, __metadata$1 as __metadata, 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 };
4374
+ 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 };
4827
4375
  }
4828
4376
 
4829
4377
  /**
@@ -5037,7 +4585,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
5037
4585
  slug?: string;
5038
4586
  /** ID of the entity associated with the event. */
5039
4587
  entityId?: string;
5040
- /** Event timestamp. */
4588
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
5041
4589
  eventTime?: Date;
5042
4590
  /**
5043
4591
  * Whether the event was triggered as a result of a privacy regulation application
@@ -5124,29 +4672,21 @@ declare enum WebhookIdentityType {
5124
4672
  WIX_USER = "WIX_USER",
5125
4673
  APP = "APP"
5126
4674
  }
4675
+ interface JoinRequestNonNullableFields {
4676
+ memberId: string;
4677
+ status: RequestStatus;
4678
+ }
5127
4679
  interface ApproveJoinRequestsResponseNonNullableFields {
5128
- joinRequests: {
5129
- memberId: string;
5130
- status: RequestStatus;
5131
- }[];
4680
+ joinRequests: JoinRequestNonNullableFields[];
5132
4681
  }
5133
4682
  interface RejectJoinRequestsResponseNonNullableFields {
5134
- joinRequests: {
5135
- memberId: string;
5136
- status: RequestStatus;
5137
- }[];
4683
+ joinRequests: JoinRequestNonNullableFields[];
5138
4684
  }
5139
4685
  interface ListJoinRequestsResponseNonNullableFields {
5140
- joinRequests: {
5141
- memberId: string;
5142
- status: RequestStatus;
5143
- }[];
4686
+ joinRequests: JoinRequestNonNullableFields[];
5144
4687
  }
5145
4688
  interface QueryJoinRequestsResponseNonNullableFields {
5146
- joinRequests: {
5147
- memberId: string;
5148
- status: RequestStatus;
5149
- }[];
4689
+ joinRequests: JoinRequestNonNullableFields[];
5150
4690
  }
5151
4691
  interface BaseEventMetadata {
5152
4692
  /** App instance ID. */
@@ -5175,7 +4715,7 @@ interface EventMetadata extends BaseEventMetadata {
5175
4715
  slug?: string;
5176
4716
  /** ID of the entity associated with the event. */
5177
4717
  entityId?: string;
5178
- /** Event timestamp. */
4718
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
5179
4719
  eventTime?: Date;
5180
4720
  /**
5181
4721
  * Whether the event was triggered as a result of a privacy regulation application
@@ -5218,54 +4758,16 @@ interface QueryJoinRequestsOptions {
5218
4758
  query?: Query;
5219
4759
  }
5220
4760
 
5221
- interface HttpClient {
5222
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
5223
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
5224
- }
5225
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
5226
- type HttpResponse<T = any> = {
5227
- data: T;
5228
- status: number;
5229
- statusText: string;
5230
- headers: any;
5231
- request?: any;
5232
- };
5233
- type RequestOptions<_TResponse = any, Data = any> = {
5234
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
5235
- url: string;
5236
- data?: Data;
5237
- params?: URLSearchParams;
5238
- } & APIMetadata;
5239
- type APIMetadata = {
5240
- methodFqn?: string;
5241
- entityFqdn?: string;
5242
- packageName?: string;
5243
- };
5244
- type EventDefinition<Payload = unknown, Type extends string = string> = {
5245
- __type: 'event-definition';
5246
- type: Type;
5247
- isDomainEvent?: boolean;
5248
- transformations?: (envelope: unknown) => Payload;
5249
- __payload: Payload;
5250
- };
5251
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
4761
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
5252
4762
 
5253
- declare global {
5254
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5255
- interface SymbolConstructor {
5256
- readonly observable: symbol;
5257
- }
5258
- }
4763
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
5259
4764
 
5260
- declare const __metadata: {
5261
- PACKAGE_NAME: string;
5262
- };
5263
- declare function approveJoinRequests(httpClient: HttpClient): (groupId: string, options: ApproveJoinRequestsOptions) => Promise<ApproveJoinRequestsResponse & ApproveJoinRequestsResponseNonNullableFields>;
5264
- declare function rejectJoinRequests(httpClient: HttpClient): (groupId: string, options?: RejectJoinRequestsOptions) => Promise<RejectJoinRequestsResponse & RejectJoinRequestsResponseNonNullableFields>;
5265
- declare function listJoinRequests(httpClient: HttpClient): (groupId: string, options?: ListJoinRequestsOptions) => Promise<ListJoinRequestsResponse & ListJoinRequestsResponseNonNullableFields>;
5266
- declare function queryJoinRequests(httpClient: HttpClient): (groupId: string, options?: QueryJoinRequestsOptions) => Promise<QueryJoinRequestsResponse & QueryJoinRequestsResponseNonNullableFields>;
5267
- declare const onJoinRequestApproved: EventDefinition<JoinRequestApprovedEnvelope, "wix.social_groups.v3.join_request_approved">;
5268
- declare const onJoinRequestRejected: EventDefinition<JoinRequestRejectedEnvelope, "wix.social_groups.v3.join_request_rejected">;
4765
+ declare const approveJoinRequests: ReturnType<typeof createRESTModule<typeof publicApproveJoinRequests>>;
4766
+ declare const rejectJoinRequests: ReturnType<typeof createRESTModule<typeof publicRejectJoinRequests>>;
4767
+ declare const listJoinRequests: ReturnType<typeof createRESTModule<typeof publicListJoinRequests>>;
4768
+ declare const queryJoinRequests: ReturnType<typeof createRESTModule<typeof publicQueryJoinRequests>>;
4769
+ declare const onJoinRequestApproved: ReturnType<typeof createEventModule<typeof publicOnJoinRequestApproved>>;
4770
+ declare const onJoinRequestRejected: ReturnType<typeof createEventModule<typeof publicOnJoinRequestRejected>>;
5269
4771
 
5270
4772
  type index_d_ActionEvent = ActionEvent;
5271
4773
  type index_d_ApproveJoinRequestsOptions = ApproveJoinRequestsOptions;
@@ -5322,7 +4824,6 @@ type index_d_SubmitJoinRequestRequest = SubmitJoinRequestRequest;
5322
4824
  type index_d_SubmitJoinRequestResponse = SubmitJoinRequestResponse;
5323
4825
  type index_d_WebhookIdentityType = WebhookIdentityType;
5324
4826
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
5325
- declare const index_d___metadata: typeof __metadata;
5326
4827
  declare const index_d_approveJoinRequests: typeof approveJoinRequests;
5327
4828
  declare const index_d_listJoinRequests: typeof listJoinRequests;
5328
4829
  declare const index_d_onJoinRequestApproved: typeof onJoinRequestApproved;
@@ -5330,7 +4831,7 @@ declare const index_d_onJoinRequestRejected: typeof onJoinRequestRejected;
5330
4831
  declare const index_d_queryJoinRequests: typeof queryJoinRequests;
5331
4832
  declare const index_d_rejectJoinRequests: typeof rejectJoinRequests;
5332
4833
  declare namespace index_d {
5333
- 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___metadata as __metadata, 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 };
4834
+ 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 };
5334
4835
  }
5335
4836
 
5336
4837
  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 };