@indigina/myseko-api 0.0.2 → 0.0.4

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,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
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 } from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
+
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
5
13
 
6
14
  /**
7
15
  * Custom HttpParameterCodec
@@ -22,14 +30,6 @@ class CustomHttpParameterCodec {
22
30
  }
23
31
  }
24
32
 
25
- const BASE_PATH = new InjectionToken('basePath');
26
- const COLLECTION_FORMATS = {
27
- 'csv': ',',
28
- 'tsv': ' ',
29
- 'ssv': ' ',
30
- 'pipes': '|'
31
- };
32
-
33
33
  class Configuration {
34
34
  /**
35
35
  * @deprecated Since 5.0. Use credentials instead
@@ -61,26 +61,30 @@ class Configuration {
61
61
  * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
62
  */
63
63
  credentials;
64
- constructor(configurationParameters = {}) {
65
- this.apiKeys = configurationParameters.apiKeys;
66
- this.username = configurationParameters.username;
67
- this.password = configurationParameters.password;
68
- this.accessToken = configurationParameters.accessToken;
69
- this.basePath = configurationParameters.basePath;
70
- this.withCredentials = configurationParameters.withCredentials;
71
- this.encoder = configurationParameters.encoder;
72
- if (configurationParameters.encodeParam) {
73
- this.encodeParam = configurationParameters.encodeParam;
64
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
65
+ if (apiKeys) {
66
+ this.apiKeys = apiKeys;
67
+ }
68
+ if (username !== undefined) {
69
+ this.username = username;
70
+ }
71
+ if (password !== undefined) {
72
+ this.password = password;
74
73
  }
75
- else {
76
- this.encodeParam = param => this.defaultEncodeParam(param);
74
+ if (accessToken !== undefined) {
75
+ this.accessToken = accessToken;
77
76
  }
78
- if (configurationParameters.credentials) {
79
- this.credentials = configurationParameters.credentials;
77
+ if (basePath !== undefined) {
78
+ this.basePath = basePath;
80
79
  }
81
- else {
82
- this.credentials = {};
80
+ if (withCredentials !== undefined) {
81
+ this.withCredentials = withCredentials;
83
82
  }
83
+ if (encoder) {
84
+ this.encoder = encoder;
85
+ }
86
+ this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
87
+ this.credentials = credentials ?? {};
84
88
  }
85
89
  /**
86
90
  * Select the correct content-type to use for a request.
@@ -136,6 +140,18 @@ class Configuration {
136
140
  ? value()
137
141
  : value;
138
142
  }
143
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
144
+ const value = this.lookupCredential(credentialKey);
145
+ return value
146
+ ? headers.set(headerName, (prefix ?? '') + value)
147
+ : headers;
148
+ }
149
+ addCredentialToQuery(credentialKey, paramName, query) {
150
+ const value = this.lookupCredential(credentialKey);
151
+ return value
152
+ ? query.set(paramName, value)
153
+ : query;
154
+ }
139
155
  defaultEncodeParam(param) {
140
156
  // This implementation exists as fallback for missing configuration
141
157
  // and for backwards compatibility to older typescript-angular generator versions.
@@ -160,18 +176,13 @@ class Configuration {
160
176
  * https://openapi-generator.tech
161
177
  * Do not edit the class manually.
162
178
  */
163
- /* tslint:disable:no-unused-variable member-ordering */
164
- class HealthService {
165
- httpClient;
179
+ class BaseService {
166
180
  basePath = 'http://localhost';
167
181
  defaultHeaders = new HttpHeaders();
168
- configuration = new Configuration();
182
+ configuration;
169
183
  encoder;
170
- constructor(httpClient, basePath, configuration) {
171
- this.httpClient = httpClient;
172
- if (configuration) {
173
- this.configuration = configuration;
174
- }
184
+ constructor(basePath, configuration) {
185
+ this.configuration = configuration || new Configuration();
175
186
  if (typeof this.configuration.basePath !== 'string') {
176
187
  const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
177
188
  if (firstBasePath != undefined) {
@@ -184,66 +195,249 @@ class HealthService {
184
195
  }
185
196
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
186
197
  }
187
- // @ts-ignore
188
- addToHttpParams(httpParams, value, key) {
189
- if (typeof value === "object" && value instanceof Date === false) {
190
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
191
- }
192
- else {
193
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
198
+ canConsumeForm(consumes) {
199
+ return consumes.indexOf('multipart/form-data') !== -1;
200
+ }
201
+ addToHttpParams(httpParams, value, key, isDeep = false) {
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);
194
205
  }
195
- return httpParams;
206
+ return this.addToHttpParamsRecursive(httpParams, value, key);
196
207
  }
197
- addToHttpParamsRecursive(httpParams, value, key) {
198
- if (value == null) {
208
+ addToHttpParamsRecursive(httpParams, value, key, isDeep = false) {
209
+ if (value === null || value === undefined) {
199
210
  return httpParams;
200
211
  }
201
- if (typeof value === "object") {
212
+ if (typeof value === 'object') {
213
+ // If JSON format is preferred, key must be provided.
214
+ if (key != null) {
215
+ return isDeep
216
+ ? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams)
217
+ : httpParams.append(key, JSON.stringify(value));
218
+ }
219
+ // Otherwise, if it's an array, add each element.
202
220
  if (Array.isArray(value)) {
203
221
  value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
204
222
  }
205
223
  else if (value instanceof Date) {
206
224
  if (key != null) {
207
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
225
+ httpParams = httpParams.append(key, value.toISOString());
208
226
  }
209
227
  else {
210
228
  throw Error("key may not be null if value is Date");
211
229
  }
212
230
  }
213
231
  else {
214
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
232
+ Object.keys(value).forEach(k => {
233
+ const paramKey = key ? `${key}.${k}` : k;
234
+ httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
235
+ });
215
236
  }
237
+ return httpParams;
216
238
  }
217
239
  else if (key != null) {
218
- httpParams = httpParams.append(key, value);
240
+ return httpParams.append(key, value);
219
241
  }
220
- else {
221
- throw Error("key may not be null if value is not object or array");
242
+ throw Error("key may not be null if value is not object or array");
243
+ }
244
+ }
245
+
246
+ /**
247
+ * MySeko.API.Client
248
+ *
249
+ *
250
+ *
251
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
252
+ * https://openapi-generator.tech
253
+ * Do not edit the class manually.
254
+ */
255
+ /* tslint:disable:no-unused-variable member-ordering */
256
+ class DashboardService extends BaseService {
257
+ httpClient;
258
+ constructor(httpClient, basePath, configuration) {
259
+ super(basePath, configuration);
260
+ this.httpClient = httpClient;
261
+ }
262
+ getActiveShipments(observe = 'body', reportProgress = false, options) {
263
+ let localVarHeaders = this.defaultHeaders;
264
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
265
+ 'application/json'
266
+ ]);
267
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
268
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
222
269
  }
223
- return httpParams;
270
+ const localVarHttpContext = options?.context ?? new HttpContext();
271
+ const localVarTransferCache = options?.transferCache ?? true;
272
+ let responseType_ = 'json';
273
+ if (localVarHttpHeaderAcceptSelected) {
274
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
275
+ responseType_ = 'text';
276
+ }
277
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
278
+ responseType_ = 'json';
279
+ }
280
+ else {
281
+ responseType_ = 'blob';
282
+ }
283
+ }
284
+ let localVarPath = `/dashboard/activeShipments`;
285
+ const { basePath, withCredentials } = this.configuration;
286
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
287
+ context: localVarHttpContext,
288
+ responseType: responseType_,
289
+ ...(withCredentials ? { withCredentials } : {}),
290
+ headers: localVarHeaders,
291
+ observe: observe,
292
+ transferCache: localVarTransferCache,
293
+ reportProgress: reportProgress
294
+ });
295
+ }
296
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DashboardService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
297
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DashboardService, providedIn: 'root' });
298
+ }
299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DashboardService, decorators: [{
300
+ type: Injectable,
301
+ args: [{
302
+ providedIn: 'root'
303
+ }]
304
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
305
+ type: Optional
306
+ }, {
307
+ type: Inject,
308
+ args: [BASE_PATH]
309
+ }] }, { type: Configuration, decorators: [{
310
+ type: Optional
311
+ }] }] });
312
+
313
+ /**
314
+ * MySeko.API.Client
315
+ *
316
+ *
317
+ *
318
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
319
+ * https://openapi-generator.tech
320
+ * Do not edit the class manually.
321
+ */
322
+ /* tslint:disable:no-unused-variable member-ordering */
323
+ class HealthService extends BaseService {
324
+ httpClient;
325
+ constructor(httpClient, basePath, configuration) {
326
+ super(basePath, configuration);
327
+ this.httpClient = httpClient;
224
328
  }
225
329
  getHealth(observe = 'body', reportProgress = false, options) {
226
330
  let localVarHeaders = this.defaultHeaders;
227
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
228
- if (localVarHttpHeaderAcceptSelected === undefined) {
229
- // to determine the Accept header
230
- const httpHeaderAccepts = [
231
- 'text/plain',
232
- 'application/json'
233
- ];
234
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
331
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
332
+ 'text/plain',
333
+ 'application/json'
334
+ ]);
335
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
336
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
337
+ }
338
+ const localVarHttpContext = options?.context ?? new HttpContext();
339
+ const localVarTransferCache = options?.transferCache ?? true;
340
+ let responseType_ = 'json';
341
+ if (localVarHttpHeaderAcceptSelected) {
342
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
343
+ responseType_ = 'text';
344
+ }
345
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
346
+ responseType_ = 'json';
347
+ }
348
+ else {
349
+ responseType_ = 'blob';
350
+ }
235
351
  }
