@indigina/dcm-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.
@@ -0,0 +1,6 @@
1
+ export * from './api/api';
2
+ export * from './model/models';
3
+ export * from './variables';
4
+ export * from './configuration';
5
+ export * from './api.module';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FwaS9hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9tb2RlbC9tb2RlbHMnO1xuZXhwb3J0ICogZnJvbSAnLi92YXJpYWJsZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb25maWd1cmF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vYXBpLm1vZHVsZSc7Il19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kaWdpbmEtZGNtLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2luZGlnaW5hLWRjbS1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9tb2RlbC9lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBEY20uQVBJLkNsaWVudFxuICogRENNIEFQSSBDbGllbnQgZm9yIEFuZ3VsYXIgYXBwbGljYXRpb25zXG4gKlxuICogVGhlIHZlcnNpb24gb2YgdGhlIE9wZW5BUEkgZG9jdW1lbnQ6IHYxXG4gKiBcbiAqXG4gKiBOT1RFOiBUaGlzIGNsYXNzIGlzIGF1dG8gZ2VuZXJhdGVkIGJ5IE9wZW5BUEkgR2VuZXJhdG9yIChodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2gpLlxuICogaHR0cHM6Ly9vcGVuYXBpLWdlbmVyYXRvci50ZWNoXG4gKiBEbyBub3QgZWRpdCB0aGUgY2xhc3MgbWFudWFsbHkuXG4gKi9cbmltcG9ydCB7IEZhaWx1cmVzIH0gZnJvbSAnLi9mYWlsdXJlcyc7XG5cblxuZXhwb3J0IGludGVyZmFjZSBNb2RlbEVycm9yIHsgXG4gICAgdGl0bGU6IHN0cmluZztcbiAgICBzdGF0dXM6IG51bWJlcjtcbiAgICBlcnJvcnM6IEZhaWx1cmVzIHwgbnVsbDtcbn1cblxuIl19
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Dcm.API.Client
3
+ * DCM API Client for Angular applications
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFpbHVyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9tb2RlbC9mYWlsdXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7OztHQVVHIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBEY20uQVBJLkNsaWVudFxuICogRENNIEFQSSBDbGllbnQgZm9yIEFuZ3VsYXIgYXBwbGljYXRpb25zXG4gKlxuICogVGhlIHZlcnNpb24gb2YgdGhlIE9wZW5BUEkgZG9jdW1lbnQ6IHYxXG4gKiBcbiAqXG4gKiBOT1RFOiBUaGlzIGNsYXNzIGlzIGF1dG8gZ2VuZXJhdGVkIGJ5IE9wZW5BUEkgR2VuZXJhdG9yIChodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2gpLlxuICogaHR0cHM6Ly9vcGVuYXBpLWdlbmVyYXRvci50ZWNoXG4gKiBEbyBub3QgZWRpdCB0aGUgY2xhc3MgbWFudWFsbHkuXG4gKi9cblxuXG4vKipcbiAqIEB0eXBlIEZhaWx1cmVzXG4gKiBAZXhwb3J0XG4gKi9cbmV4cG9ydCB0eXBlIEZhaWx1cmVzID0geyBba2V5OiBzdHJpbmddOiBBcnJheTxzdHJpbmc+OyB9O1xuXG4iXX0=
@@ -0,0 +1,3 @@
1
+ export * from './failures';
2
+ export * from './error';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbW9kZWwvbW9kZWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mYWlsdXJlcyc7XG5leHBvcnQgKiBmcm9tICcuL2Vycm9yJztcbiJdfQ==
@@ -0,0 +1,9 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export const BASE_PATH = new InjectionToken('basePath');
3
+ export const COLLECTION_FORMATS = {
4
+ 'csv': ',',
5
+ 'tsv': ' ',
6
+ 'ssv': ' ',
7
+ 'pipes': '|'
8
+ };
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFibGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdmFyaWFibGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsTUFBTSxDQUFDLE1BQU0sU0FBUyxHQUFHLElBQUksY0FBYyxDQUFTLFVBQVUsQ0FBQyxDQUFDO0FBQ2hFLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHO0lBQzlCLEtBQUssRUFBRSxHQUFHO0lBQ1YsS0FBSyxFQUFFLEtBQUs7SUFDWixLQUFLLEVBQUUsR0FBRztJQUNWLE9BQU8sRUFBRSxHQUFHO0NBQ2YsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBjb25zdCBCQVNFX1BBVEggPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPignYmFzZVBhdGgnKTtcbmV4cG9ydCBjb25zdCBDT0xMRUNUSU9OX0ZPUk1BVFMgPSB7XG4gICAgJ2Nzdic6ICcsJyxcbiAgICAndHN2JzogJyAgICcsXG4gICAgJ3Nzdic6ICcgJyxcbiAgICAncGlwZXMnOiAnfCdcbn1cbiJdfQ==
@@ -0,0 +1,275 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } 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
+ constructor(configurationParameters = {}) {
35
+ this.apiKeys = configurationParameters.apiKeys;
36
+ this.username = configurationParameters.username;
37
+ this.password = configurationParameters.password;
38
+ this.accessToken = configurationParameters.accessToken;
39
+ this.basePath = configurationParameters.basePath;
40
+ this.withCredentials = configurationParameters.withCredentials;
41
+ this.encoder = configurationParameters.encoder;
42
+ if (configurationParameters.credentials) {
43
+ this.credentials = configurationParameters.credentials;
44
+ }
45
+ else {
46
+ this.credentials = {};
47
+ }
48
+ }
49
+ /**
50
+ * Select the correct content-type to use for a request.
51
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
52
+ * If no content type is found return the first found type if the contentTypes is not empty
53
+ * @param contentTypes - the array of content types that are available for selection
54
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
55
+ */
56
+ selectHeaderContentType(contentTypes) {
57
+ if (contentTypes.length === 0) {
58
+ return undefined;
59
+ }
60
+ const type = contentTypes.find((x) => this.isJsonMime(x));
61
+ if (type === undefined) {
62
+ return contentTypes[0];
63
+ }
64
+ return type;
65
+ }
66
+ /**
67
+ * Select the correct accept content-type to use for a request.
68
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
69
+ * If no content type is found return the first found type if the contentTypes is not empty
70
+ * @param accepts - the array of content types that are available for selection.
71
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
72
+ */
73
+ selectHeaderAccept(accepts) {
74
+ if (accepts.length === 0) {
75
+ return undefined;
76
+ }
77
+ const type = accepts.find((x) => this.isJsonMime(x));
78
+ if (type === undefined) {
79
+ return accepts[0];
80
+ }
81
+ return type;
82
+ }
83
+ /**
84
+ * Check if the given MIME is a JSON MIME.
85
+ * JSON MIME examples:
86
+ * application/json
87
+ * application/json; charset=UTF8
88
+ * APPLICATION/JSON
89
+ * application/vnd.company+json
90
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
91
+ * @return True if the given MIME is JSON, false otherwise.
92
+ */
93
+ isJsonMime(mime) {
94
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
96
+ }
97
+ lookupCredential(key) {
98
+ const value = this.credentials[key];
99
+ return typeof value === 'function'
100
+ ? value()
101
+ : value;
102
+ }
103
+ }
104
+
105
+ /**
106
+ * Dcm.API.Client
107
+ * DCM API Client for Angular applications
108
+ *
109
+ * The version of the OpenAPI document: v1
110
+ *
111
+ *
112
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
113
+ * https://openapi-generator.tech
114
+ * Do not edit the class manually.
115
+ */
116
+ class HealthService {
117
+ constructor(httpClient, basePath, configuration) {
118
+ this.httpClient = httpClient;
119
+ this.basePath = 'http://localhost';
120
+ this.defaultHeaders = new HttpHeaders();
121
+ this.configuration = new Configuration();
122
+ if (configuration) {
123
+ this.configuration = configuration;
124
+ }
125
+ if (typeof this.configuration.basePath !== 'string') {
126
+ if (typeof basePath !== 'string') {
127
+ basePath = this.basePath;
128
+ }
129
+ this.configuration.basePath = basePath;
130
+ }
131
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
132
+ }
133
+ // @ts-ignore
134
+ addToHttpParams(httpParams, value, key) {
135
+ if (typeof value === "object" && value instanceof Date === false) {
136
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
137
+ }
138
+ else {
139
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
140
+ }
141
+ return httpParams;
142
+ }
143
+ addToHttpParamsRecursive(httpParams, value, key) {
144
+ if (value == null) {
145
+ return httpParams;
146
+ }
147
+ if (typeof value === "object") {
148
+ if (Array.isArray(value)) {
149
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
150
+ }
151
+ else if (value instanceof Date) {
152
+ if (key != null) {
153
+ httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
154
+ }
155
+ else {
156
+ throw Error("key may not be null if value is Date");
157
+ }
158
+ }
159
+ else {
160
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
161
+ }
162
+ }
163
+ else if (key != null) {
164
+ httpParams = httpParams.append(key, value);
165
+ }
166
+ else {
167
+ throw Error("key may not be null if value is not object or array");
168
+ }
169
+ return httpParams;
170
+ }
171
+ getHealth(observe = 'body', reportProgress = false, options) {
172
+ let localVarHeaders = this.defaultHeaders;
173
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
174
+ if (localVarHttpHeaderAcceptSelected === undefined) {
175
+ // to determine the Accept header
176
+ const httpHeaderAccepts = [
177
+ 'text/plain',
178
+ 'application/json'
179
+ ];
180
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
181
+ }
182
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
183
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
184
+ }
185
+ let localVarHttpContext = options && options.context;
186
+ if (localVarHttpContext === undefined) {
187
+ localVarHttpContext = new HttpContext();
188
+ }
189
+ let responseType_ = 'json';
190
+ if (localVarHttpHeaderAcceptSelected) {
191
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
192
+ responseType_ = 'text';
193
+ }
194
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
195
+ responseType_ = 'json';
196
+ }
197
+ else {
198
+ responseType_ = 'blob';
199
+ }
200
+ }
201
+ return this.httpClient.get(`${this.configuration.basePath}/health`, {
202
+ context: localVarHttpContext,
203
+ responseType: responseType_,
204
+ withCredentials: this.configuration.withCredentials,
205
+ headers: localVarHeaders,
206
+ observe: observe,
207
+ reportProgress: reportProgress
208
+ });
209
+ }
210
+ }
211
+ HealthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
212
+ HealthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService });
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService, decorators: [{
214
+ type: Injectable
215
+ }], ctorParameters: function () {
216
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
217
+ type: Optional
218
+ }, {
219
+ type: Inject,
220
+ args: [BASE_PATH]
221
+ }] }, { type: Configuration, decorators: [{
222
+ type: Optional
223
+ }] }];
224
+ } });
225
+
226
+ const APIS = [HealthService];
227
+
228
+ class ApiModule {
229
+ constructor(parentModule, http) {
230
+ if (parentModule) {
231
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
232
+ }
233
+ if (!http) {
234
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
235
+ 'See also https://github.com/angular/angular/issues/20575');
236
+ }
237
+ }
238
+ static forRoot(configurationFactory) {
239
+ return {
240
+ ngModule: ApiModule,
241
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
242
+ };
243
+ }
244
+ }
245
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
246
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule });
247
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, providers: [
248
+ HealthService
249
+ ], imports: [[]] });
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, decorators: [{
251
+ type: NgModule,
252
+ args: [{
253
+ imports: [],
254
+ declarations: [],
255
+ exports: [],
256
+ providers: [
257
+ HealthService
258
+ ]
259
+ }]
260
+ }], ctorParameters: function () {
261
+ return [{ type: ApiModule, decorators: [{
262
+ type: Optional
263
+ }, {
264
+ type: SkipSelf
265
+ }] }, { type: i1.HttpClient, decorators: [{
266
+ type: Optional
267
+ }] }];
268
+ } });
269
+
270
+ /**
271
+ * Generated bundle index. Do not edit.
272
+ */
273
+
274
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService };
275
+ //# sourceMappingURL=indigina-dcm-api.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indigina-dcm-api.mjs","sources":["../../encoder.ts","../../variables.ts","../../configuration.ts","../../api/health.service.ts","../../api/api.ts","../../api.module.ts","../../indigina-dcm-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';\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 encoder?: HttpParameterCodec;\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 encoder?: HttpParameterCodec;\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.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","/**\n * Dcm.API.Client\n * DCM API Client for Angular applications\n *\n * The version of the OpenAPI document: v1\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()\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, @Optional() configuration: Configuration) {\n if (configuration) {\n this.configuration = configuration;\n }\n if (typeof this.configuration.basePath !== 'string') {\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().substr(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}): Observable<string>;\n public getHealth(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext}): Observable<HttpResponse<string>>;\n public getHealth(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext}): Observable<HttpEvent<string>>;\n public getHealth(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json', context?: HttpContext}): 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\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 return this.httpClient.get<string>(`${this.configuration.basePath}/health`,\n {\n context: localVarHttpContext,\n responseType: <any>responseType_,\n withCredentials: this.configuration.withCredentials,\n headers: localVarHeaders,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n}\n","export * from './health.service';\nimport { HealthService } from './health.service';\nexport const APIS = [HealthService];\n","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\nimport { Configuration } from './configuration';\nimport { HttpClient } from '@angular/common/http';\n\nimport { HealthService } from './api/health.service';\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: [],\n providers: [\n HealthService ]\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,CAAC;KAChC;AACD,IAAA,WAAW,CAAC,CAAS,EAAA;AACjB,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAChC;AACD,IAAA,SAAS,CAAC,CAAS,EAAA;AACf,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAChC;AACD,IAAA,WAAW,CAAC,CAAS,EAAA;AACjB,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAChC;AACJ;;MCjBY,SAAS,GAAG,IAAI,cAAc,CAAS,UAAU,EAAE;AACnD,MAAA,kBAAkB,GAAG;AAC9B,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,KAAK,EAAE,GAAG;AACV,IAAA,OAAO,EAAE,GAAG;;;MCiBH,aAAa,CAAA;IAqBtB,WAAY,CAAA,0BAAmD,EAAE,EAAA;AAC7D,QAAA,IA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BAPrB,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;wBACT,aAAa;AAAE,qBAAA;iBAClB,CAAA;;wBASsD,SAAS,EAAA,UAAA,EAAA,CAAA;8BAA9C,QAAQ;;8BAAI,QAAQ;;8BACpB,QAAQ;;;;ACtB1B;;AAEG;;;;"}
@@ -0,0 +1,283 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } 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
+ constructor(configurationParameters = {}) {
35
+ this.apiKeys = configurationParameters.apiKeys;
36
+ this.username = configurationParameters.username;
37
+ this.password = configurationParameters.password;
38
+ this.accessToken = configurationParameters.accessToken;
39
+ this.basePath = configurationParameters.basePath;
40
+ this.withCredentials = configurationParameters.withCredentials;
41
+ this.encoder = configurationParameters.encoder;
42
+ if (configurationParameters.credentials) {
43
+ this.credentials = configurationParameters.credentials;
44
+ }
45
+ else {
46
+ this.credentials = {};
47
+ }
48
+ }
49
+ /**
50
+ * Select the correct content-type to use for a request.
51
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
52
+ * If no content type is found return the first found type if the contentTypes is not empty
53
+ * @param contentTypes - the array of content types that are available for selection
54
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
55
+ */
56
+ selectHeaderContentType(contentTypes) {
57
+ if (contentTypes.length === 0) {
58
+ return undefined;
59
+ }
60
+ const type = contentTypes.find((x) => this.isJsonMime(x));
61
+ if (type === undefined) {
62
+ return contentTypes[0];
63
+ }
64
+ return type;
65
+ }
66
+ /**
67
+ * Select the correct accept content-type to use for a request.
68
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
69
+ * If no content type is found return the first found type if the contentTypes is not empty
70
+ * @param accepts - the array of content types that are available for selection.
71
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
72
+ */
73
+ selectHeaderAccept(accepts) {
74
+ if (accepts.length === 0) {
75
+ return undefined;
76
+ }
77
+ const type = accepts.find((x) => this.isJsonMime(x));
78
+ if (type === undefined) {
79
+ return accepts[0];
80
+ }
81
+ return type;
82
+ }
83
+ /**
84
+ * Check if the given MIME is a JSON MIME.
85
+ * JSON MIME examples:
86
+ * application/json
87
+ * application/json; charset=UTF8
88
+ * APPLICATION/JSON
89
+ * application/vnd.company+json
90
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
91
+ * @return True if the given MIME is JSON, false otherwise.
92
+ */
93
+ isJsonMime(mime) {
94
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
96
+ }
97
+ lookupCredential(key) {
98
+ const value = this.credentials[key];
99
+ return typeof value === 'function'
100
+ ? value()
101
+ : value;
102
+ }
103
+ }
104
+
105
+ /**
106
+ * Dcm.API.Client
107
+ * DCM API Client for Angular applications
108
+ *
109
+ * The version of the OpenAPI document: v1
110
+ *
111
+ *
112
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
113
+ * https://openapi-generator.tech
114
+ * Do not edit the class manually.
115
+ */
116
+ class HealthService {
117
+ constructor(httpClient, basePath, configuration) {
118
+ this.httpClient = httpClient;
119
+ this.basePath = 'http://localhost';
120
+ this.defaultHeaders = new HttpHeaders();
121
+ this.configuration = new Configuration();
122
+ if (configuration) {
123
+ this.configuration = configuration;
124
+ }
125
+ if (typeof this.configuration.basePath !== 'string') {
126
+ if (typeof basePath !== 'string') {
127
+ basePath = this.basePath;
128
+ }
129
+ this.configuration.basePath = basePath;
130
+ }
131
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
132
+ }
133
+ // @ts-ignore
134
+ addToHttpParams(httpParams, value, key) {
135
+ if (typeof value === "object" && value instanceof Date === false) {
136
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
137
+ }
138
+ else {
139
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
140
+ }
141
+ return httpParams;
142
+ }
143
+ addToHttpParamsRecursive(httpParams, value, key) {
144
+ if (value == null) {
145
+ return httpParams;
146
+ }
147
+ if (typeof value === "object") {
148
+ if (Array.isArray(value)) {
149
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
150
+ }
151
+ else if (value instanceof Date) {
152
+ if (key != null) {
153
+ httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
154
+ }
155
+ else {
156
+ throw Error("key may not be null if value is Date");
157
+ }
158
+ }
159
+ else {
160
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
161
+ }
162
+ }
163
+ else if (key != null) {
164
+ httpParams = httpParams.append(key, value);
165
+ }
166
+ else {
167
+ throw Error("key may not be null if value is not object or array");
168
+ }
169
+ return httpParams;
170
+ }
171
+ getHealth(observe = 'body', reportProgress = false, options) {
172
+ let localVarHeaders = this.defaultHeaders;
173
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
174
+ if (localVarHttpHeaderAcceptSelected === undefined) {
175
+ // to determine the Accept header
176
+ const httpHeaderAccepts = [
177
+ 'text/plain',
178
+ 'application/json'
179
+ ];
180
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
181
+ }
182
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
183
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
184
+ }
185
+ let localVarHttpContext = options && options.context;
186
+ if (localVarHttpContext === undefined) {
187
+ localVarHttpContext = new HttpContext();
188
+ }
189
+ let responseType_ = 'json';
190
+ if (localVarHttpHeaderAcceptSelected) {
191
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
192
+ responseType_ = 'text';
193
+ }
194
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
195
+ responseType_ = 'json';
196
+ }
197
+ else {
198
+ responseType_ = 'blob';
199
+ }
200
+ }
201
+ return this.httpClient.get(`${this.configuration.basePath}/health`, {
202
+ context: localVarHttpContext,
203
+ responseType: responseType_,
204
+ withCredentials: this.configuration.withCredentials,
205
+ headers: localVarHeaders,
206
+ observe: observe,
207
+ reportProgress: reportProgress
208
+ });
209
+ }
210
+ }
211
+ HealthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
212
+ HealthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService });
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HealthService, decorators: [{
214
+ type: Injectable
215
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
216
+ type: Optional
217
+ }, {
218
+ type: Inject,
219
+ args: [BASE_PATH]
220
+ }] }, { type: Configuration, decorators: [{
221
+ type: Optional
222
+ }] }]; } });
223
+
224
+ const APIS = [HealthService];
225
+
226
+ /**
227
+ * Dcm.API.Client
228
+ * DCM API Client for Angular applications
229
+ *
230
+ * The version of the OpenAPI document: v1
231
+ *
232
+ *
233
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
234
+ * https://openapi-generator.tech
235
+ * Do not edit the class manually.
236
+ */
237
+
238
+ class ApiModule {
239
+ constructor(parentModule, http) {
240
+ if (parentModule) {
241
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
242
+ }
243
+ if (!http) {
244
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
245
+ 'See also https://github.com/angular/angular/issues/20575');
246
+ }
247
+ }
248
+ static forRoot(configurationFactory) {
249
+ return {
250
+ ngModule: ApiModule,
251
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
252
+ };
253
+ }
254
+ }
255
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
256
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule });
257
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, providers: [
258
+ HealthService
259
+ ], imports: [[]] });
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ApiModule, decorators: [{
261
+ type: NgModule,
262
+ args: [{
263
+ imports: [],
264
+ declarations: [],
265
+ exports: [],
266
+ providers: [
267
+ HealthService
268
+ ]
269
+ }]
270
+ }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
271
+ type: Optional
272
+ }, {
273
+ type: SkipSelf
274
+ }] }, { type: i1.HttpClient, decorators: [{
275
+ type: Optional
276
+ }] }]; } });
277
+
278
+ /**
279
+ * Generated bundle index. Do not edit.
280
+ */
281
+
282
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService };
283
+ //# sourceMappingURL=indigina-dcm-api.mjs.map