Skip to content

Commit 9d2e153

Browse files
committed
updated snapshots (database creation)
1 parent a389879 commit 9d2e153

File tree

3 files changed

+310
-80
lines changed

3 files changed

+310
-80
lines changed

tests/snapshots/databases/post_v1-databases_all-properties.json

Lines changed: 117 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"header": {
33
"Content-Length": [
4-
"1498"
4+
"1729"
55
],
66
"User-Agent": [
77
"GuzzleHttp\/7"
@@ -106,6 +106,20 @@
106106
"type": "files",
107107
"files": []
108108
},
109+
"Test Relation": {
110+
"type": "relation",
111+
"relation": {
112+
"database_id": "375da18ab01d42d18e95a9dc6a901db1"
113+
}
114+
},
115+
"Test Rollup": {
116+
"type": "rollup",
117+
"rollup": {
118+
"relation_property_name": "Test Relation",
119+
"rollup_property_name": "Tag",
120+
"function": "unique"
121+
}
122+
},
109123
"Test Created By": {
110124
"type": "created_by",
111125
"created_by": []
@@ -145,7 +159,7 @@
145159
},
146160
"data": {
147161
"object": "database",
148-
"id": "44cb2b4d-87c7-411d-b911-b6cde4f236d8",
162+
"id": "8b0013db-0fbf-49a5-ad64-9de6d4670e17",
149163
"cover": {
150164
"type": "external",
151165
"external": {
@@ -158,7 +172,7 @@
158172
"url": "https:\/\/example.com\/cover.jpg"
159173
}
160174
},
161-
"created_time": "2023-04-30T13:29:00.000Z",
175+
"created_time": "2023-06-10T08:30:00.000Z",
162176
"created_by": {
163177
"object": "user",
164178
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
@@ -167,7 +181,7 @@
167181
"object": "user",
168182
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
169183
},
170-
"last_edited_time": "2023-04-30T13:29:00.000Z",
184+
"last_edited_time": "2023-06-10T08:30:00.000Z",
171185
"title": [
172186
{
173187
"type": "text",
@@ -190,127 +204,149 @@
190204
"description": [],
191205
"is_inline": false,
192206
"properties": {
193-
"Test Formula": {
194-
"id": ";klo",
195-
"name": "Test Formula",
196-
"type": "formula",
197-
"formula": {
198-
"expression": "prop(\"Test MultiSelect\")"
199-
}
200-
},
201207
"Test People": {
202-
"id": "IPOv",
208+
"id": ":[aJ",
203209
"name": "Test People",
204210
"type": "people",
205211
"people": []
206212
},
207213
"Test Date": {
208-
"id": "I~Vh",
214+
"id": ";LyC",
209215
"name": "Test Date",
210216
"type": "date",
211217
"date": []
212218
},
213-
"Test Last Edited Time": {
214-
"id": "JI[t",
215-
"name": "Test Last Edited Time",
216-
"type": "last_edited_time",
217-
"last_edited_time": []
219+
"Test Number": {
220+
"id": "<`a@",
221+
"name": "Test Number",
222+
"type": "number",
223+
"number": {
224+
"format": "dollar"
225+
}
218226
},
219-
"Test Url": {
220-
"id": "KubS",
221-
"name": "Test Url",
222-
"type": "url",
223-
"url": []
227+
"Test Created By": {
228+
"id": "An<S",
229+
"name": "Test Created By",
230+
"type": "created_by",
231+
"created_by": []
232+
},
233+
"Test Select": {
234+
"id": "Coja",
235+
"name": "Test Select",
236+
"type": "select",
237+
"select": {
238+
"options": [
239+
{
240+
"id": "fd4cdd95-4703-4f4d-b482-10324e970b10",
241+
"name": "testing",
242+
"color": "blue"
243+
}
244+
]
245+
}
224246
},
225247
"Test MultiSelect": {
226-
"id": "QySO",
248+
"id": "GL[W",
227249
"name": "Test MultiSelect",
228250
"type": "multi_select",
229251
"multi_select": {
230252
"options": [
231253
{
232-
"id": "cfe70fa7-0f15-45bf-bf2f-2fa8da37b3da",
254+
"id": "af7a7ac8-fba9-40e9-a6bb-d3d668bad9d3",
233255
"name": "testing2",
234256
"color": "yellow"
235257
}
236258
]
237259
}
238260
},
239-
"Test Custom RichText": {
240-
"id": "TMIT",
241-
"name": "Test Custom RichText",
261+
"Test RichText": {
262+
"id": "Gn\\P",
263+
"name": "Test RichText",
242264
"type": "rich_text",
243265
"rich_text": []
244266
},
245-
"Test Number": {
246-
"id": "ZzcV",
247-
"name": "Test Number",
248-
"type": "number",
249-
"number": {
250-
"format": "dollar"
267+
"Test Formula": {
268+
"id": "Jz=S",
269+
"name": "Test Formula",
270+
"type": "formula",
271+
"formula": {
272+
"expression": "prop(\"Test MultiSelect\")"
251273
}
252274
},
253-
"Test Email": {
254-
"id": "[;@E",
255-
"name": "Test Email",
256-
"type": "email",
257-
"email": []
275+
"Test Files": {
276+
"id": "VGDd",
277+
"name": "Test Files",
278+
"type": "files",
279+
"files": []
258280
},
259-
"Test Last Edited By": {
260-
"id": "]AIb",
261-
"name": "Test Last Edited By",
262-
"type": "last_edited_by",
263-
"last_edited_by": []
281+
"Test Url": {
282+
"id": "XQEc",
283+
"name": "Test Url",
284+
"type": "url",
285+
"url": []
264286
},
265287
"Test PhoneNumber": {
266-
"id": "cZgy",
288+
"id": "fwjG",
267289
"name": "Test PhoneNumber",
268290
"type": "phone_number",
269291
"phone_number": []
270292
},
271-
"Test Select": {
272-
"id": "knn_",
273-
"name": "Test Select",
274-
"type": "select",
275-
"select": {
276-
"options": [
277-
{
278-
"id": "5d914a90-fedd-4b31-868e-ff0b10408244",
279-
"name": "testing",
280-
"color": "blue"
281-
}
282-
]
293+
"Test Rollup": {
294+
"id": "g;WM",
295+
"name": "Test Rollup",
296+
"type": "rollup",
297+
"rollup": {
298+
"rollup_property_name": "Tag",
299+
"relation_property_name": "Test Relation",
300+
"rollup_property_id": "@yf]",
301+
"relation_property_id": "m>ad",
302+
"function": "unique"
283303
}
284304
},
285-
"Test Created Time": {
286-
"id": "m}Nt",
287-
"name": "Test Created Time",
288-
"type": "created_time",
289-
"created_time": []
305+
"Test Custom RichText": {
306+
"id": "iaDK",
307+
"name": "Test Custom RichText",
308+
"type": "rich_text",
309+
"rich_text": []
290310
},
291-
"Test Created By": {
292-
"id": "s}Yd",
293-
"name": "Test Created By",
294-
"type": "created_by",
295-
"created_by": []
311+
"Test Relation": {
312+
"id": "m>ad",
313+
"name": "Test Relation",
314+
"type": "relation",
315+
"relation": {
316+
"database_id": "375da18a-b01d-42d1-8e95-a9dc6a901db1",
317+
"synced_property_name": "Related to Created By Testing Database (Test Relation)",
318+
"synced_property_id": "{Ykb"
319+
}
296320
},
297-
"Test Files": {
298-
"id": "u:sB",
299-
"name": "Test Files",
300-
"type": "files",
301-
"files": []
321+
"Test Email": {
322+
"id": "pZRE",
323+
"name": "Test Email",
324+
"type": "email",
325+
"email": []
302326
},
303327
"Test Checkbox": {
304-
"id": "xddf",
328+
"id": "r@Xw",
305329
"name": "Test Checkbox",
306330
"type": "checkbox",
307331
"checkbox": []
308332
},
309-
"Test RichText": {
310-
"id": "|@=x",
311-
"name": "Test RichText",
312-
"type": "rich_text",
313-
"rich_text": []
333+
"Test Last Edited By": {
334+
"id": "rXhE",
335+
"name": "Test Last Edited By",
336+
"type": "last_edited_by",
337+
"last_edited_by": []
338+
},
339+
"Test Created Time": {
340+
"id": "rejS",
341+
"name": "Test Created Time",
342+
"type": "created_time",
343+
"created_time": []
344+
},
345+
"Test Last Edited Time": {
346+
"id": "yXTc",
347+
"name": "Test Last Edited Time",
348+
"type": "last_edited_time",
349+
"last_edited_time": []
314350
},
315351
"Test Title": {
316352
"id": "title",
@@ -323,7 +359,8 @@
323359
"type": "page_id",
324360
"page_id": "0adbc2eb-57e8-4569-a700-a70d537615be"
325361
},
326-
"url": "https:\/\/www.notion.so\/44cb2b4d87c7411db911b6cde4f236d8",
362+
"url": "https:\/\/www.notion.so\/8b0013db0fbf49a5ad649de6d4670e17",
363+
"public_url": null,
327364
"archived": false
328365
}
329366
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"header": {
3+
"Content-Length": [
4+
"223"
5+
],
6+
"User-Agent": [
7+
"GuzzleHttp\/7"
8+
],
9+
"Content-Type": [
10+
"application\/json"
11+
],
12+
"Host": [
13+
"api.notion.com"
14+
],
15+
"Notion-Version": [
16+
"2021-05-13"
17+
]
18+
},
19+
"method": "post",
20+
"status": 200,
21+
"payload": {
22+
"is_inline": false,
23+
"parent": {
24+
"type": "page_id",
25+
"page_id": "0adbc2eb57e84569a700a70d537615be"
26+
},
27+
"title": [
28+
{
29+
"text": {
30+
"content": ""
31+
}
32+
}
33+
],
34+
"properties": {
35+
"Name": {
36+
"type": "title",
37+
"title": []
38+
}
39+
},
40+
"icon": {
41+
"type": "emoji",
42+
"emoji": "\ud83d\udc4d"
43+
}
44+
},
45+
"data": {
46+
"object": "database",
47+
"id": "0bd8bcfc-36b0-4f6d-9726-25ba075fa2f1",
48+
"cover": null,
49+
"icon": {
50+
"type": "emoji",
51+
"emoji": "\ud83d\udc4d"
52+
},
53+
"created_time": "2023-06-10T08:06:00.000Z",
54+
"created_by": {
55+
"object": "user",
56+
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
57+
},
58+
"last_edited_by": {
59+
"object": "user",
60+
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
61+
},
62+
"last_edited_time": "2023-06-10T08:06:00.000Z",
63+
"title": [
64+
{
65+
"type": "text",
66+
"text": {
67+
"content": "",
68+
"link": null
69+
},
70+
"annotations": {
71+
"bold": false,
72+
"italic": false,
73+
"strikethrough": false,
74+
"underline": false,
75+
"code": false,
76+
"color": "default"
77+
},
78+
"plain_text": "",
79+
"href": null
80+
}
81+
],
82+
"description": [],
83+
"is_inline": false,
84+
"properties": {
85+
"Name": {
86+
"id": "title",
87+
"name": "Name",
88+
"type": "title",
89+
"title": []
90+
}
91+
},
92+
"parent": {
93+
"type": "page_id",
94+
"page_id": "0adbc2eb-57e8-4569-a700-a70d537615be"
95+
},
96+
"url": "https:\/\/www.notion.so\/0bd8bcfc36b04f6d972625ba075fa2f1",
97+
"public_url": null,
98+
"archived": false
99+
}
100+
}

0 commit comments

Comments
 (0)