@indigina/dcm-api 0.0.50 → 0.0.52

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.
@@ -509,6 +509,192 @@ class ContainersService {
509
509
  }
510
510
  return httpParams;
511
511
  }
512
+ getContainerItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
513
+ if (id === null || id === undefined) {
514
+ throw new Error('Required parameter id was null or undefined when calling getContainerItems.');
515
+ }
516
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
517
+ if ($skip !== undefined && $skip !== null) {
518
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
519
+ }
520
+ if ($top !== undefined && $top !== null) {
521
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
522
+ }
523
+ if ($orderby !== undefined && $orderby !== null) {
524
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
525
+ }
526
+ if ($filter !== undefined && $filter !== null) {
527
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
528
+ }
529
+ if ($search !== undefined && $search !== null) {
530
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
531
+ }
532
+ let localVarHeaders = this.defaultHeaders;
533
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
534
+ if (localVarHttpHeaderAcceptSelected === undefined) {
535
+ // to determine the Accept header
536
+ const httpHeaderAccepts = [
537
+ 'application/json'
538
+ ];
539
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
540
+ }
541
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
542
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
543
+ }
544
+ let localVarHttpContext = options && options.context;
545
+ if (localVarHttpContext === undefined) {
546
+ localVarHttpContext = new HttpContext();
547
+ }
548
+ let localVarTransferCache = options && options.transferCache;
549
+ if (localVarTransferCache === undefined) {
550
+ localVarTransferCache = true;
551
+ }
552
+ let responseType_ = 'json';
553
+ if (localVarHttpHeaderAcceptSelected) {
554
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
555
+ responseType_ = 'text';
556
+ }
557
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
558
+ responseType_ = 'json';
559
+ }
560
+ else {
561
+ responseType_ = 'blob';
562
+ }
563
+ }
564
+ let localVarPath = `/containers/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
565
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
566
+ context: localVarHttpContext,
567
+ params: localVarQueryParameters,
568
+ responseType: responseType_,
569
+ withCredentials: this.configuration.withCredentials,
570
+ headers: localVarHeaders,
571
+ observe: observe,
572
+ transferCache: localVarTransferCache,
573
+ reportProgress: reportProgress
574
+ });
575
+ }
576
+ getContainers($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
577
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
578
+ if ($skip !== undefined && $skip !== null) {
579
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
580
+ }
581
+ if ($top !== undefined && $top !== null) {
582
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
583
+ }
584
+ if ($orderby !== undefined && $orderby !== null) {
585
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
586
+ }
587
+ if ($filter !== undefined && $filter !== null) {
588
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
589
+ }
590
+ if ($search !== undefined && $search !== null) {
591
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
592
+ }
593
+ let localVarHeaders = this.defaultHeaders;
594
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
595
+ if (localVarHttpHeaderAcceptSelected === undefined) {
596
+ // to determine the Accept header
597
+ const httpHeaderAccepts = [
598
+ 'application/json'
599
+ ];
600
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
601
+ }
602
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
603
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
604
+ }
605
+ let localVarHttpContext = options && options.context;
606
+ if (localVarHttpContext === undefined) {
607
+ localVarHttpContext = new HttpContext();
608
+ }
609
+ let localVarTransferCache = options && options.transferCache;
610
+ if (localVarTransferCache === undefined) {
611
+ localVarTransferCache = true;
612
+ }
613
+ let responseType_ = 'json';
614
+ if (localVarHttpHeaderAcceptSelected) {
615
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
616
+ responseType_ = 'text';
617
+ }
618
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
619
+ responseType_ = 'json';
620
+ }
621
+ else {
622
+ responseType_ = 'blob';
623
+ }
624
+ }
625
+ let localVarPath = `/containers`;
626
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
627
+ context: localVarHttpContext,
628
+ params: localVarQueryParameters,
629
+ responseType: responseType_,
630
+ withCredentials: this.configuration.withCredentials,
631
+ headers: localVarHeaders,
632
+ observe: observe,
633
+ transferCache: localVarTransferCache,
634
+ reportProgress: reportProgress
635
+ });
636
+ }
637
+ getContainersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
638
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
639
+ if ($skip !== undefined && $skip !== null) {
640
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
641
+ }
642
+ if ($top !== undefined && $top !== null) {
643
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
644
+ }
645
+ if ($orderby !== undefined && $orderby !== null) {
646
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
647
+ }
648
+ if ($filter !== undefined && $filter !== null) {
649
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
650
+ }
651
+ if (searchTerm !== undefined && searchTerm !== null) {
652
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
653
+ }
654
+ let localVarHeaders = this.defaultHeaders;
655
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
656
+ if (localVarHttpHeaderAcceptSelected === undefined) {
657
+ // to determine the Accept header
658
+ const httpHeaderAccepts = [
659
+ 'application/json'
660
+ ];
661
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
662
+ }
663
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
664
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
665
+ }
666
+ let localVarHttpContext = options && options.context;
667
+ if (localVarHttpContext === undefined) {
668
+ localVarHttpContext = new HttpContext();
669
+ }
670
+ let localVarTransferCache = options && options.transferCache;
671
+ if (localVarTransferCache === undefined) {
672
+ localVarTransferCache = true;
673
+ }
674
+ let responseType_ = 'json';
675
+ if (localVarHttpHeaderAcceptSelected) {
676
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
677
+ responseType_ = 'text';
678
+ }
679
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
680
+ responseType_ = 'json';
681
+ }
682
+ else {
683
+ responseType_ = 'blob';
684
+ }
685
+ }
686
+ let localVarPath = `/containers/search`;
687
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
688
+ context: localVarHttpContext,
689
+ params: localVarQueryParameters,
690
+ responseType: responseType_,
691
+ withCredentials: this.configuration.withCredentials,
692
+ headers: localVarHeaders,
693
+ observe: observe,
694
+ transferCache: localVarTransferCache,
695
+ reportProgress: reportProgress
696
+ });
697
+ }
512
698
  getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
513
699
  let localVarHeaders = this.defaultHeaders;
514
700
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -1327,12 +1513,145 @@ class NotesService {
1327
1513
  if ($orderby !== undefined && $orderby !== null) {
1328
1514
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1329
1515
  }
1330
- if ($filter !== undefined && $filter !== null) {
1331
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1516
+ if ($filter !== undefined && $filter !== null) {
1517
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1518
+ }
1519
+ if ($search !== undefined && $search !== null) {
1520
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1521
+ }
1522
+ let localVarHeaders = this.defaultHeaders;
1523
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1524
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1525
+ // to determine the Accept header
1526
+ const httpHeaderAccepts = [
1527
+ 'application/json'
1528
+ ];
1529
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1530
+ }
1531
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1532
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1533
+ }
1534
+ let localVarHttpContext = options && options.context;
1535
+ if (localVarHttpContext === undefined) {
1536
+ localVarHttpContext = new HttpContext();
1537
+ }
1538
+ let localVarTransferCache = options && options.transferCache;
1539
+ if (localVarTransferCache === undefined) {
1540
+ localVarTransferCache = true;
1541
+ }
1542
+ let responseType_ = 'json';
1543
+ if (localVarHttpHeaderAcceptSelected) {
1544
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1545
+ responseType_ = 'text';
1546
+ }
1547
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1548
+ responseType_ = 'json';
1549
+ }
1550
+ else {
1551
+ responseType_ = 'blob';
1552
+ }
1553
+ }
1554
+ 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 })}`;
1555
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1556
+ context: localVarHttpContext,
1557
+ params: localVarQueryParameters,
1558
+ responseType: responseType_,
1559
+ withCredentials: this.configuration.withCredentials,
1560
+ headers: localVarHeaders,
1561
+ observe: observe,
1562
+ transferCache: localVarTransferCache,
1563
+ reportProgress: reportProgress
1564
+ });
1565
+ }
1566
+ 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 });
1567
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, providedIn: 'root' });
1568
+ }
1569
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, decorators: [{
1570
+ type: Injectable,
1571
+ args: [{
1572
+ providedIn: 'root'
1573
+ }]
1574
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1575
+ type: Optional
1576
+ }, {
1577
+ type: Inject,
1578
+ args: [BASE_PATH]
1579
+ }] }, { type: Configuration, decorators: [{
1580
+ type: Optional
1581
+ }] }] });
1582
+
1583
+ /**
1584
+ * Dcm.API.Client
1585
+ *
1586
+ *
1587
+ *
1588
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1589
+ * https://openapi-generator.tech
1590
+ * Do not edit the class manually.
1591
+ */
1592
+ /* tslint:disable:no-unused-variable member-ordering */
1593
+ class PermissionsService {
1594
+ httpClient;
1595
+ basePath = 'http://localhost';
1596
+ defaultHeaders = new HttpHeaders();
1597
+ configuration = new Configuration();
1598
+ encoder;
1599
+ constructor(httpClient, basePath, configuration) {
1600
+ this.httpClient = httpClient;
1601
+ if (configuration) {
1602
+ this.configuration = configuration;
1603
+ }
1604
+ if (typeof this.configuration.basePath !== 'string') {
1605
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1606
+ if (firstBasePath != undefined) {
1607
+ basePath = firstBasePath;
1608
+ }
1609
+ if (typeof basePath !== 'string') {
1610
+ basePath = this.basePath;
1611
+ }
1612
+ this.configuration.basePath = basePath;
1613
+ }
1614
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1615
+ }
1616
+ // @ts-ignore
1617
+ addToHttpParams(httpParams, value, key) {
1618
+ if (typeof value === "object" && value instanceof Date === false) {
1619
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1620
+ }
1621
+ else {
1622
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1623
+ }
1624
+ return httpParams;
1625
+ }
1626
+ addToHttpParamsRecursive(httpParams, value, key) {
1627
+ if (value == null) {
1628
+ return httpParams;
1629
+ }
1630
+ if (typeof value === "object") {
1631
+ if (Array.isArray(value)) {
1632
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1633
+ }
1634
+ else if (value instanceof Date) {
1635
+ if (key != null) {
1636
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1637
+ }
1638
+ else {
1639
+ throw Error("key may not be null if value is Date");
1640
+ }
1641
+ }
1642
+ else {
1643
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1644
+ }
1645
+ }
1646
+ else if (key != null) {
1647
+ httpParams = httpParams.append(key, value);
1332
1648
  }
1333
- if ($search !== undefined && $search !== null) {
1334
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1649
+ else {
1650
+ throw Error("key may not be null if value is not object or array");
1335
1651
  }
1652
+ return httpParams;
1653
+ }
1654
+ getUserPermissions(observe = 'body', reportProgress = false, options) {
1336
1655
  let localVarHeaders = this.defaultHeaders;
1337
1656
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1338
1657
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1365,10 +1684,9 @@ class NotesService {
1365
1684
  responseType_ = 'blob';
1366
1685
  }
1367
1686
  }
1368
- 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 })}`;
1687
+ let localVarPath = `/user/permissions`;
1369
1688
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1370
1689
  context: localVarHttpContext,
1371
- params: localVarQueryParameters,
1372
1690
  responseType: responseType_,
1373
1691
  withCredentials: this.configuration.withCredentials,
1374
1692
  headers: localVarHeaders,
@@ -1377,10 +1695,10 @@ class NotesService {
1377
1695
  reportProgress: reportProgress
1378
1696
  });
1379
1697
  }
1380
- 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 });
1381
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, providedIn: 'root' });
1698
+ 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 });
1699
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1382
1700
  }
1383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NotesService, decorators: [{
1701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, decorators: [{
1384
1702
  type: Injectable,
1385
1703
  args: [{
1386
1704
  providedIn: 'root'
@@ -1404,7 +1722,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1404
1722
  * Do not edit the class manually.
1405
1723
  */
1406
1724
  /* tslint:disable:no-unused-variable member-ordering */
1407
- class PermissionsService {
1725
+ class PoItemsService {
1408
1726
  httpClient;
1409
1727
  basePath = 'http://localhost';
1410
1728
  defaultHeaders = new HttpHeaders();
@@ -1465,7 +1783,10 @@ class PermissionsService {
1465
1783
  }
1466
1784
  return httpParams;
1467
1785
  }
1468
- getUserPermissions(observe = 'body', reportProgress = false, options) {
1786
+ getPoItemSummary(id, observe = 'body', reportProgress = false, options) {
1787
+ if (id === null || id === undefined) {
1788
+ throw new Error('Required parameter id was null or undefined when calling getPoItemSummary.');
1789
+ }
1469
1790
  let localVarHeaders = this.defaultHeaders;
1470
1791
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1471
1792
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1498,7 +1819,7 @@ class PermissionsService {
1498
1819
  responseType_ = 'blob';
1499
1820
  }
1500
1821
  }
1501
- let localVarPath = `/user/permissions`;
1822
+ let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
1502
1823
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1503
1824
  context: localVarHttpContext,
1504
1825
  responseType: responseType_,
@@ -1509,10 +1830,10 @@ class PermissionsService {
1509
1830
  reportProgress: reportProgress
1510
1831
  });
1511
1832
  }
1512
- 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 });
1513
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1833
+ 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 });
1834
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, providedIn: 'root' });
1514
1835
  }
1515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PermissionsService, decorators: [{
1836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, decorators: [{
1516
1837
  type: Injectable,
1517
1838
  args: [{
1518
1839
  providedIn: 'root'
@@ -1597,6 +1918,53 @@ class PurchaseOrdersService {
1597
1918
  }
1598
1919
  return httpParams;
1599
1920
  }
1921
+ getPoItemTotals(purchaseOrderId, observe = 'body', reportProgress = false, options) {
1922
+ if (purchaseOrderId === null || purchaseOrderId === undefined) {
1923
+ throw new Error('Required parameter purchaseOrderId was null or undefined when calling getPoItemTotals.');
1924
+ }
1925
+ let localVarHeaders = this.defaultHeaders;
1926
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1927
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1928
+ // to determine the Accept header
1929
+ const httpHeaderAccepts = [
1930
+ 'application/json'
1931
+ ];
1932
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1933
+ }
1934
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1935
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1936
+ }
1937
+ let localVarHttpContext = options && options.context;
1938
+ if (localVarHttpContext === undefined) {
1939
+ localVarHttpContext = new HttpContext();
1940
+ }
1941
+ let localVarTransferCache = options && options.transferCache;
1942
+ if (localVarTransferCache === undefined) {
1943
+ localVarTransferCache = true;
1944
+ }
1945
+ let responseType_ = 'json';
1946
+ if (localVarHttpHeaderAcceptSelected) {
1947
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1948
+ responseType_ = 'text';
1949
+ }
1950
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1951
+ responseType_ = 'json';
1952
+ }
1953
+ else {
1954
+ responseType_ = 'blob';
1955
+ }
1956
+ }
1957
+ let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/itemTotals`;
1958
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1959
+ context: localVarHttpContext,
1960
+ responseType: responseType_,
1961
+ withCredentials: this.configuration.withCredentials,
1962
+ headers: localVarHeaders,
1963
+ observe: observe,
1964
+ transferCache: localVarTransferCache,
1965
+ reportProgress: reportProgress
1966
+ });
1967
+ }
1600
1968
  getPurchaseOrderProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1601
