@indigina/dcm-api 0.0.116 → 0.0.118
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/fesm2022/indigina-dcm-api.mjs +128 -1
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/indigina-dcm-api.d.ts +295 -59
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.118
|
|
2
2
|
|
|
3
3
|
DCM API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/dcm-api@0.0.
|
|
27
|
+
npm install @indigina/dcm-api@0.0.118 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -2264,6 +2264,80 @@ class PoItemsService extends BaseService {
|
|
|
2264
2264
|
super(basePath, configuration);
|
|
2265
2265
|
this.httpClient = httpClient;
|
|
2266
2266
|
}
|
|
2267
|
+
getPoItemDetails(id, observe = 'body', reportProgress = false, options) {
|
|
2268
|
+
if (id === null || id === undefined) {
|
|
2269
|
+
throw new Error('Required parameter id was null or undefined when calling getPoItemDetails.');
|
|
2270
|
+
}
|
|
2271
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2272
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2273
|
+
'application/json'
|
|
2274
|
+
]);
|
|
2275
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2276
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2277
|
+
}
|
|
2278
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2279
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2280
|
+
let responseType_ = 'json';
|
|
2281
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2282
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2283
|
+
responseType_ = 'text';
|
|
2284
|
+
}
|
|
2285
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2286
|
+
responseType_ = 'json';
|
|
2287
|
+
}
|
|
2288
|
+
else {
|
|
2289
|
+
responseType_ = 'blob';
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/details`;
|
|
2293
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2294
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2295
|
+
context: localVarHttpContext,
|
|
2296
|
+
responseType: responseType_,
|
|
2297
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2298
|
+
headers: localVarHeaders,
|
|
2299
|
+
observe: observe,
|
|
2300
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2301
|
+
reportProgress: reportProgress
|
|
2302
|
+
});
|
|
2303
|
+
}
|
|
2304
|
+
getPoItemShippingDetails(id, observe = 'body', reportProgress = false, options) {
|
|
2305
|
+
if (id === null || id === undefined) {
|
|
2306
|
+
throw new Error('Required parameter id was null or undefined when calling getPoItemShippingDetails.');
|
|
2307
|
+
}
|
|
2308
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2309
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2310
|
+
'application/json'
|
|
2311
|
+
]);
|
|
2312
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2313
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2314
|
+
}
|
|
2315
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2316
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2317
|
+
let responseType_ = 'json';
|
|
2318
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2319
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2320
|
+
responseType_ = 'text';
|
|
2321
|
+
}
|
|
2322
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2323
|
+
responseType_ = 'json';
|
|
2324
|
+
}
|
|
2325
|
+
else {
|
|
2326
|
+
responseType_ = 'blob';
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/shippingDetails`;
|
|
2330
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2331
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2332
|
+
context: localVarHttpContext,
|
|
2333
|
+
responseType: responseType_,
|
|
2334
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2335
|
+
headers: localVarHeaders,
|
|
2336
|
+
observe: observe,
|
|
2337
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2338
|
+
reportProgress: reportProgress
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2267
2341
|
getPoItemSummary(id, observe = 'body', reportProgress = false, options) {
|
|
2268
2342
|
if (id === null || id === undefined) {
|
|
2269
2343
|
throw new Error('Required parameter id was null or undefined when calling getPoItemSummary.');
|
|
@@ -3287,6 +3361,43 @@ class ShipmentsService extends BaseService {
|
|
|
3287
3361
|
reportProgress: reportProgress
|
|
3288
3362
|
});
|
|
3289
3363
|
}
|
|
3364
|
+
getShipmentLocations(shipmentId, observe = 'body', reportProgress = false, options) {
|
|
3365
|
+
if (shipmentId === null || shipmentId === undefined) {
|
|
3366
|
+
throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentLocations.');
|
|
3367
|
+
}
|
|
3368
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3369
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3370
|
+
'application/json'
|
|
3371
|
+
]);
|
|
3372
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3373
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3374
|
+
}
|
|
3375
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3376
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3377
|
+
let responseType_ = 'json';
|
|
3378
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3379
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3380
|
+
responseType_ = 'text';
|
|
3381
|
+
}
|
|
3382
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3383
|
+
responseType_ = 'json';
|
|
3384
|
+
}
|
|
3385
|
+
else {
|
|
3386
|
+
responseType_ = 'blob';
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/locations`;
|
|
3390
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3391
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3392
|
+
context: localVarHttpContext,
|
|
3393
|
+
responseType: responseType_,
|
|
3394
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3395
|
+
headers: localVarHeaders,
|
|
3396
|
+
observe: observe,
|
|
3397
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3398
|
+
reportProgress: reportProgress
|
|
3399
|
+
});
|
|
3400
|
+
}
|
|
3290
3401
|
getShipmentProductTotals(shipmentId, containerId, observe = 'body', reportProgress = false, options) {
|
|
3291
3402
|
if (shipmentId === null || shipmentId === undefined) {
|
|
3292
3403
|
throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentProductTotals.');
|
|
@@ -4613,6 +4724,22 @@ const JourneySegmentType = {
|
|
|
4613
4724
|
Feeder: 'Feeder'
|
|
4614
4725
|
};
|
|
4615
4726
|
|
|
4727
|
+
/**
|
|
4728
|
+
* Dcm.API.Client
|
|
4729
|
+
*
|
|
4730
|
+
*
|
|
4731
|
+
*
|
|
4732
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4733
|
+
* https://openapi-generator.tech
|
|
4734
|
+
* Do not edit the class manually.
|
|
4735
|
+
*/
|
|
4736
|
+
const LocationType = {
|
|
4737
|
+
OriginPort: 'OriginPort',
|
|
4738
|
+
DestinationPort: 'DestinationPort',
|
|
4739
|
+
TranshipmentPort: 'TranshipmentPort',
|
|
4740
|
+
InlandPort: 'InlandPort'
|
|
4741
|
+
};
|
|
4742
|
+
|
|
4616
4743
|
/**
|
|
4617
4744
|
* Dcm.API.Client
|
|
4618
4745
|
*
|
|
@@ -5155,5 +5282,5 @@ function provideApi(configOrBasePath) {
|
|
|
5155
5282
|
* Generated bundle index. Do not edit.
|
|
5156
5283
|
*/
|
|
5157
5284
|
|
|
5158
|
-
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteCategory, NoteSourceType, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
5285
|
+
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
5159
5286
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|