@emilgroup/task-sdk 1.0.1-beta.9 → 1.1.1-beta.13
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/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +162 -0
- package/api/categories-api.ts +85 -59
- package/api/default-api.ts +1 -1
- package/api/hub-spot-api.ts +4 -4
- package/api/statuses-api.ts +45 -47
- package/api/tasks-api.ts +49 -51
- package/api.ts +2 -0
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/assignees-api.js +224 -0
- package/dist/api/categories-api.d.ts +65 -47
- package/dist/api/categories-api.js +59 -49
- package/dist/api/default-api.js +1 -1
- package/dist/api/hub-spot-api.d.ts +4 -4
- package/dist/api/hub-spot-api.js +4 -4
- package/dist/api/statuses-api.d.ts +42 -42
- package/dist/api/statuses-api.js +38 -40
- package/dist/api/tasks-api.d.ts +46 -46
- package/dist/api/tasks-api.js +41 -43
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/assignee-class.d.ts +24 -0
- package/dist/models/assignee-class.js +15 -0
- package/dist/models/create-status-request-dto.d.ts +6 -0
- package/dist/models/create-task-request-dto.d.ts +23 -4
- package/dist/models/create-task-request-dto.js +7 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/list-assignees-response-class.js +15 -0
- package/dist/models/patch-status-request-dto.d.ts +6 -0
- package/dist/models/patch-task-request-dto.d.ts +36 -5
- package/dist/models/patch-task-request-dto.js +7 -0
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +34 -4
- package/models/assignee-class.ts +30 -0
- package/models/create-status-request-dto.ts +6 -0
- package/models/create-task-request-dto.ts +24 -4
- package/models/index.ts +2 -0
- package/models/list-assignees-response-class.ts +49 -0
- package/models/patch-status-request-dto.ts +6 -0
- package/models/patch-task-request-dto.ts +39 -5
- package/models/status-class.ts +6 -0
- package/models/task-class.ts +34 -4
- package/package.json +2 -1
|
@@ -24,7 +24,7 @@ import { PatchStatusResponseClass } from '../models';
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const StatusesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
26
|
/**
|
|
27
|
-
* This will create a status.
|
|
27
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
28
28
|
* @summary Create the status
|
|
29
29
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
30
30
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -33,7 +33,7 @@ export declare const StatusesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
33
33
|
*/
|
|
34
34
|
createStatus: (createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
|
-
* This will delete status.
|
|
36
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
37
37
|
* @summary Delete the status
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -42,22 +42,22 @@ export declare const StatusesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
42
42
|
*/
|
|
43
43
|
deleteStatus: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
|
-
* Get status by code.
|
|
45
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
46
46
|
* @summary Retrieve the status
|
|
47
47
|
* @param {string} code
|
|
48
|
-
* @param {string} expand
|
|
49
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
49
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getStatus: (code: string,
|
|
53
|
+
getStatus: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves a list of statuses.
|
|
55
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
56
56
|
* @summary List statuses
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
59
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
60
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
58
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
59
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
60
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
61
61
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
62
62
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
@@ -65,7 +65,7 @@ export declare const StatusesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
65
65
|
*/
|
|
66
66
|
listStatuses: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
|
-
* This will partially update a status by code with the provided fields.
|
|
68
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
69
69
|
* @summary Update the status
|
|
70
70
|
* @param {string} code
|
|
71
71
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -81,7 +81,7 @@ export declare const StatusesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
81
81
|
*/
|
|
82
82
|
export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
83
83
|
/**
|
|
84
|
-
* This will create a status.
|
|
84
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
85
85
|
* @summary Create the status
|
|
86
86
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
87
87
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +90,7 @@ export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
|
90
90
|
*/
|
|
91
91
|
createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusResponseClass>>;
|
|
92
92
|
/**
|
|
93
|
-
* This will delete status.
|
|
93
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
94
94
|
* @summary Delete the status
|
|
95
95
|
* @param {string} code Unique identifier for the object.
|
|
96
96
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -99,22 +99,22 @@ export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
|
99
99
|
*/
|
|
100
100
|
deleteStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
101
|
/**
|
|
102
|
-
* Get status by code.
|
|
102
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
103
103
|
* @summary Retrieve the status
|
|
104
104
|
* @param {string} code
|
|
105
|
-
* @param {string} expand
|
|
106
105
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
106
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
*/
|
|
110
|
-
getStatus(code: string,
|
|
110
|
+
getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>>;
|
|
111
111
|
/**
|
|
112
|
-
* Retrieves a list of statuses.
|
|
112
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
113
113
|
* @summary List statuses
|
|
114
114
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
116
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
117
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
115
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
116
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
117
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
118
118
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
119
119
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
120
120
|
* @param {*} [options] Override http request option.
|
|
@@ -122,7 +122,7 @@ export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
|
122
122
|
*/
|
|
123
123
|
listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>>;
|
|
124
124
|
/**
|
|
125
|
-
* This will partially update a status by code with the provided fields.
|
|
125
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
126
126
|
* @summary Update the status
|
|
127
127
|
* @param {string} code
|
|
128
128
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -138,7 +138,7 @@ export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
|
138
138
|
*/
|
|
139
139
|
export declare const StatusesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
140
140
|
/**
|
|
141
|
-
* This will create a status.
|
|
141
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
142
142
|
* @summary Create the status
|
|
143
143
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
144
144
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -147,7 +147,7 @@ export declare const StatusesApiFactory: (configuration?: Configuration, basePat
|
|
|
147
147
|
*/
|
|
148
148
|
createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusResponseClass>;
|
|
149
149
|
/**
|
|
150
|
-
* This will delete status.
|
|
150
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
151
151
|
* @summary Delete the status
|
|
152
152
|
* @param {string} code Unique identifier for the object.
|
|
153
153
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -156,22 +156,22 @@ export declare const StatusesApiFactory: (configuration?: Configuration, basePat
|
|
|
156
156
|
*/
|
|
157
157
|
deleteStatus(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
158
158
|
/**
|
|
159
|
-
* Get status by code.
|
|
159
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
160
160
|
* @summary Retrieve the status
|
|
161
161
|
* @param {string} code
|
|
162
|
-
* @param {string} expand
|
|
163
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
164
164
|
* @param {*} [options] Override http request option.
|
|
165
165
|
* @throws {RequiredError}
|
|
166
166
|
*/
|
|
167
|
-
getStatus(code: string,
|
|
167
|
+
getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass>;
|
|
168
168
|
/**
|
|
169
|
-
* Retrieves a list of statuses.
|
|
169
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
170
170
|
* @summary List statuses
|
|
171
171
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
173
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
174
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
172
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
173
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
174
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
175
175
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
176
176
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
@@ -179,7 +179,7 @@ export declare const StatusesApiFactory: (configuration?: Configuration, basePat
|
|
|
179
179
|
*/
|
|
180
180
|
listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass>;
|
|
181
181
|
/**
|
|
182
|
-
* This will partially update a status by code with the provided fields.
|
|
182
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
183
183
|
* @summary Update the status
|
|
184
184
|
* @param {string} code
|
|
185
185
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -240,17 +240,17 @@ export interface StatusesApiGetStatusRequest {
|
|
|
240
240
|
*/
|
|
241
241
|
readonly code: string;
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
243
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
244
|
* @type {string}
|
|
245
245
|
* @memberof StatusesApiGetStatus
|
|
246
246
|
*/
|
|
247
|
-
readonly
|
|
247
|
+
readonly authorization?: string;
|
|
248
248
|
/**
|
|
249
|
-
*
|
|
249
|
+
* Expand to fetch additional information about the status.
|
|
250
250
|
* @type {string}
|
|
251
251
|
* @memberof StatusesApiGetStatus
|
|
252
252
|
*/
|
|
253
|
-
readonly
|
|
253
|
+
readonly expand?: string;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Request parameters for listStatuses operation in StatusesApi.
|
|
@@ -265,19 +265,19 @@ export interface StatusesApiListStatusesRequest {
|
|
|
265
265
|
*/
|
|
266
266
|
readonly authorization?: string;
|
|
267
267
|
/**
|
|
268
|
-
* Filter the response by one or multiple fields.
|
|
268
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
269
269
|
* @type {string}
|
|
270
270
|
* @memberof StatusesApiListStatuses
|
|
271
271
|
*/
|
|
272
272
|
readonly filter?: string;
|
|
273
273
|
/**
|
|
274
|
-
* Filters the response by one or multiple fields.
|
|
274
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
275
275
|
* @type {string}
|
|
276
276
|
* @memberof StatusesApiListStatuses
|
|
277
277
|
*/
|
|
278
278
|
readonly filters?: string;
|
|
279
279
|
/**
|
|
280
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
280
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
281
281
|
* @type {string}
|
|
282
282
|
* @memberof StatusesApiListStatuses
|
|
283
283
|
*/
|
|
@@ -328,7 +328,7 @@ export interface StatusesApiPatchStatusRequest {
|
|
|
328
328
|
*/
|
|
329
329
|
export declare class StatusesApi extends BaseAPI {
|
|
330
330
|
/**
|
|
331
|
-
* This will create a status.
|
|
331
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
332
332
|
* @summary Create the status
|
|
333
333
|
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
334
334
|
* @param {*} [options] Override http request option.
|
|
@@ -337,7 +337,7 @@ export declare class StatusesApi extends BaseAPI {
|
|
|
337
337
|
*/
|
|
338
338
|
createStatus(requestParameters: StatusesApiCreateStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateStatusResponseClass, any, {}>>;
|
|
339
339
|
/**
|
|
340
|
-
* This will delete status.
|
|
340
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
341
341
|
* @summary Delete the status
|
|
342
342
|
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
343
343
|
* @param {*} [options] Override http request option.
|
|
@@ -346,7 +346,7 @@ export declare class StatusesApi extends BaseAPI {
|
|
|
346
346
|
*/
|
|
347
347
|
deleteStatus(requestParameters: StatusesApiDeleteStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
348
348
|
/**
|
|
349
|
-
* Get status by code.
|
|
349
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
350
350
|
* @summary Retrieve the status
|
|
351
351
|
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
352
352
|
* @param {*} [options] Override http request option.
|
|
@@ -355,7 +355,7 @@ export declare class StatusesApi extends BaseAPI {
|
|
|
355
355
|
*/
|
|
356
356
|
getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStatusResponseClass, any, {}>>;
|
|
357
357
|
/**
|
|
358
|
-
* Retrieves a list of statuses.
|
|
358
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
359
359
|
* @summary List statuses
|
|
360
360
|
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
361
361
|
* @param {*} [options] Override http request option.
|
|
@@ -364,7 +364,7 @@ export declare class StatusesApi extends BaseAPI {
|
|
|
364
364
|
*/
|
|
365
365
|
listStatuses(requestParameters?: StatusesApiListStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListStatusesResponseClass, any, {}>>;
|
|
366
366
|
/**
|
|
367
|
-
* This will partially update a status by code with the provided fields.
|
|
367
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
368
368
|
* @summary Update the status
|
|
369
369
|
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
370
370
|
* @param {*} [options] Override http request option.
|
package/dist/api/statuses-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create a status.
|
|
96
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
97
97
|
* @summary Create the status
|
|
98
98
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -142,7 +142,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* This will delete status.
|
|
145
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
146
146
|
* @summary Delete the status
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -190,15 +190,15 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* Get status by code.
|
|
193
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
194
194
|
* @summary Retrieve the status
|
|
195
195
|
* @param {string} code
|
|
196
|
-
* @param {string} expand
|
|
197
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
198
198
|
* @param {*} [options] Override http request option.
|
|
199
199
|
* @throws {RequiredError}
|
|
200
200
|
*/
|
|
201
|
-
getStatus: function (code,
|
|
201
|
+
getStatus: function (code, authorization, expand, options) {
|
|
202
202
|
if (options === void 0) { options = {}; }
|
|
203
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -207,8 +207,6 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
207
207
|
case 0:
|
|
208
208
|
// verify required parameter 'code' is not null or undefined
|
|
209
209
|
(0, common_1.assertParamExists)('getStatus', 'code', code);
|
|
210
|
-
// verify required parameter 'expand' is not null or undefined
|
|
211
|
-
(0, common_1.assertParamExists)('getStatus', 'expand', expand);
|
|
212
210
|
localVarPath = "/taskservice/v1/statuses/{code}"
|
|
213
211
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
214
212
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -244,12 +242,12 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
244
242
|
});
|
|
245
243
|
},
|
|
246
244
|
/**
|
|
247
|
-
* Retrieves a list of statuses.
|
|
245
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
248
246
|
* @summary List statuses
|
|
249
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
251
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
252
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
248
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
249
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
250
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
253
251
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
254
252
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
255
253
|
* @param {*} [options] Override http request option.
|
|
@@ -308,7 +306,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
308
306
|
});
|
|
309
307
|
},
|
|
310
308
|
/**
|
|
311
|
-
* This will partially update a status by code with the provided fields.
|
|
309
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
312
310
|
* @summary Update the status
|
|
313
311
|
* @param {string} code
|
|
314
312
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -371,7 +369,7 @@ var StatusesApiFp = function (configuration) {
|
|
|
371
369
|
var localVarAxiosParamCreator = (0, exports.StatusesApiAxiosParamCreator)(configuration);
|
|
372
370
|
return {
|
|
373
371
|
/**
|
|
374
|
-
* This will create a status.
|
|
372
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
375
373
|
* @summary Create the status
|
|
376
374
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
377
375
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -392,7 +390,7 @@ var StatusesApiFp = function (configuration) {
|
|
|
392
390
|
});
|
|
393
391
|
},
|
|
394
392
|
/**
|
|
395
|
-
* This will delete status.
|
|
393
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
396
394
|
* @summary Delete the status
|
|
397
395
|
* @param {string} code Unique identifier for the object.
|
|
398
396
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -413,20 +411,20 @@ var StatusesApiFp = function (configuration) {
|
|
|
413
411
|
});
|
|
414
412
|
},
|
|
415
413
|
/**
|
|
416
|
-
* Get status by code.
|
|
414
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
417
415
|
* @summary Retrieve the status
|
|
418
416
|
* @param {string} code
|
|
419
|
-
* @param {string} expand
|
|
420
417
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
418
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
421
419
|
* @param {*} [options] Override http request option.
|
|
422
420
|
* @throws {RequiredError}
|
|
423
421
|
*/
|
|
424
|
-
getStatus: function (code,
|
|
422
|
+
getStatus: function (code, authorization, expand, options) {
|
|
425
423
|
return __awaiter(this, void 0, void 0, function () {
|
|
426
424
|
var localVarAxiosArgs;
|
|
427
425
|
return __generator(this, function (_a) {
|
|
428
426
|
switch (_a.label) {
|
|
429
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code,
|
|
427
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code, authorization, expand, options)];
|
|
430
428
|
case 1:
|
|
431
429
|
localVarAxiosArgs = _a.sent();
|
|
432
430
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -435,12 +433,12 @@ var StatusesApiFp = function (configuration) {
|
|
|
435
433
|
});
|
|
436
434
|
},
|
|
437
435
|
/**
|
|
438
|
-
* Retrieves a list of statuses.
|
|
436
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
439
437
|
* @summary List statuses
|
|
440
438
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
442
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
443
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
439
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
440
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
441
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
444
442
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
445
443
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
446
444
|
* @param {*} [options] Override http request option.
|
|
@@ -460,7 +458,7 @@ var StatusesApiFp = function (configuration) {
|
|
|
460
458
|
});
|
|
461
459
|
},
|
|
462
460
|
/**
|
|
463
|
-
* This will partially update a status by code with the provided fields.
|
|
461
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
464
462
|
* @summary Update the status
|
|
465
463
|
* @param {string} code
|
|
466
464
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -492,7 +490,7 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
492
490
|
var localVarFp = (0, exports.StatusesApiFp)(configuration);
|
|
493
491
|
return {
|
|
494
492
|
/**
|
|
495
|
-
* This will create a status.
|
|
493
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
496
494
|
* @summary Create the status
|
|
497
495
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
498
496
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -503,7 +501,7 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
503
501
|
return localVarFp.createStatus(createStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
504
502
|
},
|
|
505
503
|
/**
|
|
506
|
-
* This will delete status.
|
|
504
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
507
505
|
* @summary Delete the status
|
|
508
506
|
* @param {string} code Unique identifier for the object.
|
|
509
507
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -514,24 +512,24 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
514
512
|
return localVarFp.deleteStatus(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
515
513
|
},
|
|
516
514
|
/**
|
|
517
|
-
* Get status by code.
|
|
515
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
518
516
|
* @summary Retrieve the status
|
|
519
517
|
* @param {string} code
|
|
520
|
-
* @param {string} expand
|
|
521
518
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
519
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
522
520
|
* @param {*} [options] Override http request option.
|
|
523
521
|
* @throws {RequiredError}
|
|
524
522
|
*/
|
|
525
|
-
getStatus: function (code,
|
|
526
|
-
return localVarFp.getStatus(code,
|
|
523
|
+
getStatus: function (code, authorization, expand, options) {
|
|
524
|
+
return localVarFp.getStatus(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
527
525
|
},
|
|
528
526
|
/**
|
|
529
|
-
* Retrieves a list of statuses.
|
|
527
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
530
528
|
* @summary List statuses
|
|
531
529
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
533
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
534
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
530
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
531
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
532
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
535
533
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
536
534
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
537
535
|
* @param {*} [options] Override http request option.
|
|
@@ -541,7 +539,7 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
541
539
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
542
540
|
},
|
|
543
541
|
/**
|
|
544
|
-
* This will partially update a status by code with the provided fields.
|
|
542
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
545
543
|
* @summary Update the status
|
|
546
544
|
* @param {string} code
|
|
547
545
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -567,7 +565,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
567
565
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
568
566
|
}
|
|
569
567
|
/**
|
|
570
|
-
* This will create a status.
|
|
568
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
571
569
|
* @summary Create the status
|
|
572
570
|
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
573
571
|
* @param {*} [options] Override http request option.
|
|
@@ -579,7 +577,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
579
577
|
return (0, exports.StatusesApiFp)(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
580
578
|
};
|
|
581
579
|
/**
|
|
582
|
-
* This will delete status.
|
|
580
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
583
581
|
* @summary Delete the status
|
|
584
582
|
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
585
583
|
* @param {*} [options] Override http request option.
|
|
@@ -591,7 +589,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
591
589
|
return (0, exports.StatusesApiFp)(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
592
590
|
};
|
|
593
591
|
/**
|
|
594
|
-
* Get status by code.
|
|
592
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
595
593
|
* @summary Retrieve the status
|
|
596
594
|
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
597
595
|
* @param {*} [options] Override http request option.
|
|
@@ -600,10 +598,10 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
600
598
|
*/
|
|
601
599
|
StatusesApi.prototype.getStatus = function (requestParameters, options) {
|
|
602
600
|
var _this = this;
|
|
603
|
-
return (0, exports.StatusesApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.
|
|
601
|
+
return (0, exports.StatusesApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
604
602
|
};
|
|
605
603
|
/**
|
|
606
|
-
* Retrieves a list of statuses.
|
|
604
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
607
605
|
* @summary List statuses
|
|
608
606
|
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
609
607
|
* @param {*} [options] Override http request option.
|
|
@@ -616,7 +614,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
616
614
|
return (0, exports.StatusesApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
617
615
|
};
|
|
618
616
|
/**
|
|
619
|
-
* This will partially update a status by code with the provided fields.
|
|
617
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
620
618
|
* @summary Update the status
|
|
621
619
|
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
622
620
|
* @param {*} [options] Override http request option.
|