@indigina/dcm-api 0.0.130 → 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
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):_
|
|
@@ -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
|
*
|
|
@@ -5334,7 +5447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
5334
5447
|
type: Optional
|
|
5335
5448
|
}] }] });
|
|
5336
5449
|
|
|
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];
|
|
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];
|
|
5338
5451
|
|
|
5339
5452
|
/**
|
|
5340
5453
|
* Dcm.API.Client
|
|
@@ -5794,6 +5907,16 @@ const EntityState = {
|
|
|
5794
5907
|
* Do not edit the class manually.
|
|
5795
5908
|
*/
|
|
5796
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
|
+
|
|
5797
5920
|
/**
|
|
5798
5921
|
* Dcm.API.Client
|
|
5799
5922
|
*
|
|
@@ -6402,5 +6525,5 @@ function provideApi(configOrBasePath) {
|
|
|
6402
6525
|
* Generated bundle index. Do not edit.
|
|
6403
6526
|
*/
|
|
6404
6527
|
|
|
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 };
|
|
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 };
|
|
6406
6529
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|