@wix/groups 1.0.89 → 1.0.90

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.
@@ -105,16 +105,6 @@ interface Position$2 {
105
105
  /** vertical coordinate */
106
106
  y?: number;
107
107
  }
108
- interface OnboardingStepSettings$2 {
109
- stepKey?: StepKey$2;
110
- visible?: boolean;
111
- }
112
- declare enum StepKey$2 {
113
- UNKNOWN = "UNKNOWN",
114
- CREATE_POST = "CREATE_POST",
115
- REACT_TO_POST = "REACT_TO_POST",
116
- INVITE_MEMBERS = "INVITE_MEMBERS"
117
- }
118
108
  declare enum PrivacyStatus$2 {
119
109
  UNKNOWN = "UNKNOWN",
120
110
  /** Anyone can see the group in the group list and view its content. Anyone can join. */
@@ -165,7 +155,6 @@ interface GroupSettings$2 {
165
155
  groupDetailsChangedPostEnabled?: boolean | null;
166
156
  /** Whether all members can see the full member list. */
167
157
  showMemberList?: boolean | null;
168
- onboardingStepsSettings?: OnboardingStepSettings$2[];
169
158
  }
170
159
  interface Identity$2 {
171
160
  /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
@@ -256,12 +245,6 @@ interface DeleteGroupResponseNonNullableFields {
256
245
  y: number;
257
246
  };
258
247
  };
259
- settings?: {
260
- onboardingStepsSettings: {
261
- stepKey: StepKey$2;
262
- visible: boolean;
263
- }[];
264
- };
265
248
  createdBy?: {
266
249
  identityType: IdentityType$2;
267
250
  };
@@ -281,12 +264,6 @@ interface GetGroupBySlugResponseNonNullableFields {
281
264
  y: number;
282
265
  };
283
266
  };
284
- settings?: {
285
- onboardingStepsSettings: {
286
- stepKey: StepKey$2;
287
- visible: boolean;
288
- }[];
289
- };
290
267
  createdBy?: {
291
268
  identityType: IdentityType$2;
292
269
  };
@@ -306,12 +283,6 @@ interface ListGroupsResponseNonNullableFields {
306
283
  y: number;
307
284
  };
308
285
  };
309
- settings?: {
310
- onboardingStepsSettings: {
311
- stepKey: StepKey$2;
312
- visible: boolean;
313
- }[];
314
- };
315
286
  createdBy?: {
316
287
  identityType: IdentityType$2;
317
288
  };
@@ -538,41 +509,41 @@ interface GroupsQueryBuilder {
538
509
  find: () => Promise<GroupsQueryResult>;
539
510
  }
540
511
 
