@indigina/dcm-api 0.0.27 → 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.
- 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 +52 -3
- 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 +113 -2
- package/esm2022/model/auditLog.mjs +2 -0
- package/esm2022/model/auditLogs.mjs +2 -0
- package/esm2022/model/containerTypes.mjs +16 -0
- package/esm2022/model/document.mjs +2 -0
- package/esm2022/model/documentType.mjs +26 -0
- package/esm2022/model/documents.mjs +2 -0
- package/esm2022/model/entityState.mjs +18 -0
- package/esm2022/model/models.mjs +15 -1
- package/esm2022/model/note.mjs +12 -0
- package/esm2022/model/notes.mjs +2 -0
- package/esm2022/model/shipmentContainer.mjs +2 -0
- package/esm2022/model/shipmentContainers.mjs +2 -0
- package/esm2022/model/shipmentProduct.mjs +1 -1
- package/esm2022/model/shipmentRouting.mjs +12 -0
- package/esm2022/model/shipmentTimelineItem.mjs +2 -0
- package/esm2022/model/timelineEventTypes.mjs +26 -0
- package/fesm2022/indigina-dcm-api.mjs +778 -36
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/auditLog.d.ts +25 -0
- package/model/auditLogs.d.ts +15 -0
- package/model/containerTypes.d.ts +16 -0
- package/model/document.d.ts +21 -0
- package/model/documentType.d.ts +26 -0
- package/model/documents.d.ts +15 -0
- package/model/entityState.d.ts +18 -0
- package/model/models.d.ts +14 -0
- package/model/note.d.ts +17 -0
- package/model/notes.d.ts +15 -0
- package/model/shipmentContainer.d.ts +29 -0
- package/model/shipmentContainers.d.ts +15 -0
- package/model/shipmentProduct.d.ts +6 -7
- package/model/shipmentRouting.d.ts +22 -0
- package/model/shipmentTimelineItem.d.ts +18 -0
- package/model/timelineEventTypes.d.ts +26 -0
- 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,
|
|
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
|
|
@@ -593,39 +746,390 @@ class ContainersService {
|
|
|
593
746
|
if (localVarHttpContext === undefined) {
|
|
594
747
|
localVarHttpContext = new HttpContext();
|
|
595
748
|
}
|
|
596
|
-
let localVarTransferCache = options && options.transferCache;
|
|
597
|
-
if (localVarTransferCache === undefined) {
|
|
598
|
-
localVarTransferCache = true;
|
|
749
|
+
let localVarTransferCache = options && options.transferCache;
|
|
750
|
+
if (localVarTransferCache === undefined) {
|
|
751
|
+
localVarTransferCache = true;
|
|
752
|
+
}
|
|
753
|
+
let responseType_ = 'json';
|
|
754
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
755
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
756
|
+
responseType_ = 'text';
|
|
757
|
+
}
|
|
758
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
759
|
+
responseType_ = 'json';
|
|
760
|
+
}
|
|
761
|
+
else {
|
|
762
|
+
responseType_ = 'blob';
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
let localVarPath = `/containers/deliveriesToReschedule/count`;
|
|
766
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
767
|
+
context: localVarHttpContext,
|
|
768
|
+
responseType: responseType_,
|
|
769
|
+
withCredentials: this.configuration.withCredentials,
|
|
770
|
+
headers: localVarHeaders,
|
|
771
|
+
observe: observe,
|
|
772
|
+
transferCache: localVarTransferCache,
|
|
773
|
+
reportProgress: reportProgress
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
getPlannedDeliveriesAndPodCount(observe = 'body', reportProgress = false, options) {
|
|
777
|
+
let localVarHeaders = this.defaultHeaders;
|
|
778
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
779
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
780
|
+
// to determine the Accept header
|
|
781
|
+
const httpHeaderAccepts = [
|
|
782
|
+
'application/json'
|
|
783
|
+
];
|
|
784
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
785
|
+
}
|
|
786
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
787
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
788
|
+
}
|
|
789
|
+
let localVarHttpContext = options && options.context;
|
|
790
|
+
if (localVarHttpContext === undefined) {
|
|
791
|
+
localVarHttpContext = new HttpContext();
|
|
792
|
+
}
|
|
793
|
+
let localVarTransferCache = options && options.transferCache;
|
|
794
|
+
if (localVarTransferCache === undefined) {
|
|
795
|
+
localVarTransferCache = true;
|
|
796
|
+
}
|
|
797
|
+
let responseType_ = 'json';
|
|
798
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
799
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
800
|
+
responseType_ = 'text';
|
|
801
|
+
}
|
|
802
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
803
|
+
responseType_ = 'json';
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
responseType_ = 'blob';
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
let localVarPath = `/containers/plannedDeliveriesAndPod/count`;
|
|
810
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
811
|
+
context: localVarHttpContext,
|
|
812
|
+
responseType: responseType_,
|
|
813
|
+
withCredentials: this.configuration.withCredentials,
|
|
814
|
+
headers: localVarHeaders,
|
|
815
|
+
observe: observe,
|
|
816
|
+
transferCache: localVarTransferCache,
|
|
817
|
+
reportProgress: reportProgress
|
|
818
|
+
});
|
|
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
|
+
}
|
|
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 });
|
|
885
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ContainersService, providedIn: 'root' });
|
|
886
|
+
}
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ContainersService, decorators: [{
|
|
888
|
+
type: Injectable,
|
|
889
|
+
args: [{
|
|
890
|
+
providedIn: 'root'
|
|
891
|
+
}]
|
|
892
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
893
|
+
type: Optional
|
|
894
|
+
}, {
|
|
895
|
+
type: Inject,
|
|
896
|
+
args: [BASE_PATH]
|
|
897
|
+
}] }, { type: Configuration, decorators: [{
|
|
898
|
+
type: Optional
|
|
899
|
+
}] }] });
|
|
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
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Dcm.API.Client
|
|
1056
|
+
* DCM API Client for Angular applications
|
|
1057
|
+
*
|
|
1058
|
+
*
|
|
1059
|
+
*
|
|
1060
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1061
|
+
* https://openapi-generator.tech
|
|
1062
|
+
* Do not edit the class manually.
|
|
1063
|
+
*/
|
|
1064
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1065
|
+
class HealthService {
|
|
1066
|
+
httpClient;
|
|
1067
|
+
basePath = 'http://localhost';
|
|
1068
|
+
defaultHeaders = new HttpHeaders();
|
|
1069
|
+
configuration = new Configuration();
|
|
1070
|
+
encoder;
|
|
1071
|
+
constructor(httpClient, basePath, configuration) {
|
|
1072
|
+
this.httpClient = httpClient;
|
|
1073
|
+
if (configuration) {
|
|
1074
|
+
this.configuration = configuration;
|
|
1075
|
+
}
|
|
1076
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1077
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1078
|
+
if (firstBasePath != undefined) {
|
|
1079
|
+
basePath = firstBasePath;
|
|
1080
|
+
}
|
|
1081
|
+
if (typeof basePath !== 'string') {
|
|
1082
|
+
basePath = this.basePath;
|
|
1083
|
+
}
|
|
1084
|
+
this.configuration.basePath = basePath;
|
|
1085
|
+
}
|
|
1086
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1087
|
+
}
|
|
1088
|
+
// @ts-ignore
|
|
1089
|
+
addToHttpParams(httpParams, value, key) {
|
|
1090
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1091
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1095
|
+
}
|
|
1096
|
+
return httpParams;
|
|
1097
|
+
}
|
|
1098
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1099
|
+
if (value == null) {
|
|
1100
|
+
return httpParams;
|
|
599
1101
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
responseType_ = 'text';
|
|
1102
|
+
if (typeof value === "object") {
|
|
1103
|
+
if (Array.isArray(value)) {
|
|
1104
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
604
1105
|
}
|
|
605
|
-
else if (
|
|
606
|
-
|
|
1106
|
+
else if (value instanceof Date) {
|
|
1107
|
+
if (key != null) {
|
|
1108
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
throw Error("key may not be null if value is Date");
|
|
1112
|
+
}
|
|
607
1113
|
}
|
|
608
1114
|
else {
|
|
609
|
-
|
|
1115
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
610
1116
|
}
|
|
611
1117
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
transferCache: localVarTransferCache,
|
|
620
|
-
reportProgress: reportProgress
|
|
621
|
-
});
|
|
1118
|
+
else if (key != null) {
|
|
1119
|
+
httpParams = httpParams.append(key, value);
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
throw Error("key may not be null if value is not object or array");
|
|
1123
|
+
}
|
|
1124
|
+
return httpParams;
|
|
622
1125
|
}
|
|
623
|
-
|
|
1126
|
+
getHealth(observe = 'body', reportProgress = false, options) {
|
|
624
1127
|
let localVarHeaders = this.defaultHeaders;
|
|
625
1128
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
626
1129
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
627
1130
|
// to determine the Accept header
|
|
628
1131
|
const httpHeaderAccepts = [
|
|
1132
|
+
'text/plain',
|
|
629
1133
|
'application/json'
|
|
630
1134
|
];
|
|
631
1135
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
@@ -653,7 +1157,7 @@ class ContainersService {
|
|
|
653
1157
|
responseType_ = 'blob';
|
|
654
1158
|
}
|
|
655
1159
|
}
|
|
656
|
-
let localVarPath = `/
|
|
1160
|
+
let localVarPath = `/health`;
|
|
657
1161
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
658
1162
|
context: localVarHttpContext,
|
|
659
1163
|
responseType: responseType_,
|
|
@@ -664,10 +1168,10 @@ class ContainersService {
|
|
|
664
1168
|
reportProgress: reportProgress
|
|
665
1169
|
});
|
|
666
1170
|
}
|
|
667
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
668
|
-
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' });
|
|
669
1173
|
}
|
|
670
|
-
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: [{
|
|
671
1175
|
type: Injectable,
|
|
672
1176
|
args: [{
|
|
673
1177
|
providedIn: 'root'
|
|
@@ -692,7 +1196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
692
1196
|
* Do not edit the class manually.
|
|
693
1197
|
*/
|
|
694
1198
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
695
|
-
class
|
|
1199
|
+
class NotesService {
|
|
696
1200
|
httpClient;
|
|
697
1201
|
basePath = 'http://localhost';
|
|
698
1202
|
defaultHeaders = new HttpHeaders();
|
|
@@ -753,13 +1257,31 @@ class HealthService {
|
|
|
753
1257
|
}
|
|
754
1258
|
return httpParams;
|
|
755
1259
|
}
|
|
756
|
-
|
|
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
|
+
}
|
|
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 = `/
|
|
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:
|
|
802
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
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:
|
|
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'
|
|
@@ -1197,6 +1720,53 @@ class ShipmentsService {
|
|
|
1197
1720
|
}
|
|
1198
1721
|
return httpParams;
|
|
1199
1722
|
}
|
|
1723
|
+
getSShipmentRouting(id, observe = 'body', reportProgress = false, options) {
|
|
1724
|
+
if (id === null || id === undefined) {
|
|
1725
|
+
throw new Error('Required parameter id was null or undefined when calling getSShipmentRouting.');
|
|
1726
|
+
}
|
|
1727
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1728
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1729
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1730
|
+
// to determine the Accept header
|
|
1731
|
+
const httpHeaderAccepts = [
|
|
1732
|
+
'application/json'
|
|
1733
|
+
];
|
|
1734
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1735
|
+
}
|
|
1736
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1737
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1738
|
+
}
|
|
1739
|
+
let localVarHttpContext = options && options.context;
|
|
1740
|
+
if (localVarHttpContext === undefined) {
|
|
1741
|
+
localVarHttpContext = new HttpContext();
|
|
1742
|
+
}
|
|
1743
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1744
|
+
if (localVarTransferCache === undefined) {
|
|
1745
|
+
localVarTransferCache = true;
|
|
1746
|
+
}
|
|
1747
|
+
let responseType_ = 'json';
|
|
1748
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1749
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1750
|
+
responseType_ = 'text';
|
|
1751
|
+
}
|
|
1752
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1753
|
+
responseType_ = 'json';
|
|
1754
|
+
}
|
|
1755
|
+
else {
|
|
1756
|
+
responseType_ = 'blob';
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/routing`;
|
|
1760
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1761
|
+
context: localVarHttpContext,
|
|
1762
|
+
responseType: responseType_,
|
|
1763
|
+
withCredentials: this.configuration.withCredentials,
|
|
1764
|
+
headers: localVarHeaders,
|
|
1765
|
+
observe: observe,
|
|
1766
|
+
transferCache: localVarTransferCache,
|
|
1767
|
+
reportProgress: reportProgress
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1200
1770
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
1201
1771
|
if (id === null || id === undefined) {
|
|
1202
1772
|
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|
|
@@ -1244,10 +1814,26 @@ class ShipmentsService {
|
|
|
1244
1814
|
reportProgress: reportProgress
|
|
1245
1815
|
});
|
|
1246
1816
|
}
|
|
1247
|
-
getShipmentProducts(id, observe = 'body', reportProgress = false, options) {
|
|
1817
|
+
getShipmentProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1248
1818
|
if (id === null || id === undefined) {
|
|
1249
1819
|
throw new Error('Required parameter id was null or undefined when calling getShipmentProducts.');
|
|
1250
1820
|
}
|
|
1821
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1822
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1823
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1824
|
+
}
|
|
1825
|
+
if ($top !== undefined && $top !== null) {
|
|
1826
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1827
|
+
}
|
|
1828
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1829
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1830
|
+
}
|
|
1831
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1832
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1833
|
+
}
|
|
1834
|
+
if ($search !== undefined && $search !== null) {
|
|
1835
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1836
|
+
}
|
|
1251
1837
|
let localVarHeaders = this.defaultHeaders;
|
|
1252
1838
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1253
1839
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1283,6 +1869,7 @@ class ShipmentsService {
|
|
|
1283
1869
|
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/products`;
|
|
1284
1870
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1285
1871
|
context: localVarHttpContext,
|
|
1872
|
+
params: localVarQueryParameters,
|
|
1286
1873
|
responseType: responseType_,
|
|
1287
1874
|
withCredentials: this.configuration.withCredentials,
|
|
1288
1875
|
headers: localVarHeaders,
|
|
@@ -1338,6 +1925,53 @@ class ShipmentsService {
|
|
|
1338
1925
|
reportProgress: reportProgress
|
|
1339
1926
|
});
|
|
1340
1927
|
}
|
|
1928
|
+
getShipmentTimeline(id, observe = 'body', reportProgress = false, options) {
|
|
1929
|
+
if (id === null || id === undefined) {
|
|
1930
|
+
throw new Error('Required parameter id was null or undefined when calling getShipmentTimeline.');
|
|
1931
|
+
}
|
|
1932
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1933
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1934
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1935
|
+
// to determine the Accept header
|
|
1936
|
+
const httpHeaderAccepts = [
|
|
1937
|
+
'application/json'
|
|
1938
|
+
];
|
|
1939
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1940
|
+
}
|
|
1941
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1942
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1943
|
+
}
|
|
1944
|
+
let localVarHttpContext = options && options.context;
|
|
1945
|
+
if (localVarHttpContext === undefined) {
|
|
1946
|
+
localVarHttpContext = new HttpContext();
|
|
1947
|
+
}
|
|
1948
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1949
|
+
if (localVarTransferCache === undefined) {
|
|
1950
|
+
localVarTransferCache = true;
|
|
1951
|
+
}
|
|
1952
|
+
let responseType_ = 'json';
|
|
1953
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1954
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1955
|
+
responseType_ = 'text';
|
|
1956
|
+
}
|
|
1957
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1958
|
+
responseType_ = 'json';
|
|
1959
|
+
}
|
|
1960
|
+
else {
|
|
1961
|
+
responseType_ = 'blob';
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/timeline`;
|
|
1965
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1966
|
+
context: localVarHttpContext,
|
|
1967
|
+
responseType: responseType_,
|
|
1968
|
+
withCredentials: this.configuration.withCredentials,
|
|
1969
|
+
headers: localVarHeaders,
|
|
1970
|
+
observe: observe,
|
|
1971
|
+
transferCache: localVarTransferCache,
|
|
1972
|
+
reportProgress: reportProgress
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1341
1975
|
getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1342
1976
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1343
1977
|
if ($skip !== undefined && $skip !== null) {
|
|
@@ -2018,7 +2652,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
2018
2652
|
type: Optional
|
|
2019
2653
|
}] }] });
|
|
2020
2654
|
|
|
2021
|
-
const APIS = [BookingsService, ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
2655
|
+
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* Dcm.API.Client
|
|
2659
|
+
* DCM API Client for Angular applications
|
|
2660
|
+
*
|
|
2661
|
+
*
|
|
2662
|
+
*
|
|
2663
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2664
|
+
* https://openapi-generator.tech
|
|
2665
|
+
* Do not edit the class manually.
|
|
2666
|
+
*/
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* Dcm.API.Client
|
|
2670
|
+
* DCM API Client for Angular applications
|
|
2671
|
+
*
|
|
2672
|
+
*
|
|
2673
|
+
*
|
|
2674
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2675
|
+
* https://openapi-generator.tech
|
|
2676
|
+
* Do not edit the class manually.
|
|
2677
|
+
*/
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Dcm.API.Client
|
|
2681
|
+
* DCM API Client for Angular applications
|
|
2682
|
+
*
|
|
2683
|
+
*
|
|
2684
|
+
*
|
|
2685
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2686
|
+
* https://openapi-generator.tech
|
|
2687
|
+
* Do not edit the class manually.
|
|
2688
|
+
*/
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* Dcm.API.Client
|
|
2692
|
+
* DCM API Client for Angular applications
|
|
2693
|
+
*
|
|
2694
|
+
*
|
|
2695
|
+
*
|
|
2696
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2697
|
+
* https://openapi-generator.tech
|
|
2698
|
+
* Do not edit the class manually.
|
|
2699
|
+
*/
|
|
2022
2700
|
|
|
2023
2701
|
/**
|
|
2024
2702
|
* Dcm.API.Client
|
|
@@ -2030,6 +2708,11 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
|
|
|
2030
2708
|
* https://openapi-generator.tech
|
|
2031
2709
|
* Do not edit the class manually.
|
|
2032
2710
|
*/
|
|
2711
|
+
const ContainerTypes = {
|
|
2712
|
+
CfsCfs: 'CfsCfs',
|
|
2713
|
+
CfsCy: 'CfsCy',
|
|
2714
|
+
CyCy: 'CyCy'
|
|
2715
|
+
};
|
|
2033
2716
|
|
|
2034
2717
|
/**
|
|
2035
2718
|
* Dcm.API.Client
|
|
@@ -2096,6 +2779,21 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
|
|
|
2096
2779
|
* https://openapi-generator.tech
|
|
2097
2780
|
* Do not edit the class manually.
|
|
2098
2781
|
*/
|
|
2782
|
+
const DocumentType = {
|
|
2783
|
+
FactoryInvoice: 'FactoryInvoice',
|
|
2784
|
+
FactoryPackingList: 'FactoryPackingList',
|
|
2785
|
+
AirwaybillHawb: 'AirwaybillHawb',
|
|
2786
|
+
HousebillHbl: 'HousebillHBL',
|
|
2787
|
+
CustomClearance: 'CustomClearance',
|
|
2788
|
+
BookingForm: 'BookingForm',
|
|
2789
|
+
Miscellaneous: 'Miscellaneous',
|
|
2790
|
+
CommercialInvoice: 'CommercialInvoice',
|
|
2791
|
+
SparePartCommercialInvoice: 'SparePartCommercialInvoice',
|
|
2792
|
+
SparePartPackingList: 'SparePartPackingList',
|
|
2793
|
+
FumigationCertificate: 'FumigationCertificate',
|
|
2794
|
+
Msds: 'MSDS',
|
|
2795
|
+
ConsolidatedInvoice: 'ConsolidatedInvoice'
|
|
2796
|
+
};
|
|
2099
2797
|
|
|
2100
2798
|
/**
|
|
2101
2799
|
* Dcm.API.Client
|
|
@@ -2129,6 +2827,13 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
|
|
|
2129
2827
|
* https://openapi-generator.tech
|
|
2130
2828
|
* Do not edit the class manually.
|
|
2131
2829
|
*/
|
|
2830
|
+
const EntityState = {
|
|
2831
|
+
Detached: 'Detached',
|
|
2832
|
+
Unchanged: 'Unchanged',
|
|
2833
|
+
Added: 'Added',
|
|
2834
|
+
Deleted: 'Deleted',
|
|
2835
|
+
Modified: 'Modified'
|
|
2836
|
+
};
|
|
2132
2837
|
|
|
2133
2838
|
/**
|
|
2134
2839
|
* Dcm.API.Client
|
|
@@ -2226,6 +2931,17 @@ const ShipmentApprovalType = {
|
|
|
2226
2931
|
* Do not edit the class manually.
|
|
2227
2932
|
*/
|
|
2228
2933
|
|
|
2934
|
+
/**
|
|
2935
|
+
* Dcm.API.Client
|
|
2936
|
+
* DCM API Client for Angular applications
|
|
2937
|
+
*
|
|
2938
|
+
*
|
|
2939
|
+
*
|
|
2940
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2941
|
+
* https://openapi-generator.tech
|
|
2942
|
+
* Do not edit the class manually.
|
|
2943
|
+
*/
|
|
2944
|
+
|
|
2229
2945
|
/**
|
|
2230
2946
|
* Dcm.API.Client
|
|
2231
2947
|
* DCM API Client for Angular applications
|
|
@@ -2335,6 +3051,32 @@ const ShipmentType = {
|
|
|
2335
3051
|
* Do not edit the class manually.
|
|
2336
3052
|
*/
|
|
2337
3053
|
|
|
3054
|
+
/**
|
|
3055
|
+
* Dcm.API.Client
|
|
3056
|
+
* DCM API Client for Angular applications
|
|
3057
|
+
*
|
|
3058
|
+
*
|
|
3059
|
+
*
|
|
3060
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3061
|
+
* https://openapi-generator.tech
|
|
3062
|
+
* Do not edit the class manually.
|
|
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
|
+
};
|
|
3079
|
+
|
|
2338
3080
|
/**
|
|
2339
3081
|
* Dcm.API.Client
|
|
2340
3082
|
* DCM API Client for Angular applications
|
|
@@ -2430,5 +3172,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
2430
3172
|
* Generated bundle index. Do not edit.
|
|
2431
3173
|
*/
|
|
2432
3174
|
|
|
2433
|
-
export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainersService, 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 };
|
|
2434
3176
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|