@indigina/wms-api 0.0.43 → 0.0.45

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.43
1
+ # @indigina/wms-api@0.0.45
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.43 --save
27
+ npm install @indigina/wms-api@0.0.45 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
package/api/api.d.ts CHANGED
@@ -14,8 +14,10 @@ export * from './notes.service';
14
14
  import { NotesService } from './notes.service';
15
15
  export * from './permissions.service';
16
16
  import { PermissionsService } from './permissions.service';
17
+ export * from './settings.service';
18
+ import { SettingsService } from './settings.service';
17
19
  export * from './summary.service';
18
20
  import { SummaryService } from './summary.service';
19
21
  export * from './user.service';
20
22
  import { UserService } from './user.service';
21
- export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof SummaryService | typeof UserService)[];
23
+ export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof SettingsService | typeof SummaryService | typeof UserService)[];
@@ -0,0 +1,147 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { SettingValue } from '../model/settingValue';
4
+ import { SettingView } from '../model/settingView';
5
+ import { Configuration } from '../configuration';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SettingsService {
8
+ protected httpClient: HttpClient;
9
+ protected basePath: string;
10
+ defaultHeaders: HttpHeaders;
11
+ configuration: Configuration;
12
+ encoder: HttpParameterCodec;
13
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
14
+ private addToHttpParams;
15
+ private addToHttpParamsRecursive;
16
+ /**
17
+ * Delete a specific setting by group and key
18
+ * @param key
19
+ * @param group
20
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
21
+ * @param reportProgress flag to report request and response progress.
22
+ */
23
+ deleteSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
24
+ httpHeaderAccept?: undefined;
25
+ context?: HttpContext;
26
+ transferCache?: boolean;
27
+ }): Observable<any>;
28
+ deleteSettingByGroupAndKey(key: string, group: string, observe?: 'response', reportProgress?: boolean, options?: {
29
+ httpHeaderAccept?: undefined;
30
+ context?: HttpContext;
31
+ transferCache?: boolean;
32
+ }): Observable<HttpResponse<any>>;
33
+ deleteSettingByGroupAndKey(key: string, group: string, observe?: 'events', reportProgress?: boolean, options?: {
34
+ httpHeaderAccept?: undefined;
35
+ context?: HttpContext;
36
+ transferCache?: boolean;
37
+ }): Observable<HttpEvent<any>>;
38
+ /**
39
+ * Delete a specific setting by key
40
+ * @param key
41
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
42
+ * @param reportProgress flag to report request and response progress.
43
+ */
44
+ deleteSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
45
+ httpHeaderAccept?: undefined;
46
+ context?: HttpContext;
47
+ transferCache?: boolean;
48
+ }): Observable<any>;
49
+ deleteSettingByKey(key: string, observe?: 'response', reportProgress?: boolean, options?: {
50
+ httpHeaderAccept?: undefined;
51
+ context?: HttpContext;
52
+ transferCache?: boolean;
53
+ }): Observable<HttpResponse<any>>;
54
+ deleteSettingByKey(key: string, observe?: 'events', reportProgress?: boolean, options?: {
55
+ httpHeaderAccept?: undefined;
56
+ context?: HttpContext;
57
+ transferCache?: boolean;
58
+ }): Observable<HttpEvent<any>>;
59
+ /**
60
+ * Get a specific setting by group and key
61
+ * @param key
62
+ * @param group
63
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
64
+ * @param reportProgress flag to report request and response progress.
65
+ */
66
+ getSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
67
+ httpHeaderAccept?: 'application/json';
68
+ context?: HttpContext;
69
+ transferCache?: boolean;
70
+ }): Observable<SettingValue>;
71
+ getSettingByGroupAndKey(key: string, group: string, observe?: 'response', reportProgress?: boolean, options?: {
72
+ httpHeaderAccept?: 'application/json';
73
+ context?: HttpContext;
74
+ transferCache?: boolean;
75
+ }): Observable<HttpResponse<SettingValue>>;
76
+ getSettingByGroupAndKey(key: string, group: string, observe?: 'events', reportProgress?: boolean, options?: {
77
+ httpHeaderAccept?: 'application/json';
78
+ context?: HttpContext;
79
+ transferCache?: boolean;
80
+ }): Observable<HttpEvent<SettingValue>>;
81
+ /**
82
+ * Get a specific setting by key
83
+ * @param key
84
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
85
+ * @param reportProgress flag to report request and response progress.
86
+ */
87
+ getSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
88
+ httpHeaderAccept?: 'application/json';
89
+ context?: HttpContext;
90
+ transferCache?: boolean;
91
+ }): Observable<SettingValue>;
92
+ getSettingByKey(key: string, observe?: 'response', reportProgress?: boolean, options?: {
93
+ httpHeaderAccept?: 'application/json';
94
+ context?: HttpContext;
95
+ transferCache?: boolean;
96
+ }): Observable<HttpResponse<SettingValue>>;
97
+ getSettingByKey(key: string, observe?: 'events', reportProgress?: boolean, options?: {
98
+ httpHeaderAccept?: 'application/json';
99
+ context?: HttpContext;
100
+ transferCache?: boolean;
101
+ }): Observable<HttpEvent<SettingValue>>;
102
+ /**
103
+ * Get settings by group
104
+ * @param group
105
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
106
+ * @param reportProgress flag to report request and response progress.
107
+ */
108
+ getSettingsByGroup(group: string, observe?: 'body', reportProgress?: boolean, options?: {
109
+ httpHeaderAccept?: 'application/json';
110
+ context?: HttpContext;
111
+ transferCache?: boolean;
112
+ }): Observable<Array<SettingView>>;
113
+ getSettingsByGroup(group: string, observe?: 'response', reportProgress?: boolean, options?: {
114
+ httpHeaderAccept?: 'application/json';
115
+ context?: HttpContext;
116
+ transferCache?: boolean;
117
+ }): Observable<HttpResponse<Array<SettingView>>>;
118
+ getSettingsByGroup(group: string, observe?: 'events', reportProgress?: boolean, options?: {
119
+ httpHeaderAccept?: 'application/json';
120
+ context?: HttpContext;
121
+ transferCache?: boolean;
122
+ }): Observable<HttpEvent<Array<SettingView>>>;
123
+ /**
124
+ * Create or update a specific setting by key
125
+ * @param key
126
+ * @param settingValue
127
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
128
+ * @param reportProgress flag to report request and response progress.
129
+ */
130
+ setSettingByKey(key: string, settingValue: SettingValue, observe?: 'body', reportProgress?: boolean, options?: {
131
+ httpHeaderAccept?: 'application/json';
132
+ context?: HttpContext;
133
+ transferCache?: boolean;
134
+ }): Observable<SettingValue>;
135
+ setSettingByKey(key: string, settingValue: SettingValue, observe?: 'response', reportProgress?: boolean, options?: {
136
+ httpHeaderAccept?: 'application/json';
137
+ context?: HttpContext;
138
+ transferCache?: boolean;
139
+ }): Observable<HttpResponse<SettingValue>>;
140
+ setSettingByKey(key: string, settingValue: SettingValue, observe?: 'events', reportProgress?: boolean, options?: {
141
+ httpHeaderAccept?: 'application/json';
142
+ context?: HttpContext;
143
+ transferCache?: boolean;
144
+ }): Observable<HttpEvent<SettingValue>>;
145
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, [null, { optional: true; }, { optional: true; }]>;
146
+ static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
147
+ }
@@ -2140,6 +2140,390 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2140
2140
  type: Optional
