@indigina/dcm-api 0.0.66 → 0.0.68

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.
Files changed (138) hide show
  1. package/README.md +75 -126
  2. package/fesm2022/indigina-dcm-api.mjs +819 -2238
  3. package/fesm2022/indigina-dcm-api.mjs.map +1 -1
  4. package/index.d.ts +3978 -6
  5. package/package.json +2 -2
  6. package/api/api.d.ts +0 -31
  7. package/api/auditLogs.service.d.ts +0 -45
  8. package/api/bookings.service.d.ts +0 -37
  9. package/api/companies.service.d.ts +0 -42
  10. package/api/containers.service.d.ts +0 -314
  11. package/api/documents.service.d.ts +0 -45
  12. package/api/health.service.d.ts +0 -36
  13. package/api/notes.service.d.ts +0 -67
  14. package/api/permissions.service.d.ts +0 -37
  15. package/api/poItems.service.d.ts +0 -38
  16. package/api/purchaseOrders.service.d.ts +0 -164
  17. package/api/reports.service.d.ts +0 -58
  18. package/api/settings.service.d.ts +0 -147
  19. package/api/shipments.service.d.ts +0 -384
  20. package/api/sipmetItems.service.d.ts +0 -43
  21. package/api/user.service.d.ts +0 -122
  22. package/api.module.d.ts +0 -11
  23. package/configuration.d.ts +0 -104
  24. package/encoder.d.ts +0 -11
  25. package/model/approvalContainerInfo.d.ts +0 -13
  26. package/model/approvalContainerRules.d.ts +0 -13
  27. package/model/approvalItemRules.d.ts +0 -15
  28. package/model/approvalRules.d.ts +0 -16
  29. package/model/approvalShipmentTimelineItem.d.ts +0 -23
  30. package/model/approvalTypes.d.ts +0 -16
  31. package/model/auditLog.d.ts +0 -24
  32. package/model/auditLogs.d.ts +0 -14
  33. package/model/bookingsCount.d.ts +0 -12
  34. package/model/column.d.ts +0 -14
  35. package/model/commandStatusResult.d.ts +0 -12
  36. package/model/companies.d.ts +0 -14
  37. package/model/company.d.ts +0 -14
  38. package/model/consignee.d.ts +0 -13
  39. package/model/containerBookedState.d.ts +0 -18
  40. package/model/containerGridView.d.ts +0 -41
  41. package/model/containerItemView.d.ts +0 -25
  42. package/model/containerItems.d.ts +0 -14
  43. package/model/containerPoGridView.d.ts +0 -27
  44. package/model/containerPos.d.ts +0 -14
  45. package/model/containerShipmentView.d.ts +0 -38
  46. package/model/containerSize.d.ts +0 -40
  47. package/model/containerType.d.ts +0 -15
  48. package/model/containerView.d.ts +0 -37
  49. package/model/containers.d.ts +0 -14
  50. package/model/containersCount.d.ts +0 -12
  51. package/model/containersToDeliverCount.d.ts +0 -14
  52. package/model/country.d.ts +0 -13
  53. package/model/currentUser.d.ts +0 -22
  54. package/model/dashboardReportGroup.d.ts +0 -19
  55. package/model/dashboardReports.d.ts +0 -13
  56. package/model/dc.d.ts +0 -16
  57. package/model/deliveryShipmentTimelineItem.d.ts +0 -20
  58. package/model/departmentShipment.d.ts +0 -14
  59. package/model/document.d.ts +0 -20
  60. package/model/documentType.d.ts +0 -25
  61. package/model/documents.d.ts +0 -14
  62. package/model/embedReport.d.ts +0 -18
  63. package/model/embedReportInfoModel.d.ts +0 -28
  64. package/model/embedTokenDto.d.ts +0 -13
  65. package/model/entityList.d.ts +0 -13
  66. package/model/entityState.d.ts +0 -17
  67. package/model/failures.d.ts +0 -16
  68. package/model/journeySegmentType.d.ts +0 -14
  69. package/model/modelError.d.ts +0 -15
  70. package/model/models.d.ts +0 -111
  71. package/model/note.d.ts +0 -14
  72. package/model/noteSourceTypes.d.ts +0 -13
  73. package/model/noteView.d.ts +0 -16
  74. package/model/notes.d.ts +0 -14
  75. package/model/paymentTerm.d.ts +0 -13
  76. package/model/pendingMessagesCount.d.ts +0 -12
  77. package/model/poItemState.d.ts +0 -16
  78. package/model/poItemSummary.d.ts +0 -20
  79. package/model/poItemTotals.d.ts +0 -13
  80. package/model/port.d.ts +0 -16
  81. package/model/powerBiTenant.d.ts +0 -14
  82. package/model/purchaseOrderGridView.d.ts +0 -45
  83. package/model/purchaseOrderItem.d.ts +0 -45
  84. package/model/purchaseOrderItems.d.ts +0 -14
  85. package/model/purchaseOrderState.d.ts +0 -19
  86. package/model/purchaseOrderSummary.d.ts +0 -44
  87. package/model/purchaseOrderView.d.ts +0 -39
  88. package/model/purchaseOrders.d.ts +0 -14
  89. package/model/recordTypes.d.ts +0 -14
  90. package/model/routingLegType.d.ts +0 -20
  91. package/model/setNewFeaturesVisibilityCommand.d.ts +0 -12
  92. package/model/settingValue.d.ts +0 -13
  93. package/model/settingView.d.ts +0 -14
  94. package/model/shipment.d.ts +0 -64
  95. package/model/shipmentAirRouting.d.ts +0 -34
  96. package/model/shipmentApproval.d.ts +0 -63
  97. package/model/shipmentApprovalType.d.ts +0 -14
  98. package/model/shipmentApprovals.d.ts +0 -14
  99. package/model/shipmentContainer.d.ts +0 -30
  100. package/model/shipmentContainers.d.ts +0 -14
  101. package/model/shipmentItem.d.ts +0 -22
  102. package/model/shipmentItemSummaries.d.ts +0 -14
  103. package/model/shipmentItemSummary.d.ts +0 -24
  104. package/model/shipmentItems.d.ts +0 -14
  105. package/model/shipmentProduct.d.ts +0 -39
  106. package/model/shipmentProductTotals.d.ts +0 -16
  107. package/model/shipmentProducts.d.ts +0 -14
  108. package/model/shipmentRoadRouting.d.ts +0 -33
  109. package/model/shipmentRouting.d.ts +0 -32
  110. package/model/shipmentRoutingsInner.d.ts +0 -9
  111. package/model/shipmentSeaRouting.d.ts +0 -33
  112. package/model/shipmentState.d.ts +0 -21
  113. package/model/shipmentSummary.d.ts +0 -42
  114. package/model/shipmentTerm.d.ts +0 -26
  115. package/model/shipmentTimelineInner.d.ts +0 -9
  116. package/model/shipmentTimelineItem.d.ts +0 -18
  117. package/model/shipments.d.ts +0 -14
  118. package/model/shipmentsApprovalCount.d.ts +0 -13
  119. package/model/shipmentsCount.d.ts +0 -12
  120. package/model/shipmentsInTransitCount.d.ts +0 -12
  121. package/model/summaryDashboardReports.d.ts +0 -15
  122. package/model/supplier.d.ts +0 -13
  123. package/model/timelineEventStates.d.ts +0 -16
  124. package/model/timelineEventTypes.d.ts +0 -21
  125. package/model/transportCarrier.d.ts +0 -13
  126. package/model/transportLocation.d.ts +0 -13
  127. package/model/transportMode.d.ts +0 -16
  128. package/model/transportationShipmentTimelineItem.d.ts +0 -27
  129. package/model/unbookedPoLineItem.d.ts +0 -55
  130. package/model/unbookedPoLineItems.d.ts +0 -14
  131. package/model/user.d.ts +0 -13
  132. package/model/userApplication.d.ts +0 -13
  133. package/model/userApplications.d.ts +0 -13
  134. package/model/userCompanyType.d.ts +0 -22
  135. package/model/userPermissions.d.ts +0 -12
  136. package/model/workflowArtifacts.d.ts +0 -18
  137. package/param.d.ts +0 -37
  138. package/variables.d.ts +0 -8
@@ -1,8 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
5
5
 
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
6
14
  /**
7
15
  * Custom HttpParameterCodec
8
16
  * Workaround for https://github.com/angular/angular/issues/18261
@@ -22,14 +30,6 @@ class CustomHttpParameterCodec {
22
30
  }
23
31
  }
24
32
 
25
- const BASE_PATH = new InjectionToken('basePath');
26
- const COLLECTION_FORMATS = {
27
- 'csv': ',',
28
- 'tsv': ' ',
29
- 'ssv': ' ',
30
- 'pipes': '|'
31
- };
32
-
33
33
  class Configuration {
34
34
  /**
35
35
  * @deprecated Since 5.0. Use credentials instead
@@ -61,26 +61,30 @@ class Configuration {
61
61
  * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
62
  */
63
63
  credentials;
64
- constructor(configurationParameters = {}) {
65
- this.apiKeys = configurationParameters.apiKeys;
66
- this.username = configurationParameters.username;
67
- this.password = configurationParameters.password;
68
- this.accessToken = configurationParameters.accessToken;
69
- this.basePath = configurationParameters.basePath;
70
- this.withCredentials = configurationParameters.withCredentials;
71
- this.encoder = configurationParameters.encoder;
72
- if (configurationParameters.encodeParam) {
73
- this.encodeParam = configurationParameters.encodeParam;
74
- }
75
- else {
76
- this.encodeParam = param => this.defaultEncodeParam(param);
77
- }
78
- if (configurationParameters.credentials) {
79
- this.credentials = configurationParameters.credentials;
80
- }
81
- else {
82
- this.credentials = {};
64
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
65
+ if (apiKeys) {
66
+ this.apiKeys = apiKeys;
67
+ }
68
+ if (username !== undefined) {
69
+ this.username = username;
70
+ }
71
+ if (password !== undefined) {
72
+ this.password = password;
73
+ }
74
+ if (accessToken !== undefined) {
75
+ this.accessToken = accessToken;
76
+ }
77
+ if (basePath !== undefined) {
78
+ this.basePath = basePath;
79
+ }
80
+ if (withCredentials !== undefined) {
81
+ this.withCredentials = withCredentials;
83
82
  }
83
+ if (encoder) {
84
+ this.encoder = encoder;
85
+ }
86
+ this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
87
+ this.credentials = credentials ?? {};
84
88
  }
85
89
  /**
86
90
  * Select the correct content-type to use for a request.
@@ -136,6 +140,18 @@ class Configuration {
136
140
  ? value()
137
141
  : value;
138
142
  }
143
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
144
+ const value = this.lookupCredential(credentialKey);
145
+ return value
146
+ ? headers.set(headerName, (prefix ?? '') + value)
147
+ : headers;
148
+ }
149
+ addCredentialToQuery(credentialKey, paramName, query) {
150
+ const value = this.lookupCredential(credentialKey);
151
+ return value
152
+ ? query.set(paramName, value)
153
+ : query;
154
+ }
139
155
  defaultEncodeParam(param) {
140
156
  // This implementation exists as fallback for missing configuration
141
157
  // and for backwards compatibility to older typescript-angular generator versions.
@@ -160,18 +176,13 @@ class Configuration {
160
176
  * https://openapi-generator.tech
161
177
  * Do not edit the class manually.
162
178
  */
163
- /* tslint:disable:no-unused-variable member-ordering */
164
- class AuditLogsService {
165
- httpClient;
179
+ class BaseService {
166
180
  basePath = 'http://localhost';
167
181
  defaultHeaders = new HttpHeaders();
168
- configuration = new Configuration();
182
+ configuration;
169
183
  encoder;
170
- constructor(httpClient, basePath, configuration) {
171
- this.httpClient = httpClient;
172
- if (configuration) {
173
- this.configuration = configuration;
174
- }
184
+ constructor(basePath, configuration) {
185
+ this.configuration = configuration || new Configuration();
175
186
  if (typeof this.configuration.basePath !== 'string') {
176
187
  const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
177
188
  if (firstBasePath != undefined) {
@@ -184,43 +195,69 @@ class AuditLogsService {
184
195
  }
185
196
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
186
197
  }
187
- // @ts-ignore
188
- addToHttpParams(httpParams, value, key) {
189
- if (typeof value === "object" && value instanceof Date === false) {
190
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
191
- }
192
- else {
193
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
198
+ canConsumeForm(consumes) {
199
+ return consumes.indexOf('multipart/form-data') !== -1;
200
+ }
201
+ addToHttpParams(httpParams, value, key, isDeep = false) {
202
+ // If the value is an object (but not a Date), recursively add its keys.
203
+ if (typeof value === 'object' && !(value instanceof Date)) {
204
+ return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
194
205
  }
195
- return httpParams;
206
+ return this.addToHttpParamsRecursive(httpParams, value, key);
196
207
  }
197
- addToHttpParamsRecursive(httpParams, value, key) {
198
- if (value == null) {
208
+ addToHttpParamsRecursive(httpParams, value, key, isDeep = false) {
209
+ if (value === null || value === undefined) {
199
210
  return httpParams;
200
211
  }
201
- if (typeof value === "object") {
212
+ if (typeof value === 'object') {
213
+ // If JSON format is preferred, key must be provided.
214
+ if (key != null) {
215
+ return isDeep
216
+ ? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams)
217
+ : httpParams.append(key, JSON.stringify(value));
218
+ }
219
+ // Otherwise, if it's an array, add each element.
202
220
  if (Array.isArray(value)) {
203
221
  value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
204
222
  }
205
223
  else if (value instanceof Date) {
206
224
  if (key != null) {
207
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
225
+ httpParams = httpParams.append(key, value.toISOString());
208
226
  }
209
227
  else {
210
228
  throw Error("key may not be null if value is Date");
211
229
  }
212
230
  }
213
231
  else {
214
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
232
+ Object.keys(value).forEach(k => {
233
+ const paramKey = key ? `${key}.${k}` : k;
234
+ httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
235
+ });
215
236
  }
237
+ return httpParams;
216
238
  }
217
239
  else if (key != null) {
218
- httpParams = httpParams.append(key, value);
219
- }
220
- else {
221
- throw Error("key may not be null if value is not object or array");
240
+ return httpParams.append(key, value);
222
241
  }
223
- return httpParams;
242
+ throw Error("key may not be null if value is not object or array");
243
+ }
244
+ }
245
+
246
+ /**
247
+ * Dcm.API.Client
248
+ *
249
+ *
250
+ *
251
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
252
+ * https://openapi-generator.tech
253
+ * Do not edit the class manually.
254
+ */
255
+ /* tslint:disable:no-unused-variable member-ordering */
256
+ class AuditLogsService extends BaseService {
257
+ httpClient;
258
+ constructor(httpClient, basePath, configuration) {
259
+ super(basePath, configuration);
260
+ this.httpClient = httpClient;
224
261
  }
225
262
  getShipmentLogs(recordId, recordType, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
226
263
  if (recordId === null || recordId === undefined) {
@@ -230,41 +267,20 @@ class AuditLogsService {
230
267
  throw new Error('Required parameter recordType was null or undefined when calling getShipmentLogs.');
231
268
  }
232
269
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
233
- if ($skip !== undefined && $skip !== null) {
234
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
235
- }
236
- if ($top !== undefined && $top !== null) {
237
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
238
- }
239
- if ($orderby !== undefined && $orderby !== null) {
240
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
241
- }
242
- if ($filter !== undefined && $filter !== null) {
243
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
244
- }
245
- if ($search !== undefined && $search !== null) {
246
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
247
- }
270
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
271
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
272
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
273
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
274
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
248
275
  let localVarHeaders = this.defaultHeaders;
249
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
250
- if (localVarHttpHeaderAcceptSelected === undefined) {
251
- // to determine the Accept header
252
- const httpHeaderAccepts = [
253
- 'application/json'
254
- ];
255
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
256
- }
276
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
277
+ 'application/json'
278
+ ]);
257
279
  if (localVarHttpHeaderAcceptSelected !== undefined) {
258
280
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
259
281
  }
260
- let localVarHttpContext = options && options.context;
261
- if (localVarHttpContext === undefined) {
262
- localVarHttpContext = new HttpContext();
263
- }
264
- let localVarTransferCache = options && options.transferCache;
265
- if (localVarTransferCache === undefined) {
266
- localVarTransferCache = true;
267
- }
282
+ const localVarHttpContext = options?.context ?? new HttpContext();
283
+ const localVarTransferCache = options?.transferCache ?? true;
268
284
  let responseType_ = 'json';
269
285
  if (localVarHttpHeaderAcceptSelected) {
270
286
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -278,21 +294,22 @@ class AuditLogsService {
278
294
  }
279
295
  }
280
296
  let localVarPath = `/auditLogs/${this.configuration.encodeParam({ name: "recordId", value: recordId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "recordType", value: recordType, in: "path", style: "simple", explode: false, dataType: "RecordTypes", dataFormat: undefined })}`;
281
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
297
+ const { basePath, withCredentials } = this.configuration;
298
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
282
299
  context: localVarHttpContext,
283
300
  params: localVarQueryParameters,
284
301
  responseType: responseType_,
285
- withCredentials: this.configuration.withCredentials,
302
+ ...(withCredentials ? { withCredentials } : {}),
286
303
  headers: localVarHeaders,
287
304
  observe: observe,
288
305
  transferCache: localVarTransferCache,
289
306
  reportProgress: reportProgress
290
307
  });
291
308
  }
292
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AuditLogsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
293
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AuditLogsService, providedIn: 'root' });
309
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuditLogsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
310
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuditLogsService, providedIn: 'root' });
294
311
  }
295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AuditLogsService, decorators: [{
312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuditLogsService, decorators: [{
296
313
  type: Injectable,
297
314
  args: [{
298
315
  providedIn: 'root'
@@ -316,88 +333,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
316
333
  * Do not edit the class manually.
317
334
  */
318
335
  /* tslint:disable:no-unused-variable member-ordering */
319
- class BookingsService {
336
+ class BookingsService extends BaseService {
320
337
  httpClient;
321
- basePath = 'http://localhost';
322
- defaultHeaders = new HttpHeaders();
323
- configuration = new Configuration();
324
- encoder;
325
338
  constructor(httpClient, basePath, configuration) {
339
+ super(basePath, configuration);
326
340
  this.httpClient = httpClient;
327
- if (configuration) {
328
- this.configuration = configuration;
329
- }
330
- if (typeof this.configuration.basePath !== 'string') {
331
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
332
- if (firstBasePath != undefined) {
333
- basePath = firstBasePath;
334
- }
335
- if (typeof basePath !== 'string') {
336
- basePath = this.basePath;
337
- }
338
- this.configuration.basePath = basePath;
339
- }
340
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
341
- }
342
- // @ts-ignore
343
- addToHttpParams(httpParams, value, key) {
344
- if (typeof value === "object" && value instanceof Date === false) {
345
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
346
- }
347
- else {
348
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
349
- }
350
- return httpParams;
351
- }
352
- addToHttpParamsRecursive(httpParams, value, key) {
353
- if (value == null) {
354
- return httpParams;
355
- }
356
- if (typeof value === "object") {
357
- if (Array.isArray(value)) {
358
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
359
- }
360
- else if (value instanceof Date) {
361
- if (key != null) {
362
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
363
- }
364
- else {
365
- throw Error("key may not be null if value is Date");
366
- }
367
- }
368
- else {
369
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
370
- }
371
- }
372
- else if (key != null) {
373
- httpParams = httpParams.append(key, value);
374
- }
375
- else {
376
- throw Error("key may not be null if value is not object or array");
377
- }
378
- return httpParams;
379
341
  }
380
342
  getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
381
343
  let localVarHeaders = this.defaultHeaders;
382
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
383
- if (localVarHttpHeaderAcceptSelected === undefined) {
384
- // to determine the Accept header
385
- const httpHeaderAccepts = [
386
- 'application/json'
387
- ];
388
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
389
- }
344
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
345
+ 'application/json'
346
+ ]);
390
347
  if (localVarHttpHeaderAcceptSelected !== undefined) {
391
348
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
392
349
  }
393
- let localVarHttpContext = options && options.context;
394
- if (localVarHttpContext === undefined) {
395
- localVarHttpContext = new HttpContext();
396
- }
397
- let localVarTransferCache = options && options.transferCache;
398
- if (localVarTransferCache === undefined) {
399
- localVarTransferCache = true;
400
- }
350
+ const localVarHttpContext = options?.context ?? new HttpContext();
351
+ const localVarTransferCache = options?.transferCache ?? true;
401
352
  let responseType_ = 'json';
402
353
  if (localVarHttpHeaderAcceptSelected) {
403
354
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -411,20 +362,21 @@ class BookingsService {
411
362
  }
412
363
  }
413
364
  let localVarPath = `/bookings/vendorDrafts/count`;
414
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
365
+ const { basePath, withCredentials } = this.configuration;
366
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
415
367
  context: localVarHttpContext,
416
368
  responseType: responseType_,
417
- withCredentials: this.configuration.withCredentials,
369
+ ...(withCredentials ? { withCredentials } : {}),
418
370
  headers: localVarHeaders,
419
371
  observe: observe,
420
372
  transferCache: localVarTransferCache,
421
373
  reportProgress: reportProgress
422
374
  });
423
375
  }
424
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BookingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
425
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BookingsService, providedIn: 'root' });
376
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BookingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
377
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BookingsService, providedIn: 'root' });
426
378
  }
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BookingsService, decorators: [{
379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BookingsService, decorators: [{
428
380
  type: Injectable,
429
381
  args: [{
430
382
  providedIn: 'root'
@@ -448,104 +400,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
448
400
  * Do not edit the class manually.
449
401
  */
450
402
  /* tslint:disable:no-unused-variable member-ordering */
451
- class CompaniesService {
403
+ class CompaniesService extends BaseService {
452
404
  httpClient;
453
- basePath = 'http://localhost';
454
- defaultHeaders = new HttpHeaders();
455
- configuration = new Configuration();
456
- encoder;
457
405
  constructor(httpClient, basePath, configuration) {
406
+ super(basePath, configuration);
458
407
  this.httpClient = httpClient;
459
- if (configuration) {
460
- this.configuration = configuration;
461
- }
462
- if (typeof this.configuration.basePath !== 'string') {
463
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
464
- if (firstBasePath != undefined) {
465
- basePath = firstBasePath;
466
- }
467
- if (typeof basePath !== 'string') {
468
- basePath = this.basePath;
469
- }
470
- this.configuration.basePath = basePath;
471
- }
472
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
473
- }
474
- // @ts-ignore
475
- addToHttpParams(httpParams, value, key) {
476
- if (typeof value === "object" && value instanceof Date === false) {
477
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
478
- }
479
- else {
480
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
481
- }
482
- return httpParams;
483
- }
484
- addToHttpParamsRecursive(httpParams, value, key) {
485
- if (value == null) {
486
- return httpParams;
487
- }
488
- if (typeof value === "object") {
489
- if (Array.isArray(value)) {
490
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
491
- }
492
- else if (value instanceof Date) {
493
- if (key != null) {
494
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
495
- }
496
- else {
497
- throw Error("key may not be null if value is Date");
498
- }
499
- }
500
- else {
501
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
502
- }
503
- }
504
- else if (key != null) {
505
- httpParams = httpParams.append(key, value);
506
- }
507
- else {
508
- throw Error("key may not be null if value is not object or array");
509
- }
510
- return httpParams;
511
408
  }
512
409
  getUserCompanies($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
513
410
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
514
- if ($skip !== undefined && $skip !== null) {
515
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
516
- }
517
- if ($top !== undefined && $top !== null) {
518
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
519
- }
520
- if ($orderby !== undefined && $orderby !== null) {
521
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
522
- }
523
- if ($filter !== undefined && $filter !== null) {
524
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
525
- }
526
- if ($search !== undefined && $search !== null) {
527
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
528
- }
411
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
412
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
413
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
414
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
415
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
529
416
  let localVarHeaders = this.defaultHeaders;
530
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
531
- if (localVarHttpHeaderAcceptSelected === undefined) {
532
- // to determine the Accept header
533
- const httpHeaderAccepts = [
534
- 'application/json'
535
- ];
536
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
537
- }
417
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
418
+ 'application/json'
419
+ ]);
538
420
  if (localVarHttpHeaderAcceptSelected !== undefined) {
539
421
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
540
422
  }
541
- let localVarHttpContext = options && options.context;
542
- if (localVarHttpContext === undefined) {
543
- localVarHttpContext = new HttpContext();
544
- }
545
- let localVarTransferCache = options && options.transferCache;
546
- if (localVarTransferCache === undefined) {
547
- localVarTransferCache = true;
548
- }
423
+ const localVarHttpContext = options?.context ?? new HttpContext();
424
+ const localVarTransferCache = options?.transferCache ?? true;
549
425
  let responseType_ = 'json';
550
426
  if (localVarHttpHeaderAcceptSelected) {
551
427
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -559,21 +435,22 @@ class CompaniesService {
559
435
  }
560
436
  }
561
437
  let localVarPath = `/companies/userCompanies`;
562
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
438
+ const { basePath, withCredentials } = this.configuration;
439
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
563
440
  context: localVarHttpContext,
564
441
  params: localVarQueryParameters,
565
442
  responseType: responseType_,
566
- withCredentials: this.configuration.withCredentials,
443
+ ...(withCredentials ? { withCredentials } : {}),
567
444
  headers: localVarHeaders,
568
445
  observe: observe,
569
446
  transferCache: localVarTransferCache,
570
447
  reportProgress: reportProgress
571
448
  });
572
449
  }
573
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
574
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, providedIn: 'root' });
450
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CompaniesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
451
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CompaniesService, providedIn: 'root' });
575
452
  }
