@indigina/dcm-api 0.0.3 → 0.0.5

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 (32) hide show
  1. package/README.md +2 -2
  2. package/api/containers.service.d.ts +3 -0
  3. package/api/health.service.d.ts +3 -0
  4. package/api/shipments.service.d.ts +6 -0
  5. package/esm2022/api/containers.service.mjs +142 -0
  6. package/esm2022/api/health.service.mjs +143 -0
  7. package/esm2022/api/shipments.service.mjs +186 -0
  8. package/esm2022/api.module.mjs +40 -0
  9. package/esm2022/configuration.mjs +121 -0
  10. package/{fesm2020 → fesm2022}/indigina-dcm-api.mjs +102 -45
  11. package/fesm2022/indigina-dcm-api.mjs.map +1 -0
  12. package/package.json +7 -13
  13. package/esm2020/api/containers.service.mjs +0 -132
  14. package/esm2020/api/health.service.mjs +0 -133
  15. package/esm2020/api/shipments.service.mjs +0 -171
  16. package/esm2020/api.module.mjs +0 -51
  17. package/esm2020/configuration.mjs +0 -91
  18. package/fesm2015/indigina-dcm-api.mjs +0 -592
  19. package/fesm2015/indigina-dcm-api.mjs.map +0 -1
  20. package/fesm2020/indigina-dcm-api.mjs.map +0 -1
  21. /package/{esm2020 → esm2022}/api/api.mjs +0 -0
  22. /package/{esm2020 → esm2022}/encoder.mjs +0 -0
  23. /package/{esm2020 → esm2022}/index.mjs +0 -0
  24. /package/{esm2020 → esm2022}/indigina-dcm-api.mjs +0 -0
  25. /package/{esm2020 → esm2022}/model/containersToDeliverCount.mjs +0 -0
  26. /package/{esm2020 → esm2022}/model/failures.mjs +0 -0
  27. /package/{esm2020 → esm2022}/model/modelError.mjs +0 -0
  28. /package/{esm2020 → esm2022}/model/models.mjs +0 -0
  29. /package/{esm2020 → esm2022}/model/shipmentsApprovalCount.mjs +0 -0
  30. /package/{esm2020 → esm2022}/model/shipmentsInTransitCount.mjs +0 -0
  31. /package/{esm2020 → esm2022}/param.mjs +0 -0
  32. /package/{esm2020 → esm2022}/variables.mjs +0 -0
