@indigina/dcm-api 0.0.4 → 0.0.6

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 (38) hide show
  1. package/README.md +2 -2
  2. package/api/api.d.ts +3 -1
  3. package/api/containers.service.d.ts +3 -0
  4. package/api/health.service.d.ts +3 -0
  5. package/api/permissions.service.d.ts +37 -0
  6. package/api/shipments.service.d.ts +6 -0
  7. package/esm2022/api/api.mjs +10 -0
  8. package/esm2022/api/containers.service.mjs +142 -0
  9. package/esm2022/api/health.service.mjs +143 -0
  10. package/esm2022/api/permissions.service.mjs +142 -0
  11. package/esm2022/api/shipments.service.mjs +186 -0
  12. package/{esm2020 → esm2022}/api.module.mjs +7 -7
  13. package/esm2022/configuration.mjs +121 -0
  14. package/{esm2020 → esm2022}/model/models.mjs +2 -1
  15. package/esm2022/model/userPermissions.mjs +13 -0
  16. package/{fesm2020 → fesm2022}/indigina-dcm-api.mjs +236 -35
  17. package/fesm2022/indigina-dcm-api.mjs.map +1 -0
  18. package/model/models.d.ts +1 -0
  19. package/model/userPermissions.d.ts +14 -0
  20. package/package.json +7 -13
  21. package/esm2020/api/api.mjs +0 -8
  22. package/esm2020/api/containers.service.mjs +0 -135
  23. package/esm2020/api/health.service.mjs +0 -136
  24. package/esm2020/api/shipments.service.mjs +0 -174
  25. package/esm2020/configuration.mjs +0 -91
  26. package/fesm2015/indigina-dcm-api.mjs +0 -593
  27. package/fesm2015/indigina-dcm-api.mjs.map +0 -1
  28. package/fesm2020/indigina-dcm-api.mjs.map +0 -1
  29. /package/{esm2020 → esm2022}/encoder.mjs +0 -0
  30. /package/{esm2020 → esm2022}/index.mjs +0 -0
  31. /package/{esm2020 → esm2022}/indigina-dcm-api.mjs +0 -0
  32. /package/{esm2020 → esm2022}/model/containersToDeliverCount.mjs +0 -0
  33. /package/{esm2020 → esm2022}/model/failures.mjs +0 -0
  34. /package/{esm2020 → esm2022}/model/modelError.mjs +0 -0
  35. /package/{esm2020 → esm2022}/model/shipmentsApprovalCount.mjs +0 -0
  36. /package/{esm2020 → esm2022}/model/shipmentsInTransitCount.mjs +0 -0
  37. /package/{esm2020 → esm2022}/param.mjs +0 -0
  38. /package/{esm2020 → esm2022}/variables.mjs +0 -0
