@indigina/wms-api 0.0.17

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.
Files changed (41) hide show
  1. package/README.md +226 -0
  2. package/api/api.d.ts +7 -0
  3. package/api/health.service.d.ts +36 -0
  4. package/api/permissions.service.d.ts +37 -0
  5. package/api/user.service.d.ts +101 -0
  6. package/api.module.d.ts +11 -0
  7. package/configuration.d.ts +104 -0
  8. package/encoder.d.ts +11 -0
  9. package/esm2022/api/api.mjs +8 -0
  10. package/esm2022/api/health.service.mjs +143 -0
  11. package/esm2022/api/permissions.service.mjs +142 -0
  12. package/esm2022/api/user.service.mjs +283 -0
  13. package/esm2022/api.module.mjs +40 -0
  14. package/esm2022/configuration.mjs +121 -0
  15. package/esm2022/encoder.mjs +19 -0
  16. package/esm2022/index.mjs +7 -0
  17. package/esm2022/indigina-wms-api.mjs +5 -0
  18. package/esm2022/model/commandStatusResult.mjs +13 -0
  19. package/esm2022/model/currentUser.mjs +13 -0
  20. package/esm2022/model/failures.mjs +13 -0
  21. package/esm2022/model/modelError.mjs +2 -0
  22. package/esm2022/model/models.mjs +8 -0
  23. package/esm2022/model/pendingMessagesCount.mjs +13 -0
  24. package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +13 -0
  25. package/esm2022/model/userPermissions.mjs +13 -0
  26. package/esm2022/param.mjs +2 -0
  27. package/esm2022/variables.mjs +9 -0
  28. package/fesm2022/indigina-wms-api.mjs +810 -0
  29. package/fesm2022/indigina-wms-api.mjs.map +1 -0
  30. package/index.d.ts +6 -0
  31. package/model/commandStatusResult.d.ts +14 -0
  32. package/model/currentUser.d.ts +19 -0
  33. package/model/failures.d.ts +18 -0
  34. package/model/modelError.d.ts +17 -0
  35. package/model/models.d.ts +7 -0
  36. package/model/pendingMessagesCount.d.ts +14 -0
  37. package/model/setNewFeaturesVisibilityCommand.d.ts +14 -0
  38. package/model/userPermissions.d.ts +14 -0
  39. package/package.json +36 -0
  40. package/param.d.ts +37 -0
  41. package/variables.d.ts +8 -0
