@wix/groups 1.0.112 → 1.0.114

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.
@@ -1,4116 +0,0 @@
1
- interface Group$5 {
2
- /**
3
- * Group ID.
4
- * @readonly
5
- */
6
- id?: string | null;
7
- /** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
8
- slug?: string | null;
9
- /**
10
- * __Deprecated.__ Use `privacyStatus` instead.
11
- * This property will be removed on June 30, 2022.
12
- * @deprecated
13
- */
14
- privacyLevel?: PrivacyStatus$5;
15
- /** Group privacy status. */
16
- privacyStatus?: PrivacyStatus$5;
17
- /**
18
- * __Deprecated.__ Use `name` instead.
19
- * This property will be removed on June 30, 2022.
20
- * @deprecated
21
- */
22
- title?: string | null;
23
- /** Group name. */
24
- name?: string | null;
25
- /** Group description in DraftJS format. */
26
- description?: string | null;
27
- /** Group teaser. */
28
- teaser?: string | null;
29
- /**
30
- * __Deprecated.__
31
- * For `details.logo`, use `coverImage` instead.
32
- * For `details.membersTitle`, `memberTitle` instead.
33
- * This property will be removed on June 30, 2022.
34
- * @deprecated
35
- */
36
- details?: GroupDetails$5;
37
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
38
- memberTitle?: string | null;
39
- /** Cover image. You cannot upload your own cover image. */
40
- coverImage?: CoverImage$5;
41
- /** Group specific settings. Available to the site owners under `Admin Tools` in the dashboard. */
42
- settings?: GroupSettings$5;
43
- /**
44
- * Total count of current group members.
45
- * @readonly
46
- */
47
- membersCount?: number | null;
48
- /**
49
- * __Deprecated.__ Use `ownerId` instead.
50
- * This property will be removed on June 30, 2022.
51
- * @readonly
52
- * @deprecated
53
- */
54
- createdBy?: Identity$5;
55
- /**
56
- * Group owner.
57
- * @readonly
58
- */
59
- ownerId?: string | null;
60
- /**
61
- * Group creation date and time.
62
- * @readonly
63
- */
64
- createdDate?: Date | null;
65
- /**
66
- * Date and time of the latest group update.
67
- * @readonly
68
- */
69
- updatedDate?: Date | null;
70
- /**
71
- * __Deprecated.__ Use `lastActivityDate` instead.
72
- * This property will be removed on June 30, 2022.
73
- * @readonly
74
- * @deprecated
75
- */
76
- recentActivityDate?: Date | null;
77
- /**
78
- * Date and time of the most recent group activity, for example a post or comment.
79
- * @readonly
80
- */
81
- lastActivityDate?: Date | null;
82
- }
83
- declare enum Type$5 {
84
- UNKNOWN = "UNKNOWN",
85
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
86
- PAID_PLANS = "PAID_PLANS",
87
- EVENTS = "EVENTS"
88
- }
89
- interface Logo$5 {
90
- /** Logo image ID (for internal use). */
91
- mediaId?: string | null;
92
- /** Logo image width. */
93
- width?: number | null;
94
- /** Logo image height. */
95
- height?: number | null;
96
- }
97
- interface Image$5 {
98
- /** Image ID (for internal use). */
99
- mediaId?: string | null;
100
- /** Image width. */
101
- width?: number | null;
102
- /** Image height. */
103
- height?: number | null;
104
- }
105
- interface Position$5 {
106
- /** horizontal coordinate */
107
- x?: number;
108
- /** vertical coordinate */
109
- y?: number;
110
- }
111
- declare enum AllowPolicy$5 {
112
- UNKNOWN = "UNKNOWN",
113
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
114
- OWNER = "OWNER",
115
- ALL_MEMBERS = "ALL_MEMBERS"
116
- }
117
- declare enum StepKey$5 {
118
- UNKNOWN = "UNKNOWN",
119
- CREATE_POST = "CREATE_POST",
120
- REACT_TO_POST = "REACT_TO_POST",
121
- INVITE_MEMBERS = "INVITE_MEMBERS"
122
- }
123
- declare enum PrivacyStatus$5 {
124
- /** Undefined group privacy status. */
125
- UNKNOWN = "UNKNOWN",
126
- /** Anyone can see the group and its content. Anyone can join the group. */
127
- PUBLIC = "PUBLIC",
128
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
129
- PRIVATE = "PRIVATE",
130
- /** Only admins and members can see the group. New members can only be added by other members. */
131
- SECRET = "SECRET"
132
- }
133
- interface GroupDetails$5 {
134
- /** Group logo. You cannot upload your own logo. */
135
- logo?: Logo$5;
136
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
137
- membersTitle?: string | null;
138
- }
139
- interface CoverImage$5 {
140
- /** Cover image. */
141
- image?: Image$5;
142
- /** Position of the corner of the cover image (or logo). */
143
- position?: Position$5;
144
- /** Position of the corner of the cover image (or logo) for mobile browser. */
145
- mobilePosition?: Position$5;
146
- }
147
- interface GroupSettings$5 {
148
- /**
149
- * __Deprecated.__ Use `allowedToInviteMembers` instead.
150
- * Whether regular members are permitted to invite new members.
151
- * If `false`, only admins can invite members. Defaults to `true`.
152
- * @deprecated
153
- */
154
- membersCanInvite?: boolean | null;
155
- /**
156
- * __Deprecated.__ Use `allowedToApproveJoinRequests` instead.
157
- * Whether all group members are permitted to approve join group requests.
158
- * If `false`, member approval is limited to the admins.
159
- * @deprecated
160
- */
161
- membersCanApprove?: boolean | null;
162
- /**
163
- * __Deprecated.__ Use `welcomeMemberPostEnabled` instead.
164
- * This property will be removed on June 30, 2022.
165
- * @deprecated
166
- */
167
- memberWelcomePostEnabled?: boolean | null;
168
- /** Whether a daily post about new members is enabled. */
169
- welcomeMemberPostEnabled?: boolean | null;
170
- /** Whether an automatic post about changing the group details is enabled. */
171
- groupDetailsChangedPostEnabled?: boolean | null;
172
- /** Whether all members can see the full member list. */
173
- showMemberList?: boolean | null;
174
- }
175
- interface Identity$5 {
176
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
177
- id?: string | null;
178
- identityType?: IdentityType$5;
179
- }
180
- declare enum IdentityType$5 {
181
- USER = "USER",
182
- MEMBER = "MEMBER"
183
- }
184
- interface CreateGroupRequest$1 {
185
- /** Group to create. */
186
- group: Group$5;
187
- /** ID of the member who created the group. This member will automatically become an admin. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
188
- creatorId?: string | null;
189
- /** Content Type */
190
- contentType?: ContentType$1;
191
- }
192
- declare enum ContentType$1 {
193
- PLAIN_TEXT = "PLAIN_TEXT",
194
- DRAFTJS = "DRAFTJS",
195
- RICH_CONTENT = "RICH_CONTENT"
196
- }
197
- interface CreateGroupResponse$1 {
198
- /** Created group. */
199
- group?: Group$5;
200
- }
201
- interface UpdateGroupRequest$1 {
202
- /** Group to update. */
203
- group: Group$5;
204
- /** Content Type */
205
- contentType?: ContentType$1;
206
- }
207
- interface UpdateGroupResponse$1 {
208
- /** Updated group. */
209
- group?: Group$5;
210
- }
211
- interface DeleteGroupRequest$1 {
212
- /** ID of the group to delete. */
213
- groupId: string;
214
- }
215
- interface DeleteGroupResponse$1 {
216
- /** Deleted group. */
217
- group?: Group$5;
218
- }
219
- interface GetGroupRequest$1 {
220
- /** ID of the group to retrieve. */
221
- groupId: string;
222
- /** Content type (PLAIN_TEXT returns content as it is) */
223
- contentType?: ContentType$1;
224
- }
225
- interface GetGroupResponse$1 {
226
- /** Retrieved group. */
227
- group?: Group$5;
228
- }
229
- interface GetGroupBySlugRequest$1 {
230
- /** Unique part of the group's URL, for example `group-1` in `https:/example.com/groups/group-1`. Pass only the slug. Case-sensitive. */
231
- slug: string;
232
- autoInviteId?: string | null;
233
- /** Content type (PLAIN_TEXT returns content as it is) */
234
- contentType?: ContentType$1;
235
- }
236
- interface GetGroupBySlugResponse$1 {
237
- /** Retrieved group. */
238
- group?: Group$5;
239
- }
240
- interface ListGroupsRequest$1 {
241
- /** Number of items to load. Maximum `100`. */
242
- limit?: number | null;
243
- /** Number of items to skip in the current sort order. */
244
- offset?: number | null;
245
- /** Content type (PLAIN_TEXT returns content as it is) */
246
- contentType?: ContentType$1;
247
- }
248
- interface ListGroupsResponse$1 {
249
- /** Retrieved Groups. */
250
- groups?: Group$5[];
251
- metadata?: PagingMetadata$d;
252
- }
253
- interface PagingMetadata$d {
254
- /** Number of items returned in the response. */
255
- count?: number | null;
256
- /** Offset that was requested. */
257
- offset?: number | null;
258
- /** Total number of items that match the query. */
259
- total?: number | null;
260
- /** Flag that indicates the server failed to calculate the `total` field. */
261
- tooManyToCount?: boolean | null;
262
- }
263
- interface QueryGroupsRequest$1 {
264
- query?: Query$b;
265
- /** Content type (PLAIN_TEXT returns content as it is) */
266
- contentType?: ContentType$1;
267
- }
268
- interface Query$b {
269
- /**
270
- * Filter object in the following format:
271
- * `"filter" : {
272
- * "fieldName1": "value1",
273
- * "fieldName2":{"$operator":"value2"}
274
- * }`
275
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
276
- */
277
- filter?: any;
278
- /**
279
- * Sort object in the following format:
280
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
281
- */
282
- sort?: Sorting$b[];
283
- /** Paging options to limit and skip the number of items. */
284
- paging?: Paging$d;
285
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
286
- fields?: string[];
287
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
288
- fieldsets?: string[];
289
- }
290
- interface Sorting$b {
291
- /** Name of the field to sort by. */
292
- fieldName?: string;
293
- /** Sort order. */
294
- order?: SortOrder$b;
295
- }
296
- declare enum SortOrder$b {
297
- ASC = "ASC",
298
- DESC = "DESC"
299
- }
300
- interface Paging$d {
301
- /** Number of items to load. */
302
- limit?: number | null;
303
- /** Number of items to skip in the current sort order. */
304
- offset?: number | null;
305
- }
306
- interface QueryGroupsResponse$1 {
307
- /** Retrieved groups. */
308
- groups?: Group$5[];
309
- metadata?: PagingMetadata$d;
310
- }
311
- interface EventsNonNullableFields$5 {
312
- eventIds: string[];
313
- }
314
- interface AccessRestrictionNonNullableFields$5 {
315
- events?: EventsNonNullableFields$5;
316
- type: Type$5;
317
- }
318
- interface GroupDetailsPositionNonNullableFields$5 {
319
- x: number;
320
- y: number;
321
- }
322
- interface GroupDetailsNonNullableFields$5 {
323
- logoPosition?: GroupDetailsPositionNonNullableFields$5;
324
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields$5;
325
- }
326
- interface PositionNonNullableFields$5 {
327
- x: number;
328
- y: number;
329
- }
330
- interface CoverImageNonNullableFields$5 {
331
- position?: PositionNonNullableFields$5;
332
- mobilePosition?: PositionNonNullableFields$5;
333
- }
334
- interface OnboardingStepSettingsNonNullableFields$5 {
335
- stepKey: StepKey$5;
336
- visible: boolean;
337
- }
338
- interface GroupSettingsNonNullableFields$5 {
339
- allowedToInviteMembers: AllowPolicy$5;
340
- allowedToApproveJoinRequests: AllowPolicy$5;
341
- allowedToAddMembers: AllowPolicy$5;
342
- allowedToCreatePosts: AllowPolicy$5;
343
- allowedToCommentPosts: AllowPolicy$5;
344
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$5[];
345
- allowedToCreateEvents: AllowPolicy$5;
346
- }
347
- interface IdentityNonNullableFields$5 {
348
- identityType: IdentityType$5;
349
- }
350
- interface GroupNonNullableFields$5 {
351
- privacyLevel: PrivacyStatus$5;
352
- privacyStatus: PrivacyStatus$5;
353
- accessRestriction?: AccessRestrictionNonNullableFields$5;
354
- details?: GroupDetailsNonNullableFields$5;
355
- coverImage?: CoverImageNonNullableFields$5;
356
- settings?: GroupSettingsNonNullableFields$5;
357
- createdBy?: IdentityNonNullableFields$5;
358
- }
359
- interface CreateGroupResponseNonNullableFields$1 {
360
- group?: GroupNonNullableFields$5;
361
- }
362
- interface UpdateGroupResponseNonNullableFields$1 {
363
- group?: GroupNonNullableFields$5;
364
- }
365
- interface DeleteGroupResponseNonNullableFields$1 {
366
- group?: GroupNonNullableFields$5;
367
- }
368
- interface GetGroupResponseNonNullableFields$1 {
369
- group?: GroupNonNullableFields$5;
370
- }
371
- interface GetGroupBySlugResponseNonNullableFields$1 {
372
- group?: GroupNonNullableFields$5;
373
- }
374
- interface ListGroupsResponseNonNullableFields$1 {
375
- groups: GroupNonNullableFields$5[];
376
- }
377
- interface QueryGroupsResponseNonNullableFields$1 {
378
- groups: GroupNonNullableFields$5[];
379
- }
380
-
381
- interface Group$4 {
382
- /**
383
- * Group ID.
384
- * @readonly
385
- */
386
- _id?: string | null;
387
- /** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
388
- slug?: string | null;
389
- /**
390
- * @internal
391
- * @internal
392
- * @deprecated
393
- */
394
- privacyLevel?: PrivacyStatus$4;
395
- /** Group privacy status. */
396
- privacyStatus?: PrivacyStatus$4;
397
- /**
398
- * @internal
399
- * @internal
400
- * @deprecated
401
- */
402
- title?: string | null;
403
- /** Group name. */
404
- name?: string | null;
405
- /** Group description in DraftJS format. */
406
- description?: string | null;
407
- /** Group teaser. */
408
- teaser?: string | null;
409
- /**
410
- * @internal
411
- * @internal
412
- * @deprecated
413
- */
414
- details?: GroupDetails$4;
415
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
416
- memberTitle?: string | null;
417
- /** Cover image. You cannot upload your own cover image. */
418
- coverImage?: CoverImage$4;
419
- /** Group specific settings. Available to the site owners under `Admin Tools` in the dashboard. */
420
- settings?: GroupSettings$4;
421
- /**
422
- * Total count of current group members.
423
- * @readonly
424
- */
425
- membersCount?: number | null;
426
- /**
427
- * @internal
428
- * @internal
429
- * @readonly
430
- * @deprecated
431
- */
432
- createdBy?: Identity$4;
433
- /**
434
- * Group owner.
435
- * @readonly
436
- */
437
- ownerId?: string | null;
438
- /**
439
- * Group creation date and time.
440
- * @readonly
441
- */
442
- _createdDate?: Date | null;
443
- /**
444
- * Date and time of the latest group update.
445
- * @readonly
446
- */
447
- _updatedDate?: Date | null;
448
- /**
449
- * @internal
450
- * @internal
451
- * @readonly
452
- * @deprecated
453
- */
454
- recentActivityDate?: Date | null;
455
- /**
456
- * Date and time of the most recent group activity, for example a post or comment.
457
- * @readonly
458
- */
459
- lastActivityDate?: Date | null;
460
- }
461
- declare enum Type$4 {
462
- UNKNOWN = "UNKNOWN",
463
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
464
- PAID_PLANS = "PAID_PLANS",
465
- EVENTS = "EVENTS"
466
- }
467
- interface Logo$4 {
468
- /** Logo image ID (for internal use). */
469
- mediaId?: string | null;
470
- /** Logo image width. */
471
- width?: number | null;
472
- /** Logo image height. */
473
- height?: number | null;
474
- }
475
- interface Image$4 {
476
- /** Image ID (for internal use). */
477
- mediaId?: string | null;
478
- /** Image width. */
479
- width?: number | null;
480
- /** Image height. */
481
- height?: number | null;
482
- }
483
- interface Position$4 {
484
- /** horizontal coordinate */
485
- x?: number;
486
- /** vertical coordinate */
487
- y?: number;
488
- }
489
- declare enum AllowPolicy$4 {
490
- UNKNOWN = "UNKNOWN",
491
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
492
- OWNER = "OWNER",
493
- ALL_MEMBERS = "ALL_MEMBERS"
494
- }
495
- declare enum StepKey$4 {
496
- UNKNOWN = "UNKNOWN",
497
- CREATE_POST = "CREATE_POST",
498
- REACT_TO_POST = "REACT_TO_POST",
499
- INVITE_MEMBERS = "INVITE_MEMBERS"
500
- }
501
- declare enum PrivacyStatus$4 {
502
- /** Undefined group privacy status. */
503
- UNKNOWN = "UNKNOWN",
504
- /** Anyone can see the group and its content. Anyone can join the group. */
505
- PUBLIC = "PUBLIC",
506
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
507
- PRIVATE = "PRIVATE",
508
- /** Only admins and members can see the group. New members can only be added by other members. */
509
- SECRET = "SECRET"
510
- }
511
- interface GroupDetails$4 {
512
- /** Group logo. You cannot upload your own logo. */
513
- logo?: Logo$4;
514
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
515
- membersTitle?: string | null;
516
- }
517
- interface CoverImage$4 {
518
- /** Cover image. */
519
- image?: Image$4;
520
- /** Position of the corner of the cover image (or logo). */
521
- position?: Position$4;
522
- /** Position of the corner of the cover image (or logo) for mobile browser. */
523
- mobilePosition?: Position$4;
524
- }
525
- interface GroupSettings$4 {
526
- /**
527
- * __Deprecated.__ Use `allowedToInviteMembers` instead.
528
- * Whether regular members are permitted to invite new members.
529
- * If `false`, only admins can invite members. Defaults to `true`.
530
- * @deprecated
531
- */
532
- membersCanInvite?: boolean | null;
533
- /**
534
- * __Deprecated.__ Use `allowedToApproveJoinRequests` instead.
535
- * Whether all group members are permitted to approve join group requests.
536
- * If `false`, member approval is limited to the admins.
537
- * @deprecated
538
- */
539
- membersCanApprove?: boolean | null;
540
- /**
541
- * @internal
542
- * @internal
543
- * @deprecated
544
- */
545
- memberWelcomePostEnabled?: boolean | null;
546
- /** Whether a daily post about new members is enabled. */
547
- welcomeMemberPostEnabled?: boolean | null;
548
- /** Whether an automatic post about changing the group details is enabled. */
549
- groupDetailsChangedPostEnabled?: boolean | null;
550
- /** Whether all members can see the full member list. */
551
- showMemberList?: boolean | null;
552
- }
553
- interface Identity$4 {
554
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
555
- _id?: string | null;
556
- identityType?: IdentityType$4;
557
- }
558
- declare enum IdentityType$4 {
559
- USER = "USER",
560
- MEMBER = "MEMBER"
561
- }
562
- interface CreateGroupRequest {
563
- /** Group to create. */
564
- group: Group$4;
565
- /** ID of the member who created the group. This member will automatically become an admin. */
566
- creatorId?: string | null;
567
- /** Content Type */
568
- contentType?: ContentType;
569
- }
570
- declare enum ContentType {
571
- PLAIN_TEXT = "PLAIN_TEXT",
572
- DRAFTJS = "DRAFTJS",
573
- RICH_CONTENT = "RICH_CONTENT"
574
- }
575
- interface CreateGroupResponse {
576
- /** Created group. */
577
- group?: Group$4;
578
- }
579
- interface UpdateGroupRequest {
580
- /** Group to update. */
581
- group: Group$4;
582
- /** Content Type */
583
- contentType?: ContentType;
584
- }
585
- interface UpdateGroupResponse {
586
- /** Updated group. */
587
- group?: Group$4;
588
- }
589
- interface DeleteGroupRequest {
590
- /** ID of the group to delete. */
591
- groupId: string;
592
- }
593
- interface DeleteGroupResponse {
594
- /** Deleted group. */
595
- group?: Group$4;
596
- }
597
- interface GetGroupRequest {
598
- /** ID of the group to retrieve. */
599
- groupId: string;
600
- /** Content type (PLAIN_TEXT returns content as it is) */
601
- contentType?: ContentType;
602
- }
603
- interface GetGroupResponse {
604
- /** Retrieved group. */
605
- group?: Group$4;
606
- }
607
- interface GetGroupBySlugRequest {
608
- /** Unique part of the group's URL, for example `group-1` in `https:/example.com/groups/group-1`. Pass only the slug. Case-sensitive. */
609
- slug: string;
610
- autoInviteId?: string | null;
611
- /** Content type (PLAIN_TEXT returns content as it is) */
612
- contentType?: ContentType;
613
- }
614
- interface GetGroupBySlugResponse {
615
- /** Retrieved group. */
616
- group?: Group$4;
617
- }
618
- interface ListGroupsRequest {
619
- /** Number of items to load. Maximum `100`. */
620
- limit?: number | null;
621
- /** Number of items to skip in the current sort order. */
622
- offset?: number | null;
623
- /** Content type (PLAIN_TEXT returns content as it is) */
624
- contentType?: ContentType;
625
- }
626
- interface ListGroupsResponse {
627
- /** Retrieved Groups. */
628
- groups?: Group$4[];
629
- metadata?: PagingMetadata$c;
630
- }
631
- interface PagingMetadata$c {
632
- /** Number of items returned in the response. */
633
- count?: number | null;
634
- /** Offset that was requested. */
635
- offset?: number | null;
636
- /** Total number of items that match the query. */
637
- total?: number | null;
638
- /** Flag that indicates the server failed to calculate the `total` field. */
639
- tooManyToCount?: boolean | null;
640
- }
641
- interface QueryGroupsRequest {
642
- query?: Query$a;
643
- /** Content type (PLAIN_TEXT returns content as it is) */
644
- contentType?: ContentType;
645
- }
646
- interface Query$a {
647
- /**
648
- * Filter object in the following format:
649
- * `"filter" : {
650
- * "fieldName1": "value1",
651
- * "fieldName2":{"$operator":"value2"}
652
- * }`
653
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
654
- */
655
- filter?: any;
656
- /**
657
- * Sort object in the following format:
658
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
659
- */
660
- sort?: Sorting$a[];
661
- /** Paging options to limit and skip the number of items. */
662
- paging?: Paging$c;
663
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
664
- fields?: string[];
665
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
666
- fieldsets?: string[];
667
- }
668
- interface Sorting$a {
669
- /** Name of the field to sort by. */
670
- fieldName?: string;
671
- /** Sort order. */
672
- order?: SortOrder$a;
673
- }
674
- declare enum SortOrder$a {
675
- ASC = "ASC",
676
- DESC = "DESC"
677
- }
678
- interface Paging$c {
679
- /** Number of items to load. */
680
- limit?: number | null;
681
- /** Number of items to skip in the current sort order. */
682
- offset?: number | null;
683
- }
684
- interface QueryGroupsResponse {
685
- /** Retrieved groups. */
686
- groups?: Group$4[];
687
- metadata?: PagingMetadata$c;
688
- }
689
- interface EventsNonNullableFields$4 {
690
- eventIds: string[];
691
- }
692
- interface AccessRestrictionNonNullableFields$4 {
693
- events?: EventsNonNullableFields$4;
694
- type: Type$4;
695
- }
696
- interface GroupDetailsPositionNonNullableFields$4 {
697
- x: number;
698
- y: number;
699
- }
700
- interface GroupDetailsNonNullableFields$4 {
701
- logoPosition?: GroupDetailsPositionNonNullableFields$4;
702
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields$4;
703
- }
704
- interface PositionNonNullableFields$4 {
705
- x: number;
706
- y: number;
707
- }
708
- interface CoverImageNonNullableFields$4 {
709
- position?: PositionNonNullableFields$4;
710
- mobilePosition?: PositionNonNullableFields$4;
711
- }
712
- interface OnboardingStepSettingsNonNullableFields$4 {
713
- stepKey: StepKey$4;
714
- visible: boolean;
715
- }
716
- interface GroupSettingsNonNullableFields$4 {
717
- allowedToInviteMembers: AllowPolicy$4;
718
- allowedToApproveJoinRequests: AllowPolicy$4;
719
- allowedToAddMembers: AllowPolicy$4;
720
- allowedToCreatePosts: AllowPolicy$4;
721
- allowedToCommentPosts: AllowPolicy$4;
722
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$4[];
723
- allowedToCreateEvents: AllowPolicy$4;
724
- }
725
- interface IdentityNonNullableFields$4 {
726
- identityType: IdentityType$4;
727
- }
728
- interface GroupNonNullableFields$4 {
729
- privacyLevel: PrivacyStatus$4;
730
- privacyStatus: PrivacyStatus$4;
731
- accessRestriction?: AccessRestrictionNonNullableFields$4;
732
- details?: GroupDetailsNonNullableFields$4;
733
- coverImage?: CoverImageNonNullableFields$4;
734
- settings?: GroupSettingsNonNullableFields$4;
735
- createdBy?: IdentityNonNullableFields$4;
736
- }
737
- interface CreateGroupResponseNonNullableFields {
738
- group?: GroupNonNullableFields$4;
739
- }
740
- interface UpdateGroupResponseNonNullableFields {
741
- group?: GroupNonNullableFields$4;
742
- }
743
- interface DeleteGroupResponseNonNullableFields {
744
- group?: GroupNonNullableFields$4;
745
- }
746
- interface GetGroupResponseNonNullableFields {
747
- group?: GroupNonNullableFields$4;
748
- }
749
- interface GetGroupBySlugResponseNonNullableFields {
750
- group?: GroupNonNullableFields$4;
751
- }
752
- interface ListGroupsResponseNonNullableFields {
753
- groups: GroupNonNullableFields$4[];
754
- }
755
- interface QueryGroupsResponseNonNullableFields {
756
- groups: GroupNonNullableFields$4[];
757
- }
758
-
759
- type __PublicMethodMetaInfo$8<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
760
- getUrl: (context: any) => string;
761
- httpMethod: K;
762
- path: string;
763
- pathParams: M;
764
- __requestType: T;
765
- __originalRequestType: S;
766
- __responseType: Q;
767
- __originalResponseType: R;
768
- };
769
- declare function createGroup(): __PublicMethodMetaInfo$8<'POST', {}, CreateGroupRequest, CreateGroupRequest$1, CreateGroupResponse & CreateGroupResponseNonNullableFields, CreateGroupResponse$1 & CreateGroupResponseNonNullableFields$1>;
770
- declare function updateGroup(): __PublicMethodMetaInfo$8<'PATCH', {
771
- groupId: string;
772
- }, UpdateGroupRequest, UpdateGroupRequest$1, UpdateGroupResponse & UpdateGroupResponseNonNullableFields, UpdateGroupResponse$1 & UpdateGroupResponseNonNullableFields$1>;
773
- declare function deleteGroup(): __PublicMethodMetaInfo$8<'DELETE', {
774
- groupId: string;
775
- }, DeleteGroupRequest, DeleteGroupRequest$1, DeleteGroupResponse & DeleteGroupResponseNonNullableFields, DeleteGroupResponse$1 & DeleteGroupResponseNonNullableFields$1>;
776
- declare function getGroup(): __PublicMethodMetaInfo$8<'GET', {
777
- groupId: string;
778
- }, GetGroupRequest, GetGroupRequest$1, GetGroupResponse & GetGroupResponseNonNullableFields, GetGroupResponse$1 & GetGroupResponseNonNullableFields$1>;
779
- declare function getGroupBySlug(): __PublicMethodMetaInfo$8<'GET', {
780
- slug: string;
781
- }, GetGroupBySlugRequest, GetGroupBySlugRequest$1, GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields, GetGroupBySlugResponse$1 & GetGroupBySlugResponseNonNullableFields$1>;
782
- declare function listGroups(): __PublicMethodMetaInfo$8<'GET', {}, ListGroupsRequest, ListGroupsRequest$1, ListGroupsResponse & ListGroupsResponseNonNullableFields, ListGroupsResponse$1 & ListGroupsResponseNonNullableFields$1>;
783
- declare function queryGroups(): __PublicMethodMetaInfo$8<'POST', {}, QueryGroupsRequest, QueryGroupsRequest$1, QueryGroupsResponse & QueryGroupsResponseNonNullableFields, QueryGroupsResponse$1 & QueryGroupsResponseNonNullableFields$1>;
784
-
785
- declare const meta$8_createGroup: typeof createGroup;
786
- declare const meta$8_deleteGroup: typeof deleteGroup;
787
- declare const meta$8_getGroup: typeof getGroup;
788
- declare const meta$8_getGroupBySlug: typeof getGroupBySlug;
789
- declare const meta$8_listGroups: typeof listGroups;
790
- declare const meta$8_queryGroups: typeof queryGroups;
791
- declare const meta$8_updateGroup: typeof updateGroup;
792
- declare namespace meta$8 {
793
- export { type __PublicMethodMetaInfo$8 as __PublicMethodMetaInfo, meta$8_createGroup as createGroup, meta$8_deleteGroup as deleteGroup, meta$8_getGroup as getGroup, meta$8_getGroupBySlug as getGroupBySlug, meta$8_listGroups as listGroups, meta$8_queryGroups as queryGroups, meta$8_updateGroup as updateGroup };
794
- }
795
-
796
- interface GroupMember$1 {
797
- /**
798
- * __Deprecated.__ Use `memberId` instead.
799
- * This property will be removed on June 30, 2022.
800
- * @readonly
801
- * @deprecated
802
- */
803
- siteMemberId?: string;
804
- /**
805
- * Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details.
806
- * @readonly
807
- */
808
- memberId?: string;
809
- /** Group Member Role. */
810
- role?: GroupRole$3;
811
- /**
812
- * Date and time the group Member joined the group.
813
- * @readonly
814
- */
815
- joinedDate?: Date | null;
816
- }
817
- /**
818
- * A group member may have multiple roles in a single group.
819
- * Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
820
- */
821
- interface GroupRole$3 {
822
- /** Member's role. */
823
- value?: Role$3;
824
- }
825
- declare enum Role$3 {
826
- /** Undefined group member role. */
827
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
828
- /** Regular group member. */
829
- MEMBER = "MEMBER",
830
- /** Group administrator. */
831
- ADMIN = "ADMIN"
832
- }
833
- interface AddGroupMembersRequest$1 {
834
- /** Group ID. */
835
- groupId: string;
836
- /**
837
- * __Deprecated.__ Use `memberIds` instead.
838
- * This parameter will be removed on June 30, 2022.
839
- * @deprecated
840
- */
841
- siteMemberIds?: string[];
842
- /** Member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
843
- memberIds?: string[];
844
- }
845
- interface AddGroupMembersResponse$1 {
846
- /** New members. */
847
- members?: GroupMember$1[];
848
- }
849
- interface RemoveGroupMembersRequest$1 {
850
- /** Group ID. */
851
- groupId: string;
852
- /**
853
- * __Deprecated.__ Use `memberIds` instead.
854
- * This parameter will be removed on June 30, 2022.
855
- * @deprecated
856
- */
857
- siteMemberIds?: string[];
858
- /** Member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
859
- memberIds?: string[];
860
- }
861
- interface RemoveGroupMembersResponse$1 {
862
- }
863
- interface ListGroupMembersRequest$1 {
864
- /** Group ID. */
865
- groupId: string;
866
- /** Number of items to load. Maximum `100.` */
867
- limit?: number | null;
868
- /** Number of items to skip in the current sort order. */
869
- offset?: number | null;
870
- }
871
- interface ListGroupMembersResponse$1 {
872
- /** Retrieved members. */
873
- members?: GroupMember$1[];
874
- /** Paging information. */
875
- metadata?: PagingMetadata$b;
876
- }
877
- interface PagingMetadata$b {
878
- /** Number of items returned in the response. */
879
- count?: number | null;
880
- /** Offset that was requested. */
881
- offset?: number | null;
882
- /** Total number of items that match the query. */
883
- total?: number | null;
884
- /** Flag that indicates the server failed to calculate the `total` field. */
885
- tooManyToCount?: boolean | null;
886
- }
887
- interface QueryGroupMembersRequest$1 {
888
- /** Group ID. */
889
- groupId: string;
890
- query?: Query$9;
891
- }
892
- interface Query$9 {
893
- /**
894
- * Filter object in the following format:
895
- * `"filter" : {
896
- * "fieldName1": "value1",
897
- * "fieldName2":{"$operator":"value2"}
898
- * }`
899
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
900
- */
901
- filter?: any;
902
- /**
903
- * Sort object in the following format:
904
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
905
- */
906
- sort?: Sorting$9[];
907
- /** Paging options to limit and skip the number of items. */
908
- paging?: Paging$b;
909
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
910
- fields?: string[];
911
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
912
- fieldsets?: string[];
913
- }
914
- interface Sorting$9 {
915
- /** Name of the field to sort by. */
916
- fieldName?: string;
917
- /** Sort order. */
918
- order?: SortOrder$9;
919
- }
920
- declare enum SortOrder$9 {
921
- ASC = "ASC",
922
- DESC = "DESC"
923
- }
924
- interface Paging$b {
925
- /** Number of items to load. */
926
- limit?: number | null;
927
- /** Number of items to skip in the current sort order. */
928
- offset?: number | null;
929
- }
930
- interface QueryGroupMembersResponse$1 {
931
- /** Group members. */
932
- members?: GroupMember$1[];
933
- /** Paging information. */
934
- metadata?: PagingMetadata$b;
935
- }
936
- interface ListMembershipsRequest$1 {
937
- /** Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
938
- memberId: string | null;
939
- /** Number of items to load. */
940
- limit?: number | null;
941
- /** Number of items to skip in the current sort order. */
942
- offset?: number | null;
943
- }
944
- interface ListMembershipsResponse$1 {
945
- /** Site member's memberships. */
946
- memberships?: Membership$1[];
947
- /** Paging information. */
948
- metadata?: PagingMetadata$b;
949
- }
950
- interface Membership$1 {
951
- /**
952
- * Group ID.
953
- * @readonly
954
- */
955
- groupId?: string;
956
- /** Membership status with group. */
957
- status?: MembershipStatus$1;
958
- /** Group member role. When membership status is not `JOINED`, this is empty. */
959
- role?: GroupRole$3;
960
- }
961
- declare enum MembershipStatus$1 {
962
- /** Undefined membership status. */
963
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
964
- /** Site member is a group member. */
965
- JOINED = "JOINED",
966
- /** Site member has submitted a Join Request for this group that is still `PENDING`. */
967
- PENDING = "PENDING"
968
- }
969
- interface QueryMembershipsRequest$1 {
970
- /**
971
- * __Deprecated.__ Use the `memberId` path parameter instead.
972
- * This parameter will be removed on June 30, 2022.
973
- * @deprecated
974
- */
975
- siteMemberId?: string | null;
976
- /** Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
977
- memberId: string | null;
978
- query?: Query$9;
979
- }
980
- interface QueryMembershipsResponse$1 {
981
- /** Site member's memberships. */
982
- memberships?: Membership$1[];
983
- /** Paging information. */
984
- metadata?: PagingMetadata$b;
985
- }
986
- interface GroupRoleNonNullableFields$3 {
987
- value: Role$3;
988
- }
989
- interface GroupMemberNonNullableFields$1 {
990
- siteMemberId: string;
991
- memberId: string;
992
- role?: GroupRoleNonNullableFields$3;
993
- }
994
- interface AddGroupMembersResponseNonNullableFields$1 {
995
- members: GroupMemberNonNullableFields$1[];
996
- }
997
- interface ListGroupMembersResponseNonNullableFields$1 {
998
- members: GroupMemberNonNullableFields$1[];
999
- }
1000
- interface QueryGroupMembersResponseNonNullableFields$1 {
1001
- members: GroupMemberNonNullableFields$1[];
1002
- }
1003
- interface MembershipNonNullableFields$1 {
1004
- groupId: string;
1005
- status: MembershipStatus$1;
1006
- role?: GroupRoleNonNullableFields$3;
1007
- }
1008
- interface ListMembershipsResponseNonNullableFields$1 {
1009
- memberships: MembershipNonNullableFields$1[];
1010
- }
1011
- interface QueryMembershipsResponseNonNullableFields$1 {
1012
- memberships: MembershipNonNullableFields$1[];
1013
- }
1014
-
1015
- interface GroupMember {
1016
- /**
1017
- * @internal
1018
- * @internal
1019
- * @readonly
1020
- * @deprecated
1021
- */
1022
- siteMemberId?: string;
1023
- /**
1024
- * Site member ID.
1025
- * @readonly
1026
- */
1027
- memberId?: string;
1028
- /** Group Member Role. */
1029
- role?: GroupRole$2;
1030
- /**
1031
- * Date and time the group Member joined the group.
1032
- * @readonly
1033
- */
1034
- joinedDate?: Date | null;
1035
- }
1036
- /**
1037
- * A group member may have multiple roles in a single group.
1038
- * Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
1039
- */
1040
- interface GroupRole$2 {
1041
- /**
1042
- * Group member role. One of:
1043
- * - `"MEMBER"` - Regular group member.
1044
- * - `"ADMIN"` - Group administrator.
1045
- */
1046
- value?: Role$2;
1047
- }
1048
- declare enum Role$2 {
1049
- /** Undefined group member role. */
1050
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
1051
- /** Regular group member. */
1052
- MEMBER = "MEMBER",
1053
- /** Group administrator. */
1054
- ADMIN = "ADMIN"
1055
- }
1056
- interface AddGroupMembersRequest {
1057
- /** Group ID. */
1058
- groupId: string;
1059
- /**
1060
- * @internal
1061
- * @internal
1062
- * @deprecated
1063
- */
1064
- siteMemberIds?: string[];
1065
- /**
1066
- * IDs of the site members to add to the group.
1067
- *
1068
- *
1069
- */
1070
- memberIds?: string[];
1071
- }
1072
- interface AddGroupMembersResponse {
1073
- /** New members. */
1074
- members?: GroupMember[];
1075
- }
1076
- interface RemoveGroupMembersRequest {
1077
- /** Group ID. */
1078
- groupId: string;
1079
- /**
1080
- * @internal
1081
- * @internal
1082
- * @deprecated
1083
- */
1084
- siteMemberIds?: string[];
1085
- /** IDs of the site members to remove from the group. */
1086
- memberIds?: string[];
1087
- }
1088
- interface RemoveGroupMembersResponse {
1089
- }
1090
- interface ListGroupMembersRequest {
1091
- /** Group ID. */
1092
- groupId: string;
1093
- /** Number of items to load. Maximum `100.` */
1094
- limit?: number | null;
1095
- /** Number of group members to skip in the list. */
1096
- offset?: number | null;
1097
- }
1098
- interface ListGroupMembersResponse {
1099
- /** Retrieved members. */
1100
- members?: GroupMember[];
1101
- /** Paging information. */
1102
- metadata?: PagingMetadata$a;
1103
- }
1104
- interface PagingMetadata$a {
1105
- /** Number of items returned in the response. */
1106
- count?: number | null;
1107
- /** Offset that was requested. */
1108
- offset?: number | null;
1109
- /** Total number of items that match the query. */
1110
- total?: number | null;
1111
- /** Flag that indicates the server failed to calculate the `total` field. */
1112
- tooManyToCount?: boolean | null;
1113
- }
1114
- interface QueryGroupMembersRequest {
1115
- /** Group ID. */
1116
- groupId: string;
1117
- query?: Query$8;
1118
- }
1119
- interface Query$8 {
1120
- /**
1121
- * Filter object in the following format:
1122
- * `"filter" : {
1123
- * "fieldName1": "value1",
1124
- * "fieldName2":{"$operator":"value2"}
1125
- * }`
1126
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1127
- */
1128
- filter?: any;
1129
- /**
1130
- * Sort object in the following format:
1131
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1132
- */
1133
- sort?: Sorting$8[];
1134
- /** Paging options to limit and skip the number of items. */
1135
- paging?: Paging$a;
1136
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1137
- fields?: string[];
1138
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1139
- fieldsets?: string[];
1140
- }
1141
- interface Sorting$8 {
1142
- /** Name of the field to sort by. */
1143
- fieldName?: string;
1144
- /** Sort order. */
1145
- order?: SortOrder$8;
1146
- }
1147
- declare enum SortOrder$8 {
1148
- ASC = "ASC",
1149
- DESC = "DESC"
1150
- }
1151
- interface Paging$a {
1152
- /** Number of items to load. */
1153
- limit?: number | null;
1154
- /** Number of items to skip in the current sort order. */
1155
- offset?: number | null;
1156
- }
1157
- interface QueryGroupMembersResponse {
1158
- /** Group members. */
1159
- members?: GroupMember[];
1160
- /** Paging information. */
1161
- metadata?: PagingMetadata$a;
1162
- }
1163
- interface ListMembershipsRequest {
1164
- /** Site member ID. */
1165
- memberId: string | null;
1166
- /** Number of items to load. */
1167
- limit?: number | null;
1168
- /** Number of memberships to skip in the list. */
1169
- offset?: number | null;
1170
- }
1171
- interface ListMembershipsResponse {
1172
- /** Site member's memberships. */
1173
- memberships?: Membership[];
1174
- /** Paging information. */
1175
- metadata?: PagingMetadata$a;
1176
- }
1177
- interface Membership {
1178
- /**
1179
- * Group ID.
1180
- * @readonly
1181
- */
1182
- groupId?: string;
1183
- /**
1184
- * Membership status with Group
1185
- * - `"JOINED"` - Site member is a group member.
1186
- * - `"PENDING"` - Site member has submitted a Join Request for this group that is still `"PENDING"`.
1187
- */
1188
- status?: MembershipStatus;
1189
- /** Group member role. When membership status is not `JOINED`, this is empty. */
1190
- role?: GroupRole$2;
1191
- }
1192
- declare enum MembershipStatus {
1193
- /** Undefined membership status. */
1194
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
1195
- /** Site member is a group member. */
1196
- JOINED = "JOINED",
1197
- /** Site member has submitted a Join Request for this group that is still `PENDING`. */
1198
- PENDING = "PENDING"
1199
- }
1200
- interface QueryMembershipsRequest {
1201
- /**
1202
- * @internal
1203
- * @internal
1204
- * @deprecated
1205
- */
1206
- siteMemberId?: string | null;
1207
- /** Site member ID. */
1208
- memberId: string | null;
1209
- query?: Query$8;
1210
- }
1211
- interface QueryMembershipsResponse {
1212
- /** Site member's memberships. */
1213
- memberships?: Membership[];
1214
- /** Paging information. */
1215
- metadata?: PagingMetadata$a;
1216
- }
1217
- interface GroupRoleNonNullableFields$2 {
1218
- value: Role$2;
1219
- }
1220
- interface GroupMemberNonNullableFields {
1221
- siteMemberId: string;
1222
- memberId: string;
1223
- role?: GroupRoleNonNullableFields$2;
1224
- }
1225
- interface AddGroupMembersResponseNonNullableFields {
1226
- members: GroupMemberNonNullableFields[];
1227
- }
1228
- interface ListGroupMembersResponseNonNullableFields {
1229
- members: GroupMemberNonNullableFields[];
1230
- }
1231
- interface QueryGroupMembersResponseNonNullableFields {
1232
- members: GroupMemberNonNullableFields[];
1233
- }
1234
- interface MembershipNonNullableFields {
1235
- groupId: string;
1236
- status: MembershipStatus;
1237
- role?: GroupRoleNonNullableFields$2;
1238
- }
1239
- interface ListMembershipsResponseNonNullableFields {
1240
- memberships: MembershipNonNullableFields[];
1241
- }
1242
- interface QueryMembershipsResponseNonNullableFields {
1243
- memberships: MembershipNonNullableFields[];
1244
- }
1245
-
1246
- type __PublicMethodMetaInfo$7<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1247
- getUrl: (context: any) => string;
1248
- httpMethod: K;
1249
- path: string;
1250
- pathParams: M;
1251
- __requestType: T;
1252
- __originalRequestType: S;
1253
- __responseType: Q;
1254
- __originalResponseType: R;
1255
- };
1256
- declare function addGroupMembers(): __PublicMethodMetaInfo$7<'POST', {
1257
- groupId: string;
1258
- }, AddGroupMembersRequest, AddGroupMembersRequest$1, AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields, AddGroupMembersResponse$1 & AddGroupMembersResponseNonNullableFields$1>;
1259
- declare function removeGroupMembers(): __PublicMethodMetaInfo$7<'DELETE', {
1260
- groupId: string;
1261
- }, RemoveGroupMembersRequest, RemoveGroupMembersRequest$1, RemoveGroupMembersResponse, RemoveGroupMembersResponse$1>;
1262
- declare function listGroupMembers(): __PublicMethodMetaInfo$7<'GET', {
1263
- groupId: string;
1264
- }, ListGroupMembersRequest, ListGroupMembersRequest$1, ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields, ListGroupMembersResponse$1 & ListGroupMembersResponseNonNullableFields$1>;
1265
- declare function queryGroupMembers(): __PublicMethodMetaInfo$7<'POST', {
1266
- groupId: string;
1267
- }, QueryGroupMembersRequest, QueryGroupMembersRequest$1, QueryGroupMembersResponse & QueryGroupMembersResponseNonNullableFields, QueryGroupMembersResponse$1 & QueryGroupMembersResponseNonNullableFields$1>;
1268
- declare function listMemberships(): __PublicMethodMetaInfo$7<'GET', {
1269
- memberId: string;
1270
- }, ListMembershipsRequest, ListMembershipsRequest$1, ListMembershipsResponse & ListMembershipsResponseNonNullableFields, ListMembershipsResponse$1 & ListMembershipsResponseNonNullableFields$1>;
1271
- declare function queryMemberships(): __PublicMethodMetaInfo$7<'POST', {
1272
- memberId: string;
1273
- }, QueryMembershipsRequest, QueryMembershipsRequest$1, QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields, QueryMembershipsResponse$1 & QueryMembershipsResponseNonNullableFields$1>;
1274
-
1275
- declare const meta$7_addGroupMembers: typeof addGroupMembers;
1276
- declare const meta$7_listGroupMembers: typeof listGroupMembers;
1277
- declare const meta$7_listMemberships: typeof listMemberships;
1278
- declare const meta$7_queryGroupMembers: typeof queryGroupMembers;
1279
- declare const meta$7_queryMemberships: typeof queryMemberships;
1280
- declare const meta$7_removeGroupMembers: typeof removeGroupMembers;
1281
- declare namespace meta$7 {
1282
- export { type __PublicMethodMetaInfo$7 as __PublicMethodMetaInfo, meta$7_addGroupMembers as addGroupMembers, meta$7_listGroupMembers as listGroupMembers, meta$7_listMemberships as listMemberships, meta$7_queryGroupMembers as queryGroupMembers, meta$7_queryMemberships as queryMemberships, meta$7_removeGroupMembers as removeGroupMembers };
1283
- }
1284
-
1285
- /**
1286
- * >**Notes:**
1287
- * > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
1288
- * > + In this situation, site members have to submit a Group Request to create a new group.
1289
- * > + Group Requests can be approved or rejected by an admin.
1290
- * > + After a Group Request has been approved, the new group is added to the Group List in the Wix Groups app home page.
1291
- * > + See [About Wix Groups](https://dev.wix.com/docs/rest/crm/community/groups/introduction) for more details.
1292
- */
1293
- interface GroupRequest$1 {
1294
- /**
1295
- * Group request ID
1296
- * @readonly
1297
- */
1298
- id?: string | null;
1299
- /** Group requested for creation. */
1300
- group?: Group$3;
1301
- /** Status of group request. */
1302
- status?: RequestStatus$7;
1303
- /** Group request details. */
1304
- requestDetails?: RequestDetails$7;
1305
- }
1306
- interface Group$3 {
1307
- /**
1308
- * Group ID.
1309
- * @readonly
1310
- */
1311
- id?: string | null;
1312
- /** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
1313
- slug?: string | null;
1314
- /**
1315
- * __Deprecated.__ Use `privacyStatus` instead.
1316
- * This property will be removed on June 30, 2022.
1317
- * @deprecated
1318
- */
1319
- privacyLevel?: PrivacyStatus$3;
1320
- /** Group privacy status. */
1321
- privacyStatus?: PrivacyStatus$3;
1322
- /**
1323
- * __Deprecated.__ Use `name` instead.
1324
- * This property will be removed on June 30, 2022.
1325
- * @deprecated
1326
- */
1327
- title?: string | null;
1328
- /** Group name. */
1329
- name?: string | null;
1330
- /** Group description in DraftJS format. */
1331
- description?: string | null;
1332
- /** Group teaser. */
1333
- teaser?: string | null;
1334
- /**
1335
- * __Deprecated.__
1336
- * For `details.logo`, use `coverImage` instead.
1337
- * For `details.membersTitle`, `memberTitle` instead.
1338
- * This property will be removed on June 30, 2022.
1339
- * @deprecated
1340
- */
1341
- details?: GroupDetails$3;
1342
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
1343
- memberTitle?: string | null;
1344
- /** Cover image. You cannot upload your own cover image. */
1345
- coverImage?: CoverImage$3;
1346
- /** Group specific settings. Available to the site owners under `Admin Tools` in the dashboard. */
1347
- settings?: GroupSettings$3;
1348
- /**
1349
- * Total count of current group members.
1350
- * @readonly
1351
- */
1352
- membersCount?: number | null;
1353
- /**
1354
- * __Deprecated.__ Use `ownerId` instead.
1355
- * This property will be removed on June 30, 2022.
1356
- * @readonly
1357
- * @deprecated
1358
- */
1359
- createdBy?: Identity$3;
1360
- /**
1361
- * Group owner.
1362
- * @readonly
1363
- */
1364
- ownerId?: string | null;
1365
- /**
1366
- * Group creation date and time.
1367
- * @readonly
1368
- */
1369
- createdDate?: Date | null;
1370
- /**
1371
- * Date and time of the latest group update.
1372
- * @readonly
1373
- */
1374
- updatedDate?: Date | null;
1375
- /**
1376
- * __Deprecated.__ Use `lastActivityDate` instead.
1377
- * This property will be removed on June 30, 2022.
1378
- * @readonly
1379
- * @deprecated
1380
- */
1381
- recentActivityDate?: Date | null;
1382
- /**
1383
- * Date and time of the most recent group activity, for example a post or comment.
1384
- * @readonly
1385
- */
1386
- lastActivityDate?: Date | null;
1387
- }
1388
- declare enum Type$3 {
1389
- UNKNOWN = "UNKNOWN",
1390
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
1391
- PAID_PLANS = "PAID_PLANS",
1392
- EVENTS = "EVENTS"
1393
- }
1394
- interface Logo$3 {
1395
- /** Logo image ID (for internal use). */
1396
- mediaId?: string | null;
1397
- /** Logo image width. */
1398
- width?: number | null;
1399
- /** Logo image height. */
1400
- height?: number | null;
1401
- }
1402
- interface Image$3 {
1403
- /** Image ID (for internal use). */
1404
- mediaId?: string | null;
1405
- /** Image width. */
1406
- width?: number | null;
1407
- /** Image height. */
1408
- height?: number | null;
1409
- }
1410
- interface Position$3 {
1411
- /** horizontal coordinate */
1412
- x?: number;
1413
- /** vertical coordinate */
1414
- y?: number;
1415
- }
1416
- declare enum AllowPolicy$3 {
1417
- UNKNOWN = "UNKNOWN",
1418
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
1419
- OWNER = "OWNER",
1420
- ALL_MEMBERS = "ALL_MEMBERS"
1421
- }
1422
- declare enum StepKey$3 {
1423
- UNKNOWN = "UNKNOWN",
1424
- CREATE_POST = "CREATE_POST",
1425
- REACT_TO_POST = "REACT_TO_POST",
1426
- INVITE_MEMBERS = "INVITE_MEMBERS"
1427
- }
1428
- declare enum PrivacyStatus$3 {
1429
- /** Undefined group privacy status. */
1430
- UNKNOWN = "UNKNOWN",
1431
- /** Anyone can see the group and its content. Anyone can join the group. */
1432
- PUBLIC = "PUBLIC",
1433
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
1434
- PRIVATE = "PRIVATE",
1435
- /** Only admins and members can see the group. New members can only be added by other members. */
1436
- SECRET = "SECRET"
1437
- }
1438
- interface GroupDetails$3 {
1439
- /** Group logo. You cannot upload your own logo. */
1440
- logo?: Logo$3;
1441
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
1442
- membersTitle?: string | null;
1443
- }
1444
- interface CoverImage$3 {
1445
- /** Cover image. */
1446
- image?: Image$3;
1447
- /** Position of the corner of the cover image (or logo). */
1448
- position?: Position$3;
1449
- /** Position of the corner of the cover image (or logo) for mobile browser. */
1450
- mobilePosition?: Position$3;
1451
- }
1452
- interface GroupSettings$3 {
1453
- /**
1454
- * __Deprecated.__ Use `allowedToInviteMembers` instead.
1455
- * Whether regular members are permitted to invite new members.
1456
- * If `false`, only admins can invite members. Defaults to `true`.
1457
- * @deprecated
1458
- */
1459
- membersCanInvite?: boolean | null;
1460
- /**
1461
- * __Deprecated.__ Use `allowedToApproveJoinRequests` instead.
1462
- * Whether all group members are permitted to approve join group requests.
1463
- * If `false`, member approval is limited to the admins.
1464
- * @deprecated
1465
- */
1466
- membersCanApprove?: boolean | null;
1467
- /**
1468
- * __Deprecated.__ Use `welcomeMemberPostEnabled` instead.
1469
- * This property will be removed on June 30, 2022.
1470
- * @deprecated
1471
- */
1472
- memberWelcomePostEnabled?: boolean | null;
1473
- /** Whether a daily post about new members is enabled. */
1474
- welcomeMemberPostEnabled?: boolean | null;
1475
- /** Whether an automatic post about changing the group details is enabled. */
1476
- groupDetailsChangedPostEnabled?: boolean | null;
1477
- /** Whether all members can see the full member list. */
1478
- showMemberList?: boolean | null;
1479
- }
1480
- interface Identity$3 {
1481
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
1482
- id?: string | null;
1483
- identityType?: IdentityType$3;
1484
- }
1485
- declare enum IdentityType$3 {
1486
- USER = "USER",
1487
- MEMBER = "MEMBER"
1488
- }
1489
- declare enum RequestStatus$7 {
1490
- /** Undefined request status. */
1491
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
1492
- /** Pending group request. */
1493
- PENDING = "PENDING",
1494
- /** Approved group request. */
1495
- APPROVED = "APPROVED",
1496
- /** Rejected group request. */
1497
- REJECTED = "REJECTED",
1498
- /** Cancelled group request. */
1499
- CANCELLED = "CANCELLED",
1500
- /** Canceled group request. */
1501
- CANCELED = "CANCELED"
1502
- }
1503
- interface RequestDetails$7 {
1504
- /** Reason the request has been rejected. */
1505
- rejectionReason?: string | null;
1506
- }
1507
- interface ApproveGroupRequestsRequest$1 {
1508
- /** Group Request IDs to approve. Limited to `100`. */
1509
- groupRequestIds?: string[];
1510
- }
1511
- interface ApproveGroupRequestsResponse$1 {
1512
- /** Approved Group Requests. */
1513
- groupRequest?: GroupRequest$1[];
1514
- }
1515
- interface RejectGroupRequestsRequest$1 {
1516
- /** Rejection data. */
1517
- rejections?: Rejection$7[];
1518
- }
1519
- interface Rejection$7 {
1520
- /** ID of the Group Request to reject. */
1521
- groupRequestId?: string;
1522
- /** Rejection reason. Free text displayed to the creator of the rejected Group Request. Limited to 1,000 characters. */
1523
- reason?: string | null;
1524
- }
1525
- interface RejectGroupRequestsResponse$1 {
1526
- /** Rejected Group Requests. */
1527
- groupRequest?: GroupRequest$1[];
1528
- }
1529
- interface ListGroupRequestsRequest$1 {
1530
- /** Number of items to load. Maximum `100`. */
1531
- limit?: number | null;
1532
- /** Number of items to skip in the current sort order. */
1533
- offset?: number | null;
1534
- }
1535
- interface ListGroupRequestsResponse$1 {
1536
- /** Group Requests. */
1537
- groupRequests?: GroupRequest$1[];
1538
- metadata?: PagingMetadata$9;
1539
- }
1540
- interface PagingMetadata$9 {
1541
- /** Number of items returned in the response. */
1542
- count?: number | null;
1543
- /** Offset that was requested. */
1544
- offset?: number | null;
1545
- /** Total number of items that match the query. */
1546
- total?: number | null;
1547
- /** Flag that indicates the server failed to calculate the `total` field. */
1548
- tooManyToCount?: boolean | null;
1549
- }
1550
- interface QueryGroupRequestsRequest$1 {
1551
- query?: Query$7;
1552
- }
1553
- interface Query$7 {
1554
- /**
1555
- * Filter object in the following format:
1556
- * `"filter" : {
1557
- * "fieldName1": "value1",
1558
- * "fieldName2":{"$operator":"value2"}
1559
- * }`
1560
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1561
- */
1562
- filter?: any;
1563
- /**
1564
- * Sort object in the following format:
1565
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1566
- */
1567
- sort?: Sorting$7[];
1568
- /** Paging options to limit and skip the number of items. */
1569
- paging?: Paging$9;
1570
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1571
- fields?: string[];
1572
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1573
- fieldsets?: string[];
1574
- }
1575
- interface Sorting$7 {
1576
- /** Name of the field to sort by. */
1577
- fieldName?: string;
1578
- /** Sort order. */
1579
- order?: SortOrder$7;
1580
- }
1581
- declare enum SortOrder$7 {
1582
- ASC = "ASC",
1583
- DESC = "DESC"
1584
- }
1585
- interface Paging$9 {
1586
- /** Number of items to load. */
1587
- limit?: number | null;
1588
- /** Number of items to skip in the current sort order. */
1589
- offset?: number | null;
1590
- }
1591
- interface QueryGroupRequestsResponse$1 {
1592
- /** Retrieved Group Requests. */
1593
- groupRequests?: GroupRequest$1[];
1594
- metadata?: PagingMetadata$9;
1595
- }
1596
- interface EventsNonNullableFields$3 {
1597
- eventIds: string[];
1598
- }
1599
- interface AccessRestrictionNonNullableFields$3 {
1600
- events?: EventsNonNullableFields$3;
1601
- type: Type$3;
1602
- }
1603
- interface GroupDetailsPositionNonNullableFields$3 {
1604
- x: number;
1605
- y: number;
1606
- }
1607
- interface GroupDetailsNonNullableFields$3 {
1608
- logoPosition?: GroupDetailsPositionNonNullableFields$3;
1609
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields$3;
1610
- }
1611
- interface PositionNonNullableFields$3 {
1612
- x: number;
1613
- y: number;
1614
- }
1615
- interface CoverImageNonNullableFields$3 {
1616
- position?: PositionNonNullableFields$3;
1617
- mobilePosition?: PositionNonNullableFields$3;
1618
- }
1619
- interface OnboardingStepSettingsNonNullableFields$3 {
1620
- stepKey: StepKey$3;
1621
- visible: boolean;
1622
- }
1623
- interface GroupSettingsNonNullableFields$3 {
1624
- allowedToInviteMembers: AllowPolicy$3;
1625
- allowedToApproveJoinRequests: AllowPolicy$3;
1626
- allowedToAddMembers: AllowPolicy$3;
1627
- allowedToCreatePosts: AllowPolicy$3;
1628
- allowedToCommentPosts: AllowPolicy$3;
1629
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$3[];
1630
- allowedToCreateEvents: AllowPolicy$3;
1631
- }
1632
- interface IdentityNonNullableFields$3 {
1633
- identityType: IdentityType$3;
1634
- }
1635
- interface GroupNonNullableFields$3 {
1636
- privacyLevel: PrivacyStatus$3;
1637
- privacyStatus: PrivacyStatus$3;
1638
- accessRestriction?: AccessRestrictionNonNullableFields$3;
1639
- details?: GroupDetailsNonNullableFields$3;
1640
- coverImage?: CoverImageNonNullableFields$3;
1641
- settings?: GroupSettingsNonNullableFields$3;
1642
- createdBy?: IdentityNonNullableFields$3;
1643
- }
1644
- interface GroupRequestNonNullableFields$1 {
1645
- group?: GroupNonNullableFields$3;
1646
- status: RequestStatus$7;
1647
- }
1648
- interface ApproveGroupRequestsResponseNonNullableFields$1 {
1649
- groupRequest: GroupRequestNonNullableFields$1[];
1650
- }
1651
- interface RejectGroupRequestsResponseNonNullableFields$1 {
1652
- groupRequest: GroupRequestNonNullableFields$1[];
1653
- }
1654
- interface ListGroupRequestsResponseNonNullableFields$1 {
1655
- groupRequests: GroupRequestNonNullableFields$1[];
1656
- }
1657
- interface QueryGroupRequestsResponseNonNullableFields$1 {
1658
- groupRequests: GroupRequestNonNullableFields$1[];
1659
- }
1660
-
1661
- /**
1662
- * >**Notes:**
1663
- * > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
1664
- * > + In this situation, site members have to submit a Group Request to create a new group.
1665
- * > + Group Requests can be approved or rejected by an admin.
1666
- * > + After a Group Request has been approved, the new group is added to the Group List in the Wix Groups app home page.
1667
- * > + See [About Wix Groups](https://dev.wix.com/docs/rest/crm/community/groups/introduction) for more details.
1668
- */
1669
- interface GroupRequest {
1670
- /**
1671
- * ID of the request to create a group. Same as group ID.
1672
- * @readonly
1673
- */
1674
- _id?: string | null;
1675
- /** Group requested to create. */
1676
- group?: Group$2;
1677
- /**
1678
- * Status of the request to create a group. One of:
1679
- * - `"PENDING"` - Pending group request.
1680
- * - `"APPROVED"` - Approved group request.
1681
- * - `"REJECTED"` - Rejected group request.
1682
- * - `"CANCELED"` - Canceled group request.
1683
- */
1684
- status?: RequestStatus$6;
1685
- /** Details of request to create a group. */
1686
- requestDetails?: RequestDetails$6;
1687
- }
1688
- interface Group$2 {
1689
- /**
1690
- * Group ID.
1691
- * @readonly
1692
- */
1693
- _id?: string | null;
1694
- /**
1695
- * Part of a group's URL.
1696
- *
1697
- * For example, `'https:/example.com/groups/{my-group-slug}'`. Generally based on the group name, but for secret groups it is an autogenerated string of characters, for example, `'https:/example.com/groups/{5D3yTX}'`. It is case-sensitive.
1698
- */
1699
- slug?: string | null;
1700
- /**
1701
- * @internal
1702
- * @internal
1703
- * @deprecated
1704
- */
1705
- privacyLevel?: PrivacyStatus$2;
1706
- /**
1707
- * Group privacy status.
1708
- * - `"PUBLIC"` - Site visitors can see the group and its content in the list of groups. Members can join the group.
1709
- * - `"PRIVATE"` - Site visitors can see the group in the list of groups, but only site members can see its content. Members can request to join the group.
1710
- * - `"SECRET"` - Only admins and group members can see the group and its content in the list of groups. Members can only join a group if invited by group admins, or other group members.
1711
- */
1712
- privacyStatus?: PrivacyStatus$2;
1713
- /**
1714
- * @interal
1715
- * @interal
1716
- * @deprecated
1717
- */
1718
- title?: string | null;
1719
- /** Group name. */
1720
- name?: string | null;
1721
- /** Group Description. */
1722
- description?: string | null;
1723
- /** Group teaser. */
1724
- teaser?: string | null;
1725
- /**
1726
- * @internal
1727
- * @internal
1728
- * @deprecated
1729
- */
1730
- details?: GroupDetails$2;
1731
- /**
1732
- * What group members are called.
1733
- *
1734
- * For example, 'Coworkers', 'Friends', or 'Students'.
1735
- */
1736
- memberTitle?: string | null;
1737
- /**
1738
- * Group cover image. You cannot upload your own cover image.
1739
- *
1740
- */
1741
- coverImage?: CoverImage$2;
1742
- /** Group settings. */
1743
- settings?: GroupSettings$2;
1744
- /**
1745
- * Total number of members in the group.
1746
- * @readonly
1747
- */
1748
- membersCount?: number | null;
1749
- /**
1750
- * @internal
1751
- * @internal
1752
- * @readonly
1753
- * @deprecated
1754
- */
1755
- createdBy?: Identity$2;
1756
- /**
1757
- * Member ID of the group creator.
1758
- * @readonly
1759
- */
1760
- ownerId?: string | null;
1761
- /**
1762
- * Date and time the group was created.
1763
- * @readonly
1764
- */
1765
- _createdDate?: Date | null;
1766
- /**
1767
- * Date and time the group was last updated.
1768
- * @readonly
1769
- */
1770
- _updatedDate?: Date | null;
1771
- /**
1772
- * @internal
1773
- * @internal
1774
- * @readonly
1775
- * @deprecated
1776
- */
1777
- recentActivityDate?: Date | null;
1778
- /**
1779
- * Date and time the group was last active.
1780
- *
1781
- * For example, a post or comment made in the group.
1782
- * @readonly
1783
- */
1784
- lastActivityDate?: Date | null;
1785
- }
1786
- declare enum Type$2 {
1787
- UNKNOWN = "UNKNOWN",
1788
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
1789
- PAID_PLANS = "PAID_PLANS",
1790
- EVENTS = "EVENTS"
1791
- }
1792
- interface Logo$2 {
1793
- /** Logo image ID (for internal use). */
1794
- mediaId?: string | null;
1795
- /** Logo image width. */
1796
- width?: number | null;
1797
- /** Logo image height. */
1798
- height?: number | null;
1799
- }
1800
- interface Image$2 {
1801
- /** Image ID (for internal use). */
1802
- mediaId?: string | null;
1803
- /** Image width. */
1804
- width?: number | null;
1805
- /** Image height. */
1806
- height?: number | null;
1807
- }
1808
- interface Position$2 {
1809
- /** horizontal coordinate */
1810
- x?: number;
1811
- /** vertical coordinate */
1812
- y?: number;
1813
- }
1814
- declare enum AllowPolicy$2 {
1815
- UNKNOWN = "UNKNOWN",
1816
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
1817
- OWNER = "OWNER",
1818
- ALL_MEMBERS = "ALL_MEMBERS"
1819
- }
1820
- declare enum StepKey$2 {
1821
- UNKNOWN = "UNKNOWN",
1822
- CREATE_POST = "CREATE_POST",
1823
- REACT_TO_POST = "REACT_TO_POST",
1824
- INVITE_MEMBERS = "INVITE_MEMBERS"
1825
- }
1826
- declare enum PrivacyStatus$2 {
1827
- /** Undefined group privacy status. */
1828
- UNKNOWN = "UNKNOWN",
1829
- /** Anyone can see the group and its content. Anyone can join the group. */
1830
- PUBLIC = "PUBLIC",
1831
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
1832
- PRIVATE = "PRIVATE",
1833
- /** Only admins and members can see the group. New members can only be added by other members. */
1834
- SECRET = "SECRET"
1835
- }
1836
- interface GroupDetails$2 {
1837
- /** Group logo. You cannot upload your own logo. */
1838
- logo?: Logo$2;
1839
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
1840
- membersTitle?: string | null;
1841
- }
1842
- interface CoverImage$2 {
1843
- /** Cover image. */
1844
- image?: Image$2;
1845
- /** Position of the corner of the cover image (or logo). */
1846
- position?: Position$2;
1847
- /** Position of the corner of the cover image (or logo) for mobile browser. */
1848
- mobilePosition?: Position$2;
1849
- }
1850
- interface GroupSettings$2 {
1851
- /**
1852
- * Whether group members can send an email inviting others to join the group. When `false`, only site admins and group admins can invite others to join the group.
1853
- *
1854
- * Default: `false`
1855
- * @deprecated
1856
- */
1857
- membersCanInvite?: boolean | null;
1858
- /**
1859
- * Whether group members can approve or reject requests to join a group. When `false`, only site admins and group admins can approve or reject requests to join a group.
1860
- *
1861
- * Default: `false`
1862
- * @deprecated
1863
- */
1864
- membersCanApprove?: boolean | null;
1865
- /**
1866
- * @internal
1867
- * @internal
1868
- * @deprecated
1869
- */
1870
- memberWelcomePostEnabled?: boolean | null;
1871
- /**
1872
- * Whether to create a daily group post welcoming new members.
1873
- *
1874
- * Default: `true`
1875
- */
1876
- welcomeMemberPostEnabled?: boolean | null;
1877
- /**
1878
- * Whether to create an automatic group post when group details are changed.
1879
- *
1880
- * Default: `true`
1881
- */
1882
- groupDetailsChangedPostEnabled?: boolean | null;
1883
- /**
1884
- * Whether all group members can view the full list of group members.
1885
- *
1886
- * Default: `true`
1887
- */
1888
- showMemberList?: boolean | null;
1889
- }
1890
- interface Identity$2 {
1891
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
1892
- _id?: string | null;
1893
- identityType?: IdentityType$2;
1894
- }
1895
- declare enum IdentityType$2 {
1896
- USER = "USER",
1897
- MEMBER = "MEMBER"
1898
- }
1899
- declare enum RequestStatus$6 {
1900
- /** Undefined request status. */
1901
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
1902
- /** Pending group request. */
1903
- PENDING = "PENDING",
1904
- /** Approved group request. */
1905
- APPROVED = "APPROVED",
1906
- /** Rejected group request. */
1907
- REJECTED = "REJECTED",
1908
- /** Cancelled group request. */
1909
- CANCELLED = "CANCELLED",
1910
- /** Canceled group request. */
1911
- CANCELED = "CANCELED"
1912
- }
1913
- interface RequestDetails$6 {
1914
- /** Reason the request to create a group is rejected. */
1915
- rejectionReason?: string | null;
1916
- }
1917
- interface ApproveGroupRequestsRequest {
1918
- /**
1919
- * IDs of the requests create groups to approve.
1920
- *
1921
- * Max: 100 create group request IDs
1922
- */
1923
- groupRequestIds?: string[];
1924
- }
1925
- interface ApproveGroupRequestsResponse {
1926
- /** Approved request to create a group. */
1927
- groupRequest?: GroupRequest[];
1928
- }
1929
- interface RejectGroupRequestsRequest {
1930
- /** Rejection data. */
1931
- rejections?: Rejection$6[];
1932
- }
1933
- interface Rejection$6 {
1934
- /**
1935
- * ID of the requests to create groups to reject.
1936
- *
1937
- */
1938
- groupRequestId?: string;
1939
- /**
1940
- * Reason the request to create a group is rejected. This text is displayed to the creator of the rejected request.
1941
- *
1942
- * Max: 1,000 characters.
1943
- */
1944
- reason?: string | null;
1945
- }
1946
- interface RejectGroupRequestsResponse {
1947
- /** Rejected Group Requests. */
1948
- groupRequest?: GroupRequest[];
1949
- }
1950
- interface ListGroupRequestsRequest {
1951
- /** Number of items to load. Maximum `100`. */
1952
- limit?: number | null;
1953
- /** Number of items to skip in the current sort order. */
1954
- offset?: number | null;
1955
- }
1956
- interface ListGroupRequestsResponse {
1957
- /** List of requests to create a group. */
1958
- groupRequests?: GroupRequest[];
1959
- /** Paging information. */
1960
- metadata?: PagingMetadata$8;
1961
- }
1962
- interface PagingMetadata$8 {
1963
- /** Number of items returned in the response. */
1964
- count?: number | null;
1965
- /** Offset that was requested. */
1966
- offset?: number | null;
1967
- /** Total number of items that match the query. */
1968
- total?: number | null;
1969
- /** Flag that indicates the server failed to calculate the `total` field. */
1970
- tooManyToCount?: boolean | null;
1971
- }
1972
- interface QueryGroupRequestsRequest {
1973
- query?: Query$6;
1974
- }
1975
- interface Query$6 {
1976
- /**
1977
- * Filter object in the following format:
1978
- * `"filter" : {
1979
- * "fieldName1": "value1",
1980
- * "fieldName2":{"$operator":"value2"}
1981
- * }`
1982
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1983
- */
1984
- filter?: any;
1985
- /**
1986
- * Sort object in the following format:
1987
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1988
- */
1989
- sort?: Sorting$6[];
1990
- /** Paging options to limit and skip the number of items. */
1991
- paging?: Paging$8;
1992
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1993
- fields?: string[];
1994
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1995
- fieldsets?: string[];
1996
- }
1997
- interface Sorting$6 {
1998
- /** Name of the field to sort by. */
1999
- fieldName?: string;
2000
- /** Sort order. */
2001
- order?: SortOrder$6;
2002
- }
2003
- declare enum SortOrder$6 {
2004
- ASC = "ASC",
2005
- DESC = "DESC"
2006
- }
2007
- interface Paging$8 {
2008
- /**
2009
- * Number of items to load.
2010
- *
2011
- * Max: `100`
2012
- */
2013
- limit?: number | null;
2014
- /**
2015
- * Number of items to skip in the current sort order.
2016
- *
2017
- */
2018
- offset?: number | null;
2019
- }
2020
- interface QueryGroupRequestsResponse {
2021
- /** Retrieved Group Requests. */
2022
- groupRequests?: GroupRequest[];
2023
- metadata?: PagingMetadata$8;
2024
- }
2025
- interface EventsNonNullableFields$2 {
2026
- eventIds: string[];
2027
- }
2028
- interface AccessRestrictionNonNullableFields$2 {
2029
- events?: EventsNonNullableFields$2;
2030
- type: Type$2;
2031
- }
2032
- interface GroupDetailsPositionNonNullableFields$2 {
2033
- x: number;
2034
- y: number;
2035
- }
2036
- interface GroupDetailsNonNullableFields$2 {
2037
- logoPosition?: GroupDetailsPositionNonNullableFields$2;
2038
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields$2;
2039
- }
2040
- interface PositionNonNullableFields$2 {
2041
- x: number;
2042
- y: number;
2043
- }
2044
- interface CoverImageNonNullableFields$2 {
2045
- position?: PositionNonNullableFields$2;
2046
- mobilePosition?: PositionNonNullableFields$2;
2047
- }
2048
- interface OnboardingStepSettingsNonNullableFields$2 {
2049
- stepKey: StepKey$2;
2050
- visible: boolean;
2051
- }
2052
- interface GroupSettingsNonNullableFields$2 {
2053
- allowedToInviteMembers: AllowPolicy$2;
2054
- allowedToApproveJoinRequests: AllowPolicy$2;
2055
- allowedToAddMembers: AllowPolicy$2;
2056
- allowedToCreatePosts: AllowPolicy$2;
2057
- allowedToCommentPosts: AllowPolicy$2;
2058
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$2[];
2059
- allowedToCreateEvents: AllowPolicy$2;
2060
- }
2061
- interface IdentityNonNullableFields$2 {
2062
- identityType: IdentityType$2;
2063
- }
2064
- interface GroupNonNullableFields$2 {
2065
- privacyLevel: PrivacyStatus$2;
2066
- privacyStatus: PrivacyStatus$2;
2067
- accessRestriction?: AccessRestrictionNonNullableFields$2;
2068
- details?: GroupDetailsNonNullableFields$2;
2069
- coverImage?: CoverImageNonNullableFields$2;
2070
- settings?: GroupSettingsNonNullableFields$2;
2071
- createdBy?: IdentityNonNullableFields$2;
2072
- }
2073
- interface GroupRequestNonNullableFields {
2074
- group?: GroupNonNullableFields$2;
2075
- status: RequestStatus$6;
2076
- }
2077
- interface ApproveGroupRequestsResponseNonNullableFields {
2078
- groupRequest: GroupRequestNonNullableFields[];
2079
- }
2080
- interface RejectGroupRequestsResponseNonNullableFields {
2081
- groupRequest: GroupRequestNonNullableFields[];
2082
- }
2083
- interface ListGroupRequestsResponseNonNullableFields {
2084
- groupRequests: GroupRequestNonNullableFields[];
2085
- }
2086
- interface QueryGroupRequestsResponseNonNullableFields {
2087
- groupRequests: GroupRequestNonNullableFields[];
2088
- }
2089
-
2090
- type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2091
- getUrl: (context: any) => string;
2092
- httpMethod: K;
2093
- path: string;
2094
- pathParams: M;
2095
- __requestType: T;
2096
- __originalRequestType: S;
2097
- __responseType: Q;
2098
- __originalResponseType: R;
2099
- };
2100
- declare function approveGroupRequests(): __PublicMethodMetaInfo$6<'POST', {}, ApproveGroupRequestsRequest, ApproveGroupRequestsRequest$1, ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields, ApproveGroupRequestsResponse$1 & ApproveGroupRequestsResponseNonNullableFields$1>;
2101
- declare function rejectGroupRequests(): __PublicMethodMetaInfo$6<'POST', {}, RejectGroupRequestsRequest, RejectGroupRequestsRequest$1, RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields, RejectGroupRequestsResponse$1 & RejectGroupRequestsResponseNonNullableFields$1>;
2102
- declare function listGroupRequests(): __PublicMethodMetaInfo$6<'GET', {}, ListGroupRequestsRequest, ListGroupRequestsRequest$1, ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields, ListGroupRequestsResponse$1 & ListGroupRequestsResponseNonNullableFields$1>;
2103
- declare function queryGroupRequests(): __PublicMethodMetaInfo$6<'POST', {}, QueryGroupRequestsRequest, QueryGroupRequestsRequest$1, QueryGroupRequestsResponse & QueryGroupRequestsResponseNonNullableFields, QueryGroupRequestsResponse$1 & QueryGroupRequestsResponseNonNullableFields$1>;
2104
-
2105
- declare const meta$6_approveGroupRequests: typeof approveGroupRequests;
2106
- declare const meta$6_listGroupRequests: typeof listGroupRequests;
2107
- declare const meta$6_queryGroupRequests: typeof queryGroupRequests;
2108
- declare const meta$6_rejectGroupRequests: typeof rejectGroupRequests;
2109
- declare namespace meta$6 {
2110
- export { type __PublicMethodMetaInfo$6 as __PublicMethodMetaInfo, meta$6_approveGroupRequests as approveGroupRequests, meta$6_listGroupRequests as listGroupRequests, meta$6_queryGroupRequests as queryGroupRequests, meta$6_rejectGroupRequests as rejectGroupRequests };
2111
- }
2112
-
2113
- /**
2114
- * A group member may have multiple roles in a single group.
2115
- * Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
2116
- */
2117
- interface GroupRole$1 {
2118
- /** Member's role. */
2119
- value?: Role$1;
2120
- }
2121
- declare enum Role$1 {
2122
- /** Undefined group member role. */
2123
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
2124
- /** Regular group member. */
2125
- MEMBER = "MEMBER",
2126
- /** Group administrator. */
2127
- ADMIN = "ADMIN"
2128
- }
2129
- interface AssignRoleRequest$1 {
2130
- /** Group ID. */
2131
- groupId: string;
2132
- /**
2133
- * __Deprecated.__ Use `memberIds` instead.
2134
- * This parameter will be removed on June 30, 2022.
2135
- * @deprecated
2136
- */
2137
- siteMemberIds?: string[];
2138
- /** Member IDs. Limited to 100 member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
2139
- memberIds?: string[];
2140
- /** Role to assign. */
2141
- role?: GroupRole$1;
2142
- }
2143
- interface AssignRoleResponse$1 {
2144
- /** Group ID. */
2145
- groupId?: string;
2146
- /**
2147
- * __Deprecated.__ Use `memberIds` instead.
2148
- * This parameter will be removed on June 30, 2022.
2149
- * @deprecated
2150
- */
2151
- siteMemberIds?: string[];
2152
- /** Member IDs. Limited to 100 member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
2153
- memberIds?: string[];
2154
- /** Assigned role. */
2155
- role?: GroupRole$1;
2156
- }
2157
- interface UnassignRoleRequest$1 {
2158
- /** Group ID. */
2159
- groupId: string;
2160
- /**
2161
- * __Deprecated.__ Use `memberIds` instead.
2162
- * This parameter will be removed on June 30, 2022.
2163
- * @deprecated
2164
- */
2165
- siteMemberIds?: string[];
2166
- /** Member IDs. Limited to 100 member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
2167
- memberIds?: string[];
2168
- /** Role to unassign. */
2169
- role?: GroupRole$1;
2170
- }
2171
- interface UnassignRoleResponse$1 {
2172
- /** Group ID. */
2173
- groupId?: string;
2174
- /**
2175
- * Member IDs. Limited to 100 member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details.
2176
- * @deprecated
2177
- */
2178
- siteMemberIds?: string[];
2179
- /** Member IDs. Limited to 100 member IDs. See [Members API](https://dev.wix.com/api/rest/members/members/member-object) for details. */
2180
- memberIds?: string[];
2181
- /** Unassigned role. */
2182
- role?: GroupRole$1;
2183
- }
2184
- interface GroupRoleNonNullableFields$1 {
2185
- value: Role$1;
2186
- }
2187
- interface AssignRoleResponseNonNullableFields$1 {
2188
- groupId: string;
2189
- siteMemberIds: string[];
2190
- memberIds: string[];
2191
- role?: GroupRoleNonNullableFields$1;
2192
- }
2193
- interface UnassignRoleResponseNonNullableFields$1 {
2194
- groupId: string;
2195
- siteMemberIds: string[];
2196
- memberIds: string[];
2197
- role?: GroupRoleNonNullableFields$1;
2198
- }
2199
-
2200
- /**
2201
- * A group member may have multiple roles in a single group.
2202
- * Currently, only `MEMBER` and `ADMIN` roles are supported, but more roles may be available in the future.
2203
- */
2204
- interface GroupRole {
2205
- /** Member's role. */
2206
- value?: Role;
2207
- }
2208
- declare enum Role {
2209
- /** Undefined group member role. */
2210
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
2211
- /** Regular group member. */
2212
- MEMBER = "MEMBER",
2213
- /** Group administrator. */
2214
- ADMIN = "ADMIN"
2215
- }
2216
- interface AssignRoleRequest {
2217
- /** Group ID. */
2218
- groupId: string;
2219
- /**
2220
- * @internal
2221
- * @internal
2222
- * @deprecated
2223
- */
2224
- siteMemberIds?: string[];
2225
- /**
2226
- * Member IDs.
2227
- *
2228
- * Max: 100 member IDs
2229
- */
2230
- memberIds?: string[];
2231
- /** Role to assign. */
2232
- role?: GroupRole;
2233
- }
2234
- interface AssignRoleResponse {
2235
- /** Group ID. */
2236
- groupId?: string;
2237
- /**
2238
- * @internal
2239
- * @internal
2240
- * @deprecated
2241
- */
2242
- siteMemberIds?: string[];
2243
- /** Member IDs */
2244
- memberIds?: string[];
2245
- /** Assigned role. */
2246
- role?: GroupRole;
2247
- }
2248
- interface UnassignRoleRequest {
2249
- /** Group ID. */
2250
- groupId: string;
2251
- /**
2252
- * @internal
2253
- * @internal
2254
- * @deprecated
2255
- */
2256
- siteMemberIds?: string[];
2257
- /**
2258
- * Member IDs.
2259
- *
2260
- * Max: 100 member IDs
2261
- */
2262
- memberIds?: string[];
2263
- /** Role to unassign. */
2264
- role?: GroupRole;
2265
- }
2266
- interface UnassignRoleResponse {
2267
- /** Group ID. */
2268
- groupId?: string;
2269
- /**
2270
- * @internal
2271
- * @internal
2272
- * @deprecated
2273
- */
2274
- siteMemberIds?: string[];
2275
- /** Member IDs. */
2276
- memberIds?: string[];
2277
- /** Unassigned role. */
2278
- role?: GroupRole;
2279
- }
2280
- interface GroupRoleNonNullableFields {
2281
- value: Role;
2282
- }
2283
- interface AssignRoleResponseNonNullableFields {
2284
- groupId: string;
2285
- siteMemberIds: string[];
2286
- memberIds: string[];
2287
- role?: GroupRoleNonNullableFields;
2288
- }
2289
- interface UnassignRoleResponseNonNullableFields {
2290
- groupId: string;
2291
- siteMemberIds: string[];
2292
- memberIds: string[];
2293
- role?: GroupRoleNonNullableFields;
2294
- }
2295
-
2296
- type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2297
- getUrl: (context: any) => string;
2298
- httpMethod: K;
2299
- path: string;
2300
- pathParams: M;
2301
- __requestType: T;
2302
- __originalRequestType: S;
2303
- __responseType: Q;
2304
- __originalResponseType: R;
2305
- };
2306
- declare function assignRole(): __PublicMethodMetaInfo$5<'POST', {
2307
- groupId: string;
2308
- }, AssignRoleRequest, AssignRoleRequest$1, AssignRoleResponse & AssignRoleResponseNonNullableFields, AssignRoleResponse$1 & AssignRoleResponseNonNullableFields$1>;
2309
- declare function unassignRole(): __PublicMethodMetaInfo$5<'POST', {
2310
- groupId: string;
2311
- }, UnassignRoleRequest, UnassignRoleRequest$1, UnassignRoleResponse & UnassignRoleResponseNonNullableFields, UnassignRoleResponse$1 & UnassignRoleResponseNonNullableFields$1>;
2312
-
2313
- declare const meta$5_assignRole: typeof assignRole;
2314
- declare const meta$5_unassignRole: typeof unassignRole;
2315
- declare namespace meta$5 {
2316
- export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_assignRole as assignRole, meta$5_unassignRole as unassignRole };
2317
- }
2318
-
2319
- interface GroupRule$1 {
2320
- /** Rule title. */
2321
- title?: string;
2322
- /** Rule description. */
2323
- description?: string;
2324
- }
2325
- interface ListRulesRequest$1 {
2326
- /** Group ID. */
2327
- groupId: string;
2328
- }
2329
- interface ListRulesResponse$1 {
2330
- /** Retrieved rules. */
2331
- rules?: GroupRule$1[];
2332
- }
2333
- interface CreateOrReplaceAllRulesRequest$1 {
2334
- /** Group ID. */
2335
- groupId: string;
2336
- /** New rules. */
2337
- rules?: GroupRule$1[];
2338
- }
2339
- interface CreateOrReplaceAllRulesResponse$1 {
2340
- /** Group ID. */
2341
- groupId?: string;
2342
- /** Rules. */
2343
- rules?: GroupRule$1[];
2344
- }
2345
- interface GroupRuleNonNullableFields$1 {
2346
- title: string;
2347
- description: string;
2348
- }
2349
- interface ListRulesResponseNonNullableFields$1 {
2350
- rules: GroupRuleNonNullableFields$1[];
2351
- }
2352
- interface CreateOrReplaceAllRulesResponseNonNullableFields$1 {
2353
- groupId: string;
2354
- rules: GroupRuleNonNullableFields$1[];
2355
- }
2356
-
2357
- interface GroupRule {
2358
- /** Rule title. */
2359
- title?: string;
2360
- /** Rule description. */
2361
- description?: string;
2362
- }
2363
- interface ListRulesRequest {
2364
- /** Group ID. */
2365
- groupId: string;
2366
- }
2367
- interface ListRulesResponse {
2368
- /** Retrieved rules. */
2369
- rules?: GroupRule[];
2370
- }
2371
- interface CreateOrReplaceAllRulesRequest {
2372
- /** Group ID. */
2373
- groupId: string;
2374
- /** New rules. */
2375
- rules?: GroupRule[];
2376
- }
2377
- interface CreateOrReplaceAllRulesResponse {
2378
- /** Group ID. */
2379
- groupId?: string;
2380
- /** Rules. */
2381
- rules?: GroupRule[];
2382
- }
2383
- interface GroupRuleNonNullableFields {
2384
- title: string;
2385
- description: string;
2386
- }
2387
- interface ListRulesResponseNonNullableFields {
2388
- rules: GroupRuleNonNullableFields[];
2389
- }
2390
- interface CreateOrReplaceAllRulesResponseNonNullableFields {
2391
- groupId: string;
2392
- rules: GroupRuleNonNullableFields[];
2393
- }
2394
-
2395
- type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2396
- getUrl: (context: any) => string;
2397
- httpMethod: K;
2398
- path: string;
2399
- pathParams: M;
2400
- __requestType: T;
2401
- __originalRequestType: S;
2402
- __responseType: Q;
2403
- __originalResponseType: R;
2404
- };
2405
- declare function listRules(): __PublicMethodMetaInfo$4<'GET', {
2406
- groupId: string;
2407
- }, ListRulesRequest, ListRulesRequest$1, ListRulesResponse & ListRulesResponseNonNullableFields, ListRulesResponse$1 & ListRulesResponseNonNullableFields$1>;
2408
- declare function createOrReplaceAllRules(): __PublicMethodMetaInfo$4<'PUT', {
2409
- groupId: string;
2410
- }, CreateOrReplaceAllRulesRequest, CreateOrReplaceAllRulesRequest$1, CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields, CreateOrReplaceAllRulesResponse$1 & CreateOrReplaceAllRulesResponseNonNullableFields$1>;
2411
-
2412
- declare const meta$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
2413
- declare const meta$4_listRules: typeof listRules;
2414
- declare namespace meta$4 {
2415
- export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_createOrReplaceAllRules as createOrReplaceAllRules, meta$4_listRules as listRules };
2416
- }
2417
-
2418
- /**
2419
- * To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
2420
- * When the request is approved, the site member becomes a group member.
2421
- */
2422
- interface JoinGroupRequest$1 {
2423
- /**
2424
- * Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details.
2425
- * @readonly
2426
- */
2427
- siteMemberId?: string;
2428
- /** @readonly */
2429
- contactId?: string;
2430
- /** Join group request status. */
2431
- status?: RequestStatus$5;
2432
- /** Join group request details. */
2433
- requestDetails?: RequestDetails$5;
2434
- }
2435
- declare enum RequestStatus$5 {
2436
- /** Undefined request status. */
2437
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
2438
- /** Pending group request. */
2439
- PENDING = "PENDING",
2440
- /** Approved group request. */
2441
- APPROVED = "APPROVED",
2442
- /** Rejected group request. */
2443
- REJECTED = "REJECTED",
2444
- /** Cancelled group request. */
2445
- CANCELLED = "CANCELLED",
2446
- /** Canceled group request. */
2447
- CANCELED = "CANCELED"
2448
- }
2449
- interface RequestDetails$5 {
2450
- /** Reason the request has been rejected. */
2451
- rejectionReason?: string | null;
2452
- }
2453
- interface ApproveJoinGroupRequestsRequest$1 {
2454
- /** Relevant group. */
2455
- groupId: string;
2456
- /**
2457
- * __Deprecated.__ Use `memberIds` instead.
2458
- * This parameter will be removed on June 30, 2022.
2459
- *
2460
- * Required if `memberIds` is not provided.
2461
- * @deprecated
2462
- */
2463
- siteMemberIds?: string[];
2464
- /**
2465
- * Member IDs to approve.
2466
- *
2467
- * <blockquote class='important'>
2468
- *
2469
- * __Important:__
2470
- * This parameter will be required after the deprecated `siteMemberIds` is removed
2471
- * on June 30, 2022.
2472
- *
2473
- * </blockquote>
2474
- */
2475
- memberIds?: string[];
2476
- }
2477
- interface ApproveJoinGroupRequestsResponse$1 {
2478
- /** Approved join group requests. */
2479
- joinGroupRequests?: JoinGroupRequest$1[];
2480
- }
2481
- interface RejectJoinGroupRequestsRequest$1 {
2482
- /** Relevant group. */
2483
- groupId: string;
2484
- /** Rejection data. */
2485
- rejections?: Rejection$5[];
2486
- }
2487
- interface Rejection$5 {
2488
- /** Member ID to reject. */
2489
- memberId?: string;
2490
- /** Rejection reason. Free text that will be displayed to the rejected site member (max 1,000 characters). */
2491
- reason?: string | null;
2492
- }
2493
- interface RejectJoinGroupRequestsResponse$1 {
2494
- /** Rejected join group requests. */
2495
- joinGroupRequests?: JoinGroupRequest$1[];
2496
- }
2497
- interface ListJoinGroupRequestsRequest$1 {
2498
- /** Group ID. */
2499
- groupId: string;
2500
- limit?: number | null;
2501
- offset?: number | null;
2502
- }
2503
- interface ListJoinGroupRequestsResponse$1 {
2504
- /** Join group requests. */
2505
- joinGroupRequests?: JoinGroupRequest$1[];
2506
- metadata?: PagingMetadata$7;
2507
- }
2508
- interface PagingMetadata$7 {
2509
- /** Number of items returned in the response. */
2510
- count?: number | null;
2511
- /** Offset that was requested. */
2512
- offset?: number | null;
2513
- /** Total number of items that match the query. */
2514
- total?: number | null;
2515
- /** Flag that indicates the server failed to calculate the `total` field. */
2516
- tooManyToCount?: boolean | null;
2517
- }
2518
- interface QueryJoinGroupRequestsRequest$1 {
2519
- /** Group ID. */
2520
- groupId: string;
2521
- query?: Query$5;
2522
- }
2523
- interface Query$5 {
2524
- /**
2525
- * Filter object in the following format:
2526
- * `"filter" : {
2527
- * "fieldName1": "value1",
2528
- * "fieldName2":{"$operator":"value2"}
2529
- * }`
2530
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2531
- */
2532
- filter?: any;
2533
- /**
2534
- * Sort object in the following format:
2535
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2536
- */
2537
- sort?: Sorting$5[];
2538
- /** Paging options to limit and skip the number of items. */
2539
- paging?: Paging$7;
2540
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2541
- fields?: string[];
2542
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
2543
- fieldsets?: string[];
2544
- }
2545
- interface Sorting$5 {
2546
- /** Name of the field to sort by. */
2547
- fieldName?: string;
2548
- /** Sort order. */
2549
- order?: SortOrder$5;
2550
- }
2551
- declare enum SortOrder$5 {
2552
- ASC = "ASC",
2553
- DESC = "DESC"
2554
- }
2555
- interface Paging$7 {
2556
- /** Number of items to load. */
2557
- limit?: number | null;
2558
- /** Number of items to skip in the current sort order. */
2559
- offset?: number | null;
2560
- }
2561
- interface QueryJoinGroupRequestsResponse$1 {
2562
- /** Join group requests. */
2563
- joinGroupRequests?: JoinGroupRequest$1[];
2564
- metadata?: PagingMetadata$7;
2565
- }
2566
- interface JoinGroupRequestNonNullableFields$1 {
2567
- siteMemberId: string;
2568
- contactId: string;
2569
- status: RequestStatus$5;
2570
- }
2571
- interface ApproveJoinGroupRequestsResponseNonNullableFields$1 {
2572
- joinGroupRequests: JoinGroupRequestNonNullableFields$1[];
2573
- }
2574
- interface RejectJoinGroupRequestsResponseNonNullableFields$1 {
2575
- joinGroupRequests: JoinGroupRequestNonNullableFields$1[];
2576
- }
2577
- interface ListJoinGroupRequestsResponseNonNullableFields$1 {
2578
- joinGroupRequests: JoinGroupRequestNonNullableFields$1[];
2579
- }
2580
- interface QueryJoinGroupRequestsResponseNonNullableFields$1 {
2581
- joinGroupRequests: JoinGroupRequestNonNullableFields$1[];
2582
- }
2583
-
2584
- /**
2585
- * To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
2586
- * When the request is approved, the site member becomes a group member.
2587
- */
2588
- interface JoinGroupRequest {
2589
- /**
2590
- * Site member ID of the requester.
2591
- * @readonly
2592
- */
2593
- siteMemberId?: string;
2594
- /** @readonly */
2595
- contactId?: string;
2596
- /**
2597
- * Status of the request to join a group.
2598
- *
2599
- * One of:
2600
- * - `"PENDING"`
2601
- * - `"APPROVED"`
2602
- * - `"REJECTED"`
2603
- */
2604
- status?: RequestStatus$4;
2605
- /** Join group request details. */
2606
- requestDetails?: RequestDetails$4;
2607
- }
2608
- declare enum RequestStatus$4 {
2609
- /** Undefined request status. */
2610
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
2611
- /** Pending group request. */
2612
- PENDING = "PENDING",
2613
- /** Approved group request. */
2614
- APPROVED = "APPROVED",
2615
- /** Rejected group request. */
2616
- REJECTED = "REJECTED",
2617
- /** Cancelled group request. */
2618
- CANCELLED = "CANCELLED",
2619
- /** Canceled group request. */
2620
- CANCELED = "CANCELED"
2621
- }
2622
- interface RequestDetails$4 {
2623
- /** Reason the request to join a group was rejected. */
2624
- rejectionReason?: string | null;
2625
- }
2626
- interface ApproveJoinGroupRequestsRequest {
2627
- /** ID of the group requested to join. */
2628
- groupId: string;
2629
- /**
2630
- * @Internal
2631
- * @Internal
2632
- * @deprecated
2633
- */
2634
- siteMemberIds?: string[];
2635
- /** IDs of the site members to approve. */
2636
- memberIds?: string[];
2637
- }
2638
- interface ApproveJoinGroupRequestsResponse {
2639
- /** Approved join group requests. */
2640
- joinGroupRequests?: JoinGroupRequest[];
2641
- }
2642
- interface RejectJoinGroupRequestsRequest {
2643
- /** ID of the group requested to join. */
2644
- groupId: string;
2645
- /** Rejection data. */
2646
- rejections?: Rejection$4[];
2647
- }
2648
- interface Rejection$4 {
2649
- /** Member ID to reject. */
2650
- memberId?: string;
2651
- /** Reason the request to join a group was rejected. Text written by the request reviewer that is displayed when the group is rejected (max 1,000 characters). */
2652
- reason?: string | null;
2653
- }
2654
- interface RejectJoinGroupRequestsResponse {
2655
- /** Rejected join group requests. */
2656
- joinGroupRequests?: JoinGroupRequest[];
2657
- }
2658
- interface ListJoinGroupRequestsRequest {
2659
- /** ID of the group requested to join. */
2660
- groupId: string;
2661
- limit?: number | null;
2662
- offset?: number | null;
2663
- }
2664
- interface ListJoinGroupRequestsResponse {
2665
- /** Join group requests. */
2666
- joinGroupRequests?: JoinGroupRequest[];
2667
- metadata?: PagingMetadata$6;
2668
- }
2669
- interface PagingMetadata$6 {
2670
- /** Number of items in the current results page. */
2671
- count?: number | null;
2672
- /** Offset that was requested. */
2673
- offset?: number | null;
2674
- /** Total number of items that match the query. */
2675
- total?: number | null;
2676
- /** Flag that indicates the server failed to calculate the `total` field. */
2677
- tooManyToCount?: boolean | null;
2678
- }
2679
- interface QueryJoinGroupRequestsRequest {
2680
- /** ID of the group requested to join. */
2681
- groupId: string;
2682
- query?: Query$4;
2683
- }
2684
- interface Query$4 {
2685
- /**
2686
- * Filter object in the following format:
2687
- * `"filter" : {
2688
- * "fieldName1": "value1",
2689
- * "fieldName2":{"$operator":"value2"}
2690
- * }`
2691
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2692
- */
2693
- filter?: any;
2694
- /**
2695
- * Sort object in the following format:
2696
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2697
- */
2698
- sort?: Sorting$4[];
2699
- /** Paging options to limit and skip the number of items. */
2700
- paging?: Paging$6;
2701
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2702
- fields?: string[];
2703
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
2704
- fieldsets?: string[];
2705
- }
2706
- interface Sorting$4 {
2707
- /** Name of the field to sort by. */
2708
- fieldName?: string;
2709
- /** Sort order. */
2710
- order?: SortOrder$4;
2711
- }
2712
- declare enum SortOrder$4 {
2713
- ASC = "ASC",
2714
- DESC = "DESC"
2715
- }
2716
- interface Paging$6 {
2717
- /** Number of items to load. */
2718
- limit?: number | null;
2719
- /** Number of items to skip in the current sort order. */
2720
- offset?: number | null;
2721
- }
2722
- interface QueryJoinGroupRequestsResponse {
2723
- /** Requests to join a group. */
2724
- joinGroupRequests?: JoinGroupRequest[];
2725
- metadata?: PagingMetadata$6;
2726
- }
2727
- interface JoinGroupRequestNonNullableFields {
2728
- siteMemberId: string;
2729
- contactId: string;
2730
- status: RequestStatus$4;
2731
- }
2732
- interface ApproveJoinGroupRequestsResponseNonNullableFields {
2733
- joinGroupRequests: JoinGroupRequestNonNullableFields[];
2734
- }
2735
- interface RejectJoinGroupRequestsResponseNonNullableFields {
2736
- joinGroupRequests: JoinGroupRequestNonNullableFields[];
2737
- }
2738
- interface ListJoinGroupRequestsResponseNonNullableFields {
2739
- joinGroupRequests: JoinGroupRequestNonNullableFields[];
2740
- }
2741
- interface QueryJoinGroupRequestsResponseNonNullableFields {
2742
- joinGroupRequests: JoinGroupRequestNonNullableFields[];
2743
- }
2744
-
2745
- type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2746
- getUrl: (context: any) => string;
2747
- httpMethod: K;
2748
- path: string;
2749
- pathParams: M;
2750
- __requestType: T;
2751
- __originalRequestType: S;
2752
- __responseType: Q;
2753
- __originalResponseType: R;
2754
- };
2755
- declare function approveJoinGroupRequests(): __PublicMethodMetaInfo$3<'POST', {
2756
- groupId: string;
2757
- }, ApproveJoinGroupRequestsRequest, ApproveJoinGroupRequestsRequest$1, ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields, ApproveJoinGroupRequestsResponse$1 & ApproveJoinGroupRequestsResponseNonNullableFields$1>;
2758
- declare function rejectJoinGroupRequests(): __PublicMethodMetaInfo$3<'POST', {
2759
- groupId: string;
2760
- }, RejectJoinGroupRequestsRequest, RejectJoinGroupRequestsRequest$1, RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields, RejectJoinGroupRequestsResponse$1 & RejectJoinGroupRequestsResponseNonNullableFields$1>;
2761
- declare function listJoinGroupRequests(): __PublicMethodMetaInfo$3<'GET', {
2762
- groupId: string;
2763
- }, ListJoinGroupRequestsRequest, ListJoinGroupRequestsRequest$1, ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields, ListJoinGroupRequestsResponse$1 & ListJoinGroupRequestsResponseNonNullableFields$1>;
2764
- declare function queryJoinGroupRequests(): __PublicMethodMetaInfo$3<'POST', {
2765
- groupId: string;
2766
- }, QueryJoinGroupRequestsRequest, QueryJoinGroupRequestsRequest$1, QueryJoinGroupRequestsResponse & QueryJoinGroupRequestsResponseNonNullableFields, QueryJoinGroupRequestsResponse$1 & QueryJoinGroupRequestsResponseNonNullableFields$1>;
2767
-
2768
- declare const meta$3_approveJoinGroupRequests: typeof approveJoinGroupRequests;
2769
- declare const meta$3_listJoinGroupRequests: typeof listJoinGroupRequests;
2770
- declare const meta$3_queryJoinGroupRequests: typeof queryJoinGroupRequests;
2771
- declare const meta$3_rejectJoinGroupRequests: typeof rejectJoinGroupRequests;
2772
- declare namespace meta$3 {
2773
- export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_approveJoinGroupRequests as approveJoinGroupRequests, meta$3_listJoinGroupRequests as listJoinGroupRequests, meta$3_queryJoinGroupRequests as queryJoinGroupRequests, meta$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
2774
- }
2775
-
2776
- /**
2777
- * Question asked to members when joining a group. Site owners can set whether it is required to answer the question in the dashboard.
2778
- * > **Note:** Only admins can create or update membership questions.
2779
- */
2780
- interface MembershipQuestion$1 {
2781
- /**
2782
- * Question ID.
2783
- * @readonly
2784
- */
2785
- id?: string | null;
2786
- /** Whether a member must answer this question when joining the group. */
2787
- required?: boolean;
2788
- /** Question text. */
2789
- text?: string;
2790
- }
2791
- interface ListMembershipQuestionsRequest$1 {
2792
- /** Group ID. */
2793
- groupId: string;
2794
- }
2795
- interface ListMembershipQuestionsResponse$1 {
2796
- /** Membership questions. */
2797
- questions?: MembershipQuestion$1[];
2798
- }
2799
- interface CreateOrReplaceAllMembershipQuestionsRequest$1 {
2800
- /** Group ID. */
2801
- groupId: string;
2802
- /** New membership questions. */
2803
- questions?: MembershipQuestion$1[];
2804
- }
2805
- interface CreateOrReplaceAllMembershipQuestionsResponse$1 {
2806
- /** Membership questions. */
2807
- questions?: MembershipQuestion$1[];
2808
- }
2809
- interface ListAnswersRequest$1 {
2810
- /** Group ID. */
2811
- groupId: string;
2812
- /** Member IDs. If no member ID is provided, answers for all members will be returned. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
2813
- memberIds?: string[];
2814
- paging?: Paging$5;
2815
- }
2816
- interface Paging$5 {
2817
- /** Number of items to load. */
2818
- limit?: number | null;
2819
- /** Number of items to skip in the current sort order. */
2820
- offset?: number | null;
2821
- }
2822
- interface ListAnswersResponse$1 {
2823
- /** Answers to the membership questions, grouped by member. */
2824
- memberAnswers?: MemberMembershipQuestionAnswers$1[];
2825
- /** Membership questions by question ID. Inludes only questions that have been answered by the specified members. */
2826
- questions?: Record<string, MembershipQuestion$1>;
2827
- metadata?: PagingMetadata$5;
2828
- }
2829
- interface MemberMembershipQuestionAnswers$1 {
2830
- /** Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
2831
- memberId?: string;
2832
- /** Answers to the membership question. */
2833
- answers?: MembershipQuestionAnswer$1[];
2834
- }
2835
- /** Answer to a membership question. */
2836
- interface MembershipQuestionAnswer$1 {
2837
- /** Question ID. */
2838
- id?: string;
2839
- /** Answer text. */
2840
- text?: string | null;
2841
- }
2842
- interface PagingMetadata$5 {
2843
- /** Number of items returned in the response. */
2844
- count?: number | null;
2845
- /** Offset that was requested. */
2846
- offset?: number | null;
2847
- /** Total number of items that match the query. */
2848
- total?: number | null;
2849
- /** Flag that indicates the server failed to calculate the `total` field. */
2850
- tooManyToCount?: boolean | null;
2851
- }
2852
- interface MembershipQuestionNonNullableFields$1 {
2853
- required: boolean;
2854
- text: string;
2855
- }
2856
- interface ListMembershipQuestionsResponseNonNullableFields$1 {
2857
- questions: MembershipQuestionNonNullableFields$1[];
2858
- }
2859
- interface CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields$1 {
2860
- questions: MembershipQuestionNonNullableFields$1[];
2861
- }
2862
- interface MembershipQuestionAnswerNonNullableFields$1 {
2863
- id: string;
2864
- }
2865
- interface MemberMembershipQuestionAnswersNonNullableFields$1 {
2866
- memberId: string;
2867
- answers: MembershipQuestionAnswerNonNullableFields$1[];
2868
- }
2869
- interface ListAnswersResponseNonNullableFields$1 {
2870
- memberAnswers: MemberMembershipQuestionAnswersNonNullableFields$1[];
2871
- }
2872
-
2873
- /**
2874
- * Question asked to members when joining a group. Site owners can set whether it is required to answer the question in the dashboard.
2875
- * > **Note:** Only admins can create or update membership questions.
2876
- */
2877
- interface MembershipQuestion {
2878
- /**
2879
- * Question ID.
2880
- * @readonly
2881
- */
2882
- _id?: string | null;
2883
- /** Whether a member must answer this question when joining the group. */
2884
- required?: boolean;
2885
- /** Question text. */
2886
- text?: string;
2887
- }
2888
- interface ListMembershipQuestionsRequest {
2889
- /** Group ID. */
2890
- groupId: string;
2891
- }
2892
- interface ListMembershipQuestionsResponse {
2893
- /** Membership questions. */
2894
- questions?: MembershipQuestion[];
2895
- }
2896
- interface CreateOrReplaceAllMembershipQuestionsRequest {
2897
- /** Group ID. */
2898
- groupId: string;
2899
- /** New membership questions. */
2900
- questions?: MembershipQuestion[];
2901
- }
2902
- interface CreateOrReplaceAllMembershipQuestionsResponse {
2903
- /** Membership questions. */
2904
- questions?: MembershipQuestion[];
2905
- }
2906
- interface ListAnswersRequest {
2907
- /** Group ID. */
2908
- groupId: string;
2909
- /** Member IDs. If no member ID is provided, answers for all members will be returned. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
2910
- memberIds?: string[];
2911
- paging?: Paging$4;
2912
- }
2913
- interface Paging$4 {
2914
- /** Number of items to load. */
2915
- limit?: number | null;
2916
- /** Number of items to skip in the current sort order. */
2917
- offset?: number | null;
2918
- }
2919
- interface ListAnswersResponse {
2920
- /** Answers to the membership questions, grouped by member. */
2921
- memberAnswers?: MemberMembershipQuestionAnswers[];
2922
- /** Membership questions by question ID. Inludes only questions that have been answered by the specified members. */
2923
- questions?: Record<string, MembershipQuestion>;
2924
- metadata?: PagingMetadata$4;
2925
- }
2926
- interface MemberMembershipQuestionAnswers {
2927
- /** Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
2928
- memberId?: string;
2929
- /** Answers to the membership question. */
2930
- answers?: MembershipQuestionAnswer[];
2931
- }
2932
- /** Answer to a membership question. */
2933
- interface MembershipQuestionAnswer {
2934
- /** Question ID. */
2935
- _id?: string;
2936
- /** Answer text. */
2937
- text?: string | null;
2938
- }
2939
- interface PagingMetadata$4 {
2940
- /** Number of items returned in the response. */
2941
- count?: number | null;
2942
- /** Offset that was requested. */
2943
- offset?: number | null;
2944
- /** Total number of items that match the query. */
2945
- total?: number | null;
2946
- /** Flag that indicates the server failed to calculate the `total` field. */
2947
- tooManyToCount?: boolean | null;
2948
- }
2949
- interface MembershipQuestionNonNullableFields {
2950
- required: boolean;
2951
- text: string;
2952
- }
2953
- interface ListMembershipQuestionsResponseNonNullableFields {
2954
- questions: MembershipQuestionNonNullableFields[];
2955
- }
2956
- interface CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields {
2957
- questions: MembershipQuestionNonNullableFields[];
2958
- }
2959
- interface MembershipQuestionAnswerNonNullableFields {
2960
- _id: string;
2961
- }
2962
- interface MemberMembershipQuestionAnswersNonNullableFields {
2963
- memberId: string;
2964
- answers: MembershipQuestionAnswerNonNullableFields[];
2965
- }
2966
- interface ListAnswersResponseNonNullableFields {
2967
- memberAnswers: MemberMembershipQuestionAnswersNonNullableFields[];
2968
- }
2969
-
2970
- type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2971
- getUrl: (context: any) => string;
2972
- httpMethod: K;
2973
- path: string;
2974
- pathParams: M;
2975
- __requestType: T;
2976
- __originalRequestType: S;
2977
- __responseType: Q;
2978
- __originalResponseType: R;
2979
- };
2980
- declare function listMembershipQuestions(): __PublicMethodMetaInfo$2<'GET', {
2981
- groupId: string;
2982
- }, ListMembershipQuestionsRequest, ListMembershipQuestionsRequest$1, ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields, ListMembershipQuestionsResponse$1 & ListMembershipQuestionsResponseNonNullableFields$1>;
2983
- declare function createOrReplaceAllMembershipQuestions(): __PublicMethodMetaInfo$2<'PUT', {
2984
- groupId: string;
2985
- }, CreateOrReplaceAllMembershipQuestionsRequest, CreateOrReplaceAllMembershipQuestionsRequest$1, CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields, CreateOrReplaceAllMembershipQuestionsResponse$1 & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields$1>;
2986
- declare function listAnswers(): __PublicMethodMetaInfo$2<'POST', {
2987
- groupId: string;
2988
- }, ListAnswersRequest, ListAnswersRequest$1, ListAnswersResponse & ListAnswersResponseNonNullableFields, ListAnswersResponse$1 & ListAnswersResponseNonNullableFields$1>;
2989
-
2990
- declare const meta$2_createOrReplaceAllMembershipQuestions: typeof createOrReplaceAllMembershipQuestions;
2991
- declare const meta$2_listAnswers: typeof listAnswers;
2992
- declare const meta$2_listMembershipQuestions: typeof listMembershipQuestions;
2993
- declare namespace meta$2 {
2994
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_createOrReplaceAllMembershipQuestions as createOrReplaceAllMembershipQuestions, meta$2_listAnswers as listAnswers, meta$2_listMembershipQuestions as listMembershipQuestions };
2995
- }
2996
-
2997
- /**
2998
- * >**Notes:**
2999
- * > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
3000
- * > + In this situation, site members have to submit a Create Request to create a new group.
3001
- * > + Create Requests can be approved or rejected by an admin.
3002
- * > + After a Create Request has been approved, the new group is added to the Group List in the Wix Groups app home page.
3003
- * > + See [Introduction](https://dev.wix.com/api/rest/wix-groups/groups/introduction#wix-groups_groups_introduction_terminology) for more details.
3004
- */
3005
- interface CreateRequest$1 {
3006
- /**
3007
- * Create request ID
3008
- * @readonly
3009
- */
3010
- id?: string | null;
3011
- /** Group requested for creation. */
3012
- group?: Group$1;
3013
- /**
3014
- * Status of request.
3015
- * - `PENDING` - Pending request.
3016
- * - `APPROVED` - Approved request.
3017
- * - `REJECTED` - Rejected request.
3018
- * - `CANCELED` - Canceled request.
3019
- */
3020
- status?: RequestStatus$3;
3021
- /** Request details. */
3022
- requestDetails?: RequestDetails$3;
3023
- }
3024
- interface Group$1 {
3025
- /**
3026
- * Group ID.
3027
- * @readonly
3028
- */
3029
- id?: string | null;
3030
- /** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
3031
- slug?: string | null;
3032
- /**
3033
- * __Deprecated.__ Use `privacyStatus` instead.
3034
- * This property will be removed on June 30, 2022.
3035
- * @deprecated
3036
- */
3037
- privacyLevel?: PrivacyStatus$1;
3038
- /** Group privacy status. */
3039
- privacyStatus?: PrivacyStatus$1;
3040
- /**
3041
- * __Deprecated.__ Use `name` instead.
3042
- * This property will be removed on June 30, 2022.
3043
- * @deprecated
3044
- */
3045
- title?: string | null;
3046
- /** Group name. */
3047
- name?: string | null;
3048
- /** Group description in DraftJS format. */
3049
- description?: string | null;
3050
- /** Group teaser. */
3051
- teaser?: string | null;
3052
- /**
3053
- * __Deprecated.__
3054
- * For `details.logo`, use `coverImage` instead.
3055
- * For `details.membersTitle`, `memberTitle` instead.
3056
- * This property will be removed on June 30, 2022.
3057
- * @deprecated
3058
- */
3059
- details?: GroupDetails$1;
3060
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
3061
- memberTitle?: string | null;
3062
- /** Cover image. You cannot upload your own cover image. */
3063
- coverImage?: CoverImage$1;
3064
- /** Group specific settings. Available to the site owners under `Admin Tools` in the dashboard. */
3065
- settings?: GroupSettings$1;
3066
- /**
3067
- * Total count of current group members.
3068
- * @readonly
3069
- */
3070
- membersCount?: number | null;
3071
- /**
3072
- * __Deprecated.__ Use `ownerId` instead.
3073
- * This property will be removed on June 30, 2022.
3074
- * @readonly
3075
- * @deprecated
3076
- */
3077
- createdBy?: Identity$1;
3078
- /**
3079
- * Group owner.
3080
- * @readonly
3081
- */
3082
- ownerId?: string | null;
3083
- /**
3084
- * Group creation date and time.
3085
- * @readonly
3086
- */
3087
- createdDate?: Date | null;
3088
- /**
3089
- * Date and time of the latest group update.
3090
- * @readonly
3091
- */
3092
- updatedDate?: Date | null;
3093
- /**
3094
- * __Deprecated.__ Use `lastActivityDate` instead.
3095
- * This property will be removed on June 30, 2022.
3096
- * @readonly
3097
- * @deprecated
3098
- */
3099
- recentActivityDate?: Date | null;
3100
- /**
3101
- * Date and time of the most recent group activity, for example a post or comment.
3102
- * @readonly
3103
- */
3104
- lastActivityDate?: Date | null;
3105
- }
3106
- declare enum Type$1 {
3107
- UNKNOWN = "UNKNOWN",
3108
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
3109
- PAID_PLANS = "PAID_PLANS",
3110
- EVENTS = "EVENTS"
3111
- }
3112
- interface Logo$1 {
3113
- /** Logo image ID (for internal use). */
3114
- mediaId?: string | null;
3115
- /** Logo image width. */
3116
- width?: number | null;
3117
- /** Logo image height. */
3118
- height?: number | null;
3119
- }
3120
- interface Image$1 {
3121
- /** Image ID (for internal use). */
3122
- mediaId?: string | null;
3123
- /** Image width. */
3124
- width?: number | null;
3125
- /** Image height. */
3126
- height?: number | null;
3127
- }
3128
- interface Position$1 {
3129
- /** horizontal coordinate */
3130
- x?: number;
3131
- /** vertical coordinate */
3132
- y?: number;
3133
- }
3134
- declare enum AllowPolicy$1 {
3135
- UNKNOWN = "UNKNOWN",
3136
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
3137
- OWNER = "OWNER",
3138
- ALL_MEMBERS = "ALL_MEMBERS"
3139
- }
3140
- declare enum StepKey$1 {
3141
- UNKNOWN = "UNKNOWN",
3142
- CREATE_POST = "CREATE_POST",
3143
- REACT_TO_POST = "REACT_TO_POST",
3144
- INVITE_MEMBERS = "INVITE_MEMBERS"
3145
- }
3146
- declare enum PrivacyStatus$1 {
3147
- /** Undefined group privacy status. */
3148
- UNKNOWN = "UNKNOWN",
3149
- /** Anyone can see the group and its content. Anyone can join the group. */
3150
- PUBLIC = "PUBLIC",
3151
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
3152
- PRIVATE = "PRIVATE",
3153
- /** Only admins and members can see the group. New members can only be added by other members. */
3154
- SECRET = "SECRET"
3155
- }
3156
- interface GroupDetails$1 {
3157
- /** Group logo. You cannot upload your own logo. */
3158
- logo?: Logo$1;
3159
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
3160
- membersTitle?: string | null;
3161
- }
3162
- interface CoverImage$1 {
3163
- /** Cover image. */
3164
- image?: Image$1;
3165
- /** Position of the corner of the cover image (or logo). */
3166
- position?: Position$1;
3167
- /** Position of the corner of the cover image (or logo) for mobile browser. */
3168
- mobilePosition?: Position$1;
3169
- }
3170
- interface GroupSettings$1 {
3171
- /**
3172
- * __Deprecated.__ Use `allowedToInviteMembers` instead.
3173
- * Whether regular members are permitted to invite new members.
3174
- * If `false`, only admins can invite members. Defaults to `true`.
3175
- * @deprecated
3176
- */
3177
- membersCanInvite?: boolean | null;
3178
- /**
3179
- * __Deprecated.__ Use `allowedToApproveJoinRequests` instead.
3180
- * Whether all group members are permitted to approve join group requests.
3181
- * If `false`, member approval is limited to the admins.
3182
- * @deprecated
3183
- */
3184
- membersCanApprove?: boolean | null;
3185
- /**
3186
- * __Deprecated.__ Use `welcomeMemberPostEnabled` instead.
3187
- * This property will be removed on June 30, 2022.
3188
- * @deprecated
3189
- */
3190
- memberWelcomePostEnabled?: boolean | null;
3191
- /** Whether a daily post about new members is enabled. */
3192
- welcomeMemberPostEnabled?: boolean | null;
3193
- /** Whether an automatic post about changing the group details is enabled. */
3194
- groupDetailsChangedPostEnabled?: boolean | null;
3195
- /** Whether all members can see the full member list. */
3196
- showMemberList?: boolean | null;
3197
- }
3198
- interface Identity$1 {
3199
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
3200
- id?: string | null;
3201
- identityType?: IdentityType$1;
3202
- }
3203
- declare enum IdentityType$1 {
3204
- USER = "USER",
3205
- MEMBER = "MEMBER"
3206
- }
3207
- declare enum RequestStatus$3 {
3208
- /** Undefined request status. */
3209
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
3210
- /** Pending group request. */
3211
- PENDING = "PENDING",
3212
- /** Approved group request. */
3213
- APPROVED = "APPROVED",
3214
- /** Rejected group request. */
3215
- REJECTED = "REJECTED",
3216
- /** Cancelled group request. */
3217
- CANCELLED = "CANCELLED",
3218
- /** Canceled group request. */
3219
- CANCELED = "CANCELED"
3220
- }
3221
- interface RequestDetails$3 {
3222
- /** Reason the request has been rejected. */
3223
- rejectionReason?: string | null;
3224
- }
3225
- interface ApproveCreateRequestsRequest$1 {
3226
- /** Create Request IDs to approve. Limited to `100`. */
3227
- createRequestIds?: string[];
3228
- }
3229
- interface ApproveCreateRequestsResponse$1 {
3230
- /** Approved Create Requests. */
3231
- createRequest?: CreateRequest$1[];
3232
- }
3233
- interface RejectCreateRequestsRequest$1 {
3234
- /** Rejection data. */
3235
- rejections?: Rejection$3[];
3236
- }
3237
- interface Rejection$3 {
3238
- /** ID of the Create Request to reject. */
3239
- createRequestId?: string;
3240
- /** Rejection reason. Free text displayed to the creator of the rejected Create Request. Limited to 1,000 characters. */
3241
- reason?: string | null;
3242
- }
3243
- interface RejectCreateRequestsResponse$1 {
3244
- /** Rejected Create Requests. */
3245
- createRequest?: CreateRequest$1[];
3246
- }
3247
- interface ListCreateRequestsRequest$1 {
3248
- /** Number of items to load. Maximum `100`. */
3249
- limit?: number | null;
3250
- /** Number of items to skip in the current sort order. */
3251
- offset?: number | null;
3252
- }
3253
- interface ListCreateRequestsResponse$1 {
3254
- /** Create Requests. */
3255
- createRequests?: CreateRequest$1[];
3256
- metadata?: PagingMetadata$3;
3257
- }
3258
- interface PagingMetadata$3 {
3259
- /** Number of items returned in the response. */
3260
- count?: number | null;
3261
- /** Offset that was requested. */
3262
- offset?: number | null;
3263
- /** Total number of items that match the query. */
3264
- total?: number | null;
3265
- /** Flag that indicates the server failed to calculate the `total` field. */
3266
- tooManyToCount?: boolean | null;
3267
- }
3268
- interface QueryCreateRequestsRequest$1 {
3269
- query?: Query$3;
3270
- }
3271
- interface Query$3 {
3272
- /**
3273
- * Filter object in the following format:
3274
- * `"filter" : {
3275
- * "fieldName1": "value1",
3276
- * "fieldName2":{"$operator":"value2"}
3277
- * }`
3278
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3279
- */
3280
- filter?: any;
3281
- /**
3282
- * Sort object in the following format:
3283
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
3284
- */
3285
- sort?: Sorting$3[];
3286
- /** Paging options to limit and skip the number of items. */
3287
- paging?: Paging$3;
3288
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
3289
- fields?: string[];
3290
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
3291
- fieldsets?: string[];
3292
- }
3293
- interface Sorting$3 {
3294
- /** Name of the field to sort by. */
3295
- fieldName?: string;
3296
- /** Sort order. */
3297
- order?: SortOrder$3;
3298
- }
3299
- declare enum SortOrder$3 {
3300
- ASC = "ASC",
3301
- DESC = "DESC"
3302
- }
3303
- interface Paging$3 {
3304
- /** Number of items to load. */
3305
- limit?: number | null;
3306
- /** Number of items to skip in the current sort order. */
3307
- offset?: number | null;
3308
- }
3309
- interface QueryCreateRequestsResponse$1 {
3310
- /** Retrieved Create Requests. */
3311
- createRequests?: CreateRequest$1[];
3312
- metadata?: PagingMetadata$3;
3313
- }
3314
- interface EventsNonNullableFields$1 {
3315
- eventIds: string[];
3316
- }
3317
- interface AccessRestrictionNonNullableFields$1 {
3318
- events?: EventsNonNullableFields$1;
3319
- type: Type$1;
3320
- }
3321
- interface GroupDetailsPositionNonNullableFields$1 {
3322
- x: number;
3323
- y: number;
3324
- }
3325
- interface GroupDetailsNonNullableFields$1 {
3326
- logoPosition?: GroupDetailsPositionNonNullableFields$1;
3327
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields$1;
3328
- }
3329
- interface PositionNonNullableFields$1 {
3330
- x: number;
3331
- y: number;
3332
- }
3333
- interface CoverImageNonNullableFields$1 {
3334
- position?: PositionNonNullableFields$1;
3335
- mobilePosition?: PositionNonNullableFields$1;
3336
- }
3337
- interface OnboardingStepSettingsNonNullableFields$1 {
3338
- stepKey: StepKey$1;
3339
- visible: boolean;
3340
- }
3341
- interface GroupSettingsNonNullableFields$1 {
3342
- allowedToInviteMembers: AllowPolicy$1;
3343
- allowedToApproveJoinRequests: AllowPolicy$1;
3344
- allowedToAddMembers: AllowPolicy$1;
3345
- allowedToCreatePosts: AllowPolicy$1;
3346
- allowedToCommentPosts: AllowPolicy$1;
3347
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields$1[];
3348
- }
3349
- interface IdentityNonNullableFields$1 {
3350
- identityType: IdentityType$1;
3351
- }
3352
- interface GroupNonNullableFields$1 {
3353
- privacyLevel: PrivacyStatus$1;
3354
- privacyStatus: PrivacyStatus$1;
3355
- accessRestriction?: AccessRestrictionNonNullableFields$1;
3356
- details?: GroupDetailsNonNullableFields$1;
3357
- coverImage?: CoverImageNonNullableFields$1;
3358
- settings?: GroupSettingsNonNullableFields$1;
3359
- createdBy?: IdentityNonNullableFields$1;
3360
- }
3361
- interface CreateRequestNonNullableFields$1 {
3362
- group?: GroupNonNullableFields$1;
3363
- status: RequestStatus$3;
3364
- }
3365
- interface ApproveCreateRequestsResponseNonNullableFields$1 {
3366
- createRequest: CreateRequestNonNullableFields$1[];
3367
- }
3368
- interface RejectCreateRequestsResponseNonNullableFields$1 {
3369
- createRequest: CreateRequestNonNullableFields$1[];
3370
- }
3371
- interface ListCreateRequestsResponseNonNullableFields$1 {
3372
- createRequests: CreateRequestNonNullableFields$1[];
3373
- }
3374
- interface QueryCreateRequestsResponseNonNullableFields$1 {
3375
- createRequests: CreateRequestNonNullableFields$1[];
3376
- }
3377
-
3378
- /**
3379
- * >**Notes:**
3380
- * > + Site owners may set that members are not permitted to create groups in the Wix Groups application settings.
3381
- * > + In this situation, site members have to submit a Create Request to create a new group.
3382
- * > + Create Requests can be approved or rejected by an admin.
3383
- * > + After a Create Request has been approved, the new group is added to the Group List in the Wix Groups app home page.
3384
- * > + See [Introduction](https://dev.wix.com/api/rest/wix-groups/groups/introduction#wix-groups_groups_introduction_terminology) for more details.
3385
- */
3386
- interface CreateRequest {
3387
- /**
3388
- * Create request ID
3389
- * @readonly
3390
- */
3391
- _id?: string | null;
3392
- /** Group requested for creation. */
3393
- group?: Group;
3394
- /**
3395
- * Status of request.
3396
- * - `PENDING` - Pending request.
3397
- * - `APPROVED` - Approved request.
3398
- * - `REJECTED` - Rejected request.
3399
- * - `CANCELED` - Canceled request.
3400
- */
3401
- status?: RequestStatus$2;
3402
- /** Request details. */
3403
- requestDetails?: RequestDetails$2;
3404
- }
3405
- interface Group {
3406
- /**
3407
- * Group ID.
3408
- * @readonly
3409
- */
3410
- _id?: string | null;
3411
- /** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
3412
- slug?: string | null;
3413
- /**
3414
- * __Deprecated.__ Use `privacyStatus` instead.
3415
- * This property will be removed on June 30, 2022.
3416
- * @deprecated
3417
- */
3418
- privacyLevel?: PrivacyStatus;
3419
- /** Group privacy status. */
3420
- privacyStatus?: PrivacyStatus;
3421
- /**
3422
- * __Deprecated.__ Use `name` instead.
3423
- * This property will be removed on June 30, 2022.
3424
- * @deprecated
3425
- */
3426
- title?: string | null;
3427
- /** Group name. */
3428
- name?: string | null;
3429
- /** Group description in DraftJS format. */
3430
- description?: string | null;
3431
- /** Group teaser. */
3432
- teaser?: string | null;
3433
- /**
3434
- * __Deprecated.__
3435
- * For `details.logo`, use `coverImage` instead.
3436
- * For `details.membersTitle`, `memberTitle` instead.
3437
- * This property will be removed on June 30, 2022.
3438
- * @deprecated
3439
- */
3440
- details?: GroupDetails;
3441
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
3442
- memberTitle?: string | null;
3443
- /** Cover image. You cannot upload your own cover image. */
3444
- coverImage?: CoverImage;
3445
- /** Group specific settings. Available to the site owners under `Admin Tools` in the dashboard. */
3446
- settings?: GroupSettings;
3447
- /**
3448
- * Total count of current group members.
3449
- * @readonly
3450
- */
3451
- membersCount?: number | null;
3452
- /**
3453
- * __Deprecated.__ Use `ownerId` instead.
3454
- * This property will be removed on June 30, 2022.
3455
- * @readonly
3456
- * @deprecated
3457
- */
3458
- createdBy?: Identity;
3459
- /**
3460
- * Group owner.
3461
- * @readonly
3462
- */
3463
- ownerId?: string | null;
3464
- /**
3465
- * Group creation date and time.
3466
- * @readonly
3467
- */
3468
- _createdDate?: Date | null;
3469
- /**
3470
- * Date and time of the latest group update.
3471
- * @readonly
3472
- */
3473
- _updatedDate?: Date | null;
3474
- /**
3475
- * __Deprecated.__ Use `lastActivityDate` instead.
3476
- * This property will be removed on June 30, 2022.
3477
- * @readonly
3478
- * @deprecated
3479
- */
3480
- recentActivityDate?: Date | null;
3481
- /**
3482
- * Date and time of the most recent group activity, for example a post or comment.
3483
- * @readonly
3484
- */
3485
- lastActivityDate?: Date | null;
3486
- }
3487
- declare enum Type {
3488
- UNKNOWN = "UNKNOWN",
3489
- ADMIN_APPROVAL = "ADMIN_APPROVAL",
3490
- PAID_PLANS = "PAID_PLANS",
3491
- EVENTS = "EVENTS"
3492
- }
3493
- interface Logo {
3494
- /** Logo image ID (for internal use). */
3495
- mediaId?: string | null;
3496
- /** Logo image width. */
3497
- width?: number | null;
3498
- /** Logo image height. */
3499
- height?: number | null;
3500
- }
3501
- interface Image {
3502
- /** Image ID (for internal use). */
3503
- mediaId?: string | null;
3504
- /** Image width. */
3505
- width?: number | null;
3506
- /** Image height. */
3507
- height?: number | null;
3508
- }
3509
- interface Position {
3510
- /** horizontal coordinate */
3511
- x?: number;
3512
- /** vertical coordinate */
3513
- y?: number;
3514
- }
3515
- declare enum AllowPolicy {
3516
- UNKNOWN = "UNKNOWN",
3517
- OWNER_AND_ADMINS = "OWNER_AND_ADMINS",
3518
- OWNER = "OWNER",
3519
- ALL_MEMBERS = "ALL_MEMBERS"
3520
- }
3521
- declare enum StepKey {
3522
- UNKNOWN = "UNKNOWN",
3523
- CREATE_POST = "CREATE_POST",
3524
- REACT_TO_POST = "REACT_TO_POST",
3525
- INVITE_MEMBERS = "INVITE_MEMBERS"
3526
- }
3527
- declare enum PrivacyStatus {
3528
- /** Undefined group privacy status. */
3529
- UNKNOWN = "UNKNOWN",
3530
- /** Anyone can see the group and its content. Anyone can join the group. */
3531
- PUBLIC = "PUBLIC",
3532
- /** Anyone can see the group, but only members can see its content. New members must submit a `Join Group Request`. */
3533
- PRIVATE = "PRIVATE",
3534
- /** Only admins and members can see the group. New members can only be added by other members. */
3535
- SECRET = "SECRET"
3536
- }
3537
- interface GroupDetails {
3538
- /** Group logo. You cannot upload your own logo. */
3539
- logo?: Logo;
3540
- /** What group members are called, for example `Coworkers`, `Friends`, or `Students`. */
3541
- membersTitle?: string | null;
3542
- }
3543
- interface CoverImage {
3544
- /** Cover image. */
3545
- image?: Image;
3546
- /** Position of the corner of the cover image (or logo). */
3547
- position?: Position;
3548
- /** Position of the corner of the cover image (or logo) for mobile browser. */
3549
- mobilePosition?: Position;
3550
- }
3551
- interface GroupSettings {
3552
- /**
3553
- * __Deprecated.__ Use `allowedToInviteMembers` instead.
3554
- * Whether regular members are permitted to invite new members.
3555
- * If `false`, only admins can invite members. Defaults to `true`.
3556
- * @deprecated
3557
- */
3558
- membersCanInvite?: boolean | null;
3559
- /**
3560
- * __Deprecated.__ Use `allowedToApproveJoinRequests` instead.
3561
- * Whether all group members are permitted to approve join group requests.
3562
- * If `false`, member approval is limited to the admins.
3563
- * @deprecated
3564
- */
3565
- membersCanApprove?: boolean | null;
3566
- /**
3567
- * __Deprecated.__ Use `welcomeMemberPostEnabled` instead.
3568
- * This property will be removed on June 30, 2022.
3569
- * @deprecated
3570
- */
3571
- memberWelcomePostEnabled?: boolean | null;
3572
- /** Whether a daily post about new members is enabled. */
3573
- welcomeMemberPostEnabled?: boolean | null;
3574
- /** Whether an automatic post about changing the group details is enabled. */
3575
- groupDetailsChangedPostEnabled?: boolean | null;
3576
- /** Whether all members can see the full member list. */
3577
- showMemberList?: boolean | null;
3578
- }
3579
- interface Identity {
3580
- /** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
3581
- _id?: string | null;
3582
- identityType?: IdentityType;
3583
- }
3584
- declare enum IdentityType {
3585
- USER = "USER",
3586
- MEMBER = "MEMBER"
3587
- }
3588
- declare enum RequestStatus$2 {
3589
- /** Undefined request status. */
3590
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
3591
- /** Pending group request. */
3592
- PENDING = "PENDING",
3593
- /** Approved group request. */
3594
- APPROVED = "APPROVED",
3595
- /** Rejected group request. */
3596
- REJECTED = "REJECTED",
3597
- /** Cancelled group request. */
3598
- CANCELLED = "CANCELLED",
3599
- /** Canceled group request. */
3600
- CANCELED = "CANCELED"
3601
- }
3602
- interface RequestDetails$2 {
3603
- /** Reason the request has been rejected. */
3604
- rejectionReason?: string | null;
3605
- }
3606
- interface ApproveCreateRequestsRequest {
3607
- /** Create Request IDs to approve. Limited to `100`. */
3608
- createRequestIds?: string[];
3609
- }
3610
- interface ApproveCreateRequestsResponse {
3611
- /** Approved Create Requests. */
3612
- createRequest?: CreateRequest[];
3613
- }
3614
- interface RejectCreateRequestsRequest {
3615
- /** Rejection data. */
3616
- rejections?: Rejection$2[];
3617
- }
3618
- interface Rejection$2 {
3619
- /** ID of the Create Request to reject. */
3620
- createRequestId?: string;
3621
- /** Rejection reason. Free text displayed to the creator of the rejected Create Request. Limited to 1,000 characters. */
3622
- reason?: string | null;
3623
- }
3624
- interface RejectCreateRequestsResponse {
3625
- /** Rejected Create Requests. */
3626
- createRequest?: CreateRequest[];
3627
- }
3628
- interface ListCreateRequestsRequest {
3629
- /** Number of items to load. Maximum `100`. */
3630
- limit?: number | null;
3631
- /** Number of items to skip in the current sort order. */
3632
- offset?: number | null;
3633
- }
3634
- interface ListCreateRequestsResponse {
3635
- /** Create Requests. */
3636
- createRequests?: CreateRequest[];
3637
- metadata?: PagingMetadata$2;
3638
- }
3639
- interface PagingMetadata$2 {
3640
- /** Number of items returned in the response. */
3641
- count?: number | null;
3642
- /** Offset that was requested. */
3643
- offset?: number | null;
3644
- /** Total number of items that match the query. */
3645
- total?: number | null;
3646
- /** Flag that indicates the server failed to calculate the `total` field. */
3647
- tooManyToCount?: boolean | null;
3648
- }
3649
- interface QueryCreateRequestsRequest {
3650
- query?: Query$2;
3651
- }
3652
- interface Query$2 {
3653
- /**
3654
- * Filter object in the following format:
3655
- * `"filter" : {
3656
- * "fieldName1": "value1",
3657
- * "fieldName2":{"$operator":"value2"}
3658
- * }`
3659
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3660
- */
3661
- filter?: any;
3662
- /**
3663
- * Sort object in the following format:
3664
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
3665
- */
3666
- sort?: Sorting$2[];
3667
- /** Paging options to limit and skip the number of items. */
3668
- paging?: Paging$2;
3669
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
3670
- fields?: string[];
3671
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
3672
- fieldsets?: string[];
3673
- }
3674
- interface Sorting$2 {
3675
- /** Name of the field to sort by. */
3676
- fieldName?: string;
3677
- /** Sort order. */
3678
- order?: SortOrder$2;
3679
- }
3680
- declare enum SortOrder$2 {
3681
- ASC = "ASC",
3682
- DESC = "DESC"
3683
- }
3684
- interface Paging$2 {
3685
- /** Number of items to load. */
3686
- limit?: number | null;
3687
- /** Number of items to skip in the current sort order. */
3688
- offset?: number | null;
3689
- }
3690
- interface QueryCreateRequestsResponse {
3691
- /** Retrieved Create Requests. */
3692
- createRequests?: CreateRequest[];
3693
- metadata?: PagingMetadata$2;
3694
- }
3695
- interface EventsNonNullableFields {
3696
- eventIds: string[];
3697
- }
3698
- interface AccessRestrictionNonNullableFields {
3699
- events?: EventsNonNullableFields;
3700
- type: Type;
3701
- }
3702
- interface GroupDetailsPositionNonNullableFields {
3703
- x: number;
3704
- y: number;
3705
- }
3706
- interface GroupDetailsNonNullableFields {
3707
- logoPosition?: GroupDetailsPositionNonNullableFields;
3708
- mobileLogoPosition?: GroupDetailsPositionNonNullableFields;
3709
- }
3710
- interface PositionNonNullableFields {
3711
- x: number;
3712
- y: number;
3713
- }
3714
- interface CoverImageNonNullableFields {
3715
- position?: PositionNonNullableFields;
3716
- mobilePosition?: PositionNonNullableFields;
3717
- }
3718
- interface OnboardingStepSettingsNonNullableFields {
3719
- stepKey: StepKey;
3720
- visible: boolean;
3721
- }
3722
- interface GroupSettingsNonNullableFields {
3723
- allowedToInviteMembers: AllowPolicy;
3724
- allowedToApproveJoinRequests: AllowPolicy;
3725
- allowedToAddMembers: AllowPolicy;
3726
- allowedToCreatePosts: AllowPolicy;
3727
- allowedToCommentPosts: AllowPolicy;
3728
- onboardingStepsSettings: OnboardingStepSettingsNonNullableFields[];
3729
- }
3730
- interface IdentityNonNullableFields {
3731
- identityType: IdentityType;
3732
- }
3733
- interface GroupNonNullableFields {
3734
- privacyLevel: PrivacyStatus;
3735
- privacyStatus: PrivacyStatus;
3736
- accessRestriction?: AccessRestrictionNonNullableFields;
3737
- details?: GroupDetailsNonNullableFields;
3738
- coverImage?: CoverImageNonNullableFields;
3739
- settings?: GroupSettingsNonNullableFields;
3740
- createdBy?: IdentityNonNullableFields;
3741
- }
3742
- interface CreateRequestNonNullableFields {
3743
- group?: GroupNonNullableFields;
3744
- status: RequestStatus$2;
3745
- }
3746
- interface ApproveCreateRequestsResponseNonNullableFields {
3747
- createRequest: CreateRequestNonNullableFields[];
3748
- }
3749
- interface RejectCreateRequestsResponseNonNullableFields {
3750
- createRequest: CreateRequestNonNullableFields[];
3751
- }
3752
- interface ListCreateRequestsResponseNonNullableFields {
3753
- createRequests: CreateRequestNonNullableFields[];
3754
- }
3755
- interface QueryCreateRequestsResponseNonNullableFields {
3756
- createRequests: CreateRequestNonNullableFields[];
3757
- }
3758
-
3759
- type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3760
- getUrl: (context: any) => string;
3761
- httpMethod: K;
3762
- path: string;
3763
- pathParams: M;
3764
- __requestType: T;
3765
- __originalRequestType: S;
3766
- __responseType: Q;
3767
- __originalResponseType: R;
3768
- };
3769
- declare function approveCreateRequests(): __PublicMethodMetaInfo$1<'POST', {}, ApproveCreateRequestsRequest, ApproveCreateRequestsRequest$1, ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields, ApproveCreateRequestsResponse$1 & ApproveCreateRequestsResponseNonNullableFields$1>;
3770
- declare function rejectCreateRequests(): __PublicMethodMetaInfo$1<'POST', {}, RejectCreateRequestsRequest, RejectCreateRequestsRequest$1, RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields, RejectCreateRequestsResponse$1 & RejectCreateRequestsResponseNonNullableFields$1>;
3771
- declare function listCreateRequests(): __PublicMethodMetaInfo$1<'GET', {}, ListCreateRequestsRequest, ListCreateRequestsRequest$1, ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields, ListCreateRequestsResponse$1 & ListCreateRequestsResponseNonNullableFields$1>;
3772
- declare function queryCreateRequests(): __PublicMethodMetaInfo$1<'POST', {}, QueryCreateRequestsRequest, QueryCreateRequestsRequest$1, QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields, QueryCreateRequestsResponse$1 & QueryCreateRequestsResponseNonNullableFields$1>;
3773
-
3774
- declare const meta$1_approveCreateRequests: typeof approveCreateRequests;
3775
- declare const meta$1_listCreateRequests: typeof listCreateRequests;
3776
- declare const meta$1_queryCreateRequests: typeof queryCreateRequests;
3777
- declare const meta$1_rejectCreateRequests: typeof rejectCreateRequests;
3778
- declare namespace meta$1 {
3779
- export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_approveCreateRequests as approveCreateRequests, meta$1_listCreateRequests as listCreateRequests, meta$1_queryCreateRequests as queryCreateRequests, meta$1_rejectCreateRequests as rejectCreateRequests };
3780
- }
3781
-
3782
- /**
3783
- * To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
3784
- * When the request is approved, the site member becomes a group member.
3785
- */
3786
- interface JoinRequest$1 {
3787
- /**
3788
- * Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details.
3789
- * @readonly
3790
- */
3791
- memberId?: string;
3792
- /**
3793
- * Join request status.
3794
- * - `PENDING` - Pending join request.
3795
- * - `APPROVED` - Approved join request.
3796
- * - `REJECTED` - Rejected join request.
3797
- * - `CANCELED` - Canceled join request.
3798
- */
3799
- status?: RequestStatus$1;
3800
- /** Join request details. */
3801
- requestDetails?: RequestDetails$1;
3802
- }
3803
- declare enum RequestStatus$1 {
3804
- /** Undefined request status. */
3805
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
3806
- /** Pending group request. */
3807
- PENDING = "PENDING",
3808
- /** Approved group request. */
3809
- APPROVED = "APPROVED",
3810
- /** Rejected group request. */
3811
- REJECTED = "REJECTED",
3812
- /** Cancelled group request. */
3813
- CANCELLED = "CANCELLED",
3814
- /** Canceled group request. */
3815
- CANCELED = "CANCELED"
3816
- }
3817
- interface RequestDetails$1 {
3818
- /** Reason the request has been rejected. */
3819
- rejectionReason?: string | null;
3820
- }
3821
- interface ApproveJoinRequestsRequest$1 {
3822
- /** Relevant group. */
3823
- groupId: string;
3824
- /** Member IDs to approve. */
3825
- memberIds: string[];
3826
- }
3827
- interface ApproveJoinRequestsResponse$1 {
3828
- /** Approved join requests. */
3829
- joinRequests?: JoinRequest$1[];
3830
- }
3831
- interface RejectJoinRequestsRequest$1 {
3832
- /** Relevant group. */
3833
- groupId: string;
3834
- /** Rejection data. */
3835
- rejections?: Rejection$1[];
3836
- }
3837
- interface Rejection$1 {
3838
- /** Member ID to reject. */
3839
- memberId?: string;
3840
- /** Rejection reason. Free text that will be displayed to the rejected site member (max 1,000 characters). */
3841
- reason?: string | null;
3842
- }
3843
- interface RejectJoinRequestsResponse$1 {
3844
- /** Rejected join requests. */
3845
- joinRequests?: JoinRequest$1[];
3846
- }
3847
- interface ListJoinRequestsRequest$1 {
3848
- /** Group ID. */
3849
- groupId: string;
3850
- limit?: number | null;
3851
- offset?: number | null;
3852
- }
3853
- interface ListJoinRequestsResponse$1 {
3854
- /** Join requests. */
3855
- joinRequests?: JoinRequest$1[];
3856
- metadata?: PagingMetadata$1;
3857
- }
3858
- interface PagingMetadata$1 {
3859
- /** Number of items returned in the response. */
3860
- count?: number | null;
3861
- /** Offset that was requested. */
3862
- offset?: number | null;
3863
- /** Total number of items that match the query. */
3864
- total?: number | null;
3865
- /** Flag that indicates the server failed to calculate the `total` field. */
3866
- tooManyToCount?: boolean | null;
3867
- }
3868
- interface QueryJoinRequestsRequest$1 {
3869
- /** Group ID. */
3870
- groupId: string;
3871
- query?: Query$1;
3872
- }
3873
- interface Query$1 {
3874
- /**
3875
- * Filter object in the following format:
3876
- * `"filter" : {
3877
- * "fieldName1": "value1",
3878
- * "fieldName2":{"$operator":"value2"}
3879
- * }`
3880
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3881
- */
3882
- filter?: any;
3883
- /**
3884
- * Sort object in the following format:
3885
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
3886
- */
3887
- sort?: Sorting$1[];
3888
- /** Paging options to limit and skip the number of items. */
3889
- paging?: Paging$1;
3890
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
3891
- fields?: string[];
3892
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
3893
- fieldsets?: string[];
3894
- }
3895
- interface Sorting$1 {
3896
- /** Name of the field to sort by. */
3897
- fieldName?: string;
3898
- /** Sort order. */
3899
- order?: SortOrder$1;
3900
- }
3901
- declare enum SortOrder$1 {
3902
- ASC = "ASC",
3903
- DESC = "DESC"
3904
- }
3905
- interface Paging$1 {
3906
- /** Number of items to load. */
3907
- limit?: number | null;
3908
- /** Number of items to skip in the current sort order. */
3909
- offset?: number | null;
3910
- }
3911
- interface QueryJoinRequestsResponse$1 {
3912
- /** Join requests. */
3913
- joinRequests?: JoinRequest$1[];
3914
- metadata?: PagingMetadata$1;
3915
- }
3916
- interface JoinRequestNonNullableFields$1 {
3917
- memberId: string;
3918
- status: RequestStatus$1;
3919
- }
3920
- interface ApproveJoinRequestsResponseNonNullableFields$1 {
3921
- joinRequests: JoinRequestNonNullableFields$1[];
3922
- }
3923
- interface RejectJoinRequestsResponseNonNullableFields$1 {
3924
- joinRequests: JoinRequestNonNullableFields$1[];
3925
- }
3926
- interface ListJoinRequestsResponseNonNullableFields$1 {
3927
- joinRequests: JoinRequestNonNullableFields$1[];
3928
- }
3929
- interface QueryJoinRequestsResponseNonNullableFields$1 {
3930
- joinRequests: JoinRequestNonNullableFields$1[];
3931
- }
3932
-
3933
- /**
3934
- * To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
3935
- * When the request is approved, the site member becomes a group member.
3936
- */
3937
- interface JoinRequest {
3938
- /**
3939
- * Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details.
3940
- * @readonly
3941
- */
3942
- memberId?: string;
3943
- /**
3944
- * Join request status.
3945
- * - `PENDING` - Pending join request.
3946
- * - `APPROVED` - Approved join request.
3947
- * - `REJECTED` - Rejected join request.
3948
- * - `CANCELED` - Canceled join request.
3949
- */
3950
- status?: RequestStatus;
3951
- /** Join request details. */
3952
- requestDetails?: RequestDetails;
3953
- }
3954
- declare enum RequestStatus {
3955
- /** Undefined request status. */
3956
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
3957
- /** Pending group request. */
3958
- PENDING = "PENDING",
3959
- /** Approved group request. */
3960
- APPROVED = "APPROVED",
3961
- /** Rejected group request. */
3962
- REJECTED = "REJECTED",
3963
- /** Cancelled group request. */
3964
- CANCELLED = "CANCELLED",
3965
- /** Canceled group request. */
3966
- CANCELED = "CANCELED"
3967
- }
3968
- interface RequestDetails {
3969
- /** Reason the request has been rejected. */
3970
- rejectionReason?: string | null;
3971
- }
3972
- interface ApproveJoinRequestsRequest {
3973
- /** Relevant group. */
3974
- groupId: string;
3975
- /** Member IDs to approve. */
3976
- memberIds: string[];
3977
- }
3978
- interface ApproveJoinRequestsResponse {
3979
- /** Approved join requests. */
3980
- joinRequests?: JoinRequest[];
3981
- }
3982
- interface RejectJoinRequestsRequest {
3983
- /** Relevant group. */
3984
- groupId: string;
3985
- /** Rejection data. */
3986
- rejections?: Rejection[];
3987
- }
3988
- interface Rejection {
3989
- /** Member ID to reject. */
3990
- memberId?: string;
3991
- /** Rejection reason. Free text that will be displayed to the rejected site member (max 1,000 characters). */
3992
- reason?: string | null;
3993
- }
3994
- interface RejectJoinRequestsResponse {
3995
- /** Rejected join requests. */
3996
- joinRequests?: JoinRequest[];
3997
- }
3998
- interface ListJoinRequestsRequest {
3999
- /** Group ID. */
4000
- groupId: string;
4001
- limit?: number | null;
4002
- offset?: number | null;
4003
- }
4004
- interface ListJoinRequestsResponse {
4005
- /** Join requests. */
4006
- joinRequests?: JoinRequest[];
4007
- metadata?: PagingMetadata;
4008
- }
4009
- interface PagingMetadata {
4010
- /** Number of items returned in the response. */
4011
- count?: number | null;
4012
- /** Offset that was requested. */
4013
- offset?: number | null;
4014
- /** Total number of items that match the query. */
4015
- total?: number | null;
4016
- /** Flag that indicates the server failed to calculate the `total` field. */
4017
- tooManyToCount?: boolean | null;
4018
- }
4019
- interface QueryJoinRequestsRequest {
4020
- /** Group ID. */
4021
- groupId: string;
4022
- query?: Query;
4023
- }
4024
- interface Query {
4025
- /**
4026
- * Filter object in the following format:
4027
- * `"filter" : {
4028
- * "fieldName1": "value1",
4029
- * "fieldName2":{"$operator":"value2"}
4030
- * }`
4031
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
4032
- */
4033
- filter?: any;
4034
- /**
4035
- * Sort object in the following format:
4036
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
4037
- */
4038
- sort?: Sorting[];
4039
- /** Paging options to limit and skip the number of items. */
4040
- paging?: Paging;
4041
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
4042
- fields?: string[];
4043
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
4044
- fieldsets?: string[];
4045
- }
4046
- interface Sorting {
4047
- /** Name of the field to sort by. */
4048
- fieldName?: string;
4049
- /** Sort order. */
4050
- order?: SortOrder;
4051
- }
4052
- declare enum SortOrder {
4053
- ASC = "ASC",
4054
- DESC = "DESC"
4055
- }
4056
- interface Paging {
4057
- /** Number of items to load. */
4058
- limit?: number | null;
4059
- /** Number of items to skip in the current sort order. */
4060
- offset?: number | null;
4061
- }
4062
- interface QueryJoinRequestsResponse {
4063
- /** Join requests. */
4064
- joinRequests?: JoinRequest[];
4065
- metadata?: PagingMetadata;
4066
- }
4067
- interface JoinRequestNonNullableFields {
4068
- memberId: string;
4069
- status: RequestStatus;
4070
- }
4071
- interface ApproveJoinRequestsResponseNonNullableFields {
4072
- joinRequests: JoinRequestNonNullableFields[];
4073
- }
4074
- interface RejectJoinRequestsResponseNonNullableFields {
4075
- joinRequests: JoinRequestNonNullableFields[];
4076
- }
4077
- interface ListJoinRequestsResponseNonNullableFields {
4078
- joinRequests: JoinRequestNonNullableFields[];
4079
- }
4080
- interface QueryJoinRequestsResponseNonNullableFields {
4081
- joinRequests: JoinRequestNonNullableFields[];
4082
- }
4083
-
4084
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4085
- getUrl: (context: any) => string;
4086
- httpMethod: K;
4087
- path: string;
4088
- pathParams: M;
4089
- __requestType: T;
4090
- __originalRequestType: S;
4091
- __responseType: Q;
4092
- __originalResponseType: R;
4093
- };
4094
- declare function approveJoinRequests(): __PublicMethodMetaInfo<'POST', {
4095
- groupId: string;
4096
- }, ApproveJoinRequestsRequest, ApproveJoinRequestsRequest$1, ApproveJoinRequestsResponse & ApproveJoinRequestsResponseNonNullableFields, ApproveJoinRequestsResponse$1 & ApproveJoinRequestsResponseNonNullableFields$1>;
4097
- declare function rejectJoinRequests(): __PublicMethodMetaInfo<'POST', {
4098
- groupId: string;
4099
- }, RejectJoinRequestsRequest, RejectJoinRequestsRequest$1, RejectJoinRequestsResponse & RejectJoinRequestsResponseNonNullableFields, RejectJoinRequestsResponse$1 & RejectJoinRequestsResponseNonNullableFields$1>;
4100
- declare function listJoinRequests(): __PublicMethodMetaInfo<'GET', {
4101
- groupId: string;
4102
- }, ListJoinRequestsRequest, ListJoinRequestsRequest$1, ListJoinRequestsResponse & ListJoinRequestsResponseNonNullableFields, ListJoinRequestsResponse$1 & ListJoinRequestsResponseNonNullableFields$1>;
4103
- declare function queryJoinRequests(): __PublicMethodMetaInfo<'POST', {
4104
- groupId: string;
4105
- }, QueryJoinRequestsRequest, QueryJoinRequestsRequest$1, QueryJoinRequestsResponse & QueryJoinRequestsResponseNonNullableFields, QueryJoinRequestsResponse$1 & QueryJoinRequestsResponseNonNullableFields$1>;
4106
-
4107
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
4108
- declare const meta_approveJoinRequests: typeof approveJoinRequests;
4109
- declare const meta_listJoinRequests: typeof listJoinRequests;
4110
- declare const meta_queryJoinRequests: typeof queryJoinRequests;
4111
- declare const meta_rejectJoinRequests: typeof rejectJoinRequests;
4112
- declare namespace meta {
4113
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_approveJoinRequests as approveJoinRequests, meta_listJoinRequests as listJoinRequests, meta_queryJoinRequests as queryJoinRequests, meta_rejectJoinRequests as rejectJoinRequests };
4114
- }
4115
-
4116
- export { meta$1 as createRequests, meta$6 as groupRequests, meta$8 as groups, meta$3 as joinGroupRequests, meta as joinRequests, meta$7 as members, meta$2 as membershipQuestions, meta$5 as roles, meta$4 as rules };