Skip to content

Commit 13a560d

Browse files
committed
build snapshots for resolve and
- ... rebuild snapshots for comments (due to changed file-naming structure)
1 parent e73207a commit 13a560d

16 files changed

+957
-9
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
214
"status": 200,
15+
"payload": "block_id=cb588bcbcbdb4f2eac3db05446b8f5d9&page_size=100&",
316
"data": {
417
"object": "list",
518
"results": [
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 404,
15+
"payload": "block_id=cbf6b0af-6eaa-45ca-9715-9fa147ef6b17&page_size=100&",
16+
"data": {
17+
"object": "error",
18+
"status": 404,
19+
"code": "object_not_found",
20+
"message": "Could not find block with ID: cbf6b0af-6eaa-45ca-9715-9fa147ef6b17. Make sure the relevant pages and databases are shared with your integration."
21+
}
22+
}

tests/snapshots/comments/get_v1-comments_block-id-cbf6b0af-6eaa-45ca-9715-9fa147ef6b17-page-size-100.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 200,
15+
"payload": null,
16+
"data": {
17+
"object": "block",
18+
"id": "0971ac1a-b6f2-4acc-b706-f5f2ed16ffd6",
19+
"parent": {
20+
"type": "page_id",
21+
"page_id": "d946d011-966d-4b14-973f-dc5580f5b024"
22+
},
23+
"created_time": "2023-06-09T16:38:00.000Z",
24+
"last_edited_time": "2023-06-09T16:39:00.000Z",
25+
"created_by": {
26+
"object": "user",
27+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
28+
},
29+
"last_edited_by": {
30+
"object": "user",
31+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
32+
},
33+
"has_children": true,
34+
"archived": false,
35+
"type": "paragraph",
36+
"paragraph": {
37+
"color": "default",
38+
"text": [
39+
{
40+
"type": "text",
41+
"text": {
42+
"content": "This is a parent block",
43+
"link": null
44+
},
45+
"annotations": {
46+
"bold": false,
47+
"italic": false,
48+
"strikethrough": false,
49+
"underline": false,
50+
"code": false,
51+
"color": "default"
52+
},
53+
"plain_text": "This is a parent block",
54+
"href": null
55+
}
56+
]
57+
}
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 200,
15+
"payload": null,
16+
"data": {
17+
"object": "block",
18+
"id": "d5f9419b-4420-4c90-9501-b1e2b7569503",
19+
"parent": {
20+
"type": "block_id",
21+
"block_id": "0971ac1a-b6f2-4acc-b706-f5f2ed16ffd6"
22+
},
23+
"created_time": "2023-06-09T16:39:00.000Z",
24+
"last_edited_time": "2023-06-09T16:39:00.000Z",
25+
"created_by": {
26+
"object": "user",
27+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
28+
},
29+
"last_edited_by": {
30+
"object": "user",
31+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
32+
},
33+
"has_children": false,
34+
"archived": false,
35+
"type": "paragraph",
36+
"paragraph": {
37+
"color": "default",
38+
"text": [
39+
{
40+
"type": "text",
41+
"text": {
42+
"content": "Of this child block",
43+
"link": null
44+
},
45+
"annotations": {
46+
"bold": false,
47+
"italic": false,
48+
"strikethrough": false,
49+
"underline": false,
50+
"code": false,
51+
"color": "default"
52+
},
53+
"plain_text": "Of this child block",
54+
"href": null
55+
}
56+
]
57+
}
58+
}
59+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 200,
15+
"payload": null,
16+
"data": {
17+
"object": "database",
18+
"id": "8a0ef209-8c8a-4fd1-a21c-db7ab327e870",
19+
"cover": null,
20+
"icon": {
21+
"type": "external",
22+
"external": {
23+
"url": "https:\/\/www.notion.so\/icons\/people_red.svg"
24+
}
25+
},
26+
"created_time": "2023-06-09T16:32:00.000Z",
27+
"created_by": {
28+
"object": "user",
29+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
30+
},
31+
"last_edited_by": {
32+
"object": "user",
33+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
34+
},
35+
"last_edited_time": "2023-06-09T16:35:00.000Z",
36+
"title": [
37+
{
38+
"type": "text",
39+
"text": {
40+
"content": "Test Table as Parent",
41+
"link": null
42+
},
43+
"annotations": {
44+
"bold": false,
45+
"italic": false,
46+
"strikethrough": false,
47+
"underline": false,
48+
"code": false,
49+
"color": "default"
50+
},
51+
"plain_text": "Test Table as Parent",
52+
"href": null
53+
}
54+
],
55+
"description": [],
56+
"is_inline": true,
57+
"properties": {
58+
"Tags": {
59+
"id": "[PdA",
60+
"name": "Tags",
61+
"type": "multi_select",
62+
"multi_select": {
63+
"options": []
64+
}
65+
},
66+
"Name": {
67+
"id": "title",
68+
"name": "Name",
69+
"type": "title",
70+
"title": []
71+
}
72+
},
73+
"parent": {
74+
"type": "page_id",
75+
"page_id": "c3b3afe9-1381-470f-a8b1-4a44b9a3bf81"
76+
},
77+
"url": "https:\/\/www.notion.so\/8a0ef2098c8a4fd1a21cdb7ab327e870",
78+
"public_url": null,
79+
"archived": false
80+
}
81+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 200,
15+
"payload": null,
16+
"data": {
17+
"object": "page",
18+
"id": "05b473e4-d38f-484b-a74b-d3273932e9b4",
19+
"created_time": "2023-06-09T16:50:00.000Z",
20+
"last_edited_time": "2023-06-09T16:51:00.000Z",
21+
"created_by": {
22+
"object": "user",
23+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
24+
},
25+
"last_edited_by": {
26+
"object": "user",
27+
"id": "04536682-603a-4531-a18f-4fa89fdfb4a8"
28+
},
29+
"cover": null,
30+
"icon": null,
31+
"parent": {
32+
"type": "database_id",
33+
"database_id": "96f3b744-c9b5-48f2-849f-521aa7a83f27"
34+
},
35+
"archived": false,
36+
"properties": {
37+
"Origin Relation Database ": {
38+
"id": "RI]J",
39+
"type": "relation",
40+
"relation": [
41+
{
42+
"id": "1c56e2ad-3d95-458c-935d-ae6d57769037"
43+
}
44+
],
45+
"has_more": false
46+
},
47+
"Name": {
48+
"id": "title",
49+
"type": "title",
50+
"title": [
51+
{
52+
"type": "text",
53+
"text": {
54+
"content": "test 3",
55+
"link": null
56+
},
57+
"annotations": {
58+
"bold": false,
59+
"italic": false,
60+
"strikethrough": false,
61+
"underline": false,
62+
"code": false,
63+
"color": "default"
64+
},
65+
"plain_text": "test 3",
66+
"href": null
67+
}
68+
]
69+
}
70+
},
71+
"url": "https:\/\/www.notion.so\/test-3-05b473e4d38f484ba74bd3273932e9b4",
72+
"public_url": null
73+
}
74+
}

0 commit comments

Comments
 (0)