@indigina/dcm-api 0.0.28 → 0.0.29

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.
@@ -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, HttpParams } from '@angular/common/http';
4
+ import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
5
5
 
6
6
  /**
7
7
  * Custom HttpParameterCodec
@@ -151,6 +151,159 @@ 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 AuditLogsService {
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
+ getShipmentLogs(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
227
+ if (id === null || id === undefined) {
228
+ throw new Error('Required parameter id was null or undefined when calling getShipmentLogs.');
229
+ }
230
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
231
+ if ($skip !== undefined && $skip !== null) {
232
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
233
+ }
234
+ if ($top !== undefined && $top !== null) {
235
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
236
+ }
237
+ if ($orderby !== undefined && $orderby !== null) {
238
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
239
+ }
240
+ if ($filter !== undefined && $filter !== null) {
241
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
242
+ }
243
+ if ($search !== undefined && $search !== null) {
244
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
245
+ }
246
+ let localVarHeaders = this.defaultHeaders;
247
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
248
+ if (localVarHttpHeaderAcceptSelected === undefined) {
249
+ // to determine the Accept header
250
+ const httpHeaderAccepts = [
251
+ 'application/json'
252
+ ];
253
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
254
+ }
255
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
256
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
257
+ }
258
+ let localVarHttpContext = options && options.context;
259
+ if (localVarHttpContext === undefined) {
260
+ localVarHttpContext = new HttpContext();
261
+ }
262
+ let localVarTransferCache = options && options.transferCache;
263
+ if (localVarTransferCache === undefined) {
264
+ localVarTransferCache = true;
265
+ }
266
+ let responseType_ = 'json';
267
+ if (localVarHttpHeaderAcceptSelected) {
268
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
269
+ responseType_ = 'text';
270
+ }
271
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
272
+ responseType_ = 'json';
273
+ }
274
+ else {
275
+ responseType_ = 'blob';
276
+ }
277
+ }
278
+ let localVarPath = `/auditLogs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
279
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
280
+ context: localVarHttpContext,
281
+ params: localVarQueryParameters,
282
+ responseType: responseType_,
283
+ withCredentials: this.configuration.withCredentials,
284
+ headers: localVarHeaders,
285
+ observe: observe,
286
+ transferCache: localVarTransferCache,
287
+ reportProgress: reportProgress
288
+ });
289
+ }
290
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AuditLogsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
291
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AuditLogsService, providedIn: 'root' });
292
+ }
293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AuditLogsService, decorators: [{
294
+ type: Injectable,
295
+ args: [{
296
+ providedIn: 'root'
297
+ }]
298
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
299
+ type: Optional
300
+ }, {
301
+ type: Inject,
302
+ args: [BASE_PATH]
303
+ }] }, { type: Configuration, decorators: [{
304
+ type: Optional
305
+ }] }] });
306
+
154
307
  /**
155
308
  * Dcm.API.Client
156
309
  * DCM API Client for Angular applications
@@ -664,6 +817,70 @@ class ContainersService {
664
817
  reportProgress: reportProgress
665
818
  });
666
819
  }
820
+ getShipmentContainers(shipmentId, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
821
+ if (shipmentId === null || shipmentId === undefined) {
822
+ throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentContainers.');
823
+ }
824
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
825
+ if ($skip !== undefined && $skip !== null) {
826
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
827
+ }
828
+ if ($top !== undefined && $top !== null) {
829
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
830
+ }
831
+ if ($orderby !== undefined && $orderby !== null) {
832
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
833
+ }
834
+ if ($filter !== undefined && $filter !== null) {
835
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
836
+ }
837
+ if ($search !== undefined && $search !== null) {
838
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
839
+ }
840
+ let localVarHeaders = this.defaultHeaders;
841
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
842
+ if (localVarHttpHeaderAcceptSelected === undefined) {
843
+ // to determine the Accept header
844
+ const httpHeaderAccepts = [
845
+ 'application/json'
846
+ ];
847
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
848
+ }
849
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
850
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
851
+ }
852
+ let localVarHttpContext = options && options.context;
853
+ if (localVarHttpContext === undefined) {
854
+ localVarHttpContext = new HttpContext();
855
+ }
856
+ let localVarTransferCache = options && options.transferCache;
857
+ if (localVarTransferCache === undefined) {
858
+ localVarTransferCache = true;
859
+ }
860
+ let responseType_ = 'json';
861
+ if (localVarHttpHeaderAcceptSelected) {
862
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
863
+ responseType_ = 'text';
864
+ }
865
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
866
+ responseType_ = 'json';
867
+ }
868
+ else {
869
+ responseType_ = 'blob';
870
+ }
871
+ }
872
+ let localVarPath = `/containers/shipment/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
873
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
874
+ context: localVarHttpContext,
875
+ params: localVarQueryParameters,
876
+ responseType: responseType_,
877
+ withCredentials: this.configuration.withCredentials,
878
+ headers: localVarHeaders,
879
+ observe: observe,
880
+ transferCache: localVarTransferCache,
881
+ reportProgress: reportProgress
882
+ });
883
+ }
667
884
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ContainersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
668
885
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ContainersService, providedIn: 'root' });
669
886
  }
@@ -681,6 +898,159 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
681
898
  type: Optional
682
899
  }] }] });
683
900
 
901
+ /**
902
+ * Dcm.API.Client
903
+ * DCM API Client for Angular applications
904
+ *
905
+ *
906
+ *
907
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
908
+ * https://openapi-generator.tech
909
+ * Do not edit the class manually.
910
+ */
911
+ /* tslint:disable:no-unused-variable member-ordering */
912
+ class DocumentsService {
913
+ httpClient;
914
+ basePath = 'http://localhost';
915
+ defaultHeaders = new HttpHeaders();
916
+ configuration = new Configuration();
917
+ encoder;
918
+ constructor(httpClient, basePath, configuration) {
919
+ this.httpClient = httpClient;
920
+ if (configuration) {
921
+ this.configuration = configuration;
922
+ }
923
+ if (typeof this.configuration.basePath !== 'string') {
924
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
925
+ if (firstBasePath != undefined) {
926
+ basePath = firstBasePath;
927
+ }
928
+ if (typeof basePath !== 'string') {
929
+ basePath = this.basePath;
930
+ }
931
+ this.configuration.basePath = basePath;
932
+ }
933
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
934
+ }
935
+ // @ts-ignore
936
+ addToHttpParams(httpParams, value, key) {
937
+ if (typeof value === "object" && value instanceof Date === false) {
938
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
939
+ }
940
+ else {
941
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
942
+ }
943
+ return httpParams;
944
+ }
945
+ addToHttpParamsRecursive(httpParams, value, key) {
946
+ if (value == null) {
947
+ return httpParams;
948
+ }
949
+ if (typeof value === "object") {
950
+ if (Array.isArray(value)) {
951
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
952
+ }
953
+ else if (value instanceof Date) {
954
+ if (key != null) {
955
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
956
+ }
957
+ else {
958
+ throw Error("key may not be null if value is Date");
959
+ }
960
+ }
961
+ else {
962
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
963
+ }
964
+ }
965
+ else if (key != null) {
966
+ httpParams = httpParams.append(key, value);
967
+ }
968
+ else {
969
+ throw Error("key may not be null if value is not object or array");
970
+ }
971
+ return httpParams;
972
+ }
973
+ getShipmentDocuments(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
974
+ if (id === null || id === undefined) {
975
+ throw new Error('Required parameter id was null or undefined when calling getShipmentDocuments.');
976
+ }
977
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
978
+ if ($skip !== undefined && $skip !== null) {
979
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
980
+ }
981
+ if ($top !== undefined && $top !== null) {
982
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
983
+ }
984
+ if ($orderby !== undefined && $orderby !== null) {
985
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
986
+ }
987
+ if ($filter !== undefined && $filter !== null) {
988
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
989
+ }
990
+ if ($search !== undefined && $search !== null) {
991
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
992
+ }
993
+ let localVarHeaders = this.defaultHeaders;
994
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
995
+ if (localVarHttpHeaderAcceptSelected === undefined) {
996
+ // to determine the Accept header
997
+ const httpHeaderAccepts = [
998
+ 'application/json'
999
+ ];
1000
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1001
+ }
1002
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1003
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1004
+ }
1005
+ let localVarHttpContext = options && options.context;
1006
+ if (localVarHttpContext === undefined) {
1007
+ localVarHttpContext = new HttpContext();
1008
+ }
1009
+ let localVarTransferCache = options && options.transferCache;
1010
+ if (localVarTransferCache === undefined) {
1011
+ localVarTransferCache = true;
1012
+ }
1013
+ let responseType_ = 'json';
1014
+ if (localVarHttpHeaderAcceptSelected) {
1015
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1016
+ responseType_ = 'text';
1017
+ }
1018
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1019
+ responseType_ = 'json';
1020
+ }
1021
+ else {
1022
+ responseType_ = 'blob';
1023
+ }
1024
+ }
1025
+ let localVarPath = `/documents/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1026
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1027
+ context: localVarHttpContext,
1028
+ params: localVarQueryParameters,
1029
+ responseType: responseType_,
1030
+ withCredentials: this.configuration.withCredentials,
1031
+ headers: localVarHeaders,
1032
+ observe: observe,
1033
+ transferCache: localVarTransferCache,
1034
+ reportProgress: reportProgress
1035
+ });
1036
+ }
1037
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DocumentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1038
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DocumentsService, providedIn: 'root' });
1039
+ }
1040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DocumentsService, decorators: [{
1041
+ type: Injectable,
1042
+ args: [{
1043
+ providedIn: 'root'
1044
+ }]
1045
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1046
+ type: Optional
1047
+ }, {
1048
+ type: Inject,
1049
+ args: [BASE_PATH]
1050
+ }] }, { type: Configuration, decorators: [{
1051
+ type: Optional
1052
+ }] }] });
1053
+
684
1054
  /**
685
1055
  * Dcm.API.Client
686
1056
  * DCM API Client for Angular applications
@@ -748,18 +1118,170 @@ class HealthService {
748
1118
  else if (key != null) {
749
1119
  httpParams = httpParams.append(key, value);
750
1120
  }
751
- else {
752
- throw Error("key may not be null if value is not object or array");
1121
+ else {
1122
+ throw Error("key may not be null if value is not object or array");
1123
+ }
1124
+ return httpParams;
1125
+ }
1126
+ getHealth(observe = 'body', reportProgress = false, options) {
1127
+ let localVarHeaders = this.defaultHeaders;
1128
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1129
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1130
+ // to determine the Accept header
1131
+ const httpHeaderAccepts = [
1132
+ 'text/plain',
1133
+ 'application/json'
1134
+ ];
1135
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1136
+ }
1137
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1138
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1139
+ }
1140
+ let localVarHttpContext = options && options.context;
1141
+ if (localVarHttpContext === undefined) {
1142
+ localVarHttpContext = new HttpContext();
1143
+ }
1144
+ let localVarTransferCache = options && options.transferCache;
1145
+ if (localVarTransferCache === undefined) {
1146
+ localVarTransferCache = true;
1147
+ }
1148
+ let responseType_ = 'json';
1149
+ if (localVarHttpHeaderAcceptSelected) {
1150
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1151
+ responseType_ = 'text';
1152
+ }
1153
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1154
+ responseType_ = 'json';
1155
+ }
1156
+ else {
1157
+ responseType_ = 'blob';
1158
+ }
1159
+ }
1160
+ let localVarPath = `/health`;
1161
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1162
+ context: localVarHttpContext,
1163
+ responseType: responseType_,
1164
+ withCredentials: this.configuration.withCredentials,
1165
+ headers: localVarHeaders,
1166
+ observe: observe,
1167
+ transferCache: localVarTransferCache,
1168
+ reportProgress: reportProgress
1169
+ });
1170
+ }
1171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1172
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, providedIn: 'root' });
1173
+ }
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, decorators: [{
1175
+ type: Injectable,
1176
+ args: [{
1177
+ providedIn: 'root'
1178
+ }]
1179
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1180
+ type: Optional
1181
+ }, {
1182
+ type: Inject,
1183
+ args: [BASE_PATH]
1184
+ }] }, { type: Configuration, decorators: [{
1185
+ type: Optional
1186
+ }] }] });
1187
+
1188
+ /**
1189
+ * Dcm.API.Client
1190
+ * DCM API Client for Angular applications
1191
+ *
1192
+ *
1193
+ *
1194
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1195
+ * https://openapi-generator.tech
1196
+ * Do not edit the class manually.
1197
+ */
1198
+ /* tslint:disable:no-unused-variable member-ordering */
1199
+ class NotesService {
1200
+ httpClient;
1201
+ basePath = 'http://localhost';
1202
+ defaultHeaders = new HttpHeaders();
1203
+ configuration = new Configuration();
1204
+ encoder;
1205
+ constructor(httpClient, basePath, configuration) {
1206
+ this.httpClient = httpClient;
1207
+ if (configuration) {
1208
+ this.configuration = configuration;
1209
+ }
1210
+ if (typeof this.configuration.basePath !== 'string') {
1211
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1212
+ if (firstBasePath != undefined) {
1213
+ basePath = firstBasePath;
1214
+ }
1215
+ if (typeof basePath !== 'string') {
1216
+ basePath = this.basePath;
1217
+ }
1218
+ this.configuration.basePath = basePath;
1219
+ }
1220
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1221
+ }
1222
+ // @ts-ignore
1223
+ addToHttpParams(httpParams, value, key) {
1224
+ if (typeof value === "object" && value instanceof Date === false) {
1225
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1226
+ }
1227
+ else {
1228
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1229
+ }
1230
+ return httpParams;
1231
+ }
1232
+ addToHttpParamsRecursive(httpParams, value, key) {
1233
+ if (value == null) {
1234
+ return httpParams;
1235
+ }
1236
+ if (typeof value === "object") {
1237
+ if (Array.isArray(value)) {
1238
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1239
+ }
1240
+ else if (value instanceof Date) {
1241
+ if (key != null) {
1242
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1243
+ }
1244
+ else {
1245
+ throw Error("key may not be null if value is Date");
1246
+ }
1247
+ }
1248
+ else {
1249
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1250
+ }
1251
+ }
1252
+ else if (key != null) {
1253
+ httpParams = httpParams.append(key, value);
1254
+ }
1255
+ else {
1256
+ throw Error("key may not be null if value is not object or array");
1257
+ }
1258
+ return httpParams;
1259
+ }
1260
+ getShipmentNotes(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1261
+ if (id === null || id === undefined) {
1262
+ throw new Error('Required parameter id was null or undefined when calling getShipmentNotes.');
1263
+ }
1264
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1265
+ if ($skip !== undefined && $skip !== null) {
1266
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1267
+ }
1268
+ if ($top !== undefined && $top !== null) {
1269
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1270
+ }
1271
+ if ($orderby !== undefined && $orderby !== null) {
1272
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1273
+ }
1274
+ if ($filter !== undefined && $filter !== null) {
1275
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1276
+ }
1277
+ if ($search !== undefined && $search !== null) {
1278
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
753
1279
  }
754
- return httpParams;
755
- }
756
- getHealth(observe = 'body', reportProgress = false, options) {
757
1280
  let localVarHeaders = this.defaultHeaders;
758
1281
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
759
1282
  if (localVarHttpHeaderAcceptSelected === undefined) {
760
1283
  // to determine the Accept header
761
1284
  const httpHeaderAccepts = [
762
- 'text/plain',
763
1285
  'application/json'
764
1286
  ];
765
1287
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
@@ -787,9 +1309,10 @@ class HealthService {
787
1309
  responseType_ = 'blob';
788
1310
  }
789
1311
  }
790
- let localVarPath = `/health`;
1312
+ let localVarPath = `/notes/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
791
1313
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
792
1314
  context: localVarHttpContext,
