@indigina/dcm-api 0.0.126 → 0.0.128

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.
@@ -3,6 +3,14 @@ import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeE
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
5
5
 
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
6
14
  /**
7
15
  * Custom HttpParameterCodec
8
16
  * Workaround for https://github.com/angular/angular/issues/18261
@@ -36,6 +44,143 @@ class IdentityHttpParameterCodec {
36
44
  }
37
45
  }
38
46
 
47
+ class Configuration {
48
+ /**
49
+ * @deprecated Since 5.0. Use credentials instead
50
+ */
51
+ apiKeys;
52
+ username;
53
+ password;
54
+ /**
55
+ * @deprecated Since 5.0. Use credentials instead
56
+ */
57
+ accessToken;
58
+ basePath;
59
+ withCredentials;
60
+ /**
61
+ * Takes care of encoding query- and form-parameters.
62
+ */
63
+ encoder;
64
+ /**
65
+ * Encoding of various path parameter
66
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
67
+ * <p>
68
+ * See {@link README.md} for more details
69
+ * </p>
70
+ */
71
+ encodeParam;
72
+ /**
73
+ * The keys are the names in the securitySchemes section of the OpenAPI
74
+ * document. They should map to the value used for authentication
75
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
76
+ */
77
+ credentials;
78
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
79
+ if (apiKeys) {
80
+ this.apiKeys = apiKeys;
81
+ }
82
+ if (username !== undefined) {
83
+ this.username = username;
84
+ }
85
+ if (password !== undefined) {
86
+ this.password = password;
87
+ }
88
+ if (accessToken !== undefined) {
89
+ this.accessToken = accessToken;
90
+ }
91
+ if (basePath !== undefined) {
92
+ this.basePath = basePath;
93
+ }
94
+ if (withCredentials !== undefined) {
95
+ this.withCredentials = withCredentials;
96
+ }
97
+ if (encoder) {
98
+ this.encoder = encoder;
99
+ }
100
+ this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
101
+ this.credentials = credentials ?? {};
102
+ }
103
+ /**
104
+ * Select the correct content-type to use for a request.
105
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
106
+ * If no content type is found return the first found type if the contentTypes is not empty
107
+ * @param contentTypes - the array of content types that are available for selection
108
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
109
+ */
110
+ selectHeaderContentType(contentTypes) {
111
+ if (contentTypes.length === 0) {
112
+ return undefined;
113
+ }
114
+ const type = contentTypes.find((x) => this.isJsonMime(x));
115
+ if (type === undefined) {
116
+ return contentTypes[0];
117
+ }
118
+ return type;
119
+ }
120
+ /**
121
+ * Select the correct accept content-type to use for a request.
122
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
123
+ * If no content type is found return the first found type if the contentTypes is not empty
124
+ * @param accepts - the array of content types that are available for selection.
125
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
126
+ */
127
+ selectHeaderAccept(accepts) {
128
+ if (accepts.length === 0) {
129
+ return undefined;
130
+ }
131
+ const type = accepts.find((x) => this.isJsonMime(x));
132
+ if (type === undefined) {
133
+ return accepts[0];
134
+ }
135
+ return type;
136
+ }
137
+ /**
138
+ * Check if the given MIME is a JSON MIME.
139
+ * JSON MIME examples:
140
+ * application/json
141
+ * application/json; charset=UTF8
142
+ * APPLICATION/JSON
143
+ * application/vnd.company+json
144
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
145
+ * @return True if the given MIME is JSON, false otherwise.
146
+ */
147
+ isJsonMime(mime) {
148
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
149
+ return mime !== null && jsonMime.test(mime);
150
+ }
151
+ lookupCredential(key) {
152
+ const value = this.credentials[key];
153
+ return typeof value === 'function'
154
+ ? value()
155
+ : value;
156
+ }
157
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
158
+ const value = this.lookupCredential(credentialKey);
159
+ return value
160
+ ? headers.set(headerName, (prefix ?? '') + value)
161
+ : headers;
162
+ }
163
+ addCredentialToQuery(credentialKey, paramName, query) {
164
+ const value = this.lookupCredential(credentialKey);
165
+ return value
166
+ ? query.set(paramName, value)
167
+ : query;
168
+ }
169
+ defaultEncodeParam(param) {
170
+ // This implementation exists as fallback for missing configuration
171
+ // and for backwards compatibility to older typescript-angular generator versions.
172
+ // It only works for the 'simple' parameter style.
173
+ // Date-handling only works for the 'date-time' format.
174
+ // All other styles and Date-formats are probably handled incorrectly.
175
+ //
176
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
177
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
178
+ ? param.value.toISOString()
179
+ : param.value;
180
+ return encodeURIComponent(String(value));
181
+ }
182
+ }
183
+
39
184
  var QueryParamStyle;
