@indigina/wms-api 0.0.1
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 +236 -0
- package/api/api.d.ts +3 -0
- package/api/health.service.d.ts +36 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +104 -0
- package/encoder.d.ts +11 -0
- package/fesm2022/indigina-wms-api.mjs +340 -0
- package/fesm2022/indigina-wms-api.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/model/failures.d.ts +16 -0
- package/model/modelError.d.ts +15 -0
- package/model/models.d.ts +2 -0
- package/package.json +34 -0
- package/param.d.ts +37 -0
- package/variables.d.ts +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# @indigina/wms-api@0.0.1
|
|
2
|
+
|
|
3
|
+
MySeko API Client for Angular applications
|
|
4
|
+
|
|
5
|
+
The version of the OpenAPI document: v1
|
|
6
|
+
|
|
7
|
+
## Building
|
|
8
|
+
|
|
9
|
+
To install the required dependencies and to build the typescript sources run:
|
|
10
|
+
|
|
11
|
+
```console
|
|
12
|
+
npm install
|
|
13
|
+
npm run build
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Publishing
|
|
17
|
+
|
|
18
|
+
First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!)
|
|
19
|
+
|
|
20
|
+
## Consuming
|
|
21
|
+
|
|
22
|
+
Navigate to the folder of your consuming project and run one of next commands.
|
|
23
|
+
|
|
24
|
+
_published:_
|
|
25
|
+
|
|
26
|
+
```console
|
|
27
|
+
npm install @indigina/wms-api@0.0.1 --save
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
_without publishing (not recommended):_
|
|
31
|
+
|
|
32
|
+
```console
|
|
33
|
+
npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
_It's important to take the tgz file, otherwise you'll get trouble with links on windows_
|
|
37
|
+
|
|
38
|
+
_using `npm link`:_
|
|
39
|
+
|
|
40
|
+
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
41
|
+
|
|
42
|
+
```console
|
|
43
|
+
npm link
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
In your project:
|
|
47
|
+
|
|
48
|
+
```console
|
|
49
|
+
npm link @indigina/wms-api
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
53
|
+
Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround.
|
|
54
|
+
Published packages are not effected by this issue.
|
|
55
|
+
|
|
56
|
+
### General usage
|
|
57
|
+
|
|
58
|
+
In your Angular project:
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
// without configuring providers
|
|
62
|
+
import { ApiModule } from '@indigina/wms-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
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
// configuring providers
|
|
81
|
+
import { ApiModule, Configuration, ConfigurationParameters } from '@indigina/wms-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
|
+
```
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
// configuring providers with an authentication service that manages your access tokens
|
|
101
|
+
import { ApiModule, Configuration } from '@indigina/wms-api';
|
|
102
|
+
|
|
103
|
+
@NgModule({
|
|
104
|
+
imports: [ ApiModule ],
|
|
105
|
+
declarations: [ AppComponent ],
|
|
106
|
+
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
|
+
}
|
|
118
|
+
],
|
|
119
|
+
bootstrap: [ AppComponent ]
|
|
120
|
+
})
|
|
121
|
+
export class AppModule {}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import { DefaultApi } from '@indigina/wms-api';
|
|
126
|
+
|
|
127
|
+
export class AppComponent {
|
|
128
|
+
constructor(private apiGateway: DefaultApi) { }
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
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:
|
|
140
|
+
|
|
141
|
+
```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 {
|
|
156
|
+
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
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
|
+
```typescript
|
|
165
|
+
import { BASE_PATH } from '@indigina/wms-api';
|
|
166
|
+
|
|
167
|
+
bootstrap(AppComponent, [
|
|
168
|
+
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' },
|
|
169
|
+
]);
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
or
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import { BASE_PATH } from '@indigina/wms-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:
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
export const environment = {
|
|
192
|
+
production: false,
|
|
193
|
+
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
194
|
+
};
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
In the src/app/app.module.ts:
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
import { BASE_PATH } from '@indigina/wms-api';
|
|
201
|
+
import { environment } from '../environments/environment';
|
|
202
|
+
|
|
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 { }
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Customizing path parameter encoding
|
|
215
|
+
|
|
216
|
+
Without further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple'
|
|
217
|
+
and Dates for format 'date-time' are encoded correctly.
|
|
218
|
+
|
|
219
|
+
Other styles (e.g. "matrix") are not that easy to encode
|
|
220
|
+
and thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]).
|
|
221
|
+
|
|
222
|
+
To implement your own parameter encoding (or call another library),
|
|
223
|
+
pass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object
|
|
224
|
+
(see [General Usage](#general-usage) above).
|
|
225
|
+
|
|
226
|
+
Example value for use in your Configuration-Provider:
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
new Configuration({
|
|
230
|
+
encodeParam: (param: Param) => myFancyParamEncoder(param),
|
|
231
|
+
})
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
|
235
|
+
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
|
236
|
+
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
package/api/api.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders, HttpContext } from '@angular/common/http';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Custom HttpParameterCodec
|
|
8
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
9
|
+
*/
|
|
10
|
+
class CustomHttpParameterCodec {
|
|
11
|
+
encodeKey(k) {
|
|
12
|
+
return encodeURIComponent(k);
|
|
13
|
+
}
|
|
14
|
+
encodeValue(v) {
|
|
15
|
+
return encodeURIComponent(v);
|
|
16
|
+
}
|
|
17
|
+
decodeKey(k) {
|
|
18
|
+
return decodeURIComponent(k);
|
|
19
|
+
}
|
|
20
|
+
decodeValue(v) {
|
|
21
|
+
return decodeURIComponent(v);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
26
|
+
const COLLECTION_FORMATS = {
|
|
27
|
+
'csv': ',',
|
|
28
|
+
'tsv': ' ',
|
|
29
|
+
'ssv': ' ',
|
|
30
|
+
'pipes': '|'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
class Configuration {
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
36
|
+
*/
|
|
37
|
+
apiKeys;
|
|
38
|
+
username;
|
|
39
|
+
password;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
accessToken;
|
|
44
|
+
basePath;
|
|
45
|
+
withCredentials;
|
|
46
|
+
/**
|
|
47
|
+
* Takes care of encoding query- and form-parameters.
|
|
48
|
+
*/
|
|
49
|
+
encoder;
|
|
50
|
+
/**
|
|
51
|
+
* Encoding of various path parameter
|
|
52
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
53
|
+
* <p>
|
|
54
|
+
* See {@link README.md} for more details
|
|
55
|
+
* </p>
|
|
56
|
+
*/
|
|
57
|
+
encodeParam;
|
|
58
|
+
/**
|
|
59
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
60
|
+
* document. They should map to the value used for authentication
|
|
61
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
62
|
+
*/
|
|
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;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
77
|
+
}
|
|
78
|
+
if (configurationParameters.credentials) {
|
|
79
|
+
this.credentials = configurationParameters.credentials;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this.credentials = {};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Select the correct content-type to use for a request.
|
|
87
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
88
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
89
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
90
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
91
|
+
*/
|
|
92
|
+
selectHeaderContentType(contentTypes) {
|
|
93
|
+
if (contentTypes.length === 0) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
97
|
+
if (type === undefined) {
|
|
98
|
+
return contentTypes[0];
|
|
99
|
+
}
|
|
100
|
+
return type;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Select the correct accept content-type to use for a request.
|
|
104
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
105
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
106
|
+
* @param accepts - the array of content types that are available for selection.
|
|
107
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
108
|
+
*/
|
|
109
|
+
selectHeaderAccept(accepts) {
|
|
110
|
+
if (accepts.length === 0) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
114
|
+
if (type === undefined) {
|
|
115
|
+
return accepts[0];
|
|
116
|
+
}
|
|
117
|
+
return type;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if the given MIME is a JSON MIME.
|
|
121
|
+
* JSON MIME examples:
|
|
122
|
+
* application/json
|
|
123
|
+
* application/json; charset=UTF8
|
|
124
|
+
* APPLICATION/JSON
|
|
125
|
+
* application/vnd.company+json
|
|
126
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
127
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
128
|
+
*/
|
|
129
|
+
isJsonMime(mime) {
|
|
130
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
131
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
132
|
+
}
|
|
133
|
+
lookupCredential(key) {
|
|
134
|
+
const value = this.credentials[key];
|
|
135
|
+
return typeof value === 'function'
|
|
136
|
+
? value()
|
|
137
|
+
: value;
|
|
138
|
+
}
|
|
139
|
+
defaultEncodeParam(param) {
|
|
140
|
+
// This implementation exists as fallback for missing configuration
|
|
141
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
142
|
+
// It only works for the 'simple' parameter style.
|
|
143
|
+
// Date-handling only works for the 'date-time' format.
|
|
144
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
145
|
+
//
|
|
146
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
147
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
148
|
+
? param.value.toISOString()
|
|
149
|
+
: param.value;
|
|
150
|
+
return encodeURIComponent(String(value));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* MySeko.API.Client
|
|
156
|
+
*
|
|
157
|
+
*
|
|
158
|
+
*
|
|
159
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
160
|
+
* https://openapi-generator.tech
|
|
161
|
+
* Do not edit the class manually.
|
|
162
|
+
*/
|
|
163
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
164
|
+
class HealthService {
|
|
165
|
+
httpClient;
|
|
166
|
+
basePath = 'http://localhost';
|
|
167
|
+
defaultHeaders = new HttpHeaders();
|
|
168
|
+
configuration = new Configuration();
|
|
169
|
+
encoder;
|
|
170
|
+
constructor(httpClient, basePath, configuration) {
|
|
171
|
+
this.httpClient = httpClient;
|
|
172
|
+
if (configuration) {
|
|
173
|
+
this.configuration = configuration;
|
|
174
|
+
}
|
|
175
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
176
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
177
|
+
if (firstBasePath != undefined) {
|
|
178
|
+
basePath = firstBasePath;
|
|
179
|
+
}
|
|
180
|
+
if (typeof basePath !== 'string') {
|
|
181
|
+
basePath = this.basePath;
|
|
182
|
+
}
|
|
183
|
+
this.configuration.basePath = basePath;
|
|
184
|
+
}
|
|
185
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
186
|
+
}
|
|
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);
|
|
194
|
+
}
|
|
195
|
+
return httpParams;
|
|
196
|
+
}
|
|
197
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
198
|
+
if (value == null) {
|
|
199
|
+
return httpParams;
|
|
200
|
+
}
|
|
201
|
+
if (typeof value === "object") {
|
|
202
|
+
if (Array.isArray(value)) {
|
|
203
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
204
|
+
}
|
|
205
|
+
else if (value instanceof Date) {
|
|
206
|
+
if (key != null) {
|
|
207
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
throw Error("key may not be null if value is Date");
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
else if (key != null) {
|
|
218
|
+
httpParams = httpParams.append(key, value);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
throw Error("key may not be null if value is not object or array");
|
|
222
|
+
}
|
|
223
|
+
return httpParams;
|
|
224
|
+
}
|
|
225
|
+
getHealth(observe = 'body', reportProgress = false, options) {
|
|
226
|
+
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
|
+
}
|
|
236
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
237
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
238
|
+
}
|
|
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
|
+
}
|
|
247
|
+
let responseType_ = 'json';
|
|
248
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
250
|
+
responseType_ = 'text';
|
|
251
|
+
}
|
|
252
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
253
|
+
responseType_ = 'json';
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
responseType_ = 'blob';
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
let localVarPath = `/health`;
|
|
260
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
261
|
+
context: localVarHttpContext,
|
|
262
|
+
responseType: responseType_,
|
|
263
|
+
withCredentials: this.configuration.withCredentials,
|
|
264
|
+
headers: localVarHeaders,
|
|
265
|
+
observe: observe,
|
|
266
|
+
transferCache: localVarTransferCache,
|
|
267
|
+
reportProgress: reportProgress
|
|
268
|
+
});
|
|
269
|
+
}
|
|
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' });
|
|
272
|
+
}
|
|
273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: HealthService, decorators: [{
|
|
274
|
+
type: Injectable,
|
|
275
|
+
args: [{
|
|
276
|
+
providedIn: 'root'
|
|
277
|
+
}]
|
|
278
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
279
|
+
type: Optional
|
|
280
|
+
}, {
|
|
281
|
+
type: Inject,
|
|
282
|
+
args: [BASE_PATH]
|
|
283
|
+
}] }, { type: Configuration, decorators: [{
|
|
284
|
+
type: Optional
|
|
285
|
+
}] }] });
|
|
286
|
+
|
|
287
|
+
const APIS = [HealthService];
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* MySeko.API.Client
|
|
291
|
+
*
|
|
292
|
+
*
|
|
293
|
+
*
|
|
294
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
295
|
+
* https://openapi-generator.tech
|
|
296
|
+
* Do not edit the class manually.
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
class ApiModule {
|
|
300
|
+
static forRoot(configurationFactory) {
|
|
301
|
+
return {
|
|
302
|
+
ngModule: ApiModule,
|
|
303
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
constructor(parentModule, http) {
|
|
307
|
+
if (parentModule) {
|
|
308
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
309
|
+
}
|
|
310
|
+
if (!http) {
|
|
311
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
312
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
313
|
+
}
|
|
314
|
+
}
|
|
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 });
|
|
318
|
+
}
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiModule, decorators: [{
|
|
320
|
+
type: NgModule,
|
|
321
|
+
args: [{
|
|
322
|
+
imports: [],
|
|
323
|
+
declarations: [],
|
|
324
|
+
exports: [],
|
|
325
|
+
providers: []
|
|
326
|
+
}]
|
|
327
|
+
}], ctorParameters: () => [{ type: ApiModule, decorators: [{
|
|
328
|
+
type: Optional
|
|
329
|
+
}, {
|
|
330
|
+
type: SkipSelf
|
|
331
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
332
|
+
type: Optional
|
|
333
|
+
}] }] });
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Generated bundle index. Do not edit.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService };
|
|
340
|
+
//# sourceMappingURL=indigina-wms-api.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indigina-wms-api.mjs","sources":["../../encoder.ts","../../variables.ts","../../configuration.ts","../../api/health.service.ts","../../api/api.ts","../../model/failures.ts","../../api.module.ts","../../indigina-wms-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;;;;;;AAMG;AACH,IAAA,WAAW;AACX;;;;AAIG;AACH,IAAA,WAAW;AAEX,IAAA,WAAA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AA,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;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@indigina/wms-api",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "OpenAPI client for @indigina/wms-api",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"openapi-client",
|
|
12
|
+
"openapi-generator"
|
|
13
|
+
],
|
|
14
|
+
"license": "Unlicense",
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@angular/core": "^19.2.0",
|
|
17
|
+
"rxjs": "^7.4.0"
|
|
18
|
+
},
|
|
19
|
+
"module": "fesm2022/indigina-wms-api.mjs",
|
|
20
|
+
"typings": "index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": {
|
|
23
|
+
"default": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"default": "./fesm2022/indigina-wms-api.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"tslib": "^2.3.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/param.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}
|