2141
2141
  }] }] });
2142
2142
 
2143
+ /**
2144
+ * Wms.API.Client
2145
+ *
2146
+ *
2147
+ *
2148
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2149
+ * https://openapi-generator.tech
2150
+ * Do not edit the class manually.
2151
+ */
2152
+ /* tslint:disable:no-unused-variable member-ordering */
2153
+ class SettingsService {
2154
+ httpClient;
2155
+ basePath = 'http://localhost';
2156
+ defaultHeaders = new HttpHeaders();
2157
+ configuration = new Configuration();
2158
+ encoder;
2159
+ constructor(httpClient, basePath, configuration) {
2160
+ this.httpClient = httpClient;
2161
+ if (configuration) {
2162
+ this.configuration = configuration;
2163
+ }
2164
+ if (typeof this.configuration.basePath !== 'string') {
2165
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2166
+ if (firstBasePath != undefined) {
2167
+ basePath = firstBasePath;
2168
+ }
2169
+ if (typeof basePath !== 'string') {
2170
+ basePath = this.basePath;
2171
+ }
2172
+ this.configuration.basePath = basePath;
2173
+ }
2174
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2175
+ }
2176
+ // @ts-ignore
2177
+ addToHttpParams(httpParams, value, key) {
2178
+ if (typeof value === "object" && value instanceof Date === false) {
2179
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
2180
+ }
2181
+ else {
2182
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2183
+ }
2184
+ return httpParams;
2185
+ }
2186
+ addToHttpParamsRecursive(httpParams, value, key) {
2187
+ if (value == null) {
2188
+ return httpParams;
2189
+ }
2190
+ if (typeof value === "object") {
2191
+ if (Array.isArray(value)) {
2192
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2193
+ }
2194
+ else if (value instanceof Date) {
2195
+ if (key != null) {
2196
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2197
+ }
2198
+ else {
2199
+ throw Error("key may not be null if value is Date");
2200
+ }
2201
+ }
2202
+ else {
2203
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2204
+ }
2205
+ }
2206
+ else if (key != null) {
2207
+ httpParams = httpParams.append(key, value);
2208
+ }
2209
+ else {
2210
+ throw Error("key may not be null if value is not object or array");
2211
+ }
2212
+ return httpParams;
2213
+ }
2214
+ deleteSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
2215
+ if (key === null || key === undefined) {
2216
+ throw new Error('Required parameter key was null or undefined when calling deleteSettingByGroupAndKey.');
2217
+ }
2218
+ if (group === null || group === undefined) {
2219
+ throw new Error('Required parameter group was null or undefined when calling deleteSettingByGroupAndKey.');
2220
+ }
2221
+ let localVarHeaders = this.defaultHeaders;
2222
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2223
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2224
+ // to determine the Accept header
2225
+ const httpHeaderAccepts = [];
2226
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2227
+ }
2228
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2229
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2230
+ }
2231
+ let localVarHttpContext = options && options.context;
2232
+ if (localVarHttpContext === undefined) {
2233
+ localVarHttpContext = new HttpContext();
2234
+ }
2235
+ let localVarTransferCache = options && options.transferCache;
2236
+ if (localVarTransferCache === undefined) {
2237
+ localVarTransferCache = true;
2238
+ }
2239
+ let responseType_ = 'json';
2240
+ if (localVarHttpHeaderAcceptSelected) {
2241
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2242
+ responseType_ = 'text';
2243
+ }
2244
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2245
+ responseType_ = 'json';
2246
+ }
2247
+ else {
2248
+ responseType_ = 'blob';
2249
+ }
2250
+ }
2251
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2252
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2253
+ context: localVarHttpContext,
2254
+ responseType: responseType_,
2255
+ withCredentials: this.configuration.withCredentials,
2256
+ headers: localVarHeaders,
2257
+ observe: observe,
2258
+ transferCache: localVarTransferCache,
2259
+ reportProgress: reportProgress
2260
+ });
2261
+ }
2262
+ deleteSettingByKey(key, observe = 'body', reportProgress = false, options) {
2263
+ if (key === null || key === undefined) {
2264
+ throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
2265
+ }
2266
+ let localVarHeaders = this.defaultHeaders;
2267
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2268
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2269
+ // to determine the Accept header
2270
+ const httpHeaderAccepts = [];
2271
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2272
+ }
2273
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2274
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2275
+ }
2276
+ let localVarHttpContext = options && options.context;
2277
+ if (localVarHttpContext === undefined) {
2278
+ localVarHttpContext = new HttpContext();
2279
+ }
2280
+ let localVarTransferCache = options && options.transferCache;
2281
+ if (localVarTransferCache === undefined) {
2282
+ localVarTransferCache = true;
2283
+ }
2284
+ let responseType_ = 'json';
2285
+ if (localVarHttpHeaderAcceptSelected) {
2286
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2287
+ responseType_ = 'text';
2288
+ }
2289
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2290
+ responseType_ = 'json';
2291
+ }
2292
+ else {
2293
+ responseType_ = 'blob';
2294
+ }
2295
+ }
2296
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2297
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2298
+ context: localVarHttpContext,
2299
+ responseType: responseType_,
2300
+ withCredentials: this.configuration.withCredentials,
2301
+ headers: localVarHeaders,
2302
+ observe: observe,
2303
+ transferCache: localVarTransferCache,
2304
+ reportProgress: reportProgress
2305
+ });
2306
+ }
2307
+ getSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
2308
+ if (key === null || key === undefined) {
2309
+ throw new Error('Required parameter key was null or undefined when calling getSettingByGroupAndKey.');
2310
+ }
2311
+ if (group === null || group === undefined) {
2312
+ throw new Error('Required parameter group was null or undefined when calling getSettingByGroupAndKey.');
2313
+ }
2314
+ let localVarHeaders = this.defaultHeaders;
2315
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2316
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2317
+ // to determine the Accept header
2318
+ const httpHeaderAccepts = [
2319
+ 'application/json'
2320
+ ];
2321
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2322
+ }
2323
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2324
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2325
+ }
2326
+ let localVarHttpContext = options && options.context;
2327
+ if (localVarHttpContext === undefined) {
2328
+ localVarHttpContext = new HttpContext();
2329
+ }
2330
+ let localVarTransferCache = options && options.transferCache;
2331
+ if (localVarTransferCache === undefined) {
2332
+ localVarTransferCache = true;
2333
+ }
2334
+ let responseType_ = 'json';
2335
+ if (localVarHttpHeaderAcceptSelected) {
2336
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2337
+ responseType_ = 'text';
2338
+ }
2339
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2340
+ responseType_ = 'json';
2341
+ }
2342
+ else {
2343
+ responseType_ = 'blob';
2344
+ }
2345
+ }
2346
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2347
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2348
+ context: localVarHttpContext,
2349
+ responseType: responseType_,
2350
+ withCredentials: this.configuration.withCredentials,
2351
+ headers: localVarHeaders,
2352
+ observe: observe,
2353
+ transferCache: localVarTransferCache,
2354
+ reportProgress: reportProgress
2355
+ });
2356
+ }
2357
+ getSettingByKey(key, observe = 'body', reportProgress = false, options) {
2358
+ if (key === null || key === undefined) {
2359
+ throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
2360
+ }
2361
+ let localVarHeaders = this.defaultHeaders;
2362
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2363
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2364
+ // to determine the Accept header
2365
+ const httpHeaderAccepts = [
2366
+ 'application/json'
2367
+ ];
2368
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2369
+ }
2370
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2371
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2372
+ }
2373
+ let localVarHttpContext = options && options.context;
2374
+ if (localVarHttpContext === undefined) {
2375
+ localVarHttpContext = new HttpContext();
2376
+ }
2377
+ let localVarTransferCache = options && options.transferCache;
2378
+ if (localVarTransferCache === undefined) {
2379
+ localVarTransferCache = true;
2380
+ }
2381
+ let responseType_ = 'json';
2382
+ if (localVarHttpHeaderAcceptSelected) {
2383
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2384
+ responseType_ = 'text';
2385
+ }
2386
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2387
+ responseType_ = 'json';
2388
+ }
2389
+ else {
2390
+ responseType_ = 'blob';
2391
+ }
2392
+ }
2393
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2394
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2395
+ context: localVarHttpContext,
2396
+ responseType: responseType_,
2397
+ withCredentials: this.configuration.withCredentials,
2398
+ headers: localVarHeaders,
2399
+ observe: observe,
2400
+ transferCache: localVarTransferCache,
2401
+ reportProgress: reportProgress
2402
+ });
2403
+ }
2404
+ getSettingsByGroup(group, observe = 'body', reportProgress = false, options) {
2405
+ if (group === null || group === undefined) {
2406
+ throw new Error('Required parameter group was null or undefined when calling getSettingsByGroup.');
2407
+ }
2408
+ let localVarHeaders = this.defaultHeaders;
2409
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2410
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2411
+ // to determine the Accept header
2412
+ const httpHeaderAccepts = [
2413
+ 'application/json'
2414
+ ];
2415
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2416
+ }
2417
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2418
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2419
+ }
2420
+ let localVarHttpContext = options && options.context;
2421
+ if (localVarHttpContext === undefined) {
2422
+ localVarHttpContext = new HttpContext();
2423
+ }
2424
+ let localVarTransferCache = options && options.transferCache;
2425
+ if (localVarTransferCache === undefined) {
2426
+ localVarTransferCache = true;
2427
+ }
2428
+ let responseType_ = 'json';
2429
+ if (localVarHttpHeaderAcceptSelected) {
2430
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2431
+ responseType_ = 'text';
2432
+ }
2433
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2434
+ responseType_ = 'json';
2435
+ }
2436
+ else {
2437
+ responseType_ = 'blob';
2438
+ }
2439
+ }
2440
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2441
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2442
+ context: localVarHttpContext,
2443
+ responseType: responseType_,
2444
+ withCredentials: this.configuration.withCredentials,
2445
+ headers: localVarHeaders,
2446
+ observe: observe,
2447
+ transferCache: localVarTransferCache,
2448
+ reportProgress: reportProgress
2449
+ });
2450
+ }
2451
+ setSettingByKey(key, settingValue, observe = 'body', reportProgress = false, options) {
2452
+ if (key === null || key === undefined) {
2453
+ throw new Error('Required parameter key was null or undefined when calling setSettingByKey.');
2454
+ }
2455
+ if (settingValue === null || settingValue === undefined) {
2456
+ throw new Error('Required parameter settingValue was null or undefined when calling setSettingByKey.');
2457
+ }
2458
+ let localVarHeaders = this.defaultHeaders;
2459
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2460
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2461
+ // to determine the Accept header
2462
+ const httpHeaderAccepts = [
2463
+ 'application/json'
2464
+ ];
2465
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2466
+ }
2467
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2468
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2469
+ }
2470
+ let localVarHttpContext = options && options.context;
2471
+ if (localVarHttpContext === undefined) {
2472
+ localVarHttpContext = new HttpContext();
2473
+ }
2474
+ let localVarTransferCache = options && options.transferCache;
2475
+ if (localVarTransferCache === undefined) {
2476
+ localVarTransferCache = true;
2477
+ }
2478
+ // to determine the Content-Type header
2479
+ const consumes = [
2480
+ 'application/json'
2481
+ ];
2482
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2483
+ if (httpContentTypeSelected !== undefined) {
2484
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2485
+ }
2486
+ let responseType_ = 'json';
2487
+ if (localVarHttpHeaderAcceptSelected) {
2488
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2489
+ responseType_ = 'text';
2490
+ }
2491
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2492
+ responseType_ = 'json';
2493
+ }
2494
+ else {
2495
+ responseType_ = 'blob';
2496
+ }
2497
+ }
2498
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2499
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2500
+ context: localVarHttpContext,
2501
+ body: settingValue,
2502
+ responseType: responseType_,
2503
+ withCredentials: this.configuration.withCredentials,
2504
+ headers: localVarHeaders,
2505
+ observe: observe,
2506
+ transferCache: localVarTransferCache,
2507
+ reportProgress: reportProgress
2508
+ });
2509
+ }
2510
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2511
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, providedIn: 'root' });
2512
+ }
2513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, decorators: [{
2514
+ type: Injectable,
2515
+ args: [{
2516
+ providedIn: 'root'
2517
+ }]
2518
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2519
+ type: Optional
2520
+ }, {
2521
+ type: Inject,
2522
+ args: [BASE_PATH]
2523
+ }] }, { type: Configuration, decorators: [{
2524
+ type: Optional
2525
+ }] }] });
2526
+
2143
2527
  /**
2144
2528
  * Wms.API.Client
2145
2529
  *
@@ -2247,7 +2631,7 @@ class SummaryService {
2247
2631
  responseType_ = 'blob';
2248
2632
  }
2249
2633
  }
2250
- let localVarPath = `/summary/dashboard`;
2634
+ let localVarPath = `/summary/dashboard/${this.configuration.encodeParam({ name: "dashboardName", value: dashboardName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2251
2635
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2252
2636
  context: localVarHttpContext,
2253
2637
  responseType: responseType_,
@@ -2551,7 +2935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2551
2935
  type: Optional
2552
2936
  }] }] });
2553
2937
 
2554
- const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, SummaryService, UserService];
2938
+ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, SettingsService, SummaryService, UserService];
2555
2939
 
2556
2940
  /**
2557
2941
  * Wms.API.Client
@@ -2814,6 +3198,26 @@ const RecordType = {
2814
3198
  * Do not edit the class manually.
2815
3199
  */
2816
3200
 
3201
+ /**
3202
+ * Wms.API.Client
3203
+ *
3204
+ *
3205
+ *
3206
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3207
+ * https://openapi-generator.tech
3208
+ * Do not edit the class manually.
3209
+ */
3210
+
3211
+ /**
3212
+ * Wms.API.Client
3213
+ *
3214
+ *
3215
+ *
3216
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3217
+ * https://openapi-generator.tech
3218
+ * Do not edit the class manually.
3219
+ */
3220
+
2817
3221
  class ApiModule {
2818
3222
  static forRoot(configurationFactory) {
2819
3223
  return {
@@ -2854,5 +3258,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2854
3258
  * Generated bundle index. Do not edit.
2855
3259
  */
2856
3260
 
2857
- export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, RecordType, SummaryService, UserService };
3261
+ export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, RecordType, SettingsService, SummaryService, UserService };
2858
3262
  //# sourceMappingURL=indigina-wms-api.mjs.map