352
+ let localVarPath = `/health`;
353
+ const { basePath, withCredentials } = this.configuration;
354
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
355
+ context: localVarHttpContext,
356
+ responseType: responseType_,
357
+ ...(withCredentials ? { withCredentials } : {}),
358
+ headers: localVarHeaders,
359
+ observe: observe,
360
+ transferCache: localVarTransferCache,
361
+ reportProgress: reportProgress
362
+ });
363
+ }
364
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
365
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, providedIn: 'root' });
366
+ }
367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, decorators: [{
368
+ type: Injectable,
369
+ args: [{
370
+ providedIn: 'root'
371
+ }]
372
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
373
+ type: Optional
374
+ }, {
375
+ type: Inject,
376
+ args: [BASE_PATH]
377
+ }] }, { type: Configuration, decorators: [{
378
+ type: Optional
379
+ }] }] });
380
+
381
+ /**
382
+ * MySeko.API.Client
383
+ *
384
+ *
385
+ *
386
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
387
+ * https://openapi-generator.tech
388
+ * Do not edit the class manually.
389
+ */
390
+ /* tslint:disable:no-unused-variable member-ordering */
391
+ class UserService extends BaseService {
392
+ httpClient;
393
+ constructor(httpClient, basePath, configuration) {
394
+ super(basePath, configuration);
395
+ this.httpClient = httpClient;
396
+ }
397
+ getUser(observe = 'body', reportProgress = false, options) {
398
+ let localVarHeaders = this.defaultHeaders;
399
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
400
+ 'application/json'
401
+ ]);
236
402
  if (localVarHttpHeaderAcceptSelected !== undefined) {
237
403
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
238
404
  }
