@indigina/dcm-api 0.0.21 → 0.0.23

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.
@@ -223,7 +223,7 @@ class BookingsService {
223
223
  }
224
224
  return httpParams;
225
225
  }
226
- getDeliveriesRequireAmendConfirmationCount(observe = 'body', reportProgress = false, options) {
226
+ getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
227
227
  let localVarHeaders = this.defaultHeaders;
228
228
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
229
229
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -256,7 +256,7 @@ class BookingsService {
256
256
  responseType_ = 'blob';
257
257
  }
258
258
  }
259
- let localVarPath = `/bookings/deliveriesRequireAmendConfirmation/count`;
259
+ let localVarPath = `/bookings/vendorDrafts/count`;
260
260
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
261
261
  context: localVarHttpContext,
262
262
  responseType: responseType_,
@@ -267,7 +267,96 @@ class BookingsService {
267
267
  reportProgress: reportProgress
268
268
  });
269
269
  }
270
- getDeliveriesRequireCancelConfirmationCount(observe = 'body', reportProgress = false, options) {
270
+ 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 });
271
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BookingsService, providedIn: 'root' });
272
+ }
273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BookingsService, decorators: [{
274
+ type: Injectable,
275
+ args: [{
276
+ providedIn: 'root'
277
+ }]
278
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
279
+ type: Optional
280
+ }, {
281
+ type: Inject,
282
+ args: [BASE_PATH]
283
+ }] }, { type: Configuration, decorators: [{
284
+ type: Optional
285
+ }] }] });
286
+
287
+ /**
288
+ * Dcm.API.Client
289
+ * DCM API Client for Angular applications
290
+ *
291
+ *
292
+ *
293
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
294
+ * https://openapi-generator.tech
295
+ * Do not edit the class manually.
296
+ */
297
+ /* tslint:disable:no-unused-variable member-ordering */
298
+ class ContainersService {
299
+ httpClient;
300
+ basePath = 'http://localhost';
301
+ defaultHeaders = new HttpHeaders();
302
+ configuration = new Configuration();
303
+ encoder;
304
+ constructor(httpClient, basePath, configuration) {
305
+ this.httpClient = httpClient;
306
+ if (configuration) {
307
+ this.configuration = configuration;
308
+ }
309
+ if (typeof this.configuration.basePath !== 'string') {
310
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
311
+ if (firstBasePath != undefined) {
312
+ basePath = firstBasePath;
313
+ }
314
+ if (typeof basePath !== 'string') {
315
+ basePath = this.basePath;
316
+ }
317
+ this.configuration.basePath = basePath;
318
+ }
319
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
320
+ }
321
+ // @ts-ignore
322
+ addToHttpParams(httpParams, value, key) {
323
+ if (typeof value === "object" && value instanceof Date === false) {
324
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
325
+ }
326
+ else {
327
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
328
+ }
329
+ return httpParams;
330
+ }
331
+ addToHttpParamsRecursive(httpParams, value, key) {
332
+ if (value == null) {
333
+ return httpParams;
334
+ }
335
+ if (typeof value === "object") {
336
+ if (Array.isArray(value)) {
337
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
338
+ }
339
+ else if (value instanceof Date) {
340
+ if (key != null) {
341
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
342
+ }
343
+ else {
344
+ throw Error("key may not be null if value is Date");
345
+ }
346
+ }
347
+ else {
348
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
349
+ }
350
+ }
351
+ else if (key != null) {
352
+ httpParams = httpParams.append(key, value);
353
+ }
354
+ else {
355
+ throw Error("key may not be null if value is not object or array");
356
+ }
357
+ return httpParams;
358
+ }
359
+ getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
271
360
  let localVarHeaders = this.defaultHeaders;
272
361
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
273
362
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -300,7 +389,7 @@ class BookingsService {
300
389
  responseType_ = 'blob';
301
390
  }
302
391
  }
303
- let localVarPath = `/bookings/deliveriesRequireCancelConfirmation/count`;
392
+ let localVarPath = `/containers/todeliver/count`;
304
393
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
305
394
  context: localVarHttpContext,
306
395
  responseType: responseType_,
@@ -311,7 +400,7 @@ class BookingsService {
311
400
  reportProgress: reportProgress
312
401
  });
313
402
  }
