@ignos/api-client 20260505.121.1 → 20260507.123.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 +137 -11
- package/lib/ignosportal-api.js +486 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +607 -16
package/lib/ignosportal-api.js
CHANGED
|
@@ -4480,6 +4480,490 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4480
4480
|
return Promise.resolve(null);
|
|
4481
4481
|
}
|
|
4482
4482
|
}
|
|
4483
|
+
export class KpiCalendarClient extends AuthorizedApiBase {
|
|
4484
|
+
constructor(configuration, baseUrl, http) {
|
|
4485
|
+
super(configuration);
|
|
4486
|
+
this.http = http ? http : window;
|
|
4487
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4488
|
+
}
|
|
4489
|
+
listCalendarDefinitions() {
|
|
4490
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4491
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4492
|
+
let options_ = {
|
|
4493
|
+
method: "GET",
|
|
4494
|
+
headers: {
|
|
4495
|
+
"Accept": "application/json"
|
|
4496
|
+
}
|
|
4497
|
+
};
|
|
4498
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4499
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4500
|
+
}).then((_response) => {
|
|
4501
|
+
return this.processListCalendarDefinitions(_response);
|
|
4502
|
+
});
|
|
4503
|
+
}
|
|
4504
|
+
processListCalendarDefinitions(response) {
|
|
4505
|
+
const status = response.status;
|
|
4506
|
+
let _headers = {};
|
|
4507
|
+
if (response.headers && response.headers.forEach) {
|
|
4508
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4509
|
+
}
|
|
4510
|
+
;
|
|
4511
|
+
if (status === 200) {
|
|
4512
|
+
return response.text().then((_responseText) => {
|
|
4513
|
+
let result200 = null;
|
|
4514
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4515
|
+
return result200;
|
|
4516
|
+
});
|
|
4517
|
+
}
|
|
4518
|
+
else if (status !== 200 && status !== 204) {
|
|
4519
|
+
return response.text().then((_responseText) => {
|
|
4520
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4521
|
+
});
|
|
4522
|
+
}
|
|
4523
|
+
return Promise.resolve(null);
|
|
4524
|
+
}
|
|
4525
|
+
createCalendarDefinition(request) {
|
|
4526
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4527
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4528
|
+
const content_ = JSON.stringify(request);
|
|
4529
|
+
let options_ = {
|
|
4530
|
+
body: content_,
|
|
4531
|
+
method: "POST",
|
|
4532
|
+
headers: {
|
|
4533
|
+
"Content-Type": "application/json",
|
|
4534
|
+
"Accept": "application/json"
|
|
4535
|
+
}
|
|
4536
|
+
};
|
|
4537
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4538
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4539
|
+
}).then((_response) => {
|
|
4540
|
+
return this.processCreateCalendarDefinition(_response);
|
|
4541
|
+
});
|
|
4542
|
+
}
|
|
4543
|
+
processCreateCalendarDefinition(response) {
|
|
4544
|
+
const status = response.status;
|
|
4545
|
+
let _headers = {};
|
|
4546
|
+
if (response.headers && response.headers.forEach) {
|
|
4547
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4548
|
+
}
|
|
4549
|
+
;
|
|
4550
|
+
if (status === 200) {
|
|
4551
|
+
return response.text().then((_responseText) => {
|
|
4552
|
+
let result200 = null;
|
|
4553
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4554
|
+
return result200;
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
else if (status !== 200 && status !== 204) {
|
|
4558
|
+
return response.text().then((_responseText) => {
|
|
4559
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4560
|
+
});
|
|
4561
|
+
}
|
|
4562
|
+
return Promise.resolve(null);
|
|
4563
|
+
}
|
|
4564
|
+
updateCalendarDefinition(id, request) {
|
|
4565
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4566
|
+
if (id === undefined || id === null)
|
|
4567
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4568
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4569
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4570
|
+
const content_ = JSON.stringify(request);
|
|
4571
|
+
let options_ = {
|
|
4572
|
+
body: content_,
|
|
4573
|
+
method: "PUT",
|
|
4574
|
+
headers: {
|
|
4575
|
+
"Content-Type": "application/json",
|
|
4576
|
+
"Accept": "application/json"
|
|
4577
|
+
}
|
|
4578
|
+
};
|
|
4579
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4580
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4581
|
+
}).then((_response) => {
|
|
4582
|
+
return this.processUpdateCalendarDefinition(_response);
|
|
4583
|
+
});
|
|
4584
|
+
}
|
|
4585
|
+
processUpdateCalendarDefinition(response) {
|
|
4586
|
+
const status = response.status;
|
|
4587
|
+
let _headers = {};
|
|
4588
|
+
if (response.headers && response.headers.forEach) {
|
|
4589
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4590
|
+
}
|
|
4591
|
+
;
|
|
4592
|
+
if (status === 200) {
|
|
4593
|
+
return response.text().then((_responseText) => {
|
|
4594
|
+
let result200 = null;
|
|
4595
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4596
|
+
return result200;
|
|
4597
|
+
});
|
|
4598
|
+
}
|
|
4599
|
+
else if (status !== 200 && status !== 204) {
|
|
4600
|
+
return response.text().then((_responseText) => {
|
|
4601
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4602
|
+
});
|
|
4603
|
+
}
|
|
4604
|
+
return Promise.resolve(null);
|
|
4605
|
+
}
|
|
4606
|
+
deleteCalendarDefinition(id) {
|
|
4607
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4608
|
+
if (id === undefined || id === null)
|
|
4609
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4610
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4611
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4612
|
+
let options_ = {
|
|
4613
|
+
method: "DELETE",
|
|
4614
|
+
headers: {
|
|
4615
|
+
"Accept": "application/octet-stream"
|
|
4616
|
+
}
|
|
4617
|
+
};
|
|
4618
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4619
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4620
|
+
}).then((_response) => {
|
|
4621
|
+
return this.processDeleteCalendarDefinition(_response);
|
|
4622
|
+
});
|
|
4623
|
+
}
|
|
4624
|
+
processDeleteCalendarDefinition(response) {
|
|
4625
|
+
const status = response.status;
|
|
4626
|
+
let _headers = {};
|
|
4627
|
+
if (response.headers && response.headers.forEach) {
|
|
4628
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4629
|
+
}
|
|
4630
|
+
;
|
|
4631
|
+
if (status === 200 || status === 206) {
|
|
4632
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
4633
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
4634
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
4635
|
+
if (fileName) {
|
|
4636
|
+
fileName = decodeURIComponent(fileName);
|
|
4637
|
+
}
|
|
4638
|
+
else {
|
|
4639
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
4640
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
4641
|
+
}
|
|
4642
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
4643
|
+
}
|
|
4644
|
+
else if (status !== 200 && status !== 204) {
|
|
4645
|
+
return response.text().then((_responseText) => {
|
|
4646
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4647
|
+
});
|
|
4648
|
+
}
|
|
4649
|
+
return Promise.resolve(null);
|
|
4650
|
+
}
|
|
4651
|
+
listResourceCalendarPeriods() {
|
|
4652
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
4653
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4654
|
+
let options_ = {
|
|
4655
|
+
method: "GET",
|
|
4656
|
+
headers: {
|
|
4657
|
+
"Accept": "application/json"
|
|
4658
|
+
}
|
|
4659
|
+
};
|
|
4660
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4661
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4662
|
+
}).then((_response) => {
|
|
4663
|
+
return this.processListResourceCalendarPeriods(_response);
|
|
4664
|
+
});
|
|
4665
|
+
}
|
|
4666
|
+
processListResourceCalendarPeriods(response) {
|
|
4667
|
+
const status = response.status;
|
|
4668
|
+
let _headers = {};
|
|
4669
|
+
if (response.headers && response.headers.forEach) {
|
|
4670
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4671
|
+
}
|
|
4672
|
+
;
|
|
4673
|
+
if (status === 200) {
|
|
4674
|
+
return response.text().then((_responseText) => {
|
|
4675
|
+
let result200 = null;
|
|
4676
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4677
|
+
return result200;
|
|
4678
|
+
});
|
|
4679
|
+
}
|
|
4680
|
+
else if (status !== 200 && status !== 204) {
|
|
4681
|
+
return response.text().then((_responseText) => {
|
|
4682
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4685
|
+
return Promise.resolve(null);
|
|
4686
|
+
}
|
|
4687
|
+
addResourceCalendarPeriod(request) {
|
|
4688
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
4689
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4690
|
+
const content_ = JSON.stringify(request);
|
|
4691
|
+
let options_ = {
|
|
4692
|
+
body: content_,
|
|
4693
|
+
method: "POST",
|
|
4694
|
+
headers: {
|
|
4695
|
+
"Content-Type": "application/json",
|
|
4696
|
+
"Accept": "application/json"
|
|
4697
|
+
}
|
|
4698
|
+
};
|
|
4699
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4700
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4701
|
+
}).then((_response) => {
|
|
4702
|
+
return this.processAddResourceCalendarPeriod(_response);
|
|
4703
|
+
});
|
|
4704
|
+
}
|
|
4705
|
+
processAddResourceCalendarPeriod(response) {
|
|
4706
|
+
const status = response.status;
|
|
4707
|
+
let _headers = {};
|
|
4708
|
+
if (response.headers && response.headers.forEach) {
|
|
4709
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4710
|
+
}
|
|
4711
|
+
;
|
|
4712
|
+
if (status === 200) {
|
|
4713
|
+
return response.text().then((_responseText) => {
|
|
4714
|
+
let result200 = null;
|
|
4715
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4716
|
+
return result200;
|
|
4717
|
+
});
|
|
4718
|
+
}
|
|
4719
|
+
else if (status !== 200 && status !== 204) {
|
|
4720
|
+
return response.text().then((_responseText) => {
|
|
4721
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4722
|
+
});
|
|
4723
|
+
}
|
|
4724
|
+
return Promise.resolve(null);
|
|
4725
|
+
}
|
|
4726
|
+
updateResourceCalendarPeriod(id, request) {
|
|
4727
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}";
|
|
4728
|
+
if (id === undefined || id === null)
|
|
4729
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4730
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4731
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4732
|
+
const content_ = JSON.stringify(request);
|
|
4733
|
+
let options_ = {
|
|
4734
|
+
body: content_,
|
|
4735
|
+
method: "PUT",
|
|
4736
|
+
headers: {
|
|
4737
|
+
"Content-Type": "application/json",
|
|
4738
|
+
"Accept": "application/json"
|
|
4739
|
+
}
|
|
4740
|
+
};
|
|
4741
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4742
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4743
|
+
}).then((_response) => {
|
|
4744
|
+
return this.processUpdateResourceCalendarPeriod(_response);
|
|
4745
|
+
});
|
|
4746
|
+
}
|
|
4747
|
+
processUpdateResourceCalendarPeriod(response) {
|
|
4748
|
+
const status = response.status;
|
|
4749
|
+
let _headers = {};
|
|
4750
|
+
if (response.headers && response.headers.forEach) {
|
|
4751
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4752
|
+
}
|
|
4753
|
+
;
|
|
4754
|
+
if (status === 200) {
|
|
4755
|
+
return response.text().then((_responseText) => {
|
|
4756
|
+
let result200 = null;
|
|
4757
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4758
|
+
return result200;
|
|
4759
|
+
});
|
|
4760
|
+
}
|
|
4761
|
+
else if (status !== 200 && status !== 204) {
|
|
4762
|
+
return response.text().then((_responseText) => {
|
|
4763
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4764
|
+
});
|
|
4765
|
+
}
|
|
4766
|
+
return Promise.resolve(null);
|
|
4767
|
+
}
|
|
4768
|
+
deleteResourceCalendarPeriod(id) {
|
|
4769
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}";
|
|
4770
|
+
if (id === undefined || id === null)
|
|
4771
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4772
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4773
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4774
|
+
let options_ = {
|
|
4775
|
+
method: "DELETE",
|
|
4776
|
+
headers: {
|
|
4777
|
+
"Accept": "application/octet-stream"
|
|
4778
|
+
}
|
|
4779
|
+
};
|
|
4780
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4781
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4782
|
+
}).then((_response) => {
|
|
4783
|
+
return this.processDeleteResourceCalendarPeriod(_response);
|
|
4784
|
+
});
|
|
4785
|
+
}
|
|
4786
|
+
processDeleteResourceCalendarPeriod(response) {
|
|
4787
|
+
const status = response.status;
|
|
4788
|
+
let _headers = {};
|
|
4789
|
+
if (response.headers && response.headers.forEach) {
|
|
4790
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4791
|
+
}
|
|
4792
|
+
;
|
|
4793
|
+
if (status === 200 || status === 206) {
|
|
4794
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
4795
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
4796
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
4797
|
+
if (fileName) {
|
|
4798
|
+
fileName = decodeURIComponent(fileName);
|
|
4799
|
+
}
|
|
4800
|
+
else {
|
|
4801
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
4802
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
4803
|
+
}
|
|
4804
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
4805
|
+
}
|
|
4806
|
+
else if (status !== 200 && status !== 204) {
|
|
4807
|
+
return response.text().then((_responseText) => {
|
|
4808
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4809
|
+
});
|
|
4810
|
+
}
|
|
4811
|
+
return Promise.resolve(null);
|
|
4812
|
+
}
|
|
4813
|
+
bulkAddResourceCalendarPeriods(request) {
|
|
4814
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/bulk";
|
|
4815
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4816
|
+
const content_ = JSON.stringify(request);
|
|
4817
|
+
let options_ = {
|
|
4818
|
+
body: content_,
|
|
4819
|
+
method: "POST",
|
|
4820
|
+
headers: {
|
|
4821
|
+
"Content-Type": "application/json",
|
|
4822
|
+
"Accept": "application/json"
|
|
4823
|
+
}
|
|
4824
|
+
};
|
|
4825
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4826
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4827
|
+
}).then((_response) => {
|
|
4828
|
+
return this.processBulkAddResourceCalendarPeriods(_response);
|
|
4829
|
+
});
|
|
4830
|
+
}
|
|
4831
|
+
processBulkAddResourceCalendarPeriods(response) {
|
|
4832
|
+
const status = response.status;
|
|
4833
|
+
let _headers = {};
|
|
4834
|
+
if (response.headers && response.headers.forEach) {
|
|
4835
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4836
|
+
}
|
|
4837
|
+
;
|
|
4838
|
+
if (status === 200) {
|
|
4839
|
+
return response.text().then((_responseText) => {
|
|
4840
|
+
let result200 = null;
|
|
4841
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4842
|
+
return result200;
|
|
4843
|
+
});
|
|
4844
|
+
}
|
|
4845
|
+
else if (status !== 200 && status !== 204) {
|
|
4846
|
+
return response.text().then((_responseText) => {
|
|
4847
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4848
|
+
});
|
|
4849
|
+
}
|
|
4850
|
+
return Promise.resolve(null);
|
|
4851
|
+
}
|
|
4852
|
+
copyResourceCalendarPeriod(id, request) {
|
|
4853
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}/copy";
|
|
4854
|
+
if (id === undefined || id === null)
|
|
4855
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4856
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4857
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4858
|
+
const content_ = JSON.stringify(request);
|
|
4859
|
+
let options_ = {
|
|
4860
|
+
body: content_,
|
|
4861
|
+
method: "POST",
|
|
4862
|
+
headers: {
|
|
4863
|
+
"Content-Type": "application/json",
|
|
4864
|
+
"Accept": "application/json"
|
|
4865
|
+
}
|
|
4866
|
+
};
|
|
4867
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4868
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4869
|
+
}).then((_response) => {
|
|
4870
|
+
return this.processCopyResourceCalendarPeriod(_response);
|
|
4871
|
+
});
|
|
4872
|
+
}
|
|
4873
|
+
processCopyResourceCalendarPeriod(response) {
|
|
4874
|
+
const status = response.status;
|
|
4875
|
+
let _headers = {};
|
|
4876
|
+
if (response.headers && response.headers.forEach) {
|
|
4877
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4878
|
+
}
|
|
4879
|
+
;
|
|
4880
|
+
if (status === 200) {
|
|
4881
|
+
return response.text().then((_responseText) => {
|
|
4882
|
+
let result200 = null;
|
|
4883
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4884
|
+
return result200;
|
|
4885
|
+
});
|
|
4886
|
+
}
|
|
4887
|
+
else if (status !== 200 && status !== 204) {
|
|
4888
|
+
return response.text().then((_responseText) => {
|
|
4889
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4890
|
+
});
|
|
4891
|
+
}
|
|
4892
|
+
return Promise.resolve(null);
|
|
4893
|
+
}
|
|
4894
|
+
migrateResourceCapacity() {
|
|
4895
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate";
|
|
4896
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4897
|
+
let options_ = {
|
|
4898
|
+
method: "POST",
|
|
4899
|
+
headers: {
|
|
4900
|
+
"Accept": "application/json"
|
|
4901
|
+
}
|
|
4902
|
+
};
|
|
4903
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4904
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4905
|
+
}).then((_response) => {
|
|
4906
|
+
return this.processMigrateResourceCapacity(_response);
|
|
4907
|
+
});
|
|
4908
|
+
}
|
|
4909
|
+
processMigrateResourceCapacity(response) {
|
|
4910
|
+
const status = response.status;
|
|
4911
|
+
let _headers = {};
|
|
4912
|
+
if (response.headers && response.headers.forEach) {
|
|
4913
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4914
|
+
}
|
|
4915
|
+
;
|
|
4916
|
+
if (status === 200) {
|
|
4917
|
+
return response.text().then((_responseText) => {
|
|
4918
|
+
let result200 = null;
|
|
4919
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4920
|
+
return result200;
|
|
4921
|
+
});
|
|
4922
|
+
}
|
|
4923
|
+
else if (status !== 200 && status !== 204) {
|
|
4924
|
+
return response.text().then((_responseText) => {
|
|
4925
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4926
|
+
});
|
|
4927
|
+
}
|
|
4928
|
+
return Promise.resolve(null);
|
|
4929
|
+
}
|
|
4930
|
+
migrateCalendarIds() {
|
|
4931
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate-ids";
|
|
4932
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4933
|
+
let options_ = {
|
|
4934
|
+
method: "POST",
|
|
4935
|
+
headers: {
|
|
4936
|
+
"Accept": "application/json"
|
|
4937
|
+
}
|
|
4938
|
+
};
|
|
4939
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4940
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4941
|
+
}).then((_response) => {
|
|
4942
|
+
return this.processMigrateCalendarIds(_response);
|
|
4943
|
+
});
|
|
4944
|
+
}
|
|
4945
|
+
processMigrateCalendarIds(response) {
|
|
4946
|
+
const status = response.status;
|
|
4947
|
+
let _headers = {};
|
|
4948
|
+
if (response.headers && response.headers.forEach) {
|
|
4949
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4950
|
+
}
|
|
4951
|
+
;
|
|
4952
|
+
if (status === 200) {
|
|
4953
|
+
return response.text().then((_responseText) => {
|
|
4954
|
+
let result200 = null;
|
|
4955
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4956
|
+
return result200;
|
|
4957
|
+
});
|
|
4958
|
+
}
|
|
4959
|
+
else if (status !== 200 && status !== 204) {
|
|
4960
|
+
return response.text().then((_responseText) => {
|
|
4961
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4962
|
+
});
|
|
4963
|
+
}
|
|
4964
|
+
return Promise.resolve(null);
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4483
4967
|
export class KpiResourceClient extends AuthorizedApiBase {
|
|
4484
4968
|
constructor(configuration, baseUrl, http) {
|
|
4485
4969
|
super(configuration);
|
|
@@ -21608,12 +22092,8 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
21608
22092
|
}
|
|
21609
22093
|
return Promise.resolve(null);
|
|
21610
22094
|
}
|
|
21611
|
-
listMaterialChecks(
|
|
21612
|
-
let url_ = this.baseUrl + "/inspect/match/material-checks/list
|
|
21613
|
-
if (pageSize !== undefined && pageSize !== null)
|
|
21614
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21615
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
21616
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
22095
|
+
listMaterialChecks(request) {
|
|
22096
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/list";
|
|
21617
22097
|
url_ = url_.replace(/[?&]$/, "");
|
|
21618
22098
|
const content_ = JSON.stringify(request);
|
|
21619
22099
|
let options_ = {
|