@indigina/dcm-api 0.0.78 → 0.0.79
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 +60 -4
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/index.d.ts +69 -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.79
|
|
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.79 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1630,7 +1630,7 @@ class NotesService extends BaseService {
|
|
|
1630
1630
|
super(basePath, configuration);
|
|
1631
1631
|
this.httpClient = httpClient;
|
|
1632
1632
|
}
|
|
1633
|
-
|
|
1633
|
+
createNote(note, observe = 'body', reportProgress = false, options) {
|
|
1634
1634
|
let localVarHeaders = this.defaultHeaders;
|
|
1635
1635
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1636
1636
|
'application/json'
|
|
@@ -1707,7 +1707,57 @@ class NotesService extends BaseService {
|
|
|
1707
1707
|
responseType_ = 'blob';
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
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: "
|
|
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: "NoteSourceType", dataFormat: undefined })}`;
|
|
1711
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1712
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1713
|
+
context: localVarHttpContext,
|
|
1714
|
+
params: localVarQueryParameters,
|
|
1715
|
+
responseType: responseType_,
|
|
1716
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1717
|
+
headers: localVarHeaders,
|
|
1718
|
+
observe: observe,
|
|
1719
|
+
transferCache: localVarTransferCache,
|
|
1720
|
+
reportProgress: reportProgress
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
getNotesByCategory(sourceId, type, category, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1724
|
+
if (sourceId === null || sourceId === undefined) {
|
|
1725
|
+
throw new Error('Required parameter sourceId was null or undefined when calling getNotesByCategory.');
|
|
1726
|
+
}
|
|
1727
|
+
if (type === null || type === undefined) {
|
|
1728
|
+
throw new Error('Required parameter type was null or undefined when calling getNotesByCategory.');
|
|
1729
|
+
}
|
|
1730
|
+
if (category === null || category === undefined) {
|
|
1731
|
+
throw new Error('Required parameter category was null or undefined when calling getNotesByCategory.');
|
|
1732
|
+
}
|
|
1733
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1734
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1735
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1736
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1737
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1738
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1739
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1740
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1741
|
+
'application/json'
|
|
1742
|
+
]);
|
|
1743
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1744
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1745
|
+
}
|
|
1746
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1747
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1748
|
+
let responseType_ = 'json';
|
|
1749
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1750
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1751
|
+
responseType_ = 'text';
|
|
1752
|
+
}
|
|
1753
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1754
|
+
responseType_ = 'json';
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
responseType_ = 'blob';
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
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
1761
|
const { basePath, withCredentials } = this.configuration;
|
|
1712
1762
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1713
1763
|
context: localVarHttpContext,
|
|
@@ -3875,6 +3925,12 @@ const JourneySegmentType = {
|
|
|
3875
3925
|
* https://openapi-generator.tech
|
|
3876
3926
|
* Do not edit the class manually.
|
|
3877
3927
|
*/
|
|
3928
|
+
const NoteCategory = {
|
|
3929
|
+
Notes: 'Notes',
|
|
3930
|
+
ShippingMarks: 'ShippingMarks',
|
|
3931
|
+
SpecialInstructions: 'SpecialInstructions',
|
|
3932
|
+
Comments: 'Comments'
|
|
3933
|
+
};
|
|
3878
3934
|
|
|
3879
3935
|
/**
|
|
3880
3936
|
* Dcm.API.Client
|
|
@@ -3885,7 +3941,7 @@ const JourneySegmentType = {
|
|
|
3885
3941
|
* https://openapi-generator.tech
|
|
3886
3942
|
* Do not edit the class manually.
|
|
3887
3943
|
*/
|
|
3888
|
-
const
|
|
3944
|
+
const NoteSourceType = {
|
|
3889
3945
|
Shipment: 'Shipment',
|
|
3890
3946
|
Delivery: 'Delivery',
|
|
3891
3947
|
DcClientDeliveryBooking: 'DCClientDeliveryBooking'
|
|
@@ -4370,5 +4426,5 @@ function provideApi(configOrBasePath) {
|
|
|
4370
4426
|
* Generated bundle index. Do not edit.
|
|
4371
4427
|
*/
|
|
4372
4428
|
|
|
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,
|
|
4429
|
+
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
4430
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|