@indigina/wms-api 0.0.60 → 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.60
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.60 --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)[];
@@ -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
+ }
@@ -5709,7 +5709,159 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
5709
5709
  type: Optional
5710
5710
  }] }] });
5711
5711
 
5712
- 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];
5713
5865
 
5714
5866
  /**
5715
5867
  * Wms.API.Client
@@ -6127,6 +6279,16 @@ const RecordType = {
6127
6279
  * Do not edit the class manually.
6128
6280
  */
6129
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
+
6130
6292
  class ApiModule {
6131
6293
  static forRoot(configurationFactory) {
6132
6294
  return {
@@ -6167,5 +6329,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
6167
6329
  * Generated bundle index. Do not edit.
6168
6330
  */
6169
6331
 
6170
- 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 };
6171
6333
  //# sourceMappingURL=indigina-wms-api.mjs.map