40
185
  (function (QueryParamStyle) {
41
186
  QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
@@ -161,242 +306,690 @@ function convertToString(value) {
161
306
  }
162
307
  }
163
308
 
164
- const BASE_PATH = new InjectionToken('basePath');
165
- const COLLECTION_FORMATS = {
166
- 'csv': ',',
167
- 'tsv': ' ',
168
- 'ssv': ' ',
169
- 'pipes': '|'
170
- };
171
-
172
- class Configuration {
173
- /**
174
- * @deprecated Since 5.0. Use credentials instead
175
- */
176
- apiKeys;
177
- username;
178
- password;
179
- /**
180
- * @deprecated Since 5.0. Use credentials instead
181
- */
182
- accessToken;
183
- basePath;
184
- withCredentials;
185
- /**
186
- * Takes care of encoding query- and form-parameters.
187
- */
309
+ /**
310
+ * Dcm.API.Client
311
+ *
312
+ *
313
+ *
314
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
315
+ * https://openapi-generator.tech
316
+ * Do not edit the class manually.
317
+ */
318
+ class BaseService {
319
+ basePath = 'http://localhost';
320
+ defaultHeaders = new HttpHeaders();
321
+ configuration;
188
322
  encoder;
189
- /**
190
- * Encoding of various path parameter
191
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
192
- * <p>
193
- * See {@link README.md} for more details
194
- * </p>
195
- */
196
- encodeParam;
197
- /**
198
- * The keys are the names in the securitySchemes section of the OpenAPI
199
- * document. They should map to the value used for authentication
200
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
201
- */
202
- credentials;
203
- constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
204
- if (apiKeys) {
205
- this.apiKeys = apiKeys;
206
- }
207
- if (username !== undefined) {
208
- this.username = username;
209
- }
210
- if (password !== undefined) {
211
- this.password = password;
212
- }
213
- if (accessToken !== undefined) {
214
- this.accessToken = accessToken;
323
+ constructor(basePath, configuration) {
324
+ this.configuration = configuration || new Configuration();
325
+ if (typeof this.configuration.basePath !== 'string') {
326
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
327
+ if (firstBasePath != undefined) {
328
+ basePath = firstBasePath;
329
+ }
330
+ if (typeof basePath !== 'string') {
331
+ basePath = this.basePath;
332
+ }
333
+ this.configuration.basePath = basePath;
215
334
  }
216
- if (basePath !== undefined) {
217
- this.basePath = basePath;
335
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
336
+ }
337
+ canConsumeForm(consumes) {
338
+ return consumes.indexOf('multipart/form-data') !== -1;
339
+ }
340
+ addToHttpParams(httpParams, key, value, paramStyle, explode) {
341
+ if (value === null || value === undefined) {
342
+ return httpParams;
218
343
  }
219
- if (withCredentials !== undefined) {
220
- this.withCredentials = withCredentials;
344
+ if (paramStyle === QueryParamStyle.DeepObject) {
345
+ if (typeof value !== 'object') {
346
+ throw Error(`An object must be provided for key ${key} as it is a deep object`);
347
+ }
348
+ return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
221
349
  }
222
- if (encoder) {
223
- this.encoder = encoder;
350
+ else if (paramStyle === QueryParamStyle.Json) {
351
+ return httpParams.append(key, JSON.stringify(value));
224
352
  }
225
- this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
226
- this.credentials = credentials ?? {};
353
+ else {
354
+ // Form-style, SpaceDelimited or PipeDelimited
355
+ if (Object(value) !== value) {
356
+ // If it is a primitive type, add its string representation
357
+ return httpParams.append(key, value.toString());
358
+ }
359
+ else if (value instanceof Date) {
360
+ return httpParams.append(key, value.toISOString());
361
+ }
362
+ else if (Array.isArray(value) || value instanceof Set) {
363
+ // Otherwise, if it's an array or set, add each element.
364
+ const array = Array.isArray(value) ? value : Array.from(value);
365
+ if (paramStyle === QueryParamStyle.Form) {
366
+ return httpParams.set(key, array, { explode: explode, delimiter: ',' });
367
+ }
368
+ else if (paramStyle === QueryParamStyle.SpaceDelimited) {
369
+ return httpParams.set(key, array, { explode: explode, delimiter: ' ' });
370
+ }
371
+ else {
372
+ // PipeDelimited
373
+ return httpParams.set(key, array, { explode: explode, delimiter: '|' });
374
+ }
375
+ }
376
+ else {
377
+ // Otherwise, if it's an object, add each field.
378
+ if (paramStyle === QueryParamStyle.Form) {
379
+ if (explode) {
380
+ Object.keys(value).forEach(k => {
381
+ httpParams = this.addToHttpParams(httpParams, k, value[k], paramStyle, explode);
382
+ });
383
+ return httpParams;
384
+ }
385
+ else {
386
+ return concatHttpParamsObject(httpParams, key, value, ',');
387
+ }
388
+ }
389
+ else if (paramStyle === QueryParamStyle.SpaceDelimited) {
390
+ return concatHttpParamsObject(httpParams, key, value, ' ');
391
+ }
392
+ else {
393
+ // PipeDelimited
394
+ return concatHttpParamsObject(httpParams, key, value, '|');
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+
401
+ /**
402
+ * Dcm.API.Client
403
+ *
404
+ *
405
+ *
406
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
407
+ * https://openapi-generator.tech
408
+ * Do not edit the class manually.
409
+ */
410
+ /* tslint:disable:no-unused-variable member-ordering */
411
+ class ApprovalRulesService extends BaseService {
412
+ httpClient;
413
+ constructor(httpClient, basePath, configuration) {
414
+ super(basePath, configuration);
415
+ this.httpClient = httpClient;
416
+ }
417
+ createApprovalProcess(approvalProcessData, observe = 'body', reportProgress = false, options) {
418
+ if (approvalProcessData === null || approvalProcessData === undefined) {
419
+ throw new Error('Required parameter approvalProcessData was null or undefined when calling createApprovalProcess.');
420
+ }
421
+ let localVarHeaders = this.defaultHeaders;
422
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
423
+ 'application/json'
424
+ ]);
425
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
426
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
427
+ }
428
+ const localVarHttpContext = options?.context ?? new HttpContext();
429
+ const localVarTransferCache = options?.transferCache ?? true;
430
+ // to determine the Content-Type header
431
+ const consumes = [
432
+ 'application/json'
433
+ ];
434
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
435
+ if (httpContentTypeSelected !== undefined) {
436
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
437
+ }
438
+ let responseType_ = 'json';
439
+ if (localVarHttpHeaderAcceptSelected) {
440
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
441
+ responseType_ = 'text';
442
+ }
443
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
444
+ responseType_ = 'json';
445
+ }
446
+ else {
447
+ responseType_ = 'blob';
448
+ }
449
+ }
450
+ let localVarPath = `/approvalProcesses`;
451
+ const { basePath, withCredentials } = this.configuration;
452
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
453
+ context: localVarHttpContext,
454
+ body: approvalProcessData,
455
+ responseType: responseType_,
456
+ ...(withCredentials ? { withCredentials } : {}),
457
+ headers: localVarHeaders,
458
+ observe: observe,
459
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
460
+ reportProgress: reportProgress
461
+ });
462
+ }
463
+ createApprovalProcessConsignee(approvalProcessConsigneeData, observe = 'body', reportProgress = false, options) {
464
+ if (approvalProcessConsigneeData === null || approvalProcessConsigneeData === undefined) {
465
+ throw new Error('Required parameter approvalProcessConsigneeData was null or undefined when calling createApprovalProcessConsignee.');
466
+ }
467
+ let localVarHeaders = this.defaultHeaders;
468
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
469
+ 'application/json'
470
+ ]);
471
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
472
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
473
+ }
474
+ const localVarHttpContext = options?.context ?? new HttpContext();
475
+ const localVarTransferCache = options?.transferCache ?? true;
476
+ // to determine the Content-Type header
477
+ const consumes = [
478
+ 'application/json'
479
+ ];
480
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
481
+ if (httpContentTypeSelected !== undefined) {
482
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
483
+ }
484
+ let responseType_ = 'json';
485
+ if (localVarHttpHeaderAcceptSelected) {
486
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
487
+ responseType_ = 'text';
488
+ }
489
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
490
+ responseType_ = 'json';
491
+ }
492
+ else {
493
+ responseType_ = 'blob';
494
+ }
495
+ }
496
+ let localVarPath = `/approvalProcessConsignees`;
497
+ const { basePath, withCredentials } = this.configuration;
498
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
499
+ context: localVarHttpContext,
500
+ body: approvalProcessConsigneeData,
501
+ responseType: responseType_,
502
+ ...(withCredentials ? { withCredentials } : {}),
503
+ headers: localVarHeaders,
504
+ observe: observe,
505
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
506
+ reportProgress: reportProgress
507
+ });
508
+ }
509
+ createApprovalProcessContainer(approvalProcessContainerData, observe = 'body', reportProgress = false, options) {
510
+ if (approvalProcessContainerData === null || approvalProcessContainerData === undefined) {
511
+ throw new Error('Required parameter approvalProcessContainerData was null or undefined when calling createApprovalProcessContainer.');
512
+ }
513
+ let localVarHeaders = this.defaultHeaders;
514
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
515
+ 'application/json'
516
+ ]);
517
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
518
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
519
+ }
520
+ const localVarHttpContext = options?.context ?? new HttpContext();
521
+ const localVarTransferCache = options?.transferCache ?? true;
522
+ // to determine the Content-Type header
523
+ const consumes = [
524
+ 'application/json'
525
+ ];
526
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
527
+ if (httpContentTypeSelected !== undefined) {
528
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
529
+ }
530
+ let responseType_ = 'json';
531
+ if (localVarHttpHeaderAcceptSelected) {
532
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
533
+ responseType_ = 'text';
534
+ }
535
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
536
+ responseType_ = 'json';
537
+ }
538
+ else {
539
+ responseType_ = 'blob';
540
+ }
541
+ }
542
+ let localVarPath = `/approvalProcessContainers`;
543
+ const { basePath, withCredentials } = this.configuration;
544
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
545
+ context: localVarHttpContext,
546
+ body: approvalProcessContainerData,
547
+ responseType: responseType_,
548
+ ...(withCredentials ? { withCredentials } : {}),
549
+ headers: localVarHeaders,
550
+ observe: observe,
551
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
552
+ reportProgress: reportProgress
553
+ });
554
+ }
555
+ deleteApprovalProcess(id, observe = 'body', reportProgress = false, options) {
556
+ if (id === null || id === undefined) {
557
+ throw new Error('Required parameter id was null or undefined when calling deleteApprovalProcess.');
558
+ }
559
+ let localVarHeaders = this.defaultHeaders;
560
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
561
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
562
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
563
+ }
564
+ const localVarHttpContext = options?.context ?? new HttpContext();
565
+ const localVarTransferCache = options?.transferCache ?? true;
566
+ let responseType_ = 'json';
567
+ if (localVarHttpHeaderAcceptSelected) {
568
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
569
+ responseType_ = 'text';
570
+ }
571
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
572
+ responseType_ = 'json';
573
+ }
574
+ else {
575
+ responseType_ = 'blob';
576
+ }
577
+ }
578
+ let localVarPath = `/approvalProcesses/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
579
+ const { basePath, withCredentials } = this.configuration;
580
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
581
+ context: localVarHttpContext,
582
+ responseType: responseType_,
583
+ ...(withCredentials ? { withCredentials } : {}),
584
+ headers: localVarHeaders,
585
+ observe: observe,
586
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
587
+ reportProgress: reportProgress
588
+ });
589
+ }
590
+ deleteApprovalProcessConsignee(id, observe = 'body', reportProgress = false, options) {
591
+ if (id === null || id === undefined) {
592
+ throw new Error('Required parameter id was null or undefined when calling deleteApprovalProcessConsignee.');
593
+ }
594
+ let localVarHeaders = this.defaultHeaders;
595
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
596
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
597
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
598
+ }
599
+ const localVarHttpContext = options?.context ?? new HttpContext();
600
+ const localVarTransferCache = options?.transferCache ?? true;
601
+ let responseType_ = 'json';
602
+ if (localVarHttpHeaderAcceptSelected) {
603
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
604
+ responseType_ = 'text';
605
+ }
606
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
607
+ responseType_ = 'json';
608
+ }
609
+ else {
610
+ responseType_ = 'blob';
611
+ }
612
+ }
613
+ let localVarPath = `/approvalProcessConsignees/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
614
+ const { basePath, withCredentials } = this.configuration;
615
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
616
+ context: localVarHttpContext,
617
+ responseType: responseType_,
618
+ ...(withCredentials ? { withCredentials } : {}),
619
+ headers: localVarHeaders,
620
+ observe: observe,
621
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
622
+ reportProgress: reportProgress
623
+ });
624
+ }
625
+ deleteApprovalProcessContainer(id, observe = 'body', reportProgress = false, options) {
626
+ if (id === null || id === undefined) {
627
+ throw new Error('Required parameter id was null or undefined when calling deleteApprovalProcessContainer.');
628
+ }
629
+ let localVarHeaders = this.defaultHeaders;
630
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
631
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
632
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
633
+ }
634
+ const localVarHttpContext = options?.context ?? new HttpContext();
635
+ const localVarTransferCache = options?.transferCache ?? true;
636
+ let responseType_ = 'json';
637
+ if (localVarHttpHeaderAcceptSelected) {
638
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
639
+ responseType_ = 'text';
640
+ }
641
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
642
+ responseType_ = 'json';
643
+ }
644
+ else {
645
+ responseType_ = 'blob';
646
+ }
647
+ }
648
+ let localVarPath = `/approvalProcessContainers/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
649
+ const { basePath, withCredentials } = this.configuration;
650
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
651
+ context: localVarHttpContext,
652
+ responseType: responseType_,
653
+ ...(withCredentials ? { withCredentials } : {}),
654
+ headers: localVarHeaders,
655
+ observe: observe,
656
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
657
+ reportProgress: reportProgress
658
+ });
659
+ }
660
+ getApprovalProcessConsignees(observe = 'body', reportProgress = false, options) {
661
+ let localVarHeaders = this.defaultHeaders;
662
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
663
+ 'application/json'
664
+ ]);
665
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
666
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
667
+ }
668
+ const localVarHttpContext = options?.context ?? new HttpContext();
669
+ const localVarTransferCache = options?.transferCache ?? true;
670
+ let responseType_ = 'json';
671
+ if (localVarHttpHeaderAcceptSelected) {
672
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
673
+ responseType_ = 'text';
674
+ }
675
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
676
+ responseType_ = 'json';
677
+ }
678
+ else {
679
+ responseType_ = 'blob';
680
+ }
681
+ }
682
+ let localVarPath = `/approvalProcessConsignees`;
683
+ const { basePath, withCredentials } = this.configuration;
684
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
685
+ context: localVarHttpContext,
686
+ responseType: responseType_,
687
+ ...(withCredentials ? { withCredentials } : {}),
688
+ headers: localVarHeaders,
689
+ observe: observe,
690
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
691
+ reportProgress: reportProgress
692
+ });
693
+ }
694
+ getApprovalProcessContainers(observe = 'body', reportProgress = false, options) {
695
+ let localVarHeaders = this.defaultHeaders;
696
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
697
+ 'application/json'
698
+ ]);
699
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
700
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
701
+ }
702
+ const localVarHttpContext = options?.context ?? new HttpContext();
703
+ const localVarTransferCache = options?.transferCache ?? true;
704
+ let responseType_ = 'json';
705
+ if (localVarHttpHeaderAcceptSelected) {
706
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
707
+ responseType_ = 'text';
708
+ }
709
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
710
+ responseType_ = 'json';
711
+ }
712
+ else {
713
+ responseType_ = 'blob';
714
+ }
715
+ }
716
+ let localVarPath = `/approvalProcessContainers`;
717
+ const { basePath, withCredentials } = this.configuration;
718
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
719
+ context: localVarHttpContext,
720
+ responseType: responseType_,
721
+ ...(withCredentials ? { withCredentials } : {}),
722
+ headers: localVarHeaders,
723
+ observe: observe,
724
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
725
+ reportProgress: reportProgress
726
+ });
727
+ }
728
+ getApprovalProcesses(observe = 'body', reportProgress = false, options) {
729
+ let localVarHeaders = this.defaultHeaders;
730
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
731
+ 'application/json'
732
+ ]);
733
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
734
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
735
+ }
736
+ const localVarHttpContext = options?.context ?? new HttpContext();
737
+ const localVarTransferCache = options?.transferCache ?? true;
738
+ let responseType_ = 'json';
739
+ if (localVarHttpHeaderAcceptSelected) {
740
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
741
+ responseType_ = 'text';
742
+ }
743
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
744
+ responseType_ = 'json';
745
+ }
746
+ else {
747
+ responseType_ = 'blob';
748
+ }
749
+ }
750
+ let localVarPath = `/approvalProcesses`;
751
+ const { basePath, withCredentials } = this.configuration;
752
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
753
+ context: localVarHttpContext,
754
+ responseType: responseType_,
755
+ ...(withCredentials ? { withCredentials } : {}),
756
+ headers: localVarHeaders,
757
+ observe: observe,
758
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
759
+ reportProgress: reportProgress
760
+ });
761
+ }
762
+ getApprovalRuleConsignees(observe = 'body', reportProgress = false, options) {
763
+ let localVarHeaders = this.defaultHeaders;
764
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
765
+ 'application/json'
766
+ ]);
767
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
768
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
769
+ }
770
+ const localVarHttpContext = options?.context ?? new HttpContext();
771
+ const localVarTransferCache = options?.transferCache ?? true;
772
+ let responseType_ = 'json';
773
+ if (localVarHttpHeaderAcceptSelected) {
774
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
775
+ responseType_ = 'text';
776
+ }
777
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
778
+ responseType_ = 'json';
779
+ }
780
+ else {
781
+ responseType_ = 'blob';
782
+ }
783
+ }
784
+ let localVarPath = `/approvalRules/consignees`;
785
+ const { basePath, withCredentials } = this.configuration;
786
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
787
+ context: localVarHttpContext,
788
+ responseType: responseType_,
789
+ ...(withCredentials ? { withCredentials } : {}),
790
+ headers: localVarHeaders,
791
+ observe: observe,
792
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
793
+ reportProgress: reportProgress
794
+ });
795
+ }
796
+ getApprovalRuleContainerSizes(observe = 'body', reportProgress = false, options) {
797
+ let localVarHeaders = this.defaultHeaders;
798
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
799
+ 'application/json'
800
+ ]);
801
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
802
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
803
+ }
804
+ const localVarHttpContext = options?.context ?? new HttpContext();
805
+ const localVarTransferCache = options?.transferCache ?? true;
806
+ let responseType_ = 'json';
807
+ if (localVarHttpHeaderAcceptSelected) {
808
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
809
+ responseType_ = 'text';
810
+ }
811
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
812
+ responseType_ = 'json';
813
+ }
814
+ else {
815
+ responseType_ = 'blob';
816
+ }
817
+ }
818
+ let localVarPath = `/approvalRules/containerSizes`;
819
+ const { basePath, withCredentials } = this.configuration;
820
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
821
+ context: localVarHttpContext,
822
+ responseType: responseType_,
823
+ ...(withCredentials ? { withCredentials } : {}),
824
+ headers: localVarHeaders,
825
+ observe: observe,
826
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
827
+ reportProgress: reportProgress
828
+ });
829
+ }
830
+ updateApprovalProcess(id, approvalProcessData, observe = 'body', reportProgress = false, options) {
831
+ if (id === null || id === undefined) {
832
+ throw new Error('Required parameter id was null or undefined when calling updateApprovalProcess.');
833
+ }
834
+ if (approvalProcessData === null || approvalProcessData === undefined) {
835
+ throw new Error('Required parameter approvalProcessData was null or undefined when calling updateApprovalProcess.');
836
+ }
837
+ let localVarHeaders = this.defaultHeaders;
838
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
839
+ 'application/json'
840
+ ]);
841
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
842
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
843
+ }
844
+ const localVarHttpContext = options?.context ?? new HttpContext();
845
+ const localVarTransferCache = options?.transferCache ?? true;
846
+ // to determine the Content-Type header
847
+ const consumes = [
848
+ 'application/json'
849
+ ];
850
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
851
+ if (httpContentTypeSelected !== undefined) {
852
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
853
+ }
854
+ let responseType_ = 'json';
855
+ if (localVarHttpHeaderAcceptSelected) {
856
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
857
+ responseType_ = 'text';
858
+ }
859
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
860
+ responseType_ = 'json';
861
+ }
862
+ else {
863
+ responseType_ = 'blob';
864
+ }
865
+ }
866
+ let localVarPath = `/approvalProcesses/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
867
+ const { basePath, withCredentials } = this.configuration;
868
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
869
+ context: localVarHttpContext,
870
+ body: approvalProcessData,
871
+ responseType: responseType_,
872
+ ...(withCredentials ? { withCredentials } : {}),
873
+ headers: localVarHeaders,
874
+ observe: observe,
875
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
876
+ reportProgress: reportProgress
877
+ });
227
878
  }