@@ -1,592 +0,0 @@
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.encodeParam) {
43
- this.encodeParam = configurationParameters.encodeParam;
44
- }
45
- else {
46
- this.encodeParam = param => this.defaultEncodeParam(param);
47
- }
48
- if (configurationParameters.credentials) {
49
- this.credentials = configurationParameters.credentials;
50
- }
51
- else {
52
- this.credentials = {};
53
- }
54
- }
55
- /**
56
- * Select the correct content-type to use for a request.
57
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
58
- * If no content type is found return the first found type if the contentTypes is not empty
59
- * @param contentTypes - the array of content types that are available for selection
60
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
61
- */
62
- selectHeaderContentType(contentTypes) {
63
- if (contentTypes.length === 0) {
64
- return undefined;
65
- }
66
- const type = contentTypes.find((x) => this.isJsonMime(x));
67
- if (type === undefined) {
68
- return contentTypes[0];
69
- }
70
- return type;
71
- }
72
- /**
73
- * Select the correct accept content-type to use for a request.
74
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
75
- * If no content type is found return the first found type if the contentTypes is not empty
76
- * @param accepts - the array of content types that are available for selection.
77
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
78
- */
79
- selectHeaderAccept(accepts) {
80
- if (accepts.length === 0) {
81
- return undefined;
82
- }
83
- const type = accepts.find((x) => this.isJsonMime(x));
84
- if (type === undefined) {
85
- return accepts[0];
86
- }
87
- return type;
88
- }
89
- /**
90
- * Check if the given MIME is a JSON MIME.
91
- * JSON MIME examples:
92
- * application/json
93
- * application/json; charset=UTF8
94
- * APPLICATION/JSON
95
- * application/vnd.company+json
96
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
97
- * @return True if the given MIME is JSON, false otherwise.
98
- */
99
- isJsonMime(mime) {
100
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
101
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
102
- }
103
- lookupCredential(key) {
104
- const value = this.credentials[key];
105
- return typeof value === 'function'
106
- ? value()
107
- : value;
108
- }
109
- defaultEncodeParam(param) {
110
- // This implementation exists as fallback for missing configuration
111
- // and for backwards compatibility to older typescript-angular generator versions.
112
- // It only works for the 'simple' parameter style.
113
- // Date-handling only works for the 'date-time' format.
114
- // All other styles and Date-formats are probably handled incorrectly.
115
- //
116
- // But: if that's all you need (i.e.: the most common use-case): no need for customization!
117
- const value = param.dataFormat === 'date-time' && param.value instanceof Date
118
- ? param.value.toISOString()
119
- : param.value;
120
- return encodeURIComponent(String(value));
121
- }
122
- }
123
-
124
- /**
125
- * Dcm.API.Client
126
- * DCM API Client for Angular applications
127
- *
128
- * The version of the OpenAPI document: v1
129
- *
130
- *
131
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
132
- * https://openapi-generator.tech
133
- * Do not edit the class manually.
134
- */
135
- /* tslint:disable:no-unused-variable member-ordering */
136
- class ContainersService {
137
- constructor(httpClient, basePath, configuration) {
138
- this.httpClient = httpClient;
139
- this.basePath = 'http://localhost';
140
- this.defaultHeaders = new HttpHeaders();
141
- this.configuration = new Configuration();
142
- if (configuration) {
143
- this.configuration = configuration;
144
- }
145
- if (typeof this.configuration.basePath !== 'string') {
146
- if (Array.isArray(basePath) && basePath.length > 0) {
147
- basePath = basePath[0];
148
- }
149
- if (typeof basePath !== 'string') {
150
- basePath = this.basePath;
151
- }
152
- this.configuration.basePath = basePath;
153
- }
154
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
155
- }
156
- // @ts-ignore
157
- addToHttpParams(httpParams, value, key) {
158
- if (typeof value === "object" && value instanceof Date === false) {
159
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
160
- }
161
- else {
162
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
163
- }
164
- return httpParams;
165
- }
166
- addToHttpParamsRecursive(httpParams, value, key) {
167
- if (value == null) {
168
- return httpParams;
169
- }
170
- if (typeof value === "object") {
171
- if (Array.isArray(value)) {
172
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
173
- }
174
- else if (value instanceof Date) {
175
- if (key != null) {
176
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
177
- }
178
- else {
179
- throw Error("key may not be null if value is Date");
180
- }
181
- }
182
- else {
183
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
184
- }
185
- }
186
- else if (key != null) {
187
- httpParams = httpParams.append(key, value);
188
- }
189
- else {
190
- throw Error("key may not be null if value is not object or array");
191
- }
192
- return httpParams;
193
- }
194
- getContainersToDeliverCount(observe = 'body', reportProgress = false, options) {
195
- let localVarHeaders = this.defaultHeaders;
196
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
197
- if (localVarHttpHeaderAcceptSelected === undefined) {
198
- // to determine the Accept header
199
- const httpHeaderAccepts = [
200
- 'application/json'
201
- ];
202
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
203
- }
204
- if (localVarHttpHeaderAcceptSelected !== undefined) {
205
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
206
- }
207
- let localVarHttpContext = options && options.context;
208
- if (localVarHttpContext === undefined) {
209
- localVarHttpContext = new HttpContext();
210
- }
211
- let responseType_ = 'json';
212
- if (localVarHttpHeaderAcceptSelected) {
213
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
214
- responseType_ = 'text';
215
- }
216
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
217
- responseType_ = 'json';
218
- }
219
- else {
220
- responseType_ = 'blob';
221
- }
222
- }
223
- let localVarPath = `/containers/todeliver/count`;
224
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
225
- context: localVarHttpContext,
226
- responseType: responseType_,
227
- withCredentials: this.configuration.withCredentials,
228
- headers: localVarHeaders,
229
- observe: observe,
230
- reportProgress: reportProgress
231
- });
232
- }
233
- }
234
- ContainersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContainersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
235
- ContainersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContainersService });
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContainersService, decorators: [{
237
- type: Injectable
238
- }], ctorParameters: function () {
239
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
240
- type: Optional
241
- }, {
242
- type: Inject,
243
- args: [BASE_PATH]
244
- }] }, { type: Configuration, decorators: [{
245
- type: Optional
246
- }] }];
247
- } });
248
-
249
- /**
250
- * Dcm.API.Client
251
- * DCM API Client for Angular applications
252
- *
253
- * The version of the OpenAPI document: v1
254
- *
255
- *
256
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
257
- * https://openapi-generator.tech
258
- * Do not edit the class manually.
259
- */
260
- /* tslint:disable:no-unused-variable member-ordering */
261
- class HealthService {
262
- constructor(httpClient, basePath, configuration) {
263
- this.httpClient = httpClient;
264
- this.basePath = 'http://localhost';
265
- this.defaultHeaders = new HttpHeaders();
266
- this.configuration = new Configuration();
267
- if (configuration) {
268
- this.configuration = configuration;
269
- }
270
- if (typeof this.configuration.basePath !== 'string') {
271
- if (Array.isArray(basePath) && basePath.length > 0) {
272
- basePath = basePath[0];
273
- }
274
- if (typeof basePath !== 'string') {
275
- basePath = this.basePath;
276
- }
277
- this.configuration.basePath = basePath;
278
- }
279
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
280
- }
281
- // @ts-ignore
282
- addToHttpParams(httpParams, value, key) {
283
- if (typeof value === "object" && value instanceof Date === false) {
284
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
285
- }
286
- else {
287
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
288
- }
289
- return httpParams;
290
- }
291
- addToHttpParamsRecursive(httpParams, value, key) {
292
- if (value == null) {
293
- return httpParams;
294
- }
295
- if (typeof value === "object") {
296
- if (Array.isArray(value)) {
297
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
298
- }
299
- else if (value instanceof Date) {
300
- if (key != null) {
301
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
302
- }
303
- else {
304
- throw Error("key may not be null if value is Date");
305
- }
306
- }
307
- else {
308
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
309
- }
310
- }
311
- else if (key != null) {
312
- httpParams = httpParams.append(key, value);
313
- }
314
- else {
315
- throw Error("key may not be null if value is not object or array");
316
- }
317
- return httpParams;
318
- }
319
- getHealth(observe = 'body', reportProgress = false, options) {
320
- let localVarHeaders = this.defaultHeaders;
321
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
322
- if (localVarHttpHeaderAcceptSelected === undefined) {
323
- // to determine the Accept header
324
- const httpHeaderAccepts = [
325
- 'text/plain',
326
- 'application/json'
327
- ];
328
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
329
- }
330
- if (localVarHttpHeaderAcceptSelected !== undefined) {
331
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
332
- }
333
- let localVarHttpContext = options && options.context;
334
- if (localVarHttpContext === undefined) {
335
- localVarHttpContext = new HttpContext();
336
- }
337
- let responseType_ = 'json';
338
- if (localVarHttpHeaderAcceptSelected) {
339
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
340
- responseType_ = 'text';
341
- }
342
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
343
- responseType_ = 'json';
344
- }
345
- else {
346
- responseType_ = 'blob';
347
- }
348
- }
349
- let localVarPath = `/health`;
350
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
351
- context: localVarHttpContext,
352
- responseType: responseType_,
353
- withCredentials: this.configuration.withCredentials,
354
- headers: localVarHeaders,
355
- observe: observe,
356
- reportProgress: reportProgress
357
- });
358
- }
359
- }
360
- HealthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
361
- HealthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HealthService });
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HealthService, decorators: [{
363
- type: Injectable
364
- }], ctorParameters: function () {
365
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
366
- type: Optional
367
- }, {
368
- type: Inject,
369
- args: [BASE_PATH]
370
- }] }, { type: Configuration, decorators: [{
371
- type: Optional
372
- }] }];
373
- } });
374
-
375
- /**
376
- * Dcm.API.Client
377
- * DCM API Client for Angular applications
378
- *
379
- * The version of the OpenAPI document: v1
380
- *
381
- *
382
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
383
- * https://openapi-generator.tech
384
- * Do not edit the class manually.
385
- */
386
- /* tslint:disable:no-unused-variable member-ordering */
387
- class ShipmentsService {
388
- constructor(httpClient, basePath, configuration) {
389
- this.httpClient = httpClient;
390
- this.basePath = 'http://localhost';
391
- this.defaultHeaders = new HttpHeaders();
392
- this.configuration = new Configuration();
393
- if (configuration) {
394
- this.configuration = configuration;
395
- }
396
- if (typeof this.configuration.basePath !== 'string') {
397
- if (Array.isArray(basePath) && basePath.length > 0) {
398
- basePath = basePath[0];
399
- }
400
- if (typeof basePath !== 'string') {
401
- basePath = this.basePath;
402
- }
403
- this.configuration.basePath = basePath;
404
- }
405
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
406
- }
407
- // @ts-ignore
408
- addToHttpParams(httpParams, value, key) {
409
- if (typeof value === "object" && value instanceof Date === false) {
410
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
411
- }
412
- else {
413
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
414
- }
415
- return httpParams;
416
- }
417
- addToHttpParamsRecursive(httpParams, value, key) {
418
- if (value == null) {
419
- return httpParams;
420
- }
421
- if (typeof value === "object") {
422
- if (Array.isArray(value)) {
423
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
424
- }
425
- else if (value instanceof Date) {
426
- if (key != null) {
427
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
428
- }
429
- else {
430
- throw Error("key may not be null if value is Date");
431
- }
432
- }
433
- else {
434
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
435
- }
436
- }
437
- else if (key != null) {
438
- httpParams = httpParams.append(key, value);
439
- }
440
- else {
441
- throw Error("key may not be null if value is not object or array");
442
- }
443
- return httpParams;
444
- }
445
- getShipmentsApprovalCount(observe = 'body', reportProgress = false, options) {
446
- let localVarHeaders = this.defaultHeaders;
447
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
448
- if (localVarHttpHeaderAcceptSelected === undefined) {
449
- // to determine the Accept header
450
- const httpHeaderAccepts = [
451
- 'application/json'
452
- ];
453
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
454
- }
455
- if (localVarHttpHeaderAcceptSelected !== undefined) {
456
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
457
- }
458
- let localVarHttpContext = options && options.context;
459
- if (localVarHttpContext === undefined) {
460
- localVarHttpContext = new HttpContext();
461
- }
462
- let responseType_ = 'json';
463
- if (localVarHttpHeaderAcceptSelected) {
464
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
465
- responseType_ = 'text';
466
- }
467
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
468
- responseType_ = 'json';
469
- }
470
- else {
471
- responseType_ = 'blob';
472
- }
473
- }
474
- let localVarPath = `/shipments/approvals/count`;
475
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
476
- context: localVarHttpContext,
477
- responseType: responseType_,
478
- withCredentials: this.configuration.withCredentials,
479
- headers: localVarHeaders,
480
- observe: observe,
481
- reportProgress: reportProgress
482
- });
483
- }
484
- getShipmentsInTransitCount(observe = 'body', reportProgress = false, options) {
485
- let localVarHeaders = this.defaultHeaders;
486
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
487
- if (localVarHttpHeaderAcceptSelected === undefined) {
488
- // to determine the Accept header
489
- const httpHeaderAccepts = [
490
- 'application/json'
491
- ];
492
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
493
- }
494
- if (localVarHttpHeaderAcceptSelected !== undefined) {
495
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
496
- }
497
- let localVarHttpContext = options && options.context;
498
- if (localVarHttpContext === undefined) {
499
- localVarHttpContext = new HttpContext();
500
- }
501
- let responseType_ = 'json';
502
- if (localVarHttpHeaderAcceptSelected) {
503
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
504
- responseType_ = 'text';
505
- }
506
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
507
- responseType_ = 'json';
508
- }
509
- else {
510
- responseType_ = 'blob';
511
- }
512
- }
513
- let localVarPath = `/shipments/intransit/count`;
514
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
515
- context: localVarHttpContext,
516
- responseType: responseType_,
517
- withCredentials: this.configuration.withCredentials,
518
- headers: localVarHeaders,
519
- observe: observe,
520
- reportProgress: reportProgress
521
- });
522
- }
523
- }
524
- ShipmentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
525
- ShipmentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShipmentsService });
526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShipmentsService, decorators: [{
527
- type: Injectable
528
- }], ctorParameters: function () {
529
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
530
- type: Optional
531
- }, {
532
- type: Inject,
533
- args: [BASE_PATH]
534
- }] }, { type: Configuration, decorators: [{
535
- type: Optional
536
- }] }];
537
- } });
538
-
539
- const APIS = [ContainersService, HealthService, ShipmentsService];
540
-
541
- class ApiModule {
542
- static forRoot(configurationFactory) {
543
- return {
544
- ngModule: ApiModule,
545
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
546
- };
547
- }
548
- constructor(parentModule, http) {
549
- if (parentModule) {
550
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
551
- }
552
- if (!http) {
553
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
554
- 'See also https://github.com/angular/angular/issues/20575');
555
- }
556
- }
557
- }
558
- ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
559
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule });
560
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
561
- ContainersService,
562
- HealthService,
563
- ShipmentsService
564
- ] });
565
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
566
- type: NgModule,
567
- args: [{
568
- imports: [],
569
- declarations: [],
570
- exports: [],
571
- providers: [
572
- ContainersService,
573
- HealthService,
574
- ShipmentsService
575
- ]
576
- }]
577
- }], ctorParameters: function () {
578
- return [{ type: ApiModule, decorators: [{
579
- type: Optional
580
- }, {
581
- type: SkipSelf
582
- }] }, { type: i1.HttpClient, decorators: [{
583
- type: Optional
584
- }] }];
585
- } });
586
-
587
- /**
588
- * Generated bundle index. Do not edit.
589
- */
590
-
591
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, ShipmentsService };
592
- //# sourceMappingURL=indigina-dcm-api.mjs.map