@indigina/myseko-api 0.0.17 → 0.0.18
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/myseko-api@0.0.
|
|
1
|
+
# @indigina/myseko-api@0.0.18
|
|
2
2
|
|
|
3
3
|
MySeko 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/myseko-api@0.0.
|
|
27
|
+
npm install @indigina/myseko-api@0.0.18 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders, HttpContext
|
|
4
|
+
import { HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
|
|
5
5
|
|
|
6
6
|
const BASE_PATH = new InjectionToken('basePath');
|
|
7
7
|
const COLLECTION_FORMATS = {
|
|
@@ -29,6 +29,20 @@ class CustomHttpParameterCodec {
|
|
|
29
29
|
return decodeURIComponent(v);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
class IdentityHttpParameterCodec {
|
|
33
|
+
encodeKey(k) {
|
|
34
|
+
return k;
|
|
35
|
+
}
|
|
36
|
+
encodeValue(v) {
|
|
37
|
+
return v;
|
|
38
|
+
}
|
|
39
|
+
decodeKey(k) {
|
|
40
|
+
return k;
|
|
41
|
+
}
|
|
42
|
+
decodeValue(v) {
|
|
43
|
+
return v;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
32
46
|
|
|
33
47
|
class Configuration {
|
|
34
48
|
/**
|
|
@@ -167,6 +181,131 @@ class Configuration {
|
|
|
167
181
|
}
|
|
168
182
|
}
|
|
169
183
|
|
|
184
|
+
var QueryParamStyle;
|
|
185
|
+
(function (QueryParamStyle) {
|
|
186
|
+
QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
|
|
187
|
+
QueryParamStyle[QueryParamStyle["Form"] = 1] = "Form";
|
|
188
|
+
QueryParamStyle[QueryParamStyle["DeepObject"] = 2] = "DeepObject";
|
|
189
|
+
QueryParamStyle[QueryParamStyle["SpaceDelimited"] = 3] = "SpaceDelimited";
|
|
190
|
+
QueryParamStyle[QueryParamStyle["PipeDelimited"] = 4] = "PipeDelimited";
|
|
191
|
+
})(QueryParamStyle || (QueryParamStyle = {}));
|
|
192
|
+
class OpenApiHttpParams {
|
|
193
|
+
params = new Map();
|
|
194
|
+
defaults;
|
|
195
|
+
encoder;
|
|
196
|
+
/**
|
|
197
|
+
* @param encoder Parameter serializer
|
|
198
|
+
* @param defaults Global defaults used when a specific parameter has no explicit options.
|
|
199
|
+
* By OpenAPI default, explode is true for query params with style=form.
|
|
200
|
+
*/
|
|
201
|
+
constructor(encoder, defaults) {
|
|
202
|
+
this.encoder = encoder || new CustomHttpParameterCodec();
|
|
203
|
+
this.defaults = {
|
|
204
|
+
explode: defaults?.explode ?? true,
|
|
205
|
+
delimiter: defaults?.delimiter ?? ",",
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
resolveOptions(local) {
|
|
209
|
+
return {
|
|
210
|
+
explode: local?.explode ?? this.defaults.explode,
|
|
211
|
+
delimiter: local?.delimiter ?? this.defaults.delimiter,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Replace the parameter's values and (optionally) its options.
|
|
216
|
+
* Options are stored per-parameter (not global).
|
|
217
|
+
*/
|
|
218
|
+
set(key, values, options) {
|
|
219
|
+
const arr = Array.isArray(values) ? values.slice() : [values];
|
|
220
|
+
const opts = this.resolveOptions(options);
|
|
221
|
+
this.params.set(key, { values: arr, options: opts });
|
|
222
|
+
return this;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Append a single value to the parameter. If the parameter didn't exist it will be created
|
|
226
|
+
* and use resolved options (global defaults merged with any provided options).
|
|
227
|
+
*/
|
|
228
|
+
append(key, value, options) {
|
|
229
|
+
const entry = this.params.get(key);
|
|
230
|
+
if (entry) {
|
|
231
|
+
// If new options provided, override the stored options for subsequent serialization
|
|
232
|
+
if (options) {
|
|
233
|
+
entry.options = this.resolveOptions({ ...entry.options, ...options });
|
|
234
|
+
}
|
|
235
|
+
entry.values.push(value);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this.set(key, [value], options);
|
|
239
|
+
}
|
|
240
|
+
return this;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Serialize to a query string according to per-parameter OpenAPI options.
|
|
244
|
+
* - If explode=true for that parameter → repeated key=value pairs (each value encoded).
|
|
245
|
+
* - If explode=false for that parameter → single key=value where values are individually encoded
|
|
246
|
+
* and joined using the configured delimiter. The delimiter character is inserted AS-IS
|
|
247
|
+
* (not percent-encoded).
|
|
248
|
+
*/
|
|
249
|
+
toString() {
|
|
250
|
+
const records = this.toRecord();
|
|
251
|
+
const parts = [];
|
|
252
|
+
for (const key in records) {
|
|
253
|
+
parts.push(`${key}=${records[key]}`);
|
|
254
|
+
}
|
|
255
|
+
return parts.join("&");
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Return parameters as a plain record.
|
|
259
|
+
* - If a parameter has exactly one value, returns that value directly.
|
|
260
|
+
* - If a parameter has multiple values, returns a readonly array of values.
|
|
261
|
+
*/
|
|
262
|
+
toRecord() {
|
|
263
|
+
const parts = {};
|
|
264
|
+
for (const [key, entry] of this.params.entries()) {
|
|
265
|
+
const encodedKey = this.encoder.encodeKey(key);
|
|
266
|
+
if (entry.options.explode) {
|
|
267
|
+
parts[encodedKey] = entry.values.map((v) => this.encoder.encodeValue(v));
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
const encodedValues = entry.values.map((v) => this.encoder.encodeValue(v));
|
|
271
|
+
// join with the delimiter *unencoded*
|
|
272
|
+
parts[encodedKey] = encodedValues.join(entry.options.delimiter);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return parts;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
|
|
279
|
+
*/
|
|
280
|
+
toHttpParams() {
|
|
281
|
+
const records = this.toRecord();
|
|
282
|
+
let httpParams = new HttpParams({ encoder: new IdentityHttpParameterCodec() });
|
|
283
|
+
return httpParams.appendAll(records);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function concatHttpParamsObject(httpParams, key, item, delimiter) {
|
|
287
|
+
let keyAndValues = [];
|
|
288
|
+
for (const k in item) {
|
|
289
|
+
keyAndValues.push(k);
|
|
290
|
+
const value = item[k];
|
|
291
|
+
if (Array.isArray(value)) {
|
|
292
|
+
keyAndValues.push(...value.map(convertToString));
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
keyAndValues.push(convertToString(value));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return httpParams.set(key, keyAndValues, { explode: false, delimiter: delimiter });
|
|
299
|
+
}
|
|
300
|
+
function convertToString(value) {
|
|
301
|
+
if (value instanceof Date) {
|
|
302
|
+
return value.toISOString();
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return value.toString();
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
170
309
|
/**
|
|
171
310
|
* MySeko.API.Client
|
|
172
311
|
*
|
|
@@ -198,48 +337,63 @@ class BaseService {
|
|
|
198
337
|
canConsumeForm(consumes) {
|
|
199
338
|
return consumes.indexOf('multipart/form-data') !== -1;
|
|
200
339
|
}
|
|
201
|
-
addToHttpParams(httpParams, value,
|
|
202
|
-
// If the value is an object (but not a Date), recursively add its keys.
|
|
203
|
-
if (typeof value === 'object' && !(value instanceof Date)) {
|
|
204
|
-
return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
|
|
205
|
-
}
|
|
206
|
-
return this.addToHttpParamsRecursive(httpParams, value, key);
|
|
207
|
-
}
|
|
208
|
-
addToHttpParamsRecursive(httpParams, value, key, isDeep = false) {
|
|
340
|
+
addToHttpParams(httpParams, key, value, paramStyle, explode) {
|
|
209
341
|
if (value === null || value === undefined) {
|
|
210
342
|
return httpParams;
|
|
211
343
|
}
|
|
212
|
-
if (
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return isDeep
|
|
216
|
-
? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams)
|
|
217
|
-
: httpParams.append(key, JSON.stringify(value));
|
|
344
|
+
if (paramStyle === QueryParamStyle.DeepObject) {
|
|
345
|
+
if (typeof value !== 'object') {
|
|
346
|
+
throw Error(`An object must be provided for key ${key} as it is a deep object`);
|
|
218
347
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
348
|
+
return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
|
|
349
|
+
}
|
|
350
|
+
else if (paramStyle === QueryParamStyle.Json) {
|
|
351
|
+
return httpParams.append(key, JSON.stringify(value));
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
// Form-style, SpaceDelimited or PipeDelimited
|
|
355
|
+
if (Object(value) !== value) {
|
|
356
|
+
// If it is a primitive type, add its string representation
|
|
357
|
+
return httpParams.append(key, value.toString());
|
|
222
358
|
}
|
|
223
359
|
else if (value instanceof Date) {
|
|
224
|
-
|
|
225
|
-
|
|
360
|
+
return httpParams.append(key, value.toISOString());
|
|
361
|
+
}
|
|
362
|
+
else if (Array.isArray(value)) {
|
|
363
|
+
// Otherwise, if it's an array, add each element.
|
|
364
|
+
if (paramStyle === QueryParamStyle.Form) {
|
|
365
|
+
return httpParams.set(key, value, { explode: explode, delimiter: ',' });
|
|
366
|
+
}
|
|
367
|
+
else if (paramStyle === QueryParamStyle.SpaceDelimited) {
|
|
368
|
+
return httpParams.set(key, value, { explode: explode, delimiter: ' ' });
|
|
226
369
|
}
|
|
227
370
|
else {
|
|
228
|
-
|
|
371
|
+
// PipeDelimited
|
|
372
|
+
return httpParams.set(key, value, { explode: explode, delimiter: '|' });
|
|
229
373
|
}
|
|
230
374
|
}
|
|
231
375
|
else {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
376
|
+
// Otherwise, if it's an object, add each field.
|
|
377
|
+
if (paramStyle === QueryParamStyle.Form) {
|
|
378
|
+
if (explode) {
|
|
379
|
+
Object.keys(value).forEach(k => {
|
|
380
|
+
httpParams = this.addToHttpParams(httpParams, k, value[k], paramStyle, explode);
|
|
381
|
+
});
|
|
382
|
+
return httpParams;
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return concatHttpParamsObject(httpParams, key, value, ',');
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
else if (paramStyle === QueryParamStyle.SpaceDelimited) {
|
|
389
|
+
return concatHttpParamsObject(httpParams, key, value, ' ');
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
// PipeDelimited
|
|
393
|
+
return concatHttpParamsObject(httpParams, key, value, '|');
|
|
394
|
+
}
|
|
236
395
|
}
|
|
237
|
-
return httpParams;
|
|
238
|
-
}
|
|
239
|
-
else if (key != null) {
|
|
240
|
-
return httpParams.append(key, value);
|
|
241
396
|
}
|
|
242
|
-
throw Error("key may not be null if value is not object or array");
|
|
243
397
|
}
|
|
244
398
|
}
|
|
245
399
|
|
|
@@ -287,14 +441,14 @@ class AuthService extends BaseService {
|
|
|
287
441
|
...(withCredentials ? { withCredentials } : {}),
|
|
288
442
|
headers: localVarHeaders,
|
|
289
443
|
observe: observe,
|
|
290
|
-
transferCache: localVarTransferCache,
|
|
444
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
291
445
|
reportProgress: reportProgress
|
|
292
446
|
});
|
|
293
447
|
}
|
|
294
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
295
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
449
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
296
450
|
}
|
|
297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
298
452
|
type: Injectable,
|
|
299
453
|
args: [{
|
|
300
454
|
providedIn: 'root'
|
|
@@ -331,15 +485,15 @@ class CalendarService extends BaseService {
|
|
|
331
485
|
if (endDate === null || endDate === undefined) {
|
|
332
486
|
throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRange.');
|
|
333
487
|
}
|
|
334
|
-
let localVarQueryParameters = new
|
|
335
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy,
|
|
336
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm,
|
|
337
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter,
|
|
338
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby,
|
|
339
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $select,
|
|
340
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $expand,
|
|
341
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top,
|
|
342
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip,
|
|
488
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
489
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'viewBy', viewBy, QueryParamStyle.Form, true);
|
|
490
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
491
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
492
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
493
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$select', $select, QueryParamStyle.Form, true);
|
|
494
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$expand', $expand, QueryParamStyle.Form, true);
|
|
495
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
496
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
343
497
|
let localVarHeaders = this.defaultHeaders;
|
|
344
498
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
345
499
|
'application/json'
|
|
@@ -365,19 +519,19 @@ class CalendarService extends BaseService {
|
|
|
365
519
|
const { basePath, withCredentials } = this.configuration;
|
|
366
520
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
367
521
|
context: localVarHttpContext,
|
|
368
|
-
params: localVarQueryParameters,
|
|
522
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
369
523
|
responseType: responseType_,
|
|
370
524
|
...(withCredentials ? { withCredentials } : {}),
|
|
371
525
|
headers: localVarHeaders,
|
|
372
526
|
observe: observe,
|
|
373
|
-
transferCache: localVarTransferCache,
|
|
527
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
374
528
|
reportProgress: reportProgress
|
|
375
529
|
});
|
|
376
530
|
}
|
|
377
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: CalendarService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
532
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
379
533
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: CalendarService, decorators: [{
|
|
381
535
|
type: Injectable,
|
|
382
536
|
args: [{
|
|
383
537
|
providedIn: 'root'
|
|
@@ -437,7 +591,7 @@ class DashboardService extends BaseService {
|
|
|
437
591
|
...(withCredentials ? { withCredentials } : {}),
|
|
438
592
|
headers: localVarHeaders,
|
|
439
593
|
observe: observe,
|
|
440
|
-
transferCache: localVarTransferCache,
|
|
594
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
441
595
|
reportProgress: reportProgress
|
|
442
596
|
});
|
|
443
597
|
}
|
|
@@ -471,14 +625,14 @@ class DashboardService extends BaseService {
|
|
|
471
625
|
...(withCredentials ? { withCredentials } : {}),
|
|
472
626
|
headers: localVarHeaders,
|
|
473
627
|
observe: observe,
|
|
474
|
-
transferCache: localVarTransferCache,
|
|
628
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
475
629
|
reportProgress: reportProgress
|
|
476
630
|
});
|
|
477
631
|
}
|
|
478
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
479
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
633
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, providedIn: 'root' });
|
|
480
634
|
}
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, decorators: [{
|
|
482
636
|
type: Injectable,
|
|
483
637
|
args: [{
|
|
484
638
|
providedIn: 'root'
|
|
@@ -539,14 +693,14 @@ class HealthService extends BaseService {
|
|
|
539
693
|
...(withCredentials ? { withCredentials } : {}),
|
|
540
694
|
headers: localVarHeaders,
|
|
541
695
|
observe: observe,
|
|
542
|
-
transferCache: localVarTransferCache,
|
|
696
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
543
697
|
reportProgress: reportProgress
|
|
544
698
|
});
|
|
545
699
|
}
|
|
546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
547
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
701
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, providedIn: 'root' });
|
|
548
702
|
}
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, decorators: [{
|
|
550
704
|
type: Injectable,
|
|
551
705
|
args: [{
|
|
552
706
|
providedIn: 'root'
|
|
@@ -610,7 +764,7 @@ class SettingsService extends BaseService {
|
|
|
610
764
|
...(withCredentials ? { withCredentials } : {}),
|
|
611
765
|
headers: localVarHeaders,
|
|
612
766
|
observe: observe,
|
|
613
|
-
transferCache: localVarTransferCache,
|
|
767
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
614
768
|
reportProgress: reportProgress
|
|
615
769
|
});
|
|
616
770
|
}
|
|
@@ -645,7 +799,7 @@ class SettingsService extends BaseService {
|
|
|
645
799
|
...(withCredentials ? { withCredentials } : {}),
|
|
646
800
|
headers: localVarHeaders,
|
|
647
801
|
observe: observe,
|
|
648
|
-
transferCache: localVarTransferCache,
|
|
802
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
649
803
|
reportProgress: reportProgress
|
|
650
804
|
});
|
|
651
805
|
}
|
|
@@ -685,7 +839,7 @@ class SettingsService extends BaseService {
|
|
|
685
839
|
...(withCredentials ? { withCredentials } : {}),
|
|
686
840
|
headers: localVarHeaders,
|
|
687
841
|
observe: observe,
|
|
688
|
-
transferCache: localVarTransferCache,
|
|
842
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
689
843
|
reportProgress: reportProgress
|
|
690
844
|
});
|
|
691
845
|
}
|
|
@@ -722,7 +876,7 @@ class SettingsService extends BaseService {
|
|
|
722
876
|
...(withCredentials ? { withCredentials } : {}),
|
|
723
877
|
headers: localVarHeaders,
|
|
724
878
|
observe: observe,
|
|
725
|
-
transferCache: localVarTransferCache,
|
|
879
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
726
880
|
reportProgress: reportProgress
|
|
727
881
|
});
|
|
728
882
|
}
|
|
@@ -759,7 +913,7 @@ class SettingsService extends BaseService {
|
|
|
759
913
|
...(withCredentials ? { withCredentials } : {}),
|
|
760
914
|
headers: localVarHeaders,
|
|
761
915
|
observe: observe,
|
|
762
|
-
transferCache: localVarTransferCache,
|
|
916
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
763
917
|
reportProgress: reportProgress
|
|
764
918
|
});
|
|
765
919
|
}
|
|
@@ -808,14 +962,14 @@ class SettingsService extends BaseService {
|
|
|
808
962
|
...(withCredentials ? { withCredentials } : {}),
|
|
809
963
|
headers: localVarHeaders,
|
|
810
964
|
observe: observe,
|
|
811
|
-
transferCache: localVarTransferCache,
|
|
965
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
812
966
|
reportProgress: reportProgress
|
|
813
967
|
});
|
|
814
968
|
}
|
|
815
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
816
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
969
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
970
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
817
971
|
}
|
|
818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, decorators: [{
|
|
819
973
|
type: Injectable,
|
|
820
974
|
args: [{
|
|
821
975
|
providedIn: 'root'
|
|
@@ -878,7 +1032,7 @@ class ShipmentService extends BaseService {
|
|
|
878
1032
|
...(withCredentials ? { withCredentials } : {}),
|
|
879
1033
|
headers: localVarHeaders,
|
|
880
1034
|
observe: observe,
|
|
881
|
-
transferCache: localVarTransferCache,
|
|
1035
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
882
1036
|
reportProgress: reportProgress
|
|
883
1037
|
});
|
|
884
1038
|
}
|
|
@@ -915,7 +1069,7 @@ class ShipmentService extends BaseService {
|
|
|
915
1069
|
...(withCredentials ? { withCredentials } : {}),
|
|
916
1070
|
headers: localVarHeaders,
|
|
917
1071
|
observe: observe,
|
|
918
|
-
transferCache: localVarTransferCache,
|
|
1072
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
919
1073
|
reportProgress: reportProgress
|
|
920
1074
|
});
|
|
921
1075
|
}
|
|
@@ -952,7 +1106,7 @@ class ShipmentService extends BaseService {
|
|
|
952
1106
|
...(withCredentials ? { withCredentials } : {}),
|
|
953
1107
|
headers: localVarHeaders,
|
|
954
1108
|
observe: observe,
|
|
955
|
-
transferCache: localVarTransferCache,
|
|
1109
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
956
1110
|
reportProgress: reportProgress
|
|
957
1111
|
});
|
|
958
1112
|
}
|
|
@@ -989,16 +1143,16 @@ class ShipmentService extends BaseService {
|
|
|
989
1143
|
...(withCredentials ? { withCredentials } : {}),
|
|
990
1144
|
headers: localVarHeaders,
|
|
991
1145
|
observe: observe,
|
|
992
|
-
transferCache: localVarTransferCache,
|
|
1146
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
993
1147
|
reportProgress: reportProgress
|
|
994
1148
|
});
|
|
995
1149
|
}
|
|
996
1150
|
getShipments($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
|
|
997
|
-
let localVarQueryParameters = new
|
|
998
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip,
|
|
999
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top,
|
|
1000
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby,
|
|
1001
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter,
|
|
1151
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1152
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1153
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1154
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1155
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1002
1156
|
let localVarHeaders = this.defaultHeaders;
|
|
1003
1157
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1004
1158
|
'application/json'
|
|
@@ -1024,22 +1178,22 @@ class ShipmentService extends BaseService {
|
|
|
1024
1178
|
const { basePath, withCredentials } = this.configuration;
|
|
1025
1179
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1026
1180
|
context: localVarHttpContext,
|
|
1027
|
-
params: localVarQueryParameters,
|
|
1181
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1028
1182
|
responseType: responseType_,
|
|
1029
1183
|
...(withCredentials ? { withCredentials } : {}),
|
|
1030
1184
|
headers: localVarHeaders,
|
|
1031
1185
|
observe: observe,
|
|
1032
|
-
transferCache: localVarTransferCache,
|
|
1186
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1033
1187
|
reportProgress: reportProgress
|
|
1034
1188
|
});
|
|
1035
1189
|
}
|
|
1036
1190
|
getShipmentsWithSearch($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
1037
|
-
let localVarQueryParameters = new
|
|
1038
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip,
|
|
1039
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top,
|
|
1040
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby,
|
|
1041
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter,
|
|
1042
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm,
|
|
1191
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1192
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1193
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1194
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1195
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1196
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
1043
1197
|
let localVarHeaders = this.defaultHeaders;
|
|
1044
1198
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1045
1199
|
'application/json'
|
|
@@ -1065,19 +1219,19 @@ class ShipmentService extends BaseService {
|
|
|
1065
1219
|
const { basePath, withCredentials } = this.configuration;
|
|
1066
1220
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1067
1221
|
context: localVarHttpContext,
|
|
1068
|
-
params: localVarQueryParameters,
|
|
1222
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1069
1223
|
responseType: responseType_,
|
|
1070
1224
|
...(withCredentials ? { withCredentials } : {}),
|
|
1071
1225
|
headers: localVarHeaders,
|
|
1072
1226
|
observe: observe,
|
|
1073
|
-
transferCache: localVarTransferCache,
|
|
1227
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1074
1228
|
reportProgress: reportProgress
|
|
1075
1229
|
});
|
|
1076
1230
|
}
|
|
1077
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1078
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1231
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1232
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, providedIn: 'root' });
|
|
1079
1233
|
}
|
|
1080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, decorators: [{
|
|
1081
1235
|
type: Injectable,
|
|
1082
1236
|
args: [{
|
|
1083
1237
|
providedIn: 'root'
|
|
@@ -1137,14 +1291,14 @@ class UserService extends BaseService {
|
|
|
1137
1291
|
...(withCredentials ? { withCredentials } : {}),
|
|
1138
1292
|
headers: localVarHeaders,
|
|
1139
1293
|
observe: observe,
|
|
1140
|
-
transferCache: localVarTransferCache,
|
|
1294
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1141
1295
|
reportProgress: reportProgress
|
|
1142
1296
|
});
|
|
1143
1297
|
}
|
|
1144
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1145
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1299
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
1146
1300
|
}
|
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, decorators: [{
|
|
1148
1302
|
type: Injectable,
|
|
1149
1303
|
args: [{
|
|
1150
1304
|
providedIn: 'root'
|
|
@@ -1204,7 +1358,7 @@ class UsergroupService extends BaseService {
|
|
|
1204
1358
|
...(withCredentials ? { withCredentials } : {}),
|
|
1205
1359
|
headers: localVarHeaders,
|
|
1206
1360
|
observe: observe,
|
|
1207
|
-
transferCache: localVarTransferCache,
|
|
1361
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1208
1362
|
reportProgress: reportProgress
|
|
1209
1363
|
});
|
|
1210
1364
|
}
|
|
@@ -1212,8 +1366,8 @@ class UsergroupService extends BaseService {
|
|
|
1212
1366
|
if (regGroupID === null || regGroupID === undefined) {
|
|
1213
1367
|
throw new Error('Required parameter regGroupID was null or undefined when calling setUserGroup.');
|
|
1214
1368
|
}
|
|
1215
|
-
let localVarQueryParameters = new
|
|
1216
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID,
|
|
1369
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'regGroupID', regGroupID, QueryParamStyle.Form, true);
|
|
1217
1371
|
let localVarHeaders = this.defaultHeaders;
|
|
1218
1372
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1219
1373
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -1237,19 +1391,19 @@ class UsergroupService extends BaseService {
|
|
|
1237
1391
|
const { basePath, withCredentials } = this.configuration;
|
|
1238
1392
|
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1239
1393
|
context: localVarHttpContext,
|
|
1240
|
-
params: localVarQueryParameters,
|
|
1394
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1241
1395
|
responseType: responseType_,
|
|
1242
1396
|
...(withCredentials ? { withCredentials } : {}),
|
|
1243
1397
|
headers: localVarHeaders,
|
|
1244
1398
|
observe: observe,
|
|
1245
|
-
transferCache: localVarTransferCache,
|
|
1399
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1246
1400
|
reportProgress: reportProgress
|
|
1247
1401
|
});
|
|
1248
1402
|
}
|
|
1249
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1250
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1404
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, providedIn: 'root' });
|
|
1251
1405
|
}
|
|
1252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, decorators: [{
|
|
1253
1407
|
type: Injectable,
|
|
1254
1408
|
args: [{
|
|
1255
1409
|
providedIn: 'root'
|
|
@@ -1454,11 +1608,11 @@ class ApiModule {
|
|
|
1454
1608
|
'See also https://github.com/angular/angular/issues/20575');
|
|
1455
1609
|
}
|
|
1456
1610
|
}
|
|
1457
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1458
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1459
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1611
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1612
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.0", ngImport: i0, type: ApiModule });
|
|
1613
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule });
|
|
1460
1614
|
}
|
|
1461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule, decorators: [{
|
|
1462
1616
|
type: NgModule,
|
|
1463
1617
|
args: [{
|
|
1464
1618
|
imports: [],
|