@ignos/api-client 20250807.0.12317 → 20250808.0.12338
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 +116 -6
- package/lib/ignosportal-api.js +434 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +536 -6
package/lib/ignosportal-api.js
CHANGED
|
@@ -16976,7 +16976,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16976
16976
|
this.http = http ? http : window;
|
|
16977
16977
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
16978
16978
|
}
|
|
16979
|
-
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16979
|
+
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16980
16980
|
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
16981
16981
|
if (pageSize === null)
|
|
16982
16982
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -16988,6 +16988,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16988
16988
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
16989
16989
|
if (partNumber !== undefined && partNumber !== null)
|
|
16990
16990
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
16991
|
+
if (partName !== undefined && partName !== null)
|
|
16992
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
16991
16993
|
if (partRevision !== undefined && partRevision !== null)
|
|
16992
16994
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
16993
16995
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18457,7 +18459,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18457
18459
|
}
|
|
18458
18460
|
return Promise.resolve(null);
|
|
18459
18461
|
}
|
|
18460
|
-
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18462
|
+
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18461
18463
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
18462
18464
|
if (pageSize === null)
|
|
18463
18465
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18469,6 +18471,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18469
18471
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18470
18472
|
if (partNumber !== undefined && partNumber !== null)
|
|
18471
18473
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18474
|
+
if (partName !== undefined && partName !== null)
|
|
18475
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18472
18476
|
if (partRevision !== undefined && partRevision !== null)
|
|
18473
18477
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18474
18478
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18721,7 +18725,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18721
18725
|
}
|
|
18722
18726
|
return Promise.resolve(null);
|
|
18723
18727
|
}
|
|
18724
|
-
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18728
|
+
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18725
18729
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
18726
18730
|
if (pageSize === null)
|
|
18727
18731
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18733,6 +18737,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18733
18737
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18734
18738
|
if (partNumber !== undefined && partNumber !== null)
|
|
18735
18739
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18740
|
+
if (partName !== undefined && partName !== null)
|
|
18741
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18736
18742
|
if (partRevision !== undefined && partRevision !== null)
|
|
18737
18743
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18738
18744
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -22879,6 +22885,275 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22879
22885
|
}
|
|
22880
22886
|
return Promise.resolve(null);
|
|
22881
22887
|
}
|
|
22888
|
+
getDiscussionMessages(id) {
|
|
22889
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22890
|
+
if (id === undefined || id === null)
|
|
22891
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22892
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22893
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22894
|
+
let options_ = {
|
|
22895
|
+
method: "GET",
|
|
22896
|
+
headers: {
|
|
22897
|
+
"Accept": "application/json"
|
|
22898
|
+
}
|
|
22899
|
+
};
|
|
22900
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22901
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22902
|
+
}).then((_response) => {
|
|
22903
|
+
return this.processGetDiscussionMessages(_response);
|
|
22904
|
+
});
|
|
22905
|
+
}
|
|
22906
|
+
processGetDiscussionMessages(response) {
|
|
22907
|
+
const status = response.status;
|
|
22908
|
+
let _headers = {};
|
|
22909
|
+
if (response.headers && response.headers.forEach) {
|
|
22910
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22911
|
+
}
|
|
22912
|
+
;
|
|
22913
|
+
if (status === 200) {
|
|
22914
|
+
return response.text().then((_responseText) => {
|
|
22915
|
+
let result200 = null;
|
|
22916
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22917
|
+
if (Array.isArray(resultData200)) {
|
|
22918
|
+
result200 = [];
|
|
22919
|
+
for (let item of resultData200)
|
|
22920
|
+
result200.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
22921
|
+
}
|
|
22922
|
+
return result200;
|
|
22923
|
+
});
|
|
22924
|
+
}
|
|
22925
|
+
else if (status !== 200 && status !== 204) {
|
|
22926
|
+
return response.text().then((_responseText) => {
|
|
22927
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22928
|
+
});
|
|
22929
|
+
}
|
|
22930
|
+
return Promise.resolve(null);
|
|
22931
|
+
}
|
|
22932
|
+
addDiscussionMessage(id, request) {
|
|
22933
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22934
|
+
if (id === undefined || id === null)
|
|
22935
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22936
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22937
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22938
|
+
const content_ = JSON.stringify(request);
|
|
22939
|
+
let options_ = {
|
|
22940
|
+
body: content_,
|
|
22941
|
+
method: "POST",
|
|
22942
|
+
headers: {
|
|
22943
|
+
"Content-Type": "application/json",
|
|
22944
|
+
"Accept": "application/json"
|
|
22945
|
+
}
|
|
22946
|
+
};
|
|
22947
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22948
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22949
|
+
}).then((_response) => {
|
|
22950
|
+
return this.processAddDiscussionMessage(_response);
|
|
22951
|
+
});
|
|
22952
|
+
}
|
|
22953
|
+
processAddDiscussionMessage(response) {
|
|
22954
|
+
const status = response.status;
|
|
22955
|
+
let _headers = {};
|
|
22956
|
+
if (response.headers && response.headers.forEach) {
|
|
22957
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22958
|
+
}
|
|
22959
|
+
;
|
|
22960
|
+
if (status === 201) {
|
|
22961
|
+
return response.text().then((_responseText) => {
|
|
22962
|
+
let result201 = null;
|
|
22963
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22964
|
+
result201 = WorkorderDiscussionMessageDto.fromJS(resultData201);
|
|
22965
|
+
return result201;
|
|
22966
|
+
});
|
|
22967
|
+
}
|
|
22968
|
+
else if (status !== 200 && status !== 204) {
|
|
22969
|
+
return response.text().then((_responseText) => {
|
|
22970
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22971
|
+
});
|
|
22972
|
+
}
|
|
22973
|
+
return Promise.resolve(null);
|
|
22974
|
+
}
|
|
22975
|
+
updateMessage(id, messageId, content) {
|
|
22976
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22977
|
+
if (id === undefined || id === null)
|
|
22978
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22979
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22980
|
+
if (messageId === undefined || messageId === null)
|
|
22981
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22982
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22983
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22984
|
+
const content_ = JSON.stringify(content);
|
|
22985
|
+
let options_ = {
|
|
22986
|
+
body: content_,
|
|
22987
|
+
method: "PUT",
|
|
22988
|
+
headers: {
|
|
22989
|
+
"Content-Type": "application/json",
|
|
22990
|
+
"Accept": "application/octet-stream"
|
|
22991
|
+
}
|
|
22992
|
+
};
|
|
22993
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22994
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22995
|
+
}).then((_response) => {
|
|
22996
|
+
return this.processUpdateMessage(_response);
|
|
22997
|
+
});
|
|
22998
|
+
}
|
|
22999
|
+
processUpdateMessage(response) {
|
|
23000
|
+
const status = response.status;
|
|
23001
|
+
let _headers = {};
|
|
23002
|
+
if (response.headers && response.headers.forEach) {
|
|
23003
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23004
|
+
}
|
|
23005
|
+
;
|
|
23006
|
+
if (status === 200 || status === 206) {
|
|
23007
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
23008
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
23009
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
23010
|
+
if (fileName) {
|
|
23011
|
+
fileName = decodeURIComponent(fileName);
|
|
23012
|
+
}
|
|
23013
|
+
else {
|
|
23014
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
23015
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
23016
|
+
}
|
|
23017
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
23018
|
+
}
|
|
23019
|
+
else if (status !== 200 && status !== 204) {
|
|
23020
|
+
return response.text().then((_responseText) => {
|
|
23021
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23022
|
+
});
|
|
23023
|
+
}
|
|
23024
|
+
return Promise.resolve(null);
|
|
23025
|
+
}
|
|
23026
|
+
deleteMessage(id, messageId) {
|
|
23027
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
23028
|
+
if (id === undefined || id === null)
|
|
23029
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
23030
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23031
|
+
if (messageId === undefined || messageId === null)
|
|
23032
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
23033
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
23034
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23035
|
+
let options_ = {
|
|
23036
|
+
method: "DELETE",
|
|
23037
|
+
headers: {
|
|
23038
|
+
"Accept": "application/octet-stream"
|
|
23039
|
+
}
|
|
23040
|
+
};
|
|
23041
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23042
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23043
|
+
}).then((_response) => {
|
|
23044
|
+
return this.processDeleteMessage(_response);
|
|
23045
|
+
});
|
|
23046
|
+
}
|
|
23047
|
+
processDeleteMessage(response) {
|
|
23048
|
+
const status = response.status;
|
|
23049
|
+
let _headers = {};
|
|
23050
|
+
if (response.headers && response.headers.forEach) {
|
|
23051
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23052
|
+
}
|
|
23053
|
+
;
|
|
23054
|
+
if (status === 200 || status === 206) {
|
|
23055
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
23056
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
23057
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
23058
|
+
if (fileName) {
|
|
23059
|
+
fileName = decodeURIComponent(fileName);
|
|
23060
|
+
}
|
|
23061
|
+
else {
|
|
23062
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
23063
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
23064
|
+
}
|
|
23065
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
23066
|
+
}
|
|
23067
|
+
else if (status !== 200 && status !== 204) {
|
|
23068
|
+
return response.text().then((_responseText) => {
|
|
23069
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23070
|
+
});
|
|
23071
|
+
}
|
|
23072
|
+
return Promise.resolve(null);
|
|
23073
|
+
}
|
|
23074
|
+
getLastRead(id, operationId, resourceId) {
|
|
23075
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
23076
|
+
if (id === undefined || id === null)
|
|
23077
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
23078
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23079
|
+
if (operationId !== undefined && operationId !== null)
|
|
23080
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
23081
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
23082
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
23083
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23084
|
+
let options_ = {
|
|
23085
|
+
method: "GET",
|
|
23086
|
+
headers: {
|
|
23087
|
+
"Accept": "application/json"
|
|
23088
|
+
}
|
|
23089
|
+
};
|
|
23090
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23091
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23092
|
+
}).then((_response) => {
|
|
23093
|
+
return this.processGetLastRead(_response);
|
|
23094
|
+
});
|
|
23095
|
+
}
|
|
23096
|
+
processGetLastRead(response) {
|
|
23097
|
+
const status = response.status;
|
|
23098
|
+
let _headers = {};
|
|
23099
|
+
if (response.headers && response.headers.forEach) {
|
|
23100
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23101
|
+
}
|
|
23102
|
+
;
|
|
23103
|
+
if (status === 200) {
|
|
23104
|
+
return response.text().then((_responseText) => {
|
|
23105
|
+
let result200 = null;
|
|
23106
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23107
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
23108
|
+
return result200;
|
|
23109
|
+
});
|
|
23110
|
+
}
|
|
23111
|
+
else if (status !== 200 && status !== 204) {
|
|
23112
|
+
return response.text().then((_responseText) => {
|
|
23113
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23114
|
+
});
|
|
23115
|
+
}
|
|
23116
|
+
return Promise.resolve(null);
|
|
23117
|
+
}
|
|
23118
|
+
setLastRead(id, request) {
|
|
23119
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
23120
|
+
if (id === undefined || id === null)
|
|
23121
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
23122
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23123
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23124
|
+
const content_ = JSON.stringify(request);
|
|
23125
|
+
let options_ = {
|
|
23126
|
+
body: content_,
|
|
23127
|
+
method: "POST",
|
|
23128
|
+
headers: {
|
|
23129
|
+
"Content-Type": "application/json",
|
|
23130
|
+
}
|
|
23131
|
+
};
|
|
23132
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23133
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23134
|
+
}).then((_response) => {
|
|
23135
|
+
return this.processSetLastRead(_response);
|
|
23136
|
+
});
|
|
23137
|
+
}
|
|
23138
|
+
processSetLastRead(response) {
|
|
23139
|
+
const status = response.status;
|
|
23140
|
+
let _headers = {};
|
|
23141
|
+
if (response.headers && response.headers.forEach) {
|
|
23142
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23143
|
+
}
|
|
23144
|
+
;
|
|
23145
|
+
if (status === 204) {
|
|
23146
|
+
return response.text().then((_responseText) => {
|
|
23147
|
+
return;
|
|
23148
|
+
});
|
|
23149
|
+
}
|
|
23150
|
+
else if (status !== 200 && status !== 204) {
|
|
23151
|
+
return response.text().then((_responseText) => {
|
|
23152
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23153
|
+
});
|
|
23154
|
+
}
|
|
23155
|
+
return Promise.resolve(null);
|
|
23156
|
+
}
|
|
22882
23157
|
}
|
|
22883
23158
|
export class AzureRegionDto {
|
|
22884
23159
|
constructor(data) {
|
|
@@ -41474,6 +41749,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41474
41749
|
this.pageSize = _data["pageSize"];
|
|
41475
41750
|
this.customerId = _data["customerId"];
|
|
41476
41751
|
this.customerName = _data["customerName"];
|
|
41752
|
+
this.partName = _data["partName"];
|
|
41477
41753
|
this.partNumber = _data["partNumber"];
|
|
41478
41754
|
this.partRevision = _data["partRevision"];
|
|
41479
41755
|
this.drawing = _data["drawing"];
|
|
@@ -41493,6 +41769,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41493
41769
|
data["pageSize"] = this.pageSize;
|
|
41494
41770
|
data["customerId"] = this.customerId;
|
|
41495
41771
|
data["customerName"] = this.customerName;
|
|
41772
|
+
data["partName"] = this.partName;
|
|
41496
41773
|
data["partNumber"] = this.partNumber;
|
|
41497
41774
|
data["partRevision"] = this.partRevision;
|
|
41498
41775
|
data["drawing"] = this.drawing;
|
|
@@ -42774,6 +43051,7 @@ export class ImportMeasurementFormSchema {
|
|
|
42774
43051
|
this.customerId = _data["customerId"];
|
|
42775
43052
|
this.customerName = _data["customerName"];
|
|
42776
43053
|
this.partNumber = _data["partNumber"];
|
|
43054
|
+
this.partName = _data["partName"];
|
|
42777
43055
|
this.partRevision = _data["partRevision"];
|
|
42778
43056
|
this.drawing = _data["drawing"];
|
|
42779
43057
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42806,6 +43084,7 @@ export class ImportMeasurementFormSchema {
|
|
|
42806
43084
|
data["customerId"] = this.customerId;
|
|
42807
43085
|
data["customerName"] = this.customerName;
|
|
42808
43086
|
data["partNumber"] = this.partNumber;
|
|
43087
|
+
data["partName"] = this.partName;
|
|
42809
43088
|
data["partRevision"] = this.partRevision;
|
|
42810
43089
|
data["drawing"] = this.drawing;
|
|
42811
43090
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42841,6 +43120,7 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42841
43120
|
if (_data) {
|
|
42842
43121
|
this.customerId = _data["customerId"];
|
|
42843
43122
|
this.partNumber = _data["partNumber"];
|
|
43123
|
+
this.partName = _data["partName"];
|
|
42844
43124
|
this.partRevision = _data["partRevision"];
|
|
42845
43125
|
this.drawing = _data["drawing"];
|
|
42846
43126
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42857,6 +43137,7 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42857
43137
|
data = typeof data === 'object' ? data : {};
|
|
42858
43138
|
data["customerId"] = this.customerId;
|
|
42859
43139
|
data["partNumber"] = this.partNumber;
|
|
43140
|
+
data["partName"] = this.partName;
|
|
42860
43141
|
data["partRevision"] = this.partRevision;
|
|
42861
43142
|
data["drawing"] = this.drawing;
|
|
42862
43143
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43081,6 +43362,7 @@ export class MeasurementFormNeedDto {
|
|
|
43081
43362
|
this.customerName = _data["customerName"];
|
|
43082
43363
|
this.partNumber = _data["partNumber"];
|
|
43083
43364
|
this.partRevision = _data["partRevision"];
|
|
43365
|
+
this.partName = _data["partName"];
|
|
43084
43366
|
this.drawing = _data["drawing"];
|
|
43085
43367
|
this.drawingRevision = _data["drawingRevision"];
|
|
43086
43368
|
this.workorder = _data["workorder"];
|
|
@@ -43108,6 +43390,7 @@ export class MeasurementFormNeedDto {
|
|
|
43108
43390
|
data["customerName"] = this.customerName;
|
|
43109
43391
|
data["partNumber"] = this.partNumber;
|
|
43110
43392
|
data["partRevision"] = this.partRevision;
|
|
43393
|
+
data["partName"] = this.partName;
|
|
43111
43394
|
data["drawing"] = this.drawing;
|
|
43112
43395
|
data["drawingRevision"] = this.drawingRevision;
|
|
43113
43396
|
data["workorder"] = this.workorder;
|
|
@@ -43136,6 +43419,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43136
43419
|
this.pageSize = _data["pageSize"];
|
|
43137
43420
|
this.customerId = _data["customerId"];
|
|
43138
43421
|
this.customerName = _data["customerName"];
|
|
43422
|
+
this.partName = _data["partName"];
|
|
43139
43423
|
this.partNumber = _data["partNumber"];
|
|
43140
43424
|
this.partRevision = _data["partRevision"];
|
|
43141
43425
|
this.drawing = _data["drawing"];
|
|
@@ -43156,6 +43440,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43156
43440
|
data["pageSize"] = this.pageSize;
|
|
43157
43441
|
data["customerId"] = this.customerId;
|
|
43158
43442
|
data["customerName"] = this.customerName;
|
|
43443
|
+
data["partName"] = this.partName;
|
|
43159
43444
|
data["partNumber"] = this.partNumber;
|
|
43160
43445
|
data["partRevision"] = this.partRevision;
|
|
43161
43446
|
data["drawing"] = this.drawing;
|
|
@@ -43312,6 +43597,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43312
43597
|
this.customerId = _data["customerId"];
|
|
43313
43598
|
this.customerName = _data["customerName"];
|
|
43314
43599
|
this.partNumber = _data["partNumber"];
|
|
43600
|
+
this.partName = _data["partName"];
|
|
43315
43601
|
this.partRevision = _data["partRevision"];
|
|
43316
43602
|
this.drawing = _data["drawing"];
|
|
43317
43603
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43331,6 +43617,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43331
43617
|
data["customerId"] = this.customerId;
|
|
43332
43618
|
data["customerName"] = this.customerName;
|
|
43333
43619
|
data["partNumber"] = this.partNumber;
|
|
43620
|
+
data["partName"] = this.partName;
|
|
43334
43621
|
data["partRevision"] = this.partRevision;
|
|
43335
43622
|
data["drawing"] = this.drawing;
|
|
43336
43623
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43483,6 +43770,7 @@ export class SchemaFeedbackDto {
|
|
|
43483
43770
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
43484
43771
|
this.partNumber = _data["partNumber"];
|
|
43485
43772
|
this.partRevision = _data["partRevision"];
|
|
43773
|
+
this.partName = _data["partName"];
|
|
43486
43774
|
this.drawing = _data["drawing"];
|
|
43487
43775
|
this.drawingRevision = _data["drawingRevision"];
|
|
43488
43776
|
}
|
|
@@ -43509,6 +43797,7 @@ export class SchemaFeedbackDto {
|
|
|
43509
43797
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
43510
43798
|
data["partNumber"] = this.partNumber;
|
|
43511
43799
|
data["partRevision"] = this.partRevision;
|
|
43800
|
+
data["partName"] = this.partName;
|
|
43512
43801
|
data["drawing"] = this.drawing;
|
|
43513
43802
|
data["drawingRevision"] = this.drawingRevision;
|
|
43514
43803
|
return data;
|
|
@@ -43666,6 +43955,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43666
43955
|
if (_data) {
|
|
43667
43956
|
this.id = _data["id"];
|
|
43668
43957
|
this.readonly = _data["readonly"];
|
|
43958
|
+
this.partName = _data["partName"];
|
|
43669
43959
|
this.partNumber = _data["partNumber"];
|
|
43670
43960
|
this.partRevision = _data["partRevision"];
|
|
43671
43961
|
this.drawing = _data["drawing"];
|
|
@@ -43694,6 +43984,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43694
43984
|
data = typeof data === 'object' ? data : {};
|
|
43695
43985
|
data["id"] = this.id;
|
|
43696
43986
|
data["readonly"] = this.readonly;
|
|
43987
|
+
data["partName"] = this.partName;
|
|
43697
43988
|
data["partNumber"] = this.partNumber;
|
|
43698
43989
|
data["partRevision"] = this.partRevision;
|
|
43699
43990
|
data["drawing"] = this.drawing;
|
|
@@ -43902,6 +44193,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43902
44193
|
this.id = _data["id"];
|
|
43903
44194
|
this.readonly = _data["readonly"];
|
|
43904
44195
|
this.partNumber = _data["partNumber"];
|
|
44196
|
+
this.partName = _data["partName"];
|
|
43905
44197
|
this.partRevision = _data["partRevision"];
|
|
43906
44198
|
this.drawing = _data["drawing"];
|
|
43907
44199
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43941,6 +44233,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43941
44233
|
data["id"] = this.id;
|
|
43942
44234
|
data["readonly"] = this.readonly;
|
|
43943
44235
|
data["partNumber"] = this.partNumber;
|
|
44236
|
+
data["partName"] = this.partName;
|
|
43944
44237
|
data["partRevision"] = this.partRevision;
|
|
43945
44238
|
data["drawing"] = this.drawing;
|
|
43946
44239
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -46804,6 +47097,144 @@ export class CreateWorkOrderMapping {
|
|
|
46804
47097
|
return data;
|
|
46805
47098
|
}
|
|
46806
47099
|
}
|
|
47100
|
+
export class WorkorderDiscussionMessageDto {
|
|
47101
|
+
constructor(data) {
|
|
47102
|
+
if (data) {
|
|
47103
|
+
for (var property in data) {
|
|
47104
|
+
if (data.hasOwnProperty(property))
|
|
47105
|
+
this[property] = data[property];
|
|
47106
|
+
}
|
|
47107
|
+
}
|
|
47108
|
+
}
|
|
47109
|
+
init(_data) {
|
|
47110
|
+
if (_data) {
|
|
47111
|
+
this.id = _data["id"];
|
|
47112
|
+
this.workorderId = _data["workorderId"];
|
|
47113
|
+
this.companyId = _data["companyId"];
|
|
47114
|
+
this.content = _data["content"];
|
|
47115
|
+
this.senderUpn = _data["senderUpn"];
|
|
47116
|
+
this.senderName = _data["senderName"];
|
|
47117
|
+
this.operationId = _data["operationId"];
|
|
47118
|
+
this.operationName = _data["operationName"];
|
|
47119
|
+
this.resourceId = _data["resourceId"];
|
|
47120
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
47121
|
+
}
|
|
47122
|
+
}
|
|
47123
|
+
static fromJS(data) {
|
|
47124
|
+
data = typeof data === 'object' ? data : {};
|
|
47125
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
47126
|
+
result.init(data);
|
|
47127
|
+
return result;
|
|
47128
|
+
}
|
|
47129
|
+
toJSON(data) {
|
|
47130
|
+
data = typeof data === 'object' ? data : {};
|
|
47131
|
+
data["id"] = this.id;
|
|
47132
|
+
data["workorderId"] = this.workorderId;
|
|
47133
|
+
data["companyId"] = this.companyId;
|
|
47134
|
+
data["content"] = this.content;
|
|
47135
|
+
data["senderUpn"] = this.senderUpn;
|
|
47136
|
+
data["senderName"] = this.senderName;
|
|
47137
|
+
data["operationId"] = this.operationId;
|
|
47138
|
+
data["operationName"] = this.operationName;
|
|
47139
|
+
data["resourceId"] = this.resourceId;
|
|
47140
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
47141
|
+
return data;
|
|
47142
|
+
}
|
|
47143
|
+
}
|
|
47144
|
+
export class AddDiscussionMessageRequest {
|
|
47145
|
+
constructor(data) {
|
|
47146
|
+
if (data) {
|
|
47147
|
+
for (var property in data) {
|
|
47148
|
+
if (data.hasOwnProperty(property))
|
|
47149
|
+
this[property] = data[property];
|
|
47150
|
+
}
|
|
47151
|
+
}
|
|
47152
|
+
}
|
|
47153
|
+
init(_data) {
|
|
47154
|
+
if (_data) {
|
|
47155
|
+
this.message = _data["message"];
|
|
47156
|
+
this.operationId = _data["operationId"];
|
|
47157
|
+
this.operationName = _data["operationName"];
|
|
47158
|
+
this.resourceId = _data["resourceId"];
|
|
47159
|
+
}
|
|
47160
|
+
}
|
|
47161
|
+
static fromJS(data) {
|
|
47162
|
+
data = typeof data === 'object' ? data : {};
|
|
47163
|
+
let result = new AddDiscussionMessageRequest();
|
|
47164
|
+
result.init(data);
|
|
47165
|
+
return result;
|
|
47166
|
+
}
|
|
47167
|
+
toJSON(data) {
|
|
47168
|
+
data = typeof data === 'object' ? data : {};
|
|
47169
|
+
data["message"] = this.message;
|
|
47170
|
+
data["operationId"] = this.operationId;
|
|
47171
|
+
data["operationName"] = this.operationName;
|
|
47172
|
+
data["resourceId"] = this.resourceId;
|
|
47173
|
+
return data;
|
|
47174
|
+
}
|
|
47175
|
+
}
|
|
47176
|
+
export class WorkorderDiscussionReadStatusDto {
|
|
47177
|
+
constructor(data) {
|
|
47178
|
+
if (data) {
|
|
47179
|
+
for (var property in data) {
|
|
47180
|
+
if (data.hasOwnProperty(property))
|
|
47181
|
+
this[property] = data[property];
|
|
47182
|
+
}
|
|
47183
|
+
}
|
|
47184
|
+
}
|
|
47185
|
+
init(_data) {
|
|
47186
|
+
if (_data) {
|
|
47187
|
+
this.workorderId = _data["workorderId"];
|
|
47188
|
+
this.operationId = _data["operationId"];
|
|
47189
|
+
this.resourceId = _data["resourceId"];
|
|
47190
|
+
this.userUpn = _data["userUpn"];
|
|
47191
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : undefined;
|
|
47192
|
+
}
|
|
47193
|
+
}
|
|
47194
|
+
static fromJS(data) {
|
|
47195
|
+
data = typeof data === 'object' ? data : {};
|
|
47196
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
47197
|
+
result.init(data);
|
|
47198
|
+
return result;
|
|
47199
|
+
}
|
|
47200
|
+
toJSON(data) {
|
|
47201
|
+
data = typeof data === 'object' ? data : {};
|
|
47202
|
+
data["workorderId"] = this.workorderId;
|
|
47203
|
+
data["operationId"] = this.operationId;
|
|
47204
|
+
data["resourceId"] = this.resourceId;
|
|
47205
|
+
data["userUpn"] = this.userUpn;
|
|
47206
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : undefined;
|
|
47207
|
+
return data;
|
|
47208
|
+
}
|
|
47209
|
+
}
|
|
47210
|
+
export class SetDiscussionLastReadRequest {
|
|
47211
|
+
constructor(data) {
|
|
47212
|
+
if (data) {
|
|
47213
|
+
for (var property in data) {
|
|
47214
|
+
if (data.hasOwnProperty(property))
|
|
47215
|
+
this[property] = data[property];
|
|
47216
|
+
}
|
|
47217
|
+
}
|
|
47218
|
+
}
|
|
47219
|
+
init(_data) {
|
|
47220
|
+
if (_data) {
|
|
47221
|
+
this.operationId = _data["operationId"];
|
|
47222
|
+
this.resourceId = _data["resourceId"];
|
|
47223
|
+
}
|
|
47224
|
+
}
|
|
47225
|
+
static fromJS(data) {
|
|
47226
|
+
data = typeof data === 'object' ? data : {};
|
|
47227
|
+
let result = new SetDiscussionLastReadRequest();
|
|
47228
|
+
result.init(data);
|
|
47229
|
+
return result;
|
|
47230
|
+
}
|
|
47231
|
+
toJSON(data) {
|
|
47232
|
+
data = typeof data === 'object' ? data : {};
|
|
47233
|
+
data["operationId"] = this.operationId;
|
|
47234
|
+
data["resourceId"] = this.resourceId;
|
|
47235
|
+
return data;
|
|
47236
|
+
}
|
|
47237
|
+
}
|
|
46807
47238
|
function formatDate(d) {
|
|
46808
47239
|
return d.getFullYear() + '-' +
|
|
46809
47240
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|