@indigina/dcm-api 0.0.51 → 0.0.53

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.51
1
+ # @indigina/dcm-api@0.0.53
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.51 --save
27
+ npm install @indigina/dcm-api@0.0.53 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -1,5 +1,7 @@
1
1
  import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
+ import { ContainerItems } from '../model/containerItems';
4
+ import { Containers } from '../model/containers';
3
5
  import { ContainersCount } from '../model/containersCount';
4
6
  import { ContainersToDeliverCount } from '../model/containersToDeliverCount';
5
7
  import { ShipmentContainers } from '../model/shipmentContainers';
@@ -14,6 +16,82 @@ export declare class ContainersService {
14
16
  constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
15
17
  private addToHttpParams;
16
18
  private addToHttpParamsRecursive;
19
+ /**
20
+ * Getting container items
21
+ * @param id
22
+ * @param $skip
23
+ * @param $top
24
+ * @param $orderby
25
+ * @param $filter
26
+ * @param $search
27
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
28
+ * @param reportProgress flag to report request and response progress.
29
+ */
30
+ getContainerItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
31
+ httpHeaderAccept?: 'application/json';
32
+ context?: HttpContext;
33
+ transferCache?: boolean;
34
+ }): Observable<ContainerItems>;
35
+ getContainerItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
36
+ httpHeaderAccept?: 'application/json';
37
+ context?: HttpContext;
38
+ transferCache?: boolean;
39
+ }): Observable<HttpResponse<ContainerItems>>;
40
+ getContainerItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
41
+ httpHeaderAccept?: 'application/json';
42
+ context?: HttpContext;
43
+ transferCache?: boolean;
44
+ }): Observable<HttpEvent<ContainerItems>>;
45
+ /**
46
+ * Containers list
47
+ * @param $skip
48
+ * @param $top
49
+ * @param $orderby
50
+ * @param $filter
51
+ * @param $search
52
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
53
+ * @param reportProgress flag to report request and response progress.
54
+ */
55
+ getContainers($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
56
+ httpHeaderAccept?: 'application/json';
57
+ context?: HttpContext;
58
+ transferCache?: boolean;
59
+ }): Observable<Containers>;
60
+ getContainers($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
61
+ httpHeaderAccept?: 'application/json';
62
+ context?: HttpContext;
63
+ transferCache?: boolean;
64
+ }): Observable<HttpResponse<Containers>>;
65
+ getContainers($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
66
+ httpHeaderAccept?: 'application/json';
67
+ context?: HttpContext;
68
+ transferCache?: boolean;
69
+ }): Observable<HttpEvent<Containers>>;
70
+ /**
71
+ * Containers list
72
+ * @param $skip
73
+ * @param $top
74
+ * @param $orderby
75
+ * @param $filter
76
+ * @param searchTerm
77
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
78
+ * @param reportProgress flag to report request and response progress.
79
+ */
80
+ getContainersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
81
+ httpHeaderAccept?: 'application/json';
82
+ context?: HttpContext;
83
+ transferCache?: boolean;
84
+ }): Observable<Containers>;
85
+ getContainersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'response', reportProgress?: boolean, options?: {
86
+ httpHeaderAccept?: 'application/json';
87
+ context?: HttpContext;
88
+ transferCache?: boolean;
89
+ }): Observable<HttpResponse<Containers>>;
90
+ getContainersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'events', reportProgress?: boolean, options?: {
91
+ httpHeaderAccept?: 'application/json';
92
+ context?: HttpContext;
93
+ transferCache?: boolean;
94
+ }): Observable<HttpEvent<Containers>>;
17
95
  /**
18
96
  * Containers to deliver
19
97
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -509,6 +509,192 @@ class ContainersService {
509
509
  }
510
510
  return httpParams;
511
511
  }
512
+ getContainerItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
513
+ if (id === null || id === undefined) {
514
+ throw new Error('Required parameter id was null or undefined when calling getContainerItems.');
515
+ }
516
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
517
+ if ($skip !== undefined && $skip !== null) {
518
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
519
+ }
520
+ if ($top !== undefined && $top !== null) {
521
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
522
+ }
523
+ if ($orderby !== undefined && $orderby !== null) {
524
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
525
+ }
526
+ if ($filter !== undefined && $filter !== null) {
527
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
528
+ }
529
+ if ($search !== undefined && $search !== null) {
530
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
531
+ }
532
+ let localVarHeaders = this.defaultHeaders;
533
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
534
+ if (localVarHttpHeaderAcceptSelected === undefined) {
535
+ // to determine the Accept header
536
+ const httpHeaderAccepts = [
537
+ 'application/json'
538
+ ];
539
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
540
+ }
541
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
542
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
543
+ }
544
+ let localVarHttpContext = options && options.context;
545
+ if (localVarHttpContext === undefined) {
546
+ localVarHttpContext = new HttpContext();
547
+ }
548
+ let localVarTransferCache = options && options.transferCache;
549
+ if (localVarTransferCache === undefined) {
550
+ localVarTransferCache = true;
551
+ }
552
+ let responseType_ = 'json';
553
+ if (localVarHttpHeaderAcceptSelected) {
554
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
555
+ responseType_ = 'text';
556
+ }
557
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
558
+ responseType_ = 'json';
559
+ }
560
+ else {
561
+ responseType_ = 'blob';
562
+ }
563
+ }
564
+ let localVarPath = `/containers/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
565
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
566
+ context: localVarHttpContext,
567
+ params: localVarQueryParameters,
568
+ responseType: responseType_,
569
+ withCredentials: this.configuration.withCredentials,
570
+ headers: localVarHeaders,
571
+ observe: observe,
572
+ transferCache: localVarTransferCache,
573
+ reportProgress: reportProgress
574
+ });
575
+ }
576
+ getContainers($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
577
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
578
+ if ($skip !== undefined && $skip !== null) {
579
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
580
+ }
581
+ if ($top !== undefined && $top !== null) {
582
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
583
+ }
584
+ if ($orderby !== undefined && $orderby !== null) {
585
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
586
+ }
587
+ if ($filter !== undefined && $filter !== null) {
588
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
589
+ }
590
+ if ($search !== undefined && $search !== null) {
591
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
592
+ }
593
+ let localVarHeaders = this.defaultHeaders;
594
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
595
+ if (localVarHttpHeaderAcceptSelected === undefined) {
596
+ // to determine the Accept header
597
+ const httpHeaderAccepts = [
598
+ 'application/json'
599
+ ];
600
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
601
+ }
602
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
603
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
604
+ }
605
+ let localVarHttpContext = options && options.context;
606
+ if (localVarHttpContext === undefined) {
607
+ localVarHttpContext = new HttpContext();
608
+ }
609
+ let localVarTransferCache = options && options.transferCache;
610
+ if (localVarTransferCache === undefined) {
611
+ localVarTransferCache = true;
612
+ }
613
+ let responseType_ = 'json';
614
+ if (localVarHttpHeaderAcceptSelected) {
615
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
616
+ responseType_ = 'text';
617
+ }
618
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
619
+ responseType_ = 'json';
620
+ }
621
+ else {
622
+ responseType_ = 'blob';
623
+ }
624
+ }
625
+ let localVarPath = `/containers`;
626
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
627
+ context: localVarHttpContext,
628
+ params: localVarQueryParameters,
629
+ responseType: responseType_,
630
+ withCredentials: this.configuration.withCredentials,
631
+ headers: localVarHeaders,
632
+ observe: observe,
633
+ transferCache: localVarTransferCache,
634
+ reportProgress: reportProgress
635
+ });
636
+ }
637
+ getContainersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
638
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
639
+ if ($skip !== undefined && $skip !== null) {
640
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
641
+ }
642
+ if ($top !== undefined && $top !== null) {
643
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
644
+ }
645
+ if ($orderby !== undefined && $orderby !== null) {
646
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
647
+ }
648
+ if ($filter !== undefined && $filter !== null) {
649
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
650
+ }
651
+ if (searchTerm !== undefined && searchTerm !== null) {
652
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
653
+ }
654
+ let localVarHeaders = this.defaultHeaders;
655
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
656
+ if (localVarHttpHeaderAcceptSelected === undefined) {
657
+ // to determine the Accept header
658
+ const httpHeaderAccepts = [
659
+ 'application/json'
660
+ ];
661
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
662
+ }
663
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
664
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
665
+ }
666
+ let localVarHttpContext = options && options.context;
667
+ if (localVarHttpContext === undefined) {
668
+ localVarHttpContext = new HttpContext();
669
+ }
670
+ let localVarTransferCache = options && options.transferCache;
671
+ if (localVarTransferCache === undefined) {
672
+ localVarTransferCache = true;
673
+ }
674
+ let responseType_ = 'json';
675
+ if (localVarHttpHeaderAcceptSelected) {
676
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
677
+ responseType_ = 'text';
678
+ }
679
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
680
+ responseType_ = 'json';
681
+ }
682
+ else {
683
+ responseType_ = 'blob';
684
+ }
685
+ }
686
+ let localVarPath = `/containers/search`;
687
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
688
+ context: localVarHttpContext,
689
+ params: localVarQueryParameters,
690
+ responseType: responseType_,
691
+ withCredentials: this.configuration.withCredentials,
692
+ headers: localVarHeaders,
693
+ observe: observe,
694
+ transferCache: localVarTransferCache,
695
+ reportProgress: reportProgress
696
+ });
697
+ }
512
698
  getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
513
699
  let localVarHeaders = this.defaultHeaders;
514
700
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -4072,7 +4258,75 @@ const ApprovalTypes = {
4072
4258
  * https://openapi-generator.tech
4073
4259
  * Do not edit the class manually.
4074
4260
  */
