@indigina/wms-api 0.0.60 → 0.0.62

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.62
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.62 --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,42 @@
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 $skip
18
+ * @param $top
19
+ * @param $orderby
20
+ * @param $filter
21
+ * @param $search
22
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
23
+ * @param reportProgress flag to report request and response progress.
24
+ */
25
+ getUsersInternal($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
26
+ httpHeaderAccept?: 'application/json';
27
+ context?: HttpContext;
28
+ transferCache?: boolean;
29
+ }): Observable<UserInfos>;
30
+ getUsersInternal($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
31
+ httpHeaderAccept?: 'application/json';
32
+ context?: HttpContext;
33
+ transferCache?: boolean;
34
+ }): Observable<HttpResponse<UserInfos>>;
35
+ getUsersInternal($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
36
+ httpHeaderAccept?: 'application/json';
37
+ context?: HttpContext;
38
+ transferCache?: boolean;
39
+ }): Observable<HttpEvent<UserInfos>>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersInternalService, [null, { optional: true; }, { optional: true; }]>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<UsersInternalService>;
42
+ }
@@ -5709,7 +5709,156 @@ 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($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
5784
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
5785
+ if ($skip !== undefined && $skip !== null) {
5786
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
5787
+ }
5788
+ if ($top !== undefined && $top !== null) {
5789
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
5790
+ }
5791
+ if ($orderby !== undefined && $orderby !== null) {
5792
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
5793
+ }
5794
+ if ($filter !== undefined && $filter !== null) {
5795
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
5796
+ }
5797
+ if ($search !== undefined && $search !== null) {
5798
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
5799
+ }
5800
+ let localVarHeaders = this.defaultHeaders;
5801
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
5802
+ if (localVarHttpHeaderAcceptSelected === undefined) {
5803
+ // to determine the Accept header
5804
+ const httpHeaderAccepts = [
5805
+ 'application/json'
5806
+ ];
5807
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5808
+ }
5809
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
5810
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
5811
+ }
5812
+ let localVarHttpContext = options && options.context;
5813
+ if (localVarHttpContext === undefined) {
5814
+ localVarHttpContext = new HttpContext();
5815
+ }
5816
+ let localVarTransferCache = options && options.transferCache;
5817
+ if (localVarTransferCache === undefined) {
5818
+ localVarTransferCache = true;
5819
+ }
5820
+ let responseType_ = 'json';
5821
+ if (localVarHttpHeaderAcceptSelected) {
5822
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
5823
+ responseType_ = 'text';
5824
+ }
5825
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
5826
+ responseType_ = 'json';
5827
+ }
5828
+ else {
5829
+ responseType_ = 'blob';
5830
+ }
5831
+ }
5832
+ let localVarPath = `/users/internal`;
5833
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
5834
+ context: localVarHttpContext,
5835
+ params: localVarQueryParameters,
5836
+ responseType: responseType_,
5837
+ withCredentials: this.configuration.withCredentials,
5838
+ headers: localVarHeaders,
5839
+ observe: observe,
5840
+ transferCache: localVarTransferCache,
5841
+ reportProgress: reportProgress
5842
+ });
5843
+ }
5844
+ 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 });
5845
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UsersInternalService, providedIn: 'root' });
5846
+ }
5847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UsersInternalService, decorators: [{
5848
+ type: Injectable,
5849
+ args: [{
5850
+ providedIn: 'root'
5851
+ }]
5852
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
5853
+ type: Optional
5854
+ }, {
5855
+ type: Inject,
5856
+ args: [BASE_PATH]
5857
+ }] }, { type: Configuration, decorators: [{
5858
+ type: Optional
5859
+ }] }] });
5860
+
5861
+ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchService, DispatchItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService];
5713
5862
 
5714
5863
  /**
5715
5864
  * Wms.API.Client
@@ -6127,6 +6276,16 @@ const RecordType = {
6127
6276
  * Do not edit the class manually.
6128
6277
  */
6129
6278
 
6279
+ /**
6280
+ * Wms.API.Client
6281
+ *
6282
+ *
6283
+ *
6284
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6285
+ * https://openapi-generator.tech
6286
+ * Do not edit the class manually.
6287
+ */
6288
+
6130
6289
  class ApiModule {
6131
6290
  static forRoot(configurationFactory) {
6132
6291
  return {
@@ -6167,5 +6326,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
6167
6326
  * Generated bundle index. Do not edit.
6168
6327
  */
6169
6328
 
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 };
6329
+ 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
6330
  //# sourceMappingURL=indigina-wms-api.mjs.map