@emilgroup/task-sdk-node 1.0.1-beta.8 → 1.0.2
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/README.md +1 -84
- package/index.js +99 -0
- package/package.json +8 -24
- package/scripts/deploy.js +230 -0
- package/.openapi-generator/FILES +0 -46
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/api/categories-api.ts +0 -669
- package/api/default-api.ts +0 -128
- package/api/hub-spot-api.ts +0 -169
- package/api/statuses-api.ts +0 -669
- package/api/tasks-api.ts +0 -697
- package/api.ts +0 -39
- package/base.ts +0 -327
- package/common.ts +0 -199
- package/configuration.ts +0 -118
- package/dist/api/categories-api.d.ts +0 -375
- package/dist/api/categories-api.js +0 -636
- package/dist/api/default-api.d.ts +0 -70
- package/dist/api/default-api.js +0 -204
- package/dist/api/hub-spot-api.d.ts +0 -97
- package/dist/api/hub-spot-api.js +0 -228
- package/dist/api/statuses-api.d.ts +0 -375
- package/dist/api/statuses-api.js +0 -636
- package/dist/api/tasks-api.d.ts +0 -393
- package/dist/api/tasks-api.js +0 -648
- package/dist/api.d.ts +0 -16
- package/dist/api.js +0 -34
- package/dist/base.d.ts +0 -88
- package/dist/base.js +0 -434
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -96
- package/dist/configuration.js +0 -52
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/category-class.d.ts +0 -66
- package/dist/models/category-class.js +0 -15
- package/dist/models/create-category-request-dto.d.ts +0 -30
- package/dist/models/create-category-request-dto.js +0 -15
- package/dist/models/create-category-response-class.d.ts +0 -25
- package/dist/models/create-category-response-class.js +0 -15
- package/dist/models/create-hub-spot-ticket-request-dto.d.ts +0 -31
- package/dist/models/create-hub-spot-ticket-request-dto.js +0 -15
- package/dist/models/create-hub-spot-ticket-response-class.d.ts +0 -25
- package/dist/models/create-hub-spot-ticket-response-class.js +0 -15
- package/dist/models/create-status-request-dto.d.ts +0 -30
- package/dist/models/create-status-request-dto.js +0 -15
- package/dist/models/create-status-response-class.d.ts +0 -25
- package/dist/models/create-status-response-class.js +0 -15
- package/dist/models/create-task-request-dto.d.ts +0 -72
- package/dist/models/create-task-request-dto.js +0 -21
- package/dist/models/create-task-response-class.d.ts +0 -25
- package/dist/models/create-task-response-class.js +0 -15
- package/dist/models/get-category-response-class.d.ts +0 -25
- package/dist/models/get-category-response-class.js +0 -15
- package/dist/models/get-status-response-class.d.ts +0 -25
- package/dist/models/get-status-response-class.js +0 -15
- package/dist/models/get-task-response-class.d.ts +0 -25
- package/dist/models/get-task-response-class.js +0 -15
- package/dist/models/hub-spot-ticket-class.d.ts +0 -49
- package/dist/models/hub-spot-ticket-class.js +0 -15
- package/dist/models/hub-spot-ticket-error-class.d.ts +0 -30
- package/dist/models/hub-spot-ticket-error-class.js +0 -15
- package/dist/models/hub-spot-ticket-name-value-dto.d.ts +0 -30
- package/dist/models/hub-spot-ticket-name-value-dto.js +0 -15
- package/dist/models/index.d.ts +0 -28
- package/dist/models/index.js +0 -44
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/list-categories-response-class.d.ts +0 -43
- package/dist/models/list-categories-response-class.js +0 -15
- package/dist/models/list-statuses-response-class.d.ts +0 -43
- package/dist/models/list-statuses-response-class.js +0 -15
- package/dist/models/list-tasks-response-class.d.ts +0 -43
- package/dist/models/list-tasks-response-class.js +0 -15
- package/dist/models/patch-category-request-dto.d.ts +0 -36
- package/dist/models/patch-category-request-dto.js +0 -15
- package/dist/models/patch-category-response-class.d.ts +0 -25
- package/dist/models/patch-category-response-class.js +0 -15
- package/dist/models/patch-status-request-dto.d.ts +0 -36
- package/dist/models/patch-status-request-dto.js +0 -15
- package/dist/models/patch-status-response-class.d.ts +0 -25
- package/dist/models/patch-status-response-class.js +0 -15
- package/dist/models/patch-task-request-dto.d.ts +0 -108
- package/dist/models/patch-task-request-dto.js +0 -15
- package/dist/models/patch-task-response-class.d.ts +0 -25
- package/dist/models/patch-task-response-class.js +0 -15
- package/dist/models/status-class.d.ts +0 -66
- package/dist/models/status-class.js +0 -15
- package/dist/models/task-class.d.ts +0 -116
- package/dist/models/task-class.js +0 -21
- package/git_push.sh +0 -57
- package/index.ts +0 -19
- package/models/category-class.ts +0 -72
- package/models/create-category-request-dto.ts +0 -36
- package/models/create-category-response-class.ts +0 -31
- package/models/create-hub-spot-ticket-request-dto.ts +0 -37
- package/models/create-hub-spot-ticket-response-class.ts +0 -31
- package/models/create-status-request-dto.ts +0 -36
- package/models/create-status-response-class.ts +0 -31
- package/models/create-task-request-dto.ts +0 -81
- package/models/create-task-response-class.ts +0 -31
- package/models/get-category-response-class.ts +0 -31
- package/models/get-status-response-class.ts +0 -31
- package/models/get-task-response-class.ts +0 -31
- package/models/hub-spot-ticket-class.ts +0 -55
- package/models/hub-spot-ticket-error-class.ts +0 -36
- package/models/hub-spot-ticket-name-value-dto.ts +0 -36
- package/models/index.ts +0 -28
- package/models/inline-response200.ts +0 -48
- package/models/inline-response503.ts +0 -48
- package/models/list-categories-response-class.ts +0 -49
- package/models/list-statuses-response-class.ts +0 -49
- package/models/list-tasks-response-class.ts +0 -49
- package/models/patch-category-request-dto.ts +0 -42
- package/models/patch-category-response-class.ts +0 -31
- package/models/patch-status-request-dto.ts +0 -42
- package/models/patch-status-response-class.ts +0 -31
- package/models/patch-task-request-dto.ts +0 -114
- package/models/patch-task-response-class.ts +0 -31
- package/models/status-class.ts +0 -72
- package/models/task-class.ts +0 -125
- package/tsconfig.json +0 -23
package/api/statuses-api.ts
DELETED
|
@@ -1,669 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL TaskService
|
|
5
|
-
* The EMIL Task API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreateStatusRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateStatusResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetStatusResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListStatusesResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { PatchStatusRequestDto } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { PatchStatusResponseClass } from '../models';
|
|
35
|
-
// URLSearchParams not necessarily used
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
import { URL, URLSearchParams } from 'url';
|
|
38
|
-
const FormData = require('form-data');
|
|
39
|
-
/**
|
|
40
|
-
* StatusesApi - axios parameter creator
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
|
-
export const StatusesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
-
return {
|
|
45
|
-
/**
|
|
46
|
-
* This will create a status.
|
|
47
|
-
* @summary Create the status
|
|
48
|
-
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
49
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
-
* @param {*} [options] Override http request option.
|
|
51
|
-
* @throws {RequiredError}
|
|
52
|
-
*/
|
|
53
|
-
createStatus: async (createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
-
// verify required parameter 'createStatusRequestDto' is not null or undefined
|
|
55
|
-
assertParamExists('createStatus', 'createStatusRequestDto', createStatusRequestDto)
|
|
56
|
-
const localVarPath = `/taskservice/v1/statuses`;
|
|
57
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
-
let baseOptions;
|
|
60
|
-
let baseAccessToken;
|
|
61
|
-
if (configuration) {
|
|
62
|
-
baseOptions = configuration.baseOptions;
|
|
63
|
-
baseAccessToken = configuration.accessToken;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
-
const localVarHeaderParameter = {} as any;
|
|
68
|
-
const localVarQueryParameter = {} as any;
|
|
69
|
-
|
|
70
|
-
// authentication bearer required
|
|
71
|
-
// http bearer authentication required
|
|
72
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
-
|
|
74
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
-
|
|
82
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createStatusRequestDto, localVarRequestOptions, configuration)
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
url: toPathString(localVarUrlObj),
|
|
89
|
-
options: localVarRequestOptions,
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
/**
|
|
93
|
-
* This will delete status.
|
|
94
|
-
* @summary Delete the status
|
|
95
|
-
* @param {string} code Unique identifier for the object.
|
|
96
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
deleteStatus: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
-
// verify required parameter 'code' is not null or undefined
|
|
102
|
-
assertParamExists('deleteStatus', 'code', code)
|
|
103
|
-
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
104
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
-
let baseOptions;
|
|
108
|
-
let baseAccessToken;
|
|
109
|
-
if (configuration) {
|
|
110
|
-
baseOptions = configuration.baseOptions;
|
|
111
|
-
baseAccessToken = configuration.accessToken;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
-
const localVarHeaderParameter = {} as any;
|
|
116
|
-
const localVarQueryParameter = {} as any;
|
|
117
|
-
|
|
118
|
-
// authentication bearer required
|
|
119
|
-
// http bearer authentication required
|
|
120
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
-
|
|
122
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
url: toPathString(localVarUrlObj),
|
|
134
|
-
options: localVarRequestOptions,
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
/**
|
|
138
|
-
* Get status by code.
|
|
139
|
-
* @summary Retrieve the status
|
|
140
|
-
* @param {string} code
|
|
141
|
-
* @param {string} expand
|
|
142
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
|
-
* @param {*} [options] Override http request option.
|
|
144
|
-
* @throws {RequiredError}
|
|
145
|
-
*/
|
|
146
|
-
getStatus: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
|
-
// verify required parameter 'code' is not null or undefined
|
|
148
|
-
assertParamExists('getStatus', 'code', code)
|
|
149
|
-
// verify required parameter 'expand' is not null or undefined
|
|
150
|
-
assertParamExists('getStatus', 'expand', expand)
|
|
151
|
-
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
152
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
153
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
-
let baseOptions;
|
|
156
|
-
let baseAccessToken;
|
|
157
|
-
if (configuration) {
|
|
158
|
-
baseOptions = configuration.baseOptions;
|
|
159
|
-
baseAccessToken = configuration.accessToken;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
163
|
-
const localVarHeaderParameter = {} as any;
|
|
164
|
-
const localVarQueryParameter = {} as any;
|
|
165
|
-
|
|
166
|
-
// authentication bearer required
|
|
167
|
-
// http bearer authentication required
|
|
168
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
169
|
-
|
|
170
|
-
if (expand !== undefined) {
|
|
171
|
-
localVarQueryParameter['expand'] = expand;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
175
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
183
|
-
|
|
184
|
-
return {
|
|
185
|
-
url: toPathString(localVarUrlObj),
|
|
186
|
-
options: localVarRequestOptions,
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* Retrieves a list of statuses.
|
|
191
|
-
* @summary List statuses
|
|
192
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
-
* @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>
|
|
194
|
-
* @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>
|
|
195
|
-
* @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: id, code, name, slug</i>
|
|
196
|
-
* @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>
|
|
197
|
-
* @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/>
|
|
198
|
-
* @param {*} [options] Override http request option.
|
|
199
|
-
* @throws {RequiredError}
|
|
200
|
-
*/
|
|
201
|
-
listStatuses: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
|
-
const localVarPath = `/taskservice/v1/statuses`;
|
|
203
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
205
|
-
let baseOptions;
|
|
206
|
-
let baseAccessToken;
|
|
207
|
-
if (configuration) {
|
|
208
|
-
baseOptions = configuration.baseOptions;
|
|
209
|
-
baseAccessToken = configuration.accessToken;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
213
|
-
const localVarHeaderParameter = {} as any;
|
|
214
|
-
const localVarQueryParameter = {} as any;
|
|
215
|
-
|
|
216
|
-
// authentication bearer required
|
|
217
|
-
// http bearer authentication required
|
|
218
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
219
|
-
|
|
220
|
-
if (filter !== undefined) {
|
|
221
|
-
localVarQueryParameter['filter'] = filter;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (filters !== undefined) {
|
|
225
|
-
localVarQueryParameter['filters'] = filters;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (search !== undefined) {
|
|
229
|
-
localVarQueryParameter['search'] = search;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
if (order !== undefined) {
|
|
233
|
-
localVarQueryParameter['order'] = order;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (expand !== undefined) {
|
|
237
|
-
localVarQueryParameter['expand'] = expand;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
241
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
247
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
249
|
-
|
|
250
|
-
return {
|
|
251
|
-
url: toPathString(localVarUrlObj),
|
|
252
|
-
options: localVarRequestOptions,
|
|
253
|
-
};
|
|
254
|
-
},
|
|
255
|
-
/**
|
|
256
|
-
* This will partially update a status by code with the provided fields.
|
|
257
|
-
* @summary Update the status
|
|
258
|
-
* @param {string} code
|
|
259
|
-
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
260
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
|
-
* @param {*} [options] Override http request option.
|
|
262
|
-
* @throws {RequiredError}
|
|
263
|
-
*/
|
|
264
|
-
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
|
-
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('patchStatus', 'code', code)
|
|
267
|
-
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
268
|
-
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
269
|
-
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
270
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
|
-
let baseOptions;
|
|
274
|
-
let baseAccessToken;
|
|
275
|
-
if (configuration) {
|
|
276
|
-
baseOptions = configuration.baseOptions;
|
|
277
|
-
baseAccessToken = configuration.accessToken;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
|
-
const localVarHeaderParameter = {} as any;
|
|
282
|
-
const localVarQueryParameter = {} as any;
|
|
283
|
-
|
|
284
|
-
// authentication bearer required
|
|
285
|
-
// http bearer authentication required
|
|
286
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
287
|
-
|
|
288
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
295
|
-
|
|
296
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
300
|
-
|
|
301
|
-
return {
|
|
302
|
-
url: toPathString(localVarUrlObj),
|
|
303
|
-
options: localVarRequestOptions,
|
|
304
|
-
};
|
|
305
|
-
},
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* StatusesApi - functional programming interface
|
|
311
|
-
* @export
|
|
312
|
-
*/
|
|
313
|
-
export const StatusesApiFp = function(configuration?: Configuration) {
|
|
314
|
-
const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration)
|
|
315
|
-
return {
|
|
316
|
-
/**
|
|
317
|
-
* This will create a status.
|
|
318
|
-
* @summary Create the status
|
|
319
|
-
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
320
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
321
|
-
* @param {*} [options] Override http request option.
|
|
322
|
-
* @throws {RequiredError}
|
|
323
|
-
*/
|
|
324
|
-
async createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusResponseClass>> {
|
|
325
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createStatus(createStatusRequestDto, authorization, options);
|
|
326
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
327
|
-
},
|
|
328
|
-
/**
|
|
329
|
-
* This will delete status.
|
|
330
|
-
* @summary Delete the status
|
|
331
|
-
* @param {string} code Unique identifier for the object.
|
|
332
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
333
|
-
* @param {*} [options] Override http request option.
|
|
334
|
-
* @throws {RequiredError}
|
|
335
|
-
*/
|
|
336
|
-
async deleteStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
337
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStatus(code, authorization, options);
|
|
338
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
339
|
-
},
|
|
340
|
-
/**
|
|
341
|
-
* Get status by code.
|
|
342
|
-
* @summary Retrieve the status
|
|
343
|
-
* @param {string} code
|
|
344
|
-
* @param {string} expand
|
|
345
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
|
-
* @param {*} [options] Override http request option.
|
|
347
|
-
* @throws {RequiredError}
|
|
348
|
-
*/
|
|
349
|
-
async getStatus(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
|
|
350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, expand, authorization, options);
|
|
351
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* Retrieves a list of statuses.
|
|
355
|
-
* @summary List statuses
|
|
356
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
|
-
* @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>
|
|
358
|
-
* @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>
|
|
359
|
-
* @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: id, code, name, slug</i>
|
|
360
|
-
* @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>
|
|
361
|
-
* @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/>
|
|
362
|
-
* @param {*} [options] Override http request option.
|
|
363
|
-
* @throws {RequiredError}
|
|
364
|
-
*/
|
|
365
|
-
async listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
|
|
366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options);
|
|
367
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
* This will partially update a status by code with the provided fields.
|
|
371
|
-
* @summary Update the status
|
|
372
|
-
* @param {string} code
|
|
373
|
-
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
374
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
|
-
* @param {*} [options] Override http request option.
|
|
376
|
-
* @throws {RequiredError}
|
|
377
|
-
*/
|
|
378
|
-
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
380
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
|
-
},
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* StatusesApi - factory interface
|
|
387
|
-
* @export
|
|
388
|
-
*/
|
|
389
|
-
export const StatusesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
390
|
-
const localVarFp = StatusesApiFp(configuration)
|
|
391
|
-
return {
|
|
392
|
-
/**
|
|
393
|
-
* This will create a status.
|
|
394
|
-
* @summary Create the status
|
|
395
|
-
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
396
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
397
|
-
* @param {*} [options] Override http request option.
|
|
398
|
-
* @throws {RequiredError}
|
|
399
|
-
*/
|
|
400
|
-
createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusResponseClass> {
|
|
401
|
-
return localVarFp.createStatus(createStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
402
|
-
},
|
|
403
|
-
/**
|
|
404
|
-
* This will delete status.
|
|
405
|
-
* @summary Delete the status
|
|
406
|
-
* @param {string} code Unique identifier for the object.
|
|
407
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
|
-
* @param {*} [options] Override http request option.
|
|
409
|
-
* @throws {RequiredError}
|
|
410
|
-
*/
|
|
411
|
-
deleteStatus(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
412
|
-
return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath));
|
|
413
|
-
},
|
|
414
|
-
/**
|
|
415
|
-
* Get status by code.
|
|
416
|
-
* @summary Retrieve the status
|
|
417
|
-
* @param {string} code
|
|
418
|
-
* @param {string} expand
|
|
419
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
420
|
-
* @param {*} [options] Override http request option.
|
|
421
|
-
* @throws {RequiredError}
|
|
422
|
-
*/
|
|
423
|
-
getStatus(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
|
|
424
|
-
return localVarFp.getStatus(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
425
|
-
},
|
|
426
|
-
/**
|
|
427
|
-
* Retrieves a list of statuses.
|
|
428
|
-
* @summary List statuses
|
|
429
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
|
-
* @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>
|
|
431
|
-
* @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>
|
|
432
|
-
* @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: id, code, name, slug</i>
|
|
433
|
-
* @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>
|
|
434
|
-
* @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/>
|
|
435
|
-
* @param {*} [options] Override http request option.
|
|
436
|
-
* @throws {RequiredError}
|
|
437
|
-
*/
|
|
438
|
-
listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
|
|
439
|
-
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
|
-
},
|
|
441
|
-
/**
|
|
442
|
-
* This will partially update a status by code with the provided fields.
|
|
443
|
-
* @summary Update the status
|
|
444
|
-
* @param {string} code
|
|
445
|
-
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
446
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
|
-
* @param {*} [options] Override http request option.
|
|
448
|
-
* @throws {RequiredError}
|
|
449
|
-
*/
|
|
450
|
-
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
451
|
-
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
|
-
},
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Request parameters for createStatus operation in StatusesApi.
|
|
458
|
-
* @export
|
|
459
|
-
* @interface StatusesApiCreateStatusRequest
|
|
460
|
-
*/
|
|
461
|
-
export interface StatusesApiCreateStatusRequest {
|
|
462
|
-
/**
|
|
463
|
-
*
|
|
464
|
-
* @type {CreateStatusRequestDto}
|
|
465
|
-
* @memberof StatusesApiCreateStatus
|
|
466
|
-
*/
|
|
467
|
-
readonly createStatusRequestDto: CreateStatusRequestDto
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
-
* @type {string}
|
|
472
|
-
* @memberof StatusesApiCreateStatus
|
|
473
|
-
*/
|
|
474
|
-
readonly authorization?: string
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Request parameters for deleteStatus operation in StatusesApi.
|
|
479
|
-
* @export
|
|
480
|
-
* @interface StatusesApiDeleteStatusRequest
|
|
481
|
-
*/
|
|
482
|
-
export interface StatusesApiDeleteStatusRequest {
|
|
483
|
-
/**
|
|
484
|
-
* Unique identifier for the object.
|
|
485
|
-
* @type {string}
|
|
486
|
-
* @memberof StatusesApiDeleteStatus
|
|
487
|
-
*/
|
|
488
|
-
readonly code: string
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
492
|
-
* @type {string}
|
|
493
|
-
* @memberof StatusesApiDeleteStatus
|
|
494
|
-
*/
|
|
495
|
-
readonly authorization?: string
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* Request parameters for getStatus operation in StatusesApi.
|
|
500
|
-
* @export
|
|
501
|
-
* @interface StatusesApiGetStatusRequest
|
|
502
|
-
*/
|
|
503
|
-
export interface StatusesApiGetStatusRequest {
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @type {string}
|
|
507
|
-
* @memberof StatusesApiGetStatus
|
|
508
|
-
*/
|
|
509
|
-
readonly code: string
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* @type {string}
|
|
514
|
-
* @memberof StatusesApiGetStatus
|
|
515
|
-
*/
|
|
516
|
-
readonly expand: string
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
|
-
* @type {string}
|
|
521
|
-
* @memberof StatusesApiGetStatus
|
|
522
|
-
*/
|
|
523
|
-
readonly authorization?: string
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Request parameters for listStatuses operation in StatusesApi.
|
|
528
|
-
* @export
|
|
529
|
-
* @interface StatusesApiListStatusesRequest
|
|
530
|
-
*/
|
|
531
|
-
export interface StatusesApiListStatusesRequest {
|
|
532
|
-
/**
|
|
533
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
534
|
-
* @type {string}
|
|
535
|
-
* @memberof StatusesApiListStatuses
|
|
536
|
-
*/
|
|
537
|
-
readonly authorization?: string
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* 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>
|
|
541
|
-
* @type {string}
|
|
542
|
-
* @memberof StatusesApiListStatuses
|
|
543
|
-
*/
|
|
544
|
-
readonly filter?: string
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* 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>
|
|
548
|
-
* @type {string}
|
|
549
|
-
* @memberof StatusesApiListStatuses
|
|
550
|
-
*/
|
|
551
|
-
readonly filters?: string
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
555
|
-
* @type {string}
|
|
556
|
-
* @memberof StatusesApiListStatuses
|
|
557
|
-
*/
|
|
558
|
-
readonly search?: string
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* 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>
|
|
562
|
-
* @type {string}
|
|
563
|
-
* @memberof StatusesApiListStatuses
|
|
564
|
-
*/
|
|
565
|
-
readonly order?: string
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* 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/>
|
|
569
|
-
* @type {string}
|
|
570
|
-
* @memberof StatusesApiListStatuses
|
|
571
|
-
*/
|
|
572
|
-
readonly expand?: string
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* Request parameters for patchStatus operation in StatusesApi.
|
|
577
|
-
* @export
|
|
578
|
-
* @interface StatusesApiPatchStatusRequest
|
|
579
|
-
*/
|
|
580
|
-
export interface StatusesApiPatchStatusRequest {
|
|
581
|
-
/**
|
|
582
|
-
*
|
|
583
|
-
* @type {string}
|
|
584
|
-
* @memberof StatusesApiPatchStatus
|
|
585
|
-
*/
|
|
586
|
-
readonly code: string
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
590
|
-
* @type {PatchStatusRequestDto}
|
|
591
|
-
* @memberof StatusesApiPatchStatus
|
|
592
|
-
*/
|
|
593
|
-
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
|
-
* @type {string}
|
|
598
|
-
* @memberof StatusesApiPatchStatus
|
|
599
|
-
*/
|
|
600
|
-
readonly authorization?: string
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* StatusesApi - object-oriented interface
|
|
605
|
-
* @export
|
|
606
|
-
* @class StatusesApi
|
|
607
|
-
* @extends {BaseAPI}
|
|
608
|
-
*/
|
|
609
|
-
export class StatusesApi extends BaseAPI {
|
|
610
|
-
/**
|
|
611
|
-
* This will create a status.
|
|
612
|
-
* @summary Create the status
|
|
613
|
-
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
614
|
-
* @param {*} [options] Override http request option.
|
|
615
|
-
* @throws {RequiredError}
|
|
616
|
-
* @memberof StatusesApi
|
|
617
|
-
*/
|
|
618
|
-
public createStatus(requestParameters: StatusesApiCreateStatusRequest, options?: AxiosRequestConfig) {
|
|
619
|
-
return StatusesApiFp(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* This will delete status.
|
|
624
|
-
* @summary Delete the status
|
|
625
|
-
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
626
|
-
* @param {*} [options] Override http request option.
|
|
627
|
-
* @throws {RequiredError}
|
|
628
|
-
* @memberof StatusesApi
|
|
629
|
-
*/
|
|
630
|
-
public deleteStatus(requestParameters: StatusesApiDeleteStatusRequest, options?: AxiosRequestConfig) {
|
|
631
|
-
return StatusesApiFp(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Get status by code.
|
|
636
|
-
* @summary Retrieve the status
|
|
637
|
-
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
638
|
-
* @param {*} [options] Override http request option.
|
|
639
|
-
* @throws {RequiredError}
|
|
640
|
-
* @memberof StatusesApi
|
|
641
|
-
*/
|
|
642
|
-
public getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Retrieves a list of statuses.
|
|
648
|
-
* @summary List statuses
|
|
649
|
-
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
650
|
-
* @param {*} [options] Override http request option.
|
|
651
|
-
* @throws {RequiredError}
|
|
652
|
-
* @memberof StatusesApi
|
|
653
|
-
*/
|
|
654
|
-
public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
|
|
655
|
-
return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* This will partially update a status by code with the provided fields.
|
|
660
|
-
* @summary Update the status
|
|
661
|
-
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
662
|
-
* @param {*} [options] Override http request option.
|
|
663
|
-
* @throws {RequiredError}
|
|
664
|
-
* @memberof StatusesApi
|
|
665
|
-
*/
|
|
666
|
-
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
-
}
|
|
669
|
-
}
|