@ignos/api-client 20250725.0.12210-alpha → 20250729.0.12224-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 +24 -88
- package/lib/ignosportal-api.js +27 -240
- package/package.json +1 -1
- package/src/ignosportal-api.ts +48 -321
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, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16822
|
+
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, 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,6 +16831,8 @@ 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) + "&";
|
|
16834
16836
|
if (partRevision !== undefined && partRevision !== null)
|
|
16835
16837
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
16836
16838
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18300,7 +18302,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18300
18302
|
}
|
|
18301
18303
|
return Promise.resolve(null);
|
|
18302
18304
|
}
|
|
18303
|
-
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18305
|
+
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18304
18306
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
18305
18307
|
if (pageSize === null)
|
|
18306
18308
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18312,6 +18314,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18312
18314
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18313
18315
|
if (partNumber !== undefined && partNumber !== null)
|
|
18314
18316
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18317
|
+
if (partName !== undefined && partName !== null)
|
|
18318
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18315
18319
|
if (partRevision !== undefined && partRevision !== null)
|
|
18316
18320
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18317
18321
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18564,7 +18568,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18564
18568
|
}
|
|
18565
18569
|
return Promise.resolve(null);
|
|
18566
18570
|
}
|
|
18567
|
-
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18571
|
+
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18568
18572
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
18569
18573
|
if (pageSize === null)
|
|
18570
18574
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18576,6 +18580,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18576
18580
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18577
18581
|
if (partNumber !== undefined && partNumber !== null)
|
|
18578
18582
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18583
|
+
if (partName !== undefined && partName !== null)
|
|
18584
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18579
18585
|
if (partRevision !== undefined && partRevision !== null)
|
|
18580
18586
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18581
18587
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -22722,93 +22728,6 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22722
22728
|
}
|
|
22723
22729
|
return Promise.resolve(null);
|
|
22724
22730
|
}
|
|
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
22731
|
}
|
|
22813
22732
|
export class AzureRegionDto {
|
|
22814
22733
|
constructor(data) {
|
|
@@ -41354,6 +41273,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41354
41273
|
this.pageSize = _data["pageSize"];
|
|
41355
41274
|
this.customerId = _data["customerId"];
|
|
41356
41275
|
this.customerName = _data["customerName"];
|
|
41276
|
+
this.partName = _data["partName"];
|
|
41357
41277
|
this.partNumber = _data["partNumber"];
|
|
41358
41278
|
this.partRevision = _data["partRevision"];
|
|
41359
41279
|
this.drawing = _data["drawing"];
|
|
@@ -41373,6 +41293,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41373
41293
|
data["pageSize"] = this.pageSize;
|
|
41374
41294
|
data["customerId"] = this.customerId;
|
|
41375
41295
|
data["customerName"] = this.customerName;
|
|
41296
|
+
data["partName"] = this.partName;
|
|
41376
41297
|
data["partNumber"] = this.partNumber;
|
|
41377
41298
|
data["partRevision"] = this.partRevision;
|
|
41378
41299
|
data["drawing"] = this.drawing;
|
|
@@ -42654,6 +42575,7 @@ export class ImportMeasurementFormSchema {
|
|
|
42654
42575
|
this.customerId = _data["customerId"];
|
|
42655
42576
|
this.customerName = _data["customerName"];
|
|
42656
42577
|
this.partNumber = _data["partNumber"];
|
|
42578
|
+
this.partName = _data["partName"];
|
|
42657
42579
|
this.partRevision = _data["partRevision"];
|
|
42658
42580
|
this.drawing = _data["drawing"];
|
|
42659
42581
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42686,6 +42608,7 @@ export class ImportMeasurementFormSchema {
|
|
|
42686
42608
|
data["customerId"] = this.customerId;
|
|
42687
42609
|
data["customerName"] = this.customerName;
|
|
42688
42610
|
data["partNumber"] = this.partNumber;
|
|
42611
|
+
data["partName"] = this.partName;
|
|
42689
42612
|
data["partRevision"] = this.partRevision;
|
|
42690
42613
|
data["drawing"] = this.drawing;
|
|
42691
42614
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42721,6 +42644,7 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42721
42644
|
if (_data) {
|
|
42722
42645
|
this.customerId = _data["customerId"];
|
|
42723
42646
|
this.partNumber = _data["partNumber"];
|
|
42647
|
+
this.partName = _data["partName"];
|
|
42724
42648
|
this.partRevision = _data["partRevision"];
|
|
42725
42649
|
this.drawing = _data["drawing"];
|
|
42726
42650
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -42737,6 +42661,7 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
42737
42661
|
data = typeof data === 'object' ? data : {};
|
|
42738
42662
|
data["customerId"] = this.customerId;
|
|
42739
42663
|
data["partNumber"] = this.partNumber;
|
|
42664
|
+
data["partName"] = this.partName;
|
|
42740
42665
|
data["partRevision"] = this.partRevision;
|
|
42741
42666
|
data["drawing"] = this.drawing;
|
|
42742
42667
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -42961,6 +42886,7 @@ export class MeasurementFormNeedDto {
|
|
|
42961
42886
|
this.customerName = _data["customerName"];
|
|
42962
42887
|
this.partNumber = _data["partNumber"];
|
|
42963
42888
|
this.partRevision = _data["partRevision"];
|
|
42889
|
+
this.partName = _data["partName"];
|
|
42964
42890
|
this.drawing = _data["drawing"];
|
|
42965
42891
|
this.drawingRevision = _data["drawingRevision"];
|
|
42966
42892
|
this.workorder = _data["workorder"];
|
|
@@ -42988,6 +42914,7 @@ export class MeasurementFormNeedDto {
|
|
|
42988
42914
|
data["customerName"] = this.customerName;
|
|
42989
42915
|
data["partNumber"] = this.partNumber;
|
|
42990
42916
|
data["partRevision"] = this.partRevision;
|
|
42917
|
+
data["partName"] = this.partName;
|
|
42991
42918
|
data["drawing"] = this.drawing;
|
|
42992
42919
|
data["drawingRevision"] = this.drawingRevision;
|
|
42993
42920
|
data["workorder"] = this.workorder;
|
|
@@ -43016,6 +42943,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43016
42943
|
this.pageSize = _data["pageSize"];
|
|
43017
42944
|
this.customerId = _data["customerId"];
|
|
43018
42945
|
this.customerName = _data["customerName"];
|
|
42946
|
+
this.partName = _data["partName"];
|
|
43019
42947
|
this.partNumber = _data["partNumber"];
|
|
43020
42948
|
this.partRevision = _data["partRevision"];
|
|
43021
42949
|
this.drawing = _data["drawing"];
|
|
@@ -43036,6 +42964,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43036
42964
|
data["pageSize"] = this.pageSize;
|
|
43037
42965
|
data["customerId"] = this.customerId;
|
|
43038
42966
|
data["customerName"] = this.customerName;
|
|
42967
|
+
data["partName"] = this.partName;
|
|
43039
42968
|
data["partNumber"] = this.partNumber;
|
|
43040
42969
|
data["partRevision"] = this.partRevision;
|
|
43041
42970
|
data["drawing"] = this.drawing;
|
|
@@ -43192,6 +43121,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43192
43121
|
this.customerId = _data["customerId"];
|
|
43193
43122
|
this.customerName = _data["customerName"];
|
|
43194
43123
|
this.partNumber = _data["partNumber"];
|
|
43124
|
+
this.partName = _data["partName"];
|
|
43195
43125
|
this.partRevision = _data["partRevision"];
|
|
43196
43126
|
this.drawing = _data["drawing"];
|
|
43197
43127
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43211,6 +43141,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43211
43141
|
data["customerId"] = this.customerId;
|
|
43212
43142
|
data["customerName"] = this.customerName;
|
|
43213
43143
|
data["partNumber"] = this.partNumber;
|
|
43144
|
+
data["partName"] = this.partName;
|
|
43214
43145
|
data["partRevision"] = this.partRevision;
|
|
43215
43146
|
data["drawing"] = this.drawing;
|
|
43216
43147
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43363,6 +43294,7 @@ export class SchemaFeedbackDto {
|
|
|
43363
43294
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
43364
43295
|
this.partNumber = _data["partNumber"];
|
|
43365
43296
|
this.partRevision = _data["partRevision"];
|
|
43297
|
+
this.partName = _data["partName"];
|
|
43366
43298
|
this.drawing = _data["drawing"];
|
|
43367
43299
|
this.drawingRevision = _data["drawingRevision"];
|
|
43368
43300
|
}
|
|
@@ -43389,6 +43321,7 @@ export class SchemaFeedbackDto {
|
|
|
43389
43321
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
43390
43322
|
data["partNumber"] = this.partNumber;
|
|
43391
43323
|
data["partRevision"] = this.partRevision;
|
|
43324
|
+
data["partName"] = this.partName;
|
|
43392
43325
|
data["drawing"] = this.drawing;
|
|
43393
43326
|
data["drawingRevision"] = this.drawingRevision;
|
|
43394
43327
|
return data;
|
|
@@ -43546,6 +43479,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43546
43479
|
if (_data) {
|
|
43547
43480
|
this.id = _data["id"];
|
|
43548
43481
|
this.readonly = _data["readonly"];
|
|
43482
|
+
this.partName = _data["partName"];
|
|
43549
43483
|
this.partNumber = _data["partNumber"];
|
|
43550
43484
|
this.partRevision = _data["partRevision"];
|
|
43551
43485
|
this.drawing = _data["drawing"];
|
|
@@ -43574,6 +43508,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43574
43508
|
data = typeof data === 'object' ? data : {};
|
|
43575
43509
|
data["id"] = this.id;
|
|
43576
43510
|
data["readonly"] = this.readonly;
|
|
43511
|
+
data["partName"] = this.partName;
|
|
43577
43512
|
data["partNumber"] = this.partNumber;
|
|
43578
43513
|
data["partRevision"] = this.partRevision;
|
|
43579
43514
|
data["drawing"] = this.drawing;
|
|
@@ -43782,6 +43717,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43782
43717
|
this.id = _data["id"];
|
|
43783
43718
|
this.readonly = _data["readonly"];
|
|
43784
43719
|
this.partNumber = _data["partNumber"];
|
|
43720
|
+
this.partName = _data["partName"];
|
|
43785
43721
|
this.partRevision = _data["partRevision"];
|
|
43786
43722
|
this.drawing = _data["drawing"];
|
|
43787
43723
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43821,6 +43757,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43821
43757
|
data["id"] = this.id;
|
|
43822
43758
|
data["readonly"] = this.readonly;
|
|
43823
43759
|
data["partNumber"] = this.partNumber;
|
|
43760
|
+
data["partName"] = this.partName;
|
|
43824
43761
|
data["partRevision"] = this.partRevision;
|
|
43825
43762
|
data["drawing"] = this.drawing;
|
|
43826
43763
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -46684,156 +46621,6 @@ export class CreateWorkOrderMapping {
|
|
|
46684
46621
|
return data;
|
|
46685
46622
|
}
|
|
46686
46623
|
}
|
|
46687
|
-
export class TableEntityBase {
|
|
46688
|
-
constructor(data) {
|
|
46689
|
-
if (data) {
|
|
46690
|
-
for (var property in data) {
|
|
46691
|
-
if (data.hasOwnProperty(property))
|
|
46692
|
-
this[property] = data[property];
|
|
46693
|
-
}
|
|
46694
|
-
}
|
|
46695
|
-
}
|
|
46696
|
-
init(_data) {
|
|
46697
|
-
if (_data) {
|
|
46698
|
-
this.partitionKey = _data["partitionKey"];
|
|
46699
|
-
this.rowKey = _data["rowKey"];
|
|
46700
|
-
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
|
|
46701
|
-
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : undefined;
|
|
46702
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46703
|
-
this.createdBy = _data["createdBy"];
|
|
46704
|
-
this.createdById = _data["createdById"];
|
|
46705
|
-
this.updatedBy = _data["updatedBy"];
|
|
46706
|
-
this.updatedById = _data["updatedById"];
|
|
46707
|
-
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : undefined;
|
|
46708
|
-
}
|
|
46709
|
-
}
|
|
46710
|
-
static fromJS(data) {
|
|
46711
|
-
data = typeof data === 'object' ? data : {};
|
|
46712
|
-
let result = new TableEntityBase();
|
|
46713
|
-
result.init(data);
|
|
46714
|
-
return result;
|
|
46715
|
-
}
|
|
46716
|
-
toJSON(data) {
|
|
46717
|
-
data = typeof data === 'object' ? data : {};
|
|
46718
|
-
data["partitionKey"] = this.partitionKey;
|
|
46719
|
-
data["rowKey"] = this.rowKey;
|
|
46720
|
-
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
|
|
46721
|
-
data["eTag"] = this.eTag ? this.eTag.toJSON() : undefined;
|
|
46722
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46723
|
-
data["createdBy"] = this.createdBy;
|
|
46724
|
-
data["createdById"] = this.createdById;
|
|
46725
|
-
data["updatedBy"] = this.updatedBy;
|
|
46726
|
-
data["updatedById"] = this.updatedById;
|
|
46727
|
-
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : undefined;
|
|
46728
|
-
return data;
|
|
46729
|
-
}
|
|
46730
|
-
}
|
|
46731
|
-
export class WorkorderDiscussionMessage extends TableEntityBase {
|
|
46732
|
-
constructor(data) {
|
|
46733
|
-
super(data);
|
|
46734
|
-
}
|
|
46735
|
-
init(_data) {
|
|
46736
|
-
super.init(_data);
|
|
46737
|
-
if (_data) {
|
|
46738
|
-
this.content = _data["content"];
|
|
46739
|
-
this.senderUpn = _data["senderUpn"];
|
|
46740
|
-
this.senderName = _data["senderName"];
|
|
46741
|
-
}
|
|
46742
|
-
}
|
|
46743
|
-
static fromJS(data) {
|
|
46744
|
-
data = typeof data === 'object' ? data : {};
|
|
46745
|
-
let result = new WorkorderDiscussionMessage();
|
|
46746
|
-
result.init(data);
|
|
46747
|
-
return result;
|
|
46748
|
-
}
|
|
46749
|
-
toJSON(data) {
|
|
46750
|
-
data = typeof data === 'object' ? data : {};
|
|
46751
|
-
data["content"] = this.content;
|
|
46752
|
-
data["senderUpn"] = this.senderUpn;
|
|
46753
|
-
data["senderName"] = this.senderName;
|
|
46754
|
-
super.toJSON(data);
|
|
46755
|
-
return data;
|
|
46756
|
-
}
|
|
46757
|
-
}
|
|
46758
|
-
/** Represents an HTTP ETag. */
|
|
46759
|
-
export class ETag {
|
|
46760
|
-
constructor(data) {
|
|
46761
|
-
if (data) {
|
|
46762
|
-
for (var property in data) {
|
|
46763
|
-
if (data.hasOwnProperty(property))
|
|
46764
|
-
this[property] = data[property];
|
|
46765
|
-
}
|
|
46766
|
-
}
|
|
46767
|
-
}
|
|
46768
|
-
init(_data) {
|
|
46769
|
-
}
|
|
46770
|
-
static fromJS(data) {
|
|
46771
|
-
data = typeof data === 'object' ? data : {};
|
|
46772
|
-
let result = new ETag();
|
|
46773
|
-
result.init(data);
|
|
46774
|
-
return result;
|
|
46775
|
-
}
|
|
46776
|
-
toJSON(data) {
|
|
46777
|
-
data = typeof data === 'object' ? data : {};
|
|
46778
|
-
return data;
|
|
46779
|
-
}
|
|
46780
|
-
}
|
|
46781
|
-
export class AuditInfo {
|
|
46782
|
-
constructor(data) {
|
|
46783
|
-
if (data) {
|
|
46784
|
-
for (var property in data) {
|
|
46785
|
-
if (data.hasOwnProperty(property))
|
|
46786
|
-
this[property] = data[property];
|
|
46787
|
-
}
|
|
46788
|
-
}
|
|
46789
|
-
}
|
|
46790
|
-
init(_data) {
|
|
46791
|
-
if (_data) {
|
|
46792
|
-
this.objectId = _data["objectId"];
|
|
46793
|
-
this.userId = _data["userId"];
|
|
46794
|
-
this.userFullName = _data["userFullName"];
|
|
46795
|
-
}
|
|
46796
|
-
}
|
|
46797
|
-
static fromJS(data) {
|
|
46798
|
-
data = typeof data === 'object' ? data : {};
|
|
46799
|
-
let result = new AuditInfo();
|
|
46800
|
-
result.init(data);
|
|
46801
|
-
return result;
|
|
46802
|
-
}
|
|
46803
|
-
toJSON(data) {
|
|
46804
|
-
data = typeof data === 'object' ? data : {};
|
|
46805
|
-
data["objectId"] = this.objectId;
|
|
46806
|
-
data["userId"] = this.userId;
|
|
46807
|
-
data["userFullName"] = this.userFullName;
|
|
46808
|
-
return data;
|
|
46809
|
-
}
|
|
46810
|
-
}
|
|
46811
|
-
export class AddDiscussionMessageRequest {
|
|
46812
|
-
constructor(data) {
|
|
46813
|
-
if (data) {
|
|
46814
|
-
for (var property in data) {
|
|
46815
|
-
if (data.hasOwnProperty(property))
|
|
46816
|
-
this[property] = data[property];
|
|
46817
|
-
}
|
|
46818
|
-
}
|
|
46819
|
-
}
|
|
46820
|
-
init(_data) {
|
|
46821
|
-
if (_data) {
|
|
46822
|
-
this.message = _data["message"];
|
|
46823
|
-
}
|
|
46824
|
-
}
|
|
46825
|
-
static fromJS(data) {
|
|
46826
|
-
data = typeof data === 'object' ? data : {};
|
|
46827
|
-
let result = new AddDiscussionMessageRequest();
|
|
46828
|
-
result.init(data);
|
|
46829
|
-
return result;
|
|
46830
|
-
}
|
|
46831
|
-
toJSON(data) {
|
|
46832
|
-
data = typeof data === 'object' ? data : {};
|
|
46833
|
-
data["message"] = this.message;
|
|
46834
|
-
return data;
|
|
46835
|
-
}
|
|
46836
|
-
}
|
|
46837
46624
|
function formatDate(d) {
|
|
46838
46625
|
return d.getFullYear() + '-' +
|
|
46839
46626
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|