@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,13 +1,14 @@
|
|
|
1
1
|
import { IncubatorCreateParams, IncubatorSearchParams, SCPaginatedResponse } from '../../types';
|
|
2
2
|
import { SCIncubatorSubscriptionType, SCIncubatorType, SCUserType } from '@selfcommunity/types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface IncubatorApiClientInterface {
|
|
4
|
-
getAllIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
5
|
-
searchIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
6
|
-
getSpecificIncubator(id: number): Promise<SCIncubatorType>;
|
|
7
|
-
createIncubator(data: IncubatorCreateParams): Promise<SCIncubatorType>;
|
|
8
|
-
getIncubatorSubscribers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
9
|
-
subscribeToIncubator(id: number): Promise<any>;
|
|
10
|
-
checkIncubatorSubscription(id: number): Promise<SCIncubatorSubscriptionType>;
|
|
5
|
+
getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
6
|
+
searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
7
|
+
getSpecificIncubator(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
8
|
+
createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
9
|
+
getIncubatorSubscribers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
10
|
+
subscribeToIncubator(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
11
|
+
checkIncubatorSubscription(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType>;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Contains all the endpoints needed to manage incubators.
|
|
@@ -16,42 +17,49 @@ export declare class IncubatorApiClient {
|
|
|
16
17
|
/**
|
|
17
18
|
* This endpoint retrieves all incubators.
|
|
18
19
|
* @param params
|
|
20
|
+
* @param config
|
|
19
21
|
*/
|
|
20
|
-
static getAllIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
22
|
+
static getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
21
23
|
/**
|
|
22
24
|
* This endpoint performs search od Incubators
|
|
23
25
|
* @param params
|
|
26
|
+
* @param config
|
|
24
27
|
*/
|
|
25
|
-
static searchIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
28
|
+
static searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
26
29
|
/**
|
|
27
30
|
* This endpoint retrieves a specific incubator.
|
|
28
31
|
* @param id
|
|
32
|
+
* @param config
|
|
29
33
|
*/
|
|
30
|
-
static getSpecificIncubator(id: number): Promise<SCIncubatorType>;
|
|
34
|
+
static getSpecificIncubator(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
31
35
|
/**
|
|
32
36
|
* This endpoint creates an incubator.
|
|
33
37
|
* @param data
|
|
38
|
+
* @param config
|
|
34
39
|
*/
|
|
35
|
-
static createIncubator(data: IncubatorCreateParams): Promise<SCIncubatorType>;
|
|
40
|
+
static createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
36
41
|
/**
|
|
37
42
|
* This endpoint returns all subscribers of a specific incubator.
|
|
38
43
|
* @param id
|
|
44
|
+
* @param config
|
|
39
45
|
*/
|
|
40
|
-
static getIncubatorSubscribers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
46
|
+
static getIncubatorSubscribers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
41
47
|
/**
|
|
42
48
|
* This endpoint subscribes to an incubator.
|
|
43
49
|
* @param id
|
|
50
|
+
* @param config
|
|
44
51
|
*/
|
|
45
|
-
static subscribeToIncubator(id: number): Promise<any>;
|
|
52
|
+
static subscribeToIncubator(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
46
53
|
/**
|
|
47
54
|
* This endpoint returns subscribed = true if the incubator (identified in path) is subscribed by the authenticated user.
|
|
48
55
|
* @param id
|
|
56
|
+
* @param config
|
|
49
57
|
*/
|
|
50
|
-
static checkIncubatorSubscription(id: number): Promise<SCIncubatorSubscriptionType>;
|
|
58
|
+
static checkIncubatorSubscription(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType>;
|
|
51
59
|
}
|
|
52
60
|
/**
|
|
53
61
|
*
|
|
54
|
-
:::tipIncubator service can be used in the following
|
|
62
|
+
:::tipIncubator service can be used in the following way:
|
|
55
63
|
|
|
56
64
|
```jsx
|
|
57
65
|
1. Import the service from our library:
|
|
@@ -73,15 +81,24 @@ export declare class IncubatorApiClient {
|
|
|
73
81
|
return await IncubatorService.getSpecificIncubator(incubatorId);
|
|
74
82
|
}
|
|
75
83
|
```
|
|
84
|
+
```jsx
|
|
85
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
86
|
+
|
|
87
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
88
|
+
|
|
89
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
90
|
+
|
|
91
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
92
|
+
```
|
|
76
93
|
:::
|
|
77
94
|
*/
|
|
78
95
|
export default class IncubatorService {
|
|
79
|
-
static getAllIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
80
|
-
static searchIncubators(params?: IncubatorSearchParams): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
81
|
-
static getSpecificIncubator(id: number): Promise<SCIncubatorType>;
|
|
82
|
-
static createIncubator(data: IncubatorCreateParams): Promise<SCIncubatorType>;
|
|
83
|
-
static getIncubatorSubscribers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
|
|
84
|
-
static subscribeToIncubator(id: number): Promise<any>;
|
|
85
|
-
static checkIncubatorSubscription(id: number): Promise<SCIncubatorSubscriptionType>;
|
|
96
|
+
static getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
97
|
+
static searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
98
|
+
static getSpecificIncubator(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
99
|
+
static createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType>;
|
|
100
|
+
static getIncubatorSubscribers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
101
|
+
static subscribeToIncubator(id: number, config?: AxiosRequestConfig): Promise<any>;
|
|
102
|
+
static checkIncubatorSubscription(id: number, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType>;
|
|
86
103
|
}
|
|
87
104
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAG9F,OAAO,EAAC,2BAA2B,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAG9F,OAAO,EAAC,2BAA2B,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,2BAA2B;IAC1C,gBAAgB,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7H,gBAAgB,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7H,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACxF,eAAe,CAAC,IAAI,EAAE,qBAAq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|
|
25
26
|
*/
|
|
26
|
-
static getAllIncubators(params) {
|
|
27
|
+
static getAllIncubators(params, config) {
|
|
27
28
|
const p = new URLSearchParams(params);
|
|
28
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.GetAllIncubators.url({})}?${p.toString()}`, Endpoints_1.default.GetAllIncubators.method);
|
|
29
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetAllIncubators.url({})}?${p.toString()}`, method: Endpoints_1.default.GetAllIncubators.method }));
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* This endpoint performs search od Incubators
|
|
32
33
|
* @param params
|
|
34
|
+
* @param config
|
|
33
35
|
*/
|
|
34
|
-
static searchIncubators(params) {
|
|
36
|
+
static searchIncubators(params, config) {
|
|
35
37
|
const p = new URLSearchParams(params);
|
|
36
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.SearchIncubators.url({})}?${p.toString()}`, Endpoints_1.default.SearchIncubators.method);
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchIncubators.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchIncubators.method }));
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* This endpoint retrieves a specific incubator.
|
|
40
42
|
* @param id
|
|
43
|
+
* @param config
|
|
41
44
|
*/
|
|
42
|
-
static getSpecificIncubator(id) {
|
|
43
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetASpecificIncubator.url({ id }), Endpoints_1.default.GetASpecificIncubator.method);
|
|
45
|
+
static getSpecificIncubator(id, config) {
|
|
46
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetASpecificIncubator.url({ id }), method: Endpoints_1.default.GetASpecificIncubator.method }));
|
|
44
47
|
}
|
|
45
48
|
/**
|
|
46
49
|
* This endpoint creates an incubator.
|
|
47
50
|
* @param data
|
|
51
|
+
* @param config
|
|
48
52
|
*/
|
|
49
|
-
static createIncubator(data) {
|
|
50
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CreateAnIncubator.url({}), Endpoints_1.default.CreateAnIncubator.method, data);
|
|
53
|
+
static createIncubator(data, config) {
|
|
54
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CreateAnIncubator.url({}), method: Endpoints_1.default.CreateAnIncubator.method, data: data }));
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
57
|
* This endpoint returns all subscribers of a specific incubator.
|
|
54
58
|
* @param id
|
|
59
|
+
* @param config
|
|
55
60
|
*/
|
|
56
|
-
static getIncubatorSubscribers(id) {
|
|
57
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetIncubatorSubscribers.url({ id }), Endpoints_1.default.GetIncubatorSubscribers.method);
|
|
61
|
+
static getIncubatorSubscribers(id, config) {
|
|
62
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetIncubatorSubscribers.url({ id }), method: Endpoints_1.default.GetIncubatorSubscribers.method }));
|
|
58
63
|
}
|
|
59
64
|
/**
|
|
60
65
|
* This endpoint subscribes to an incubator.
|
|
61
66
|
* @param id
|
|
67
|
+
* @param config
|
|
62
68
|
*/
|
|
63
|
-
static subscribeToIncubator(id) {
|
|
64
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SubscribeToIncubator.url({ id }), Endpoints_1.default.SubscribeToIncubator.method);
|
|
69
|
+
static subscribeToIncubator(id, config) {
|
|
70
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.SubscribeToIncubator.url({ id }), method: Endpoints_1.default.SubscribeToIncubator.method }));
|
|
65
71
|
}
|
|
66
72
|
/**
|
|
67
73
|
* This endpoint returns subscribed = true if the incubator (identified in path) is subscribed by the authenticated user.
|
|
68
74
|
* @param id
|
|
75
|
+
* @param config
|
|
69
76
|
*/
|
|
70
|
-
static checkIncubatorSubscription(id) {
|
|
71
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckIncubatorSubscription.url({ id }), Endpoints_1.default.CheckIncubatorSubscription.method);
|
|
77
|
+
static checkIncubatorSubscription(id, config) {
|
|
78
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckIncubatorSubscription.url({ id }), method: Endpoints_1.default.CheckIncubatorSubscription.method }));
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
exports.IncubatorApiClient = IncubatorApiClient;
|
|
75
82
|
/**
|
|
76
83
|
*
|
|
77
|
-
:::tipIncubator service can be used in the following
|
|
84
|
+
:::tipIncubator service can be used in the following way:
|
|
78
85
|
|
|
79
86
|
```jsx
|
|
80
87
|
1. Import the service from our library:
|
|
@@ -96,42 +103,51 @@ exports.IncubatorApiClient = IncubatorApiClient;
|
|
|
96
103
|
return await IncubatorService.getSpecificIncubator(incubatorId);
|
|
97
104
|
}
|
|
98
105
|
```
|
|
106
|
+
```jsx
|
|
107
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
108
|
+
|
|
109
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
110
|
+
|
|
111
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
112
|
+
|
|
113
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
114
|
+
```
|
|
99
115
|
:::
|
|
100
116
|
*/
|
|
101
117
|
class IncubatorService {
|
|
102
|
-
static getAllIncubators(params) {
|
|
118
|
+
static getAllIncubators(params, config) {
|
|
103
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
return IncubatorApiClient.getAllIncubators(params);
|
|
120
|
+
return IncubatorApiClient.getAllIncubators(params, config);
|
|
105
121
|
});
|
|
106
122
|
}
|
|
107
|
-
static searchIncubators(params) {
|
|
123
|
+
static searchIncubators(params, config) {
|
|
108
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return IncubatorApiClient.searchIncubators(params);
|
|
125
|
+
return IncubatorApiClient.searchIncubators(params, config);
|
|
110
126
|
});
|
|
111
127
|
}
|
|
112
|
-
static getSpecificIncubator(id) {
|
|
128
|
+
static getSpecificIncubator(id, config) {
|
|
113
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
return IncubatorApiClient.getSpecificIncubator(id);
|
|
130
|
+
return IncubatorApiClient.getSpecificIncubator(id, config);
|
|
115
131
|
});
|
|
116
132
|
}
|
|
117
|
-
static createIncubator(data) {
|
|
133
|
+
static createIncubator(data, config) {
|
|
118
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
return IncubatorApiClient.createIncubator(data);
|
|
135
|
+
return IncubatorApiClient.createIncubator(data, config);
|
|
120
136
|
});
|
|
121
137
|
}
|
|
122
|
-
static getIncubatorSubscribers(id) {
|
|
138
|
+
static getIncubatorSubscribers(id, config) {
|
|
123
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
return IncubatorApiClient.getIncubatorSubscribers(id);
|
|
140
|
+
return IncubatorApiClient.getIncubatorSubscribers(id, config);
|
|
125
141
|
});
|
|
126
142
|
}
|
|
127
|
-
static subscribeToIncubator(id) {
|
|
143
|
+
static subscribeToIncubator(id, config) {
|
|
128
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
return IncubatorApiClient.subscribeToIncubator(id);
|
|
145
|
+
return IncubatorApiClient.subscribeToIncubator(id, config);
|
|
130
146
|
});
|
|
131
147
|
}
|
|
132
|
-
static checkIncubatorSubscription(id) {
|
|
148
|
+
static checkIncubatorSubscription(id, config) {
|
|
133
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
return IncubatorApiClient.checkIncubatorSubscription(id);
|
|
150
|
+
return IncubatorApiClient.checkIncubatorSubscription(id, config);
|
|
135
151
|
});
|
|
136
152
|
}
|
|
137
153
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uDAAkD;AAClD,0EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uDAAkD;AAClD,0EAAkD;AAalD;;GAEG;AAEH,MAAa,kBAAkB;IAC7B;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAA8B,EAAE,MAA2B;QACjF,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,mBAAS,CAAC,gBAAgB,CAAC,MAAM,IAAE,CAAC;IAC1I,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAA8B,EAAE,MAA2B;QACjF,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,mBAAS,CAAC,gBAAgB,CAAC,MAAM,IAAE,CAAC;IAC1I,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,EAAU,EAAE,MAA2B;QACjE,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAC,EAAE,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAS,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,MAA8B,EAAE,MAA2B;;YACvF,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;IAED,MAAM,CAAO,gBAAgB,CAAC,MAA8B,EAAE,MAA2B;;YACvF,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;IAED,MAAM,CAAO,oBAAoB,CAAC,EAAU,EAAE,MAA2B;;YACvE,OAAO,kBAAkB,CAAC,oBAAoB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;IACD,MAAM,CAAO,eAAe,CAAC,IAA2B,EAAE,MAA2B;;YACnF,OAAO,kBAAkB,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1D,CAAC;KAAA;IAED,MAAM,CAAO,uBAAuB,CAAC,EAAU,EAAE,MAA2B;;YAC1E,OAAO,kBAAkB,CAAC,uBAAuB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAChE,CAAC;KAAA;IAED,MAAM,CAAO,oBAAoB,CAAC,EAAU,EAAE,MAA2B;;YACvE,OAAO,kBAAkB,CAAC,oBAAoB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;IAED,MAAM,CAAO,0BAA0B,CAAC,EAAU,EAAE,MAA2B;;YAC7E,OAAO,kBAAkB,CAAC,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACnE,CAAC;KAAA;CACF;AA3BD,mCA2BC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { InsightContributionParams, InsightEmbedParams, InsightUserParams, SCPaginatedResponse } from '../../types';
|
|
2
2
|
import { SCContributionInsightCountersType, SCContributionInsightType, SCEmbedInsightCountersType, SCEmbedInsightType, SCUsersInsightCountersType, SCUsersInsightType } from '@selfcommunity/types';
|
|
3
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
export interface InsightApiClientInterface {
|
|
4
|
-
getBestContributionInsight(params?: InsightContributionParams): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
5
|
-
getBestEmbedInsight(params?: InsightEmbedParams): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
6
|
-
getBestUsersInsight(params?: InsightUserParams): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
7
|
-
getContributionsInsightCounters(id: number): Promise<SCContributionInsightCountersType>;
|
|
8
|
-
getEmbedsInsightCounters(type: string, id: number): Promise<SCEmbedInsightCountersType>;
|
|
9
|
-
getUsersInsightCounters(id: number): Promise<SCUsersInsightCountersType>;
|
|
5
|
+
getBestContributionInsight(params?: InsightContributionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
6
|
+
getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
7
|
+
getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
8
|
+
getContributionsInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType>;
|
|
9
|
+
getEmbedsInsightCounters(type: string, id: number, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType>;
|
|
10
|
+
getUsersInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType>;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Contains all the endpoints needed to manage insights.
|
|
@@ -15,38 +16,44 @@ export declare class InsightApiClient {
|
|
|
15
16
|
/**
|
|
16
17
|
* This endpoint retrieves the best contribution insights list.
|
|
17
18
|
* @param params
|
|
19
|
+
* @param config
|
|
18
20
|
*/
|
|
19
|
-
static getBestContributionInsight(params?: InsightContributionParams): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
21
|
+
static getBestContributionInsight(params?: InsightContributionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
20
22
|
/**
|
|
21
23
|
* This endpoint retrieves the best embed insights list. The operations of this endpoint is quite complex and returns different result structures based on the parameters passed. For example, pagination (and therefore the use of the offset parameter) is guaranteed only if the metadata and group_by parameter are not passed. If you are passing metadata you MUST pass also group_by. If you pass group_by the result will be not paginated and will contain only user defined custom embeds (not among these: 'sc_vimeo', 'sc_link', 'sc_shared_object').
|
|
22
24
|
* @param params
|
|
25
|
+
* @param config
|
|
23
26
|
*/
|
|
24
|
-
static getBestEmbedInsight(params?: InsightEmbedParams): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
27
|
+
static getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
25
28
|
/**
|
|
26
29
|
* This endpoint retrieves the best users insights list.
|
|
27
30
|
* @param params
|
|
31
|
+
* @param config
|
|
28
32
|
*/
|
|
29
|
-
static getBestUsersInsight(params?: InsightUserParams): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
33
|
+
static getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
30
34
|
/**
|
|
31
35
|
* This endpoint retrieves a specific contribution's insight counters.
|
|
32
36
|
* @param id
|
|
37
|
+
* @param config
|
|
33
38
|
*/
|
|
34
|
-
static getContributionsInsightCounters(id: number): Promise<SCContributionInsightCountersType>;
|
|
39
|
+
static getContributionsInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType>;
|
|
35
40
|
/**
|
|
36
41
|
* This endpoint retrieves a specific embed's insight counters.
|
|
37
42
|
* @param type
|
|
38
43
|
* @param id
|
|
44
|
+
* @param config
|
|
39
45
|
*/
|
|
40
|
-
static getEmbedsInsightCounters(type: string, id: number): Promise<SCEmbedInsightCountersType>;
|
|
46
|
+
static getEmbedsInsightCounters(type: string, id: number, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType>;
|
|
41
47
|
/**
|
|
42
48
|
* This endpoint retrieves a specific user's insight counters.
|
|
43
49
|
* @param id
|
|
50
|
+
* @param config
|
|
44
51
|
*/
|
|
45
|
-
static getUsersInsightCounters(id: number): Promise<SCUsersInsightCountersType>;
|
|
52
|
+
static getUsersInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType>;
|
|
46
53
|
}
|
|
47
54
|
/**
|
|
48
55
|
*
|
|
49
|
-
:::tipInsight service can be used in the following
|
|
56
|
+
:::tipInsight service can be used in the following way:
|
|
50
57
|
|
|
51
58
|
```jsx
|
|
52
59
|
1. Import the service from our library:
|
|
@@ -68,14 +75,23 @@ export declare class InsightApiClient {
|
|
|
68
75
|
return await InsightService.getEmbedsInsightCounters(embedType, embedId);
|
|
69
76
|
}
|
|
70
77
|
```
|
|
78
|
+
```jsx
|
|
79
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
80
|
+
|
|
81
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
82
|
+
|
|
83
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
84
|
+
|
|
85
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
86
|
+
```
|
|
71
87
|
:::
|
|
72
88
|
*/
|
|
73
89
|
export default class InsightService {
|
|
74
|
-
static getBestContributionInsight(params?: InsightContributionParams): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
75
|
-
static getBestEmbedInsight(params?: InsightEmbedParams): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
76
|
-
static getBestUsersInsight(params?: InsightUserParams): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
77
|
-
static getContributionsInsightCounters(id: number): Promise<SCContributionInsightCountersType>;
|
|
78
|
-
static getEmbedsInsightCounters(type: string, id: number): Promise<SCEmbedInsightCountersType>;
|
|
79
|
-
static getUsersInsightCounters(id: number): Promise<SCUsersInsightCountersType>;
|
|
90
|
+
static getBestContributionInsight(params?: InsightContributionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCContributionInsightType>>;
|
|
91
|
+
static getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>>;
|
|
92
|
+
static getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>>;
|
|
93
|
+
static getContributionsInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType>;
|
|
94
|
+
static getEmbedsInsightCounters(type: string, id: number, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType>;
|
|
95
|
+
static getUsersInsightCounters(id: number, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType>;
|
|
80
96
|
}
|
|
81
97
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGlH,OAAO,EACL,iCAAiC,EACjC,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGlH,OAAO,EACL,iCAAiC,EACjC,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,kBAAkB,EAAC,MAAM,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,0BAA0B,CAAC;WAIpH,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAGnH"}
|
|
@@ -22,54 +22,60 @@ class InsightApiClient {
|
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint retrieves the best contribution insights list.
|
|
24
24
|
* @param params
|
|
25
|
+
* @param config
|
|
25
26
|
*/
|
|
26
|
-
static getBestContributionInsight(params) {
|
|
27
|
+
static getBestContributionInsight(params, config) {
|
|
27
28
|
const p = new URLSearchParams(params);
|
|
28
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.InsightBestContribution.url({})}?${p.toString()}`, Endpoints_1.default.InsightBestContribution.method);
|
|
29
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.InsightBestContribution.url({})}?${p.toString()}`, method: Endpoints_1.default.InsightBestContribution.method }));
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* This endpoint retrieves the best embed insights list. The operations of this endpoint is quite complex and returns different result structures based on the parameters passed. For example, pagination (and therefore the use of the offset parameter) is guaranteed only if the metadata and group_by parameter are not passed. If you are passing metadata you MUST pass also group_by. If you pass group_by the result will be not paginated and will contain only user defined custom embeds (not among these: 'sc_vimeo', 'sc_link', 'sc_shared_object').
|
|
32
33
|
* @param params
|
|
34
|
+
* @param config
|
|
33
35
|
*/
|
|
34
|
-
static getBestEmbedInsight(params) {
|
|
36
|
+
static getBestEmbedInsight(params, config) {
|
|
35
37
|
const p = new URLSearchParams(params);
|
|
36
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.InsightBestEmbed.url({})}?${p.toString()}`, Endpoints_1.default.InsightBestEmbed.method);
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.InsightBestEmbed.url({})}?${p.toString()}`, method: Endpoints_1.default.InsightBestEmbed.method }));
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* This endpoint retrieves the best users insights list.
|
|
40
42
|
* @param params
|
|
43
|
+
* @param config
|
|
41
44
|
*/
|
|
42
|
-
static getBestUsersInsight(params) {
|
|
45
|
+
static getBestUsersInsight(params, config) {
|
|
43
46
|
const p = new URLSearchParams(params);
|
|
44
|
-
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.InsightBestUser.url({})}?${p.toString()}`, Endpoints_1.default.InsightBestUser.method);
|
|
47
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.InsightBestUser.url({})}?${p.toString()}`, method: Endpoints_1.default.InsightBestUser.method }));
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
50
|
* This endpoint retrieves a specific contribution's insight counters.
|
|
48
51
|
* @param id
|
|
52
|
+
* @param config
|
|
49
53
|
*/
|
|
50
|
-
static getContributionsInsightCounters(id) {
|
|
51
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.InsightContributionCounter.url({ id }), Endpoints_1.default.InsightContributionCounter.method);
|
|
54
|
+
static getContributionsInsightCounters(id, config) {
|
|
55
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.InsightContributionCounter.url({ id }), method: Endpoints_1.default.InsightContributionCounter.method }));
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* This endpoint retrieves a specific embed's insight counters.
|
|
55
59
|
* @param type
|
|
56
60
|
* @param id
|
|
61
|
+
* @param config
|
|
57
62
|
*/
|
|
58
|
-
static getEmbedsInsightCounters(type, id) {
|
|
59
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.InsightEmbedCounter.url({ type, id }), Endpoints_1.default.InsightEmbedCounter.method);
|
|
63
|
+
static getEmbedsInsightCounters(type, id, config) {
|
|
64
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.InsightEmbedCounter.url({ type, id }), method: Endpoints_1.default.InsightEmbedCounter.method }));
|
|
60
65
|
}
|
|
61
66
|
/**
|
|
62
67
|
* This endpoint retrieves a specific user's insight counters.
|
|
63
68
|
* @param id
|
|
69
|
+
* @param config
|
|
64
70
|
*/
|
|
65
|
-
static getUsersInsightCounters(id) {
|
|
66
|
-
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.InsightUserCounter.url({ id }), Endpoints_1.default.InsightUserCounter.method);
|
|
71
|
+
static getUsersInsightCounters(id, config) {
|
|
72
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.InsightUserCounter.url({ id }), method: Endpoints_1.default.InsightUserCounter.method }));
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
75
|
exports.InsightApiClient = InsightApiClient;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
|
-
:::tipInsight service can be used in the following
|
|
78
|
+
:::tipInsight service can be used in the following way:
|
|
73
79
|
|
|
74
80
|
```jsx
|
|
75
81
|
1. Import the service from our library:
|
|
@@ -91,37 +97,46 @@ exports.InsightApiClient = InsightApiClient;
|
|
|
91
97
|
return await InsightService.getEmbedsInsightCounters(embedType, embedId);
|
|
92
98
|
}
|
|
93
99
|
```
|
|
100
|
+
```jsx
|
|
101
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
102
|
+
|
|
103
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
104
|
+
|
|
105
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
106
|
+
|
|
107
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
108
|
+
```
|
|
94
109
|
:::
|
|
95
110
|
*/
|
|
96
111
|
class InsightService {
|
|
97
|
-
static getBestContributionInsight(params) {
|
|
112
|
+
static getBestContributionInsight(params, config) {
|
|
98
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
return InsightApiClient.getBestContributionInsight(params);
|
|
114
|
+
return InsightApiClient.getBestContributionInsight(params, config);
|
|
100
115
|
});
|
|
101
116
|
}
|
|
102
|
-
static getBestEmbedInsight(params) {
|
|
117
|
+
static getBestEmbedInsight(params, config) {
|
|
103
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
return InsightApiClient.getBestEmbedInsight(params);
|
|
119
|
+
return InsightApiClient.getBestEmbedInsight(params, config);
|
|
105
120
|
});
|
|
106
121
|
}
|
|
107
|
-
static getBestUsersInsight(params) {
|
|
122
|
+
static getBestUsersInsight(params, config) {
|
|
108
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return InsightApiClient.getBestUsersInsight(params);
|
|
124
|
+
return InsightApiClient.getBestUsersInsight(params, config);
|
|
110
125
|
});
|
|
111
126
|
}
|
|
112
|
-
static getContributionsInsightCounters(id) {
|
|
127
|
+
static getContributionsInsightCounters(id, config) {
|
|
113
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
return InsightApiClient.getContributionsInsightCounters(id);
|
|
129
|
+
return InsightApiClient.getContributionsInsightCounters(id, config);
|
|
115
130
|
});
|
|
116
131
|
}
|
|
117
|
-
static getEmbedsInsightCounters(type, id) {
|
|
132
|
+
static getEmbedsInsightCounters(type, id, config) {
|
|
118
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
return InsightApiClient.getEmbedsInsightCounters(type, id);
|
|
134
|
+
return InsightApiClient.getEmbedsInsightCounters(type, id, config);
|
|
120
135
|
});
|
|
121
136
|
}
|
|
122
|
-
static getUsersInsightCounters(id) {
|
|
137
|
+
static getUsersInsightCounters(id, config) {
|
|
123
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
return InsightApiClient.getUsersInsightCounters(id);
|
|
139
|
+
return InsightApiClient.getUsersInsightCounters(id, config);
|
|
125
140
|
});
|
|
126
141
|
}
|
|
127
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uDAAkD;AAClD,0EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uDAAkD;AAClD,0EAAkD;AAsBlD;;GAEG;AAEH,MAAa,gBAAgB;IAC3B;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAC/B,MAAkC,EAClC,MAA2B;QAE3B,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCACZ,MAAM,KACT,GAAG,EAAE,GAAG,mBAAS,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EACnE,MAAM,EAAE,mBAAS,CAAC,uBAAuB,CAAC,MAAM,IAChD,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAA2B,EAAE,MAA2B;QACjF,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,mBAAS,CAAC,gBAAgB,CAAC,MAAM,IAAE,CAAC;IAC1I,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAA0B,EAAE,MAA2B;QAChF,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,GAAG,mBAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,MA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