@indigina/dcm-api 0.0.51 → 0.0.52
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 +2 -2
- package/api/containers.service.d.ts +78 -0
- package/fesm2022/indigina-dcm-api.mjs +206 -0
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/containerItemView.d.ts +25 -0
- package/model/containerItems.d.ts +14 -0
- package/model/containerView.d.ts +50 -0
- package/model/containers.d.ts +14 -0
- package/model/models.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.52
|
|
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.
|
|
27
|
+
npm install @indigina/dcm-api@0.0.52 --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;
|
|
@@ -4063,6 +4249,16 @@ const ApprovalTypes = {
|
|
|
4063
4249
|
* Do not edit the class manually.
|
|
4064
4250
|
*/
|
|
4065
4251
|
|
|
4252
|
+
/**
|
|
4253
|
+
* Dcm.API.Client
|
|
4254
|
+
*
|
|
4255
|
+
*
|
|
4256
|
+
*
|
|
4257
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4258
|
+
* https://openapi-generator.tech
|
|
4259
|
+
* Do not edit the class manually.
|
|
4260
|
+
*/
|
|
4261
|
+
|
|
4066
4262
|
/**
|
|
4067
4263
|
* Dcm.API.Client
|
|
4068
4264
|
*
|
|
@@ -4128,6 +4324,16 @@ const ContainerTypes = {
|
|
|
4128
4324
|
* Do not edit the class manually.
|
|
4129
4325
|
*/
|
|
4130
4326
|
|
|
4327
|
+
/**
|
|
4328
|
+
* Dcm.API.Client
|
|
4329
|
+
*
|
|
4330
|
+
*
|
|
4331
|
+
*
|
|
4332
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4333
|
+
* https://openapi-generator.tech
|
|
4334
|
+
* Do not edit the class manually.
|
|
4335
|
+
*/
|
|
4336
|
+
|
|
4131
4337
|
/**
|
|
4132
4338
|
* Dcm.API.Client
|
|
4133
4339
|
*
|