239
- let localVarHttpContext = options && options.context;
240
- if (localVarHttpContext === undefined) {
241
- localVarHttpContext = new HttpContext();
405
+ const localVarHttpContext = options?.context ?? new HttpContext();
406
+ const localVarTransferCache = options?.transferCache ?? true;
407
+ let responseType_ = 'json';
408
+ if (localVarHttpHeaderAcceptSelected) {
409
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
410
+ responseType_ = 'text';
411
+ }
412
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
413
+ responseType_ = 'json';
414
+ }
415
+ else {
416
+ responseType_ = 'blob';
417
+ }
242
418
  }
243
- let localVarTransferCache = options && options.transferCache;
244
- if (localVarTransferCache === undefined) {
245
- localVarTransferCache = true;
419
+ let localVarPath = `/user/getUser`;
420
+ const { basePath, withCredentials } = this.configuration;
421
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
422
+ context: localVarHttpContext,
423
+ responseType: responseType_,
424
+ ...(withCredentials ? { withCredentials } : {}),
425
+ headers: localVarHeaders,
426
+ observe: observe,
427
+ transferCache: localVarTransferCache,
428
+ reportProgress: reportProgress
429
+ });
430
+ }
431
+ userLogin(observe = 'body', reportProgress = false, options) {
432
+ let localVarHeaders = this.defaultHeaders;
433
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
434
+ 'application/json'
435
+ ]);
436
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
437
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
246
438
  }
