@selfcommunity/api-services 0.4.50-alpha.0 → 0.4.50-event.30
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/lib/cjs/constants/Endpoints.js +107 -0
- package/lib/cjs/index.d.ts +3 -2
- package/lib/cjs/index.js +4 -1
- package/lib/cjs/services/event/index.d.ts +257 -0
- package/lib/cjs/services/event/index.js +382 -0
- package/lib/cjs/types/event.d.ts +82 -0
- package/lib/cjs/types/event.js +2 -0
- package/lib/cjs/types/index.d.ts +2 -1
- package/lib/esm/constants/Endpoints.js +107 -0
- package/lib/esm/index.d.ts +3 -2
- package/lib/esm/index.js +2 -1
- package/lib/esm/services/event/index.d.ts +257 -0
- package/lib/esm/services/event/index.js +377 -0
- package/lib/esm/types/event.d.ts +82 -0
- package/lib/esm/types/event.js +1 -0
- package/lib/esm/types/index.d.ts +2 -1
- package/lib/umd/api-services.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventApiClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const apiRequest_1 = require("../../utils/apiRequest");
|
|
6
|
+
const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
|
|
7
|
+
const url_1 = require("../../utils/url");
|
|
8
|
+
/**
|
|
9
|
+
* Contains all the endpoints needed to manage events.
|
|
10
|
+
*/
|
|
11
|
+
class EventApiClient {
|
|
12
|
+
/**
|
|
13
|
+
* This endpoint retrieves all the events of the logged-in user.
|
|
14
|
+
* @param params
|
|
15
|
+
* @param config
|
|
16
|
+
*/
|
|
17
|
+
static getUserEvents(params, config) {
|
|
18
|
+
const p = (0, url_1.urlParams)(params);
|
|
19
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetUserEvents.url({})}?${p.toString()}`, method: Endpoints_1.default.GetUserEvents.method }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This endpoint retrieves a specific user events.
|
|
23
|
+
* @param id
|
|
24
|
+
* @param params
|
|
25
|
+
* @param config
|
|
26
|
+
*/
|
|
27
|
+
static getUserSubscribedEvents(id, params, config) {
|
|
28
|
+
const p = (0, url_1.urlParams)(params);
|
|
29
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetUserSubscribedEvents.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetUserSubscribedEvents.method }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This endpoint performs events search
|
|
33
|
+
* @param params
|
|
34
|
+
* @param config
|
|
35
|
+
*/
|
|
36
|
+
static searchEvents(params, config) {
|
|
37
|
+
const p = (0, url_1.urlParams)(params);
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchEvents.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchEvents.method }));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint retrieves a specific event.
|
|
42
|
+
* @param id
|
|
43
|
+
* @param config
|
|
44
|
+
*/
|
|
45
|
+
static getSpecificEventInfo(id, config) {
|
|
46
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetEventInfo.url({ id }), method: Endpoints_1.default.GetEventInfo.method }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* This endpoint performs events search
|
|
50
|
+
* @param id
|
|
51
|
+
* @param params
|
|
52
|
+
* @param config
|
|
53
|
+
*/
|
|
54
|
+
static getEventFeed(id, params, config) {
|
|
55
|
+
const p = (0, url_1.urlParams)(params);
|
|
56
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetEventFeed.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetEventFeed.method }));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* This endpoint creates an event.
|
|
60
|
+
* @param data
|
|
61
|
+
* @param config
|
|
62
|
+
*/
|
|
63
|
+
static createEvent(data, config) {
|
|
64
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CreateEvent.url({}), method: Endpoints_1.default.CreateEvent.method, data: data }));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* This endpoint updates an event.
|
|
68
|
+
* @param id
|
|
69
|
+
* @param data
|
|
70
|
+
* @param config
|
|
71
|
+
*/
|
|
72
|
+
static updateEvent(id, data, config) {
|
|
73
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdateEvent.url({ id }), method: Endpoints_1.default.UpdateEvent.method, data: data }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* This endpoint patches an event.
|
|
77
|
+
* @param id
|
|
78
|
+
* @param data
|
|
79
|
+
* @param config
|
|
80
|
+
*/
|
|
81
|
+
static patchEvent(id, data, config) {
|
|
82
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.PatchEvent.url({ id }), method: Endpoints_1.default.PatchEvent.method, data: data }));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* This endpoint deletes an event.
|
|
86
|
+
* @param id
|
|
87
|
+
* @param config
|
|
88
|
+
*/
|
|
89
|
+
static deleteEvent(id, config) {
|
|
90
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.DeleteEvent.url({ id }), method: Endpoints_1.default.DeleteEvent.method }));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* This endpoint changes the event avatar
|
|
94
|
+
* @param id
|
|
95
|
+
* @param data
|
|
96
|
+
* @param config
|
|
97
|
+
*/
|
|
98
|
+
static changeEventAvatarOrCover(id, data, config) {
|
|
99
|
+
return (0, apiRequest_1.apiRequest)(Object.assign({ url: Endpoints_1.default.PatchEvent.url({ id }), method: Endpoints_1.default.PatchEvent.method, data }, config));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* This endpoint returns all subscribers of a specific event.
|
|
103
|
+
* @param id
|
|
104
|
+
* @param params
|
|
105
|
+
* @param config
|
|
106
|
+
*/
|
|
107
|
+
static getEventMembers(id, params, config) {
|
|
108
|
+
const p = (0, url_1.urlParams)(params);
|
|
109
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetEventSubscribers.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetEventSubscribers.method }));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* This endpoint returns a list of suggested users to invite to the event.
|
|
113
|
+
* @param id
|
|
114
|
+
* @param search
|
|
115
|
+
* @param config
|
|
116
|
+
*/
|
|
117
|
+
static getEventSuggestedUsers(id, search, config) {
|
|
118
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetEventSuggestedUsers.url({ id, search }), method: Endpoints_1.default.GetEventSuggestedUsers.method }));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* This endpoint returns a list of suggested users to invite to the events.
|
|
122
|
+
* @param search
|
|
123
|
+
* @param config
|
|
124
|
+
*/
|
|
125
|
+
static getEventsSuggestedUsers(search, config) {
|
|
126
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetEventsSuggestedUsers.url({ search }), method: Endpoints_1.default.GetEventsSuggestedUsers.method }));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* This endpoint returns a list of invited users.
|
|
130
|
+
* @param id
|
|
131
|
+
* @param params
|
|
132
|
+
* @param config
|
|
133
|
+
*/
|
|
134
|
+
static getEventInvitedUsers(id, params, config) {
|
|
135
|
+
const p = (0, url_1.urlParams)(params);
|
|
136
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetEventInvitedUsers.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetEventInvitedUsers.method }));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* This endpoint returns a list of users attending the event.
|
|
140
|
+
* @param id
|
|
141
|
+
* @param params
|
|
142
|
+
* @param config
|
|
143
|
+
*/
|
|
144
|
+
static getUsersGoingToEvent(id, params, config) {
|
|
145
|
+
const p = (0, url_1.urlParams)(params);
|
|
146
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetUsersGoingToEvent.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetUsersGoingToEvent.method }));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* This endpoint returns a list of users not attending the event.
|
|
150
|
+
* @param id
|
|
151
|
+
* @param params
|
|
152
|
+
* @param config
|
|
153
|
+
*/
|
|
154
|
+
static getUsersNotGoingToEvent(id, params, config) {
|
|
155
|
+
const p = (0, url_1.urlParams)(params);
|
|
156
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetUsersNotGoingToEvent.url({ id })}?${p.toString()}`, method: Endpoints_1.default.GetUsersNotGoingToEvent.method }));
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* This endpoint subscribes to an event.
|
|
160
|
+
* @param id
|
|
161
|
+
* @param config
|
|
162
|
+
*/
|
|
163
|
+
static subscribeToEvent(id, config) {
|
|
164
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.SubscribeToEvent.url({ id }), method: Endpoints_1.default.SubscribeToEvent.method }));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* This endpoint unsubscribes from an event.
|
|
168
|
+
* @param id
|
|
169
|
+
* @param config
|
|
170
|
+
*/
|
|
171
|
+
static unsubscribeFromEvent(id, config) {
|
|
172
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UnsubscribeFromEvent.url({ id }), method: Endpoints_1.default.UnsubscribeFromEvent.method }));
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* This endpoint allows to invite or accept an event invite.
|
|
176
|
+
* @param id
|
|
177
|
+
* @param data
|
|
178
|
+
* @param config
|
|
179
|
+
*/
|
|
180
|
+
static inviteOrAcceptEventRequest(id, data, config) {
|
|
181
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.InviteOrAcceptEventRequest.url({ id }), method: Endpoints_1.default.InviteOrAcceptEventRequest.method, data: data }));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* This endpoint retrieves the event subscription status.
|
|
185
|
+
* @param id
|
|
186
|
+
* @param config
|
|
187
|
+
*/
|
|
188
|
+
static getEventSubscriptionStatus(id, config) {
|
|
189
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetEventSubscriptionStatus.url({ id }), method: Endpoints_1.default.GetEventSubscriptionStatus.method }));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* This endpoint allows to attend an event
|
|
193
|
+
* @param id
|
|
194
|
+
* @param config
|
|
195
|
+
*/
|
|
196
|
+
static goToEvent(id, config) {
|
|
197
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GoToEvent.url({ id }), method: Endpoints_1.default.GoToEvent.method }));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* This endpoint allows to remove an event participation
|
|
201
|
+
* @param id
|
|
202
|
+
* @param config
|
|
203
|
+
*/
|
|
204
|
+
static removeGoingToEvent(id, config) {
|
|
205
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.RemoveGoingToEvent.url({ id }), method: Endpoints_1.default.RemoveGoingToEvent.method }));
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* This endpoint allows to not attend an event
|
|
209
|
+
* @param id
|
|
210
|
+
* @param config
|
|
211
|
+
*/
|
|
212
|
+
static notGoingToEvent(id, config) {
|
|
213
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.NotGoingToEvent.url({ id }), method: Endpoints_1.default.NotGoingToEvent.method }));
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* This endpoint allows to remove the event not attending
|
|
217
|
+
* @param id
|
|
218
|
+
* @param config
|
|
219
|
+
*/
|
|
220
|
+
static removeNotGoingToEvent(id, config) {
|
|
221
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.RemoveNotGoingToEvent.url({ id }), method: Endpoints_1.default.RemoveNotGoingToEvent.method }));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
exports.EventApiClient = EventApiClient;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
:::tip Incubator service can be used in the following way:
|
|
228
|
+
|
|
229
|
+
```jsx
|
|
230
|
+
1. Import the service from our library:
|
|
231
|
+
|
|
232
|
+
import {EventService} from "@selfcommunity/api-services";
|
|
233
|
+
```
|
|
234
|
+
```jsx
|
|
235
|
+
2. Create a function and put the service inside it!
|
|
236
|
+
The async function `searchEvents` will return the events matching the search query.
|
|
237
|
+
|
|
238
|
+
async searchEvents() {
|
|
239
|
+
return await EventService.searchEvents();
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
```jsx
|
|
243
|
+
In case of required `params`, just add them inside the brackets.
|
|
244
|
+
|
|
245
|
+
async getSpecificEventInfo(eventId) {
|
|
246
|
+
return await EventService.getSpecificEventInfo(eventId);
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
```jsx
|
|
250
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
251
|
+
|
|
252
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
253
|
+
|
|
254
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
255
|
+
|
|
256
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
257
|
+
```
|
|
258
|
+
:::
|
|
259
|
+
*/
|
|
260
|
+
class EventService {
|
|
261
|
+
static getUserEvents(params, config) {
|
|
262
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
return EventApiClient.getUserEvents(params, config);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
static getUserSubscribedEvents(id, params, config) {
|
|
267
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
return EventApiClient.getUserSubscribedEvents(id, params, config);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
static searchEvents(params, config) {
|
|
272
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
return EventApiClient.searchEvents(params, config);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
static getSpecificEventInfo(id, config) {
|
|
277
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
return EventApiClient.getSpecificEventInfo(id, config);
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
static getEventFeed(id, params, config) {
|
|
282
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
return EventApiClient.getEventFeed(id, params, config);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
static createEvent(data, config) {
|
|
287
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
return EventApiClient.createEvent(data, config);
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
static updateEvent(id, data, config) {
|
|
292
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
return EventApiClient.updateEvent(id, data, config);
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
static patchEvent(id, data, config) {
|
|
297
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
return EventApiClient.patchEvent(id, data, config);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
static deleteEvent(id, config) {
|
|
302
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
return EventApiClient.deleteEvent(id, config);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
static changeEventAvatarOrCover(id, data, config) {
|
|
307
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
return EventApiClient.changeEventAvatarOrCover(id, data, config);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
static getEventMembers(id, params, config) {
|
|
312
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
return EventApiClient.getEventMembers(id, params, config);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
static getEventSuggestedUsers(id, search, config) {
|
|
317
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
return EventApiClient.getEventSuggestedUsers(id, search, config);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
static getEventsSuggestedUsers(search, config) {
|
|
322
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
return EventApiClient.getEventsSuggestedUsers(search, config);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
static getEventInvitedUsers(id, params, config) {
|
|
327
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
return EventApiClient.getEventInvitedUsers(id, params, config);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
static getUsersGoingToEvent(id, params, config) {
|
|
332
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
return EventApiClient.getUsersGoingToEvent(id, params, config);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
static getUsersNotGoingToEvent(id, params, config) {
|
|
337
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
return EventApiClient.getUsersNotGoingToEvent(id, params, config);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
static subscribeToEvent(id, config) {
|
|
342
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
return EventApiClient.subscribeToEvent(id, config);
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
static unsubscribeFromEvent(id, config) {
|
|
347
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
return EventApiClient.unsubscribeFromEvent(id, config);
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
static inviteOrAcceptEventRequest(id, data, config) {
|
|
352
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
return EventApiClient.inviteOrAcceptEventRequest(id, data, config);
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
static getEventSubscriptionStatus(id, config) {
|
|
357
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
return EventApiClient.getEventSubscriptionStatus(id, config);
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
static goToEvent(id, config) {
|
|
362
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
363
|
+
return EventApiClient.goToEvent(id, config);
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
static removeGoingToEvent(id, config) {
|
|
367
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
return EventApiClient.removeGoingToEvent(id, config);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
static notGoingToEvent(id, config) {
|
|
372
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
return EventApiClient.notGoingToEvent(id, config);
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
static removeNotGoingToEvent(id, config) {
|
|
377
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
378
|
+
return EventApiClient.removeNotGoingToEvent(id, config);
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
exports.default = EventService;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventCreateParams interface
|
|
3
|
+
*/
|
|
4
|
+
import { SCEventDateFilterType, SCEventPrivacyType, SCEventRecurrenceType } from '@selfcommunity/types';
|
|
5
|
+
import { BaseGetParams, BaseSearchParams } from './baseParams';
|
|
6
|
+
import { SCEventLocationType } from '@selfcommunity/types/src/types/event';
|
|
7
|
+
export interface EventCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* A unique name for the group
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The group privacy
|
|
14
|
+
*/
|
|
15
|
+
privacy: SCEventPrivacyType;
|
|
16
|
+
/**
|
|
17
|
+
* The group visibility. It is required when privacy = private.
|
|
18
|
+
*/
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The group description
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The event starting date and time
|
|
26
|
+
*/
|
|
27
|
+
start_date: string;
|
|
28
|
+
/**
|
|
29
|
+
* The group ending date and time
|
|
30
|
+
*/
|
|
31
|
+
end_date?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The users to invite to the group
|
|
34
|
+
*/
|
|
35
|
+
invite_users?: number[];
|
|
36
|
+
/**
|
|
37
|
+
* The event image
|
|
38
|
+
*/
|
|
39
|
+
image_original?: File;
|
|
40
|
+
/**
|
|
41
|
+
* The event location
|
|
42
|
+
*/
|
|
43
|
+
location: SCEventLocationType;
|
|
44
|
+
/**
|
|
45
|
+
* The event exact point
|
|
46
|
+
*/
|
|
47
|
+
geolocation: string;
|
|
48
|
+
/**
|
|
49
|
+
* The event latitude
|
|
50
|
+
*/
|
|
51
|
+
geolocation_lat: number;
|
|
52
|
+
/**
|
|
53
|
+
* The event longitude
|
|
54
|
+
*/
|
|
55
|
+
geolocation_lng: number;
|
|
56
|
+
/**
|
|
57
|
+
* The event recurrency
|
|
58
|
+
*/
|
|
59
|
+
recurring?: SCEventRecurrenceType;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* EventFeedParams interface.
|
|
63
|
+
*/
|
|
64
|
+
export interface EventFeedParams extends BaseGetParams {
|
|
65
|
+
/**
|
|
66
|
+
* Which field to use when ordering the results.
|
|
67
|
+
*/
|
|
68
|
+
ordering?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* EventFeedParams interface.
|
|
72
|
+
*/
|
|
73
|
+
export interface EventSearchParams extends BaseSearchParams {
|
|
74
|
+
/**
|
|
75
|
+
* The events filtered by a specific time frame
|
|
76
|
+
*/
|
|
77
|
+
date_filter?: SCEventDateFilterType;
|
|
78
|
+
/**
|
|
79
|
+
* The events created or followed by the users followed
|
|
80
|
+
*/
|
|
81
|
+
follows?: boolean | number;
|
|
82
|
+
}
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ import { ScoreParams } from './score';
|
|
|
24
24
|
import { InsightCommonParams, InsightEmbedParams, InsightUserParams, InsightContributionParams } from './insight';
|
|
25
25
|
import { ReactionParams } from './reaction';
|
|
26
26
|
import { GroupCreateParams, GroupFeedParams } from './group';
|
|
27
|
-
|
|
27
|
+
import { EventCreateParams, EventFeedParams, EventSearchParams } from './event';
|
|
28
|
+
export { AccountCreateParams, AccountVerifyParams, AccountRecoverParams, AccountResetParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserGetParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadCompleteParams, ChunkUploadParams, ThreadParams, ThreadDeleteParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams, EventCreateParams, EventFeedParams, EventSearchParams };
|
|
@@ -1194,6 +1194,113 @@ const Endpoints = {
|
|
|
1194
1194
|
GetUserSubscribedGroups: {
|
|
1195
1195
|
url: urlReplacer('/api/v2/user/$(id)/groups/'),
|
|
1196
1196
|
method: 'GET'
|
|
1197
|
+
},
|
|
1198
|
+
/**
|
|
1199
|
+
* Events
|
|
1200
|
+
*/
|
|
1201
|
+
GetUserEvents: {
|
|
1202
|
+
url: urlReplacer('/api/v2/event/'),
|
|
1203
|
+
method: 'GET'
|
|
1204
|
+
},
|
|
1205
|
+
GetEventInfo: {
|
|
1206
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1207
|
+
method: 'GET'
|
|
1208
|
+
},
|
|
1209
|
+
GetEventFeed: {
|
|
1210
|
+
url: urlReplacer('/api/v2/event/$(id)/feed/'),
|
|
1211
|
+
method: 'GET'
|
|
1212
|
+
},
|
|
1213
|
+
SearchEvents: {
|
|
1214
|
+
url: urlReplacer('/api/v2/event/search/'),
|
|
1215
|
+
method: 'GET'
|
|
1216
|
+
},
|
|
1217
|
+
CreateEvent: {
|
|
1218
|
+
url: urlReplacer('/api/v2/event/'),
|
|
1219
|
+
method: 'POST'
|
|
1220
|
+
},
|
|
1221
|
+
UpdateEvent: {
|
|
1222
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1223
|
+
method: 'PUT'
|
|
1224
|
+
},
|
|
1225
|
+
DeleteEvent: {
|
|
1226
|
+
url: urlReplacer('/api/v2/event/'),
|
|
1227
|
+
method: 'DELETE'
|
|
1228
|
+
},
|
|
1229
|
+
PatchEvent: {
|
|
1230
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1231
|
+
method: 'PATCH'
|
|
1232
|
+
},
|
|
1233
|
+
GetEventSuggestedUsers: {
|
|
1234
|
+
url: urlReplacer('/api/v2/event/$(id)/user/?search=$(search)'),
|
|
1235
|
+
method: 'GET'
|
|
1236
|
+
},
|
|
1237
|
+
GetUsersGoingToEvent: {
|
|
1238
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1239
|
+
method: 'GET'
|
|
1240
|
+
},
|
|
1241
|
+
GetUsersNotGoingToEvent: {
|
|
1242
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1243
|
+
method: 'GET'
|
|
1244
|
+
},
|
|
1245
|
+
GoToEvent: {
|
|
1246
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1247
|
+
method: 'POST'
|
|
1248
|
+
},
|
|
1249
|
+
RemoveGoingToEvent: {
|
|
1250
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1251
|
+
method: 'DELETE'
|
|
1252
|
+
},
|
|
1253
|
+
NotGoingToEvent: {
|
|
1254
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1255
|
+
method: 'POST'
|
|
1256
|
+
},
|
|
1257
|
+
RemoveNotGoingToEvent: {
|
|
1258
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1259
|
+
method: 'DELETE'
|
|
1260
|
+
},
|
|
1261
|
+
GetEventsSuggestedUsers: {
|
|
1262
|
+
url: urlReplacer('/api/v2/event/user/?search=$(search)'),
|
|
1263
|
+
method: 'GET'
|
|
1264
|
+
},
|
|
1265
|
+
InviteOrAcceptEventRequest: {
|
|
1266
|
+
url: urlReplacer('/api/v2/event/$(id)/invite/'),
|
|
1267
|
+
method: 'POST'
|
|
1268
|
+
},
|
|
1269
|
+
GetEventInvitedUsers: {
|
|
1270
|
+
url: urlReplacer('/api/v2/event/$(id)/invite/'),
|
|
1271
|
+
method: 'GET'
|
|
1272
|
+
},
|
|
1273
|
+
GetEventSubscriptionStatus: {
|
|
1274
|
+
url: urlReplacer('/api/v2/event/$(id)/status/'),
|
|
1275
|
+
method: 'GET'
|
|
1276
|
+
},
|
|
1277
|
+
SubscribeToEvent: {
|
|
1278
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1279
|
+
method: 'POST'
|
|
1280
|
+
},
|
|
1281
|
+
GetEventSubscribers: {
|
|
1282
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1283
|
+
method: 'GET'
|
|
1284
|
+
},
|
|
1285
|
+
GetEventWaitingApprovalSubscribers: {
|
|
1286
|
+
url: urlReplacer('/api/v2/event/$(id)/request_subscribe/'),
|
|
1287
|
+
method: 'GET'
|
|
1288
|
+
},
|
|
1289
|
+
UnsubscribeFromEvent: {
|
|
1290
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1291
|
+
method: 'DELETE'
|
|
1292
|
+
},
|
|
1293
|
+
GetUserSubscribedEvents: {
|
|
1294
|
+
url: urlReplacer('/api/v2/user/$(id)/events/'),
|
|
1295
|
+
method: 'GET'
|
|
1296
|
+
},
|
|
1297
|
+
HideEvent: {
|
|
1298
|
+
url: urlReplacer('/api/v2/event/$(id)/hide/'),
|
|
1299
|
+
method: 'POST'
|
|
1300
|
+
},
|
|
1301
|
+
ShowEvent: {
|
|
1302
|
+
url: urlReplacer('/api/v2/event/$(id)/show/'),
|
|
1303
|
+
method: 'POST'
|
|
1197
1304
|
}
|
|
1198
1305
|
};
|
|
1199
1306
|
export default Endpoints;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -47,11 +47,12 @@ import UserService, { UserApiClient, UserApiClientInterface } from './services/u
|
|
|
47
47
|
import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './services/webhook';
|
|
48
48
|
import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient, GroupApiClientInterface } from './services/group';
|
|
50
|
+
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
|
|
50
51
|
/**
|
|
51
52
|
* Types
|
|
52
53
|
*/
|
|
53
|
-
import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams } from './types';
|
|
54
|
+
import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams, EventCreateParams, EventFeedParams, EventSearchParams } from './types';
|
|
54
55
|
/**
|
|
55
56
|
* Export all
|
|
56
57
|
*/
|
|
57
|
-
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountSearchParams, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface, GroupCreateParams, GroupFeedParams, GroupService, GroupApiClient, GroupApiClientInterface };
|
|
58
|
+
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountSearchParams, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface, GroupCreateParams, GroupFeedParams, GroupService, GroupApiClient, GroupApiClientInterface, EventCreateParams, EventFeedParams, EventSearchParams, EventService, EventApiClient, EventApiClientInterface };
|
package/lib/esm/index.js
CHANGED
|
@@ -47,6 +47,7 @@ import UserService, { UserApiClient } from './services/user';
|
|
|
47
47
|
import WebhookService, { WebhookApiClient } from './services/webhook';
|
|
48
48
|
import ReactionService, { ReactionApiClient } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient } from './services/group';
|
|
50
|
+
import EventService, { EventApiClient } from './services/event';
|
|
50
51
|
/**
|
|
51
52
|
* Types
|
|
52
53
|
*/
|
|
@@ -54,4 +55,4 @@ import { MediaTypes } from './types';
|
|
|
54
55
|
/**
|
|
55
56
|
* Export all
|
|
56
57
|
*/
|
|
57
|
-
export { http, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, AccountService, AccountApiClient, PreferenceService, PreferenceApiClient, UserService, UserApiClient, FeatureService, FeatureApiClient, CategoryService, CategoryApiClient, CommentService, CommentApiClient, CustomAdvService, CustomAdvApiClient, CustomMenuService, CustomMenuApiClient, CustomPageService, CustomPageApiClient, DataPortabilityService, DataPortabilityApiClient, EmbedService, EmbedApiClient, FeedService, FeedApiClient, FeedObjectService, FeedObjectApiClient, IncubatorService, IncubatorApiClient, InsightService, InsightApiClient, InviteService, InviteApiClient, LegalPageService, LegalPageApiClient, LocalityService, LocalityApiClient, LoyaltyService, LoyaltyApiClient, MediaService, MediaApiClient, ModerationService, ModerationApiClient, NotificationService, NotificationApiClient, PrivateMessageService, PrivateMessageApiClient, PromoService, PromoApiClient, ScoreService, ScoreApiClient, SSOService, SSOApiClient, SuggestionService, SuggestionApiClient, TagService, TagApiClient, WebhookService, WebhookApiClient, MediaTypes, ReactionService, ReactionApiClient, GroupService, GroupApiClient };
|
|
58
|
+
export { http, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, AccountService, AccountApiClient, PreferenceService, PreferenceApiClient, UserService, UserApiClient, FeatureService, FeatureApiClient, CategoryService, CategoryApiClient, CommentService, CommentApiClient, CustomAdvService, CustomAdvApiClient, CustomMenuService, CustomMenuApiClient, CustomPageService, CustomPageApiClient, DataPortabilityService, DataPortabilityApiClient, EmbedService, EmbedApiClient, FeedService, FeedApiClient, FeedObjectService, FeedObjectApiClient, IncubatorService, IncubatorApiClient, InsightService, InsightApiClient, InviteService, InviteApiClient, LegalPageService, LegalPageApiClient, LocalityService, LocalityApiClient, LoyaltyService, LoyaltyApiClient, MediaService, MediaApiClient, ModerationService, ModerationApiClient, NotificationService, NotificationApiClient, PrivateMessageService, PrivateMessageApiClient, PromoService, PromoApiClient, ScoreService, ScoreApiClient, SSOService, SSOApiClient, SuggestionService, SuggestionApiClient, TagService, TagApiClient, WebhookService, WebhookApiClient, MediaTypes, ReactionService, ReactionApiClient, GroupService, GroupApiClient, EventService, EventApiClient };
|