@indigina/dcm-api 0.0.76 → 0.0.78

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.76
1
+ # @indigina/dcm-api@0.0.78
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.76 --save
27
+ npm install @indigina/dcm-api@0.0.78 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -1284,6 +1284,52 @@ class DeliveryBookingsService extends BaseService {
1284
1284
  super(basePath, configuration);
1285
1285
  this.httpClient = httpClient;
1286
1286
  }
1287
+ createDeliveryBooking(createDcClientDeliveryBooking, observe = 'body', reportProgress = false, options) {
1288
+ if (createDcClientDeliveryBooking === null || createDcClientDeliveryBooking === undefined) {
1289
+ throw new Error('Required parameter createDcClientDeliveryBooking was null or undefined when calling createDeliveryBooking.');
1290
+ }
1291
+ let localVarHeaders = this.defaultHeaders;
1292
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1293
+ 'application/json'
1294
+ ]);
1295
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1296
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1297
+ }
1298
+ const localVarHttpContext = options?.context ?? new HttpContext();
1299
+ const localVarTransferCache = options?.transferCache ?? true;
1300
+ // to determine the Content-Type header
1301
+ const consumes = [
1302
+ 'application/json'
1303
+ ];
1304
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1305
+ if (httpContentTypeSelected !== undefined) {
1306
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1307
+ }
1308
+ let responseType_ = 'json';
1309
+ if (localVarHttpHeaderAcceptSelected) {
1310
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1311
+ responseType_ = 'text';
1312
+ }
1313
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1314
+ responseType_ = 'json';
1315
+ }
1316
+ else {
1317
+ responseType_ = 'blob';
1318
+ }
1319
+ }
1320
+ let localVarPath = `/deliveryBookings`;
1321
+ const { basePath, withCredentials } = this.configuration;
1322
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1323
+ context: localVarHttpContext,
1324
+ body: createDcClientDeliveryBooking,
1325
+ responseType: responseType_,
1326
+ ...(withCredentials ? { withCredentials } : {}),
1327
+ headers: localVarHeaders,
1328
+ observe: observe,
1329
+ transferCache: localVarTransferCache,
1330
+ reportProgress: reportProgress
1331
+ });
1332
+ }
1287
1333
  getDeliveryBooking(id, observe = 'body', reportProgress = false, options) {
1288
1334
  if (id === null || id === undefined) {
1289
1335
  throw new Error('Required parameter id was null or undefined when calling getDeliveryBooking.');
@@ -1627,12 +1673,12 @@ class NotesService extends BaseService {
1627
1673
  reportProgress: reportProgress
1628
1674
  });
1629
1675
  }
1630
- getShipmentNotes(sourceId, type, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1676
+ getNotes(sourceId, type, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1631
1677
  if (sourceId === null || sourceId === undefined) {
1632
- throw new Error('Required parameter sourceId was null or undefined when calling getShipmentNotes.');
1678
+ throw new Error('Required parameter sourceId was null or undefined when calling getNotes.');
1633
1679
  }
1634
1680
  if (type === null || type === undefined) {
1635
- throw new Error('Required parameter type was null or undefined when calling getShipmentNotes.');
1681
+ throw new Error('Required parameter type was null or undefined when calling getNotes.');
1636
1682
  }
1637
1683
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1638
1684
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -3695,6 +3741,16 @@ const ContainerType = {
3695
3741
  * Do not edit the class manually.
3696
3742
  */
3697
3743
 
3744
+ /**
3745
+ * Dcm.API.Client
3746
+ *
3747
+ *
3748
+ *
3749
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3750
+ * https://openapi-generator.tech
3751
+ * Do not edit the class manually.
3752
+ */
3753
+
3698
3754
  /**
3699
3755
  * Dcm.API.Client
3700
3756
  *
@@ -3830,7 +3886,9 @@ const JourneySegmentType = {
3830
3886
  * Do not edit the class manually.
3831
3887
  */
3832
3888
  const NoteSourceTypes = {
3833
- Shipment: 'Shipment'
3889
+ Shipment: 'Shipment',
3890
+ Delivery: 'Delivery',
3891
+ DcClientDeliveryBooking: 'DCClientDeliveryBooking'
3834
3892
  };
3835
3893
 
3836
3894
  /**