@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,8 +1,9 @@
|
|
|
1
1
|
import { SSOSignInType, SSOSignUpType } from '@selfcommunity/types/src/types/sso';
|
|
2
2
|
import { SSOSignUpParams } from '../../types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface SSOApiClientInterface {
|
|
4
|
-
SignIn(): Promise<SSOSignInType>;
|
|
5
|
-
SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
5
|
+
SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType>;
|
|
6
|
+
SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType>;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
* Contains all the endpoints needed to manage sso.
|
|
@@ -10,14 +11,16 @@ export interface SSOApiClientInterface {
|
|
|
10
11
|
export declare class SSOApiClient {
|
|
11
12
|
/**
|
|
12
13
|
* This endpoint signs in the user authenticated with the access token.
|
|
14
|
+
* @param config
|
|
13
15
|
*/
|
|
14
|
-
static SignIn(): Promise<SSOSignInType>;
|
|
16
|
+
static SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType>;
|
|
15
17
|
/**
|
|
16
18
|
* This endpoint creates a new account.
|
|
17
19
|
* Only users with the admin role can register new users.
|
|
18
20
|
* @param data
|
|
21
|
+
* @param config
|
|
19
22
|
*/
|
|
20
|
-
static SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
23
|
+
static SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType>;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
*
|
|
@@ -37,10 +40,19 @@ export declare class SSOApiClient {
|
|
|
37
40
|
return await SSOService.SignUp(data);
|
|
38
41
|
}
|
|
39
42
|
```
|
|
43
|
+
```jsx
|
|
44
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
45
|
+
|
|
46
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
47
|
+
|
|
48
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
49
|
+
|
|
50
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
51
|
+
```
|
|
40
52
|
:::
|
|
41
53
|
*/
|
|
42
54
|
export default class SSOService {
|
|
43
|
-
static SignIn(): Promise<SSOSignInType>;
|
|
44
|
-
static SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
55
|
+
static SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType>;
|
|
56
|
+
static SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType>;
|
|
45
57
|
}
|
|
46
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACpF;AACD;;GAEG;AAEH,qBAAa,YAAY;IACvB;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIlE;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;CAG1F;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,OAAO,OAAO,UAAU;WAChB,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;WAG3D,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;CAGhG"}
|
|
@@ -21,17 +21,19 @@ const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
|
21
21
|
class SSOApiClient {
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint signs in the user authenticated with the access token.
|
|
24
|
+
* @param config
|
|
24
25
|
*/
|
|
25
|
-
static SignIn() {
|
|
26
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SignIn.url({}), Endpoints_1.default.SignIn.method);
|
|
26
|
+
static SignIn(config) {
|
|
27
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.SignIn.url({}), method: Endpoints_1.default.SignIn.method }));
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* This endpoint creates a new account.
|
|
30
31
|
* Only users with the admin role can register new users.
|
|
31
32
|
* @param data
|
|
33
|
+
* @param config
|
|
32
34
|
*/
|
|
33
|
-
static SignUp(data) {
|
|
34
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SignUp.url({}), Endpoints_1.default.SignUp.method, data);
|
|
35
|
+
static SignUp(data, config) {
|
|
36
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.SignUp.url({}), method: Endpoints_1.default.SignUp.method, data: data }));
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
exports.SSOApiClient = SSOApiClient;
|
|
@@ -53,17 +55,26 @@ exports.SSOApiClient = SSOApiClient;
|
|
|
53
55
|
return await SSOService.SignUp(data);
|
|
54
56
|
}
|
|
55
57
|
```
|
|
58
|
+
```jsx
|
|
59
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
60
|
+
|
|
61
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
62
|
+
|
|
63
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
64
|
+
|
|
65
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
66
|
+
```
|
|
56
67
|
:::
|
|
57
68
|
*/
|
|
58
69
|
class SSOService {
|
|
59
|
-
static SignIn() {
|
|
70
|
+
static SignIn(config) {
|
|
60
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
return SSOApiClient.SignIn();
|
|
72
|
+
return SSOApiClient.SignIn(config);
|
|
62
73
|
});
|
|
63
74
|
}
|
|
64
|
-
static SignUp(data) {
|
|
75
|
+
static SignUp(data, config) {
|
|
65
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
return SSOApiClient.SignUp(data);
|
|
77
|
+
return SSOApiClient.SignUp(data, config);
|
|
67
78
|
});
|
|
68
79
|
}
|
|
69
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAClD,0EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAClD,0EAAkD;AASlD;;GAEG;AAEH,MAAa,YAAY;IACvB;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,MAA2B;QACvC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,MAAM,CAAC,MAAM,IAAE,CAAC;IACjG,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,IAAqB,EAAE,MAA2B;QAC9D,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,IAAE,CAAC;IAC7G,CAAC;CACF;AAlBD,oCAkBC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAqB,UAAU;IAC7B,MAAM,CAAO,MAAM,CAAC,MAA2B;;YAC7C,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrC,CAAC;KAAA;IACD,MAAM,CAAO,MAAM,CAAC,IAAqB,EAAE,MAA2B;;YACpE,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC;KAAA;CACF;AAPD,6BAOC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SCPaginatedResponse } from '../../types';
|
|
2
2
|
import { SCCategoryType, SCFeedObjectType, SCIncubatorType, SCUserType } from '@selfcommunity/types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface SuggestionApiClientInterface {
|
|
4
|
-
getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
5
|
-
getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
6
|
-
getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
7
|
-
getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
5
|
+
getCategorySuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
6
|
+
getIncubatorSuggestion(config?: AxiosRequestConfig): Promise<SCIncubatorType[]>;
|
|
7
|
+
getPollSuggestion(config?: AxiosRequestConfig): Promise<SCFeedObjectType[]>;
|
|
8
|
+
getUserSuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Contains all the endpoints needed to manage suggestions.
|
|
@@ -12,20 +13,24 @@ export interface SuggestionApiClientInterface {
|
|
|
12
13
|
export declare class SuggestionApiClient {
|
|
13
14
|
/**
|
|
14
15
|
* This endpoint retrieves a list of categories suggested to the current user.
|
|
16
|
+
* @param config
|
|
15
17
|
*/
|
|
16
|
-
static getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
18
|
+
static getCategorySuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
17
19
|
/**
|
|
18
20
|
* This endpoint retrieves a list of suggested incubators.
|
|
21
|
+
* @param config
|
|
19
22
|
*/
|
|
20
|
-
static getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
23
|
+
static getIncubatorSuggestion(config?: AxiosRequestConfig): Promise<SCIncubatorType[]>;
|
|
21
24
|
/**
|
|
22
25
|
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
26
|
+
* @param config
|
|
23
27
|
*/
|
|
24
|
-
static getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
28
|
+
static getPollSuggestion(config?: AxiosRequestConfig): Promise<SCFeedObjectType[]>;
|
|
25
29
|
/**
|
|
26
30
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
31
|
+
* @param config
|
|
27
32
|
*/
|
|
28
|
-
static getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
33
|
+
static getUserSuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
*
|
|
@@ -44,12 +49,21 @@ export declare class SuggestionApiClient {
|
|
|
44
49
|
return await SuggestionService.getCategorySuggestion();
|
|
45
50
|
}
|
|
46
51
|
```
|
|
52
|
+
```jsx
|
|
53
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
54
|
+
|
|
55
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
56
|
+
|
|
57
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
58
|
+
|
|
59
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
60
|
+
```
|
|
47
61
|
:::
|
|
48
62
|
*/
|
|
49
63
|
export default class SuggestionService {
|
|
50
|
-
static getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
51
|
-
static getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
52
|
-
static getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
53
|
-
static getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
64
|
+
static getCategorySuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
65
|
+
static getIncubatorSuggestion(config?: AxiosRequestConfig): Promise<SCIncubatorType[]>;
|
|
66
|
+
static getPollSuggestion(config?: AxiosRequestConfig): Promise<SCFeedObjectType[]>;
|
|
67
|
+
static getUserSuggestion(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
54
68
|
}
|
|
55
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACjG,sBAAsB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAChF,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC5E,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;CAC1F;AACD;;GAEG;AAEH,qBAAa,mBAAmB;IAC9B;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;IAIvG;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAItF;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIlF;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;CAGhG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,qBAAqB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIhG,sBAAsB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;WAI/E,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;WAI3E,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;CAGtG"}
|
|
@@ -21,27 +21,31 @@ const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
|
21
21
|
class SuggestionApiClient {
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint retrieves a list of categories suggested to the current user.
|
|
24
|
+
* @param config
|
|
24
25
|
*/
|
|
25
|
-
static getCategorySuggestion() {
|
|
26
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoriesSuggestion.url({}), Endpoints_1.default.CategoriesSuggestion.method);
|
|
26
|
+
static getCategorySuggestion(config) {
|
|
27
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoriesSuggestion.url({}), method: Endpoints_1.default.CategoriesSuggestion.method }));
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* This endpoint retrieves a list of suggested incubators.
|
|
31
|
+
* @param config
|
|
30
32
|
*/
|
|
31
|
-
static getIncubatorSuggestion() {
|
|
32
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetIncubatorSuggestion.url({}), Endpoints_1.default.GetIncubatorSuggestion.method);
|
|
33
|
+
static getIncubatorSuggestion(config) {
|
|
34
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetIncubatorSuggestion.url({}), method: Endpoints_1.default.GetIncubatorSuggestion.method }));
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
38
|
+
* @param config
|
|
36
39
|
*/
|
|
37
|
-
static getPollSuggestion() {
|
|
38
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PollSuggestion.url({}), Endpoints_1.default.PollSuggestion.method);
|
|
40
|
+
static getPollSuggestion(config) {
|
|
41
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.PollSuggestion.url({}), method: Endpoints_1.default.PollSuggestion.method }));
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
44
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
45
|
+
* @param config
|
|
42
46
|
*/
|
|
43
|
-
static getUserSuggestion() {
|
|
44
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSuggestion.url({}), Endpoints_1.default.UserSuggestion.method);
|
|
47
|
+
static getUserSuggestion(config) {
|
|
48
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserSuggestion.url({}), method: Endpoints_1.default.UserSuggestion.method }));
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
exports.SuggestionApiClient = SuggestionApiClient;
|
|
@@ -62,27 +66,36 @@ exports.SuggestionApiClient = SuggestionApiClient;
|
|
|
62
66
|
return await SuggestionService.getCategorySuggestion();
|
|
63
67
|
}
|
|
64
68
|
```
|
|
69
|
+
```jsx
|
|
70
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
71
|
+
|
|
72
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
73
|
+
|
|
74
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
75
|
+
|
|
76
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
77
|
+
```
|
|
65
78
|
:::
|
|
66
79
|
*/
|
|
67
80
|
class SuggestionService {
|
|
68
|
-
static getCategorySuggestion() {
|
|
81
|
+
static getCategorySuggestion(config) {
|
|
69
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
return SuggestionApiClient.getCategorySuggestion();
|
|
83
|
+
return SuggestionApiClient.getCategorySuggestion(config);
|
|
71
84
|
});
|
|
72
85
|
}
|
|
73
|
-
static getIncubatorSuggestion() {
|
|
86
|
+
static getIncubatorSuggestion(config) {
|
|
74
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return SuggestionApiClient.getIncubatorSuggestion();
|
|
88
|
+
return SuggestionApiClient.getIncubatorSuggestion(config);
|
|
76
89
|
});
|
|
77
90
|
}
|
|
78
|
-
static getPollSuggestion() {
|
|
91
|
+
static getPollSuggestion(config) {
|
|
79
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
return SuggestionApiClient.getPollSuggestion();
|
|
93
|
+
return SuggestionApiClient.getPollSuggestion(config);
|
|
81
94
|
});
|
|
82
95
|
}
|
|
83
|
-
static getUserSuggestion() {
|
|
96
|
+
static getUserSuggestion(config) {
|
|
84
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
return SuggestionApiClient.getUserSuggestion();
|
|
98
|
+
return SuggestionApiClient.getUserSuggestion(config);
|
|
86
99
|
});
|
|
87
100
|
}
|
|
88
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAClD,0EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAClD,0EAAkD;AAWlD;;GAEG;AAEH,MAAa,mBAAmB;IAC9B;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,MAA2B;QACtD,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,oBAAoB,CAAC,MAAM,IAAE,CAAC;IAC7H,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,MAA2B;QACvD,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,sBAAsB,CAAC,MAAM,IAAE,CAAC;IACjI,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAA2B;QAClD,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,cAAc,CAAC,MAAM,IAAE,CAAC;IACjH,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAA2B;QAClD,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,cAAc,CAAC,MAAM,IAAE,CAAC;IACjH,CAAC;CACF;AAhCD,kDAgCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAqB,iBAAiB;IACpC,MAAM,CAAO,qBAAqB,CAAC,MAA2B;;YAC5D,OAAO,mBAAmB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAC3D,CAAC;KAAA;IAED,MAAM,CAAO,sBAAsB,CAAC,MAA2B;;YAC7D,OAAO,mBAAmB,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC5D,CAAC;KAAA;IAED,MAAM,CAAO,iBAAiB,CAAC,MAA2B;;YACxD,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;KAAA;IAED,MAAM,CAAO,iBAAiB,CAAC,MAA2B;;YACxD,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;KAAA;CACF;AAhBD,oCAgBC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { TagParams, SCPaginatedResponse, TagGetParams } from '../../types';
|
|
2
2
|
import { SCTagType } from '@selfcommunity/types/src/types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface TagApiClientInterface {
|
|
4
|
-
getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
5
|
-
createTag(data: TagParams): Promise<SCTagType>;
|
|
6
|
-
searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
7
|
-
getSpecificTag(id: number): Promise<SCTagType>;
|
|
8
|
-
updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
9
|
-
patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
10
|
-
assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
5
|
+
getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
6
|
+
createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
7
|
+
searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
8
|
+
getSpecificTag(id: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
9
|
+
updateTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
10
|
+
patchTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
11
|
+
assignATag(id: number, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Contains all the endpoints needed to manage tags.
|
|
@@ -17,47 +18,54 @@ export declare class TagApiClient {
|
|
|
17
18
|
/**
|
|
18
19
|
* This endpoint retrieves all tags.
|
|
19
20
|
* @param params
|
|
21
|
+
* @param config
|
|
20
22
|
*/
|
|
21
|
-
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
23
|
+
static getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
22
24
|
/**
|
|
23
25
|
* This endpoint creates a tag
|
|
24
26
|
* @param data
|
|
27
|
+
* @param config
|
|
25
28
|
*/
|
|
26
|
-
static createTag(data: TagParams): Promise<SCTagType>;
|
|
29
|
+
static createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
27
30
|
/**
|
|
28
31
|
* This endpoint performs tag search.
|
|
29
32
|
* @param params
|
|
33
|
+
* @param config
|
|
30
34
|
*/
|
|
31
|
-
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
35
|
+
static searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
32
36
|
/**
|
|
33
37
|
* This endpoint retrieves a specific tag.
|
|
34
38
|
* @param id
|
|
39
|
+
* @param config
|
|
35
40
|
*/
|
|
36
|
-
static getSpecificTag(id: number): Promise<SCTagType>;
|
|
41
|
+
static getSpecificTag(id: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
37
42
|
/**
|
|
38
43
|
* This endpoint updates a specific tag.
|
|
39
44
|
* @param id
|
|
40
45
|
* @param data
|
|
46
|
+
* @param config
|
|
41
47
|
*/
|
|
42
|
-
static updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
48
|
+
static updateTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
43
49
|
/**
|
|
44
50
|
* This endpoint patches a specific tag.
|
|
45
51
|
* @param id
|
|
46
52
|
* @param data
|
|
53
|
+
* @param config
|
|
47
54
|
*/
|
|
48
|
-
static patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
55
|
+
static patchTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
49
56
|
/**
|
|
50
57
|
* This endpoint assigns a tag to a user or to a category.
|
|
51
58
|
* One param between "user" and "category" need to be passed to this endpoint.
|
|
52
59
|
* @param id
|
|
53
60
|
* @param user
|
|
54
61
|
* @param category
|
|
62
|
+
* @param config
|
|
55
63
|
*/
|
|
56
|
-
static assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
64
|
+
static assignATag(id: number, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
67
|
*
|
|
60
|
-
:::tipTag service can be used in the following
|
|
68
|
+
:::tipTag service can be used in the following way:
|
|
61
69
|
|
|
62
70
|
```jsx
|
|
63
71
|
1. Import the service from our library:
|
|
@@ -79,15 +87,24 @@ export declare class TagApiClient {
|
|
|
79
87
|
return await TagService.getSpecificTag(tagId);
|
|
80
88
|
}
|
|
81
89
|
```
|
|
90
|
+
```jsx
|
|
91
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
92
|
+
|
|
93
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
94
|
+
|
|
95
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
96
|
+
|
|
97
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
98
|
+
```
|
|
82
99
|
:::
|
|
83
100
|
*/
|
|
84
101
|
export default class TagService {
|
|
85
|
-
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
86
|
-
static createTag(data: TagParams): Promise<SCTagType>;
|
|
87
|
-
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
88
|
-
static getSpecificTag(id: number): Promise<SCTagType>;
|
|
89
|
-
static updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
90
|
-
static patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
91
|
-
static assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
102
|
+
static getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
103
|
+
static createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
104
|
+
static searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
105
|
+
static getSpecificTag(id: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
106
|
+
static updateTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
107
|
+
static patchTag(id: number, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
108
|
+
static assignATag(id: number, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
92
109
|
}
|
|
93
110
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IACxG,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5E,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IACvG,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5E,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACzF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
25
25
|
* @param params
|
|
26
|
+
* @param config
|
|
26
27
|
*/
|
|
27
|
-
static getAllTags(params) {
|
|
28
|
+
static getAllTags(params, config) {
|
|
28
29
|
const p = new URLSearchParams(params);
|
|
29
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.TagsList.url({})}?${p.toString()}`, Endpoints_1.default.TagsList.method);
|
|
30
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.TagsList.url({})}?${p.toString()}`, method: Endpoints_1.default.TagsList.method }));
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* This endpoint creates a tag
|
|
33
34
|
* @param data
|
|
35
|
+
* @param config
|
|
34
36
|
*/
|
|
35
|
-
static createTag(data) {
|
|
36
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CreateTag.url({}), Endpoints_1.default.CreateTag.method, data);
|
|
37
|
+
static createTag(data, config) {
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CreateTag.url({}), method: Endpoints_1.default.CreateTag.method, data: data }));
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* This endpoint performs tag search.
|
|
40
42
|
* @param params
|
|
43
|
+
* @param config
|
|
41
44
|
*/
|
|
42
|
-
static searchTag(params) {
|
|
45
|
+
static searchTag(params, config) {
|
|
43
46
|
const p = new URLSearchParams(params);
|
|
44
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.SearchTag.url({})}?${p.toString()}`, Endpoints_1.default.SearchTag.method);
|
|
47
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchTag.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchTag.method }));
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
50
|
* This endpoint retrieves a specific tag.
|
|
48
51
|
* @param id
|
|
52
|
+
* @param config
|
|
49
53
|
*/
|
|
50
|
-
static getSpecificTag(id) {
|
|
51
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Tag.url({ id }), Endpoints_1.default.Tag.method);
|
|
54
|
+
static getSpecificTag(id, config) {
|
|
55
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Tag.url({ id }), method: Endpoints_1.default.Tag.method }));
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* This endpoint updates a specific tag.
|
|
55
59
|
* @param id
|
|
56
60
|
* @param data
|
|
61
|
+
* @param config
|
|
57
62
|
*/
|
|
58
|
-
static updateTag(id, data) {
|
|
59
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UpdateTag.url({ id }), Endpoints_1.default.UpdateTag.method, data !== null && data !== void 0 ? data : null);
|
|
63
|
+
static updateTag(id, data, config) {
|
|
64
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdateTag.url({ id }), method: Endpoints_1.default.UpdateTag.method, data: data !== null && data !== void 0 ? data : null }));
|
|
60
65
|
}
|
|
61
66
|
/**
|
|
62
67
|
* This endpoint patches a specific tag.
|
|
63
68
|
* @param id
|
|
64
69
|
* @param data
|
|
70
|
+
* @param config
|
|
65
71
|
*/
|
|
66
|
-
static patchTag(id, data) {
|
|
67
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PatchTag.url({ id }), Endpoints_1.default.PatchTag.method, data !== null && data !== void 0 ? data : null);
|
|
72
|
+
static patchTag(id, data, config) {
|
|
73
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.PatchTag.url({ id }), method: Endpoints_1.default.PatchTag.method, data: data !== null && data !== void 0 ? data : null }));
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* This endpoint assigns a tag to a user or to a category.
|
|
@@ -72,15 +78,16 @@ class TagApiClient {
|
|
|
72
78
|
* @param id
|
|
73
79
|
* @param user
|
|
74
80
|
* @param category
|
|
81
|
+
* @param config
|
|
75
82
|
*/
|
|
76
|
-
static assignATag(id, user, category) {
|
|
77
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.AssignTag.url({ id }), Endpoints_1.default.AssignTag.method, user ? { user: user } : { category: category });
|
|
83
|
+
static assignATag(id, user, category, config) {
|
|
84
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.AssignTag.url({ id }), method: Endpoints_1.default.AssignTag.method, data: user ? { user: user } : { category: category } }));
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
exports.TagApiClient = TagApiClient;
|
|
81
88
|
/**
|
|
82
89
|
*
|
|
83
|
-
:::tipTag service can be used in the following
|
|
90
|
+
:::tipTag service can be used in the following way:
|
|
84
91
|
|
|
85
92
|
```jsx
|
|
86
93
|
1. Import the service from our library:
|
|
@@ -102,42 +109,51 @@ exports.TagApiClient = TagApiClient;
|
|
|
102
109
|
return await TagService.getSpecificTag(tagId);
|
|
103
110
|
}
|
|
104
111
|
```
|
|
112
|
+
```jsx
|
|
113
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
114
|
+
|
|
115
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
116
|
+
|
|
117
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
118
|
+
|
|
119
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
120
|
+
```
|
|
105
121
|
:::
|
|
106
122
|
*/
|
|
107
123
|
class TagService {
|
|
108
|
-
static getAllTags(params) {
|
|
124
|
+
static getAllTags(params, config) {
|
|
109
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
return TagApiClient.getAllTags(params);
|
|
126
|
+
return TagApiClient.getAllTags(params, config);
|
|
111
127
|
});
|
|
112
128
|
}
|
|
113
|
-
static createTag(data) {
|
|
129
|
+
static createTag(data, config) {
|
|
114
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
return TagApiClient.createTag(data);
|
|
131
|
+
return TagApiClient.createTag(data, config);
|
|
116
132
|
});
|
|
117
133
|
}
|
|
118
|
-
static searchTag(params) {
|
|
134
|
+
static searchTag(params, config) {
|
|
119
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
return TagApiClient.searchTag(params);
|
|
136
|
+
return TagApiClient.searchTag(params, config);
|
|
121
137
|
});
|
|
122
138
|
}
|
|
123
|
-
static getSpecificTag(id) {
|
|
139
|
+
static getSpecificTag(id, config) {
|
|
124
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
return TagApiClient.getSpecificTag(id);
|
|
141
|
+
return TagApiClient.getSpecificTag(id, config);
|
|
126
142
|
});
|
|
127
143
|
}
|
|
128
|
-
static updateTag(id, data) {
|
|
144
|
+
static updateTag(id, data, config) {
|
|
129
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
return TagApiClient.updateTag(id, data);
|
|
146
|
+
return TagApiClient.updateTag(id, data, config);
|
|
131
147
|
});
|
|
132
148
|
}
|
|
133
|
-
static patchTag(id, data) {
|
|
149
|
+
static patchTag(id, data, config) {
|
|
134
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
return TagApiClient.patchTag(id, data);
|
|
151
|
+
return TagApiClient.patchTag(id, data, config);
|
|
136
152
|
});
|
|
137
153
|
}
|
|
138
|
-
static assignATag(id, user, category) {
|
|
154
|
+
static assignATag(id, user, category, config) {
|
|
139
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
return TagApiClient.assignATag(id, user, category);
|
|
156
|
+
return TagApiClient.assignATag(id, user, category, config);
|
|
141
157
|
});
|
|
142
158
|
}
|
|
143
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAElD,0EAAkD;
|
|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