@ignos/api-client 20250729.0.12224-alpha → 20250729.0.12229-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 +351 -27
- package/package.json +1 -1
- package/src/ignosportal-api.ts +445 -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,192 @@ 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(WorkorderDiscussionMessage.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
|
+
"Accept": "application/json"
|
|
22782
|
+
}
|
|
22783
|
+
};
|
|
22784
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22785
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22786
|
+
}).then((_response) => {
|
|
22787
|
+
return this.processAddDiscussionMessage(_response);
|
|
22788
|
+
});
|
|
22789
|
+
}
|
|
22790
|
+
processAddDiscussionMessage(response) {
|
|
22791
|
+
const status = response.status;
|
|
22792
|
+
let _headers = {};
|
|
22793
|
+
if (response.headers && response.headers.forEach) {
|
|
22794
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22795
|
+
}
|
|
22796
|
+
;
|
|
22797
|
+
if (status === 201) {
|
|
22798
|
+
return response.text().then((_responseText) => {
|
|
22799
|
+
let result201 = null;
|
|
22800
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22801
|
+
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
22802
|
+
return result201;
|
|
22803
|
+
});
|
|
22804
|
+
}
|
|
22805
|
+
else if (status !== 200 && status !== 204) {
|
|
22806
|
+
return response.text().then((_responseText) => {
|
|
22807
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22808
|
+
});
|
|
22809
|
+
}
|
|
22810
|
+
return Promise.resolve(null);
|
|
22811
|
+
}
|
|
22812
|
+
updateMessage(id, messageId, content) {
|
|
22813
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22814
|
+
if (id === undefined || id === null)
|
|
22815
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22816
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22817
|
+
if (messageId === undefined || messageId === null)
|
|
22818
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22819
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22820
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22821
|
+
const content_ = JSON.stringify(content);
|
|
22822
|
+
let options_ = {
|
|
22823
|
+
body: content_,
|
|
22824
|
+
method: "PUT",
|
|
22825
|
+
headers: {
|
|
22826
|
+
"Content-Type": "application/json",
|
|
22827
|
+
"Accept": "application/octet-stream"
|
|
22828
|
+
}
|
|
22829
|
+
};
|
|
22830
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22831
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22832
|
+
}).then((_response) => {
|
|
22833
|
+
return this.processUpdateMessage(_response);
|
|
22834
|
+
});
|
|
22835
|
+
}
|
|
22836
|
+
processUpdateMessage(response) {
|
|
22837
|
+
const status = response.status;
|
|
22838
|
+
let _headers = {};
|
|
22839
|
+
if (response.headers && response.headers.forEach) {
|
|
22840
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22841
|
+
}
|
|
22842
|
+
;
|
|
22843
|
+
if (status === 200 || status === 206) {
|
|
22844
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22845
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22846
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22847
|
+
if (fileName) {
|
|
22848
|
+
fileName = decodeURIComponent(fileName);
|
|
22849
|
+
}
|
|
22850
|
+
else {
|
|
22851
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22852
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22853
|
+
}
|
|
22854
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22855
|
+
}
|
|
22856
|
+
else if (status !== 200 && status !== 204) {
|
|
22857
|
+
return response.text().then((_responseText) => {
|
|
22858
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22859
|
+
});
|
|
22860
|
+
}
|
|
22861
|
+
return Promise.resolve(null);
|
|
22862
|
+
}
|
|
22863
|
+
deleteMessage(id, messageId) {
|
|
22864
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22865
|
+
if (id === undefined || id === null)
|
|
22866
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22867
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22868
|
+
if (messageId === undefined || messageId === null)
|
|
22869
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22870
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22871
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22872
|
+
let options_ = {
|
|
22873
|
+
method: "DELETE",
|
|
22874
|
+
headers: {
|
|
22875
|
+
"Accept": "application/octet-stream"
|
|
22876
|
+
}
|
|
22877
|
+
};
|
|
22878
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22879
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22880
|
+
}).then((_response) => {
|
|
22881
|
+
return this.processDeleteMessage(_response);
|
|
22882
|
+
});
|
|
22883
|
+
}
|
|
22884
|
+
processDeleteMessage(response) {
|
|
22885
|
+
const status = response.status;
|
|
22886
|
+
let _headers = {};
|
|
22887
|
+
if (response.headers && response.headers.forEach) {
|
|
22888
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22889
|
+
}
|
|
22890
|
+
;
|
|
22891
|
+
if (status === 200 || status === 206) {
|
|
22892
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22893
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22894
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22895
|
+
if (fileName) {
|
|
22896
|
+
fileName = decodeURIComponent(fileName);
|
|
22897
|
+
}
|
|
22898
|
+
else {
|
|
22899
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22900
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22901
|
+
}
|
|
22902
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22903
|
+
}
|
|
22904
|
+
else if (status !== 200 && status !== 204) {
|
|
22905
|
+
return response.text().then((_responseText) => {
|
|
22906
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22907
|
+
});
|
|
22908
|
+
}
|
|
22909
|
+
return Promise.resolve(null);
|
|
22910
|
+
}
|
|
22731
22911
|
}
|
|
22732
22912
|
export class AzureRegionDto {
|
|
22733
22913
|
constructor(data) {
|
|
@@ -41273,7 +41453,6 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41273
41453
|
this.pageSize = _data["pageSize"];
|
|
41274
41454
|
this.customerId = _data["customerId"];
|
|
41275
41455
|
this.customerName = _data["customerName"];
|
|
41276
|
-
this.partName = _data["partName"];
|
|
41277
41456
|
this.partNumber = _data["partNumber"];
|
|
41278
41457
|
this.partRevision = _data["partRevision"];
|
|
41279
41458
|
this.drawing = _data["drawing"];
|
|
@@ -41293,7 +41472,6 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41293
41472
|
data["pageSize"] = this.pageSize;
|
|
41294
41473
|
data["customerId"] = this.customerId;
|
|
41295
41474
|
data["customerName"] = this.customerName;
|
|
41296
|
-
data["partName"] = this.partName;
|
|
41297
41475
|
data["partNumber"] = this.partNumber;
|
|
41298
41476
|
data["partRevision"] = this.partRevision;
|
|
41299
41477
|
data["drawing"] = this.drawing;
|
|
@@ -42575,7 +42753,6 @@ export class ImportMeasurementFormSchema {
|
|
|
42575
42753
|
this.customerId = _data["customerId"];
|
|
42576
42754
|
this.customerName = _data["customerName"];
|
|
42577
42755
|
this.partNumber = _data["partNumber"];
|
|
42578
|
-
this.partName = _data["partName"];
|
|
42579
42756
|
this.partRevision = _data["partRevision"];
|
|
42580
42757
|
this.drawing = _data["drawing"];
|
|
42581
42758
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42608,7 +42785,6 @@ export class ImportMeasurementFormSchema {
|
|
|
42608
42785
|
data["customerId"] = this.customerId;
|
|
42609
42786
|
data["customerName"] = this.customerName;
|
|
42610
42787
|
data["partNumber"] = this.partNumber;
|
|
42611
|
-
data["partName"] = this.partName;
|
|
42612
42788
|
data["partRevision"] = this.partRevision;
|
|
42613
42789
|
data["drawing"] = this.drawing;
|
|
42614
42790
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42644,7 +42820,6 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42644
42820
|
if (_data) {
|
|
42645
42821
|
this.customerId = _data["customerId"];
|
|
42646
42822
|
this.partNumber = _data["partNumber"];
|
|
42647
|
-
this.partName = _data["partName"];
|
|
42648
42823
|
this.partRevision = _data["partRevision"];
|
|
42649
42824
|
this.drawing = _data["drawing"];
|
|
42650
42825
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42661,7 +42836,6 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42661
42836
|
data = typeof data === 'object' ? data : {};
|
|
42662
42837
|
data["customerId"] = this.customerId;
|
|
42663
42838
|
data["partNumber"] = this.partNumber;
|
|
42664
|
-
data["partName"] = this.partName;
|
|
42665
42839
|
data["partRevision"] = this.partRevision;
|
|
42666
42840
|
data["drawing"] = this.drawing;
|
|
42667
42841
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42886,7 +43060,6 @@ export class MeasurementFormNeedDto {
|
|
|
42886
43060
|
this.customerName = _data["customerName"];
|
|
42887
43061
|
this.partNumber = _data["partNumber"];
|
|
42888
43062
|
this.partRevision = _data["partRevision"];
|
|
42889
|
-
this.partName = _data["partName"];
|
|
42890
43063
|
this.drawing = _data["drawing"];
|
|
42891
43064
|
this.drawingRevision = _data["drawingRevision"];
|
|
42892
43065
|
this.workorder = _data["workorder"];
|
|
@@ -42914,7 +43087,6 @@ export class MeasurementFormNeedDto {
|
|
|
42914
43087
|
data["customerName"] = this.customerName;
|
|
42915
43088
|
data["partNumber"] = this.partNumber;
|
|
42916
43089
|
data["partRevision"] = this.partRevision;
|
|
42917
|
-
data["partName"] = this.partName;
|
|
42918
43090
|
data["drawing"] = this.drawing;
|
|
42919
43091
|
data["drawingRevision"] = this.drawingRevision;
|
|
42920
43092
|
data["workorder"] = this.workorder;
|
|
@@ -42943,7 +43115,6 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
42943
43115
|
this.pageSize = _data["pageSize"];
|
|
42944
43116
|
this.customerId = _data["customerId"];
|
|
42945
43117
|
this.customerName = _data["customerName"];
|
|
42946
|
-
this.partName = _data["partName"];
|
|
42947
43118
|
this.partNumber = _data["partNumber"];
|
|
42948
43119
|
this.partRevision = _data["partRevision"];
|
|
42949
43120
|
this.drawing = _data["drawing"];
|
|
@@ -42964,7 +43135,6 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
42964
43135
|
data["pageSize"] = this.pageSize;
|
|
42965
43136
|
data["customerId"] = this.customerId;
|
|
42966
43137
|
data["customerName"] = this.customerName;
|
|
42967
|
-
data["partName"] = this.partName;
|
|
42968
43138
|
data["partNumber"] = this.partNumber;
|
|
42969
43139
|
data["partRevision"] = this.partRevision;
|
|
42970
43140
|
data["drawing"] = this.drawing;
|
|
@@ -43121,7 +43291,6 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43121
43291
|
this.customerId = _data["customerId"];
|
|
43122
43292
|
this.customerName = _data["customerName"];
|
|
43123
43293
|
this.partNumber = _data["partNumber"];
|
|
43124
|
-
this.partName = _data["partName"];
|
|
43125
43294
|
this.partRevision = _data["partRevision"];
|
|
43126
43295
|
this.drawing = _data["drawing"];
|
|
43127
43296
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43141,7 +43310,6 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43141
43310
|
data["customerId"] = this.customerId;
|
|
43142
43311
|
data["customerName"] = this.customerName;
|
|
43143
43312
|
data["partNumber"] = this.partNumber;
|
|
43144
|
-
data["partName"] = this.partName;
|
|
43145
43313
|
data["partRevision"] = this.partRevision;
|
|
43146
43314
|
data["drawing"] = this.drawing;
|
|
43147
43315
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43294,7 +43462,6 @@ export class SchemaFeedbackDto {
|
|
|
43294
43462
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
43295
43463
|
this.partNumber = _data["partNumber"];
|
|
43296
43464
|
this.partRevision = _data["partRevision"];
|
|
43297
|
-
this.partName = _data["partName"];
|
|
43298
43465
|
this.drawing = _data["drawing"];
|
|
43299
43466
|
this.drawingRevision = _data["drawingRevision"];
|
|
43300
43467
|
}
|
|
@@ -43321,7 +43488,6 @@ export class SchemaFeedbackDto {
|
|
|
43321
43488
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
43322
43489
|
data["partNumber"] = this.partNumber;
|
|
43323
43490
|
data["partRevision"] = this.partRevision;
|
|
43324
|
-
data["partName"] = this.partName;
|
|
43325
43491
|
data["drawing"] = this.drawing;
|
|
43326
43492
|
data["drawingRevision"] = this.drawingRevision;
|
|
43327
43493
|
return data;
|
|
@@ -43479,7 +43645,6 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43479
43645
|
if (_data) {
|
|
43480
43646
|
this.id = _data["id"];
|
|
43481
43647
|
this.readonly = _data["readonly"];
|
|
43482
|
-
this.partName = _data["partName"];
|
|
43483
43648
|
this.partNumber = _data["partNumber"];
|
|
43484
43649
|
this.partRevision = _data["partRevision"];
|
|
43485
43650
|
this.drawing = _data["drawing"];
|
|
@@ -43508,7 +43673,6 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43508
43673
|
data = typeof data === 'object' ? data : {};
|
|
43509
43674
|
data["id"] = this.id;
|
|
43510
43675
|
data["readonly"] = this.readonly;
|
|
43511
|
-
data["partName"] = this.partName;
|
|
43512
43676
|
data["partNumber"] = this.partNumber;
|
|
43513
43677
|
data["partRevision"] = this.partRevision;
|
|
43514
43678
|
data["drawing"] = this.drawing;
|
|
@@ -43717,7 +43881,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43717
43881
|
this.id = _data["id"];
|
|
43718
43882
|
this.readonly = _data["readonly"];
|
|
43719
43883
|
this.partNumber = _data["partNumber"];
|
|
43720
|
-
this.partName = _data["partName"];
|
|
43721
43884
|
this.partRevision = _data["partRevision"];
|
|
43722
43885
|
this.drawing = _data["drawing"];
|
|
43723
43886
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43757,7 +43920,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43757
43920
|
data["id"] = this.id;
|
|
43758
43921
|
data["readonly"] = this.readonly;
|
|
43759
43922
|
data["partNumber"] = this.partNumber;
|
|
43760
|
-
data["partName"] = this.partName;
|
|
43761
43923
|
data["partRevision"] = this.partRevision;
|
|
43762
43924
|
data["drawing"] = this.drawing;
|
|
43763
43925
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -46621,6 +46783,168 @@ export class CreateWorkOrderMapping {
|
|
|
46621
46783
|
return data;
|
|
46622
46784
|
}
|
|
46623
46785
|
}
|
|
46786
|
+
export class TableEntityBase {
|
|
46787
|
+
constructor(data) {
|
|
46788
|
+
if (data) {
|
|
46789
|
+
for (var property in data) {
|
|
46790
|
+
if (data.hasOwnProperty(property))
|
|
46791
|
+
this[property] = data[property];
|
|
46792
|
+
}
|
|
46793
|
+
}
|
|
46794
|
+
}
|
|
46795
|
+
init(_data) {
|
|
46796
|
+
if (_data) {
|
|
46797
|
+
this.partitionKey = _data["partitionKey"];
|
|
46798
|
+
this.rowKey = _data["rowKey"];
|
|
46799
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
|
|
46800
|
+
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : undefined;
|
|
46801
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46802
|
+
this.createdBy = _data["createdBy"];
|
|
46803
|
+
this.createdById = _data["createdById"];
|
|
46804
|
+
this.updatedBy = _data["updatedBy"];
|
|
46805
|
+
this.updatedById = _data["updatedById"];
|
|
46806
|
+
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : undefined;
|
|
46807
|
+
}
|
|
46808
|
+
}
|
|
46809
|
+
static fromJS(data) {
|
|
46810
|
+
data = typeof data === 'object' ? data : {};
|
|
46811
|
+
let result = new TableEntityBase();
|
|
46812
|
+
result.init(data);
|
|
46813
|
+
return result;
|
|
46814
|
+
}
|
|
46815
|
+
toJSON(data) {
|
|
46816
|
+
data = typeof data === 'object' ? data : {};
|
|
46817
|
+
data["partitionKey"] = this.partitionKey;
|
|
46818
|
+
data["rowKey"] = this.rowKey;
|
|
46819
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
|
|
46820
|
+
data["eTag"] = this.eTag ? this.eTag.toJSON() : undefined;
|
|
46821
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46822
|
+
data["createdBy"] = this.createdBy;
|
|
46823
|
+
data["createdById"] = this.createdById;
|
|
46824
|
+
data["updatedBy"] = this.updatedBy;
|
|
46825
|
+
data["updatedById"] = this.updatedById;
|
|
46826
|
+
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : undefined;
|
|
46827
|
+
return data;
|
|
46828
|
+
}
|
|
46829
|
+
}
|
|
46830
|
+
export class WorkorderDiscussionMessage extends TableEntityBase {
|
|
46831
|
+
constructor(data) {
|
|
46832
|
+
super(data);
|
|
46833
|
+
}
|
|
46834
|
+
init(_data) {
|
|
46835
|
+
super.init(_data);
|
|
46836
|
+
if (_data) {
|
|
46837
|
+
this.content = _data["content"];
|
|
46838
|
+
this.senderUpn = _data["senderUpn"];
|
|
46839
|
+
this.senderName = _data["senderName"];
|
|
46840
|
+
this.operationId = _data["operationId"];
|
|
46841
|
+
this.operationName = _data["operationName"];
|
|
46842
|
+
this.resourceId = _data["resourceId"];
|
|
46843
|
+
}
|
|
46844
|
+
}
|
|
46845
|
+
static fromJS(data) {
|
|
46846
|
+
data = typeof data === 'object' ? data : {};
|
|
46847
|
+
let result = new WorkorderDiscussionMessage();
|
|
46848
|
+
result.init(data);
|
|
46849
|
+
return result;
|
|
46850
|
+
}
|
|
46851
|
+
toJSON(data) {
|
|
46852
|
+
data = typeof data === 'object' ? data : {};
|
|
46853
|
+
data["content"] = this.content;
|
|
46854
|
+
data["senderUpn"] = this.senderUpn;
|
|
46855
|
+
data["senderName"] = this.senderName;
|
|
46856
|
+
data["operationId"] = this.operationId;
|
|
46857
|
+
data["operationName"] = this.operationName;
|
|
46858
|
+
data["resourceId"] = this.resourceId;
|
|
46859
|
+
super.toJSON(data);
|
|
46860
|
+
return data;
|
|
46861
|
+
}
|
|
46862
|
+
}
|
|
46863
|
+
/** Represents an HTTP ETag. */
|
|
46864
|
+
export class ETag {
|
|
46865
|
+
constructor(data) {
|
|
46866
|
+
if (data) {
|
|
46867
|
+
for (var property in data) {
|
|
46868
|
+
if (data.hasOwnProperty(property))
|
|
46869
|
+
this[property] = data[property];
|
|
46870
|
+
}
|
|
46871
|
+
}
|
|
46872
|
+
}
|
|
46873
|
+
init(_data) {
|
|
46874
|
+
}
|
|
46875
|
+
static fromJS(data) {
|
|
46876
|
+
data = typeof data === 'object' ? data : {};
|
|
46877
|
+
let result = new ETag();
|
|
46878
|
+
result.init(data);
|
|
46879
|
+
return result;
|
|
46880
|
+
}
|
|
46881
|
+
toJSON(data) {
|
|
46882
|
+
data = typeof data === 'object' ? data : {};
|
|
46883
|
+
return data;
|
|
46884
|
+
}
|
|
46885
|
+
}
|
|
46886
|
+
export class AuditInfo {
|
|
46887
|
+
constructor(data) {
|
|
46888
|
+
if (data) {
|
|
46889
|
+
for (var property in data) {
|
|
46890
|
+
if (data.hasOwnProperty(property))
|
|
46891
|
+
this[property] = data[property];
|
|
46892
|
+
}
|
|
46893
|
+
}
|
|
46894
|
+
}
|
|
46895
|
+
init(_data) {
|
|
46896
|
+
if (_data) {
|
|
46897
|
+
this.objectId = _data["objectId"];
|
|
46898
|
+
this.userId = _data["userId"];
|
|
46899
|
+
this.userFullName = _data["userFullName"];
|
|
46900
|
+
}
|
|
46901
|
+
}
|
|
46902
|
+
static fromJS(data) {
|
|
46903
|
+
data = typeof data === 'object' ? data : {};
|
|
46904
|
+
let result = new AuditInfo();
|
|
46905
|
+
result.init(data);
|
|
46906
|
+
return result;
|
|
46907
|
+
}
|
|
46908
|
+
toJSON(data) {
|
|
46909
|
+
data = typeof data === 'object' ? data : {};
|
|
46910
|
+
data["objectId"] = this.objectId;
|
|
46911
|
+
data["userId"] = this.userId;
|
|
46912
|
+
data["userFullName"] = this.userFullName;
|
|
46913
|
+
return data;
|
|
46914
|
+
}
|
|
46915
|
+
}
|
|
46916
|
+
export class AddDiscussionMessageRequest {
|
|
46917
|
+
constructor(data) {
|
|
46918
|
+
if (data) {
|
|
46919
|
+
for (var property in data) {
|
|
46920
|
+
if (data.hasOwnProperty(property))
|
|
46921
|
+
this[property] = data[property];
|
|
46922
|
+
}
|
|
46923
|
+
}
|
|
46924
|
+
}
|
|
46925
|
+
init(_data) {
|
|
46926
|
+
if (_data) {
|
|
46927
|
+
this.message = _data["message"];
|
|
46928
|
+
this.operationId = _data["operationId"];
|
|
46929
|
+
this.operationName = _data["operationName"];
|
|
46930
|
+
this.resourceId = _data["resourceId"];
|
|
46931
|
+
}
|
|
46932
|
+
}
|
|
46933
|
+
static fromJS(data) {
|
|
46934
|
+
data = typeof data === 'object' ? data : {};
|
|
46935
|
+
let result = new AddDiscussionMessageRequest();
|
|
46936
|
+
result.init(data);
|
|
46937
|
+
return result;
|
|
46938
|
+
}
|
|
46939
|
+
toJSON(data) {
|
|
46940
|
+
data = typeof data === 'object' ? data : {};
|
|
46941
|
+
data["message"] = this.message;
|
|
46942
|
+
data["operationId"] = this.operationId;
|
|
46943
|
+
data["operationName"] = this.operationName;
|
|
46944
|
+
data["resourceId"] = this.resourceId;
|
|
46945
|
+
return data;
|
|
46946
|
+
}
|
|
46947
|
+
}
|
|
46624
46948
|
function formatDate(d) {
|
|
46625
46949
|
return d.getFullYear() + '-' +
|
|
46626
46950
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|