576
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, decorators: [{
453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CompaniesService, decorators: [{
577
454
  type: Injectable,
578
455
  args: [{
579
456
  providedIn: 'root'
@@ -597,107 +474,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
597
474
  * Do not edit the class manually.
598
475
  */
599
476
  /* tslint:disable:no-unused-variable member-ordering */
600
- class ContainersService {
477
+ class ContainersService extends BaseService {
601
478
  httpClient;
602
- basePath = 'http://localhost';
603
- defaultHeaders = new HttpHeaders();
604
- configuration = new Configuration();
605
- encoder;
606
479
  constructor(httpClient, basePath, configuration) {
480
+ super(basePath, configuration);
607
481
  this.httpClient = httpClient;
608
- if (configuration) {
609
- this.configuration = configuration;
482
+ }
483
+ getContainerDeliveries($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
484
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
485
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
486
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
487
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
488
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
489
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
490
+ let localVarHeaders = this.defaultHeaders;
491
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
492
+ 'application/json'
493
+ ]);
494
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
495
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
610
496
  }
611
- if (typeof this.configuration.basePath !== 'string') {
612
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
613
- if (firstBasePath != undefined) {
614
- basePath = firstBasePath;
497
+ const localVarHttpContext = options?.context ?? new HttpContext();
498
+ const localVarTransferCache = options?.transferCache ?? true;
499
+ let responseType_ = 'json';
500
+ if (localVarHttpHeaderAcceptSelected) {
501
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
502
+ responseType_ = 'text';
615
503
  }
616
- if (typeof basePath !== 'string') {
617
- basePath = this.basePath;
504
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
505
+ responseType_ = 'json';
506
+ }
507
+ else {
508
+ responseType_ = 'blob';
618
509
  }
619
- this.configuration.basePath = basePath;
620
- }
621
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
622
- }
623
- // @ts-ignore
624
- addToHttpParams(httpParams, value, key) {
625
- if (typeof value === "object" && value instanceof Date === false) {
626
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
627
- }
628
- else {
629
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
630
510
  }
631
- return httpParams;
511
+ let localVarPath = `/containers/deliveries`;
512
+ const { basePath, withCredentials } = this.configuration;
513
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
514
+ context: localVarHttpContext,
515
+ params: localVarQueryParameters,
516
+ responseType: responseType_,
517
+ ...(withCredentials ? { withCredentials } : {}),
518
+ headers: localVarHeaders,
519
+ observe: observe,
520
+ transferCache: localVarTransferCache,
521
+ reportProgress: reportProgress
522
+ });
632
523
  }
633
- addToHttpParamsRecursive(httpParams, value, key) {
634
- if (value == null) {
635
- return httpParams;
524
+ getContainerDeliveriesFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
525
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
526
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
527
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
528
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
529
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
530
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
531
+ let localVarHeaders = this.defaultHeaders;
532
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
533
+ 'application/json'
534
+ ]);
535
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
536
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
636
537
  }
637
- if (typeof value === "object") {
638
- if (Array.isArray(value)) {
639
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
538
+ const localVarHttpContext = options?.context ?? new HttpContext();
539
+ const localVarTransferCache = options?.transferCache ?? true;
540
+ let responseType_ = 'json';
541
+ if (localVarHttpHeaderAcceptSelected) {
542
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
543
+ responseType_ = 'text';
640
544
  }
641
- else if (value instanceof Date) {
642
- if (key != null) {
643
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
644
- }
645
- else {
646
- throw Error("key may not be null if value is Date");
647
- }
545
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
546
+ responseType_ = 'json';
648
547
  }
649
548
  else {
650
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
549
+ responseType_ = 'blob';
651
550
  }
652
551
  }
653
- else if (key != null) {
654
- httpParams = httpParams.append(key, value);
655
- }
656
- else {
657
- throw Error("key may not be null if value is not object or array");
658
- }
659
- return httpParams;
552
+ let localVarPath = `/containers/deliveries/search`;
553
+ const { basePath, withCredentials } = this.configuration;
554
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
555
+ context: localVarHttpContext,
556
+ params: localVarQueryParameters,
557
+ responseType: responseType_,
558
+ ...(withCredentials ? { withCredentials } : {}),
559
+ headers: localVarHeaders,
560
+ observe: observe,
561
+ transferCache: localVarTransferCache,
562
+ reportProgress: reportProgress
563
+ });
660
564
  }
661
565
  getContainerItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
662
566
  if (id === null || id === undefined) {
663
567
  throw new Error('Required parameter id was null or undefined when calling getContainerItems.');
664
568
  }
665
569
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
666
- if ($skip !== undefined && $skip !== null) {
667
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
668
- }
669
- if ($top !== undefined && $top !== null) {
670
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
671
- }
672
- if ($orderby !== undefined && $orderby !== null) {
673
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
674
- }
675
- if ($filter !== undefined && $filter !== null) {
676
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
677
- }
678
- if ($search !== undefined && $search !== null) {
679
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
680
- }
570
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
571
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
572
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
573
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
574
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
681
575
  let localVarHeaders = this.defaultHeaders;
682
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
683
- if (localVarHttpHeaderAcceptSelected === undefined) {
684
- // to determine the Accept header
685
- const httpHeaderAccepts = [
686
- 'application/json'
687
- ];
688
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
689
- }
576
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
577
+ 'application/json'
578
+ ]);
690
579
  if (localVarHttpHeaderAcceptSelected !== undefined) {
691
580
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
692
581
  }
693
- let localVarHttpContext = options && options.context;
694
- if (localVarHttpContext === undefined) {
695
- localVarHttpContext = new HttpContext();
696
- }
697
- let localVarTransferCache = options && options.transferCache;
698
- if (localVarTransferCache === undefined) {
699
- localVarTransferCache = true;
700
- }
582
+ const localVarHttpContext = options?.context ?? new HttpContext();
583
+ const localVarTransferCache = options?.transferCache ?? true;
701
584
  let responseType_ = 'json';
702
585
  if (localVarHttpHeaderAcceptSelected) {
703
586
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -711,11 +594,12 @@ class ContainersService {
711
594
  }
712
595
  }