439
+ const localVarHttpContext = options?.context ?? new HttpContext();
440
+ const localVarTransferCache = options?.transferCache ?? true;
247
441
  let responseType_ = 'json';
248
442
  if (localVarHttpHeaderAcceptSelected) {
249
443
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -256,21 +450,129 @@ class HealthService {
256
450
  responseType_ = 'blob';
257
451
  }
258
452
  }
259
- let localVarPath = `/health`;
260
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
453
+ let localVarPath = `/user/login`;
454
+ const { basePath, withCredentials } = this.configuration;
455
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
456
+ context: localVarHttpContext,
457
+ responseType: responseType_,
458
+ ...(withCredentials ? { withCredentials } : {}),
459
+ headers: localVarHeaders,
460
+ observe: observe,
461
+ transferCache: localVarTransferCache,
462
+ reportProgress: reportProgress
463
+ });
464
+ }
465
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
466
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
467
+ }
468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UserService, decorators: [{
469
+ type: Injectable,
470
+ args: [{
471
+ providedIn: 'root'
472
+ }]
473
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
474
+ type: Optional
475
+ }, {
476
+ type: Inject,
477
+ args: [BASE_PATH]
478
+ }] }, { type: Configuration, decorators: [{
479
+ type: Optional
480
+ }] }] });
481
+
482
+ /**
483
+ * MySeko.API.Client
484
+ *
485
+ *
486
+ *
487
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
488
+ * https://openapi-generator.tech
489
+ * Do not edit the class manually.
490
+ */
491
+ /* tslint:disable:no-unused-variable member-ordering */
492
+ class UsergroupService extends BaseService {
493
+ httpClient;
494
+ constructor(httpClient, basePath, configuration) {
495
+ super(basePath, configuration);
496
+ this.httpClient = httpClient;
497
+ }
498
+ getUserGroups(observe = 'body', reportProgress = false, options) {
499
+ let localVarHeaders = this.defaultHeaders;
500
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
501
+ 'application/json'
502
+ ]);
503
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
504
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
505
+ }
506
+ const localVarHttpContext = options?.context ?? new HttpContext();
507
+ const localVarTransferCache = options?.transferCache ?? true;
508
+ let responseType_ = 'json';
509
+ if (localVarHttpHeaderAcceptSelected) {
510
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
511
+ responseType_ = 'text';
512
+ }
513
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
514
+ responseType_ = 'json';
515
+ }
516
+ else {
517
+ responseType_ = 'blob';
518
+ }
519
+ }
520
+ let localVarPath = `/userGroup/getUserGroups`;
521
+ const { basePath, withCredentials } = this.configuration;
522
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
523
+ context: localVarHttpContext,
524
+ responseType: responseType_,
525
+ ...(withCredentials ? { withCredentials } : {}),
526
+ headers: localVarHeaders,
527
+ observe: observe,
528
+ transferCache: localVarTransferCache,
529
+ reportProgress: reportProgress
530
+ });
531
+ }
532
+ setUserGroup(regGroupID, observe = 'body', reportProgress = false, options) {
533
+ if (regGroupID === null || regGroupID === undefined) {
534
+ throw new Error('Required parameter regGroupID was null or undefined when calling setUserGroup.');
535
+ }
536
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
537
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID, 'regGroupID');
538
+ let localVarHeaders = this.defaultHeaders;
539
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
540
+ 'application/json'
541
+ ]);
542
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
543
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
544
+ }
545
+ const localVarHttpContext = options?.context ?? new HttpContext();
546
+ const localVarTransferCache = options?.transferCache ?? true;
547
+ let responseType_ = 'json';
548
+ if (localVarHttpHeaderAcceptSelected) {
549
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
550
+ responseType_ = 'text';
551
+ }
552
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
553
+ responseType_ = 'json';
554
+ }
555
+ else {
556
+ responseType_ = 'blob';
557
+ }
558
+ }
559
+ let localVarPath = `/userGroup/setUserGroup`;
560
+ const { basePath, withCredentials } = this.configuration;
561
+ return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
261
562
  context: localVarHttpContext,
