@ignos/api-client 20250729.0.12229-alpha → 20250805.0.12267-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +62 -62
- package/lib/ignosportal-api.js +132 -67
- package/package.json +1 -1
- package/src/ignosportal-api.ts +196 -133
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2623,10 +2623,12 @@ export interface IWorkordersClient {
|
|
|
2623
2623
|
* Deleteds existing work order mappings.
|
|
2624
2624
|
*/
|
|
2625
2625
|
deleteWorkOrderMappings(): Promise<void>;
|
|
2626
|
-
getDiscussionMessages(id: string): Promise<
|
|
2627
|
-
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<
|
|
2626
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2627
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void>;
|
|
2628
2628
|
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
|
|
2629
2629
|
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
2630
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
2631
|
+
setLastRead(id: string, request: SetDiscussionLastRead): Promise<void>;
|
|
2630
2632
|
}
|
|
2631
2633
|
export declare class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
2632
2634
|
private http;
|
|
@@ -2756,14 +2758,18 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
2756
2758
|
*/
|
|
2757
2759
|
deleteWorkOrderMappings(): Promise<void>;
|
|
2758
2760
|
protected processDeleteWorkOrderMappings(response: Response): Promise<void>;
|
|
2759
|
-
getDiscussionMessages(id: string): Promise<
|
|
2760
|
-
protected processGetDiscussionMessages(response: Response): Promise<
|
|
2761
|
-
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<
|
|
2762
|
-
protected processAddDiscussionMessage(response: Response): Promise<
|
|
2761
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2762
|
+
protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2763
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void>;
|
|
2764
|
+
protected processAddDiscussionMessage(response: Response): Promise<void>;
|
|
2763
2765
|
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
|
|
2764
2766
|
protected processUpdateMessage(response: Response): Promise<FileResponse>;
|
|
2765
2767
|
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
2766
2768
|
protected processDeleteMessage(response: Response): Promise<FileResponse>;
|
|
2769
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
2770
|
+
protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto>;
|
|
2771
|
+
setLastRead(id: string, request: SetDiscussionLastRead): Promise<void>;
|
|
2772
|
+
protected processSetLastRead(response: Response): Promise<void>;
|
|
2767
2773
|
}
|
|
2768
2774
|
export declare class AzureRegionDto implements IAzureRegionDto {
|
|
2769
2775
|
displayName: string;
|
|
@@ -14422,80 +14428,37 @@ export interface ICreateWorkOrderMapping {
|
|
|
14422
14428
|
existingWorkOrderId: string;
|
|
14423
14429
|
newWorkOrderId: string;
|
|
14424
14430
|
}
|
|
14425
|
-
export declare class
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
timestamp?: Date | null;
|
|
14429
|
-
eTag?: ETag;
|
|
14430
|
-
created?: Date | null;
|
|
14431
|
-
createdBy?: string | null;
|
|
14432
|
-
createdById?: string | null;
|
|
14433
|
-
updatedBy?: string | null;
|
|
14434
|
-
updatedById?: string | null;
|
|
14435
|
-
insertAuditInfo?: AuditInfo;
|
|
14436
|
-
constructor(data?: ITableEntityBase);
|
|
14437
|
-
init(_data?: any): void;
|
|
14438
|
-
static fromJS(data: any): TableEntityBase;
|
|
14439
|
-
toJSON(data?: any): any;
|
|
14440
|
-
}
|
|
14441
|
-
export interface ITableEntityBase {
|
|
14442
|
-
partitionKey?: string;
|
|
14443
|
-
rowKey?: string;
|
|
14444
|
-
timestamp?: Date | null;
|
|
14445
|
-
eTag?: ETag;
|
|
14446
|
-
created?: Date | null;
|
|
14447
|
-
createdBy?: string | null;
|
|
14448
|
-
createdById?: string | null;
|
|
14449
|
-
updatedBy?: string | null;
|
|
14450
|
-
updatedById?: string | null;
|
|
14451
|
-
insertAuditInfo?: AuditInfo;
|
|
14452
|
-
}
|
|
14453
|
-
export declare class WorkorderDiscussionMessage extends TableEntityBase implements IWorkorderDiscussionMessage {
|
|
14431
|
+
export declare class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessageDto {
|
|
14432
|
+
workorderId?: string;
|
|
14433
|
+
companyId?: string;
|
|
14454
14434
|
content?: string;
|
|
14455
14435
|
senderUpn?: string;
|
|
14456
14436
|
senderName?: string;
|
|
14457
14437
|
operationId?: string | null;
|
|
14458
14438
|
operationName?: string | null;
|
|
14459
14439
|
resourceId?: string | null;
|
|
14460
|
-
|
|
14440
|
+
created?: Date;
|
|
14441
|
+
constructor(data?: IWorkorderDiscussionMessageDto);
|
|
14461
14442
|
init(_data?: any): void;
|
|
14462
|
-
static fromJS(data: any):
|
|
14443
|
+
static fromJS(data: any): WorkorderDiscussionMessageDto;
|
|
14463
14444
|
toJSON(data?: any): any;
|
|
14464
14445
|
}
|
|
14465
|
-
export interface
|
|
14446
|
+
export interface IWorkorderDiscussionMessageDto {
|
|
14447
|
+
workorderId?: string;
|
|
14448
|
+
companyId?: string;
|
|
14466
14449
|
content?: string;
|
|
14467
14450
|
senderUpn?: string;
|
|
14468
14451
|
senderName?: string;
|
|
14469
14452
|
operationId?: string | null;
|
|
14470
14453
|
operationName?: string | null;
|
|
14471
14454
|
resourceId?: string | null;
|
|
14472
|
-
|
|
14473
|
-
/** Represents an HTTP ETag. */
|
|
14474
|
-
export declare class ETag implements IETag {
|
|
14475
|
-
constructor(data?: IETag);
|
|
14476
|
-
init(_data?: any): void;
|
|
14477
|
-
static fromJS(data: any): ETag;
|
|
14478
|
-
toJSON(data?: any): any;
|
|
14479
|
-
}
|
|
14480
|
-
/** Represents an HTTP ETag. */
|
|
14481
|
-
export interface IETag {
|
|
14482
|
-
}
|
|
14483
|
-
export declare class AuditInfo implements IAuditInfo {
|
|
14484
|
-
objectId?: string;
|
|
14485
|
-
userId?: string;
|
|
14486
|
-
userFullName?: string | null;
|
|
14487
|
-
constructor(data?: IAuditInfo);
|
|
14488
|
-
init(_data?: any): void;
|
|
14489
|
-
static fromJS(data: any): AuditInfo;
|
|
14490
|
-
toJSON(data?: any): any;
|
|
14491
|
-
}
|
|
14492
|
-
export interface IAuditInfo {
|
|
14493
|
-
objectId?: string;
|
|
14494
|
-
userId?: string;
|
|
14495
|
-
userFullName?: string | null;
|
|
14455
|
+
created?: Date;
|
|
14496
14456
|
}
|
|
14497
14457
|
export declare class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
14458
|
+
companyId?: string;
|
|
14498
14459
|
message?: string;
|
|
14460
|
+
senderUpn?: string;
|
|
14461
|
+
senderName?: string;
|
|
14499
14462
|
operationId?: string | null;
|
|
14500
14463
|
operationName?: string | null;
|
|
14501
14464
|
resourceId?: string | null;
|
|
@@ -14505,11 +14468,48 @@ export declare class AddDiscussionMessageRequest implements IAddDiscussionMessag
|
|
|
14505
14468
|
toJSON(data?: any): any;
|
|
14506
14469
|
}
|
|
14507
14470
|
export interface IAddDiscussionMessageRequest {
|
|
14471
|
+
companyId?: string;
|
|
14508
14472
|
message?: string;
|
|
14473
|
+
senderUpn?: string;
|
|
14474
|
+
senderName?: string;
|
|
14509
14475
|
operationId?: string | null;
|
|
14510
14476
|
operationName?: string | null;
|
|
14511
14477
|
resourceId?: string | null;
|
|
14512
14478
|
}
|
|
14479
|
+
export declare class WorkorderDiscussionReadStatusDto implements IWorkorderDiscussionReadStatusDto {
|
|
14480
|
+
workorderId?: string;
|
|
14481
|
+
operationId?: string | null;
|
|
14482
|
+
resourceId?: string | null;
|
|
14483
|
+
userUpn?: string;
|
|
14484
|
+
lastRead?: Date;
|
|
14485
|
+
constructor(data?: IWorkorderDiscussionReadStatusDto);
|
|
14486
|
+
init(_data?: any): void;
|
|
14487
|
+
static fromJS(data: any): WorkorderDiscussionReadStatusDto;
|
|
14488
|
+
toJSON(data?: any): any;
|
|
14489
|
+
}
|
|
14490
|
+
export interface IWorkorderDiscussionReadStatusDto {
|
|
14491
|
+
workorderId?: string;
|
|
14492
|
+
operationId?: string | null;
|
|
14493
|
+
resourceId?: string | null;
|
|
14494
|
+
userUpn?: string;
|
|
14495
|
+
lastRead?: Date;
|
|
14496
|
+
}
|
|
14497
|
+
export declare class SetDiscussionLastRead implements ISetDiscussionLastRead {
|
|
14498
|
+
workorderId?: string;
|
|
14499
|
+
operationId?: string | null;
|
|
14500
|
+
resourceId?: string | null;
|
|
14501
|
+
userUpn?: string;
|
|
14502
|
+
constructor(data?: ISetDiscussionLastRead);
|
|
14503
|
+
init(_data?: any): void;
|
|
14504
|
+
static fromJS(data: any): SetDiscussionLastRead;
|
|
14505
|
+
toJSON(data?: any): any;
|
|
14506
|
+
}
|
|
14507
|
+
export interface ISetDiscussionLastRead {
|
|
14508
|
+
workorderId?: string;
|
|
14509
|
+
operationId?: string | null;
|
|
14510
|
+
resourceId?: string | null;
|
|
14511
|
+
userUpn?: string;
|
|
14512
|
+
}
|
|
14513
14513
|
export interface FileParameter {
|
|
14514
14514
|
data: any;
|
|
14515
14515
|
fileName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -22754,7 +22754,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22754
22754
|
if (Array.isArray(resultData200)) {
|
|
22755
22755
|
result200 = [];
|
|
22756
22756
|
for (let item of resultData200)
|
|
22757
|
-
result200.push(
|
|
22757
|
+
result200.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
22758
22758
|
}
|
|
22759
22759
|
return result200;
|
|
22760
22760
|
});
|
|
@@ -22778,7 +22778,6 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22778
22778
|
method: "POST",
|
|
22779
22779
|
headers: {
|
|
22780
22780
|
"Content-Type": "application/json",
|
|
22781
|
-
"Accept": "application/json"
|
|
22782
22781
|
}
|
|
22783
22782
|
};
|
|
22784
22783
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -22794,12 +22793,9 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22794
22793
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22795
22794
|
}
|
|
22796
22795
|
;
|
|
22797
|
-
if (status ===
|
|
22796
|
+
if (status === 204) {
|
|
22798
22797
|
return response.text().then((_responseText) => {
|
|
22799
|
-
|
|
22800
|
-
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22801
|
-
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
22802
|
-
return result201;
|
|
22798
|
+
return;
|
|
22803
22799
|
});
|
|
22804
22800
|
}
|
|
22805
22801
|
else if (status !== 200 && status !== 204) {
|
|
@@ -22908,6 +22904,91 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22908
22904
|
}
|
|
22909
22905
|
return Promise.resolve(null);
|
|
22910
22906
|
}
|
|
22907
|
+
getLastRead(id, operationId, resourceId, userUpn) {
|
|
22908
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
22909
|
+
if (id === undefined || id === null)
|
|
22910
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22911
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22912
|
+
if (operationId !== undefined && operationId !== null)
|
|
22913
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
22914
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
22915
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
22916
|
+
if (userUpn !== undefined && userUpn !== null)
|
|
22917
|
+
url_ += "userUpn=" + encodeURIComponent("" + userUpn) + "&";
|
|
22918
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22919
|
+
let options_ = {
|
|
22920
|
+
method: "GET",
|
|
22921
|
+
headers: {
|
|
22922
|
+
"Accept": "application/json"
|
|
22923
|
+
}
|
|
22924
|
+
};
|
|
22925
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22926
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22927
|
+
}).then((_response) => {
|
|
22928
|
+
return this.processGetLastRead(_response);
|
|
22929
|
+
});
|
|
22930
|
+
}
|
|
22931
|
+
processGetLastRead(response) {
|
|
22932
|
+
const status = response.status;
|
|
22933
|
+
let _headers = {};
|
|
22934
|
+
if (response.headers && response.headers.forEach) {
|
|
22935
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22936
|
+
}
|
|
22937
|
+
;
|
|
22938
|
+
if (status === 200) {
|
|
22939
|
+
return response.text().then((_responseText) => {
|
|
22940
|
+
let result200 = null;
|
|
22941
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22942
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
22943
|
+
return result200;
|
|
22944
|
+
});
|
|
22945
|
+
}
|
|
22946
|
+
else if (status !== 200 && status !== 204) {
|
|
22947
|
+
return response.text().then((_responseText) => {
|
|
22948
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22949
|
+
});
|
|
22950
|
+
}
|
|
22951
|
+
return Promise.resolve(null);
|
|
22952
|
+
}
|
|
22953
|
+
setLastRead(id, request) {
|
|
22954
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
22955
|
+
if (id === undefined || id === null)
|
|
22956
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22957
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22958
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22959
|
+
const content_ = JSON.stringify(request);
|
|
22960
|
+
let options_ = {
|
|
22961
|
+
body: content_,
|
|
22962
|
+
method: "POST",
|
|
22963
|
+
headers: {
|
|
22964
|
+
"Content-Type": "application/json",
|
|
22965
|
+
}
|
|
22966
|
+
};
|
|
22967
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22968
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22969
|
+
}).then((_response) => {
|
|
22970
|
+
return this.processSetLastRead(_response);
|
|
22971
|
+
});
|
|
22972
|
+
}
|
|
22973
|
+
processSetLastRead(response) {
|
|
22974
|
+
const status = response.status;
|
|
22975
|
+
let _headers = {};
|
|
22976
|
+
if (response.headers && response.headers.forEach) {
|
|
22977
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22978
|
+
}
|
|
22979
|
+
;
|
|
22980
|
+
if (status === 204) {
|
|
22981
|
+
return response.text().then((_responseText) => {
|
|
22982
|
+
return;
|
|
22983
|
+
});
|
|
22984
|
+
}
|
|
22985
|
+
else if (status !== 200 && status !== 204) {
|
|
22986
|
+
return response.text().then((_responseText) => {
|
|
22987
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22988
|
+
});
|
|
22989
|
+
}
|
|
22990
|
+
return Promise.resolve(null);
|
|
22991
|
+
}
|
|
22911
22992
|
}
|
|
22912
22993
|
export class AzureRegionDto {
|
|
22913
22994
|
constructor(data) {
|
|
@@ -46783,7 +46864,7 @@ export class CreateWorkOrderMapping {
|
|
|
46783
46864
|
return data;
|
|
46784
46865
|
}
|
|
46785
46866
|
}
|
|
46786
|
-
export class
|
|
46867
|
+
export class WorkorderDiscussionMessageDto {
|
|
46787
46868
|
constructor(data) {
|
|
46788
46869
|
if (data) {
|
|
46789
46870
|
for (var property in data) {
|
|
@@ -46794,74 +46875,38 @@ export class TableEntityBase {
|
|
|
46794
46875
|
}
|
|
46795
46876
|
init(_data) {
|
|
46796
46877
|
if (_data) {
|
|
46797
|
-
this.
|
|
46798
|
-
this.
|
|
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) {
|
|
46878
|
+
this.workorderId = _data["workorderId"];
|
|
46879
|
+
this.companyId = _data["companyId"];
|
|
46837
46880
|
this.content = _data["content"];
|
|
46838
46881
|
this.senderUpn = _data["senderUpn"];
|
|
46839
46882
|
this.senderName = _data["senderName"];
|
|
46840
46883
|
this.operationId = _data["operationId"];
|
|
46841
46884
|
this.operationName = _data["operationName"];
|
|
46842
46885
|
this.resourceId = _data["resourceId"];
|
|
46886
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46843
46887
|
}
|
|
46844
46888
|
}
|
|
46845
46889
|
static fromJS(data) {
|
|
46846
46890
|
data = typeof data === 'object' ? data : {};
|
|
46847
|
-
let result = new
|
|
46891
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
46848
46892
|
result.init(data);
|
|
46849
46893
|
return result;
|
|
46850
46894
|
}
|
|
46851
46895
|
toJSON(data) {
|
|
46852
46896
|
data = typeof data === 'object' ? data : {};
|
|
46897
|
+
data["workorderId"] = this.workorderId;
|
|
46898
|
+
data["companyId"] = this.companyId;
|
|
46853
46899
|
data["content"] = this.content;
|
|
46854
46900
|
data["senderUpn"] = this.senderUpn;
|
|
46855
46901
|
data["senderName"] = this.senderName;
|
|
46856
46902
|
data["operationId"] = this.operationId;
|
|
46857
46903
|
data["operationName"] = this.operationName;
|
|
46858
46904
|
data["resourceId"] = this.resourceId;
|
|
46859
|
-
|
|
46905
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46860
46906
|
return data;
|
|
46861
46907
|
}
|
|
46862
46908
|
}
|
|
46863
|
-
|
|
46864
|
-
export class ETag {
|
|
46909
|
+
export class AddDiscussionMessageRequest {
|
|
46865
46910
|
constructor(data) {
|
|
46866
46911
|
if (data) {
|
|
46867
46912
|
for (var property in data) {
|
|
@@ -46871,19 +46916,35 @@ export class ETag {
|
|
|
46871
46916
|
}
|
|
46872
46917
|
}
|
|
46873
46918
|
init(_data) {
|
|
46919
|
+
if (_data) {
|
|
46920
|
+
this.companyId = _data["companyId"];
|
|
46921
|
+
this.message = _data["message"];
|
|
46922
|
+
this.senderUpn = _data["senderUpn"];
|
|
46923
|
+
this.senderName = _data["senderName"];
|
|
46924
|
+
this.operationId = _data["operationId"];
|
|
46925
|
+
this.operationName = _data["operationName"];
|
|
46926
|
+
this.resourceId = _data["resourceId"];
|
|
46927
|
+
}
|
|
46874
46928
|
}
|
|
46875
46929
|
static fromJS(data) {
|
|
46876
46930
|
data = typeof data === 'object' ? data : {};
|
|
46877
|
-
let result = new
|
|
46931
|
+
let result = new AddDiscussionMessageRequest();
|
|
46878
46932
|
result.init(data);
|
|
46879
46933
|
return result;
|
|
46880
46934
|
}
|
|
46881
46935
|
toJSON(data) {
|
|
46882
46936
|
data = typeof data === 'object' ? data : {};
|
|
46937
|
+
data["companyId"] = this.companyId;
|
|
46938
|
+
data["message"] = this.message;
|
|
46939
|
+
data["senderUpn"] = this.senderUpn;
|
|
46940
|
+
data["senderName"] = this.senderName;
|
|
46941
|
+
data["operationId"] = this.operationId;
|
|
46942
|
+
data["operationName"] = this.operationName;
|
|
46943
|
+
data["resourceId"] = this.resourceId;
|
|
46883
46944
|
return data;
|
|
46884
46945
|
}
|
|
46885
46946
|
}
|
|
46886
|
-
export class
|
|
46947
|
+
export class WorkorderDiscussionReadStatusDto {
|
|
46887
46948
|
constructor(data) {
|
|
46888
46949
|
if (data) {
|
|
46889
46950
|
for (var property in data) {
|
|
@@ -46894,26 +46955,30 @@ export class AuditInfo {
|
|
|
46894
46955
|
}
|
|
46895
46956
|
init(_data) {
|
|
46896
46957
|
if (_data) {
|
|
46897
|
-
this.
|
|
46898
|
-
this.
|
|
46899
|
-
this.
|
|
46958
|
+
this.workorderId = _data["workorderId"];
|
|
46959
|
+
this.operationId = _data["operationId"];
|
|
46960
|
+
this.resourceId = _data["resourceId"];
|
|
46961
|
+
this.userUpn = _data["userUpn"];
|
|
46962
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : undefined;
|
|
46900
46963
|
}
|
|
46901
46964
|
}
|
|
46902
46965
|
static fromJS(data) {
|
|
46903
46966
|
data = typeof data === 'object' ? data : {};
|
|
46904
|
-
let result = new
|
|
46967
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
46905
46968
|
result.init(data);
|
|
46906
46969
|
return result;
|
|
46907
46970
|
}
|
|
46908
46971
|
toJSON(data) {
|
|
46909
46972
|
data = typeof data === 'object' ? data : {};
|
|
46910
|
-
data["
|
|
46911
|
-
data["
|
|
46912
|
-
data["
|
|
46973
|
+
data["workorderId"] = this.workorderId;
|
|
46974
|
+
data["operationId"] = this.operationId;
|
|
46975
|
+
data["resourceId"] = this.resourceId;
|
|
46976
|
+
data["userUpn"] = this.userUpn;
|
|
46977
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : undefined;
|
|
46913
46978
|
return data;
|
|
46914
46979
|
}
|
|
46915
46980
|
}
|
|
46916
|
-
export class
|
|
46981
|
+
export class SetDiscussionLastRead {
|
|
46917
46982
|
constructor(data) {
|
|
46918
46983
|
if (data) {
|
|
46919
46984
|
for (var property in data) {
|
|
@@ -46924,24 +46989,24 @@ export class AddDiscussionMessageRequest {
|
|
|
46924
46989
|
}
|
|
46925
46990
|
init(_data) {
|
|
46926
46991
|
if (_data) {
|
|
46927
|
-
this.
|
|
46992
|
+
this.workorderId = _data["workorderId"];
|
|
46928
46993
|
this.operationId = _data["operationId"];
|
|
46929
|
-
this.operationName = _data["operationName"];
|
|
46930
46994
|
this.resourceId = _data["resourceId"];
|
|
46995
|
+
this.userUpn = _data["userUpn"];
|
|
46931
46996
|
}
|
|
46932
46997
|
}
|
|
46933
46998
|
static fromJS(data) {
|
|
46934
46999
|
data = typeof data === 'object' ? data : {};
|
|
46935
|
-
let result = new
|
|
47000
|
+
let result = new SetDiscussionLastRead();
|
|
46936
47001
|
result.init(data);
|
|
46937
47002
|
return result;
|
|
46938
47003
|
}
|
|
46939
47004
|
toJSON(data) {
|
|
46940
47005
|
data = typeof data === 'object' ? data : {};
|
|
46941
|
-
data["
|
|
47006
|
+
data["workorderId"] = this.workorderId;
|
|
46942
47007
|
data["operationId"] = this.operationId;
|
|
46943
|
-
data["operationName"] = this.operationName;
|
|
46944
47008
|
data["resourceId"] = this.resourceId;
|
|
47009
|
+
data["userUpn"] = this.userUpn;
|
|
46945
47010
|
return data;
|
|
46946
47011
|
}
|
|
46947
47012
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -23184,13 +23184,17 @@ export interface IWorkordersClient {
|
|
|
23184
23184
|
*/
|
|
23185
23185
|
deleteWorkOrderMappings(): Promise<void>;
|
|
23186
23186
|
|
|
23187
|
-
getDiscussionMessages(id: string): Promise<
|
|
23187
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
|
|
23188
23188
|
|
|
23189
|
-
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<
|
|
23189
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void>;
|
|
23190
23190
|
|
|
23191
23191
|
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
|
|
23192
23192
|
|
|
23193
23193
|
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
23194
|
+
|
|
23195
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
23196
|
+
|
|
23197
|
+
setLastRead(id: string, request: SetDiscussionLastRead): Promise<void>;
|
|
23194
23198
|
}
|
|
23195
23199
|
|
|
23196
23200
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -24271,7 +24275,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24271
24275
|
return Promise.resolve<void>(null as any);
|
|
24272
24276
|
}
|
|
24273
24277
|
|
|
24274
|
-
getDiscussionMessages(id: string): Promise<
|
|
24278
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]> {
|
|
24275
24279
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24276
24280
|
if (id === undefined || id === null)
|
|
24277
24281
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -24292,7 +24296,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24292
24296
|
});
|
|
24293
24297
|
}
|
|
24294
24298
|
|
|
24295
|
-
protected processGetDiscussionMessages(response: Response): Promise<
|
|
24299
|
+
protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
|
|
24296
24300
|
const status = response.status;
|
|
24297
24301
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24298
24302
|
if (status === 200) {
|
|
@@ -24302,7 +24306,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24302
24306
|
if (Array.isArray(resultData200)) {
|
|
24303
24307
|
result200 = [] as any;
|
|
24304
24308
|
for (let item of resultData200)
|
|
24305
|
-
result200!.push(
|
|
24309
|
+
result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
24306
24310
|
}
|
|
24307
24311
|
return result200;
|
|
24308
24312
|
});
|
|
@@ -24311,10 +24315,10 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24311
24315
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24312
24316
|
});
|
|
24313
24317
|
}
|
|
24314
|
-
return Promise.resolve<
|
|
24318
|
+
return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
|
|
24315
24319
|
}
|
|
24316
24320
|
|
|
24317
|
-
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<
|
|
24321
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void> {
|
|
24318
24322
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24319
24323
|
if (id === undefined || id === null)
|
|
24320
24324
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -24328,7 +24332,6 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24328
24332
|
method: "POST",
|
|
24329
24333
|
headers: {
|
|
24330
24334
|
"Content-Type": "application/json",
|
|
24331
|
-
"Accept": "application/json"
|
|
24332
24335
|
}
|
|
24333
24336
|
};
|
|
24334
24337
|
|
|
@@ -24339,22 +24342,19 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24339
24342
|
});
|
|
24340
24343
|
}
|
|
24341
24344
|
|
|
24342
|
-
protected processAddDiscussionMessage(response: Response): Promise<
|
|
24345
|
+
protected processAddDiscussionMessage(response: Response): Promise<void> {
|
|
24343
24346
|
const status = response.status;
|
|
24344
24347
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24345
|
-
if (status ===
|
|
24348
|
+
if (status === 204) {
|
|
24346
24349
|
return response.text().then((_responseText) => {
|
|
24347
|
-
|
|
24348
|
-
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24349
|
-
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
24350
|
-
return result201;
|
|
24350
|
+
return;
|
|
24351
24351
|
});
|
|
24352
24352
|
} else if (status !== 200 && status !== 204) {
|
|
24353
24353
|
return response.text().then((_responseText) => {
|
|
24354
24354
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24355
24355
|
});
|
|
24356
24356
|
}
|
|
24357
|
-
return Promise.resolve<
|
|
24357
|
+
return Promise.resolve<void>(null as any);
|
|
24358
24358
|
}
|
|
24359
24359
|
|
|
24360
24360
|
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse> {
|
|
@@ -24452,6 +24452,90 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24452
24452
|
}
|
|
24453
24453
|
return Promise.resolve<FileResponse>(null as any);
|
|
24454
24454
|
}
|
|
24455
|
+
|
|
24456
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto> {
|
|
24457
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
24458
|
+
if (id === undefined || id === null)
|
|
24459
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24460
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24461
|
+
if (operationId !== undefined && operationId !== null)
|
|
24462
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
24463
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
24464
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
24465
|
+
if (userUpn !== undefined && userUpn !== null)
|
|
24466
|
+
url_ += "userUpn=" + encodeURIComponent("" + userUpn) + "&";
|
|
24467
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24468
|
+
|
|
24469
|
+
let options_: RequestInit = {
|
|
24470
|
+
method: "GET",
|
|
24471
|
+
headers: {
|
|
24472
|
+
"Accept": "application/json"
|
|
24473
|
+
}
|
|
24474
|
+
};
|
|
24475
|
+
|
|
24476
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24477
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24478
|
+
}).then((_response: Response) => {
|
|
24479
|
+
return this.processGetLastRead(_response);
|
|
24480
|
+
});
|
|
24481
|
+
}
|
|
24482
|
+
|
|
24483
|
+
protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto> {
|
|
24484
|
+
const status = response.status;
|
|
24485
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24486
|
+
if (status === 200) {
|
|
24487
|
+
return response.text().then((_responseText) => {
|
|
24488
|
+
let result200: any = null;
|
|
24489
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24490
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
24491
|
+
return result200;
|
|
24492
|
+
});
|
|
24493
|
+
} else if (status !== 200 && status !== 204) {
|
|
24494
|
+
return response.text().then((_responseText) => {
|
|
24495
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24496
|
+
});
|
|
24497
|
+
}
|
|
24498
|
+
return Promise.resolve<WorkorderDiscussionReadStatusDto>(null as any);
|
|
24499
|
+
}
|
|
24500
|
+
|
|
24501
|
+
setLastRead(id: string, request: SetDiscussionLastRead): Promise<void> {
|
|
24502
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
24503
|
+
if (id === undefined || id === null)
|
|
24504
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24505
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24506
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24507
|
+
|
|
24508
|
+
const content_ = JSON.stringify(request);
|
|
24509
|
+
|
|
24510
|
+
let options_: RequestInit = {
|
|
24511
|
+
body: content_,
|
|
24512
|
+
method: "POST",
|
|
24513
|
+
headers: {
|
|
24514
|
+
"Content-Type": "application/json",
|
|
24515
|
+
}
|
|
24516
|
+
};
|
|
24517
|
+
|
|
24518
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24519
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24520
|
+
}).then((_response: Response) => {
|
|
24521
|
+
return this.processSetLastRead(_response);
|
|
24522
|
+
});
|
|
24523
|
+
}
|
|
24524
|
+
|
|
24525
|
+
protected processSetLastRead(response: Response): Promise<void> {
|
|
24526
|
+
const status = response.status;
|
|
24527
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24528
|
+
if (status === 204) {
|
|
24529
|
+
return response.text().then((_responseText) => {
|
|
24530
|
+
return;
|
|
24531
|
+
});
|
|
24532
|
+
} else if (status !== 200 && status !== 204) {
|
|
24533
|
+
return response.text().then((_responseText) => {
|
|
24534
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24535
|
+
});
|
|
24536
|
+
}
|
|
24537
|
+
return Promise.resolve<void>(null as any);
|
|
24538
|
+
}
|
|
24455
24539
|
}
|
|
24456
24540
|
|
|
24457
24541
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -60036,19 +60120,18 @@ export interface ICreateWorkOrderMapping {
|
|
|
60036
60120
|
newWorkOrderId: string;
|
|
60037
60121
|
}
|
|
60038
60122
|
|
|
60039
|
-
export class
|
|
60040
|
-
|
|
60041
|
-
|
|
60042
|
-
|
|
60043
|
-
|
|
60044
|
-
|
|
60045
|
-
|
|
60046
|
-
|
|
60047
|
-
|
|
60048
|
-
|
|
60049
|
-
insertAuditInfo?: AuditInfo;
|
|
60123
|
+
export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessageDto {
|
|
60124
|
+
workorderId?: string;
|
|
60125
|
+
companyId?: string;
|
|
60126
|
+
content?: string;
|
|
60127
|
+
senderUpn?: string;
|
|
60128
|
+
senderName?: string;
|
|
60129
|
+
operationId?: string | null;
|
|
60130
|
+
operationName?: string | null;
|
|
60131
|
+
resourceId?: string | null;
|
|
60132
|
+
created?: Date;
|
|
60050
60133
|
|
|
60051
|
-
constructor(data?:
|
|
60134
|
+
constructor(data?: IWorkorderDiscussionMessageDto) {
|
|
60052
60135
|
if (data) {
|
|
60053
60136
|
for (var property in data) {
|
|
60054
60137
|
if (data.hasOwnProperty(property))
|
|
@@ -60059,112 +60142,62 @@ export class TableEntityBase implements ITableEntityBase {
|
|
|
60059
60142
|
|
|
60060
60143
|
init(_data?: any) {
|
|
60061
60144
|
if (_data) {
|
|
60062
|
-
this.
|
|
60063
|
-
this.
|
|
60064
|
-
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
|
|
60065
|
-
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : <any>undefined;
|
|
60066
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
60067
|
-
this.createdBy = _data["createdBy"];
|
|
60068
|
-
this.createdById = _data["createdById"];
|
|
60069
|
-
this.updatedBy = _data["updatedBy"];
|
|
60070
|
-
this.updatedById = _data["updatedById"];
|
|
60071
|
-
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : <any>undefined;
|
|
60072
|
-
}
|
|
60073
|
-
}
|
|
60074
|
-
|
|
60075
|
-
static fromJS(data: any): TableEntityBase {
|
|
60076
|
-
data = typeof data === 'object' ? data : {};
|
|
60077
|
-
let result = new TableEntityBase();
|
|
60078
|
-
result.init(data);
|
|
60079
|
-
return result;
|
|
60080
|
-
}
|
|
60081
|
-
|
|
60082
|
-
toJSON(data?: any) {
|
|
60083
|
-
data = typeof data === 'object' ? data : {};
|
|
60084
|
-
data["partitionKey"] = this.partitionKey;
|
|
60085
|
-
data["rowKey"] = this.rowKey;
|
|
60086
|
-
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
|
|
60087
|
-
data["eTag"] = this.eTag ? this.eTag.toJSON() : <any>undefined;
|
|
60088
|
-
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
60089
|
-
data["createdBy"] = this.createdBy;
|
|
60090
|
-
data["createdById"] = this.createdById;
|
|
60091
|
-
data["updatedBy"] = this.updatedBy;
|
|
60092
|
-
data["updatedById"] = this.updatedById;
|
|
60093
|
-
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : <any>undefined;
|
|
60094
|
-
return data;
|
|
60095
|
-
}
|
|
60096
|
-
}
|
|
60097
|
-
|
|
60098
|
-
export interface ITableEntityBase {
|
|
60099
|
-
partitionKey?: string;
|
|
60100
|
-
rowKey?: string;
|
|
60101
|
-
timestamp?: Date | null;
|
|
60102
|
-
eTag?: ETag;
|
|
60103
|
-
created?: Date | null;
|
|
60104
|
-
createdBy?: string | null;
|
|
60105
|
-
createdById?: string | null;
|
|
60106
|
-
updatedBy?: string | null;
|
|
60107
|
-
updatedById?: string | null;
|
|
60108
|
-
insertAuditInfo?: AuditInfo;
|
|
60109
|
-
}
|
|
60110
|
-
|
|
60111
|
-
export class WorkorderDiscussionMessage extends TableEntityBase implements IWorkorderDiscussionMessage {
|
|
60112
|
-
content?: string;
|
|
60113
|
-
senderUpn?: string;
|
|
60114
|
-
senderName?: string;
|
|
60115
|
-
operationId?: string | null;
|
|
60116
|
-
operationName?: string | null;
|
|
60117
|
-
resourceId?: string | null;
|
|
60118
|
-
|
|
60119
|
-
constructor(data?: IWorkorderDiscussionMessage) {
|
|
60120
|
-
super(data);
|
|
60121
|
-
}
|
|
60122
|
-
|
|
60123
|
-
override init(_data?: any) {
|
|
60124
|
-
super.init(_data);
|
|
60125
|
-
if (_data) {
|
|
60145
|
+
this.workorderId = _data["workorderId"];
|
|
60146
|
+
this.companyId = _data["companyId"];
|
|
60126
60147
|
this.content = _data["content"];
|
|
60127
60148
|
this.senderUpn = _data["senderUpn"];
|
|
60128
60149
|
this.senderName = _data["senderName"];
|
|
60129
60150
|
this.operationId = _data["operationId"];
|
|
60130
60151
|
this.operationName = _data["operationName"];
|
|
60131
60152
|
this.resourceId = _data["resourceId"];
|
|
60153
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
60132
60154
|
}
|
|
60133
60155
|
}
|
|
60134
60156
|
|
|
60135
|
-
static
|
|
60157
|
+
static fromJS(data: any): WorkorderDiscussionMessageDto {
|
|
60136
60158
|
data = typeof data === 'object' ? data : {};
|
|
60137
|
-
let result = new
|
|
60159
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
60138
60160
|
result.init(data);
|
|
60139
60161
|
return result;
|
|
60140
60162
|
}
|
|
60141
60163
|
|
|
60142
|
-
|
|
60164
|
+
toJSON(data?: any) {
|
|
60143
60165
|
data = typeof data === 'object' ? data : {};
|
|
60166
|
+
data["workorderId"] = this.workorderId;
|
|
60167
|
+
data["companyId"] = this.companyId;
|
|
60144
60168
|
data["content"] = this.content;
|
|
60145
60169
|
data["senderUpn"] = this.senderUpn;
|
|
60146
60170
|
data["senderName"] = this.senderName;
|
|
60147
60171
|
data["operationId"] = this.operationId;
|
|
60148
60172
|
data["operationName"] = this.operationName;
|
|
60149
60173
|
data["resourceId"] = this.resourceId;
|
|
60150
|
-
|
|
60174
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
60151
60175
|
return data;
|
|
60152
60176
|
}
|
|
60153
60177
|
}
|
|
60154
60178
|
|
|
60155
|
-
export interface
|
|
60179
|
+
export interface IWorkorderDiscussionMessageDto {
|
|
60180
|
+
workorderId?: string;
|
|
60181
|
+
companyId?: string;
|
|
60156
60182
|
content?: string;
|
|
60157
60183
|
senderUpn?: string;
|
|
60158
60184
|
senderName?: string;
|
|
60159
60185
|
operationId?: string | null;
|
|
60160
60186
|
operationName?: string | null;
|
|
60161
60187
|
resourceId?: string | null;
|
|
60188
|
+
created?: Date;
|
|
60162
60189
|
}
|
|
60163
60190
|
|
|
60164
|
-
|
|
60165
|
-
|
|
60191
|
+
export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
60192
|
+
companyId?: string;
|
|
60193
|
+
message?: string;
|
|
60194
|
+
senderUpn?: string;
|
|
60195
|
+
senderName?: string;
|
|
60196
|
+
operationId?: string | null;
|
|
60197
|
+
operationName?: string | null;
|
|
60198
|
+
resourceId?: string | null;
|
|
60166
60199
|
|
|
60167
|
-
constructor(data?:
|
|
60200
|
+
constructor(data?: IAddDiscussionMessageRequest) {
|
|
60168
60201
|
if (data) {
|
|
60169
60202
|
for (var property in data) {
|
|
60170
60203
|
if (data.hasOwnProperty(property))
|
|
@@ -60174,31 +60207,55 @@ export class ETag implements IETag {
|
|
|
60174
60207
|
}
|
|
60175
60208
|
|
|
60176
60209
|
init(_data?: any) {
|
|
60210
|
+
if (_data) {
|
|
60211
|
+
this.companyId = _data["companyId"];
|
|
60212
|
+
this.message = _data["message"];
|
|
60213
|
+
this.senderUpn = _data["senderUpn"];
|
|
60214
|
+
this.senderName = _data["senderName"];
|
|
60215
|
+
this.operationId = _data["operationId"];
|
|
60216
|
+
this.operationName = _data["operationName"];
|
|
60217
|
+
this.resourceId = _data["resourceId"];
|
|
60218
|
+
}
|
|
60177
60219
|
}
|
|
60178
60220
|
|
|
60179
|
-
static fromJS(data: any):
|
|
60221
|
+
static fromJS(data: any): AddDiscussionMessageRequest {
|
|
60180
60222
|
data = typeof data === 'object' ? data : {};
|
|
60181
|
-
let result = new
|
|
60223
|
+
let result = new AddDiscussionMessageRequest();
|
|
60182
60224
|
result.init(data);
|
|
60183
60225
|
return result;
|
|
60184
60226
|
}
|
|
60185
60227
|
|
|
60186
60228
|
toJSON(data?: any) {
|
|
60187
60229
|
data = typeof data === 'object' ? data : {};
|
|
60230
|
+
data["companyId"] = this.companyId;
|
|
60231
|
+
data["message"] = this.message;
|
|
60232
|
+
data["senderUpn"] = this.senderUpn;
|
|
60233
|
+
data["senderName"] = this.senderName;
|
|
60234
|
+
data["operationId"] = this.operationId;
|
|
60235
|
+
data["operationName"] = this.operationName;
|
|
60236
|
+
data["resourceId"] = this.resourceId;
|
|
60188
60237
|
return data;
|
|
60189
60238
|
}
|
|
60190
60239
|
}
|
|
60191
60240
|
|
|
60192
|
-
|
|
60193
|
-
|
|
60241
|
+
export interface IAddDiscussionMessageRequest {
|
|
60242
|
+
companyId?: string;
|
|
60243
|
+
message?: string;
|
|
60244
|
+
senderUpn?: string;
|
|
60245
|
+
senderName?: string;
|
|
60246
|
+
operationId?: string | null;
|
|
60247
|
+
operationName?: string | null;
|
|
60248
|
+
resourceId?: string | null;
|
|
60194
60249
|
}
|
|
60195
60250
|
|
|
60196
|
-
export class
|
|
60197
|
-
|
|
60198
|
-
|
|
60199
|
-
|
|
60251
|
+
export class WorkorderDiscussionReadStatusDto implements IWorkorderDiscussionReadStatusDto {
|
|
60252
|
+
workorderId?: string;
|
|
60253
|
+
operationId?: string | null;
|
|
60254
|
+
resourceId?: string | null;
|
|
60255
|
+
userUpn?: string;
|
|
60256
|
+
lastRead?: Date;
|
|
60200
60257
|
|
|
60201
|
-
constructor(data?:
|
|
60258
|
+
constructor(data?: IWorkorderDiscussionReadStatusDto) {
|
|
60202
60259
|
if (data) {
|
|
60203
60260
|
for (var property in data) {
|
|
60204
60261
|
if (data.hasOwnProperty(property))
|
|
@@ -60209,41 +60266,47 @@ export class AuditInfo implements IAuditInfo {
|
|
|
60209
60266
|
|
|
60210
60267
|
init(_data?: any) {
|
|
60211
60268
|
if (_data) {
|
|
60212
|
-
this.
|
|
60213
|
-
this.
|
|
60214
|
-
this.
|
|
60269
|
+
this.workorderId = _data["workorderId"];
|
|
60270
|
+
this.operationId = _data["operationId"];
|
|
60271
|
+
this.resourceId = _data["resourceId"];
|
|
60272
|
+
this.userUpn = _data["userUpn"];
|
|
60273
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : <any>undefined;
|
|
60215
60274
|
}
|
|
60216
60275
|
}
|
|
60217
60276
|
|
|
60218
|
-
static fromJS(data: any):
|
|
60277
|
+
static fromJS(data: any): WorkorderDiscussionReadStatusDto {
|
|
60219
60278
|
data = typeof data === 'object' ? data : {};
|
|
60220
|
-
let result = new
|
|
60279
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
60221
60280
|
result.init(data);
|
|
60222
60281
|
return result;
|
|
60223
60282
|
}
|
|
60224
60283
|
|
|
60225
60284
|
toJSON(data?: any) {
|
|
60226
60285
|
data = typeof data === 'object' ? data : {};
|
|
60227
|
-
data["
|
|
60228
|
-
data["
|
|
60229
|
-
data["
|
|
60286
|
+
data["workorderId"] = this.workorderId;
|
|
60287
|
+
data["operationId"] = this.operationId;
|
|
60288
|
+
data["resourceId"] = this.resourceId;
|
|
60289
|
+
data["userUpn"] = this.userUpn;
|
|
60290
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : <any>undefined;
|
|
60230
60291
|
return data;
|
|
60231
60292
|
}
|
|
60232
60293
|
}
|
|
60233
60294
|
|
|
60234
|
-
export interface
|
|
60235
|
-
|
|
60236
|
-
|
|
60237
|
-
|
|
60295
|
+
export interface IWorkorderDiscussionReadStatusDto {
|
|
60296
|
+
workorderId?: string;
|
|
60297
|
+
operationId?: string | null;
|
|
60298
|
+
resourceId?: string | null;
|
|
60299
|
+
userUpn?: string;
|
|
60300
|
+
lastRead?: Date;
|
|
60238
60301
|
}
|
|
60239
60302
|
|
|
60240
|
-
export class
|
|
60241
|
-
|
|
60303
|
+
export class SetDiscussionLastRead implements ISetDiscussionLastRead {
|
|
60304
|
+
workorderId?: string;
|
|
60242
60305
|
operationId?: string | null;
|
|
60243
|
-
operationName?: string | null;
|
|
60244
60306
|
resourceId?: string | null;
|
|
60307
|
+
userUpn?: string;
|
|
60245
60308
|
|
|
60246
|
-
constructor(data?:
|
|
60309
|
+
constructor(data?: ISetDiscussionLastRead) {
|
|
60247
60310
|
if (data) {
|
|
60248
60311
|
for (var property in data) {
|
|
60249
60312
|
if (data.hasOwnProperty(property))
|
|
@@ -60254,35 +60317,35 @@ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest
|
|
|
60254
60317
|
|
|
60255
60318
|
init(_data?: any) {
|
|
60256
60319
|
if (_data) {
|
|
60257
|
-
this.
|
|
60320
|
+
this.workorderId = _data["workorderId"];
|
|
60258
60321
|
this.operationId = _data["operationId"];
|
|
60259
|
-
this.operationName = _data["operationName"];
|
|
60260
60322
|
this.resourceId = _data["resourceId"];
|
|
60323
|
+
this.userUpn = _data["userUpn"];
|
|
60261
60324
|
}
|
|
60262
60325
|
}
|
|
60263
60326
|
|
|
60264
|
-
static fromJS(data: any):
|
|
60327
|
+
static fromJS(data: any): SetDiscussionLastRead {
|
|
60265
60328
|
data = typeof data === 'object' ? data : {};
|
|
60266
|
-
let result = new
|
|
60329
|
+
let result = new SetDiscussionLastRead();
|
|
60267
60330
|
result.init(data);
|
|
60268
60331
|
return result;
|
|
60269
60332
|
}
|
|
60270
60333
|
|
|
60271
60334
|
toJSON(data?: any) {
|
|
60272
60335
|
data = typeof data === 'object' ? data : {};
|
|
60273
|
-
data["
|
|
60336
|
+
data["workorderId"] = this.workorderId;
|
|
60274
60337
|
data["operationId"] = this.operationId;
|
|
60275
|
-
data["operationName"] = this.operationName;
|
|
60276
60338
|
data["resourceId"] = this.resourceId;
|
|
60339
|
+
data["userUpn"] = this.userUpn;
|
|
60277
60340
|
return data;
|
|
60278
60341
|
}
|
|
60279
60342
|
}
|
|
60280
60343
|
|
|
60281
|
-
export interface
|
|
60282
|
-
|
|
60344
|
+
export interface ISetDiscussionLastRead {
|
|
60345
|
+
workorderId?: string;
|
|
60283
60346
|
operationId?: string | null;
|
|
60284
|
-
operationName?: string | null;
|
|
60285
60347
|
resourceId?: string | null;
|
|
60348
|
+
userUpn?: string;
|
|
60286
60349
|
}
|
|
60287
60350
|
|
|
60288
60351
|
function formatDate(d: Date) {
|