@selfcommunity/api-services 0.7.0-alpha.10 → 0.7.0-alpha.12
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/constants/Endpoints.js +2 -2
- package/lib/cjs/services/tag/index.d.ts +3 -3
- package/lib/cjs/services/tag/index.js +4 -4
- package/lib/esm/constants/Endpoints.js +2 -2
- package/lib/esm/services/tag/index.d.ts +3 -3
- package/lib/esm/services/tag/index.js +4 -4
- package/lib/umd/api-services.js +1 -1
- package/package.json +3 -3
|
@@ -306,8 +306,8 @@ const Endpoints = {
|
|
|
306
306
|
url: (0, utils_1.urlReplacer)('/api/v2/tag/'),
|
|
307
307
|
method: 'POST'
|
|
308
308
|
},
|
|
309
|
-
|
|
310
|
-
url: (0, utils_1.urlReplacer)('/api/v2/tag/'),
|
|
309
|
+
SearchUserTags: {
|
|
310
|
+
url: (0, utils_1.urlReplacer)('/api/v2/tag/user/search/'),
|
|
311
311
|
method: 'GET'
|
|
312
312
|
},
|
|
313
313
|
Tag: {
|
|
@@ -4,7 +4,7 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
4
4
|
export interface TagApiClientInterface {
|
|
5
5
|
getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
6
6
|
createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
7
|
-
|
|
7
|
+
searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
8
8
|
getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
9
9
|
updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
10
10
|
patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
@@ -32,7 +32,7 @@ export declare class TagApiClient {
|
|
|
32
32
|
* @param params
|
|
33
33
|
* @param config
|
|
34
34
|
*/
|
|
35
|
-
static
|
|
35
|
+
static searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
36
36
|
/**
|
|
37
37
|
* This endpoint retrieves a specific tag.
|
|
38
38
|
* @param id
|
|
@@ -101,7 +101,7 @@ export declare class TagApiClient {
|
|
|
101
101
|
export default class TagService {
|
|
102
102
|
static getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
103
103
|
static createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
104
|
-
static
|
|
104
|
+
static searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
105
105
|
static getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
106
106
|
static updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
107
107
|
static patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
@@ -32,9 +32,9 @@ class TagApiClient {
|
|
|
32
32
|
* @param params
|
|
33
33
|
* @param config
|
|
34
34
|
*/
|
|
35
|
-
static
|
|
35
|
+
static searchUserTags(params, config) {
|
|
36
36
|
const p = (0, url_1.urlParams)(params);
|
|
37
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.
|
|
37
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchUserTags.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchUserTags.method }));
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* This endpoint retrieves a specific tag.
|
|
@@ -121,9 +121,9 @@ class TagService {
|
|
|
121
121
|
return TagApiClient.createTag(data, config);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
static
|
|
124
|
+
static searchUserTags(params, config) {
|
|
125
125
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
126
|
-
return TagApiClient.
|
|
126
|
+
return TagApiClient.searchUserTags(params, config);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
static getSpecificTag(id, config) {
|
|
@@ -4,7 +4,7 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
4
4
|
export interface TagApiClientInterface {
|
|
5
5
|
getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
6
6
|
createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
7
|
-
|
|
7
|
+
searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
8
8
|
getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
9
9
|
updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
10
10
|
patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
@@ -32,7 +32,7 @@ export declare class TagApiClient {
|
|
|
32
32
|
* @param params
|
|
33
33
|
* @param config
|
|
34
34
|
*/
|
|
35
|
-
static
|
|
35
|
+
static searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
36
36
|
/**
|
|
37
37
|
* This endpoint retrieves a specific tag.
|
|
38
38
|
* @param id
|
|
@@ -101,7 +101,7 @@ export declare class TagApiClient {
|
|
|
101
101
|
export default class TagService {
|
|
102
102
|
static getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
103
103
|
static createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
104
|
-
static
|
|
104
|
+
static searchUserTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;
|
|
105
105
|
static getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
106
106
|
static updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
107
107
|
static patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
@@ -29,9 +29,9 @@ export class TagApiClient {
|
|
|
29
29
|
* @param params
|
|
30
30
|
* @param config
|
|
31
31
|
*/
|
|
32
|
-
static
|
|
32
|
+
static searchUserTags(params, config) {
|
|
33
33
|
const p = urlParams(params);
|
|
34
|
-
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.
|
|
34
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.SearchUserTags.url({})}?${p.toString()}`, method: Endpoints.SearchUserTags.method }));
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* This endpoint retrieves a specific tag.
|
|
@@ -117,9 +117,9 @@ export default class TagService {
|
|
|
117
117
|
return TagApiClient.createTag(data, config);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
static
|
|
120
|
+
static searchUserTags(params, config) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return TagApiClient.
|
|
122
|
+
return TagApiClient.searchUserTags(params, config);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
static getSpecificTag(id, config) {
|