-
Notifications
You must be signed in to change notification settings - Fork 2
/
SdaPostSelectedWorkPackagesRecordsJsonSample.ts
80 lines (73 loc) · 2.57 KB
/
SdaPostSelectedWorkPackagesRecordsJsonSample.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
*/
export class SdaPostSelectedWorkPackagesRecordsJsonSample {
private static PATH = 'tenants/hexagonsdaop/sessions/0ed195f6fb0d406f998118c994ec169d_671398670_4260_1017952399/dialogs/9/records';
private static BODY = {
"fetchDirection": "FORWARD",
"fetchMaxRecords": 50,
"type": "hxgn.api.dialog.QueryParameters"
};
private static RESPONSE = {
"dialogAlias": "Briefcase_Briefcase_Workpackages",
"dialogName": "Briefcase_Briefcase_Workpackages",
"defaultActionId": null,
"records": [{
"annotations": [],
"id": "6GW7000A",
"type": "hxgn.api.dialog.Record",
"properties": [{
"name": "Creation_Date",
"format": "date-time",
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": "2017-10-11T10:32:31"
}, {
"name": "Last_Update_Date",
"format": "date-time",
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": "2017-10-11T10:32:31"
}, {
"name": "Disciplines",
"format": null,
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": null
}, {
"name": "Id",
"format": null,
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": "6GW7000A"
}, {
"name": "Description",
"format": null,
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": "SDA Mobile Test Package"
}, {
"name": "Name",
"format": null,
"annotations": [],
"type": "hxgn.api.dialog.Property",
"value": "SDA Mobile Test Package"
}]
}],
"hasMore": false,
"type": "hxgn.api.dialog.RecordSet"
};
private static EMPTY_RESPONSE = {
"dialogAlias": "Briefcase_Briefcase_Workpackages",
"dialogName": "Briefcase_Briefcase_Workpackages",
"defaultActionId": null,
"records": [],
"hasMore": false,
"type": "hxgn.api.dialog.RecordSet"
};
public static copyOfEmptyResponse(): object {
return JSON.parse(JSON.stringify(this.EMPTY_RESPONSE));
}
public static copyOfResponse(): object {
return JSON.parse(JSON.stringify(this.RESPONSE));
}
}