@emilgroup/task-sdk-node 1.7.1-beta.37 → 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/README.md +2 -2
- package/api/assignees-api.ts +4 -2
- package/api/categories-api.ts +20 -10
- package/api/filters-api.ts +24 -12
- 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 +76 -38
- package/api/tasks-api.ts +28 -14
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.js +39 -23
- 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.js +112 -69
- package/dist/api/tasks-api.js +43 -26
- package/package.json +1 -1
package/api/tasks-api.ts
CHANGED
|
@@ -81,8 +81,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
81
81
|
// http bearer authentication required
|
|
82
82
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
85
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
86
|
+
if (authorizationValue) {
|
|
87
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
|
|
@@ -128,8 +130,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
128
130
|
// http bearer authentication required
|
|
129
131
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
130
132
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
134
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
137
|
}
|
|
134
138
|
|
|
135
139
|
|
|
@@ -176,8 +180,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
176
180
|
// http bearer authentication required
|
|
177
181
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
178
182
|
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
184
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
185
|
+
if (authorizationValue) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
187
|
}
|
|
182
188
|
|
|
183
189
|
|
|
@@ -226,8 +232,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
226
232
|
localVarQueryParameter['expand'] = expand;
|
|
227
233
|
}
|
|
228
234
|
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
236
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
237
|
+
if (authorizationValue) {
|
|
238
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
231
239
|
}
|
|
232
240
|
|
|
233
241
|
|
|
@@ -302,8 +310,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
302
310
|
localVarQueryParameter['filters'] = filters;
|
|
303
311
|
}
|
|
304
312
|
|
|
305
|
-
|
|
306
|
-
|
|
313
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
314
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
315
|
+
if (authorizationValue) {
|
|
316
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
307
317
|
}
|
|
308
318
|
|
|
309
319
|
|
|
@@ -350,8 +360,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
350
360
|
// http bearer authentication required
|
|
351
361
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
352
362
|
|
|
353
|
-
|
|
354
|
-
|
|
363
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
364
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
365
|
+
if (authorizationValue) {
|
|
366
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
367
|
}
|
|
356
368
|
|
|
357
369
|
|
|
@@ -406,8 +418,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
406
418
|
// http bearer authentication required
|
|
407
419
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
408
420
|
|
|
409
|
-
|
|
410
|
-
|
|
421
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
422
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
423
|
+
if (authorizationValue) {
|
|
424
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
411
425
|
}
|
|
412
426
|
|
|
413
427
|
|
|
@@ -107,7 +107,7 @@ var AssigneesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
listAssignees: function (authorization, expand, 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:
|
|
@@ -130,8 +130,9 @@ var AssigneesApiAxiosParamCreator = function (configuration) {
|
|
|
130
130
|
if (expand !== undefined) {
|
|
131
131
|
localVarQueryParameter['expand'] = expand;
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
if (authorizationValue) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
136
|
}
|
|
136
137
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
138
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -107,7 +107,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createCategory: function (createCategoryRequestDto, 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 CategoriesApiAxiosParamCreator = 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 CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deleteCategory: 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,13 +177,16 @@ var CategoriesApiAxiosParamCreator = 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
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,7 +211,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
205
211
|
getCategory: function (code, authorization, expand, options) {
|
|
206
212
|
if (options === void 0) { options = {}; }
|
|
207
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
209
215
|
return __generator(this, function (_a) {
|
|
210
216
|
switch (_a.label) {
|
|
211
217
|
case 0:
|
|
@@ -231,8 +237,9 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
231
237
|
if (expand !== undefined) {
|
|
232
238
|
localVarQueryParameter['expand'] = expand;
|
|
233
239
|
}
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
241
|
+
if (authorizationValue) {
|
|
242
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
243
|
}
|
|
237
244
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
238
245
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -262,7 +269,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
262
269
|
listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
263
270
|
if (options === void 0) { options = {}; }
|
|
264
271
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
266
273
|
return __generator(this, function (_a) {
|
|
267
274
|
switch (_a.label) {
|
|
268
275
|
case 0:
|
|
@@ -303,8 +310,9 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
303
310
|
if (filters !== undefined) {
|
|
304
311
|
localVarQueryParameter['filters'] = filters;
|
|
305
312
|
}
|
|
306
|
-
|
|
307
|
-
|
|
313
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
314
|
+
if (authorizationValue) {
|
|
315
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
316
|
}
|
|
309
317
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
318
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -329,7 +337,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
329
337
|
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
330
338
|
if (options === void 0) { options = {}; }
|
|
331
339
|
return __awaiter(_this, void 0, void 0, function () {
|
|
332
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
340
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
333
341
|
return __generator(this, function (_a) {
|
|
334
342
|
switch (_a.label) {
|
|
335
343
|
case 0:
|
|
@@ -349,13 +357,16 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
349
357
|
localVarQueryParameter = {};
|
|
350
358
|
// authentication bearer required
|
|
351
359
|
// http bearer authentication required
|
|
352
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
360
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
361
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
362
|
+
];
|
|
353
363
|
case 1:
|
|
354
364
|
// authentication bearer required
|
|
355
365
|
// http bearer authentication required
|
|
356
366
|
_a.sent();
|
|
357
|
-
|
|
358
|
-
|
|
367
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
368
|
+
if (authorizationValue) {
|
|
369
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
359
370
|
}
|
|
360
371
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
361
372
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
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,13 +177,16 @@ 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
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -204,7 +210,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
204
210
|
dryRunFilter: function (dryRunFilterRequestDto, authorization, options) {
|
|
205
211
|
if (options === void 0) { options = {}; }
|
|
206
212
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
213
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
208
214
|
return __generator(this, function (_a) {
|
|
209
215
|
switch (_a.label) {
|
|
210
216
|
case 0:
|
|
@@ -221,13 +227,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
221
227
|
localVarQueryParameter = {};
|
|
222
228
|
// authentication bearer required
|
|
223
229
|
// http bearer authentication required
|
|
224
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
225
233
|
case 1:
|
|
226
234
|
// authentication bearer required
|
|
227
235
|
// http bearer authentication required
|
|
228
236
|
_a.sent();
|
|
229
|
-
|
|
230
|
-
|
|
237
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
238
|
+
if (authorizationValue) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
231
240
|
}
|
|
232
241
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -253,7 +262,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
253
262
|
getFilter: function (code, authorization, options) {
|
|
254
263
|
if (options === void 0) { options = {}; }
|
|
255
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
256
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
265
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
257
266
|
return __generator(this, function (_a) {
|
|
258
267
|
switch (_a.label) {
|
|
259
268
|
case 0:
|
|
@@ -271,13 +280,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
271
280
|
localVarQueryParameter = {};
|
|
272
281
|
// authentication bearer required
|
|
273
282
|
// http bearer authentication required
|
|
274
|
-
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
|
+
];
|
|
275
286
|
case 1:
|
|
276
287
|
// authentication bearer required
|
|
277
288
|
// http bearer authentication required
|
|
278
289
|
_a.sent();
|
|
279
|
-
|
|
280
|
-
|
|
290
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
291
|
+
if (authorizationValue) {
|
|
292
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
281
293
|
}
|
|
282
294
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
283
295
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -307,7 +319,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
307
319
|
listFilters: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
308
320
|
if (options === void 0) { options = {}; }
|
|
309
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
310
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
311
323
|
return __generator(this, function (_a) {
|
|
312
324
|
switch (_a.label) {
|
|
313
325
|
case 0:
|
|
@@ -348,8 +360,9 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
348
360
|
if (filters !== undefined) {
|
|
349
361
|
localVarQueryParameter['filters'] = filters;
|
|
350
362
|
}
|
|
351
|
-
|
|
352
|
-
|
|
363
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
364
|
+
if (authorizationValue) {
|
|
365
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
353
366
|
}
|
|
354
367
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
368
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -374,7 +387,7 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
374
387
|
updateFilter: function (code, updateFilterRequestDto, authorization, options) {
|
|
375
388
|
if (options === void 0) { options = {}; }
|
|
376
389
|
return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
390
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
378
391
|
return __generator(this, function (_a) {
|
|
379
392
|
switch (_a.label) {
|
|
380
393
|
case 0:
|
|
@@ -394,13 +407,16 @@ var FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
394
407
|
localVarQueryParameter = {};
|
|
395
408
|
// authentication bearer required
|
|
396
409
|
// http bearer authentication required
|
|
397
|
-
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
|
+
];
|
|
398
413
|
case 1:
|
|
399
414
|
// authentication bearer required
|
|
400
415
|
// http bearer authentication required
|
|
401
416
|
_a.sent();
|
|
402
|
-
|
|
403
|
-
|
|
417
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
418
|
+
if (authorizationValue) {
|
|
419
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
404
420
|
}
|
|
405
421
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
406
422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
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);
|