@indigina/dcm-api 0.0.130 → 0.0.132
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.132
|
|
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.132 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -2616,6 +2616,119 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
2616
2616
|
type: Optional
|
|
2617
2617
|
}] }] });
|
|
2618
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
|
+
|
|
2619
2732
|
/**
|
|
2620
2733
|
* Dcm.API.Client
|
|
2621
2734
|
*
|
|
@@ -3474,9 +3587,13 @@ class PortsService extends BaseService {
|
|
|
3474
3587
|
reportProgress: reportProgress
|
|
3475
3588
|
});
|
|
3476
3589
|
}
|
|
3477
|
-
getPorts(type, observe = 'body', reportProgress = false, options) {
|
|
3590
|
+
getPorts(type, $skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
|
|
3478
3591
|
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
3479
3592
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'type', type, QueryParamStyle.Form, true);
|
|
3593
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
3594
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
3595
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
3596
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
3480
3597
|
let localVarHeaders = this.defaultHeaders;
|
|
3481
3598
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3482
3599
|
'application/json'
|
|
@@ -5334,7 +5451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
5334
5451
|
type: Optional
|
|
5335
5452
|
}] }] });
|
|
5336
5453
|
|
|
5337
|
-
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];
|
|
5454
|
+
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];
|
|
5338
5455
|
|
|
5339
5456
|
/**
|
|
5340
5457
|
* Dcm.API.Client
|
|
@@ -5794,6 +5911,16 @@ const EntityState = {
|
|
|
5794
5911
|
* Do not edit the class manually.
|
|
5795
5912
|
*/
|
|
5796
5913
|
|
|
5914
|
+
/**
|
|
5915
|
+
* Dcm.API.Client
|
|
5916
|
+
*
|
|
5917
|
+
*
|
|
5918
|
+
*
|
|
5919
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5920
|
+
* https://openapi-generator.tech
|
|
5921
|
+
* Do not edit the class manually.
|
|
5922
|
+
*/
|
|
5923
|
+
|
|
5797
5924
|
/**
|
|
5798
5925
|
* Dcm.API.Client
|
|
5799
5926
|
*
|
|
@@ -6402,5 +6529,5 @@ function provideApi(configOrBasePath) {
|
|
|
6402
6529
|
* Generated bundle index. Do not edit.
|
|
6403
6530
|
*/
|
|
6404
6531
|
|
|
6405
|
-
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, 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 };
|
|
6532
|
+
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 };
|
|
6406
6533
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|