@emilgroup/task-sdk-node 1.7.1-beta.4 → 1.7.1-beta.40
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 +8 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +4 -2
- package/api/categories-api.ts +20 -10
- package/api/filters-api.ts +153 -34
- package/api/hub-spot-api.ts +4 -2
- package/api/reminders-api.ts +28 -14
- package/api/statuses-api.ts +20 -10
- package/api/task-client-api.ts +329 -42
- package/api/tasks-api.ts +281 -18
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.d.ts +81 -24
- package/dist/api/filters-api.js +147 -38
- package/dist/api/hub-spot-api.js +7 -4
- package/dist/api/reminders-api.js +40 -25
- package/dist/api/statuses-api.js +29 -18
- package/dist/api/task-client-api.d.ts +148 -8
- package/dist/api/task-client-api.js +313 -67
- package/dist/api/tasks-api.d.ts +148 -8
- package/dist/api/tasks-api.js +244 -24
- package/dist/models/add-secondary-link-response-class.d.ts +25 -0
- package/dist/models/add-secondary-link-response-class.js +15 -0
- package/dist/models/create-task-request-dto.d.ts +13 -0
- package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
- package/dist/models/dry-run-filter-clause-class.js +15 -0
- package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
- package/dist/models/dry-run-filter-request-dto.js +15 -0
- package/dist/models/dry-run-filter-response-class.d.ts +37 -0
- package/dist/models/dry-run-filter-response-class.js +15 -0
- package/dist/models/entity-ref-class.d.ts +34 -0
- package/dist/models/entity-ref-class.js +19 -0
- package/dist/models/entity-ref-dto.d.ts +34 -0
- package/dist/models/entity-ref-dto.js +19 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/patch-task-request-dto.d.ts +12 -0
- package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
- package/dist/models/remove-secondary-link-response-class.js +15 -0
- package/dist/models/secondary-link-class.d.ts +31 -0
- package/dist/models/secondary-link-class.js +15 -0
- package/dist/models/task-class.d.ts +7 -0
- package/models/add-secondary-link-response-class.ts +31 -0
- package/models/create-task-request-dto.ts +13 -0
- package/models/dry-run-filter-clause-class.ts +48 -0
- package/models/dry-run-filter-request-dto.ts +36 -0
- package/models/dry-run-filter-response-class.ts +43 -0
- package/models/entity-ref-class.ts +43 -0
- package/models/entity-ref-dto.ts +43 -0
- package/models/index.ts +8 -0
- package/models/patch-task-request-dto.ts +12 -0
- package/models/remove-secondary-link-response-class.ts +31 -0
- package/models/secondary-link-class.ts +37 -0
- package/models/task-class.ts +7 -0
- package/package.json +1 -1
|
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateFilterRequestDto } from '../models';
|
|
16
16
|
import { CreateFilterResponseClass } from '../models';
|
|
17
|
+
import { DryRunFilterRequestDto } from '../models';
|
|
18
|
+
import { DryRunFilterResponseClass } from '../models';
|
|
17
19
|
import { GetFilterResponseClass } from '../models';
|
|
18
20
|
import { ListFiltersResponseClass } from '../models';
|
|
19
21
|
import { UpdateFilterRequestDto } from '../models';
|
|
@@ -41,6 +43,15 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
41
43
|
* @throws {RequiredError}
|
|
42
44
|
*/
|
|
43
45
|
deleteFilter: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
+
/**
|
|
47
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
48
|
+
* @summary Create the filter dry-run
|
|
49
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
dryRunFilter: (dryRunFilterRequestDto: DryRunFilterRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
55
|
/**
|
|
45
56
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
46
57
|
* @summary Retrieve the filter
|
|
@@ -51,16 +62,16 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
51
62
|
*/
|
|
52
63
|
getFilter: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
64
|
/**
|
|
54
|
-
*
|
|
65
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
55
66
|
* @summary List filters
|
|
56
67
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
68
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
58
69
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
59
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
60
|
-
* @param {string} [search]
|
|
61
|
-
* @param {string} [order]
|
|
62
|
-
* @param {string} [expand]
|
|
63
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
70
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
71
|
+
* @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: name, slug</i>
|
|
72
|
+
* @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, priority</i>
|
|
73
|
+
* @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/>
|
|
74
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
64
75
|
* @param {*} [options] Override http request option.
|
|
65
76
|
* @throws {RequiredError}
|
|
66
77
|
*/
|
|
@@ -99,6 +110,15 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
99
110
|
* @throws {RequiredError}
|
|
100
111
|
*/
|
|
101
112
|
deleteFilter(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
113
|
+
/**
|
|
114
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
115
|
+
* @summary Create the filter dry-run
|
|
116
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
117
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
dryRunFilter(dryRunFilterRequestDto: DryRunFilterRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DryRunFilterResponseClass>>;
|
|
102
122
|
/**
|
|
103
123
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
104
124
|
* @summary Retrieve the filter
|
|
@@ -109,16 +129,16 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
109
129
|
*/
|
|
110
130
|
getFilter(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFilterResponseClass>>;
|
|
111
131
|
/**
|
|
112
|
-
*
|
|
132
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
113
133
|
* @summary List filters
|
|
114
134
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
135
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
116
136
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
117
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
118
|
-
* @param {string} [search]
|
|
119
|
-
* @param {string} [order]
|
|
120
|
-
* @param {string} [expand]
|
|
121
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
137
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
138
|
+
* @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: name, slug</i>
|
|
139
|
+
* @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, priority</i>
|
|
140
|
+
* @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/>
|
|
141
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
122
142
|
* @param {*} [options] Override http request option.
|
|
123
143
|
* @throws {RequiredError}
|
|
124
144
|
*/
|
|
@@ -157,6 +177,15 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
157
177
|
* @throws {RequiredError}
|
|
158
178
|
*/
|
|
159
179
|
deleteFilter(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
180
|
+
/**
|
|
181
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
182
|
+
* @summary Create the filter dry-run
|
|
183
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
184
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
dryRunFilter(dryRunFilterRequestDto: DryRunFilterRequestDto, authorization?: string, options?: any): AxiosPromise<DryRunFilterResponseClass>;
|
|
160
189
|
/**
|
|
161
190
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
162
191
|
* @summary Retrieve the filter
|
|
@@ -167,16 +196,16 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
167
196
|
*/
|
|
168
197
|
getFilter(code: string, authorization?: string, options?: any): AxiosPromise<GetFilterResponseClass>;
|
|
169
198
|
/**
|
|
170
|
-
*
|
|
199
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
171
200
|
* @summary List filters
|
|
172
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
173
202
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
174
203
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
175
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
176
|
-
* @param {string} [search]
|
|
177
|
-
* @param {string} [order]
|
|
178
|
-
* @param {string} [expand]
|
|
179
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
204
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
205
|
+
* @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: name, slug</i>
|
|
206
|
+
* @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, priority</i>
|
|
207
|
+
* @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/>
|
|
208
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
180
209
|
* @param {*} [options] Override http request option.
|
|
181
210
|
* @throws {RequiredError}
|
|
182
211
|
*/
|
|
@@ -230,6 +259,25 @@ export interface FiltersApiDeleteFilterRequest {
|
|
|
230
259
|
*/
|
|
231
260
|
readonly authorization?: string;
|
|
232
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* Request parameters for dryRunFilter operation in FiltersApi.
|
|
264
|
+
* @export
|
|
265
|
+
* @interface FiltersApiDryRunFilterRequest
|
|
266
|
+
*/
|
|
267
|
+
export interface FiltersApiDryRunFilterRequest {
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @type {DryRunFilterRequestDto}
|
|
271
|
+
* @memberof FiltersApiDryRunFilter
|
|
272
|
+
*/
|
|
273
|
+
readonly dryRunFilterRequestDto: DryRunFilterRequestDto;
|
|
274
|
+
/**
|
|
275
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
276
|
+
* @type {string}
|
|
277
|
+
* @memberof FiltersApiDryRunFilter
|
|
278
|
+
*/
|
|
279
|
+
readonly authorization?: string;
|
|
280
|
+
}
|
|
233
281
|
/**
|
|
234
282
|
* Request parameters for getFilter operation in FiltersApi.
|
|
235
283
|
* @export
|
|
@@ -274,31 +322,31 @@ export interface FiltersApiListFiltersRequest {
|
|
|
274
322
|
*/
|
|
275
323
|
readonly pageToken?: string;
|
|
276
324
|
/**
|
|
277
|
-
* Filter the response by one or multiple fields.
|
|
325
|
+
* 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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
278
326
|
* @type {string}
|
|
279
327
|
* @memberof FiltersApiListFilters
|
|
280
328
|
*/
|
|
281
329
|
readonly filter?: string;
|
|
282
330
|
/**
|
|
283
|
-
*
|
|
331
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
284
332
|
* @type {string}
|
|
285
333
|
* @memberof FiltersApiListFilters
|
|
286
334
|
*/
|
|
287
335
|
readonly search?: string;
|
|
288
336
|
/**
|
|
289
|
-
*
|
|
337
|
+
* 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, priority</i>
|
|
290
338
|
* @type {string}
|
|
291
339
|
* @memberof FiltersApiListFilters
|
|
292
340
|
*/
|
|
293
341
|
readonly order?: string;
|
|
294
342
|
/**
|
|
295
|
-
*
|
|
343
|
+
* 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/>
|
|
296
344
|
* @type {string}
|
|
297
345
|
* @memberof FiltersApiListFilters
|
|
298
346
|
*/
|
|
299
347
|
readonly expand?: string;
|
|
300
348
|
/**
|
|
301
|
-
* Filters the response by one or multiple fields.
|
|
349
|
+
* 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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
302
350
|
* @type {string}
|
|
303
351
|
* @memberof FiltersApiListFilters
|
|
304
352
|
*/
|
|
@@ -354,6 +402,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
354
402
|
* @memberof FiltersApi
|
|
355
403
|
*/
|
|
356
404
|
deleteFilter(requestParameters: FiltersApiDeleteFilterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
405
|
+
/**
|
|
406
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
407
|
+
* @summary Create the filter dry-run
|
|
408
|
+
* @param {FiltersApiDryRunFilterRequest} requestParameters Request parameters.
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
* @memberof FiltersApi
|
|
412
|
+
*/
|
|
413
|
+
dryRunFilter(requestParameters: FiltersApiDryRunFilterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DryRunFilterResponseClass, any, {}>>;
|
|
357
414
|
/**
|
|
358
415
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
359
416
|
* @summary Retrieve the filter
|
|
@@ -364,7 +421,7 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
364
421
|
*/
|
|
365
422
|
getFilter(requestParameters: FiltersApiGetFilterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFilterResponseClass, any, {}>>;
|
|
366
423
|
/**
|
|
367
|
-
*
|
|
424
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
368
425
|
* @summary List filters
|
|
369
426
|
* @param {FiltersApiListFiltersRequest} requestParameters Request parameters.
|
|
370
427
|
* @param {*} [options] Override http request option.
|
package/dist/api/filters-api.js
CHANGED
|
@@ -107,7 +107,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createFilter: function (createFilterRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deleteFilter: function (code, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,17 +177,72 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarQueryParameter = {};
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
183
|
+
case 1:
|
|
184
|
+
// authentication bearer required
|
|
185
|
+
// http bearer authentication required
|
|
186
|
+
_a.sent();
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
|
+
}
|
|
191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
194
|
+
return [2 /*return*/, {
|
|
195
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
}];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
204
|
+
* @summary Create the filter dry-run
|
|
205
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
206
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
dryRunFilter: function (dryRunFilterRequestDto, authorization, options) {
|
|
211
|
+
if (options === void 0) { options = {}; }
|
|
212
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
213
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
214
|
+
return __generator(this, function (_a) {
|
|
215
|
+
switch (_a.label) {
|
|
216
|
+
case 0:
|
|
217
|
+
// verify required parameter 'dryRunFilterRequestDto' is not null or undefined
|
|
218
|
+
(0, common_1.assertParamExists)('dryRunFilter', 'dryRunFilterRequestDto', dryRunFilterRequestDto);
|
|
219
|
+
localVarPath = "/taskservice/v1/filters/dry-run";
|
|
220
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
baseAccessToken = configuration.accessToken;
|
|
224
|
+
}
|
|
225
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
226
|
+
localVarHeaderParameter = {};
|
|
227
|
+
localVarQueryParameter = {};
|
|
228
|
+
// authentication bearer required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
231
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
232
|
+
];
|
|
178
233
|
case 1:
|
|
179
234
|
// authentication bearer required
|
|
180
235
|
// http bearer authentication required
|
|
181
236
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
237
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
238
|
+
if (authorizationValue) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
240
|
}
|
|
241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
243
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
244
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dryRunFilterRequestDto, localVarRequestOptions, configuration);
|
|
188
246
|
return [2 /*return*/, {
|
|
189
247
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
248
|
options: localVarRequestOptions,
|
|
@@ -204,7 +262,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
204
262
|
getFilter: function (code, authorization, options) {
|
|
205
263
|
if (options === void 0) { options = {}; }
|
|
206
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
265
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
208
266
|
return __generator(this, function (_a) {
|
|
209
267
|
switch (_a.label) {
|
|
210
268
|
case 0:
|
|
@@ -222,13 +280,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
222
280
|
localVarQueryParameter = {};
|
|
223
281
|
// authentication bearer required
|
|
224
282
|
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
283
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
284
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
285
|
+
];
|
|
226
286
|
case 1:
|
|
227
287
|
// authentication bearer required
|
|
228
288
|
// http bearer authentication required
|
|
229
289
|
_a.sent();
|
|
230
|
-
|
|
231
|
-
|
|
290
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
291
|
+
if (authorizationValue) {
|
|
292
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
293
|
}
|
|
233
294
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
295
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -242,23 +303,23 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
242
303
|
});
|
|
243
304
|
},
|
|
244
305
|
/**
|
|
245
|
-
*
|
|
306
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
246
307
|
* @summary List filters
|
|
247
308
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
309
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
310
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
250
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
251
|
-
* @param {string} [search]
|
|
252
|
-
* @param {string} [order]
|
|
253
|
-
* @param {string} [expand]
|
|
254
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
311
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
312
|
+
* @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: name, slug</i>
|
|
313
|
+
* @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, priority</i>
|
|
314
|
+
* @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/>
|
|
315
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
255
316
|
* @param {*} [options] Override http request option.
|
|
256
317
|
* @throws {RequiredError}
|
|
257
318
|
*/
|
|
258
319
|
listFilters: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
320
|
if (options === void 0) { options = {}; }
|
|
260
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
262
323
|
return __generator(this, function (_a) {
|
|
263
324
|
switch (_a.label) {
|
|
264
325
|
case 0:
|
|
@@ -299,8 +360,9 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
299
360
|
if (filters !== undefined) {
|
|
300
361
|
localVarQueryParameter['filters'] = filters;
|
|
301
362
|
}
|
|
302
|
-
|
|
303
|
-
|
|
363
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
364
|
+
if (authorizationValue) {
|
|
365
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
366
|
}
|
|
305
367
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
368
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,7 +387,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
325
387
|
updateFilter: function (code, updateFilterRequestDto, authorization, options) {
|
|
326
388
|
if (options === void 0) { options = {}; }
|
|
327
389
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
390
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
329
391
|
return __generator(this, function (_a) {
|
|
330
392
|
switch (_a.label) {
|
|
331
393
|
case 0:
|
|
@@ -345,13 +407,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
345
407
|
localVarQueryParameter = {};
|
|
346
408
|
// authentication bearer required
|
|
347
409
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
410
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
411
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
412
|
+
];
|
|
349
413
|
case 1:
|
|
350
414
|
// authentication bearer required
|
|
351
415
|
// http bearer authentication required
|
|
352
416
|
_a.sent();
|
|
353
|
-
|
|
354
|
-
|
|
417
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
418
|
+
if (authorizationValue) {
|
|
419
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
420
|
}
|
|
356
421
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -418,6 +483,27 @@ var FiltersApiFp = function (configuration) {
|
|
|
418
483
|
});
|
|
419
484
|
});
|
|
420
485
|
},
|
|
486
|
+
/**
|
|
487
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
488
|
+
* @summary Create the filter dry-run
|
|
489
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
490
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
dryRunFilter: function (dryRunFilterRequestDto, authorization, options) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
496
|
+
var localVarAxiosArgs;
|
|
497
|
+
return __generator(this, function (_a) {
|
|
498
|
+
switch (_a.label) {
|
|
499
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.dryRunFilter(dryRunFilterRequestDto, authorization, options)];
|
|
500
|
+
case 1:
|
|
501
|
+
localVarAxiosArgs = _a.sent();
|
|
502
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
},
|
|
421
507
|
/**
|
|
422
508
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
423
509
|
* @summary Retrieve the filter
|
|
@@ -440,16 +526,16 @@ var FiltersApiFp = function (configuration) {
|
|
|
440
526
|
});
|
|
441
527
|
},
|
|
442
528
|
/**
|
|
443
|
-
*
|
|
529
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
444
530
|
* @summary List filters
|
|
445
531
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
532
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
447
533
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
448
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
449
|
-
* @param {string} [search]
|
|
450
|
-
* @param {string} [order]
|
|
451
|
-
* @param {string} [expand]
|
|
452
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
534
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
535
|
+
* @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: name, slug</i>
|
|
536
|
+
* @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, priority</i>
|
|
537
|
+
* @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/>
|
|
538
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
453
539
|
* @param {*} [options] Override http request option.
|
|
454
540
|
* @throws {RequiredError}
|
|
455
541
|
*/
|
|
@@ -520,6 +606,17 @@ var FiltersApiFactory = function (configuration, basePath, axios) {
|
|
|
520
606
|
deleteFilter: function (code, authorization, options) {
|
|
521
607
|
return localVarFp.deleteFilter(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
522
608
|
},
|
|
609
|
+
/**
|
|
610
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
611
|
+
* @summary Create the filter dry-run
|
|
612
|
+
* @param {DryRunFilterRequestDto} dryRunFilterRequestDto
|
|
613
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
dryRunFilter: function (dryRunFilterRequestDto, authorization, options) {
|
|
618
|
+
return localVarFp.dryRunFilter(dryRunFilterRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
619
|
+
},
|
|
523
620
|
/**
|
|
524
621
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
525
622
|
* @summary Retrieve the filter
|
|
@@ -532,16 +629,16 @@ var FiltersApiFactory = function (configuration, basePath, axios) {
|
|
|
532
629
|
return localVarFp.getFilter(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
533
630
|
},
|
|
534
631
|
/**
|
|
535
|
-
*
|
|
632
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
536
633
|
* @summary List filters
|
|
537
634
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
538
635
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
539
636
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
540
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
541
|
-
* @param {string} [search]
|
|
542
|
-
* @param {string} [order]
|
|
543
|
-
* @param {string} [expand]
|
|
544
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
637
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
638
|
+
* @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: name, slug</i>
|
|
639
|
+
* @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, priority</i>
|
|
640
|
+
* @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/>
|
|
641
|
+
* @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, targetUserGroupCode, isActive, isFallback, priority</i>
|
|
545
642
|
* @param {*} [options] Override http request option.
|
|
546
643
|
* @throws {RequiredError}
|
|
547
644
|
*/
|
|
@@ -598,6 +695,18 @@ var FiltersApi = /** @class */ (function (_super) {
|
|
|
598
695
|
var _this = this;
|
|
599
696
|
return (0, exports.FiltersApiFp)(this.configuration).deleteFilter(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
600
697
|
};
|
|
698
|
+
/**
|
|
699
|
+
* Test a candidate filter expression against a specific task without saving a filter. **Required Permissions** \"task-management.task-filters.create\"
|
|
700
|
+
* @summary Create the filter dry-run
|
|
701
|
+
* @param {FiltersApiDryRunFilterRequest} requestParameters Request parameters.
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
* @memberof FiltersApi
|
|
705
|
+
*/
|
|
706
|
+
FiltersApi.prototype.dryRunFilter = function (requestParameters, options) {
|
|
707
|
+
var _this = this;
|
|
708
|
+
return (0, exports.FiltersApiFp)(this.configuration).dryRunFilter(requestParameters.dryRunFilterRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
709
|
+
};
|
|
601
710
|
/**
|
|
602
711
|
* Fetch a filter by its code. **Required Permissions** \"task-management.task-filters.view\"
|
|
603
712
|
* @summary Retrieve the filter
|
|
@@ -611,7 +720,7 @@ var FiltersApi = /** @class */ (function (_super) {
|
|
|
611
720
|
return (0, exports.FiltersApiFp)(this.configuration).getFilter(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
612
721
|
};
|
|
613
722
|
/**
|
|
614
|
-
*
|
|
723
|
+
* Retrieves a list of routing filters. **Required Permissions** \"task-management.task-filters.view\"
|
|
615
724
|
* @summary List filters
|
|
616
725
|
* @param {FiltersApiListFiltersRequest} requestParameters Request parameters.
|
|
617
726
|
* @param {*} [options] Override http request option.
|
package/dist/api/hub-spot-api.js
CHANGED
|
@@ -107,7 +107,7 @@ var HubSpotApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var HubSpotApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|