713
596
  let localVarPath = `/containers/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
714
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
597
+ const { basePath, withCredentials } = this.configuration;
598
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
715
599
  context: localVarHttpContext,
716
600
  params: localVarQueryParameters,
717
601
  responseType: responseType_,
718
- withCredentials: this.configuration.withCredentials,
602
+ ...(withCredentials ? { withCredentials } : {}),
719
603
  headers: localVarHeaders,
720
604
  observe: observe,
721
605
  transferCache: localVarTransferCache,
@@ -724,41 +608,20 @@ class ContainersService {
724
608
  }
725
609
  getContainerPurchaseOrders($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
726
610
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
727
- if ($skip !== undefined && $skip !== null) {
728
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
729
- }
730
- if ($top !== undefined && $top !== null) {
731
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
732
- }
733
- if ($orderby !== undefined && $orderby !== null) {
734
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
735
- }
736
- if ($filter !== undefined && $filter !== null) {
737
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
738
- }
739
- if ($search !== undefined && $search !== null) {
740
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
741
- }
611
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
612
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
613
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
614
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
615
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
742
616
  let localVarHeaders = this.defaultHeaders;
743
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
744
- if (localVarHttpHeaderAcceptSelected === undefined) {
745
- // to determine the Accept header
746
- const httpHeaderAccepts = [
747
- 'application/json'
748
- ];
749
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
750
- }
617
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
618
+ 'application/json'
619
+ ]);
751
620
  if (localVarHttpHeaderAcceptSelected !== undefined) {
752
621
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
753
622
  }
754
- let localVarHttpContext = options && options.context;
755
- if (localVarHttpContext === undefined) {
756
- localVarHttpContext = new HttpContext();
757
- }
758
- let localVarTransferCache = options && options.transferCache;
759
- if (localVarTransferCache === undefined) {
760
- localVarTransferCache = true;
761
- }
623
+ const localVarHttpContext = options?.context ?? new HttpContext();
624
+ const localVarTransferCache = options?.transferCache ?? true;
762
625
  let responseType_ = 'json';
763
626
  if (localVarHttpHeaderAcceptSelected) {
764
627
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -772,11 +635,12 @@ class ContainersService {
772
635
  }
773
636
  }
774
637
  let localVarPath = `/containers/pos`;
775
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
638
+ const { basePath, withCredentials } = this.configuration;
639
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
776
640
  context: localVarHttpContext,
777
641
  params: localVarQueryParameters,
778
642
  responseType: responseType_,
779
- withCredentials: this.configuration.withCredentials,
643
+ ...(withCredentials ? { withCredentials } : {}),
780
644
  headers: localVarHeaders,
781
645
  observe: observe,
782
646
  transferCache: localVarTransferCache,
@@ -785,41 +649,20 @@ class ContainersService {
785
649
  }
786
650
  getContainerPurchaseOrdersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
787
651
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
788
- if ($skip !== undefined && $skip !== null) {
789
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
790
- }
791
- if ($top !== undefined && $top !== null) {
792
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
793
- }
794
- if ($orderby !== undefined && $orderby !== null) {
795
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
796
- }
797
- if ($filter !== undefined && $filter !== null) {
798
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
799
- }
800
- if (searchTerm !== undefined && searchTerm !== null) {
801
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
802
- }
652
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
653
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
654
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
655
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
656
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
803
657
  let localVarHeaders = this.defaultHeaders;
804
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
805
- if (localVarHttpHeaderAcceptSelected === undefined) {
806
- // to determine the Accept header
807
- const httpHeaderAccepts = [
808
- 'application/json'
809
- ];
810
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
811
- }
658
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
659
+ 'application/json'
660
+ ]);
812
661
  if (localVarHttpHeaderAcceptSelected !== undefined) {
813
662
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
814
663
  }
815
- let localVarHttpContext = options && options.context;
816
- if (localVarHttpContext === undefined) {
817
- localVarHttpContext = new HttpContext();
818
- }
819
- let localVarTransferCache = options && options.transferCache;
820
- if (localVarTransferCache === undefined) {
821
- localVarTransferCache = true;
822
- }
664
+ const localVarHttpContext = options?.context ?? new HttpContext();
665
+ const localVarTransferCache = options?.transferCache ?? true;
823
666
  let responseType_ = 'json';
824
667
  if (localVarHttpHeaderAcceptSelected) {
825
668
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -833,11 +676,12 @@ class ContainersService {
833
676
  }
834
677
  }
835
678
  let localVarPath = `/containers/pos/search`;
836
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
679
+ const { basePath, withCredentials } = this.configuration;
680
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
837
681
  context: localVarHttpContext,
838
682
  params: localVarQueryParameters,
839
683
  responseType: responseType_,
840
- withCredentials: this.configuration.withCredentials,
684
+ ...(withCredentials ? { withCredentials } : {}),
841
685
  headers: localVarHeaders,
842
686
  observe: observe,
843
687
  transferCache: localVarTransferCache,
@@ -846,41 +690,20 @@ class ContainersService {
846
690
  }
847
691
  getContainers($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
848
692
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
849
- if ($skip !== undefined && $skip !== null) {
850
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
851
- }
852
- if ($top !== undefined && $top !== null) {
853
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
854
- }
855
- if ($orderby !== undefined && $orderby !== null) {
856
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
857
- }
858
- if ($filter !== undefined && $filter !== null) {
859
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
860
- }
861
- if ($search !== undefined && $search !== null) {
862
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
863
- }
693
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
694
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
695
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
696
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
697
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
864
698
  let localVarHeaders = this.defaultHeaders;
865
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
866
- if (localVarHttpHeaderAcceptSelected === undefined) {
867
- // to determine the Accept header
868
- const httpHeaderAccepts = [
869
- 'application/json'
870
- ];
871
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
872
- }
699
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
700
+ 'application/json'
701
+ ]);
873
702
  if (localVarHttpHeaderAcceptSelected !== undefined) {
874
703
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
875
704
  }
876
- let localVarHttpContext = options && options.context;
877
- if (localVarHttpContext === undefined) {
878
- localVarHttpContext = new HttpContext();
879
- }
880
- let localVarTransferCache = options && options.transferCache;
881
- if (localVarTransferCache === undefined) {
882
- localVarTransferCache = true;
883
- }
705
+ const localVarHttpContext = options?.context ?? new HttpContext();
706
+ const localVarTransferCache = options?.transferCache ?? true;
884
707
  let responseType_ = 'json';
885
708
  if (localVarHttpHeaderAcceptSelected) {
886
709
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -894,11 +717,12 @@ class ContainersService {
894
717
  }
895
718
  }
896
719
  let localVarPath = `/containers`;
897
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
720
+ const { basePath, withCredentials } = this.configuration;
721
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
898
722
  context: localVarHttpContext,
899
723
  params: localVarQueryParameters,
900
724
  responseType: responseType_,
901
- withCredentials: this.configuration.withCredentials,
725
+ ...(withCredentials ? { withCredentials } : {}),
902
726
  headers: localVarHeaders,
903
727
  observe: observe,
904
728
  transferCache: localVarTransferCache,
@@ -907,41 +731,20 @@ class ContainersService {
907
731
  }
908
732
  getContainersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
909
733
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
910
- if ($skip !== undefined && $skip !== null) {
911
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
912
- }
913
- if ($top !== undefined && $top !== null) {
914
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
915
- }
916
- if ($orderby !== undefined && $orderby !== null) {
917
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
918
- }
919
- if ($filter !== undefined && $filter !== null) {
920
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
921
- }
922
- if (searchTerm !== undefined && searchTerm !== null) {
923
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
924
- }
734
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
735
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
736
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
737
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
738
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
925
739
  let localVarHeaders = this.defaultHeaders;
926
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
927
- if (localVarHttpHeaderAcceptSelected === undefined) {
928
- // to determine the Accept header
929
- const httpHeaderAccepts = [
930
- 'application/json'
931
- ];
932
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
933
- }
740
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
741
+ 'application/json'
742
+ ]);
934
743
  if (localVarHttpHeaderAcceptSelected !== undefined) {
935
744
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
936
745
  }
937
- let localVarHttpContext = options && options.context;
938
- if (localVarHttpContext === undefined) {
939
- localVarHttpContext = new HttpContext();
940
- }
941
- let localVarTransferCache = options && options.transferCache;
942
- if (localVarTransferCache === undefined) {
943
- localVarTransferCache = true;
944
- }
746
+ const localVarHttpContext = options?.context ?? new HttpContext();
747
+ const localVarTransferCache = options?.transferCache ?? true;
945
748
  let responseType_ = 'json';
946
749
  if (localVarHttpHeaderAcceptSelected) {
947
750
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -955,11 +758,12 @@ class ContainersService {
955
758
  }
956
759
  }
957
760
  let localVarPath = `/containers/search`;
958
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
761
+ const { basePath, withCredentials } = this.configuration;
762
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
959
763
  context: localVarHttpContext,
960
764
  params: localVarQueryParameters,
961
765
  responseType: responseType_,
962
- withCredentials: this.configuration.withCredentials,
766
+ ...(withCredentials ? { withCredentials } : {}),
963
767
  headers: localVarHeaders,
964
768
  observe: observe,
965
769
  transferCache: localVarTransferCache,
@@ -968,25 +772,14 @@ class ContainersService {
968
772
  }
969
773
  getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
970
774
  let localVarHeaders = this.defaultHeaders;
971
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
972
- if (localVarHttpHeaderAcceptSelected === undefined) {
973
- // to determine the Accept header
974
- const httpHeaderAccepts = [
975
- 'application/json'
976
- ];
977
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
978
- }
775
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
776
+ 'application/json'
777
+ ]);
979
778
  if (localVarHttpHeaderAcceptSelected !== undefined) {
980
779
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
981
780
  }
982
- let localVarHttpContext = options && options.context;
983
- if (localVarHttpContext === undefined) {
984
- localVarHttpContext = new HttpContext();
985
- }
986
- let localVarTransferCache = options && options.transferCache;
987
- if (localVarTransferCache === undefined) {
988
- localVarTransferCache = true;
989
- }
781
+ const localVarHttpContext = options?.context ?? new HttpContext();
782
+ const localVarTransferCache = options?.transferCache ?? true;
990
783
  let responseType_ = 'json';
991
784
  if (localVarHttpHeaderAcceptSelected) {
992
785
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1000,10 +793,11 @@ class ContainersService {
1000
793
  }
1001
794
  }
1002
795
  let localVarPath = `/containers/todeliver/count`;
1003
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
796
+ const { basePath, withCredentials } = this.configuration;
797
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1004
798
  context: localVarHttpContext,
1005
799
  responseType: responseType_,
1006
- withCredentials: this.configuration.withCredentials,
800
+ ...(withCredentials ? { withCredentials } : {}),
1007
801
  headers: localVarHeaders,
1008
802
  observe: observe,
1009
803
  transferCache: localVarTransferCache,
@@ -1012,25 +806,14 @@ class ContainersService {
1012
806
  }
1013
807
  getDeliveriesRequireAmendConfirmationCount(observe = 'body', reportProgress = false, options) {
1014
808
  let localVarHeaders = this.defaultHeaders;
1015
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1016
- if (localVarHttpHeaderAcceptSelected === undefined) {
1017
- // to determine the Accept header
1018
- const httpHeaderAccepts = [
1019
- 'application/json'
1020
- ];
1021
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1022
- }
809
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
810
+ 'application/json'
811
+ ]);
1023
812
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1024
813
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1025
814
  }
1026
- let localVarHttpContext = options && options.context;
1027
- if (localVarHttpContext === undefined) {
1028
- localVarHttpContext = new HttpContext();
1029
- }
1030
- let localVarTransferCache = options && options.transferCache;
1031
- if (localVarTransferCache === undefined) {
1032
- localVarTransferCache = true;
1033
- }
815
+ const localVarHttpContext = options?.context ?? new HttpContext();
816
+ const localVarTransferCache = options?.transferCache ?? true;
1034
817
  let responseType_ = 'json';
1035
818
  if (localVarHttpHeaderAcceptSelected) {
1036
819
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1044,10 +827,11 @@ class ContainersService {
1044
827
  }
1045
828
  }
1046
829
  let localVarPath = `/containers/deliveriesRequireAmendConfirmation/count`;
1047
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
830
+ const { basePath, withCredentials } = this.configuration;
831
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1048
832
  context: localVarHttpContext,
1049
833
  responseType: responseType_,
1050
- withCredentials: this.configuration.withCredentials,
834
+ ...(withCredentials ? { withCredentials } : {}),
1051
835
  headers: localVarHeaders,
1052
836
  observe: observe,
1053
837
  transferCache: localVarTransferCache,
@@ -1056,25 +840,14 @@ class ContainersService {
1056
840
  }
1057
841
  getDeliveriesRequireCancelConfirmationCount(observe = 'body', reportProgress = false, options) {
1058
842
  let localVarHeaders = this.defaultHeaders;
1059
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1060
- if (localVarHttpHeaderAcceptSelected === undefined) {
1061
- // to determine the Accept header
1062
- const httpHeaderAccepts = [
1063
- 'application/json'
1064
- ];
1065
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1066
- }
843
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
844
+ 'application/json'
845
+ ]);
1067
846
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1068
847
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1069
848
  }
1070
- let localVarHttpContext = options && options.context;
1071
- if (localVarHttpContext === undefined) {
1072
- localVarHttpContext = new HttpContext();
1073
- }
1074
- let localVarTransferCache = options && options.transferCache;
1075
- if (localVarTransferCache === undefined) {
1076
- localVarTransferCache = true;
1077
- }
849
+ const localVarHttpContext = options?.context ?? new HttpContext();
850
+ const localVarTransferCache = options?.transferCache ?? true;
1078
851
  let responseType_ = 'json';
1079
852
  if (localVarHttpHeaderAcceptSelected) {
1080
853
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1088,10 +861,11 @@ class ContainersService {
1088
861
  }
1089
862
  }
1090
863
  let localVarPath = `/containers/deliveriesRequireCancelConfirmation/count`;
1091
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
864
+ const { basePath, withCredentials } = this.configuration;
865
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1092
866
  context: localVarHttpContext,
1093
867
  responseType: responseType_,
1094
- withCredentials: this.configuration.withCredentials,
868
+ ...(withCredentials ? { withCredentials } : {}),
1095
869
  headers: localVarHeaders,
1096
870
  observe: observe,
1097
871
  transferCache: localVarTransferCache,
@@ -1100,25 +874,14 @@ class ContainersService {
1100
874
  }
1101
875
  getDeliveriesRequireConfirmationCount(observe = 'body', reportProgress = false, options) {
1102
876
  let localVarHeaders = this.defaultHeaders;
1103
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1104
- if (localVarHttpHeaderAcceptSelected === undefined) {
1105
- // to determine the Accept header
1106
- const httpHeaderAccepts = [
1107
- 'application/json'
1108
- ];
1109
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1110
- }
877
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
878
+ 'application/json'
879
+ ]);
1111
880
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1112
881
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1113
882
  }
1114
- let localVarHttpContext = options && options.context;
1115
- if (localVarHttpContext === undefined) {
1116
- localVarHttpContext = new HttpContext();
1117
- }
1118
- let localVarTransferCache = options && options.transferCache;
1119
- if (localVarTransferCache === undefined) {
1120
- localVarTransferCache = true;
1121
- }
883
+ const localVarHttpContext = options?.context ?? new HttpContext();
884
+ const localVarTransferCache = options?.transferCache ?? true;
1122
885
  let responseType_ = 'json';
1123
886
  if (localVarHttpHeaderAcceptSelected) {
1124
887
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1132,10 +895,11 @@ class ContainersService {
1132
895
  }
1133
896
  }
1134
897
  let localVarPath = `/containers/deliveriesRequireConfirmation/count`;
1135
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
898
+ const { basePath, withCredentials } = this.configuration;
899
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1136
900
  context: localVarHttpContext,
1137
901
  responseType: responseType_,
1138
- withCredentials: this.configuration.withCredentials,
902
+ ...(withCredentials ? { withCredentials } : {}),
1139
903
  headers: localVarHeaders,
1140
904
  observe: observe,
1141
905
  transferCache: localVarTransferCache,
@@ -1144,25 +908,14 @@ class ContainersService {
1144
908
  }
1145
909
  getDeliveriesToBookCount(observe = 'body', reportProgress = false, options) {
1146
910
  let localVarHeaders = this.defaultHeaders;
1147
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1148
- if (localVarHttpHeaderAcceptSelected === undefined) {
1149
- // to determine the Accept header
1150
- const httpHeaderAccepts = [
1151
- 'application/json'
1152
- ];
1153
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1154
- }
911
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
912
+ 'application/json'
913
+ ]);
1155
914
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1156
915
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1157
916
  }
1158
- let localVarHttpContext = options && options.context;
1159
- if (localVarHttpContext === undefined) {
1160
- localVarHttpContext = new HttpContext();
1161
- }
1162
- let localVarTransferCache = options && options.transferCache;
1163
- if (localVarTransferCache === undefined) {
1164
- localVarTransferCache = true;
1165
- }
917
+ const localVarHttpContext = options?.context ?? new HttpContext();
918
+ const localVarTransferCache = options?.transferCache ?? true;
1166
919
  let responseType_ = 'json';
1167
920
  if (localVarHttpHeaderAcceptSelected) {
1168
921
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1176,10 +929,11 @@ class ContainersService {
1176
929
  }
1177
930
  }
1178
931
  let localVarPath = `/containers/deliveriesToBook/count`;
1179
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
932
+ const { basePath, withCredentials } = this.configuration;
933
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1180
934
  context: localVarHttpContext,
1181
935
  responseType: responseType_,
1182
- withCredentials: this.configuration.withCredentials,
936
+ ...(withCredentials ? { withCredentials } : {}),
1183
937
  headers: localVarHeaders,
1184
938
  observe: observe,
1185
939
  transferCache: localVarTransferCache,
@@ -1188,25 +942,14 @@ class ContainersService {
1188
942
  }
1189
943
  getDeliveriesToRescheduleCount(observe = 'body', reportProgress = false, options) {
1190
944
  let localVarHeaders = this.defaultHeaders;
1191
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1192
- if (localVarHttpHeaderAcceptSelected === undefined) {
1193
- // to determine the Accept header
1194
- const httpHeaderAccepts = [
1195
- 'application/json'
1196
- ];
1197
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1198
- }
945
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
946
+ 'application/json'
947
+ ]);
1199
948
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1200
949
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1201
950
  }
1202
- let localVarHttpContext = options && options.context;
1203
- if (localVarHttpContext === undefined) {
1204
- localVarHttpContext = new HttpContext();
1205
- }
1206
- let localVarTransferCache = options && options.transferCache;
1207
- if (localVarTransferCache === undefined) {
1208
- localVarTransferCache = true;
1209
- }
951
+ const localVarHttpContext = options?.context ?? new HttpContext();
952
+ const localVarTransferCache = options?.transferCache ?? true;
1210
953
  let responseType_ = 'json';
1211
954
  if (localVarHttpHeaderAcceptSelected) {
1212
955
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1220,10 +963,11 @@ class ContainersService {
1220
963
  }
1221
964
  }
1222
965
  let localVarPath = `/containers/deliveriesToReschedule/count`;
1223
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
966
+ const { basePath, withCredentials } = this.configuration;
967
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1224
968
  context: localVarHttpContext,
1225
969
  responseType: responseType_,
1226
- withCredentials: this.configuration.withCredentials,
970
+ ...(withCredentials ? { withCredentials } : {}),
1227
971
  headers: localVarHeaders,
1228
972
  observe: observe,
1229
973
  transferCache: localVarTransferCache,
@@ -1232,25 +976,14 @@ class ContainersService {
1232
976
  }
1233
977
  getPlannedDeliveriesAndPodCount(observe = 'body', reportProgress = false, options) {
1234
978
  let localVarHeaders = this.defaultHeaders;
1235
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1236
- if (localVarHttpHeaderAcceptSelected === undefined) {
1237
- // to determine the Accept header
1238
- const httpHeaderAccepts = [
1239
- 'application/json'
1240
- ];
1241
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1242
- }
979
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
980
+ 'application/json'
981
+ ]);
1243
982
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1244
983
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1245
984
  }
1246
- let localVarHttpContext = options && options.context;
1247
- if (localVarHttpContext === undefined) {
1248
- localVarHttpContext = new HttpContext();
1249
- }
1250
- let localVarTransferCache = options && options.transferCache;
1251
- if (localVarTransferCache === undefined) {
1252
- localVarTransferCache = true;
1253
- }
985
+ const localVarHttpContext = options?.context ?? new HttpContext();
986
+ const localVarTransferCache = options?.transferCache ?? true;
1254
987
  let responseType_ = 'json';
1255
988
  if (localVarHttpHeaderAcceptSelected) {
1256
989
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1264,10 +997,11 @@ class ContainersService {
1264
997
  }
1265
998
  }
1266
999
  let localVarPath = `/containers/plannedDeliveriesAndPod/count`;
1267
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1000
+ const { basePath, withCredentials } = this.configuration;
1001
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1268
1002
  context: localVarHttpContext,
1269
1003
  responseType: responseType_,
1270
- withCredentials: this.configuration.withCredentials,
1004
+ ...(withCredentials ? { withCredentials } : {}),
1271
1005
  headers: localVarHeaders,
1272
1006
  observe: observe,
1273
1007
  transferCache: localVarTransferCache,
@@ -1279,41 +1013,20 @@ class ContainersService {
1279
1013
  throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentContainers.');
1280
1014
  }
1281
1015
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1282
- if ($skip !== undefined && $skip !== null) {
1283
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1284
- }
1285
- if ($top !== undefined && $top !== null) {
1286
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1287
- }
1288
- if ($orderby !== undefined && $orderby !== null) {
1289
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1290
- }
1291
- if ($filter !== undefined && $filter !== null) {
1292
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1293
- }
1294
- if ($search !== undefined && $search !== null) {
1295
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1296
- }
1016
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1017
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1018
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1019
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1020
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1297
1021
  let localVarHeaders = this.defaultHeaders;
1298
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1299
- if (localVarHttpHeaderAcceptSelected === undefined) {
1300
- // to determine the Accept header
1301
- const httpHeaderAccepts = [
1302
- 'application/json'
1303
- ];
1304
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1305
- }
1022
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1023
+ 'application/json'
1024
+ ]);
1306
1025
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1307
1026
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1308
1027
  }
1309
- let localVarHttpContext = options && options.context;
1310
- if (localVarHttpContext === undefined) {
1311
- localVarHttpContext = new HttpContext();
1312
- }
1313
- let localVarTransferCache = options && options.transferCache;
1314
- if (localVarTransferCache === undefined) {
1315
- localVarTransferCache = true;
1316
- }
1028
+ const localVarHttpContext = options?.context ?? new HttpContext();
1029
+ const localVarTransferCache = options?.transferCache ?? true;
1317
1030
  let responseType_ = 'json';
1318
1031
  if (localVarHttpHeaderAcceptSelected) {
1319
1032
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1327,21 +1040,22 @@ class ContainersService {
1327
1040
  }
1328
1041
  }
1329
1042
  let localVarPath = `/containers/shipment/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1330
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1043
+ const { basePath, withCredentials } = this.configuration;
1044
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1331
1045
  context: localVarHttpContext,
1332
1046
  params: localVarQueryParameters,
1333
1047
  responseType: responseType_,
1334
- withCredentials: this.configuration.withCredentials,
1048
+ ...(withCredentials ? { withCredentials } : {}),
1335
1049
  headers: localVarHeaders,
1336
1050
  observe: observe,
1337
1051
  transferCache: localVarTransferCache,
1338
1052
  reportProgress: reportProgress
1339
1053
  });
1340
1054
  }
1341
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ContainersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1342
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ContainersService, providedIn: 'root' });
1055
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ContainersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1056
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ContainersService, providedIn: 'root' });
1343
1057
  }
1344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ContainersService, decorators: [{
1058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ContainersService, decorators: [{
1345
1059
  type: Injectable,
1346
1060
  args: [{
1347
1061
  providedIn: 'root'
@@ -1365,66 +1079,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1365
1079
  * Do not edit the class manually.
1366
1080
  */
1367
1081
  /* tslint:disable:no-unused-variable member-ordering */
1368
- class DocumentsService {
1082
+ class DocumentsService extends BaseService {
1369
1083
  httpClient;
1370
- basePath = 'http://localhost';
1371
- defaultHeaders = new HttpHeaders();
1372
- configuration = new Configuration();
1373
- encoder;
1374
1084
  constructor(httpClient, basePath, configuration) {
1085
+ super(basePath, configuration);
1375
1086
  this.httpClient = httpClient;
1376
- if (configuration) {
1377
- this.configuration = configuration;
1378
- }
1379
- if (typeof this.configuration.basePath !== 'string') {
1380
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1381
- if (firstBasePath != undefined) {
1382
- basePath = firstBasePath;
1383
- }
1384
- if (typeof basePath !== 'string') {
1385
- basePath = this.basePath;
1386
- }
1387
- this.configuration.basePath = basePath;
1388
- }
1389
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1390
- }
1391
- // @ts-ignore
1392
- addToHttpParams(httpParams, value, key) {
1393
- if (typeof value === "object" && value instanceof Date === false) {
1394
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1395
- }
1396
- else {
1397
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1398
- }
1399
- return httpParams;
1400
- }
1401
- addToHttpParamsRecursive(httpParams, value, key) {
1402
- if (value == null) {
1403
- return httpParams;
1404
- }
1405
- if (typeof value === "object") {
1406
- if (Array.isArray(value)) {
1407
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1408
- }
1409
- else if (value instanceof Date) {
1410
- if (key != null) {
1411
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1412
- }
1413
- else {
1414
- throw Error("key may not be null if value is Date");
1415
- }
1416
- }
1417
- else {
1418
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1419
- }
1420
- }
1421
- else if (key != null) {
1422
- httpParams = httpParams.append(key, value);
1423
- }
1424
- else {
1425
- throw Error("key may not be null if value is not object or array");
1426
- }
1427
- return httpParams;
1428
1087
  }
1429
1088
  getShipmentDocuments(recordId, artifact, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1430
1089
  if (recordId === null || recordId === undefined) {
@@ -1434,41 +1093,20 @@ class DocumentsService {
1434
1093
  throw new Error('Required parameter artifact was null or undefined when calling getShipmentDocuments.');
1435
1094
  }
1436
1095
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1437
- if ($skip !== undefined && $skip !== null) {
1438
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1439
- }
1440
- if ($top !== undefined && $top !== null) {
1441
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1442
- }
1443
- if ($orderby !== undefined && $orderby !== null) {
1444
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1445
- }
1446
- if ($filter !== undefined && $filter !== null) {
1447
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1448
- }
1449
- if ($search !== undefined && $search !== null) {
1450
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1451
- }
1096
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1097
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1098
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1099
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1100
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1452
1101
  let localVarHeaders = this.defaultHeaders;
1453
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1454
- if (localVarHttpHeaderAcceptSelected === undefined) {
1455
- // to determine the Accept header
1456
- const httpHeaderAccepts = [
1457
- 'application/json'
1458
- ];
1459
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1460
- }
1102
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1103
+ 'application/json'
1104
+ ]);
1461
1105
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1462
1106
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1463
1107
  }
1464
- let localVarHttpContext = options && options.context;
1465
- if (localVarHttpContext === undefined) {
1466
- localVarHttpContext = new HttpContext();
1467
- }
1468
- let localVarTransferCache = options && options.transferCache;
1469
- if (localVarTransferCache === undefined) {
1470
- localVarTransferCache = true;
1471
- }
1108
+ const localVarHttpContext = options?.context ?? new HttpContext();
1109
+ const localVarTransferCache = options?.transferCache ?? true;
1472
1110
  let responseType_ = 'json';
1473
1111
  if (localVarHttpHeaderAcceptSelected) {
1474
1112
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1482,21 +1120,22 @@ class DocumentsService {
1482
1120
  }
1483
1121
  }
1484
1122
  let localVarPath = `/documents/${this.configuration.encodeParam({ name: "recordId", value: recordId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "artifact", value: artifact, in: "path", style: "simple", explode: false, dataType: "WorkflowArtifacts", dataFormat: undefined })}`;
1485
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1123
+ const { basePath, withCredentials } = this.configuration;
1124
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1486
1125
  context: localVarHttpContext,
1487
1126
  params: localVarQueryParameters,
1488
1127
  responseType: responseType_,
1489
- withCredentials: this.configuration.withCredentials,
1128
+ ...(withCredentials ? { withCredentials } : {}),
1490
1129
  headers: localVarHeaders,
1491
1130
  observe: observe,
1492
1131
  transferCache: localVarTransferCache,
1493
1132
  reportProgress: reportProgress
1494
1133
  });
1495
1134
  }
1496
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: DocumentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1497
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: DocumentsService, providedIn: 'root' });
1135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DocumentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1136
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DocumentsService, providedIn: 'root' });
1498
1137
  }