563
+ params: localVarQueryParameters,
262
564
  responseType: responseType_,
263
- withCredentials: this.configuration.withCredentials,
565
+ ...(withCredentials ? { withCredentials } : {}),
264
566
  headers: localVarHeaders,
265
567
  observe: observe,
266
568
  transferCache: localVarTransferCache,
267
569
  reportProgress: reportProgress
268
570
  });
269
571
  }
270
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
271
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: HealthService, providedIn: 'root' });
572
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsergroupService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
573
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsergroupService, providedIn: 'root' });
272
574
  }
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: HealthService, decorators: [{
575
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsergroupService, decorators: [{
274
576
  type: Injectable,
275
577
  args: [{
276
578
  providedIn: 'root'
@@ -284,7 +586,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
284
586
  type: Optional
285
587
  }] }] });
286
588
 
287
- const APIS = [HealthService];
589
+ const APIS = [DashboardService, HealthService, UserService, UsergroupService];
590
+
591
+ /**
592
+ * MySeko.API.Client
593
+ *
594
+ *
595
+ *
596
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
597
+ * https://openapi-generator.tech
598
+ * Do not edit the class manually.
599
+ */
600
+
601
+ /**
602
+ * MySeko.API.Client
603
+ *
604
+ *
605
+ *
606
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
607
+ * https://openapi-generator.tech
608
+ * Do not edit the class manually.
609
+ */
610
+
611
+ /**
612
+ * MySeko.API.Client
613
+ *
614
+ *
615
+ *
616
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
617
+ * https://openapi-generator.tech
618
+ * Do not edit the class manually.
619
+ */
288
620
 
289
621
  /**
290
622
  * MySeko.API.Client
@@ -312,11 +644,11 @@ class ApiModule {
312
644
  'See also https://github.com/angular/angular/issues/20575');
313
645
  }
314
646
  }
315
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
316
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: ApiModule });
317
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiModule });
647
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
648
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
649
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
318
650
  }
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiModule, decorators: [{
651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, decorators: [{
320
652
  type: NgModule,
321
653
  args: [{
322
654
  imports: [],
@@ -332,9 +664,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
332
664
  type: Optional
333
665
  }] }] });
334
666
 
667
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
668
+ function provideApi(configOrBasePath) {
669
+ return makeEnvironmentProviders([
670
+ typeof configOrBasePath === "string"
671
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
672
+ : {
673
+ provide: Configuration,
674
+ useValue: new Configuration({ ...configOrBasePath }),
675
+ },
676
+ ]);
677
+ }
678
+
335
679
  /**
336
680
  * Generated bundle index. Do not edit.
337
681
  */
338
682
 
339
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService };
683
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, DashboardService, HealthService, UserService, UsergroupService, provideApi };
340
684
  //# sourceMappingURL=indigina-myseko-api.mjs.map