@indigina/wms-api 0.0.59 → 0.0.61

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/wms-api@0.0.59
1
+ # @indigina/wms-api@0.0.61
2
2
 
3
3
  WMS 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/wms-api@0.0.59 --save
27
+ npm install @indigina/wms-api@0.0.61 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
package/api/api.d.ts CHANGED
@@ -36,4 +36,6 @@ export * from './taskUserRecords.service';
36
36
  import { TaskUserRecordsService } from './taskUserRecords.service';
37
37
  export * from './user.service';
38
38
  import { UserService } from './user.service';
39
- export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof DispatchService | typeof DispatchItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ProductQuantitiesService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof TaskCompletionTimeService | typeof TaskOperationsService | typeof TaskUserRecordsService | typeof UserService)[];
39
+ export * from './usersInternal.service';
40
+ import { UsersInternalService } from './usersInternal.service';
41
+ export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof DispatchService | typeof DispatchItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ProductQuantitiesService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof TaskCompletionTimeService | typeof TaskOperationsService | typeof TaskUserRecordsService | typeof UserService | typeof UsersInternalService)[];
@@ -36,6 +36,27 @@ export declare class DeliveriesService {
36
36
  context?: HttpContext;
37
37
  transferCache?: boolean;
38
38
  }): Observable<HttpEvent<any>>;
39
+ /**
40
+ * Check if LPN is visible for a delivery by id
41
+ * @param id
42
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
43
+ * @param reportProgress flag to report request and response progress.
44
+ */
45
+ checkVisibleLPN(id: string, observe?: 'body', reportProgress?: boolean, options?: {
46
+ httpHeaderAccept?: 'application/json';
47
+ context?: HttpContext;
48
+ transferCache?: boolean;
49
+ }): Observable<boolean>;
50
+ checkVisibleLPN(id: string, observe?: 'response', reportProgress?: boolean, options?: {
51
+ httpHeaderAccept?: 'application/json';
52
+ context?: HttpContext;
53
+ transferCache?: boolean;
54
+ }): Observable<HttpResponse<boolean>>;
55
+ checkVisibleLPN(id: string, observe?: 'events', reportProgress?: boolean, options?: {
56
+ httpHeaderAccept?: 'application/json';
57
+ context?: HttpContext;
58
+ transferCache?: boolean;
59
+ }): Observable<HttpEvent<boolean>>;
39
60
  /**
40
61
  * Confirm deliveries
41
62
  * @param ids
@@ -0,0 +1,43 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { UserInfos } from '../model/userInfos';
4
+ import { Configuration } from '../configuration';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UsersInternalService {
7
+ protected httpClient: HttpClient;
8
+ protected basePath: string;
9
+ defaultHeaders: HttpHeaders;
10
+ configuration: Configuration;
11
+ encoder: HttpParameterCodec;
12
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
13
+ private addToHttpParams;
14
+ private addToHttpParamsRecursive;
15
+ /**
16
+ * Retrieve a paginated list of users based on a specification
17
+ * @param id
18
+ * @param $skip
19
+ * @param $top
20
+ * @param $orderby
21
+ * @param $filter
22
+ * @param $search
23
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
24
+ * @param reportProgress flag to report request and response progress.
25
+ */
26
+ getUsersInternal(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
27
+ httpHeaderAccept?: 'application/json';
28
+ context?: HttpContext;
29
+ transferCache?: boolean;
30
+ }): Observable<UserInfos>;
31
+ getUsersInternal(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
32
+ httpHeaderAccept?: 'application/json';
33
+ context?: HttpContext;
34
+ transferCache?: boolean;
35
+ }): Observable<HttpResponse<UserInfos>>;
36
+ getUsersInternal(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
37
+ httpHeaderAccept?: 'application/json';
38
+ context?: HttpContext;
39
+ transferCache?: boolean;
40
+ }): Observable<HttpEvent<UserInfos>>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersInternalService, [null, { optional: true; }, { optional: true; }]>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<UsersInternalService>;
43
+ }
@@ -1467,6 +1467,53 @@ class DeliveriesService {
1467
1467
  reportProgress: reportProgress
1468
1468
  });