228
- /**
229
- * Select the correct content-type to use for a request.
230
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
231
- * If no content type is found return the first found type if the contentTypes is not empty
232
- * @param contentTypes - the array of content types that are available for selection
233
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
234
- */
235
- selectHeaderContentType(contentTypes) {
236
- if (contentTypes.length === 0) {
237
- return undefined;
879
+ updateApprovalProcessConsignee(id, approvalProcessConsigneeData, observe = 'body', reportProgress = false, options) {
880
+ if (id === null || id === undefined) {
881
+ throw new Error('Required parameter id was null or undefined when calling updateApprovalProcessConsignee.');
238
882
  }
239
- const type = contentTypes.find((x) => this.isJsonMime(x));
240
- if (type === undefined) {
241
- return contentTypes[0];
883
+ if (approvalProcessConsigneeData === null || approvalProcessConsigneeData === undefined) {
884
+ throw new Error('Required parameter approvalProcessConsigneeData was null or undefined when calling updateApprovalProcessConsignee.');
242
885
  }
243
- return type;
244
- }
245
- /**
246
- * Select the correct accept content-type to use for a request.
247
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
248
- * If no content type is found return the first found type if the contentTypes is not empty
249
- * @param accepts - the array of content types that are available for selection.
250
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
251
- */
252
- selectHeaderAccept(accepts) {
253
- if (accepts.length === 0) {
254
- return undefined;
886
+ let localVarHeaders = this.defaultHeaders;
887
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
888
+ 'application/json'
889
+ ]);
890
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
891
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
255
892
  }
256
- const type = accepts.find((x) => this.isJsonMime(x));
257
- if (type === undefined) {
258
- return accepts[0];
893
+ const localVarHttpContext = options?.context ?? new HttpContext();
894
+ const localVarTransferCache = options?.transferCache ?? true;
895
+ // to determine the Content-Type header
896
+ const consumes = [
897
+ 'application/json'
898
+ ];
899
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
900
+ if (httpContentTypeSelected !== undefined) {
901
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
259
902
  }
260
- return type;
261
- }
262
- /**
263
- * Check if the given MIME is a JSON MIME.
264
- * JSON MIME examples:
265
- * application/json
266
- * application/json; charset=UTF8
267
- * APPLICATION/JSON
268
- * application/vnd.company+json
269
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
270
- * @return True if the given MIME is JSON, false otherwise.
271
- */
272
- isJsonMime(mime) {
273
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
274
- return mime !== null && jsonMime.test(mime);
275
- }
276
- lookupCredential(key) {
277
- const value = this.credentials[key];
278
- return typeof value === 'function'
279
- ? value()
280
- : value;
281
- }
282
- addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
283
- const value = this.lookupCredential(credentialKey);
284
- return value
285
- ? headers.set(headerName, (prefix ?? '') + value)
286
- : headers;
287
- }
288
- addCredentialToQuery(credentialKey, paramName, query) {
289
- const value = this.lookupCredential(credentialKey);
290
- return value
291
- ? query.set(paramName, value)
292
- : query;
293
- }
294
- defaultEncodeParam(param) {
295
- // This implementation exists as fallback for missing configuration
296
- // and for backwards compatibility to older typescript-angular generator versions.
297
- // It only works for the 'simple' parameter style.
298
- // Date-handling only works for the 'date-time' format.
299
- // All other styles and Date-formats are probably handled incorrectly.
300
- //
301
- // But: if that's all you need (i.e.: the most common use-case): no need for customization!
302
- const value = param.dataFormat === 'date-time' && param.value instanceof Date
303
- ? param.value.toISOString()
304
- : param.value;
305
- return encodeURIComponent(String(value));
306
- }
307
- }
308
-
309
- /**
310
- * Dcm.API.Client
311
- *
312
- *
313
- *
314
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
315
- * https://openapi-generator.tech
316
- * Do not edit the class manually.
317
- */
318
- class BaseService {
319
- basePath = 'http://localhost';
320
- defaultHeaders = new HttpHeaders();
321
- configuration;
322
- encoder;
323
- constructor(basePath, configuration) {
324
- this.configuration = configuration || new Configuration();
325
- if (typeof this.configuration.basePath !== 'string') {
326
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
327
- if (firstBasePath != undefined) {
328
- basePath = firstBasePath;
903
+ let responseType_ = 'json';
904
+ if (localVarHttpHeaderAcceptSelected) {
905
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
906
+ responseType_ = 'text';
329
907
  }
330
- if (typeof basePath !== 'string') {
331
- basePath = this.basePath;
908
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
909
+ responseType_ = 'json';
910
+ }
911
+ else {
912
+ responseType_ = 'blob';
332
913
  }
333
- this.configuration.basePath = basePath;
334
914
  }
335
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
336
- }
337
- canConsumeForm(consumes) {
338
- return consumes.indexOf('multipart/form-data') !== -1;
915
+ let localVarPath = `/approvalProcessConsignees/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
916
+ const { basePath, withCredentials } = this.configuration;
917
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
918
+ context: localVarHttpContext,
919
+ body: approvalProcessConsigneeData,
920
+ responseType: responseType_,
921
+ ...(withCredentials ? { withCredentials } : {}),
922
+ headers: localVarHeaders,
923
+ observe: observe,
924
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
925
+ reportProgress: reportProgress
926
+ });
339
927
  }
340
- addToHttpParams(httpParams, key, value, paramStyle, explode) {
341
- if (value === null || value === undefined) {
342
- return httpParams;
928
+ updateApprovalProcessContainer(id, approvalProcessContainerData, observe = 'body', reportProgress = false, options) {
929
+ if (id === null || id === undefined) {
930
+ throw new Error('Required parameter id was null or undefined when calling updateApprovalProcessContainer.');
343
931
  }
344
- if (paramStyle === QueryParamStyle.DeepObject) {
345
- if (typeof value !== 'object') {
346
- throw Error(`An object must be provided for key ${key} as it is a deep object`);
347
- }
348
- return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
932
+ if (approvalProcessContainerData === null || approvalProcessContainerData === undefined) {
933
+ throw new Error('Required parameter approvalProcessContainerData was null or undefined when calling updateApprovalProcessContainer.');
349
934
  }
350
- else if (paramStyle === QueryParamStyle.Json) {
351
- return httpParams.append(key, JSON.stringify(value));
935
+ let localVarHeaders = this.defaultHeaders;
936
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
937
+ 'application/json'
938
+ ]);
939
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
940
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
352
941
  }
353
- else {
354
- // Form-style, SpaceDelimited or PipeDelimited
355
- if (Object(value) !== value) {
356
- // If it is a primitive type, add its string representation
357
- return httpParams.append(key, value.toString());
358
- }
359
- else if (value instanceof Date) {
360
- return httpParams.append(key, value.toISOString());
942
+ const localVarHttpContext = options?.context ?? new HttpContext();
943
+ const localVarTransferCache = options?.transferCache ?? true;
944
+ // to determine the Content-Type header
945
+ const consumes = [
946
+ 'application/json'
947
+ ];
948
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
949
+ if (httpContentTypeSelected !== undefined) {
950
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
951
+ }
952
+ let responseType_ = 'json';
953
+ if (localVarHttpHeaderAcceptSelected) {
954
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
955
+ responseType_ = 'text';
361
956
  }
362
- else if (Array.isArray(value) || value instanceof Set) {
363
- // Otherwise, if it's an array or set, add each element.
364
- const array = Array.isArray(value) ? value : Array.from(value);
365
- if (paramStyle === QueryParamStyle.Form) {
366
- return httpParams.set(key, array, { explode: explode, delimiter: ',' });
367
- }
368
- else if (paramStyle === QueryParamStyle.SpaceDelimited) {
369
- return httpParams.set(key, array, { explode: explode, delimiter: ' ' });
370
- }
371
- else {
372
- // PipeDelimited
373
- return httpParams.set(key, array, { explode: explode, delimiter: '|' });
374
- }
957
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
958
+ responseType_ = 'json';
375
959
  }
376
960
  else {
377
- // Otherwise, if it's an object, add each field.
378
- if (paramStyle === QueryParamStyle.Form) {
379
- if (explode) {
380
- Object.keys(value).forEach(k => {
381
- httpParams = this.addToHttpParams(httpParams, k, value[k], paramStyle, explode);
382
- });
383
- return httpParams;
384
- }
385
- else {
386
- return concatHttpParamsObject(httpParams, key, value, ',');
387
- }
388
- }
389
- else if (paramStyle === QueryParamStyle.SpaceDelimited) {
390
- return concatHttpParamsObject(httpParams, key, value, ' ');
391
- }
392
- else {
393
- // PipeDelimited
394
- return concatHttpParamsObject(httpParams, key, value, '|');
395
- }
961
+ responseType_ = 'blob';
396
962
  }
397
963
  }
964
+ let localVarPath = `/approvalProcessContainers/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
965
+ const { basePath, withCredentials } = this.configuration;
966
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
967
+ context: localVarHttpContext,
968
+ body: approvalProcessContainerData,
969
+ responseType: responseType_,
970
+ ...(withCredentials ? { withCredentials } : {}),
971
+ headers: localVarHeaders,
972
+ observe: observe,
973
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
974
+ reportProgress: reportProgress
975
+ });
398
976
  }
