@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"}
|
|
@@ -15,17 +15,19 @@ import Endpoints from '../../constants/Endpoints';
|
|
|
15
15
|
export class SSOApiClient {
|
|
16
16
|
/**
|
|
17
17
|
* This endpoint signs in the user authenticated with the access token.
|
|
18
|
+
* @param config
|
|
18
19
|
*/
|
|
19
|
-
static SignIn() {
|
|
20
|
-
return apiRequest(Endpoints.SignIn.url({}), Endpoints.SignIn.method);
|
|
20
|
+
static SignIn(config) {
|
|
21
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.SignIn.url({}), method: Endpoints.SignIn.method }));
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* This endpoint creates a new account.
|
|
24
25
|
* Only users with the admin role can register new users.
|
|
25
26
|
* @param data
|
|
27
|
+
* @param config
|
|
26
28
|
*/
|
|
27
|
-
static SignUp(data) {
|
|
28
|
-
return apiRequest(Endpoints.SignUp.url({}), Endpoints.SignUp.method, data);
|
|
29
|
+
static SignUp(data, config) {
|
|
30
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.SignUp.url({}), method: Endpoints.SignUp.method, data: data }));
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
@@ -46,17 +48,26 @@ export class SSOApiClient {
|
|
|
46
48
|
return await SSOService.SignUp(data);
|
|
47
49
|
}
|
|
48
50
|
```
|
|
51
|
+
```jsx
|
|
52
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
53
|
+
|
|
54
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
55
|
+
|
|
56
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
57
|
+
|
|
58
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
59
|
+
```
|
|
49
60
|
:::
|
|
50
61
|
*/
|
|
51
62
|
export default class SSOService {
|
|
52
|
-
static SignIn() {
|
|
63
|
+
static SignIn(config) {
|
|
53
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
return SSOApiClient.SignIn();
|
|
65
|
+
return SSOApiClient.SignIn(config);
|
|
55
66
|
});
|
|
56
67
|
}
|
|
57
|
-
static SignUp(data) {
|
|
68
|
+
static SignUp(data, config) {
|
|
58
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
return SSOApiClient.SignUp(data);
|
|
70
|
+
return SSOApiClient.SignUp(data, config);
|
|
60
71
|
});
|
|
61
72
|
}
|
|
62
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AASlD;;GAEG;AAEH,MAAM,OAAO,YAAY;IACvB;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,MAA2B;QACvC,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,IAAE,CAAC;IACjG,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,IAAqB,EAAE,MAA2B;QAC9D,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,IAAE,CAAC;IAC7G,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,OAAO,OAAO,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"}
|
|
@@ -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"}
|
|
@@ -15,27 +15,31 @@ import Endpoints from '../../constants/Endpoints';
|
|
|
15
15
|
export class SuggestionApiClient {
|
|
16
16
|
/**
|
|
17
17
|
* This endpoint retrieves a list of categories suggested to the current user.
|
|
18
|
+
* @param config
|
|
18
19
|
*/
|
|
19
|
-
static getCategorySuggestion() {
|
|
20
|
-
return apiRequest(Endpoints.CategoriesSuggestion.url({}), Endpoints.CategoriesSuggestion.method);
|
|
20
|
+
static getCategorySuggestion(config) {
|
|
21
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CategoriesSuggestion.url({}), method: Endpoints.CategoriesSuggestion.method }));
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* This endpoint retrieves a list of suggested incubators.
|
|
25
|
+
* @param config
|
|
24
26
|
*/
|
|
25
|
-
static getIncubatorSuggestion() {
|
|
26
|
-
return apiRequest(Endpoints.GetIncubatorSuggestion.url({}), Endpoints.GetIncubatorSuggestion.method);
|
|
27
|
+
static getIncubatorSuggestion(config) {
|
|
28
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.GetIncubatorSuggestion.url({}), method: Endpoints.GetIncubatorSuggestion.method }));
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
32
|
+
* @param config
|
|
30
33
|
*/
|
|
31
|
-
static getPollSuggestion() {
|
|
32
|
-
return apiRequest(Endpoints.PollSuggestion.url({}), Endpoints.PollSuggestion.method);
|
|
34
|
+
static getPollSuggestion(config) {
|
|
35
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.PollSuggestion.url({}), method: Endpoints.PollSuggestion.method }));
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
38
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
39
|
+
* @param config
|
|
36
40
|
*/
|
|
37
|
-
static getUserSuggestion() {
|
|
38
|
-
return apiRequest(Endpoints.UserSuggestion.url({}), Endpoints.UserSuggestion.method);
|
|
41
|
+
static getUserSuggestion(config) {
|
|
42
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserSuggestion.url({}), method: Endpoints.UserSuggestion.method }));
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
@@ -55,27 +59,36 @@ export class SuggestionApiClient {
|
|
|
55
59
|
return await SuggestionService.getCategorySuggestion();
|
|
56
60
|
}
|
|
57
61
|
```
|
|
62
|
+
```jsx
|
|
63
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
64
|
+
|
|
65
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
66
|
+
|
|
67
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
68
|
+
|
|
69
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
70
|
+
```
|
|
58
71
|
:::
|
|
59
72
|
*/
|
|
60
73
|
export default class SuggestionService {
|
|
61
|
-
static getCategorySuggestion() {
|
|
74
|
+
static getCategorySuggestion(config) {
|
|
62
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
return SuggestionApiClient.getCategorySuggestion();
|
|
76
|
+
return SuggestionApiClient.getCategorySuggestion(config);
|
|
64
77
|
});
|
|
65
78
|
}
|
|
66
|
-
static getIncubatorSuggestion() {
|
|
79
|
+
static getIncubatorSuggestion(config) {
|
|
67
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
return SuggestionApiClient.getIncubatorSuggestion();
|
|
81
|
+
return SuggestionApiClient.getIncubatorSuggestion(config);
|
|
69
82
|
});
|
|
70
83
|
}
|
|
71
|
-
static getPollSuggestion() {
|
|
84
|
+
static getPollSuggestion(config) {
|
|
72
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
return SuggestionApiClient.getPollSuggestion();
|
|
86
|
+
return SuggestionApiClient.getPollSuggestion(config);
|
|
74
87
|
});
|
|
75
88
|
}
|
|
76
|
-
static getUserSuggestion() {
|
|
89
|
+
static getUserSuggestion(config) {
|
|
77
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
return SuggestionApiClient.getUserSuggestion();
|
|
91
|
+
return SuggestionApiClient.getUserSuggestion(config);
|
|
79
92
|
});
|
|
80
93
|
}
|
|
81
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAWlD;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAC9B;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,MAA2B;QACtD,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,oBAAoB,CAAC,MAAM,IAAE,CAAC;IAC7H,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,MAA2B;QACvD,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,sBAAsB,CAAC,MAAM,IAAE,CAAC;IACjI,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAA2B;QAClD,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,IAAE,CAAC;IACjH,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAA2B;QAClD,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,IAAE,CAAC;IACjH,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,OAAO,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"}
|
|
@@ -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,mB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CAAC,OAAO,OAAO,UAAU;WAChB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;WAGvG,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;WAG3E,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;WAGtG,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;WAG3E,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;WAGxF,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;WAGvF,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;CAGvH"}
|
|
@@ -17,48 +17,54 @@ export class TagApiClient {
|
|
|
17
17
|
/**
|
|
18
18
|
* This endpoint retrieves all tags.
|
|
19
19
|
* @param params
|
|
20
|
+
* @param config
|
|
20
21
|
*/
|
|
21
|
-
static getAllTags(params) {
|
|
22
|
+
static getAllTags(params, config) {
|
|
22
23
|
const p = new URLSearchParams(params);
|
|
23
|
-
return apiRequest(`${Endpoints.TagsList.url({})}?${p.toString()}`, Endpoints.TagsList.method);
|
|
24
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.TagsList.url({})}?${p.toString()}`, method: Endpoints.TagsList.method }));
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* This endpoint creates a tag
|
|
27
28
|
* @param data
|
|
29
|
+
* @param config
|
|
28
30
|
*/
|
|
29
|
-
static createTag(data) {
|
|
30
|
-
return apiRequest(Endpoints.CreateTag.url({}), Endpoints.CreateTag.method, data);
|
|
31
|
+
static createTag(data, config) {
|
|
32
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CreateTag.url({}), method: Endpoints.CreateTag.method, data: data }));
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* This endpoint performs tag search.
|
|
34
36
|
* @param params
|
|
37
|
+
* @param config
|
|
35
38
|
*/
|
|
36
|
-
static searchTag(params) {
|
|
39
|
+
static searchTag(params, config) {
|
|
37
40
|
const p = new URLSearchParams(params);
|
|
38
|
-
return apiRequest(`${Endpoints.SearchTag.url({})}?${p.toString()}`, Endpoints.SearchTag.method);
|
|
41
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.SearchTag.url({})}?${p.toString()}`, method: Endpoints.SearchTag.method }));
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
44
|
* This endpoint retrieves a specific tag.
|
|
42
45
|
* @param id
|
|
46
|
+
* @param config
|
|
43
47
|
*/
|
|
44
|
-
static getSpecificTag(id) {
|
|
45
|
-
return apiRequest(Endpoints.Tag.url({ id }), Endpoints.Tag.method);
|
|
48
|
+
static getSpecificTag(id, config) {
|
|
49
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.Tag.url({ id }), method: Endpoints.Tag.method }));
|
|
46
50
|
}
|
|
47
51
|
/**
|
|
48
52
|
* This endpoint updates a specific tag.
|
|
49
53
|
* @param id
|
|
50
54
|
* @param data
|
|
55
|
+
* @param config
|
|
51
56
|
*/
|
|
52
|
-
static updateTag(id, data) {
|
|
53
|
-
return apiRequest(Endpoints.UpdateTag.url({ id }), Endpoints.UpdateTag.method, data !== null && data !== void 0 ? data : null);
|
|
57
|
+
static updateTag(id, data, config) {
|
|
58
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UpdateTag.url({ id }), method: Endpoints.UpdateTag.method, data: data !== null && data !== void 0 ? data : null }));
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
56
61
|
* This endpoint patches a specific tag.
|
|
57
62
|
* @param id
|
|
58
63
|
* @param data
|
|
64
|
+
* @param config
|
|
59
65
|
*/
|
|
60
|
-
static patchTag(id, data) {
|
|
61
|
-
return apiRequest(Endpoints.PatchTag.url({ id }), Endpoints.PatchTag.method, data !== null && data !== void 0 ? data : null);
|
|
66
|
+
static patchTag(id, data, config) {
|
|
67
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.PatchTag.url({ id }), method: Endpoints.PatchTag.method, data: data !== null && data !== void 0 ? data : null }));
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
64
70
|
* This endpoint assigns a tag to a user or to a category.
|
|
@@ -66,14 +72,15 @@ export class TagApiClient {
|
|
|
66
72
|
* @param id
|
|
67
73
|
* @param user
|
|
68
74
|
* @param category
|
|
75
|
+
* @param config
|
|
69
76
|
*/
|
|
70
|
-
static assignATag(id, user, category) {
|
|
71
|
-
return apiRequest(Endpoints.AssignTag.url({ id }), Endpoints.AssignTag.method, user ? { user: user } : { category: category });
|
|
77
|
+
static assignATag(id, user, category, config) {
|
|
78
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.AssignTag.url({ id }), method: Endpoints.AssignTag.method, data: user ? { user: user } : { category: category } }));
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
*
|
|
76
|
-
:::tipTag service can be used in the following
|
|
83
|
+
:::tipTag service can be used in the following way:
|
|
77
84
|
|
|
78
85
|
```jsx
|
|
79
86
|
1. Import the service from our library:
|
|
@@ -95,42 +102,51 @@ export class TagApiClient {
|
|
|
95
102
|
return await TagService.getSpecificTag(tagId);
|
|
96
103
|
}
|
|
97
104
|
```
|
|
105
|
+
```jsx
|
|
106
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
107
|
+
|
|
108
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
109
|
+
|
|
110
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
111
|
+
|
|
112
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
113
|
+
```
|
|
98
114
|
:::
|
|
99
115
|
*/
|
|
100
116
|
export default class TagService {
|
|
101
|
-
static getAllTags(params) {
|
|
117
|
+
static getAllTags(params, config) {
|
|
102
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
return TagApiClient.getAllTags(params);
|
|
119
|
+
return TagApiClient.getAllTags(params, config);
|
|
104
120
|
});
|
|
105
121
|
}
|
|
106
|
-
static createTag(data) {
|
|
122
|
+
static createTag(data, config) {
|
|
107
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
return TagApiClient.createTag(data);
|
|
124
|
+
return TagApiClient.createTag(data, config);
|
|
109
125
|
});
|
|
110
126
|
}
|
|
111
|
-
static searchTag(params) {
|
|
127
|
+
static searchTag(params, config) {
|
|
112
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
return TagApiClient.searchTag(params);
|
|
129
|
+
return TagApiClient.searchTag(params, config);
|
|
114
130
|
});
|
|
115
131
|
}
|
|
116
|
-
static getSpecificTag(id) {
|
|
132
|
+
static getSpecificTag(id, config) {
|
|
117
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
return TagApiClient.getSpecificTag(id);
|
|
134
|
+
return TagApiClient.getSpecificTag(id, config);
|
|
119
135
|
});
|
|
120
136
|
}
|
|
121
|
-
static updateTag(id, data) {
|
|
137
|
+
static updateTag(id, data, config) {
|
|
122
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
return TagApiClient.updateTag(id, data);
|
|
139
|
+
return TagApiClient.updateTag(id, data, config);
|
|
124
140
|
});
|
|
125
141
|
}
|
|
126
|
-
static patchTag(id, data) {
|
|
142
|
+
static patchTag(id, data, config) {
|
|
127
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
return TagApiClient.patchTag(id, data);
|
|
144
|
+
return TagApiClient.patchTag(id, data, config);
|
|
129
145
|
});
|
|
130
146
|
}
|
|
131
|
-
static assignATag(id, user, category) {
|
|
147
|
+
static assignATag(id, user, category, config) {
|
|
132
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
return TagApiClient.assignATag(id, user, category);
|
|
149
|
+
return TagApiClient.assignATag(id, user, category, config);
|
|
134
150
|
});
|
|
135
151
|
}
|
|
136
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAElD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAElD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAalD;;;GAGG;AACH,MAAM,OAAO,YAAY;IACvB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,MAAqB,EAAE,MAA2B;QAClE,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAE,CAAC;IAC1H,CAAC;IAED;;;;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