1315
+ params: localVarQueryParameters,
793
1316
  responseType: responseType_,
794
1317
  withCredentials: this.configuration.withCredentials,
795
1318
  headers: localVarHeaders,
@@ -798,10 +1321,10 @@ class HealthService {
798
1321
  reportProgress: reportProgress
799
1322
  });
800
1323
  }
801
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
802
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, providedIn: 'root' });
1324
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: NotesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1325
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: NotesService, providedIn: 'root' });
803
1326
  }
804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, decorators: [{
1327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: NotesService, decorators: [{
805
1328
  type: Injectable,
806
1329
  args: [{
807
1330
  providedIn: 'root'
@@ -1244,134 +1767,6 @@ class ShipmentsService {
1244
1767
  reportProgress: reportProgress
1245
1768
  });
1246
1769
  }
1247
- getShipmentContainers(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1248
- if (id === null || id === undefined) {
1249
- throw new Error('Required parameter id was null or undefined when calling getShipmentContainers.');
1250
- }
1251
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1252
- if ($skip !== undefined && $skip !== null) {
1253
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1254
- }
1255
- if ($top !== undefined && $top !== null) {
1256
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1257
- }
1258
- if ($orderby !== undefined && $orderby !== null) {
1259
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1260
- }
1261
- if ($filter !== undefined && $filter !== null) {
1262
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1263
- }
1264
- if ($search !== undefined && $search !== null) {
1265
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1266
- }
1267
- let localVarHeaders = this.defaultHeaders;
1268
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1269
- if (localVarHttpHeaderAcceptSelected === undefined) {
1270
- // to determine the Accept header
1271
- const httpHeaderAccepts = [
1272
- 'application/json'
1273
- ];
1274
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1275
- }
1276
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1277
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1278
- }
1279
- let localVarHttpContext = options && options.context;
1280
- if (localVarHttpContext === undefined) {
1281
- localVarHttpContext = new HttpContext();
1282
- }
1283
- let localVarTransferCache = options && options.transferCache;
1284
- if (localVarTransferCache === undefined) {
1285
- localVarTransferCache = true;
1286
- }
1287
- let responseType_ = 'json';
1288
- if (localVarHttpHeaderAcceptSelected) {
1289
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1290
- responseType_ = 'text';
1291
- }
1292
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1293
- responseType_ = 'json';
1294
- }
1295
- else {
1296
- responseType_ = 'blob';
1297
- }
1298
- }
1299
- let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/containers`;
1300
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1301
- context: localVarHttpContext,
1302
- params: localVarQueryParameters,
1303
- responseType: responseType_,
1304
- withCredentials: this.configuration.withCredentials,
1305
- headers: localVarHeaders,
1306
- observe: observe,
1307
- transferCache: localVarTransferCache,
1308
- reportProgress: reportProgress
1309
- });
1310
- }
1311
- getShipmentDocuments(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1312
- if (id === null || id === undefined) {
1313
- throw new Error('Required parameter id was null or undefined when calling getShipmentDocuments.');
1314
- }
1315
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1316
- if ($skip !== undefined && $skip !== null) {
1317
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1318
- }
1319
- if ($top !== undefined && $top !== null) {
1320
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1321
- }
1322
- if ($orderby !== undefined && $orderby !== null) {
1323
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1324
- }
1325
- if ($filter !== undefined && $filter !== null) {
1326
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1327
- }
1328
- if ($search !== undefined && $search !== null) {
1329
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1330
- }
1331
- let localVarHeaders = this.defaultHeaders;
1332
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1333
- if (localVarHttpHeaderAcceptSelected === undefined) {
1334
- // to determine the Accept header
1335
- const httpHeaderAccepts = [
1336
- 'application/json'
1337
- ];
1338
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1339
- }
1340
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1341
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1342
- }
1343
- let localVarHttpContext = options && options.context;
1344
- if (localVarHttpContext === undefined) {
1345
- localVarHttpContext = new HttpContext();
1346
- }
1347
- let localVarTransferCache = options && options.transferCache;
1348
- if (localVarTransferCache === undefined) {
1349
- localVarTransferCache = true;
1350
- }
1351
- let responseType_ = 'json';
1352
- if (localVarHttpHeaderAcceptSelected) {
1353
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1354
- responseType_ = 'text';
1355
- }
1356
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1357
- responseType_ = 'json';
1358
- }
1359
- else {
1360
- responseType_ = 'blob';
1361
- }
1362
- }
1363
- let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/documents`;
1364
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1365
- context: localVarHttpContext,
1366
- params: localVarQueryParameters,
1367
- responseType: responseType_,
1368
- withCredentials: this.configuration.withCredentials,
1369
- headers: localVarHeaders,
1370
- observe: observe,
1371
- transferCache: localVarTransferCache,
1372
- reportProgress: reportProgress
1373
- });
1374
- }
1375
1770
  getShipmentItems(id, observe = 'body', reportProgress = false, options) {
1376
1771
  if (id === null || id === undefined) {
1377
1772
  throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
@@ -1419,117 +1814,6 @@ class ShipmentsService {
1419
1814
  reportProgress: reportProgress
1420
1815
  });
1421
1816
  }
