@indigina/dcm-api 0.0.103 → 0.0.105

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/dcm-api@0.0.103
1
+ # @indigina/dcm-api@0.0.105
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.103 --save
27
+ npm install @indigina/dcm-api@0.0.105 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -2300,7 +2300,7 @@ class PoItemsService extends BaseService {
2300
2300
  reportProgress: reportProgress
2301
2301
  });
2302
2302
  }
2303
- getProductsShippingDetails($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2303
+ getProducts($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2304
2304
  let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
2305
2305
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
2306
2306
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
@@ -2328,7 +2328,7 @@ class PoItemsService extends BaseService {
2328
2328
  responseType_ = 'blob';
2329
2329
  }
2330
2330
  }
2331
- let localVarPath = `/poItems/productsShippingDetails`;
2331
+ let localVarPath = `/poItems/products`;
2332
2332
  const { basePath, withCredentials } = this.configuration;
2333
2333
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2334
2334
  context: localVarHttpContext,
@@ -2341,43 +2341,13 @@ class PoItemsService extends BaseService {
2341
2341
  reportProgress: reportProgress
2342
2342
  });
2343
2343
  }
2344
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2345
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, providedIn: 'root' });
2346
- }
2347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, decorators: [{
2348
- type: Injectable,
2349
- args: [{
2350
- providedIn: 'root'
2351
- }]
2352
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2353
- type: Optional
2354
- }, {
2355
- type: Inject,
2356
- args: [BASE_PATH]
2357
- }] }, { type: Configuration, decorators: [{
2358
- type: Optional
2359
- }] }] });
2360
-
2361
- /**
2362
- * Dcm.API.Client
2363
- *
2364
- *
2365
- *
2366
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2367
- * https://openapi-generator.tech
2368
- * Do not edit the class manually.
2369
- */
2370
- /* tslint:disable:no-unused-variable member-ordering */
2371
- class PurchaseOrdersService extends BaseService {
2372
- httpClient;
2373
- constructor(httpClient, basePath, configuration) {
2374
- super(basePath, configuration);
2375
- this.httpClient = httpClient;
2376
- }
2377
- getPoItemTotals(purchaseOrderId, observe = 'body', reportProgress = false, options) {
2378
- if (purchaseOrderId === null || purchaseOrderId === undefined) {
2379
- throw new Error('Required parameter purchaseOrderId was null or undefined when calling getPoItemTotals.');
2380
- }
2344
+ getProductsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
2345
+ let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
2346
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
2347
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
2348
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
2349
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
2350
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
2381
2351
  let localVarHeaders = this.defaultHeaders;
2382
2352
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2383
2353
  'application/json'
@@ -2399,10 +2369,11 @@ class PurchaseOrdersService extends BaseService {
2399
2369
  responseType_ = 'blob';
2400
2370
  }
2401
2371
  }
2402
- let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/itemTotals`;
2372
+ let localVarPath = `/poItems/products/search`;
2403
2373
  const { basePath, withCredentials } = this.configuration;
2404
2374
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2405
2375
  context: localVarHttpContext,
2376
+ params: localVarQueryParameters.toHttpParams(),
2406
2377
  responseType: responseType_,
2407
2378
  ...(withCredentials ? { withCredentials } : {}),
2408
2379
  headers: localVarHeaders,
@@ -2411,7 +2382,7 @@ class PurchaseOrdersService extends BaseService {
2411
2382
  reportProgress: reportProgress
2412
2383
  });
2413
2384
  }
2414
- getProducts($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2385
+ getProductsShippingDetails($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2415
2386
  let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
2416
2387
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
2417
2388
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
@@ -2439,7 +2410,7 @@ class PurchaseOrdersService extends BaseService {
2439
2410
  responseType_ = 'blob';
2440
2411
  }
2441
2412
  }
2442
- let localVarPath = `/purchaseOrders/products`;
2413
+ let localVarPath = `/poItems/productsShippingDetails`;
2443
2414
  const { basePath, withCredentials } = this.configuration;
2444
2415
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2445
2416
  context: localVarHttpContext,
@@ -2452,13 +2423,7 @@ class PurchaseOrdersService extends BaseService {
2452
2423
  reportProgress: reportProgress
2453
2424
  });
2454
2425
  }
2455
- getProductsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
2456
- let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
2457
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
2458
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
2459
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
2460
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
2461
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
2426
+ getUnbookedProductsCount(observe = 'body', reportProgress = false, options) {
2462
2427
  let localVarHeaders = this.defaultHeaders;
2463
2428
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2464
2429
  'application/json'
@@ -2480,11 +2445,80 @@ class PurchaseOrdersService extends BaseService {
2480
2445
  responseType_ = 'blob';
2481
2446
  }
2482
2447
  }
2483
- let localVarPath = `/purchaseOrders/products/search`;
2448
+ let localVarPath = `/poItems/unbookedProducts/count`;
2449
+ const { basePath, withCredentials } = this.configuration;
2450
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2451
+ context: localVarHttpContext,
2452
+ responseType: responseType_,
2453
+ ...(withCredentials ? { withCredentials } : {}),
2454
+ headers: localVarHeaders,
2455
+ observe: observe,
2456
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
2457
+ reportProgress: reportProgress
2458
+ });
2459
+ }
2460
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2461
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, providedIn: 'root' });
2462
+ }
2463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PoItemsService, decorators: [{
2464
+ type: Injectable,
2465
+ args: [{
2466
+ providedIn: 'root'
2467
+ }]
2468
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2469
+ type: Optional
2470
+ }, {
2471
+ type: Inject,
2472
+ args: [BASE_PATH]
2473
+ }] }, { type: Configuration, decorators: [{
2474
+ type: Optional
2475
+ }] }] });
2476
+
2477
+ /**
2478
+ * Dcm.API.Client
2479
+ *
2480
+ *
2481
+ *
2482
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2483
+ * https://openapi-generator.tech
2484
+ * Do not edit the class manually.
2485
+ */
2486
+ /* tslint:disable:no-unused-variable member-ordering */
2487
+ class PurchaseOrdersService extends BaseService {
2488
+ httpClient;
2489
+ constructor(httpClient, basePath, configuration) {
2490
+ super(basePath, configuration);
2491
+ this.httpClient = httpClient;
2492
+ }
2493
+ getPoItemTotals(purchaseOrderId, observe = 'body', reportProgress = false, options) {
2494
+ if (purchaseOrderId === null || purchaseOrderId === undefined) {
2495
+ throw new Error('Required parameter purchaseOrderId was null or undefined when calling getPoItemTotals.');
2496
+ }
2497
+ let localVarHeaders = this.defaultHeaders;
2498
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2499
+ 'application/json'
2500
+ ]);
2501
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2502
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2503
+ }
2504
+ const localVarHttpContext = options?.context ?? new HttpContext();
2505
+ const localVarTransferCache = options?.transferCache ?? true;
2506
+ let responseType_ = 'json';
2507
+ if (localVarHttpHeaderAcceptSelected) {
2508
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2509
+ responseType_ = 'text';
2510
+ }
2511
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2512
+ responseType_ = 'json';
2513
+ }
2514
+ else {
2515
+ responseType_ = 'blob';
2516
+ }
2517
+ }
2518
+ let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/itemTotals`;
2484
2519
  const { basePath, withCredentials } = this.configuration;
2485
2520
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2486
2521
  context: localVarHttpContext,
2487
- params: localVarQueryParameters.toHttpParams(),
2488
2522
  responseType: responseType_,
2489
2523
  ...(withCredentials ? { withCredentials } : {}),
2490
2524
  headers: localVarHeaders,
@@ -4926,6 +4960,16 @@ const TransportMode = {
4926
4960
  * Do not edit the class manually.
4927
4961
  */
4928
4962
 
4963
+ /**
4964
+ * Dcm.API.Client
4965
+ *
4966
+ *
4967
+ *
4968
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4969
+ * https://openapi-generator.tech
4970
+ * Do not edit the class manually.
4971
+ */
4972
+
4929
4973
  /**
4930
4974
  * Dcm.API.Client
4931
4975
  *