@indigina/dcm-api 0.0.90 → 0.0.92

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.90
1
+ # @indigina/dcm-api@0.0.92
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.90 --save
27
+ npm install @indigina/dcm-api@0.0.92 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -618,6 +618,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
618
618
  type: Optional
619
619
  }] }] });
620
620
 
621
+ /**
622
+ * Dcm.API.Client
623
+ *
624
+ *
625
+ *
626
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
627
+ * https://openapi-generator.tech
628
+ * Do not edit the class manually.
629
+ */
630
+ /* tslint:disable:no-unused-variable member-ordering */
631
+ class ConfigService extends BaseService {
632
+ httpClient;
633
+ constructor(httpClient, basePath, configuration) {
634
+ super(basePath, configuration);
635
+ this.httpClient = httpClient;
636
+ }
637
+ getConfig(observe = 'body', reportProgress = false, options) {
638
+ let localVarHeaders = this.defaultHeaders;
639
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
640
+ 'application/json'
641
+ ]);
642
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
643
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
644
+ }
645
+ const localVarHttpContext = options?.context ?? new HttpContext();
646
+ const localVarTransferCache = options?.transferCache ?? true;
647
+ let responseType_ = 'json';
648
+ if (localVarHttpHeaderAcceptSelected) {
649
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
650
+ responseType_ = 'text';
651
+ }
652
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
653
+ responseType_ = 'json';
654
+ }
655
+ else {
656
+ responseType_ = 'blob';
657
+ }
658
+ }
659
+ let localVarPath = `/config`;
660
+ const { basePath, withCredentials } = this.configuration;
661
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
662
+ context: localVarHttpContext,
663
+ responseType: responseType_,
664
+ ...(withCredentials ? { withCredentials } : {}),
665
+ headers: localVarHeaders,
666
+ observe: observe,
667
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
668
+ reportProgress: reportProgress
669
+ });
670
+ }
671
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ConfigService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
672
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ConfigService, providedIn: 'root' });
673
+ }
674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ConfigService, decorators: [{
675
+ type: Injectable,
676
+ args: [{
677
+ providedIn: 'root'
678
+ }]
679
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
680
+ type: Optional
681
+ }, {
682
+ type: Inject,
683
+ args: [BASE_PATH]
684
+ }] }, { type: Configuration, decorators: [{
685
+ type: Optional
686
+ }] }] });
687
+
621
688
  /**
622
689
  * Dcm.API.Client
623
690
  *
@@ -3033,6 +3100,46 @@ class ShipmentsService extends BaseService {
3033
3100
  reportProgress: reportProgress
3034
3101
  });
3035
3102
  }
3103
+ getShipmentGeoTracking(shipmentId, type, observe = 'body', reportProgress = false, options) {
3104
+ if (shipmentId === null || shipmentId === undefined) {
3105
+ throw new Error('Required parameter shipmentId was null or undefined when calling getShipmentGeoTracking.');
3106
+ }
3107
+ if (type === null || type === undefined) {
3108
+ throw new Error('Required parameter type was null or undefined when calling getShipmentGeoTracking.');
3109
+ }
3110
+ let localVarHeaders = this.defaultHeaders;
3111
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3112
+ 'application/json'
3113
+ ]);
3114
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3115
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3116
+ }
3117
+ const localVarHttpContext = options?.context ?? new HttpContext();
3118
+ const localVarTransferCache = options?.transferCache ?? true;
3119
+ let responseType_ = 'json';
3120
+ if (localVarHttpHeaderAcceptSelected) {
3121
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3122
+ responseType_ = 'text';
3123
+ }
3124
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3125
+ responseType_ = 'json';
3126
+ }
3127
+ else {
3128
+ responseType_ = 'blob';
3129
+ }
3130
+ }
3131
+ let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "TransportMode", dataFormat: undefined })}/geo-tracking`;
3132
+ const { basePath, withCredentials } = this.configuration;
3133
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3134
+ context: localVarHttpContext,
3135
+ responseType: responseType_,
3136
+ ...(withCredentials ? { withCredentials } : {}),
3137
+ headers: localVarHeaders,
3138
+ observe: observe,
3139
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3140
+ reportProgress: reportProgress
3141
+ });
3142
+ }
3036
3143
  getShipmentItems(id, observe = 'body', reportProgress = false, options) {
3037
3144
  if (id === null || id === undefined) {
3038
3145
  throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
@@ -3866,7 +3973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
3866
3973
  type: Optional
3867
3974
  }] }] });
3868
3975
 
3869
- const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3976
+ const APIS = [AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3870
3977
 
3871
3978
  /**
3872
3979
  * Dcm.API.Client
@@ -3912,6 +4019,16 @@ const AmendConfirmationTypes = {
3912
4019
  * Do not edit the class manually.
3913
4020
  */
3914
4021
 
4022
+ /**
4023
+ * Dcm.API.Client
4024
+ *
4025
+ *
4026
+ *
4027
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4028
+ * https://openapi-generator.tech
4029
+ * Do not edit the class manually.
4030
+ */
4031
+
3915
4032
  /**
3916
4033
  * Dcm.API.Client
3917
4034
  *
@@ -4237,6 +4354,16 @@ const EntityState = {
4237
4354
  Modified: 'Modified'
4238
4355
  };
4239
4356
 
4357
+ /**
4358
+ * Dcm.API.Client
4359
+ *
4360
+ *
4361
+ *
4362
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4363
+ * https://openapi-generator.tech
4364
+ * Do not edit the class manually.
4365
+ */
4366
+
4240
4367
  /**
4241
4368
  * Dcm.API.Client
4242
4369
  *
@@ -4372,16 +4499,6 @@ const PowerBiTenant = {
4372
4499
  Others: 'Others'
4373
4500
  };
4374
4501
 
4375
- /**
4376
- * Dcm.API.Client
4377
- *
4378
- *
4379
- *
4380
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4381
- * https://openapi-generator.tech
4382
- * Do not edit the class manually.
4383
- */
4384
-
4385
4502
  /**
4386
4503
  * Dcm.API.Client
4387
4504
  *
@@ -4791,5 +4908,5 @@ function provideApi(configOrBasePath) {
4791
4908
  * Generated bundle index. Do not edit.
4792
4909
  */
4793
4910
 
4794
- export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, 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 };
4911
+ export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, 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 };
4795
4912
  //# sourceMappingURL=indigina-dcm-api.mjs.map