@indigina/myseko-api 0.0.16 → 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.
|
@@ -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,14 +591,48 @@ 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
|
}
|
|
444
|
-
|
|
445
|
-
|
|
598
|
+
getDeliveriesToday(observe = 'body', reportProgress = false, options) {
|
|
599
|
+
let localVarHeaders = this.defaultHeaders;
|
|
600
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
601
|
+
'application/json'
|
|
602
|
+
]);
|
|
603
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
604
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
605
|
+
}
|
|
606
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
607
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
608
|
+
let responseType_ = 'json';
|
|
609
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
610
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
611
|
+
responseType_ = 'text';
|
|
612
|
+
}
|
|
613
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
614
|
+
responseType_ = 'json';
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
responseType_ = 'blob';
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
let localVarPath = `/myseko/dashboard/deliveries-today`;
|
|
621
|
+
const { basePath, withCredentials } = this.configuration;
|
|
622
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
623
|
+
context: localVarHttpContext,
|
|
624
|
+
responseType: responseType_,
|
|
625
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
626
|
+
headers: localVarHeaders,
|
|
627
|
+
observe: observe,
|
|
628
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
629
|
+
reportProgress: reportProgress
|
|
630
|
+
});
|
|
631
|
+
}
|
|
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' });
|
|
446
634
|
}
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, decorators: [{
|
|
448
636
|
type: Injectable,
|
|
449
637
|
args: [{
|
|
450
638
|
providedIn: 'root'
|
|
@@ -505,14 +693,14 @@ class HealthService extends BaseService {
|
|
|
505
693
|
...(withCredentials ? { withCredentials } : {}),
|
|
506
694
|
headers: localVarHeaders,
|
|
507
695
|
observe: observe,
|
|
508
|
-
transferCache: localVarTransferCache,
|
|
696
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
509
697
|
reportProgress: reportProgress
|
|
510
698
|
});
|
|
511
699
|
}
|
|
512
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
513
|
-
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' });
|
|
514
702
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, decorators: [{
|
|
516
704
|
type: Injectable,
|
|
517
705
|
args: [{
|
|
518
706
|
providedIn: 'root'
|
|
@@ -576,7 +764,7 @@ class SettingsService extends BaseService {
|
|
|
576
764
|
...(withCredentials ? { withCredentials } : {}),
|
|
577
765
|
headers: localVarHeaders,
|
|
578
766
|
observe: observe,
|
|
579
|
-
transferCache: localVarTransferCache,
|
|
767
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
580
768
|
reportProgress: reportProgress
|
|
581
769
|
});
|
|
582
770
|
}
|
|
@@ -611,7 +799,7 @@ class SettingsService extends BaseService {
|
|
|
611
799
|
...(withCredentials ? { withCredentials } : {}),
|
|
612
800
|
headers: localVarHeaders,
|
|
613
801
|
observe: observe,
|
|
614
|
-
transferCache: localVarTransferCache,
|
|
802
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
615
803
|
reportProgress: reportProgress
|
|
616
804
|
});
|
|
617
805
|
}
|
|
@@ -651,7 +839,7 @@ class SettingsService extends BaseService {
|
|
|
651
839
|
...(withCredentials ? { withCredentials } : {}),
|
|
652
840
|
headers: localVarHeaders,
|
|
653
841
|
observe: observe,
|
|
654
|
-
transferCache: localVarTransferCache,
|
|
842
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
655
843
|
reportProgress: reportProgress
|
|
656
844
|
});
|
|
657
845
|
}
|
|
@@ -688,7 +876,7 @@ class SettingsService extends BaseService {
|
|
|
688
876
|
...(withCredentials ? { withCredentials } : {}),
|
|
689
877
|
headers: localVarHeaders,
|
|
690
878
|
observe: observe,
|
|
691
|
-
transferCache: localVarTransferCache,
|
|
879
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
692
880
|
reportProgress: reportProgress
|
|
693
881
|
});
|
|
694
882
|
}
|
|
@@ -725,7 +913,7 @@ class SettingsService extends BaseService {
|
|
|
725
913
|
...(withCredentials ? { withCredentials } : {}),
|
|
726
914
|
headers: localVarHeaders,
|
|
727
915
|
observe: observe,
|
|
728
|
-
transferCache: localVarTransferCache,
|
|
916
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
729
917
|
reportProgress: reportProgress
|
|
730
918
|
});
|
|
731
919
|
}
|
|
@@ -774,14 +962,14 @@ class SettingsService extends BaseService {
|
|
|
774
962
|
...(withCredentials ? { withCredentials } : {}),
|
|
775
963
|
headers: localVarHeaders,
|
|
776
964
|
observe: observe,
|
|
777
|
-
transferCache: localVarTransferCache,
|
|
965
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
778
966
|
reportProgress: reportProgress
|
|
779
967
|
});
|
|
780
968
|
}
|
|
781
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
782
|
-
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' });
|
|
783
971
|
}
|
|
784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, decorators: [{
|
|
785
973
|
type: Injectable,
|
|
786
974
|
args: [{
|
|
787
975
|
providedIn: 'root'
|
|
@@ -844,7 +1032,7 @@ class ShipmentService extends BaseService {
|
|
|
844
1032
|
...(withCredentials ? { withCredentials } : {}),
|
|
845
1033
|
headers: localVarHeaders,
|
|
846
1034
|
observe: observe,
|
|
847
|
-
transferCache: localVarTransferCache,
|
|
1035
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
848
1036
|
reportProgress: reportProgress
|
|
849
1037
|
});
|
|
850
1038
|
}
|
|
@@ -881,7 +1069,7 @@ class ShipmentService extends BaseService {
|
|
|
881
1069
|
...(withCredentials ? { withCredentials } : {}),
|
|
882
1070
|
headers: localVarHeaders,
|
|
883
1071
|
observe: observe,
|
|
884
|
-
transferCache: localVarTransferCache,
|
|
1072
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
885
1073
|
reportProgress: reportProgress
|
|
886
1074
|
});
|
|
887
1075
|
}
|
|
@@ -918,7 +1106,7 @@ class ShipmentService extends BaseService {
|
|
|
918
1106
|
...(withCredentials ? { withCredentials } : {}),
|
|
919
1107
|
headers: localVarHeaders,
|
|
920
1108
|
observe: observe,
|
|
921
|
-
transferCache: localVarTransferCache,
|
|
1109
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
922
1110
|
reportProgress: reportProgress
|
|
923
1111
|
});
|
|
924
1112
|
}
|
|
@@ -955,16 +1143,16 @@ class ShipmentService extends BaseService {
|
|
|
955
1143
|
...(withCredentials ? { withCredentials } : {}),
|
|
956
1144
|
headers: localVarHeaders,
|
|
957
1145
|
observe: observe,
|
|
958
|
-
transferCache: localVarTransferCache,
|
|
1146
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
959
1147
|
reportProgress: reportProgress
|
|
960
1148
|
});
|
|
961
1149
|
}
|
|
962
1150
|
getShipments($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
|
|
963
|
-
let localVarQueryParameters = new
|
|
964
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip,
|
|
965
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top,
|
|
966
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby,
|
|
967
|
-
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);
|
|
968
1156
|
let localVarHeaders = this.defaultHeaders;
|
|
969
1157
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
970
1158
|
'application/json'
|
|
@@ -990,22 +1178,22 @@ class ShipmentService extends BaseService {
|
|
|
990
1178
|
const { basePath, withCredentials } = this.configuration;
|
|
991
1179
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
992
1180
|
context: localVarHttpContext,
|
|
993
|
-
params: localVarQueryParameters,
|
|
1181
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
994
1182
|
responseType: responseType_,
|
|
995
1183
|
...(withCredentials ? { withCredentials } : {}),
|
|
996
1184
|
headers: localVarHeaders,
|
|
997
1185
|
observe: observe,
|
|
998
|
-
transferCache: localVarTransferCache,
|
|
1186
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
999
1187
|
reportProgress: reportProgress
|
|
1000
1188
|
});
|
|
1001
1189
|
}
|
|
1002
1190
|
getShipmentsWithSearch($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
1003
|
-
let localVarQueryParameters = new
|
|
1004
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip,
|
|
1005
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top,
|
|
1006
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby,
|
|
1007
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter,
|
|
1008
|
-
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);
|
|
1009
1197
|
let localVarHeaders = this.defaultHeaders;
|
|
1010
1198
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1011
1199
|
'application/json'
|
|
@@ -1031,19 +1219,19 @@ class ShipmentService extends BaseService {
|
|
|
1031
1219
|
const { basePath, withCredentials } = this.configuration;
|
|
1032
1220
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1033
1221
|
context: localVarHttpContext,
|
|
1034
|
-
params: localVarQueryParameters,
|
|
1222
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1035
1223
|
responseType: responseType_,
|
|
1036
1224
|
...(withCredentials ? { withCredentials } : {}),
|
|
1037
1225
|
headers: localVarHeaders,
|
|
1038
1226
|
observe: observe,
|
|
1039
|
-
transferCache: localVarTransferCache,
|
|
1227
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1040
1228
|
reportProgress: reportProgress
|
|
1041
1229
|
});
|
|
1042
1230
|
}
|
|
1043
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1044
|
-
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' });
|
|
1045
1233
|
}
|
|
1046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, decorators: [{
|
|
1047
1235
|
type: Injectable,
|
|
1048
1236
|
args: [{
|
|
1049
1237
|
providedIn: 'root'
|
|
@@ -1103,14 +1291,14 @@ class UserService extends BaseService {
|
|
|
1103
1291
|
...(withCredentials ? { withCredentials } : {}),
|
|
1104
1292
|
headers: localVarHeaders,
|
|
1105
1293
|
observe: observe,
|
|
1106
|
-
transferCache: localVarTransferCache,
|
|
1294
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1107
1295
|
reportProgress: reportProgress
|
|
1108
1296
|
});
|
|
1109
1297
|
}
|
|
1110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1111
|
-
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' });
|
|
1112
1300
|
}
|
|
1113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, decorators: [{
|
|
1114
1302
|
type: Injectable,
|
|
1115
1303
|
args: [{
|
|
1116
1304
|
providedIn: 'root'
|
|
@@ -1170,7 +1358,7 @@ class UsergroupService extends BaseService {
|
|
|
1170
1358
|
...(withCredentials ? { withCredentials } : {}),
|
|
1171
1359
|
headers: localVarHeaders,
|
|
1172
1360
|
observe: observe,
|
|
1173
|
-
transferCache: localVarTransferCache,
|
|
1361
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1174
1362
|
reportProgress: reportProgress
|
|
1175
1363
|
});
|
|
1176
1364
|
}
|
|
@@ -1178,8 +1366,8 @@ class UsergroupService extends BaseService {
|
|
|
1178
1366
|
if (regGroupID === null || regGroupID === undefined) {
|
|
1179
1367
|
throw new Error('Required parameter regGroupID was null or undefined when calling setUserGroup.');
|
|
1180
1368
|
}
|
|
1181
|
-
let localVarQueryParameters = new
|
|
1182
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID,
|
|
1369
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'regGroupID', regGroupID, QueryParamStyle.Form, true);
|
|
1183
1371
|
let localVarHeaders = this.defaultHeaders;
|
|
1184
1372
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1185
1373
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -1203,19 +1391,19 @@ class UsergroupService extends BaseService {
|
|
|
1203
1391
|
const { basePath, withCredentials } = this.configuration;
|
|
1204
1392
|
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1205
1393
|
context: localVarHttpContext,
|
|
1206
|
-
params: localVarQueryParameters,
|
|
1394
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1207
1395
|
responseType: responseType_,
|
|
1208
1396
|
...(withCredentials ? { withCredentials } : {}),
|
|
1209
1397
|
headers: localVarHeaders,
|
|
1210
1398
|
observe: observe,
|
|
1211
|
-
transferCache: localVarTransferCache,
|
|
1399
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1212
1400
|
reportProgress: reportProgress
|
|
1213
1401
|
});
|
|
1214
1402
|
}
|
|
1215
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1216
|
-
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' });
|
|
1217
1405
|
}
|
|
1218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, decorators: [{
|
|
1219
1407
|
type: Injectable,
|
|
1220
1408
|
args: [{
|
|
1221
1409
|
providedIn: 'root'
|
|
@@ -1367,6 +1555,16 @@ const CalendarViewBy = {
|
|
|
1367
1555
|
* Do not edit the class manually.
|
|
1368
1556
|
*/
|
|
1369
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
* MySeko.API.Client
|
|
1560
|
+
*
|
|
1561
|
+
*
|
|
1562
|
+
*
|
|
1563
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1564
|
+
* https://openapi-generator.tech
|
|
1565
|
+
* Do not edit the class manually.
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1370
1568
|
/**
|
|
1371
1569
|
* MySeko.API.Client
|
|
1372
1570
|
*
|
|
@@ -1410,11 +1608,11 @@ class ApiModule {
|
|
|
1410
1608
|
'See also https://github.com/angular/angular/issues/20575');
|
|
1411
1609
|
}
|
|
1412
1610
|
}
|
|
1413
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1414
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1415
|
-
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 });
|
|
1416
1614
|
}
|
|
1417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule, decorators: [{
|
|
1418
1616
|
type: NgModule,
|
|
1419
1617
|
args: [{
|
|
1420
1618
|
imports: [],
|