@emilgroup/task-sdk-node 1.7.1-beta.4 → 1.7.1-beta.41
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/common.ts +3 -2
- package/dist/api/assignees-api.d.ts +1 -1
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.d.ts +5 -5
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.d.ts +86 -29
- package/dist/api/filters-api.js +147 -38
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/hub-spot-api.d.ts +1 -1
- package/dist/api/hub-spot-api.js +7 -4
- package/dist/api/reminders-api.d.ts +7 -7
- package/dist/api/reminders-api.js +40 -25
- package/dist/api/statuses-api.d.ts +5 -5
- package/dist/api/statuses-api.js +29 -18
- package/dist/api/task-client-api.d.ts +165 -25
- package/dist/api/task-client-api.js +313 -67
- package/dist/api/tasks-api.d.ts +153 -13
- package/dist/api/tasks-api.js +244 -24
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- 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 +2 -2
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/health-api.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
|
|
70
70
|
}
|
|
@@ -93,5 +93,5 @@ export declare class HubSpotApi extends BaseAPI {
|
|
|
93
93
|
* @throws {RequiredError}
|
|
94
94
|
* @memberof HubSpotApi
|
|
95
95
|
*/
|
|
96
|
-
createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateHubSpotTicketResponseClass, any, {}>>;
|
|
96
|
+
createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateHubSpotTicketResponseClass, any, {}, any>>;
|
|
97
97
|
}
|
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);
|
|
@@ -438,7 +438,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
438
438
|
* @throws {RequiredError}
|
|
439
439
|
* @memberof RemindersApi
|
|
440
440
|
*/
|
|
441
|
-
createReminder(requestParameters: RemindersApiCreateReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateReminderResponseClass, any, {}>>;
|
|
441
|
+
createReminder(requestParameters: RemindersApiCreateReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateReminderResponseClass, any, {}, any>>;
|
|
442
442
|
/**
|
|
443
443
|
* This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
|
|
444
444
|
* @summary Delete the reminder
|
|
@@ -447,7 +447,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
447
447
|
* @throws {RequiredError}
|
|
448
448
|
* @memberof RemindersApi
|
|
449
449
|
*/
|
|
450
|
-
deleteReminder(requestParameters: RemindersApiDeleteReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
450
|
+
deleteReminder(requestParameters: RemindersApiDeleteReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
451
451
|
/**
|
|
452
452
|
* This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
|
|
453
453
|
* @summary Retrieve the reminder
|
|
@@ -456,7 +456,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
456
456
|
* @throws {RequiredError}
|
|
457
457
|
* @memberof RemindersApi
|
|
458
458
|
*/
|
|
459
|
-
getReminder(requestParameters: RemindersApiGetReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetReminderResponseClass, any, {}>>;
|
|
459
|
+
getReminder(requestParameters: RemindersApiGetReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetReminderResponseClass, any, {}, any>>;
|
|
460
460
|
/**
|
|
461
461
|
* This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.reminders.view\"
|
|
462
462
|
* @summary Retrieve the reminder counts
|
|
@@ -465,7 +465,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
465
465
|
* @throws {RequiredError}
|
|
466
466
|
* @memberof RemindersApi
|
|
467
467
|
*/
|
|
468
|
-
getReminderCounts(requestParameters?: RemindersApiGetReminderCountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetReminderCountsResponseClass, any, {}>>;
|
|
468
|
+
getReminderCounts(requestParameters?: RemindersApiGetReminderCountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetReminderCountsResponseClass, any, {}, any>>;
|
|
469
469
|
/**
|
|
470
470
|
* Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
|
|
471
471
|
* @summary List reminders
|
|
@@ -474,7 +474,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
474
474
|
* @throws {RequiredError}
|
|
475
475
|
* @memberof RemindersApi
|
|
476
476
|
*/
|
|
477
|
-
listReminders(requestParameters?: RemindersApiListRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRemindersResponseClass, any, {}>>;
|
|
477
|
+
listReminders(requestParameters?: RemindersApiListRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRemindersResponseClass, any, {}, any>>;
|
|
478
478
|
/**
|
|
479
479
|
* This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
|
|
480
480
|
* @summary Create the reminder done
|
|
@@ -483,7 +483,7 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
483
483
|
* @throws {RequiredError}
|
|
484
484
|
* @memberof RemindersApi
|
|
485
485
|
*/
|
|
486
|
-
markReminderDone(requestParameters: RemindersApiMarkReminderDoneRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MarkReminderDoneResponseClass, any, {}>>;
|
|
486
|
+
markReminderDone(requestParameters: RemindersApiMarkReminderDoneRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MarkReminderDoneResponseClass, any, {}, any>>;
|
|
487
487
|
/**
|
|
488
488
|
* This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
|
|
489
489
|
* @summary Update the reminder
|
|
@@ -492,5 +492,5 @@ export declare class RemindersApi extends BaseAPI {
|
|
|
492
492
|
* @throws {RequiredError}
|
|
493
493
|
* @memberof RemindersApi
|
|
494
494
|
*/
|
|
495
|
-
patchReminder(requestParameters: RemindersApiPatchReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchReminderResponseClass, any, {}>>;
|
|
495
|
+
patchReminder(requestParameters: RemindersApiPatchReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchReminderResponseClass, any, {}, any>>;
|
|
496
496
|
}
|