1422
- getShipmentLogs(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1423
- if (id === null || id === undefined) {
1424
- throw new Error('Required parameter id was null or undefined when calling getShipmentLogs.');
1425
- }
1426
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1427
- if ($skip !== undefined && $skip !== null) {
1428
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1429
- }
1430
- if ($top !== undefined && $top !== null) {
1431
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1432
- }
1433
- if ($orderby !== undefined && $orderby !== null) {
1434
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1435
- }
1436
- if ($filter !== undefined && $filter !== null) {
1437
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1438
- }
1439
- if ($search !== undefined && $search !== null) {
1440
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1441
- }
1442
- let localVarHeaders = this.defaultHeaders;
1443
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1444
- if (localVarHttpHeaderAcceptSelected === undefined) {
1445
- // to determine the Accept header
1446
- const httpHeaderAccepts = [
1447
- 'application/json'
1448
- ];
1449
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1450
- }
1451
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1452
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1453
- }
1454
- let localVarHttpContext = options && options.context;
1455
- if (localVarHttpContext === undefined) {
1456
- localVarHttpContext = new HttpContext();
1457
- }
1458
- let localVarTransferCache = options && options.transferCache;
1459
- if (localVarTransferCache === undefined) {
1460
- localVarTransferCache = true;
1461
- }
1462
- let responseType_ = 'json';
1463
- if (localVarHttpHeaderAcceptSelected) {
1464
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1465
- responseType_ = 'text';
1466
- }
1467
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1468
- responseType_ = 'json';
1469
- }
1470
- else {
1471
- responseType_ = 'blob';
1472
- }
1473
- }
1474
- let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/auditLogs`;
1475
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1476
- context: localVarHttpContext,
1477
- params: localVarQueryParameters,
1478
- responseType: responseType_,
1479
- withCredentials: this.configuration.withCredentials,
1480
- headers: localVarHeaders,
1481
- observe: observe,
1482
- transferCache: localVarTransferCache,
1483
- reportProgress: reportProgress
1484
- });
1485
- }
1486
- getShipmentNotes(id, observe = 'body', reportProgress = false, options) {
1487
- if (id === null || id === undefined) {
1488
- throw new Error('Required parameter id was null or undefined when calling getShipmentNotes.');
1489
- }
1490
- let localVarHeaders = this.defaultHeaders;
1491
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1492
- if (localVarHttpHeaderAcceptSelected === undefined) {
1493
- // to determine the Accept header
1494
- const httpHeaderAccepts = [
1495
- 'application/json'
1496
- ];
1497
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1498
- }
1499
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1500
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1501
- }
1502
- let localVarHttpContext = options && options.context;
1503
- if (localVarHttpContext === undefined) {
1504
- localVarHttpContext = new HttpContext();
1505
- }
1506
- let localVarTransferCache = options && options.transferCache;
1507
- if (localVarTransferCache === undefined) {
1508
- localVarTransferCache = true;
1509
- }
1510
- let responseType_ = 'json';
1511
- if (localVarHttpHeaderAcceptSelected) {
1512
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1513
- responseType_ = 'text';
1514
- }
1515
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1516
- responseType_ = 'json';
1517
- }
1518
- else {
1519
- responseType_ = 'blob';
1520
- }
1521
- }
1522
- let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/notes`;
1523
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1524
- context: localVarHttpContext,
1525
- responseType: responseType_,
1526
- withCredentials: this.configuration.withCredentials,
1527
- headers: localVarHeaders,
1528
- observe: observe,
1529
- transferCache: localVarTransferCache,
1530
- reportProgress: reportProgress
1531
- });
1532
- }
1533
1817
  getShipmentProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1534
