@indigina/dcm-api 0.0.39 → 0.0.40
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/api.d.ts +3 -1
- package/api/notes.service.d.ts +22 -0
- package/api/settings.service.d.ts +103 -0
- package/api/shipments.service.d.ts +48 -0
- package/esm2022/api/api.mjs +4 -2
- package/esm2022/api/notes.service.mjs +54 -1
- package/esm2022/api/settings.service.mjs +296 -0
- package/esm2022/api/shipments.service.mjs +112 -1
- package/esm2022/model/models.mjs +6 -1
- package/esm2022/model/note.mjs +1 -1
- package/esm2022/model/noteView.mjs +12 -0
- package/esm2022/model/notes.mjs +1 -1
- package/esm2022/model/settingValue.mjs +12 -0
- package/esm2022/model/settingView.mjs +12 -0
- package/esm2022/model/shipmentApproval.mjs +2 -0
- package/esm2022/model/shipmentApprovals.mjs +2 -0
- package/fesm2022/indigina-dcm-api.mjs +486 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/models.d.ts +5 -0
- package/model/note.d.ts +1 -3
- package/model/noteView.d.ts +17 -0
- package/model/notes.d.ts +2 -2
- package/model/settingValue.d.ts +14 -0
- package/model/settingView.d.ts +15 -0
- package/model/shipmentApproval.d.ts +58 -0
- package/model/shipmentApprovals.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1263,6 +1263,59 @@ class NotesService {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return httpParams;
|
|
1265
1265
|
}
|
|
1266
|
+
createShipmentNote(note, observe = 'body', reportProgress = false, options) {
|
|
1267
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1268
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1269
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1270
|
+
// to determine the Accept header
|
|
1271
|
+
const httpHeaderAccepts = [
|
|
1272
|
+
'application/json'
|
|
1273
|
+
];
|
|
1274
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1275
|
+
}
|
|
1276
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1277
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1278
|
+
}
|
|
1279
|
+
let localVarHttpContext = options && options.context;
|
|
1280
|
+
if (localVarHttpContext === undefined) {
|
|
1281
|
+
localVarHttpContext = new HttpContext();
|
|
1282
|
+
}
|
|
1283
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1284
|
+
if (localVarTransferCache === undefined) {
|
|
1285
|
+
localVarTransferCache = true;
|
|
1286
|
+
}
|
|
1287
|
+
// to determine the Content-Type header
|
|
1288
|
+
const consumes = [
|
|
1289
|
+
'application/json'
|
|
1290
|
+
];
|
|
1291
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1292
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1293
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1294
|
+
}
|
|
1295
|
+
let responseType_ = 'json';
|
|
1296
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1297
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1298
|
+
responseType_ = 'text';
|
|
1299
|
+
}
|
|
1300
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1301
|
+
responseType_ = 'json';
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
responseType_ = 'blob';
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
let localVarPath = `/notes`;
|
|
1308
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1309
|
+
context: localVarHttpContext,
|
|
1310
|
+
body: note,
|
|
1311
|
+
responseType: responseType_,
|
|
1312
|
+
withCredentials: this.configuration.withCredentials,
|
|
1313
|
+
headers: localVarHeaders,
|
|
1314
|
+
observe: observe,
|
|
1315
|
+
transferCache: localVarTransferCache,
|
|
1316
|
+
reportProgress: reportProgress
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1266
1319
|
getShipmentNotes(sourceId, type, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1267
1320
|
if (sourceId === null || sourceId === undefined) {
|
|
1268
1321
|
throw new Error('Required parameter sourceId was null or undefined when calling getShipmentNotes.');
|
|
@@ -1657,6 +1710,293 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1657
1710
|
type: Optional
|
|
1658
1711
|
}] }] });
|
|
1659
1712
|
|
|
1713
|
+
/**
|
|
1714
|
+
* Dcm.API.Client
|
|
1715
|
+
* DCM API Client for Angular applications
|
|
1716
|
+
*
|
|
1717
|
+
*
|
|
1718
|
+
*
|
|
1719
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1720
|
+
* https://openapi-generator.tech
|
|
1721
|
+
* Do not edit the class manually.
|
|
1722
|
+
*/
|
|
1723
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1724
|
+
class SettingsService {
|
|
1725
|
+
httpClient;
|
|
1726
|
+
basePath = 'http://localhost';
|
|
1727
|
+
defaultHeaders = new HttpHeaders();
|
|
1728
|
+
configuration = new Configuration();
|
|
1729
|
+
encoder;
|
|
1730
|
+
constructor(httpClient, basePath, configuration) {
|
|
1731
|
+
this.httpClient = httpClient;
|
|
1732
|
+
if (configuration) {
|
|
1733
|
+
this.configuration = configuration;
|
|
1734
|
+
}
|
|
1735
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1736
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1737
|
+
if (firstBasePath != undefined) {
|
|
1738
|
+
basePath = firstBasePath;
|
|
1739
|
+
}
|
|
1740
|
+
if (typeof basePath !== 'string') {
|
|
1741
|
+
basePath = this.basePath;
|
|
1742
|
+
}
|
|
1743
|
+
this.configuration.basePath = basePath;
|
|
1744
|
+
}
|
|
1745
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1746
|
+
}
|
|
1747
|
+
// @ts-ignore
|
|
1748
|
+
addToHttpParams(httpParams, value, key) {
|
|
1749
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1750
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1751
|
+
}
|
|
1752
|
+
else {
|
|
1753
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1754
|
+
}
|
|
1755
|
+
return httpParams;
|
|
1756
|
+
}
|
|
1757
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1758
|
+
if (value == null) {
|
|
1759
|
+
return httpParams;
|
|
1760
|
+
}
|
|
1761
|
+
if (typeof value === "object") {
|
|
1762
|
+
if (Array.isArray(value)) {
|
|
1763
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1764
|
+
}
|
|
1765
|
+
else if (value instanceof Date) {
|
|
1766
|
+
if (key != null) {
|
|
1767
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1768
|
+
}
|
|
1769
|
+
else {
|
|
1770
|
+
throw Error("key may not be null if value is Date");
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
else {
|
|
1774
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
else if (key != null) {
|
|
1778
|
+
httpParams = httpParams.append(key, value);
|
|
1779
|
+
}
|
|
1780
|
+
else {
|
|
1781
|
+
throw Error("key may not be null if value is not object or array");
|
|
1782
|
+
}
|
|
1783
|
+
return httpParams;
|
|
1784
|
+
}
|
|
1785
|
+
deleteSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
1786
|
+
if (key === null || key === undefined) {
|
|
1787
|
+
throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
|
|
1788
|
+
}
|
|
1789
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1790
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1791
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1792
|
+
// to determine the Accept header
|
|
1793
|
+
const httpHeaderAccepts = [];
|
|
1794
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1795
|
+
}
|
|
1796
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1797
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1798
|
+
}
|
|
1799
|
+
let localVarHttpContext = options && options.context;
|
|
1800
|
+
if (localVarHttpContext === undefined) {
|
|
1801
|
+
localVarHttpContext = new HttpContext();
|
|
1802
|
+
}
|
|
1803
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1804
|
+
if (localVarTransferCache === undefined) {
|
|
1805
|
+
localVarTransferCache = true;
|
|
1806
|
+
}
|
|
1807
|
+
let responseType_ = 'json';
|
|
1808
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1809
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1810
|
+
responseType_ = 'text';
|
|
1811
|
+
}
|
|
1812
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1813
|
+
responseType_ = 'json';
|
|
1814
|
+
}
|
|
1815
|
+
else {
|
|
1816
|
+
responseType_ = 'blob';
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1820
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1821
|
+
context: localVarHttpContext,
|
|
1822
|
+
responseType: responseType_,
|
|
1823
|
+
withCredentials: this.configuration.withCredentials,
|
|
1824
|
+
headers: localVarHeaders,
|
|
1825
|
+
observe: observe,
|
|
1826
|
+
transferCache: localVarTransferCache,
|
|
1827
|
+
reportProgress: reportProgress
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
getSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
1831
|
+
if (key === null || key === undefined) {
|
|
1832
|
+
throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
|
|
1833
|
+
}
|
|
1834
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1835
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1836
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1837
|
+
// to determine the Accept header
|
|
1838
|
+
const httpHeaderAccepts = [
|
|
1839
|
+
'application/json'
|
|
1840
|
+
];
|
|
1841
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1842
|
+
}
|
|
1843
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1844
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1845
|
+
}
|
|
1846
|
+
let localVarHttpContext = options && options.context;
|
|
1847
|
+
if (localVarHttpContext === undefined) {
|
|
1848
|
+
localVarHttpContext = new HttpContext();
|
|
1849
|
+
}
|
|
1850
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1851
|
+
if (localVarTransferCache === undefined) {
|
|
1852
|
+
localVarTransferCache = true;
|
|
1853
|
+
}
|
|
1854
|
+
let responseType_ = 'json';
|
|
1855
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1856
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1857
|
+
responseType_ = 'text';
|
|
1858
|
+
}
|
|
1859
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1860
|
+
responseType_ = 'json';
|
|
1861
|
+
}
|
|
1862
|
+
else {
|
|
1863
|
+
responseType_ = 'blob';
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1867
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1868
|
+
context: localVarHttpContext,
|
|
1869
|
+
responseType: responseType_,
|
|
1870
|
+
withCredentials: this.configuration.withCredentials,
|
|
1871
|
+
headers: localVarHeaders,
|
|
1872
|
+
observe: observe,
|
|
1873
|
+
transferCache: localVarTransferCache,
|
|
1874
|
+
reportProgress: reportProgress
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
getSettingsByGroup(group, observe = 'body', reportProgress = false, options) {
|
|
1878
|
+
if (group === null || group === undefined) {
|
|
1879
|
+
throw new Error('Required parameter group was null or undefined when calling getSettingsByGroup.');
|
|
1880
|
+
}
|
|
1881
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1882
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1883
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1884
|
+
// to determine the Accept header
|
|
1885
|
+
const httpHeaderAccepts = [
|
|
1886
|
+
'application/json'
|
|
1887
|
+
];
|
|
1888
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1889
|
+
}
|
|
1890
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1891
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1892
|
+
}
|
|
1893
|
+
let localVarHttpContext = options && options.context;
|
|
1894
|
+
if (localVarHttpContext === undefined) {
|
|
1895
|
+
localVarHttpContext = new HttpContext();
|
|
1896
|
+
}
|
|
1897
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1898
|
+
if (localVarTransferCache === undefined) {
|
|
1899
|
+
localVarTransferCache = true;
|
|
1900
|
+
}
|
|
1901
|
+
let responseType_ = 'json';
|
|
1902
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1903
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1904
|
+
responseType_ = 'text';
|
|
1905
|
+
}
|
|
1906
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1907
|
+
responseType_ = 'json';
|
|
1908
|
+
}
|
|
1909
|
+
else {
|
|
1910
|
+
responseType_ = 'blob';
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1914
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1915
|
+
context: localVarHttpContext,
|
|
1916
|
+
responseType: responseType_,
|
|
1917
|
+
withCredentials: this.configuration.withCredentials,
|
|
1918
|
+
headers: localVarHeaders,
|
|
1919
|
+
observe: observe,
|
|
1920
|
+
transferCache: localVarTransferCache,
|
|
1921
|
+
reportProgress: reportProgress
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1924
|
+
setSettingByKey(key, settingValue, observe = 'body', reportProgress = false, options) {
|
|
1925
|
+
if (key === null || key === undefined) {
|
|
1926
|
+
throw new Error('Required parameter key was null or undefined when calling setSettingByKey.');
|
|
1927
|
+
}
|
|
1928
|
+
if (settingValue === null || settingValue === undefined) {
|
|
1929
|
+
throw new Error('Required parameter settingValue was null or undefined when calling setSettingByKey.');
|
|
1930
|
+
}
|
|
1931
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1932
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1933
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1934
|
+
// to determine the Accept header
|
|
1935
|
+
const httpHeaderAccepts = [
|
|
1936
|
+
'application/json'
|
|
1937
|
+
];
|
|
1938
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1939
|
+
}
|
|
1940
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1941
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1942
|
+
}
|
|
1943
|
+
let localVarHttpContext = options && options.context;
|
|
1944
|
+
if (localVarHttpContext === undefined) {
|
|
1945
|
+
localVarHttpContext = new HttpContext();
|
|
1946
|
+
}
|
|
1947
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1948
|
+
if (localVarTransferCache === undefined) {
|
|
1949
|
+
localVarTransferCache = true;
|
|
1950
|
+
}
|
|
1951
|
+
// to determine the Content-Type header
|
|
1952
|
+
const consumes = [
|
|
1953
|
+
'application/json'
|
|
1954
|
+
];
|
|
1955
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1956
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1957
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1958
|
+
}
|
|
1959
|
+
let responseType_ = 'json';
|
|
1960
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1961
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1962
|
+
responseType_ = 'text';
|
|
1963
|
+
}
|
|
1964
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1965
|
+
responseType_ = 'json';
|
|
1966
|
+
}
|
|
1967
|
+
else {
|
|
1968
|
+
responseType_ = 'blob';
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1972
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1973
|
+
context: localVarHttpContext,
|
|
1974
|
+
body: settingValue,
|
|
1975
|
+
responseType: responseType_,
|
|
1976
|
+
withCredentials: this.configuration.withCredentials,
|
|
1977
|
+
headers: localVarHeaders,
|
|
1978
|
+
observe: observe,
|
|
1979
|
+
transferCache: localVarTransferCache,
|
|
1980
|
+
reportProgress: reportProgress
|
|
1981
|
+
});
|
|
1982
|
+
}
|
|
1983
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1984
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
1985
|
+
}
|
|
1986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, decorators: [{
|
|
1987
|
+
type: Injectable,
|
|
1988
|
+
args: [{
|
|
1989
|
+
providedIn: 'root'
|
|
1990
|
+
}]
|
|
1991
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1992
|
+
type: Optional
|
|
1993
|
+
}, {
|
|
1994
|
+
type: Inject,
|
|
1995
|
+
args: [BASE_PATH]
|
|
1996
|
+
}] }, { type: Configuration, decorators: [{
|
|
1997
|
+
type: Optional
|
|
1998
|
+
}] }] });
|
|
1999
|
+
|
|
1660
2000
|
/**
|
|
1661
2001
|
* Dcm.API.Client
|
|
1662
2002
|
* DCM API Client for Angular applications
|
|
@@ -1729,6 +2069,67 @@ class ShipmentsService {
|
|
|
1729
2069
|
}
|
|
1730
2070
|
return httpParams;
|
|
1731
2071
|
}
|
|
2072
|
+
getShipmentApprovals($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2073
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2074
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2075
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2076
|
+
}
|
|
2077
|
+
if ($top !== undefined && $top !== null) {
|
|
2078
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2079
|
+
}
|
|
2080
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2081
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2082
|
+
}
|
|
2083
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2084
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2085
|
+
}
|
|
2086
|
+
if ($search !== undefined && $search !== null) {
|
|
2087
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2088
|
+
}
|
|
2089
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2090
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2091
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2092
|
+
// to determine the Accept header
|
|
2093
|
+
const httpHeaderAccepts = [
|
|
2094
|
+
'application/json'
|
|
2095
|
+
];
|
|
2096
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2097
|
+
}
|
|
2098
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2099
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2100
|
+
}
|
|
2101
|
+
let localVarHttpContext = options && options.context;
|
|
2102
|
+
if (localVarHttpContext === undefined) {
|
|
2103
|
+
localVarHttpContext = new HttpContext();
|
|
2104
|
+
}
|
|
2105
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2106
|
+
if (localVarTransferCache === undefined) {
|
|
2107
|
+
localVarTransferCache = true;
|
|
2108
|
+
}
|
|
2109
|
+
let responseType_ = 'json';
|
|
2110
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2111
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2112
|
+
responseType_ = 'text';
|
|
2113
|
+
}
|
|
2114
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2115
|
+
responseType_ = 'json';
|
|
2116
|
+
}
|
|
2117
|
+
else {
|
|
2118
|
+
responseType_ = 'blob';
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
let localVarPath = `/shipments/approvals`;
|
|
2122
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2123
|
+
context: localVarHttpContext,
|
|
2124
|
+
params: localVarQueryParameters,
|
|
2125
|
+
responseType: responseType_,
|
|
2126
|
+
withCredentials: this.configuration.withCredentials,
|
|
2127
|
+
headers: localVarHeaders,
|
|
2128
|
+
observe: observe,
|
|
2129
|
+
transferCache: localVarTransferCache,
|
|
2130
|
+
reportProgress: reportProgress
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
1732
2133
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
1733
2134
|
if (id === null || id === undefined) {
|
|
1734
2135
|
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|
|
@@ -2376,6 +2777,56 @@ class ShipmentsService {
|
|
|
2376
2777
|
reportProgress: reportProgress
|
|
2377
2778
|
});
|
|
2378
2779
|
}
|
|
2780
|
+
updateShipmentState(id, state, observe = 'body', reportProgress = false, options) {
|
|
2781
|
+
if (id === null || id === undefined) {
|
|
2782
|
+
throw new Error('Required parameter id was null or undefined when calling updateShipmentState.');
|
|
2783
|
+
}
|
|
2784
|
+
if (state === null || state === undefined) {
|
|
2785
|
+
throw new Error('Required parameter state was null or undefined when calling updateShipmentState.');
|
|
2786
|
+
}
|
|
2787
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2788
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2789
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2790
|
+
// to determine the Accept header
|
|
2791
|
+
const httpHeaderAccepts = [
|
|
2792
|
+
'application/json'
|
|
2793
|
+
];
|
|
2794
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2795
|
+
}
|
|
2796
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2797
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2798
|
+
}
|
|
2799
|
+
let localVarHttpContext = options && options.context;
|
|
2800
|
+
if (localVarHttpContext === undefined) {
|
|
2801
|
+
localVarHttpContext = new HttpContext();
|
|
2802
|
+
}
|
|
2803
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2804
|
+
if (localVarTransferCache === undefined) {
|
|
2805
|
+
localVarTransferCache = true;
|
|
2806
|
+
}
|
|
2807
|
+
let responseType_ = 'json';
|
|
2808
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2809
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2810
|
+
responseType_ = 'text';
|
|
2811
|
+
}
|
|
2812
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2813
|
+
responseType_ = 'json';
|
|
2814
|
+
}
|
|
2815
|
+
else {
|
|
2816
|
+
responseType_ = 'blob';
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "state", value: state, in: "path", style: "simple", explode: false, dataType: "ShipmentState", dataFormat: undefined })}`;
|
|
2820
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2821
|
+
context: localVarHttpContext,
|
|
2822
|
+
responseType: responseType_,
|
|
2823
|
+
withCredentials: this.configuration.withCredentials,
|
|
2824
|
+
headers: localVarHeaders,
|
|
2825
|
+
observe: observe,
|
|
2826
|
+
transferCache: localVarTransferCache,
|
|
2827
|
+
reportProgress: reportProgress
|
|
2828
|
+
});
|
|
2829
|
+
}
|
|
2379
2830
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2380
2831
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
|
|
2381
2832
|
}
|
|
@@ -2711,7 +3162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
2711
3162
|
type: Optional
|
|
2712
3163
|
}] }] });
|
|
2713
3164
|
|
|
2714
|
-
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
3165
|
+
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, SettingsService, ShipmentsService, UserService];
|
|
2715
3166
|
|
|
2716
3167
|
/**
|
|
2717
3168
|
* Dcm.API.Client
|
|
@@ -2973,6 +3424,17 @@ const NoteSourceTypes = {
|
|
|
2973
3424
|
* Do not edit the class manually.
|
|
2974
3425
|
*/
|
|
2975
3426
|
|
|
3427
|
+
/**
|
|
3428
|
+
* Dcm.API.Client
|
|
3429
|
+
* DCM API Client for Angular applications
|
|
3430
|
+
*
|
|
3431
|
+
*
|
|
3432
|
+
*
|
|
3433
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3434
|
+
* https://openapi-generator.tech
|
|
3435
|
+
* Do not edit the class manually.
|
|
3436
|
+
*/
|
|
3437
|
+
|
|
2976
3438
|
/**
|
|
2977
3439
|
* Dcm.API.Client
|
|
2978
3440
|
* DCM API Client for Angular applications
|
|
@@ -3002,6 +3464,28 @@ const RecordTypes = {
|
|
|
3002
3464
|
Shipment: 'Shipment'
|
|
3003
3465
|
};
|
|
3004
3466
|
|
|
3467
|
+
/**
|
|
3468
|
+
* Dcm.API.Client
|
|
3469
|
+
* DCM API Client for Angular applications
|
|
3470
|
+
*
|
|
3471
|
+
*
|
|
3472
|
+
*
|
|
3473
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3474
|
+
* https://openapi-generator.tech
|
|
3475
|
+
* Do not edit the class manually.
|
|
3476
|
+
*/
|
|
3477
|
+
|
|
3478
|
+
/**
|
|
3479
|
+
* Dcm.API.Client
|
|
3480
|
+
* DCM API Client for Angular applications
|
|
3481
|
+
*
|
|
3482
|
+
*
|
|
3483
|
+
*
|
|
3484
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3485
|
+
* https://openapi-generator.tech
|
|
3486
|
+
* Do not edit the class manually.
|
|
3487
|
+
*/
|
|
3488
|
+
|
|
3005
3489
|
/**
|
|
3006
3490
|
* Dcm.API.Client
|
|
3007
3491
|
* DCM API Client for Angular applications
|
|
@@ -3323,5 +3807,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
3323
3807
|
* Generated bundle index. Do not edit.
|
|
3324
3808
|
*/
|
|
3325
3809
|
|
|
3326
|
-
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, RecordTypes, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventStates, TimelineEventTypes, UserService, WorkflowArtifacts };
|
|
3810
|
+
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventStates, TimelineEventTypes, UserService, WorkflowArtifacts };
|
|
3327
3811
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|