314
- getDeliveriesRequireConfirmationCount(observe = 'body', reportProgress = false, options) {
403
+ getDeliveriesRequireAmendConfirmationCount(observe = 'body', reportProgress = false, options) {
315
404
  let localVarHeaders = this.defaultHeaders;
316
405
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
317
406
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -344,7 +433,7 @@ class BookingsService {
344
433
  responseType_ = 'blob';
345
434
  }
346
435
  }
347
- let localVarPath = `/bookings/deliveriesRequireConfirmation/count`;
436
+ let localVarPath = `/containers/deliveriesRequireAmendConfirmation/count`;
348
437
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
349
438
  context: localVarHttpContext,
350
439
  responseType: responseType_,
@@ -355,7 +444,7 @@ class BookingsService {
355
444
  reportProgress: reportProgress
356
445
  });
357
446
  }
358
- getDeliveriesToBookCount(observe = 'body', reportProgress = false, options) {
447
+ getDeliveriesRequireCancelConfirmationCount(observe = 'body', reportProgress = false, options) {
359
448
  let localVarHeaders = this.defaultHeaders;
360
449
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
361
450
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -388,7 +477,7 @@ class BookingsService {
388
477
  responseType_ = 'blob';
389
478
  }
390
479
  }
391
- let localVarPath = `/bookings/deliveriesToBook/count`;
480
+ let localVarPath = `/containers/deliveriesRequireCancelConfirmation/count`;
392
481
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
393
482
  context: localVarHttpContext,
394
483
  responseType: responseType_,
@@ -399,7 +488,7 @@ class BookingsService {
399
488
  reportProgress: reportProgress
400
489
  });
401
490
  }
402
- getDeliveriesToRescheduleCount(observe = 'body', reportProgress = false, options) {
491
+ getDeliveriesRequireConfirmationCount(observe = 'body', reportProgress = false, options) {
403
492
  let localVarHeaders = this.defaultHeaders;
404
493
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
405
494
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -432,7 +521,7 @@ class BookingsService {
432
521
  responseType_ = 'blob';
433
522
  }
434
523
  }
435
- let localVarPath = `/bookings/deliveriesToReschedule/count`;
524
+ let localVarPath = `/containers/deliveriesRequireConfirmation/count`;
436
525
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
437
526
  context: localVarHttpContext,
438
527
  responseType: responseType_,
@@ -443,7 +532,7 @@ class BookingsService {
443
532
  reportProgress: reportProgress
444
533
  });
445
534
  }
446
- getPlannedDeliveriesAndPodCount(observe = 'body', reportProgress = false, options) {
535
+ getDeliveriesToBookCount(observe = 'body', reportProgress = false, options) {
447
536
  let localVarHeaders = this.defaultHeaders;
448
537
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
449
538
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -476,7 +565,7 @@ class BookingsService {
476
565
  responseType_ = 'blob';
477
566
  }
478
567
  }
479
- let localVarPath = `/bookings/plannedDeliveriesAndPod/count`;
568
+ let localVarPath = `/containers/deliveriesToBook/count`;
480
569
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
481
570
  context: localVarHttpContext,
482
571
  responseType: responseType_,
@@ -487,7 +576,7 @@ class BookingsService {
487
576
  reportProgress: reportProgress
488
577
  });
489
578
  }
490
- getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
579
+ getDeliveriesToRescheduleCount(observe = 'body', reportProgress = false, options) {
491
580
  let localVarHeaders = this.defaultHeaders;
492
581
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
493
582
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -520,7 +609,7 @@ class BookingsService {
520
609
  responseType_ = 'blob';
521
610
  }
522
611
  }
523
- let localVarPath = `/bookings/vendorDrafts/count`;
612
+ let localVarPath = `/containers/deliveriesToReschedule/count`;
524
613
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
525
614
  context: localVarHttpContext,
526
615
  responseType: responseType_,
@@ -531,96 +620,7 @@ class BookingsService {
531
620
  reportProgress: reportProgress
532
621
  });