1818
  if (id === null || id === undefined) {
1535
1819
  throw new Error('Required parameter id was null or undefined when calling getShipmentProducts.');
@@ -2368,7 +2652,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
2368
2652
  type: Optional
2369
2653
  }] }] });
2370
2654
 
2371
- const APIS = [BookingsService, ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
2655
+ const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, ShipmentsService, UserService];
2372
2656
 
2373
2657
  /**
2374
2658
  * Dcm.API.Client
@@ -2424,10 +2708,10 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
2424
2708
  * https://openapi-generator.tech
2425
2709
  * Do not edit the class manually.
2426
2710
  */
2427
- const ContainerType = {
2428
- CfsCfs: 'CFS/CFS',
2429
- CfsCy: 'CFS/CY',
2430
- CyCy: 'CY/CY'
2711
+ const ContainerTypes = {
2712
+ CfsCfs: 'CfsCfs',
2713
+ CfsCy: 'CfsCy',
2714
+ CyCy: 'CyCy'
2431
2715
  };
2432
2716
 
2433
2717
  /**
@@ -2717,6 +3001,11 @@ const ShipmentTerm = {
2717
3001
  * https://openapi-generator.tech
2718
3002
  * Do not edit the class manually.
2719
3003
  */
3004
+ const ShipmentType = {
3005
+ Air: 'Air',
3006
+ Sea: 'Sea',
3007
+ Road: 'Road'
3008
+ };
2720
3009
 
2721
3010
  /**
2722
3011
  * Dcm.API.Client
@@ -2728,11 +3017,6 @@ const ShipmentTerm = {
2728
3017
  * https://openapi-generator.tech
2729
3018
  * Do not edit the class manually.
2730
3019
  */
2731
- const ShipmentType = {
2732
- Air: 'Air',
2733
- Sea: 'Sea',
2734
- Road: 'Road'
2735
- };
2736
3020
 
2737
3021
  /**
2738
3022
  * Dcm.API.Client
@@ -2777,6 +3061,21 @@ const ShipmentType = {
2777
3061
  * https://openapi-generator.tech
2778
3062
  * Do not edit the class manually.
2779
3063
  */
3064
+ const TimelineEventTypes = {
3065
+ BookingCreated: 'BookingCreated',
3066
+ ShipmentCreated: 'ShipmentCreated',
3067
+ ApprovalRequested: 'ApprovalRequested',
3068
+ CargoReady: 'CargoReady',
3069
+ ApprovalDeadline: 'ApprovalDeadline',
3070
+ Approved: 'Approved',
3071
+ Etd: 'Etd',
3072
+ Departure: 'Departure',
3073
+ ConfirmedOnBoard: 'ConfirmedOnBoard',
3074
+ Eta: 'Eta',
3075
+ Arrival: 'Arrival',
3076
+ ProjectedDelivered: 'ProjectedDelivered',
3077
+ Pod: 'Pod'
3078
+ };
2780
3079
 
2781
3080
  /**
2782
3081
  * Dcm.API.Client
@@ -2873,5 +3172,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
2873
3172
  * Generated bundle index. Do not edit.
2874
3173
  */
2875
3174
 
2876
- export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerType, ContainersService, DocumentType, EntityState, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, UserService };
3175
+ export { APIS, ApiModule, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, NotesService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventTypes, UserService };
2877
3176
  //# sourceMappingURL=indigina-dcm-api.mjs.map