@wix/groups 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/social-groups-v2-group-request.http.d.ts +31 -10
- package/build/cjs/src/social-groups-v2-group-request.http.js +31 -10
- package/build/cjs/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.public.d.ts +4 -4
- package/build/cjs/src/social-groups-v2-group-request.public.js +2 -2
- package/build/cjs/src/social-groups-v2-group-request.public.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.universal.d.ts +142 -75
- package/build/cjs/src/social-groups-v2-group-request.universal.js +48 -18
- package/build/cjs/src/social-groups-v2-group-request.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-role.universal.d.ts +2 -0
- package/build/cjs/src/social-groups-v2-group-role.universal.js +2 -0
- package/build/cjs/src/social-groups-v2-group-role.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.http.d.ts +31 -10
- package/build/es/src/social-groups-v2-group-request.http.js +31 -10
- package/build/es/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.public.d.ts +4 -4
- package/build/es/src/social-groups-v2-group-request.public.js +2 -2
- package/build/es/src/social-groups-v2-group-request.public.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.universal.d.ts +142 -75
- package/build/es/src/social-groups-v2-group-request.universal.js +48 -18
- package/build/es/src/social-groups-v2-group-request.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-role.universal.d.ts +2 -0
- package/build/es/src/social-groups-v2-group-role.universal.js +2 -0
- package/build/es/src/social-groups-v2-group-role.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -14,21 +14,21 @@ export declare const __debug: {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface GroupRequest {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* ID of the request to create a group. Same as group ID.
|
|
18
18
|
* @readonly
|
|
19
19
|
*/
|
|
20
20
|
_id?: string | null;
|
|
21
|
-
/** Group requested
|
|
21
|
+
/** Group requested to create. */
|
|
22
22
|
group?: Group;
|
|
23
23
|
/**
|
|
24
|
-
* Status of
|
|
25
|
-
* - `PENDING` - Pending group request.
|
|
26
|
-
* - `APPROVED` - Approved group request.
|
|
27
|
-
* - `REJECTED` - Rejected group request.
|
|
28
|
-
* - `CANCELED` - Canceled group request.
|
|
24
|
+
* Status of the request to create a group. One of:
|
|
25
|
+
* - `"PENDING"` - Pending group request.
|
|
26
|
+
* - `"APPROVED"` - Approved group request.
|
|
27
|
+
* - `"REJECTED"` - Rejected group request.
|
|
28
|
+
* - `"CANCELED"` - Canceled group request.
|
|
29
29
|
*/
|
|
30
30
|
status?: RequestStatus;
|
|
31
|
-
/**
|
|
31
|
+
/** Details of request to create a group. */
|
|
32
32
|
requestDetails?: RequestDetails;
|
|
33
33
|
}
|
|
34
34
|
export interface Group {
|
|
@@ -37,78 +37,86 @@ export interface Group {
|
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
39
|
_id?: string | null;
|
|
40
|
-
/** A unique part of a group's URL, for example `https:/example.com/groups/slug`. */
|
|
41
|
-
slug?: string | null;
|
|
42
40
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* Part of a group's URL.
|
|
42
|
+
*
|
|
43
|
+
* 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.
|
|
45
44
|
*/
|
|
45
|
+
slug?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @internal */
|
|
46
49
|
privacyLevel?: PrivacyStatus;
|
|
47
50
|
/**
|
|
48
51
|
* Group privacy status.
|
|
49
|
-
* - `PUBLIC` -
|
|
50
|
-
* - `PRIVATE` -
|
|
51
|
-
* - `SECRET` - Only admins and members can see the group.
|
|
52
|
+
* - `"PUBLIC"` - Site visitors can see the group and its content in the list of groups. Members can join the group.
|
|
53
|
+
* - `"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.
|
|
54
|
+
* - `"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.
|
|
52
55
|
*/
|
|
53
56
|
privacyStatus?: PrivacyStatus;
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
+
* @interal
|
|
59
|
+
* @interal */
|
|
58
60
|
title?: string | null;
|
|
59
61
|
/** Group name. */
|
|
60
62
|
name?: string | null;
|
|
61
|
-
/** Group
|
|
63
|
+
/** Group Description. */
|
|
62
64
|
description?: string | null;
|
|
63
65
|
/** Group teaser. */
|
|
64
66
|
teaser?: string | null;
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* For `details.membersTitle`, `memberTitle` instead.
|
|
69
|
-
* This property will be removed on June 30, 2022.
|
|
70
|
-
*/
|
|
68
|
+
* @internal
|
|
69
|
+
* @internal */
|
|
71
70
|
details?: GroupDetails;
|
|
72
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* What group members are called.
|
|
73
|
+
*
|
|
74
|
+
* For example, 'Coworkers', 'Friends', or 'Students'.
|
|
75
|
+
*/
|
|
73
76
|
memberTitle?: string | null;
|
|
74
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Group cover image. You cannot upload your own cover image.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
75
81
|
coverImage?: CoverImage;
|
|
76
|
-
/** Group
|
|
82
|
+
/** Group settings. */
|
|
77
83
|
settings?: GroupSettings;
|
|
78
84
|
/**
|
|
79
|
-
* Total
|
|
85
|
+
* Total number of members in the group.
|
|
80
86
|
* @readonly
|
|
81
87
|
*/
|
|
82
88
|
membersCount?: number | null;
|
|
83
89
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
90
|
+
* @internal
|
|
91
|
+
* @internal
|
|
86
92
|
* @readonly
|
|
87
93
|
*/
|
|
88
94
|
createdBy?: Identity;
|
|
89
95
|
/**
|
|
90
|
-
*
|
|
96
|
+
* Member ID of the group creator.
|
|
91
97
|
* @readonly
|
|
92
98
|
*/
|
|
93
99
|
ownerId?: string | null;
|
|
94
100
|
/**
|
|
95
|
-
*
|
|
101
|
+
* Date and time the group was created.
|
|
96
102
|
* @readonly
|
|
97
103
|
*/
|
|
98
104
|
_createdDate?: Date;
|
|
99
105
|
/**
|
|
100
|
-
* Date and time
|
|
106
|
+
* Date and time the group was last updated.
|
|
101
107
|
* @readonly
|
|
102
108
|
*/
|
|
103
109
|
_updatedDate?: Date;
|
|
104
110
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
111
|
+
* @internal
|
|
112
|
+
* @internal
|
|
107
113
|
* @readonly
|
|
108
114
|
*/
|
|
109
115
|
recentActivityDate?: Date;
|
|
110
116
|
/**
|
|
111
|
-
* Date and time
|
|
117
|
+
* Date and time the group was last active.
|
|
118
|
+
*
|
|
119
|
+
* For example, a post or comment made in the group.
|
|
112
120
|
* @readonly
|
|
113
121
|
*/
|
|
114
122
|
lastActivityDate?: Date;
|
|
@@ -189,25 +197,38 @@ export interface CoverImage {
|
|
|
189
197
|
}
|
|
190
198
|
export interface GroupSettings {
|
|
191
199
|
/**
|
|
192
|
-
* Whether
|
|
193
|
-
*
|
|
200
|
+
* 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.
|
|
201
|
+
*
|
|
202
|
+
* Default: `false`
|
|
194
203
|
*/
|
|
195
204
|
membersCanInvite?: boolean | null;
|
|
196
205
|
/**
|
|
197
|
-
* Whether
|
|
198
|
-
*
|
|
206
|
+
* 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.
|
|
207
|
+
*
|
|
208
|
+
* Default: `false`
|
|
199
209
|
*/
|
|
200
210
|
membersCanApprove?: boolean | null;
|
|
201
211
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
212
|
+
* @internal
|
|
213
|
+
* @internal */
|
|
205
214
|
memberWelcomePostEnabled?: boolean | null;
|
|
206
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* Whether to create a daily group post welcoming new members.
|
|
217
|
+
*
|
|
218
|
+
* Default: `true`
|
|
219
|
+
*/
|
|
207
220
|
welcomeMemberPostEnabled?: boolean | null;
|
|
208
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Whether to create an automatic group post when group details are changed.
|
|
223
|
+
*
|
|
224
|
+
* Default: `true`
|
|
225
|
+
*/
|
|
209
226
|
groupDetailsChangedPostEnabled?: boolean | null;
|
|
210
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* Whether all group members can view the full list of group members.
|
|
229
|
+
*
|
|
230
|
+
* Default: `true`
|
|
231
|
+
*/
|
|
211
232
|
showMemberList?: boolean | null;
|
|
212
233
|
}
|
|
213
234
|
export interface Identity {
|
|
@@ -233,7 +254,7 @@ export declare enum RequestStatus {
|
|
|
233
254
|
CANCELED = "CANCELED"
|
|
234
255
|
}
|
|
235
256
|
export interface RequestDetails {
|
|
236
|
-
/** Reason the request
|
|
257
|
+
/** Reason the request to create a group is rejected. */
|
|
237
258
|
rejectionReason?: string | null;
|
|
238
259
|
}
|
|
239
260
|
export interface SubmitGroupRequestRequest {
|
|
@@ -245,7 +266,11 @@ export interface SubmitGroupRequestResponse {
|
|
|
245
266
|
groupRequest?: GroupRequest;
|
|
246
267
|
}
|
|
247
268
|
export interface ApproveGroupRequestsRequest {
|
|
248
|
-
/**
|
|
269
|
+
/**
|
|
270
|
+
* IDs of the requests create groups to approve.
|
|
271
|
+
*
|
|
272
|
+
* Max: 100 create group request IDs
|
|
273
|
+
*/
|
|
249
274
|
groupRequestIds?: string[];
|
|
250
275
|
}
|
|
251
276
|
export declare enum ItemsToUpdate {
|
|
@@ -255,7 +280,7 @@ export declare enum ItemsToUpdate {
|
|
|
255
280
|
ALL_ITEMS = "ALL_ITEMS"
|
|
256
281
|
}
|
|
257
282
|
export interface ApproveGroupRequestsResponse {
|
|
258
|
-
/** Approved
|
|
283
|
+
/** Approved request to create a group. */
|
|
259
284
|
groupRequest?: GroupRequest[];
|
|
260
285
|
}
|
|
261
286
|
export interface GroupRequestApproved {
|
|
@@ -267,9 +292,16 @@ export interface RejectGroupRequestsRequest {
|
|
|
267
292
|
rejections?: Rejection[];
|
|
268
293
|
}
|
|
269
294
|
export interface Rejection {
|
|
270
|
-
/**
|
|
295
|
+
/**
|
|
296
|
+
* ID of the requests to create groups to reject.
|
|
297
|
+
*
|
|
298
|
+
*/
|
|
271
299
|
groupRequestId?: string;
|
|
272
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Reason the request to create a group is rejected. This text is displayed to the creator of the rejected request.
|
|
302
|
+
*
|
|
303
|
+
* Max: 1,000 characters.
|
|
304
|
+
*/
|
|
273
305
|
reason?: string | null;
|
|
274
306
|
}
|
|
275
307
|
export interface RejectGroupRequestsResponse {
|
|
@@ -301,8 +333,9 @@ export declare enum OwnershipFilter {
|
|
|
301
333
|
CURRENT_MEMBER = "CURRENT_MEMBER"
|
|
302
334
|
}
|
|
303
335
|
export interface ListGroupRequestsResponse {
|
|
304
|
-
/**
|
|
336
|
+
/** List of requests to create a group. */
|
|
305
337
|
groupRequests?: GroupRequest[];
|
|
338
|
+
/** Paging information. */
|
|
306
339
|
metadata?: PagingMetadata;
|
|
307
340
|
}
|
|
308
341
|
export interface PagingMetadata {
|
|
@@ -351,9 +384,16 @@ export declare enum SortOrder {
|
|
|
351
384
|
DESC = "DESC"
|
|
352
385
|
}
|
|
353
386
|
export interface Paging {
|
|
354
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* Number of items to load.
|
|
389
|
+
*
|
|
390
|
+
* Max: `100`
|
|
391
|
+
*/
|
|
355
392
|
limit?: number | null;
|
|
356
|
-
/**
|
|
393
|
+
/**
|
|
394
|
+
* Number of items to skip in the current sort order.
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
357
397
|
offset?: number | null;
|
|
358
398
|
}
|
|
359
399
|
export interface QueryGroupRequestsResponse {
|
|
@@ -362,53 +402,80 @@ export interface QueryGroupRequestsResponse {
|
|
|
362
402
|
metadata?: PagingMetadata;
|
|
363
403
|
}
|
|
364
404
|
/**
|
|
365
|
-
* Approves
|
|
366
|
-
*
|
|
405
|
+
* Approves requests to create a group.
|
|
406
|
+
*
|
|
407
|
+
* The `approveGroupRequests()` function returns a Promise that resolves when a site member's request to create a group is approved. Only site admins can approve requests to create a group. When the request is approved, the new group is added to the Groups List page of your site.
|
|
408
|
+
*
|
|
409
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
410
|
+
* @param groupRequestIds - IDs of the requests create groups to approve.
|
|
411
|
+
*
|
|
412
|
+
* Max: 100 create group request IDs
|
|
367
413
|
* @public
|
|
368
414
|
* @documentationMaturity preview
|
|
415
|
+
* @requiredField groupRequestIds
|
|
369
416
|
* @permissionScope Manage Social Groups
|
|
417
|
+
* @applicableIdentity APP
|
|
370
418
|
*/
|
|
371
|
-
export declare function approveGroupRequests(
|
|
372
|
-
export interface ApproveGroupRequestsOptions {
|
|
373
|
-
/** Group Request IDs to approve. Limited to `100`. */
|
|
374
|
-
groupRequestIds?: string[];
|
|
375
|
-
}
|
|
419
|
+
export declare function approveGroupRequests(groupRequestIds: string[]): Promise<ApproveGroupRequestsResponse>;
|
|
376
420
|
/**
|
|
377
|
-
* Rejects
|
|
378
|
-
*
|
|
421
|
+
* Rejects a request to create a group.
|
|
422
|
+
*
|
|
423
|
+
* The `rejectGroupRequests()` function returns a Promise that resolves when a member's request to create a group is rejected. Only site admins can reject requests to create a group.
|
|
424
|
+
*
|
|
425
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
426
|
+
* @param rejections - Rejection data.
|
|
379
427
|
* @public
|
|
380
428
|
* @documentationMaturity preview
|
|
429
|
+
* @requiredField rejections
|
|
381
430
|
* @permissionScope Manage Social Groups
|
|
431
|
+
* @applicableIdentity APP
|
|
382
432
|
*/
|
|
383
|
-
export declare function rejectGroupRequests(
|
|
384
|
-
export interface RejectGroupRequestsOptions {
|
|
385
|
-
/** Rejection data. */
|
|
386
|
-
rejections?: Rejection[];
|
|
387
|
-
}
|
|
433
|
+
export declare function rejectGroupRequests(rejections: Rejection[]): Promise<RejectGroupRequestsResponse>;
|
|
388
434
|
/**
|
|
389
|
-
* Lists
|
|
435
|
+
* Lists requests to create a group.
|
|
436
|
+
*
|
|
437
|
+
* The `listGroupRequests()` function returns a Promise that resolves to a list of up to 1,000 create group requests on your site.
|
|
438
|
+
*
|
|
439
|
+
* Using the options parameter, you can filter your list of posts, set the amount of posts to be returned, and sort your list in a specified order.
|
|
440
|
+
*
|
|
441
|
+
* By default, the list is sorted by `_createdDate` in descending order. Only admins can see create group requests. Members can access their own create group requests in their site.
|
|
442
|
+
*
|
|
443
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
444
|
+
*
|
|
390
445
|
* @public
|
|
391
446
|
* @documentationMaturity preview
|
|
447
|
+
* @param options - Paging options.
|
|
392
448
|
* @permissionScope Manage Social Groups
|
|
449
|
+
* @applicableIdentity APP
|
|
393
450
|
*/
|
|
394
451
|
export declare function listGroupRequests(options?: ListGroupRequestsOptions): Promise<ListGroupRequestsResponse>;
|
|
395
452
|
export interface ListGroupRequestsOptions {
|
|
396
|
-
/**
|
|
453
|
+
/**
|
|
454
|
+
* Number of items to load.
|
|
455
|
+
*
|
|
456
|
+
* Max: `100`
|
|
457
|
+
*
|
|
458
|
+
*/
|
|
397
459
|
limit?: number | null;
|
|
398
460
|
/** Number of items to skip in the current sort order. */
|
|
399
461
|
offset?: number | null;
|
|
400
462
|
}
|
|
401
463
|
/**
|
|
402
|
-
*
|
|
464
|
+
* Creates a query to retrieve a list of create requests.
|
|
465
|
+
*
|
|
466
|
+
* The `queryGroupRequests()` function builds a query to retrieve a list of all requests to create a group, and returns a [`GroupRequestsQueryBuilder`](#grouprequestsquerybuilder) object.
|
|
467
|
+
*
|
|
468
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](#grouprequestsquerybuilder/find) function. You can refine the query by chaining `GroupRequestQueryBuilder` functions onto the query. `GroupRequestQueryBuilder` functions enable you to sort, filter, and control the results that `queryGroupRequests()` returns.
|
|
403
469
|
*
|
|
404
|
-
*
|
|
405
|
-
* - `
|
|
470
|
+
* `queryGorupRequests()` runs with these `GroupRequestsQueryBuilder` defaults, which you can override:
|
|
471
|
+
* - [`limit(1000)`](#grouprequestsquerybuilder/limit)
|
|
472
|
+
* - [`descending('_createdDate')`](#grouprequestsquerybuilder/descending)
|
|
406
473
|
*
|
|
407
|
-
*
|
|
408
|
-
* - `createdDate`
|
|
474
|
+
* The following `GroupRequestsQueryBuilder` functions are supported for `queryGroupRequests()`. For a full description of the `GroupRequests` object, see the object returned for the [`items`](#grouprequestsqueryresult/items) property in [`GroupRequestsQueryResult`](#grouprequestsqueryresult).
|
|
409
475
|
* @public
|
|
410
476
|
* @documentationMaturity preview
|
|
411
477
|
* @permissionScope Manage Social Groups
|
|
478
|
+
* @applicableIdentity APP
|
|
412
479
|
*/
|
|
413
480
|
export declare function queryGroupRequests(options?: QueryGroupRequestsOptions): GroupRequestsQueryBuilder;
|
|
414
481
|
export interface QueryGroupRequestsOptions {
|
|
@@ -97,16 +97,24 @@ const _queryGroupRequestsResponse = {};
|
|
|
97
97
|
const _rejectGroupRequestsRequest = {};
|
|
98
98
|
const _rejectGroupRequestsResponse = {};
|
|
99
99
|
/**
|
|
100
|
-
* Approves
|
|
101
|
-
*
|
|
100
|
+
* Approves requests to create a group.
|
|
101
|
+
*
|
|
102
|
+
* The `approveGroupRequests()` function returns a Promise that resolves when a site member's request to create a group is approved. Only site admins can approve requests to create a group. When the request is approved, the new group is added to the Groups List page of your site.
|
|
103
|
+
*
|
|
104
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
105
|
+
* @param groupRequestIds - IDs of the requests create groups to approve.
|
|
106
|
+
*
|
|
107
|
+
* Max: 100 create group request IDs
|
|
102
108
|
* @public
|
|
103
109
|
* @documentationMaturity preview
|
|
110
|
+
* @requiredField groupRequestIds
|
|
104
111
|
* @permissionScope Manage Social Groups
|
|
112
|
+
* @applicableIdentity APP
|
|
105
113
|
*/
|
|
106
|
-
export function approveGroupRequests(
|
|
114
|
+
export function approveGroupRequests(groupRequestIds) {
|
|
107
115
|
var _a, _b, _c;
|
|
108
116
|
return __awaiter(this, arguments, void 0, function* () {
|
|
109
|
-
const requestTransformation = { groupRequestIds: '$[0]
|
|
117
|
+
const requestTransformation = { groupRequestIds: '$[0]' };
|
|
110
118
|
const responseTransformation = '$';
|
|
111
119
|
// @ts-ignore
|
|
112
120
|
const { httpClient, sideEffects } = arguments[1];
|
|
@@ -128,7 +136,7 @@ export function approveGroupRequests(options) {
|
|
|
128
136
|
},
|
|
129
137
|
customTransformation: responseTransformation,
|
|
130
138
|
});
|
|
131
|
-
const payload = toAmbassadorRequest([
|
|
139
|
+
const payload = toAmbassadorRequest([groupRequestIds]);
|
|
132
140
|
const reqOpts = ambassadorWixSocialGroupsV2GroupRequest.approveGroupRequests(payload);
|
|
133
141
|
__log(`"ApproveGroupRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
134
142
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -139,7 +147,7 @@ export function approveGroupRequests(options) {
|
|
|
139
147
|
}
|
|
140
148
|
catch (err) {
|
|
141
149
|
const transformedError = transformError(err, requestTransformation, [
|
|
142
|
-
'
|
|
150
|
+
'groupRequestIds',
|
|
143
151
|
]);
|
|
144
152
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
145
153
|
throw transformedError;
|
|
@@ -147,16 +155,22 @@ export function approveGroupRequests(options) {
|
|
|
147
155
|
});
|
|
148
156
|
}
|
|
149
157
|
/**
|
|
150
|
-
* Rejects
|
|
151
|
-
*
|
|
158
|
+
* Rejects a request to create a group.
|
|
159
|
+
*
|
|
160
|
+
* The `rejectGroupRequests()` function returns a Promise that resolves when a member's request to create a group is rejected. Only site admins can reject requests to create a group.
|
|
161
|
+
*
|
|
162
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
163
|
+
* @param rejections - Rejection data.
|
|
152
164
|
* @public
|
|
153
165
|
* @documentationMaturity preview
|
|
166
|
+
* @requiredField rejections
|
|
154
167
|
* @permissionScope Manage Social Groups
|
|
168
|
+
* @applicableIdentity APP
|
|
155
169
|
*/
|
|
156
|
-
export function rejectGroupRequests(
|
|
170
|
+
export function rejectGroupRequests(rejections) {
|
|
157
171
|
var _a, _b, _c;
|
|
158
172
|
return __awaiter(this, arguments, void 0, function* () {
|
|
159
|
-
const requestTransformation = { rejections: '$[0]
|
|
173
|
+
const requestTransformation = { rejections: '$[0]' };
|
|
160
174
|
const responseTransformation = '$';
|
|
161
175
|
// @ts-ignore
|
|
162
176
|
const { httpClient, sideEffects } = arguments[1];
|
|
@@ -178,7 +192,7 @@ export function rejectGroupRequests(options) {
|
|
|
178
192
|
},
|
|
179
193
|
customTransformation: responseTransformation,
|
|
180
194
|
});
|
|
181
|
-
const payload = toAmbassadorRequest([
|
|
195
|
+
const payload = toAmbassadorRequest([rejections]);
|
|
182
196
|
const reqOpts = ambassadorWixSocialGroupsV2GroupRequest.rejectGroupRequests(payload);
|
|
183
197
|
__log(`"RejectGroupRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
184
198
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -189,7 +203,7 @@ export function rejectGroupRequests(options) {
|
|
|
189
203
|
}
|
|
190
204
|
catch (err) {
|
|
191
205
|
const transformedError = transformError(err, requestTransformation, [
|
|
192
|
-
'
|
|
206
|
+
'rejections',
|
|
193
207
|
]);
|
|
194
208
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
195
209
|
throw transformedError;
|
|
@@ -197,10 +211,21 @@ export function rejectGroupRequests(options) {
|
|
|
197
211
|
});
|
|
198
212
|
}
|
|
199
213
|
/**
|
|
200
|
-
* Lists
|
|
214
|
+
* Lists requests to create a group.
|
|
215
|
+
*
|
|
216
|
+
* The `listGroupRequests()` function returns a Promise that resolves to a list of up to 1,000 create group requests on your site.
|
|
217
|
+
*
|
|
218
|
+
* Using the options parameter, you can filter your list of posts, set the amount of posts to be returned, and sort your list in a specified order.
|
|
219
|
+
*
|
|
220
|
+
* By default, the list is sorted by `_createdDate` in descending order. Only admins can see create group requests. Members can access their own create group requests in their site.
|
|
221
|
+
*
|
|
222
|
+
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
223
|
+
*
|
|
201
224
|
* @public
|
|
202
225
|
* @documentationMaturity preview
|
|
226
|
+
* @param options - Paging options.
|
|
203
227
|
* @permissionScope Manage Social Groups
|
|
228
|
+
* @applicableIdentity APP
|
|
204
229
|
*/
|
|
205
230
|
export function listGroupRequests(options) {
|
|
206
231
|
var _a, _b, _c;
|
|
@@ -246,16 +271,21 @@ export function listGroupRequests(options) {
|
|
|
246
271
|
});
|
|
247
272
|
}
|
|
248
273
|
/**
|
|
249
|
-
*
|
|
274
|
+
* Creates a query to retrieve a list of create requests.
|
|
275
|
+
*
|
|
276
|
+
* The `queryGroupRequests()` function builds a query to retrieve a list of all requests to create a group, and returns a [`GroupRequestsQueryBuilder`](#grouprequestsquerybuilder) object.
|
|
277
|
+
*
|
|
278
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](#grouprequestsquerybuilder/find) function. You can refine the query by chaining `GroupRequestQueryBuilder` functions onto the query. `GroupRequestQueryBuilder` functions enable you to sort, filter, and control the results that `queryGroupRequests()` returns.
|
|
250
279
|
*
|
|
251
|
-
*
|
|
252
|
-
* - `
|
|
280
|
+
* `queryGorupRequests()` runs with these `GroupRequestsQueryBuilder` defaults, which you can override:
|
|
281
|
+
* - [`limit(1000)`](#grouprequestsquerybuilder/limit)
|
|
282
|
+
* - [`descending('_createdDate')`](#grouprequestsquerybuilder/descending)
|
|
253
283
|
*
|
|
254
|
-
*
|
|
255
|
-
* - `createdDate`
|
|
284
|
+
* The following `GroupRequestsQueryBuilder` functions are supported for `queryGroupRequests()`. For a full description of the `GroupRequests` object, see the object returned for the [`items`](#grouprequestsqueryresult/items) property in [`GroupRequestsQueryResult`](#grouprequestsqueryresult).
|
|
256
285
|
* @public
|
|
257
286
|
* @documentationMaturity preview
|
|
258
287
|
* @permissionScope Manage Social Groups
|
|
288
|
+
* @applicableIdentity APP
|
|
259
289
|
*/
|
|
260
290
|
export function queryGroupRequests(options) {
|
|
261
291
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-request.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,uCAAuC,MAAM,uCAAuC,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-request.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,uCAAuC,MAAM,uCAAuC,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAyH5B,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,yCAAiC,CAAA;IACjC,iCAAyB,CAAA;IACzB,yBAAiB,CAAA;AACnB,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAsCD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACn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AAM,CAAC;aACf;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -136,6 +136,7 @@ export interface RoleUnassignedFromGroupMember {
|
|
|
136
136
|
* @requiredField memberIds
|
|
137
137
|
* @requiredField role
|
|
138
138
|
* @permissionScope Manage Social Groups
|
|
139
|
+
* @applicableIdentity APP
|
|
139
140
|
*/
|
|
140
141
|
export declare function assignRole(groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions): Promise<AssignRoleResponse>;
|
|
141
142
|
export interface AssignRoleOptions {
|
|
@@ -158,6 +159,7 @@ export interface AssignRoleOptions {
|
|
|
158
159
|
* @requiredField memberIds
|
|
159
160
|
* @requiredField role
|
|
160
161
|
* @permissionScope Manage Social Groups
|
|
162
|
+
* @applicableIdentity APP
|
|
161
163
|
*/
|
|
162
164
|
export declare function unassignRole(groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions): Promise<UnassignRoleResponse>;
|
|
163
165
|
export interface UnassignRoleOptions {
|
|
@@ -53,6 +53,7 @@ const _unassignRoleResponse = {};
|
|
|
53
53
|
* @requiredField memberIds
|
|
54
54
|
* @requiredField role
|
|
55
55
|
* @permissionScope Manage Social Groups
|
|
56
|
+
* @applicableIdentity APP
|
|
56
57
|
*/
|
|
57
58
|
export function assignRole(groupId, memberIds, role, options) {
|
|
58
59
|
var _a, _b, _c;
|
|
@@ -121,6 +122,7 @@ export function assignRole(groupId, memberIds, role, options) {
|
|
|
121
122
|
* @requiredField memberIds
|
|
122
123
|
* @requiredField role
|
|
123
124
|
* @permissionScope Manage Social Groups
|
|
125
|
+
* @applicableIdentity APP
|
|
124
126
|
*/
|
|
125
127
|
export function unassignRole(groupId, memberIds, role, options) {
|
|
126
128
|
var _a, _b, _c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-role.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,oCAAoC,MAAM,oCAAoC,CAAC;AAE3F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAe5B,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qCAA6B,CAAA;IAC7B,4BAA4B;IAC5B,yBAAiB,CAAA;IACjB,2BAA2B;IAC3B,uBAAe,CAAA;AACjB,CAAC,EANW,IAAI,KAAJ,IAAI,QAMf;AAyGD,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-role.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,oCAAoC,MAAM,oCAAoC,CAAC;AAE3F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAe5B,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qCAA6B,CAAA;IAC7B,4BAA4B;IAC5B,yBAAiB,CAAA;IACjB,2BAA2B;IAC3B,uBAAe,CAAA;AACjB,CAAC,EANW,IAAI,KAAJ,IAAI,QAMf;AAyGD,MAAM,kBAAkB,G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@wix/groups",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "7c41ba672de59f34c8d8fc8e0af8cf569aa4b620e3c5b3c94ab1846b"
|
|
37
37
|
}
|