@ignos/api-client 20250806.0.12310-alpha → 20250807.0.12317

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.
@@ -1180,6 +1180,115 @@ export class MeClient extends AuthorizedApiBase {
1180
1180
  }
1181
1181
  return Promise.resolve(null);
1182
1182
  }
1183
+ getRoles() {
1184
+ let url_ = this.baseUrl + "/me/roles";
1185
+ url_ = url_.replace(/[?&]$/, "");
1186
+ let options_ = {
1187
+ method: "GET",
1188
+ headers: {
1189
+ "Accept": "application/json"
1190
+ }
1191
+ };
1192
+ return this.transformOptions(options_).then(transformedOptions_ => {
1193
+ return this.http.fetch(url_, transformedOptions_);
1194
+ }).then((_response) => {
1195
+ return this.processGetRoles(_response);
1196
+ });
1197
+ }
1198
+ processGetRoles(response) {
1199
+ const status = response.status;
1200
+ let _headers = {};
1201
+ if (response.headers && response.headers.forEach) {
1202
+ response.headers.forEach((v, k) => _headers[k] = v);
1203
+ }
1204
+ ;
1205
+ if (status === 200) {
1206
+ return response.text().then((_responseText) => {
1207
+ let result200 = null;
1208
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1209
+ if (Array.isArray(resultData200)) {
1210
+ result200 = [];
1211
+ for (let item of resultData200)
1212
+ result200.push(item);
1213
+ }
1214
+ return result200;
1215
+ });
1216
+ }
1217
+ else if (status !== 200 && status !== 204) {
1218
+ return response.text().then((_responseText) => {
1219
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1220
+ });
1221
+ }
1222
+ return Promise.resolve(null);
1223
+ }
1224
+ setTestRoles(roles) {
1225
+ let url_ = this.baseUrl + "/me/roles";
1226
+ url_ = url_.replace(/[?&]$/, "");
1227
+ const content_ = JSON.stringify(roles);
1228
+ let options_ = {
1229
+ body: content_,
1230
+ method: "POST",
1231
+ headers: {
1232
+ "Content-Type": "application/json",
1233
+ }
1234
+ };
1235
+ return this.transformOptions(options_).then(transformedOptions_ => {
1236
+ return this.http.fetch(url_, transformedOptions_);
1237
+ }).then((_response) => {
1238
+ return this.processSetTestRoles(_response);
1239
+ });
1240
+ }
1241
+ processSetTestRoles(response) {
1242
+ const status = response.status;
1243
+ let _headers = {};
1244
+ if (response.headers && response.headers.forEach) {
1245
+ response.headers.forEach((v, k) => _headers[k] = v);
1246
+ }
1247
+ ;
1248
+ if (status === 200) {
1249
+ return response.text().then((_responseText) => {
1250
+ return;
1251
+ });
1252
+ }
1253
+ else if (status !== 200 && status !== 204) {
1254
+ return response.text().then((_responseText) => {
1255
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1256
+ });
1257
+ }
1258
+ return Promise.resolve(null);
1259
+ }
1260
+ removeAllTestRoles() {
1261
+ let url_ = this.baseUrl + "/me/roles";
1262
+ url_ = url_.replace(/[?&]$/, "");
1263
+ let options_ = {
1264
+ method: "DELETE",
1265
+ headers: {}
1266
+ };
1267
+ return this.transformOptions(options_).then(transformedOptions_ => {
1268
+ return this.http.fetch(url_, transformedOptions_);
1269
+ }).then((_response) => {
1270
+ return this.processRemoveAllTestRoles(_response);
1271
+ });
1272
+ }
1273
+ processRemoveAllTestRoles(response) {
1274
+ const status = response.status;
1275
+ let _headers = {};
1276
+ if (response.headers && response.headers.forEach) {
1277
+ response.headers.forEach((v, k) => _headers[k] = v);
1278
+ }
1279
+ ;
1280
+ if (status === 200) {
1281
+ return response.text().then((_responseText) => {
1282
+ return;
1283
+ });
1284
+ }
1285
+ else if (status !== 200 && status !== 204) {
1286
+ return response.text().then((_responseText) => {
1287
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1288
+ });
1289
+ }
1290
+ return Promise.resolve(null);
1291
+ }
1183
1292
  }
