@indigina/wms-api 0.0.74 → 0.0.75

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.
@@ -2451,7 +2451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2451
2451
  * Do not edit the class manually.
2452
2452
  */
2453
2453
  /* tslint:disable:no-unused-variable member-ordering */
2454
- class DispatchService {
2454
+ class DispatchItemsService {
2455
2455
  httpClient;
2456
2456
  basePath = 'http://localhost';
2457
2457
  defaultHeaders = new HttpHeaders();
@@ -2512,9 +2512,25 @@ class DispatchService {
2512
2512
  }
2513
2513
  return httpParams;
2514
2514
  }
2515
- getDispatch(id, observe = 'body', reportProgress = false, options) {
2515
+ getDispatchItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2516
2516
  if (id === null || id === undefined) {
2517
- throw new Error('Required parameter id was null or undefined when calling getDispatch.');
2517
+ throw new Error('Required parameter id was null or undefined when calling getDispatchItems.');
2518
+ }
2519
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2520
+ if ($skip !== undefined && $skip !== null) {
2521
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2522
+ }
2523
+ if ($top !== undefined && $top !== null) {
2524
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2525
+ }
2526
+ if ($orderby !== undefined && $orderby !== null) {
2527
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2528
+ }
2529
+ if ($filter !== undefined && $filter !== null) {
2530
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2531
+ }
2532
+ if ($search !== undefined && $search !== null) {
2533
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2518
2534
  }
2519
2535
  let localVarHeaders = this.defaultHeaders;
2520
2536
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -2548,9 +2564,10 @@ class DispatchService {
2548
2564
  responseType_ = 'blob';
2549
2565
  }
2550
2566
  }
2551
- let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2567
+ let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
2552
2568
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2553
2569
  context: localVarHttpContext,
2570
+ params: localVarQueryParameters,
2554
2571
  responseType: responseType_,
2555
2572
  withCredentials: this.configuration.withCredentials,
2556
2573
  headers: localVarHeaders,
@@ -2559,17 +2576,109 @@ class DispatchService {
2559
2576
  reportProgress: reportProgress
2560
2577
  });
2561
2578
  }
2562
- getDispatchSummaryView(id, observe = 'body', reportProgress = false, options) {
2563
- if (id === null || id === undefined) {
2564
- throw new Error('Required parameter id was null or undefined when calling getDispatchSummaryView.');
2579
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2580
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, providedIn: 'root' });
2581
+ }
2582
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, decorators: [{
2583
+ type: Injectable,
2584
+ args: [{
2585
+ providedIn: 'root'
2586
+ }]
2587
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2588
+ type: Optional
2589
+ }, {
2590
+ type: Inject,
2591
+ args: [BASE_PATH]
2592
+ }] }, { type: Configuration, decorators: [{
2593
+ type: Optional
2594
+ }] }] });
2595
+
2596
+ /**
2597
+ * Wms.API.Client
2598
+ *
2599
+ *
2600
+ *
2601
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2602
+ * https://openapi-generator.tech
2603
+ * Do not edit the class manually.
2604
+ */
2605
+ /* tslint:disable:no-unused-variable member-ordering */
2606
+ class DispatchesService {
2607
+ httpClient;
2608
+ basePath = 'http://localhost';
2609
+ defaultHeaders = new HttpHeaders();
2610
+ configuration = new Configuration();
2611
+ encoder;
2612
+ constructor(httpClient, basePath, configuration) {
2613
+ this.httpClient = httpClient;
2614
+ if (configuration) {
2615
+ this.configuration = configuration;
2616
+ }
2617
+ if (typeof this.configuration.basePath !== 'string') {
2618
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2619
+ if (firstBasePath != undefined) {
2620
+ basePath = firstBasePath;
2621
+ }
2622
+ if (typeof basePath !== 'string') {
2623
+ basePath = this.basePath;
2624
+ }
2625
+ this.configuration.basePath = basePath;
2626
+ }
2627
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2628
+ }
2629
+ // @ts-ignore
2630
+ addToHttpParams(httpParams, value, key) {
2631
+ if (typeof value === "object" && value instanceof Date === false) {
2632
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
2633
+ }
2634
+ else {
2635
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2636
+ }
2637
+ return httpParams;
2638
+ }
2639
+ addToHttpParamsRecursive(httpParams, value, key) {
2640
+ if (value == null) {
2641
+ return httpParams;
2642
+ }
2643
+ if (typeof value === "object") {
2644
+ if (Array.isArray(value)) {
2645
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2646
+ }
2647
+ else if (value instanceof Date) {
2648
+ if (key != null) {
2649
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2650
+ }
2651
+ else {
2652
+ throw Error("key may not be null if value is Date");
2653
+ }
2654
+ }
2655
+ else {
2656
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2657
+ }
2658
+ }
2659
+ else if (key != null) {
2660
+ httpParams = httpParams.append(key, value);
2661
+ }
2662
+ else {
2663
+ throw Error("key may not be null if value is not object or array");
2664
+ }
2665
+ return httpParams;
2666
+ }
2667
+ cancelDispatches(ids, observe = 'body', reportProgress = false, options) {
2668
+ if (ids === null || ids === undefined) {
2669
+ throw new Error('Required parameter ids was null or undefined when calling cancelDispatches.');
2670
+ }
2671
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2672
+ if (ids) {
2673
+ ids.forEach((element) => {
2674
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
2675
+ });
2565
2676
  }
2566
2677
  let localVarHeaders = this.defaultHeaders;
2567
2678
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2568
2679
  if (localVarHttpHeaderAcceptSelected === undefined) {
2569
2680
  // to determine the Accept header
2570
- const httpHeaderAccepts = [
2571
- 'application/json'
2572
- ];
2681
+ const httpHeaderAccepts = [];
2573
2682
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2574
2683
  }
2575
2684
  if (localVarHttpHeaderAcceptSelected !== undefined) {
@@ -2595,9 +2704,10 @@ class DispatchService {
2595
2704
  responseType_ = 'blob';
2596
2705
  }
2597
2706
  }
2598
- let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
2599
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2707
+ let localVarPath = `/dispatches/cancel`;
2708
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2600
2709
  context: localVarHttpContext,
2710
+ params: localVarQueryParameters,
2601
2711
  responseType: responseType_,
2602
2712
  withCredentials: this.configuration.withCredentials,
2603
2713
  headers: localVarHeaders,
@@ -2606,36 +2716,27 @@ class DispatchService {
2606
2716
  reportProgress: reportProgress
2607
2717
  });
2608
2718
  }
