@wix/groups 1.0.31 → 1.0.33
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/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/social-groups-v3-join-request.http.d.ts +27 -0
- package/build/cjs/src/social-groups-v3-join-request.http.js +141 -0
- package/build/cjs/src/social-groups-v3-join-request.http.js.map +1 -0
- package/build/cjs/src/social-groups-v3-join-request.public.d.ts +11 -0
- package/build/cjs/src/social-groups-v3-join-request.public.js +35 -0
- package/build/cjs/src/social-groups-v3-join-request.public.js.map +1 -0
- package/build/cjs/src/social-groups-v3-join-request.types.d.ts +188 -0
- package/build/cjs/src/social-groups-v3-join-request.types.js +37 -0
- package/build/cjs/src/social-groups-v3-join-request.types.js.map +1 -0
- package/build/cjs/src/social-groups-v3-join-request.universal.d.ts +256 -0
- package/build/cjs/src/social-groups-v3-join-request.universal.js +323 -0
- package/build/cjs/src/social-groups-v3-join-request.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/social-groups-v3-join-request.http.d.ts +27 -0
- package/build/es/src/social-groups-v3-join-request.http.js +134 -0
- package/build/es/src/social-groups-v3-join-request.http.js.map +1 -0
- package/build/es/src/social-groups-v3-join-request.public.d.ts +11 -0
- package/build/es/src/social-groups-v3-join-request.public.js +24 -0
- package/build/es/src/social-groups-v3-join-request.public.js.map +1 -0
- package/build/es/src/social-groups-v3-join-request.types.d.ts +188 -0
- package/build/es/src/social-groups-v3-join-request.types.js +34 -0
- package/build/es/src/social-groups-v3-join-request.types.js.map +1 -0
- package/build/es/src/social-groups-v3-join-request.universal.d.ts +256 -0
- package/build/es/src/social-groups-v3-join-request.universal.js +297 -0
- package/build/es/src/social-groups-v3-join-request.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* To join a private group, a site member must submit a Join Request, which can be approved or rejected by an admin.
|
|
9
|
+
* When the request is approved, the site member becomes a group member.
|
|
10
|
+
*/
|
|
11
|
+
export interface JoinRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Member ID. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
memberId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Join request status.
|
|
19
|
+
* - `PENDING` - Pending join request.
|
|
20
|
+
* - `APPROVED` - Approved join request.
|
|
21
|
+
* - `REJECTED` - Rejected join request.
|
|
22
|
+
* - `CANCELED` - Canceled join request.
|
|
23
|
+
*/
|
|
24
|
+
status?: RequestStatus;
|
|
25
|
+
/** Join request details. */
|
|
26
|
+
requestDetails?: RequestDetails;
|
|
27
|
+
}
|
|
28
|
+
export declare enum RequestStatus {
|
|
29
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
30
|
+
/** Pending request. */
|
|
31
|
+
PENDING = "PENDING",
|
|
32
|
+
/** Approved request. */
|
|
33
|
+
APPROVED = "APPROVED",
|
|
34
|
+
/** Rejected request. */
|
|
35
|
+
REJECTED = "REJECTED",
|
|
36
|
+
/** Cancelled request. */
|
|
37
|
+
CANCELLED = "CANCELLED",
|
|
38
|
+
/** Canceled request. */
|
|
39
|
+
CANCELED = "CANCELED"
|
|
40
|
+
}
|
|
41
|
+
export interface RequestDetails {
|
|
42
|
+
/** Reason the request has been rejected. */
|
|
43
|
+
rejectionReason?: string | null;
|
|
44
|
+
}
|
|
45
|
+
export interface SubmitJoinRequestRequest {
|
|
46
|
+
/** Relevant group. */
|
|
47
|
+
groupId?: string;
|
|
48
|
+
/** Answers to membership questions. They can be empty, but submit join group request will fail if an answer to a required question is omitted. */
|
|
49
|
+
membershipQuestionAnswers?: MembershipQuestionAnswer[];
|
|
50
|
+
}
|
|
51
|
+
/** Answer to a membership question. */
|
|
52
|
+
export interface MembershipQuestionAnswer {
|
|
53
|
+
/** Question ID. */
|
|
54
|
+
_id?: string;
|
|
55
|
+
/** Answer text. */
|
|
56
|
+
text?: string | null;
|
|
57
|
+
}
|
|
58
|
+
export interface SubmitJoinRequestResponse {
|
|
59
|
+
/** Submitted join request. */
|
|
60
|
+
joinRequest?: JoinRequest;
|
|
61
|
+
}
|
|
62
|
+
export interface CancelJoinRequestRequest {
|
|
63
|
+
/** Relevant group. */
|
|
64
|
+
groupId?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface CancelJoinRequestResponse {
|
|
67
|
+
/** Cancelled join request. */
|
|
68
|
+
joinRequest?: JoinRequest;
|
|
69
|
+
}
|
|
70
|
+
export interface JoinRequestCancelled {
|
|
71
|
+
/** Group ID for which join request was cancelled. */
|
|
72
|
+
groupId?: string;
|
|
73
|
+
/** Cancelled join request. */
|
|
74
|
+
joinRequest?: JoinRequest;
|
|
75
|
+
}
|
|
76
|
+
export interface ApproveJoinRequestsRequest {
|
|
77
|
+
/** Relevant group. */
|
|
78
|
+
groupId: string;
|
|
79
|
+
/** Member IDs to approve. */
|
|
80
|
+
memberIds: string[];
|
|
81
|
+
}
|
|
82
|
+
export declare enum ItemsToUpdate {
|
|
83
|
+
/** Take into account only items which are listed in request. */
|
|
84
|
+
BY_ID = "BY_ID",
|
|
85
|
+
/** Update all items. */
|
|
86
|
+
ALL_ITEMS = "ALL_ITEMS"
|
|
87
|
+
}
|
|
88
|
+
export interface ApproveJoinRequestsResponse {
|
|
89
|
+
/** Approved join requests. */
|
|
90
|
+
joinRequests?: JoinRequest[];
|
|
91
|
+
}
|
|
92
|
+
export interface JoinRequestApproved {
|
|
93
|
+
/** Group ID for which join request was approved. */
|
|
94
|
+
groupId?: string;
|
|
95
|
+
/** Approved join request. */
|
|
96
|
+
joinRequest?: JoinRequest;
|
|
97
|
+
}
|
|
98
|
+
export interface RejectJoinRequestsRequest {
|
|
99
|
+
/** Relevant group. */
|
|
100
|
+
groupId: string;
|
|
101
|
+
/** Rejection data. */
|
|
102
|
+
rejections?: Rejection[];
|
|
103
|
+
}
|
|
104
|
+
export interface Rejection {
|
|
105
|
+
/** Member ID to reject. */
|
|
106
|
+
memberId?: string;
|
|
107
|
+
/** Rejection reason. Free text that will be displayed to the rejected site member (max 1,000 characters). */
|
|
108
|
+
reason?: string | null;
|
|
109
|
+
}
|
|
110
|
+
export interface RejectJoinRequestsResponse {
|
|
111
|
+
/** Rejected join requests. */
|
|
112
|
+
joinRequests?: JoinRequest[];
|
|
113
|
+
}
|
|
114
|
+
export interface JoinRequestRejected {
|
|
115
|
+
/** Group ID for which join request was rejected. */
|
|
116
|
+
groupId?: string;
|
|
117
|
+
/** Rejected join request. */
|
|
118
|
+
joinRequest?: JoinRequest;
|
|
119
|
+
}
|
|
120
|
+
export interface ListJoinRequestsRequest {
|
|
121
|
+
/** Group ID. */
|
|
122
|
+
groupId: string;
|
|
123
|
+
limit?: number | null;
|
|
124
|
+
offset?: number | null;
|
|
125
|
+
}
|
|
126
|
+
export declare enum OwnershipFilter {
|
|
127
|
+
/** All items. */
|
|
128
|
+
ALL = "ALL",
|
|
129
|
+
/** Items for current site member. */
|
|
130
|
+
CURRENT_MEMBER = "CURRENT_MEMBER"
|
|
131
|
+
}
|
|
132
|
+
export interface ListJoinRequestsResponse {
|
|
133
|
+
/** Join requests. */
|
|
134
|
+
joinRequests?: JoinRequest[];
|
|
135
|
+
metadata?: PagingMetadata;
|
|
136
|
+
}
|
|
137
|
+
export interface PagingMetadata {
|
|
138
|
+
/** Number of items returned in the response. */
|
|
139
|
+
count?: number | null;
|
|
140
|
+
/** Offset that was requested. */
|
|
141
|
+
offset?: number | null;
|
|
142
|
+
/** Total number of items that match the query. */
|
|
143
|
+
total?: number | null;
|
|
144
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
145
|
+
tooManyToCount?: boolean | null;
|
|
146
|
+
}
|
|
147
|
+
export interface QueryJoinRequestsRequest {
|
|
148
|
+
/** Group ID. */
|
|
149
|
+
groupId: string;
|
|
150
|
+
query?: Query;
|
|
151
|
+
}
|
|
152
|
+
export interface Query {
|
|
153
|
+
/**
|
|
154
|
+
* Filter object in the following format:
|
|
155
|
+
* `"filter" : {
|
|
156
|
+
* "fieldName1": "value1",
|
|
157
|
+
* "fieldName2":{"$operator":"value2"}
|
|
158
|
+
* }`
|
|
159
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
160
|
+
*/
|
|
161
|
+
filter?: any;
|
|
162
|
+
/**
|
|
163
|
+
* Sort object in the following format:
|
|
164
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
165
|
+
*/
|
|
166
|
+
sort?: Sorting[];
|
|
167
|
+
/** Paging options to limit and skip the number of items. */
|
|
168
|
+
paging?: Paging;
|
|
169
|
+
/** 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. */
|
|
170
|
+
fields?: string[];
|
|
171
|
+
/** 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. */
|
|
172
|
+
fieldsets?: string[];
|
|
173
|
+
}
|
|
174
|
+
export interface Sorting {
|
|
175
|
+
/** Name of the field to sort by. */
|
|
176
|
+
fieldName?: string;
|
|
177
|
+
/** Sort order. */
|
|
178
|
+
order?: SortOrder;
|
|
179
|
+
}
|
|
180
|
+
export declare enum SortOrder {
|
|
181
|
+
ASC = "ASC",
|
|
182
|
+
DESC = "DESC"
|
|
183
|
+
}
|
|
184
|
+
export interface Paging {
|
|
185
|
+
/** Number of items to load. */
|
|
186
|
+
limit?: number | null;
|
|
187
|
+
/** Number of items to skip in the current sort order. */
|
|
188
|
+
offset?: number | null;
|
|
189
|
+
}
|
|
190
|
+
export interface QueryJoinRequestsResponse {
|
|
191
|
+
/** Join requests. */
|
|
192
|
+
joinRequests?: JoinRequest[];
|
|
193
|
+
metadata?: PagingMetadata;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Approves pending join requests.
|
|
197
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
198
|
+
* @param groupId - Relevant group.
|
|
199
|
+
* @public
|
|
200
|
+
* @documentationMaturity preview
|
|
201
|
+
* @requiredField groupId
|
|
202
|
+
* @requiredField options
|
|
203
|
+
* @requiredField options.memberIds
|
|
204
|
+
* @permissionScope Manage Social Groups
|
|
205
|
+
*/
|
|
206
|
+
export declare function approveJoinRequests(groupId: string, options: ApproveJoinRequestsOptions): Promise<ApproveJoinRequestsResponse>;
|
|
207
|
+
export interface ApproveJoinRequestsOptions {
|
|
208
|
+
/** Member IDs to approve. */
|
|
209
|
+
memberIds: string[];
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Rejects pending join requests.
|
|
213
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
214
|
+
* @param groupId - Relevant group.
|
|
215
|
+
* @public
|
|
216
|
+
* @documentationMaturity preview
|
|
217
|
+
* @requiredField groupId
|
|
218
|
+
* @permissionScope Manage Social Groups
|
|
219
|
+
*/
|
|
220
|
+
export declare function rejectJoinRequests(groupId: string, options?: RejectJoinRequestsOptions): Promise<RejectJoinRequestsResponse>;
|
|
221
|
+
export interface RejectJoinRequestsOptions {
|
|
222
|
+
/** Rejection data. */
|
|
223
|
+
rejections?: Rejection[];
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Retrieves a list of up to 100 join requests, given the provided paging.
|
|
227
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
228
|
+
* @param groupId - Group ID.
|
|
229
|
+
* @public
|
|
230
|
+
* @documentationMaturity preview
|
|
231
|
+
* @requiredField groupId
|
|
232
|
+
* @permissionScope Manage Social Groups
|
|
233
|
+
*/
|
|
234
|
+
export declare function listJoinRequests(groupId: string, options?: ListJoinRequestsOptions): Promise<ListJoinRequestsResponse>;
|
|
235
|
+
export interface ListJoinRequestsOptions {
|
|
236
|
+
limit?: number | null;
|
|
237
|
+
offset?: number | null;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Retrieves a list of up to 100 join requests, given the provided paging and filtering.
|
|
241
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
242
|
+
*
|
|
243
|
+
* Supported fields for filtering:
|
|
244
|
+
* - `status`
|
|
245
|
+
*
|
|
246
|
+
* No supported fields for sorting
|
|
247
|
+
* @param groupId - Group ID.
|
|
248
|
+
* @public
|
|
249
|
+
* @documentationMaturity preview
|
|
250
|
+
* @requiredField groupId
|
|
251
|
+
* @permissionScope Manage Social Groups
|
|
252
|
+
*/
|
|
253
|
+
export declare function queryJoinRequests(groupId: string, options?: QueryJoinRequestsOptions): Promise<QueryJoinRequestsResponse>;
|
|
254
|
+
export interface QueryJoinRequestsOptions {
|
|
255
|
+
query?: Query;
|
|
256
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.queryJoinRequests = exports.listJoinRequests = exports.rejectJoinRequests = exports.approveJoinRequests = exports.SortOrder = exports.OwnershipFilter = exports.ItemsToUpdate = exports.RequestStatus = exports.__debug = void 0;
|
|
32
|
+
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
|
+
const ambassadorWixSocialGroupsV3JoinRequest = __importStar(require("./social-groups-v3-join-request.http"));
|
|
34
|
+
let __verbose = false;
|
|
35
|
+
function __log(...args) {
|
|
36
|
+
__verbose && console.log(...args);
|
|
37
|
+
}
|
|
38
|
+
function __inspect(obj) {
|
|
39
|
+
return obj;
|
|
40
|
+
}
|
|
41
|
+
exports.__debug = {
|
|
42
|
+
verboseLogging: {
|
|
43
|
+
on: () => (__verbose = true),
|
|
44
|
+
off: () => (__verbose = false),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
const _toVeloEntity = '$';
|
|
48
|
+
const _fromVeloEntity = '$';
|
|
49
|
+
var RequestStatus;
|
|
50
|
+
(function (RequestStatus) {
|
|
51
|
+
RequestStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
52
|
+
/** Pending request. */
|
|
53
|
+
RequestStatus["PENDING"] = "PENDING";
|
|
54
|
+
/** Approved request. */
|
|
55
|
+
RequestStatus["APPROVED"] = "APPROVED";
|
|
56
|
+
/** Rejected request. */
|
|
57
|
+
RequestStatus["REJECTED"] = "REJECTED";
|
|
58
|
+
/** Cancelled request. */
|
|
59
|
+
RequestStatus["CANCELLED"] = "CANCELLED";
|
|
60
|
+
/** Canceled request. */
|
|
61
|
+
RequestStatus["CANCELED"] = "CANCELED";
|
|
62
|
+
})(RequestStatus = exports.RequestStatus || (exports.RequestStatus = {}));
|
|
63
|
+
var ItemsToUpdate;
|
|
64
|
+
(function (ItemsToUpdate) {
|
|
65
|
+
/** Take into account only items which are listed in request. */
|
|
66
|
+
ItemsToUpdate["BY_ID"] = "BY_ID";
|
|
67
|
+
/** Update all items. */
|
|
68
|
+
ItemsToUpdate["ALL_ITEMS"] = "ALL_ITEMS";
|
|
69
|
+
})(ItemsToUpdate = exports.ItemsToUpdate || (exports.ItemsToUpdate = {}));
|
|
70
|
+
var OwnershipFilter;
|
|
71
|
+
(function (OwnershipFilter) {
|
|
72
|
+
/** All items. */
|
|
73
|
+
OwnershipFilter["ALL"] = "ALL";
|
|
74
|
+
/** Items for current site member. */
|
|
75
|
+
OwnershipFilter["CURRENT_MEMBER"] = "CURRENT_MEMBER";
|
|
76
|
+
})(OwnershipFilter = exports.OwnershipFilter || (exports.OwnershipFilter = {}));
|
|
77
|
+
var SortOrder;
|
|
78
|
+
(function (SortOrder) {
|
|
79
|
+
SortOrder["ASC"] = "ASC";
|
|
80
|
+
SortOrder["DESC"] = "DESC";
|
|
81
|
+
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
82
|
+
const _approveJoinRequestsRequest = {};
|
|
83
|
+
const _approveJoinRequestsResponse = {};
|
|
84
|
+
const _listJoinRequestsRequest = {};
|
|
85
|
+
const _listJoinRequestsResponse = {};
|
|
86
|
+
const _queryJoinRequestsRequest = {};
|
|
87
|
+
const _queryJoinRequestsResponse = {};
|
|
88
|
+
const _rejectJoinRequestsRequest = {};
|
|
89
|
+
const _rejectJoinRequestsResponse = {};
|
|
90
|
+
/**
|
|
91
|
+
* Approves pending join requests.
|
|
92
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
93
|
+
* @param groupId - Relevant group.
|
|
94
|
+
* @public
|
|
95
|
+
* @documentationMaturity preview
|
|
96
|
+
* @requiredField groupId
|
|
97
|
+
* @requiredField options
|
|
98
|
+
* @requiredField options.memberIds
|
|
99
|
+
* @permissionScope Manage Social Groups
|
|
100
|
+
*/
|
|
101
|
+
function approveJoinRequests(groupId, options) {
|
|
102
|
+
var _a, _b, _c;
|
|
103
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
104
|
+
const requestTransformation = {
|
|
105
|
+
groupId: '$[0]',
|
|
106
|
+
memberIds: '$[1].memberIds',
|
|
107
|
+
};
|
|
108
|
+
const responseTransformation = '$';
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
111
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
112
|
+
rootSchema: _approveJoinRequestsRequest,
|
|
113
|
+
depSchemas: {},
|
|
114
|
+
fqdnTransformation: {
|
|
115
|
+
paths: [],
|
|
116
|
+
transformation: _fromVeloEntity,
|
|
117
|
+
},
|
|
118
|
+
customTransformation: requestTransformation,
|
|
119
|
+
});
|
|
120
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
121
|
+
rootSchema: _approveJoinRequestsResponse,
|
|
122
|
+
depSchemas: {},
|
|
123
|
+
fqdnTransformation: {
|
|
124
|
+
paths: [...['Array#joinRequests']],
|
|
125
|
+
transformation: _toVeloEntity,
|
|
126
|
+
},
|
|
127
|
+
customTransformation: responseTransformation,
|
|
128
|
+
});
|
|
129
|
+
const payload = toAmbassadorRequest([groupId, options]);
|
|
130
|
+
const reqOpts = ambassadorWixSocialGroupsV3JoinRequest.approveJoinRequests(payload);
|
|
131
|
+
__log(`"ApproveJoinRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
132
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
133
|
+
try {
|
|
134
|
+
const result = yield httpClient.request(reqOpts);
|
|
135
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
136
|
+
return fromJSON(result.data);
|
|
137
|
+
}
|
|
138
|
+
catch (err) {
|
|
139
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
140
|
+
'groupId',
|
|
141
|
+
'options',
|
|
142
|
+
]);
|
|
143
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
144
|
+
throw transformedError;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
exports.approveJoinRequests = approveJoinRequests;
|
|
149
|
+
/**
|
|
150
|
+
* Rejects pending join requests.
|
|
151
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
152
|
+
* @param groupId - Relevant group.
|
|
153
|
+
* @public
|
|
154
|
+
* @documentationMaturity preview
|
|
155
|
+
* @requiredField groupId
|
|
156
|
+
* @permissionScope Manage Social Groups
|
|
157
|
+
*/
|
|
158
|
+
function rejectJoinRequests(groupId, options) {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
161
|
+
const requestTransformation = {
|
|
162
|
+
groupId: '$[0]',
|
|
163
|
+
rejections: '$[1].rejections',
|
|
164
|
+
};
|
|
165
|
+
const responseTransformation = '$';
|
|
166
|
+
// @ts-ignore
|
|
167
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
168
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
169
|
+
rootSchema: _rejectJoinRequestsRequest,
|
|
170
|
+
depSchemas: {},
|
|
171
|
+
fqdnTransformation: {
|
|
172
|
+
paths: [],
|
|
173
|
+
transformation: _fromVeloEntity,
|
|
174
|
+
},
|
|
175
|
+
customTransformation: requestTransformation,
|
|
176
|
+
});
|
|
177
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
178
|
+
rootSchema: _rejectJoinRequestsResponse,
|
|
179
|
+
depSchemas: {},
|
|
180
|
+
fqdnTransformation: {
|
|
181
|
+
paths: [...['Array#joinRequests']],
|
|
182
|
+
transformation: _toVeloEntity,
|
|
183
|
+
},
|
|
184
|
+
customTransformation: responseTransformation,
|
|
185
|
+
});
|
|
186
|
+
const payload = toAmbassadorRequest([groupId, options]);
|
|
187
|
+
const reqOpts = ambassadorWixSocialGroupsV3JoinRequest.rejectJoinRequests(payload);
|
|
188
|
+
__log(`"RejectJoinRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
189
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
190
|
+
try {
|
|
191
|
+
const result = yield httpClient.request(reqOpts);
|
|
192
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
193
|
+
return fromJSON(result.data);
|
|
194
|
+
}
|
|
195
|
+
catch (err) {
|
|
196
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
197
|
+
'groupId',
|
|
198
|
+
'options',
|
|
199
|
+
]);
|
|
200
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
201
|
+
throw transformedError;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
exports.rejectJoinRequests = rejectJoinRequests;
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves a list of up to 100 join requests, given the provided paging.
|
|
208
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
209
|
+
* @param groupId - Group ID.
|
|
210
|
+
* @public
|
|
211
|
+
* @documentationMaturity preview
|
|
212
|
+
* @requiredField groupId
|
|
213
|
+
* @permissionScope Manage Social Groups
|
|
214
|
+
*/
|
|
215
|
+
function listJoinRequests(groupId, options) {
|
|
216
|
+
var _a, _b, _c;
|
|
217
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
218
|
+
const requestTransformation = {
|
|
219
|
+
groupId: '$[0]',
|
|
220
|
+
limit: '$[1].limit',
|
|
221
|
+
offset: '$[1].offset',
|
|
222
|
+
};
|
|
223
|
+
const responseTransformation = '$';
|
|
224
|
+
// @ts-ignore
|
|
225
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
226
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
227
|
+
rootSchema: _listJoinRequestsRequest,
|
|
228
|
+
depSchemas: {},
|
|
229
|
+
fqdnTransformation: {
|
|
230
|
+
paths: [],
|
|
231
|
+
transformation: _fromVeloEntity,
|
|
232
|
+
},
|
|
233
|
+
customTransformation: requestTransformation,
|
|
234
|
+
});
|
|
235
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
236
|
+
rootSchema: _listJoinRequestsResponse,
|
|
237
|
+
depSchemas: {},
|
|
238
|
+
fqdnTransformation: {
|
|
239
|
+
paths: [...['Array#joinRequests']],
|
|
240
|
+
transformation: _toVeloEntity,
|
|
241
|
+
},
|
|
242
|
+
customTransformation: responseTransformation,
|
|
243
|
+
});
|
|
244
|
+
const payload = toAmbassadorRequest([groupId, options]);
|
|
245
|
+
const reqOpts = ambassadorWixSocialGroupsV3JoinRequest.listJoinRequests(payload);
|
|
246
|
+
__log(`"ListJoinRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
247
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
248
|
+
try {
|
|
249
|
+
const result = yield httpClient.request(reqOpts);
|
|
250
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
251
|
+
return fromJSON(result.data);
|
|
252
|
+
}
|
|
253
|
+
catch (err) {
|
|
254
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
255
|
+
'groupId',
|
|
256
|
+
'options',
|
|
257
|
+
]);
|
|
258
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
259
|
+
throw transformedError;
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
exports.listJoinRequests = listJoinRequests;
|
|
264
|
+
/**
|
|
265
|
+
* Retrieves a list of up to 100 join requests, given the provided paging and filtering.
|
|
266
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
267
|
+
*
|
|
268
|
+
* Supported fields for filtering:
|
|
269
|
+
* - `status`
|
|
270
|
+
*
|
|
271
|
+
* No supported fields for sorting
|
|
272
|
+
* @param groupId - Group ID.
|
|
273
|
+
* @public
|
|
274
|
+
* @documentationMaturity preview
|
|
275
|
+
* @requiredField groupId
|
|
276
|
+
* @permissionScope Manage Social Groups
|
|
277
|
+
*/
|
|
278
|
+
function queryJoinRequests(groupId, options) {
|
|
279
|
+
var _a, _b, _c;
|
|
280
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
281
|
+
const requestTransformation = { groupId: '$[0]', query: '$[1].query' };
|
|
282
|
+
const responseTransformation = '$';
|
|
283
|
+
// @ts-ignore
|
|
284
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
285
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
286
|
+
rootSchema: _queryJoinRequestsRequest,
|
|
287
|
+
depSchemas: {},
|
|
288
|
+
fqdnTransformation: {
|
|
289
|
+
paths: [],
|
|
290
|
+
transformation: _fromVeloEntity,
|
|
291
|
+
},
|
|
292
|
+
customTransformation: requestTransformation,
|
|
293
|
+
});
|
|
294
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
295
|
+
rootSchema: _queryJoinRequestsResponse,
|
|
296
|
+
depSchemas: {},
|
|
297
|
+
fqdnTransformation: {
|
|
298
|
+
paths: [...['Array#joinRequests']],
|
|
299
|
+
transformation: _toVeloEntity,
|
|
300
|
+
},
|
|
301
|
+
customTransformation: responseTransformation,
|
|
302
|
+
});
|
|
303
|
+
const payload = toAmbassadorRequest([groupId, options]);
|
|
304
|
+
const reqOpts = ambassadorWixSocialGroupsV3JoinRequest.queryJoinRequests(payload);
|
|
305
|
+
__log(`"QueryJoinRequests" sending request with: ${__inspect(reqOpts)}`);
|
|
306
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
307
|
+
try {
|
|
308
|
+
const result = yield httpClient.request(reqOpts);
|
|
309
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
310
|
+
return fromJSON(result.data);
|
|
311
|
+
}
|
|
312
|
+
catch (err) {
|
|
313
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
314
|
+
'groupId',
|
|
315
|
+
'options',
|
|
316
|
+
]);
|
|
317
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
318
|
+
throw transformedError;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
exports.queryJoinRequests = queryJoinRequests;
|
|
323
|
+
//# sourceMappingURL=social-groups-v3-join-request.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social-groups-v3-join-request.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v3-join-request.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,6GAA+F;AAE/F,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;AAEY,QAAA,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;AAwB5B,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,kDAAiC,CAAA;IACjC,uBAAuB;IACvB,oCAAmB,CAAA;IACnB,wBAAwB;IACxB,sCAAqB,CAAA;IACrB,wBAAwB;IACxB,sCAAqB,CAAA;IACrB,yBAAyB;IACzB,wCAAuB,CAAA;IACvB,wBAAwB;IACxB,sCAAqB,CAAA;AACvB,CAAC,EAZW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAYxB;AAmDD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,gEAAgE;IAChE,gCAAe,CAAA;IACf,wBAAwB;IACxB,wCAAuB,CAAA;AACzB,CAAC,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ClB,KAAK,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;gBAClC,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QAExD,MAAM,OAAO,GACX,sCAAsC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAEpE,KAAK,CAAC,6CAA6C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEzE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;gBACT,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAvDD,8CAuDC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * as joinRequests from './src/social-groups-v3-join-request.public';
|
|
1
2
|
export * as groups from './src/social-groups-v2-group.public';
|
|
2
3
|
export * as members from './src/social-groups-v2-group-member.public';
|
|
3
4
|
export * as createRequests from './src/social-groups-v2-group-request.public';
|
package/build/es/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * as joinRequests from './src/social-groups-v3-join-request.public';
|
|
1
2
|
export * as groups from './src/social-groups-v2-group.public';
|
|
2
3
|
export * as members from './src/social-groups-v2-group-member.public';
|
|
3
4
|
export * as createRequests from './src/social-groups-v2-group-request.public';
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qCAAqC,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,cAAc,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,KAAK,MAAM,0CAA0C,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,2CAA2C,CAAC;AACnE,OAAO,KAAK,iBAAiB,MAAM,kDAAkD,CAAC;AACtF,OAAO,KAAK,mBAAmB,MAAM,mDAAmD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,4CAA4C,CAAC;AAC3E,OAAO,KAAK,MAAM,MAAM,qCAAqC,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,cAAc,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,KAAK,MAAM,0CAA0C,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,2CAA2C,CAAC;AACnE,OAAO,KAAK,iBAAiB,MAAM,kDAAkD,CAAC;AACtF,OAAO,KAAK,mBAAmB,MAAM,mDAAmD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { ApproveJoinRequestsRequest, ApproveJoinRequestsResponse, ListJoinRequestsRequest, ListJoinRequestsResponse, QueryJoinRequestsRequest, QueryJoinRequestsResponse, RejectJoinRequestsRequest, RejectJoinRequestsResponse } from './social-groups-v3-join-request.types';
|
|
3
|
+
/**
|
|
4
|
+
* Approves pending join requests.
|
|
5
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
6
|
+
*/
|
|
7
|
+
export declare function approveJoinRequests(payload: ApproveJoinRequestsRequest): RequestOptionsFactory<ApproveJoinRequestsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Rejects pending join requests.
|
|
10
|
+
* Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.
|
|
11
|
+
*/
|
|
12
|
+
export declare function rejectJoinRequests(payload: RejectJoinRequestsRequest): RequestOptionsFactory<RejectJoinRequestsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a list of up to 100 join requests, given the provided paging.
|
|
15
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
16
|
+
*/
|
|
17
|
+
export declare function listJoinRequests(payload: ListJoinRequestsRequest): RequestOptionsFactory<ListJoinRequestsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of up to 100 join requests, given the provided paging and filtering.
|
|
20
|
+
* Group managers always have access to this functionality (site members can access their own join requests in the site).
|
|
21
|
+
*
|
|
22
|
+
* Supported fields for filtering:
|
|
23
|
+
* - `status`
|
|
24
|
+
*
|
|
25
|
+
* No supported fields for sorting
|
|
26
|
+
*/
|
|
27
|
+
export declare function queryJoinRequests(payload: QueryJoinRequestsRequest): RequestOptionsFactory<QueryJoinRequestsResponse>;
|