@indigina/dcm-api 0.0.9 → 0.0.11

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 (36) hide show
  1. package/README.md +2 -2
  2. package/api/shipments.service.d.ts +48 -0
  3. package/esm2022/api/shipments.service.mjs +110 -2
  4. package/esm2022/model/company.mjs +13 -0
  5. package/esm2022/model/country.mjs +13 -0
  6. package/esm2022/model/departmentShipment.mjs +13 -0
  7. package/esm2022/model/models.mjs +15 -1
  8. package/esm2022/model/port.mjs +2 -0
  9. package/esm2022/model/shipment.mjs +2 -0
  10. package/esm2022/model/shipmentApprovalType.mjs +16 -0
  11. package/esm2022/model/shipmentItem.mjs +13 -0
  12. package/esm2022/model/shipmentItemsList.mjs +2 -0
  13. package/esm2022/model/shipmentState.mjs +23 -0
  14. package/esm2022/model/shipmentType.mjs +17 -0
  15. package/esm2022/model/shipmentsList.mjs +2 -0
  16. package/esm2022/model/transportCarrier.mjs +13 -0
  17. package/esm2022/model/transportLocation.mjs +13 -0
  18. package/esm2022/model/user.mjs +13 -0
  19. package/fesm2022/indigina-dcm-api.mjs +250 -2
  20. package/fesm2022/indigina-dcm-api.mjs.map +1 -1
  21. package/model/company.d.ts +15 -0
  22. package/model/country.d.ts +15 -0
  23. package/model/departmentShipment.d.ts +16 -0
  24. package/model/models.d.ts +14 -0
  25. package/model/port.d.ts +18 -0
  26. package/model/shipment.d.ts +63 -0
  27. package/model/shipmentApprovalType.d.ts +16 -0
  28. package/model/shipmentItem.d.ts +24 -0
  29. package/model/shipmentItemsList.d.ts +16 -0
  30. package/model/shipmentState.d.ts +23 -0
  31. package/model/shipmentType.d.ts +17 -0
  32. package/model/shipmentsList.d.ts +16 -0
  33. package/model/transportCarrier.d.ts +15 -0
  34. package/model/transportLocation.d.ts +15 -0
  35. package/model/user.d.ts +15 -0
  36. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
- import { HttpHeaders, HttpContext } from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
5
 
6
6
  /**
7
7
  * Custom HttpParameterCodec
@@ -623,6 +623,114 @@ class ShipmentsService {
623
623
  }
624
624
  return httpParams;
625
625
  }
626
+ getShipmentItems(id, observe = 'body', reportProgress = false, options) {
627
+ if (id === null || id === undefined) {
628
+ throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
629
+ }
630
+ let localVarHeaders = this.defaultHeaders;
631
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
632
+ if (localVarHttpHeaderAcceptSelected === undefined) {
633
+ // to determine the Accept header
634
+ const httpHeaderAccepts = [
635
+ 'application/json'
636
+ ];
637
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
638
+ }
639
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
640
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
641
+ }
642
+ let localVarHttpContext = options && options.context;
643
+ if (localVarHttpContext === undefined) {
644
+ localVarHttpContext = new HttpContext();
645
+ }
646
+ let localVarTransferCache = options && options.transferCache;
647
+ if (localVarTransferCache === undefined) {
648
+ localVarTransferCache = true;
649
+ }
650
+ let responseType_ = 'json';
651
+ if (localVarHttpHeaderAcceptSelected) {
652
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
653
+ responseType_ = 'text';
654
+ }
655
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
656
+ responseType_ = 'json';
657
+ }
658
+ else {
659
+ responseType_ = 'blob';
660
+ }
661
+ }
662
+ let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
663
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
664
+ context: localVarHttpContext,
665
+ responseType: responseType_,
666
+ withCredentials: this.configuration.withCredentials,
667
+ headers: localVarHeaders,
668
+ observe: observe,
669
+ transferCache: localVarTransferCache,
670
+ reportProgress: reportProgress
671
+ });
672
+ }
673
+ getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
674
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
675
+ if ($skip !== undefined && $skip !== null) {
676
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
677
+ }
678
+ if ($top !== undefined && $top !== null) {
679
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
680
+ }
681
+ if ($orderby !== undefined && $orderby !== null) {
682
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
683
+ }
684
+ if ($filter !== undefined && $filter !== null) {
685
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
686
+ }
687
+ if ($search !== undefined && $search !== null) {
688
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
689
+ }
690
+ let localVarHeaders = this.defaultHeaders;
691
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
692
+ if (localVarHttpHeaderAcceptSelected === undefined) {
693
+ // to determine the Accept header
694
+ const httpHeaderAccepts = [
695
+ 'application/json'
696
+ ];
697
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
698
+ }
699
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
700
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
701
+ }
702
+ let localVarHttpContext = options && options.context;
703
+ if (localVarHttpContext === undefined) {
704
+ localVarHttpContext = new HttpContext();
705
+ }
706
+ let localVarTransferCache = options && options.transferCache;
707
+ if (localVarTransferCache === undefined) {
708
+ localVarTransferCache = true;
709
+ }
710
+ let responseType_ = 'json';
711
+ if (localVarHttpHeaderAcceptSelected) {
712
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
713
+ responseType_ = 'text';
714
+ }
715
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
716
+ responseType_ = 'json';
717
+ }
718
+ else {
719
+ responseType_ = 'blob';
720
+ }
721
+ }
722
+ let localVarPath = `/shipments/list`;
723
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
724
+ context: localVarHttpContext,
725
+ params: localVarQueryParameters,
726
+ responseType: responseType_,
727
+ withCredentials: this.configuration.withCredentials,
728
+ headers: localVarHeaders,
729
+ observe: observe,
730
+ transferCache: localVarTransferCache,
731
+ reportProgress: reportProgress
732
+ });
733
+ }
626
734
  getShipmentsApprovalCount(observe = 'body', reportProgress = false, options) {
627
735
  let localVarHeaders = this.defaultHeaders;
628
736
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -963,6 +1071,146 @@ const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsSer
963
1071
  * Do not edit the class manually.
964
1072
  */
