@ignos/api-client 20260417.110.1-alpha → 20260417.111.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 +328 -323
- package/lib/ignosportal-api.js +133 -136
- package/package.json +1 -1
- package/src/ignosportal-api.ts +600 -598
package/lib/ignosportal-api.js
CHANGED
|
@@ -21089,16 +21089,16 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
21089
21089
|
return Promise.resolve(null);
|
|
21090
21090
|
}
|
|
21091
21091
|
}
|
|
21092
|
-
export class
|
|
21092
|
+
export class InspectMatchCertificateChecksClient extends AuthorizedApiBase {
|
|
21093
21093
|
constructor(configuration, baseUrl, http) {
|
|
21094
21094
|
super(configuration);
|
|
21095
21095
|
this.http = http ? http : window;
|
|
21096
21096
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21097
21097
|
}
|
|
21098
|
-
|
|
21099
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21098
|
+
listMaterialCertificateChecks(request) {
|
|
21099
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/list";
|
|
21100
21100
|
url_ = url_.replace(/[?&]$/, "");
|
|
21101
|
-
const content_ = JSON.stringify(
|
|
21101
|
+
const content_ = JSON.stringify(request);
|
|
21102
21102
|
let options_ = {
|
|
21103
21103
|
body: content_,
|
|
21104
21104
|
method: "POST",
|
|
@@ -21110,10 +21110,10 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21110
21110
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21111
21111
|
return this.http.fetch(url_, transformedOptions_);
|
|
21112
21112
|
}).then((_response) => {
|
|
21113
|
-
return this.
|
|
21113
|
+
return this.processListMaterialCertificateChecks(_response);
|
|
21114
21114
|
});
|
|
21115
21115
|
}
|
|
21116
|
-
|
|
21116
|
+
processListMaterialCertificateChecks(response) {
|
|
21117
21117
|
const status = response.status;
|
|
21118
21118
|
let _headers = {};
|
|
21119
21119
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21134,30 +21134,25 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
return Promise.resolve(null);
|
|
21136
21136
|
}
|
|
21137
|
-
|
|
21138
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21137
|
+
getMaterialCertificateCheck(id) {
|
|
21138
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
21139
21139
|
if (id === undefined || id === null)
|
|
21140
21140
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21141
21141
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21142
|
-
if (version !== undefined && version !== null)
|
|
21143
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21144
21142
|
url_ = url_.replace(/[?&]$/, "");
|
|
21145
|
-
const content_ = JSON.stringify(payload);
|
|
21146
21143
|
let options_ = {
|
|
21147
|
-
|
|
21148
|
-
method: "POST",
|
|
21144
|
+
method: "GET",
|
|
21149
21145
|
headers: {
|
|
21150
|
-
"Content-Type": "application/json",
|
|
21151
21146
|
"Accept": "application/json"
|
|
21152
21147
|
}
|
|
21153
21148
|
};
|
|
21154
21149
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21155
21150
|
return this.http.fetch(url_, transformedOptions_);
|
|
21156
21151
|
}).then((_response) => {
|
|
21157
|
-
return this.
|
|
21152
|
+
return this.processGetMaterialCertificateCheck(_response);
|
|
21158
21153
|
});
|
|
21159
21154
|
}
|
|
21160
|
-
|
|
21155
|
+
processGetMaterialCertificateCheck(response) {
|
|
21161
21156
|
const status = response.status;
|
|
21162
21157
|
let _headers = {};
|
|
21163
21158
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21178,38 +21173,32 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21178
21173
|
}
|
|
21179
21174
|
return Promise.resolve(null);
|
|
21180
21175
|
}
|
|
21181
|
-
|
|
21182
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21176
|
+
deleteMaterialCheck(id) {
|
|
21177
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
21183
21178
|
if (id === undefined || id === null)
|
|
21184
21179
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21185
21180
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21186
|
-
if (version !== undefined && version !== null)
|
|
21187
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21188
21181
|
url_ = url_.replace(/[?&]$/, "");
|
|
21189
21182
|
let options_ = {
|
|
21190
|
-
method: "
|
|
21191
|
-
headers: {
|
|
21192
|
-
"Accept": "application/json"
|
|
21193
|
-
}
|
|
21183
|
+
method: "DELETE",
|
|
21184
|
+
headers: {}
|
|
21194
21185
|
};
|
|
21195
21186
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21196
21187
|
return this.http.fetch(url_, transformedOptions_);
|
|
21197
21188
|
}).then((_response) => {
|
|
21198
|
-
return this.
|
|
21189
|
+
return this.processDeleteMaterialCheck(_response);
|
|
21199
21190
|
});
|
|
21200
21191
|
}
|
|
21201
|
-
|
|
21192
|
+
processDeleteMaterialCheck(response) {
|
|
21202
21193
|
const status = response.status;
|
|
21203
21194
|
let _headers = {};
|
|
21204
21195
|
if (response.headers && response.headers.forEach) {
|
|
21205
21196
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21206
21197
|
}
|
|
21207
21198
|
;
|
|
21208
|
-
if (status ===
|
|
21199
|
+
if (status === 204) {
|
|
21209
21200
|
return response.text().then((_responseText) => {
|
|
21210
|
-
|
|
21211
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21212
|
-
return result200;
|
|
21201
|
+
return;
|
|
21213
21202
|
});
|
|
21214
21203
|
}
|
|
21215
21204
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21219,38 +21208,33 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21219
21208
|
}
|
|
21220
21209
|
return Promise.resolve(null);
|
|
21221
21210
|
}
|
|
21222
|
-
|
|
21223
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21224
|
-
if (id === undefined || id === null)
|
|
21225
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21226
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21227
|
-
if (version !== undefined && version !== null)
|
|
21228
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21211
|
+
processMaterialCertificate(certificatesRequest) {
|
|
21212
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks";
|
|
21229
21213
|
url_ = url_.replace(/[?&]$/, "");
|
|
21214
|
+
const content_ = JSON.stringify(certificatesRequest);
|
|
21230
21215
|
let options_ = {
|
|
21216
|
+
body: content_,
|
|
21231
21217
|
method: "POST",
|
|
21232
21218
|
headers: {
|
|
21233
|
-
"
|
|
21219
|
+
"Content-Type": "application/json",
|
|
21234
21220
|
}
|
|
21235
21221
|
};
|
|
21236
21222
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21237
21223
|
return this.http.fetch(url_, transformedOptions_);
|
|
21238
21224
|
}).then((_response) => {
|
|
21239
|
-
return this.
|
|
21225
|
+
return this.processProcessMaterialCertificate(_response);
|
|
21240
21226
|
});
|
|
21241
21227
|
}
|
|
21242
|
-
|
|
21228
|
+
processProcessMaterialCertificate(response) {
|
|
21243
21229
|
const status = response.status;
|
|
21244
21230
|
let _headers = {};
|
|
21245
21231
|
if (response.headers && response.headers.forEach) {
|
|
21246
21232
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21247
21233
|
}
|
|
21248
21234
|
;
|
|
21249
|
-
if (status ===
|
|
21235
|
+
if (status === 201) {
|
|
21250
21236
|
return response.text().then((_responseText) => {
|
|
21251
|
-
|
|
21252
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21253
|
-
return result200;
|
|
21237
|
+
return;
|
|
21254
21238
|
});
|
|
21255
21239
|
}
|
|
21256
21240
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21260,15 +21244,10 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21260
21244
|
}
|
|
21261
21245
|
return Promise.resolve(null);
|
|
21262
21246
|
}
|
|
21263
|
-
|
|
21264
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21265
|
-
if (id === undefined || id === null)
|
|
21266
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21267
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21268
|
-
if (version !== undefined && version !== null)
|
|
21269
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21247
|
+
updateMaterialCertificate(certificatesRequest) {
|
|
21248
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks";
|
|
21270
21249
|
url_ = url_.replace(/[?&]$/, "");
|
|
21271
|
-
const content_ = JSON.stringify(
|
|
21250
|
+
const content_ = JSON.stringify(certificatesRequest);
|
|
21272
21251
|
let options_ = {
|
|
21273
21252
|
body: content_,
|
|
21274
21253
|
method: "PUT",
|
|
@@ -21280,10 +21259,10 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21280
21259
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21281
21260
|
return this.http.fetch(url_, transformedOptions_);
|
|
21282
21261
|
}).then((_response) => {
|
|
21283
|
-
return this.
|
|
21262
|
+
return this.processUpdateMaterialCertificate(_response);
|
|
21284
21263
|
});
|
|
21285
21264
|
}
|
|
21286
|
-
|
|
21265
|
+
processUpdateMaterialCertificate(response) {
|
|
21287
21266
|
const status = response.status;
|
|
21288
21267
|
let _headers = {};
|
|
21289
21268
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21304,34 +21283,43 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21304
21283
|
}
|
|
21305
21284
|
return Promise.resolve(null);
|
|
21306
21285
|
}
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21286
|
+
}
|
|
21287
|
+
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
21288
|
+
constructor(configuration, baseUrl, http) {
|
|
21289
|
+
super(configuration);
|
|
21290
|
+
this.http = http ? http : window;
|
|
21291
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21292
|
+
}
|
|
21293
|
+
createMaterialCertificateTypes(payload) {
|
|
21294
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
21314
21295
|
url_ = url_.replace(/[?&]$/, "");
|
|
21296
|
+
const content_ = JSON.stringify(payload);
|
|
21315
21297
|
let options_ = {
|
|
21316
|
-
|
|
21317
|
-
|
|
21298
|
+
body: content_,
|
|
21299
|
+
method: "POST",
|
|
21300
|
+
headers: {
|
|
21301
|
+
"Content-Type": "application/json",
|
|
21302
|
+
"Accept": "application/json"
|
|
21303
|
+
}
|
|
21318
21304
|
};
|
|
21319
21305
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21320
21306
|
return this.http.fetch(url_, transformedOptions_);
|
|
21321
21307
|
}).then((_response) => {
|
|
21322
|
-
return this.
|
|
21308
|
+
return this.processCreateMaterialCertificateTypes(_response);
|
|
21323
21309
|
});
|
|
21324
21310
|
}
|
|
21325
|
-
|
|
21311
|
+
processCreateMaterialCertificateTypes(response) {
|
|
21326
21312
|
const status = response.status;
|
|
21327
21313
|
let _headers = {};
|
|
21328
21314
|
if (response.headers && response.headers.forEach) {
|
|
21329
21315
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21330
21316
|
}
|
|
21331
21317
|
;
|
|
21332
|
-
if (status ===
|
|
21318
|
+
if (status === 200) {
|
|
21333
21319
|
return response.text().then((_responseText) => {
|
|
21334
|
-
|
|
21320
|
+
let result200 = null;
|
|
21321
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21322
|
+
return result200;
|
|
21335
21323
|
});
|
|
21336
21324
|
}
|
|
21337
21325
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21341,34 +21329,30 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
21341
21329
|
}
|
|
21342
21330
|
return Promise.resolve(null);
|
|
21343
21331
|
}
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
constructor(configuration, baseUrl, http) {
|
|
21347
|
-
super(configuration);
|
|
21348
|
-
this.http = http ? http : window;
|
|
21349
|
-
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21350
|
-
}
|
|
21351
|
-
getMaterialCertificateTypes(id, version) {
|
|
21352
|
-
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?";
|
|
21353
21334
|
if (id === undefined || id === null)
|
|
21354
21335
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21355
21336
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21356
21337
|
if (version !== undefined && version !== null)
|
|
21357
21338
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21358
21339
|
url_ = url_.replace(/[?&]$/, "");
|
|
21340
|
+
const content_ = JSON.stringify(payload);
|
|
21359
21341
|
let options_ = {
|
|
21360
|
-
|
|
21342
|
+
body: content_,
|
|
21343
|
+
method: "POST",
|
|
21361
21344
|
headers: {
|
|
21345
|
+
"Content-Type": "application/json",
|
|
21362
21346
|
"Accept": "application/json"
|
|
21363
21347
|
}
|
|
21364
21348
|
};
|
|
21365
21349
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21366
21350
|
return this.http.fetch(url_, transformedOptions_);
|
|
21367
21351
|
}).then((_response) => {
|
|
21368
|
-
return this.
|
|
21352
|
+
return this.processCopyMaterialCertificateType(_response);
|
|
21369
21353
|
});
|
|
21370
21354
|
}
|
|
21371
|
-
|
|
21355
|
+
processCopyMaterialCertificateType(response) {
|
|
21372
21356
|
const status = response.status;
|
|
21373
21357
|
let _headers = {};
|
|
21374
21358
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21389,11 +21373,16 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21389
21373
|
}
|
|
21390
21374
|
return Promise.resolve(null);
|
|
21391
21375
|
}
|
|
21392
|
-
|
|
21393
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/
|
|
21376
|
+
createNewVersionForCertificateType(id, version) {
|
|
21377
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/new-version?";
|
|
21378
|
+
if (id === undefined || id === null)
|
|
21379
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21380
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21381
|
+
if (version !== undefined && version !== null)
|
|
21382
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21394
21383
|
url_ = url_.replace(/[?&]$/, "");
|
|
21395
21384
|
let options_ = {
|
|
21396
|
-
method: "
|
|
21385
|
+
method: "POST",
|
|
21397
21386
|
headers: {
|
|
21398
21387
|
"Accept": "application/json"
|
|
21399
21388
|
}
|
|
@@ -21401,10 +21390,10 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21401
21390
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21402
21391
|
return this.http.fetch(url_, transformedOptions_);
|
|
21403
21392
|
}).then((_response) => {
|
|
21404
|
-
return this.
|
|
21393
|
+
return this.processCreateNewVersionForCertificateType(_response);
|
|
21405
21394
|
});
|
|
21406
21395
|
}
|
|
21407
|
-
|
|
21396
|
+
processCreateNewVersionForCertificateType(response) {
|
|
21408
21397
|
const status = response.status;
|
|
21409
21398
|
let _headers = {};
|
|
21410
21399
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21425,32 +21414,27 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21425
21414
|
}
|
|
21426
21415
|
return Promise.resolve(null);
|
|
21427
21416
|
}
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
listMaterialChecks(request) {
|
|
21436
|
-
let url_ = this.baseUrl + "/inspect/match/material-checks/list";
|
|
21417
|
+
releaseMaterialCertificateType(id, version) {
|
|
21418
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/release?";
|
|
21419
|
+
if (id === undefined || id === null)
|
|
21420
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21421
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21422
|
+
if (version !== undefined && version !== null)
|
|
21423
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21437
21424
|
url_ = url_.replace(/[?&]$/, "");
|
|
21438
|
-
const content_ = JSON.stringify(request);
|
|
21439
21425
|
let options_ = {
|
|
21440
|
-
body: content_,
|
|
21441
21426
|
method: "POST",
|
|
21442
21427
|
headers: {
|
|
21443
|
-
"Content-Type": "application/json",
|
|
21444
21428
|
"Accept": "application/json"
|
|
21445
21429
|
}
|
|
21446
21430
|
};
|
|
21447
21431
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21448
21432
|
return this.http.fetch(url_, transformedOptions_);
|
|
21449
21433
|
}).then((_response) => {
|
|
21450
|
-
return this.
|
|
21434
|
+
return this.processReleaseMaterialCertificateType(_response);
|
|
21451
21435
|
});
|
|
21452
21436
|
}
|
|
21453
|
-
|
|
21437
|
+
processReleaseMaterialCertificateType(response) {
|
|
21454
21438
|
const status = response.status;
|
|
21455
21439
|
let _headers = {};
|
|
21456
21440
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21471,25 +21455,30 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
21471
21455
|
}
|
|
21472
21456
|
return Promise.resolve(null);
|
|
21473
21457
|
}
|
|
21474
|
-
|
|
21475
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21458
|
+
updateMaterialCertificateType(id, version, payload) {
|
|
21459
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21476
21460
|
if (id === undefined || id === null)
|
|
21477
21461
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21478
21462
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21463
|
+
if (version !== undefined && version !== null)
|
|
21464
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21479
21465
|
url_ = url_.replace(/[?&]$/, "");
|
|
21466
|
+
const content_ = JSON.stringify(payload);
|
|
21480
21467
|
let options_ = {
|
|
21481
|
-
|
|
21468
|
+
body: content_,
|
|
21469
|
+
method: "PUT",
|
|
21482
21470
|
headers: {
|
|
21471
|
+
"Content-Type": "application/json",
|
|
21483
21472
|
"Accept": "application/json"
|
|
21484
21473
|
}
|
|
21485
21474
|
};
|
|
21486
21475
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21487
21476
|
return this.http.fetch(url_, transformedOptions_);
|
|
21488
21477
|
}).then((_response) => {
|
|
21489
|
-
return this.
|
|
21478
|
+
return this.processUpdateMaterialCertificateType(_response);
|
|
21490
21479
|
});
|
|
21491
21480
|
}
|
|
21492
|
-
|
|
21481
|
+
processUpdateMaterialCertificateType(response) {
|
|
21493
21482
|
const status = response.status;
|
|
21494
21483
|
let _headers = {};
|
|
21495
21484
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21510,39 +21499,34 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
21510
21499
|
}
|
|
21511
21500
|
return Promise.resolve(null);
|
|
21512
21501
|
}
|
|
21513
|
-
|
|
21514
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21502
|
+
deleteMaterialCertificateType(id, version) {
|
|
21503
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
21515
21504
|
if (id === undefined || id === null)
|
|
21516
21505
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21517
21506
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21507
|
+
if (version !== undefined && version !== null)
|
|
21508
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21518
21509
|
url_ = url_.replace(/[?&]$/, "");
|
|
21519
|
-
const content_ = JSON.stringify(request);
|
|
21520
21510
|
let options_ = {
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
headers: {
|
|
21524
|
-
"Content-Type": "application/json",
|
|
21525
|
-
"Accept": "application/json"
|
|
21526
|
-
}
|
|
21511
|
+
method: "DELETE",
|
|
21512
|
+
headers: {}
|
|
21527
21513
|
};
|
|
21528
21514
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21529
21515
|
return this.http.fetch(url_, transformedOptions_);
|
|
21530
21516
|
}).then((_response) => {
|
|
21531
|
-
return this.
|
|
21517
|
+
return this.processDeleteMaterialCertificateType(_response);
|
|
21532
21518
|
});
|
|
21533
21519
|
}
|
|
21534
|
-
|
|
21520
|
+
processDeleteMaterialCertificateType(response) {
|
|
21535
21521
|
const status = response.status;
|
|
21536
21522
|
let _headers = {};
|
|
21537
21523
|
if (response.headers && response.headers.forEach) {
|
|
21538
21524
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21539
21525
|
}
|
|
21540
21526
|
;
|
|
21541
|
-
if (status ===
|
|
21527
|
+
if (status === 204) {
|
|
21542
21528
|
return response.text().then((_responseText) => {
|
|
21543
|
-
|
|
21544
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21545
|
-
return result200;
|
|
21529
|
+
return;
|
|
21546
21530
|
});
|
|
21547
21531
|
}
|
|
21548
21532
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21552,32 +21536,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
21552
21536
|
}
|
|
21553
21537
|
return Promise.resolve(null);
|
|
21554
21538
|
}
|
|
21555
|
-
|
|
21556
|
-
|
|
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}?";
|
|
21557
21548
|
if (id === undefined || id === null)
|
|
21558
21549
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21559
21550
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21551
|
+
if (version !== undefined && version !== null)
|
|
21552
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
21560
21553
|
url_ = url_.replace(/[?&]$/, "");
|
|
21561
21554
|
let options_ = {
|
|
21562
|
-
method: "
|
|
21563
|
-
headers: {
|
|
21555
|
+
method: "GET",
|
|
21556
|
+
headers: {
|
|
21557
|
+
"Accept": "application/json"
|
|
21558
|
+
}
|
|
21564
21559
|
};
|
|
21565
21560
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21566
21561
|
return this.http.fetch(url_, transformedOptions_);
|
|
21567
21562
|
}).then((_response) => {
|
|
21568
|
-
return this.
|
|
21563
|
+
return this.processGetMaterialCertificateTypes(_response);
|
|
21569
21564
|
});
|
|
21570
21565
|
}
|
|
21571
|
-
|
|
21566
|
+
processGetMaterialCertificateTypes(response) {
|
|
21572
21567
|
const status = response.status;
|
|
21573
21568
|
let _headers = {};
|
|
21574
21569
|
if (response.headers && response.headers.forEach) {
|
|
21575
21570
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21576
21571
|
}
|
|
21577
21572
|
;
|
|
21578
|
-
if (status ===
|
|
21573
|
+
if (status === 200) {
|
|
21579
21574
|
return response.text().then((_responseText) => {
|
|
21580
|
-
|
|
21575
|
+
let result200 = null;
|
|
21576
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21577
|
+
return result200;
|
|
21581
21578
|
});
|
|
21582
21579
|
}
|
|
21583
21580
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21587,33 +21584,33 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
21587
21584
|
}
|
|
21588
21585
|
return Promise.resolve(null);
|
|
21589
21586
|
}
|
|
21590
|
-
|
|
21591
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21587
|
+
listMaterialCertificateTypes() {
|
|
21588
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/list";
|
|
21592
21589
|
url_ = url_.replace(/[?&]$/, "");
|
|
21593
|
-
const content_ = JSON.stringify(certificatesRequest);
|
|
21594
21590
|
let options_ = {
|
|
21595
|
-
|
|
21596
|
-
method: "POST",
|
|
21591
|
+
method: "GET",
|
|
21597
21592
|
headers: {
|
|
21598
|
-
"
|
|
21593
|
+
"Accept": "application/json"
|
|
21599
21594
|
}
|
|
21600
21595
|
};
|
|
21601
21596
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21602
21597
|
return this.http.fetch(url_, transformedOptions_);
|
|
21603
21598
|
}).then((_response) => {
|
|
21604
|
-
return this.
|
|
21599
|
+
return this.processListMaterialCertificateTypes(_response);
|
|
21605
21600
|
});
|
|
21606
21601
|
}
|
|
21607
|
-
|
|
21602
|
+
processListMaterialCertificateTypes(response) {
|
|
21608
21603
|
const status = response.status;
|
|
21609
21604
|
let _headers = {};
|
|
21610
21605
|
if (response.headers && response.headers.forEach) {
|
|
21611
21606
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21612
21607
|
}
|
|
21613
21608
|
;
|
|
21614
|
-
if (status ===
|
|
21609
|
+
if (status === 200) {
|
|
21615
21610
|
return response.text().then((_responseText) => {
|
|
21616
|
-
|
|
21611
|
+
let result200 = null;
|
|
21612
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21613
|
+
return result200;
|
|
21617
21614
|
});
|
|
21618
21615
|
}
|
|
21619
21616
|
else if (status !== 200 && status !== 204) {
|