@indigina/dcm-api 0.0.117 → 0.0.118
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/fesm2022/indigina-dcm-api.mjs +74 -0
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/indigina-dcm-api.d.ts +234 -59
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.118
|
|
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.118 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -2264,6 +2264,80 @@ class PoItemsService extends BaseService {
|
|
|
2264
2264
|
super(basePath, configuration);
|
|
2265
2265
|
this.httpClient = httpClient;
|
|
2266
2266
|
}
|
|
2267
|
+
getPoItemDetails(id, observe = 'body', reportProgress = false, options) {
|
|
2268
|
+
if (id === null || id === undefined) {
|
|
2269
|
+
throw new Error('Required parameter id was null or undefined when calling getPoItemDetails.');
|
|
2270
|
+
}
|
|
2271
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2272
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2273
|
+
'application/json'
|
|
2274
|
+
]);
|
|
2275
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2276
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2277
|
+
}
|
|
2278
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2279
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2280
|
+
let responseType_ = 'json';
|
|
2281
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2282
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2283
|
+
responseType_ = 'text';
|
|
2284
|
+
}
|
|
2285
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2286
|
+
responseType_ = 'json';
|
|
2287
|
+
}
|
|
2288
|
+
else {
|
|
2289
|
+
responseType_ = 'blob';
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/details`;
|
|
2293
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2294
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2295
|
+
context: localVarHttpContext,
|
|
2296
|
+
responseType: responseType_,
|
|
2297
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2298
|
+
headers: localVarHeaders,
|
|
2299
|
+
observe: observe,
|
|
2300
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2301
|
+
reportProgress: reportProgress
|
|
2302
|
+
});
|
|
2303
|
+
}
|
|
2304
|
+
getPoItemShippingDetails(id, observe = 'body', reportProgress = false, options) {
|
|
2305
|
+
if (id === null || id === undefined) {
|
|
2306
|
+
throw new Error('Required parameter id was null or undefined when calling getPoItemShippingDetails.');
|
|
2307
|
+
}
|
|
2308
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2309
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2310
|
+
'application/json'
|
|
2311
|
+
]);
|
|
2312
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2313
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2314
|
+
}
|
|
2315
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2316
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2317
|
+
let responseType_ = 'json';
|
|
2318
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2319
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2320
|
+
responseType_ = 'text';
|
|
2321
|
+
}
|
|
2322
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2323
|
+
responseType_ = 'json';
|
|
2324
|
+
}
|
|
2325
|
+
else {
|
|
2326
|
+
responseType_ = 'blob';
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/shippingDetails`;
|
|
2330
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2331
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2332
|
+
context: localVarHttpContext,
|
|
2333
|
+
responseType: responseType_,
|
|
2334
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2335
|
+
headers: localVarHeaders,
|
|
2336
|
+
observe: observe,
|
|
2337
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
2338
|
+
reportProgress: reportProgress
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2267
2341
|
getPoItemSummary(id, observe = 'body', reportProgress = false, options) {
|
|
2268
2342
|
if (id === null || id === undefined) {
|
|
2269
2343
|
throw new Error('Required parameter id was null or undefined when calling getPoItemSummary.');
|