1499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: DocumentsService, decorators: [{
1138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DocumentsService, decorators: [{
1500
1139
  type: Injectable,
1501
1140
  args: [{
1502
1141
  providedIn: 'root'
@@ -1520,89 +1159,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1520
1159
  * Do not edit the class manually.
1521
1160
  */
1522
1161
  /* tslint:disable:no-unused-variable member-ordering */
1523
- class HealthService {
1162
+ class HealthService extends BaseService {
1524
1163
  httpClient;
1525
- basePath = 'http://localhost';
1526
- defaultHeaders = new HttpHeaders();
1527
- configuration = new Configuration();
1528
- encoder;
1529
1164
  constructor(httpClient, basePath, configuration) {
1165
+ super(basePath, configuration);
1530
1166
  this.httpClient = httpClient;
1531
- if (configuration) {
1532
- this.configuration = configuration;
1533
- }
1534
- if (typeof this.configuration.basePath !== 'string') {
1535
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1536
- if (firstBasePath != undefined) {
1537
- basePath = firstBasePath;
1538
- }
1539
- if (typeof basePath !== 'string') {
1540
- basePath = this.basePath;
1541
- }
1542
- this.configuration.basePath = basePath;
1543
- }
1544
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1545
- }
1546
- // @ts-ignore
1547
- addToHttpParams(httpParams, value, key) {
1548
- if (typeof value === "object" && value instanceof Date === false) {
1549
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1550
- }
1551
- else {
1552
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1553
- }
1554
- return httpParams;
1555
- }
1556
- addToHttpParamsRecursive(httpParams, value, key) {
1557
- if (value == null) {
1558
- return httpParams;
1559
- }
1560
- if (typeof value === "object") {
1561
- if (Array.isArray(value)) {
1562
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1563
- }
1564
- else if (value instanceof Date) {
1565
- if (key != null) {
1566
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1567
- }
1568
- else {
1569
- throw Error("key may not be null if value is Date");
1570
- }
1571
- }
1572
- else {
1573
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1574
- }
1575
- }
1576
- else if (key != null) {
1577
- httpParams = httpParams.append(key, value);
1578
- }
1579
- else {
1580
- throw Error("key may not be null if value is not object or array");
1581
- }
1582
- return httpParams;
1583
1167
  }
1584
1168
  getHealth(observe = 'body', reportProgress = false, options) {
1585
1169
  let localVarHeaders = this.defaultHeaders;
1586
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1587
- if (localVarHttpHeaderAcceptSelected === undefined) {
1588
- // to determine the Accept header
1589
- const httpHeaderAccepts = [
1590
- 'text/plain',
1591
- 'application/json'
1592
- ];
1593
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1594
- }
1170
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1171
+ 'text/plain',
1172
+ 'application/json'
1173
+ ]);
1595
1174
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1596
1175
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1597
1176
  }
1598
- let localVarHttpContext = options && options.context;
1599
- if (localVarHttpContext === undefined) {
1600
- localVarHttpContext = new HttpContext();
1601
- }
1602
- let localVarTransferCache = options && options.transferCache;
1603
- if (localVarTransferCache === undefined) {
1604
- localVarTransferCache = true;
1605
- }
1177
+ const localVarHttpContext = options?.context ?? new HttpContext();
1178
+ const localVarTransferCache = options?.transferCache ?? true;
1606
1179
  let responseType_ = 'json';
1607
1180
  if (localVarHttpHeaderAcceptSelected) {
1608
1181
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1616,20 +1189,21 @@ class HealthService {
1616
1189
  }
1617
1190
  }
1618
1191
  let localVarPath = `/health`;
1619
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1192
+ const { basePath, withCredentials } = this.configuration;
1193
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1620
1194
  context: localVarHttpContext,
1621
1195
  responseType: responseType_,
1622
- withCredentials: this.configuration.withCredentials,
1196
+ ...(withCredentials ? { withCredentials } : {}),
1623
1197
  headers: localVarHeaders,
1624
1198
  observe: observe,
1625
1199
  transferCache: localVarTransferCache,
1626
1200
  reportProgress: reportProgress
1627
1201
  });
1628
1202
  }
1629
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1630
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HealthService, providedIn: 'root' });
1203
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1204
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, providedIn: 'root' });
1631
1205
  }
1632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HealthService, decorators: [{
1206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, decorators: [{
1633
1207
  type: Injectable,
1634
1208
  args: [{
1635
1209
  providedIn: 'root'
@@ -1653,88 +1227,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1653
1227
  * Do not edit the class manually.
1654
1228
  */
1655
1229
  /* tslint:disable:no-unused-variable member-ordering */
1656
- class NotesService {
1230
+ class NotesService extends BaseService {
1657
1231
  httpClient;
1658
- basePath = 'http://localhost';
1659
- defaultHeaders = new HttpHeaders();
1660
- configuration = new Configuration();
1661
- encoder;
1662
1232
  constructor(httpClient, basePath, configuration) {
1233
+ super(basePath, configuration);
1663
1234
  this.httpClient = httpClient;
1664
- if (configuration) {
1665
- this.configuration = configuration;
1666
- }
1667
- if (typeof this.configuration.basePath !== 'string') {
1668
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1669
- if (firstBasePath != undefined) {
1670
- basePath = firstBasePath;
1671
- }
1672
- if (typeof basePath !== 'string') {
1673
- basePath = this.basePath;
1674
- }
1675
- this.configuration.basePath = basePath;
1676
- }
1677
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1678
- }
1679
- // @ts-ignore
1680
- addToHttpParams(httpParams, value, key) {
1681
- if (typeof value === "object" && value instanceof Date === false) {
1682
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1683
- }
1684
- else {
1685
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1686
- }
1687
- return httpParams;
1688
- }
1689
- addToHttpParamsRecursive(httpParams, value, key) {
1690
- if (value == null) {
1691
- return httpParams;
1692
- }
1693
- if (typeof value === "object") {
1694
- if (Array.isArray(value)) {
1695
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1696
- }
1697
- else if (value instanceof Date) {
1698
- if (key != null) {
1699
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1700
- }
1701
- else {
1702
- throw Error("key may not be null if value is Date");
1703
- }
1704
- }
1705
- else {
1706
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1707
- }
1708
- }
1709
- else if (key != null) {
1710
- httpParams = httpParams.append(key, value);
1711
- }
1712
- else {
1713
- throw Error("key may not be null if value is not object or array");
1714
- }
1715
- return httpParams;
1716
1235
  }
1717
1236
  createShipmentNote(note, observe = 'body', reportProgress = false, options) {
1718
1237
  let localVarHeaders = this.defaultHeaders;
1719
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1720
- if (localVarHttpHeaderAcceptSelected === undefined) {
1721
- // to determine the Accept header
1722
- const httpHeaderAccepts = [
1723
- 'application/json'
1724
- ];
1725
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1726
- }
1238
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1239
+ 'application/json'
1240
+ ]);
1727
1241
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1728
1242
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1729
1243
  }
1730
- let localVarHttpContext = options && options.context;
1731
- if (localVarHttpContext === undefined) {
1732
- localVarHttpContext = new HttpContext();
1733
- }
1734
- let localVarTransferCache = options && options.transferCache;
1735
- if (localVarTransferCache === undefined) {
1736
- localVarTransferCache = true;
1737
- }
1244
+ const localVarHttpContext = options?.context ?? new HttpContext();
1245
+ const localVarTransferCache = options?.transferCache ?? true;
1738
1246
  // to determine the Content-Type header
1739
1247
  const consumes = [
1740
1248
  'application/json'
@@ -1756,11 +1264,12 @@ class NotesService {
1756
1264
  }
1757
1265
  }
1758
1266
  let localVarPath = `/notes`;
1759
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1267
+ const { basePath, withCredentials } = this.configuration;
1268
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1760
1269
  context: localVarHttpContext,
1761
1270
  body: note,
1762
1271
  responseType: responseType_,
1763
- withCredentials: this.configuration.withCredentials,
1272
+ ...(withCredentials ? { withCredentials } : {}),
1764
1273
  headers: localVarHeaders,
1765
1274
  observe: observe,
1766
1275
  transferCache: localVarTransferCache,
@@ -1775,41 +1284,20 @@ class NotesService {
1775
1284
  throw new Error('Required parameter type was null or undefined when calling getShipmentNotes.');
1776
1285
  }
1777
1286
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1778
- if ($skip !== undefined && $skip !== null) {
1779
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1780
- }
1781
- if ($top !== undefined && $top !== null) {
1782
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1783
- }
1784
- if ($orderby !== undefined && $orderby !== null) {
1785
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1786
- }
1787
- if ($filter !== undefined && $filter !== null) {
1788
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1789
- }
1790
- if ($search !== undefined && $search !== null) {
1791
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1792
- }
1287
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1288
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1289
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1290
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1291
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1793
1292
  let localVarHeaders = this.defaultHeaders;
1794
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1795
- if (localVarHttpHeaderAcceptSelected === undefined) {
1796
- // to determine the Accept header
1797
- const httpHeaderAccepts = [
1798
- 'application/json'
1799
- ];
1800
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1801
- }
1293
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1294
+ 'application/json'
1295
+ ]);
1802
1296
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1803
1297
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1804
1298
  }
1805
- let localVarHttpContext = options && options.context;
1806
- if (localVarHttpContext === undefined) {
1807
- localVarHttpContext = new HttpContext();
1808
- }
1809
- let localVarTransferCache = options && options.transferCache;
1810
- if (localVarTransferCache === undefined) {
1811
- localVarTransferCache = true;
1812
- }
1299
+ const localVarHttpContext = options?.context ?? new HttpContext();
1300
+ const localVarTransferCache = options?.transferCache ?? true;
1813
1301
  let responseType_ = 'json';
1814
1302
  if (localVarHttpHeaderAcceptSelected) {
1815
1303
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1823,21 +1311,22 @@ class NotesService {
1823
1311
  }
1824
1312
  }
1825
1313
  let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceTypes", dataFormat: undefined })}`;
1826
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1314
+ const { basePath, withCredentials } = this.configuration;
1315
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1827
1316
  context: localVarHttpContext,
1828
1317
  params: localVarQueryParameters,
1829
1318
  responseType: responseType_,
1830
- withCredentials: this.configuration.withCredentials,
1319
+ ...(withCredentials ? { withCredentials } : {}),
1831
1320
  headers: localVarHeaders,
1832
1321
  observe: observe,
1833
1322
  transferCache: localVarTransferCache,
1834
1323
  reportProgress: reportProgress
1835
1324
  });
1836
1325
  }
1837
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1838
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, providedIn: 'root' });
1326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1327
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
1839
1328
  }
1840
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, decorators: [{
1329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: NotesService, decorators: [{
1841
1330
  type: Injectable,
1842
1331
  args: [{
1843
1332
  providedIn: 'root'
@@ -1861,88 +1350,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1861
1350
  * Do not edit the class manually.
1862
1351
  */
1863
1352
  /* tslint:disable:no-unused-variable member-ordering */
1864
- class PermissionsService {
1353
+ class PermissionsService extends BaseService {
1865
1354
  httpClient;
1866
- basePath = 'http://localhost';
1867
- defaultHeaders = new HttpHeaders();
1868
- configuration = new Configuration();
1869
- encoder;
1870
1355
  constructor(httpClient, basePath, configuration) {
1356
+ super(basePath, configuration);
1871
1357
  this.httpClient = httpClient;
1872
- if (configuration) {
1873
- this.configuration = configuration;
1874
- }
1875
- if (typeof this.configuration.basePath !== 'string') {
1876
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1877
- if (firstBasePath != undefined) {
1878
- basePath = firstBasePath;
1879
- }
1880
- if (typeof basePath !== 'string') {
1881
- basePath = this.basePath;
1882
- }
1883
- this.configuration.basePath = basePath;
1884
- }
1885
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1886
- }
1887
- // @ts-ignore
1888
- addToHttpParams(httpParams, value, key) {
1889
- if (typeof value === "object" && value instanceof Date === false) {
1890
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1891
- }
1892
- else {
1893
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1894
- }
1895
- return httpParams;
1896
- }
1897
- addToHttpParamsRecursive(httpParams, value, key) {
1898
- if (value == null) {
1899
- return httpParams;
1900
- }
1901
- if (typeof value === "object") {
1902
- if (Array.isArray(value)) {
1903
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1904
- }
1905
- else if (value instanceof Date) {
1906
- if (key != null) {
1907
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1908
- }
1909
- else {
1910
- throw Error("key may not be null if value is Date");
1911
- }
1912
- }
1913
- else {
1914
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1915
- }
1916
- }
1917
- else if (key != null) {
1918
- httpParams = httpParams.append(key, value);
1919
- }
1920
- else {
1921
- throw Error("key may not be null if value is not object or array");
1922
- }
1923
- return httpParams;
1924
1358
  }
1925
1359
  getUserPermissions(observe = 'body', reportProgress = false, options) {
1926
1360
  let localVarHeaders = this.defaultHeaders;
1927
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1928
- if (localVarHttpHeaderAcceptSelected === undefined) {
1929
- // to determine the Accept header
1930
- const httpHeaderAccepts = [
1931
- 'application/json'
1932
- ];
1933
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1934
- }
1361
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1362
+ 'application/json'
1363
+ ]);
1935
1364
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1936
1365
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1937
1366
  }
1938
- let localVarHttpContext = options && options.context;
1939
- if (localVarHttpContext === undefined) {
1940
- localVarHttpContext = new HttpContext();
1941
- }
1942
- let localVarTransferCache = options && options.transferCache;
1943
- if (localVarTransferCache === undefined) {
1944
- localVarTransferCache = true;
1945
- }
1367
+ const localVarHttpContext = options?.context ?? new HttpContext();
1368
+ const localVarTransferCache = options?.transferCache ?? true;
1946
1369
  let responseType_ = 'json';
1947
1370
  if (localVarHttpHeaderAcceptSelected) {
1948
1371
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1956,20 +1379,21 @@ class PermissionsService {
1956
1379
  }
1957
1380
  }
1958
1381
  let localVarPath = `/user/permissions`;
1959
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1382
+ const { basePath, withCredentials } = this.configuration;
1383
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1960
1384
  context: localVarHttpContext,
1961
1385
  responseType: responseType_,
1962
- withCredentials: this.configuration.withCredentials,
1386
+ ...(withCredentials ? { withCredentials } : {}),
1963
1387
  headers: localVarHeaders,
1964
1388
  observe: observe,
1965
1389
  transferCache: localVarTransferCache,
1966
1390
  reportProgress: reportProgress
1967
1391
  });
1968
1392
  }
1969
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1970
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1393
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1394
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1971
1395
  }
1972
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, decorators: [{
1396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsService, decorators: [{
1973
1397
  type: Injectable,
1974
1398
  args: [{
1975
1399
  providedIn: 'root'
@@ -1993,91 +1417,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1993
1417
  * Do not edit the class manually.
1994
1418
  */
1995
1419
  /* tslint:disable:no-unused-variable member-ordering */
1996
- class PoItemsService {
1420
+ class PoItemsService extends BaseService {
1997
1421
  httpClient;
1998
- basePath = 'http://localhost';
1999
- defaultHeaders = new HttpHeaders();
2000
- configuration = new Configuration();
2001
- encoder;
2002
1422
  constructor(httpClient, basePath, configuration) {
1423
+ super(basePath, configuration);
2003
1424
  this.httpClient = httpClient;
2004
- if (configuration) {
2005
- this.configuration = configuration;
2006
- }
2007
- if (typeof this.configuration.basePath !== 'string') {
2008
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2009
- if (firstBasePath != undefined) {
2010
- basePath = firstBasePath;
2011
- }
2012
- if (typeof basePath !== 'string') {
2013
- basePath = this.basePath;
2014
- }
2015
- this.configuration.basePath = basePath;
2016
- }
2017
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2018
- }
2019
- // @ts-ignore
2020
- addToHttpParams(httpParams, value, key) {
2021
- if (typeof value === "object" && value instanceof Date === false) {
2022
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2023
- }
2024
- else {
2025
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2026
- }
2027
- return httpParams;
2028
- }
2029
- addToHttpParamsRecursive(httpParams, value, key) {
2030
- if (value == null) {
2031
- return httpParams;
2032
- }
2033
- if (typeof value === "object") {
2034
- if (Array.isArray(value)) {
2035
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2036
- }
2037
- else if (value instanceof Date) {
2038
- if (key != null) {
2039
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2040
- }
2041
- else {
2042
- throw Error("key may not be null if value is Date");
2043
- }
2044
- }
2045
- else {
2046
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2047
- }
2048
- }
2049
- else if (key != null) {
2050
- httpParams = httpParams.append(key, value);
2051
- }
2052
- else {
2053
- throw Error("key may not be null if value is not object or array");
2054
- }
2055
- return httpParams;
2056
1425
  }
2057
1426
  getPoItemSummary(id, observe = 'body', reportProgress = false, options) {
2058
1427
  if (id === null || id === undefined) {
2059
1428
  throw new Error('Required parameter id was null or undefined when calling getPoItemSummary.');
2060
1429
  }
2061
1430
  let localVarHeaders = this.defaultHeaders;
2062
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2063
- if (localVarHttpHeaderAcceptSelected === undefined) {
2064
- // to determine the Accept header
2065
- const httpHeaderAccepts = [
2066
- 'application/json'
2067
- ];
2068
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2069
- }
1431
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1432
+ 'application/json'
1433
+ ]);
2070
1434
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2071
1435
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2072
1436
  }
2073
- let localVarHttpContext = options && options.context;
2074
- if (localVarHttpContext === undefined) {
2075
- localVarHttpContext = new HttpContext();
2076
- }
2077
- let localVarTransferCache = options && options.transferCache;
2078
- if (localVarTransferCache === undefined) {
2079
- localVarTransferCache = true;
2080
- }
1437
+ const localVarHttpContext = options?.context ?? new HttpContext();
1438
+ const localVarTransferCache = options?.transferCache ?? true;
2081
1439
  let responseType_ = 'json';
2082
1440
  if (localVarHttpHeaderAcceptSelected) {
2083
1441
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2091,20 +1449,21 @@ class PoItemsService {
2091
1449
  }
2092
1450
  }
2093
1451
  let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
2094
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1452
+ const { basePath, withCredentials } = this.configuration;
1453
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2095
1454
  context: localVarHttpContext,
2096
1455
  responseType: responseType_,
2097
- withCredentials: this.configuration.withCredentials,
1456
+ ...(withCredentials ? { withCredentials } : {}),
2098
1457
  headers: localVarHeaders,
2099
1458
  observe: observe,
2100
1459
  transferCache: localVarTransferCache,
2101
1460
  reportProgress: reportProgress
2102
1461
  });
2103
1462
  }
2104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2105
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, providedIn: 'root' });
1463
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PoItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1464
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PoItemsService, providedIn: 'root' });
2106
1465
  }
