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