@indigina/dcm-api 0.0.75 → 0.0.77

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.75
1
+ # @indigina/dcm-api@0.0.77
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.75 --save
27
+ npm install @indigina/dcm-api@0.0.77 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -562,16 +562,11 @@ class ContainersService extends BaseService {
562
562
  reportProgress: reportProgress
563
563
  });
564
564
  }
565
- getContainerDeliveryItems(containerIds, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
565
+ getContainerDeliveryItems(containerIds, observe = 'body', reportProgress = false, options) {
566
566
  if (containerIds === null || containerIds === undefined) {
567
567
  throw new Error('Required parameter containerIds was null or undefined when calling getContainerDeliveryItems.');
568
568
  }
569
569
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
570
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
571
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
572
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
573
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
574
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
575
570
  if (containerIds) {
576
571
  containerIds.forEach((element) => {
577
572
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'containerIds');
@@ -611,6 +606,50 @@ class ContainersService extends BaseService {
611
606
  reportProgress: reportProgress
612
607
  });
613
608
  }
609
+ getContainerDeliverySummary(containerIds, observe = 'body', reportProgress = false, options) {
610
+ if (containerIds === null || containerIds === undefined) {
611
+ throw new Error('Required parameter containerIds was null or undefined when calling getContainerDeliverySummary.');
612
+ }
613
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
614
+ if (containerIds) {
615
+ containerIds.forEach((element) => {
616
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'containerIds');
617
+ });
618
+ }
619
+ let localVarHeaders = this.defaultHeaders;
620
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
621
+ 'application/json'
622
+ ]);
623
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
624
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
625
+ }
626
+ const localVarHttpContext = options?.context ?? new HttpContext();
627
+ const localVarTransferCache = options?.transferCache ?? true;
628
+ let responseType_ = 'json';
629
+ if (localVarHttpHeaderAcceptSelected) {
630
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
631
+ responseType_ = 'text';
632
+ }
633
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
634
+ responseType_ = 'json';
635
+ }
636
+ else {
637
+ responseType_ = 'blob';
638
+ }
639
+ }
640
+ let localVarPath = `/containers/delivery/summary`;
641
+ const { basePath, withCredentials } = this.configuration;
642
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
643
+ context: localVarHttpContext,
644
+ params: localVarQueryParameters,
645
+ responseType: responseType_,
646
+ ...(withCredentials ? { withCredentials } : {}),
647
+ headers: localVarHeaders,
648
+ observe: observe,
649
+ transferCache: localVarTransferCache,
650
+ reportProgress: reportProgress
651
+ });
652
+ }
614
653
  getContainerItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
615
654
  if (id === null || id === undefined) {
616
655
  throw new Error('Required parameter id was null or undefined when calling getContainerItems.');
@@ -1118,6 +1157,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
1118
1157
  type: Optional
1119
1158
  }] }] });
1120
1159
 