2609
- getDispatchesByOrderStatus(orderStatus, $skip, $top, $orderby, $filter, $search, tabName, observe = 'body', reportProgress = false, options) {
2610
- if (orderStatus === null || orderStatus === undefined) {
2611
- throw new Error('Required parameter orderStatus was null or undefined when calling getDispatchesByOrderStatus.');
2612
- }
2613
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2614
- if ($skip !== undefined && $skip !== null) {
2615
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2616
- }
2617
- if ($top !== undefined && $top !== null) {
2618
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2619
- }
2620
- if ($orderby !== undefined && $orderby !== null) {
2621
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2719
+ confirmDispatches(ids, dispatchDate, observe = 'body', reportProgress = false, options) {
2720
+ if (ids === null || ids === undefined) {
2721
+ throw new Error('Required parameter ids was null or undefined when calling confirmDispatches.');
2622
2722
  }
2623
- if ($filter !== undefined && $filter !== null) {
2624
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2723
+ if (dispatchDate === null || dispatchDate === undefined) {
2724
+ throw new Error('Required parameter dispatchDate was null or undefined when calling confirmDispatches.');
2625
2725
  }
2626
- if ($search !== undefined && $search !== null) {
2627
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2726
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2727
+ if (ids) {
2728
+ ids.forEach((element) => {
2729
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
2730
+ });
2628
2731
  }
2629
- if (tabName !== undefined && tabName !== null) {
2630
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, tabName, 'tabName');
2732
+ if (dispatchDate !== undefined && dispatchDate !== null) {
2733
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dispatchDate, 'dispatchDate');
2631
2734
  }
2632
2735
  let localVarHeaders = this.defaultHeaders;
2633
2736
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2634
2737
  if (localVarHttpHeaderAcceptSelected === undefined) {
2635
2738
  // to determine the Accept header
2636
- const httpHeaderAccepts = [
2637
- 'application/json'
2638
- ];
2739
+ const httpHeaderAccepts = [];
2639
2740
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2640
2741
  }
2641
2742
  if (localVarHttpHeaderAcceptSelected !== undefined) {
@@ -2661,8 +2762,8 @@ class DispatchService {
2661
2762
  responseType_ = 'blob';
2662
2763
  }
2663
2764
  }
2664
- let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "orderStatus", value: orderStatus, in: "path", style: "simple", explode: false, dataType: "OrderStatus", dataFormat: undefined })}`;
2665
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2765
+ let localVarPath = `/dispatches/confirm`;
2766
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2666
2767
  context: localVarHttpContext,
2667
2768
  params: localVarQueryParameters,
2668
2769
  responseType: responseType_,
@@ -2673,22 +2774,9 @@ class DispatchService {
2673
2774
  reportProgress: reportProgress
2674
2775
  });
2675
2776
  }
2676
- getDispatchesFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
2677
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2678
- if ($skip !== undefined && $skip !== null) {
2679
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2680
- }
2681
- if ($top !== undefined && $top !== null) {
2682
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2683
- }
2684
- if ($orderby !== undefined && $orderby !== null) {
2685
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2686
- }
2687
- if ($filter !== undefined && $filter !== null) {
2688
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2689
- }
2690
- if (searchTerm !== undefined && searchTerm !== null) {
2691
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
2777
+ getDispatch(id, observe = 'body', reportProgress = false, options) {
2778
+ if (id === null || id === undefined) {
2779
+ throw new Error('Required parameter id was null or undefined when calling getDispatch.');
2692
2780
  }
2693
2781
  let localVarHeaders = this.defaultHeaders;
2694
2782
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -2722,10 +2810,9 @@ class DispatchService {
2722
2810
  responseType_ = 'blob';
2723
2811
  }
2724
2812
  }
2725
- let localVarPath = `/dispatch/search`;
2813
+ let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2726
2814
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2727
2815
  context: localVarHttpContext,
2728
- params: localVarQueryParameters,
2729
2816
  responseType: responseType_,
2730
2817
  withCredentials: this.configuration.withCredentials,
2731
2818
  headers: localVarHeaders,
@@ -2734,113 +2821,9 @@ class DispatchService {
2734
2821
  reportProgress: reportProgress
2735
2822
  });
2736
2823
  }
2737
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2738
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, providedIn: 'root' });
2739
- }
2740
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, decorators: [{
2741
- type: Injectable,
2742
- args: [{
2743
- providedIn: 'root'
2744
- }]
2745
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2746
- type: Optional
2747
- }, {
2748
- type: Inject,
2749
- args: [BASE_PATH]
2750
- }] }, { type: Configuration, decorators: [{
2751
- type: Optional
2752
- }] }] });
2753
-
2754
- /**
2755
- * Wms.API.Client
2756
- *
2757
- *
2758
- *
2759
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2760
- * https://openapi-generator.tech
2761
- * Do not edit the class manually.
2762
- */
2763
- /* tslint:disable:no-unused-variable member-ordering */
2764
- class DispatchItemsService {
2765
- httpClient;
2766
- basePath = 'http://localhost';
2767
- defaultHeaders = new HttpHeaders();
2768
- configuration = new Configuration();
2769
- encoder;
2770
- constructor(httpClient, basePath, configuration) {
2771
- this.httpClient = httpClient;
2772
- if (configuration) {
2773
- this.configuration = configuration;
2774
- }
2775
- if (typeof this.configuration.basePath !== 'string') {
2776
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2777
- if (firstBasePath != undefined) {
2778
- basePath = firstBasePath;
2779
- }
2780
- if (typeof basePath !== 'string') {
2781
- basePath = this.basePath;
2782
- }
2783
- this.configuration.basePath = basePath;
2784
- }
2785
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2786
- }
2787
- // @ts-ignore
2788
- addToHttpParams(httpParams, value, key) {
2789
- if (typeof value === "object" && value instanceof Date === false) {
2790
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2791
- }
2792
- else {
2793
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2794
- }
2795
- return httpParams;
2796
- }
2797
- addToHttpParamsRecursive(httpParams, value, key) {
2798
- if (value == null) {
2799
- return httpParams;
2800
- }
2801
- if (typeof value === "object") {
2802
- if (Array.isArray(value)) {
2803
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2804
- }
2805
- else if (value instanceof Date) {
2806
- if (key != null) {
2807
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2808
- }
2809
- else {
2810
- throw Error("key may not be null if value is Date");
2811
- }
2812
- }
2813
- else {
2814
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2815
- }
2816
- }
2817
- else if (key != null) {
2818
- httpParams = httpParams.append(key, value);
2819
- }
2820
- else {
2821
- throw Error("key may not be null if value is not object or array");
2822
- }
2823
- return httpParams;
2824
- }
2825
- getDispatchItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2824
+ getDispatchSummaryView(id, observe = 'body', reportProgress = false, options) {
2826
2825
  if (id === null || id === undefined) {
2827
- throw new Error('Required parameter id was null or undefined when calling getDispatchItems.');
2828
- }
2829
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2830
- if ($skip !== undefined && $skip !== null) {
2831
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2832
- }
2833
- if ($top !== undefined && $top !== null) {
2834
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2835
- }
2836
- if ($orderby !== undefined && $orderby !== null) {
2837
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2838
- }
2839
- if ($filter !== undefined && $filter !== null) {
2840
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2841
- }
2842
- if ($search !== undefined && $search !== null) {
2843
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2826
+ throw new Error('Required parameter id was null or undefined when calling getDispatchSummaryView.');
2844
2827
  }
2845
2828
  let localVarHeaders = this.defaultHeaders;
2846
2829
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -2874,10 +2857,9 @@ class DispatchItemsService {
2874
2857
  responseType_ = 'blob';
2875
2858
  }
2876
2859
  }
2877
- let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
2860
+ let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
2878
2861
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2879
2862
  context: localVarHttpContext,
2880
- params: localVarQueryParameters,
2881
2863
  responseType: responseType_,
2882
2864
  withCredentials: this.configuration.withCredentials,
2883
2865
  headers: localVarHeaders,
@@ -2886,109 +2868,36 @@ class DispatchItemsService {
2886
2868
  reportProgress: reportProgress
2887
2869
  });
2888
2870
  }
2889
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2890
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, providedIn: 'root' });
2891
- }
2892
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, decorators: [{
2893
- type: Injectable,
2894
- args: [{
2895
- providedIn: 'root'
2896
- }]
2897
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2898
- type: Optional
2899
- }, {
2900
- type: Inject,
2901
- args: [BASE_PATH]
2902
- }] }, { type: Configuration, decorators: [{
2903
- type: Optional
2904
- }] }] });
2905
-
2906
- /**
2907
- * Wms.API.Client
2908
- *
2909
- *
2910
- *
2911
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2912
- * https://openapi-generator.tech
2913
- * Do not edit the class manually.
2914
- */
2915
- /* tslint:disable:no-unused-variable member-ordering */
2916
- class DispatchesService {
2917
- httpClient;
2918
- basePath = 'http://localhost';
2919
- defaultHeaders = new HttpHeaders();
2920
- configuration = new Configuration();
2921
- encoder;
2922
- constructor(httpClient, basePath, configuration) {
2923
- this.httpClient = httpClient;
2924
- if (configuration) {
2925
- this.configuration = configuration;
2926
- }
2927
- if (typeof this.configuration.basePath !== 'string') {
2928
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2929
- if (firstBasePath != undefined) {
2930
- basePath = firstBasePath;
2931
- }
2932
- if (typeof basePath !== 'string') {
2933
- basePath = this.basePath;
2934
- }
2935
- this.configuration.basePath = basePath;
2936
- }
2937
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2938
- }
2939
- // @ts-ignore
2940
- addToHttpParams(httpParams, value, key) {
2941
- if (typeof value === "object" && value instanceof Date === false) {
2942
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2943
- }
2944
- else {
2945
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2871
+ getDispatchesByOrderStatus(orderStatus, $skip, $top, $orderby, $filter, $search, tabName, observe = 'body', reportProgress = false, options) {
2872
+ if (orderStatus === null || orderStatus === undefined) {
2873
+ throw new Error('Required parameter orderStatus was null or undefined when calling getDispatchesByOrderStatus.');
2946
2874
  }
2947
- return httpParams;
2948
- }
2949
- addToHttpParamsRecursive(httpParams, value, key) {
2950
- if (value == null) {
2951
- return httpParams;
2875
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2876
+ if ($skip !== undefined && $skip !== null) {
2877
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2952
2878
  }
2953
- if (typeof value === "object") {
2954
- if (Array.isArray(value)) {
2955
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2956
- }
2957
- else if (value instanceof Date) {
2958
- if (key != null) {
2959
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2960
- }
2961
- else {
2962
- throw Error("key may not be null if value is Date");
2963
- }
2964
- }
2965
- else {
2966
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2967
- }
2879
+ if ($top !== undefined && $top !== null) {
2880
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2968
2881
  }
2969
- else if (key != null) {
2970
- httpParams = httpParams.append(key, value);
2882
+ if ($orderby !== undefined && $orderby !== null) {
2883
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2971
2884
  }
2972
- else {
2973
- throw Error("key may not be null if value is not object or array");
2885
+ if ($filter !== undefined && $filter !== null) {
2886
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2974
2887
  }
2975
- return httpParams;
2976
- }
2977
- cancelDispatches(ids, observe = 'body', reportProgress = false, options) {
2978
- if (ids === null || ids === undefined) {
2979
- throw new Error('Required parameter ids was null or undefined when calling cancelDispatches.');
2888
+ if ($search !== undefined && $search !== null) {
2889
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2980
2890
  }
2981
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2982
- if (ids) {
2983
- ids.forEach((element) => {
2984
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
2985
- });
2891
+ if (tabName !== undefined && tabName !== null) {
2892
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, tabName, 'tabName');
2986
2893
  }
2987
2894
  let localVarHeaders = this.defaultHeaders;
2988
2895
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2989
2896
  if (localVarHttpHeaderAcceptSelected === undefined) {
2990
2897
  // to determine the Accept header
2991
- const httpHeaderAccepts = [];
2898
+ const httpHeaderAccepts = [
2899
+ 'application/json'
2900
+ ];
2992
2901
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2993
2902
  }
2994
2903
  if (localVarHttpHeaderAcceptSelected !== undefined) {
@@ -3014,8 +2923,8 @@ class DispatchesService {
3014
2923
  responseType_ = 'blob';
3015
2924
  }
3016
2925
  }
3017
- let localVarPath = `/dispatches/cancel`;
3018
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2926
+ let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "orderStatus", value: orderStatus, in: "path", style: "simple", explode: false, dataType: "OrderStatus", dataFormat: undefined })}`;
2927
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3019
2928
  context: localVarHttpContext,
3020
2929
  params: localVarQueryParameters,
3021
2930
  responseType: responseType_,
@@ -3026,27 +2935,30 @@ class DispatchesService {
3026
2935
  reportProgress: reportProgress
3027
2936
  });
