Skip to content

Commit e66a1c4

Browse files
committed
Add test JSON file for operations with included appointments
1 parent 3599d5a commit e66a1c4

File tree

1 file changed

+203
-0
lines changed

1 file changed

+203
-0
lines changed
Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
{
2+
"data": [
3+
{
4+
"id": "operation-1",
5+
"type": "operations",
6+
"attributes": {
7+
"code": "ANON-TK0002",
8+
"dates": {
9+
"scheduled": {}
10+
},
11+
"description": "",
12+
"labels": [
13+
{
14+
"key": "Time band",
15+
"value": "AM"
16+
}
17+
],
18+
"name": "Anonymised Task 1",
19+
"requirements": {
20+
"forms": [
21+
{
22+
"id": "form-1",
23+
"required": true
24+
}
25+
]
26+
}
27+
},
28+
"relationships": {
29+
"appointment": {
30+
"data": null
31+
},
32+
"assignees": {
33+
"data": [
34+
{ "id": "user-1", "type": "users" },
35+
{ "id": "user-2", "type": "users" },
36+
{ "id": "user-3", "type": "users" },
37+
{ "id": "user-4", "type": "users" }
38+
]
39+
},
40+
"forms": {
41+
"data": [
42+
{ "id": "form-1", "type": "forms" }
43+
]
44+
},
45+
"organisation": {
46+
"data": { "id": "org-1", "type": "organisations" }
47+
},
48+
"permits": { "data": [] },
49+
"properties": {
50+
"data": [
51+
{ "id": "property-1", "type": "properties" },
52+
{ "id": "property-2", "type": "properties" },
53+
{ "id": "property-3", "type": "properties" },
54+
{ "id": "property-4", "type": "properties" },
55+
{ "id": "property-5", "type": "properties" },
56+
{ "id": "property-6", "type": "properties" },
57+
{ "id": "property-7", "type": "properties" }
58+
]
59+
},
60+
"scheme": {
61+
"data": { "id": "scheme-1", "type": "schemes" }
62+
},
63+
"streets": { "data": [] },
64+
"teams": { "data": [] },
65+
"template": { "data": null },
66+
"work_order": {
67+
"data": { "id": "workorder-1", "type": "work-orders" }
68+
}
69+
},
70+
"meta": {
71+
"created_at": "2025-03-13T00:00:00.000Z",
72+
"updated_at": "2025-07-16T00:00:00.000Z",
73+
"counts": { "properties": 7, "streets": 0 }
74+
}
75+
},
76+
{
77+
"id": "operation-2",
78+
"type": "operations",
79+
"attributes": {
80+
"code": "",
81+
"dates": {
82+
"scheduled": {
83+
"start": "2025-08-15T07:00:00Z",
84+
"end": "2025-08-15T11:00:00Z"
85+
}
86+
},
87+
"description": "",
88+
"labels": [],
89+
"name": "Anonymised Operation 2",
90+
"requirements": {
91+
"forms": [
92+
{ "id": "form-1", "required": true }
93+
]
94+
}
95+
},
96+
"relationships": {
97+
"appointment": {
98+
"data": { "id": "appointment-1", "type": "appointments" }
99+
},
100+
"assignees": {
101+
"data": [ { "id": "user-4", "type": "users" } ]
102+
},
103+
"forms": {
104+
"data": [ { "id": "form-1", "type": "forms" } ]
105+
},
106+
"organisation": {
107+
"data": { "id": "org-1", "type": "organisations" }
108+
},
109+
"permits": { "data": [] },
110+
"properties": { "data": [] },
111+
"scheme": { "data": { "id": "scheme-2", "type": "schemes" } },
112+
"streets": { "data": [] },
113+
"teams": { "data": [] },
114+
"template": { "data": null },
115+
"work_order": { "data": { "id": "workorder-2", "type": "work-orders" } }
116+
},
117+
"meta": {
118+
"created_at": "2025-08-14T00:00:00.000Z",
119+
"updated_at": "2025-08-14T00:00:00.000Z",
120+
"counts": { "properties": 0, "streets": 0 }
121+
}
122+
},
123+
{
124+
"id": "operation-3",
125+
"type": "operations",
126+
"attributes": {
127+
"code": "",
128+
"dates": { "scheduled": {} },
129+
"description": "",
130+
"labels": [],
131+
"name": "Anonymised Operation 3",
132+
"requirements": {
133+
"forms": [ { "id": "form-1", "required": true } ]
134+
}
135+
},
136+
"relationships": {
137+
"appointment": { "data": null },
138+
"assignees": { "data": [ { "id": "user-4", "type": "users" } ] },
139+
"forms": { "data": [ { "id": "form-1", "type": "forms" } ] },
140+
"organisation": { "data": { "id": "org-1", "type": "organisations" } },
141+
"permits": { "data": [] },
142+
"properties": { "data": [] },
143+
"scheme": { "data": { "id": "scheme-2", "type": "schemes" } },
144+
"streets": { "data": [] },
145+
"teams": { "data": [] },
146+
"template": { "data": null },
147+
"work_order": { "data": { "id": "workorder-2", "type": "work-orders" } }
148+
},
149+
"meta": {
150+
"created_at": "2025-08-14T00:00:00.000Z",
151+
"updated_at": "2025-08-14T00:00:00.000Z",
152+
"counts": { "properties": 0, "streets": 0 }
153+
}
154+
}
155+
],
156+
"meta": {
157+
"pagination": {
158+
"current_page": 1,
159+
"counts": { "resources": 3, "pages": 1 },
160+
"requested": { "offset": 0, "limit": 100 },
161+
"offsets": { "previous": null, "next": null }
162+
},
163+
"features": {
164+
"params": {
165+
"include": {
166+
"options": [
167+
"appointment", "assignees", "forms", "organisation", "permits", "properties", "scheme", "streets", "teams", "template", "work_order"
168+
]
169+
},
170+
"sort": { "default": "", "options": null }
171+
}
172+
}
173+
},
174+
"jsonapi": { "version": "1.0" },
175+
"included": [
176+
{
177+
"id": "appointment-1",
178+
"type": "appointments",
179+
"attributes": {
180+
"animals": false,
181+
"end_time": "2025-08-15T11:00:00Z",
182+
"medical_dependency": false,
183+
"notes": "",
184+
"on_ecr": false,
185+
"on_ecr_notes": "",
186+
"start_time": "2025-08-15T07:00:00Z"
187+
},
188+
"relationships": {
189+
"author": { "data": { "id": "user-4", "type": "authors" } },
190+
"interaction": { "data": { "id": "interaction-1", "type": "customer-interactions" } },
191+
"operation": { "data": { "id": "operation-2", "type": "operations" } },
192+
"organisation": { "data": { "id": "org-1", "type": "organisations" } },
193+
"time_band": { "data": { "id": "timeband-1", "type": "time-bands" } }
194+
},
195+
"meta": {
196+
"created_at": "2025-08-14T00:00:00.000Z",
197+
"updated_at": "2025-08-14T00:00:00.000Z",
198+
"modified_at": "2025-08-14T00:00:00.000Z"
199+
}
200+
}
201+
]
202+
}
203+

0 commit comments

Comments
 (0)