@indigina/dcm-api 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/api.d.ts +7 -1
- package/api/auditLogs.service.d.ts +43 -0
- package/api/containers.service.d.ts +27 -0
- package/api/documents.service.d.ts +43 -0
- package/api/notes.service.d.ts +43 -0
- package/api/shipments.service.d.ts +15 -118
- package/esm2022/api/api.mjs +8 -2
- package/esm2022/api/auditLogs.service.mjs +162 -0
- package/esm2022/api/containers.service.mjs +66 -2
- package/esm2022/api/documents.service.mjs +162 -0
- package/esm2022/api/notes.service.mjs +162 -0
- package/esm2022/api/shipments.service.mjs +8 -247
- package/esm2022/model/containerTypes.mjs +16 -0
- package/esm2022/model/journeySegmentTypes.mjs +15 -0
- package/esm2022/model/models.mjs +4 -2
- package/esm2022/model/shipmentContainer.mjs +1 -1
- package/esm2022/model/shipmentProduct.mjs +1 -1
- package/esm2022/model/shipmentRouting.mjs +1 -11
- package/esm2022/model/shipmentTimelineItem.mjs +1 -11
- package/esm2022/model/timelineEventTypes.mjs +26 -0
- package/fesm2022/indigina-dcm-api.mjs +496 -193
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/containerTypes.d.ts +16 -0
- package/model/{containerType.d.ts → journeySegmentTypes.d.ts} +4 -5
- package/model/models.d.ts +3 -1
- package/model/shipmentContainer.d.ts +4 -4
- package/model/shipmentProduct.d.ts +4 -5
- package/model/shipmentRouting.d.ts +4 -0
- package/model/shipmentTimelineItem.d.ts +4 -1
- package/model/timelineEventTypes.d.ts +26 -0
- package/package.json +1 -1
- package/esm2022/model/containerType.mjs +0 -16
|
@@ -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,
|
|
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
|
}
|
|
@@ -692,7 +909,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
692
909
|
* Do not edit the class manually.
|
|
693
910
|
*/
|
|
694
911
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
695
|
-
class
|
|
912
|
+
class DocumentsService {
|
|
696
913
|
httpClient;
|
|
697
914
|
basePath = 'http://localhost';
|
|
698
915
|
defaultHeaders = new HttpHeaders();
|
|
@@ -753,13 +970,31 @@ class HealthService {
|
|
|
753
970
|
}
|
|
754
971
|
return httpParams;
|
|
755
972
|
}
|
|
756
|
-
|
|
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
|
+
}
|
|
757
993
|
let localVarHeaders = this.defaultHeaders;
|
|
758
994
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
759
995
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
760
996
|
// to determine the Accept header
|
|
761
997
|
const httpHeaderAccepts = [
|
|
762
|
-
'text/plain',
|
|
763
998
|
'application/json'
|
|
764
999
|
];
|
|
765
1000
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
@@ -787,9 +1022,10 @@ class HealthService {
|
|
|
787
1022
|
responseType_ = 'blob';
|
|
788
1023
|
}
|
|
789
1024
|
}
|
|
790
|
-
let localVarPath = `/
|
|
1025
|
+
let localVarPath = `/documents/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
791
1026
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
792
1027
|
context: localVarHttpContext,
|
|
1028
|
+
params: localVarQueryParameters,
|
|
793
1029
|
responseType: responseType_,
|
|
794
1030
|
withCredentials: this.configuration.withCredentials,
|
|
795
1031
|
headers: localVarHeaders,
|
|
@@ -798,10 +1034,10 @@ class HealthService {
|
|
|
798
1034
|
reportProgress: reportProgress
|
|
799
1035
|
});
|
|
800
1036
|
}
|
|
801
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
802
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
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' });
|
|
803
1039
|
}
|
|
804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DocumentsService, decorators: [{
|
|
805
1041
|
type: Injectable,
|
|
806
1042
|
args: [{
|
|
807
1043
|
providedIn: 'root'
|
|
@@ -826,7 +1062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
826
1062
|
* Do not edit the class manually.
|
|
827
1063
|
*/
|
|
828
1064
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
829
|
-
class
|
|
1065
|
+
class HealthService {
|
|
830
1066
|
httpClient;
|
|
831
1067
|
basePath = 'http://localhost';
|
|
832
1068
|
defaultHeaders = new HttpHeaders();
|
|
@@ -887,12 +1123,13 @@ class PermissionsService {
|
|
|
887
1123
|
}
|
|
888
1124
|
return httpParams;
|
|
889
1125
|
}
|
|
890
|
-
|
|
1126
|
+
getHealth(observe = 'body', reportProgress = false, options) {
|
|
891
1127
|
let localVarHeaders = this.defaultHeaders;
|
|
892
1128
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
893
1129
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
894
1130
|
// to determine the Accept header
|
|
895
1131
|
const httpHeaderAccepts = [
|
|
1132
|
+
'text/plain',
|
|
896
1133
|
'application/json'
|
|
897
1134
|
];
|
|
898
1135
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
@@ -920,7 +1157,7 @@ class PermissionsService {
|
|
|
920
1157
|
responseType_ = 'blob';
|
|
921
1158
|
}
|
|
922
1159
|
}
|
|
923
|
-
let localVarPath = `/
|
|
1160
|
+
let localVarPath = `/health`;
|
|
924
1161
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
925
1162
|
context: localVarHttpContext,
|
|
926
1163
|
responseType: responseType_,
|
|
@@ -931,10 +1168,10 @@ class PermissionsService {
|
|
|
931
1168
|
reportProgress: reportProgress
|
|
932
1169
|
});
|
|
933
1170
|
}
|
|
934
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
935
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
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' });
|
|
936
1173
|
}
|
|
937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, decorators: [{
|
|
938
1175
|
type: Injectable,
|
|
939
1176
|
args: [{
|
|
940
1177
|
providedIn: 'root'
|
|
@@ -959,7 +1196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
959
1196
|
* Do not edit the class manually.
|
|
960
1197
|
*/
|
|
961
1198
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
962
|
-
class
|
|
1199
|
+
class NotesService {
|
|
963
1200
|
httpClient;
|
|
964
1201
|
basePath = 'http://localhost';
|
|
965
1202
|
defaultHeaders = new HttpHeaders();
|
|
@@ -1020,7 +1257,26 @@ class ReportsService {
|
|
|
1020
1257
|
}
|
|
1021
1258
|
return httpParams;
|
|
1022
1259
|
}
|
|
1023
|
-
|
|
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');
|
|
1279
|
+
}
|
|
1024
1280
|
let localVarHeaders = this.defaultHeaders;
|
|
1025
1281
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1026
1282
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1053,9 +1309,10 @@ class ReportsService {
|
|
|
1053
1309
|
responseType_ = 'blob';
|
|
1054
1310
|
}
|
|
1055
1311
|
}
|
|
1056
|
-
let localVarPath = `/
|
|
1312
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1057
1313
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1058
1314
|
context: localVarHttpContext,
|
|
1315
|
+
params: localVarQueryParameters,
|
|
1059
1316
|
responseType: responseType_,
|
|
1060
1317
|
withCredentials: this.configuration.withCredentials,
|
|
1061
1318
|
headers: localVarHeaders,
|
|
@@ -1064,7 +1321,96 @@ class ReportsService {
|
|
|
1064
1321
|
reportProgress: reportProgress
|
|
1065
1322
|
});
|
|
1066
1323
|
}
|
|
1067
|
-
|
|
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' });
|
|
1326
|
+
}
|
|
1327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: NotesService, decorators: [{
|
|
1328
|
+
type: Injectable,
|
|
1329
|
+
args: [{
|
|
1330
|
+
providedIn: 'root'
|
|
1331
|
+
}]
|
|
1332
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1333
|
+
type: Optional
|
|
1334
|
+
}, {
|
|
1335
|
+
type: Inject,
|
|
1336
|
+
args: [BASE_PATH]
|
|
1337
|
+
}] }, { type: Configuration, decorators: [{
|
|
1338
|
+
type: Optional
|
|
1339
|
+
}] }] });
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Dcm.API.Client
|
|
1343
|
+
* DCM API Client for Angular applications
|
|
1344
|
+
*
|
|
1345
|
+
*
|
|
1346
|
+
*
|
|
1347
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1348
|
+
* https://openapi-generator.tech
|
|
1349
|
+
* Do not edit the class manually.
|
|
1350
|
+
*/
|
|
1351
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1352
|
+
class PermissionsService {
|
|
1353
|
+
httpClient;
|
|
1354
|
+
basePath = 'http://localhost';
|
|
1355
|
+
defaultHeaders = new HttpHeaders();
|
|
1356
|
+
configuration = new Configuration();
|
|
1357
|
+
encoder;
|
|
1358
|
+
constructor(httpClient, basePath, configuration) {
|
|
1359
|
+
this.httpClient = httpClient;
|
|
1360
|
+
if (configuration) {
|
|
1361
|
+
this.configuration = configuration;
|
|
1362
|
+
}
|
|
1363
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1364
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1365
|
+
if (firstBasePath != undefined) {
|
|
1366
|
+
basePath = firstBasePath;
|
|
1367
|
+
}
|
|
1368
|
+
if (typeof basePath !== 'string') {
|
|
1369
|
+
basePath = this.basePath;
|
|
1370
|
+
}
|
|
1371
|
+
this.configuration.basePath = basePath;
|
|
1372
|
+
}
|
|
1373
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1374
|
+
}
|
|
1375
|
+
// @ts-ignore
|
|
1376
|
+
addToHttpParams(httpParams, value, key) {
|
|
1377
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1378
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1382
|
+
}
|
|
1383
|
+
return httpParams;
|
|
1384
|
+
}
|
|
1385
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1386
|
+
if (value == null) {
|
|
1387
|
+
return httpParams;
|
|
1388
|
+
}
|
|
1389
|
+
if (typeof value === "object") {
|
|
1390
|
+
if (Array.isArray(value)) {
|
|
1391
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1392
|
+
}
|
|
1393
|
+
else if (value instanceof Date) {
|
|
1394
|
+
if (key != null) {
|
|
1395
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
throw Error("key may not be null if value is Date");
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
else {
|
|
1402
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
else if (key != null) {
|
|
1406
|
+
httpParams = httpParams.append(key, value);
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
throw Error("key may not be null if value is not object or array");
|
|
1410
|
+
}
|
|
1411
|
+
return httpParams;
|
|
1412
|
+
}
|
|
1413
|
+
getUserPermissions(observe = 'body', reportProgress = false, options) {
|
|
1068
1414
|
let localVarHeaders = this.defaultHeaders;
|
|
1069
1415
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1070
1416
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1097,7 +1443,7 @@ class ReportsService {
|
|
|
1097
1443
|
responseType_ = 'blob';
|
|
1098
1444
|
}
|
|
1099
1445
|
}
|
|
1100
|
-
let localVarPath = `/
|
|
1446
|
+
let localVarPath = `/user/permissions`;
|
|
1101
1447
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1102
1448
|
context: localVarHttpContext,
|
|
1103
1449
|
responseType: responseType_,
|
|
@@ -1108,10 +1454,10 @@ class ReportsService {
|
|
|
1108
1454
|
reportProgress: reportProgress
|
|
1109
1455
|
});
|
|
1110
1456
|
}
|
|
1111
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1112
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1457
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1458
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, providedIn: 'root' });
|
|
1113
1459
|
}
|
|
1114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, decorators: [{
|
|
1115
1461
|
type: Injectable,
|
|
1116
1462
|
args: [{
|
|
1117
1463
|
providedIn: 'root'
|
|
@@ -1136,7 +1482,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1136
1482
|
* Do not edit the class manually.
|
|
1137
1483
|
*/
|
|
1138
1484
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
1139
|
-
class
|
|
1485
|
+
class ReportsService {
|
|
1140
1486
|
httpClient;
|
|
1141
1487
|
basePath = 'http://localhost';
|
|
1142
1488
|
defaultHeaders = new HttpHeaders();
|
|
@@ -1197,10 +1543,7 @@ class ShipmentsService {
|
|
|
1197
1543
|
}
|
|
1198
1544
|
return httpParams;
|
|
1199
1545
|
}
|
|
1200
|
-
|
|
1201
|
-
if (id === null || id === undefined) {
|
|
1202
|
-
throw new Error('Required parameter id was null or undefined when calling getSShipmentRouting.');
|
|
1203
|
-
}
|
|
1546
|
+
getDcmReports(observe = 'body', reportProgress = false, options) {
|
|
1204
1547
|
let localVarHeaders = this.defaultHeaders;
|
|
1205
1548
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1206
1549
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1233,7 +1576,7 @@ class ShipmentsService {
|
|
|
1233
1576
|
responseType_ = 'blob';
|
|
1234
1577
|
}
|
|
1235
1578
|
}
|
|
1236
|
-
let localVarPath = `/
|
|
1579
|
+
let localVarPath = `/reports/dashboard-dcm`;
|
|
1237
1580
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1238
1581
|
context: localVarHttpContext,
|
|
1239
1582
|
responseType: responseType_,
|
|
@@ -1244,26 +1587,7 @@ class ShipmentsService {
|
|
|
1244
1587
|
reportProgress: reportProgress
|
|
1245
1588
|
});
|
|
1246
1589
|
}
|
|
1247
|
-
|
|
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
|
-
}
|
|
1590
|
+
getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
|
|
1267
1591
|
let localVarHeaders = this.defaultHeaders;
|
|
1268
1592
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1269
1593
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1296,10 +1620,9 @@ class ShipmentsService {
|
|
|
1296
1620
|
responseType_ = 'blob';
|
|
1297
1621
|
}
|
|
1298
1622
|
}
|
|
1299
|
-
let localVarPath = `/
|
|
1623
|
+
let localVarPath = `/reports/summary-dashboard`;
|
|
1300
1624
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1301
1625
|
context: localVarHttpContext,
|
|
1302
|
-
params: localVarQueryParameters,
|
|
1303
1626
|
responseType: responseType_,
|
|
1304
1627
|
withCredentials: this.configuration.withCredentials,
|
|
1305
1628
|
headers: localVarHeaders,
|
|
@@ -1308,69 +1631,94 @@ class ShipmentsService {
|
|
|
1308
1631
|
reportProgress: reportProgress
|
|
1309
1632
|
});
|
|
1310
1633
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1634
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1635
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, providedIn: 'root' });
|
|
1636
|
+
}
|
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, decorators: [{
|
|
1638
|
+
type: Injectable,
|
|
1639
|
+
args: [{
|
|
1640
|
+
providedIn: 'root'
|
|
1641
|
+
}]
|
|
1642
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1643
|
+
type: Optional
|
|
1644
|
+
}, {
|
|
1645
|
+
type: Inject,
|
|
1646
|
+
args: [BASE_PATH]
|
|
1647
|
+
}] }, { type: Configuration, decorators: [{
|
|
1648
|
+
type: Optional
|
|
1649
|
+
}] }] });
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Dcm.API.Client
|
|
1653
|
+
* DCM API Client for Angular applications
|
|
1654
|
+
*
|
|
1655
|
+
*
|
|
1656
|
+
*
|
|
1657
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1658
|
+
* https://openapi-generator.tech
|
|
1659
|
+
* Do not edit the class manually.
|
|
1660
|
+
*/
|
|
1661
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1662
|
+
class ShipmentsService {
|
|
1663
|
+
httpClient;
|
|
1664
|
+
basePath = 'http://localhost';
|
|
1665
|
+
defaultHeaders = new HttpHeaders();
|
|
1666
|
+
configuration = new Configuration();
|
|
1667
|
+
encoder;
|
|
1668
|
+
constructor(httpClient, basePath, configuration) {
|
|
1669
|
+
this.httpClient = httpClient;
|
|
1670
|
+
if (configuration) {
|
|
1671
|
+
this.configuration = configuration;
|
|
1330
1672
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1673
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1674
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1675
|
+
if (firstBasePath != undefined) {
|
|
1676
|
+
basePath = firstBasePath;
|
|
1677
|
+
}
|
|
1678
|
+
if (typeof basePath !== 'string') {
|
|
1679
|
+
basePath = this.basePath;
|
|
1680
|
+
}
|
|
1681
|
+
this.configuration.basePath = basePath;
|
|
1339
1682
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1683
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1684
|
+
}
|
|
1685
|
+
// @ts-ignore
|
|
1686
|
+
addToHttpParams(httpParams, value, key) {
|
|
1687
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1688
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1342
1689
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
localVarHttpContext = new HttpContext();
|
|
1690
|
+
else {
|
|
1691
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1346
1692
|
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1693
|
+
return httpParams;
|
|
1694
|
+
}
|
|
1695
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1696
|
+
if (value == null) {
|
|
1697
|
+
return httpParams;
|
|
1350
1698
|
}
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
responseType_ = 'text';
|
|
1699
|
+
if (typeof value === "object") {
|
|
1700
|
+
if (Array.isArray(value)) {
|
|
1701
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1355
1702
|
}
|
|
1356
|
-
else if (
|
|
1357
|
-
|
|
1703
|
+
else if (value instanceof Date) {
|
|
1704
|
+
if (key != null) {
|
|
1705
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1706
|
+
}
|
|
1707
|
+
else {
|
|
1708
|
+
throw Error("key may not be null if value is Date");
|
|
1709
|
+
}
|
|
1358
1710
|
}
|
|
1359
1711
|
else {
|
|
1360
|
-
|
|
1712
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1361
1713
|
}
|
|
1362
1714
|
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
observe: observe,
|
|
1371
|
-
transferCache: localVarTransferCache,
|
|
1372
|
-
reportProgress: reportProgress
|
|
1373
|
-
});
|
|
1715
|
+
else if (key != null) {
|
|
1716
|
+
httpParams = httpParams.append(key, value);
|
|
1717
|
+
}
|
|
1718
|
+
else {
|
|
1719
|
+
throw Error("key may not be null if value is not object or array");
|
|
1720
|
+
}
|
|
1721
|
+
return httpParams;
|
|
1374
1722
|
}
|
|
1375
1723
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
1376
1724
|
if (id === null || id === undefined) {
|
|
@@ -1419,9 +1767,9 @@ class ShipmentsService {
|
|
|
1419
1767
|
reportProgress: reportProgress
|
|
1420
1768
|
});
|
|
1421
1769
|
}
|
|
1422
|
-
|
|
1770
|
+
getShipmentProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1423
1771
|
if (id === null || id === undefined) {
|
|
1424
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
1772
|
+
throw new Error('Required parameter id was null or undefined when calling getShipmentProducts.');
|
|
1425
1773
|
}
|
|
1426
1774
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1427
1775
|
if ($skip !== undefined && $skip !== null) {
|
|
@@ -1471,7 +1819,7 @@ class ShipmentsService {
|
|
|
1471
1819
|
responseType_ = 'blob';
|
|
1472
1820
|
}
|
|
1473
1821
|
}
|
|
1474
|
-
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/
|
|
1822
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/products`;
|
|
1475
1823
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1476
1824
|
context: localVarHttpContext,
|
|
1477
1825
|
params: localVarQueryParameters,
|
|
@@ -1483,72 +1831,9 @@ class ShipmentsService {
|
|
|
1483
1831
|
reportProgress: reportProgress
|
|
1484
1832
|
});
|
|
1485
1833
|
}
|
|
1486
|
-
|
|
1487
|
-
if (
|
|
1488
|
-
throw new Error('Required parameter
|
|
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
|
-
getShipmentProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1534
|
-
if (id === null || id === undefined) {
|
|
1535
|
-
throw new Error('Required parameter id was null or undefined when calling getShipmentProducts.');
|
|
1536
|
-
}
|
|
1537
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1538
|
-
if ($skip !== undefined && $skip !== null) {
|
|
1539
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1540
|
-
}
|
|
1541
|
-
if ($top !== undefined && $top !== null) {
|
|
1542
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1543
|
-
}
|
|
1544
|
-
if ($orderby !== undefined && $orderby !== null) {
|
|
1545
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1546
|
-
}
|
|
1547
|
-
if ($filter !== undefined && $filter !== null) {
|
|
1548
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1549
|
-
}
|
|
1550
|
-
if ($search !== undefined && $search !== null) {
|
|
1551
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1834
|
+
getShipmentRouting(shipmentId, observe = 'body', reportProgress = false, options) {
|
|
1835
|
+
if (shipmentId === null || shipmentId === undefined) {
|
|
1836
|
+
throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentRouting.');
|
|
1552
1837
|
}
|
|
1553
1838
|
let localVarHeaders = this.defaultHeaders;
|
|
1554
1839
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -1582,10 +1867,9 @@ class ShipmentsService {
|
|
|
1582
1867
|
responseType_ = 'blob';
|
|
1583
1868
|
}
|
|
1584
1869
|
}
|
|
1585
|
-
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "
|
|
1870
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/routing`;
|
|
1586
1871
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1587
1872
|
context: localVarHttpContext,
|
|
1588
|
-
params: localVarQueryParameters,
|
|
1589
1873
|
responseType: responseType_,
|
|
1590
1874
|
withCredentials: this.configuration.withCredentials,
|
|
1591
1875
|
headers: localVarHeaders,
|
|
@@ -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
|
|
2428
|
-
CfsCfs: '
|
|
2429
|
-
CfsCy: '
|
|
2430
|
-
CyCy: '
|
|
2711
|
+
const ContainerTypes = {
|
|
2712
|
+
CfsCfs: 'CfsCfs',
|
|
2713
|
+
CfsCy: 'CfsCy',
|
|
2714
|
+
CyCy: 'CyCy'
|
|
2431
2715
|
};
|
|
2432
2716
|
|
|
2433
2717
|
/**
|
|
@@ -2572,6 +2856,10 @@ const EntityState = {
|
|
|
2572
2856
|
* https://openapi-generator.tech
|
|
2573
2857
|
* Do not edit the class manually.
|
|
2574
2858
|
*/
|
|
2859
|
+
const JourneySegmentTypes = {
|
|
2860
|
+
Mother: 'Mother',
|
|
2861
|
+
Feeder: 'Feeder'
|
|
2862
|
+
};
|
|
2575
2863
|
|
|
2576
2864
|
/**
|
|
2577
2865
|
* Dcm.API.Client
|
|
@@ -2594,10 +2882,6 @@ const EntityState = {
|
|
|
2594
2882
|
* https://openapi-generator.tech
|
|
2595
2883
|
* Do not edit the class manually.
|
|
2596
2884
|
*/
|
|
2597
|
-
const PowerBiTenant = {
|
|
2598
|
-
SekoBi360: 'SekoBi360',
|
|
2599
|
-
Others: 'Others'
|
|
2600
|
-
};
|
|
2601
2885
|
|
|
2602
2886
|
/**
|
|
2603
2887
|
* Dcm.API.Client
|
|
@@ -2609,6 +2893,10 @@ const PowerBiTenant = {
|
|
|
2609
2893
|
* https://openapi-generator.tech
|
|
2610
2894
|
* Do not edit the class manually.
|
|
2611
2895
|
*/
|
|
2896
|
+
const PowerBiTenant = {
|
|
2897
|
+
SekoBi360: 'SekoBi360',
|
|
2898
|
+
Others: 'Others'
|
|
2899
|
+
};
|
|
2612
2900
|
|
|
2613
2901
|
/**
|
|
2614
2902
|
* Dcm.API.Client
|
|
@@ -2620,10 +2908,6 @@ const PowerBiTenant = {
|
|
|
2620
2908
|
* https://openapi-generator.tech
|
|
2621
2909
|
* Do not edit the class manually.
|
|
2622
2910
|
*/
|
|
2623
|
-
const ShipmentApprovalType = {
|
|
2624
|
-
Auto: 'Auto',
|
|
2625
|
-
Manual: 'Manual'
|
|
2626
|
-
};
|
|
2627
2911
|
|
|
2628
2912
|
/**
|
|
2629
2913
|
* Dcm.API.Client
|
|
@@ -2635,6 +2919,10 @@ const ShipmentApprovalType = {
|
|
|
2635
2919
|
* https://openapi-generator.tech
|
|
2636
2920
|
* Do not edit the class manually.
|
|
2637
2921
|
*/
|
|
2922
|
+
const ShipmentApprovalType = {
|
|
2923
|
+
Auto: 'Auto',
|
|
2924
|
+
Manual: 'Manual'
|
|
2925
|
+
};
|
|
2638
2926
|
|
|
2639
2927
|
/**
|
|
2640
2928
|
* Dcm.API.Client
|
|
@@ -2717,6 +3005,11 @@ const ShipmentTerm = {
|
|
|
2717
3005
|
* https://openapi-generator.tech
|
|
2718
3006
|
* Do not edit the class manually.
|
|
2719
3007
|
*/
|
|
3008
|
+
const ShipmentType = {
|
|
3009
|
+
Air: 'Air',
|
|
3010
|
+
Sea: 'Sea',
|
|
3011
|
+
Road: 'Road'
|
|
3012
|
+
};
|
|
2720
3013
|
|
|
2721
3014
|
/**
|
|
2722
3015
|
* Dcm.API.Client
|
|
@@ -2728,11 +3021,6 @@ const ShipmentTerm = {
|
|
|
2728
3021
|
* https://openapi-generator.tech
|
|
2729
3022
|
* Do not edit the class manually.
|
|
2730
3023
|
*/
|
|
2731
|
-
const ShipmentType = {
|
|
2732
|
-
Air: 'Air',
|
|
2733
|
-
Sea: 'Sea',
|
|
2734
|
-
Road: 'Road'
|
|
2735
|
-
};
|
|
2736
3024
|
|
|
2737
3025
|
/**
|
|
2738
3026
|
* Dcm.API.Client
|
|
@@ -2777,6 +3065,21 @@ const ShipmentType = {
|
|
|
2777
3065
|
* https://openapi-generator.tech
|
|
2778
3066
|
* Do not edit the class manually.
|
|
2779
3067
|
*/
|
|
3068
|
+
const TimelineEventTypes = {
|
|
3069
|
+
BookingCreated: 'BookingCreated',
|
|
3070
|
+
ShipmentCreated: 'ShipmentCreated',
|
|
3071
|
+
ApprovalRequested: 'ApprovalRequested',
|
|
3072
|
+
CargoReady: 'CargoReady',
|
|
3073
|
+
ApprovalDeadline: 'ApprovalDeadline',
|
|
3074
|
+
Approved: 'Approved',
|
|
3075
|
+
Etd: 'Etd',
|
|
3076
|
+
Departure: 'Departure',
|
|
3077
|
+
ConfirmedOnBoard: 'ConfirmedOnBoard',
|
|
3078
|
+
Eta: 'Eta',
|
|
3079
|
+
Arrival: 'Arrival',
|
|
3080
|
+
ProjectedDelivered: 'ProjectedDelivered',
|
|
3081
|
+
Pod: 'Pod'
|
|
3082
|
+
};
|
|
2780
3083
|
|
|
2781
3084
|
/**
|
|
2782
3085
|
* Dcm.API.Client
|
|
@@ -2873,5 +3176,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
2873
3176
|
* Generated bundle index. Do not edit.
|
|
2874
3177
|
*/
|
|
2875
3178
|
|
|
2876
|
-
export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration,
|
|
3179
|
+
export { APIS, ApiModule, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NotesService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventTypes, UserService };
|
|
2877
3180
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|