2107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, decorators: [{
1466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PoItemsService, decorators: [{
2108
1467
  type: Injectable,
2109
1468
  args: [{
2110
1469
  providedIn: 'root'
@@ -2128,91 +1487,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
2128
1487
  * Do not edit the class manually.
2129
1488
  */
2130
1489
  /* tslint:disable:no-unused-variable member-ordering */
2131
- class PurchaseOrdersService {
1490
+ class PurchaseOrdersService extends BaseService {
2132
1491
  httpClient;
2133
- basePath = 'http://localhost';
2134
- defaultHeaders = new HttpHeaders();
2135
- configuration = new Configuration();
2136
- encoder;
2137
1492
  constructor(httpClient, basePath, configuration) {
1493
+ super(basePath, configuration);
2138
1494
  this.httpClient = httpClient;
2139
- if (configuration) {
2140
- this.configuration = configuration;
2141
- }
2142
- if (typeof this.configuration.basePath !== 'string') {
2143
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2144
- if (firstBasePath != undefined) {
2145
- basePath = firstBasePath;
2146
- }
2147
- if (typeof basePath !== 'string') {
2148
- basePath = this.basePath;
2149
- }
2150
- this.configuration.basePath = basePath;
2151
- }
2152
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2153
- }
2154
- // @ts-ignore
2155
- addToHttpParams(httpParams, value, key) {
2156
- if (typeof value === "object" && value instanceof Date === false) {
2157
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2158
- }
2159
- else {
2160
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2161
- }
2162
- return httpParams;
2163
- }
2164
- addToHttpParamsRecursive(httpParams, value, key) {
2165
- if (value == null) {
2166
- return httpParams;
2167
- }
2168
- if (typeof value === "object") {
2169
- if (Array.isArray(value)) {
2170
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2171
- }
2172
- else if (value instanceof Date) {
2173
- if (key != null) {
2174
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2175
- }
2176
- else {
2177
- throw Error("key may not be null if value is Date");
2178
- }
2179
- }
2180
- else {
2181
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2182
- }
2183
- }
2184
- else if (key != null) {
2185
- httpParams = httpParams.append(key, value);
2186
- }
2187
- else {
2188
- throw Error("key may not be null if value is not object or array");
2189
- }
2190
- return httpParams;
2191
1495
  }
2192
1496
  getPoItemTotals(purchaseOrderId, observe = 'body', reportProgress = false, options) {
2193
1497
  if (purchaseOrderId === null || purchaseOrderId === undefined) {
2194
1498
  throw new Error('Required parameter purchaseOrderId was null or undefined when calling getPoItemTotals.');
2195
1499
  }
2196
1500
  let localVarHeaders = this.defaultHeaders;
2197
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2198
- if (localVarHttpHeaderAcceptSelected === undefined) {
2199
- // to determine the Accept header
2200
- const httpHeaderAccepts = [
2201
- 'application/json'
2202
- ];
2203
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2204
- }
1501
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1502
+ 'application/json'
1503
+ ]);
2205
1504
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2206
1505
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2207
1506
  }
2208
- let localVarHttpContext = options && options.context;
2209
- if (localVarHttpContext === undefined) {
2210
- localVarHttpContext = new HttpContext();
2211
- }
2212
- let localVarTransferCache = options && options.transferCache;
2213
- if (localVarTransferCache === undefined) {
2214
- localVarTransferCache = true;
2215
- }
1507
+ const localVarHttpContext = options?.context ?? new HttpContext();
1508
+ const localVarTransferCache = options?.transferCache ?? true;
2216
1509
  let responseType_ = 'json';
2217
1510
  if (localVarHttpHeaderAcceptSelected) {
2218
1511
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2226,10 +1519,11 @@ class PurchaseOrdersService {
2226
1519
  }
2227
1520
  }
2228
1521
  let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/itemTotals`;
2229
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1522
+ const { basePath, withCredentials } = this.configuration;
1523
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2230
1524
  context: localVarHttpContext,
2231
1525
  responseType: responseType_,
2232
- withCredentials: this.configuration.withCredentials,
1526
+ ...(withCredentials ? { withCredentials } : {}),
2233
1527
  headers: localVarHeaders,
2234
1528
  observe: observe,
2235
1529
  transferCache: localVarTransferCache,
@@ -2241,41 +1535,20 @@ class PurchaseOrdersService {
2241
1535
  throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderProducts.');
2242
1536
  }
2243
1537
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2244
- if ($skip !== undefined && $skip !== null) {
2245
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2246
- }
2247
- if ($top !== undefined && $top !== null) {
2248
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2249
- }
2250
- if ($orderby !== undefined && $orderby !== null) {
2251
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2252
- }
2253
- if ($filter !== undefined && $filter !== null) {
2254
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2255
- }
2256
- if ($search !== undefined && $search !== null) {
2257
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2258
- }
1538
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1539
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1540
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1541
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1542
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2259
1543
  let localVarHeaders = this.defaultHeaders;
2260
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2261
- if (localVarHttpHeaderAcceptSelected === undefined) {
2262
- // to determine the Accept header
2263
- const httpHeaderAccepts = [
2264
- 'application/json'
2265
- ];
2266
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2267
- }
1544
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1545
+ 'application/json'
1546
+ ]);
2268
1547
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2269
1548
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2270
1549
  }
2271
- let localVarHttpContext = options && options.context;
2272
- if (localVarHttpContext === undefined) {
2273
- localVarHttpContext = new HttpContext();
2274
- }
2275
- let localVarTransferCache = options && options.transferCache;
2276
- if (localVarTransferCache === undefined) {
2277
- localVarTransferCache = true;
2278
- }
1550
+ const localVarHttpContext = options?.context ?? new HttpContext();
1551
+ const localVarTransferCache = options?.transferCache ?? true;
2279
1552
  let responseType_ = 'json';
2280
1553
  if (localVarHttpHeaderAcceptSelected) {
2281
1554
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2289,11 +1562,12 @@ class PurchaseOrdersService {
2289
1562
  }
2290
1563
  }
2291
1564
  let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
2292
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1565
+ const { basePath, withCredentials } = this.configuration;
1566
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2293
1567
  context: localVarHttpContext,
2294
1568
  params: localVarQueryParameters,
2295
1569
  responseType: responseType_,
2296
- withCredentials: this.configuration.withCredentials,
1570
+ ...(withCredentials ? { withCredentials } : {}),
2297
1571
  headers: localVarHeaders,
2298
1572
  observe: observe,
2299
1573
  transferCache: localVarTransferCache,
@@ -2305,25 +1579,14 @@ class PurchaseOrdersService {
2305
1579
  throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderSummary.');
2306
1580
  }
2307
1581
  let localVarHeaders = this.defaultHeaders;
2308
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2309
- if (localVarHttpHeaderAcceptSelected === undefined) {
2310
- // to determine the Accept header
2311
- const httpHeaderAccepts = [
2312
- 'application/json'
2313
- ];
2314
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2315
- }
1582
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1583
+ 'application/json'
1584
+ ]);
2316
1585
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2317
1586
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2318
1587
  }
2319
- let localVarHttpContext = options && options.context;
2320
- if (localVarHttpContext === undefined) {
2321
- localVarHttpContext = new HttpContext();
2322
- }
2323
- let localVarTransferCache = options && options.transferCache;
2324
- if (localVarTransferCache === undefined) {
2325
- localVarTransferCache = true;
2326
- }
1588
+ const localVarHttpContext = options?.context ?? new HttpContext();
1589
+ const localVarTransferCache = options?.transferCache ?? true;
2327
1590
  let responseType_ = 'json';
2328
1591
  if (localVarHttpHeaderAcceptSelected) {
2329
1592
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2337,10 +1600,11 @@ class PurchaseOrdersService {
2337
1600
  }
2338
1601
  }
2339
1602
  let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
2340
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1603
+ const { basePath, withCredentials } = this.configuration;
1604
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2341
1605
  context: localVarHttpContext,
2342
1606
  responseType: responseType_,
2343
- withCredentials: this.configuration.withCredentials,
1607
+ ...(withCredentials ? { withCredentials } : {}),
2344
1608
  headers: localVarHeaders,
2345
1609
  observe: observe,
2346
1610
  transferCache: localVarTransferCache,
@@ -2349,41 +1613,20 @@ class PurchaseOrdersService {
2349
1613
  }
2350
1614
  getPurchaseOrders($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2351
1615
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2352
- if ($skip !== undefined && $skip !== null) {
2353
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2354
- }
2355
- if ($top !== undefined && $top !== null) {
2356
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2357
- }
2358
- if ($orderby !== undefined && $orderby !== null) {
2359
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2360
- }
2361
- if ($filter !== undefined && $filter !== null) {
2362
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2363
- }
2364
- if ($search !== undefined && $search !== null) {
2365
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2366
- }
1616
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1617
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1618
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1619
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1620
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2367
1621
  let localVarHeaders = this.defaultHeaders;
2368
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2369
- if (localVarHttpHeaderAcceptSelected === undefined) {
2370
- // to determine the Accept header
2371
- const httpHeaderAccepts = [
2372
- 'application/json'
2373
- ];
2374
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2375
- }
1622
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1623
+ 'application/json'
1624
+ ]);
2376
1625
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2377
1626
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2378
1627
  }
2379
- let localVarHttpContext = options && options.context;
2380
- if (localVarHttpContext === undefined) {
2381
- localVarHttpContext = new HttpContext();
2382
- }
2383
- let localVarTransferCache = options && options.transferCache;
2384
- if (localVarTransferCache === undefined) {
2385
- localVarTransferCache = true;
2386
- }
1628
+ const localVarHttpContext = options?.context ?? new HttpContext();
1629
+ const localVarTransferCache = options?.transferCache ?? true;
2387
1630
  let responseType_ = 'json';
2388
1631
  if (localVarHttpHeaderAcceptSelected) {
2389
1632
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2397,11 +1640,12 @@ class PurchaseOrdersService {
2397
1640
  }
2398
1641
  }
2399
1642
  let localVarPath = `/purchaseOrders`;
2400
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1643
+ const { basePath, withCredentials } = this.configuration;
1644
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2401
1645
  context: localVarHttpContext,
2402
1646
  params: localVarQueryParameters,
2403
1647
  responseType: responseType_,
2404
- withCredentials: this.configuration.withCredentials,
1648
+ ...(withCredentials ? { withCredentials } : {}),
2405
1649
  headers: localVarHeaders,
2406
1650
  observe: observe,
2407
1651
  transferCache: localVarTransferCache,
@@ -2410,41 +1654,20 @@ class PurchaseOrdersService {
2410
1654
  }
2411
1655
  getPurchaseOrdersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
2412
1656
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2413
- if ($skip !== undefined && $skip !== null) {
2414
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2415
- }
2416
- if ($top !== undefined && $top !== null) {
2417
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2418
- }
2419
- if ($orderby !== undefined && $orderby !== null) {
2420
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2421
- }
2422
- if ($filter !== undefined && $filter !== null) {
2423
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2424
- }
2425
- if (searchTerm !== undefined && searchTerm !== null) {
2426
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
2427
- }
1657
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1658
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1659
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1660
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1661
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
2428
1662
  let localVarHeaders = this.defaultHeaders;
2429
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2430
- if (localVarHttpHeaderAcceptSelected === undefined) {
2431
- // to determine the Accept header
2432
- const httpHeaderAccepts = [
2433
- 'application/json'
2434
- ];
2435
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2436
- }
1663
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1664
+ 'application/json'
1665
+ ]);
2437
1666
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2438
1667
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2439
1668
  }
2440
- let localVarHttpContext = options && options.context;
2441
- if (localVarHttpContext === undefined) {
2442
- localVarHttpContext = new HttpContext();
2443
- }
2444
- let localVarTransferCache = options && options.transferCache;
2445
- if (localVarTransferCache === undefined) {
2446
- localVarTransferCache = true;
2447
- }
1669
+ const localVarHttpContext = options?.context ?? new HttpContext();
1670
+ const localVarTransferCache = options?.transferCache ?? true;
2448
1671
  let responseType_ = 'json';
2449
1672
  if (localVarHttpHeaderAcceptSelected) {
2450
1673
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2458,11 +1681,12 @@ class PurchaseOrdersService {
2458
1681
  }
2459
1682
  }
2460
1683
  let localVarPath = `/purchaseOrders/search`;
2461
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1684
+ const { basePath, withCredentials } = this.configuration;
1685
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2462
1686
  context: localVarHttpContext,
2463
1687
  params: localVarQueryParameters,
2464
1688
  responseType: responseType_,
2465
- withCredentials: this.configuration.withCredentials,
1689
+ ...(withCredentials ? { withCredentials } : {}),
2466
1690
  headers: localVarHeaders,
2467
1691
  observe: observe,
2468
1692
  transferCache: localVarTransferCache,
@@ -2471,41 +1695,20 @@ class PurchaseOrdersService {
2471
1695
  }
2472
1696
  getUnbookedPoLineItems($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2473
1697
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2474
- if ($skip !== undefined && $skip !== null) {
2475
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2476
- }
2477
- if ($top !== undefined && $top !== null) {
2478
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2479
- }
2480
- if ($orderby !== undefined && $orderby !== null) {
2481
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2482
- }
2483
- if ($filter !== undefined && $filter !== null) {
2484
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2485
- }
2486
- if ($search !== undefined && $search !== null) {
2487
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2488
- }
1698
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1699
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1700
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1701
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1702
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2489
1703
  let localVarHeaders = this.defaultHeaders;
2490
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2491
- if (localVarHttpHeaderAcceptSelected === undefined) {
2492
- // to determine the Accept header
2493
- const httpHeaderAccepts = [
2494
- 'application/json'
2495
- ];
2496
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2497
- }
1704
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1705
+ 'application/json'
1706
+ ]);
2498
1707
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2499
1708
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2500
1709
  }
2501
- let localVarHttpContext = options && options.context;
2502
- if (localVarHttpContext === undefined) {
2503
- localVarHttpContext = new HttpContext();
2504
- }
2505
- let localVarTransferCache = options && options.transferCache;
2506
- if (localVarTransferCache === undefined) {
2507
- localVarTransferCache = true;
2508
- }
1710
+ const localVarHttpContext = options?.context ?? new HttpContext();
1711
+ const localVarTransferCache = options?.transferCache ?? true;
2509
1712
  let responseType_ = 'json';
2510
1713
  if (localVarHttpHeaderAcceptSelected) {
2511
1714
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2519,21 +1722,22 @@ class PurchaseOrdersService {
2519
1722
  }
2520
1723
  }
2521
1724
  let localVarPath = `/purchaseOrders/unbookedPoLineItems`;
2522
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1725
+ const { basePath, withCredentials } = this.configuration;
1726
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2523
1727
  context: localVarHttpContext,
2524
1728
  params: localVarQueryParameters,
2525
1729
  responseType: responseType_,
2526
- withCredentials: this.configuration.withCredentials,
1730
+ ...(withCredentials ? { withCredentials } : {}),
2527
1731
  headers: localVarHeaders,
2528
1732
  observe: observe,
2529
1733
  transferCache: localVarTransferCache,
2530
1734
  reportProgress: reportProgress
2531
1735
  });
2532
1736
  }
2533
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2534
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, providedIn: 'root' });
1737
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PurchaseOrdersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1738
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PurchaseOrdersService, providedIn: 'root' });
2535
1739
  }
2536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, decorators: [{
1740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PurchaseOrdersService, decorators: [{
2537
1741
  type: Injectable,
2538
1742
  args: [{
2539
1743
  providedIn: 'root'
@@ -2557,88 +1761,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
2557
1761
  * Do not edit the class manually.
2558
1762
  */
2559
1763
  /* tslint:disable:no-unused-variable member-ordering */
2560
- class ReportsService {
1764
+ class ReportsService extends BaseService {
2561
1765
  httpClient;
2562
- basePath = 'http://localhost';
2563
- defaultHeaders = new HttpHeaders();
2564
- configuration = new Configuration();
2565
- encoder;
2566
1766
  constructor(httpClient, basePath, configuration) {
1767
+ super(basePath, configuration);
2567
1768
  this.httpClient = httpClient;
2568
- if (configuration) {
2569
- this.configuration = configuration;
2570
- }
2571
- if (typeof this.configuration.basePath !== 'string') {
2572
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2573
- if (firstBasePath != undefined) {
2574
- basePath = firstBasePath;
2575
- }
2576
- if (typeof basePath !== 'string') {
2577
- basePath = this.basePath;
2578
- }
2579
- this.configuration.basePath = basePath;
2580
- }
2581
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2582
- }
2583
- // @ts-ignore
2584
- addToHttpParams(httpParams, value, key) {
2585
- if (typeof value === "object" && value instanceof Date === false) {
2586
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2587
- }
2588
- else {
2589
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2590
- }
2591
- return httpParams;
2592
- }
2593
- addToHttpParamsRecursive(httpParams, value, key) {
2594
- if (value == null) {
2595
- return httpParams;
2596
- }
2597
- if (typeof value === "object") {
2598
- if (Array.isArray(value)) {
2599
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2600
- }
2601
- else if (value instanceof Date) {
2602
- if (key != null) {
2603
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2604
- }
2605
- else {
2606
- throw Error("key may not be null if value is Date");
2607
- }
2608
- }
2609
- else {
2610
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2611
- }
2612
- }
2613
- else if (key != null) {
2614
- httpParams = httpParams.append(key, value);
2615
- }
2616
- else {
2617
- throw Error("key may not be null if value is not object or array");
2618
- }
2619
- return httpParams;
2620
1769
  }
2621
1770
  getDcmReports(observe = 'body', reportProgress = false, options) {
2622
1771
  let localVarHeaders = this.defaultHeaders;
2623
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2624
- if (localVarHttpHeaderAcceptSelected === undefined) {
2625
- // to determine the Accept header
2626
- const httpHeaderAccepts = [
2627
- 'application/json'
2628
- ];
2629
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2630
- }
1772
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1773
+ 'application/json'
1774
+ ]);
2631
1775
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2632
1776
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2633
1777
  }
2634
- let localVarHttpContext = options && options.context;
2635
- if (localVarHttpContext === undefined) {
2636
- localVarHttpContext = new HttpContext();
2637
- }
2638
- let localVarTransferCache = options && options.transferCache;
2639
- if (localVarTransferCache === undefined) {
2640
- localVarTransferCache = true;
2641
- }
1778
+ const localVarHttpContext = options?.context ?? new HttpContext();
1779
+ const localVarTransferCache = options?.transferCache ?? true;
2642
1780
  let responseType_ = 'json';
2643
1781
  if (localVarHttpHeaderAcceptSelected) {
2644
1782
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2652,10 +1790,11 @@ class ReportsService {
2652
1790
  }
2653
1791
  }
2654
1792
  let localVarPath = `/reports/dashboard-dcm`;
2655
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1793
+ const { basePath, withCredentials } = this.configuration;
1794
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2656
1795
  context: localVarHttpContext,
2657
1796
  responseType: responseType_,
2658
- withCredentials: this.configuration.withCredentials,
1797
+ ...(withCredentials ? { withCredentials } : {}),
2659
1798
  headers: localVarHeaders,
2660
1799
  observe: observe,
2661
1800
  transferCache: localVarTransferCache,
@@ -2664,25 +1803,14 @@ class ReportsService {
2664
1803
  }
2665
1804
  getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
2666
1805
  let localVarHeaders = this.defaultHeaders;
2667
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2668
- if (localVarHttpHeaderAcceptSelected === undefined) {
2669
- // to determine the Accept header
2670
- const httpHeaderAccepts = [
2671
- 'application/json'
2672
- ];
2673
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2674
- }
1806
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1807
+ 'application/json'
1808
+ ]);
2675
1809
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2676
1810
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2677
1811
  }
2678
- let localVarHttpContext = options && options.context;
2679
- if (localVarHttpContext === undefined) {
2680
- localVarHttpContext = new HttpContext();
2681
- }
2682
- let localVarTransferCache = options && options.transferCache;
2683
- if (localVarTransferCache === undefined) {
2684
- localVarTransferCache = true;
2685
- }
1812
+ const localVarHttpContext = options?.context ?? new HttpContext();
1813
+ const localVarTransferCache = options?.transferCache ?? true;
2686
1814
  let responseType_ = 'json';
2687
1815
  if (localVarHttpHeaderAcceptSelected) {
2688
1816
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2696,20 +1824,21 @@ class ReportsService {
2696
1824
  }
2697
1825
  }
2698
1826
  let localVarPath = `/reports/summary-dashboard`;
2699
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1827
+ const { basePath, withCredentials } = this.configuration;
1828
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2700
1829
  context: localVarHttpContext,
2701
1830
  responseType: responseType_,
2702
- withCredentials: this.configuration.withCredentials,
1831
+ ...(withCredentials ? { withCredentials } : {}),
2703
1832
  headers: localVarHeaders,
2704
1833
  observe: observe,
2705
1834
  transferCache: localVarTransferCache,
2706
1835
  reportProgress: reportProgress
2707
1836
  });
2708
1837
  }
2709
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2710
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ReportsService, providedIn: 'root' });
1838
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1839
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReportsService, providedIn: 'root' });
2711
1840
  }
2712
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ReportsService, decorators: [{
1841
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReportsService, decorators: [{
2713
1842
  type: Injectable,
2714
1843
  args: [{
2715
1844
  providedIn: 'root'
@@ -2733,66 +1862,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
2733
1862
  * Do not edit the class manually.
2734
1863
  */
2735
1864
  /* tslint:disable:no-unused-variable member-ordering */
2736
- class SettingsService {
1865
+ class SettingsService extends BaseService {
2737
1866
  httpClient;
2738
- basePath = 'http://localhost';
2739
- defaultHeaders = new HttpHeaders();
2740
- configuration = new Configuration();
2741
- encoder;
2742
1867
  constructor(httpClient, basePath, configuration) {
1868
+ super(basePath, configuration);
2743
1869
  this.httpClient = httpClient;
2744
- if (configuration) {
2745
- this.configuration = configuration;
2746
- }
2747
- if (typeof this.configuration.basePath !== 'string') {
2748
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2749
- if (firstBasePath != undefined) {
2750
- basePath = firstBasePath;
2751
- }
2752
- if (typeof basePath !== 'string') {
2753
- basePath = this.basePath;
2754
- }
2755
- this.configuration.basePath = basePath;
2756
- }
2757
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2758
- }
2759
- // @ts-ignore
2760
- addToHttpParams(httpParams, value, key) {
2761
- if (typeof value === "object" && value instanceof Date === false) {
2762
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2763
- }
2764
- else {
2765
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2766
- }
2767
- return httpParams;
2768
- }
2769
- addToHttpParamsRecursive(httpParams, value, key) {
2770
- if (value == null) {
2771
- return httpParams;
2772
- }
2773
- if (typeof value === "object") {
2774
- if (Array.isArray(value)) {
2775
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2776
- }
2777
- else if (value instanceof Date) {
2778
- if (key != null) {
2779
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2780
- }
2781
- else {
2782
- throw Error("key may not be null if value is Date");
2783
- }
2784
- }
2785
- else {
2786
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2787
- }
2788
- }
2789
- else if (key != null) {
2790
- httpParams = httpParams.append(key, value);
2791
- }
2792
- else {
2793
- throw Error("key may not be null if value is not object or array");
2794
- }
2795
- return httpParams;
2796
1870
  }
2797
1871
  deleteSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
2798
1872
  if (key === null || key === undefined) {
@@ -2802,23 +1876,12 @@ class SettingsService {
2802
1876
  throw new Error('Required parameter group was null or undefined when calling deleteSettingByGroupAndKey.');
2803
1877
  }
2804
1878
  let localVarHeaders = this.defaultHeaders;
2805
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2806
- if (localVarHttpHeaderAcceptSelected === undefined) {
2807
- // to determine the Accept header
2808
- const httpHeaderAccepts = [];
2809
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2810
- }
1879
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2811
1880
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2812
1881
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2813
1882
  }
2814
- let localVarHttpContext = options && options.context;
2815
- if (localVarHttpContext === undefined) {
2816
- localVarHttpContext = new HttpContext();
2817
- }
2818
- let localVarTransferCache = options && options.transferCache;
2819
- if (localVarTransferCache === undefined) {
2820
- localVarTransferCache = true;
2821
- }
1883
+ const localVarHttpContext = options?.context ?? new HttpContext();
1884
+ const localVarTransferCache = options?.transferCache ?? true;
2822
1885
  let responseType_ = 'json';
2823
1886
  if (localVarHttpHeaderAcceptSelected) {
2824
1887
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2832,10 +1895,11 @@ class SettingsService {
2832
1895
  }
2833
1896
  }
2834
1897
  let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2835
- return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1898
+ const { basePath, withCredentials } = this.configuration;
1899
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
2836
1900
  context: localVarHttpContext,
2837
1901
  responseType: responseType_,
2838
- withCredentials: this.configuration.withCredentials,
1902
+ ...(withCredentials ? { withCredentials } : {}),
2839
1903
  headers: localVarHeaders,
2840
1904
  observe: observe,
2841
1905
  transferCache: localVarTransferCache,
@@ -2847,23 +1911,12 @@ class SettingsService {
2847
1911
  throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
2848
1912
  }
2849
1913
  let localVarHeaders = this.defaultHeaders;
2850
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2851
- if (localVarHttpHeaderAcceptSelected === undefined) {
2852
- // to determine the Accept header
2853
- const httpHeaderAccepts = [];
2854
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2855
- }
1914
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2856
1915
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2857
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2858
- }
2859
- let localVarHttpContext = options && options.context;
2860
- if (localVarHttpContext === undefined) {
2861
- localVarHttpContext = new HttpContext();
2862
- }
2863
- let localVarTransferCache = options && options.transferCache;
2864
- if (localVarTransferCache === undefined) {
2865
- localVarTransferCache = true;
1916
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2866
1917
  }
1918
+ const localVarHttpContext = options?.context ?? new HttpContext();
1919
+ const localVarTransferCache = options?.transferCache ?? true;
2867
1920
  let responseType_ = 'json';
2868
1921
  if (localVarHttpHeaderAcceptSelected) {
2869
1922
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2877,10 +1930,11 @@ class SettingsService {
2877
1930
  }
2878
1931
  }
2879
1932
  let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2880
- return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1933
+ const { basePath, withCredentials } = this.configuration;
1934
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
2881
1935
  context: localVarHttpContext,
2882
1936
  responseType: responseType_,
2883
- withCredentials: this.configuration.withCredentials,
1937
+ ...(withCredentials ? { withCredentials } : {}),
2884
1938
  headers: localVarHeaders,
2885
1939
  observe: observe,
2886
1940
  transferCache: localVarTransferCache,
@@ -2895,25 +1949,14 @@ class SettingsService {
2895
1949
  throw new Error('Required parameter group was null or undefined when calling getSettingByGroupAndKey.');
2896
1950
  }
2897
1951
  let localVarHeaders = this.defaultHeaders;
2898
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2899
- if (localVarHttpHeaderAcceptSelected === undefined) {
2900
- // to determine the Accept header
2901
- const httpHeaderAccepts = [
2902
- 'application/json'
2903
- ];
2904
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2905
- }
1952
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1953
+ 'application/json'
1954
+ ]);
2906
1955
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2907
1956
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2908
1957
  }
2909
- let localVarHttpContext = options && options.context;
2910
- if (localVarHttpContext === undefined) {
2911
- localVarHttpContext = new HttpContext();
2912
- }
2913
- let localVarTransferCache = options && options.transferCache;
2914
- if (localVarTransferCache === undefined) {
2915
- localVarTransferCache = true;
2916
- }
1958
+ const localVarHttpContext = options?.context ?? new HttpContext();
1959
+ const localVarTransferCache = options?.transferCache ?? true;
2917
1960
  let responseType_ = 'json';
2918
1961
  if (localVarHttpHeaderAcceptSelected) {
2919
1962
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2927,10 +1970,11 @@ class SettingsService {
2927
1970
  }
2928
1971
  }
2929
1972
  let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2930
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1973
+ const { basePath, withCredentials } = this.configuration;
1974
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2931
1975
  context: localVarHttpContext,
2932
1976
  responseType: responseType_,
2933
- withCredentials: this.configuration.withCredentials,
1977
+ ...(withCredentials ? { withCredentials } : {}),
2934
1978
  headers: localVarHeaders,
2935
1979
  observe: observe,
2936
1980
  transferCache: localVarTransferCache,
@@ -2942,25 +1986,14 @@ class SettingsService {
2942
1986
  throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
2943
1987
  }
2944
1988
  let localVarHeaders = this.defaultHeaders;
2945
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2946
- if (localVarHttpHeaderAcceptSelected === undefined) {
2947
- // to determine the Accept header
2948
- const httpHeaderAccepts = [
2949
- 'application/json'
2950
- ];
2951
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2952
- }
1989
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1990
+ 'application/json'
1991
+ ]);
2953
1992
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2954
1993
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2955
1994
  }
2956
- let localVarHttpContext = options && options.context;
2957
- if (localVarHttpContext === undefined) {
2958
- localVarHttpContext = new HttpContext();
2959
- }
2960
- let localVarTransferCache = options && options.transferCache;
2961
- if (localVarTransferCache === undefined) {
2962
- localVarTransferCache = true;
2963
- }
1995
+ const localVarHttpContext = options?.context ?? new HttpContext();
1996
+ const localVarTransferCache = options?.transferCache ?? true;
2964
1997
  let responseType_ = 'json';
2965
1998
  if (localVarHttpHeaderAcceptSelected) {
2966
1999
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -2974,10 +2007,11 @@ class SettingsService {
2974
2007
  }
2975
2008
  }
2976
2009
  let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2977
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2010
+ const { basePath, withCredentials } = this.configuration;
2011
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2978
2012
  context: localVarHttpContext,
2979
2013
  responseType: responseType_,
2980
- withCredentials: this.configuration.withCredentials,
2014
+ ...(withCredentials ? { withCredentials } : {}),
2981
2015
  headers: localVarHeaders,
2982
2016
  observe: observe,
2983
2017
  transferCache: localVarTransferCache,
@@ -2989,25 +2023,14 @@ class SettingsService {
2989
2023
  throw new Error('Required parameter group was null or undefined when calling getSettingsByGroup.');
2990
2024
  }
2991
2025
  let localVarHeaders = this.defaultHeaders;
2992
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2993
- if (localVarHttpHeaderAcceptSelected === undefined) {
2994
- // to determine the Accept header
2995
- const httpHeaderAccepts = [
2996
- 'application/json'
2997
- ];
2998
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2999
- }
2026
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2027
+ 'application/json'
2028
+ ]);
3000
2029
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3001
2030
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3002
2031
  }
3003
- let localVarHttpContext = options && options.context;
3004
- if (localVarHttpContext === undefined) {
3005
- localVarHttpContext = new HttpContext();
3006
- }
3007
- let localVarTransferCache = options && options.transferCache;
3008
- if (localVarTransferCache === undefined) {
3009
- localVarTransferCache = true;
3010
- }
2032
+ const localVarHttpContext = options?.context ?? new HttpContext();
2033
+ const localVarTransferCache = options?.transferCache ?? true;
3011
2034
  let responseType_ = 'json';
3012
2035
  if (localVarHttpHeaderAcceptSelected) {
3013
2036
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3021,10 +2044,11 @@ class SettingsService {
3021
2044
  }
3022
2045
  }
3023
2046
  let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3024
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2047
+ const { basePath, withCredentials } = this.configuration;
2048
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3025
2049
  context: localVarHttpContext,
3026
2050
  responseType: responseType_,
3027
- withCredentials: this.configuration.withCredentials,
2051
+ ...(withCredentials ? { withCredentials } : {}),
3028
2052
  headers: localVarHeaders,
3029
2053
  observe: observe,
3030
2054
  transferCache: localVarTransferCache,
@@ -3039,25 +2063,14 @@ class SettingsService {
3039
2063
  throw new Error('Required parameter settingValue was null or undefined when calling setSettingByKey.');
3040
2064
  }
3041
2065
  let localVarHeaders = this.defaultHeaders;
3042
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3043
- if (localVarHttpHeaderAcceptSelected === undefined) {
3044
- // to determine the Accept header
3045
- const httpHeaderAccepts = [
3046
- 'application/json'
3047
- ];
3048
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3049
- }
2066
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2067
+ 'application/json'
2068
+ ]);
3050
2069
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3051
2070
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3052
2071
  }
3053
- let localVarHttpContext = options && options.context;
3054
- if (localVarHttpContext === undefined) {
3055
- localVarHttpContext = new HttpContext();
3056
- }
3057
- let localVarTransferCache = options && options.transferCache;
3058
- if (localVarTransferCache === undefined) {
3059
- localVarTransferCache = true;
3060
- }
2072
+ const localVarHttpContext = options?.context ?? new HttpContext();
2073
+ const localVarTransferCache = options?.transferCache ?? true;
3061
2074
  // to determine the Content-Type header
3062
2075
  const consumes = [
3063
2076
  'application/json'
@@ -3079,21 +2092,22 @@ class SettingsService {
3079
2092
  }
3080
2093
  }
3081
2094
  let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3082
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2095
+ const { basePath, withCredentials } = this.configuration;
2096
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3083
2097
  context: localVarHttpContext,
3084
2098
  body: settingValue,
3085
2099
  responseType: responseType_,
3086
- withCredentials: this.configuration.withCredentials,
2100
+ ...(withCredentials ? { withCredentials } : {}),
3087
2101
  headers: localVarHeaders,
3088
2102
  observe: observe,
3089
2103
  transferCache: localVarTransferCache,
3090
2104
  reportProgress: reportProgress
3091
2105
  });
3092
2106
  }
3093
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3094
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SettingsService, providedIn: 'root' });
2107
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2108
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SettingsService, providedIn: 'root' });
3095
2109
  }
3096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SettingsService, decorators: [{
2110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SettingsService, decorators: [{
3097
2111
  type: Injectable,
3098
2112
  args: [{
3099
2113
  providedIn: 'root'
@@ -3117,104 +2131,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3117
2131
  * Do not edit the class manually.
3118
2132
  */
3119
2133
  /* tslint:disable:no-unused-variable member-ordering */
3120
- class ShipmentsService {
2134
+ class ShipmentsService extends BaseService {
3121
2135
  httpClient;
3122
- basePath = 'http://localhost';
3123
- defaultHeaders = new HttpHeaders();
3124
- configuration = new Configuration();
3125
- encoder;
3126
2136
  constructor(httpClient, basePath, configuration) {
2137
+ super(basePath, configuration);
3127
2138
  this.httpClient = httpClient;
3128
- if (configuration) {
3129
- this.configuration = configuration;
3130
- }
3131
- if (typeof this.configuration.basePath !== 'string') {
3132
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
3133
- if (firstBasePath != undefined) {
3134
- basePath = firstBasePath;
3135
- }
3136
- if (typeof basePath !== 'string') {
3137
- basePath = this.basePath;
3138
- }
3139
- this.configuration.basePath = basePath;
3140
- }
3141
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
3142
- }
3143
- // @ts-ignore
3144
- addToHttpParams(httpParams, value, key) {
3145
- if (typeof value === "object" && value instanceof Date === false) {
3146
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
3147
- }
3148
- else {
3149
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
3150
- }
3151
- return httpParams;
3152
- }
3153
- addToHttpParamsRecursive(httpParams, value, key) {
3154
- if (value == null) {
3155
- return httpParams;
3156
- }
3157
- if (typeof value === "object") {
3158
- if (Array.isArray(value)) {
3159
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
3160
- }
3161
- else if (value instanceof Date) {
3162
- if (key != null) {
3163
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
3164
- }
3165
- else {
3166
- throw Error("key may not be null if value is Date");
3167
- }
3168
- }
3169
- else {
3170
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
3171
- }
3172
- }
3173
- else if (key != null) {
3174
- httpParams = httpParams.append(key, value);
3175
- }
3176
- else {
3177
- throw Error("key may not be null if value is not object or array");
3178
- }
3179
- return httpParams;
3180
2139
  }
3181
2140
  getShipmentApprovals($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
3182
2141
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3183
- if ($skip !== undefined && $skip !== null) {
3184
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3185
- }
3186
- if ($top !== undefined && $top !== null) {
3187
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3188
- }
3189
- if ($orderby !== undefined && $orderby !== null) {
3190
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3191
- }
3192
- if ($filter !== undefined && $filter !== null) {
3193
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3194
- }
3195
- if ($search !== undefined && $search !== null) {
3196
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3197
- }
2142
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2143
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2144
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2145
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2146
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3198
2147
  let localVarHeaders = this.defaultHeaders;
3199
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3200
- if (localVarHttpHeaderAcceptSelected === undefined) {
3201
- // to determine the Accept header
3202
- const httpHeaderAccepts = [
3203
- 'application/json'
3204
- ];
3205
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3206
- }
2148
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2149
+ 'application/json'
2150
+ ]);
3207
2151
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3208
2152
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3209
2153
  }
3210
- let localVarHttpContext = options && options.context;
3211
- if (localVarHttpContext === undefined) {
3212
- localVarHttpContext = new HttpContext();
3213
- }
3214
- let localVarTransferCache = options && options.transferCache;
3215
- if (localVarTransferCache === undefined) {
3216
- localVarTransferCache = true;
3217
- }
2154
+ const localVarHttpContext = options?.context ?? new HttpContext();
2155
+ const localVarTransferCache = options?.transferCache ?? true;
3218
2156
  let responseType_ = 'json';
3219
2157
  if (localVarHttpHeaderAcceptSelected) {
3220
2158
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3228,11 +2166,12 @@ class ShipmentsService {
3228
2166
  }
3229
2167
  }
3230
2168
  let localVarPath = `/shipments/approvals`;
3231
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2169
+ const { basePath, withCredentials } = this.configuration;
2170
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3232
2171
  context: localVarHttpContext,
3233
2172
  params: localVarQueryParameters,
3234
2173
  responseType: responseType_,
3235
- withCredentials: this.configuration.withCredentials,
2174
+ ...(withCredentials ? { withCredentials } : {}),
3236
2175
  headers: localVarHeaders,
3237
2176
  observe: observe,
3238
2177
  transferCache: localVarTransferCache,
@@ -3241,41 +2180,20 @@ class ShipmentsService {
3241
2180
  }
3242
2181
  getShipmentApprovalsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
3243
2182
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3244
- if ($skip !== undefined && $skip !== null) {
3245
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3246
- }
3247
- if ($top !== undefined && $top !== null) {
3248
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3249
- }
3250
- if ($orderby !== undefined && $orderby !== null) {
3251
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3252
- }
3253
- if ($filter !== undefined && $filter !== null) {
3254
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3255
- }
3256
- if (searchTerm !== undefined && searchTerm !== null) {
3257
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
3258
- }
2183
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2184
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2185
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2186
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2187
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
3259
2188
  let localVarHeaders = this.defaultHeaders;
3260
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3261
- if (localVarHttpHeaderAcceptSelected === undefined) {
3262
- // to determine the Accept header
3263
- const httpHeaderAccepts = [
3264
- 'application/json'
3265
- ];
3266
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3267
- }
2189
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2190
+ 'application/json'
2191
+ ]);
3268
2192
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3269
2193
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3270
2194
  }
3271
- let localVarHttpContext = options && options.context;
3272
- if (localVarHttpContext === undefined) {
3273
- localVarHttpContext = new HttpContext();
3274
- }
3275
- let localVarTransferCache = options && options.transferCache;
3276
- if (localVarTransferCache === undefined) {
3277
- localVarTransferCache = true;
3278
- }
2195
+ const localVarHttpContext = options?.context ?? new HttpContext();
2196
+ const localVarTransferCache = options?.transferCache ?? true;
3279
2197
  let responseType_ = 'json';
3280
2198
  if (localVarHttpHeaderAcceptSelected) {
3281
2199
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3289,11 +2207,12 @@ class ShipmentsService {
3289
2207
  }
3290
2208
  }
3291
2209
  let localVarPath = `/shipments/approvals/search`;
3292
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2210
+ const { basePath, withCredentials } = this.configuration;
2211
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3293
2212
  context: localVarHttpContext,
3294
2213
  params: localVarQueryParameters,
3295
2214
  responseType: responseType_,
3296
- withCredentials: this.configuration.withCredentials,
2215
+ ...(withCredentials ? { withCredentials } : {}),
3297
2216
  headers: localVarHeaders,
3298
2217
  observe: observe,
3299
2218
  transferCache: localVarTransferCache,
@@ -3305,25 +2224,14 @@ class ShipmentsService {
3305
2224
  throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
3306
2225
  }
3307
2226
  let localVarHeaders = this.defaultHeaders;
3308
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3309
- if (localVarHttpHeaderAcceptSelected === undefined) {
3310
- // to determine the Accept header
3311
- const httpHeaderAccepts = [
3312
- 'application/json'
3313
- ];
3314
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3315
- }
2227
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2228
+ 'application/json'
2229
+ ]);
3316
2230
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3317
2231
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3318
2232
  }
3319
- let localVarHttpContext = options && options.context;
3320
- if (localVarHttpContext === undefined) {
3321
- localVarHttpContext = new HttpContext();
3322
- }
3323
- let localVarTransferCache = options && options.transferCache;
3324
- if (localVarTransferCache === undefined) {
3325
- localVarTransferCache = true;
3326
- }
2233
+ const localVarHttpContext = options?.context ?? new HttpContext();
2234
+ const localVarTransferCache = options?.transferCache ?? true;
3327
2235
  let responseType_ = 'json';
3328
2236
  if (localVarHttpHeaderAcceptSelected) {
3329
2237
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3337,10 +2245,11 @@ class ShipmentsService {
3337
2245
  }
3338
2246
  }
3339
2247
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
3340
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2248
+ const { basePath, withCredentials } = this.configuration;
2249
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3341
2250
  context: localVarHttpContext,
3342
2251
  responseType: responseType_,
3343
- withCredentials: this.configuration.withCredentials,
2252
+ ...(withCredentials ? { withCredentials } : {}),
3344
2253
  headers: localVarHeaders,
3345
2254
  observe: observe,
3346
2255
  transferCache: localVarTransferCache,
@@ -3352,25 +2261,14 @@ class ShipmentsService {
3352
2261
  throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentProductTotals.');
3353
2262
  }
3354
2263
  let localVarHeaders = this.defaultHeaders;
3355
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3356
- if (localVarHttpHeaderAcceptSelected === undefined) {
3357
- // to determine the Accept header
3358
- const httpHeaderAccepts = [
3359
- 'application/json'
3360
- ];
3361
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3362
- }
2264
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2265
+ 'application/json'
2266
+ ]);
3363
2267
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3364
2268
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3365
2269
  }
3366
- let localVarHttpContext = options && options.context;
3367
- if (localVarHttpContext === undefined) {
3368
- localVarHttpContext = new HttpContext();
3369
- }
3370
- let localVarTransferCache = options && options.transferCache;
3371
- if (localVarTransferCache === undefined) {
3372
- localVarTransferCache = true;
3373
- }
2270
+ const localVarHttpContext = options?.context ?? new HttpContext();
2271
+ const localVarTransferCache = options?.transferCache ?? true;
3374
2272
  let responseType_ = 'json';
3375
2273
  if (localVarHttpHeaderAcceptSelected) {
3376
2274
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3384,10 +2282,11 @@ class ShipmentsService {
3384
2282
  }
3385
2283
  }
3386
2284
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/productTotals`;
3387
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2285
+ const { basePath, withCredentials } = this.configuration;
2286
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3388
2287
  context: localVarHttpContext,
3389
2288
  responseType: responseType_,
3390
- withCredentials: this.configuration.withCredentials,
2289
+ ...(withCredentials ? { withCredentials } : {}),
3391
2290
  headers: localVarHeaders,
3392
2291
  observe: observe,
3393
2292
  transferCache: localVarTransferCache,
@@ -3399,41 +2298,20 @@ class ShipmentsService {
3399
2298
  throw new Error('Required parameter id was null or undefined when calling getShipmentProducts.');
3400
2299
  }
3401
2300
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3402
- if ($skip !== undefined && $skip !== null) {
3403
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3404
- }
3405
- if ($top !== undefined && $top !== null) {
3406
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3407
- }
3408
- if ($orderby !== undefined && $orderby !== null) {
3409
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3410
- }
3411
- if ($filter !== undefined && $filter !== null) {
3412
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3413
- }
3414
- if ($search !== undefined && $search !== null) {
3415
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3416
- }
2301
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2302
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2303
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2304
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2305
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3417
2306
  let localVarHeaders = this.defaultHeaders;
3418
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3419
- if (localVarHttpHeaderAcceptSelected === undefined) {
3420
- // to determine the Accept header
3421
- const httpHeaderAccepts = [
3422
- 'application/json'
3423
- ];
3424
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3425
- }
2307
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2308
+ 'application/json'
2309
+ ]);
3426
2310
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3427
2311
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3428
2312
  }
3429
- let localVarHttpContext = options && options.context;
3430
- if (localVarHttpContext === undefined) {
3431
- localVarHttpContext = new HttpContext();
3432
- }
3433
- let localVarTransferCache = options && options.transferCache;
3434
- if (localVarTransferCache === undefined) {
3435
- localVarTransferCache = true;
3436
- }
2313
+ const localVarHttpContext = options?.context ?? new HttpContext();
2314
+ const localVarTransferCache = options?.transferCache ?? true;
3437
2315
  let responseType_ = 'json';
3438
2316
  if (localVarHttpHeaderAcceptSelected) {
3439
2317
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3447,11 +2325,12 @@ class ShipmentsService {
3447
2325
  }
3448
2326
  }
3449
2327
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/products`;
3450
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2328
+ const { basePath, withCredentials } = this.configuration;
2329
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3451
2330
  context: localVarHttpContext,
3452
2331
  params: localVarQueryParameters,
3453
2332
  responseType: responseType_,
3454
- withCredentials: this.configuration.withCredentials,
2333
+ ...(withCredentials ? { withCredentials } : {}),
3455
2334
  headers: localVarHeaders,
3456
2335
  observe: observe,
3457
2336
  transferCache: localVarTransferCache,
@@ -3466,25 +2345,14 @@ class ShipmentsService {
3466
2345
  throw new Error('Required parameter type was null or undefined when calling getShipmentRouting.');
3467
2346
  }
3468
2347
  let localVarHeaders = this.defaultHeaders;
3469
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3470
- if (localVarHttpHeaderAcceptSelected === undefined) {
3471
- // to determine the Accept header
3472
- const httpHeaderAccepts = [
3473
- 'application/json'
3474
- ];
3475
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3476
- }
2348
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2349
+ 'application/json'
2350
+ ]);
3477
2351
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3478
2352
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3479
2353
  }
3480
- let localVarHttpContext = options && options.context;
3481
- if (localVarHttpContext === undefined) {
3482
- localVarHttpContext = new HttpContext();
3483
- }
3484
- let localVarTransferCache = options && options.transferCache;
3485
- if (localVarTransferCache === undefined) {
3486
- localVarTransferCache = true;
3487
- }
2354
+ const localVarHttpContext = options?.context ?? new HttpContext();
2355
+ const localVarTransferCache = options?.transferCache ?? true;
3488
2356
  let responseType_ = 'json';
3489
2357
  if (localVarHttpHeaderAcceptSelected) {
3490
2358
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3498,10 +2366,11 @@ class ShipmentsService {
3498
2366
  }
3499
2367
  }
3500
2368
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "TransportMode", dataFormat: undefined })}/routing`;
3501
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2369
+ const { basePath, withCredentials } = this.configuration;
2370
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3502
2371
  context: localVarHttpContext,
3503
2372
  responseType: responseType_,
3504
- withCredentials: this.configuration.withCredentials,
2373
+ ...(withCredentials ? { withCredentials } : {}),
3505
2374
  headers: localVarHeaders,
3506
2375
  observe: observe,
3507
2376
  transferCache: localVarTransferCache,
@@ -3513,25 +2382,14 @@ class ShipmentsService {
3513
2382
  throw new Error('Required parameter id was null or undefined when calling getShipmentSummary.');
3514
2383
  }
3515
2384
  let localVarHeaders = this.defaultHeaders;
3516
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3517
- if (localVarHttpHeaderAcceptSelected === undefined) {
3518
- // to determine the Accept header
3519
- const httpHeaderAccepts = [
3520
- 'application/json'
3521
- ];
3522
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3523
- }
2385
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2386
+ 'application/json'
2387
+ ]);
3524
2388
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3525
2389
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3526
2390
  }