1469
1469
  }
1470
+ checkVisibleLPN(id, observe = 'body', reportProgress = false, options) {
1471
+ if (id === null || id === undefined) {
1472
+ throw new Error('Required parameter id was null or undefined when calling checkVisibleLPN.');
1473
+ }
1474
+ let localVarHeaders = this.defaultHeaders;
1475
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1476
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1477
+ // to determine the Accept header
1478
+ const httpHeaderAccepts = [
1479
+ 'application/json'
1480
+ ];
1481
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1482
+ }
1483
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1484
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1485
+ }
1486
+ let localVarHttpContext = options && options.context;
1487
+ if (localVarHttpContext === undefined) {
1488
+ localVarHttpContext = new HttpContext();
1489
+ }
1490
+ let localVarTransferCache = options && options.transferCache;
1491
+ if (localVarTransferCache === undefined) {
1492
+ localVarTransferCache = true;
1493
+ }
1494
+ let responseType_ = 'json';
1495
+ if (localVarHttpHeaderAcceptSelected) {
1496
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1497
+ responseType_ = 'text';
1498
+ }
1499
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1500
+ responseType_ = 'json';
1501
+ }
1502
+ else {
1503
+ responseType_ = 'blob';
1504
+ }
1505
+ }
1506
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/visible-lpn`;
1507
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1508
+ context: localVarHttpContext,
1509
+ responseType: responseType_,
1510
+ withCredentials: this.configuration.withCredentials,
1511
+ headers: localVarHeaders,
1512
+ observe: observe,
1513
+ transferCache: localVarTransferCache,
1514
+ reportProgress: reportProgress
1515
+ });
1516
+ }
1470
1517
  confirmDeliveries(ids, observe = 'body', reportProgress = false, options) {
1471
1518
  if (ids === null || ids === undefined) {
1472
1519
  throw new Error('Required parameter ids was null or undefined when calling confirmDeliveries.');
@@ -5662,7 +5709,159 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
5662
5709
  type: Optional
5663
5710
  }] }] });
5664
5711
 
5665
- const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchService, DispatchItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService];
5712
+ /**
5713
+ * Wms.API.Client
5714
+ *
5715
+ *
5716
+ *
5717
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5718
+ * https://openapi-generator.tech
5719
+ * Do not edit the class manually.
5720
+ */
5721
+ /* tslint:disable:no-unused-variable member-ordering */
5722
+ class UsersInternalService {
5723
+ httpClient;
5724
+ basePath = 'http://localhost';
5725
+ defaultHeaders = new HttpHeaders();
5726
+ configuration = new Configuration();
5727
+ encoder;
5728
+ constructor(httpClient, basePath, configuration) {
5729
+ this.httpClient = httpClient;
5730
+ if (configuration) {
5731
+ this.configuration = configuration;
5732
+ }
5733
+ if (typeof this.configuration.basePath !== 'string') {
5734
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
5735
+ if (firstBasePath != undefined) {
5736
+ basePath = firstBasePath;
5737
+ }
5738
+ if (typeof basePath !== 'string') {
5739
+ basePath = this.basePath;
5740
+ }
5741
+ this.configuration.basePath = basePath;
5742
+ }
5743
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
5744
+ }
5745
+ // @ts-ignore
5746
+ addToHttpParams(httpParams, value, key) {
5747
+ if (typeof value === "object" && value instanceof Date === false) {
5748
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
5749
+ }
5750
+ else {
5751
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
5752
+ }
5753
+ return httpParams;
5754
+ }
5755
+ addToHttpParamsRecursive(httpParams, value, key) {
5756
+ if (value == null) {
5757
+ return httpParams;
5758
+ }
5759
+ if (typeof value === "object") {
5760
+ if (Array.isArray(value)) {
5761
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
5762
+ }
5763
+ else if (value instanceof Date) {
5764
+ if (key != null) {
5765
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
5766
+ }
5767
+ else {
5768
+ throw Error("key may not be null if value is Date");
5769
+ }
5770
+ }
5771
+ else {
5772
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
5773
+ }
5774
+ }
5775
+ else if (key != null) {
5776
+ httpParams = httpParams.append(key, value);
5777
+ }
5778
+ else {
5779
+ throw Error("key may not be null if value is not object or array");
5780
+ }
5781
+ return httpParams;
5782
+ }
5783
+ getUsersInternal(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
5784
+ if (id === null || id === undefined) {
5785
+ throw new Error('Required parameter id was null or undefined when calling getUsersInternal.');
5786
+ }
5787
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
5788
+ if ($skip !== undefined && $skip !== null) {
5789
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
5790
+ }
5791
+ if ($top !== undefined && $top !== null) {
5792
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
5793
+ }
5794
+ if ($orderby !== undefined && $orderby !== null) {
5795
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
5796
+ }
5797
+ if ($filter !== undefined && $filter !== null) {
5798
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
5799
+ }
5800
+ if ($search !== undefined && $search !== null) {
5801
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
5802
+ }
5803
+ let localVarHeaders = this.defaultHeaders;
5804
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
5805
+ if (localVarHttpHeaderAcceptSelected === undefined) {
5806
+ // to determine the Accept header
5807
+ const httpHeaderAccepts = [
5808
+ 'application/json'
5809
+ ];
5810
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5811
+ }
5812
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
5813
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
5814
+ }
5815
+ let localVarHttpContext = options && options.context;
5816
+ if (localVarHttpContext === undefined) {
5817
+ localVarHttpContext = new HttpContext();
5818
+ }
5819
+ let localVarTransferCache = options && options.transferCache;
5820
+ if (localVarTransferCache === undefined) {
5821
+ localVarTransferCache = true;
5822
+ }
5823
+ let responseType_ = 'json';
5824
+ if (localVarHttpHeaderAcceptSelected) {
5825
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
5826
+ responseType_ = 'text';
5827
+ }
5828
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
5829
+ responseType_ = 'json';
5830
+ }
5831
+ else {
5832
+ responseType_ = 'blob';
5833
+ }
5834
+ }
5835
+ let localVarPath = `/users/internal`;
5836
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
5837
+ context: localVarHttpContext,
5838
+ params: localVarQueryParameters,
5839
+ responseType: responseType_,
5840
+ withCredentials: this.configuration.withCredentials,
5841
+ headers: localVarHeaders,
5842
+ observe: observe,
5843
+ transferCache: localVarTransferCache,
5844
+ reportProgress: reportProgress
5845
+ });
5846
+ }
5847
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UsersInternalService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
5848
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UsersInternalService, providedIn: 'root' });
5849
+ }
5850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UsersInternalService, decorators: [{
5851
+ type: Injectable,
5852
+ args: [{
5853
+ providedIn: 'root'
5854
+ }]
5855
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
5856
+ type: Optional
5857
+ }, {
5858
+ type: Inject,
5859
+ args: [BASE_PATH]
5860
+ }] }, { type: Configuration, decorators: [{
5861
+ type: Optional
5862
+ }] }] });
5863
+
5864
+ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchService, DispatchItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService];
5666
5865
 
5667
5866
  /**
5668
5867
  * Wms.API.Client
@@ -6080,6 +6279,16 @@ const RecordType = {
6080
6279
  * Do not edit the class manually.
6081
6280
  */
6082
6281
 
6282
+ /**
6283
+ * Wms.API.Client
6284
+ *
6285
+ *
6286
+ *
6287
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6288
+ * https://openapi-generator.tech
6289
+ * Do not edit the class manually.
6290
+ */
6291
+
6083
6292
  class ApiModule {
6084
6293
  static forRoot(configurationFactory) {
6085
6294
  return {
@@ -6120,5 +6329,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
6120
6329
  * Generated bundle index. Do not edit.
6121
6330
  */
6122
6331
 
6123
- export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService };
6332
+ export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService };
6124
6333
  //# sourceMappingURL=indigina-wms-api.mjs.map