@wix/groups 1.0.0
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 +3 -0
- package/build/cjs/index.js +26 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group-member.http.d.ts +45 -0
- package/build/cjs/src/social-groups-v2-group-member.http.js +350 -0
- package/build/cjs/src/social-groups-v2-group-member.http.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group-member.public.d.ts +10 -0
- package/build/cjs/src/social-groups-v2-group-member.public.js +45 -0
- package/build/cjs/src/social-groups-v2-group-member.public.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group-member.types.d.ts +245 -0
- package/build/cjs/src/social-groups-v2-group-member.types.js +25 -0
- package/build/cjs/src/social-groups-v2-group-member.types.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group-member.universal.d.ts +353 -0
- package/build/cjs/src/social-groups-v2-group-member.universal.js +403 -0
- package/build/cjs/src/social-groups-v2-group-member.universal.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group.http.d.ts +46 -0
- package/build/cjs/src/social-groups-v2-group.http.js +435 -0
- package/build/cjs/src/social-groups-v2-group.http.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group.public.d.ts +11 -0
- package/build/cjs/src/social-groups-v2-group.public.js +52 -0
- package/build/cjs/src/social-groups-v2-group.public.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group.types.d.ts +327 -0
- package/build/cjs/src/social-groups-v2-group.types.js +31 -0
- package/build/cjs/src/social-groups-v2-group.types.js.map +1 -0
- package/build/cjs/src/social-groups-v2-group.universal.d.ts +494 -0
- package/build/cjs/src/social-groups-v2-group.universal.js +429 -0
- package/build/cjs/src/social-groups-v2-group.universal.js.map +1 -0
- package/build/cjs/src/social-groups-v2-join-group-request.http.d.ts +27 -0
- package/build/cjs/src/social-groups-v2-join-group-request.http.js +298 -0
- package/build/cjs/src/social-groups-v2-join-group-request.http.js.map +1 -0
- package/build/cjs/src/social-groups-v2-join-group-request.public.d.ts +8 -0
- package/build/cjs/src/social-groups-v2-join-group-request.public.js +35 -0
- package/build/cjs/src/social-groups-v2-join-group-request.public.js.map +1 -0
- package/build/cjs/src/social-groups-v2-join-group-request.types.d.ts +274 -0
- package/build/cjs/src/social-groups-v2-join-group-request.types.js +48 -0
- package/build/cjs/src/social-groups-v2-join-group-request.types.js.map +1 -0
- package/build/cjs/src/social-groups-v2-join-group-request.universal.d.ts +349 -0
- package/build/cjs/src/social-groups-v2-join-group-request.universal.js +309 -0
- package/build/cjs/src/social-groups-v2-join-group-request.universal.js.map +1 -0
- package/build/es/index.d.ts +3 -0
- package/build/es/index.js +4 -0
- package/build/es/index.js.map +1 -0
- package/build/es/src/social-groups-v2-group-member.http.d.ts +45 -0
- package/build/es/src/social-groups-v2-group-member.http.js +341 -0
- package/build/es/src/social-groups-v2-group-member.http.js.map +1 -0
- package/build/es/src/social-groups-v2-group-member.public.d.ts +10 -0
- package/build/es/src/social-groups-v2-group-member.public.js +33 -0
- package/build/es/src/social-groups-v2-group-member.public.js.map +1 -0
- package/build/es/src/social-groups-v2-group-member.types.d.ts +245 -0
- package/build/es/src/social-groups-v2-group-member.types.js +22 -0
- package/build/es/src/social-groups-v2-group-member.types.js.map +1 -0
- package/build/es/src/social-groups-v2-group-member.universal.d.ts +353 -0
- package/build/es/src/social-groups-v2-group-member.universal.js +375 -0
- package/build/es/src/social-groups-v2-group-member.universal.js.map +1 -0
- package/build/es/src/social-groups-v2-group.http.d.ts +46 -0
- package/build/es/src/social-groups-v2-group.http.js +425 -0
- package/build/es/src/social-groups-v2-group.http.js.map +1 -0
- package/build/es/src/social-groups-v2-group.public.d.ts +11 -0
- package/build/es/src/social-groups-v2-group.public.js +38 -0
- package/build/es/src/social-groups-v2-group.public.js.map +1 -0
- package/build/es/src/social-groups-v2-group.types.d.ts +327 -0
- package/build/es/src/social-groups-v2-group.types.js +28 -0
- package/build/es/src/social-groups-v2-group.types.js.map +1 -0
- package/build/es/src/social-groups-v2-group.universal.d.ts +494 -0
- package/build/es/src/social-groups-v2-group.universal.js +400 -0
- package/build/es/src/social-groups-v2-group.universal.js.map +1 -0
- package/build/es/src/social-groups-v2-join-group-request.http.d.ts +27 -0
- package/build/es/src/social-groups-v2-join-group-request.http.js +291 -0
- package/build/es/src/social-groups-v2-join-group-request.http.js.map +1 -0
- package/build/es/src/social-groups-v2-join-group-request.public.d.ts +8 -0
- package/build/es/src/social-groups-v2-join-group-request.public.js +23 -0
- package/build/es/src/social-groups-v2-join-group-request.public.js.map +1 -0
- package/build/es/src/social-groups-v2-join-group-request.types.d.ts +274 -0
- package/build/es/src/social-groups-v2-join-group-request.types.js +45 -0
- package/build/es/src/social-groups-v2-join-group-request.types.js.map +1 -0
- package/build/es/src/social-groups-v2-join-group-request.universal.d.ts +349 -0
- package/build/es/src/social-groups-v2-join-group-request.universal.js +283 -0
- package/build/es/src/social-groups-v2-join-group-request.universal.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
+
import { serializer } from '@wix/metro-runtime/ambassador';
|
|
3
|
+
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
+
const _coverImage = { position: '_position', mobilePosition: '_position' };
|
|
5
|
+
const _createGroupRequest = { group: '_group' };
|
|
6
|
+
const _createGroupResponse = { group: '_group' };
|
|
7
|
+
const _deleteGroupRequest = {};
|
|
8
|
+
const _deleteGroupResponse = { group: '_group' };
|
|
9
|
+
const _getGroupBySlugRequest = {};
|
|
10
|
+
const _getGroupBySlugResponse = { group: '_group' };
|
|
11
|
+
const _getGroupRequest = {};
|
|
12
|
+
const _getGroupResponse = { group: '_group' };
|
|
13
|
+
const _group = {
|
|
14
|
+
createdDate: 'google.protobuf.Timestamp',
|
|
15
|
+
updatedDate: 'google.protobuf.Timestamp',
|
|
16
|
+
recentActivityDate: 'google.protobuf.Timestamp',
|
|
17
|
+
lastActivityDate: 'google.protobuf.Timestamp',
|
|
18
|
+
details: '_groupDetails',
|
|
19
|
+
coverImage: '_coverImage',
|
|
20
|
+
};
|
|
21
|
+
const _groupDetails = {
|
|
22
|
+
logoPosition: '_groupDetailsPosition',
|
|
23
|
+
mobileLogoPosition: '_groupDetailsPosition',
|
|
24
|
+
};
|
|
25
|
+
const _groupDetailsPosition = { x: 'FLOAT', y: 'FLOAT' };
|
|
26
|
+
const _listGroupsRequest = {};
|
|
27
|
+
const _listGroupsResponse = { groups: '_group' };
|
|
28
|
+
const _position = { x: 'FLOAT', y: 'FLOAT' };
|
|
29
|
+
const _queryGroupsRequest = {};
|
|
30
|
+
const _queryGroupsResponse = { groups: '_group' };
|
|
31
|
+
const _updateGroupRequest = { group: '_group' };
|
|
32
|
+
const _updateGroupResponse = { group: '_group' };
|
|
33
|
+
function resolveWixSocialGroupsApiV2GroupsServiceUrl(opts) {
|
|
34
|
+
const domainToMappings = {
|
|
35
|
+
'api._api_base_domain_': [
|
|
36
|
+
{
|
|
37
|
+
srcPath: '/social-groups-server',
|
|
38
|
+
destPath: '',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
_: [
|
|
42
|
+
{
|
|
43
|
+
srcPath: '/_api/social-groups/v1',
|
|
44
|
+
destPath: '/api/v1',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
srcPath: '/_api/social-groups/v2',
|
|
48
|
+
destPath: '/v2',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
52
|
+
destPath: '/api/v1',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
'groups.wixapps.net': [
|
|
56
|
+
{
|
|
57
|
+
srcPath: '/social-groups/api',
|
|
58
|
+
destPath: '/api',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
srcPath: '/_api/social-groups/v2',
|
|
62
|
+
destPath: '/v2',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
'www._base_domain_': [
|
|
66
|
+
{
|
|
67
|
+
srcPath: '/social-groups/api',
|
|
68
|
+
destPath: '/api',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
srcPath: '/_api/social-groups/v2',
|
|
72
|
+
destPath: '/v2',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
srcPath: '/_api/social-groups/v1',
|
|
76
|
+
destPath: '/api/v1',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
'editor._base_domain_': [
|
|
80
|
+
{
|
|
81
|
+
srcPath: '/_api/social-groups-web',
|
|
82
|
+
destPath: '/api',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
srcPath: '/_api/social-groups/v2',
|
|
86
|
+
destPath: '/v2',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
90
|
+
destPath: '/api/v1',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
'blocks._base_domain_': [
|
|
94
|
+
{
|
|
95
|
+
srcPath: '/_api/social-groups-web',
|
|
96
|
+
destPath: '/api',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
srcPath: '/_api/social-groups/v2',
|
|
100
|
+
destPath: '/v2',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
104
|
+
destPath: '/api/v1',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
'create.editorx': [
|
|
108
|
+
{
|
|
109
|
+
srcPath: '/_api/social-groups-web',
|
|
110
|
+
destPath: '/api',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
srcPath: '/_api/social-groups/v2',
|
|
114
|
+
destPath: '/v2',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
118
|
+
destPath: '/api/v1',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
'*.dev.wix-code.com': [
|
|
122
|
+
{
|
|
123
|
+
srcPath: '/_api/social-groups/v1',
|
|
124
|
+
destPath: '/api/v1',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
128
|
+
destPath: '/api/v1',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
srcPath: '/_api/social-groups/v2',
|
|
132
|
+
destPath: '/v2',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
'manage._base_domain_': [
|
|
136
|
+
{
|
|
137
|
+
srcPath: '/social-groups/api',
|
|
138
|
+
destPath: '/api',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
srcPath: '/_api/social-groups',
|
|
142
|
+
destPath: '/api',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
srcPath: '/_api/social-groups/v2',
|
|
146
|
+
destPath: '/v2',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
150
|
+
destPath: '/api/v1',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
srcPath: '/social-groups/api/v1',
|
|
154
|
+
destPath: '/api/v1',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
srcPath: '/social-groups/api/v2',
|
|
158
|
+
destPath: '/v2',
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
'editor-flow.wixapps.net': [
|
|
162
|
+
{
|
|
163
|
+
srcPath: '/_api/social-groups/v2',
|
|
164
|
+
destPath: '/v2',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
'www.wixapis.com': [
|
|
168
|
+
{
|
|
169
|
+
srcPath: '/social-groups/v2',
|
|
170
|
+
destPath: '/v2',
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
'editor.wixapps.net': [
|
|
174
|
+
{
|
|
175
|
+
srcPath: '/_api/social-groups/v2',
|
|
176
|
+
destPath: '/v2',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
srcPath: '/_api/social-groups/v1',
|
|
180
|
+
destPath: '/api/v1',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
srcPath: '/social-groups/api/v1',
|
|
184
|
+
destPath: '/api/v1',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
srcPath: '/_api/social-groups/api/v1',
|
|
188
|
+
destPath: '/api/v1',
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
};
|
|
192
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Creates a group.
|
|
196
|
+
* >**Notes:**
|
|
197
|
+
* > + The site owners may not allow members to create groups.
|
|
198
|
+
* > + Specify a `creatorId` to set the group's creator.
|
|
199
|
+
* > + The group's creator will automatically become an admin.
|
|
200
|
+
*/
|
|
201
|
+
export function createGroup(payload) {
|
|
202
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_createGroupRequest, {
|
|
203
|
+
_coverImage,
|
|
204
|
+
_group,
|
|
205
|
+
_groupDetails,
|
|
206
|
+
_groupDetailsPosition,
|
|
207
|
+
_position,
|
|
208
|
+
});
|
|
209
|
+
const { fromJSON: fromRes } = serializer(_createGroupResponse, {
|
|
210
|
+
_coverImage,
|
|
211
|
+
_group,
|
|
212
|
+
_groupDetails,
|
|
213
|
+
_groupDetailsPosition,
|
|
214
|
+
_position,
|
|
215
|
+
});
|
|
216
|
+
function __createGroup({ host }) {
|
|
217
|
+
const serializedData = toReq(payload);
|
|
218
|
+
const metadata = {
|
|
219
|
+
method: 'POST',
|
|
220
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
221
|
+
protoPath: '/v2/groups',
|
|
222
|
+
data: serializedData,
|
|
223
|
+
host,
|
|
224
|
+
}),
|
|
225
|
+
data: serializedData,
|
|
226
|
+
transformResponse: fromRes,
|
|
227
|
+
};
|
|
228
|
+
return metadata;
|
|
229
|
+
}
|
|
230
|
+
__createGroup.fromReq = fromReq;
|
|
231
|
+
return __createGroup;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Updates a group.
|
|
235
|
+
* >**Note:**
|
|
236
|
+
* > + Only admins can update a group.
|
|
237
|
+
* > + When `group.privacyLevel` is updated from `PRIVATE` to `PUBLIC`, all pending group join requests are automatically approved.
|
|
238
|
+
* > + When `group.privacyLevel` is updated from `PRIVATE` to `SECRET`, all pending group join requests are automatically rejected.
|
|
239
|
+
*/
|
|
240
|
+
export function updateGroup(payload) {
|
|
241
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateGroupRequest, {
|
|
242
|
+
_coverImage,
|
|
243
|
+
_group,
|
|
244
|
+
_groupDetails,
|
|
245
|
+
_groupDetailsPosition,
|
|
246
|
+
_position,
|
|
247
|
+
});
|
|
248
|
+
const { fromJSON: fromRes } = serializer(_updateGroupResponse, {
|
|
249
|
+
_coverImage,
|
|
250
|
+
_group,
|
|
251
|
+
_groupDetails,
|
|
252
|
+
_groupDetailsPosition,
|
|
253
|
+
_position,
|
|
254
|
+
});
|
|
255
|
+
function __updateGroup({ host }) {
|
|
256
|
+
const serializedData = toReq(payload);
|
|
257
|
+
const metadata = {
|
|
258
|
+
method: 'PATCH',
|
|
259
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
260
|
+
protoPath: '/v2/groups/{group.id}',
|
|
261
|
+
data: serializedData,
|
|
262
|
+
host,
|
|
263
|
+
}),
|
|
264
|
+
data: serializedData,
|
|
265
|
+
transformResponse: fromRes,
|
|
266
|
+
};
|
|
267
|
+
return metadata;
|
|
268
|
+
}
|
|
269
|
+
__updateGroup.fromReq = fromReq;
|
|
270
|
+
return __updateGroup;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Hides a group from the Group List or cancels group request.
|
|
274
|
+
* >**Notes:**
|
|
275
|
+
* > + Only admins can delete a group.
|
|
276
|
+
* > + The group will no longer be visible in the live site or the Wix business manager.
|
|
277
|
+
* > + It is not possible to restore the group via the [Update Group](https://dev.wix.com/api/rest/wix-groups/groups/group/update-group) endpoint into the live site.
|
|
278
|
+
* > + It is still possible to retrieve the group via the [Get Group](https://dev.wix.com/api/rest/wix-groups/groups/group/get-group), [List Groups](https://dev.wix.com/api/rest/wix-groups/groups/group/list-groups) and [Query Groups](https://dev.wix.com/api/rest/wix-groups/groups/group/query-groups) endpoints.
|
|
279
|
+
*/
|
|
280
|
+
export function deleteGroup(payload) {
|
|
281
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteGroupRequest, {});
|
|
282
|
+
const { fromJSON: fromRes } = serializer(_deleteGroupResponse, {
|
|
283
|
+
_coverImage,
|
|
284
|
+
_group,
|
|
285
|
+
_groupDetails,
|
|
286
|
+
_groupDetailsPosition,
|
|
287
|
+
_position,
|
|
288
|
+
});
|
|
289
|
+
function __deleteGroup({ host }) {
|
|
290
|
+
const serializedData = toReq(payload);
|
|
291
|
+
const metadata = {
|
|
292
|
+
method: 'DELETE',
|
|
293
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
294
|
+
protoPath: '/v2/groups/{groupId}',
|
|
295
|
+
data: serializedData,
|
|
296
|
+
host,
|
|
297
|
+
}),
|
|
298
|
+
params: toURLSearchParams(serializedData),
|
|
299
|
+
transformResponse: fromRes,
|
|
300
|
+
};
|
|
301
|
+
return metadata;
|
|
302
|
+
}
|
|
303
|
+
__deleteGroup.fromReq = fromReq;
|
|
304
|
+
return __deleteGroup;
|
|
305
|
+
}
|
|
306
|
+
/** Retrieves a group. */
|
|
307
|
+
export function getGroup(payload) {
|
|
308
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getGroupRequest, {});
|
|
309
|
+
const { fromJSON: fromRes } = serializer(_getGroupResponse, {
|
|
310
|
+
_coverImage,
|
|
311
|
+
_group,
|
|
312
|
+
_groupDetails,
|
|
313
|
+
_groupDetailsPosition,
|
|
314
|
+
_position,
|
|
315
|
+
});
|
|
316
|
+
function __getGroup({ host }) {
|
|
317
|
+
const serializedData = toReq(payload);
|
|
318
|
+
const metadata = {
|
|
319
|
+
method: 'GET',
|
|
320
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
321
|
+
protoPath: '/v2/groups/{groupId}',
|
|
322
|
+
data: serializedData,
|
|
323
|
+
host,
|
|
324
|
+
}),
|
|
325
|
+
params: toURLSearchParams(serializedData),
|
|
326
|
+
transformResponse: fromRes,
|
|
327
|
+
};
|
|
328
|
+
return metadata;
|
|
329
|
+
}
|
|
330
|
+
__getGroup.fromReq = fromReq;
|
|
331
|
+
return __getGroup;
|
|
332
|
+
}
|
|
333
|
+
/** Retrieves a group by slug. */
|
|
334
|
+
export function getGroupBySlug(payload) {
|
|
335
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getGroupBySlugRequest, {});
|
|
336
|
+
const { fromJSON: fromRes } = serializer(_getGroupBySlugResponse, {
|
|
337
|
+
_coverImage,
|
|
338
|
+
_group,
|
|
339
|
+
_groupDetails,
|
|
340
|
+
_groupDetailsPosition,
|
|
341
|
+
_position,
|
|
342
|
+
});
|
|
343
|
+
function __getGroupBySlug({ host }) {
|
|
344
|
+
const serializedData = toReq(payload);
|
|
345
|
+
const metadata = {
|
|
346
|
+
method: 'GET',
|
|
347
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
348
|
+
protoPath: '/v2/groups/slugs/{slug}',
|
|
349
|
+
data: serializedData,
|
|
350
|
+
host,
|
|
351
|
+
}),
|
|
352
|
+
params: toURLSearchParams(serializedData),
|
|
353
|
+
transformResponse: fromRes,
|
|
354
|
+
};
|
|
355
|
+
return metadata;
|
|
356
|
+
}
|
|
357
|
+
__getGroupBySlug.fromReq = fromReq;
|
|
358
|
+
return __getGroupBySlug;
|
|
359
|
+
}
|
|
360
|
+
/** Retrieves up to 100 groups. */
|
|
361
|
+
export function listGroups(payload) {
|
|
362
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_listGroupsRequest, {});
|
|
363
|
+
const { fromJSON: fromRes } = serializer(_listGroupsResponse, {
|
|
364
|
+
_coverImage,
|
|
365
|
+
_group,
|
|
366
|
+
_groupDetails,
|
|
367
|
+
_groupDetailsPosition,
|
|
368
|
+
_position,
|
|
369
|
+
});
|
|
370
|
+
function __listGroups({ host }) {
|
|
371
|
+
const serializedData = toReq(payload);
|
|
372
|
+
const metadata = {
|
|
373
|
+
method: 'GET',
|
|
374
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
375
|
+
protoPath: '/v2/groups',
|
|
376
|
+
data: serializedData,
|
|
377
|
+
host,
|
|
378
|
+
}),
|
|
379
|
+
params: toURLSearchParams(serializedData),
|
|
380
|
+
transformResponse: fromRes,
|
|
381
|
+
};
|
|
382
|
+
return metadata;
|
|
383
|
+
}
|
|
384
|
+
__listGroups.fromReq = fromReq;
|
|
385
|
+
return __listGroups;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Retrieves up to 100 groups, given the provided paging, filtering, and sorting.
|
|
389
|
+
*
|
|
390
|
+
* Supported fields for filtering:
|
|
391
|
+
* - `title`
|
|
392
|
+
*
|
|
393
|
+
* Supported fields for sorting:
|
|
394
|
+
* - `title`
|
|
395
|
+
* - `createdDate`
|
|
396
|
+
* - `membersCount`
|
|
397
|
+
* - `recentActivityDate`
|
|
398
|
+
*/
|
|
399
|
+
export function queryGroups(payload) {
|
|
400
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryGroupsRequest, {});
|
|
401
|
+
const { fromJSON: fromRes } = serializer(_queryGroupsResponse, {
|
|
402
|
+
_coverImage,
|
|
403
|
+
_group,
|
|
404
|
+
_groupDetails,
|
|
405
|
+
_groupDetailsPosition,
|
|
406
|
+
_position,
|
|
407
|
+
});
|
|
408
|
+
function __queryGroups({ host }) {
|
|
409
|
+
const serializedData = toReq(payload);
|
|
410
|
+
const metadata = {
|
|
411
|
+
method: 'POST',
|
|
412
|
+
url: resolveWixSocialGroupsApiV2GroupsServiceUrl({
|
|
413
|
+
protoPath: '/v2/groups/query',
|
|
414
|
+
data: serializedData,
|
|
415
|
+
host,
|
|
416
|
+
}),
|
|
417
|
+
data: serializedData,
|
|
418
|
+
transformResponse: fromRes,
|
|
419
|
+
};
|
|
420
|
+
return metadata;
|
|
421
|
+
}
|
|
422
|
+
__queryGroups.fromReq = fromReq;
|
|
423
|
+
return __queryGroups;
|
|
424
|
+
}
|
|
425
|
+
//# sourceMappingURL=social-groups-v2-group.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAoBhD,MAAM,WAAW,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC;AAC3E,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAChD,MAAM,oBAAoB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACjD,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACpD,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC9C,MAAM,MAAM,GAAG;IACb,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,kBA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C;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;IAEhC,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CreateGroupOptions, ListGroupsOptions, QueryGroupsOptions, UpdateGroupOptions } from './social-groups-v2-group.universal';
|
|
3
|
+
export declare function createGroup(httpClient: HttpClient): (options?: CreateGroupOptions | undefined) => Promise<import("./social-groups-v2-group.universal").CreateGroupResponse>;
|
|
4
|
+
export declare function updateGroup(httpClient: HttpClient): (_id: string | null, options?: UpdateGroupOptions | undefined) => Promise<import("./social-groups-v2-group.universal").UpdateGroupResponse>;
|
|
5
|
+
export declare function deleteGroup(httpClient: HttpClient): (groupId: string) => Promise<import("./social-groups-v2-group.universal").DeleteGroupResponse>;
|
|
6
|
+
export declare function getGroup(httpClient: HttpClient): (groupId: string) => Promise<import("./social-groups-v2-group.universal").GetGroupResponse>;
|
|
7
|
+
export declare function getGroupBySlug(httpClient: HttpClient): (slug: string) => Promise<import("./social-groups-v2-group.universal").GetGroupBySlugResponse>;
|
|
8
|
+
export declare function listGroups(httpClient: HttpClient): (options?: ListGroupsOptions | undefined) => Promise<import("./social-groups-v2-group.universal").ListGroupsResponse>;
|
|
9
|
+
export declare function queryGroups(httpClient: HttpClient): (options?: QueryGroupsOptions | undefined) => Promise<import("./social-groups-v2-group.universal").QueryGroupsResponse>;
|
|
10
|
+
export { Type, PrivacyStatus, IdentityType, SortOrder, } from './social-groups-v2-group.universal';
|
|
11
|
+
export { Group, Events, Logo, GroupDetailsPosition, Image, Position, AccessRestriction, AccessRestrictionDataOneOf, GroupDetails, CoverImage, GroupSettings, Identity, CreateGroupRequest, CreateGroupResponse, UpdateGroupRequest, UpdateGroupResponse, GroupCoverChanged, GroupDescriptionChanged, DeleteGroupRequest, DeleteGroupResponse, GetGroupRequest, GetGroupResponse, GetGroupBySlugRequest, GetGroupBySlugResponse, ListGroupsRequest, ListGroupsResponse, PagingMetadata, ListGroupsByUserIdRequest, ListGroupsByUserIdResponse, GroupWithMsId, QueryGroupsRequest, Query, Sorting, Paging, QueryGroupsResponse, QueryJoinedGroupsRequest, QueryJoinedGroupsResponse, CreateGroupOptions, UpdateGroupOptions, ListGroupsOptions, QueryGroupsOptions, } from './social-groups-v2-group.universal';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createGroup as universalCreateGroup, updateGroup as universalUpdateGroup, deleteGroup as universalDeleteGroup, getGroup as universalGetGroup, getGroupBySlug as universalGetGroupBySlug, listGroups as universalListGroups, queryGroups as universalQueryGroups, } from './social-groups-v2-group.universal';
|
|
2
|
+
export function createGroup(httpClient) {
|
|
3
|
+
return (options) => universalCreateGroup(options,
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
{ httpClient });
|
|
6
|
+
}
|
|
7
|
+
export function updateGroup(httpClient) {
|
|
8
|
+
return (_id, options) => universalUpdateGroup(_id, options,
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
{ httpClient });
|
|
11
|
+
}
|
|
12
|
+
export function deleteGroup(httpClient) {
|
|
13
|
+
return (groupId) => universalDeleteGroup(groupId,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
export function getGroup(httpClient) {
|
|
18
|
+
return (groupId) => universalGetGroup(groupId,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
export function getGroupBySlug(httpClient) {
|
|
23
|
+
return (slug) => universalGetGroupBySlug(slug,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
export function listGroups(httpClient) {
|
|
28
|
+
return (options) => universalListGroups(options,
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
{ httpClient });
|
|
31
|
+
}
|
|
32
|
+
export function queryGroups(httpClient) {
|
|
33
|
+
return (options) => universalQueryGroups(options,
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
{ httpClient });
|
|
36
|
+
}
|
|
37
|
+
export { Type, PrivacyStatus, IdentityType, SortOrder, } from './social-groups-v2-group.universal';
|
|
38
|
+
//# sourceMappingURL=social-groups-v2-group.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group.public.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACnC,QAAQ,IAAI,iBAAiB,EAC7B,cAAc,IAAI,uBAAuB,EACzC,UAAU,IAAI,mBAAmB,EACjC,WAAW,IAAI,oBAAoB,GAKpC,MAAM,oCAAoC,CAAC;AAE5C,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,OAA4B,EAAE,EAAE,CACtC,oBAAoB,CAClB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAkB,EAAE,OAA4B,EAAE,EAAE,CAC1D,oBAAoB,CAClB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,oBAAoB,CAClB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,iBAAiB,CACf,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CAC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