3527
- let localVarHttpContext = options && options.context;
3528
- if (localVarHttpContext === undefined) {
3529
- localVarHttpContext = new HttpContext();
3530
- }
3531
- let localVarTransferCache = options && options.transferCache;
3532
- if (localVarTransferCache === undefined) {
3533
- localVarTransferCache = true;
3534
- }
2391
+ const localVarHttpContext = options?.context ?? new HttpContext();
2392
+ const localVarTransferCache = options?.transferCache ?? true;
3535
2393
  let responseType_ = 'json';
3536
2394
  if (localVarHttpHeaderAcceptSelected) {
3537
2395
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3545,10 +2403,11 @@ class ShipmentsService {
3545
2403
  }
3546
2404
  }
3547
2405
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
3548
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2406
+ const { basePath, withCredentials } = this.configuration;
2407
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3549
2408
  context: localVarHttpContext,
3550
2409
  responseType: responseType_,
3551
- withCredentials: this.configuration.withCredentials,
2410
+ ...(withCredentials ? { withCredentials } : {}),
3552
2411
  headers: localVarHeaders,
3553
2412
  observe: observe,
3554
2413
  transferCache: localVarTransferCache,
@@ -3560,25 +2419,14 @@ class ShipmentsService {
3560
2419
  throw new Error('Required parameter id was null or undefined when calling getShipmentTimeline.');
3561
2420
  }
