@indigina/myseko-api 0.0.17 → 0.0.19
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,18 @@ 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
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
localVarQueryParameters = this.
|
|
338
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
339
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
340
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $
|
|
341
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $
|
|
342
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $
|
|
488
|
+
if (viewBy === null || viewBy === undefined) {
|
|
489
|
+
throw new Error('Required parameter viewBy was null or undefined when calling getShipmentCalendarRange.');
|
|
490
|
+
}
|
|
491
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
492
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'viewBy', viewBy, QueryParamStyle.Form, true);
|
|
493
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
494
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
495
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
496
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$select', $select, QueryParamStyle.Form, true);
|
|
497
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$expand', $expand, QueryParamStyle.Form, true);
|
|
498
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
499
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
343
500
|
let localVarHeaders = this.defaultHeaders;
|
|
344
501
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
345
502
|
'application/json'
|
|
@@ -365,19 +522,19 @@ class CalendarService extends BaseService {
|
|
|
365
522
|
const { basePath, withCredentials } = this.configuration;
|
|
366
523
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
367
524
|
context: localVarHttpContext,
|
|
368
|
-
params: localVarQueryParameters,
|
|
525
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
369
526
|
responseType: responseType_,
|
|
370
527
|
...(withCredentials ? { withCredentials } : {}),
|
|
371
528
|
headers: localVarHeaders,
|
|
372
529
|
observe: observe,
|
|
373
|
-
transferCache: localVarTransferCache,
|
|
530
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
374
531
|
reportProgress: reportProgress
|
|
375
532
|
});
|
|
376
533
|
}
|
|
377
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
534
|
+
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 });
|
|
535
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
379
536
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: CalendarService, decorators: [{
|
|
381
538
|
type: Injectable,
|
|
382
539
|
args: [{
|
|
383
540
|
providedIn: 'root'
|
|
@@ -437,7 +594,7 @@ class DashboardService extends BaseService {
|
|
|
437
594
|
...(withCredentials ? { withCredentials } : {}),
|
|
438
595
|
headers: localVarHeaders,
|
|
439
596
|
observe: observe,
|
|
440
|
-
transferCache: localVarTransferCache,
|
|
597
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
441
598
|
reportProgress: reportProgress
|
|
442
599
|
});
|
|
443
600
|
}
|
|
@@ -471,14 +628,14 @@ class DashboardService extends BaseService {
|
|
|
471
628
|
...(withCredentials ? { withCredentials } : {}),
|
|
472
629
|
headers: localVarHeaders,
|
|
473
630
|
observe: observe,
|
|
474
|
-
transferCache: localVarTransferCache,
|
|
631
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
475
632
|
reportProgress: reportProgress
|
|
476
633
|
});
|
|
477
634
|
}
|
|
478
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
479
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
635
|
+
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 });
|
|
636
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, providedIn: 'root' });
|
|
480
637
|
}
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, decorators: [{
|
|
482
639
|
type: Injectable,
|
|
483
640
|
args: [{
|
|
484
641
|
providedIn: 'root'
|
|
@@ -539,14 +696,14 @@ class HealthService extends BaseService {
|
|
|
539
696
|
...(withCredentials ? { withCredentials } : {}),
|
|
540
697
|
headers: localVarHeaders,
|
|
541
698
|
observe: observe,
|
|
542
|
-
transferCache: localVarTransferCache,
|
|
699
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
543
700
|
reportProgress: reportProgress
|
|
544
701
|
});
|
|
545
702
|
}
|
|
546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
547
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
703
|
+
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 });
|
|
704
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, providedIn: 'root' });
|
|
548
705
|
}
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: HealthService, decorators: [{
|
|
550
707
|
type: Injectable,
|
|
551
708
|
args: [{
|
|
552
709
|
providedIn: 'root'
|
|
@@ -610,7 +767,7 @@ class SettingsService extends BaseService {
|
|
|
610
767
|
...(withCredentials ? { withCredentials } : {}),
|
|
611
768
|
headers: localVarHeaders,
|
|
612
769
|
observe: observe,
|
|
613
|
-
transferCache: localVarTransferCache,
|
|
770
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
614
771
|
reportProgress: reportProgress
|
|
615
772
|
});
|
|
616
773
|
}
|
|
@@ -645,7 +802,7 @@ class SettingsService extends BaseService {
|
|
|
645
802
|
...(withCredentials ? { withCredentials } : {}),
|
|
646
803
|
headers: localVarHeaders,
|
|
647
804
|
observe: observe,
|
|
648
|
-
transferCache: localVarTransferCache,
|
|
805
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
649
806
|
reportProgress: reportProgress
|
|
650
807
|
});
|
|
651
808
|
}
|
|
@@ -685,7 +842,7 @@ class SettingsService extends BaseService {
|
|
|
685
842
|
...(withCredentials ? { withCredentials } : {}),
|
|
686
843
|
headers: localVarHeaders,
|
|
687
844
|
observe: observe,
|
|
688
|
-
transferCache: localVarTransferCache,
|
|
845
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
689
846
|
reportProgress: reportProgress
|
|
690
847
|
});
|
|
691
848
|
}
|
|
@@ -722,7 +879,7 @@ class SettingsService extends BaseService {
|
|
|
722
879
|
...(withCredentials ? { withCredentials } : {}),
|
|
723
880
|
headers: localVarHeaders,
|
|
724
881
|
observe: observe,
|
|
725
|
-
transferCache: localVarTransferCache,
|
|
882
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
726
883
|
reportProgress: reportProgress
|
|
727
884
|
});
|
|
728
885
|
}
|
|
@@ -759,7 +916,7 @@ class SettingsService extends BaseService {
|
|
|
759
916
|
...(withCredentials ? { withCredentials } : {}),
|
|
760
917
|
headers: localVarHeaders,
|
|
761
918
|
observe: observe,
|
|
762
|
-
transferCache: localVarTransferCache,
|
|
919
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
763
920
|
reportProgress: reportProgress
|
|
764
921
|
});
|
|
765
922
|
}
|
|
@@ -808,14 +965,14 @@ class SettingsService extends BaseService {
|
|
|
808
965
|
...(withCredentials ? { withCredentials } : {}),
|
|
809
966
|
headers: localVarHeaders,
|
|
810
967
|
observe: observe,
|
|
811
|
-
transferCache: localVarTransferCache,
|
|
968
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
812
969
|
reportProgress: reportProgress
|
|
813
970
|
});
|
|
814
971
|
}
|
|
815
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
816
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
972
|
+
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 });
|
|
973
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
817
974
|
}
|
|
818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SettingsService, decorators: [{
|
|
819
976
|
type: Injectable,
|
|
820
977
|
args: [{
|
|
821
978
|
providedIn: 'root'
|
|
@@ -878,7 +1035,7 @@ class ShipmentService extends BaseService {
|
|
|
878
1035
|
...(withCredentials ? { withCredentials } : {}),
|
|
879
1036
|
headers: localVarHeaders,
|
|
880
1037
|
observe: observe,
|
|
881
|
-
transferCache: localVarTransferCache,
|
|
1038
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
882
1039
|
reportProgress: reportProgress
|
|
883
1040
|
});
|
|
884
1041
|
}
|
|
@@ -915,7 +1072,7 @@ class ShipmentService extends BaseService {
|
|
|
915
1072
|
...(withCredentials ? { withCredentials } : {}),
|
|
916
1073
|
headers: localVarHeaders,
|
|
917
1074
|
observe: observe,
|
|
918
|
-
transferCache: localVarTransferCache,
|
|
1075
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
919
1076
|
reportProgress: reportProgress
|
|
920
1077
|
});
|
|
921
1078
|
}
|
|
@@ -952,7 +1109,7 @@ class ShipmentService extends BaseService {
|
|
|
952
1109
|
...(withCredentials ? { withCredentials } : {}),
|
|
953
1110
|
headers: localVarHeaders,
|
|
954
1111
|
observe: observe,
|
|
955
|
-
transferCache: localVarTransferCache,
|
|
1112
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
956
1113
|
reportProgress: reportProgress
|
|
957
1114
|
});
|
|
958
1115
|
}
|
|
@@ -989,16 +1146,16 @@ class ShipmentService extends BaseService {
|
|
|
989
1146
|
...(withCredentials ? { withCredentials } : {}),
|
|
990
1147
|
headers: localVarHeaders,
|
|
991
1148
|
observe: observe,
|
|
992
|
-
transferCache: localVarTransferCache,
|
|
1149
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
993
1150
|
reportProgress: reportProgress
|
|
994
1151
|
});
|
|
995
1152
|
}
|
|
996
1153
|
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,
|
|
1154
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1155
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1156
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1157
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1158
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1002
1159
|
let localVarHeaders = this.defaultHeaders;
|
|
1003
1160
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1004
1161
|
'application/json'
|
|
@@ -1024,22 +1181,22 @@ class ShipmentService extends BaseService {
|
|
|
1024
1181
|
const { basePath, withCredentials } = this.configuration;
|
|
1025
1182
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1026
1183
|
context: localVarHttpContext,
|
|
1027
|
-
params: localVarQueryParameters,
|
|
1184
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1028
1185
|
responseType: responseType_,
|
|
1029
1186
|
...(withCredentials ? { withCredentials } : {}),
|
|
1030
1187
|
headers: localVarHeaders,
|
|
1031
1188
|
observe: observe,
|
|
1032
|
-
transferCache: localVarTransferCache,
|
|
1189
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1033
1190
|
reportProgress: reportProgress
|
|
1034
1191
|
});
|
|
1035
1192
|
}
|
|
1036
1193
|
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,
|
|
1194
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1195
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1196
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1197
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1198
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1199
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
1043
1200
|
let localVarHeaders = this.defaultHeaders;
|
|
1044
1201
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1045
1202
|
'application/json'
|
|
@@ -1065,19 +1222,19 @@ class ShipmentService extends BaseService {
|
|
|
1065
1222
|
const { basePath, withCredentials } = this.configuration;
|
|
1066
1223
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1067
1224
|
context: localVarHttpContext,
|
|
1068
|
-
params: localVarQueryParameters,
|
|
1225
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1069
1226
|
responseType: responseType_,
|
|
1070
1227
|
...(withCredentials ? { withCredentials } : {}),
|
|
1071
1228
|
headers: localVarHeaders,
|
|
1072
1229
|
observe: observe,
|
|
1073
|
-
transferCache: localVarTransferCache,
|
|
1230
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1074
1231
|
reportProgress: reportProgress
|
|
1075
1232
|
});
|
|
1076
1233
|
}
|
|
1077
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1078
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1234
|
+
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 });
|
|
1235
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, providedIn: 'root' });
|
|
1079
1236
|
}
|
|
1080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, decorators: [{
|
|
1081
1238
|
type: Injectable,
|
|
1082
1239
|
args: [{
|
|
1083
1240
|
providedIn: 'root'
|
|
@@ -1137,14 +1294,14 @@ class UserService extends BaseService {
|
|
|
1137
1294
|
...(withCredentials ? { withCredentials } : {}),
|
|
1138
1295
|
headers: localVarHeaders,
|
|
1139
1296
|
observe: observe,
|
|
1140
|
-
transferCache: localVarTransferCache,
|
|
1297
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1141
1298
|
reportProgress: reportProgress
|
|
1142
1299
|
});
|
|
1143
1300
|
}
|
|
1144
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1145
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1301
|
+
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 });
|
|
1302
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
1146
1303
|
}
|
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UserService, decorators: [{
|
|
1148
1305
|
type: Injectable,
|
|
1149
1306
|
args: [{
|
|
1150
1307
|
providedIn: 'root'
|
|
@@ -1204,7 +1361,7 @@ class UsergroupService extends BaseService {
|
|
|
1204
1361
|
...(withCredentials ? { withCredentials } : {}),
|
|
1205
1362
|
headers: localVarHeaders,
|
|
1206
1363
|
observe: observe,
|
|
1207
|
-
transferCache: localVarTransferCache,
|
|
1364
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1208
1365
|
reportProgress: reportProgress
|
|
1209
1366
|
});
|
|
1210
1367
|
}
|
|
@@ -1212,8 +1369,8 @@ class UsergroupService extends BaseService {
|
|
|
1212
1369
|
if (regGroupID === null || regGroupID === undefined) {
|
|
1213
1370
|
throw new Error('Required parameter regGroupID was null or undefined when calling setUserGroup.');
|
|
1214
1371
|
}
|
|
1215
|
-
let localVarQueryParameters = new
|
|
1216
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID,
|
|
1372
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1373
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'regGroupID', regGroupID, QueryParamStyle.Form, true);
|
|
1217
1374
|
let localVarHeaders = this.defaultHeaders;
|
|
1218
1375
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1219
1376
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -1237,19 +1394,19 @@ class UsergroupService extends BaseService {
|
|
|
1237
1394
|
const { basePath, withCredentials } = this.configuration;
|
|
1238
1395
|
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1239
1396
|
context: localVarHttpContext,
|
|
1240
|
-
params: localVarQueryParameters,
|
|
1397
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1241
1398
|
responseType: responseType_,
|
|
1242
1399
|
...(withCredentials ? { withCredentials } : {}),
|
|
1243
1400
|
headers: localVarHeaders,
|
|
1244
1401
|
observe: observe,
|
|
1245
|
-
transferCache: localVarTransferCache,
|
|
1402
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1246
1403
|
reportProgress: reportProgress
|
|
1247
1404
|
});
|
|
1248
1405
|
}
|
|
1249
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1250
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1406
|
+
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 });
|
|
1407
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, providedIn: 'root' });
|
|
1251
1408
|
}
|
|
1252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: UsergroupService, decorators: [{
|
|
1253
1410
|
type: Injectable,
|
|
1254
1411
|
args: [{
|
|
1255
1412
|
providedIn: 'root'
|
|
@@ -1295,10 +1452,11 @@ const APIS = [AuthService, CalendarService, DashboardService, HealthService, Set
|
|
|
1295
1452
|
* Do not edit the class manually.
|
|
1296
1453
|
*/
|
|
1297
1454
|
const CalendarViewBy = {
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1455
|
+
ScheduledDelivery: 'scheduledDelivery',
|
|
1456
|
+
Delivered: 'delivered',
|
|
1457
|
+
ArrivePortDate: 'arrivePortDate',
|
|
1458
|
+
DepartPortDate: 'departPortDate',
|
|
1459
|
+
Pickup: 'pickup'
|
|
1302
1460
|
};
|
|
1303
1461
|
|
|
1304
1462
|
/**
|
|
@@ -1454,11 +1612,11 @@ class ApiModule {
|
|
|
1454
1612
|
'See also https://github.com/angular/angular/issues/20575');
|
|
1455
1613
|
}
|
|
1456
1614
|
}
|
|
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: "
|
|
1615
|
+
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 });
|
|
1616
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.0", ngImport: i0, type: ApiModule });
|
|
1617
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule });
|
|
1460
1618
|
}
|
|
1461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ApiModule, decorators: [{
|
|
1462
1620
|
type: NgModule,
|
|
1463
1621
|
args: [{
|
|
1464
1622
|
imports: [],
|