@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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
|
|
19
20
|
*/
|
|
20
|
-
static getAllIncubators(params) {
|
|
21
|
+
static getAllIncubators(params, config) {
|
|
21
22
|
const p = new URLSearchParams(params);
|
|
22
|
-
return apiRequest(`${Endpoints.GetAllIncubators.url({})}?${p.toString()}`, Endpoints.GetAllIncubators.method);
|
|
23
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetAllIncubators.url({})}?${p.toString()}`, method: Endpoints.GetAllIncubators.method }));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* This endpoint performs search od Incubators
|
|
26
27
|
* @param params
|
|
28
|
+
* @param config
|
|
27
29
|
*/
|
|
28
|
-
static searchIncubators(params) {
|
|
30
|
+
static searchIncubators(params, config) {
|
|
29
31
|
const p = new URLSearchParams(params);
|
|
30
|
-
return apiRequest(`${Endpoints.SearchIncubators.url({})}?${p.toString()}`, Endpoints.SearchIncubators.method);
|
|
32
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.SearchIncubators.url({})}?${p.toString()}`, method: Endpoints.SearchIncubators.method }));
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* This endpoint retrieves a specific incubator.
|
|
34
36
|
* @param id
|
|
37
|
+
* @param config
|
|
35
38
|
*/
|
|
36
|
-
static getSpecificIncubator(id) {
|
|
37
|
-
return apiRequest(Endpoints.GetASpecificIncubator.url({ id }), Endpoints.GetASpecificIncubator.method);
|
|
39
|
+
static getSpecificIncubator(id, config) {
|
|
40
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.GetASpecificIncubator.url({ id }), method: Endpoints.GetASpecificIncubator.method }));
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* This endpoint creates an incubator.
|
|
41
44
|
* @param data
|
|
45
|
+
* @param config
|
|
42
46
|
*/
|
|
43
|
-
static createIncubator(data) {
|
|
44
|
-
return apiRequest(Endpoints.CreateAnIncubator.url({}), Endpoints.CreateAnIncubator.method, data);
|
|
47
|
+
static createIncubator(data, config) {
|
|
48
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CreateAnIncubator.url({}), method: Endpoints.CreateAnIncubator.method, data: data }));
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* This endpoint returns all subscribers of a specific incubator.
|
|
48
52
|
* @param id
|
|
53
|
+
* @param config
|
|
49
54
|
*/
|
|
50
|
-
static getIncubatorSubscribers(id) {
|
|
51
|
-
return apiRequest(Endpoints.GetIncubatorSubscribers.url({ id }), Endpoints.GetIncubatorSubscribers.method);
|
|
55
|
+
static getIncubatorSubscribers(id, config) {
|
|
56
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.GetIncubatorSubscribers.url({ id }), method: Endpoints.GetIncubatorSubscribers.method }));
|
|
52
57
|
}
|
|
53
58
|
/**
|
|
54
59
|
* This endpoint subscribes to an incubator.
|
|
55
60
|
* @param id
|
|
61
|
+
* @param config
|
|
56
62
|
*/
|
|
57
|
-
static subscribeToIncubator(id) {
|
|
58
|
-
return apiRequest(Endpoints.SubscribeToIncubator.url({ id }), Endpoints.SubscribeToIncubator.method);
|
|
63
|
+
static subscribeToIncubator(id, config) {
|
|
64
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.SubscribeToIncubator.url({ id }), method: Endpoints.SubscribeToIncubator.method }));
|
|
59
65
|
}
|
|
60
66
|
/**
|
|
61
67
|
* This endpoint returns subscribed = true if the incubator (identified in path) is subscribed by the authenticated user.
|
|
62
68
|
* @param id
|
|
69
|
+
* @param config
|
|
63
70
|
*/
|
|
64
|
-
static checkIncubatorSubscription(id) {
|
|
65
|
-
return apiRequest(Endpoints.CheckIncubatorSubscription.url({ id }), Endpoints.CheckIncubatorSubscription.method);
|
|
71
|
+
static checkIncubatorSubscription(id, config) {
|
|
72
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.CheckIncubatorSubscription.url({ id }), method: Endpoints.CheckIncubatorSubscription.method }));
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
*
|
|
70
|
-
:::tipIncubator service can be used in the following
|
|
77
|
+
:::tipIncubator service can be used in the following way:
|
|
71
78
|
|
|
72
79
|
```jsx
|
|
73
80
|
1. Import the service from our library:
|
|
@@ -89,42 +96,51 @@ export class IncubatorApiClient {
|
|
|
89
96
|
return await IncubatorService.getSpecificIncubator(incubatorId);
|
|
90
97
|
}
|
|
91
98
|
```
|
|
99
|
+
```jsx
|
|
100
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
101
|
+
|
|
102
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
103
|
+
|
|
104
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
105
|
+
|
|
106
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
107
|
+
```
|
|
92
108
|
:::
|
|
93
109
|
*/
|
|
94
110
|
export default class IncubatorService {
|
|
95
|
-
static getAllIncubators(params) {
|
|
111
|
+
static getAllIncubators(params, config) {
|
|
96
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
return IncubatorApiClient.getAllIncubators(params);
|
|
113
|
+
return IncubatorApiClient.getAllIncubators(params, config);
|
|
98
114
|
});
|
|
99
115
|
}
|
|
100
|
-
static searchIncubators(params) {
|
|
116
|
+
static searchIncubators(params, config) {
|
|
101
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
return IncubatorApiClient.searchIncubators(params);
|
|
118
|
+
return IncubatorApiClient.searchIncubators(params, config);
|
|
103
119
|
});
|
|
104
120
|
}
|
|
105
|
-
static getSpecificIncubator(id) {
|
|
121
|
+
static getSpecificIncubator(id, config) {
|
|
106
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
return IncubatorApiClient.getSpecificIncubator(id);
|
|
123
|
+
return IncubatorApiClient.getSpecificIncubator(id, config);
|
|
108
124
|
});
|
|
109
125
|
}
|
|
110
|
-
static createIncubator(data) {
|
|
126
|
+
static createIncubator(data, config) {
|
|
111
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
return IncubatorApiClient.createIncubator(data);
|
|
128
|
+
return IncubatorApiClient.createIncubator(data, config);
|
|
113
129
|
});
|
|
114
130
|
}
|
|
115
|
-
static getIncubatorSubscribers(id) {
|
|
131
|
+
static getIncubatorSubscribers(id, config) {
|
|
116
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return IncubatorApiClient.getIncubatorSubscribers(id);
|
|
133
|
+
return IncubatorApiClient.getIncubatorSubscribers(id, config);
|
|
118
134
|
});
|
|
119
135
|
}
|
|
120
|
-
static subscribeToIncubator(id) {
|
|
136
|
+
static subscribeToIncubator(id, config) {
|
|
121
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return IncubatorApiClient.subscribeToIncubator(id);
|
|
138
|
+
return IncubatorApiClient.subscribeToIncubator(id, config);
|
|
123
139
|
});
|
|
124
140
|
}
|
|
125
|
-
static checkIncubatorSubscription(id) {
|
|
141
|
+
static checkIncubatorSubscription(id, config) {
|
|
126
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
return IncubatorApiClient.checkIncubatorSubscription(id);
|
|
143
|
+
return IncubatorApiClient.checkIncubatorSubscription(id, config);
|
|
128
144
|
});
|
|
129
145
|
}
|
|
130
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/incubator/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAalD;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B,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"}
|
|
@@ -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,OAAO,CAAC;AAEzC,MAAM,WAAW,yBAAyB;IACxC,0BAA0B,CACxB,MAAM,CAAC,EAAE,yBAAyB,EAClC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC3D,mBAAmB,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAChI,mBAAmB,CAAC,MAAM,CAAC,EAAE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GAAG,OAAO,CAAC,0BAA0B,CAAC;IAI3H;;;;OAIG;IACH,MAAM,CAAC,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAG7G;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;WACpB,0BAA0B,CACrC,MAAM,CAAC,EAAE,yBAAyB,EAClC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;WAI7C,mBAAmB,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;WAI/H,mBAAmB,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;WAI9H,+BAA+B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,iCAAiC,CAAC;WAIpH,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,0BAA0B,CAAC;WAIpH,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAGnH"}
|
|
@@ -16,53 +16,59 @@ export class InsightApiClient {
|
|
|
16
16
|
/**
|
|
17
17
|
* This endpoint retrieves the best contribution insights list.
|
|
18
18
|
* @param params
|
|
19
|
+
* @param config
|
|
19
20
|
*/
|
|
20
|
-
static getBestContributionInsight(params) {
|
|
21
|
+
static getBestContributionInsight(params, config) {
|
|
21
22
|
const p = new URLSearchParams(params);
|
|
22
|
-
return apiRequest(`${Endpoints.InsightBestContribution.url({})}?${p.toString()}`, Endpoints.InsightBestContribution.method);
|
|
23
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.InsightBestContribution.url({})}?${p.toString()}`, method: Endpoints.InsightBestContribution.method }));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* 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').
|
|
26
27
|
* @param params
|
|
28
|
+
* @param config
|
|
27
29
|
*/
|
|
28
|
-
static getBestEmbedInsight(params) {
|
|
30
|
+
static getBestEmbedInsight(params, config) {
|
|
29
31
|
const p = new URLSearchParams(params);
|
|
30
|
-
return apiRequest(`${Endpoints.InsightBestEmbed.url({})}?${p.toString()}`, Endpoints.InsightBestEmbed.method);
|
|
32
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.InsightBestEmbed.url({})}?${p.toString()}`, method: Endpoints.InsightBestEmbed.method }));
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* This endpoint retrieves the best users insights list.
|
|
34
36
|
* @param params
|
|
37
|
+
* @param config
|
|
35
38
|
*/
|
|
36
|
-
static getBestUsersInsight(params) {
|
|
39
|
+
static getBestUsersInsight(params, config) {
|
|
37
40
|
const p = new URLSearchParams(params);
|
|
38
|
-
return apiRequest(`${Endpoints.InsightBestUser.url({})}?${p.toString()}`, Endpoints.InsightBestUser.method);
|
|
41
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.InsightBestUser.url({})}?${p.toString()}`, method: Endpoints.InsightBestUser.method }));
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
44
|
* This endpoint retrieves a specific contribution's insight counters.
|
|
42
45
|
* @param id
|
|
46
|
+
* @param config
|
|
43
47
|
*/
|
|
44
|
-
static getContributionsInsightCounters(id) {
|
|
45
|
-
return apiRequest(Endpoints.InsightContributionCounter.url({ id }), Endpoints.InsightContributionCounter.method);
|
|
48
|
+
static getContributionsInsightCounters(id, config) {
|
|
49
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.InsightContributionCounter.url({ id }), method: Endpoints.InsightContributionCounter.method }));
|
|
46
50
|
}
|
|
47
51
|
/**
|
|
48
52
|
* This endpoint retrieves a specific embed's insight counters.
|
|
49
53
|
* @param type
|
|
50
54
|
* @param id
|
|
55
|
+
* @param config
|
|
51
56
|
*/
|
|
52
|
-
static getEmbedsInsightCounters(type, id) {
|
|
53
|
-
return apiRequest(Endpoints.InsightEmbedCounter.url({ type, id }), Endpoints.InsightEmbedCounter.method);
|
|
57
|
+
static getEmbedsInsightCounters(type, id, config) {
|
|
58
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.InsightEmbedCounter.url({ type, id }), method: Endpoints.InsightEmbedCounter.method }));
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
56
61
|
* This endpoint retrieves a specific user's insight counters.
|
|
57
62
|
* @param id
|
|
63
|
+
* @param config
|
|
58
64
|
*/
|
|
59
|
-
static getUsersInsightCounters(id) {
|
|
60
|
-
return apiRequest(Endpoints.InsightUserCounter.url({ id }), Endpoints.InsightUserCounter.method);
|
|
65
|
+
static getUsersInsightCounters(id, config) {
|
|
66
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.InsightUserCounter.url({ id }), method: Endpoints.InsightUserCounter.method }));
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
64
70
|
*
|
|
65
|
-
:::tipInsight service can be used in the following
|
|
71
|
+
:::tipInsight service can be used in the following way:
|
|
66
72
|
|
|
67
73
|
```jsx
|
|
68
74
|
1. Import the service from our library:
|
|
@@ -84,37 +90,46 @@ export class InsightApiClient {
|
|
|
84
90
|
return await InsightService.getEmbedsInsightCounters(embedType, embedId);
|
|
85
91
|
}
|
|
86
92
|
```
|
|
93
|
+
```jsx
|
|
94
|
+
If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
|
|
95
|
+
|
|
96
|
+
1. Declare it(or declare them, it is possible to add multiple params)
|
|
97
|
+
|
|
98
|
+
const headers = headers: {Authorization: `Bearer ${yourToken}`}
|
|
99
|
+
|
|
100
|
+
2. Add it inside the brackets and pass it to the function, as shown in the previous example!
|
|
101
|
+
```
|
|
87
102
|
:::
|
|
88
103
|
*/
|
|
89
104
|
export default class InsightService {
|
|
90
|
-
static getBestContributionInsight(params) {
|
|
105
|
+
static getBestContributionInsight(params, config) {
|
|
91
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
return InsightApiClient.getBestContributionInsight(params);
|
|
107
|
+
return InsightApiClient.getBestContributionInsight(params, config);
|
|
93
108
|
});
|
|
94
109
|
}
|
|
95
|
-
static getBestEmbedInsight(params) {
|
|
110
|
+
static getBestEmbedInsight(params, config) {
|
|
96
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
return InsightApiClient.getBestEmbedInsight(params);
|
|
112
|
+
return InsightApiClient.getBestEmbedInsight(params, config);
|
|
98
113
|
});
|
|
99
114
|
}
|
|
100
|
-
static getBestUsersInsight(params) {
|
|
115
|
+
static getBestUsersInsight(params, config) {
|
|
101
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
return InsightApiClient.getBestUsersInsight(params);
|
|
117
|
+
return InsightApiClient.getBestUsersInsight(params, config);
|
|
103
118
|
});
|
|
104
119
|
}
|
|
105
|
-
static getContributionsInsightCounters(id) {
|
|
120
|
+
static getContributionsInsightCounters(id, config) {
|
|
106
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
return InsightApiClient.getContributionsInsightCounters(id);
|
|
122
|
+
return InsightApiClient.getContributionsInsightCounters(id, config);
|
|
108
123
|
});
|
|
109
124
|
}
|
|
110
|
-
static getEmbedsInsightCounters(type, id) {
|
|
125
|
+
static getEmbedsInsightCounters(type, id, config) {
|
|
111
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
return InsightApiClient.getEmbedsInsightCounters(type, id);
|
|
127
|
+
return InsightApiClient.getEmbedsInsightCounters(type, id, config);
|
|
113
128
|
});
|
|
114
129
|
}
|
|
115
|
-
static getUsersInsightCounters(id) {
|
|
130
|
+
static getUsersInsightCounters(id, config) {
|
|
116
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return InsightApiClient.getUsersInsightCounters(id);
|
|
132
|
+
return InsightApiClient.getUsersInsightCounters(id, config);
|
|
118
133
|
});
|
|
119
134
|
}
|
|
120
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/insight/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAsBlD;;GAEG;AAEH,MAAM,OAAO,gBAAgB;IAC3B;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAC/B,MAAkC,EAClC,MAA2B;QAE3B,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,iCACZ,MAAM,KACT,GAAG,EAAE,GAAG,SAAS,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EACnE,MAAM,EAAE,SAAS,CAAC,uBAAuB,CAAC,MAAM,IAChD,CAAC;IACL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