@selfcommunity/api-services 0.1.4 → 0.1.5
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 +497 -57
- package/lib/cjs/index.js +147 -10
- package/lib/cjs/services/category/index.js +317 -3
- package/lib/cjs/services/comment/index.js +269 -0
- package/lib/cjs/services/custom_adv/index.js +85 -0
- package/lib/cjs/services/custom_page/index.js +85 -0
- package/lib/cjs/services/data_portability/index.js +83 -0
- package/lib/cjs/services/dynamic_preference/index.js +85 -0
- package/lib/cjs/services/embed/index.js +198 -0
- package/lib/cjs/services/feed/index.js +125 -0
- package/lib/cjs/services/feed_object/index.js +660 -0
- package/lib/cjs/services/incubator/index.js +175 -0
- package/lib/cjs/services/insight/index.js +146 -0
- package/lib/cjs/services/legal_page/index.js +152 -0
- package/lib/cjs/services/locality/index.js +62 -0
- package/lib/cjs/services/loyalty/index.js +219 -0
- package/lib/cjs/services/media/index.js +175 -0
- package/lib/cjs/services/moderation/index.js +156 -0
- package/lib/cjs/services/notification/index.js +209 -0
- package/lib/cjs/services/private_message/index.js +236 -0
- package/lib/cjs/services/score/index.js +83 -0
- package/lib/cjs/services/sso/index.js +62 -0
- package/lib/cjs/services/suggestion/index.js +104 -0
- package/lib/cjs/services/tag/index.js +175 -0
- package/lib/cjs/services/user/index.js +995 -9
- package/lib/cjs/services/webhook/index.js +290 -0
- package/lib/cjs/utils/token.js +15 -0
- package/lib/esm/api-services/src/constants/Endpoints.d.ts.map +1 -1
- package/lib/esm/api-services/src/index.d.ts +26 -3
- package/lib/esm/api-services/src/index.d.ts.map +1 -1
- package/lib/esm/api-services/src/services/category/index.d.ts +42 -0
- package/lib/esm/api-services/src/services/category/index.d.ts.map +1 -1
- package/lib/esm/api-services/src/services/comment/index.d.ts +40 -0
- package/lib/esm/api-services/src/services/comment/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/custom_adv/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/custom_adv/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/custom_page/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/custom_page/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/data_portability/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/data_portability/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/embed/index.d.ts +31 -0
- package/lib/esm/api-services/src/services/embed/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/feed/index.d.ts +22 -0
- package/lib/esm/api-services/src/services/feed/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/feed_object/index.d.ts +88 -0
- package/lib/esm/api-services/src/services/feed_object/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/incubator/index.d.ts +28 -0
- package/lib/esm/api-services/src/services/incubator/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/insight/index.d.ts +25 -0
- package/lib/esm/api-services/src/services/insight/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/legal_page/index.d.ts +25 -0
- package/lib/esm/api-services/src/services/legal_page/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/locality/index.d.ts +13 -0
- package/lib/esm/api-services/src/services/locality/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/loyalty/index.d.ts +34 -0
- package/lib/esm/api-services/src/services/loyalty/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/media/index.d.ts +28 -0
- package/lib/esm/api-services/src/services/media/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/moderation/index.d.ts +25 -0
- package/lib/esm/api-services/src/services/moderation/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/notification/index.d.ts +34 -0
- package/lib/esm/api-services/src/services/notification/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/private_message/index.d.ts +37 -0
- package/lib/esm/api-services/src/services/private_message/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/score/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/score/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/sso/index.d.ts +13 -0
- package/lib/esm/api-services/src/services/sso/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/suggestion/index.d.ts +19 -0
- package/lib/esm/api-services/src/services/suggestion/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/tag/index.d.ts +28 -0
- package/lib/esm/api-services/src/services/tag/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/user/index.d.ts +132 -0
- package/lib/esm/api-services/src/services/user/index.d.ts.map +1 -1
- package/lib/esm/api-services/src/services/webhook/index.d.ts +43 -0
- package/lib/esm/api-services/src/services/webhook/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/utils/token.d.ts +5 -0
- package/lib/esm/api-services/src/utils/token.d.ts.map +1 -1
- package/lib/esm/constants/Endpoints.js +497 -57
- package/lib/esm/index.js +147 -10
- package/lib/esm/services/category/index.js +317 -3
- package/lib/esm/services/comment/index.js +269 -0
- package/lib/esm/services/custom_adv/index.js +85 -0
- package/lib/esm/services/custom_page/index.js +85 -0
- package/lib/esm/services/data_portability/index.js +83 -0
- package/lib/esm/services/dynamic_preference/index.js +85 -0
- package/lib/esm/services/embed/index.js +198 -0
- package/lib/esm/services/feed/index.js +125 -0
- package/lib/esm/services/feed_object/index.js +660 -0
- package/lib/esm/services/incubator/index.js +175 -0
- package/lib/esm/services/insight/index.js +146 -0
- package/lib/esm/services/legal_page/index.js +152 -0
- package/lib/esm/services/locality/index.js +62 -0
- package/lib/esm/services/loyalty/index.js +219 -0
- package/lib/esm/services/media/index.js +175 -0
- package/lib/esm/services/moderation/index.js +156 -0
- package/lib/esm/services/notification/index.js +209 -0
- package/lib/esm/services/private_message/index.js +236 -0
- package/lib/esm/services/score/index.js +83 -0
- package/lib/esm/services/sso/index.js +62 -0
- package/lib/esm/services/suggestion/index.js +104 -0
- package/lib/esm/services/tag/index.js +175 -0
- package/lib/esm/services/user/index.js +995 -9
- package/lib/esm/services/webhook/index.js +290 -0
- package/lib/esm/utils/src/index.d.ts +8 -3
- package/lib/esm/utils/src/index.d.ts.map +1 -1
- package/lib/esm/utils/src/utils/browser.d.ts +9 -0
- package/lib/esm/utils/src/utils/browser.d.ts.map +1 -0
- package/lib/esm/utils/src/utils/logger.d.ts +11 -0
- package/lib/esm/utils/src/utils/logger.d.ts.map +1 -0
- package/lib/esm/utils/src/utils/object.d.ts +13 -0
- package/lib/esm/utils/src/utils/object.d.ts.map +1 -0
- package/lib/esm/utils/src/utils/string.d.ts +22 -0
- package/lib/esm/utils/src/utils/string.d.ts.map +1 -1
- package/lib/esm/utils/src/utils/url.d.ts +11 -0
- package/lib/esm/utils/src/utils/url.d.ts.map +1 -1
- package/lib/esm/utils/src/utils/websocket.d.ts +177 -0
- package/lib/esm/utils/src/utils/websocket.d.ts.map +1 -0
- package/lib/esm/utils/token.js +15 -0
- package/lib/umd/api-services.js +1 -1
- package/lib/umd/api-services.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.WebhookApiClient = void 0;
|
|
5
|
+
|
|
6
|
+
var _client = _interopRequireDefault(require("../../client"));
|
|
7
|
+
|
|
8
|
+
var _Endpoints = _interopRequireDefault(require("../../constants/Endpoints"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
class WebhookApiClient {
|
|
13
|
+
static getAllWebhookEndpoints() {
|
|
14
|
+
return _client.default.request({
|
|
15
|
+
url: _Endpoints.default.WebhookEndpointsList.url({}),
|
|
16
|
+
method: _Endpoints.default.WebhookEndpointsList.method
|
|
17
|
+
}).then(res => {
|
|
18
|
+
if (res.status >= 300) {
|
|
19
|
+
console.log(`Unable to retrieve webhook endpoints (Response code: ${res.status}).`);
|
|
20
|
+
return Promise.reject(res);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return Promise.resolve(res);
|
|
24
|
+
}).catch(error => {
|
|
25
|
+
console.log('Unable to retrieve endpoints.');
|
|
26
|
+
return Promise.reject(error);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static getAllWebhookEvents() {
|
|
31
|
+
return _client.default.request({
|
|
32
|
+
url: _Endpoints.default.WebhookEventsList.url({}),
|
|
33
|
+
method: _Endpoints.default.WebhookEventsList.method
|
|
34
|
+
}).then(res => {
|
|
35
|
+
if (res.status >= 300) {
|
|
36
|
+
console.log(`Unable to retrieve webhook endpoints events (Response code: ${res.status}).`);
|
|
37
|
+
return Promise.reject(res);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return Promise.resolve(res);
|
|
41
|
+
}).catch(error => {
|
|
42
|
+
console.log('Unable to retrieve endpoints events.');
|
|
43
|
+
return Promise.reject(error);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static createWebhookEndpoint() {
|
|
48
|
+
return _client.default.request({
|
|
49
|
+
url: _Endpoints.default.WebhookCreate.url({}),
|
|
50
|
+
method: _Endpoints.default.WebhookCreate.method
|
|
51
|
+
}).then(res => {
|
|
52
|
+
if (res.status >= 300) {
|
|
53
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
54
|
+
return Promise.reject(res);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return Promise.resolve(res.data);
|
|
58
|
+
}).catch(error => {
|
|
59
|
+
console.log('Unable to perform action.');
|
|
60
|
+
return Promise.reject(error);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static getASpecificWebhookEndpoint(id) {
|
|
65
|
+
return _client.default.request({
|
|
66
|
+
url: _Endpoints.default.GetSpecificWebhook.url({
|
|
67
|
+
id
|
|
68
|
+
}),
|
|
69
|
+
method: _Endpoints.default.GetSpecificWebhook.method
|
|
70
|
+
}).then(res => {
|
|
71
|
+
if (res.status >= 300) {
|
|
72
|
+
console.log(`Unable to retrieve webhook (Response code: ${res.status}).`);
|
|
73
|
+
return Promise.reject(res);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return Promise.resolve(res.data);
|
|
77
|
+
}).catch(error => {
|
|
78
|
+
console.log('Unable to retrieve webhook.');
|
|
79
|
+
return Promise.reject(error);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static updateASpecificWebhookEndpoint(id) {
|
|
84
|
+
return _client.default.request({
|
|
85
|
+
url: _Endpoints.default.WebhookUpdate.url({
|
|
86
|
+
id
|
|
87
|
+
}),
|
|
88
|
+
method: _Endpoints.default.WebhookUpdate.method
|
|
89
|
+
}).then(res => {
|
|
90
|
+
if (res.status >= 300) {
|
|
91
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
92
|
+
return Promise.reject(res);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return Promise.resolve(res.data);
|
|
96
|
+
}).catch(error => {
|
|
97
|
+
console.log('Unable to perform action.');
|
|
98
|
+
return Promise.reject(error);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static updateASingleWebhookEndpointField(id) {
|
|
103
|
+
return _client.default.request({
|
|
104
|
+
url: _Endpoints.default.WebhookPatch.url({
|
|
105
|
+
id
|
|
106
|
+
}),
|
|
107
|
+
method: _Endpoints.default.WebhookPatch.method
|
|
108
|
+
}).then(res => {
|
|
109
|
+
if (res.status >= 300) {
|
|
110
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
111
|
+
return Promise.reject(res);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return Promise.resolve(res.data);
|
|
115
|
+
}).catch(error => {
|
|
116
|
+
console.log('Unable to perform action.');
|
|
117
|
+
return Promise.reject(error);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static deleteWebhookEndpoint(id) {
|
|
122
|
+
return _client.default.request({
|
|
123
|
+
url: _Endpoints.default.WebhookDelete.url({
|
|
124
|
+
id
|
|
125
|
+
}),
|
|
126
|
+
method: _Endpoints.default.WebhookDelete.method
|
|
127
|
+
}).then(res => {
|
|
128
|
+
if (res.status >= 300) {
|
|
129
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
130
|
+
return Promise.reject(res);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return Promise.resolve(res.data);
|
|
134
|
+
}).catch(error => {
|
|
135
|
+
console.log('Unable to perform action.');
|
|
136
|
+
return Promise.reject(error);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static getAllWebhookEndpointAttempts(id) {
|
|
141
|
+
return _client.default.request({
|
|
142
|
+
url: _Endpoints.default.WebhookEndpointAttempts.url({
|
|
143
|
+
id
|
|
144
|
+
}),
|
|
145
|
+
method: _Endpoints.default.WebhookEndpointAttempts.method
|
|
146
|
+
}).then(res => {
|
|
147
|
+
if (res.status >= 300) {
|
|
148
|
+
console.log(`Unable to retrieve webhook endpoint attempts (Response code: ${res.status}).`);
|
|
149
|
+
return Promise.reject(res);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return Promise.resolve(res.data);
|
|
153
|
+
}).catch(error => {
|
|
154
|
+
console.log('Unable to retrieve webhook endpoint attempts.');
|
|
155
|
+
return Promise.reject(error);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static expireWebhookSigningSecret(id) {
|
|
160
|
+
return _client.default.request({
|
|
161
|
+
url: _Endpoints.default.WebhookExpireSigningSecret.url({
|
|
162
|
+
id
|
|
163
|
+
}),
|
|
164
|
+
method: _Endpoints.default.WebhookExpireSigningSecret.method
|
|
165
|
+
}).then(res => {
|
|
166
|
+
if (res.status >= 300) {
|
|
167
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
168
|
+
return Promise.reject(res);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return Promise.resolve(res.data);
|
|
172
|
+
}).catch(error => {
|
|
173
|
+
console.log('Unable to perform action.');
|
|
174
|
+
return Promise.reject(error);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
static revealWebhookSigningSecret(id) {
|
|
179
|
+
return _client.default.request({
|
|
180
|
+
url: _Endpoints.default.WebhookRevealSigningSecret.url({
|
|
181
|
+
id
|
|
182
|
+
}),
|
|
183
|
+
method: _Endpoints.default.WebhookRevealSigningSecret.method
|
|
184
|
+
}).then(res => {
|
|
185
|
+
if (res.status >= 300) {
|
|
186
|
+
console.log(`Unable to perform action(Response code: ${res.status}).`);
|
|
187
|
+
return Promise.reject(res);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return Promise.resolve(res.data);
|
|
191
|
+
}).catch(error => {
|
|
192
|
+
console.log('Unable to perform action.');
|
|
193
|
+
return Promise.reject(error);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
static resendWebhookEndpointEvent(id) {
|
|
198
|
+
return _client.default.request({
|
|
199
|
+
url: _Endpoints.default.WebhookResendEndpointEvent.url({
|
|
200
|
+
id
|
|
201
|
+
}),
|
|
202
|
+
method: _Endpoints.default.WebhookResendEndpointEvent.method
|
|
203
|
+
}).then(res => {
|
|
204
|
+
if (res.status >= 300) {
|
|
205
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
206
|
+
return Promise.reject(res);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return Promise.resolve(res.data);
|
|
210
|
+
}).catch(error => {
|
|
211
|
+
console.log('Unable to perform action.');
|
|
212
|
+
return Promise.reject(error);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static resendMultipleWebhookEndpointEvent(id) {
|
|
217
|
+
return _client.default.request({
|
|
218
|
+
url: _Endpoints.default.WebhookResendMultipleEndpointEvent.url({
|
|
219
|
+
id
|
|
220
|
+
}),
|
|
221
|
+
method: _Endpoints.default.WebhookResendMultipleEndpointEvent.method
|
|
222
|
+
}).then(res => {
|
|
223
|
+
if (res.status >= 300) {
|
|
224
|
+
console.log(`Unable to perform action (Response code: ${res.status}).`);
|
|
225
|
+
return Promise.reject(res);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return Promise.resolve(res.data);
|
|
229
|
+
}).catch(error => {
|
|
230
|
+
console.log('Unable to perform action.');
|
|
231
|
+
return Promise.reject(error);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
exports.WebhookApiClient = WebhookApiClient;
|
|
238
|
+
|
|
239
|
+
class WebhookService {
|
|
240
|
+
static async getAllWebhookEndpoints() {
|
|
241
|
+
return WebhookApiClient.getAllWebhookEndpoints();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
static async getAllWebhookEvents() {
|
|
245
|
+
return WebhookApiClient.getAllWebhookEvents();
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
static async createWebhookEndpoint() {
|
|
249
|
+
return WebhookApiClient.createWebhookEndpoint();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
static async getASpecificWebhookEndpoint(id) {
|
|
253
|
+
return WebhookApiClient.getASpecificWebhookEndpoint(id);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
static async updateASpecificWebhookEndpoint(id) {
|
|
257
|
+
return WebhookApiClient.updateASpecificWebhookEndpoint(id);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
static async updateASingleWebhookEndpointField(id) {
|
|
261
|
+
return WebhookApiClient.updateASingleWebhookEndpointField(id);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
static async deleteWebhookEndpoint(id) {
|
|
265
|
+
return WebhookApiClient.deleteWebhookEndpoint(id);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
static async getAllWebhookEndpointAttempts(id) {
|
|
269
|
+
return WebhookApiClient.getAllWebhookEndpointAttempts(id);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
static async expireWebhookSigningSecret(id) {
|
|
273
|
+
return WebhookApiClient.expireWebhookSigningSecret(id);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
static async revealWebhookSigningSecret(id) {
|
|
277
|
+
return WebhookApiClient.revealWebhookSigningSecret(id);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static async resendWebhookEndpointEvent(id) {
|
|
281
|
+
return WebhookApiClient.resendWebhookEndpointEvent(id);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
static async resendMultipleWebhookEndpointEvent(id) {
|
|
285
|
+
return WebhookApiClient.resendMultipleWebhookEndpointEvent(id);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
exports.default = WebhookService;
|
package/lib/cjs/utils/token.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.generateJWTToken = generateJWTToken;
|
|
5
|
+
exports.parseJwt = parseJwt;
|
|
5
6
|
|
|
6
7
|
var jose = _interopRequireWildcard(require("jose"));
|
|
7
8
|
|
|
@@ -33,4 +34,18 @@ async function generateJWTToken(userId, secretKey, expirationTime) {
|
|
|
33
34
|
alg: 'HS256',
|
|
34
35
|
typ: 'JWT'
|
|
35
36
|
}).setIssuedAt().setExpirationTime(expirationTime ? expirationTime : '2h').sign(privateKey);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Extract from a jwt token payload
|
|
40
|
+
* @param token
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
function parseJwt(token) {
|
|
45
|
+
let base64Url = token.split('.')[1];
|
|
46
|
+
let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
47
|
+
let jsonPayload = decodeURIComponent(atob(base64).split('').map(function (c) {
|
|
48
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
49
|
+
}).join(''));
|
|
50
|
+
return JSON.parse(jsonPayload);
|
|
36
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAsgC5C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -10,15 +10,38 @@ import Endpoints, { EndpointType } from './constants/Endpoints';
|
|
|
10
10
|
* Utils
|
|
11
11
|
*/
|
|
12
12
|
import { formatHttpError } from './utils/http';
|
|
13
|
+
import { generateJWTToken, parseJwt } from './utils/token';
|
|
13
14
|
/**
|
|
14
15
|
* Services
|
|
15
16
|
*/
|
|
17
|
+
import CategoryService, { CategoryApiClient, CategoryApiClientInterface } from './services/category';
|
|
18
|
+
import CommentService, { CommentApiClient, CommentApiClientInterface } from './services/comment';
|
|
19
|
+
import CustomAdvService, { CustomAdvApiClient, CustomAdvApiClientInterface } from './services/custom_adv';
|
|
20
|
+
import CustomPageService, { CustomPageApiClient, CustomPageApiClientInterface } from './services/custom_page';
|
|
21
|
+
import DataPortabilityService, { DataPortabilityApiClient, DataPortabilityApiClientInterface } from './services/data_portability';
|
|
22
|
+
import DynamicPreferenceService, { DynamicPreferenceApiClient, DynamicPreferenceApiClientInterface } from './services/dynamic_preference';
|
|
23
|
+
import EmbedService, { EmbedApiClient, EmbedApiClientInterface } from './services/embed';
|
|
24
|
+
import FeatureService, { FeatureApiClient, FeatureApiClientInterface } from './services/feature';
|
|
25
|
+
import FeedService, { FeedApiClient, FeedApiClientInterface } from './services/feed';
|
|
26
|
+
import FeedObjectService, { FeedObjectApiClient, FeedObjectApiClientInterface } from './services/feed_object';
|
|
27
|
+
import IncubatorService, { IncubatorApiClient, IncubatorApiClientInterface } from './services/incubator';
|
|
28
|
+
import InsightService, { InsightApiClient, InsightApiClientInterface } from './services/insight';
|
|
29
|
+
import LegalPageService, { LegalPageApiClient, LegalPageApiClientInterface } from './services/legal_page';
|
|
30
|
+
import LocalityService, { LocalityApiClient, LocalityApiClientInterface } from './services/locality';
|
|
31
|
+
import LoyaltyService, { LoyaltyApiClient, LoyaltyApiClientInterface } from './services/loyalty';
|
|
32
|
+
import MediaService, { MediaApiClient, MediaApiClientInterface } from './services/media';
|
|
33
|
+
import ModerationService, { ModerationApiClient, ModerationApiClientInterface } from './services/moderation';
|
|
34
|
+
import NotificationService, { NotificationApiClient, NotificationApiClientInterface } from './services/notification';
|
|
16
35
|
import PreferenceService, { PreferenceApiClient, PreferenceApiClientInterface } from './services/preference';
|
|
36
|
+
import PrivateMessageService, { PrivateMessageApiClient, PrivateMessageApiClientInterface } from './services/private_message';
|
|
37
|
+
import ScoreService, { ScoreApiClient, ScoreApiClientInterface } from './services/score';
|
|
38
|
+
import SSOService, { SSOApiClient, SSOApiClientInterface } from './services/sso';
|
|
39
|
+
import SuggestionService, { SuggestionApiClient, SuggestionApiClientInterface } from './services/suggestion';
|
|
40
|
+
import TagService, { TagApiClient, TagApiClientInterface } from './services/tag';
|
|
17
41
|
import UserService, { UserApiClient, UserApiClientInterface } from './services/user';
|
|
18
|
-
import
|
|
19
|
-
import CategoryService, { CategoryApiClient, CategoryApiClientInterface } from './services/category';
|
|
42
|
+
import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './services/webhook';
|
|
20
43
|
/**
|
|
21
44
|
* Export all
|
|
22
45
|
*/
|
|
23
|
-
export { http, HttpResponse, HttpMethod, formatHttpError, Endpoints, EndpointType, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface };
|
|
46
|
+
export { http, HttpResponse, HttpMethod, formatHttpError, generateJWTToken, parseJwt, Endpoints, EndpointType, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, DynamicPreferenceService, DynamicPreferenceApiClient, DynamicPreferenceApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface };
|
|
24
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,OAAO,SAAS,EAAE,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,OAAO,SAAS,EAAE,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEzD;;GAEG;AACH,OAAO,eAAe,EAAE,EAAC,iBAAiB,EAAE,0BAA0B,EAAC,MAAM,qBAAqB,CAAC;AACnG,OAAO,cAAc,EAAE,EAAC,gBAAgB,EAAE,yBAAyB,EAAC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,gBAAgB,EAAE,EAAC,kBAAkB,EAAE,2BAA2B,EAAC,MAAM,uBAAuB,CAAC;AACxG,OAAO,iBAAiB,EAAE,EAAC,m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,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EAC1B,CAAC"}
|
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
export interface CategoryApiClientInterface {
|
|
2
2
|
getAllCategories(): Promise<any>;
|
|
3
|
+
searchCategory(): Promise<any>;
|
|
4
|
+
createCategory(): Promise<any>;
|
|
3
5
|
getSpecificCategory(id: number): Promise<any>;
|
|
6
|
+
updateASpecificCategory(id: number): Promise<any>;
|
|
7
|
+
patchASpecificCategory(id: number): Promise<any>;
|
|
8
|
+
deleteASpecificCategory(id: number): Promise<any>;
|
|
9
|
+
getCategoryAudience(id: number): Promise<any>;
|
|
10
|
+
getCategoryFollowers(id: number): Promise<any>;
|
|
11
|
+
getCategoryFeed(id: number): Promise<any>;
|
|
12
|
+
getCategoryTrendingFeed(id: number): Promise<any>;
|
|
13
|
+
getCategoryTrendingFollowers(id: number): Promise<any>;
|
|
14
|
+
followCategory(id: number): Promise<any>;
|
|
15
|
+
checkCategoryIsFollowed(id: number): Promise<any>;
|
|
16
|
+
getFollowedCategories(): Promise<any>;
|
|
17
|
+
getPopularCategories(): Promise<any>;
|
|
4
18
|
}
|
|
5
19
|
export declare class CategoryApiClient {
|
|
6
20
|
static getAllCategories(): Promise<any>;
|
|
21
|
+
static searchCategory(): Promise<any>;
|
|
22
|
+
static createCategory(): Promise<any>;
|
|
7
23
|
static getSpecificCategory(id: number): Promise<any>;
|
|
24
|
+
static updateASpecificCategory(id: number): Promise<any>;
|
|
25
|
+
static patchASpecificCategory(id: number): Promise<any>;
|
|
26
|
+
static deleteASpecificCategory(id: number): Promise<any>;
|
|
27
|
+
static getCategoryAudience(id: number): Promise<any>;
|
|
28
|
+
static getCategoryFollowers(id: number): Promise<any>;
|
|
29
|
+
static getCategoryFeed(id: number): Promise<any>;
|
|
30
|
+
static getCategoryTrendingFeed(id: number): Promise<any>;
|
|
31
|
+
static getCategoryTrendingFollowers(id: number): Promise<any>;
|
|
32
|
+
static followCategory(id: number): Promise<any>;
|
|
33
|
+
static checkCategoryIsFollowed(id: number): Promise<any>;
|
|
34
|
+
static getFollowedCategories(): Promise<any>;
|
|
35
|
+
static getPopularCategories(): Promise<any>;
|
|
8
36
|
}
|
|
9
37
|
export default class CategoryService {
|
|
10
38
|
static getAllCategories(): Promise<any>;
|
|
39
|
+
static searchCategory(): Promise<any>;
|
|
40
|
+
static createCategory(): Promise<any>;
|
|
11
41
|
static getSpecificCategory(id: number): Promise<any>;
|
|
42
|
+
static updateASpecificCategory(id: number): Promise<any>;
|
|
43
|
+
static patchASpecificCategory(id: number): Promise<any>;
|
|
44
|
+
static deleteASpecificCategory(id: number): Promise<any>;
|
|
45
|
+
static getCategoryAudience(id: number): Promise<any>;
|
|
46
|
+
static getCategoryFollowers(id: number): Promise<any>;
|
|
47
|
+
static getCategoryFeed(id: number): Promise<any>;
|
|
48
|
+
static getCategoryTrendingFeed(id: number): Promise<any>;
|
|
49
|
+
static getCategoryTrendingFollowers(id: number): Promise<any>;
|
|
50
|
+
static followCategory(id: number): Promise<any>;
|
|
51
|
+
static checkCategoryIsFollowed(id: number): Promise<any>;
|
|
52
|
+
static getFollowedCategories(): Promise<any>;
|
|
53
|
+
static getPopularCategories(): Promise<any>;
|
|
12
54
|
}
|
|
13
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/category/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/category/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9C,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClD,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClD,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9C,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClD,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,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,CAAC,GAAG,CAAC;WAIrC,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC;CAGlD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface CommentApiClientInterface {
|
|
2
|
+
getAllComments(): Promise<any>;
|
|
3
|
+
createComment(): Promise<any>;
|
|
4
|
+
getASpecificComment(id: number): Promise<any>;
|
|
5
|
+
updateComment(id: number): Promise<any>;
|
|
6
|
+
deleteComment(id: number): Promise<any>;
|
|
7
|
+
restoreComment(id: number): Promise<any>;
|
|
8
|
+
getSpecificCommentVotesList(id: number): Promise<any>;
|
|
9
|
+
upvoteComment(id: number): Promise<any>;
|
|
10
|
+
getSpecificCommentFlags(id: number): Promise<any>;
|
|
11
|
+
flagComment(id: number): Promise<any>;
|
|
12
|
+
getSpecificCommentFlagStatus(id: number): Promise<any>;
|
|
13
|
+
}
|
|
14
|
+
export declare class CommentApiClient {
|
|
15
|
+
static getAllComments(): Promise<any>;
|
|
16
|
+
static createComment(): Promise<any>;
|
|
17
|
+
static getASpecificComment(id: number): Promise<any>;
|
|
18
|
+
static updateComment(id: number): Promise<any>;
|
|
19
|
+
static deleteComment(id: number): Promise<any>;
|
|
20
|
+
static restoreComment(id: number): Promise<any>;
|
|
21
|
+
static getSpecificCommentVotesList(id: number): Promise<any>;
|
|
22
|
+
static upvoteComment(id: number): Promise<any>;
|
|
23
|
+
static getSpecificCommentFlags(id: number): Promise<any>;
|
|
24
|
+
static flagComment(id: number): Promise<any>;
|
|
25
|
+
static getSpecificCommentFlagStatus(id: number): Promise<any>;
|
|
26
|
+
}
|
|
27
|
+
export default class CommentService {
|
|
28
|
+
static getAllComments(): Promise<any>;
|
|
29
|
+
static createComment(): Promise<any>;
|
|
30
|
+
static getASpecificComment(id: number): Promise<any>;
|
|
31
|
+
static updateComment(id: number): Promise<any>;
|
|
32
|
+
static deleteComment(id: number): Promise<any>;
|
|
33
|
+
static restoreComment(id: number): Promise<any>;
|
|
34
|
+
static getSpecificCommentVotesList(id: number): Promise<any>;
|
|
35
|
+
static upvoteComment(id: number): Promise<any>;
|
|
36
|
+
static getSpecificCommentFlags(id: number): Promise<any>;
|
|
37
|
+
static flagComment(id: number): Promise<any>;
|
|
38
|
+
static getSpecificCommentFlagStatus(id: number): Promise<any>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/comment/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,yBAAyB;IACxC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACxD;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBrC,MAAM,CAAC,aAAa,IAAI,OA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D,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGvC,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGjD,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGrC,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGpE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface CustomAdvApiClientInterface {
|
|
2
|
+
getASpecificCustomAdv(id: number): Promise<any>;
|
|
3
|
+
getAllCustomAdv(): Promise<any>;
|
|
4
|
+
searchCustomAdv(): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CustomAdvApiClient {
|
|
7
|
+
static getASpecificCustomAdv(id: number): Promise<any>;
|
|
8
|
+
static getAllCustomAdv(): Promise<any>;
|
|
9
|
+
static searchCustomAdv(): Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
export default class CustomAdvService {
|
|
12
|
+
static getASpecificCustomAdv(id: number): Promise<any>;
|
|
13
|
+
static getAllCustomAdv(): Promise<any>;
|
|
14
|
+
static searchCustomAdv(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/custom_adv/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChD,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBtD,MAAM,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;IAkBtC,MAAM,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;CAkBvC;AAED,MAAM,CAAC,OAAO,OAAO,gBAAgB;WACtB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAG/C,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;WAG/B,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;CAG7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface CustomPageApiClientInterface {
|
|
2
|
+
getASpecificCustomPage(id: number): Promise<any>;
|
|
3
|
+
getAllCustomPages(): Promise<any>;
|
|
4
|
+
searchCustomPages(): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CustomPageApiClient {
|
|
7
|
+
static getASpecificCustomPage(id: number): Promise<any>;
|
|
8
|
+
static getAllCustomPages(): Promise<any>;
|
|
9
|
+
static searchCustomPages(): Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
export default class CustomPageService {
|
|
12
|
+
static getASpecificCustomPage(id: number): Promise<any>;
|
|
13
|
+
static getAllCustomPages(): Promise<any>;
|
|
14
|
+
static searchCustomPages(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/custom_page/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjD,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAClC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBvD,MAAM,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC;IAkBxC,MAAM,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC;CAkBzC;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGhD,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGjC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC;CAG/C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DataPortabilityApiClientInterface {
|
|
2
|
+
generateDataPortability(): Promise<any>;
|
|
3
|
+
downloadDataPortability(): Promise<any>;
|
|
4
|
+
dataPortabilityStatus(): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export declare class DataPortabilityApiClient {
|
|
7
|
+
static generateDataPortability(): Promise<any>;
|
|
8
|
+
static downloadDataPortability(): Promise<any>;
|
|
9
|
+
static dataPortabilityStatus(): Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
export default class DataPortabilityService {
|
|
12
|
+
static generateDataPortability(): Promise<any>;
|
|
13
|
+
static downloadDataPortability(): Promise<any>;
|
|
14
|
+
static dataPortabilityStatus(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/data_portability/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iCAAiC;IAChD,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACvC;AAED,qBAAa,wBAAwB;IACnC,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;IAmB9C,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;IAmB9C,MAAM,CAAC,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC;CAkB7C;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB;WAC5B,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGvC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGvC,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC;CAGnD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DynamicPreferenceApiClientInterface {
|
|
2
|
+
getASpecificDynamicPreference(id: number): Promise<any>;
|
|
3
|
+
getAllDynamicPreferences(): Promise<any>;
|
|
4
|
+
searchDynamicPreference(): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export declare class DynamicPreferenceApiClient {
|
|
7
|
+
static getASpecificDynamicPreference(id: number): Promise<any>;
|
|
8
|
+
static getAllDynamicPreferences(): Promise<any>;
|
|
9
|
+
static searchDynamicPreference(): Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
export default class DynamicPreferenceService {
|
|
12
|
+
static getASpecificDynamicPreference(id: number): Promise<any>;
|
|
13
|
+
static getAllDynamicPreferences(): Promise<any>;
|
|
14
|
+
static searchDynamicPreference(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/dynamic_preference/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mCAAmC;IAClD,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACxD,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACzC;AAED,qBAAa,0BAA0B;IACrC,MAAM,CAAC,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkB9D,MAAM,CAAC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC;IAkB/C,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;CAkB/C;AAED,MAAM,CAAC,OAAO,OAAO,wBAAwB;WAC9B,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGvD,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGxC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;CAGrD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface EmbedApiClientInterface {
|
|
2
|
+
getAllEmbeds(): Promise<any>;
|
|
3
|
+
createEmbed(): Promise<any>;
|
|
4
|
+
searchEmbed(): Promise<any>;
|
|
5
|
+
getSpecificEmbed(id: number): Promise<any>;
|
|
6
|
+
updateASpecificEmbed(id: number): Promise<any>;
|
|
7
|
+
patchASpecificEmbed(id: number): Promise<any>;
|
|
8
|
+
getEmbedFeed(id: number): Promise<any>;
|
|
9
|
+
getSpecificEmbedFeed(id: number): Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
export declare class EmbedApiClient {
|
|
12
|
+
static getAllEmbeds(): Promise<any>;
|
|
13
|
+
static createEmbed(): Promise<any>;
|
|
14
|
+
static searchEmbed(): Promise<any>;
|
|
15
|
+
static getSpecificEmbed(id: number): Promise<any>;
|
|
16
|
+
static updateASpecificEmbed(id: number): Promise<any>;
|
|
17
|
+
static patchASpecificEmbed(id: number): Promise<any>;
|
|
18
|
+
static getEmbedFeed(id: number): Promise<any>;
|
|
19
|
+
static getSpecificEmbedFeed(id: number): Promise<any>;
|
|
20
|
+
}
|
|
21
|
+
export default class EmbedService {
|
|
22
|
+
static getAllEmbeds(): Promise<any>;
|
|
23
|
+
static searchEmbed(): Promise<any>;
|
|
24
|
+
static createEmbed(): Promise<any>;
|
|
25
|
+
static getSpecificEmbed(id: number): Promise<any>;
|
|
26
|
+
static updateASpecificEmbed(id: number): Promise<any>;
|
|
27
|
+
static patchASpecificEmbed(id: number): Promise<any>;
|
|
28
|
+
static getEmbedFeed(id: number): Promise<any>;
|
|
29
|
+
static getSpecificEmbedFeed(id: number): Promise<any>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/embed/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7B,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/C,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAChD;AAED,qBAAa,cAAc;IACzB,MAAM,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBnC,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBlC,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBlC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAmBjD,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAmBrD,MAAM,CAAC,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAmBpD,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAmB7C,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAkBtD;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;WAClB,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC;WAI5B,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;WAI3B,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;WAI3B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAI1C,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAI9C,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAI7C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAItC,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAG5D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface FeedApiClientInterface {
|
|
2
|
+
getMainFeed(): Promise<any>;
|
|
3
|
+
getExploreFeed(): Promise<any>;
|
|
4
|
+
getMainFeedUnseenCount(): Promise<any>;
|
|
5
|
+
markReadASpecificFeedObj(): Promise<any>;
|
|
6
|
+
likeFeedObjs(): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
export declare class FeedApiClient {
|
|
9
|
+
static getMainFeed(): Promise<any>;
|
|
10
|
+
static getExploreFeed(): Promise<any>;
|
|
11
|
+
static getMainFeedUnseenCount(): Promise<any>;
|
|
12
|
+
static markReadASpecificFeedObj(): Promise<any>;
|
|
13
|
+
static likeFeedObjs(): Promise<any>;
|
|
14
|
+
}
|
|
15
|
+
export default class FeedService {
|
|
16
|
+
static getMainFeed(): Promise<any>;
|
|
17
|
+
static getExploreFeed(): Promise<any>;
|
|
18
|
+
static getMainFeedUnseenCount(): Promise<any>;
|
|
19
|
+
static markReadASpecificFeedObj(): Promise<any>;
|
|
20
|
+
static likeFeedObjs(): Promise<any>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/feed/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CAC9B;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBlC,MAAM,CAAC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC;IAkBrC,MAAM,CAAC,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC;IAmB7C,MAAM,CAAC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC;IAmB/C,MAAM,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC;CAkBpC;AAED,MAAM,CAAC,OAAO,OAAO,WAAW;WACjB,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;WAG3B,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC;WAI9B,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGtC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGxC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC;CAG1C"}
|