1160
+ /**
1161
+ * Dcm.API.Client
1162
+ *
1163
+ *
1164
+ *
1165
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1166
+ * https://openapi-generator.tech
1167
+ * Do not edit the class manually.
1168
+ */
1169
+ /* tslint:disable:no-unused-variable member-ordering */
1170
+ class DcsService extends BaseService {
1171
+ httpClient;
1172
+ constructor(httpClient, basePath, configuration) {
1173
+ super(basePath, configuration);
1174
+ this.httpClient = httpClient;
1175
+ }
1176
+ getDc(id, observe = 'body', reportProgress = false, options) {
1177
+ if (id === null || id === undefined) {
1178
+ throw new Error('Required parameter id was null or undefined when calling getDc.');
1179
+ }
1180
+ let localVarHeaders = this.defaultHeaders;
1181
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1182
+ 'application/json'
1183
+ ]);
1184
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1185
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1186
+ }
1187
+ const localVarHttpContext = options?.context ?? new HttpContext();
1188
+ const localVarTransferCache = options?.transferCache ?? true;
1189
+ let responseType_ = 'json';
1190
+ if (localVarHttpHeaderAcceptSelected) {
1191
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1192
+ responseType_ = 'text';
1193
+ }
1194
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1195
+ responseType_ = 'json';
1196
+ }
1197
+ else {
1198
+ responseType_ = 'blob';
1199
+ }
1200
+ }
1201
+ let localVarPath = `/dcs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1202
+ const { basePath, withCredentials } = this.configuration;
1203
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1204
+ context: localVarHttpContext,
1205
+ responseType: responseType_,
1206
+ ...(withCredentials ? { withCredentials } : {}),
1207
+ headers: localVarHeaders,
1208
+ observe: observe,
1209
+ transferCache: localVarTransferCache,
1210
+ reportProgress: reportProgress
1211
+ });
1212
+ }
1213
+ getDcs($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1214
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1215
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1216
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1217
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1218
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1219
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1220
+ let localVarHeaders = this.defaultHeaders;
1221
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1222
+ 'application/json'
1223
+ ]);
1224
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1225
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1226
+ }
1227
+ const localVarHttpContext = options?.context ?? new HttpContext();
1228
+ const localVarTransferCache = options?.transferCache ?? true;
1229
+ let responseType_ = 'json';
1230
+ if (localVarHttpHeaderAcceptSelected) {
1231
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1232
+ responseType_ = 'text';
1233
+ }
1234
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1235
+ responseType_ = 'json';
1236
+ }
1237
+ else {
1238
+ responseType_ = 'blob';
1239
+ }
1240
+ }
1241
+ let localVarPath = `/dcs`;
1242
+ const { basePath, withCredentials } = this.configuration;
1243
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1244
+ context: localVarHttpContext,
1245
+ params: localVarQueryParameters,
1246
+ responseType: responseType_,
1247
+ ...(withCredentials ? { withCredentials } : {}),
1248
+ headers: localVarHeaders,
1249
+ observe: observe,
1250
+ transferCache: localVarTransferCache,
1251
+ reportProgress: reportProgress
1252
+ });
1253
+ }
1254
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1255
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, providedIn: 'root' });
1256
+ }
1257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, decorators: [{
1258
+ type: Injectable,
1259
+ args: [{
1260
+ providedIn: 'root'
1261
+ }]
1262
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1263
+ type: Optional
1264
+ }, {
1265
+ type: Inject,
1266
+ args: [BASE_PATH]
1267
+ }] }, { type: Configuration, decorators: [{
1268
+ type: Optional
1269
+ }] }] });
1270
+
1121
1271
  /**
1122
1272
  * Dcm.API.Client
1123
1273
  *
@@ -1134,6 +1284,89 @@ class DeliveryBookingsService extends BaseService {
1134
1284
  super(basePath, configuration);
1135
1285
  this.httpClient = httpClient;
1136
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
+ }
1333
+ getDeliveryBooking(id, observe = 'body', reportProgress = false, options) {
1334
+ if (id === null || id === undefined) {
1335
+ throw new Error('Required parameter id was null or undefined when calling getDeliveryBooking.');
1336
+ }
1337
+ let localVarHeaders = this.defaultHeaders;
1338
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1339
+ 'application/json'
1340
+ ]);
1341
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1342
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1343
+ }
1344
+ const localVarHttpContext = options?.context ?? new HttpContext();
1345
+ const localVarTransferCache = options?.transferCache ?? true;
1346
+ let responseType_ = 'json';
1347
+ if (localVarHttpHeaderAcceptSelected) {
1348
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1349
+ responseType_ = 'text';
1350
+ }
1351
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1352
+ responseType_ = 'json';
1353
+ }
1354
+ else {
1355
+ responseType_ = 'blob';
1356
+ }
1357
+ }
1358
+ let localVarPath = `/deliveryBookings/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1359
+ const { basePath, withCredentials } = this.configuration;
1360
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1361
+ context: localVarHttpContext,
1362
+ responseType: responseType_,
1363
+ ...(withCredentials ? { withCredentials } : {}),
1364
+ headers: localVarHeaders,
1365
+ observe: observe,
1366
+ transferCache: localVarTransferCache,
1367
+ reportProgress: reportProgress
1368
+ });
1369
+ }
1137
1370
  getDeliveryBookings($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1138
1371
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1139
1372
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -1440,12 +1673,12 @@ class NotesService extends BaseService {
1440
1673
  reportProgress: reportProgress
1441
1674
  });
1442
1675
  }
1443
- 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) {
1444
1677
  if (sourceId === null || sourceId === undefined) {
1445
- 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.');
1446
1679
  }
1447
1680
  if (type === null || type === undefined) {
1448
- 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.');
1449
1682
  }
1450
1683
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1451
1684
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -3283,7 +3516,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
3283
3516
  type: Optional
3284
3517
  }] }] });
3285
3518
 
3286
- const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3519
+ const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3287
3520
 
3288
3521
  /**
3289
3522
  * Dcm.API.Client
@@ -3498,6 +3731,26 @@ const ContainerType = {
3498
3731
  * Do not edit the class manually.
3499
3732
  */
3500
3733
 
3734
+ /**
3735
+ * Dcm.API.Client
3736
+ *
3737
+ *
3738
+ *
3739
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3740
+ * https://openapi-generator.tech
3741
+ * Do not edit the class manually.
3742
+ */
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
+
3501
3754
  /**
3502
3755
  * Dcm.API.Client
3503
3756
  *
@@ -3633,7 +3886,9 @@ const JourneySegmentType = {
3633
3886
  * Do not edit the class manually.
3634
3887
  */
3635
3888
  const NoteSourceTypes = {
3636
- Shipment: 'Shipment'
3889
+ Shipment: 'Shipment',
3890
+ Delivery: 'Delivery',
3891
+ DcClientDeliveryBooking: 'DCClientDeliveryBooking'
3637
3892
  };
3638
3893
 
3639
3894
  /**
@@ -4115,5 +4370,5 @@ function provideApi(configOrBasePath) {
4115
4370
  * Generated bundle index. Do not edit.
4116
4371
  */
4117
4372
 
4118
- export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts, provideApi };
4373
+ export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts, provideApi };
4119
4374
  //# sourceMappingURL=indigina-dcm-api.mjs.map