@indigina/dcm-api 0.0.127 → 0.0.129

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,139 +44,6 @@ class IdentityHttpParameterCodec {
36
44
  }
37
45
  }
38
46
 
39
- var QueryParamStyle;
40
- (function (QueryParamStyle) {
41
- QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
42
- QueryParamStyle[QueryParamStyle["Form"] = 1] = "Form";
43
- QueryParamStyle[QueryParamStyle["DeepObject"] = 2] = "DeepObject";
44
- QueryParamStyle[QueryParamStyle["SpaceDelimited"] = 3] = "SpaceDelimited";
45
- QueryParamStyle[QueryParamStyle["PipeDelimited"] = 4] = "PipeDelimited";
46
- })(QueryParamStyle || (QueryParamStyle = {}));
47
- class OpenApiHttpParams {
48
- params = new Map();
49
- defaults;
50
- encoder;
51
- /**
52
- * @param encoder Parameter serializer
53
- * @param defaults Global defaults used when a specific parameter has no explicit options.
54
- * By OpenAPI default, explode is true for query params with style=form.
55
- */
56
- constructor(encoder, defaults) {
57
- this.encoder = encoder || new CustomHttpParameterCodec();
58
- this.defaults = {
59
- explode: defaults?.explode ?? true,
60
- delimiter: defaults?.delimiter ?? ",",
61
- };
62
- }
63
- resolveOptions(local) {
64
- return {
65
- explode: local?.explode ?? this.defaults.explode,
66
- delimiter: local?.delimiter ?? this.defaults.delimiter,
67
- };
68
- }
69
- /**
70
- * Replace the parameter's values and (optionally) its options.
71
- * Options are stored per-parameter (not global).
72
- */
73
- set(key, values, options) {
74
- const arr = Array.isArray(values) ? values.slice() : [values];
75
- const opts = this.resolveOptions(options);
76
- this.params.set(key, { values: arr, options: opts });
77
- return this;
78
- }
79
- /**
80
- * Append a single value to the parameter. If the parameter didn't exist it will be created
81
- * and use resolved options (global defaults merged with any provided options).
82
- */
83
- append(key, value, options) {
84
- const entry = this.params.get(key);
85
- if (entry) {
86
- // If new options provided, override the stored options for subsequent serialization
87
- if (options) {
88
- entry.options = this.resolveOptions({ ...entry.options, ...options });
89
- }
90
- entry.values.push(value);
91
- }
92
- else {
93
- this.set(key, [value], options);
94
- }
95
- return this;
96
- }
97
- /**
98
- * Serialize to a query string according to per-parameter OpenAPI options.
99
- * - If explode=true for that parameter → repeated key=value pairs (each value encoded).
100
- * - If explode=false for that parameter → single key=value where values are individually encoded
101
- * and joined using the configured delimiter. The delimiter character is inserted AS-IS
102
- * (not percent-encoded).
103
- */
104
- toString() {
105
- const records = this.toRecord();
106
- const parts = [];
107
- for (const key in records) {
108
- parts.push(`${key}=${records[key]}`);
109
- }
110
- return parts.join("&");
111
- }
112
- /**
113
- * Return parameters as a plain record.
114
- * - If a parameter has exactly one value, returns that value directly.
115
- * - If a parameter has multiple values, returns a readonly array of values.
116
- */
117
- toRecord() {
118
- const parts = {};
119
- for (const [key, entry] of this.params.entries()) {
120
- const encodedKey = this.encoder.encodeKey(key);
121
- if (entry.options.explode) {
122
- parts[encodedKey] = entry.values.map((v) => this.encoder.encodeValue(v));
123
- }
124
- else {
125
- const encodedValues = entry.values.map((v) => this.encoder.encodeValue(v));
126
- // join with the delimiter *unencoded*
127
- parts[encodedKey] = encodedValues.join(entry.options.delimiter);
128
- }
129
- }
130
- return parts;
131
- }
132
- /**
133
- * Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
134
- */
135
- toHttpParams() {
136
- const records = this.toRecord();
137
- let httpParams = new HttpParams({ encoder: new IdentityHttpParameterCodec() });
138
- return httpParams.appendAll(records);
139
- }
140
- }
141
- function concatHttpParamsObject(httpParams, key, item, delimiter) {
142
- let keyAndValues = [];
143
- for (const k in item) {
144
- keyAndValues.push(k);
145
- const value = item[k];
146
- if (Array.isArray(value)) {
147
- keyAndValues.push(...value.map(convertToString));
148
- }
149
- else {
150
- keyAndValues.push(convertToString(value));
151
- }
152
- }
153
- return httpParams.set(key, keyAndValues, { explode: false, delimiter: delimiter });
154
- }
155
- function convertToString(value) {
156
- if (value instanceof Date) {
157
- return value.toISOString();
158
- }
159
- else {
160
- return value.toString();
161
- }
162
- }
163
-
164
- const BASE_PATH = new InjectionToken('basePath');
165
- const COLLECTION_FORMATS = {
166
- 'csv': ',',
167
- 'tsv': ' ',
168
- 'ssv': ' ',
169
- 'pipes': '|'
170
- };
171
-
172
47
  class Configuration {
173
48
  /**
174
49
  * @deprecated Since 5.0. Use credentials instead
@@ -306,79 +181,204 @@ class Configuration {
306
181
  }
307
182
  }
308
183
 
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;
184
+ var QueryParamStyle;
185
+ (function (QueryParamStyle) {
186
+ QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
187
+ QueryParamStyle[QueryParamStyle["Form"] = 1] = "Form";
188
+ QueryParamStyle[QueryParamStyle["DeepObject"] = 2] = "DeepObject";
189
+ QueryParamStyle[QueryParamStyle["SpaceDelimited"] = 3] = "SpaceDelimited";
190
+ QueryParamStyle[QueryParamStyle["PipeDelimited"] = 4] = "PipeDelimited";
191
+ })(QueryParamStyle || (QueryParamStyle = {}));
192
+ class OpenApiHttpParams {
193
+ params = new Map();
194
+ defaults;
322
195
  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;
329
- }
330
- if (typeof basePath !== 'string') {
331
- basePath = this.basePath;
332
- }
333
- this.configuration.basePath = basePath;
334
- }
335
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
196
+ /**
197
+ * @param encoder Parameter serializer
198
+ * @param defaults Global defaults used when a specific parameter has no explicit options.
199
+ * By OpenAPI default, explode is true for query params with style=form.
200
+ */
201
+ constructor(encoder, defaults) {
202
+ this.encoder = encoder || new CustomHttpParameterCodec();
203
+ this.defaults = {
204
+ explode: defaults?.explode ?? true,
205
+ delimiter: defaults?.delimiter ?? ",",
206
+ };
336
207
  }
337
- canConsumeForm(consumes) {
338
- return consumes.indexOf('multipart/form-data') !== -1;
208
+ resolveOptions(local) {
209
+ return {
210
+ explode: local?.explode ?? this.defaults.explode,
211
+ delimiter: local?.delimiter ?? this.defaults.delimiter,
212
+ };
339
213
  }
340
- addToHttpParams(httpParams, key, value, paramStyle, explode) {
341
- if (value === null || value === undefined) {
342
- return httpParams;
343
- }
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`);
214
+ /**
215
+ * Replace the parameter's values and (optionally) its options.
216
+ * Options are stored per-parameter (not global).
217
+ */
218
+ set(key, values, options) {
219
+ const arr = Array.isArray(values) ? values.slice() : [values];
220
+ const opts = this.resolveOptions(options);
221
+ this.params.set(key, { values: arr, options: opts });
222
+ return this;
223
+ }
224
+ /**
225
+ * Append a single value to the parameter. If the parameter didn't exist it will be created
226
+ * and use resolved options (global defaults merged with any provided options).
227
+ */
228
+ append(key, value, options) {
229
+ const entry = this.params.get(key);
230
+ if (entry) {
231
+ // If new options provided, override the stored options for subsequent serialization
232
+ if (options) {
233
+ entry.options = this.resolveOptions({ ...entry.options, ...options });
347
234
  }
348
- return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
349
- }
350
- else if (paramStyle === QueryParamStyle.Json) {
351
- return httpParams.append(key, JSON.stringify(value));
235
+ entry.values.push(value);
352
236
  }
353
237
  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);
238
+ this.set(key, [value], options);
239
+ }
240
+ return this;
241
+ }
242
+ /**
243
+ * Serialize to a query string according to per-parameter OpenAPI options.
244
+ * - If explode=true for that parameter → repeated key=value pairs (each value encoded).
245
+ * - If explode=false for that parameter → single key=value where values are individually encoded
246
+ * and joined using the configured delimiter. The delimiter character is inserted AS-IS
247
+ * (not percent-encoded).
248
+ */
249
+ toString() {
250
+ const records = this.toRecord();
251
+ const parts = [];
252
+ for (const key in records) {
253
+ parts.push(`${key}=${records[key]}`);
254
+ }
255
+ return parts.join("&");
256
+ }
257
+ /**
258
+ * Return parameters as a plain record.
259
+ * - If a parameter has exactly one value, returns that value directly.
260
+ * - If a parameter has multiple values, returns a readonly array of values.
261
+ */
262
+ toRecord() {
263
+ const parts = {};
264
+ for (const [key, entry] of this.params.entries()) {
265
+ const encodedKey = this.encoder.encodeKey(key);
266
+ if (entry.options.explode) {
267
+ parts[encodedKey] = entry.values.map((v) => this.encoder.encodeValue(v));
268
+ }
269
+ else {
270
+ const encodedValues = entry.values.map((v) => this.encoder.encodeValue(v));
271
+ // join with the delimiter *unencoded*
272
+ parts[encodedKey] = encodedValues.join(entry.options.delimiter);
273
+ }
274
+ }
275
+ return parts;
276
+ }
277
+ /**
278
+ * Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
279
+ */
280
+ toHttpParams() {
281
+ const records = this.toRecord();
282
+ let httpParams = new HttpParams({ encoder: new IdentityHttpParameterCodec() });
283
+ return httpParams.appendAll(records);
284
+ }
285
+ }
286
+ function concatHttpParamsObject(httpParams, key, item, delimiter) {
287
+ let keyAndValues = [];
288
+ for (const k in item) {
289
+ keyAndValues.push(k);
290
+ const value = item[k];
291
+ if (Array.isArray(value)) {
292
+ keyAndValues.push(...value.map(convertToString));
293
+ }
294
+ else {
295
+ keyAndValues.push(convertToString(value));
296
+ }
297
+ }
298
+ return httpParams.set(key, keyAndValues, { explode: false, delimiter: delimiter });
299
+ }
300
+ function convertToString(value) {
301
+ if (value instanceof Date) {
302
+ return value.toISOString();
303
+ }
304
+ else {
305
+ return value.toString();
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;
329
+ }
330
+ if (typeof basePath !== 'string') {
331
+ basePath = this.basePath;
332
+ }
333
+ this.configuration.basePath = basePath;
334
+ }
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;
343
+ }
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);
349
+ }
350
+ else if (paramStyle === QueryParamStyle.Json) {
351
+ return httpParams.append(key, JSON.stringify(value));
352
+ }
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
382
  });
383
383
  return httpParams;
384
384
  }
@@ -398,6 +398,599 @@ class BaseService {
398
398
  }
399
399
  }
400
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
+ });
878
+ }
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.');
882
+ }
883
+ if (approvalProcessConsigneeData === null || approvalProcessConsigneeData === undefined) {
884
+ throw new Error('Required parameter approvalProcessConsigneeData was null or undefined when calling updateApprovalProcessConsignee.');
885
+ }
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);
892
+ }
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);
902
+ }
903
+ let responseType_ = 'json';
904
+ if (localVarHttpHeaderAcceptSelected) {
905
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
906
+ responseType_ = 'text';
907
+ }
908
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
909
+ responseType_ = 'json';
910
+ }
911
+ else {
912
+ responseType_ = 'blob';
913
+ }
914
+ }
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
+ });
927
+ }
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.');
931
+ }
932
+ if (approvalProcessContainerData === null || approvalProcessContainerData === undefined) {
933
+ throw new Error('Required parameter approvalProcessContainerData was null or undefined when calling updateApprovalProcessContainer.');
934
+ }
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);
941
+ }
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';
956
+ }
957
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
958
+ responseType_ = 'json';
959
+ }
960
+ else {
961
+ responseType_ = 'blob';
962
+ }
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
+ });
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' });
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
+ }] }] });
993
+
401
994
  /**
402
995
  * Dcm.API.Client
403
996
  *
@@ -2668,6 +3261,240 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2668
3261
  type: Optional
2669
3262
  }] }] });
2670
3263
 
3264
+ /**
3265
+ * Dcm.API.Client
3266
+ *
3267
+ *
3268
+ *
3269
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3270
+ * https://openapi-generator.tech
3271
+ * Do not edit the class manually.
3272
+ */
3273
+ /* tslint:disable:no-unused-variable member-ordering */
3274
+ class PortsService extends BaseService {
3275
+ httpClient;
3276
+ constructor(httpClient, basePath, configuration) {
3277
+ super(basePath, configuration);
3278
+ this.httpClient = httpClient;
3279
+ }
3280
+ createPort(portData, observe = 'body', reportProgress = false, options) {
3281
+ if (portData === null || portData === undefined) {
3282
+ throw new Error('Required parameter portData was null or undefined when calling createPort.');
3283
+ }
3284
+ let localVarHeaders = this.defaultHeaders;
3285
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3286
+ 'application/json'
3287
+ ]);
3288
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3289
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3290
+ }
3291
+ const localVarHttpContext = options?.context ?? new HttpContext();
3292
+ const localVarTransferCache = options?.transferCache ?? true;
3293
+ // to determine the Content-Type header
3294
+ const consumes = [
3295
+ 'application/json'
3296
+ ];
3297
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3298
+ if (httpContentTypeSelected !== undefined) {
3299
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3300
+ }
3301
+ let responseType_ = 'json';
3302
+ if (localVarHttpHeaderAcceptSelected) {
3303
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3304
+ responseType_ = 'text';
3305
+ }
3306
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3307
+ responseType_ = 'json';
3308
+ }
3309
+ else {
3310
+ responseType_ = 'blob';
3311
+ }
3312
+ }
3313
+ let localVarPath = `/ports`;
3314
+ const { basePath, withCredentials } = this.configuration;
3315
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
3316
+ context: localVarHttpContext,
3317
+ body: portData,
3318
+ responseType: responseType_,
3319
+ ...(withCredentials ? { withCredentials } : {}),
3320
+ headers: localVarHeaders,
3321
+ observe: observe,
3322
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3323
+ reportProgress: reportProgress
3324
+ });
3325
+ }
3326
+ deletePort(id, observe = 'body', reportProgress = false, options) {
3327
+ if (id === null || id === undefined) {
3328
+ throw new Error('Required parameter id was null or undefined when calling deletePort.');
3329
+ }
3330
+ let localVarHeaders = this.defaultHeaders;
3331
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3332
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3333
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3334
+ }
3335
+ const localVarHttpContext = options?.context ?? new HttpContext();
3336
+ const localVarTransferCache = options?.transferCache ?? true;
3337
+ let responseType_ = 'json';
3338
+ if (localVarHttpHeaderAcceptSelected) {
3339
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3340
+ responseType_ = 'text';
3341
+ }
3342
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3343
+ responseType_ = 'json';
3344
+ }
3345
+ else {
3346
+ responseType_ = 'blob';
3347
+ }
3348
+ }
3349
+ let localVarPath = `/ports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
3350
+ const { basePath, withCredentials } = this.configuration;
3351
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
3352
+ context: localVarHttpContext,
3353
+ responseType: responseType_,
3354
+ ...(withCredentials ? { withCredentials } : {}),
3355
+ headers: localVarHeaders,
3356
+ observe: observe,
3357
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3358
+ reportProgress: reportProgress
3359
+ });
3360
+ }
3361
+ getPortCountries(observe = 'body', reportProgress = false, options) {
3362
+ let localVarHeaders = this.defaultHeaders;
3363
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3364
+ 'application/json'
3365
+ ]);
3366
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3367
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3368
+ }
3369
+ const localVarHttpContext = options?.context ?? new HttpContext();
3370
+ const localVarTransferCache = options?.transferCache ?? true;
3371
+ let responseType_ = 'json';
3372
+ if (localVarHttpHeaderAcceptSelected) {
3373
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3374
+ responseType_ = 'text';
3375
+ }
3376
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3377
+ responseType_ = 'json';
3378
+ }
3379
+ else {
3380
+ responseType_ = 'blob';
3381
+ }
3382
+ }
3383
+ let localVarPath = `/ports/countries`;
3384
+ const { basePath, withCredentials } = this.configuration;
3385
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3386
+ context: localVarHttpContext,
3387
+ responseType: responseType_,
3388
+ ...(withCredentials ? { withCredentials } : {}),
3389
+ headers: localVarHeaders,
3390
+ observe: observe,
3391
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3392
+ reportProgress: reportProgress
3393
+ });
3394
+ }
3395
+ getPorts(type, observe = 'body', reportProgress = false, options) {
3396
+ let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
3397
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'type', type, QueryParamStyle.Form, true);
3398
+ let localVarHeaders = this.defaultHeaders;
3399
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3400
+ 'application/json'
3401
+ ]);
3402
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3403
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3404
+ }
3405
+ const localVarHttpContext = options?.context ?? new HttpContext();
3406
+ const localVarTransferCache = options?.transferCache ?? true;
3407
+ let responseType_ = 'json';
3408
+ if (localVarHttpHeaderAcceptSelected) {
3409
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3410
+ responseType_ = 'text';
3411
+ }
3412
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3413
+ responseType_ = 'json';
3414
+ }
3415
+ else {
3416
+ responseType_ = 'blob';
3417
+ }
3418
+ }
3419
+ let localVarPath = `/ports`;
3420
+ const { basePath, withCredentials } = this.configuration;
3421
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
3422
+ context: localVarHttpContext,
3423
+ params: localVarQueryParameters.toHttpParams(),
3424
+ responseType: responseType_,
3425
+ ...(withCredentials ? { withCredentials } : {}),
3426
+ headers: localVarHeaders,
3427
+ observe: observe,
3428
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3429
+ reportProgress: reportProgress
3430
+ });
3431
+ }
3432
+ updatePort(id, portData, observe = 'body', reportProgress = false, options) {
3433
+ if (id === null || id === undefined) {
3434
+ throw new Error('Required parameter id was null or undefined when calling updatePort.');
3435
+ }
3436
+ if (portData === null || portData === undefined) {
3437
+ throw new Error('Required parameter portData was null or undefined when calling updatePort.');
3438
+ }
3439
+ let localVarHeaders = this.defaultHeaders;
3440
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3441
+ 'application/json'
3442
+ ]);
3443
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3444
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3445
+ }
3446
+ const localVarHttpContext = options?.context ?? new HttpContext();
3447
+ const localVarTransferCache = options?.transferCache ?? true;
3448
+ // to determine the Content-Type header
3449
+ const consumes = [
3450
+ 'application/json'
3451
+ ];
3452
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3453
+ if (httpContentTypeSelected !== undefined) {
3454
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3455
+ }
3456
+ let responseType_ = 'json';
3457
+ if (localVarHttpHeaderAcceptSelected) {
3458
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3459
+ responseType_ = 'text';
3460
+ }
3461
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3462
+ responseType_ = 'json';
3463
+ }
3464
+ else {
3465
+ responseType_ = 'blob';
3466
+ }
3467
+ }
3468
+ let localVarPath = `/ports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
3469
+ const { basePath, withCredentials } = this.configuration;
3470
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3471
+ context: localVarHttpContext,
3472
+ body: portData,
3473
+ responseType: responseType_,
3474
+ ...(withCredentials ? { withCredentials } : {}),
3475
+ headers: localVarHeaders,
3476
+ observe: observe,
3477
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
3478
+ reportProgress: reportProgress
3479
+ });
3480
+ }
3481
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3482
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, providedIn: 'root' });
3483
+ }
3484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, decorators: [{
3485
+ type: Injectable,
3486
+ args: [{
3487
+ providedIn: 'root'
3488
+ }]
3489
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3490
+ type: Optional
3491
+ }, {
3492
+ type: Inject,
3493
+ args: [BASE_PATH]
3494
+ }] }, { type: Configuration, decorators: [{
3495
+ type: Optional
3496
+ }] }] });
3497
+
2671
3498
  /**
2672
3499
  * Dcm.API.Client
2673
3500
  *
@@ -4425,7 +5252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
4425
5252
  type: Optional
4426
5253
  }] }] });
4427
5254
 
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];
5255
+ const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PortsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
4429
5256
 
4430
5257
  /**
4431
5258
  * Dcm.API.Client
@@ -4471,6 +5298,37 @@ const AmendConfirmationTypes = {
4471
5298
  * Do not edit the class manually.
4472
5299
  */
4473
5300
 
5301
+ /**
5302
+ * Dcm.API.Client
5303
+ *
5304
+ *
5305
+ *
5306
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5307
+ * https://openapi-generator.tech
5308
+ * Do not edit the class manually.
5309
+ */
5310
+
5311
+ /**
5312
+ * Dcm.API.Client
5313
+ *
5314
+ *
5315
+ *
5316
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5317
+ * https://openapi-generator.tech
5318
+ * Do not edit the class manually.
5319
+ */
5320
+ const ApprovalRuleType = {
5321
+ NoApprovalRequired: 'NoApprovalRequired',
5322
+ AutoApproval: 'AutoApproval',
5323
+ ManualApproval: 'ManualApproval',
5324
+ QuantityToleranceOver: 'QuantityToleranceOver',
5325
+ QuantityToleranceUnder: 'QuantityToleranceUnder',
5326
+ ValidateUnbookedPoLines: 'ValidateUnbookedPOLines',
5327
+ RequiredByDateMet: 'RequiredByDateMet',
5328
+ ContainerUtilisation: 'ContainerUtilisation',
5329
+ ValidateUnmatchedPoLinesDcConsigneeCountry: 'ValidateUnmatchedPOLinesDCConsigneeCountry'
5330
+ };
5331
+
4474
5332
  /**
4475
5333
  * Dcm.API.Client
4476
5334
  *
@@ -4988,6 +5846,22 @@ const PoItemState = {
4988
5846
  * Do not edit the class manually.
4989
5847
  */
4990
5848
 
5849
+ /**
5850
+ * Dcm.API.Client
5851
+ *
5852
+ *
5853
+ *
5854
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5855
+ * https://openapi-generator.tech
5856
+ * Do not edit the class manually.
5857
+ */
5858
+ const PortType = {
5859
+ Air: 'Air',
5860
+ Sea: 'Sea',
5861
+ Road: 'Road',
5862
+ Rail: 'Rail'
5863
+ };
5864
+
4991
5865
  /**
4992
5866
  * Dcm.API.Client
4993
5867
  *
@@ -5422,5 +6296,5 @@ function provideApi(configOrBasePath) {
5422
6296
  * Generated bundle index. Do not edit.
5423
6297
  */
5424
6298
 
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 };
6299
+ 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, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
5426
6300
  //# sourceMappingURL=indigina-dcm-api.mjs.map