@selfcommunity/api-services 0.4.1-alpha.0 → 0.4.1-alpha.2
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/services/category/index.d.ts +1 -1
- package/lib/cjs/services/category/index.js +1 -1
- package/lib/cjs/services/user/index.d.ts +13 -13
- package/lib/cjs/services/user/index.js +13 -13
- package/lib/cjs/types/insight.d.ts +1 -1
- package/lib/esm/services/category/index.d.ts +1 -1
- package/lib/esm/services/category/index.js +1 -1
- package/lib/esm/services/user/index.d.ts +13 -13
- package/lib/esm/services/user/index.js +13 -13
- package/lib/esm/types/insight.d.ts +1 -1
- package/package.json +2 -2
|
@@ -62,7 +62,7 @@ export declare class CategoryApiClient {
|
|
|
62
62
|
*/
|
|
63
63
|
static patchASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
64
64
|
/**
|
|
65
|
-
* This endpoint deletes a specific category identified by {id}.
|
|
65
|
+
* This endpoint deletes a specific category identified by \{id}.
|
|
66
66
|
* @param id
|
|
67
67
|
* @param config
|
|
68
68
|
*/
|
|
@@ -62,7 +62,7 @@ class CategoryApiClient {
|
|
|
62
62
|
return (0, apiRequest_1.apiRequest)(Object.assign({ url: Endpoints_1.default.PatchCategory.url({ id }), method: Endpoints_1.default.PatchCategory.method, data: data }, config));
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* This endpoint deletes a specific category identified by {id}.
|
|
65
|
+
* This endpoint deletes a specific category identified by \{id}.
|
|
66
66
|
* @param id
|
|
67
67
|
* @param config
|
|
68
68
|
*/
|
|
@@ -111,14 +111,14 @@ export declare class UserApiClient {
|
|
|
111
111
|
*/
|
|
112
112
|
static userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
113
113
|
/**
|
|
114
|
-
* This endpoint patches a specific user identified by {id}
|
|
114
|
+
* This endpoint patches a specific user identified by \{id}
|
|
115
115
|
* @param id
|
|
116
116
|
* @param data
|
|
117
117
|
* @param config
|
|
118
118
|
*/
|
|
119
119
|
static userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
120
120
|
/**
|
|
121
|
-
* This endpoint deletes a specific user identified by {id}
|
|
121
|
+
* This endpoint deletes a specific user identified by \{id}
|
|
122
122
|
* @param id
|
|
123
123
|
* @param hard
|
|
124
124
|
* @param config
|
|
@@ -190,27 +190,27 @@ export declare class UserApiClient {
|
|
|
190
190
|
*/
|
|
191
191
|
static getUserFollowedCategories(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCCategoryType[]>;
|
|
192
192
|
/**
|
|
193
|
-
* This endpoint retrieves the list of posts of the user identified by {id}
|
|
193
|
+
* This endpoint retrieves the list of posts of the user identified by \{id}
|
|
194
194
|
* @param id
|
|
195
195
|
* @param config
|
|
196
196
|
*/
|
|
197
197
|
static getUserFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
198
198
|
/**
|
|
199
|
-
* This endpoint retrieves the list of followers of a specific user identified by {id}
|
|
199
|
+
* This endpoint retrieves the list of followers of a specific user identified by \{id}
|
|
200
200
|
* @param id
|
|
201
201
|
* @param mutual
|
|
202
202
|
* @param config
|
|
203
203
|
*/
|
|
204
204
|
static getUserFollowers(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
205
205
|
/**
|
|
206
|
-
* This endpoint retrieves the list of following of a specific user identified by {id}.
|
|
206
|
+
* This endpoint retrieves the list of following of a specific user identified by \{id}.
|
|
207
207
|
* @param id
|
|
208
208
|
* @param mutual
|
|
209
209
|
* @param config
|
|
210
210
|
*/
|
|
211
211
|
static getUserFollowings(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
212
212
|
/**
|
|
213
|
-
* This endpoint allows a user to follow another user identified by {id}
|
|
213
|
+
* This endpoint allows a user to follow another user identified by \{id}
|
|
214
214
|
* @param id
|
|
215
215
|
* @param config
|
|
216
216
|
*/
|
|
@@ -253,25 +253,25 @@ export declare class UserApiClient {
|
|
|
253
253
|
*/
|
|
254
254
|
static getUserRequestConnectionsSent(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
255
255
|
/**
|
|
256
|
-
* This endpoint accepts a request connection of the user identified by {id}
|
|
256
|
+
* This endpoint accepts a request connection of the user identified by \{id}
|
|
257
257
|
* @param id
|
|
258
258
|
* @param config
|
|
259
259
|
*/
|
|
260
260
|
static userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
261
261
|
/**
|
|
262
|
-
* This endpoint requests a connection to the user identified by {id}
|
|
262
|
+
* This endpoint requests a connection to the user identified by \{id}
|
|
263
263
|
* @param id
|
|
264
264
|
* @param config
|
|
265
265
|
*/
|
|
266
266
|
static userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
267
267
|
/**
|
|
268
|
-
* This endpoint removes connection with the user identified by {id}
|
|
268
|
+
* This endpoint removes connection with the user identified by \{id}
|
|
269
269
|
* @param id
|
|
270
270
|
* @param config
|
|
271
271
|
*/
|
|
272
272
|
static userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
273
273
|
/**
|
|
274
|
-
* This endpoint cancels reject connection to a user identified by {id}
|
|
274
|
+
* This endpoint cancels reject connection to a user identified by \{id}
|
|
275
275
|
* @param id
|
|
276
276
|
* @param config
|
|
277
277
|
*/
|
|
@@ -283,19 +283,19 @@ export declare class UserApiClient {
|
|
|
283
283
|
*/
|
|
284
284
|
static userCancelRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
285
285
|
/**
|
|
286
|
-
* This endpoint rejects a connection request sent from user identified by {id}
|
|
286
|
+
* This endpoint rejects a connection request sent from user identified by \{id}
|
|
287
287
|
* @param id
|
|
288
288
|
* @param config
|
|
289
289
|
*/
|
|
290
290
|
static userRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
291
291
|
/**
|
|
292
|
-
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
292
|
+
* This endpoint marks seen a connection request of user identified by \{id} for the authenticated user.
|
|
293
293
|
* @param id
|
|
294
294
|
* @param config
|
|
295
295
|
*/
|
|
296
296
|
static userMarkSeenConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
297
297
|
/**
|
|
298
|
-
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
298
|
+
* This endpoint shows/hides a user (and its posts) identified by \{id} for the authenticated user.
|
|
299
299
|
* @param id
|
|
300
300
|
* @param config
|
|
301
301
|
*/
|
|
@@ -82,7 +82,7 @@ class UserApiClient {
|
|
|
82
82
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserUpdate.url({ id }), method: Endpoints_1.default.UserUpdate.method, data: data }));
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* This endpoint patches a specific user identified by {id}
|
|
85
|
+
* This endpoint patches a specific user identified by \{id}
|
|
86
86
|
* @param id
|
|
87
87
|
* @param data
|
|
88
88
|
* @param config
|
|
@@ -91,7 +91,7 @@ class UserApiClient {
|
|
|
91
91
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserPatch.url({ id }), method: Endpoints_1.default.UserPatch.method, data: data }));
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* This endpoint deletes a specific user identified by {id}
|
|
94
|
+
* This endpoint deletes a specific user identified by \{id}
|
|
95
95
|
* @param id
|
|
96
96
|
* @param hard
|
|
97
97
|
* @param config
|
|
@@ -194,7 +194,7 @@ class UserApiClient {
|
|
|
194
194
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.FollowedCategories.url({ id })}?${p.toString()}`, method: Endpoints_1.default.FollowedCategories.method }));
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
* This endpoint retrieves the list of posts of the user identified by {id}
|
|
197
|
+
* This endpoint retrieves the list of posts of the user identified by \{id}
|
|
198
198
|
* @param id
|
|
199
199
|
* @param config
|
|
200
200
|
*/
|
|
@@ -202,7 +202,7 @@ class UserApiClient {
|
|
|
202
202
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserFeed.url({ id }), method: Endpoints_1.default.UserFeed.method, params }));
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
|
-
* This endpoint retrieves the list of followers of a specific user identified by {id}
|
|
205
|
+
* This endpoint retrieves the list of followers of a specific user identified by \{id}
|
|
206
206
|
* @param id
|
|
207
207
|
* @param mutual
|
|
208
208
|
* @param config
|
|
@@ -211,7 +211,7 @@ class UserApiClient {
|
|
|
211
211
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserFollowers.url({ id }), method: Endpoints_1.default.UserFollowers.method, params }));
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* This endpoint retrieves the list of following of a specific user identified by {id}.
|
|
214
|
+
* This endpoint retrieves the list of following of a specific user identified by \{id}.
|
|
215
215
|
* @param id
|
|
216
216
|
* @param mutual
|
|
217
217
|
* @param config
|
|
@@ -220,7 +220,7 @@ class UserApiClient {
|
|
|
220
220
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserFollowings.url({ id }), method: Endpoints_1.default.UserFollowings.method, params }));
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
223
|
-
* This endpoint allows a user to follow another user identified by {id}
|
|
223
|
+
* This endpoint allows a user to follow another user identified by \{id}
|
|
224
224
|
* @param id
|
|
225
225
|
* @param config
|
|
226
226
|
*/
|
|
@@ -277,7 +277,7 @@ class UserApiClient {
|
|
|
277
277
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnectionsSent.url(), method: Endpoints_1.default.UserRequestConnectionsSent.method, params }));
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
|
-
* This endpoint accepts a request connection of the user identified by {id}
|
|
280
|
+
* This endpoint accepts a request connection of the user identified by \{id}
|
|
281
281
|
* @param id
|
|
282
282
|
* @param config
|
|
283
283
|
*/
|
|
@@ -285,7 +285,7 @@ class UserApiClient {
|
|
|
285
285
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserAcceptRequestConnection.url({ id }), method: Endpoints_1.default.UserAcceptRequestConnection.method }));
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
|
-
* This endpoint requests a connection to the user identified by {id}
|
|
288
|
+
* This endpoint requests a connection to the user identified by \{id}
|
|
289
289
|
* @param id
|
|
290
290
|
* @param config
|
|
291
291
|
*/
|
|
@@ -293,7 +293,7 @@ class UserApiClient {
|
|
|
293
293
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnection.url({ id }), method: Endpoints_1.default.UserRequestConnection.method }));
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
|
-
* This endpoint removes connection with the user identified by {id}
|
|
296
|
+
* This endpoint removes connection with the user identified by \{id}
|
|
297
297
|
* @param id
|
|
298
298
|
* @param config
|
|
299
299
|
*/
|
|
@@ -301,7 +301,7 @@ class UserApiClient {
|
|
|
301
301
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRemoveConnection.url({ id }), method: Endpoints_1.default.UserRemoveConnection.method }));
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* This endpoint cancels reject connection to a user identified by {id}
|
|
304
|
+
* This endpoint cancels reject connection to a user identified by \{id}
|
|
305
305
|
* @param id
|
|
306
306
|
* @param config
|
|
307
307
|
*/
|
|
@@ -317,7 +317,7 @@ class UserApiClient {
|
|
|
317
317
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserCancelRequestConnection.url({ id }), method: Endpoints_1.default.UserCancelRequestConnection.method }));
|
|
318
318
|
}
|
|
319
319
|
/**
|
|
320
|
-
* This endpoint rejects a connection request sent from user identified by {id}
|
|
320
|
+
* This endpoint rejects a connection request sent from user identified by \{id}
|
|
321
321
|
* @param id
|
|
322
322
|
* @param config
|
|
323
323
|
*/
|
|
@@ -325,7 +325,7 @@ class UserApiClient {
|
|
|
325
325
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRejectConnectionRequest.url({ id }), method: Endpoints_1.default.UserRejectConnectionRequest.method }));
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
328
|
+
* This endpoint marks seen a connection request of user identified by \{id} for the authenticated user.
|
|
329
329
|
* @param id
|
|
330
330
|
* @param config
|
|
331
331
|
*/
|
|
@@ -333,7 +333,7 @@ class UserApiClient {
|
|
|
333
333
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserMarkSeenConnectionRequest.url({ id }), method: Endpoints_1.default.UserMarkSeenConnectionRequest.method }));
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
|
-
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
336
|
+
* This endpoint shows/hides a user (and its posts) identified by \{id} for the authenticated user.
|
|
337
337
|
* @param id
|
|
338
338
|
* @param config
|
|
339
339
|
*/
|
|
@@ -51,7 +51,7 @@ export interface InsightEmbedParams extends InsightCommonParams {
|
|
|
51
51
|
*/
|
|
52
52
|
grouped_by?: string;
|
|
53
53
|
/**
|
|
54
|
-
* A json dict containing some TERM_KEYs
|
|
54
|
+
* A json dict containing some TERM_KEYs. Usable only if group_by is set.
|
|
55
55
|
*/
|
|
56
56
|
metadata?: {};
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ export declare class CategoryApiClient {
|
|
|
62
62
|
*/
|
|
63
63
|
static patchASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
64
64
|
/**
|
|
65
|
-
* This endpoint deletes a specific category identified by {id}.
|
|
65
|
+
* This endpoint deletes a specific category identified by \{id}.
|
|
66
66
|
* @param id
|
|
67
67
|
* @param config
|
|
68
68
|
*/
|
|
@@ -59,7 +59,7 @@ export class CategoryApiClient {
|
|
|
59
59
|
return apiRequest(Object.assign({ url: Endpoints.PatchCategory.url({ id }), method: Endpoints.PatchCategory.method, data: data }, config));
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* This endpoint deletes a specific category identified by {id}.
|
|
62
|
+
* This endpoint deletes a specific category identified by \{id}.
|
|
63
63
|
* @param id
|
|
64
64
|
* @param config
|
|
65
65
|
*/
|
|
@@ -111,14 +111,14 @@ export declare class UserApiClient {
|
|
|
111
111
|
*/
|
|
112
112
|
static userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
113
113
|
/**
|
|
114
|
-
* This endpoint patches a specific user identified by {id}
|
|
114
|
+
* This endpoint patches a specific user identified by \{id}
|
|
115
115
|
* @param id
|
|
116
116
|
* @param data
|
|
117
117
|
* @param config
|
|
118
118
|
*/
|
|
119
119
|
static userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
120
120
|
/**
|
|
121
|
-
* This endpoint deletes a specific user identified by {id}
|
|
121
|
+
* This endpoint deletes a specific user identified by \{id}
|
|
122
122
|
* @param id
|
|
123
123
|
* @param hard
|
|
124
124
|
* @param config
|
|
@@ -190,27 +190,27 @@ export declare class UserApiClient {
|
|
|
190
190
|
*/
|
|
191
191
|
static getUserFollowedCategories(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCCategoryType[]>;
|
|
192
192
|
/**
|
|
193
|
-
* This endpoint retrieves the list of posts of the user identified by {id}
|
|
193
|
+
* This endpoint retrieves the list of posts of the user identified by \{id}
|
|
194
194
|
* @param id
|
|
195
195
|
* @param config
|
|
196
196
|
*/
|
|
197
197
|
static getUserFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
198
198
|
/**
|
|
199
|
-
* This endpoint retrieves the list of followers of a specific user identified by {id}
|
|
199
|
+
* This endpoint retrieves the list of followers of a specific user identified by \{id}
|
|
200
200
|
* @param id
|
|
201
201
|
* @param mutual
|
|
202
202
|
* @param config
|
|
203
203
|
*/
|
|
204
204
|
static getUserFollowers(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
205
205
|
/**
|
|
206
|
-
* This endpoint retrieves the list of following of a specific user identified by {id}.
|
|
206
|
+
* This endpoint retrieves the list of following of a specific user identified by \{id}.
|
|
207
207
|
* @param id
|
|
208
208
|
* @param mutual
|
|
209
209
|
* @param config
|
|
210
210
|
*/
|
|
211
211
|
static getUserFollowings(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
212
212
|
/**
|
|
213
|
-
* This endpoint allows a user to follow another user identified by {id}
|
|
213
|
+
* This endpoint allows a user to follow another user identified by \{id}
|
|
214
214
|
* @param id
|
|
215
215
|
* @param config
|
|
216
216
|
*/
|
|
@@ -253,25 +253,25 @@ export declare class UserApiClient {
|
|
|
253
253
|
*/
|
|
254
254
|
static getUserRequestConnectionsSent(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
255
255
|
/**
|
|
256
|
-
* This endpoint accepts a request connection of the user identified by {id}
|
|
256
|
+
* This endpoint accepts a request connection of the user identified by \{id}
|
|
257
257
|
* @param id
|
|
258
258
|
* @param config
|
|
259
259
|
*/
|
|
260
260
|
static userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
261
261
|
/**
|
|
262
|
-
* This endpoint requests a connection to the user identified by {id}
|
|
262
|
+
* This endpoint requests a connection to the user identified by \{id}
|
|
263
263
|
* @param id
|
|
264
264
|
* @param config
|
|
265
265
|
*/
|
|
266
266
|
static userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
267
267
|
/**
|
|
268
|
-
* This endpoint removes connection with the user identified by {id}
|
|
268
|
+
* This endpoint removes connection with the user identified by \{id}
|
|
269
269
|
* @param id
|
|
270
270
|
* @param config
|
|
271
271
|
*/
|
|
272
272
|
static userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
273
273
|
/**
|
|
274
|
-
* This endpoint cancels reject connection to a user identified by {id}
|
|
274
|
+
* This endpoint cancels reject connection to a user identified by \{id}
|
|
275
275
|
* @param id
|
|
276
276
|
* @param config
|
|
277
277
|
*/
|
|
@@ -283,19 +283,19 @@ export declare class UserApiClient {
|
|
|
283
283
|
*/
|
|
284
284
|
static userCancelRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
285
285
|
/**
|
|
286
|
-
* This endpoint rejects a connection request sent from user identified by {id}
|
|
286
|
+
* This endpoint rejects a connection request sent from user identified by \{id}
|
|
287
287
|
* @param id
|
|
288
288
|
* @param config
|
|
289
289
|
*/
|
|
290
290
|
static userRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
291
291
|
/**
|
|
292
|
-
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
292
|
+
* This endpoint marks seen a connection request of user identified by \{id} for the authenticated user.
|
|
293
293
|
* @param id
|
|
294
294
|
* @param config
|
|
295
295
|
*/
|
|
296
296
|
static userMarkSeenConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
297
297
|
/**
|
|
298
|
-
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
298
|
+
* This endpoint shows/hides a user (and its posts) identified by \{id} for the authenticated user.
|
|
299
299
|
* @param id
|
|
300
300
|
* @param config
|
|
301
301
|
*/
|
|
@@ -79,7 +79,7 @@ export class UserApiClient {
|
|
|
79
79
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserUpdate.url({ id }), method: Endpoints.UserUpdate.method, data: data }));
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* This endpoint patches a specific user identified by {id}
|
|
82
|
+
* This endpoint patches a specific user identified by \{id}
|
|
83
83
|
* @param id
|
|
84
84
|
* @param data
|
|
85
85
|
* @param config
|
|
@@ -88,7 +88,7 @@ export class UserApiClient {
|
|
|
88
88
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserPatch.url({ id }), method: Endpoints.UserPatch.method, data: data }));
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* This endpoint deletes a specific user identified by {id}
|
|
91
|
+
* This endpoint deletes a specific user identified by \{id}
|
|
92
92
|
* @param id
|
|
93
93
|
* @param hard
|
|
94
94
|
* @param config
|
|
@@ -191,7 +191,7 @@ export class UserApiClient {
|
|
|
191
191
|
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.FollowedCategories.url({ id })}?${p.toString()}`, method: Endpoints.FollowedCategories.method }));
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
|
-
* This endpoint retrieves the list of posts of the user identified by {id}
|
|
194
|
+
* This endpoint retrieves the list of posts of the user identified by \{id}
|
|
195
195
|
* @param id
|
|
196
196
|
* @param config
|
|
197
197
|
*/
|
|
@@ -199,7 +199,7 @@ export class UserApiClient {
|
|
|
199
199
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserFeed.url({ id }), method: Endpoints.UserFeed.method, params }));
|
|
200
200
|
}
|
|
201
201
|
/**
|
|
202
|
-
* This endpoint retrieves the list of followers of a specific user identified by {id}
|
|
202
|
+
* This endpoint retrieves the list of followers of a specific user identified by \{id}
|
|
203
203
|
* @param id
|
|
204
204
|
* @param mutual
|
|
205
205
|
* @param config
|
|
@@ -208,7 +208,7 @@ export class UserApiClient {
|
|
|
208
208
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserFollowers.url({ id }), method: Endpoints.UserFollowers.method, params }));
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
* This endpoint retrieves the list of following of a specific user identified by {id}.
|
|
211
|
+
* This endpoint retrieves the list of following of a specific user identified by \{id}.
|
|
212
212
|
* @param id
|
|
213
213
|
* @param mutual
|
|
214
214
|
* @param config
|
|
@@ -217,7 +217,7 @@ export class UserApiClient {
|
|
|
217
217
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserFollowings.url({ id }), method: Endpoints.UserFollowings.method, params }));
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* This endpoint allows a user to follow another user identified by {id}
|
|
220
|
+
* This endpoint allows a user to follow another user identified by \{id}
|
|
221
221
|
* @param id
|
|
222
222
|
* @param config
|
|
223
223
|
*/
|
|
@@ -274,7 +274,7 @@ export class UserApiClient {
|
|
|
274
274
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRequestConnectionsSent.url(), method: Endpoints.UserRequestConnectionsSent.method, params }));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
|
-
* This endpoint accepts a request connection of the user identified by {id}
|
|
277
|
+
* This endpoint accepts a request connection of the user identified by \{id}
|
|
278
278
|
* @param id
|
|
279
279
|
* @param config
|
|
280
280
|
*/
|
|
@@ -282,7 +282,7 @@ export class UserApiClient {
|
|
|
282
282
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserAcceptRequestConnection.url({ id }), method: Endpoints.UserAcceptRequestConnection.method }));
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
* This endpoint requests a connection to the user identified by {id}
|
|
285
|
+
* This endpoint requests a connection to the user identified by \{id}
|
|
286
286
|
* @param id
|
|
287
287
|
* @param config
|
|
288
288
|
*/
|
|
@@ -290,7 +290,7 @@ export class UserApiClient {
|
|
|
290
290
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRequestConnection.url({ id }), method: Endpoints.UserRequestConnection.method }));
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
|
-
* This endpoint removes connection with the user identified by {id}
|
|
293
|
+
* This endpoint removes connection with the user identified by \{id}
|
|
294
294
|
* @param id
|
|
295
295
|
* @param config
|
|
296
296
|
*/
|
|
@@ -298,7 +298,7 @@ export class UserApiClient {
|
|
|
298
298
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRemoveConnection.url({ id }), method: Endpoints.UserRemoveConnection.method }));
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
|
-
* This endpoint cancels reject connection to a user identified by {id}
|
|
301
|
+
* This endpoint cancels reject connection to a user identified by \{id}
|
|
302
302
|
* @param id
|
|
303
303
|
* @param config
|
|
304
304
|
*/
|
|
@@ -314,7 +314,7 @@ export class UserApiClient {
|
|
|
314
314
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserCancelRequestConnection.url({ id }), method: Endpoints.UserCancelRequestConnection.method }));
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
|
-
* This endpoint rejects a connection request sent from user identified by {id}
|
|
317
|
+
* This endpoint rejects a connection request sent from user identified by \{id}
|
|
318
318
|
* @param id
|
|
319
319
|
* @param config
|
|
320
320
|
*/
|
|
@@ -322,7 +322,7 @@ export class UserApiClient {
|
|
|
322
322
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRejectConnectionRequest.url({ id }), method: Endpoints.UserRejectConnectionRequest.method }));
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
325
|
+
* This endpoint marks seen a connection request of user identified by \{id} for the authenticated user.
|
|
326
326
|
* @param id
|
|
327
327
|
* @param config
|
|
328
328
|
*/
|
|
@@ -330,7 +330,7 @@ export class UserApiClient {
|
|
|
330
330
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserMarkSeenConnectionRequest.url({ id }), method: Endpoints.UserMarkSeenConnectionRequest.method }));
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
|
-
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
333
|
+
* This endpoint shows/hides a user (and its posts) identified by \{id} for the authenticated user.
|
|
334
334
|
* @param id
|
|
335
335
|
* @param config
|
|
336
336
|
*/
|
|
@@ -51,7 +51,7 @@ export interface InsightEmbedParams extends InsightCommonParams {
|
|
|
51
51
|
*/
|
|
52
52
|
grouped_by?: string;
|
|
53
53
|
/**
|
|
54
|
-
* A json dict containing some TERM_KEYs
|
|
54
|
+
* A json dict containing some TERM_KEYs. Usable only if group_by is set.
|
|
55
55
|
*/
|
|
56
56
|
metadata?: {};
|
|
57
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/api-services",
|
|
3
|
-
"version": "0.4.1-alpha.
|
|
3
|
+
"version": "0.4.1-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"bugs": {
|
|
111
111
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "e41e3390cbc028a59266ad02eef3687f7130a198"
|
|
114
114
|
}
|