3028
2937
  }
3029
- confirmDispatches(ids, dispatchDate, observe = 'body', reportProgress = false, options) {
3030
- if (ids === null || ids === undefined) {
3031
- throw new Error('Required parameter ids was null or undefined when calling confirmDispatches.');
2938
+ getDispatchesFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
2939
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2940
+ if ($skip !== undefined && $skip !== null) {
2941
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
3032
2942
  }
3033
- if (dispatchDate === null || dispatchDate === undefined) {
3034
- throw new Error('Required parameter dispatchDate was null or undefined when calling confirmDispatches.');
2943
+ if ($top !== undefined && $top !== null) {
2944
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
3035
2945
  }
3036
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3037
- if (ids) {
3038
- ids.forEach((element) => {
3039
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
3040
- });
2946
+ if ($orderby !== undefined && $orderby !== null) {
2947
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
3041
2948
  }
3042
- if (dispatchDate !== undefined && dispatchDate !== null) {
3043
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dispatchDate, 'dispatchDate');
2949
+ if ($filter !== undefined && $filter !== null) {
2950
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2951
+ }
2952
+ if (searchTerm !== undefined && searchTerm !== null) {
2953
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
3044
2954
  }
3045
2955
  let localVarHeaders = this.defaultHeaders;
3046
2956
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3047
2957
  if (localVarHttpHeaderAcceptSelected === undefined) {
3048
2958
  // to determine the Accept header
3049
- const httpHeaderAccepts = [];
2959
+ const httpHeaderAccepts = [
2960
+ 'application/json'
2961
+ ];
3050
2962
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3051
2963
  }
3052
2964
  if (localVarHttpHeaderAcceptSelected !== undefined) {
@@ -3072,8 +2984,8 @@ class DispatchesService {
3072
2984
  responseType_ = 'blob';
3073
2985
  }
3074
2986
  }
3075
- let localVarPath = `/dispatches/confirm`;
3076
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2987
+ let localVarPath = `/dispatch/search`;
2988
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3077
2989
  context: localVarHttpContext,
3078
2990
  params: localVarQueryParameters,
3079
2991
  responseType: responseType_,
@@ -6343,7 +6255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
6343
6255
  type: Optional
6344
6256
  }] }] });
6345
6257
 
6346
- const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchService, DispatchItemsService, DispatchesService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService];
6258
+ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchItemsService, DispatchesService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService];
6347
6259
 
6348
6260
  /**
6349
6261
  * Wms.API.Client
@@ -6824,5 +6736,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
6824
6736
  * Generated bundle index. Do not edit.
6825
6737
  */
6826
6738
 
6827
- export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchService, DispatchesService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserCompanyType, UserService, UsersInternalService };
6739
+ export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchesService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserCompanyType, UserService, UsersInternalService };
6828
6740
  //# sourceMappingURL=indigina-wms-api.mjs.map