533
622
  }
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
-
551
- /**
552
- * Dcm.API.Client
553
- * DCM API Client for Angular applications
554
- *
555
- *
556
- *
557
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
558
- * https://openapi-generator.tech
559
- * Do not edit the class manually.
560
- */
561
- /* tslint:disable:no-unused-variable member-ordering */
562
- class ContainersService {
563
- httpClient;
564
- basePath = 'http://localhost';
565
- defaultHeaders = new HttpHeaders();
566
- configuration = new Configuration();
567
- encoder;
568
- constructor(httpClient, basePath, configuration) {
569
- this.httpClient = httpClient;
570
- if (configuration) {
571
- this.configuration = configuration;
572
- }
573
- if (typeof this.configuration.basePath !== 'string') {
574
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
575
- if (firstBasePath != undefined) {
576
- basePath = firstBasePath;
577
- }
578
- if (typeof basePath !== 'string') {
579
- basePath = this.basePath;
580
- }
581
- this.configuration.basePath = basePath;
582
- }
583
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
584
- }
585
- // @ts-ignore
586
- addToHttpParams(httpParams, value, key) {
587
- if (typeof value === "object" && value instanceof Date === false) {
588
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
589
- }
590
- else {
591
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
592
- }
593
- return httpParams;
594
- }
595
- addToHttpParamsRecursive(httpParams, value, key) {
596
- if (value == null) {
597
- return httpParams;
598
- }
599
- if (typeof value === "object") {
600
- if (Array.isArray(value)) {
601
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
602
- }
603
- else if (value instanceof Date) {
604
- if (key != null) {
605
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
606
- }
607
- else {
608
- throw Error("key may not be null if value is Date");
609
- }
610
- }
611
- else {
612
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
613
- }
614
- }
615
- else if (key != null) {
616
- httpParams = httpParams.append(key, value);
617
- }
618
- else {
619
- throw Error("key may not be null if value is not object or array");
620
- }
621
- return httpParams;
622
- }
623
- getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
623
+ getPlannedDeliveriesAndPodCount(observe = 'body', reportProgress = false, options) {
624
624
  let localVarHeaders = this.defaultHeaders;
625
625
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
626
626
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -653,7 +653,7 @@ class ContainersService {
653
653
  responseType_ = 'blob';
654
654
  }
655
655
  }
656
- let localVarPath = `/containers/todeliver/count`;
656
+ let localVarPath = `/containers/plannedDeliveriesAndPod/count`;
657
657
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
658
658
  context: localVarHttpContext,
659
659
  responseType: responseType_,
@@ -1705,6 +1705,50 @@ class UserService {
1705
1705
  reportProgress: reportProgress
1706
1706
  });
1707
1707
  }
1708
+ getUserApplicationList(observe = 'body', reportProgress = false, options) {
1709
+ let localVarHeaders = this.defaultHeaders;
1710
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1711
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1712
+ // to determine the Accept header
1713
+ const httpHeaderAccepts = [
1714
+ 'application/json'
1715
+ ];
1716
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1717
+ }
1718
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1719
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1720
+ }
1721
+ let localVarHttpContext = options && options.context;
1722
+ if (localVarHttpContext === undefined) {
1723
+ localVarHttpContext = new HttpContext();
1724
+ }
1725
+ let localVarTransferCache = options && options.transferCache;
1726
+ if (localVarTransferCache === undefined) {
1727
+ localVarTransferCache = true;
1728
+ }
1729
+ let responseType_ = 'json';
1730
+ if (localVarHttpHeaderAcceptSelected) {
1731
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1732
+ responseType_ = 'text';
1733
+ }
1734
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1735
+ responseType_ = 'json';
1736
+ }
1737
+ else {
1738
+ responseType_ = 'blob';
1739
+ }
1740
+ }
1741
+ let localVarPath = `/users/me/applications`;
1742
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1743
+ context: localVarHttpContext,
1744
+ responseType: responseType_,
1745
+ withCredentials: this.configuration.withCredentials,
1746
+ headers: localVarHeaders,
1747
+ observe: observe,
1748
+ transferCache: localVarTransferCache,
1749
+ reportProgress: reportProgress
1750
+ });
1751
+ }
1708
1752
  getUserInfo(observe = 'body', reportProgress = false, options) {
1709
1753
  let localVarHeaders = this.defaultHeaders;
1710
1754
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -1931,6 +1975,17 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
1931
1975
  * Do not edit the class manually.
1932
1976
  */
1933
1977
 
1978
+ /**
1979
+ * Dcm.API.Client
1980
+ * DCM API Client for Angular applications
1981
+ *
1982
+ *
1983
+ *
1984
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1985
+ * https://openapi-generator.tech
1986
+ * Do not edit the class manually.
1987
+ */
1988
+
1934
1989
  /**
1935
1990
  * Dcm.API.Client
1936
1991
  * DCM API Client for Angular applications
@@ -2098,6 +2153,17 @@ const ShipmentType = {
2098
2153
  * Do not edit the class manually.
2099
2154
  */
2100
2155
 
2156
+ /**
2157
+ * Dcm.API.Client
2158
+ * DCM API Client for Angular applications
2159
+ *
2160
+ *
2161
+ *
2162
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2163
+ * https://openapi-generator.tech
2164
+ * Do not edit the class manually.
2165
+ */
2166
+
2101
2167
  class ApiModule {
2102
2168
  static forRoot(configurationFactory) {
2103
2169
  return {