@@ -1,593 +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, providedIn: 'root' });
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContainersService, decorators: [{
237
- type: Injectable,
238
- args: [{
239
- providedIn: 'root'
240
- }]
241
- }], ctorParameters: function () {
242
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
243
- type: Optional
244
- }, {
245
- type: Inject,
246
- args: [BASE_PATH]
247
- }] }, { type: Configuration, decorators: [{
248
- type: Optional
249
- }] }];
250
- } });
251
-
252
- /**
253
- * Dcm.API.Client
254
- * DCM API Client for Angular applications
255
- *
256
- * The version of the OpenAPI document: v1
257
- *
258
- *
259
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
260
- * https://openapi-generator.tech
261
- * Do not edit the class manually.
262
- */
263
- /* tslint:disable:no-unused-variable member-ordering */
264
- class HealthService {
265
- constructor(httpClient, basePath, configuration) {
266
- this.httpClient = httpClient;
267
- this.basePath = 'http://localhost';
268
- this.defaultHeaders = new HttpHeaders();
269
- this.configuration = new Configuration();
270
- if (configuration) {
271
- this.configuration = configuration;
272
- }
273
- if (typeof this.configuration.basePath !== 'string') {
274
- if (Array.isArray(basePath) && basePath.length > 0) {
275
- basePath = basePath[0];
276
- }
277
- if (typeof basePath !== 'string') {
278
- basePath = this.basePath;
279
- }
280
- this.configuration.basePath = basePath;
281
- }
282
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
283
- }
284
- // @ts-ignore
285
- addToHttpParams(httpParams, value, key) {
286
- if (typeof value === "object" && value instanceof Date === false) {
287
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
288
- }
289
- else {
290
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
291
- }
292
- return httpParams;
293
- }
294
- addToHttpParamsRecursive(httpParams, value, key) {
295
- if (value == null) {
296
- return httpParams;
297
- }
298
- if (typeof value === "object") {
299
- if (Array.isArray(value)) {
300
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
301
- }
302
- else if (value instanceof Date) {
303
- if (key != null) {
304
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
305
- }
306
- else {
307
- throw Error("key may not be null if value is Date");
308
- }
309
- }
310
- else {
311
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
312
- }
313
- }
314
- else if (key != null) {
315
- httpParams = httpParams.append(key, value);
316
- }
317
- else {
318
- throw Error("key may not be null if value is not object or array");
319
- }
320
- return httpParams;
321
- }
322
- getHealth(observe = 'body', reportProgress = false, options) {
323
- let localVarHeaders = this.defaultHeaders;
324
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
325
- if (localVarHttpHeaderAcceptSelected === undefined) {
326
- // to determine the Accept header
327
- const httpHeaderAccepts = [
328
- 'text/plain',
329
- 'application/json'
330
- ];
331
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
332
- }
333
- if (localVarHttpHeaderAcceptSelected !== undefined) {
334
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
335
- }
336
- let localVarHttpContext = options && options.context;
337
- if (localVarHttpContext === undefined) {
338
- localVarHttpContext = new HttpContext();
339
- }
340
- let responseType_ = 'json';
341
- if (localVarHttpHeaderAcceptSelected) {
342
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
343
- responseType_ = 'text';
344
- }
345
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
346
- responseType_ = 'json';
347
- }
348
- else {
349
- responseType_ = 'blob';
350
- }
351
- }
352
- let localVarPath = `/health`;
353
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
354
- context: localVarHttpContext,
355
- responseType: responseType_,
356
- withCredentials: this.configuration.withCredentials,
357
- headers: localVarHeaders,
358
- observe: observe,
359
- reportProgress: reportProgress
360
- });
361
- }
362
- }
363
- 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 });
364
- HealthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HealthService, providedIn: 'root' });
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HealthService, decorators: [{
366
- type: Injectable,
367
- args: [{
368
- providedIn: 'root'
369
- }]
370
- }], ctorParameters: function () {
371
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
372
- type: Optional
373
- }, {
374
- type: Inject,
375
- args: [BASE_PATH]
376
- }] }, { type: Configuration, decorators: [{
377
- type: Optional
378
- }] }];
379
- } });
380
-
381
- /**
382
- * Dcm.API.Client
383
- * DCM API Client for Angular applications
384
- *
385
- * The version of the OpenAPI document: v1
386
- *
387
- *
388
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
389
- * https://openapi-generator.tech
390
- * Do not edit the class manually.
391
- */
392
- /* tslint:disable:no-unused-variable member-ordering */
393
- class ShipmentsService {
394
- constructor(httpClient, basePath, configuration) {
395
- this.httpClient = httpClient;
396
- this.basePath = 'http://localhost';
397
- this.defaultHeaders = new HttpHeaders();
398
- this.configuration = new Configuration();
399
- if (configuration) {
400
- this.configuration = configuration;
401
- }
402
- if (typeof this.configuration.basePath !== 'string') {
403
- if (Array.isArray(basePath) && basePath.length > 0) {
404
- basePath = basePath[0];
405
- }
406
- if (typeof basePath !== 'string') {
407
- basePath = this.basePath;
408
- }
409
- this.configuration.basePath = basePath;
410
- }
411
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
412
- }
413
- // @ts-ignore
414
- addToHttpParams(httpParams, value, key) {
415
- if (typeof value === "object" && value instanceof Date === false) {
416
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
417
- }
418
- else {
419
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
420
- }
421
- return httpParams;
422
- }
423
- addToHttpParamsRecursive(httpParams, value, key) {
424
- if (value == null) {
425
- return httpParams;
426
- }
427
- if (typeof value === "object") {
428
- if (Array.isArray(value)) {
429
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
430
- }
431
- else if (value instanceof Date) {
432
- if (key != null) {
433
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
434
- }
435
- else {
436
- throw Error("key may not be null if value is Date");
437
- }
438
- }
439
- else {
440
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
441
- }
442
- }
443
- else if (key != null) {
444
- httpParams = httpParams.append(key, value);
445
- }
446
- else {
447
- throw Error("key may not be null if value is not object or array");
448
- }
449
- return httpParams;
450
- }
451
- getShipmentsApprovalCount(observe = 'body', reportProgress = false, options) {
452
- let localVarHeaders = this.defaultHeaders;
453
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
454
- if (localVarHttpHeaderAcceptSelected === undefined) {
455
- // to determine the Accept header
456
- const httpHeaderAccepts = [
457
- 'application/json'
458
- ];
459
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
460
- }
461
- if (localVarHttpHeaderAcceptSelected !== undefined) {
462
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
463
- }
464
- let localVarHttpContext = options && options.context;
465
- if (localVarHttpContext === undefined) {
466
- localVarHttpContext = new HttpContext();
467
- }
468
- let responseType_ = 'json';
469
- if (localVarHttpHeaderAcceptSelected) {
470
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
471
- responseType_ = 'text';
472
- }
473
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
474
- responseType_ = 'json';
475
- }
476
- else {
477
- responseType_ = 'blob';
478
- }
479
- }
480
- let localVarPath = `/shipments/approvals/count`;
481
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
482
- context: localVarHttpContext,
483
- responseType: responseType_,
484
- withCredentials: this.configuration.withCredentials,
485
- headers: localVarHeaders,
486
- observe: observe,
487
- reportProgress: reportProgress
488
- });
489
- }
490
- getShipmentsInTransitCount(observe = 'body', reportProgress = false, options) {
491
- let localVarHeaders = this.defaultHeaders;
492
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
493
- if (localVarHttpHeaderAcceptSelected === undefined) {
494
- // to determine the Accept header
495
- const httpHeaderAccepts = [
496
- 'application/json'
497
- ];
498
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
499
- }
500
- if (localVarHttpHeaderAcceptSelected !== undefined) {
501
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
502
- }
503
- let localVarHttpContext = options && options.context;
504
- if (localVarHttpContext === undefined) {
505
- localVarHttpContext = new HttpContext();
506
- }
507
- let responseType_ = 'json';
508
- if (localVarHttpHeaderAcceptSelected) {
509
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
510
- responseType_ = 'text';
511
- }
512
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
513
- responseType_ = 'json';
514
- }
515
- else {
516
- responseType_ = 'blob';
517
- }
518
- }
519
- let localVarPath = `/shipments/intransit/count`;
520
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
521
- context: localVarHttpContext,
522
- responseType: responseType_,
523
- withCredentials: this.configuration.withCredentials,
524
- headers: localVarHeaders,
525
- observe: observe,
526
- reportProgress: reportProgress
527
- });
528
- }
529
- }
530
- 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 });
531
- ShipmentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
532
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShipmentsService, decorators: [{
533
- type: Injectable,
534
- args: [{
535
- providedIn: 'root'
536
- }]
537
- }], ctorParameters: function () {
538
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
539
- type: Optional
540
- }, {
541
- type: Inject,
542
- args: [BASE_PATH]
543
- }] }, { type: Configuration, decorators: [{
544
- type: Optional
545
- }] }];
546
- } });
547
-
548
- const APIS = [ContainersService, HealthService, ShipmentsService];
549
-
550
- class ApiModule {
551
- static forRoot(configurationFactory) {
552
- return {
553
- ngModule: ApiModule,
554
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
555
- };
556
- }
557
- constructor(parentModule, http) {
558
- if (parentModule) {
559
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
560
- }
561
- if (!http) {
562
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
563
- 'See also https://github.com/angular/angular/issues/20575');
564
- }
565
- }
566
- }
567
- 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 });
568
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule });
569
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule });
570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
571
- type: NgModule,
572
- args: [{
573
- imports: [],
574
- declarations: [],
575
- exports: [],
576
- providers: []
577
- }]
578
- }], ctorParameters: function () {
579
- return [{ type: ApiModule, decorators: [{
580
- type: Optional
581
- }, {
582
- type: SkipSelf
583
- }] }, { type: i1.HttpClient, decorators: [{
584
- type: Optional
585
- }] }];
586
- } });
587
-
588
- /**
589
- * Generated bundle index. Do not edit.
590
- */
591
-
592
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, ShipmentsService };
593
- //# sourceMappingURL=indigina-dcm-api.mjs.map