@indigina/myseko-api 0.0.26 → 0.0.27
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/myseko-api@0.0.
|
|
1
|
+
# @indigina/myseko-api@0.0.27
|
|
2
2
|
|
|
3
3
|
MySeko 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/myseko-api@0.0.
|
|
27
|
+
npm install @indigina/myseko-api@0.0.27 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -649,6 +649,197 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
649
649
|
type: Optional
|
|
650
650
|
}] }] });
|
|
651
651
|
|
|
652
|
+
/**
|
|
653
|
+
* MySeko.API.Client
|
|
654
|
+
*
|
|
655
|
+
*
|
|
656
|
+
*
|
|
657
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
658
|
+
* https://openapi-generator.tech
|
|
659
|
+
* Do not edit the class manually.
|
|
660
|
+
*/
|
|
661
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
662
|
+
class DocumentService extends BaseService {
|
|
663
|
+
httpClient;
|
|
664
|
+
constructor(httpClient, basePath, configuration) {
|
|
665
|
+
super(basePath, configuration);
|
|
666
|
+
this.httpClient = httpClient;
|
|
667
|
+
}
|
|
668
|
+
addShipmentDocument(ordOrderID, addDocumentRequest, observe = 'body', reportProgress = false, options) {
|
|
669
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
670
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling addShipmentDocument.');
|
|
671
|
+
}
|
|
672
|
+
if (addDocumentRequest === null || addDocumentRequest === undefined) {
|
|
673
|
+
throw new Error('Required parameter addDocumentRequest was null or undefined when calling addShipmentDocument.');
|
|
674
|
+
}
|
|
675
|
+
let localVarHeaders = this.defaultHeaders;
|
|
676
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
677
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
678
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
679
|
+
}
|
|
680
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
681
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
682
|
+
// to determine the Content-Type header
|
|
683
|
+
const consumes = [
|
|
684
|
+
'application/json'
|
|
685
|
+
];
|
|
686
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
687
|
+
if (httpContentTypeSelected !== undefined) {
|
|
688
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
689
|
+
}
|
|
690
|
+
let responseType_ = 'json';
|
|
691
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
692
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
693
|
+
responseType_ = 'text';
|
|
694
|
+
}
|
|
695
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
696
|
+
responseType_ = 'json';
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
responseType_ = 'blob';
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/documents`;
|
|
703
|
+
const { basePath, withCredentials } = this.configuration;
|
|
704
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
705
|
+
context: localVarHttpContext,
|
|
706
|
+
body: addDocumentRequest,
|
|
707
|
+
responseType: responseType_,
|
|
708
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
709
|
+
headers: localVarHeaders,
|
|
710
|
+
observe: observe,
|
|
711
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
712
|
+
reportProgress: reportProgress
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
getDocumentCategories(observe = 'body', reportProgress = false, options) {
|
|
716
|
+
let localVarHeaders = this.defaultHeaders;
|
|
717
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
718
|
+
'application/json'
|
|
719
|
+
]);
|
|
720
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
721
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
722
|
+
}
|
|
723
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
724
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
725
|
+
let responseType_ = 'json';
|
|
726
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
727
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
728
|
+
responseType_ = 'text';
|
|
729
|
+
}
|
|
730
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
731
|
+
responseType_ = 'json';
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
responseType_ = 'blob';
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
let localVarPath = `/myseko/documents/categories`;
|
|
738
|
+
const { basePath, withCredentials } = this.configuration;
|
|
739
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
740
|
+
context: localVarHttpContext,
|
|
741
|
+
responseType: responseType_,
|
|
742
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
743
|
+
headers: localVarHeaders,
|
|
744
|
+
observe: observe,
|
|
745
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
746
|
+
reportProgress: reportProgress
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
getShipmentDocument(ordOrderID, documentID, observe = 'body', reportProgress = false, options) {
|
|
750
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
751
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentDocument.');
|
|
752
|
+
}
|
|
753
|
+
if (documentID === null || documentID === undefined) {
|
|
754
|
+
throw new Error('Required parameter documentID was null or undefined when calling getShipmentDocument.');
|
|
755
|
+
}
|
|
756
|
+
let localVarHeaders = this.defaultHeaders;
|
|
757
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
758
|
+
'application/json'
|
|
759
|
+
]);
|
|
760
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
761
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
762
|
+
}
|
|
763
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
764
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
765
|
+
let responseType_ = 'json';
|
|
766
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
767
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
768
|
+
responseType_ = 'text';
|
|
769
|
+
}
|
|
770
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
771
|
+
responseType_ = 'json';
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
responseType_ = 'blob';
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/documents/${this.configuration.encodeParam({ name: "documentID", value: documentID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
778
|
+
const { basePath, withCredentials } = this.configuration;
|
|
779
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
780
|
+
context: localVarHttpContext,
|
|
781
|
+
responseType: responseType_,
|
|
782
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
783
|
+
headers: localVarHeaders,
|
|
784
|
+
observe: observe,
|
|
785
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
786
|
+
reportProgress: reportProgress
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
getShipmentDocuments(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
790
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
791
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentDocuments.');
|
|
792
|
+
}
|
|
793
|
+
let localVarHeaders = this.defaultHeaders;
|
|
794
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
795
|
+
'application/json'
|
|
796
|
+
]);
|
|
797
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
798
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
799
|
+
}
|
|
800
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
801
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
802
|
+
let responseType_ = 'json';
|
|
803
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
804
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
805
|
+
responseType_ = 'text';
|
|
806
|
+
}
|
|
807
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
808
|
+
responseType_ = 'json';
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
responseType_ = 'blob';
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/documents`;
|
|
815
|
+
const { basePath, withCredentials } = this.configuration;
|
|
816
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
817
|
+
context: localVarHttpContext,
|
|
818
|
+
responseType: responseType_,
|
|
819
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
820
|
+
headers: localVarHeaders,
|
|
821
|
+
observe: observe,
|
|
822
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
823
|
+
reportProgress: reportProgress
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
827
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
828
|
+
}
|
|
829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DocumentService, decorators: [{
|
|
830
|
+
type: Injectable,
|
|
831
|
+
args: [{
|
|
832
|
+
providedIn: 'root'
|
|
833
|
+
}]
|
|
834
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
835
|
+
type: Optional
|
|
836
|
+
}, {
|
|
837
|
+
type: Inject,
|
|
838
|
+
args: [BASE_PATH]
|
|
839
|
+
}] }, { type: Configuration, decorators: [{
|
|
840
|
+
type: Optional
|
|
841
|
+
}] }] });
|
|
842
|
+
|
|
652
843
|
/**
|
|
653
844
|
* MySeko.API.Client
|
|
654
845
|
*
|
|
@@ -1678,7 +1869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
1678
1869
|
type: Optional
|
|
1679
1870
|
}] }] });
|
|
1680
1871
|
|
|
1681
|
-
const APIS = [AuthService, CalendarService, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
|
|
1872
|
+
const APIS = [AuthService, CalendarService, DashboardService, DocumentService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
|
|
1682
1873
|
|
|
1683
1874
|
/**
|
|
1684
1875
|
* MySeko.API.Client
|
|
@@ -1747,6 +1938,106 @@ const CalendarViewBy = {
|
|
|
1747
1938
|
* Do not edit the class manually.
|
|
1748
1939
|
*/
|
|
1749
1940
|
|
|
1941
|
+
/**
|
|
1942
|
+
* MySeko.API.Client
|
|
1943
|
+
*
|
|
1944
|
+
*
|
|
1945
|
+
*
|
|
1946
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1947
|
+
* https://openapi-generator.tech
|
|
1948
|
+
* Do not edit the class manually.
|
|
1949
|
+
*/
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* MySeko.API.Client
|
|
1953
|
+
*
|
|
1954
|
+
*
|
|
1955
|
+
*
|
|
1956
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1957
|
+
* https://openapi-generator.tech
|
|
1958
|
+
* Do not edit the class manually.
|
|
1959
|
+
*/
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* MySeko.API.Client
|
|
1963
|
+
*
|
|
1964
|
+
*
|
|
1965
|
+
*
|
|
1966
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1967
|
+
* https://openapi-generator.tech
|
|
1968
|
+
* Do not edit the class manually.
|
|
1969
|
+
*/
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* MySeko.API.Client
|
|
1973
|
+
*
|
|
1974
|
+
*
|
|
1975
|
+
*
|
|
1976
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1977
|
+
* https://openapi-generator.tech
|
|
1978
|
+
* Do not edit the class manually.
|
|
1979
|
+
*/
|
|
1980
|
+
const DocumentCategoryType = {
|
|
1981
|
+
None: 'None',
|
|
1982
|
+
Other: 'Other',
|
|
1983
|
+
Sli: 'SLI',
|
|
1984
|
+
TmsQuoteFinal: 'TMSQuoteFinal',
|
|
1985
|
+
Bol: 'BOL',
|
|
1986
|
+
Invoice: 'Invoice',
|
|
1987
|
+
PackingList: 'Packing_list',
|
|
1988
|
+
CertificateOfOrigin: 'Certificate_of_Origin',
|
|
1989
|
+
FormA: 'Form_A',
|
|
1990
|
+
T1: 'T1',
|
|
1991
|
+
T2: 'T2',
|
|
1992
|
+
DangerousGoods: 'Dangerous_goods',
|
|
1993
|
+
ExportLicense: 'Export_license',
|
|
1994
|
+
ImportLicense: 'Import_license',
|
|
1995
|
+
ClearanceInvoice: 'clearance_invoice',
|
|
1996
|
+
ShippingOrder: 'Shipping_order',
|
|
1997
|
+
LoadingImage: 'Loading_image',
|
|
1998
|
+
Bc: 'BC',
|
|
1999
|
+
Lo: 'LO',
|
|
2000
|
+
Sc: 'SC',
|
|
2001
|
+
IsfReport: 'ISF_report',
|
|
2002
|
+
BillingAdvice: 'Billing_advice',
|
|
2003
|
+
Cph: 'CPH',
|
|
2004
|
+
Cip: 'CIP',
|
|
2005
|
+
Civ: 'CIV',
|
|
2006
|
+
Coo: 'COO',
|
|
2007
|
+
Dgf: 'DGF',
|
|
2008
|
+
Fum: 'FUM',
|
|
2009
|
+
Hbl: 'HBL',
|
|
2010
|
+
Ins: 'INS',
|
|
2011
|
+
Mdc: 'MDC',
|
|
2012
|
+
Mcd: 'MCD',
|
|
2013
|
+
Mfd: 'MFD',
|
|
2014
|
+
Naf: 'NAF',
|
|
2015
|
+
Obl: 'OBL',
|
|
2016
|
+
Pkd: 'PKD',
|
|
2017
|
+
Pkl: 'PKL',
|
|
2018
|
+
Qrc: 'QRC',
|
|
2019
|
+
Tlx: 'TLX',
|
|
2020
|
+
Vgm: 'VGM',
|
|
2021
|
+
Awb: 'AWB',
|
|
2022
|
+
Ccc: 'CCC',
|
|
2023
|
+
Cus: 'CUS',
|
|
2024
|
+
Dor: 'DOR',
|
|
2025
|
+
Epr: 'EPR',
|
|
2026
|
+
Man: 'MAN',
|
|
2027
|
+
Pod: 'POD',
|
|
2028
|
+
Prl: 'PRL',
|
|
2029
|
+
Wmr: 'WMR',
|
|
2030
|
+
Ckl: 'CKL',
|
|
2031
|
+
Pus: 'PUS',
|
|
2032
|
+
Exinv: 'EXINV',
|
|
2033
|
+
DeliveryImage: 'Delivery_Image',
|
|
2034
|
+
Lbl: 'LBL',
|
|
2035
|
+
Quote: 'QUOTE',
|
|
2036
|
+
ProofOfPickup: 'Proof_of_Pickup',
|
|
2037
|
+
PuSig: 'PU_SIG',
|
|
2038
|
+
DelSig: 'Del_SIG'
|
|
2039
|
+
};
|
|
2040
|
+
|
|
1750
2041
|
/**
|
|
1751
2042
|
* MySeko.API.Client
|
|
1752
2043
|
*
|
|
@@ -1986,5 +2277,5 @@ function provideApi(configOrBasePath) {
|
|
|
1986
2277
|
* Generated bundle index. Do not edit.
|
|
1987
2278
|
*/
|
|
1988
2279
|
|
|
1989
|
-
export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, ShipmentStage, UserService, UsergroupService, provideApi };
|
|
2280
|
+
export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, DocumentCategoryType, DocumentService, HealthService, SettingsService, ShipmentService, ShipmentStage, UserService, UsergroupService, provideApi };
|
|
1990
2281
|
//# sourceMappingURL=indigina-myseko-api.mjs.map
|