@selfcommunity/api-services 0.1.28-alpha.3 → 0.1.28-alpha.4
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 +2 -2
|
@@ -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,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BAAuB,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"}
|
|
@@ -22,128 +22,144 @@ class CategoryApiClient {
|
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint retrieves all categories.
|
|
24
24
|
* @param params
|
|
25
|
+
* @param config
|
|
25
26
|
*/
|
|
26
|
-
static getAllCategories(params) {
|
|
27
|
+
static getAllCategories(params, config) {
|
|
27
28
|
const p = new URLSearchParams(params);
|
|
28
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoryList.url({})}?${p.toString()}`, Endpoints_1.default.CategoryList.method);
|
|
29
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoryList.url({})}?${p.toString()}`, method: Endpoints_1.default.CategoryList.method }));
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* This endpoint performs category search.
|
|
32
33
|
* @param params
|
|
34
|
+
* @param config
|
|
33
35
|
*/
|
|
34
|
-
static searchCategory(params) {
|
|
36
|
+
static searchCategory(params, config) {
|
|
35
37
|
const p = new URLSearchParams(params);
|
|
36
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.SearchCategory.url({})}?${p.toString()}`, Endpoints_1.default.SearchCategory.method);
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchCategory.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchCategory.method }));
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* This endpoint creates a category.
|
|
40
42
|
* @param data
|
|
43
|
+
* @param config
|
|
41
44
|
*/
|
|
42
|
-
static createCategory(data) {
|
|
43
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CreateCategory.url({}), Endpoints_1.default.CreateCategory.method, data);
|
|
45
|
+
static createCategory(data, config) {
|
|
46
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CreateCategory.url({}), method: Endpoints_1.default.CreateCategory.method, data: data }));
|
|
44
47
|
}
|
|
45
48
|
/**
|
|
46
49
|
* This endpoint retrieves a specific category.
|
|
47
50
|
* @param id
|
|
51
|
+
* @param config
|
|
48
52
|
*/
|
|
49
|
-
static getSpecificCategory(id) {
|
|
50
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Category.url({ id }), Endpoints_1.default.Category.method);
|
|
53
|
+
static getSpecificCategory(id, config) {
|
|
54
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Category.url({ id }), method: Endpoints_1.default.Category.method }));
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
57
|
* This endpoint updates a specific category.
|
|
54
58
|
* @param id
|
|
55
59
|
* @param data
|
|
60
|
+
* @param config
|
|
56
61
|
*/
|
|
57
|
-
static updateASpecificCategory(id, data) {
|
|
58
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UpdateCategory.url({ id }), Endpoints_1.default.UpdateCategory.method, data);
|
|
62
|
+
static updateASpecificCategory(id, data, config) {
|
|
63
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdateCategory.url({ id }), method: Endpoints_1.default.UpdateCategory.method, data: data }));
|
|
59
64
|
}
|
|
60
65
|
/**
|
|
61
66
|
* This endpoint patches a specific category.
|
|
62
67
|
* @param id
|
|
63
68
|
* @param data
|
|
69
|
+
* @param config
|
|
64
70
|
*/
|
|
65
|
-
static patchASpecificCategory(id, data) {
|
|
66
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PatchCategory.url({ id }), Endpoints_1.default.PatchCategory.method, data);
|
|
71
|
+
static patchASpecificCategory(id, data, config) {
|
|
72
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.PatchCategory.url({ id }), method: Endpoints_1.default.PatchCategory.method, data: data }));
|
|
67
73
|
}
|
|
68
74
|
/**
|
|
69
75
|
* This endpoint deletes a specific category identified by {id}.
|
|
70
76
|
* @param id
|
|
77
|
+
* @param config
|
|
71
78
|
*/
|
|
72
|
-
static deleteASpecificCategory(id) {
|
|
73
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.DeleteCategory.url({ id }), Endpoints_1.default.DeleteCategory.method);
|
|
79
|
+
static deleteASpecificCategory(id, config) {
|
|
80
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.DeleteCategory.url({ id }), method: Endpoints_1.default.DeleteCategory.method }));
|
|
74
81
|
}
|
|
75
82
|
/**
|
|
76
83
|
* This endpoint returns the audience of a specific category.
|
|
77
84
|
* @param id
|
|
85
|
+
* @param config
|
|
78
86
|
*/
|
|
79
|
-
static getCategoryAudience(id) {
|
|
80
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryAudience.url({ id }), Endpoints_1.default.CategoryAudience.method);
|
|
87
|
+
static getCategoryAudience(id, config) {
|
|
88
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryAudience.url({ id }), method: Endpoints_1.default.CategoryAudience.method }));
|
|
81
89
|
}
|
|
82
90
|
/**
|
|
83
91
|
* This endpoint returns all followers of a specific category.
|
|
84
92
|
* @param id
|
|
93
|
+
* @param config
|
|
85
94
|
*/
|
|
86
|
-
static getCategoryFollowers(id) {
|
|
87
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryFollowers.url({ id }), Endpoints_1.default.CategoryFollowers.method);
|
|
95
|
+
static getCategoryFollowers(id, config) {
|
|
96
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryFollowers.url({ id }), method: Endpoints_1.default.CategoryFollowers.method }));
|
|
88
97
|
}
|
|
89
98
|
/**
|
|
90
99
|
* This endpoint retrieves the category feed.
|
|
91
100
|
* @param id
|
|
101
|
+
* @param config
|
|
92
102
|
*/
|
|
93
|
-
static getCategoryFeed(id) {
|
|
94
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryFeed.url({ id }), Endpoints_1.default.CategoryFeed.method);
|
|
103
|
+
static getCategoryFeed(id, config) {
|
|
104
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryFeed.url({ id }), method: Endpoints_1.default.CategoryFeed.method }));
|
|
95
105
|
}
|
|
96
106
|
/**
|
|
97
107
|
* This endpoint retrieves the category trending feed.
|
|
98
108
|
* @param id
|
|
99
109
|
* @param params
|
|
110
|
+
* @param config
|
|
100
111
|
*/
|
|
101
|
-
static getCategoryTrendingFeed(id, params) {
|
|
112
|
+
static getCategoryTrendingFeed(id, params, config) {
|
|
102
113
|
const p = new URLSearchParams(params);
|
|
103
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoryTrendingFeed.url({ id })}?${p.toString()}`, Endpoints_1.default.CategoryTrendingFeed.method);
|
|
114
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoryTrendingFeed.url({ id })}?${p.toString()}`, method: Endpoints_1.default.CategoryTrendingFeed.method }));
|
|
104
115
|
}
|
|
105
116
|
/**
|
|
106
117
|
* This endpoint returns all trending followers of a specific category during last n days (default 90) .
|
|
107
118
|
* @param id
|
|
119
|
+
* @param config
|
|
108
120
|
*/
|
|
109
|
-
static getCategoryTrendingFollowers(id) {
|
|
110
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryTrendingPeople.url({ id }), Endpoints_1.default.CategoryTrendingPeople.method);
|
|
121
|
+
static getCategoryTrendingFollowers(id, config) {
|
|
122
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryTrendingPeople.url({ id }), method: Endpoints_1.default.CategoryTrendingPeople.method }));
|
|
111
123
|
}
|
|
112
124
|
/**
|
|
113
125
|
* This endpoint follows a category.
|
|
114
126
|
* @param id
|
|
127
|
+
* @param config
|
|
115
128
|
*/
|
|
116
|
-
static followCategory(id) {
|
|
117
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowCategory.url({ id }), Endpoints_1.default.FollowCategory.method);
|
|
129
|
+
static followCategory(id, config) {
|
|
130
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.FollowCategory.url({ id }), method: Endpoints_1.default.FollowCategory.method }));
|
|
118
131
|
}
|
|
119
132
|
/**
|
|
120
133
|
* This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.
|
|
121
134
|
* @param id
|
|
135
|
+
* @param config
|
|
122
136
|
*/
|
|
123
|
-
static checkCategoryIsFollowed(id) {
|
|
124
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckCategoryIsFollowed.url({ id }), Endpoints_1.default.CheckCategoryIsFollowed.method);
|
|
137
|
+
static checkCategoryIsFollowed(id, config) {
|
|
138
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckCategoryIsFollowed.url({ id }), method: Endpoints_1.default.CheckCategoryIsFollowed.method }));
|
|
125
139
|
}
|
|
126
140
|
/**
|
|
127
141
|
* This endpoint retrieves all followed categories by the user.
|
|
128
142
|
* @param params
|
|
143
|
+
* @param config
|
|
129
144
|
*/
|
|
130
|
-
static getFollowedCategories(params) {
|
|
145
|
+
static getFollowedCategories(params, config) {
|
|
131
146
|
const p = new URLSearchParams(params);
|
|
132
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoriesFollowed.url({})}?${p.toString()}`, Endpoints_1.default.CategoriesFollowed.method);
|
|
147
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoriesFollowed.url({})}?${p.toString()}`, method: Endpoints_1.default.CategoriesFollowed.method }));
|
|
133
148
|
}
|
|
134
149
|
/**
|
|
135
150
|
* This endpoint retrieves all categories ordered by the number of followers (in descending order).
|
|
136
151
|
* @param params
|
|
152
|
+
* @param config
|
|
137
153
|
*/
|
|
138
|
-
static getPopularCategories(params) {
|
|
154
|
+
static getPopularCategories(params, config) {
|
|
139
155
|
const p = new URLSearchParams(params);
|
|
140
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.PopularCategories.url({})}?${p.toString()}`, Endpoints_1.default.PopularCategories.method);
|
|
156
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.PopularCategories.url({})}?${p.toString()}`, method: Endpoints_1.default.PopularCategories.method }));
|
|
141
157
|
}
|
|
142
158
|
}
|
|
143
159
|
exports.CategoryApiClient = CategoryApiClient;
|
|
144
160
|
/**
|
|
145
161
|
*
|
|
146
|
-
:::tipCategory service can be used in the following
|
|
162
|
+
:::tipCategory service can be used in the following way:
|
|
147
163
|
```jsx
|
|
148
164
|
1. Import the service from our library:
|
|
149
165
|
|
|
@@ -159,91 +175,101 @@ exports.CategoryApiClient = CategoryApiClient;
|
|
|
159
175
|
```
|
|
160
176
|
```jsx
|
|
161
177
|
In case of required `params`, just add them inside the brackets.
|
|
178
|
+
|
|
162
179
|
async getSpecificCategory(categoryId) {
|
|
163
180
|
return await CategoryService.getSpecificCategory(categoryId);
|
|
164
181
|
}
|
|
165
182
|
```
|
|
183
|
+
```jsx
|
|
184
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
185
|
+
|
|
186
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
187
|
+
|
|
188
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
189
|
+
|
|
190
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
191
|
+
```
|
|
166
192
|
:::
|
|
167
193
|
*/
|
|
168
194
|
class CategoryService {
|
|
169
|
-
static getAllCategories(params) {
|
|
195
|
+
static getAllCategories(params, config) {
|
|
170
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
return CategoryApiClient.getAllCategories(params);
|
|
197
|
+
return CategoryApiClient.getAllCategories(params, config);
|
|
172
198
|
});
|
|
173
199
|
}
|
|
174
|
-
static searchCategory(params) {
|
|
200
|
+
static searchCategory(params, config) {
|
|
175
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
return CategoryApiClient.searchCategory(params);
|
|
202
|
+
return CategoryApiClient.searchCategory(params, config);
|
|
177
203
|
});
|
|
178
204
|
}
|
|
179
|
-
static createCategory(data) {
|
|
205
|
+
static createCategory(data, config) {
|
|
180
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
return CategoryApiClient.createCategory(data);
|
|
207
|
+
return CategoryApiClient.createCategory(data, config);
|
|
182
208
|
});
|
|
183
209
|
}
|
|
184
|
-
static getSpecificCategory(id) {
|
|
210
|
+
static getSpecificCategory(id, config) {
|
|
185
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
-
return CategoryApiClient.getSpecificCategory(id);
|
|
212
|
+
return CategoryApiClient.getSpecificCategory(id, config);
|
|
187
213
|
});
|
|
188
214
|
}
|
|
189
|
-
static updateASpecificCategory(id, data) {
|
|
215
|
+
static updateASpecificCategory(id, data, config) {
|
|
190
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
return CategoryApiClient.updateASpecificCategory(id, data);
|
|
217
|
+
return CategoryApiClient.updateASpecificCategory(id, data, config);
|
|
192
218
|
});
|
|
193
219
|
}
|
|
194
|
-
static patchASpecificCategory(id, data) {
|
|
220
|
+
static patchASpecificCategory(id, data, config) {
|
|
195
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
return CategoryApiClient.patchASpecificCategory(id, data);
|
|
222
|
+
return CategoryApiClient.patchASpecificCategory(id, data, config);
|
|
197
223
|
});
|
|
198
224
|
}
|
|
199
|
-
static deleteASpecificCategory(id) {
|
|
225
|
+
static deleteASpecificCategory(id, config) {
|
|
200
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
-
return CategoryApiClient.deleteASpecificCategory(id);
|
|
227
|
+
return CategoryApiClient.deleteASpecificCategory(id, config);
|
|
202
228
|
});
|
|
203
229
|
}
|
|
204
|
-
static getCategoryAudience(id) {
|
|
230
|
+
static getCategoryAudience(id, config) {
|
|
205
231
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
return CategoryApiClient.getCategoryAudience(id);
|
|
232
|
+
return CategoryApiClient.getCategoryAudience(id, config);
|
|
207
233
|
});
|
|
208
234
|
}
|
|
209
|
-
static getCategoryFollowers(id) {
|
|
235
|
+
static getCategoryFollowers(id, config) {
|
|
210
236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
-
return CategoryApiClient.getCategoryFollowers(id);
|
|
237
|
+
return CategoryApiClient.getCategoryFollowers(id, config);
|
|
212
238
|
});
|
|
213
239
|
}
|
|
214
|
-
static getCategoryFeed(id) {
|
|
240
|
+
static getCategoryFeed(id, config) {
|
|
215
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
-
return CategoryApiClient.getCategoryFeed(id);
|
|
242
|
+
return CategoryApiClient.getCategoryFeed(id, config);
|
|
217
243
|
});
|
|
218
244
|
}
|
|
219
|
-
static getCategoryTrendingFeed(id, params) {
|
|
245
|
+
static getCategoryTrendingFeed(id, params, config) {
|
|
220
246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
-
return CategoryApiClient.getCategoryTrendingFeed(id, params);
|
|
247
|
+
return CategoryApiClient.getCategoryTrendingFeed(id, params, config);
|
|
222
248
|
});
|
|
223
249
|
}
|
|
224
|
-
static getCategoryTrendingFollowers(id) {
|
|
250
|
+
static getCategoryTrendingFollowers(id, config) {
|
|
225
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
-
return CategoryApiClient.getCategoryTrendingFollowers(id);
|
|
252
|
+
return CategoryApiClient.getCategoryTrendingFollowers(id, config);
|
|
227
253
|
});
|
|
228
254
|
}
|
|
229
|
-
static followCategory(id) {
|
|
255
|
+
static followCategory(id, config) {
|
|
230
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
return CategoryApiClient.followCategory(id);
|
|
257
|
+
return CategoryApiClient.followCategory(id, config);
|
|
232
258
|
});
|
|
233
259
|
}
|
|
234
|
-
static checkCategoryIsFollowed(id) {
|
|
260
|
+
static checkCategoryIsFollowed(id, config) {
|
|
235
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
-
return CategoryApiClient.checkCategoryIsFollowed(id);
|
|
262
|
+
return CategoryApiClient.checkCategoryIsFollowed(id, config);
|
|
237
263
|
});
|
|
238
264
|
}
|
|
239
|
-
static getFollowedCategories(params) {
|
|
265
|
+
static getFollowedCategories(params, config) {
|
|
240
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
-
return CategoryApiClient.getFollowedCategories(params);
|
|
267
|
+
return CategoryApiClient.getFollowedCategories(params, config);
|
|
242
268
|
});
|
|
243
269
|
}
|
|
244
|
-
static getPopularCategories(params) {
|
|
270
|
+
static getPopularCategories(params, config) {
|
|
245
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
-
return CategoryApiClient.getPopularCategories(params);
|
|
272
|
+
return CategoryApiClient.getPopularCategories(params, config);
|
|
247
273
|
});
|
|
248
274
|
}
|
|
249
275
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAkD;AAGlD,uDAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAkD;AAGlD,uDAAkD;AAsBlD;;GAEG;AACH,MAAa,iBAAiB;IAC5B;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAuB,EAAE,MAA2B;QAC1E,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,mBAAS,CAAC,YAAY,CAAC,MAAM,IAAE,CAAC;IAClI,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,MAAuB,EAAE,MAA2B;QACxE,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,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