@indigina/dcm-api 0.0.40 → 0.0.42
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/settings.service.d.ts +44 -0
- package/api/shipments.service.d.ts +25 -0
- package/esm2022/api/settings.service.mjs +99 -1
- package/esm2022/api/shipments.service.mjs +62 -1
- package/esm2022/model/shipmentApproval.mjs +1 -1
- package/fesm2022/indigina-dcm-api.mjs +159 -0
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/shipmentApproval.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hpcG1lbnRBcHByb3ZhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL21vZGVsL3NoaXBtZW50QXBwcm92YWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRGNtLkFQSS5DbGllbnRcbiAqIERDTSBBUEkgQ2xpZW50IGZvciBBbmd1bGFyIGFwcGxpY2F0aW9uc1xuICpcbiAqIFxuICpcbiAqIE5PVEU6IFRoaXMgY2xhc3MgaXMgYXV0byBnZW5lcmF0ZWQgYnkgT3BlbkFQSSBHZW5lcmF0b3IgKGh0dHBzOi8vb3BlbmFwaS1nZW5lcmF0b3IudGVjaCkuXG4gKiBodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2hcbiAqIERvIG5vdCBlZGl0IHRoZSBjbGFzcyBtYW51YWxseS5cbiAqL1xuaW1wb3J0IHsgQ29uc2lnbmVlIH0gZnJvbSAnLi9jb25zaWduZWUnO1xuaW1wb3J0IHsgU2hpcG1lbnRTdGF0ZSB9IGZyb20gJy4vc2hp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uc2lnbmVlOiBDb25zaWduZWUgfCBudWxsO1xuICAgIHJlZmVyZW5jZTogc3RyaW5nIHwgbnVsbDtcbn1cbmV4cG9ydCBuYW1lc3BhY2UgU2hpcG1lbnRBcHByb3ZhbCB7XG59XG5cblxuIl19
|
|
@@ -1782,6 +1782,54 @@ class SettingsService {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return httpParams;
|
|
1784
1784
|
}
|
|
1785
|
+
deleteSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
|
|
1786
|
+
if (key === null || key === undefined) {
|
|
1787
|
+
throw new Error('Required parameter key was null or undefined when calling deleteSettingByGroupAndKey.');
|
|
1788
|
+
}
|
|
1789
|
+
if (group === null || group === undefined) {
|
|
1790
|
+
throw new Error('Required parameter group was null or undefined when calling deleteSettingByGroupAndKey.');
|
|
1791
|
+
}
|
|
1792
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1793
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1794
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1795
|
+
// to determine the Accept header
|
|
1796
|
+
const httpHeaderAccepts = [];
|
|
1797
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1798
|
+
}
|
|
1799
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1800
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1801
|
+
}
|
|
1802
|
+
let localVarHttpContext = options && options.context;
|
|
1803
|
+
if (localVarHttpContext === undefined) {
|
|
1804
|
+
localVarHttpContext = new HttpContext();
|
|
1805
|
+
}
|
|
1806
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1807
|
+
if (localVarTransferCache === undefined) {
|
|
1808
|
+
localVarTransferCache = true;
|
|
1809
|
+
}
|
|
1810
|
+
let responseType_ = 'json';
|
|
1811
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1812
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1813
|
+
responseType_ = 'text';
|
|
1814
|
+
}
|
|
1815
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1816
|
+
responseType_ = 'json';
|
|
1817
|
+
}
|
|
1818
|
+
else {
|
|
1819
|
+
responseType_ = 'blob';
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1823
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1824
|
+
context: localVarHttpContext,
|
|
1825
|
+
responseType: responseType_,
|
|
1826
|
+
withCredentials: this.configuration.withCredentials,
|
|
1827
|
+
headers: localVarHeaders,
|
|
1828
|
+
observe: observe,
|
|
1829
|
+
transferCache: localVarTransferCache,
|
|
1830
|
+
reportProgress: reportProgress
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1785
1833
|
deleteSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
1786
1834
|
if (key === null || key === undefined) {
|
|
1787
1835
|
throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
|
|
@@ -1827,6 +1875,56 @@ class SettingsService {
|
|
|
1827
1875
|
reportProgress: reportProgress
|
|
1828
1876
|
});
|
|
1829
1877
|
}
|
|
1878
|
+
getSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
|
|
1879
|
+
if (key === null || key === undefined) {
|
|
1880
|
+
throw new Error('Required parameter key was null or undefined when calling getSettingByGroupAndKey.');
|
|
1881
|
+
}
|
|
1882
|
+
if (group === null || group === undefined) {
|
|
1883
|
+
throw new Error('Required parameter group was null or undefined when calling getSettingByGroupAndKey.');
|
|
1884
|
+
}
|
|
1885
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1886
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1887
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1888
|
+
// to determine the Accept header
|
|
1889
|
+
const httpHeaderAccepts = [
|
|
1890
|
+
'application/json'
|
|
1891
|
+
];
|
|
1892
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1893
|
+
}
|
|
1894
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1895
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1896
|
+
}
|
|
1897
|
+
let localVarHttpContext = options && options.context;
|
|
1898
|
+
if (localVarHttpContext === undefined) {
|
|
1899
|
+
localVarHttpContext = new HttpContext();
|
|
1900
|
+
}
|
|
1901
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1902
|
+
if (localVarTransferCache === undefined) {
|
|
1903
|
+
localVarTransferCache = true;
|
|
1904
|
+
}
|
|
1905
|
+
let responseType_ = 'json';
|
|
1906
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1907
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1908
|
+
responseType_ = 'text';
|
|
1909
|
+
}
|
|
1910
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1911
|
+
responseType_ = 'json';
|
|
1912
|
+
}
|
|
1913
|
+
else {
|
|
1914
|
+
responseType_ = 'blob';
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1918
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1919
|
+
context: localVarHttpContext,
|
|
1920
|
+
responseType: responseType_,
|
|
1921
|
+
withCredentials: this.configuration.withCredentials,
|
|
1922
|
+
headers: localVarHeaders,
|
|
1923
|
+
observe: observe,
|
|
1924
|
+
transferCache: localVarTransferCache,
|
|
1925
|
+
reportProgress: reportProgress
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1830
1928
|
getSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
1831
1929
|
if (key === null || key === undefined) {
|
|
1832
1930
|
throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
|
|
@@ -2130,6 +2228,67 @@ class ShipmentsService {
|
|
|
2130
2228
|
reportProgress: reportProgress
|
|
2131
2229
|
});
|
|
2132
2230
|
}
|
|
2231
|
+
getShipmentApprovalsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
2232
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2233
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2234
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2235
|
+
}
|
|
2236
|
+
if ($top !== undefined && $top !== null) {
|
|
2237
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2238
|
+
}
|
|
2239
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2240
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2241
|
+
}
|
|
2242
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2243
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2244
|
+
}
|
|
2245
|
+
if (searchTerm !== undefined && searchTerm !== null) {
|
|
2246
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
|
|
2247
|
+
}
|
|
2248
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2249
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2250
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2251
|
+
// to determine the Accept header
|
|
2252
|
+
const httpHeaderAccepts = [
|
|
2253
|
+
'application/json'
|
|
2254
|
+
];
|
|
2255
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2256
|
+
}
|
|
2257
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2258
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2259
|
+
}
|
|
2260
|
+
let localVarHttpContext = options && options.context;
|
|
2261
|
+
if (localVarHttpContext === undefined) {
|
|
2262
|
+
localVarHttpContext = new HttpContext();
|
|
2263
|
+
}
|
|
2264
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2265
|
+
if (localVarTransferCache === undefined) {
|
|
2266
|
+
localVarTransferCache = true;
|
|
2267
|
+
}
|
|
2268
|
+
let responseType_ = 'json';
|
|
2269
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2270
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2271
|
+
responseType_ = 'text';
|
|
2272
|
+
}
|
|
2273
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2274
|
+
responseType_ = 'json';
|
|
2275
|
+
}
|
|
2276
|
+
else {
|
|
2277
|
+
responseType_ = 'blob';
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
let localVarPath = `/shipments/approvals/search`;
|
|
2281
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2282
|
+
context: localVarHttpContext,
|
|
2283
|
+
params: localVarQueryParameters,
|
|
2284
|
+
responseType: responseType_,
|
|
2285
|
+
withCredentials: this.configuration.withCredentials,
|
|
2286
|
+
headers: localVarHeaders,
|
|
2287
|
+
observe: observe,
|
|
2288
|
+
transferCache: localVarTransferCache,
|
|
2289
|
+
reportProgress: reportProgress
|
|
2290
|
+
});
|
|
2291
|
+
}
|
|
2133
2292
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
2134
2293
|
if (id === null || id === undefined) {
|
|
2135
2294
|
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|