1184
1293
  export class UsersClient extends AuthorizedApiBase {
1185
1294
  constructor(configuration, baseUrl, http) {
@@ -6909,6 +7018,54 @@ export class MachinesClient extends AuthorizedApiBase {
6909
7018
  }
6910
7019
  return Promise.resolve(null);
6911
7020
  }
7021
+ getWorkOrderTimeline(id, startTime, endTime) {
7022
+ let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
7023
+ if (id === undefined || id === null)
7024
+ throw new Error("The parameter 'id' must be defined.");
7025
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
7026
+ if (startTime !== undefined && startTime !== null)
7027
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
7028
+ if (endTime !== undefined && endTime !== null)
7029
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
7030
+ url_ = url_.replace(/[?&]$/, "");
7031
+ let options_ = {
7032
+ method: "GET",
7033
+ headers: {
7034
+ "Accept": "application/json"
7035
+ }
7036
+ };
7037
+ return this.transformOptions(options_).then(transformedOptions_ => {
7038
+ return this.http.fetch(url_, transformedOptions_);
7039
+ }).then((_response) => {
7040
+ return this.processGetWorkOrderTimeline(_response);
7041
+ });
7042
+ }
7043
+ processGetWorkOrderTimeline(response) {
7044
+ const status = response.status;
7045
+ let _headers = {};
7046
+ if (response.headers && response.headers.forEach) {
7047
+ response.headers.forEach((v, k) => _headers[k] = v);
7048
+ }
7049
+ ;
7050
+ if (status === 200) {
7051
+ return response.text().then((_responseText) => {
7052
+ let result200 = null;
7053
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7054
+ if (Array.isArray(resultData200)) {
7055
+ result200 = [];
7056
+ for (let item of resultData200)
7057
+ result200.push(WorkOrderDatapoint.fromJS(item));
7058
+ }
7059
+ return result200;
7060
+ });
7061
+ }
7062
+ else if (status !== 200 && status !== 204) {
7063
+ return response.text().then((_responseText) => {
7064
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7065
+ });
7066
+ }
7067
+ return Promise.resolve(null);
7068
+ }
6912
7069
  getMachineUtilizationSummary() {
6913
7070
  let url_ = this.baseUrl + "/machines/utilization/summary";
6914
7071
  url_ = url_.replace(/[?&]$/, "");
@@ -22722,275 +22879,6 @@ export class WorkordersClient extends AuthorizedApiBase {
22722
22879
  }
22723
22880
  return Promise.resolve(null);
22724
22881
  }
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
- "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 = WorkorderDiscussionMessageDto.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
- }
22911
- getLastRead(id, operationId, resourceId) {
22912
- let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
22913
- if (id === undefined || id === null)
22914
- throw new Error("The parameter 'id' must be defined.");
22915
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22916
- if (operationId !== undefined && operationId !== null)
22917
- url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
22918
- if (resourceId !== undefined && resourceId !== null)
22919
- url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
22920
- url_ = url_.replace(/[?&]$/, "");
22921
- let options_ = {
22922
- method: "GET",
22923
- headers: {
22924
- "Accept": "application/json"
22925
- }
22926
- };
22927
- return this.transformOptions(options_).then(transformedOptions_ => {
22928
- return this.http.fetch(url_, transformedOptions_);
22929
- }).then((_response) => {
22930
- return this.processGetLastRead(_response);
22931
- });
22932
- }
22933
- processGetLastRead(response) {
22934
- const status = response.status;
22935
- let _headers = {};
22936
- if (response.headers && response.headers.forEach) {
22937
- response.headers.forEach((v, k) => _headers[k] = v);
22938
- }
22939
- ;
22940
- if (status === 200) {
22941
- return response.text().then((_responseText) => {
22942
- let result200 = null;
22943
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22944
- result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
22945
- return result200;
22946
- });
22947
- }
22948
- else if (status !== 200 && status !== 204) {
22949
- return response.text().then((_responseText) => {
22950
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22951
- });
22952
- }
22953
- return Promise.resolve(null);
22954
- }
22955
- setLastRead(id, request) {
22956
- let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
22957
- if (id === undefined || id === null)
22958
- throw new Error("The parameter 'id' must be defined.");
22959
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22960
- url_ = url_.replace(/[?&]$/, "");
22961
- const content_ = JSON.stringify(request);
22962
- let options_ = {
22963
- body: content_,
22964
- method: "POST",
22965
- headers: {
22966
- "Content-Type": "application/json",
22967
- }
22968
- };
22969
- return this.transformOptions(options_).then(transformedOptions_ => {
22970
- return this.http.fetch(url_, transformedOptions_);
22971
- }).then((_response) => {
22972
- return this.processSetLastRead(_response);
22973
- });
22974
- }
22975
- processSetLastRead(response) {
22976
- const status = response.status;
22977
- let _headers = {};
22978
- if (response.headers && response.headers.forEach) {
22979
- response.headers.forEach((v, k) => _headers[k] = v);
22980
- }
22981
- ;
22982
- if (status === 204) {
22983
- return response.text().then((_responseText) => {
22984
- return;
22985
- });
22986
- }
22987
- else if (status !== 200 && status !== 204) {
22988
- return response.text().then((_responseText) => {
22989
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22990
- });
22991
- }
22992
- return Promise.resolve(null);
22993
- }
22994
22882
  }
