@indigina/dcm-api 0.0.78 → 0.0.80
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 +111 -4
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/index.d.ts +104 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.80
|
|
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.80 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1251,6 +1251,47 @@ class DcsService extends BaseService {
|
|
|
1251
1251
|
reportProgress: reportProgress
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
+
getDeliveryBookingDcs(containerIds, observe = 'body', reportProgress = false, options) {
|
|
1255
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1256
|
+
if (containerIds) {
|
|
1257
|
+
containerIds.forEach((element) => {
|
|
1258
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'containerIds');
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1262
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1263
|
+
'application/json'
|
|
1264
|
+
]);
|
|
1265
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1266
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1267
|
+
}
|
|
1268
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1269
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1270
|
+
let responseType_ = 'json';
|
|
1271
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1272
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1273
|
+
responseType_ = 'text';
|
|
1274
|
+
}
|
|
1275
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1276
|
+
responseType_ = 'json';
|
|
1277
|
+
}
|
|
1278
|
+
else {
|
|
1279
|
+
responseType_ = 'blob';
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
let localVarPath = `/deliveryBookings/dcs`;
|
|
1283
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1284
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1285
|
+
context: localVarHttpContext,
|
|
1286
|
+
params: localVarQueryParameters,
|
|
1287
|
+
responseType: responseType_,
|
|
1288
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1289
|
+
headers: localVarHeaders,
|
|
1290
|
+
observe: observe,
|
|
1291
|
+
transferCache: localVarTransferCache,
|
|
1292
|
+
reportProgress: reportProgress
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1254
1295
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1255
1296
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, providedIn: 'root' });
|
|
1256
1297
|
}
|
|
@@ -1630,7 +1671,7 @@ class NotesService extends BaseService {
|
|
|
1630
1671
|
super(basePath, configuration);
|
|
1631
1672
|
this.httpClient = httpClient;
|
|
1632
1673
|
}
|
|
1633
|
-
|
|
1674
|
+
createNote(note, observe = 'body', reportProgress = false, options) {
|
|
1634
1675
|
let localVarHeaders = this.defaultHeaders;
|
|
1635
1676
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1636
1677
|
'application/json'
|
|
@@ -1707,7 +1748,57 @@ class NotesService extends BaseService {
|
|
|
1707
1748
|
responseType_ = 'blob';
|
|
1708
1749
|
}
|
|
1709
1750
|
}
|
|
1710
|
-
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "
|
|
1751
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceType", dataFormat: undefined })}`;
|
|
1752
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1753
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1754
|
+
context: localVarHttpContext,
|
|
1755
|
+
params: localVarQueryParameters,
|
|
1756
|
+
responseType: responseType_,
|
|
1757
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1758
|
+
headers: localVarHeaders,
|
|
1759
|
+
observe: observe,
|
|
1760
|
+
transferCache: localVarTransferCache,
|
|
1761
|
+
reportProgress: reportProgress
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
getNotesByCategory(sourceId, type, category, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1765
|
+
if (sourceId === null || sourceId === undefined) {
|
|
1766
|
+
throw new Error('Required parameter sourceId was null or undefined when calling getNotesByCategory.');
|
|
1767
|
+
}
|
|
1768
|
+
if (type === null || type === undefined) {
|
|
1769
|
+
throw new Error('Required parameter type was null or undefined when calling getNotesByCategory.');
|
|
1770
|
+
}
|
|
1771
|
+
if (category === null || category === undefined) {
|
|
1772
|
+
throw new Error('Required parameter category was null or undefined when calling getNotesByCategory.');
|
|
1773
|
+
}
|
|
1774
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1775
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1776
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1777
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1778
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1779
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1780
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1781
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1782
|
+
'application/json'
|
|
1783
|
+
]);
|
|
1784
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1785
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1786
|
+
}
|
|
1787
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1788
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1789
|
+
let responseType_ = 'json';
|
|
1790
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1791
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1792
|
+
responseType_ = 'text';
|
|
1793
|
+
}
|
|
1794
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1795
|
+
responseType_ = 'json';
|
|
1796
|
+
}
|
|
1797
|
+
else {
|
|
1798
|
+
responseType_ = 'blob';
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceType", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "category", value: category, in: "path", style: "simple", explode: false, dataType: "NoteCategory", dataFormat: undefined })}`;
|
|
1711
1802
|
const { basePath, withCredentials } = this.configuration;
|
|
1712
1803
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1713
1804
|
context: localVarHttpContext,
|
|
@@ -3751,6 +3842,16 @@ const ContainerType = {
|
|
|
3751
3842
|
* Do not edit the class manually.
|
|
3752
3843
|
*/
|
|
3753
3844
|
|
|
3845
|
+
/**
|
|
3846
|
+
* Dcm.API.Client
|
|
3847
|
+
*
|
|
3848
|
+
*
|
|
3849
|
+
*
|
|
3850
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3851
|
+
* https://openapi-generator.tech
|
|
3852
|
+
* Do not edit the class manually.
|
|
3853
|
+
*/
|
|
3854
|
+
|
|
3754
3855
|
/**
|
|
3755
3856
|
* Dcm.API.Client
|
|
3756
3857
|
*
|
|
@@ -3875,6 +3976,12 @@ const JourneySegmentType = {
|
|
|
3875
3976
|
* https://openapi-generator.tech
|
|
3876
3977
|
* Do not edit the class manually.
|
|
3877
3978
|
*/
|
|
3979
|
+
const NoteCategory = {
|
|
3980
|
+
Notes: 'Notes',
|
|
3981
|
+
ShippingMarks: 'ShippingMarks',
|
|
3982
|
+
SpecialInstructions: 'SpecialInstructions',
|
|
3983
|
+
Comments: 'Comments'
|
|
3984
|
+
};
|
|
3878
3985
|
|
|
3879
3986
|
/**
|
|
3880
3987
|
* Dcm.API.Client
|
|
@@ -3885,7 +3992,7 @@ const JourneySegmentType = {
|
|
|
3885
3992
|
* https://openapi-generator.tech
|
|
3886
3993
|
* Do not edit the class manually.
|
|
3887
3994
|
*/
|
|
3888
|
-
const
|
|
3995
|
+
const NoteSourceType = {
|
|
3889
3996
|
Shipment: 'Shipment',
|
|
3890
3997
|
Delivery: 'Delivery',
|
|
3891
3998
|
DcClientDeliveryBooking: 'DCClientDeliveryBooking'
|
|
@@ -4370,5 +4477,5 @@ function provideApi(configOrBasePath) {
|
|
|
4370
4477
|
* Generated bundle index. Do not edit.
|
|
4371
4478
|
*/
|
|
4372
4479
|
|
|
4373
|
-
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType,
|
|
4480
|
+
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DcsService, 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, WorkflowArtifacts, provideApi };
|
|
4374
4481
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|