@indigina/myseko-api 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/myseko-api@0.0.2
1
+ # @indigina/myseko-api@0.0.3
2
2
 
3
3
  MySeko API Client for Angular applications
4
4
 
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
24
24
  _published:_
25
25
 
26
26
  ```console
27
- npm install @indigina/myseko-api@0.0.2 --save
27
+ npm install @indigina/myseko-api@0.0.3 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -58,157 +58,106 @@ Published packages are not effected by this issue.
58
58
  In your Angular project:
59
59
 
60
60
  ```typescript
61
- // without configuring providers
62
- import { ApiModule } from '@indigina/myseko-api';
63
- import { HttpClientModule } from '@angular/common/http';
64
-
65
- @NgModule({
66
- imports: [
67
- ApiModule,
68
- // make sure to import the HttpClientModule in the AppModule only,
69
- // see https://github.com/angular/angular/issues/20575
70
- HttpClientModule
71
- ],
72
- declarations: [ AppComponent ],
73
- providers: [],
74
- bootstrap: [ AppComponent ]
75
- })
76
- export class AppModule {}
77
- ```
78
61
 
79
- ```typescript
80
- // configuring providers
81
- import { ApiModule, Configuration, ConfigurationParameters } from '@indigina/myseko-api';
82
-
83
- export function apiConfigFactory (): Configuration {
84
- const params: ConfigurationParameters = {
85
- // set configuration parameters here.
86
- }
87
- return new Configuration(params);
88
- }
89
-
90
- @NgModule({
91
- imports: [ ApiModule.forRoot(apiConfigFactory) ],
92
- declarations: [ AppComponent ],
93
- providers: [],
94
- bootstrap: [ AppComponent ]
95
- })
96
- export class AppModule {}
97
- ```
62
+ import { ApplicationConfig } from '@angular/core';
63
+ import { provideHttpClient } from '@angular/common/http';
64
+ import { provideApi } from '@indigina/myseko-api';
98
65
 
99
- ```typescript
100
- // configuring providers with an authentication service that manages your access tokens
101
- import { ApiModule, Configuration } from '@indigina/myseko-api';
102
-
103
- @NgModule({
104
- imports: [ ApiModule ],
105
- declarations: [ AppComponent ],
66
+ export const appConfig: ApplicationConfig = {
106
67
  providers: [
107
- {
108
- provide: Configuration,
109
- useFactory: (authService: AuthService) => new Configuration(
110
- {
111
- basePath: environment.apiUrl,
112
- accessToken: authService.getAccessToken.bind(authService)
113
- }
114
- ),
115
- deps: [AuthService],
116
- multi: false
117
- }
68
+ // ...
69
+ provideHttpClient(),
70
+ provideApi()
118
71
  ],
119
- bootstrap: [ AppComponent ]
120
- })
121
- export class AppModule {}
72
+ };
122
73
  ```
123
74
 
75
+ **NOTE**
76
+ If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
124
77
  ```typescript
125
- import { DefaultApi } from '@indigina/myseko-api';
126
-
127
- export class AppComponent {
128
- constructor(private apiGateway: DefaultApi) { }
129
- }
78
+ import { ApiModule } from '@indigina/myseko-api';
130
79
  ```
131
80
 
132
- Note: The ApiModule is restricted to being instantiated once app wide.
133
- This is to ensure that all services are treated as singletons.
134
-
135
- ### Using multiple OpenAPI files / APIs / ApiModules
136
-
137
- In order to use multiple `ApiModules` generated from different OpenAPI files,
138
- you can create an alias name when importing the modules
139
- in order to avoid naming conflicts:
81
+ If different from the generated base path, during app bootstrap, you can provide the base path to your service.
140
82
 
141
83
  ```typescript
142
- import { ApiModule } from 'my-api-path';
143
- import { ApiModule as OtherApiModule } from 'my-other-api-path';
144
- import { HttpClientModule } from '@angular/common/http';
145
-
146
- @NgModule({
147
- imports: [
148
- ApiModule,
149
- OtherApiModule,
150
- // make sure to import the HttpClientModule in the AppModule only,
151
- // see https://github.com/angular/angular/issues/20575
152
- HttpClientModule
153
- ]
154
- })
155
- export class AppModule {
84
+ import { ApplicationConfig } from '@angular/core';
85
+ import { provideHttpClient } from '@angular/common/http';
86
+ import { provideApi } from '@indigina/myseko-api';
156
87
 
157
- }
88
+ export const appConfig: ApplicationConfig = {
89
+ providers: [
90
+ // ...
91
+ provideHttpClient(),
92
+ provideApi('http://localhost:9999')
93
+ ],
94
+ };
158
95
  ```
159
96
 
160
- ### Set service base path
161
-
162
- If different than the generated base path, during app bootstrap, you can provide the base path to your service.
163
-
164
97
  ```typescript
165
- import { BASE_PATH } from '@indigina/myseko-api';
98
+ // with a custom configuration
99
+ import { ApplicationConfig } from '@angular/core';
100
+ import { provideHttpClient } from '@angular/common/http';
101
+ import { provideApi } from '@indigina/myseko-api';
166
102
 