3562
2421
  let localVarHeaders = this.defaultHeaders;
3563
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3564
- if (localVarHttpHeaderAcceptSelected === undefined) {
3565
- // to determine the Accept header
3566
- const httpHeaderAccepts = [
3567
- 'application/json'
3568
- ];
3569
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3570
- }
2422
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2423
+ 'application/json'
2424
+ ]);
3571
2425
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3572
2426
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3573
2427
  }
3574
- let localVarHttpContext = options && options.context;
3575
- if (localVarHttpContext === undefined) {
3576
- localVarHttpContext = new HttpContext();
3577
- }
3578
- let localVarTransferCache = options && options.transferCache;
3579
- if (localVarTransferCache === undefined) {
3580
- localVarTransferCache = true;
3581
- }
2428
+ const localVarHttpContext = options?.context ?? new HttpContext();
2429
+ const localVarTransferCache = options?.transferCache ?? true;
3582
2430
  let responseType_ = 'json';
3583
2431
  if (localVarHttpHeaderAcceptSelected) {
3584
2432
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3592,10 +2440,11 @@ class ShipmentsService {
3592
2440
  }
3593
2441
  }
3594
2442
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/timeline`;
3595
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2443
+ const { basePath, withCredentials } = this.configuration;
2444
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3596
2445
  context: localVarHttpContext,
3597
2446
  responseType: responseType_,
3598
- withCredentials: this.configuration.withCredentials,
2447
+ ...(withCredentials ? { withCredentials } : {}),
3599
2448
  headers: localVarHeaders,
3600
2449
  observe: observe,
3601
2450
  transferCache: localVarTransferCache,
@@ -3604,41 +2453,20 @@ class ShipmentsService {
3604
2453
  }
3605
2454
  getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
3606
2455
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3607
- if ($skip !== undefined && $skip !== null) {
3608
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3609
- }
3610
- if ($top !== undefined && $top !== null) {
3611
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3612
- }
3613
- if ($orderby !== undefined && $orderby !== null) {
3614
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3615
- }
3616
- if ($filter !== undefined && $filter !== null) {
3617
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3618
- }
3619
- if ($search !== undefined && $search !== null) {
3620
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3621
- }
2456
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2457
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2458
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2459
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2460
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3622
2461
  let localVarHeaders = this.defaultHeaders;
3623
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3624
- if (localVarHttpHeaderAcceptSelected === undefined) {
3625
- // to determine the Accept header
3626
- const httpHeaderAccepts = [
3627
- 'application/json'
3628
- ];
3629
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3630
- }
2462
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2463
+ 'application/json'
2464
+ ]);
3631
2465
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3632
2466
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3633
2467
  }
3634
- let localVarHttpContext = options && options.context;
3635
- if (localVarHttpContext === undefined) {
3636
- localVarHttpContext = new HttpContext();
3637
- }
3638
- let localVarTransferCache = options && options.transferCache;
3639
- if (localVarTransferCache === undefined) {
3640
- localVarTransferCache = true;
3641
- }
2468
+ const localVarHttpContext = options?.context ?? new HttpContext();
2469
+ const localVarTransferCache = options?.transferCache ?? true;
3642
2470
  let responseType_ = 'json';
3643
2471
  if (localVarHttpHeaderAcceptSelected) {
3644
2472
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3652,11 +2480,12 @@ class ShipmentsService {
3652
2480
  }
3653
2481
  }
3654
2482
  let localVarPath = `/shipments/list`;
3655
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2483
+ const { basePath, withCredentials } = this.configuration;
2484
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3656
2485
  context: localVarHttpContext,
3657
2486
  params: localVarQueryParameters,
3658
2487
  responseType: responseType_,
3659
- withCredentials: this.configuration.withCredentials,
2488
+ ...(withCredentials ? { withCredentials } : {}),
3660
2489
  headers: localVarHeaders,
3661
2490
  observe: observe,
3662
2491
  transferCache: localVarTransferCache,
@@ -3665,25 +2494,14 @@ class ShipmentsService {
3665
2494
  }
3666
2495
  getShipmentsApprovalCount(observe = 'body', reportProgress = false, options) {
3667
2496
  let localVarHeaders = this.defaultHeaders;
3668
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3669
- if (localVarHttpHeaderAcceptSelected === undefined) {
3670
- // to determine the Accept header
3671
- const httpHeaderAccepts = [
3672
- 'application/json'
3673
- ];
3674
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3675
- }
2497
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2498
+ 'application/json'
2499
+ ]);
3676
2500
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3677
2501
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3678
2502
  }
3679
- let localVarHttpContext = options && options.context;
3680
- if (localVarHttpContext === undefined) {
3681
- localVarHttpContext = new HttpContext();
3682
- }
3683
- let localVarTransferCache = options && options.transferCache;
3684
- if (localVarTransferCache === undefined) {
3685
- localVarTransferCache = true;
3686
- }
2503
+ const localVarHttpContext = options?.context ?? new HttpContext();
2504
+ const localVarTransferCache = options?.transferCache ?? true;
3687
2505
  let responseType_ = 'json';
3688
2506
  if (localVarHttpHeaderAcceptSelected) {
3689
2507
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3697,10 +2515,11 @@ class ShipmentsService {
3697
2515
  }
3698
2516
  }
3699
2517
  let localVarPath = `/shipments/approvals/count`;
3700
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2518
+ const { basePath, withCredentials } = this.configuration;
2519
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3701
2520
  context: localVarHttpContext,
3702
2521
  responseType: responseType_,
3703
- withCredentials: this.configuration.withCredentials,
2522
+ ...(withCredentials ? { withCredentials } : {}),
3704
2523
  headers: localVarHeaders,
3705
2524
  observe: observe,
3706
2525
  transferCache: localVarTransferCache,
@@ -3712,25 +2531,14 @@ class ShipmentsService {
3712
2531
  throw new Error('Required parameter state was null or undefined when calling getShipmentsCountByState.');
3713
2532
  }
3714
2533
  let localVarHeaders = this.defaultHeaders;
3715
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3716
- if (localVarHttpHeaderAcceptSelected === undefined) {
3717
- // to determine the Accept header
3718
- const httpHeaderAccepts = [
3719
- 'application/json'
3720
- ];
3721
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3722
- }
2534
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2535
+ 'application/json'
2536
+ ]);
3723
2537
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3724
2538
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3725
2539
  }
3726
- let localVarHttpContext = options && options.context;
3727
- if (localVarHttpContext === undefined) {
3728
- localVarHttpContext = new HttpContext();
3729
- }
3730
- let localVarTransferCache = options && options.transferCache;
3731
- if (localVarTransferCache === undefined) {
3732
- localVarTransferCache = true;
3733
- }
2540
+ const localVarHttpContext = options?.context ?? new HttpContext();
2541
+ const localVarTransferCache = options?.transferCache ?? true;
3734
2542
  let responseType_ = 'json';
3735
2543
  if (localVarHttpHeaderAcceptSelected) {
3736
2544
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3744,10 +2552,11 @@ class ShipmentsService {
3744
2552
  }
3745
2553
  }
3746
2554
  let localVarPath = `/shipments/byStateCount/${this.configuration.encodeParam({ name: "state", value: state, in: "path", style: "simple", explode: false, dataType: "ShipmentState", dataFormat: undefined })}`;
3747
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2555
+ const { basePath, withCredentials } = this.configuration;
2556
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3748
2557
  context: localVarHttpContext,
3749
2558
  responseType: responseType_,
3750
- withCredentials: this.configuration.withCredentials,
2559
+ ...(withCredentials ? { withCredentials } : {}),
3751
2560
  headers: localVarHeaders,
3752
2561
  observe: observe,
3753
2562
  transferCache: localVarTransferCache,
@@ -3756,41 +2565,20 @@ class ShipmentsService {
3756
2565
  }
3757
2566
  getShipmentsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
3758
2567
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3759
- if ($skip !== undefined && $skip !== null) {
3760
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3761
- }
3762
- if ($top !== undefined && $top !== null) {
3763
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3764
- }
3765
- if ($orderby !== undefined && $orderby !== null) {
3766
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3767
- }
3768
- if ($filter !== undefined && $filter !== null) {
3769
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3770
- }
3771
- if (searchTerm !== undefined && searchTerm !== null) {
3772
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
3773
- }
2568
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2569
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2570
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2571
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2572
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
3774
2573
  let localVarHeaders = this.defaultHeaders;
3775
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3776
- if (localVarHttpHeaderAcceptSelected === undefined) {
3777
- // to determine the Accept header
3778
- const httpHeaderAccepts = [
3779
- 'application/json'
3780
- ];
3781
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3782
- }
2574
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2575
+ 'application/json'
2576
+ ]);
3783
2577
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3784
2578
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3785
2579
  }
3786
- let localVarHttpContext = options && options.context;
3787
- if (localVarHttpContext === undefined) {
3788
- localVarHttpContext = new HttpContext();
3789
- }
3790
- let localVarTransferCache = options && options.transferCache;
3791
- if (localVarTransferCache === undefined) {
3792
- localVarTransferCache = true;
3793
- }
2580
+ const localVarHttpContext = options?.context ?? new HttpContext();
2581
+ const localVarTransferCache = options?.transferCache ?? true;
3794
2582
  let responseType_ = 'json';
3795
2583
  if (localVarHttpHeaderAcceptSelected) {
3796
2584
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3804,11 +2592,12 @@ class ShipmentsService {
3804
2592
  }
3805
2593
  }
3806
2594
  let localVarPath = `/shipments/search`;
3807
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2595
+ const { basePath, withCredentials } = this.configuration;
2596
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3808
2597
  context: localVarHttpContext,
3809
2598
  params: localVarQueryParameters,
3810
2599
  responseType: responseType_,
3811
- withCredentials: this.configuration.withCredentials,
2600
+ ...(withCredentials ? { withCredentials } : {}),
3812
2601
  headers: localVarHeaders,
3813
2602
  observe: observe,
3814
2603
  transferCache: localVarTransferCache,
@@ -3817,25 +2606,14 @@ class ShipmentsService {
3817
2606
  }
3818
2607
  getShipmentsInTransitCount(observe = 'body', reportProgress = false, options) {
3819
2608
  let localVarHeaders = this.defaultHeaders;
3820
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3821
- if (localVarHttpHeaderAcceptSelected === undefined) {
3822
- // to determine the Accept header
3823
- const httpHeaderAccepts = [
3824
- 'application/json'
3825
- ];
3826
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3827
- }
2609
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2610
+ 'application/json'
2611
+ ]);
3828
2612
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3829
2613
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3830
2614
  }
3831
- let localVarHttpContext = options && options.context;
3832
- if (localVarHttpContext === undefined) {
3833
- localVarHttpContext = new HttpContext();
3834
- }
3835
- let localVarTransferCache = options && options.transferCache;
3836
- if (localVarTransferCache === undefined) {
3837
- localVarTransferCache = true;
3838
- }
2615
+ const localVarHttpContext = options?.context ?? new HttpContext();
2616
+ const localVarTransferCache = options?.transferCache ?? true;
3839
2617
  let responseType_ = 'json';
3840
2618
  if (localVarHttpHeaderAcceptSelected) {
3841
2619
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3849,10 +2627,11 @@ class ShipmentsService {
3849
2627
  }
3850
2628
  }
3851
2629
  let localVarPath = `/shipments/intransit/count`;
3852
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2630
+ const { basePath, withCredentials } = this.configuration;
2631
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3853
2632
  context: localVarHttpContext,
3854
2633
  responseType: responseType_,
3855
- withCredentials: this.configuration.withCredentials,
2634
+ ...(withCredentials ? { withCredentials } : {}),
3856
2635
  headers: localVarHeaders,
3857
2636
  observe: observe,
3858
2637
  transferCache: localVarTransferCache,
@@ -3861,25 +2640,14 @@ class ShipmentsService {
3861
2640
  }
3862
2641
  getShipmentsPendingDocuments(observe = 'body', reportProgress = false, options) {
3863
2642
  let localVarHeaders = this.defaultHeaders;
3864
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3865
- if (localVarHttpHeaderAcceptSelected === undefined) {
3866
- // to determine the Accept header
3867
- const httpHeaderAccepts = [
3868
- 'application/json'
3869
- ];
3870
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3871
- }
2643
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2644
+ 'application/json'
2645
+ ]);
3872
2646
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3873
2647
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3874
2648
  }
3875
- let localVarHttpContext = options && options.context;
3876
- if (localVarHttpContext === undefined) {
3877
- localVarHttpContext = new HttpContext();
3878
- }
3879
- let localVarTransferCache = options && options.transferCache;
3880
- if (localVarTransferCache === undefined) {
3881
- localVarTransferCache = true;
3882
- }
2649
+ const localVarHttpContext = options?.context ?? new HttpContext();
2650
+ const localVarTransferCache = options?.transferCache ?? true;
3883
2651
  let responseType_ = 'json';
3884
2652
  if (localVarHttpHeaderAcceptSelected) {
3885
2653
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3893,10 +2661,11 @@ class ShipmentsService {
3893
2661
  }
3894
2662
  }
3895
2663
  let localVarPath = `/shipments/vendorPendingDocuments/count`;
3896
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2664
+ const { basePath, withCredentials } = this.configuration;
2665
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3897
2666
  context: localVarHttpContext,
3898
2667
  responseType: responseType_,
3899
- withCredentials: this.configuration.withCredentials,
2668
+ ...(withCredentials ? { withCredentials } : {}),
3900
2669
  headers: localVarHeaders,
3901
2670
  observe: observe,
3902
2671
  transferCache: localVarTransferCache,
@@ -3905,25 +2674,14 @@ class ShipmentsService {
3905
2674
  }
3906
2675
  getShipmentsPendingInstructions(observe = 'body', reportProgress = false, options) {
3907
2676
  let localVarHeaders = this.defaultHeaders;
3908
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3909
- if (localVarHttpHeaderAcceptSelected === undefined) {
3910
- // to determine the Accept header
3911
- const httpHeaderAccepts = [
3912
- 'application/json'
3913
- ];
3914
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3915
- }
2677
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2678
+ 'application/json'
2679
+ ]);
3916
2680
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3917
2681
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3918
2682
  }
3919
- let localVarHttpContext = options && options.context;
3920
- if (localVarHttpContext === undefined) {
3921
- localVarHttpContext = new HttpContext();
3922
- }
3923
- let localVarTransferCache = options && options.transferCache;
3924
- if (localVarTransferCache === undefined) {
3925
- localVarTransferCache = true;
3926
- }
2683
+ const localVarHttpContext = options?.context ?? new HttpContext();
2684
+ const localVarTransferCache = options?.transferCache ?? true;
3927
2685
  let responseType_ = 'json';
3928
2686
  if (localVarHttpHeaderAcceptSelected) {
3929
2687
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3937,10 +2695,11 @@ class ShipmentsService {
3937
2695
  }
3938
2696
  }
3939
2697
  let localVarPath = `/shipments/vendorPendingInstructions/count`;
3940
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2698
+ const { basePath, withCredentials } = this.configuration;
2699
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3941
2700
  context: localVarHttpContext,
3942
2701
  responseType: responseType_,
3943
- withCredentials: this.configuration.withCredentials,
2702
+ ...(withCredentials ? { withCredentials } : {}),
3944
2703
  headers: localVarHeaders,
3945
2704
  observe: observe,
3946
2705
  transferCache: localVarTransferCache,
@@ -3955,25 +2714,14 @@ class ShipmentsService {
3955
2714
  throw new Error('Required parameter state was null or undefined when calling updateShipmentState.');
3956
2715
  }
3957
2716
  let localVarHeaders = this.defaultHeaders;
3958
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3959
- if (localVarHttpHeaderAcceptSelected === undefined) {
3960
- // to determine the Accept header
3961
- const httpHeaderAccepts = [
3962
- 'application/json'
3963
- ];
3964
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3965
- }
2717
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2718
+ 'application/json'
2719
+ ]);
3966
2720
  if (localVarHttpHeaderAcceptSelected !== undefined) {
3967
2721
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3968
2722
  }
3969
- let localVarHttpContext = options && options.context;
3970
- if (localVarHttpContext === undefined) {
3971
- localVarHttpContext = new HttpContext();
3972
- }
3973
- let localVarTransferCache = options && options.transferCache;
3974
- if (localVarTransferCache === undefined) {
3975
- localVarTransferCache = true;
3976
- }
2723
+ const localVarHttpContext = options?.context ?? new HttpContext();
2724
+ const localVarTransferCache = options?.transferCache ?? true;
3977
2725
  let responseType_ = 'json';
3978
2726
  if (localVarHttpHeaderAcceptSelected) {
3979
2727
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -3987,20 +2735,21 @@ class ShipmentsService {
3987
2735
  }
3988
2736
  }
3989
2737
  let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "state", value: state, in: "path", style: "simple", explode: false, dataType: "ShipmentState", dataFormat: undefined })}`;
