@ignos/api-client 20260407.102.1 → 20260410.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +95 -64
- package/lib/ignosportal-api.js +178 -125
- package/package.json +1 -1
- package/src/ignosportal-api.ts +275 -193
package/lib/ignosportal-api.js
CHANGED
|
@@ -2791,6 +2791,45 @@ export class UploadClient extends AuthorizedApiBase {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
return Promise.resolve(null);
|
|
2793
2793
|
}
|
|
2794
|
+
createUploadInfoCdf(request) {
|
|
2795
|
+
let url_ = this.baseUrl + "/upload/cdf";
|
|
2796
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2797
|
+
const content_ = JSON.stringify(request);
|
|
2798
|
+
let options_ = {
|
|
2799
|
+
body: content_,
|
|
2800
|
+
method: "POST",
|
|
2801
|
+
headers: {
|
|
2802
|
+
"Content-Type": "application/json",
|
|
2803
|
+
"Accept": "application/json"
|
|
2804
|
+
}
|
|
2805
|
+
};
|
|
2806
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2807
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2808
|
+
}).then((_response) => {
|
|
2809
|
+
return this.processCreateUploadInfoCdf(_response);
|
|
2810
|
+
});
|
|
2811
|
+
}
|
|
2812
|
+
processCreateUploadInfoCdf(response) {
|
|
2813
|
+
const status = response.status;
|
|
2814
|
+
let _headers = {};
|
|
2815
|
+
if (response.headers && response.headers.forEach) {
|
|
2816
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2817
|
+
}
|
|
2818
|
+
;
|
|
2819
|
+
if (status === 200) {
|
|
2820
|
+
return response.text().then((_responseText) => {
|
|
2821
|
+
let result200 = null;
|
|
2822
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2823
|
+
return result200;
|
|
2824
|
+
});
|
|
2825
|
+
}
|
|
2826
|
+
else if (status !== 200 && status !== 204) {
|
|
2827
|
+
return response.text().then((_responseText) => {
|
|
2828
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
return Promise.resolve(null);
|
|
2832
|
+
}
|
|
2794
2833
|
}
|
|
2795
2834
|
export class SystemHealthDashboardClient extends AuthorizedApiBase {
|
|
2796
2835
|
constructor(configuration, baseUrl, http) {
|
|
@@ -21245,28 +21284,31 @@ export class InspectMatchCertificateChecksClient extends AuthorizedApiBase {
|
|
|
21245
21284
|
return Promise.resolve(null);
|
|
21246
21285
|
}
|
|
21247
21286
|
}
|
|
21248
|
-
export class
|
|
21287
|
+
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
21249
21288
|
constructor(configuration, baseUrl, http) {
|
|
21250
21289
|
super(configuration);
|
|
21251
21290
|
this.http = http ? http : window;
|
|
21252
21291
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21253
21292
|
}
|
|
21254
|
-
|
|
21255
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types
|
|
21293
|
+
createMaterialCertificateTypes(payload) {
|
|
21294
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
21256
21295
|
url_ = url_.replace(/[?&]$/, "");
|
|
21296
|
+
const content_ = JSON.stringify(payload);
|
|
21257
21297
|
let options_ = {
|
|
21258
|
-
|
|
21298
|
+
body: content_,
|
|
21299
|
+
method: "POST",
|
|
21259
21300
|
headers: {
|
|
21301
|
+
"Content-Type": "application/json",
|
|
21260
21302
|
"Accept": "application/json"
|
|
21261
21303
|
}
|
|
21262
21304
|
};
|
|
21263
21305
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21264
21306
|
return this.http.fetch(url_, transformedOptions_);
|
|
21265
21307
|
}).then((_response) => {
|
|
21266
|
-
return this.
|
|
21308
|
+
return this.processCreateMaterialCertificateTypes(_response);
|
|
21267
21309
|
});
|
|
21268
21310
|
}
|
|
21269
|
-
|
|
21311
|
+
processCreateMaterialCertificateTypes(response) {
|
|
21270
21312
|
const status = response.status;
|
|
21271
21313
|
let _headers = {};
|
|
21272
21314
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21287,27 +21329,30 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21287
21329
|
}
|
|
21288
21330
|
return Promise.resolve(null);
|
|
21289
21331
|
}
|
|
21290
|
-
|
|
21291
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21332
|
+
copyMaterialCertificateType(id, version, payload) {
|
|
21333
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/copy?";
|
|
21292
21334
|
if (id === undefined || id === null)
|
|
21293
21335
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21294
21336
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21295
21337
|
if (version !== undefined && version !== null)
|
|
21296
21338
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21297
21339
|
url_ = url_.replace(/[?&]$/, "");
|
|
21340
|
+
const content_ = JSON.stringify(payload);
|
|
21298
21341
|
let options_ = {
|
|
21299
|
-
|
|
21342
|
+
body: content_,
|
|
21343
|
+
method: "POST",
|
|
21300
21344
|
headers: {
|
|
21345
|
+
"Content-Type": "application/json",
|
|
21301
21346
|
"Accept": "application/json"
|
|
21302
21347
|
}
|
|
21303
21348
|
};
|
|
21304
21349
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21305
21350
|
return this.http.fetch(url_, transformedOptions_);
|
|
21306
21351
|
}).then((_response) => {
|
|
21307
|
-
return this.
|
|
21352
|
+
return this.processCopyMaterialCertificateType(_response);
|
|
21308
21353
|
});
|
|
21309
21354
|
}
|
|
21310
|
-
|
|
21355
|
+
processCopyMaterialCertificateType(response) {
|
|
21311
21356
|
const status = response.status;
|
|
21312
21357
|
let _headers = {};
|
|
21313
21358
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21328,30 +21373,27 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21328
21373
|
}
|
|
21329
21374
|
return Promise.resolve(null);
|
|
21330
21375
|
}
|
|
21331
|
-
|
|
21332
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21376
|
+
createNewVersionForCertificateType(id, version) {
|
|
21377
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/new-version?";
|
|
21333
21378
|
if (id === undefined || id === null)
|
|
21334
21379
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21335
21380
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21336
21381
|
if (version !== undefined && version !== null)
|
|
21337
21382
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21338
21383
|
url_ = url_.replace(/[?&]$/, "");
|
|
21339
|
-
const content_ = JSON.stringify(payload);
|
|
21340
21384
|
let options_ = {
|
|
21341
|
-
|
|
21342
|
-
method: "PUT",
|
|
21385
|
+
method: "POST",
|
|
21343
21386
|
headers: {
|
|
21344
|
-
"Content-Type": "application/json",
|
|
21345
21387
|
"Accept": "application/json"
|
|
21346
21388
|
}
|
|
21347
21389
|
};
|
|
21348
21390
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21349
21391
|
return this.http.fetch(url_, transformedOptions_);
|
|
21350
21392
|
}).then((_response) => {
|
|
21351
|
-
return this.
|
|
21393
|
+
return this.processCreateNewVersionForCertificateType(_response);
|
|
21352
21394
|
});
|
|
21353
21395
|
}
|
|
21354
|
-
|
|
21396
|
+
processCreateNewVersionForCertificateType(response) {
|
|
21355
21397
|
const status = response.status;
|
|
21356
21398
|
let _headers = {};
|
|
21357
21399
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21372,8 +21414,8 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21372
21414
|
}
|
|
21373
21415
|
return Promise.resolve(null);
|
|
21374
21416
|
}
|
|
21375
|
-
|
|
21376
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21417
|
+
releaseMaterialCertificateType(id, version) {
|
|
21418
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/release?";
|
|
21377
21419
|
if (id === undefined || id === null)
|
|
21378
21420
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21379
21421
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21381,25 +21423,29 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21381
21423
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21382
21424
|
url_ = url_.replace(/[?&]$/, "");
|
|
21383
21425
|
let options_ = {
|
|
21384
|
-
method: "
|
|
21385
|
-
headers: {
|
|
21426
|
+
method: "POST",
|
|
21427
|
+
headers: {
|
|
21428
|
+
"Accept": "application/json"
|
|
21429
|
+
}
|
|
21386
21430
|
};
|
|
21387
21431
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21388
21432
|
return this.http.fetch(url_, transformedOptions_);
|
|
21389
21433
|
}).then((_response) => {
|
|
21390
|
-
return this.
|
|
21434
|
+
return this.processReleaseMaterialCertificateType(_response);
|
|
21391
21435
|
});
|
|
21392
21436
|
}
|
|
21393
|
-
|
|
21437
|
+
processReleaseMaterialCertificateType(response) {
|
|
21394
21438
|
const status = response.status;
|
|
21395
21439
|
let _headers = {};
|
|
21396
21440
|
if (response.headers && response.headers.forEach) {
|
|
21397
21441
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21398
21442
|
}
|
|
21399
21443
|
;
|
|
21400
|
-
if (status ===
|
|
21444
|
+
if (status === 200) {
|
|
21401
21445
|
return response.text().then((_responseText) => {
|
|
21402
|
-
|
|
21446
|
+
let result200 = null;
|
|
21447
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21448
|
+
return result200;
|
|
21403
21449
|
});
|
|
21404
21450
|
}
|
|
21405
21451
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21409,13 +21455,18 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21409
21455
|
}
|
|
21410
21456
|
return Promise.resolve(null);
|
|
21411
21457
|
}
|
|
21412
|
-
|
|
21413
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
21458
|
+
updateMaterialCertificateType(id, version, payload) {
|
|
21459
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21460
|
+
if (id === undefined || id === null)
|
|
21461
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21462
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21463
|
+
if (version !== undefined && version !== null)
|
|
21464
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21414
21465
|
url_ = url_.replace(/[?&]$/, "");
|
|
21415
21466
|
const content_ = JSON.stringify(payload);
|
|
21416
21467
|
let options_ = {
|
|
21417
21468
|
body: content_,
|
|
21418
|
-
method: "
|
|
21469
|
+
method: "PUT",
|
|
21419
21470
|
headers: {
|
|
21420
21471
|
"Content-Type": "application/json",
|
|
21421
21472
|
"Accept": "application/json"
|
|
@@ -21424,10 +21475,10 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21424
21475
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21425
21476
|
return this.http.fetch(url_, transformedOptions_);
|
|
21426
21477
|
}).then((_response) => {
|
|
21427
|
-
return this.
|
|
21478
|
+
return this.processUpdateMaterialCertificateType(_response);
|
|
21428
21479
|
});
|
|
21429
21480
|
}
|
|
21430
|
-
|
|
21481
|
+
processUpdateMaterialCertificateType(response) {
|
|
21431
21482
|
const status = response.status;
|
|
21432
21483
|
let _headers = {};
|
|
21433
21484
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21448,41 +21499,34 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21448
21499
|
}
|
|
21449
21500
|
return Promise.resolve(null);
|
|
21450
21501
|
}
|
|
21451
|
-
|
|
21452
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}
|
|
21502
|
+
deleteMaterialCertificateType(id, version) {
|
|
21503
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21453
21504
|
if (id === undefined || id === null)
|
|
21454
21505
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21455
21506
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21456
21507
|
if (version !== undefined && version !== null)
|
|
21457
21508
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21458
21509
|
url_ = url_.replace(/[?&]$/, "");
|
|
21459
|
-
const content_ = JSON.stringify(payload);
|
|
21460
21510
|
let options_ = {
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
headers: {
|
|
21464
|
-
"Content-Type": "application/json",
|
|
21465
|
-
"Accept": "application/json"
|
|
21466
|
-
}
|
|
21511
|
+
method: "DELETE",
|
|
21512
|
+
headers: {}
|
|
21467
21513
|
};
|
|
21468
21514
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21469
21515
|
return this.http.fetch(url_, transformedOptions_);
|
|
21470
21516
|
}).then((_response) => {
|
|
21471
|
-
return this.
|
|
21517
|
+
return this.processDeleteMaterialCertificateType(_response);
|
|
21472
21518
|
});
|
|
21473
21519
|
}
|
|
21474
|
-
|
|
21520
|
+
processDeleteMaterialCertificateType(response) {
|
|
21475
21521
|
const status = response.status;
|
|
21476
21522
|
let _headers = {};
|
|
21477
21523
|
if (response.headers && response.headers.forEach) {
|
|
21478
21524
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21479
21525
|
}
|
|
21480
21526
|
;
|
|
21481
|
-
if (status ===
|
|
21527
|
+
if (status === 204) {
|
|
21482
21528
|
return response.text().then((_responseText) => {
|
|
21483
|
-
|
|
21484
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21485
|
-
return result200;
|
|
21529
|
+
return;
|
|
21486
21530
|
});
|
|
21487
21531
|
}
|
|
21488
21532
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21492,8 +21536,15 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21492
21536
|
}
|
|
21493
21537
|
return Promise.resolve(null);
|
|
21494
21538
|
}
|
|
21495
|
-
|
|
21496
|
-
|
|
21539
|
+
}
|
|
21540
|
+
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
21541
|
+
constructor(configuration, baseUrl, http) {
|
|
21542
|
+
super(configuration);
|
|
21543
|
+
this.http = http ? http : window;
|
|
21544
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21545
|
+
}
|
|
21546
|
+
getMaterialCertificateTypes(id, version) {
|
|
21547
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21497
21548
|
if (id === undefined || id === null)
|
|
21498
21549
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21499
21550
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21501,7 +21552,7 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21501
21552
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21502
21553
|
url_ = url_.replace(/[?&]$/, "");
|
|
21503
21554
|
let options_ = {
|
|
21504
|
-
method: "
|
|
21555
|
+
method: "GET",
|
|
21505
21556
|
headers: {
|
|
21506
21557
|
"Accept": "application/json"
|
|
21507
21558
|
}
|
|
@@ -21509,10 +21560,10 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21509
21560
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21510
21561
|
return this.http.fetch(url_, transformedOptions_);
|
|
21511
21562
|
}).then((_response) => {
|
|
21512
|
-
return this.
|
|
21563
|
+
return this.processGetMaterialCertificateTypes(_response);
|
|
21513
21564
|
});
|
|
21514
21565
|
}
|
|
21515
|
-
|
|
21566
|
+
processGetMaterialCertificateTypes(response) {
|
|
21516
21567
|
const status = response.status;
|
|
21517
21568
|
let _headers = {};
|
|
21518
21569
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21533,16 +21584,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21533
21584
|
}
|
|
21534
21585
|
return Promise.resolve(null);
|
|
21535
21586
|
}
|
|
21536
|
-
|
|
21537
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/
|
|
21538
|
-
if (id === undefined || id === null)
|
|
21539
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21540
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21541
|
-
if (version !== undefined && version !== null)
|
|
21542
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21587
|
+
listMaterialCertificateTypes() {
|
|
21588
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/list";
|
|
21543
21589
|
url_ = url_.replace(/[?&]$/, "");
|
|
21544
21590
|
let options_ = {
|
|
21545
|
-
method: "
|
|
21591
|
+
method: "GET",
|
|
21546
21592
|
headers: {
|
|
21547
21593
|
"Accept": "application/json"
|
|
21548
21594
|
}
|
|
@@ -21550,10 +21596,10 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21550
21596
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21551
21597
|
return this.http.fetch(url_, transformedOptions_);
|
|
21552
21598
|
}).then((_response) => {
|
|
21553
|
-
return this.
|
|
21599
|
+
return this.processListMaterialCertificateTypes(_response);
|
|
21554
21600
|
});
|
|
21555
21601
|
}
|
|
21556
|
-
|
|
21602
|
+
processListMaterialCertificateTypes(response) {
|
|
21557
21603
|
const status = response.status;
|
|
21558
21604
|
let _headers = {};
|
|
21559
21605
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21703,28 +21749,31 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
21703
21749
|
return Promise.resolve(null);
|
|
21704
21750
|
}
|
|
21705
21751
|
}
|
|
21706
|
-
export class
|
|
21752
|
+
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
21707
21753
|
constructor(configuration, baseUrl, http) {
|
|
21708
21754
|
super(configuration);
|
|
21709
21755
|
this.http = http ? http : window;
|
|
21710
21756
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21711
21757
|
}
|
|
21712
|
-
|
|
21713
|
-
let url_ = this.baseUrl + "/inspect/match/specifications
|
|
21758
|
+
createSpecification(createRequestDto) {
|
|
21759
|
+
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
21714
21760
|
url_ = url_.replace(/[?&]$/, "");
|
|
21761
|
+
const content_ = JSON.stringify(createRequestDto);
|
|
21715
21762
|
let options_ = {
|
|
21716
|
-
|
|
21763
|
+
body: content_,
|
|
21764
|
+
method: "POST",
|
|
21717
21765
|
headers: {
|
|
21766
|
+
"Content-Type": "application/json",
|
|
21718
21767
|
"Accept": "application/json"
|
|
21719
21768
|
}
|
|
21720
21769
|
};
|
|
21721
21770
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21722
21771
|
return this.http.fetch(url_, transformedOptions_);
|
|
21723
21772
|
}).then((_response) => {
|
|
21724
|
-
return this.
|
|
21773
|
+
return this.processCreateSpecification(_response);
|
|
21725
21774
|
});
|
|
21726
21775
|
}
|
|
21727
|
-
|
|
21776
|
+
processCreateSpecification(response) {
|
|
21728
21777
|
const status = response.status;
|
|
21729
21778
|
let _headers = {};
|
|
21730
21779
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21745,27 +21794,30 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21745
21794
|
}
|
|
21746
21795
|
return Promise.resolve(null);
|
|
21747
21796
|
}
|
|
21748
|
-
|
|
21749
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21797
|
+
copySpecification(id, version, copyDto) {
|
|
21798
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/copy?";
|
|
21750
21799
|
if (id === undefined || id === null)
|
|
21751
21800
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21752
21801
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21753
21802
|
if (version !== undefined && version !== null)
|
|
21754
21803
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21755
21804
|
url_ = url_.replace(/[?&]$/, "");
|
|
21805
|
+
const content_ = JSON.stringify(copyDto);
|
|
21756
21806
|
let options_ = {
|
|
21757
|
-
|
|
21807
|
+
body: content_,
|
|
21808
|
+
method: "POST",
|
|
21758
21809
|
headers: {
|
|
21810
|
+
"Content-Type": "application/json",
|
|
21759
21811
|
"Accept": "application/json"
|
|
21760
21812
|
}
|
|
21761
21813
|
};
|
|
21762
21814
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21763
21815
|
return this.http.fetch(url_, transformedOptions_);
|
|
21764
21816
|
}).then((_response) => {
|
|
21765
|
-
return this.
|
|
21817
|
+
return this.processCopySpecification(_response);
|
|
21766
21818
|
});
|
|
21767
21819
|
}
|
|
21768
|
-
|
|
21820
|
+
processCopySpecification(response) {
|
|
21769
21821
|
const status = response.status;
|
|
21770
21822
|
let _headers = {};
|
|
21771
21823
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21786,30 +21838,27 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21786
21838
|
}
|
|
21787
21839
|
return Promise.resolve(null);
|
|
21788
21840
|
}
|
|
21789
|
-
|
|
21790
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21841
|
+
createNewVersionForSpecification(id, version) {
|
|
21842
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/new-version?";
|
|
21791
21843
|
if (id === undefined || id === null)
|
|
21792
21844
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21793
21845
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21794
21846
|
if (version !== undefined && version !== null)
|
|
21795
21847
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21796
21848
|
url_ = url_.replace(/[?&]$/, "");
|
|
21797
|
-
const content_ = JSON.stringify(dto);
|
|
21798
21849
|
let options_ = {
|
|
21799
|
-
|
|
21800
|
-
method: "PUT",
|
|
21850
|
+
method: "POST",
|
|
21801
21851
|
headers: {
|
|
21802
|
-
"Content-Type": "application/json",
|
|
21803
21852
|
"Accept": "application/json"
|
|
21804
21853
|
}
|
|
21805
21854
|
};
|
|
21806
21855
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21807
21856
|
return this.http.fetch(url_, transformedOptions_);
|
|
21808
21857
|
}).then((_response) => {
|
|
21809
|
-
return this.
|
|
21858
|
+
return this.processCreateNewVersionForSpecification(_response);
|
|
21810
21859
|
});
|
|
21811
21860
|
}
|
|
21812
|
-
|
|
21861
|
+
processCreateNewVersionForSpecification(response) {
|
|
21813
21862
|
const status = response.status;
|
|
21814
21863
|
let _headers = {};
|
|
21815
21864
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21830,8 +21879,8 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21830
21879
|
}
|
|
21831
21880
|
return Promise.resolve(null);
|
|
21832
21881
|
}
|
|
21833
|
-
|
|
21834
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21882
|
+
releaseSpecification(id, version) {
|
|
21883
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/release?";
|
|
21835
21884
|
if (id === undefined || id === null)
|
|
21836
21885
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21837
21886
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21839,25 +21888,29 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21839
21888
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21840
21889
|
url_ = url_.replace(/[?&]$/, "");
|
|
21841
21890
|
let options_ = {
|
|
21842
|
-
method: "
|
|
21843
|
-
headers: {
|
|
21891
|
+
method: "POST",
|
|
21892
|
+
headers: {
|
|
21893
|
+
"Accept": "application/json"
|
|
21894
|
+
}
|
|
21844
21895
|
};
|
|
21845
21896
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21846
21897
|
return this.http.fetch(url_, transformedOptions_);
|
|
21847
21898
|
}).then((_response) => {
|
|
21848
|
-
return this.
|
|
21899
|
+
return this.processReleaseSpecification(_response);
|
|
21849
21900
|
});
|
|
21850
21901
|
}
|
|
21851
|
-
|
|
21902
|
+
processReleaseSpecification(response) {
|
|
21852
21903
|
const status = response.status;
|
|
21853
21904
|
let _headers = {};
|
|
21854
21905
|
if (response.headers && response.headers.forEach) {
|
|
21855
21906
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21856
21907
|
}
|
|
21857
21908
|
;
|
|
21858
|
-
if (status ===
|
|
21909
|
+
if (status === 200) {
|
|
21859
21910
|
return response.text().then((_responseText) => {
|
|
21860
|
-
|
|
21911
|
+
let result200 = null;
|
|
21912
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21913
|
+
return result200;
|
|
21861
21914
|
});
|
|
21862
21915
|
}
|
|
21863
21916
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21867,13 +21920,18 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21867
21920
|
}
|
|
21868
21921
|
return Promise.resolve(null);
|
|
21869
21922
|
}
|
|
21870
|
-
|
|
21871
|
-
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
21923
|
+
updateSpecification(id, version, dto) {
|
|
21924
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21925
|
+
if (id === undefined || id === null)
|
|
21926
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21927
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21928
|
+
if (version !== undefined && version !== null)
|
|
21929
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21872
21930
|
url_ = url_.replace(/[?&]$/, "");
|
|
21873
|
-
const content_ = JSON.stringify(
|
|
21931
|
+
const content_ = JSON.stringify(dto);
|
|
21874
21932
|
let options_ = {
|
|
21875
21933
|
body: content_,
|
|
21876
|
-
method: "
|
|
21934
|
+
method: "PUT",
|
|
21877
21935
|
headers: {
|
|
21878
21936
|
"Content-Type": "application/json",
|
|
21879
21937
|
"Accept": "application/json"
|
|
@@ -21882,10 +21940,10 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21882
21940
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21883
21941
|
return this.http.fetch(url_, transformedOptions_);
|
|
21884
21942
|
}).then((_response) => {
|
|
21885
|
-
return this.
|
|
21943
|
+
return this.processUpdateSpecification(_response);
|
|
21886
21944
|
});
|
|
21887
21945
|
}
|
|
21888
|
-
|
|
21946
|
+
processUpdateSpecification(response) {
|
|
21889
21947
|
const status = response.status;
|
|
21890
21948
|
let _headers = {};
|
|
21891
21949
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21906,41 +21964,34 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21906
21964
|
}
|
|
21907
21965
|
return Promise.resolve(null);
|
|
21908
21966
|
}
|
|
21909
|
-
|
|
21910
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}
|
|
21967
|
+
deleteSpecification(id, version) {
|
|
21968
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21911
21969
|
if (id === undefined || id === null)
|
|
21912
21970
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21913
21971
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21914
21972
|
if (version !== undefined && version !== null)
|
|
21915
21973
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21916
21974
|
url_ = url_.replace(/[?&]$/, "");
|
|
21917
|
-
const content_ = JSON.stringify(copyDto);
|
|
21918
21975
|
let options_ = {
|
|
21919
|
-
|
|
21920
|
-
|
|
21921
|
-
headers: {
|
|
21922
|
-
"Content-Type": "application/json",
|
|
21923
|
-
"Accept": "application/json"
|
|
21924
|
-
}
|
|
21976
|
+
method: "DELETE",
|
|
21977
|
+
headers: {}
|
|
21925
21978
|
};
|
|
21926
21979
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21927
21980
|
return this.http.fetch(url_, transformedOptions_);
|
|
21928
21981
|
}).then((_response) => {
|
|
21929
|
-
return this.
|
|
21982
|
+
return this.processDeleteSpecification(_response);
|
|
21930
21983
|
});
|
|
21931
21984
|
}
|
|
21932
|
-
|
|
21985
|
+
processDeleteSpecification(response) {
|
|
21933
21986
|
const status = response.status;
|
|
21934
21987
|
let _headers = {};
|
|
21935
21988
|
if (response.headers && response.headers.forEach) {
|
|
21936
21989
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21937
21990
|
}
|
|
21938
21991
|
;
|
|
21939
|
-
if (status ===
|
|
21992
|
+
if (status === 204) {
|
|
21940
21993
|
return response.text().then((_responseText) => {
|
|
21941
|
-
|
|
21942
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21943
|
-
return result200;
|
|
21994
|
+
return;
|
|
21944
21995
|
});
|
|
21945
21996
|
}
|
|
21946
21997
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21950,8 +22001,15 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21950
22001
|
}
|
|
21951
22002
|
return Promise.resolve(null);
|
|
21952
22003
|
}
|
|
21953
|
-
|
|
21954
|
-
|
|
22004
|
+
}
|
|
22005
|
+
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
22006
|
+
constructor(configuration, baseUrl, http) {
|
|
22007
|
+
super(configuration);
|
|
22008
|
+
this.http = http ? http : window;
|
|
22009
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22010
|
+
}
|
|
22011
|
+
getSpecification(id, version) {
|
|
22012
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
21955
22013
|
if (id === undefined || id === null)
|
|
21956
22014
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21957
22015
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21959,7 +22017,7 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21959
22017
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21960
22018
|
url_ = url_.replace(/[?&]$/, "");
|
|
21961
22019
|
let options_ = {
|
|
21962
|
-
method: "
|
|
22020
|
+
method: "GET",
|
|
21963
22021
|
headers: {
|
|
21964
22022
|
"Accept": "application/json"
|
|
21965
22023
|
}
|
|
@@ -21967,10 +22025,10 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21967
22025
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21968
22026
|
return this.http.fetch(url_, transformedOptions_);
|
|
21969
22027
|
}).then((_response) => {
|
|
21970
|
-
return this.
|
|
22028
|
+
return this.processGetSpecification(_response);
|
|
21971
22029
|
});
|
|
21972
22030
|
}
|
|
21973
|
-
|
|
22031
|
+
processGetSpecification(response) {
|
|
21974
22032
|
const status = response.status;
|
|
21975
22033
|
let _headers = {};
|
|
21976
22034
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21991,16 +22049,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
21991
22049
|
}
|
|
21992
22050
|
return Promise.resolve(null);
|
|
21993
22051
|
}
|
|
21994
|
-
|
|
21995
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/
|
|
21996
|
-
if (id === undefined || id === null)
|
|
21997
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21998
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21999
|
-
if (version !== undefined && version !== null)
|
|
22000
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
22052
|
+
listSpecifications() {
|
|
22053
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/list";
|
|
22001
22054
|
url_ = url_.replace(/[?&]$/, "");
|
|
22002
22055
|
let options_ = {
|
|
22003
|
-
method: "
|
|
22056
|
+
method: "GET",
|
|
22004
22057
|
headers: {
|
|
22005
22058
|
"Accept": "application/json"
|
|
22006
22059
|
}
|
|
@@ -22008,10 +22061,10 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
22008
22061
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22009
22062
|
return this.http.fetch(url_, transformedOptions_);
|
|
22010
22063
|
}).then((_response) => {
|
|
22011
|
-
return this.
|
|
22064
|
+
return this.processListSpecifications(_response);
|
|
22012
22065
|
});
|
|
22013
22066
|
}
|
|
22014
|
-
|
|
22067
|
+
processListSpecifications(response) {
|
|
22015
22068
|
const status = response.status;
|
|
22016
22069
|
let _headers = {};
|
|
22017
22070
|
if (response.headers && response.headers.forEach) {
|