1969
  if (id === null || id === undefined) {
1602
1970
  throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderProducts.');
@@ -3314,6 +3682,158 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3314
3682
  type: Optional
3315
3683
  }] }] });
3316
3684
 
3685
+ /**
3686
+ * Dcm.API.Client
3687
+ *
3688
+ *
3689
+ *
3690
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3691
+ * https://openapi-generator.tech
3692
+ * Do not edit the class manually.
3693
+ */
3694
+ /* tslint:disable:no-unused-variable member-ordering */
3695
+ class SipmetItemsService {
3696
+ httpClient;
3697
+ basePath = 'http://localhost';
3698
+ defaultHeaders = new HttpHeaders();
3699
+ configuration = new Configuration();
3700
+ encoder;
3701
+ constructor(httpClient, basePath, configuration) {
3702
+ this.httpClient = httpClient;
3703
+ if (configuration) {
3704
+ this.configuration = configuration;
3705
+ }
3706
+ if (typeof this.configuration.basePath !== 'string') {
3707
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
3708
+ if (firstBasePath != undefined) {
3709
+ basePath = firstBasePath;
3710
+ }
3711
+ if (typeof basePath !== 'string') {
3712
+ basePath = this.basePath;
3713
+ }
3714
+ this.configuration.basePath = basePath;
3715
+ }
3716
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
3717
+ }
3718
+ // @ts-ignore
3719
+ addToHttpParams(httpParams, value, key) {
3720
+ if (typeof value === "object" && value instanceof Date === false) {
3721
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
3722
+ }
3723
+ else {
3724
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
3725
+ }
3726
+ return httpParams;
3727
+ }
3728
+ addToHttpParamsRecursive(httpParams, value, key) {
3729
+ if (value == null) {
3730
+ return httpParams;
3731
+ }
3732
+ if (typeof value === "object") {
3733
+ if (Array.isArray(value)) {
3734
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
3735
+ }
3736
+ else if (value instanceof Date) {
3737
+ if (key != null) {
3738
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
3739
+ }
3740
+ else {
3741
+ throw Error("key may not be null if value is Date");
3742
+ }
3743
+ }
3744
+ else {
3745
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
3746
+ }
3747
+ }
3748
+ else if (key != null) {
3749
+ httpParams = httpParams.append(key, value);
3750
+ }
3751
+ else {
3752
+ throw Error("key may not be null if value is not object or array");
3753
+ }
3754
+ return httpParams;
3755
+ }
3756
+ getShipmentItemSummaries(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
3757
+ if (id === null || id === undefined) {
3758
+ throw new Error('Required parameter id was null or undefined when calling getShipmentItemSummaries.');
3759
+ }
3760
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3761
+ if ($skip !== undefined && $skip !== null) {
3762
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3763
+ }
3764
+ if ($top !== undefined && $top !== null) {
3765
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3766
+ }
3767
+ if ($orderby !== undefined && $orderby !== null) {
3768
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3769
+ }
3770
+ if ($filter !== undefined && $filter !== null) {
3771
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
3772
+ }
3773
+ if ($search !== undefined && $search !== null) {
3774
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
3775
+ }
3776
+ let localVarHeaders = this.defaultHeaders;
3777
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3778
+ if (localVarHttpHeaderAcceptSelected === undefined) {
3779
+ // to determine the Accept header
3780
+ const httpHeaderAccepts = [
3781
+ 'application/json'
3782
+ ];
3783
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3784
+ }
3785
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3786
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3787
+ }
3788
+ let localVarHttpContext = options && options.context;
3789
+ if (localVarHttpContext === undefined) {
3790
+ localVarHttpContext = new HttpContext();
3791
+ }
3792
+ let localVarTransferCache = options && options.transferCache;
3793
+ if (localVarTransferCache === undefined) {
3794
+ localVarTransferCache = true;
3795
+ }
3796
+ let responseType_ = 'json';
3797
+ if (localVarHttpHeaderAcceptSelected) {
3798
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3799
+ responseType_ = 'text';
3800
+ }
3801
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3802
+ responseType_ = 'json';
3803
+ }
3804
+ else {
3805
+ responseType_ = 'blob';
3806
+ }
3807
+ }
3808
+ let localVarPath = `/shipmentItems/summaries`;
3809
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3810
+ context: localVarHttpContext,
3811
+ params: localVarQueryParameters,
3812
+ responseType: responseType_,
3813
+ withCredentials: this.configuration.withCredentials,
3814
+ headers: localVarHeaders,
3815
+ observe: observe,
3816
+ transferCache: localVarTransferCache,
3817
+ reportProgress: reportProgress
3818
+ });
3819
+ }
3820
+ 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 });
3821
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, providedIn: 'root' });
3822
+ }
3823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, decorators: [{
3824
+ type: Injectable,
3825
+ args: [{
3826
+ providedIn: 'root'
3827
+ }]
3828
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3829
+ type: Optional
3830
+ }, {
3831
+ type: Inject,
3832
+ args: [BASE_PATH]
3833
+ }] }, { type: Configuration, decorators: [{
3834
+ type: Optional
3835
+ }] }] });
3836
+
3317
3837
  /**
3318
3838
  * Dcm.API.Client
3319
3839
  *
@@ -3631,7 +4151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3631
4151
  type: Optional
3632
4152
  }] }] });
3633
4153
 
3634
- const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, UserService];
4154
+ const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3635
4155
 
3636
4156
  /**
3637
4157
  * Dcm.API.Client
@@ -3729,6 +4249,16 @@ const ApprovalTypes = {
3729
4249
  * Do not edit the class manually.
3730
4250
  */