977
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApprovalRulesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
978
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApprovalRulesService, providedIn: 'root' });
399
979
  }
980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApprovalRulesService, decorators: [{
981
+ type: Injectable,
982
+ args: [{
983
+ providedIn: 'root'
984
+ }]
985
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
986
+ type: Optional
987
+ }, {
988
+ type: Inject,
989
+ args: [BASE_PATH]
990
+ }] }, { type: Configuration, decorators: [{
991
+ type: Optional
992
+ }] }] });
400
993
 
401
994
  /**
402
995
  * Dcm.API.Client
@@ -4425,7 +5018,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
4425
5018
  type: Optional
4426
5019
  }] }] });
4427
5020
 
4428
- const APIS = [AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
5021
+ const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
4429
5022
 
4430
5023
  /**
4431
5024
  * Dcm.API.Client
@@ -4471,6 +5064,37 @@ const AmendConfirmationTypes = {
4471
5064
  * Do not edit the class manually.
4472
5065
  */
4473
5066
 
5067
+ /**
5068
+ * Dcm.API.Client
5069
+ *
5070
+ *
5071
+ *
5072
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5073
+ * https://openapi-generator.tech
5074
+ * Do not edit the class manually.
5075
+ */
5076
+
5077
+ /**
5078
+ * Dcm.API.Client
5079
+ *
5080
+ *
5081
+ *
5082
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5083
+ * https://openapi-generator.tech
5084
+ * Do not edit the class manually.
5085
+ */
5086
+ const ApprovalRuleType = {
5087
+ NoApprovalRequired: 'NoApprovalRequired',
5088
+ AutoApproval: 'AutoApproval',
5089
+ ManualApproval: 'ManualApproval',
5090
+ QuantityToleranceOver: 'QuantityToleranceOver',
5091
+ QuantityToleranceUnder: 'QuantityToleranceUnder',
5092
+ ValidateUnbookedPoLines: 'ValidateUnbookedPOLines',
5093
+ RequiredByDateMet: 'RequiredByDateMet',
5094
+ ContainerUtilisation: 'ContainerUtilisation',
5095
+ ValidateUnmatchedPoLinesDcConsigneeCountry: 'ValidateUnmatchedPOLinesDCConsigneeCountry'
5096
+ };
5097
+
4474
5098
  /**
4475
5099
  * Dcm.API.Client
4476
5100
  *
@@ -5422,5 +6046,5 @@ function provideApi(configOrBasePath) {
5422
6046
  * Generated bundle index. Do not edit.
5423
6047
  */
5424
6048
 
5425
- export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
6049
+ export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
5426
6050
  //# sourceMappingURL=indigina-dcm-api.mjs.map