22995
22883
  export class AzureRegionDto {
22996
22884
  constructor(data) {
@@ -30618,6 +30506,56 @@ export class WorkOrderProjectDto {
30618
30506
  return data;
30619
30507
  }
30620
30508
  }
30509
+ export class WorkOrderDatapoint {
30510
+ constructor(data) {
30511
+ if (data) {
30512
+ for (var property in data) {
30513
+ if (data.hasOwnProperty(property))
30514
+ this[property] = data[property];
30515
+ }
30516
+ }
30517
+ }
30518
+ init(_data) {
30519
+ if (_data) {
30520
+ this.workOrder = _data["workOrder"];
30521
+ this.id = _data["id"];
30522
+ this.externalId = _data["externalId"];
30523
+ this.subType = _data["subType"];
30524
+ this.startTime = _data["startTime"];
30525
+ this.endTime = _data["endTime"];
30526
+ if (_data["metaData"]) {
30527
+ this.metaData = {};
30528
+ for (let key in _data["metaData"]) {
30529
+ if (_data["metaData"].hasOwnProperty(key))
30530
+ this.metaData[key] = _data["metaData"][key];
30531
+ }
30532
+ }
30533
+ }
30534
+ }
30535
+ static fromJS(data) {
30536
+ data = typeof data === 'object' ? data : {};
30537
+ let result = new WorkOrderDatapoint();
30538
+ result.init(data);
30539
+ return result;
30540
+ }
30541
+ toJSON(data) {
30542
+ data = typeof data === 'object' ? data : {};
30543
+ data["workOrder"] = this.workOrder;
30544
+ data["id"] = this.id;
30545
+ data["externalId"] = this.externalId;
30546
+ data["subType"] = this.subType;
30547
+ data["startTime"] = this.startTime;
30548
+ data["endTime"] = this.endTime;
30549
+ if (this.metaData) {
30550
+ data["metaData"] = {};
30551
+ for (let key in this.metaData) {
30552
+ if (this.metaData.hasOwnProperty(key))
30553
+ data["metaData"][key] = this.metaData[key];
30554
+ }
30555
+ }
30556
+ return data;
30557
+ }
30558
+ }
30621
30559
  export class UtilizationSummaryDto {
30622
30560
  constructor(data) {
30623
30561
  if (data) {
@@ -46866,154 +46804,6 @@ export class CreateWorkOrderMapping {
46866
46804
  return data;
46867
46805
  }
46868
46806
  }
46869
- export class WorkorderDiscussionMessageDto {
46870
- constructor(data) {
46871
- if (data) {
46872
- for (var property in data) {
46873
- if (data.hasOwnProperty(property))
46874
- this[property] = data[property];
46875
- }
46876
- }
46877
- }
46878
- init(_data) {
46879
- if (_data) {
46880
- this.id = _data["id"];
46881
- this.workorderId = _data["workorderId"];
46882
- this.companyId = _data["companyId"];
46883
- this.content = _data["content"];
46884
- this.senderUpn = _data["senderUpn"];
46885
- this.senderName = _data["senderName"];
46886
- this.operationId = _data["operationId"];
46887
- this.operationName = _data["operationName"];
46888
- this.resourceId = _data["resourceId"];
46889
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
46890
- }
46891
- }
46892
- static fromJS(data) {
46893
- data = typeof data === 'object' ? data : {};
46894
- let result = new WorkorderDiscussionMessageDto();
46895
- result.init(data);
46896
- return result;
46897
- }
46898
- toJSON(data) {
46899
- data = typeof data === 'object' ? data : {};
46900
- data["id"] = this.id;
46901
- data["workorderId"] = this.workorderId;
46902
- data["companyId"] = this.companyId;
46903
- data["content"] = this.content;
46904
- data["senderUpn"] = this.senderUpn;
46905
- data["senderName"] = this.senderName;
46906
- data["operationId"] = this.operationId;
46907
- data["operationName"] = this.operationName;
46908
- data["resourceId"] = this.resourceId;
46909
- data["created"] = this.created ? this.created.toISOString() : undefined;
46910
- return data;
46911
- }
46912
- }
46913
- export class AddDiscussionMessageRequest {
46914
- constructor(data) {
46915
- if (data) {
46916
- for (var property in data) {
46917
- if (data.hasOwnProperty(property))
46918
- this[property] = data[property];
46919
- }
46920
- }
46921
- }
46922
- init(_data) {
46923
- if (_data) {
46924
- this.companyId = _data["companyId"];
46925
- this.message = _data["message"];
46926
- this.senderUpn = _data["senderUpn"];
46927
- this.senderName = _data["senderName"];
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["companyId"] = this.companyId;
46942
- data["message"] = this.message;
46943
- data["senderUpn"] = this.senderUpn;
46944
- data["senderName"] = this.senderName;
46945
- data["operationId"] = this.operationId;
46946
- data["operationName"] = this.operationName;
46947
- data["resourceId"] = this.resourceId;
46948
- return data;
46949
- }
46950
- }
46951
- export class WorkorderDiscussionReadStatusDto {
46952
- constructor(data) {
46953
- if (data) {
46954
- for (var property in data) {
46955
- if (data.hasOwnProperty(property))
46956
- this[property] = data[property];
46957
- }
46958
- }
46959
- }
46960
- init(_data) {
46961
- if (_data) {
46962
- this.workorderId = _data["workorderId"];
46963
- this.operationId = _data["operationId"];
46964
- this.resourceId = _data["resourceId"];
46965
- this.userUpn = _data["userUpn"];
46966
- this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : undefined;
46967
- }
46968
- }
46969
- static fromJS(data) {
46970
- data = typeof data === 'object' ? data : {};
46971
- let result = new WorkorderDiscussionReadStatusDto();
46972
- result.init(data);
46973
- return result;
46974
- }
46975
- toJSON(data) {
46976
- data = typeof data === 'object' ? data : {};
46977
- data["workorderId"] = this.workorderId;
46978
- data["operationId"] = this.operationId;
46979
- data["resourceId"] = this.resourceId;
46980
- data["userUpn"] = this.userUpn;
46981
- data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : undefined;
46982
- return data;
46983
- }
46984
- }
46985
- export class SetDiscussionLastRead {
46986
- constructor(data) {
46987
- if (data) {
46988
- for (var property in data) {
46989
- if (data.hasOwnProperty(property))
46990
- this[property] = data[property];
46991
- }
46992
- }
46993
- }
46994
- init(_data) {
46995
- if (_data) {
46996
- this.workorderId = _data["workorderId"];
46997
- this.operationId = _data["operationId"];
46998
- this.resourceId = _data["resourceId"];
46999
- this.userUpn = _data["userUpn"];
47000
- }
47001
- }
47002
- static fromJS(data) {
47003
- data = typeof data === 'object' ? data : {};
47004
- let result = new SetDiscussionLastRead();
47005
- result.init(data);
47006
- return result;
47007
- }
47008
- toJSON(data) {
47009
- data = typeof data === 'object' ? data : {};
47010
- data["workorderId"] = this.workorderId;
47011
- data["operationId"] = this.operationId;
47012
- data["resourceId"] = this.resourceId;
47013
- data["userUpn"] = this.userUpn;
47014
- return data;
47015
- }
47016
- }
47017
46807
  function formatDate(d) {
47018
46808
  return d.getFullYear() + '-' +
47019
46809
  (d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250806.0.12310-alpha",
3
+ "version": "20250807.0.12317",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",