package/README.md ADDED
@@ -0,0 +1,226 @@
1
+ ## @indigina/wms-api@0.0.17
2
+
3
+ ### Building
4
+
5
+ To install the required dependencies and to build the typescript sources run:
6
+ ```
7
+ npm install
8
+ npm run build
9
+ ```
10
+
11
+ ### publishing
12
+
13
+ First build the package then run ```npm publish dist``` (don't forget to specify the `dist` folder!)
14
+
15
+ ### consuming
16
+
17
+ Navigate to the folder of your consuming project and run one of next commands.
18
+
19
+ _published:_
20
+
21
+ ```
22
+ npm install @indigina/wms-api@0.0.17 --save
23
+ ```
24
+
25
+ _without publishing (not recommended):_
26
+
27
+ ```
28
+ npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
29
+ ```
30
+
31
+ _It's important to take the tgz file, otherwise you'll get trouble with links on windows_
32
+
33
+ _using `npm link`:_
34
+
35
+ In PATH_TO_GENERATED_PACKAGE/dist:
36
+ ```
37
+ npm link
38
+ ```
39
+
40
+ In your project:
41
+ ```
42
+ npm link @indigina/wms-api
43
+ ```
44
+
45
+ __Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
46
+ Please refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.
47
+ Published packages are not effected by this issue.
48
+
49
+
50
+ #### General usage
51
+
52
+ In your Angular project:
53
+
54
+
55
+ ```
56
+ // without configuring providers
57
+ import { ApiModule } from '@indigina/wms-api';
58
+ import { HttpClientModule } from '@angular/common/http';
59
+
60
+ @NgModule({
61
+ imports: [
62
+ ApiModule,
63
+ // make sure to import the HttpClientModule in the AppModule only,
64
+ // see https://github.com/angular/angular/issues/20575
65
+ HttpClientModule
66
+ ],
67
+ declarations: [ AppComponent ],
68
+ providers: [],
69
+ bootstrap: [ AppComponent ]
70
+ })
71
+ export class AppModule {}
72
+ ```
73
+
74
+ ```
75
+ // configuring providers
76
+ import { ApiModule, Configuration, ConfigurationParameters } from '@indigina/wms-api';
77
+
78
+ export function apiConfigFactory (): Configuration {
79
+ const params: ConfigurationParameters = {
80
+ // set configuration parameters here.
81
+ }
82
+ return new Configuration(params);
83
+ }
84
+
85
+ @NgModule({
86
+ imports: [ ApiModule.forRoot(apiConfigFactory) ],
87
+ declarations: [ AppComponent ],
88
+ providers: [],
89
+ bootstrap: [ AppComponent ]
90
+ })
91
+ export class AppModule {}
92
+ ```
93
+
94
+ ```
95
+ // configuring providers with an authentication service that manages your access tokens
96
+ import { ApiModule, Configuration } from '@indigina/wms-api';
97
+
98
+ @NgModule({
99
+ imports: [ ApiModule ],
100
+ declarations: [ AppComponent ],
101
+ providers: [
102
+ {
103
+ provide: Configuration,
104
+ useFactory: (authService: AuthService) => new Configuration(
105
+ {
106
+ basePath: environment.apiUrl,
107
+ accessToken: authService.getAccessToken.bind(authService)
108
+ }
109
+ ),
110
+ deps: [AuthService],
111
+ multi: false
112
+ }
113
+ ],
114
+ bootstrap: [ AppComponent ]
115
+ })
116
+ export class AppModule {}
117
+ ```
118
+
119
+ ```
120
+ import { DefaultApi } from '@indigina/wms-api';
121
+
122
+ export class AppComponent {
123
+ constructor(private apiGateway: DefaultApi) { }
124
+ }
125
+ ```
126
+
127
+ Note: The ApiModule is restricted to being instantiated once app wide.
128
+ This is to ensure that all services are treated as singletons.
129
+
130
+ #### Using multiple OpenAPI files / APIs / ApiModules
131
+ In order to use multiple `ApiModules` generated from different OpenAPI files,
132
+ you can create an alias name when importing the modules
133
+ in order to avoid naming conflicts:
134
+ ```
135
+ import { ApiModule } from 'my-api-path';
136
+ import { ApiModule as OtherApiModule } from 'my-other-api-path';
137
+ import { HttpClientModule } from '@angular/common/http';
138
+
139
+ @NgModule({
140
+ imports: [
141
+ ApiModule,
142
+ OtherApiModule,
143
+ // make sure to import the HttpClientModule in the AppModule only,
144
+ // see https://github.com/angular/angular/issues/20575
145
+ HttpClientModule
146
+ ]
147
+ })
148
+ export class AppModule {
149
+
150
+ }
151
+ ```
152
+
153
+
154
+ ### Set service base path
155
+ If different than the generated base path, during app bootstrap, you can provide the base path to your service.
156
+
157
+ ```
158
+ import { BASE_PATH } from '@indigina/wms-api';
159
+
160
+ bootstrap(AppComponent, [
161
+ { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
162
+ ]);
163
+ ```
164
+ or
165
+
166
+ ```
167
+ import { BASE_PATH } from '@indigina/wms-api';
168
+
169
+ @NgModule({
170
+ imports: [],
171
+ declarations: [ AppComponent ],
172
+ providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
173
+ bootstrap: [ AppComponent ]
174
+ })
175
+ export class AppModule {}
176
+ ```
177
+
178
+
179
+ #### Using @angular/cli
180
+ First extend your `src/environments/*.ts` files by adding the corresponding base path:
181
+
182
+ ```
183
+ export const environment = {
184
+ production: false,
185
+ API_BASE_PATH: 'http://127.0.0.1:8080'
186
+ };
187
+ ```
188
+
189
+ In the src/app/app.module.ts:
190
+ ```
191
+ import { BASE_PATH } from '@indigina/wms-api';
192
+ import { environment } from '../environments/environment';
193
+
194
+ @NgModule({
195
+ declarations: [
196
+ AppComponent
197
+ ],
198
+ imports: [ ],
199
+ providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
200
+ bootstrap: [ AppComponent ]
201
+ })
202
+ export class AppModule { }
203
+ ```
204
+
205
+ ### Customizing path parameter encoding
206
+
207
+ Without further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple'
208
+ and Dates for format 'date-time' are encoded correctly.
209
+
210
+ Other styles (e.g. "matrix") are not that easy to encode
211
+ and thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]).
212
+
213
+ To implement your own parameter encoding (or call another library),
214
+ pass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object
215
+ (see [General Usage](#general-usage) above).
216
+
217
+ Example value for use in your Configuration-Provider:
218
+ ```typescript
219
+ new Configuration({
220
+ encodeParam: (param: Param) => myFancyParamEncoder(param),
221
+ })
222
+ ```
223
+
224
+ [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
225
+ [style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
226
+ [@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
package/api/api.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './health.service';
2
+ import { HealthService } from './health.service';
3
+ export * from './permissions.service';
4
+ import { PermissionsService } from './permissions.service';
5
+ export * from './user.service';
6
+ import { UserService } from './user.service';
7
+ export declare const APIS: (typeof HealthService | typeof PermissionsService | typeof UserService)[];
@@ -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
+ }
@@ -0,0 +1,37 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { UserPermissions } from '../model/userPermissions';
4
+ import { Configuration } from '../configuration';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PermissionsService {
7
+ protected httpClient: HttpClient;
8
+ protected basePath: string;
9
+ defaultHeaders: HttpHeaders;
10
+ configuration: Configuration;
11
+ encoder: HttpParameterCodec;
12
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
13
+ private addToHttpParams;
14
+ private addToHttpParamsRecursive;
15
+ /**
16
+ * User permissions
17
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
18
+ * @param reportProgress flag to report request and response progress.
19
+ */
20
+ getUserPermissions(observe?: 'body', reportProgress?: boolean, options?: {
21
+ httpHeaderAccept?: 'application/json';
22
+ context?: HttpContext;
23
+ transferCache?: boolean;
24
+ }): Observable<UserPermissions>;
25
+ getUserPermissions(observe?: 'response', reportProgress?: boolean, options?: {
26
+ httpHeaderAccept?: 'application/json';
27
+ context?: HttpContext;
28
+ transferCache?: boolean;
29
+ }): Observable<HttpResponse<UserPermissions>>;
30
+ getUserPermissions(observe?: 'events', reportProgress?: boolean, options?: {
31
+ httpHeaderAccept?: 'application/json';
32
+ context?: HttpContext;
33
+ transferCache?: boolean;
34
+ }): Observable<HttpEvent<UserPermissions>>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsService, [null, { optional: true; }, { optional: true; }]>;
36
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsService>;
37
+ }
@@ -0,0 +1,101 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CommandStatusResult } from '../model/commandStatusResult';
4
+ import { CurrentUser } from '../model/currentUser';
5
+ import { PendingMessagesCount } from '../model/pendingMessagesCount';
6
+ import { SetNewFeaturesVisibilityCommand } from '../model/setNewFeaturesVisibilityCommand';
7
+ import { Configuration } from '../configuration';
8
+ import * as i0 from "@angular/core";
9
+ export declare class UserService {
10
+ protected httpClient: HttpClient;
11
+ protected basePath: string;
12
+ defaultHeaders: HttpHeaders;
13
+ configuration: Configuration;
14
+ encoder: HttpParameterCodec;
15
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
16
+ private addToHttpParams;
17
+ private addToHttpParamsRecursive;
18
+ /**
19
+ * Chat messages pending count
20
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
21
+ * @param reportProgress flag to report request and response progress.
22
+ */
23
+ getChatPendingCount(observe?: 'body', reportProgress?: boolean, options?: {
24
+ httpHeaderAccept?: 'application/json';
25
+ context?: HttpContext;
26
+ transferCache?: boolean;
27
+ }): Observable<PendingMessagesCount>;
28
+ getChatPendingCount(observe?: 'response', reportProgress?: boolean, options?: {
29
+ httpHeaderAccept?: 'application/json';
30
+ context?: HttpContext;
31
+ transferCache?: boolean;
32
+ }): Observable<HttpResponse<PendingMessagesCount>>;
33
+ getChatPendingCount(observe?: 'events', reportProgress?: boolean, options?: {
34
+ httpHeaderAccept?: 'application/json';
35
+ context?: HttpContext;
36
+ transferCache?: boolean;
37
+ }): Observable<HttpEvent<PendingMessagesCount>>;
38
+ /**
39
+ * Mail messages pending count
40
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
41
+ * @param reportProgress flag to report request and response progress.
42
+ */
43
+ getMailPendingCount(observe?: 'body', reportProgress?: boolean, options?: {
44
+ httpHeaderAccept?: 'application/json';
45
+ context?: HttpContext;
46
+ transferCache?: boolean;
47
+ }): Observable<PendingMessagesCount>;
48
+ getMailPendingCount(observe?: 'response', reportProgress?: boolean, options?: {
49
+ httpHeaderAccept?: 'application/json';
50
+ context?: HttpContext;
51
+ transferCache?: boolean;
52
+ }): Observable<HttpResponse<PendingMessagesCount>>;
53
+ getMailPendingCount(observe?: 'events', reportProgress?: boolean, options?: {
54
+ httpHeaderAccept?: 'application/json';
55
+ context?: HttpContext;
56
+ transferCache?: boolean;
57
+ }): Observable<HttpEvent<PendingMessagesCount>>;
58
+ /**
59
+ * User information
60
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
61
+ * @param reportProgress flag to report request and response progress.
62
+ */
63
+ getUserInfo(observe?: 'body', reportProgress?: boolean, options?: {
64
+ httpHeaderAccept?: 'application/json';
65
+ context?: HttpContext;
66
+ transferCache?: boolean;
67
+ }): Observable<CurrentUser>;
68
+ getUserInfo(observe?: 'response', reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: 'application/json';
70
+ context?: HttpContext;
71
+ transferCache?: boolean;
72
+ }): Observable<HttpResponse<CurrentUser>>;
73
+ getUserInfo(observe?: 'events', reportProgress?: boolean, options?: {
74
+ httpHeaderAccept?: 'application/json';
75
+ context?: HttpContext;
76
+ transferCache?: boolean;
77
+ }): Observable<HttpEvent<CurrentUser>>;
78
+ /**
79
+ * Set NewFeaturesVisibility setting
80
+ * @param setNewFeaturesVisibilityCommand
81
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
82
+ * @param reportProgress flag to report request and response progress.
83
+ */
84
+ setNewFeaturesVisibility(setNewFeaturesVisibilityCommand?: SetNewFeaturesVisibilityCommand, observe?: 'body', reportProgress?: boolean, options?: {
85
+ httpHeaderAccept?: 'application/json';
86
+ context?: HttpContext;
87
+ transferCache?: boolean;
88
+ }): Observable<CommandStatusResult>;
89
+ setNewFeaturesVisibility(setNewFeaturesVisibilityCommand?: SetNewFeaturesVisibilityCommand, observe?: 'response', reportProgress?: boolean, options?: {
90
+ httpHeaderAccept?: 'application/json';
91
+ context?: HttpContext;
92
+ transferCache?: boolean;
93
+ }): Observable<HttpResponse<CommandStatusResult>>;
94
+ setNewFeaturesVisibility(setNewFeaturesVisibilityCommand?: SetNewFeaturesVisibilityCommand, observe?: 'events', reportProgress?: boolean, options?: {
95
+ httpHeaderAccept?: 'application/json';
96
+ context?: HttpContext;
97
+ transferCache?: boolean;
98
+ }): Observable<HttpEvent<CommandStatusResult>>;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserService, [null, { optional: true; }, { optional: true; }]>;
100
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
101
+ }
@@ -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,8 @@
1
+ export * from './health.service';
2
+ import { HealthService } from './health.service';
3
+ export * from './permissions.service';
4
+ import { PermissionsService } from './permissions.service';
5
+ export * from './user.service';
6
+ import { UserService } from './user.service';
7
+ export const APIS = [HealthService, PermissionsService, UserService];
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vYXBpL2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzNELGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLGFBQWEsRUFBRSxrQkFBa0IsRUFBRSxXQUFXLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaGVhbHRoLnNlcnZpY2UnO1xuaW1wb3J0IHsgSGVhbHRoU2VydmljZSB9IGZyb20gJy4vaGVhbHRoLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9wZXJtaXNzaW9ucy5zZXJ2aWNlJztcbmltcG9ydCB7IFBlcm1pc3Npb25zU2VydmljZSB9IGZyb20gJy4vcGVybWlzc2lvbnMuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL3VzZXIuc2VydmljZSc7XG5pbXBvcnQgeyBVc2VyU2VydmljZSB9IGZyb20gJy4vdXNlci5zZXJ2aWNlJztcbmV4cG9ydCBjb25zdCBBUElTID0gW0hlYWx0aFNlcnZpY2UsIFBlcm1pc3Npb25zU2VydmljZSwgVXNlclNlcnZpY2VdO1xuIl19