167
- bootstrap(AppComponent, [
168
- { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
169
- ]);
103
+ export const appConfig: ApplicationConfig = {
104
+ providers: [
105
+ // ...
106
+ provideHttpClient(),
107
+ provideApi({
108
+ withCredentials: true,
109
+ username: 'user',
110
+ password: 'password'
111
+ })
112
+ ],
113
+ };
170
114
  ```
171
115
 
172
- or
173
-
174
116
  ```typescript
175
- import { BASE_PATH } from '@indigina/myseko-api';
176
-
177
- @NgModule({
178
- imports: [],
179
- declarations: [ AppComponent ],
180
- providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
181
- bootstrap: [ AppComponent ]
182
- })
183
- export class AppModule {}
184
- ```
185
-
186
- ### Using @angular/cli
187
-
188
- First extend your `src/environments/*.ts` files by adding the corresponding base path:
117
+ // with factory building a custom configuration
118
+ import { ApplicationConfig } from '@angular/core';
119
+ import { provideHttpClient } from '@angular/common/http';
120
+ import { provideApi, Configuration } from '@indigina/myseko-api';
189
121
 
190
- ```typescript
191
- export const environment = {
192
- production: false,
193
- API_BASE_PATH: 'http://127.0.0.1:8080'
122
+ export const appConfig: ApplicationConfig = {
123
+ providers: [
124
+ // ...
125
+ provideHttpClient(),
126
+ {
127
+ provide: Configuration,
128
+ useFactory: (authService: AuthService) => new Configuration({
129
+ basePath: 'http://localhost:9999',
130
+ withCredentials: true,
131
+ username: authService.getUsername(),
132
+ password: authService.getPassword(),
133
+ }),
134
+ deps: [AuthService],
135
+ multi: false
136
+ }
137
+ ],
194
138
  };
195
139
  ```
196
140
 
197
- In the src/app/app.module.ts:
141
+ ### Using multiple OpenAPI files / APIs
142
+
143
+ In order to use multiple APIs generated from different OpenAPI files,
144
+ you can create an alias name when importing the modules
145
+ in order to avoid naming conflicts:
198
146
 
199
147
  ```typescript
200
- import { BASE_PATH } from '@indigina/myseko-api';
148
+ import { provideApi as provideUserApi } from 'my-user-api-path';
149
+ import { provideApi as provideAdminApi } from 'my-admin-api-path';
150
+ import { HttpClientModule } from '@angular/common/http';
201
151
  import { environment } from '../environments/environment';
202
152
 
203
- @NgModule({
204
- declarations: [
205
- AppComponent
206
- ],
207
- imports: [ ],
208
- providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
209
- bootstrap: [ AppComponent ]
210
- })
211
- export class AppModule { }
153
+ export const appConfig: ApplicationConfig = {
154
+ providers: [
155
+ // ...
156
+ provideHttpClient(),
157
+ provideUserApi(environment.basePath),
158
+ provideAdminApi(environment.basePath),
159
+ ],
160
+ };
212
161
  ```
213
162
 
214
163
  ### Customizing path parameter encoding
@@ -1,8 +1,16 @@
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
4
  import { HttpHeaders, HttpContext } from '@angular/common/http';
5
5
 
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
6
14
  /**
7
15
  * Custom HttpParameterCodec
8
16
  * Workaround for https://github.com/angular/angular/issues/18261
@@ -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;
74
70
  }
75
- else {
76
- this.encodeParam = param => this.defaultEncodeParam(param);
71
+ if (password !== undefined) {
72
+ this.password = password;
77
73
  }
78
- if (configurationParameters.credentials) {
79
- this.credentials = configurationParameters.credentials;
74
+ if (accessToken !== undefined) {
75
+ this.accessToken = accessToken;
80
76
  }
81
- else {
82
- this.credentials = {};
77
+ if (basePath !== undefined) {
78
+ this.basePath = basePath;
83
79
  }
80
+ if (withCredentials !== undefined) {
81
+ this.withCredentials = withCredentials;
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,81 @@ 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");
222
- }
223
- return httpParams;
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 HealthService extends BaseService {
257
+ httpClient;
258
+ constructor(httpClient, basePath, configuration) {
259
+ super(basePath, configuration);
260
+ this.httpClient = httpClient;
224
261
  }
225
262
  getHealth(observe = 'body', reportProgress = false, options) {
226
263
  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);
235
- }
264
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
265
+ 'text/plain',
266
+ 'application/json'
267
+ ]);
236
268
  if (localVarHttpHeaderAcceptSelected !== undefined) {
237
269
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
238
270
  }
239
- let localVarHttpContext = options && options.context;
240
- if (localVarHttpContext === undefined) {
241
- localVarHttpContext = new HttpContext();
242
- }
243
- let localVarTransferCache = options && options.transferCache;
244
- if (localVarTransferCache === undefined) {
245
- localVarTransferCache = true;
246
- }
271
+ const localVarHttpContext = options?.context ?? new HttpContext();
272
+ const localVarTransferCache = options?.transferCache ?? true;
247
273
  let responseType_ = 'json';
248
274
  if (localVarHttpHeaderAcceptSelected) {
249
275
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -257,20 +283,21 @@ class HealthService {
257
283
  }
258
284
  }
259
285
  let localVarPath = `/health`;
260
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
286
+ const { basePath, withCredentials } = this.configuration;
287
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
261
288
  context: localVarHttpContext,
262
289
  responseType: responseType_,
263
- withCredentials: this.configuration.withCredentials,
290
+ ...(withCredentials ? { withCredentials } : {}),
264
291
  headers: localVarHeaders,
265
292
  observe: observe,
266
293
  transferCache: localVarTransferCache,
267
294
  reportProgress: reportProgress
268
295
  });
269
296
  }
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' });
297
+ 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 });
298
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, providedIn: 'root' });
272
299
  }
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: HealthService, decorators: [{
300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HealthService, decorators: [{
274
301
  type: Injectable,
275
302
  args: [{
276
303
  providedIn: 'root'
@@ -312,11 +339,11 @@ class ApiModule {
312
339
  'See also https://github.com/angular/angular/issues/20575');
313
340
  }
314
341
  }
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 });
342
+ 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 });
343
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
344
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
318
345
  }
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiModule, decorators: [{
346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, decorators: [{
320
347
  type: NgModule,
321
348
  args: [{
322
349
  imports: [],
@@ -332,9 +359,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
332
359
  type: Optional
333
360
  }] }] });
334
361
 
362
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
363
+ function provideApi(configOrBasePath) {
364
+ return makeEnvironmentProviders([
365
+ typeof configOrBasePath === "string"
366
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
367
+ : {
368
+ provide: Configuration,
369
+ useValue: new Configuration({ ...configOrBasePath }),
370
+ },
371
+ ]);
372
+ }
373
+
335
374
  /**
336
375
  * Generated bundle index. Do not edit.
337
376
  */
338
377
 
339
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService };
378
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService, provideApi };
340
379
  //# sourceMappingURL=indigina-myseko-api.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"indigina-myseko-api.mjs","sources":["../../encoder.ts","../../variables.ts","../../configuration.ts","../../api/health.service.ts","../../api/api.ts","../../model/failures.ts","../../api.module.ts","../../indigina-myseko-api.ts"],"sourcesContent":["import { HttpParameterCodec } from '@angular/common/http';\n\n/**\n * Custom HttpParameterCodec\n * Workaround for https://github.com/angular/angular/issues/18261\n */\nexport class CustomHttpParameterCodec implements HttpParameterCodec {\n encodeKey(k: string): string {\n return encodeURIComponent(k);\n }\n encodeValue(v: string): string {\n return encodeURIComponent(v);\n }\n decodeKey(k: string): string {\n return decodeURIComponent(k);\n }\n decodeValue(v: string): string {\n return decodeURIComponent(v);\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const BASE_PATH = new InjectionToken<string>('basePath');\nexport const COLLECTION_FORMATS = {\n 'csv': ',',\n 'tsv': ' ',\n 'ssv': ' ',\n 'pipes': '|'\n}\n","import { HttpParameterCodec } from '@angular/common/http';\nimport { Param } from './param';\n\nexport interface ConfigurationParameters {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Override the default method for encoding path parameters in various\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam?: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials?: {[ key: string ]: string | (() => string | undefined)};\n}\n\nexport class Configuration {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Encoding of various path parameter\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials: {[ key: string ]: string | (() => string | undefined)};\n\n constructor(configurationParameters: ConfigurationParameters = {}) {\n this.apiKeys = configurationParameters.apiKeys;\n this.username = configurationParameters.username;\n this.password = configurationParameters.password;\n this.accessToken = configurationParameters.accessToken;\n this.basePath = configurationParameters.basePath;\n this.withCredentials = configurationParameters.withCredentials;\n this.encoder = configurationParameters.encoder;\n if (configurationParameters.encodeParam) {\n this.encodeParam = configurationParameters.encodeParam;\n }\n else {\n this.encodeParam = param => this.defaultEncodeParam(param);\n }\n if (configurationParameters.credentials) {\n this.credentials = configurationParameters.credentials;\n }\n else {\n this.credentials = {};\n }\n }\n\n /**\n * Select the correct content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param contentTypes - the array of content types that are available for selection\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\n if (contentTypes.length === 0) {\n return undefined;\n }\n\n const type = contentTypes.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return contentTypes[0];\n }\n return type;\n }\n\n /**\n * Select the correct accept content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param accepts - the array of content types that are available for selection.\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderAccept(accepts: string[]): string | undefined {\n if (accepts.length === 0) {\n return undefined;\n }\n\n const type = accepts.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return accepts[0];\n }\n return type;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n\n public lookupCredential(key: string): string | undefined {\n const value = this.credentials[key];\n return typeof value === 'function'\n ? value()\n : value;\n }\n\n private defaultEncodeParam(param: Param): string {\n // This implementation exists as fallback for missing configuration\n // and for backwards compatibility to older typescript-angular generator versions.\n // It only works for the 'simple' parameter style.\n // Date-handling only works for the 'date-time' format.\n // All other styles and Date-formats are probably handled incorrectly.\n //\n // But: if that's all you need (i.e.: the most common use-case): no need for customization!\n\n const value = param.dataFormat === 'date-time' && param.value instanceof Date\n ? (param.value as Date).toISOString()\n : param.value;\n\n return encodeURIComponent(String(value));\n }\n}\n","/**\n * MySeko.API.Client\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n HttpResponse, HttpEvent, HttpParameterCodec, HttpContext \n } from '@angular/common/http';\nimport { CustomHttpParameterCodec } from '../encoder';\nimport { Observable } from 'rxjs';\n\n\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\nimport { Configuration } from '../configuration';\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class HealthService {\n\n protected basePath = 'http://localhost';\n public defaultHeaders = new HttpHeaders();\n public configuration = new Configuration();\n public encoder: HttpParameterCodec;\n\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {\n if (configuration) {\n this.configuration = configuration;\n }\n if (typeof this.configuration.basePath !== 'string') {\n const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;\n if (firstBasePath != undefined) {\n basePath = firstBasePath;\n }\n\n if (typeof basePath !== 'string') {\n basePath = this.basePath;\n }\n this.configuration.basePath = basePath;\n }\n this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();\n }\n\n\n // @ts-ignore\n private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {\n if (typeof value === \"object\" && value instanceof Date === false) {\n httpParams = this.addToHttpParamsRecursive(httpParams, value);\n } else {\n httpParams = this.addToHttpParamsRecursive(httpParams, value, key);\n }\n return httpParams;\n }\n\n private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {\n if (value == null) {\n return httpParams;\n }\n\n if (typeof value === \"object\") {\n if (Array.isArray(value)) {\n (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));\n } else if (value instanceof Date) {\n if (key != null) {\n httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));\n } else {\n throw Error(\"key may not be null if value is Date\");\n }\n } else {\n Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(\n httpParams, value[k], key != null ? `${key}.${k}` : k));\n }\n } else if (key != null) {\n httpParams = httpParams.append(key, value);\n } else {\n throw Error(\"key may not be null if value is not object or array\");\n }\n return httpParams;\n }\n\n /**\n * Api health check\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getHealth(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>;\n public getHealth(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>;\n public getHealth(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>;\n public getHealth(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {\n\n let localVarHeaders = this.defaultHeaders;\n\n let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;\n if (localVarHttpHeaderAcceptSelected === undefined) {\n // to determine the Accept header\n const httpHeaderAccepts: string[] = [\n 'text/plain',\n 'application/json'\n ];\n localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n }\n if (localVarHttpHeaderAcceptSelected !== undefined) {\n localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);\n }\n\n let localVarHttpContext: HttpContext | undefined = options && options.context;\n if (localVarHttpContext === undefined) {\n localVarHttpContext = new HttpContext();\n }\n\n let localVarTransferCache: boolean | undefined = options && options.transferCache;\n if (localVarTransferCache === undefined) {\n localVarTransferCache = true;\n }\n\n\n let responseType_: 'text' | 'json' | 'blob' = 'json';\n if (localVarHttpHeaderAcceptSelected) {\n if (localVarHttpHeaderAcceptSelected.startsWith('text')) {\n responseType_ = 'text';\n } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {\n responseType_ = 'json';\n } else {\n responseType_ = 'blob';\n }\n }\n\n let localVarPath = `/health`;\n return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,\n {\n context: localVarHttpContext,\n responseType: <any>responseType_,\n withCredentials: this.configuration.withCredentials,\n headers: localVarHeaders,\n observe: observe,\n transferCache: localVarTransferCache,\n reportProgress: reportProgress\n }\n );\n }\n\n}\n","export * from './health.service';\nimport { HealthService } from './health.service';\nexport const APIS = [HealthService];\n","/**\n * MySeko.API.Client\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n/**\n * @type Failures\n * @export\n */\nexport type Failures = { [key: string]: Array<string>; };\n\n","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\nimport { Configuration } from './configuration';\nimport { HttpClient } from '@angular/common/http';\n\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: [],\n providers: []\n})\nexport class ApiModule {\n public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {\n return {\n ngModule: ApiModule,\n providers: [ { provide: Configuration, useFactory: configurationFactory } ]\n };\n }\n\n constructor( @Optional() @SkipSelf() parentModule: ApiModule,\n @Optional() http: HttpClient) {\n if (parentModule) {\n throw new Error('ApiModule is already loaded. Import in your base AppModule only.');\n }\n if (!http) {\n throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\n 'See also https://github.com/angular/angular/issues/20575');\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.Configuration"],"mappings":";;;;;AAEA;;;AAGG;MACU,wBAAwB,CAAA;AACjC,IAAA,SAAS,CAAC,CAAS,EAAA;AACf,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC;;AAEhC,IAAA,WAAW,CAAC,CAAS,EAAA;AACjB,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC;;AAEhC,IAAA,SAAS,CAAC,CAAS,EAAA;AACf,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC;;AAEhC,IAAA,WAAW,CAAC,CAAS,EAAA;AACjB,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC;;AAEnC;;MCjBY,SAAS,GAAG,IAAI,cAAc,CAAS,UAAU;AACjD,MAAA,kBAAkB,GAAG;AAC9B,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,OAAO,EAAE;;;MC6BA,aAAa,CAAA;AACtB;;AAEG;AACH,IAAA,OAAO;AACP,IAAA,QAAQ;AACR,IAAA,QAAQ;AACR;;AAEG;AACH,IAAA,WAAW;AACX,IAAA,QAAQ;AACR,IAAA,eAAe;AACf;;AAEG;AACH,IAAA,OAAO;AACP;;;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QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAT,SAAS,EAAA,CAAA;wGAAT,SAAS,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,SAAS,EAAE;AACZ,iBAAA;;0BASiB;;0BAAY;;0BACZ;;;ACpBlB;;AAEG;;;;"}
