@ignos/api-client 20250729.0.12224-alpha → 20250805.0.12267-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 +106 -24
- package/lib/ignosportal-api.js +416 -27
- package/package.json +1 -1
- package/src/ignosportal-api.ts +508 -48
package/lib/ignosportal-api.js
CHANGED
|
@@ -16819,7 +16819,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16819
16819
|
this.http = http ? http : window;
|
|
16820
16820
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
16821
16821
|
}
|
|
16822
|
-
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber,
|
|
16822
|
+
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16823
16823
|
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
16824
16824
|
if (pageSize === null)
|
|
16825
16825
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -16831,8 +16831,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16831
16831
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
16832
16832
|
if (partNumber !== undefined && partNumber !== null)
|
|
16833
16833
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
16834
|
-
if (partName !== undefined && partName !== null)
|
|
16835
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
16836
16834
|
if (partRevision !== undefined && partRevision !== null)
|
|
16837
16835
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
16838
16836
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18302,7 +18300,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18302
18300
|
}
|
|
18303
18301
|
return Promise.resolve(null);
|
|
18304
18302
|
}
|
|
18305
|
-
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber,
|
|
18303
|
+
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18306
18304
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
18307
18305
|
if (pageSize === null)
|
|
18308
18306
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18314,8 +18312,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18314
18312
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18315
18313
|
if (partNumber !== undefined && partNumber !== null)
|
|
18316
18314
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18317
|
-
if (partName !== undefined && partName !== null)
|
|
18318
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18319
18315
|
if (partRevision !== undefined && partRevision !== null)
|
|
18320
18316
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18321
18317
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18568,7 +18564,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18568
18564
|
}
|
|
18569
18565
|
return Promise.resolve(null);
|
|
18570
18566
|
}
|
|
18571
|
-
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber,
|
|
18567
|
+
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18572
18568
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
18573
18569
|
if (pageSize === null)
|
|
18574
18570
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18580,8 +18576,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18580
18576
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18581
18577
|
if (partNumber !== undefined && partNumber !== null)
|
|
18582
18578
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18583
|
-
if (partName !== undefined && partName !== null)
|
|
18584
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18585
18579
|
if (partRevision !== undefined && partRevision !== null)
|
|
18586
18580
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18587
18581
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -22728,6 +22722,273 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22728
22722
|
}
|
|
22729
22723
|
return Promise.resolve(null);
|
|
22730
22724
|
}
|
|
22725
|
+
getDiscussionMessages(id) {
|
|
22726
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22727
|
+
if (id === undefined || id === null)
|
|
22728
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22729
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22730
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22731
|
+
let options_ = {
|
|
22732
|
+
method: "GET",
|
|
22733
|
+
headers: {
|
|
22734
|
+
"Accept": "application/json"
|
|
22735
|
+
}
|
|
22736
|
+
};
|
|
22737
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22738
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22739
|
+
}).then((_response) => {
|
|
22740
|
+
return this.processGetDiscussionMessages(_response);
|
|
22741
|
+
});
|
|
22742
|
+
}
|
|
22743
|
+
processGetDiscussionMessages(response) {
|
|
22744
|
+
const status = response.status;
|
|
22745
|
+
let _headers = {};
|
|
22746
|
+
if (response.headers && response.headers.forEach) {
|
|
22747
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22748
|
+
}
|
|
22749
|
+
;
|
|
22750
|
+
if (status === 200) {
|
|
22751
|
+
return response.text().then((_responseText) => {
|
|
22752
|
+
let result200 = null;
|
|
22753
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22754
|
+
if (Array.isArray(resultData200)) {
|
|
22755
|
+
result200 = [];
|
|
22756
|
+
for (let item of resultData200)
|
|
22757
|
+
result200.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
22758
|
+
}
|
|
22759
|
+
return result200;
|
|
22760
|
+
});
|
|
22761
|
+
}
|
|
22762
|
+
else if (status !== 200 && status !== 204) {
|
|
22763
|
+
return response.text().then((_responseText) => {
|
|
22764
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22765
|
+
});
|
|
22766
|
+
}
|
|
22767
|
+
return Promise.resolve(null);
|
|
22768
|
+
}
|
|
22769
|
+
addDiscussionMessage(id, request) {
|
|
22770
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22771
|
+
if (id === undefined || id === null)
|
|
22772
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22773
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22774
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22775
|
+
const content_ = JSON.stringify(request);
|
|
22776
|
+
let options_ = {
|
|
22777
|
+
body: content_,
|
|
22778
|
+
method: "POST",
|
|
22779
|
+
headers: {
|
|
22780
|
+
"Content-Type": "application/json",
|
|
22781
|
+
}
|
|
22782
|
+
};
|
|
22783
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22784
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22785
|
+
}).then((_response) => {
|
|
22786
|
+
return this.processAddDiscussionMessage(_response);
|
|
22787
|
+
});
|
|
22788
|
+
}
|
|
22789
|
+
processAddDiscussionMessage(response) {
|
|
22790
|
+
const status = response.status;
|
|
22791
|
+
let _headers = {};
|
|
22792
|
+
if (response.headers && response.headers.forEach) {
|
|
22793
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22794
|
+
}
|
|
22795
|
+
;
|
|
22796
|
+
if (status === 204) {
|
|
22797
|
+
return response.text().then((_responseText) => {
|
|
22798
|
+
return;
|
|
22799
|
+
});
|
|
22800
|
+
}
|
|
22801
|
+
else if (status !== 200 && status !== 204) {
|
|
22802
|
+
return response.text().then((_responseText) => {
|
|
22803
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22804
|
+
});
|
|
22805
|
+
}
|
|
22806
|
+
return Promise.resolve(null);
|
|
22807
|
+
}
|
|
22808
|
+
updateMessage(id, messageId, content) {
|
|
22809
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22810
|
+
if (id === undefined || id === null)
|
|
22811
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22812
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22813
|
+
if (messageId === undefined || messageId === null)
|
|
22814
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22815
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22816
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22817
|
+
const content_ = JSON.stringify(content);
|
|
22818
|
+
let options_ = {
|
|
22819
|
+
body: content_,
|
|
22820
|
+
method: "PUT",
|
|
22821
|
+
headers: {
|
|
22822
|
+
"Content-Type": "application/json",
|
|
22823
|
+
"Accept": "application/octet-stream"
|
|
22824
|
+
}
|
|
22825
|
+
};
|
|
22826
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22827
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22828
|
+
}).then((_response) => {
|
|
22829
|
+
return this.processUpdateMessage(_response);
|
|
22830
|
+
});
|
|
22831
|
+
}
|
|
22832
|
+
processUpdateMessage(response) {
|
|
22833
|
+
const status = response.status;
|
|
22834
|
+
let _headers = {};
|
|
22835
|
+
if (response.headers && response.headers.forEach) {
|
|
22836
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22837
|
+
}
|
|
22838
|
+
;
|
|
22839
|
+
if (status === 200 || status === 206) {
|
|
22840
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22841
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22842
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22843
|
+
if (fileName) {
|
|
22844
|
+
fileName = decodeURIComponent(fileName);
|
|
22845
|
+
}
|
|
22846
|
+
else {
|
|
22847
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22848
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22849
|
+
}
|
|
22850
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22851
|
+
}
|
|
22852
|
+
else if (status !== 200 && status !== 204) {
|
|
22853
|
+
return response.text().then((_responseText) => {
|
|
22854
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22855
|
+
});
|
|
22856
|
+
}
|
|
22857
|
+
return Promise.resolve(null);
|
|
22858
|
+
}
|
|
22859
|
+
deleteMessage(id, messageId) {
|
|
22860
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22861
|
+
if (id === undefined || id === null)
|
|
22862
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22863
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22864
|
+
if (messageId === undefined || messageId === null)
|
|
22865
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22866
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22867
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22868
|
+
let options_ = {
|
|
22869
|
+
method: "DELETE",
|
|
22870
|
+
headers: {
|
|
22871
|
+
"Accept": "application/octet-stream"
|
|
22872
|
+
}
|
|
22873
|
+
};
|
|
22874
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22875
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22876
|
+
}).then((_response) => {
|
|
22877
|
+
return this.processDeleteMessage(_response);
|
|
22878
|
+
});
|
|
22879
|
+
}
|
|
22880
|
+
processDeleteMessage(response) {
|
|
22881
|
+
const status = response.status;
|
|
22882
|
+
let _headers = {};
|
|
22883
|
+
if (response.headers && response.headers.forEach) {
|
|
22884
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22885
|
+
}
|
|
22886
|
+
;
|
|
22887
|
+
if (status === 200 || status === 206) {
|
|
22888
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22889
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22890
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22891
|
+
if (fileName) {
|
|
22892
|
+
fileName = decodeURIComponent(fileName);
|
|
22893
|
+
}
|
|
22894
|
+
else {
|
|
22895
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22896
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22897
|
+
}
|
|
22898
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22899
|
+
}
|
|
22900
|
+
else if (status !== 200 && status !== 204) {
|
|
22901
|
+
return response.text().then((_responseText) => {
|
|
22902
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22903
|
+
});
|
|
22904
|
+
}
|
|
22905
|
+
return Promise.resolve(null);
|
|
22906
|
+
}
|
|
22907
|
+
getLastRead(id, operationId, resourceId, userUpn) {
|
|
22908
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
22909
|
+
if (id === undefined || id === null)
|
|
22910
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22911
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22912
|
+
if (operationId !== undefined && operationId !== null)
|
|
22913
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
22914
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
22915
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
22916
|
+
if (userUpn !== undefined && userUpn !== null)
|
|
22917
|
+
url_ += "userUpn=" + encodeURIComponent("" + userUpn) + "&";
|
|
22918
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22919
|
+
let options_ = {
|
|
22920
|
+
method: "GET",
|
|
22921
|
+
headers: {
|
|
22922
|
+
"Accept": "application/json"
|
|
22923
|
+
}
|
|
22924
|
+
};
|
|
22925
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22926
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22927
|
+
}).then((_response) => {
|
|
22928
|
+
return this.processGetLastRead(_response);
|
|
22929
|
+
});
|
|
22930
|
+
}
|
|
22931
|
+
processGetLastRead(response) {
|
|
22932
|
+
const status = response.status;
|
|
22933
|
+
let _headers = {};
|
|
22934
|
+
if (response.headers && response.headers.forEach) {
|
|
22935
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22936
|
+
}
|
|
22937
|
+
;
|
|
22938
|
+
if (status === 200) {
|
|
22939
|
+
return response.text().then((_responseText) => {
|
|
22940
|
+
let result200 = null;
|
|
22941
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22942
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
22943
|
+
return result200;
|
|
22944
|
+
});
|
|
22945
|
+
}
|
|
22946
|
+
else if (status !== 200 && status !== 204) {
|
|
22947
|
+
return response.text().then((_responseText) => {
|
|
22948
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22949
|
+
});
|
|
22950
|
+
}
|
|
22951
|
+
return Promise.resolve(null);
|
|
22952
|
+
}
|
|
22953
|
+
setLastRead(id, request) {
|
|
22954
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
22955
|
+
if (id === undefined || id === null)
|
|
22956
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22957
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22958
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22959
|
+
const content_ = JSON.stringify(request);
|
|
22960
|
+
let options_ = {
|
|
22961
|
+
body: content_,
|
|
22962
|
+
method: "POST",
|
|
22963
|
+
headers: {
|
|
22964
|
+
"Content-Type": "application/json",
|
|
22965
|
+
}
|
|
22966
|
+
};
|
|
22967
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22968
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22969
|
+
}).then((_response) => {
|
|
22970
|
+
return this.processSetLastRead(_response);
|
|
22971
|
+
});
|
|
22972
|
+
}
|
|
22973
|
+
processSetLastRead(response) {
|
|
22974
|
+
const status = response.status;
|
|
22975
|
+
let _headers = {};
|
|
22976
|
+
if (response.headers && response.headers.forEach) {
|
|
22977
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22978
|
+
}
|
|
22979
|
+
;
|
|
22980
|
+
if (status === 204) {
|
|
22981
|
+
return response.text().then((_responseText) => {
|
|
22982
|
+
return;
|
|
22983
|
+
});
|
|
22984
|
+
}
|
|
22985
|
+
else if (status !== 200 && status !== 204) {
|
|
22986
|
+
return response.text().then((_responseText) => {
|
|
22987
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22988
|
+
});
|
|
22989
|
+
}
|
|
22990
|
+
return Promise.resolve(null);
|
|
22991
|
+
}
|
|
22731
22992
|
}
|
|
22732
22993
|
export class AzureRegionDto {
|
|
22733
22994
|
constructor(data) {
|
|
@@ -41273,7 +41534,6 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41273
41534
|
this.pageSize = _data["pageSize"];
|
|
41274
41535
|
this.customerId = _data["customerId"];
|
|
41275
41536
|
this.customerName = _data["customerName"];
|
|
41276
|
-
this.partName = _data["partName"];
|
|
41277
41537
|
this.partNumber = _data["partNumber"];
|
|
41278
41538
|
this.partRevision = _data["partRevision"];
|
|
41279
41539
|
this.drawing = _data["drawing"];
|
|
@@ -41293,7 +41553,6 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41293
41553
|
data["pageSize"] = this.pageSize;
|
|
41294
41554
|
data["customerId"] = this.customerId;
|
|
41295
41555
|
data["customerName"] = this.customerName;
|
|
41296
|
-
data["partName"] = this.partName;
|
|
41297
41556
|
data["partNumber"] = this.partNumber;
|
|
41298
41557
|
data["partRevision"] = this.partRevision;
|
|
41299
41558
|
data["drawing"] = this.drawing;
|
|
@@ -42575,7 +42834,6 @@ export class ImportMeasurementFormSchema {
|
|
|
42575
42834
|
this.customerId = _data["customerId"];
|
|
42576
42835
|
this.customerName = _data["customerName"];
|
|
42577
42836
|
this.partNumber = _data["partNumber"];
|
|
42578
|
-
this.partName = _data["partName"];
|
|
42579
42837
|
this.partRevision = _data["partRevision"];
|
|
42580
42838
|
this.drawing = _data["drawing"];
|
|
42581
42839
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42608,7 +42866,6 @@ export class ImportMeasurementFormSchema {
|
|
|
42608
42866
|
data["customerId"] = this.customerId;
|
|
42609
42867
|
data["customerName"] = this.customerName;
|
|
42610
42868
|
data["partNumber"] = this.partNumber;
|
|
42611
|
-
data["partName"] = this.partName;
|
|
42612
42869
|
data["partRevision"] = this.partRevision;
|
|
42613
42870
|
data["drawing"] = this.drawing;
|
|
42614
42871
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42644,7 +42901,6 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42644
42901
|
if (_data) {
|
|
42645
42902
|
this.customerId = _data["customerId"];
|
|
42646
42903
|
this.partNumber = _data["partNumber"];
|
|
42647
|
-
this.partName = _data["partName"];
|
|
42648
42904
|
this.partRevision = _data["partRevision"];
|
|
42649
42905
|
this.drawing = _data["drawing"];
|
|
42650
42906
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42661,7 +42917,6 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42661
42917
|
data = typeof data === 'object' ? data : {};
|
|
42662
42918
|
data["customerId"] = this.customerId;
|
|
42663
42919
|
data["partNumber"] = this.partNumber;
|
|
42664
|
-
data["partName"] = this.partName;
|
|
42665
42920
|
data["partRevision"] = this.partRevision;
|
|
42666
42921
|
data["drawing"] = this.drawing;
|
|
42667
42922
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42886,7 +43141,6 @@ export class MeasurementFormNeedDto {
|
|
|
42886
43141
|
this.customerName = _data["customerName"];
|
|
42887
43142
|
this.partNumber = _data["partNumber"];
|
|
42888
43143
|
this.partRevision = _data["partRevision"];
|
|
42889
|
-
this.partName = _data["partName"];
|
|
42890
43144
|
this.drawing = _data["drawing"];
|
|
42891
43145
|
this.drawingRevision = _data["drawingRevision"];
|
|
42892
43146
|
this.workorder = _data["workorder"];
|
|
@@ -42914,7 +43168,6 @@ export class MeasurementFormNeedDto {
|
|
|
42914
43168
|
data["customerName"] = this.customerName;
|
|
42915
43169
|
data["partNumber"] = this.partNumber;
|
|
42916
43170
|
data["partRevision"] = this.partRevision;
|
|
42917
|
-
data["partName"] = this.partName;
|
|
42918
43171
|
data["drawing"] = this.drawing;
|
|
42919
43172
|
data["drawingRevision"] = this.drawingRevision;
|
|
42920
43173
|
data["workorder"] = this.workorder;
|
|
@@ -42943,7 +43196,6 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
42943
43196
|
this.pageSize = _data["pageSize"];
|
|
42944
43197
|
this.customerId = _data["customerId"];
|
|
42945
43198
|
this.customerName = _data["customerName"];
|
|
42946
|
-
this.partName = _data["partName"];
|
|
42947
43199
|
this.partNumber = _data["partNumber"];
|
|
42948
43200
|
this.partRevision = _data["partRevision"];
|
|
42949
43201
|
this.drawing = _data["drawing"];
|
|
@@ -42964,7 +43216,6 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
42964
43216
|
data["pageSize"] = this.pageSize;
|
|
42965
43217
|
data["customerId"] = this.customerId;
|
|
42966
43218
|
data["customerName"] = this.customerName;
|
|
42967
|
-
data["partName"] = this.partName;
|
|
42968
43219
|
data["partNumber"] = this.partNumber;
|
|
42969
43220
|
data["partRevision"] = this.partRevision;
|
|
42970
43221
|
data["drawing"] = this.drawing;
|
|
@@ -43121,7 +43372,6 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43121
43372
|
this.customerId = _data["customerId"];
|
|
43122
43373
|
this.customerName = _data["customerName"];
|
|
43123
43374
|
this.partNumber = _data["partNumber"];
|
|
43124
|
-
this.partName = _data["partName"];
|
|
43125
43375
|
this.partRevision = _data["partRevision"];
|
|
43126
43376
|
this.drawing = _data["drawing"];
|
|
43127
43377
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43141,7 +43391,6 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43141
43391
|
data["customerId"] = this.customerId;
|
|
43142
43392
|
data["customerName"] = this.customerName;
|
|
43143
43393
|
data["partNumber"] = this.partNumber;
|
|
43144
|
-
data["partName"] = this.partName;
|
|
43145
43394
|
data["partRevision"] = this.partRevision;
|
|
43146
43395
|
data["drawing"] = this.drawing;
|
|
43147
43396
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43294,7 +43543,6 @@ export class SchemaFeedbackDto {
|
|
|
43294
43543
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
43295
43544
|
this.partNumber = _data["partNumber"];
|
|
43296
43545
|
this.partRevision = _data["partRevision"];
|
|
43297
|
-
this.partName = _data["partName"];
|
|
43298
43546
|
this.drawing = _data["drawing"];
|
|
43299
43547
|
this.drawingRevision = _data["drawingRevision"];
|
|
43300
43548
|
}
|
|
@@ -43321,7 +43569,6 @@ export class SchemaFeedbackDto {
|
|
|
43321
43569
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
43322
43570
|
data["partNumber"] = this.partNumber;
|
|
43323
43571
|
data["partRevision"] = this.partRevision;
|
|
43324
|
-
data["partName"] = this.partName;
|
|
43325
43572
|
data["drawing"] = this.drawing;
|
|
43326
43573
|
data["drawingRevision"] = this.drawingRevision;
|
|
43327
43574
|
return data;
|
|
@@ -43479,7 +43726,6 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43479
43726
|
if (_data) {
|
|
43480
43727
|
this.id = _data["id"];
|
|
43481
43728
|
this.readonly = _data["readonly"];
|
|
43482
|
-
this.partName = _data["partName"];
|
|
43483
43729
|
this.partNumber = _data["partNumber"];
|
|
43484
43730
|
this.partRevision = _data["partRevision"];
|
|
43485
43731
|
this.drawing = _data["drawing"];
|
|
@@ -43508,7 +43754,6 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43508
43754
|
data = typeof data === 'object' ? data : {};
|
|
43509
43755
|
data["id"] = this.id;
|
|
43510
43756
|
data["readonly"] = this.readonly;
|
|
43511
|
-
data["partName"] = this.partName;
|
|
43512
43757
|
data["partNumber"] = this.partNumber;
|
|
43513
43758
|
data["partRevision"] = this.partRevision;
|
|
43514
43759
|
data["drawing"] = this.drawing;
|
|
@@ -43717,7 +43962,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43717
43962
|
this.id = _data["id"];
|
|
43718
43963
|
this.readonly = _data["readonly"];
|
|
43719
43964
|
this.partNumber = _data["partNumber"];
|
|
43720
|
-
this.partName = _data["partName"];
|
|
43721
43965
|
this.partRevision = _data["partRevision"];
|
|
43722
43966
|
this.drawing = _data["drawing"];
|
|
43723
43967
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43757,7 +44001,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43757
44001
|
data["id"] = this.id;
|
|
43758
44002
|
data["readonly"] = this.readonly;
|
|
43759
44003
|
data["partNumber"] = this.partNumber;
|
|
43760
|
-
data["partName"] = this.partName;
|
|
43761
44004
|
data["partRevision"] = this.partRevision;
|
|
43762
44005
|
data["drawing"] = this.drawing;
|
|
43763
44006
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -46621,6 +46864,152 @@ export class CreateWorkOrderMapping {
|
|
|
46621
46864
|
return data;
|
|
46622
46865
|
}
|
|
46623
46866
|
}
|
|
46867
|
+
export class WorkorderDiscussionMessageDto {
|
|
46868
|
+
constructor(data) {
|
|
46869
|
+
if (data) {
|
|
46870
|
+
for (var property in data) {
|
|
46871
|
+
if (data.hasOwnProperty(property))
|
|
46872
|
+
this[property] = data[property];
|
|
46873
|
+
}
|
|
46874
|
+
}
|
|
46875
|
+
}
|
|
46876
|
+
init(_data) {
|
|
46877
|
+
if (_data) {
|
|
46878
|
+
this.workorderId = _data["workorderId"];
|
|
46879
|
+
this.companyId = _data["companyId"];
|
|
46880
|
+
this.content = _data["content"];
|
|
46881
|
+
this.senderUpn = _data["senderUpn"];
|
|
46882
|
+
this.senderName = _data["senderName"];
|
|
46883
|
+
this.operationId = _data["operationId"];
|
|
46884
|
+
this.operationName = _data["operationName"];
|
|
46885
|
+
this.resourceId = _data["resourceId"];
|
|
46886
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46887
|
+
}
|
|
46888
|
+
}
|
|
46889
|
+
static fromJS(data) {
|
|
46890
|
+
data = typeof data === 'object' ? data : {};
|
|
46891
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
46892
|
+
result.init(data);
|
|
46893
|
+
return result;
|
|
46894
|
+
}
|
|
46895
|
+
toJSON(data) {
|
|
46896
|
+
data = typeof data === 'object' ? data : {};
|
|
46897
|
+
data["workorderId"] = this.workorderId;
|
|
46898
|
+
data["companyId"] = this.companyId;
|
|
46899
|
+
data["content"] = this.content;
|
|
46900
|
+
data["senderUpn"] = this.senderUpn;
|
|
46901
|
+
data["senderName"] = this.senderName;
|
|
46902
|
+
data["operationId"] = this.operationId;
|
|
46903
|
+
data["operationName"] = this.operationName;
|
|
46904
|
+
data["resourceId"] = this.resourceId;
|
|
46905
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46906
|
+
return data;
|
|
46907
|
+
}
|
|
46908
|
+
}
|
|
46909
|
+
export class AddDiscussionMessageRequest {
|
|
46910
|
+
constructor(data) {
|
|
46911
|
+
if (data) {
|
|
46912
|
+
for (var property in data) {
|
|
46913
|
+
if (data.hasOwnProperty(property))
|
|
46914
|
+
this[property] = data[property];
|
|
46915
|
+
}
|
|
46916
|
+
}
|
|
46917
|
+
}
|
|
46918
|
+
init(_data) {
|
|
46919
|
+
if (_data) {
|
|
46920
|
+
this.companyId = _data["companyId"];
|
|
46921
|
+
this.message = _data["message"];
|
|
46922
|
+
this.senderUpn = _data["senderUpn"];
|
|
46923
|
+
this.senderName = _data["senderName"];
|
|
46924
|
+
this.operationId = _data["operationId"];
|
|
46925
|
+
this.operationName = _data["operationName"];
|
|
46926
|
+
this.resourceId = _data["resourceId"];
|
|
46927
|
+
}
|
|
46928
|
+
}
|
|
46929
|
+
static fromJS(data) {
|
|
46930
|
+
data = typeof data === 'object' ? data : {};
|
|
46931
|
+
let result = new AddDiscussionMessageRequest();
|
|
46932
|
+
result.init(data);
|
|
46933
|
+
return result;
|
|
46934
|
+
}
|
|
46935
|
+
toJSON(data) {
|
|
46936
|
+
data = typeof data === 'object' ? data : {};
|
|
46937
|
+
data["companyId"] = this.companyId;
|
|
46938
|
+
data["message"] = this.message;
|
|
46939
|
+
data["senderUpn"] = this.senderUpn;
|
|
46940
|
+
data["senderName"] = this.senderName;
|
|
46941
|
+
data["operationId"] = this.operationId;
|
|
46942
|
+
data["operationName"] = this.operationName;
|
|
46943
|
+
data["resourceId"] = this.resourceId;
|
|
46944
|
+
return data;
|
|
46945
|
+
}
|
|
46946
|
+
}
|
|
46947
|
+
export class WorkorderDiscussionReadStatusDto {
|
|
46948
|
+
constructor(data) {
|
|
46949
|
+
if (data) {
|
|
46950
|
+
for (var property in data) {
|
|
46951
|
+
if (data.hasOwnProperty(property))
|
|
46952
|
+
this[property] = data[property];
|
|
46953
|
+
}
|
|
46954
|
+
}
|
|
46955
|
+
}
|
|
46956
|
+
init(_data) {
|
|
46957
|
+
if (_data) {
|
|
46958
|
+
this.workorderId = _data["workorderId"];
|
|
46959
|
+
this.operationId = _data["operationId"];
|
|
46960
|
+
this.resourceId = _data["resourceId"];
|
|
46961
|
+
this.userUpn = _data["userUpn"];
|
|
46962
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : undefined;
|
|
46963
|
+
}
|
|
46964
|
+
}
|
|
46965
|
+
static fromJS(data) {
|
|
46966
|
+
data = typeof data === 'object' ? data : {};
|
|
46967
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
46968
|
+
result.init(data);
|
|
46969
|
+
return result;
|
|
46970
|
+
}
|
|
46971
|
+
toJSON(data) {
|
|
46972
|
+
data = typeof data === 'object' ? data : {};
|
|
46973
|
+
data["workorderId"] = this.workorderId;
|
|
46974
|
+
data["operationId"] = this.operationId;
|
|
46975
|
+
data["resourceId"] = this.resourceId;
|
|
46976
|
+
data["userUpn"] = this.userUpn;
|
|
46977
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : undefined;
|
|
46978
|
+
return data;
|
|
46979
|
+
}
|
|
46980
|
+
}
|
|
46981
|
+
export class SetDiscussionLastRead {
|
|
46982
|
+
constructor(data) {
|
|
46983
|
+
if (data) {
|
|
46984
|
+
for (var property in data) {
|
|
46985
|
+
if (data.hasOwnProperty(property))
|
|
46986
|
+
this[property] = data[property];
|
|
46987
|
+
}
|
|
46988
|
+
}
|
|
46989
|
+
}
|
|
46990
|
+
init(_data) {
|
|
46991
|
+
if (_data) {
|
|
46992
|
+
this.workorderId = _data["workorderId"];
|
|
46993
|
+
this.operationId = _data["operationId"];
|
|
46994
|
+
this.resourceId = _data["resourceId"];
|
|
46995
|
+
this.userUpn = _data["userUpn"];
|
|
46996
|
+
}
|
|
46997
|
+
}
|
|
46998
|
+
static fromJS(data) {
|
|
46999
|
+
data = typeof data === 'object' ? data : {};
|
|
47000
|
+
let result = new SetDiscussionLastRead();
|
|
47001
|
+
result.init(data);
|
|
47002
|
+
return result;
|
|
47003
|
+
}
|
|
47004
|
+
toJSON(data) {
|
|
47005
|
+
data = typeof data === 'object' ? data : {};
|
|
47006
|
+
data["workorderId"] = this.workorderId;
|
|
47007
|
+
data["operationId"] = this.operationId;
|
|
47008
|
+
data["resourceId"] = this.resourceId;
|
|
47009
|
+
data["userUpn"] = this.userUpn;
|
|
47010
|
+
return data;
|
|
47011
|
+
}
|
|
47012
|
+
}
|
|
46624
47013
|
function formatDate(d) {
|
|
46625
47014
|
return d.getFullYear() + '-' +
|
|
46626
47015
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|