@selfcommunity/api-services 0.1.28-alpha.3 → 0.1.28
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 +76 -49
- package/lib/cjs/services/category/index.d.ts.map +1 -1
- package/lib/cjs/services/category/index.js +91 -65
- package/lib/cjs/services/category/index.js.map +1 -1
- package/lib/cjs/services/comment/index.d.ts +55 -34
- package/lib/cjs/services/comment/index.d.ts.map +1 -1
- package/lib/cjs/services/comment/index.js +65 -45
- package/lib/cjs/services/comment/index.js.map +1 -1
- package/lib/cjs/services/custom_adv/index.d.ts +23 -10
- package/lib/cjs/services/custom_adv/index.d.ts.map +1 -1
- package/lib/cjs/services/custom_adv/index.js +25 -13
- package/lib/cjs/services/custom_adv/index.js.map +1 -1
- package/lib/cjs/services/custom_page/index.d.ts +23 -10
- package/lib/cjs/services/custom_page/index.d.ts.map +1 -1
- package/lib/cjs/services/custom_page/index.js +25 -13
- package/lib/cjs/services/custom_page/index.js.map +1 -1
- package/lib/cjs/services/data_portability/index.d.ts +22 -9
- package/lib/cjs/services/data_portability/index.d.ts.map +1 -1
- package/lib/cjs/services/data_portability/index.js +24 -12
- package/lib/cjs/services/data_portability/index.js.map +1 -1
- package/lib/cjs/services/embed/index.d.ts +43 -25
- package/lib/cjs/services/embed/index.d.ts.map +1 -1
- package/lib/cjs/services/embed/index.js +50 -33
- package/lib/cjs/services/embed/index.js.map +1 -1
- package/lib/cjs/services/feature/index.d.ts +14 -3
- package/lib/cjs/services/feature/index.d.ts.map +1 -1
- package/lib/cjs/services/feature/index.js +14 -4
- package/lib/cjs/services/feature/index.js.map +1 -1
- package/lib/cjs/services/feed/index.d.ts +32 -17
- package/lib/cjs/services/feed/index.d.ts.map +1 -1
- package/lib/cjs/services/feed/index.js +36 -22
- package/lib/cjs/services/feed/index.js.map +1 -1
- package/lib/cjs/services/feed_object/index.d.ts +118 -81
- package/lib/cjs/services/feed_object/index.d.ts.map +1 -1
- package/lib/cjs/services/feed_object/index.js +143 -107
- package/lib/cjs/services/feed_object/index.js.map +1 -1
- package/lib/cjs/services/incubator/index.d.ts +39 -22
- package/lib/cjs/services/incubator/index.d.ts.map +1 -1
- package/lib/cjs/services/incubator/index.js +45 -29
- package/lib/cjs/services/incubator/index.js.map +1 -1
- package/lib/cjs/services/insight/index.d.ts +35 -19
- package/lib/cjs/services/insight/index.d.ts.map +1 -1
- package/lib/cjs/services/insight/index.js +40 -25
- package/lib/cjs/services/insight/index.js.map +1 -1
- package/lib/cjs/services/legal_page/index.d.ts +35 -19
- package/lib/cjs/services/legal_page/index.d.ts.map +1 -1
- package/lib/cjs/services/legal_page/index.js +40 -25
- package/lib/cjs/services/legal_page/index.js.map +1 -1
- package/lib/cjs/services/locality/index.d.ts +18 -6
- package/lib/cjs/services/locality/index.d.ts.map +1 -1
- package/lib/cjs/services/locality/index.js +19 -8
- package/lib/cjs/services/locality/index.js.map +1 -1
- package/lib/cjs/services/loyalty/index.d.ts +48 -29
- package/lib/cjs/services/loyalty/index.d.ts.map +1 -1
- package/lib/cjs/services/loyalty/index.js +56 -38
- package/lib/cjs/services/loyalty/index.js.map +1 -1
- package/lib/cjs/services/media/index.d.ts +42 -22
- package/lib/cjs/services/media/index.d.ts.map +1 -1
- package/lib/cjs/services/media/index.js +48 -29
- package/lib/cjs/services/media/index.js.map +1 -1
- package/lib/cjs/services/moderation/index.d.ts +33 -19
- package/lib/cjs/services/moderation/index.d.ts.map +1 -1
- package/lib/cjs/services/moderation/index.js +40 -27
- package/lib/cjs/services/moderation/index.js.map +1 -1
- package/lib/cjs/services/notification/index.d.ts +47 -28
- package/lib/cjs/services/notification/index.d.ts.map +1 -1
- package/lib/cjs/services/notification/index.js +55 -37
- package/lib/cjs/services/notification/index.js.map +1 -1
- package/lib/cjs/services/preference/index.d.ts +23 -10
- package/lib/cjs/services/preference/index.d.ts.map +1 -1
- package/lib/cjs/services/preference/index.js +25 -13
- package/lib/cjs/services/preference/index.js.map +1 -1
- package/lib/cjs/services/private_message/index.d.ts +51 -31
- package/lib/cjs/services/private_message/index.d.ts.map +1 -1
- package/lib/cjs/services/private_message/index.js +60 -41
- package/lib/cjs/services/private_message/index.js.map +1 -1
- package/lib/cjs/services/score/index.d.ts +22 -9
- package/lib/cjs/services/score/index.d.ts.map +1 -1
- package/lib/cjs/services/score/index.js +24 -12
- package/lib/cjs/services/score/index.js.map +1 -1
- package/lib/cjs/services/sso/index.d.ts +18 -6
- package/lib/cjs/services/sso/index.d.ts.map +1 -1
- package/lib/cjs/services/sso/index.js +19 -8
- package/lib/cjs/services/sso/index.js.map +1 -1
- package/lib/cjs/services/suggestion/index.d.ts +26 -12
- package/lib/cjs/services/suggestion/index.d.ts.map +1 -1
- package/lib/cjs/services/suggestion/index.js +29 -16
- package/lib/cjs/services/suggestion/index.js.map +1 -1
- package/lib/cjs/services/tag/index.d.ts +39 -22
- package/lib/cjs/services/tag/index.d.ts.map +1 -1
- package/lib/cjs/services/tag/index.js +45 -29
- package/lib/cjs/services/tag/index.js.map +1 -1
- package/lib/cjs/services/user/index.d.ts +204 -145
- package/lib/cjs/services/user/index.d.ts.map +1 -1
- package/lib/cjs/services/user/index.js +259 -201
- package/lib/cjs/services/user/index.js.map +1 -1
- package/lib/cjs/services/webhook/index.d.ts +59 -37
- package/lib/cjs/services/webhook/index.d.ts.map +1 -1
- package/lib/cjs/services/webhook/index.js +70 -49
- package/lib/cjs/services/webhook/index.js.map +1 -1
- package/lib/cjs/utils/apiRequest.d.ts +2 -1
- package/lib/cjs/utils/apiRequest.d.ts.map +1 -1
- package/lib/cjs/utils/apiRequest.js +4 -8
- package/lib/cjs/utils/apiRequest.js.map +1 -1
- package/lib/esm/services/category/index.d.ts +76 -49
- package/lib/esm/services/category/index.d.ts.map +1 -1
- package/lib/esm/services/category/index.js +91 -65
- package/lib/esm/services/category/index.js.map +1 -1
- package/lib/esm/services/comment/index.d.ts +55 -34
- package/lib/esm/services/comment/index.d.ts.map +1 -1
- package/lib/esm/services/comment/index.js +65 -45
- package/lib/esm/services/comment/index.js.map +1 -1
- package/lib/esm/services/custom_adv/index.d.ts +23 -10
- package/lib/esm/services/custom_adv/index.d.ts.map +1 -1
- package/lib/esm/services/custom_adv/index.js +25 -13
- package/lib/esm/services/custom_adv/index.js.map +1 -1
- package/lib/esm/services/custom_page/index.d.ts +23 -10
- package/lib/esm/services/custom_page/index.d.ts.map +1 -1
- package/lib/esm/services/custom_page/index.js +25 -13
- package/lib/esm/services/custom_page/index.js.map +1 -1
- package/lib/esm/services/data_portability/index.d.ts +22 -9
- package/lib/esm/services/data_portability/index.d.ts.map +1 -1
- package/lib/esm/services/data_portability/index.js +24 -12
- package/lib/esm/services/data_portability/index.js.map +1 -1
- package/lib/esm/services/embed/index.d.ts +43 -25
- package/lib/esm/services/embed/index.d.ts.map +1 -1
- package/lib/esm/services/embed/index.js +50 -33
- package/lib/esm/services/embed/index.js.map +1 -1
- package/lib/esm/services/feature/index.d.ts +14 -3
- package/lib/esm/services/feature/index.d.ts.map +1 -1
- package/lib/esm/services/feature/index.js +14 -4
- package/lib/esm/services/feature/index.js.map +1 -1
- package/lib/esm/services/feed/index.d.ts +32 -17
- package/lib/esm/services/feed/index.d.ts.map +1 -1
- package/lib/esm/services/feed/index.js +36 -22
- package/lib/esm/services/feed/index.js.map +1 -1
- package/lib/esm/services/feed_object/index.d.ts +118 -81
- package/lib/esm/services/feed_object/index.d.ts.map +1 -1
- package/lib/esm/services/feed_object/index.js +143 -107
- package/lib/esm/services/feed_object/index.js.map +1 -1
- package/lib/esm/services/incubator/index.d.ts +39 -22
- package/lib/esm/services/incubator/index.d.ts.map +1 -1
- package/lib/esm/services/incubator/index.js +45 -29
- package/lib/esm/services/incubator/index.js.map +1 -1
- package/lib/esm/services/insight/index.d.ts +35 -19
- package/lib/esm/services/insight/index.d.ts.map +1 -1
- package/lib/esm/services/insight/index.js +40 -25
- package/lib/esm/services/insight/index.js.map +1 -1
- package/lib/esm/services/legal_page/index.d.ts +35 -19
- package/lib/esm/services/legal_page/index.d.ts.map +1 -1
- package/lib/esm/services/legal_page/index.js +40 -25
- package/lib/esm/services/legal_page/index.js.map +1 -1
- package/lib/esm/services/locality/index.d.ts +18 -6
- package/lib/esm/services/locality/index.d.ts.map +1 -1
- package/lib/esm/services/locality/index.js +19 -8
- package/lib/esm/services/locality/index.js.map +1 -1
- package/lib/esm/services/loyalty/index.d.ts +48 -29
- package/lib/esm/services/loyalty/index.d.ts.map +1 -1
- package/lib/esm/services/loyalty/index.js +56 -38
- package/lib/esm/services/loyalty/index.js.map +1 -1
- package/lib/esm/services/media/index.d.ts +42 -22
- package/lib/esm/services/media/index.d.ts.map +1 -1
- package/lib/esm/services/media/index.js +48 -29
- package/lib/esm/services/media/index.js.map +1 -1
- package/lib/esm/services/moderation/index.d.ts +33 -19
- package/lib/esm/services/moderation/index.d.ts.map +1 -1
- package/lib/esm/services/moderation/index.js +40 -27
- package/lib/esm/services/moderation/index.js.map +1 -1
- package/lib/esm/services/notification/index.d.ts +47 -28
- package/lib/esm/services/notification/index.d.ts.map +1 -1
- package/lib/esm/services/notification/index.js +55 -37
- package/lib/esm/services/notification/index.js.map +1 -1
- package/lib/esm/services/preference/index.d.ts +23 -10
- package/lib/esm/services/preference/index.d.ts.map +1 -1
- package/lib/esm/services/preference/index.js +25 -13
- package/lib/esm/services/preference/index.js.map +1 -1
- package/lib/esm/services/private_message/index.d.ts +51 -31
- package/lib/esm/services/private_message/index.d.ts.map +1 -1
- package/lib/esm/services/private_message/index.js +60 -41
- package/lib/esm/services/private_message/index.js.map +1 -1
- package/lib/esm/services/score/index.d.ts +22 -9
- package/lib/esm/services/score/index.d.ts.map +1 -1
- package/lib/esm/services/score/index.js +24 -12
- package/lib/esm/services/score/index.js.map +1 -1
- package/lib/esm/services/sso/index.d.ts +18 -6
- package/lib/esm/services/sso/index.d.ts.map +1 -1
- package/lib/esm/services/sso/index.js +19 -8
- package/lib/esm/services/sso/index.js.map +1 -1
- package/lib/esm/services/suggestion/index.d.ts +26 -12
- package/lib/esm/services/suggestion/index.d.ts.map +1 -1
- package/lib/esm/services/suggestion/index.js +29 -16
- package/lib/esm/services/suggestion/index.js.map +1 -1
- package/lib/esm/services/tag/index.d.ts +39 -22
- package/lib/esm/services/tag/index.d.ts.map +1 -1
- package/lib/esm/services/tag/index.js +45 -29
- package/lib/esm/services/tag/index.js.map +1 -1
- package/lib/esm/services/user/index.d.ts +204 -145
- package/lib/esm/services/user/index.d.ts.map +1 -1
- package/lib/esm/services/user/index.js +259 -201
- package/lib/esm/services/user/index.js.map +1 -1
- package/lib/esm/services/webhook/index.d.ts +59 -37
- package/lib/esm/services/webhook/index.d.ts.map +1 -1
- package/lib/esm/services/webhook/index.js +70 -49
- package/lib/esm/services/webhook/index.js.map +1 -1
- package/lib/esm/utils/apiRequest.d.ts +2 -1
- package/lib/esm/utils/apiRequest.d.ts.map +1 -1
- package/lib/esm/utils/apiRequest.js +4 -8
- package/lib/esm/utils/apiRequest.js.map +1 -1
- package/lib/umd/api-services.js +1 -1
- package/lib/umd/api-services.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { SCCategoryType, SCCategoryAudienceType, SCUserType, SCFeedUnitType, SCCategoryFollowedStatusType } from '@selfcommunity/types';
|
|
2
2
|
import { BaseGetParams, CategoryParams, SCPaginatedResponse } from '../../types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface CategoryApiClientInterface {
|
|
4
|
-
getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
5
|
-
searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
6
|
-
createCategory(data: SCCategoryType): Promise<SCCategoryType>;
|
|
7
|
-
getSpecificCategory(id: number): Promise<SCCategoryType>;
|
|
8
|
-
updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
9
|
-
patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
10
|
-
deleteASpecificCategory(id: number): Promise<any>;
|
|
11
|
-
getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
|
|
12
|
-
getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
13
|
-
getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
14
|
-
getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
15
|
-
getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
16
|
-
followCategory(id: number): Promise<any>;
|
|
17
|
-
checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
|
|
18
|
-
getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
19
|
-
getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
5
|
+
getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
6
|
+
searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
7
|
+
createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
8
|
+
getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
9
|
+
updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
10
|
+
patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
11
|
+
deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
12
|
+
getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
|
|
13
|
+
getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
14
|
+
getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
15
|
+
getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
16
|
+
getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
17
|
+
followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
18
|
+
checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
|
|
19
|
+
getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
20
|
+
getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Contains all the endpoints needed to manage categories.
|
|
@@ -25,90 +26,106 @@ export declare class CategoryApiClient {
|
|
|
25
26
|
/**
|
|
26
27
|
* This endpoint retrieves all categories.
|
|
27
28
|
* @param params
|
|
29
|
+
* @param config
|
|
28
30
|
*/
|
|
29
|
-
static getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
31
|
+
static getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
30
32
|
/**
|
|
31
33
|
* This endpoint performs category search.
|
|
32
34
|
* @param params
|
|
35
|
+
* @param config
|
|
33
36
|
*/
|
|
34
|
-
static searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
37
|
+
static searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
35
38
|
/**
|
|
36
39
|
* This endpoint creates a category.
|
|
37
40
|
* @param data
|
|
41
|
+
* @param config
|
|
38
42
|
*/
|
|
39
|
-
static createCategory(data: SCCategoryType): Promise<SCCategoryType>;
|
|
43
|
+
static createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
40
44
|
/**
|
|
41
45
|
* This endpoint retrieves a specific category.
|
|
42
46
|
* @param id
|
|
47
|
+
* @param config
|
|
43
48
|
*/
|
|
44
|
-
static getSpecificCategory(id: number): Promise<SCCategoryType>;
|
|
49
|
+
static getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
45
50
|
/**
|
|
46
51
|
* This endpoint updates a specific category.
|
|
47
52
|
* @param id
|
|
48
53
|
* @param data
|
|
54
|
+
* @param config
|
|
49
55
|
*/
|
|
50
|
-
static updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
56
|
+
static updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
51
57
|
/**
|
|
52
58
|
* This endpoint patches a specific category.
|
|
53
59
|
* @param id
|
|
54
60
|
* @param data
|
|
61
|
+
* @param config
|
|
55
62
|
*/
|
|
56
|
-
static patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
63
|
+
static patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
57
64
|
/**
|
|
58
65
|
* This endpoint deletes a specific category identified by {id}.
|
|
59
66
|
* @param id
|
|
67
|
+
* @param config
|
|
60
68
|
*/
|
|
61
|
-
static deleteASpecificCategory(id: number): Promise<any>;
|
|
69
|
+
static deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
62
70
|
/**
|
|
63
71
|
* This endpoint returns the audience of a specific category.
|
|
64
72
|
* @param id
|
|
73
|
+
* @param config
|
|
65
74
|
*/
|
|
66
|
-
static getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
|
|
75
|
+
static getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
|
|
67
76
|
/**
|
|
68
77
|
* This endpoint returns all followers of a specific category.
|
|
69
78
|
* @param id
|
|
79
|
+
* @param config
|
|
70
80
|
*/
|
|
71
|
-
static getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
81
|
+
static getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
72
82
|
/**
|
|
73
83
|
* This endpoint retrieves the category feed.
|
|
74
84
|
* @param id
|
|
85
|
+
* @param config
|
|
75
86
|
*/
|
|
76
|
-
static getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
87
|
+
static getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
77
88
|
/**
|
|
78
89
|
* This endpoint retrieves the category trending feed.
|
|
79
90
|
* @param id
|
|
80
91
|
* @param params
|
|
92
|
+
* @param config
|
|
81
93
|
*/
|
|
82
|
-
static getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
94
|
+
static getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
83
95
|
/**
|
|
84
96
|
* This endpoint returns all trending followers of a specific category during last n days (default 90) .
|
|
85
97
|
* @param id
|
|
98
|
+
* @param config
|
|
86
99
|
*/
|
|
87
|
-
static getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
100
|
+
static getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
88
101
|
/**
|
|
89
102
|
* This endpoint follows a category.
|
|
90
103
|
* @param id
|
|
104
|
+
* @param config
|
|
91
105
|
*/
|
|
92
|
-
static followCategory(id: number): Promise<any>;
|
|
106
|
+
static followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
93
107
|
/**
|
|
94
108
|
* This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.
|
|
95
109
|
* @param id
|
|
110
|
+
* @param config
|
|
96
111
|
*/
|
|
97
|
-
static checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
|
|
112
|
+
static checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
|
|
98
113
|
/**
|
|
99
114
|
* This endpoint retrieves all followed categories by the user.
|
|
100
115
|
* @param params
|
|
116
|
+
* @param config
|
|
101
117
|
*/
|
|
102
|
-
static getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
118
|
+
static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
103
119
|
/**
|
|
104
120
|
* This endpoint retrieves all categories ordered by the number of followers (in descending order).
|
|
105
121
|
* @param params
|
|
122
|
+
* @param config
|
|
106
123
|
*/
|
|
107
|
-
static getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
124
|
+
static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
108
125
|
}
|
|
109
126
|
/**
|
|
110
127
|
*
|
|
111
|
-
:::tipCategory service can be used in the following
|
|
128
|
+
:::tipCategory service can be used in the following way:
|
|
112
129
|
```jsx
|
|
113
130
|
1. Import the service from our library:
|
|
114
131
|
|
|
@@ -124,28 +141,38 @@ export declare class CategoryApiClient {
|
|
|
124
141
|
```
|
|
125
142
|
```jsx
|
|
126
143
|
In case of required `params`, just add them inside the brackets.
|
|
144
|
+
|
|
127
145
|
async getSpecificCategory(categoryId) {
|
|
128
146
|
return await CategoryService.getSpecificCategory(categoryId);
|
|
129
147
|
}
|
|
130
148
|
```
|
|
149
|
+
```jsx
|
|
150
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
151
|
+
|
|
152
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
153
|
+
|
|
154
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
155
|
+
|
|
156
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
157
|
+
```
|
|
131
158
|
:::
|
|
132
159
|
*/
|
|
133
160
|
export default class CategoryService {
|
|
134
|
-
static getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
135
|
-
static searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
136
|
-
static createCategory(data: SCCategoryType): Promise<SCCategoryType>;
|
|
137
|
-
static getSpecificCategory(id: number): Promise<SCCategoryType>;
|
|
138
|
-
static updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
139
|
-
static patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
|
|
140
|
-
static deleteASpecificCategory(id: number): Promise<any>;
|
|
141
|
-
static getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
|
|
142
|
-
static getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
143
|
-
static getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
144
|
-
static getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
145
|
-
static getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
146
|
-
static followCategory(id: number): Promise<any>;
|
|
147
|
-
static checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
|
|
148
|
-
static getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
149
|
-
static getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
161
|
+
static getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
162
|
+
static searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
163
|
+
static createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
164
|
+
static getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
165
|
+
static updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
166
|
+
static patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
|
|
167
|
+
static deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
168
|
+
static getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
|
|
169
|
+
static getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
170
|
+
static getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
171
|
+
static getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
172
|
+
static getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
173
|
+
static followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
174
|
+
static checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
|
|
175
|
+
static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
176
|
+
static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
150
177
|
}
|
|
151
178
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAE,UAAU,EAAE,cAAc,EAAE,4BAA4B,EAAC,MAAM,sBAAsB,CAAC;AACtI,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAE,UAAU,EAAE,cAAc,EAAE,4BAA4B,EAAC,MAAM,sBAAsB,CAAC;AACtI,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACrH,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACnH,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3F,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACtF,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAChH,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,M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CAClC,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,aAAa,EACtB,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIlC,4BAA4B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;WAI/G,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC;WAIrE,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,4BAA4B,CAAC;WAIvG,qBAAqB,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIzH,oBAAoB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;CAGrI"}
|
|
@@ -16,127 +16,143 @@ export class CategoryApiClient {
|
|
|
16
16
|
/**
|
|
17
17
|
* This endpoint retrieves all categories.
|
|
18
18
|
* @param params
|
|
19
|
+
* @param config
|
|
19
20
|
*/
|
|
20
|
-
static getAllCategories(params) {
|
|
21
|
+
static getAllCategories(params, config) {
|
|
21
22
|
const p = new URLSearchParams(params);
|
|
22
|
-
return apiRequest(`${Endpoints.CategoryList.url({})}?${p.toString()}`, Endpoints.CategoryList.method);
|
|
23
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.CategoryList.url({})}?${p.toString()}`, method: Endpoints.CategoryList.method }));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* This endpoint performs category search.
|
|
26
27
|
* @param params
|
|
28
|
+
* @param config
|
|
27
29
|
*/
|
|
28
|
-
static searchCategory(params) {
|
|
30
|
+
static searchCategory(params, config) {
|
|
29
31
|
const p = new URLSearchParams(params);
|
|
30
|
-
return apiRequest(`${Endpoints.SearchCategory.url({})}?${p.toString()}`, Endpoints.SearchCategory.method);
|
|
32
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.SearchCategory.url({})}?${p.toString()}`, method: Endpoints.SearchCategory.method }));
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* This endpoint creates a category.
|
|
34
36
|
* @param data
|
|
37
|
+
* @param config
|
|
35
38
|
*/
|
|
36
|
-
static createCategory(data) {
|
|
37
|
-
return apiRequest(Endpoints.CreateCategory.url({}), Endpoints.CreateCategory.method, data);
|
|
39
|
+
static createCategory(data, config) {
|
|
40
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CreateCategory.url({}), method: Endpoints.CreateCategory.method, data: data }));
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* This endpoint retrieves a specific category.
|
|
41
44
|
* @param id
|
|
45
|
+
* @param config
|
|
42
46
|
*/
|
|
43
|
-
static getSpecificCategory(id) {
|
|
44
|
-
return apiRequest(Endpoints.Category.url({ id }), Endpoints.Category.method);
|
|
47
|
+
static getSpecificCategory(id, config) {
|
|
48
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.Category.url({ id }), method: Endpoints.Category.method }));
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* This endpoint updates a specific category.
|
|
48
52
|
* @param id
|
|
49
53
|
* @param data
|
|
54
|
+
* @param config
|
|
50
55
|
*/
|
|
51
|
-
static updateASpecificCategory(id, data) {
|
|
52
|
-
return apiRequest(Endpoints.UpdateCategory.url({ id }), Endpoints.UpdateCategory.method, data);
|
|
56
|
+
static updateASpecificCategory(id, data, config) {
|
|
57
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UpdateCategory.url({ id }), method: Endpoints.UpdateCategory.method, data: data }));
|
|
53
58
|
}
|
|
54
59
|
/**
|
|
55
60
|
* This endpoint patches a specific category.
|
|
56
61
|
* @param id
|
|
57
62
|
* @param data
|
|
63
|
+
* @param config
|
|
58
64
|
*/
|
|
59
|
-
static patchASpecificCategory(id, data) {
|
|
60
|
-
return apiRequest(Endpoints.PatchCategory.url({ id }), Endpoints.PatchCategory.method, data);
|
|
65
|
+
static patchASpecificCategory(id, data, config) {
|
|
66
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.PatchCategory.url({ id }), method: Endpoints.PatchCategory.method, data: data }));
|
|
61
67
|
}
|
|
62
68
|
/**
|
|
63
69
|
* This endpoint deletes a specific category identified by {id}.
|
|
64
70
|
* @param id
|
|
71
|
+
* @param config
|
|
65
72
|
*/
|
|
66
|
-
static deleteASpecificCategory(id) {
|
|
67
|
-
return apiRequest(Endpoints.DeleteCategory.url({ id }), Endpoints.DeleteCategory.method);
|
|
73
|
+
static deleteASpecificCategory(id, config) {
|
|
74
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.DeleteCategory.url({ id }), method: Endpoints.DeleteCategory.method }));
|
|
68
75
|
}
|
|
69
76
|
/**
|
|
70
77
|
* This endpoint returns the audience of a specific category.
|
|
71
78
|
* @param id
|
|
79
|
+
* @param config
|
|
72
80
|
*/
|
|
73
|
-
static getCategoryAudience(id) {
|
|
74
|
-
return apiRequest(Endpoints.CategoryAudience.url({ id }), Endpoints.CategoryAudience.method);
|
|
81
|
+
static getCategoryAudience(id, config) {
|
|
82
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CategoryAudience.url({ id }), method: Endpoints.CategoryAudience.method }));
|
|
75
83
|
}
|
|
76
84
|
/**
|
|
77
85
|
* This endpoint returns all followers of a specific category.
|
|
78
86
|
* @param id
|
|
87
|
+
* @param config
|
|
79
88
|
*/
|
|
80
|
-
static getCategoryFollowers(id) {
|
|
81
|
-
return apiRequest(Endpoints.CategoryFollowers.url({ id }), Endpoints.CategoryFollowers.method);
|
|
89
|
+
static getCategoryFollowers(id, config) {
|
|
90
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CategoryFollowers.url({ id }), method: Endpoints.CategoryFollowers.method }));
|
|
82
91
|
}
|
|
83
92
|
/**
|
|
84
93
|
* This endpoint retrieves the category feed.
|
|
85
94
|
* @param id
|
|
95
|
+
* @param config
|
|
86
96
|
*/
|
|
87
|
-
static getCategoryFeed(id) {
|
|
88
|
-
return apiRequest(Endpoints.CategoryFeed.url({ id }), Endpoints.CategoryFeed.method);
|
|
97
|
+
static getCategoryFeed(id, config) {
|
|
98
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CategoryFeed.url({ id }), method: Endpoints.CategoryFeed.method }));
|
|
89
99
|
}
|
|
90
100
|
/**
|
|
91
101
|
* This endpoint retrieves the category trending feed.
|
|
92
102
|
* @param id
|
|
93
103
|
* @param params
|
|
104
|
+
* @param config
|
|
94
105
|
*/
|
|
95
|
-
static getCategoryTrendingFeed(id, params) {
|
|
106
|
+
static getCategoryTrendingFeed(id, params, config) {
|
|
96
107
|
const p = new URLSearchParams(params);
|
|
97
|
-
return apiRequest(`${Endpoints.CategoryTrendingFeed.url({ id })}?${p.toString()}`, Endpoints.CategoryTrendingFeed.method);
|
|
108
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.CategoryTrendingFeed.url({ id })}?${p.toString()}`, method: Endpoints.CategoryTrendingFeed.method }));
|
|
98
109
|
}
|
|
99
110
|
/**
|
|
100
111
|
* This endpoint returns all trending followers of a specific category during last n days (default 90) .
|
|
101
112
|
* @param id
|
|
113
|
+
* @param config
|
|
102
114
|
*/
|
|
103
|
-
static getCategoryTrendingFollowers(id) {
|
|
104
|
-
return apiRequest(Endpoints.CategoryTrendingPeople.url({ id }), Endpoints.CategoryTrendingPeople.method);
|
|
115
|
+
static getCategoryTrendingFollowers(id, config) {
|
|
116
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CategoryTrendingPeople.url({ id }), method: Endpoints.CategoryTrendingPeople.method }));
|
|
105
117
|
}
|
|
106
118
|
/**
|
|
107
119
|
* This endpoint follows a category.
|
|
108
120
|
* @param id
|
|
121
|
+
* @param config
|
|
109
122
|
*/
|
|
110
|
-
static followCategory(id) {
|
|
111
|
-
return apiRequest(Endpoints.FollowCategory.url({ id }), Endpoints.FollowCategory.method);
|
|
123
|
+
static followCategory(id, config) {
|
|
124
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.FollowCategory.url({ id }), method: Endpoints.FollowCategory.method }));
|
|
112
125
|
}
|
|
113
126
|
/**
|
|
114
127
|
* This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.
|
|
115
128
|
* @param id
|
|
129
|
+
* @param config
|
|
116
130
|
*/
|
|
117
|
-
static checkCategoryIsFollowed(id) {
|
|
118
|
-
return apiRequest(Endpoints.CheckCategoryIsFollowed.url({ id }), Endpoints.CheckCategoryIsFollowed.method);
|
|
131
|
+
static checkCategoryIsFollowed(id, config) {
|
|
132
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CheckCategoryIsFollowed.url({ id }), method: Endpoints.CheckCategoryIsFollowed.method }));
|
|
119
133
|
}
|
|
120
134
|
/**
|
|
121
135
|
* This endpoint retrieves all followed categories by the user.
|
|
122
136
|
* @param params
|
|
137
|
+
* @param config
|
|
123
138
|
*/
|
|
124
|
-
static getFollowedCategories(params) {
|
|
139
|
+
static getFollowedCategories(params, config) {
|
|
125
140
|
const p = new URLSearchParams(params);
|
|
126
|
-
return apiRequest(`${Endpoints.CategoriesFollowed.url({})}?${p.toString()}`, Endpoints.CategoriesFollowed.method);
|
|
141
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.CategoriesFollowed.url({})}?${p.toString()}`, method: Endpoints.CategoriesFollowed.method }));
|
|
127
142
|
}
|
|
128
143
|
/**
|
|
129
144
|
* This endpoint retrieves all categories ordered by the number of followers (in descending order).
|
|
130
145
|
* @param params
|
|
146
|
+
* @param config
|
|
131
147
|
*/
|
|
132
|
-
static getPopularCategories(params) {
|
|
148
|
+
static getPopularCategories(params, config) {
|
|
133
149
|
const p = new URLSearchParams(params);
|
|
134
|
-
return apiRequest(`${Endpoints.PopularCategories.url({})}?${p.toString()}`, Endpoints.PopularCategories.method);
|
|
150
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.PopularCategories.url({})}?${p.toString()}`, method: Endpoints.PopularCategories.method }));
|
|
135
151
|
}
|
|
136
152
|
}
|
|
137
153
|
/**
|
|
138
154
|
*
|
|
139
|
-
:::tipCategory service can be used in the following
|
|
155
|
+
:::tipCategory service can be used in the following way:
|
|
140
156
|
```jsx
|
|
141
157
|
1. Import the service from our library:
|
|
142
158
|
|
|
@@ -152,91 +168,101 @@ export class CategoryApiClient {
|
|
|
152
168
|
```
|
|
153
169
|
```jsx
|
|
154
170
|
In case of required `params`, just add them inside the brackets.
|
|
171
|
+
|
|
155
172
|
async getSpecificCategory(categoryId) {
|
|
156
173
|
return await CategoryService.getSpecificCategory(categoryId);
|
|
157
174
|
}
|
|
158
175
|
```
|
|
176
|
+
```jsx
|
|
177
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
178
|
+
|
|
179
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
180
|
+
|
|
181
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
182
|
+
|
|
183
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
184
|
+
```
|
|
159
185
|
:::
|
|
160
186
|
*/
|
|
161
187
|
export default class CategoryService {
|
|
162
|
-
static getAllCategories(params) {
|
|
188
|
+
static getAllCategories(params, config) {
|
|
163
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
return CategoryApiClient.getAllCategories(params);
|
|
190
|
+
return CategoryApiClient.getAllCategories(params, config);
|
|
165
191
|
});
|
|
166
192
|
}
|
|
167
|
-
static searchCategory(params) {
|
|
193
|
+
static searchCategory(params, config) {
|
|
168
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
return CategoryApiClient.searchCategory(params);
|
|
195
|
+
return CategoryApiClient.searchCategory(params, config);
|
|
170
196
|
});
|
|
171
197
|
}
|
|
172
|
-
static createCategory(data) {
|
|
198
|
+
static createCategory(data, config) {
|
|
173
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
-
return CategoryApiClient.createCategory(data);
|
|
200
|
+
return CategoryApiClient.createCategory(data, config);
|
|
175
201
|
});
|
|
176
202
|
}
|
|
177
|
-
static getSpecificCategory(id) {
|
|
203
|
+
static getSpecificCategory(id, config) {
|
|
178
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
-
return CategoryApiClient.getSpecificCategory(id);
|
|
205
|
+
return CategoryApiClient.getSpecificCategory(id, config);
|
|
180
206
|
});
|
|
181
207
|
}
|
|
182
|
-
static updateASpecificCategory(id, data) {
|
|
208
|
+
static updateASpecificCategory(id, data, config) {
|
|
183
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
-
return CategoryApiClient.updateASpecificCategory(id, data);
|
|
210
|
+
return CategoryApiClient.updateASpecificCategory(id, data, config);
|
|
185
211
|
});
|
|
186
212
|
}
|
|
187
|
-
static patchASpecificCategory(id, data) {
|
|
213
|
+
static patchASpecificCategory(id, data, config) {
|
|
188
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
return CategoryApiClient.patchASpecificCategory(id, data);
|
|
215
|
+
return CategoryApiClient.patchASpecificCategory(id, data, config);
|
|
190
216
|
});
|
|
191
217
|
}
|
|
192
|
-
static deleteASpecificCategory(id) {
|
|
218
|
+
static deleteASpecificCategory(id, config) {
|
|
193
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
-
return CategoryApiClient.deleteASpecificCategory(id);
|
|
220
|
+
return CategoryApiClient.deleteASpecificCategory(id, config);
|
|
195
221
|
});
|
|
196
222
|
}
|
|
197
|
-
static getCategoryAudience(id) {
|
|
223
|
+
static getCategoryAudience(id, config) {
|
|
198
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
-
return CategoryApiClient.getCategoryAudience(id);
|
|
225
|
+
return CategoryApiClient.getCategoryAudience(id, config);
|
|
200
226
|
});
|
|
201
227
|
}
|
|
202
|
-
static getCategoryFollowers(id) {
|
|
228
|
+
static getCategoryFollowers(id, config) {
|
|
203
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
-
return CategoryApiClient.getCategoryFollowers(id);
|
|
230
|
+
return CategoryApiClient.getCategoryFollowers(id, config);
|
|
205
231
|
});
|
|
206
232
|
}
|
|
207
|
-
static getCategoryFeed(id) {
|
|
233
|
+
static getCategoryFeed(id, config) {
|
|
208
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
-
return CategoryApiClient.getCategoryFeed(id);
|
|
235
|
+
return CategoryApiClient.getCategoryFeed(id, config);
|
|
210
236
|
});
|
|
211
237
|
}
|
|
212
|
-
static getCategoryTrendingFeed(id, params) {
|
|
238
|
+
static getCategoryTrendingFeed(id, params, config) {
|
|
213
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
return CategoryApiClient.getCategoryTrendingFeed(id, params);
|
|
240
|
+
return CategoryApiClient.getCategoryTrendingFeed(id, params, config);
|
|
215
241
|
});
|
|
216
242
|
}
|
|
217
|
-
static getCategoryTrendingFollowers(id) {
|
|
243
|
+
static getCategoryTrendingFollowers(id, config) {
|
|
218
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
-
return CategoryApiClient.getCategoryTrendingFollowers(id);
|
|
245
|
+
return CategoryApiClient.getCategoryTrendingFollowers(id, config);
|
|
220
246
|
});
|
|
221
247
|
}
|
|
222
|
-
static followCategory(id) {
|
|
248
|
+
static followCategory(id, config) {
|
|
223
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
-
return CategoryApiClient.followCategory(id);
|
|
250
|
+
return CategoryApiClient.followCategory(id, config);
|
|
225
251
|
});
|
|
226
252
|
}
|
|
227
|
-
static checkCategoryIsFollowed(id) {
|
|
253
|
+
static checkCategoryIsFollowed(id, config) {
|
|
228
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
-
return CategoryApiClient.checkCategoryIsFollowed(id);
|
|
255
|
+
return CategoryApiClient.checkCategoryIsFollowed(id, config);
|
|
230
256
|
});
|
|
231
257
|
}
|
|
232
|
-
static getFollowedCategories(params) {
|
|
258
|
+
static getFollowedCategories(params, config) {
|
|
233
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
return CategoryApiClient.getFollowedCategories(params);
|
|
260
|
+
return CategoryApiClient.getFollowedCategories(params, config);
|
|
235
261
|
});
|
|
236
262
|
}
|
|
237
|
-
static getPopularCategories(params) {
|
|
263
|
+
static getPopularCategories(params, config) {
|
|
238
264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
-
return CategoryApiClient.getPopularCategories(params);
|
|
265
|
+
return CategoryApiClient.getPopularCategories(params, config);
|
|
240
266
|
});
|
|
241
267
|
}
|
|
242
268
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAsBlD;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAuB,EAAE,MAA2B;QAC1E,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,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