@indigina/dcm-api 0.0.129 → 0.0.131
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 +231 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/indigina-dcm-api.d.ts +360 -117
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.131
|
|
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.131 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1087,6 +1087,88 @@ class BookingsService extends BaseService {
|
|
|
1087
1087
|
super(basePath, configuration);
|
|
1088
1088
|
this.httpClient = httpClient;
|
|
1089
1089
|
}
|
|
1090
|
+
getBookings($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1091
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1092
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1093
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1094
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1095
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1096
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$search', $search, QueryParamStyle.Form, true);
|
|
1097
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1098
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1099
|
+
'application/json'
|
|
1100
|
+
]);
|
|
1101
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1102
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1103
|
+
}
|
|
1104
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1105
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1106
|
+
let responseType_ = 'json';
|
|
1107
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1108
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1109
|
+
responseType_ = 'text';
|
|
1110
|
+
}
|
|
1111
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1112
|
+
responseType_ = 'json';
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
responseType_ = 'blob';
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
let localVarPath = `/bookings/list`;
|
|
1119
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1120
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1121
|
+
context: localVarHttpContext,
|
|
1122
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1123
|
+
responseType: responseType_,
|
|
1124
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1125
|
+
headers: localVarHeaders,
|
|
1126
|
+
observe: observe,
|
|
1127
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1128
|
+
reportProgress: reportProgress
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
getBookingsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
1132
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1133
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1134
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1135
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1136
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1137
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
1138
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1139
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1140
|
+
'application/json'
|
|
1141
|
+
]);
|
|
1142
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1143
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1144
|
+
}
|
|
1145
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1146
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1147
|
+
let responseType_ = 'json';
|
|
1148
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1149
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1150
|
+
responseType_ = 'text';
|
|
1151
|
+
}
|
|
1152
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1153
|
+
responseType_ = 'json';
|
|
1154
|
+
}
|
|
1155
|
+
else {
|
|
1156
|
+
responseType_ = 'blob';
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
let localVarPath = `/bookings/search`;
|
|
1160
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1161
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1162
|
+
context: localVarHttpContext,
|
|
1163
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1164
|
+
responseType: responseType_,
|
|
1165
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1166
|
+
headers: localVarHeaders,
|
|
1167
|
+
observe: observe,
|
|
1168
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1169
|
+
reportProgress: reportProgress
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1090
1172
|
getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
|
|
1091
1173
|
let localVarHeaders = this.defaultHeaders;
|
|
1092
1174
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
@@ -2534,6 +2616,119 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
2534
2616
|
type: Optional
|
|
2535
2617
|
}] }] });
|
|
2536
2618
|
|
|
2619
|
+
/**
|
|
2620
|
+
* Dcm.API.Client
|
|
2621
|
+
*
|
|
2622
|
+
*
|
|
2623
|
+
*
|
|
2624
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2625
|
+
* https://openapi-generator.tech
|
|
2626
|
+
* Do not edit the class manually.
|
|
2627
|
+
*/
|
|
2628
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2629
|
+
class InvoicingService extends BaseService {
|
|
2630
|
+
httpClient;
|
|
2631
|
+
constructor(httpClient, basePath, configuration) {
|
|
2632
|
+
super(basePath, configuration);
|
|
2633
|
+
this.httpClient = httpClient;
|
|
2634
|
+
}
|
|
2635
|
+
getInvoicing(observe = 'body', reportProgress = false, options) {
|
|
2636
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2637
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2638
|
+
'application/json'
|
|
2639
|
+
]);
|
|
2640
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2641
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2642
|
+
}
|
|
2643
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2644
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2645
|
+
let responseType_ = 'json';
|
|
2646
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2647
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2648
|
+
responseType_ = 'text';
|
|
2649
|
+
}
|
|
2650
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2651
|
+
responseType_ = 'json';
|
|
2652
|
+
}
|
|
2653
|
+
else {
|
|
2654
|
+
responseType_ = 'blob';
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
let localVarPath = `/invoicing`;
|
|
2658
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2659
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2660
|
+
context: localVarHttpContext,
|
|
2661
|
+
responseType: responseType_,
|
|
2662
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2663
|
+
headers: localVarHeaders,
|
|
2664
|
+
observe: observe,
|
|
2665
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2666
|
+
reportProgress: reportProgress
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2669
|
+
saveInvoicing(invoicing, observe = 'body', reportProgress = false, options) {
|
|
2670
|
+
if (invoicing === null || invoicing === undefined) {
|
|
2671
|
+
throw new Error('Required parameter invoicing was null or undefined when calling saveInvoicing.');
|
|
2672
|
+
}
|
|
2673
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2674
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2675
|
+
'application/json'
|
|
2676
|
+
]);
|
|
2677
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2678
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2679
|
+
}
|
|
2680
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2681
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2682
|
+
// to determine the Content-Type header
|
|
2683
|
+
const consumes = [
|
|
2684
|
+
'application/json'
|
|
2685
|
+
];
|
|
2686
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2687
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2688
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2689
|
+
}
|
|
2690
|
+
let responseType_ = 'json';
|
|
2691
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2692
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2693
|
+
responseType_ = 'text';
|
|
2694
|
+
}
|
|
2695
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2696
|
+
responseType_ = 'json';
|
|
2697
|
+
}
|
|
2698
|
+
else {
|
|
2699
|
+
responseType_ = 'blob';
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
let localVarPath = `/invoicing`;
|
|
2703
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2704
|
+
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
2705
|
+
context: localVarHttpContext,
|
|
2706
|
+
body: invoicing,
|
|
2707
|
+
responseType: responseType_,
|
|
2708
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2709
|
+
headers: localVarHeaders,
|
|
2710
|
+
observe: observe,
|
|
2711
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2712
|
+
reportProgress: reportProgress
|
|
2713
|
+
});
|
|
2714
|
+
}
|
|
2715
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: InvoicingService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2716
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: InvoicingService, providedIn: 'root' });
|
|
2717
|
+
}
|
|
2718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: InvoicingService, decorators: [{
|
|
2719
|
+
type: Injectable,
|
|
2720
|
+
args: [{
|
|
2721
|
+
providedIn: 'root'
|
|
2722
|
+
}]
|
|
2723
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2724
|
+
type: Optional
|
|
2725
|
+
}, {
|
|
2726
|
+
type: Inject,
|
|
2727
|
+
args: [BASE_PATH]
|
|
2728
|
+
}] }, { type: Configuration, decorators: [{
|
|
2729
|
+
type: Optional
|
|
2730
|
+
}] }] });
|
|
2731
|
+
|
|
2537
2732
|
/**
|
|
2538
2733
|
* Dcm.API.Client
|
|
2539
2734
|
*
|
|
@@ -5252,7 +5447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
5252
5447
|
type: Optional
|
|
5253
5448
|
}] }] });
|
|
5254
5449
|
|
|
5255
|
-
const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PortsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
|
|
5450
|
+
const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, InvoicingService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PortsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
|
|
5256
5451
|
|
|
5257
5452
|
/**
|
|
5258
5453
|
* Dcm.API.Client
|
|
@@ -5355,6 +5550,20 @@ const ApprovalTypes = {
|
|
|
5355
5550
|
Rejected: 'Rejected'
|
|
5356
5551
|
};
|
|
5357
5552
|
|
|
5553
|
+
/**
|
|
5554
|
+
* Dcm.API.Client
|
|
5555
|
+
*
|
|
5556
|
+
*
|
|
5557
|
+
*
|
|
5558
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5559
|
+
* https://openapi-generator.tech
|
|
5560
|
+
* Do not edit the class manually.
|
|
5561
|
+
*/
|
|
5562
|
+
const BookingCollectionDelivery = {
|
|
5563
|
+
VendorDelivers: 'VendorDelivers',
|
|
5564
|
+
AgentCollects: 'AgentCollects'
|
|
5565
|
+
};
|
|
5566
|
+
|
|
5358
5567
|
/**
|
|
5359
5568
|
* Dcm.API.Client
|
|
5360
5569
|
*
|
|
@@ -5427,6 +5636,16 @@ const BookingTypes = {
|
|
|
5427
5636
|
* Do not edit the class manually.
|
|
5428
5637
|
*/
|
|
5429
5638
|
|
|
5639
|
+
/**
|
|
5640
|
+
* Dcm.API.Client
|
|
5641
|
+
*
|
|
5642
|
+
*
|
|
5643
|
+
*
|
|
5644
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5645
|
+
* https://openapi-generator.tech
|
|
5646
|
+
* Do not edit the class manually.
|
|
5647
|
+
*/
|
|
5648
|
+
|
|
5430
5649
|
/**
|
|
5431
5650
|
* Dcm.API.Client
|
|
5432
5651
|
*
|
|
@@ -5688,6 +5907,16 @@ const EntityState = {
|
|
|
5688
5907
|
* Do not edit the class manually.
|
|
5689
5908
|
*/
|
|
5690
5909
|
|
|
5910
|
+
/**
|
|
5911
|
+
* Dcm.API.Client
|
|
5912
|
+
*
|
|
5913
|
+
*
|
|
5914
|
+
*
|
|
5915
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5916
|
+
* https://openapi-generator.tech
|
|
5917
|
+
* Do not edit the class manually.
|
|
5918
|
+
*/
|
|
5919
|
+
|
|
5691
5920
|
/**
|
|
5692
5921
|
* Dcm.API.Client
|
|
5693
5922
|
*
|
|
@@ -6296,5 +6525,5 @@ function provideApi(configOrBasePath) {
|
|
|
6296
6525
|
* Generated bundle index. Do not edit.
|
|
6297
6526
|
*/
|
|
6298
6527
|
|
|
6299
|
-
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, 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, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6528
|
+
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingCollectionDelivery, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, InvoicingService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6300
6529
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|