541
- type RESTFunctionDescriptor$8<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$8) => T;
542
- interface HttpClient$8 {
543
- request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
512
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
513
+ interface HttpClient {
514
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
544
515
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
545
516
  }
546
- type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
547
- type HttpResponse$8<T = any> = {
517
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
518
+ type HttpResponse<T = any> = {
548
519
  data: T;
549
520
  status: number;
550
521
  statusText: string;
551
522
  headers: any;
552
523
  request?: any;
553
524
  };
554
- type RequestOptions$8<_TResponse = any, Data = any> = {
525
+ type RequestOptions<_TResponse = any, Data = any> = {
555
526
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
556
527
  url: string;
557
528
  data?: Data;
558
529
  params?: URLSearchParams;
559
- } & APIMetadata$8;
560
- type APIMetadata$8 = {
530
+ } & APIMetadata;
531
+ type APIMetadata = {
561
532
  methodFqn?: string;
562
533
  entityFqdn?: string;
563
534
  packageName?: string;
564
535
  };
565
- type BuildRESTFunction$8<T extends RESTFunctionDescriptor$8> = T extends RESTFunctionDescriptor$8<infer U> ? U : never;
566
- type EventDefinition$7<Payload = unknown, Type extends string = string> = {
536
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
537
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
567
538
  __type: 'event-definition';
568
539
  type: Type;
569
540
  isDomainEvent?: boolean;
570
541
  transformations?: (envelope: unknown) => Payload;
571
542
  __payload: Payload;
572
543
  };
573
- declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
574
- type EventHandler$7<T extends EventDefinition$7> = (payload: T['__payload']) => void | Promise<void>;
575
- type BuildEventDefinition$7<T extends EventDefinition$7<any, string>> = (handler: EventHandler$7<T>) => void;
544
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
545
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
546
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
576
547
 
577
548
  declare global {
578
549
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -581,7 +552,7 @@ declare global {
581
552
  }
582
553
  }
583
554
 
584
- declare function createGroup$1(httpClient: HttpClient$8): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
555
+ declare function createGroup$1(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
585
556
  privacyLevel: PrivacyStatus$2;
586
557
  privacyStatus: PrivacyStatus$2;
587
558
  coverImage?: {
@@ -594,17 +565,11 @@ declare function createGroup$1(httpClient: HttpClient$8): (group: Group$2, optio
594
565
  y: number;
595
566
  } | undefined;
596
567
  } | undefined;
597
- settings?: {
598
- onboardingStepsSettings: {
599
- stepKey: StepKey$2;
600
- visible: boolean;
601
- }[];
602
- } | undefined;
603
568
  createdBy?: {
604
569
  identityType: IdentityType$2;
605
570
  } | undefined;
606
571
  }>;
607
- declare function updateGroup$1(httpClient: HttpClient$8): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
572
+ declare function updateGroup$1(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
608
573
  privacyLevel: PrivacyStatus$2;
609
574
  privacyStatus: PrivacyStatus$2;
610
575
  coverImage?: {
@@ -617,18 +582,12 @@ declare function updateGroup$1(httpClient: HttpClient$8): (_id: string | null, g
617
582
  y: number;
618
583
  } | undefined;
619
584
  } | undefined;
620
- settings?: {
621
- onboardingStepsSettings: {
622
- stepKey: StepKey$2;
623
- visible: boolean;
624
- }[];
625
- } | undefined;
626
585
  createdBy?: {
627
586
  identityType: IdentityType$2;
628
587
  } | undefined;
629
588
  }>;
630
- declare function deleteGroup$1(httpClient: HttpClient$8): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
631
- declare function getGroup$1(httpClient: HttpClient$8): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
589
+ declare function deleteGroup$1(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
590
+ declare function getGroup$1(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
632
591
  privacyLevel: PrivacyStatus$2;
633
592
  privacyStatus: PrivacyStatus$2;
634
593
  coverImage?: {
@@ -641,37 +600,31 @@ declare function getGroup$1(httpClient: HttpClient$8): (groupId: string, options
641
600
  y: number;
642
601
  } | undefined;
643
602
  } | undefined;
644
- settings?: {
645
- onboardingStepsSettings: {
646
- stepKey: StepKey$2;
647
- visible: boolean;
648
- }[];
649
- } | undefined;
650
603
  createdBy?: {
651
604
  identityType: IdentityType$2;
652
605
  } | undefined;
653
606
  }>;
654
- declare function getGroupBySlug$1(httpClient: HttpClient$8): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
655
- declare function listGroups$1(httpClient: HttpClient$8): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
656
- declare function queryGroups$1(httpClient: HttpClient$8): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
657
- declare const onGroupCreated$1: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
658
- declare const onGroupUpdated$1: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
659
- declare const onGroupCoverChanged$1: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
660
- declare const onGroupDescriptionChanged$1: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
661
- declare const onGroupDeleted$1: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
607
+ declare function getGroupBySlug$1(httpClient: HttpClient): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
608
+ declare function listGroups$1(httpClient: HttpClient): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
609
+ declare function queryGroups$1(httpClient: HttpClient): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
610
+ declare const onGroupCreated$1: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
611
+ declare const onGroupUpdated$1: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
612
+ declare const onGroupCoverChanged$1: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
613
+ declare const onGroupDescriptionChanged$1: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
614
+ declare const onGroupDeleted$1: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
662
615
 
663
- declare const createGroup: BuildRESTFunction$8<typeof createGroup$1>;
664
- declare const updateGroup: BuildRESTFunction$8<typeof updateGroup$1>;
665
- declare const deleteGroup: BuildRESTFunction$8<typeof deleteGroup$1>;
666
- declare const getGroup: BuildRESTFunction$8<typeof getGroup$1>;
667
- declare const getGroupBySlug: BuildRESTFunction$8<typeof getGroupBySlug$1>;
668
- declare const listGroups: BuildRESTFunction$8<typeof listGroups$1>;
669
- declare const queryGroups: BuildRESTFunction$8<typeof queryGroups$1>;
670
- declare const onGroupCreated: BuildEventDefinition$7<typeof onGroupCreated$1>;
671
- declare const onGroupUpdated: BuildEventDefinition$7<typeof onGroupUpdated$1>;
672
- declare const onGroupCoverChanged: BuildEventDefinition$7<typeof onGroupCoverChanged$1>;
673
- declare const onGroupDescriptionChanged: BuildEventDefinition$7<typeof onGroupDescriptionChanged$1>;
674
- declare const onGroupDeleted: BuildEventDefinition$7<typeof onGroupDeleted$1>;
616
+ declare const createGroup: BuildRESTFunction<typeof createGroup$1>;
617
+ declare const updateGroup: BuildRESTFunction<typeof updateGroup$1>;
618
+ declare const deleteGroup: BuildRESTFunction<typeof deleteGroup$1>;
619
+ declare const getGroup: BuildRESTFunction<typeof getGroup$1>;
620
+ declare const getGroupBySlug: BuildRESTFunction<typeof getGroupBySlug$1>;
621
+ declare const listGroups: BuildRESTFunction<typeof listGroups$1>;
622
+ declare const queryGroups: BuildRESTFunction<typeof queryGroups$1>;
623
+ declare const onGroupCreated: BuildEventDefinition<typeof onGroupCreated$1>;
624
+ declare const onGroupUpdated: BuildEventDefinition<typeof onGroupUpdated$1>;
625
+ declare const onGroupCoverChanged: BuildEventDefinition<typeof onGroupCoverChanged$1>;
626
+ declare const onGroupDescriptionChanged: BuildEventDefinition<typeof onGroupDescriptionChanged$1>;
627
+ declare const onGroupDeleted: BuildEventDefinition<typeof onGroupDeleted$1>;
675
628
 
676
629
  declare const context$8_createGroup: typeof createGroup;
677
630
  declare const context$8_deleteGroup: typeof deleteGroup;
@@ -1031,66 +984,23 @@ interface QueryMembershipsOptions {
1031
984
  query?: Query$2;
1032
985
  }
1033
986
 
1034
- type RESTFunctionDescriptor$7<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$7) => T;
1035
- interface HttpClient$7 {
1036
- request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
1037
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1038
- }
1039
- type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
1040
- type HttpResponse$7<T = any> = {
1041
- data: T;
1042
- status: number;
1043
- statusText: string;
1044
- headers: any;
1045
- request?: any;
1046
- };
1047
- type RequestOptions$7<_TResponse = any, Data = any> = {
1048
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1049
- url: string;
1050
- data?: Data;
1051
- params?: URLSearchParams;
1052
- } & APIMetadata$7;
1053
- type APIMetadata$7 = {
1054
- methodFqn?: string;
1055
- entityFqdn?: string;
1056
- packageName?: string;
1057
- };
1058
- type BuildRESTFunction$7<T extends RESTFunctionDescriptor$7> = T extends RESTFunctionDescriptor$7<infer U> ? U : never;
1059
- type EventDefinition$6<Payload = unknown, Type extends string = string> = {
1060
- __type: 'event-definition';
1061
- type: Type;
1062
- isDomainEvent?: boolean;
1063
- transformations?: (envelope: unknown) => Payload;
1064
- __payload: Payload;
1065
- };
1066
- declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
1067
- type EventHandler$6<T extends EventDefinition$6> = (payload: T['__payload']) => void | Promise<void>;
1068
- type BuildEventDefinition$6<T extends EventDefinition$6<any, string>> = (handler: EventHandler$6<T>) => void;
1069
-
1070
- declare global {
1071
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1072
- interface SymbolConstructor {
1073
- readonly observable: symbol;
1074
- }
1075
- }
1076
-
1077
- declare function addGroupMembers$1(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
1078
- declare function removeGroupMembers$1(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
1079
- declare function listGroupMembers$1(httpClient: HttpClient$7): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
1080
- declare function queryGroupMembers$1(httpClient: HttpClient$7): (groupId: string) => MembersQueryBuilder;
1081
- declare function listMemberships$1(httpClient: HttpClient$7): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
1082
- declare function queryMemberships$1(httpClient: HttpClient$7): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
1083
- declare const onGroupMemberAdded$1: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
1084
- declare const onGroupMemberRemoved$1: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
987
+ declare function addGroupMembers$1(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
988
+ declare function removeGroupMembers$1(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
989
+ declare function listGroupMembers$1(httpClient: HttpClient): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
990
+ declare function queryGroupMembers$1(httpClient: HttpClient): (groupId: string) => MembersQueryBuilder;
991
+ declare function listMemberships$1(httpClient: HttpClient): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
992
+ declare function queryMemberships$1(httpClient: HttpClient): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
993
+ declare const onGroupMemberAdded$1: EventDefinition<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
994
+ declare const onGroupMemberRemoved$1: EventDefinition<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
1085
995
 
1086
- declare const addGroupMembers: BuildRESTFunction$7<typeof addGroupMembers$1>;
1087
- declare const removeGroupMembers: BuildRESTFunction$7<typeof removeGroupMembers$1>;
1088
- declare const listGroupMembers: BuildRESTFunction$7<typeof listGroupMembers$1>;
1089
- declare const queryGroupMembers: BuildRESTFunction$7<typeof queryGroupMembers$1>;
1090
- declare const listMemberships: BuildRESTFunction$7<typeof listMemberships$1>;
1091
- declare const queryMemberships: BuildRESTFunction$7<typeof queryMemberships$1>;
1092
- declare const onGroupMemberAdded: BuildEventDefinition$6<typeof onGroupMemberAdded$1>;
1093
- declare const onGroupMemberRemoved: BuildEventDefinition$6<typeof onGroupMemberRemoved$1>;
996
+ declare const addGroupMembers: BuildRESTFunction<typeof addGroupMembers$1>;
997
+ declare const removeGroupMembers: BuildRESTFunction<typeof removeGroupMembers$1>;
998
+ declare const listGroupMembers: BuildRESTFunction<typeof listGroupMembers$1>;
999
+ declare const queryGroupMembers: BuildRESTFunction<typeof queryGroupMembers$1>;
1000
+ declare const listMemberships: BuildRESTFunction<typeof listMemberships$1>;
1001
+ declare const queryMemberships: BuildRESTFunction<typeof queryMemberships$1>;
1002
+ declare const onGroupMemberAdded: BuildEventDefinition<typeof onGroupMemberAdded$1>;
1003
+ declare const onGroupMemberRemoved: BuildEventDefinition<typeof onGroupMemberRemoved$1>;
1094
1004
 
1095
1005
  declare const context$7_addGroupMembers: typeof addGroupMembers;
1096
1006
  declare const context$7_listGroupMembers: typeof listGroupMembers;
@@ -1251,16 +1161,6 @@ interface Position$1 {
1251
1161
  /** vertical coordinate */
1252
1162
  y?: number;
1253
1163
  }
1254
- interface OnboardingStepSettings$1 {
1255
- stepKey?: StepKey$1;
1256
- visible?: boolean;
1257
- }
1258
- declare enum StepKey$1 {
1259
- UNKNOWN = "UNKNOWN",
1260
- CREATE_POST = "CREATE_POST",
1261
- REACT_TO_POST = "REACT_TO_POST",
1262
- INVITE_MEMBERS = "INVITE_MEMBERS"
1263
- }
1264
1164
  declare enum PrivacyStatus$1 {
1265
1165
  UNKNOWN = "UNKNOWN",
1266
1166
  /** Anyone can see the group in the group list and view its content. Anyone can join. */
@@ -1323,7 +1223,6 @@ interface GroupSettings$1 {
1323
1223
  * Default: `true`
1324
1224
  */
1325
1225
  showMemberList?: boolean | null;
1326
- onboardingStepsSettings?: OnboardingStepSettings$1[];
1327
1226
  }
1328
1227
  interface Identity$1 {
1329
1228
  /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
@@ -1441,12 +1340,6 @@ interface ApproveGroupRequestsResponseNonNullableFields {
1441
1340
  y: number;
1442
1341
  };
1443
1342
  };
1444
- settings?: {
1445
- onboardingStepsSettings: {
1446
- stepKey: StepKey$1;
1447
- visible: boolean;
1448
- }[];
1449
- };
1450
1343
  createdBy?: {
1451
1344
  identityType: IdentityType$1;
1452
1345
  };
@@ -1469,12 +1362,6 @@ interface RejectGroupRequestsResponseNonNullableFields {
1469
1362
  y: number;
1470
1363
  };
1471
1364
  };
1472
- settings?: {
1473
- onboardingStepsSettings: {
1474
- stepKey: StepKey$1;
1475
- visible: boolean;
1476
- }[];
1477
- };
1478
1365
  createdBy?: {
1479
1366
  identityType: IdentityType$1;
1480
1367
  };
@@ -1497,12 +1384,6 @@ interface ListGroupRequestsResponseNonNullableFields {
1497
1384
  y: number;
1498
1385
  };
1499
1386
  };
1500
- settings?: {
1501
- onboardingStepsSettings: {
1502
- stepKey: StepKey$1;
1503
- visible: boolean;
1504
- }[];
1505
- };
1506
1387
  createdBy?: {
1507
1388
  identityType: IdentityType$1;
1508
1389
  };
@@ -1628,64 +1509,21 @@ interface GroupRequestsQueryBuilder {
1628
1509
  find: () => Promise<GroupRequestsQueryResult>;
1629
1510
  }
1630
1511
 
1631
- type RESTFunctionDescriptor$6<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$6) => T;
1632
- interface HttpClient$6 {
1633
- request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
1634
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1635
- }
1636
- type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
1637
- type HttpResponse$6<T = any> = {
1638
- data: T;
1639
- status: number;
1640
- statusText: string;
1641
- headers: any;
1642
- request?: any;
1643
- };
1644
- type RequestOptions$6<_TResponse = any, Data = any> = {
1645
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1646
- url: string;
1647
- data?: Data;
1648
- params?: URLSearchParams;
1649
- } & APIMetadata$6;
1650
- type APIMetadata$6 = {
1651
- methodFqn?: string;
1652
- entityFqdn?: string;
1653
- packageName?: string;
1654
- };
1655
- type BuildRESTFunction$6<T extends RESTFunctionDescriptor$6> = T extends RESTFunctionDescriptor$6<infer U> ? U : never;
1656
- type EventDefinition$5<Payload = unknown, Type extends string = string> = {
1657
- __type: 'event-definition';
1658
- type: Type;
1659
- isDomainEvent?: boolean;
1660
- transformations?: (envelope: unknown) => Payload;
1661
- __payload: Payload;
1662
- };
1663
- declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
1664
- type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
1665
- type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
1666
-
1667
- declare global {
1668
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1669
- interface SymbolConstructor {
1670
- readonly observable: symbol;
1671
- }
1672
- }
1512
+ declare function approveGroupRequests$1(httpClient: HttpClient): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
1513
+ declare function rejectGroupRequests$1(httpClient: HttpClient): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
1514
+ declare function listGroupRequests$1(httpClient: HttpClient): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
1515
+ declare function queryGroupRequests$1(httpClient: HttpClient): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
1516
+ declare const onGroupRequestCreated$1: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
1517
+ declare const onGroupRequestApproved$1: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
1518
+ declare const onGroupRequestRejected$1: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
1673
1519
 
1674
- declare function approveGroupRequests$1(httpClient: HttpClient$6): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
1675
- declare function rejectGroupRequests$1(httpClient: HttpClient$6): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
1676
- declare function listGroupRequests$1(httpClient: HttpClient$6): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
1677
- declare function queryGroupRequests$1(httpClient: HttpClient$6): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
1678
- declare const onGroupRequestCreated$1: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
1679
- declare const onGroupRequestApproved$1: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
1680
- declare const onGroupRequestRejected$1: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
1681
-
1682
- declare const approveGroupRequests: BuildRESTFunction$6<typeof approveGroupRequests$1>;
1683
- declare const rejectGroupRequests: BuildRESTFunction$6<typeof rejectGroupRequests$1>;
1684
- declare const listGroupRequests: BuildRESTFunction$6<typeof listGroupRequests$1>;
1685
- declare const queryGroupRequests: BuildRESTFunction$6<typeof queryGroupRequests$1>;
1686
- declare const onGroupRequestCreated: BuildEventDefinition$5<typeof onGroupRequestCreated$1>;
1687
- declare const onGroupRequestApproved: BuildEventDefinition$5<typeof onGroupRequestApproved$1>;
1688
- declare const onGroupRequestRejected: BuildEventDefinition$5<typeof onGroupRequestRejected$1>;
1520
+ declare const approveGroupRequests: BuildRESTFunction<typeof approveGroupRequests$1>;
1521
+ declare const rejectGroupRequests: BuildRESTFunction<typeof rejectGroupRequests$1>;
1522
+ declare const listGroupRequests: BuildRESTFunction<typeof listGroupRequests$1>;
1523
+ declare const queryGroupRequests: BuildRESTFunction<typeof queryGroupRequests$1>;
1524
+ declare const onGroupRequestCreated: BuildEventDefinition<typeof onGroupRequestCreated$1>;
1525
+ declare const onGroupRequestApproved: BuildEventDefinition<typeof onGroupRequestApproved$1>;
1526
+ declare const onGroupRequestRejected: BuildEventDefinition<typeof onGroupRequestRejected$1>;
1689
1527
 
1690
1528
  declare const context$6_approveGroupRequests: typeof approveGroupRequests;
1691
1529
  declare const context$6_listGroupRequests: typeof listGroupRequests;
@@ -1901,58 +1739,15 @@ interface UnassignRoleOptions {
1901
1739
  siteMemberIds?: string[];
1902
1740
  }
1903
1741
 
1904
- type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
1905
- interface HttpClient$5 {
1906
- request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
1907
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1908
- }
1909
- type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
1910
- type HttpResponse$5<T = any> = {
1911
- data: T;
1912
- status: number;
1913
- statusText: string;
1914
- headers: any;
1915
- request?: any;
1916
- };
1917
- type RequestOptions$5<_TResponse = any, Data = any> = {
1918
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1919
- url: string;
1920
- data?: Data;
1921
- params?: URLSearchParams;
1922
- } & APIMetadata$5;
1923
- type APIMetadata$5 = {
1924
- methodFqn?: string;
1925
- entityFqdn?: string;
1926
- packageName?: string;
1927
- };
1928
- type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
1929
- type EventDefinition$4<Payload = unknown, Type extends string = string> = {
1930
- __type: 'event-definition';
1931
- type: Type;
1932
- isDomainEvent?: boolean;
1933
- transformations?: (envelope: unknown) => Payload;
1934
- __payload: Payload;
1935
- };
1936
- declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
1937
- type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
1938
- type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
1939
-
1940
- declare global {
1941
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1942
- interface SymbolConstructor {
1943
- readonly observable: symbol;
1944
- }
1945
- }
1742
+ declare function assignRole$1(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
1743
+ declare function unassignRole$1(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
1744
+ declare const onGroupRoleAssigned$1: EventDefinition<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
1745
+ declare const onGroupRoleUnassigned$1: EventDefinition<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
1946
1746
 
1947
- declare function assignRole$1(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
1948
- declare function unassignRole$1(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
1949
- declare const onGroupRoleAssigned$1: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
1950
- declare const onGroupRoleUnassigned$1: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
1951
-
1952
- declare const assignRole: BuildRESTFunction$5<typeof assignRole$1>;
1953
- declare const unassignRole: BuildRESTFunction$5<typeof unassignRole$1>;
1954
- declare const onGroupRoleAssigned: BuildEventDefinition$4<typeof onGroupRoleAssigned$1>;
1955
- declare const onGroupRoleUnassigned: BuildEventDefinition$4<typeof onGroupRoleUnassigned$1>;
1747
+ declare const assignRole: BuildRESTFunction<typeof assignRole$1>;
1748
+ declare const unassignRole: BuildRESTFunction<typeof unassignRole$1>;
1749
+ declare const onGroupRoleAssigned: BuildEventDefinition<typeof onGroupRoleAssigned$1>;
1750
+ declare const onGroupRoleUnassigned: BuildEventDefinition<typeof onGroupRoleUnassigned$1>;
1956
1751
 
1957
1752
  declare const context$5_assignRole: typeof assignRole;
1958
1753
  declare const context$5_onGroupRoleAssigned: typeof onGroupRoleAssigned;
@@ -2084,56 +1879,13 @@ interface CreateOrReplaceAllRulesOptions {
2084
1879
  rules?: GroupRule[];
2085
1880
  }
2086
1881
 
2087
- type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
2088
- interface HttpClient$4 {
2089
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
2090
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2091
- }
2092
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
2093
- type HttpResponse$4<T = any> = {
2094
- data: T;
2095
- status: number;
2096
- statusText: string;
2097
- headers: any;
2098
- request?: any;
2099
- };
2100
- type RequestOptions$4<_TResponse = any, Data = any> = {
2101
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2102
- url: string;
2103
- data?: Data;
2104
- params?: URLSearchParams;
2105
- } & APIMetadata$4;
2106
- type APIMetadata$4 = {
2107
- methodFqn?: string;
2108
- entityFqdn?: string;
2109
- packageName?: string;
2110
- };
2111
- type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
2112
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
2113
- __type: 'event-definition';
2114
- type: Type;
2115
- isDomainEvent?: boolean;
2116
- transformations?: (envelope: unknown) => Payload;
2117
- __payload: Payload;
2118
- };
2119
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
2120
- type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
2121
- type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
1882
+ declare function listRules$1(httpClient: HttpClient): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
1883
+ declare function createOrReplaceAllRules$1(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
1884
+ declare const onGroupRulesUpdated$1: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
2122
1885
 
2123
- declare global {
2124
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2125
- interface SymbolConstructor {
2126
- readonly observable: symbol;
2127
- }
2128
- }
2129
-
2130
- declare function listRules$1(httpClient: HttpClient$4): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
2131
- declare function createOrReplaceAllRules$1(httpClient: HttpClient$4): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
2132
- declare const onGroupRulesUpdated$1: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
2133
-
2134
- declare const listRules: BuildRESTFunction$4<typeof listRules$1>;
2135
- declare const createOrReplaceAllRules: BuildRESTFunction$4<typeof createOrReplaceAllRules$1>;
2136
- declare const onGroupRulesUpdated: BuildEventDefinition$3<typeof onGroupRulesUpdated$1>;
1886
+ declare const listRules: BuildRESTFunction<typeof listRules$1>;
1887
+ declare const createOrReplaceAllRules: BuildRESTFunction<typeof createOrReplaceAllRules$1>;
1888
+ declare const onGroupRulesUpdated: BuildEventDefinition<typeof onGroupRulesUpdated$1>;
2137
1889
 
2138
1890
  declare const context$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
2139
1891
  declare const context$4_listRules: typeof listRules;
@@ -2384,64 +2136,21 @@ interface JoinGroupRequestsQueryBuilder {
2384
2136
  find: () => Promise<JoinGroupRequestsQueryResult>;
2385
2137
  }
2386
2138
 
2387
- type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
2388
- interface HttpClient$3 {
2389
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
2390
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2391
- }
2392
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
2393
- type HttpResponse$3<T = any> = {
2394
- data: T;
2395
- status: number;
2396
- statusText: string;
2397
- headers: any;
2398
- request?: any;
2399
- };
2400
- type RequestOptions$3<_TResponse = any, Data = any> = {
2401
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2402
- url: string;
2403
- data?: Data;
2404
- params?: URLSearchParams;
2405
- } & APIMetadata$3;
2406
- type APIMetadata$3 = {
2407
- methodFqn?: string;
2408
- entityFqdn?: string;
2409
- packageName?: string;
2410
- };
2411
- type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
2412
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
2413
- __type: 'event-definition';
2414
- type: Type;
2415
- isDomainEvent?: boolean;
2416
- transformations?: (envelope: unknown) => Payload;
2417
- __payload: Payload;
2418
- };
2419
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
2420
- type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
2421
- type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
2139
+ declare function approveJoinGroupRequests$1(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
2140
+ declare function rejectJoinGroupRequests$1(httpClient: HttpClient): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
2141
+ declare function listJoinGroupRequests$1(httpClient: HttpClient): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
2142
+ declare function queryJoinGroupRequests$1(httpClient: HttpClient): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
2143
+ declare const onJoinGroupRequestCreated$1: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
2144
+ declare const onJoinGroupRequestApproved$1: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
2145
+ declare const onJoinGroupRequestRejected$1: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
2422
2146
 
2423
- declare global {
2424
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2425
- interface SymbolConstructor {
2426
- readonly observable: symbol;
2427
- }
2428
- }
2429
-
2430
- declare function approveJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
2431
- declare function rejectJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
2432
- declare function listJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
2433
- declare function queryJoinGroupRequests$1(httpClient: HttpClient$3): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
2434
- declare const onJoinGroupRequestCreated$1: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
2435
- declare const onJoinGroupRequestApproved$1: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
2436
- declare const onJoinGroupRequestRejected$1: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
2437
-
2438
- declare const approveJoinGroupRequests: BuildRESTFunction$3<typeof approveJoinGroupRequests$1>;
2439
- declare const rejectJoinGroupRequests: BuildRESTFunction$3<typeof rejectJoinGroupRequests$1>;
2440
- declare const listJoinGroupRequests: BuildRESTFunction$3<typeof listJoinGroupRequests$1>;
2441
- declare const queryJoinGroupRequests: BuildRESTFunction$3<typeof queryJoinGroupRequests$1>;
2442
- declare const onJoinGroupRequestCreated: BuildEventDefinition$2<typeof onJoinGroupRequestCreated$1>;
2443
- declare const onJoinGroupRequestApproved: BuildEventDefinition$2<typeof onJoinGroupRequestApproved$1>;
2444
- declare const onJoinGroupRequestRejected: BuildEventDefinition$2<typeof onJoinGroupRequestRejected$1>;
2147
+ declare const approveJoinGroupRequests: BuildRESTFunction<typeof approveJoinGroupRequests$1>;
2148
+ declare const rejectJoinGroupRequests: BuildRESTFunction<typeof rejectJoinGroupRequests$1>;
2149
+ declare const listJoinGroupRequests: BuildRESTFunction<typeof listJoinGroupRequests$1>;
2150
+ declare const queryJoinGroupRequests: BuildRESTFunction<typeof queryJoinGroupRequests$1>;
2151
+ declare const onJoinGroupRequestCreated: BuildEventDefinition<typeof onJoinGroupRequestCreated$1>;
2152
+ declare const onJoinGroupRequestApproved: BuildEventDefinition<typeof onJoinGroupRequestApproved$1>;
2153
+ declare const onJoinGroupRequestRejected: BuildEventDefinition<typeof onJoinGroupRequestRejected$1>;
2445
2154
 
2446
2155
  declare const context$3_approveJoinGroupRequests: typeof approveJoinGroupRequests;
2447
2156
  declare const context$3_listJoinGroupRequests: typeof listJoinGroupRequests;
@@ -2547,46 +2256,13 @@ interface ListAnswersOptions {
2547
2256
  paging?: Paging$2;
2548
2257
  }
2549
2258
 
2550
- type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
2551
- interface HttpClient$2 {
2552
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
2553
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2554
- }
2555
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
2556
- type HttpResponse$2<T = any> = {
2557
- data: T;
2558
- status: number;
2559
- statusText: string;
2560
- headers: any;
2561
- request?: any;
2562
- };
2563
- type RequestOptions$2<_TResponse = any, Data = any> = {
2564
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2565
- url: string;
2566
- data?: Data;
2567
- params?: URLSearchParams;
2568
- } & APIMetadata$2;
2569
- type APIMetadata$2 = {
2570
- methodFqn?: string;
2571
- entityFqdn?: string;
2572
- packageName?: string;
2573
- };
2574
- type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
2259
+ declare function listMembershipQuestions$1(httpClient: HttpClient): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
2260
+ declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
2261
+ declare function listAnswers$1(httpClient: HttpClient): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
2575
2262
 
2576
- declare global {
2577
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2578
- interface SymbolConstructor {
2579
- readonly observable: symbol;
2580
- }
2581
- }
2582
-
2583
- declare function listMembershipQuestions$1(httpClient: HttpClient$2): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
2584
- declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient$2): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
2585
- declare function listAnswers$1(httpClient: HttpClient$2): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
2586
-
2587
- declare const listMembershipQuestions: BuildRESTFunction$2<typeof listMembershipQuestions$1>;
2588
- declare const createOrReplaceAllMembershipQuestions: BuildRESTFunction$2<typeof createOrReplaceAllMembershipQuestions$1>;
2589
- declare const listAnswers: BuildRESTFunction$2<typeof listAnswers$1>;
2263
+ declare const listMembershipQuestions: BuildRESTFunction<typeof listMembershipQuestions$1>;
2264
+ declare const createOrReplaceAllMembershipQuestions: BuildRESTFunction<typeof createOrReplaceAllMembershipQuestions$1>;
2265
+ declare const listAnswers: BuildRESTFunction<typeof listAnswers$1>;
2590
2266
 
2591
2267
  declare const context$2_createOrReplaceAllMembershipQuestions: typeof createOrReplaceAllMembershipQuestions;
2592
2268
  declare const context$2_listAnswers: typeof listAnswers;
@@ -2731,16 +2407,6 @@ interface Position {
2731
2407
  /** vertical coordinate */
2732
2408
  y?: number;
2733
2409
  }
2734
- interface OnboardingStepSettings {
2735
- stepKey?: StepKey;
2736
- visible?: boolean;
2737
- }
2738
- declare enum StepKey {
2739
- UNKNOWN = "UNKNOWN",
2740
- CREATE_POST = "CREATE_POST",
2741
- REACT_TO_POST = "REACT_TO_POST",
2742
- INVITE_MEMBERS = "INVITE_MEMBERS"
2743
- }
2744
2410
  declare enum PrivacyStatus {
2745
2411
  UNKNOWN = "UNKNOWN",
2746
2412
  /** Anyone can see the group in the group list and view its content. Anyone can join. */
@@ -2791,7 +2457,6 @@ interface GroupSettings {
2791
2457
  groupDetailsChangedPostEnabled?: boolean | null;
2792
2458
  /** Whether all members can see the full member list. */
2793
2459
  showMemberList?: boolean | null;
2794
- onboardingStepsSettings?: OnboardingStepSettings[];
2795
2460
  }
2796
2461
  interface Identity {
2797
2462
  /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
@@ -2944,12 +2609,6 @@ interface ApproveCreateRequestsResponseNonNullableFields {
2944
2609
  y: number;
2945
2610
  };
2946
2611
  };
2947
- settings?: {
2948
- onboardingStepsSettings: {
2949
- stepKey: StepKey;
2950
- visible: boolean;
2951
- }[];
2952
- };
2953
2612
  createdBy?: {
2954
2613
  identityType: IdentityType;
2955
2614
  };
@@ -2972,12 +2631,6 @@ interface RejectCreateRequestsResponseNonNullableFields {
2972
2631
  y: number;
2973
2632
  };
2974
2633
  };
2975
- settings?: {
2976
- onboardingStepsSettings: {
2977
- stepKey: StepKey;
2978
- visible: boolean;
2979
- }[];
2980
- };
2981
2634
  createdBy?: {
2982
2635
  identityType: IdentityType;
2983
2636
  };
@@ -3000,12 +2653,6 @@ interface ListCreateRequestsResponseNonNullableFields {
3000
2653
  y: number;
3001
2654
  };
3002
2655
  };
3003
- settings?: {
3004
- onboardingStepsSettings: {
3005
- stepKey: StepKey;
3006
- visible: boolean;
3007
- }[];
3008
- };
3009
2656
  createdBy?: {
3010
2657
  identityType: IdentityType;
3011
2658
  };
@@ -3028,12 +2675,6 @@ interface QueryCreateRequestsResponseNonNullableFields {
3028
2675
  y: number;
3029
2676
  };
3030
2677
  };
3031
- settings?: {
3032
- onboardingStepsSettings: {
3033
- stepKey: StepKey;
3034
- visible: boolean;
3035
- }[];
3036
- };
3037
2678
  createdBy?: {
3038
2679
  identityType: IdentityType;
3039
2680
  };
@@ -3113,62 +2754,19 @@ interface QueryCreateRequestsOptions {
3113
2754
  query?: Query$1;
3114
2755
  }
3115
2756
 
3116
- type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
3117
- interface HttpClient$1 {
3118
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
3119
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3120
- }
3121
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
3122
- type HttpResponse$1<T = any> = {
3123
- data: T;
3124
- status: number;
3125
- statusText: string;
3126
- headers: any;
3127
- request?: any;
3128
- };
3129
- type RequestOptions$1<_TResponse = any, Data = any> = {
3130
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3131
- url: string;
3132
- data?: Data;
3133
- params?: URLSearchParams;
3134
- } & APIMetadata$1;
3135
- type APIMetadata$1 = {
3136
- methodFqn?: string;
3137
- entityFqdn?: string;
3138
- packageName?: string;
3139
- };
3140
- type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
3141
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
3142
- __type: 'event-definition';
3143
- type: Type;
3144
- isDomainEvent?: boolean;
3145
- transformations?: (envelope: unknown) => Payload;
3146
- __payload: Payload;
3147
- };
3148
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
3149
- type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
3150
- type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
3151
-
3152
- declare global {
3153
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3154
- interface SymbolConstructor {
3155
- readonly observable: symbol;
3156
- }
3157
- }
3158
-
3159
- declare function approveCreateRequests$1(httpClient: HttpClient$1): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
3160
- declare function rejectCreateRequests$1(httpClient: HttpClient$1): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
3161
- declare function listCreateRequests$1(httpClient: HttpClient$1): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
3162
- declare function queryCreateRequests$1(httpClient: HttpClient$1): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
3163
- declare const onCreateRequestApproved$1: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
3164
- declare const onCreateRequestRejected$1: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
2757
+ declare function approveCreateRequests$1(httpClient: HttpClient): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
2758
+ declare function rejectCreateRequests$1(httpClient: HttpClient): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
2759
+ declare function listCreateRequests$1(httpClient: HttpClient): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
2760
+ declare function queryCreateRequests$1(httpClient: HttpClient): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
2761
+ declare const onCreateRequestApproved$1: EventDefinition<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
2762
+ declare const onCreateRequestRejected$1: EventDefinition<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
3165
2763
 
3166
- declare const approveCreateRequests: BuildRESTFunction$1<typeof approveCreateRequests$1>;
3167
- declare const rejectCreateRequests: BuildRESTFunction$1<typeof rejectCreateRequests$1>;
3168
- declare const listCreateRequests: BuildRESTFunction$1<typeof listCreateRequests$1>;
3169
- declare const queryCreateRequests: BuildRESTFunction$1<typeof queryCreateRequests$1>;
3170
- declare const onCreateRequestApproved: BuildEventDefinition$1<typeof onCreateRequestApproved$1>;
3171
- declare const onCreateRequestRejected: BuildEventDefinition$1<typeof onCreateRequestRejected$1>;
2764
+ declare const approveCreateRequests: BuildRESTFunction<typeof approveCreateRequests$1>;
2765
+ declare const rejectCreateRequests: BuildRESTFunction<typeof rejectCreateRequests$1>;
2766
+ declare const listCreateRequests: BuildRESTFunction<typeof listCreateRequests$1>;
2767
+ declare const queryCreateRequests: BuildRESTFunction<typeof queryCreateRequests$1>;
2768
+ declare const onCreateRequestApproved: BuildEventDefinition<typeof onCreateRequestApproved$1>;
2769
+ declare const onCreateRequestRejected: BuildEventDefinition<typeof onCreateRequestRejected$1>;
3172
2770
 
3173
2771
  declare const context$1_approveCreateRequests: typeof approveCreateRequests;
3174
2772
  declare const context$1_listCreateRequests: typeof listCreateRequests;
@@ -3426,49 +3024,6 @@ interface QueryJoinRequestsOptions {
3426
3024
  query?: Query;
3427
3025
  }
3428
3026
 
3429
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
3430
- interface HttpClient {
3431
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
3432
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3433
- }
3434
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
3435
- type HttpResponse<T = any> = {
3436
- data: T;
3437
- status: number;
3438
- statusText: string;
3439
- headers: any;
3440
- request?: any;
3441
- };
3442
- type RequestOptions<_TResponse = any, Data = any> = {
3443
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3444
- url: string;
3445
- data?: Data;
3446
- params?: URLSearchParams;
3447
- } & APIMetadata;
3448
- type APIMetadata = {
3449
- methodFqn?: string;
3450
- entityFqdn?: string;
3451
- packageName?: string;
3452
- };
3453
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
3454
- type EventDefinition<Payload = unknown, Type extends string = string> = {
3455
- __type: 'event-definition';
3456
- type: Type;
3457
- isDomainEvent?: boolean;
3458
- transformations?: (envelope: unknown) => Payload;
3459
- __payload: Payload;
3460
- };
3461
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
3462
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
3463
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
3464
-
3465
- declare global {
3466
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3467
- interface SymbolConstructor {
3468
- readonly observable: symbol;
3469
- }
3470
- }
3471
-
3472
3027
  declare function approveJoinRequests$1(httpClient: HttpClient): (groupId: string, options: ApproveJoinRequestsOptions) => Promise<ApproveJoinRequestsResponse & ApproveJoinRequestsResponseNonNullableFields>;
3473
3028
  declare function rejectJoinRequests$1(httpClient: HttpClient): (groupId: string, options?: RejectJoinRequestsOptions) => Promise<RejectJoinRequestsResponse & RejectJoinRequestsResponseNonNullableFields>;
3474
3029
  declare function listJoinRequests$1(httpClient: HttpClient): (groupId: string, options?: ListJoinRequestsOptions) => Promise<ListJoinRequestsResponse & ListJoinRequestsResponseNonNullableFields>;