@indigina/dcm-api 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/api.d.ts +3 -1
- package/api/bookings.service.d.ts +157 -0
- package/api/shipments.service.d.ts +40 -0
- package/esm2022/api/api.mjs +4 -2
- package/esm2022/api/bookings.service.mjs +406 -0
- package/esm2022/api/shipments.service.mjs +89 -1
- package/esm2022/model/bookingsCount.mjs +12 -0
- package/esm2022/model/models.mjs +2 -1
- package/fesm2022/indigina-dcm-api.mjs +498 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/bookingsCount.d.ts +13 -0
- package/model/models.d.ts +1 -0
- package/package.json +1 -1
|
@@ -151,6 +151,403 @@ class Configuration {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Dcm.API.Client
|
|
156
|
+
* DCM API Client for Angular applications
|
|
157
|
+
*
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
161
|
+
* https://openapi-generator.tech
|
|
162
|
+
* Do not edit the class manually.
|
|
163
|
+
*/
|
|
164
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
165
|
+
class BookingsService {
|
|
166
|
+
httpClient;
|
|
167
|
+
basePath = 'http://localhost';
|
|
168
|
+
defaultHeaders = new HttpHeaders();
|
|
169
|
+
configuration = new Configuration();
|
|
170
|
+
encoder;
|
|
171
|
+
constructor(httpClient, basePath, configuration) {
|
|
172
|
+
this.httpClient = httpClient;
|
|
173
|
+
if (configuration) {
|
|
174
|
+
this.configuration = configuration;
|
|
175
|
+
}
|
|
176
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
177
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
178
|
+
if (firstBasePath != undefined) {
|
|
179
|
+
basePath = firstBasePath;
|
|
180
|
+
}
|
|
181
|
+
if (typeof basePath !== 'string') {
|
|
182
|
+
basePath = this.basePath;
|
|
183
|
+
}
|
|
184
|
+
this.configuration.basePath = basePath;
|
|
185
|
+
}
|
|
186
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
187
|
+
}
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
addToHttpParams(httpParams, value, key) {
|
|
190
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
191
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
195
|
+
}
|
|
196
|
+
return httpParams;
|
|
197
|
+
}
|
|
198
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
199
|
+
if (value == null) {
|
|
200
|
+
return httpParams;
|
|
201
|
+
}
|
|
202
|
+
if (typeof value === "object") {
|
|
203
|
+
if (Array.isArray(value)) {
|
|
204
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
205
|
+
}
|
|
206
|
+
else if (value instanceof Date) {
|
|
207
|
+
if (key != null) {
|
|
208
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
throw Error("key may not be null if value is Date");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else if (key != null) {
|
|
219
|
+
httpParams = httpParams.append(key, value);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
throw Error("key may not be null if value is not object or array");
|
|
223
|
+
}
|
|
224
|
+
return httpParams;
|
|
225
|
+
}
|
|
226
|
+
getDeliveriesRequireAmendConfirmationCount(observe = 'body', reportProgress = false, options) {
|
|
227
|
+
let localVarHeaders = this.defaultHeaders;
|
|
228
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
229
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
230
|
+
// to determine the Accept header
|
|
231
|
+
const httpHeaderAccepts = [
|
|
232
|
+
'application/json'
|
|
233
|
+
];
|
|
234
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
235
|
+
}
|
|
236
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
237
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
238
|
+
}
|
|
239
|
+
let localVarHttpContext = options && options.context;
|
|
240
|
+
if (localVarHttpContext === undefined) {
|
|
241
|
+
localVarHttpContext = new HttpContext();
|
|
242
|
+
}
|
|
243
|
+
let localVarTransferCache = options && options.transferCache;
|
|
244
|
+
if (localVarTransferCache === undefined) {
|
|
245
|
+
localVarTransferCache = true;
|
|
246
|
+
}
|
|
247
|
+
let responseType_ = 'json';
|
|
248
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
250
|
+
responseType_ = 'text';
|
|
251
|
+
}
|
|
252
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
253
|
+
responseType_ = 'json';
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
responseType_ = 'blob';
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
let localVarPath = `/bookings/deliveriesRequireAmendConfirmation/count`;
|
|
260
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
261
|
+
context: localVarHttpContext,
|
|
262
|
+
responseType: responseType_,
|
|
263
|
+
withCredentials: this.configuration.withCredentials,
|
|
264
|
+
headers: localVarHeaders,
|
|
265
|
+
observe: observe,
|
|
266
|
+
transferCache: localVarTransferCache,
|
|
267
|
+
reportProgress: reportProgress
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
getDeliveriesRequireCancelConfirmationCount(observe = 'body', reportProgress = false, options) {
|
|
271
|
+
let localVarHeaders = this.defaultHeaders;
|
|
272
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
273
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
274
|
+
// to determine the Accept header
|
|
275
|
+
const httpHeaderAccepts = [
|
|
276
|
+
'application/json'
|
|
277
|
+
];
|
|
278
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
279
|
+
}
|
|
280
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
281
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
282
|
+
}
|
|
283
|
+
let localVarHttpContext = options && options.context;
|
|
284
|
+
if (localVarHttpContext === undefined) {
|
|
285
|
+
localVarHttpContext = new HttpContext();
|
|
286
|
+
}
|
|
287
|
+
let localVarTransferCache = options && options.transferCache;
|
|
288
|
+
if (localVarTransferCache === undefined) {
|
|
289
|
+
localVarTransferCache = true;
|
|
290
|
+
}
|
|
291
|
+
let responseType_ = 'json';
|
|
292
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
293
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
294
|
+
responseType_ = 'text';
|
|
295
|
+
}
|
|
296
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
297
|
+
responseType_ = 'json';
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
responseType_ = 'blob';
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
let localVarPath = `/bookings/deliveriesRequireCancelConfirmation/count`;
|
|
304
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
305
|
+
context: localVarHttpContext,
|
|
306
|
+
responseType: responseType_,
|
|
307
|
+
withCredentials: this.configuration.withCredentials,
|
|
308
|
+
headers: localVarHeaders,
|
|
309
|
+
observe: observe,
|
|
310
|
+
transferCache: localVarTransferCache,
|
|
311
|
+
reportProgress: reportProgress
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
getDeliveriesRequireConfirmationCount(observe = 'body', reportProgress = false, options) {
|
|
315
|
+
let localVarHeaders = this.defaultHeaders;
|
|
316
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
317
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
318
|
+
// to determine the Accept header
|
|
319
|
+
const httpHeaderAccepts = [
|
|
320
|
+
'application/json'
|
|
321
|
+
];
|
|
322
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
323
|
+
}
|
|
324
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
325
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
326
|
+
}
|
|
327
|
+
let localVarHttpContext = options && options.context;
|
|
328
|
+
if (localVarHttpContext === undefined) {
|
|
329
|
+
localVarHttpContext = new HttpContext();
|
|
330
|
+
}
|
|
331
|
+
let localVarTransferCache = options && options.transferCache;
|
|
332
|
+
if (localVarTransferCache === undefined) {
|
|
333
|
+
localVarTransferCache = true;
|
|
334
|
+
}
|
|
335
|
+
let responseType_ = 'json';
|
|
336
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
337
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
338
|
+
responseType_ = 'text';
|
|
339
|
+
}
|
|
340
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
341
|
+
responseType_ = 'json';
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
responseType_ = 'blob';
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
let localVarPath = `/bookings/deliveriesRequireConfirmation/count`;
|
|
348
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
349
|
+
context: localVarHttpContext,
|
|
350
|
+
responseType: responseType_,
|
|
351
|
+
withCredentials: this.configuration.withCredentials,
|
|
352
|
+
headers: localVarHeaders,
|
|
353
|
+
observe: observe,
|
|
354
|
+
transferCache: localVarTransferCache,
|
|
355
|
+
reportProgress: reportProgress
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
getDeliveriesToBookCount(observe = 'body', reportProgress = false, options) {
|
|
359
|
+
let localVarHeaders = this.defaultHeaders;
|
|
360
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
361
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
362
|
+
// to determine the Accept header
|
|
363
|
+
const httpHeaderAccepts = [
|
|
364
|
+
'application/json'
|
|
365
|
+
];
|
|
366
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
367
|
+
}
|
|
368
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
369
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
370
|
+
}
|
|
371
|
+
let localVarHttpContext = options && options.context;
|
|
372
|
+
if (localVarHttpContext === undefined) {
|
|
373
|
+
localVarHttpContext = new HttpContext();
|
|
374
|
+
}
|
|
375
|
+
let localVarTransferCache = options && options.transferCache;
|
|
376
|
+
if (localVarTransferCache === undefined) {
|
|
377
|
+
localVarTransferCache = true;
|
|
378
|
+
}
|
|
379
|
+
let responseType_ = 'json';
|
|
380
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
381
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
382
|
+
responseType_ = 'text';
|
|
383
|
+
}
|
|
384
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
385
|
+
responseType_ = 'json';
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
responseType_ = 'blob';
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
let localVarPath = `/bookings/deliveriesToBook/count`;
|
|
392
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
393
|
+
context: localVarHttpContext,
|
|
394
|
+
responseType: responseType_,
|
|
395
|
+
withCredentials: this.configuration.withCredentials,
|
|
396
|
+
headers: localVarHeaders,
|
|
397
|
+
observe: observe,
|
|
398
|
+
transferCache: localVarTransferCache,
|
|
399
|
+
reportProgress: reportProgress
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
getDeliveriesToRescheduleCount(observe = 'body', reportProgress = false, options) {
|
|
403
|
+
let localVarHeaders = this.defaultHeaders;
|
|
404
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
405
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
406
|
+
// to determine the Accept header
|
|
407
|
+
const httpHeaderAccepts = [
|
|
408
|
+
'application/json'
|
|
409
|
+
];
|
|
410
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
411
|
+
}
|
|
412
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
413
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
414
|
+
}
|
|
415
|
+
let localVarHttpContext = options && options.context;
|
|
416
|
+
if (localVarHttpContext === undefined) {
|
|
417
|
+
localVarHttpContext = new HttpContext();
|
|
418
|
+
}
|
|
419
|
+
let localVarTransferCache = options && options.transferCache;
|
|
420
|
+
if (localVarTransferCache === undefined) {
|
|
421
|
+
localVarTransferCache = true;
|
|
422
|
+
}
|
|
423
|
+
let responseType_ = 'json';
|
|
424
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
425
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
426
|
+
responseType_ = 'text';
|
|
427
|
+
}
|
|
428
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
429
|
+
responseType_ = 'json';
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
responseType_ = 'blob';
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
let localVarPath = `/bookings/deliveriesToReschedule/count`;
|
|
436
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
437
|
+
context: localVarHttpContext,
|
|
438
|
+
responseType: responseType_,
|
|
439
|
+
withCredentials: this.configuration.withCredentials,
|
|
440
|
+
headers: localVarHeaders,
|
|
441
|
+
observe: observe,
|
|
442
|
+
transferCache: localVarTransferCache,
|
|
443
|
+
reportProgress: reportProgress
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
getPlannedDeliveriesAndPodCount(observe = 'body', reportProgress = false, options) {
|
|
447
|
+
let localVarHeaders = this.defaultHeaders;
|
|
448
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
449
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
450
|
+
// to determine the Accept header
|
|
451
|
+
const httpHeaderAccepts = [
|
|
452
|
+
'application/json'
|
|
453
|
+
];
|
|
454
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
455
|
+
}
|
|
456
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
457
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
458
|
+
}
|
|
459
|
+
let localVarHttpContext = options && options.context;
|
|
460
|
+
if (localVarHttpContext === undefined) {
|
|
461
|
+
localVarHttpContext = new HttpContext();
|
|
462
|
+
}
|
|
463
|
+
let localVarTransferCache = options && options.transferCache;
|
|
464
|
+
if (localVarTransferCache === undefined) {
|
|
465
|
+
localVarTransferCache = true;
|
|
466
|
+
}
|
|
467
|
+
let responseType_ = 'json';
|
|
468
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
469
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
470
|
+
responseType_ = 'text';
|
|
471
|
+
}
|
|
472
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
473
|
+
responseType_ = 'json';
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
responseType_ = 'blob';
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
let localVarPath = `/bookings/plannedDeliveriesAndPod/count`;
|
|
480
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
481
|
+
context: localVarHttpContext,
|
|
482
|
+
responseType: responseType_,
|
|
483
|
+
withCredentials: this.configuration.withCredentials,
|
|
484
|
+
headers: localVarHeaders,
|
|
485
|
+
observe: observe,
|
|
486
|
+
transferCache: localVarTransferCache,
|
|
487
|
+
reportProgress: reportProgress
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
|
|
491
|
+
let localVarHeaders = this.defaultHeaders;
|
|
492
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
493
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
494
|
+
// to determine the Accept header
|
|
495
|
+
const httpHeaderAccepts = [
|
|
496
|
+
'application/json'
|
|
497
|
+
];
|
|
498
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
499
|
+
}
|
|
500
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
501
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
502
|
+
}
|
|
503
|
+
let localVarHttpContext = options && options.context;
|
|
504
|
+
if (localVarHttpContext === undefined) {
|
|
505
|
+
localVarHttpContext = new HttpContext();
|
|
506
|
+
}
|
|
507
|
+
let localVarTransferCache = options && options.transferCache;
|
|
508
|
+
if (localVarTransferCache === undefined) {
|
|
509
|
+
localVarTransferCache = true;
|
|
510
|
+
}
|
|
511
|
+
let responseType_ = 'json';
|
|
512
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
513
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
514
|
+
responseType_ = 'text';
|
|
515
|
+
}
|
|
516
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
517
|
+
responseType_ = 'json';
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
responseType_ = 'blob';
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
let localVarPath = `/bookings/vendorDrafts/count`;
|
|
524
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
525
|
+
context: localVarHttpContext,
|
|
526
|
+
responseType: responseType_,
|
|
527
|
+
withCredentials: this.configuration.withCredentials,
|
|
528
|
+
headers: localVarHeaders,
|
|
529
|
+
observe: observe,
|
|
530
|
+
transferCache: localVarTransferCache,
|
|
531
|
+
reportProgress: reportProgress
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BookingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
535
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BookingsService, providedIn: 'root' });
|
|
536
|
+
}
|
|
537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BookingsService, decorators: [{
|
|
538
|
+
type: Injectable,
|
|
539
|
+
args: [{
|
|
540
|
+
providedIn: 'root'
|
|
541
|
+
}]
|
|
542
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
543
|
+
type: Optional
|
|
544
|
+
}, {
|
|
545
|
+
type: Inject,
|
|
546
|
+
args: [BASE_PATH]
|
|
547
|
+
}] }, { type: Configuration, decorators: [{
|
|
548
|
+
type: Optional
|
|
549
|
+
}] }] });
|
|
550
|
+
|
|
154
551
|
/**
|
|
155
552
|
* Dcm.API.Client
|
|
156
553
|
* DCM API Client for Angular applications
|
|
@@ -1043,6 +1440,94 @@ class ShipmentsService {
|
|
|
1043
1440
|
reportProgress: reportProgress
|
|
1044
1441
|
});
|
|
1045
1442
|
}
|
|
1443
|
+
getShipmentsPendingDocuments(observe = 'body', reportProgress = false, options) {
|
|
1444
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1445
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1446
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1447
|
+
// to determine the Accept header
|
|
1448
|
+
const httpHeaderAccepts = [
|
|
1449
|
+
'application/json'
|
|
1450
|
+
];
|
|
1451
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1452
|
+
}
|
|
1453
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1454
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1455
|
+
}
|
|
1456
|
+
let localVarHttpContext = options && options.context;
|
|
1457
|
+
if (localVarHttpContext === undefined) {
|
|
1458
|
+
localVarHttpContext = new HttpContext();
|
|
1459
|
+
}
|
|
1460
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1461
|
+
if (localVarTransferCache === undefined) {
|
|
1462
|
+
localVarTransferCache = true;
|
|
1463
|
+
}
|
|
1464
|
+
let responseType_ = 'json';
|
|
1465
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1466
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1467
|
+
responseType_ = 'text';
|
|
1468
|
+
}
|
|
1469
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1470
|
+
responseType_ = 'json';
|
|
1471
|
+
}
|
|
1472
|
+
else {
|
|
1473
|
+
responseType_ = 'blob';
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
let localVarPath = `/shipments/vendorPendingDocuments/count`;
|
|
1477
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1478
|
+
context: localVarHttpContext,
|
|
1479
|
+
responseType: responseType_,
|
|
1480
|
+
withCredentials: this.configuration.withCredentials,
|
|
1481
|
+
headers: localVarHeaders,
|
|
1482
|
+
observe: observe,
|
|
1483
|
+
transferCache: localVarTransferCache,
|
|
1484
|
+
reportProgress: reportProgress
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
getShipmentsPendingInstructions(observe = 'body', reportProgress = false, options) {
|
|
1488
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1489
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1490
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1491
|
+
// to determine the Accept header
|
|
1492
|
+
const httpHeaderAccepts = [
|
|
1493
|
+
'application/json'
|
|
1494
|
+
];
|
|
1495
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1496
|
+
}
|
|
1497
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1498
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1499
|
+
}
|
|
1500
|
+
let localVarHttpContext = options && options.context;
|
|
1501
|
+
if (localVarHttpContext === undefined) {
|
|
1502
|
+
localVarHttpContext = new HttpContext();
|
|
1503
|
+
}
|
|
1504
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1505
|
+
if (localVarTransferCache === undefined) {
|
|
1506
|
+
localVarTransferCache = true;
|
|
1507
|
+
}
|
|
1508
|
+
let responseType_ = 'json';
|
|
1509
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1510
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1511
|
+
responseType_ = 'text';
|
|
1512
|
+
}
|
|
1513
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1514
|
+
responseType_ = 'json';
|
|
1515
|
+
}
|
|
1516
|
+
else {
|
|
1517
|
+
responseType_ = 'blob';
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
let localVarPath = `/shipments/vendorPendingInstructions/count`;
|
|
1521
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1522
|
+
context: localVarHttpContext,
|
|
1523
|
+
responseType: responseType_,
|
|
1524
|
+
withCredentials: this.configuration.withCredentials,
|
|
1525
|
+
headers: localVarHeaders,
|
|
1526
|
+
observe: observe,
|
|
1527
|
+
transferCache: localVarTransferCache,
|
|
1528
|
+
reportProgress: reportProgress
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1046
1531
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1047
1532
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
|
|
1048
1533
|
}
|
|
@@ -1334,7 +1819,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1334
1819
|
type: Optional
|
|
1335
1820
|
}] }] });
|
|
1336
1821
|
|
|
1337
|
-
const APIS = [ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
1822
|
+
const APIS = [BookingsService, ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Dcm.API.Client
|
|
1826
|
+
* DCM API Client for Angular applications
|
|
1827
|
+
*
|
|
1828
|
+
*
|
|
1829
|
+
*
|
|
1830
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1831
|
+
* https://openapi-generator.tech
|
|
1832
|
+
* Do not edit the class manually.
|
|
1833
|
+
*/
|
|
1338
1834
|
|
|
1339
1835
|
/**
|
|
1340
1836
|
* Dcm.API.Client
|
|
@@ -1642,5 +2138,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1642
2138
|
* Generated bundle index. Do not edit.
|
|
1643
2139
|
*/
|
|
1644
2140
|
|
|
1645
|
-
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
|
|
2141
|
+
export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
|
|
1646
2142
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|