4075
- const ContainerTypes = {
4261
+ const ContainerBookedState = {
4262
+ ToBooked: 'ToBooked',
4263
+ Booked: 'Booked',
4264
+ Confirmed: 'Confirmed',
4265
+ Delivered: 'Delivered',
4266
+ ToReschedule: 'ToReschedule',
4267
+ Amended: 'Amended'
4268
+ };
4269
+
4270
+ /**
4271
+ * Dcm.API.Client
4272
+ *
4273
+ *
4274
+ *
4275
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4276
+ * https://openapi-generator.tech
4277
+ * Do not edit the class manually.
4278
+ */
4279
+
4280
+ /**
4281
+ * Dcm.API.Client
4282
+ *
4283
+ *
4284
+ *
4285
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4286
+ * https://openapi-generator.tech
4287
+ * Do not edit the class manually.
4288
+ */
4289
+ const ContainerSize = {
4290
+ Lcl: 'Lcl',
4291
+ Twenty: 'Twenty',
4292
+ Forty: 'Forty',
4293
+ FortyH: 'FortyHс',
4294
+ FortyFive: 'FortyFive',
4295
+ Ld2: 'Ld2',
4296
+ Ld3: 'Ld3',
4297
+ Ld4: 'Ld4',
4298
+ Ld7: 'Ld7',
4299
+ Ld8: 'Ld8',
4300
+ Ld11: 'Ld11',
4301
+ MainDeckPallet: 'MainDeckPallet',
4302
+ P9ALowerDeckPallet: 'P9ALowerDeckPallet',
4303
+ SharedUnknown: 'SharedUnknown',
4304
+ BoxedTrailer: 'BoxedTrailer',
4305
+ TiltTrailer: 'TiltTrailer',
4306
+ RoadTrainBoxed: 'RoadTrainBoxed',
4307
+ RoadTrainTilt: 'RoadTrainTilt',
4308
+ StepFrameBoxed: 'StepFrameBoxed',
4309
+ StepFrameTilt: 'StepFrameTilt',
4310
+ Road1: 'Road1',
4311
+ Road2: 'Road2',
4312
+ TwentyNor: 'TwentyNor',
4313
+ FortyNor: 'FortyNor',
4314
+ FortyHcnor: 'FortyHcnor',
4315
+ OtherAir: 'OtherAir',
4316
+ OtherSea: 'OtherSea',
4317
+ OtherRoad: 'OtherRoad'
4318
+ };
4319
+
4320
+ /**
4321
+ * Dcm.API.Client
4322
+ *
4323
+ *
4324
+ *
4325
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4326
+ * https://openapi-generator.tech
4327
+ * Do not edit the class manually.
4328
+ */
4329
+ const ContainerType = {
4076
4330
  CfsCfs: 'CfsCfs',
4077
4331
  CfsCy: 'CfsCy',
4078
4332
  CyCy: 'CyCy'
@@ -4257,6 +4511,22 @@ const NoteSourceTypes = {
4257
4511
  * Do not edit the class manually.
4258
4512
  */
4259
4513
 
4514
+ /**
4515
+ * Dcm.API.Client
4516
+ *
4517
+ *
4518
+ *
4519
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4520
+ * https://openapi-generator.tech
4521
+ * Do not edit the class manually.
4522
+ */
4523
+ const PoItemState = {
4524
+ NotAllocated: 'NotAllocated',
4525
+ Allocated: 'Allocated',
4526
+ Complete: 'Complete',
4527
+ Deleted: 'Deleted'
4528
+ };
4529
+
4260
4530
  /**
4261
4531
  * Dcm.API.Client
4262
4532
  *
@@ -4635,5 +4905,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
4635
4905
  * Generated bundle index. Do not edit.
4636
4906
  */
4637
4907
 
4638
- export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
4908
+ export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
4639
4909
  //# sourceMappingURL=indigina-dcm-api.mjs.map