3731
4251
 
4252
+ /**
4253
+ * Dcm.API.Client
4254
+ *
4255
+ *
4256
+ *
4257
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4258
+ * https://openapi-generator.tech
4259
+ * Do not edit the class manually.
4260
+ */
4261
+
3732
4262
  /**
3733
4263
  * Dcm.API.Client
3734
4264
  *
@@ -3794,6 +4324,16 @@ const ContainerTypes = {
3794
4324
  * Do not edit the class manually.
3795
4325
  */
3796
4326
 
4327
+ /**
4328
+ * Dcm.API.Client
4329
+ *
4330
+ *
4331
+ *
4332
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4333
+ * https://openapi-generator.tech
4334
+ * Do not edit the class manually.
4335
+ */
4336
+
3797
4337
  /**
3798
4338
  * Dcm.API.Client
3799
4339
  *
@@ -3923,6 +4463,26 @@ const NoteSourceTypes = {
3923
4463
  * Do not edit the class manually.
3924
4464
  */
3925
4465
 
4466
+ /**
4467
+ * Dcm.API.Client
4468
+ *
4469
+ *
4470
+ *
4471
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4472
+ * https://openapi-generator.tech
4473
+ * Do not edit the class manually.
4474
+ */
4475
+
4476
+ /**
4477
+ * Dcm.API.Client
4478
+ *
4479
+ *
4480
+ *
4481
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4482
+ * https://openapi-generator.tech
4483
+ * Do not edit the class manually.
4484
+ */
4485
+
3926
4486
  /**
3927
4487
  * Dcm.API.Client
3928
4488
  *
@@ -4281,5 +4841,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
4281
4841
  * Generated bundle index. Do not edit.
4282
4842
  */
4283
4843
 
4284
- export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
4844
+ export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
4285
4845
  //# sourceMappingURL=indigina-dcm-api.mjs.map