965
1073
 
1074
+ /**
1075
+ * Dcm.API.Client
1076
+ * DCM API Client for Angular applications
1077
+ *
1078
+ * The version of the OpenAPI document: v1
1079
+ *
1080
+ *
1081
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1082
+ * https://openapi-generator.tech
1083
+ * Do not edit the class manually.
1084
+ */
1085
+
1086
+ /**
1087
+ * Dcm.API.Client
1088
+ * DCM API Client for Angular applications
1089
+ *
1090
+ * The version of the OpenAPI document: v1
1091
+ *
1092
+ *
1093
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1094
+ * https://openapi-generator.tech
1095
+ * Do not edit the class manually.
1096
+ */
1097
+
1098
+ /**
1099
+ * Dcm.API.Client
1100
+ * DCM API Client for Angular applications
1101
+ *
1102
+ * The version of the OpenAPI document: v1
1103
+ *
1104
+ *
1105
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1106
+ * https://openapi-generator.tech
1107
+ * Do not edit the class manually.
1108
+ */
1109
+
1110
+ /**
1111
+ * Dcm.API.Client
1112
+ * DCM API Client for Angular applications
1113
+ *
1114
+ * The version of the OpenAPI document: v1
1115
+ *
1116
+ *
1117
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1118
+ * https://openapi-generator.tech
1119
+ * Do not edit the class manually.
1120
+ */
1121
+
1122
+ /**
1123
+ * Dcm.API.Client
1124
+ * DCM API Client for Angular applications
1125
+ *
1126
+ * The version of the OpenAPI document: v1
1127
+ *
1128
+ *
1129
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1130
+ * https://openapi-generator.tech
1131
+ * Do not edit the class manually.
1132
+ */
1133
+
1134
+ /**
1135
+ * Dcm.API.Client
1136
+ * DCM API Client for Angular applications
1137
+ *
1138
+ * The version of the OpenAPI document: v1
1139
+ *
1140
+ *
1141
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1142
+ * https://openapi-generator.tech
1143
+ * Do not edit the class manually.
1144
+ */
1145
+
1146
+ /**
1147
+ * Dcm.API.Client
1148
+ * DCM API Client for Angular applications
1149
+ *
1150
+ * The version of the OpenAPI document: v1
1151
+ *
1152
+ *
1153
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1154
+ * https://openapi-generator.tech
1155
+ * Do not edit the class manually.
1156
+ */
1157
+ const ShipmentApprovalType = {
1158
+ Auto: 'Auto',
1159
+ Manual: 'Manual'
1160
+ };
1161
+
1162
+ /**
1163
+ * Dcm.API.Client
1164
+ * DCM API Client for Angular applications
1165
+ *
1166
+ * The version of the OpenAPI document: v1
1167
+ *
1168
+ *
1169
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1170
+ * https://openapi-generator.tech
1171
+ * Do not edit the class manually.
1172
+ */
1173
+
1174
+ /**
1175
+ * Dcm.API.Client
1176
+ * DCM API Client for Angular applications
1177
+ *
1178
+ * The version of the OpenAPI document: v1
1179
+ *
1180
+ *
1181
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1182
+ * https://openapi-generator.tech
1183
+ * Do not edit the class manually.
1184
+ */
1185
+ const ShipmentState = {
1186
+ Draft: 'Draft',
1187
+ RequestAuthorisation: 'RequestAuthorisation',
1188
+ AuthorisedToShip: 'AuthorisedToShip',
1189
+ Amend: 'Amend',
1190
+ Confirmed: 'Confirmed',
1191
+ Delivered: 'Delivered',
1192
+ Arrived: 'Arrived',
1193
+ CancellationRequested: 'CancellationRequested',
1194
+ Cancelled: 'Cancelled'
1195
+ };
1196
+
1197
+ /**
1198
+ * Dcm.API.Client
1199
+ * DCM API Client for Angular applications
1200
+ *
1201
+ * The version of the OpenAPI document: v1
1202
+ *
1203
+ *
1204
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1205
+ * https://openapi-generator.tech
1206
+ * Do not edit the class manually.
1207
+ */
1208
+ const ShipmentType = {
1209
+ Air: 'Air',
1210
+ Sea: 'Sea',
1211
+ Road: 'Road'
1212
+ };
1213
+
966
1214
  /**
967
1215
  * Dcm.API.Client
968
1216
  * DCM API Client for Angular applications
@@ -1075,5 +1323,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
1075
1323
  * Generated bundle index. Do not edit.
1076
1324
  */
1077
1325
 
1078
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentsService, UserService };
1326
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
1079
1327
  //# sourceMappingURL=indigina-dcm-api.mjs.map