1
+ {"version":3,"file":"indigina-myseko-api.mjs","sources":["../../variables.ts","../../encoder.ts","../../configuration.ts","../../api.base.service.ts","../../api/health.service.ts","../../api/api.ts","../../model/modelError.ts","../../api.module.ts","../../provide-api.ts","../../indigina-myseko-api.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const BASE_PATH = new InjectionToken<string>('basePath');\nexport const COLLECTION_FORMATS = {\n 'csv': ',',\n 'tsv': ' ',\n 'ssv': ' ',\n 'pipes': '|'\n}\n","import { HttpParameterCodec } from '@angular/common/http';\n\n/**\n * Custom HttpParameterCodec\n * Workaround for https://github.com/angular/angular/issues/18261\n */\nexport class CustomHttpParameterCodec implements HttpParameterCodec {\n encodeKey(k: string): string {\n return encodeURIComponent(k);\n }\n encodeValue(v: string): string {\n return encodeURIComponent(v);\n }\n decodeKey(k: string): string {\n return decodeURIComponent(k);\n }\n decodeValue(v: string): string {\n return decodeURIComponent(v);\n }\n}\n","import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';\nimport { Param } from './param';\n\nexport interface ConfigurationParameters {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Override the default method for encoding path parameters in various\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam?: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials?: {[ key: string ]: string | (() => string | undefined)};\n}\n\nexport class Configuration {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Encoding of various path parameter\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials: {[ key: string ]: string | (() => string | undefined)};\n\nconstructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {\n if (apiKeys) {\n this.apiKeys = apiKeys;\n }\n if (username !== undefined) {\n this.username = username;\n }\n if (password !== undefined) {\n this.password = password;\n }\n if (accessToken !== undefined) {\n this.accessToken = accessToken;\n }\n if (basePath !== undefined) {\n this.basePath = basePath;\n }\n if (withCredentials !== undefined) {\n this.withCredentials = withCredentials;\n }\n if (encoder) {\n this.encoder = encoder;\n }\n this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));\n this.credentials = credentials ?? {};\n }\n\n /**\n * Select the correct content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param contentTypes - the array of content types that are available for selection\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\n if (contentTypes.length === 0) {\n return undefined;\n }\n\n const type = contentTypes.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return contentTypes[0];\n }\n return type;\n }\n\n /**\n * Select the correct accept content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param accepts - the array of content types that are available for selection.\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderAccept(accepts: string[]): string | undefined {\n if (accepts.length === 0) {\n return undefined;\n }\n\n const type = accepts.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return accepts[0];\n }\n return type;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n\n public lookupCredential(key: string): string | undefined {\n const value = this.credentials[key];\n return typeof value === 'function'\n ? value()\n : value;\n }\n\n public addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders {\n const value = this.lookupCredential(credentialKey);\n return value\n ? headers.set(headerName, (prefix ?? '') + value)\n : headers;\n }\n\n public addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams {\n const value = this.lookupCredential(credentialKey);\n return value\n ? query.set(paramName, value)\n : query;\n }\n\n private defaultEncodeParam(param: Param): string {\n // This implementation exists as fallback for missing configuration\n // and for backwards compatibility to older typescript-angular generator versions.\n // It only works for the 'simple' parameter style.\n // Date-handling only works for the 'date-time' format.\n // All other styles and Date-formats are probably handled incorrectly.\n //\n // But: if that's all you need (i.e.: the most common use-case): no need for customization!\n\n const value = param.dataFormat === 'date-time' && param.value instanceof Date\n ? (param.value as Date).toISOString()\n : param.value;\n\n return encodeURIComponent(String(value));\n }\n}\n","/**\n * MySeko.API.Client\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';\nimport { CustomHttpParameterCodec } from './encoder';\nimport { Configuration } from './configuration';\n\nexport class BaseService {\n protected basePath = 'http://localhost';\n public defaultHeaders = new HttpHeaders();\n public configuration: Configuration;\n public encoder: HttpParameterCodec;\n\n constructor(basePath?: string|string[], configuration?: Configuration) {\n this.configuration = configuration || new Configuration();\n if (typeof this.configuration.basePath !== 'string') {\n const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;\n if (firstBasePath != undefined) {\n basePath = firstBasePath;\n }\n\n if (typeof basePath !== 'string') {\n basePath = this.basePath;\n }\n this.configuration.basePath = basePath;\n }\n this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();\n }\n\n protected canConsumeForm(consumes: string[]): boolean {\n return consumes.indexOf('multipart/form-data') !== -1;\n }\n\n protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams {\n // If the value is an object (but not a Date), recursively add its keys.\n if (typeof value === 'object' && !(value instanceof Date)) {\n return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);\n }\n return this.addToHttpParamsRecursive(httpParams, value, key);\n }\n\n protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams {\n if (value === null || value === undefined) {\n return httpParams;\n }\n if (typeof value === 'object') {\n // If JSON format is preferred, key must be provided.\n if (key != null) {\n return isDeep\n ? Object.keys(value as Record<string, any>).reduce(\n (hp, k) => hp.append(`${key}[${k}]`, value[k]),\n httpParams,\n )\n : httpParams.append(key, JSON.stringify(value));\n }\n // Otherwise, if it's an array, add each element.\n if (Array.isArray(value)) {\n value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));\n } else if (value instanceof Date) {\n if (key != null) {\n httpParams = httpParams.append(key, value.toISOString());\n } else {\n throw Error(\"key may not be null if value is Date\");\n }\n } else {\n Object.keys(value).forEach(k => {\n const paramKey = key ? `${key}.${k}` : k;\n httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);\n });\n }\n return httpParams;\n } else if (key != null) {\n return httpParams.append(key, value);\n }\n throw Error(\"key may not be null if value is not object or array\");\n }\n}\n","/**\n * MySeko.API.Client\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n HttpResponse, HttpEvent, HttpParameterCodec, HttpContext \n } from '@angular/common/http';\nimport { CustomHttpParameterCodec } from '../encoder';\nimport { Observable } from 'rxjs';\n\n\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\nimport { Configuration } from '../configuration';\nimport { BaseService } from '../api.base.service';\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class HealthService extends BaseService {\n\n constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {\n super(basePath, configuration);\n }\n\n /**\n * Api health check\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getHealth(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>;\n public getHealth(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>;\n public getHealth(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>;\n public getHealth(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {\n\n let localVarHeaders = this.defaultHeaders;\n\n const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([\n 'text/plain',\n 'application/json'\n ]);\n if (localVarHttpHeaderAcceptSelected !== undefined) {\n localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);\n }\n\n const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();\n\n const localVarTransferCache: boolean = options?.transferCache ?? true;\n\n\n let responseType_: 'text' | 'json' | 'blob' = 'json';\n if (localVarHttpHeaderAcceptSelected) {\n if (localVarHttpHeaderAcceptSelected.startsWith('text')) {\n responseType_ = 'text';\n } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {\n responseType_ = 'json';\n } else {\n responseType_ = 'blob';\n }\n }\n\n let localVarPath = `/health`;\n const { basePath, withCredentials } = this.configuration;\n return this.httpClient.request<string>('get', `${basePath}${localVarPath}`,\n {\n context: localVarHttpContext,\n responseType: <any>responseType_,\n ...(withCredentials ? { withCredentials } : {}),\n headers: localVarHeaders,\n observe: observe,\n transferCache: localVarTransferCache,\n reportProgress: reportProgress\n }\n );\n }\n\n}\n","export * from './health.service';\nimport { HealthService } from './health.service';\nexport const APIS = [HealthService];\n","/**\n * MySeko.API.Client\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ModelError { \n title: string;\n status: number;\n errors: { [key: string]: Array<string>; } | null;\n}\n\n","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\nimport { Configuration } from './configuration';\nimport { HttpClient } from '@angular/common/http';\n\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: [],\n providers: []\n})\nexport class ApiModule {\n public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {\n return {\n ngModule: ApiModule,\n providers: [ { provide: Configuration, useFactory: configurationFactory } ]\n };\n }\n\n constructor( @Optional() @SkipSelf() parentModule: ApiModule,\n @Optional() http: HttpClient) {\n if (parentModule) {\n throw new Error('ApiModule is already loaded. Import in your base AppModule only.');\n }\n if (!http) {\n throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\n 'See also https://github.com/angular/angular/issues/20575');\n }\n }\n}\n","import { EnvironmentProviders, makeEnvironmentProviders } from \"@angular/core\";\nimport { Configuration, ConfigurationParameters } from './configuration';\nimport { BASE_PATH } from './variables';\n\n// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).\nexport function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {\n return makeEnvironmentProviders([\n typeof configOrBasePath === \"string\"\n ? { provide: BASE_PATH, useValue: configOrBasePath }\n : {\n provide: Configuration,\n useValue: new Configuration({ ...configOrBasePath }),\n },\n ]);\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.Configuration"],"mappings":";;;;;MAEa,SAAS,GAAG,IAAI,cAAc,CAAS,UAAU;AACjD,MAAA,kBAAkB,GAAG;AAC9B,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,OAAO,EAAE;;;ACLb;;;AAGG;MACU,wBAAwB,CAAA;AACjC,IAAA,SAAS,CAAC,CAAS,EAAA;AACf,QAAA,OAAO,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C,IAAI,EAAE;YACP,MAAM,IAAI,KAAK,CAAC,+DAA+D;AAC/E,gBAAA,0DAA0D,CAAC;;;uGAf1D,SAAS,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAT,SAAS,EAAA,CAAA;wGAAT,SAAS,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,SAAS,EAAE;AACZ,iBAAA;;0BASiB;;0BAAY;;0BACZ;;;AChBlB;AACM,SAAU,UAAU,CAAC,gBAAkD,EAAA;AACzE,IAAA,OAAO,wBAAwB,CAAC;QAC5B,OAAO,gBAAgB,KAAK;cACtB,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB;AAClD,cAAE;AACE,gBAAA,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,IAAI,aAAa,CAAC,EAAE,GAAG,gBAAgB,EAAE,CAAC;AACvD,aAAA;AACR,KAAA,CAAC;AACN;;ACdA;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,6 +1,235 @@
1
- export * from './api/api';
2
- export * from './model/models';
3
- export * from './variables';
4
- export * from './configuration';
5
- export * from './api.module';
6
- export * from './param';
1
+ import { HttpParameterCodec, HttpHeaders, HttpParams, HttpClient, HttpContext, HttpResponse, HttpEvent } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, ModuleWithProviders, EnvironmentProviders } from '@angular/core';
5
+
6
+ /**
7
+ * Standard parameter styles defined by OpenAPI spec
8
+ */
9
+ type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
10
+ /**
11
+ * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
12
+ */
13
+ type ParamStyle = StandardParamStyle | string;
14
+ /**
15
+ * Standard parameter locations defined by OpenAPI spec
16
+ */
17
+ type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
18
+ /**
19
+ * Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
20
+ */
21
+ type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
22
+ /**
23
+ * Standard {@link DataType}s plus your own types/classes.
24
+ */
25
+ type DataType = StandardDataType | string;
26
+ /**
27
+ * Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
28
+ */
29
+ type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
30
+ type DataFormat = StandardDataFormat | string;
31
+ /**
32
+ * The parameter to encode.
33
+ */
34
+ interface Param {
35
+ name: string;
36
+ value: unknown;
37
+ in: ParamLocation;
38
+ style: ParamStyle;
39
+ explode: boolean;
40
+ dataType: DataType;
41
+ dataFormat: DataFormat | undefined;
42
+ }
43
+
44
+ interface ConfigurationParameters {
45
+ /**
46
+ * @deprecated Since 5.0. Use credentials instead
47
+ */
48
+ apiKeys?: {
49
+ [key: string]: string;
50
+ };
51
+ username?: string;
52
+ password?: string;
53
+ /**
54
+ * @deprecated Since 5.0. Use credentials instead
55
+ */
56
+ accessToken?: string | (() => string);
57
+ basePath?: string;
58
+ withCredentials?: boolean;
59
+ /**
60
+ * Takes care of encoding query- and form-parameters.
61
+ */
62
+ encoder?: HttpParameterCodec;
63
+ /**
64
+ * Override the default method for encoding path parameters in various
65
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
66
+ * <p>
67
+ * See {@link README.md} for more details
68
+ * </p>
69
+ */
70
+ encodeParam?: (param: Param) => string;
71
+ /**
72
+ * The keys are the names in the securitySchemes section of the OpenAPI
73
+ * document. They should map to the value used for authentication
74
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
75
+ */
76
+ credentials?: {
77
+ [key: string]: string | (() => string | undefined);
78
+ };
79
+ }
80
+ declare class Configuration {
81
+ /**
82
+ * @deprecated Since 5.0. Use credentials instead
83
+ */
84
+ apiKeys?: {
85
+ [key: string]: string;
86
+ };
87
+ username?: string;
88
+ password?: string;
89
+ /**
90
+ * @deprecated Since 5.0. Use credentials instead
91
+ */
92
+ accessToken?: string | (() => string);
93
+ basePath?: string;
94
+ withCredentials?: boolean;
95
+ /**
96
+ * Takes care of encoding query- and form-parameters.
97
+ */
98
+ encoder?: HttpParameterCodec;
99
+ /**
100
+ * Encoding of various path parameter
101
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
102
+ * <p>
103
+ * See {@link README.md} for more details
104
+ * </p>
105
+ */
106
+ encodeParam: (param: Param) => string;
107
+ /**
108
+ * The keys are the names in the securitySchemes section of the OpenAPI
109
+ * document. They should map to the value used for authentication
110
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
111
+ */
112
+ credentials: {
113
+ [key: string]: string | (() => string | undefined);
114
+ };
115
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }?: ConfigurationParameters);
116
+ /**
117
+ * Select the correct content-type to use for a request.
118
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
119
+ * If no content type is found return the first found type if the contentTypes is not empty
120
+ * @param contentTypes - the array of content types that are available for selection
121
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
122
+ */
123
+ selectHeaderContentType(contentTypes: string[]): string | undefined;
124
+ /**
125
+ * Select the correct accept content-type to use for a request.
126
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
127
+ * If no content type is found return the first found type if the contentTypes is not empty
128
+ * @param accepts - the array of content types that are available for selection.
129
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
130
+ */
131
+ selectHeaderAccept(accepts: string[]): string | undefined;
132
+ /**
133
+ * Check if the given MIME is a JSON MIME.
134
+ * JSON MIME examples:
135
+ * application/json
136
+ * application/json; charset=UTF8
137
+ * APPLICATION/JSON
138
+ * application/vnd.company+json
139
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
140
+ * @return True if the given MIME is JSON, false otherwise.
141
+ */
142
+ isJsonMime(mime: string): boolean;
143
+ lookupCredential(key: string): string | undefined;
144
+ addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
145
+ addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams;
146
+ private defaultEncodeParam;
147
+ }
148
+
149
+ /**
150
+ * MySeko.API.Client
151
+ *
152
+ *
153
+ *
154
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
155
+ * https://openapi-generator.tech
156
+ * Do not edit the class manually.
157
+ */
158
+
159
+ declare class BaseService {
160
+ protected basePath: string;
161
+ defaultHeaders: HttpHeaders;
162
+ configuration: Configuration;
163
+ encoder: HttpParameterCodec;
164
+ constructor(basePath?: string | string[], configuration?: Configuration);
165
+ protected canConsumeForm(consumes: string[]): boolean;
166
+ protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep?: boolean): HttpParams;
167
+ protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep?: boolean): HttpParams;
168
+ }
169
+
170
+ declare class HealthService extends BaseService {
171
+ protected httpClient: HttpClient;
172
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
173
+ /**
174
+ * Api health check
175
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
176
+ * @param reportProgress flag to report request and response progress.
177
+ */
178
+ getHealth(observe?: 'body', reportProgress?: boolean, options?: {
179
+ httpHeaderAccept?: 'text/plain' | 'application/json';
180
+ context?: HttpContext;
181
+ transferCache?: boolean;
182
+ }): Observable<string>;
183
+ getHealth(observe?: 'response', reportProgress?: boolean, options?: {
184
+ httpHeaderAccept?: 'text/plain' | 'application/json';
185
+ context?: HttpContext;
186
+ transferCache?: boolean;
187
+ }): Observable<HttpResponse<string>>;
188
+ getHealth(observe?: 'events', reportProgress?: boolean, options?: {
189
+ httpHeaderAccept?: 'text/plain' | 'application/json';
190
+ context?: HttpContext;
191
+ transferCache?: boolean;
192
+ }): Observable<HttpEvent<string>>;
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<HealthService, [null, { optional: true; }, { optional: true; }]>;
194
+ static ɵprov: i0.ɵɵInjectableDeclaration<HealthService>;
195
+ }
196
+
197
+ declare const APIS: (typeof HealthService)[];
198
+
199
+ /**
200
+ * MySeko.API.Client
201
+ *
202
+ *
203
+ *
204
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
205
+ * https://openapi-generator.tech
206
+ * Do not edit the class manually.
207
+ */
208
+ interface ModelError {
209
+ title: string;
210
+ status: number;
211
+ errors: {
212
+ [key: string]: Array<string>;
213
+ } | null;
214
+ }
215
+
216
+ declare const BASE_PATH: InjectionToken<string>;
217
+ declare const COLLECTION_FORMATS: {
218
+ csv: string;
219
+ tsv: string;
220
+ ssv: string;
221
+ pipes: string;
222
+ };
223
+
224
+ declare class ApiModule {
225
+ static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
226
+ constructor(parentModule: ApiModule, http: HttpClient);
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
228
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
229
+ static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
230
+ }
231
+
232
+ declare function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders;
233
+
234
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService, provideApi };
235
+ export type { ConfigurationParameters, DataFormat, DataType, ModelError, Param, ParamLocation, ParamStyle, StandardDataFormat, StandardDataType, StandardParamStyle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigina/myseko-api",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "OpenAPI client for @indigina/myseko-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "license": "Unlicense",
15
15
  "peerDependencies": {
16
- "@angular/core": "^19.2.0",
16
+ "@angular/core": "^20.1.3",
17
17
  "rxjs": "^7.4.0"
18
18
  },
19
19
  "module": "fesm2022/indigina-myseko-api.mjs",
package/api/api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './health.service';
2
- import { HealthService } from './health.service';
3
- export declare const APIS: (typeof HealthService)[];
@@ -1,36 +0,0 @@
1
- import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { Configuration } from '../configuration';
4
- import * as i0 from "@angular/core";
5
- export declare class HealthService {
6
- protected httpClient: HttpClient;
7
- protected basePath: string;
8
- defaultHeaders: HttpHeaders;
9
- configuration: Configuration;
10
- encoder: HttpParameterCodec;
11
- constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
12
- private addToHttpParams;
13
- private addToHttpParamsRecursive;
14
- /**
15
- * Api health check
16
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
17
- * @param reportProgress flag to report request and response progress.
18
- */
19
- getHealth(observe?: 'body', reportProgress?: boolean, options?: {
20
- httpHeaderAccept?: 'text/plain' | 'application/json';
21
- context?: HttpContext;
22
- transferCache?: boolean;
23
- }): Observable<string>;
24
- getHealth(observe?: 'response', reportProgress?: boolean, options?: {
25
- httpHeaderAccept?: 'text/plain' | 'application/json';
26
- context?: HttpContext;
27
- transferCache?: boolean;
28
- }): Observable<HttpResponse<string>>;
29
- getHealth(observe?: 'events', reportProgress?: boolean, options?: {
30
- httpHeaderAccept?: 'text/plain' | 'application/json';
31
- context?: HttpContext;
32
- transferCache?: boolean;
33
- }): Observable<HttpEvent<string>>;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<HealthService, [null, { optional: true; }, { optional: true; }]>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<HealthService>;
36
- }
package/api.module.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { Configuration } from './configuration';
3
- import { HttpClient } from '@angular/common/http';
4
- import * as i0 from "@angular/core";
5
- export declare class ApiModule {
6
- static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
7
- constructor(parentModule: ApiModule, http: HttpClient);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
11
- }
@@ -1,104 +0,0 @@
1
- import { HttpParameterCodec } from '@angular/common/http';
2
- import { Param } from './param';
3
- export interface ConfigurationParameters {
4
- /**
5
- * @deprecated Since 5.0. Use credentials instead
6
- */
7
- apiKeys?: {
8
- [key: string]: string;
9
- };
10
- username?: string;
11
- password?: string;
12
- /**
13
- * @deprecated Since 5.0. Use credentials instead
14
- */
15
- accessToken?: string | (() => string);
16
- basePath?: string;
17
- withCredentials?: boolean;
18
- /**
19
- * Takes care of encoding query- and form-parameters.
20
- */
21
- encoder?: HttpParameterCodec;
22
- /**
23
- * Override the default method for encoding path parameters in various
24
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
25
- * <p>
26
- * See {@link README.md} for more details
27
- * </p>
28
- */
29
- encodeParam?: (param: Param) => string;
30
- /**
31
- * The keys are the names in the securitySchemes section of the OpenAPI
32
- * document. They should map to the value used for authentication
33
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
34
- */
35
- credentials?: {
36
- [key: string]: string | (() => string | undefined);
37
- };
38
- }
39
- export declare class Configuration {
40
- /**
41
- * @deprecated Since 5.0. Use credentials instead
42
- */
43
- apiKeys?: {
44
- [key: string]: string;
45
- };
46
- username?: string;
47
- password?: string;
48
- /**
49
- * @deprecated Since 5.0. Use credentials instead
50
- */
51
- accessToken?: string | (() => string);
52
- basePath?: string;
53
- withCredentials?: boolean;
54
- /**
55
- * Takes care of encoding query- and form-parameters.
56
- */
57
- encoder?: HttpParameterCodec;
58
- /**
59
- * Encoding of various path parameter
60
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
61
- * <p>
62
- * See {@link README.md} for more details
63
- * </p>
64
- */
65
- encodeParam: (param: Param) => string;
66
- /**
67
- * The keys are the names in the securitySchemes section of the OpenAPI
68
- * document. They should map to the value used for authentication
69
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
70
- */
71
- credentials: {
72
- [key: string]: string | (() => string | undefined);
73
- };
74
- constructor(configurationParameters?: ConfigurationParameters);
75
- /**
76
- * Select the correct content-type to use for a request.
77
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
78
- * If no content type is found return the first found type if the contentTypes is not empty
79
- * @param contentTypes - the array of content types that are available for selection
80
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
81
- */
82
- selectHeaderContentType(contentTypes: string[]): string | undefined;
83
- /**
84
- * Select the correct accept content-type to use for a request.
85
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
86
- * If no content type is found return the first found type if the contentTypes is not empty
87
- * @param accepts - the array of content types that are available for selection.
88
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
89
- */
90
- selectHeaderAccept(accepts: string[]): string | undefined;
91
- /**
92
- * Check if the given MIME is a JSON MIME.
93
- * JSON MIME examples:
94
- * application/json
95
- * application/json; charset=UTF8
96
- * APPLICATION/JSON
97
- * application/vnd.company+json
98
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
99
- * @return True if the given MIME is JSON, false otherwise.
100
- */
101
- isJsonMime(mime: string): boolean;
102
- lookupCredential(key: string): string | undefined;
103
- private defaultEncodeParam;
104
- }
package/encoder.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { HttpParameterCodec } from '@angular/common/http';
2
- /**
3
- * Custom HttpParameterCodec
4
- * Workaround for https://github.com/angular/angular/issues/18261
5
- */
6
- export declare class CustomHttpParameterCodec implements HttpParameterCodec {
7
- encodeKey(k: string): string;
8
- encodeValue(v: string): string;
9
- decodeKey(k: string): string;
10
- decodeValue(v: string): string;
11
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * MySeko.API.Client
3
- *
4
- *
5
- *
6
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
- * https://openapi-generator.tech
8
- * Do not edit the class manually.
9
- */
10
- /**
11
- * @type Failures
12
- * @export
13
- */
14
- export type Failures = {
15
- [key: string]: Array<string>;
16
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * MySeko.API.Client
3
- *
4
- *
5
- *
6
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
- * https://openapi-generator.tech
8
- * Do not edit the class manually.
9
- */
10
- import { Failures } from './failures';
11
- export interface ModelError {
12
- title: string;
13
- status: number;
14
- errors: Failures | null;
15
- }
package/model/models.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './failures';
2
- export * from './modelError';
package/param.d.ts DELETED
@@ -1,37 +0,0 @@
1
- /**
2
- * Standard parameter styles defined by OpenAPI spec
3
- */
4
- export type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
5
- /**
6
- * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
7
- */
8
- export type ParamStyle = StandardParamStyle | string;
9
- /**
10
- * Standard parameter locations defined by OpenAPI spec
11
- */
12
- export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
13
- /**
14
- * Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
15
- */
16
- export type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
17
- /**
18
- * Standard {@link DataType}s plus your own types/classes.
19
- */
20
- export type DataType = StandardDataType | string;
21
- /**
22
- * Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
23
- */
24
- export type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
25
- export type DataFormat = StandardDataFormat | string;
26
- /**
27
- * The parameter to encode.
28
- */
29
- export interface Param {
30
- name: string;
31
- value: unknown;
32
- in: ParamLocation;
33
- style: ParamStyle;
34
- explode: boolean;
35
- dataType: DataType;
36
- dataFormat: DataFormat | undefined;
37
- }
package/variables.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const BASE_PATH: InjectionToken<string>;
3
- export declare const COLLECTION_FORMATS: {
4
- csv: string;
5
- tsv: string;
6
- ssv: string;
7
- pipes: string;
8
- };