3990
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2738
+ const { basePath, withCredentials } = this.configuration;
2739
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3991
2740
  context: localVarHttpContext,
3992
2741
  responseType: responseType_,
3993
- withCredentials: this.configuration.withCredentials,
2742
+ ...(withCredentials ? { withCredentials } : {}),
3994
2743
  headers: localVarHeaders,
3995
2744
  observe: observe,
3996
2745
  transferCache: localVarTransferCache,
3997
2746
  reportProgress: reportProgress
3998
2747
  });
3999
2748
  }
4000
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4001
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
2749
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2750
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
4002
2751
  }
4003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ShipmentsService, decorators: [{
2752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ShipmentsService, decorators: [{
4004
2753
  type: Injectable,
4005
2754
  args: [{
4006
2755
  providedIn: 'root'
@@ -4024,107 +2773,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
4024
2773
  * Do not edit the class manually.
4025
2774
  */
4026
2775
  /* tslint:disable:no-unused-variable member-ordering */
4027
- class SipmetItemsService {
2776
+ class SipmetItemsService extends BaseService {
4028
2777
  httpClient;
4029
- basePath = 'http://localhost';
4030
- defaultHeaders = new HttpHeaders();
4031
- configuration = new Configuration();
4032
- encoder;
4033
2778
  constructor(httpClient, basePath, configuration) {
2779
+ super(basePath, configuration);
4034
2780
  this.httpClient = httpClient;
4035
- if (configuration) {
4036
- this.configuration = configuration;
4037
- }
4038
- if (typeof this.configuration.basePath !== 'string') {
4039
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
4040
- if (firstBasePath != undefined) {
4041
- basePath = firstBasePath;
4042
- }
4043
- if (typeof basePath !== 'string') {
4044
- basePath = this.basePath;
4045
- }
4046
- this.configuration.basePath = basePath;
4047
- }
4048
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
4049
- }
4050
- // @ts-ignore
4051
- addToHttpParams(httpParams, value, key) {
4052
- if (typeof value === "object" && value instanceof Date === false) {
4053
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
4054
- }
4055
- else {
4056
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
4057
- }
4058
- return httpParams;
4059
- }
4060
- addToHttpParamsRecursive(httpParams, value, key) {
4061
- if (value == null) {
4062
- return httpParams;
4063
- }
4064
- if (typeof value === "object") {
4065
- if (Array.isArray(value)) {
4066
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
4067
- }
4068
- else if (value instanceof Date) {
4069
- if (key != null) {
4070
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
4071
- }
4072
- else {
4073
- throw Error("key may not be null if value is Date");
4074
- }
4075
- }
4076
- else {
4077
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
4078
- }
4079
- }
4080
- else if (key != null) {
4081
- httpParams = httpParams.append(key, value);
4082
- }
4083
- else {
4084
- throw Error("key may not be null if value is not object or array");
4085
- }
4086
- return httpParams;
4087
2781
  }
4088
2782
  getShipmentItemSummaries(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
4089
2783
  if (id === null || id === undefined) {
4090
2784
  throw new Error('Required parameter id was null or undefined when calling getShipmentItemSummaries.');
4091
2785
  }
4092
2786
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4093
- if ($skip !== undefined && $skip !== null) {
4094
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
4095
- }
4096
- if ($top !== undefined && $top !== null) {
4097
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
4098
- }
4099
- if ($orderby !== undefined && $orderby !== null) {
4100
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
4101
- }
4102
- if ($filter !== undefined && $filter !== null) {
4103
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
4104
- }
4105
- if ($search !== undefined && $search !== null) {
4106
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
4107
- }
2787
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2788
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2789
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2790
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2791
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
4108
2792
  let localVarHeaders = this.defaultHeaders;
4109
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4110
- if (localVarHttpHeaderAcceptSelected === undefined) {
4111
- // to determine the Accept header
4112
- const httpHeaderAccepts = [
4113
- 'application/json'
4114
- ];
4115
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4116
- }
2793
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2794
+ 'application/json'
2795
+ ]);
4117
2796
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4118
2797
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4119
2798
  }
4120
- let localVarHttpContext = options && options.context;
4121
- if (localVarHttpContext === undefined) {
4122
- localVarHttpContext = new HttpContext();
4123
- }
4124
- let localVarTransferCache = options && options.transferCache;
4125
- if (localVarTransferCache === undefined) {
4126
- localVarTransferCache = true;
4127
- }
2799
+ const localVarHttpContext = options?.context ?? new HttpContext();
2800
+ const localVarTransferCache = options?.transferCache ?? true;
4128
2801
  let responseType_ = 'json';
4129
2802
  if (localVarHttpHeaderAcceptSelected) {
4130
2803
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -4138,21 +2811,22 @@ class SipmetItemsService {
4138
2811
  }
4139
2812
  }
4140
2813
  let localVarPath = `/shipmentItems/summaries`;
4141
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2814
+ const { basePath, withCredentials } = this.configuration;
2815
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
4142
2816
  context: localVarHttpContext,
4143
2817
  params: localVarQueryParameters,
4144
2818
  responseType: responseType_,
4145
- withCredentials: this.configuration.withCredentials,
2819
+ ...(withCredentials ? { withCredentials } : {}),
4146
2820
  headers: localVarHeaders,
4147
2821
  observe: observe,
4148
2822
  transferCache: localVarTransferCache,
4149
2823
  reportProgress: reportProgress
4150
2824
  });
4151
2825
  }
4152
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4153
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, providedIn: 'root' });
2826
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SipmetItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2827
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SipmetItemsService, providedIn: 'root' });
4154
2828
  }
4155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, decorators: [{
2829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SipmetItemsService, decorators: [{
4156
2830
  type: Injectable,
4157
2831
  args: [{
4158
2832
  providedIn: 'root'
@@ -4176,88 +2850,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
4176
2850
  * Do not edit the class manually.
4177
2851
  */
4178
2852
  /* tslint:disable:no-unused-variable member-ordering */
4179
- class UserService {
2853
+ class UserService extends BaseService {
4180
2854
  httpClient;
4181
- basePath = 'http://localhost';
4182
- defaultHeaders = new HttpHeaders();
4183
- configuration = new Configuration();
4184
- encoder;
4185
2855
  constructor(httpClient, basePath, configuration) {
2856
+ super(basePath, configuration);
4186
2857
  this.httpClient = httpClient;
4187
- if (configuration) {
4188
- this.configuration = configuration;
4189
- }
4190
- if (typeof this.configuration.basePath !== 'string') {
4191
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
4192
- if (firstBasePath != undefined) {
4193
- basePath = firstBasePath;
4194
- }
4195
- if (typeof basePath !== 'string') {
4196
- basePath = this.basePath;
4197
- }
4198
- this.configuration.basePath = basePath;
4199
- }
4200
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
4201
- }
4202
- // @ts-ignore
4203
- addToHttpParams(httpParams, value, key) {
4204
- if (typeof value === "object" && value instanceof Date === false) {
4205
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
4206
- }
4207
- else {
4208
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
4209
- }
4210
- return httpParams;
4211
- }
4212
- addToHttpParamsRecursive(httpParams, value, key) {
4213
- if (value == null) {
4214
- return httpParams;
4215
- }
4216
- if (typeof value === "object") {
4217
- if (Array.isArray(value)) {
4218
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
4219
- }
4220
- else if (value instanceof Date) {
4221
- if (key != null) {
4222
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
4223
- }
4224
- else {
4225
- throw Error("key may not be null if value is Date");
4226
- }
4227
- }
4228
- else {
4229
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
4230
- }
4231
- }
4232
- else if (key != null) {
4233
- httpParams = httpParams.append(key, value);
4234
- }
4235
- else {
4236
- throw Error("key may not be null if value is not object or array");
4237
- }
4238
- return httpParams;
4239
2858
  }
4240
2859
  getChatPendingCount(observe = 'body', reportProgress = false, options) {
4241
2860
  let localVarHeaders = this.defaultHeaders;
4242
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4243
- if (localVarHttpHeaderAcceptSelected === undefined) {
4244
- // to determine the Accept header
4245
- const httpHeaderAccepts = [
4246
- 'application/json'
4247
- ];
4248
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4249
- }
2861
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2862
+ 'application/json'
2863
+ ]);
4250
2864
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4251
2865
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4252
2866
  }
4253
- let localVarHttpContext = options && options.context;
4254
- if (localVarHttpContext === undefined) {
4255
- localVarHttpContext = new HttpContext();
4256
- }
4257
- let localVarTransferCache = options && options.transferCache;
4258
- if (localVarTransferCache === undefined) {
4259
- localVarTransferCache = true;
4260
- }
2867
+ const localVarHttpContext = options?.context ?? new HttpContext();
2868
+ const localVarTransferCache = options?.transferCache ?? true;
4261
2869
  let responseType_ = 'json';
4262
2870
  if (localVarHttpHeaderAcceptSelected) {
4263
2871
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -4271,10 +2879,11 @@ class UserService {
4271
2879
  }
4272
2880
  }
4273
2881
  let localVarPath = `/user/chatCount`;
4274
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2882
+ const { basePath, withCredentials } = this.configuration;
2883
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
4275
2884
  context: localVarHttpContext,
4276
2885
  responseType: responseType_,
4277
- withCredentials: this.configuration.withCredentials,
2886
+ ...(withCredentials ? { withCredentials } : {}),
4278
2887
  headers: localVarHeaders,
4279
2888
  observe: observe,
4280
2889
  transferCache: localVarTransferCache,
@@ -4283,25 +2892,14 @@ class UserService {
4283
2892
  }
4284
2893
  getMailPendingCount(observe = 'body', reportProgress = false, options) {
4285
2894
  let localVarHeaders = this.defaultHeaders;
4286
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4287
- if (localVarHttpHeaderAcceptSelected === undefined) {
4288
- // to determine the Accept header
4289
- const httpHeaderAccepts = [
4290
- 'application/json'
4291
- ];
4292
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4293
- }
2895
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2896
+ 'application/json'
2897
+ ]);
4294
2898
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4295
2899
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4296
2900
  }
4297
- let localVarHttpContext = options && options.context;
4298
- if (localVarHttpContext === undefined) {
4299
- localVarHttpContext = new HttpContext();
4300
- }
4301
- let localVarTransferCache = options && options.transferCache;
4302
- if (localVarTransferCache === undefined) {
4303
- localVarTransferCache = true;
4304
- }
2901
+ const localVarHttpContext = options?.context ?? new HttpContext();
2902
+ const localVarTransferCache = options?.transferCache ?? true;
4305
2903
  let responseType_ = 'json';
4306
2904
  if (localVarHttpHeaderAcceptSelected) {
4307
2905
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -4315,10 +2913,11 @@ class UserService {
4315
2913
  }
4316
2914
  }
4317
2915
  let localVarPath = `/user/mailCount`;
4318
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2916
+ const { basePath, withCredentials } = this.configuration;
2917
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
4319
2918
  context: localVarHttpContext,
4320
2919
  responseType: responseType_,
4321
- withCredentials: this.configuration.withCredentials,
2920
+ ...(withCredentials ? { withCredentials } : {}),
4322
2921
  headers: localVarHeaders,
4323
2922
  observe: observe,
4324
2923
  transferCache: localVarTransferCache,
@@ -4327,25 +2926,14 @@ class UserService {
4327
2926
  }
4328
2927
  getUserApplicationList(observe = 'body', reportProgress = false, options) {
4329
2928
  let localVarHeaders = this.defaultHeaders;
4330
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4331
- if (localVarHttpHeaderAcceptSelected === undefined) {
4332
- // to determine the Accept header
4333
- const httpHeaderAccepts = [
4334
- 'application/json'
4335
- ];
4336
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4337
- }
2929
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2930
+ 'application/json'
2931
+ ]);
4338
2932
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4339
2933
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4340
2934
  }
4341
- let localVarHttpContext = options && options.context;
4342
- if (localVarHttpContext === undefined) {
4343
- localVarHttpContext = new HttpContext();
4344
- }
4345
- let localVarTransferCache = options && options.transferCache;
4346
- if (localVarTransferCache === undefined) {
4347
- localVarTransferCache = true;
4348
- }
2935
+ const localVarHttpContext = options?.context ?? new HttpContext();
2936
+ const localVarTransferCache = options?.transferCache ?? true;
4349
2937
  let responseType_ = 'json';
4350
2938
  if (localVarHttpHeaderAcceptSelected) {
4351
2939
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -4359,10 +2947,11 @@ class UserService {
4359
2947
  }
4360
2948
  }
4361
2949
  let localVarPath = `/users/me/applications`;
4362
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2950
+ const { basePath, withCredentials } = this.configuration;
2951
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
4363
2952
  context: localVarHttpContext,
4364
2953
  responseType: responseType_,
4365
- withCredentials: this.configuration.withCredentials,
2954
+ ...(withCredentials ? { withCredentials } : {}),
4366
2955
  headers: localVarHeaders,
4367
2956
  observe: observe,
4368
2957
  transferCache: localVarTransferCache,
@@ -4371,25 +2960,14 @@ class UserService {
4371
2960
  }
4372
2961
  getUserInfo(observe = 'body', reportProgress = false, options) {
4373
2962
  let localVarHeaders = this.defaultHeaders;
4374
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4375
- if (localVarHttpHeaderAcceptSelected === undefined) {
4376
- // to determine the Accept header
4377
- const httpHeaderAccepts = [
4378
- 'application/json'
4379
- ];
4380
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4381
- }
2963
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2964
+ 'application/json'
2965
+ ]);
4382
2966
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4383
2967
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4384
2968
  }
4385
- let localVarHttpContext = options && options.context;
4386
- if (localVarHttpContext === undefined) {
4387
- localVarHttpContext = new HttpContext();
4388
- }
4389
- let localVarTransferCache = options && options.transferCache;
4390
- if (localVarTransferCache === undefined) {
4391
- localVarTransferCache = true;
4392
- }
2969
+ const localVarHttpContext = options?.context ?? new HttpContext();
2970
+ const localVarTransferCache = options?.transferCache ?? true;
4393
2971
  let responseType_ = 'json';
4394
2972
  if (localVarHttpHeaderAcceptSelected) {
4395
2973
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -4403,10 +2981,11 @@ class UserService {
4403
2981
  }
4404
2982
  }
4405
2983
  let localVarPath = `/user/me`;
4406
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2984
+ const { basePath, withCredentials } = this.configuration;
2985
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
4407
2986
  context: localVarHttpContext,
4408
2987
  responseType: responseType_,
4409
- withCredentials: this.configuration.withCredentials,
2988
+ ...(withCredentials ? { withCredentials } : {}),
4410
2989
  headers: localVarHeaders,
4411
2990
  observe: observe,
4412
2991
  transferCache: localVarTransferCache,
@@ -4415,25 +2994,14 @@ class UserService {
4415
2994
  }
4416
2995
  setNewFeaturesVisibility(setNewFeaturesVisibilityCommand, observe = 'body', reportProgress = false, options) {
4417
2996
  let localVarHeaders = this.defaultHeaders;
4418
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4419
- if (localVarHttpHeaderAcceptSelected === undefined) {
4420
- // to determine the Accept header
4421
- const httpHeaderAccepts = [
4422
- 'application/json'
4423
- ];
4424
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4425
- }
2997
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2998
+ 'application/json'
2999
+ ]);
4426
3000
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4427
3001
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4428
3002
  }
4429
- let localVarHttpContext = options && options.context;
4430
- if (localVarHttpContext === undefined) {
4431
- localVarHttpContext = new HttpContext();
4432
- }
4433
- let localVarTransferCache = options && options.transferCache;
4434
- if (localVarTransferCache === undefined) {
4435
- localVarTransferCache = true;
4436
- }
3003
+ const localVarHttpContext = options?.context ?? new HttpContext();
3004
+ const localVarTransferCache = options?.transferCache ?? true;
4437
3005
  // to determine the Content-Type header
4438
3006
  const consumes = [
4439
3007
  'application/json'
@@ -4455,21 +3023,22 @@ class UserService {
4455
3023
  }
4456
3024
  }
4457
3025
  let localVarPath = `/user/me/settings/newfeaturevisibility`;
4458
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3026
+ const { basePath, withCredentials } = this.configuration;
3027
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
4459
3028
  context: localVarHttpContext,
4460
3029
  body: setNewFeaturesVisibilityCommand,
4461
3030
  responseType: responseType_,
4462
- withCredentials: this.configuration.withCredentials,
3031
+ ...(withCredentials ? { withCredentials } : {}),
4463
3032
  headers: localVarHeaders,
4464
3033
  observe: observe,
4465
3034
  transferCache: localVarTransferCache,
4466
3035
  reportProgress: reportProgress
4467
3036
  });
4468
3037
  }
4469
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4470
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserService, providedIn: 'root' });
3038
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3039
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
4471
3040
  }
4472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserService, decorators: [{
3041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, decorators: [{
4473
3042
  type: Injectable,
4474
3043
  args: [{
4475
3044
  providedIn: 'root'
@@ -4775,6 +3344,10 @@ const EntityState = {
4775
3344
  * https://openapi-generator.tech
4776
3345
  * Do not edit the class manually.
4777
3346
  */
3347
+ const JourneySegmentType = {
3348
+ Mother: 'Mother',
3349
+ Feeder: 'Feeder'
3350
+ };
4778
3351
 
4779
3352
  /**
4780
3353
  * Dcm.API.Client
@@ -4785,10 +3358,6 @@ const EntityState = {
4785
3358
  * https://openapi-generator.tech
4786
3359
  * Do not edit the class manually.
4787
3360
  */
4788
- const JourneySegmentType = {
4789
- Mother: 'Mother',
4790
- Feeder: 'Feeder'
4791
- };
4792
3361
 
4793
3362
  /**
4794
3363
  * Dcm.API.Client
@@ -5256,11 +3825,11 @@ class ApiModule {
5256
3825
  'See also https://github.com/angular/angular/issues/20575');
5257
3826
  }
5258
3827
  }
5259
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
5260
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: ApiModule });
5261
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ApiModule });
3828
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
3829
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
3830
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
5262
3831
  }
5263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ApiModule, decorators: [{
3832
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, decorators: [{
5264
3833
  type: NgModule,
5265
3834
  args: [{
5266
3835
  imports: [],
@@ -5276,9 +3845,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
5276
3845
  type: Optional
5277
3846
  }] }] });
5278
3847
 
3848
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
3849
+ function provideApi(configOrBasePath) {
3850
+ return makeEnvironmentProviders([
3851
+ typeof configOrBasePath === "string"
3852
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
3853
+ : {
3854
+ provide: Configuration,
3855
+ useValue: new Configuration({ ...configOrBasePath }),
3856
+ },
3857
+ ]);
3858
+ }
3859
+
5279
3860
  /**
5280
3861
  * Generated bundle index. Do not edit.
5281
3862
  */
5282
3863
 
5283
- export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts };
3864
+ export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts, provideApi };
5284
3865
  //# sourceMappingURL=indigina-dcm-api.mjs.map