@indigina/dcm-api 0.0.23 → 0.0.25

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.
@@ -1244,6 +1244,53 @@ class ShipmentsService {
1244
1244
  reportProgress: reportProgress
1245
1245
  });
1246
1246
  }
1247
+ getShipmentSummary(id, observe = 'body', reportProgress = false, options) {
1248
+ if (id === null || id === undefined) {
1249
+ throw new Error('Required parameter id was null or undefined when calling getShipmentSummary.');
1250
+ }
1251
+ let localVarHeaders = this.defaultHeaders;
1252
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1253
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1254
+ // to determine the Accept header
1255
+ const httpHeaderAccepts = [
1256
+ 'application/json'
1257
+ ];
1258
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1259
+ }
1260
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1261
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1262
+ }
1263
+ let localVarHttpContext = options && options.context;
1264
+ if (localVarHttpContext === undefined) {
1265
+ localVarHttpContext = new HttpContext();
1266
+ }
1267
+ let localVarTransferCache = options && options.transferCache;
1268
+ if (localVarTransferCache === undefined) {
1269
+ localVarTransferCache = true;
1270
+ }
1271
+ let responseType_ = 'json';
1272
+ if (localVarHttpHeaderAcceptSelected) {
1273
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1274
+ responseType_ = 'text';
1275
+ }
1276
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1277
+ responseType_ = 'json';
1278
+ }
1279
+ else {
1280
+ responseType_ = 'blob';
1281
+ }
1282
+ }
1283
+ let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
1284
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1285
+ context: localVarHttpContext,
1286
+ responseType: responseType_,
1287
+ withCredentials: this.configuration.withCredentials,
1288
+ headers: localVarHeaders,
1289
+ observe: observe,
1290
+ transferCache: localVarTransferCache,
1291
+ reportProgress: reportProgress
1292
+ });
1293
+ }
1247
1294
  getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1248
1295
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1249
1296
  if ($skip !== undefined && $skip !== null) {
@@ -1396,6 +1443,67 @@ class ShipmentsService {
1396
1443
  reportProgress: reportProgress
1397
1444
  });
1398
1445
  }
1446
+ getShipmentsFromIndex($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1447
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1448
+ if ($skip !== undefined && $skip !== null) {
1449
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1450
+ }
1451
+ if ($top !== undefined && $top !== null) {
1452
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1453
+ }
1454
+ if ($orderby !== undefined && $orderby !== null) {
1455
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1456
+ }
1457
+ if ($filter !== undefined && $filter !== null) {
1458
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1459
+ }
1460
+ if ($search !== undefined && $search !== null) {
1461
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1462
+ }
1463
+ let localVarHeaders = this.defaultHeaders;
1464
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1465
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1466
+ // to determine the Accept header
1467
+ const httpHeaderAccepts = [
1468
+ 'application/json'
1469
+ ];
1470
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1471
+ }
1472
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1473
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1474
+ }
1475
+ let localVarHttpContext = options && options.context;
1476
+ if (localVarHttpContext === undefined) {
1477
+ localVarHttpContext = new HttpContext();
1478
+ }
1479
+ let localVarTransferCache = options && options.transferCache;
1480
+ if (localVarTransferCache === undefined) {
1481
+ localVarTransferCache = true;
1482
+ }
1483
+ let responseType_ = 'json';
1484
+ if (localVarHttpHeaderAcceptSelected) {
1485
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1486
+ responseType_ = 'text';
1487
+ }
1488
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1489
+ responseType_ = 'json';
1490
+ }
1491
+ else {
1492
+ responseType_ = 'blob';
1493
+ }
1494
+ }
1495
+ let localVarPath = `/shipments/search`;
1496
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1497
+ context: localVarHttpContext,
1498
+ params: localVarQueryParameters,
1499
+ responseType: responseType_,
1500
+ withCredentials: this.configuration.withCredentials,
1501
+ headers: localVarHeaders,
1502
+ observe: observe,
1503
+ transferCache: localVarTransferCache,
1504
+ reportProgress: reportProgress
1505
+ });
1506
+ }
1399
1507
  getShipmentsInTransitCount(observe = 'body', reportProgress = false, options) {
1400
1508
  let localVarHeaders = this.defaultHeaders;
1401
1509
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -1986,6 +2094,17 @@ const APIS = [BookingsService, ContainersService, HealthService, PermissionsServ
1986
2094
  * Do not edit the class manually.
1987
2095
  */
1988
2096
 
2097
+ /**
2098
+ * Dcm.API.Client
2099
+ * DCM API Client for Angular applications
2100
+ *
2101
+ *
2102
+ *
2103
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2104
+ * https://openapi-generator.tech
2105
+ * Do not edit the class manually.
2106
+ */
2107
+
1989
2108
  /**
1990
2109
  * Dcm.API.Client
1991
2110
  * DCM API Client for Angular applications
@@ -2060,6 +2179,33 @@ const ShipmentState = {
2060
2179
  Cancelled: 'Cancelled'
2061
2180
  };
2062
2181
 
2182
+ /**
2183
+ * Dcm.API.Client
2184
+ * DCM API Client for Angular applications
2185
+ *
2186
+ *
2187
+ *
2188
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2189
+ * https://openapi-generator.tech
2190
+ * Do not edit the class manually.
2191
+ */
2192
+ const ShipmentTerm = {
2193
+ Cfr: 'CFR',
2194
+ Cif: 'CIF',
2195
+ Cip: 'CIP',
2196
+ Cpt: 'CPT',
2197
+ Daf: 'DAF',
2198
+ Ddp: 'DDP',
2199
+ Ddu: 'DDU',
2200
+ Des: 'DES',
2201
+ Deq: 'DEQ',
2202
+ Exw: 'EXW',
2203
+ Fas: 'FAS',
2204
+ Fca: 'FCA',
2205
+ Fob: 'FOB',
2206
+ Dap: 'DAP'
2207
+ };
2208
+
2063
2209
  /**
2064
2210
  * Dcm.API.Client
2065
2211
  * DCM API Client for Angular applications
@@ -2204,5 +2350,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
2204
2350
  * Generated bundle index. Do not edit.
2205
2351
  */
2206
2352
 
2207
- export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
2353
+ export { APIS, ApiModule, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, UserService };
2208
2354
  //# sourceMappingURL=indigina-dcm-api.mjs.map