diff --git a/enex2notion/enex_uploader_block.py b/enex2notion/enex_uploader_block.py index 09f7e9f..cdc2c75 100644 --- a/enex2notion/enex_uploader_block.py +++ b/enex2notion/enex_uploader_block.py @@ -27,9 +27,19 @@ def _upload_file(new_block, resource: EvernoteResource): set size and title for FileBlock """ + post_data = { + "bucket": "secure", + "name": resource.file_name, + "contentType": resource.mime, + "record": { + "table": "block", + "id": new_block.id, + "spaceId": new_block.space_info["spaceId"], + }, + } + upload_data = new_block._client.post( # noqa: WPS437 - "getUploadFileUrl", - {"bucket": "secure", "name": resource.file_name, "contentType": resource.mime}, + "getUploadFileUrl", post_data ).json() response = requests.put( diff --git a/tests/cassettes/test_file_upload.uuid4.json b/tests/cassettes/test_file_upload.uuid4.json index 31c43ff..d06d903 100644 --- a/tests/cassettes/test_file_upload.uuid4.json +++ b/tests/cassettes/test_file_upload.uuid4.json @@ -1 +1 @@ -["dd54a653-5d63-4710-b3ff-49612311a353", "34a215ad-7cdc-408c-b1fb-8a0f119f512e"] +["7d56ee74-f9da-4eae-9129-c7cc364c697a", "4f1270e8-24f5-4441-ab60-34d28f616b7f"] diff --git a/tests/cassettes/test_file_upload.yaml b/tests/cassettes/test_file_upload.yaml index 7464fa2..e45101c 100644 --- a/tests/cassettes/test_file_upload.yaml +++ b/tests/cassettes/test_file_upload.yaml @@ -4,7 +4,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -12,7 +12,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3173,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5700,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -28,7 +28,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -38,7 +38,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3173,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5700,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -50,25 +50,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": - [], "args": {"id": "dd54a653-5d63-4710-b3ff-49612311a353", "version": 1, "alive": + body: '{"operations": [{"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": + [], "args": {"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171878294, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654271232319, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "parent_table": "space", "type": "page", "permissions": [{"role": "editor", "type": "user_permission", "user_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0"}]}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171878294}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271232319}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "dd54a653-5d63-4710-b3ff-49612311a353"}, "command": "listAfter", + "args": {"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171878294}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271232319}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -88,16 +88,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": + body: '{"operations": [{"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": ["properties", "title"], "args": [["TESTING PAGE"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171878773}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271232794}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -117,30 +117,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": - [], "args": {"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "version": 1, "alive": + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": + [], "args": {"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171879196, "parent_id": "dd54a653-5d63-4710-b3ff-49612311a353", + "notion_user", "created_time": 1654271233375, "parent_id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "parent_table": "block", "type": "file", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171879196}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": - "block"}, {"id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": ["content"], - "args": {"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271233375}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": + "block"}, {"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": ["content"], + "args": {"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171879196}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271233375}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171879196}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271233375}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171879196}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271233375}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '1581' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -160,11 +160,39 @@ interactions: code: 200 message: OK - request: - body: '{"bucket": "secure", "name": "tiny.bin", "contentType": "application/octet-stream"}' + body: '{"blockId": "4f1270e8-24f5-4441-ab60-34d28f616b7f"}' + headers: + Content-Length: + - '51' + Content-Type: + - application/json + cookie: + - PRIVATE + x-notion-active-user-header: + - a03b888f-5426-4e4f-b5ef-bed855b162f0 + method: POST + uri: https://www.notion.so/api/v3/getPublicPageData + response: + body: + string: '{"spaceName":"test_py","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274","spaceDomain":"laced-taxi-315","canJoinSpace":true,"userHasExplicitAccess":true,"betaEnabled":false,"canRequestAccess":true,"requireLogin":false,"publicAccessRole":"none"}' + headers: + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + content-length: + - '243' + status: + code: 200 + message: OK +- request: + body: '{"bucket": "secure", "name": "tiny.bin", "contentType": "application/octet-stream", + "record": {"table": "block", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}}' headers: Content-Length: - - '83' - content-type: + - '210' + Content-Type: - application/json cookie: - PRIVATE @@ -174,7 +202,7 @@ interactions: uri: https://www.notion.so/api/v3/getUploadFileUrl response: body: - string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083800Z&X-Amz-Expires=86400&X-Amz-Signature=dc01baa906441dd52fcafc58ddc48c83c9cf3037b1216daf951991f7f411fe08&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083800Z&X-Amz-Expires=86400&X-Amz-Signature=977baa7abcfdd1d4ee3c1fe9d347c3e00877e15a5cd7b42326f3dfc20ba68473&X-Amz-SignedHeaders=host&x-id=PutObject"}' + string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154713Z&X-Amz-Expires=86400&X-Amz-Signature=537745013216bcca9808811977625950054210b407c30788d0e6bbc45d94e494&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154713Z&X-Amz-Expires=86400&X-Amz-Signature=0022899c38b901654da5e37c7237faae8a576863d01d1e68076d9704ea122eaf&X-Amz-SignedHeaders=host&x-id=PutObject"}' headers: Content-Type: - application/json; charset=utf-8 @@ -193,7 +221,7 @@ interactions: Content-type: - application/octet-stream method: PUT - uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083800Z&X-Amz-Expires=86400&X-Amz-Signature=977baa7abcfdd1d4ee3c1fe9d347c3e00877e15a5cd7b42326f3dfc20ba68473&X-Amz-SignedHeaders=host&x-id=PutObject + uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154713Z&X-Amz-Expires=86400&X-Amz-Signature=0022899c38b901654da5e37c7237faae8a576863d01d1e68076d9704ea122eaf&X-Amz-SignedHeaders=host&x-id=PutObject response: body: string: '' @@ -201,9 +229,9 @@ interactions: Content-Length: - '0' x-amz-id-2: - - XFhMbvI0QDaEXyMWR+evtkPokMAlA1bYAnjAJhHZYu9w6fMS+MGXOodm4HI4Ad1IQ9DtQPGfEvM= + - Y4pWWv7diu62hH/dgagDZ4GBnbOIw9+DiosNzKR32EvFXOFGPev+yDlk8GKidv24Sy9PZpTtglI= x-amz-request-id: - - PV4KTKHPY08WD853 + - 0HVSKCMD513WA5KQ x-amz-server-side-encryption: - aws:kms x-amz-server-side-encryption-aws-kms-key-id: @@ -211,21 +239,21 @@ interactions: x-amz-server-side-encryption-bucket-key-enabled: - 'true' x-amz-version-id: - - oNe1yL4UJy80LZlikxPIyvcvRBde_QR0 + - WLtU4TfIb5OKhbf0BGR80lEkLjyfXqd1 status: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": - ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin", + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": + ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171881348}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271235520}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '499' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -245,16 +273,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": - ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1f98cc21-4f41-469d-b1bc-7d894babfc4a/tiny.bin"]], + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": + ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/890e15f7-c7e0-460d-abc5-b47253659e22/tiny.bin"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171881782}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271235889}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '499' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -274,16 +302,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": - ["file_ids", 0], "args": "1f98cc21-4f41-469d-b1bc-7d894babfc4a", "command": + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": + ["file_ids", 0], "args": "890e15f7-c7e0-460d-abc5-b47253659e22", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171882146}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271236262}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '417' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -303,15 +331,15 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": ["properties", "size"], "args": [["1B"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652171882586}, "command": "update", "id": - "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271236629}, "command": "update", "id": + "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '394' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -331,16 +359,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": + body: '{"operations": [{"id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": ["properties", "title"], "args": [["tiny.bin"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171883029}, "command": - "update", "id": "34a215ad-7cdc-408c-b1fb-8a0f119f512e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271237010}, "command": + "update", "id": "4f1270e8-24f5-4441-ab60-34d28f616b7f", "path": [], "table": "block"}]}' headers: Content-Length: - '401' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -360,20 +388,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": + body: '{"operations": [{"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "args": {"alive": false}, "command": "update", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652171883470}, "command": "update", "id": - "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "dd54a653-5d63-4710-b3ff-49612311a353"}, + "notion_user", "last_edited_time": 1654271237353}, "command": "update", "id": + "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "7d56ee74-f9da-4eae-9129-c7cc364c697a"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171883470}, "command": - "update", "id": "dd54a653-5d63-4710-b3ff-49612311a353", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271237354}, "command": + "update", "id": "7d56ee74-f9da-4eae-9129-c7cc364c697a", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -393,12 +421,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["dd54a653-5d63-4710-b3ff-49612311a353"], "permanentlyDelete": + body: '{"blockIds": ["7d56ee74-f9da-4eae-9129-c7cc364c697a"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/cassettes/test_resized_image.uuid4.json b/tests/cassettes/test_resized_image.uuid4.json index e93c4c2..3e132cb 100644 --- a/tests/cassettes/test_resized_image.uuid4.json +++ b/tests/cassettes/test_resized_image.uuid4.json @@ -1 +1 @@ -["cbef4b79-a97e-4c74-9581-843975a4e8ba", "1912ae9c-ecfc-49c1-8318-9efbda74662e"] +["cef8974c-b816-4287-b610-cbbfea35d44b", "abeaa3f7-59f7-4168-a7b4-afe727a0336c"] diff --git a/tests/cassettes/test_resized_image.yaml b/tests/cassettes/test_resized_image.yaml index 3e24378..04d51f0 100644 --- a/tests/cassettes/test_resized_image.yaml +++ b/tests/cassettes/test_resized_image.yaml @@ -4,7 +4,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -12,7 +12,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3169,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5696,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -28,7 +28,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -38,7 +38,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3169,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5696,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -50,25 +50,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": - [], "args": {"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "version": 1, "alive": + body: '{"operations": [{"id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": + [], "args": {"id": "cef8974c-b816-4287-b610-cbbfea35d44b", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171845472, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654271218051, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "parent_table": "space", "type": "page", "permissions": [{"role": "editor", "type": "user_permission", "user_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0"}]}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171845472}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271218051}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba"}, "command": "listAfter", + "args": {"id": "cef8974c-b816-4287-b610-cbbfea35d44b"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171845472}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271218051}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -88,16 +88,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": + body: '{"operations": [{"id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": ["properties", "title"], "args": [["TESTING PAGE"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171847361}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271218738}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -117,30 +117,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": - [], "args": {"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "version": 1, "alive": + body: '{"operations": [{"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": + [], "args": {"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171847776, "parent_id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", + "notion_user", "created_time": 1654271219093, "parent_id": "cef8974c-b816-4287-b610-cbbfea35d44b", "parent_table": "block", "type": "image", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171847776}, "command": - "update", "id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": [], "table": - "block"}, {"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": ["content"], - "args": {"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271219093}, "command": + "update", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": [], "table": + "block"}, {"id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": ["content"], + "args": {"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171847777}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271219093}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171847777}, "command": - "update", "id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271219093}, "command": + "update", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171847777}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271219093}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}]}' headers: Content-Length: - '1582' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -160,11 +160,39 @@ interactions: code: 200 message: OK - request: - body: '{"bucket": "secure", "name": "smallest.gif", "contentType": "image/gif"}' + body: '{"blockId": "abeaa3f7-59f7-4168-a7b4-afe727a0336c"}' + headers: + Content-Length: + - '51' + Content-Type: + - application/json + cookie: + - PRIVATE + x-notion-active-user-header: + - a03b888f-5426-4e4f-b5ef-bed855b162f0 + method: POST + uri: https://www.notion.so/api/v3/getPublicPageData + response: + body: + string: '{"spaceName":"test_py","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274","spaceDomain":"laced-taxi-315","canJoinSpace":true,"userHasExplicitAccess":true,"betaEnabled":false,"canRequestAccess":true,"requireLogin":false,"publicAccessRole":"none"}' + headers: + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + content-length: + - '243' + status: + code: 200 + message: OK +- request: + body: '{"bucket": "secure", "name": "smallest.gif", "contentType": "image/gif", + "record": {"table": "block", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}}' headers: Content-Length: - - '72' - content-type: + - '199' + Content-Type: - application/json cookie: - PRIVATE @@ -174,7 +202,7 @@ interactions: uri: https://www.notion.so/api/v3/getUploadFileUrl response: body: - string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083729Z&X-Amz-Expires=86400&X-Amz-Signature=4b62676722e154e7d9e04e148bc3e5550c0d192095bf8aa71e1f69c8a6f0226e&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083729Z&X-Amz-Expires=86400&X-Amz-Signature=ca42b9669588b6087edea914205d0571fbff634f7e6771f35cd628e283faadae&X-Amz-SignedHeaders=host&x-id=PutObject"}' + string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154659Z&X-Amz-Expires=86400&X-Amz-Signature=f7537d76ba41a208b99198ec1f12e59612193ea19bb0a05fa6de80a55cea861a&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154659Z&X-Amz-Expires=86400&X-Amz-Signature=e1f0cd80367bb0a2a3fa19cd90f9e9c0153c10c753adb1d91159f924fd80dc25&X-Amz-SignedHeaders=host&x-id=PutObject"}' headers: Content-Type: - application/json; charset=utf-8 @@ -194,7 +222,7 @@ interactions: Content-type: - image/gif method: PUT - uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083729Z&X-Amz-Expires=86400&X-Amz-Signature=ca42b9669588b6087edea914205d0571fbff634f7e6771f35cd628e283faadae&X-Amz-SignedHeaders=host&x-id=PutObject + uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154659Z&X-Amz-Expires=86400&X-Amz-Signature=e1f0cd80367bb0a2a3fa19cd90f9e9c0153c10c753adb1d91159f924fd80dc25&X-Amz-SignedHeaders=host&x-id=PutObject response: body: string: '' @@ -202,9 +230,9 @@ interactions: Content-Length: - '0' x-amz-id-2: - - 3Z+Z0/6JrJ8F2adS+hIAgIHCI+BCkQDc2x6dHMWW5F9CSq/wGix9E8Ik+B3oM7Gmz02/AQp/8Wg= + - yoUnBQ3w8rYAoRI7ru9qR161TxymgFTVgJXlcqCoyP5l3eGk+g6ouwTCxZZDXdZFAR56tmywFHQ= x-amz-request-id: - - R0T7BWZZ3VMYDWBX + - S7CJ4YGZTFG0TGPF x-amz-server-side-encryption: - aws:kms x-amz-server-side-encryption-aws-kms-key-id: @@ -212,21 +240,21 @@ interactions: x-amz-server-side-encryption-bucket-key-enabled: - 'true' x-amz-version-id: - - r1KXjjQYUvQW7r2rx_PKxPVQGFMVZqi8 + - ppTYnS_wOtieyGlt_nRyo1TmO0c6Ikc3 status: code: 200 message: OK - request: - body: '{"operations": [{"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": - ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif", + body: '{"operations": [{"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": + ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171850012}, "command": - "update", "id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271221196}, "command": + "update", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": [], "table": "block"}]}' headers: Content-Length: - '503' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -246,16 +274,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": - ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aac2516e-1af1-4188-8a11-931ba0a86230/smallest.gif"]], + body: '{"operations": [{"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": + ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8e8ce562-07e3-4762-a8dd-0746b5e72f56/smallest.gif"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171850449}, "command": - "update", "id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271221560}, "command": + "update", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": [], "table": "block"}]}' headers: Content-Length: - '503' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -275,16 +303,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": - ["file_ids", 0], "args": "aac2516e-1af1-4188-8a11-931ba0a86230", "command": + body: '{"operations": [{"id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": + ["file_ids", 0], "args": "8e8ce562-07e3-4762-a8dd-0746b5e72f56", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171850847}, "command": - "update", "id": "1912ae9c-ecfc-49c1-8318-9efbda74662e", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271221913}, "command": + "update", "id": "abeaa3f7-59f7-4168-a7b4-afe727a0336c", "path": [], "table": "block"}]}' headers: Content-Length: - '417' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -304,20 +332,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": + body: '{"operations": [{"id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "args": {"alive": false}, "command": "update", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652171851303}, "command": "update", "id": - "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "cbef4b79-a97e-4c74-9581-843975a4e8ba"}, + "notion_user", "last_edited_time": 1654271222318}, "command": "update", "id": + "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "cef8974c-b816-4287-b610-cbbfea35d44b"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171851303}, "command": - "update", "id": "cbef4b79-a97e-4c74-9581-843975a4e8ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271222318}, "command": + "update", "id": "cef8974c-b816-4287-b610-cbbfea35d44b", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -337,12 +365,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["cbef4b79-a97e-4c74-9581-843975a4e8ba"], "permanentlyDelete": + body: '{"blockIds": ["cef8974c-b816-4287-b610-cbbfea35d44b"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/cassettes/test_resized_image_only_width.uuid4.json b/tests/cassettes/test_resized_image_only_width.uuid4.json index 8185666..61dc054 100644 --- a/tests/cassettes/test_resized_image_only_width.uuid4.json +++ b/tests/cassettes/test_resized_image_only_width.uuid4.json @@ -1 +1 @@ -["4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "0dcf5b85-f627-4898-af9c-4bd06b3c76e6"] +["7cda1c68-8f89-46ad-bf2e-65edd2140517", "b0534afc-9a13-4a72-bd84-dce8d213a79e"] diff --git a/tests/cassettes/test_resized_image_only_width.yaml b/tests/cassettes/test_resized_image_only_width.yaml index e90c001..4a0ee93 100644 --- a/tests/cassettes/test_resized_image_only_width.yaml +++ b/tests/cassettes/test_resized_image_only_width.yaml @@ -4,7 +4,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -12,7 +12,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3171,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5698,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -28,7 +28,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -38,7 +38,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3171,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5698,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -50,25 +50,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": - [], "args": {"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "version": 1, "alive": + body: '{"operations": [{"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": + [], "args": {"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171862552, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654271224046, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "parent_table": "space", "type": "page", "permissions": [{"role": "editor", "type": "user_permission", "user_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0"}]}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171862552}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224046}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b"}, "command": "listAfter", + "args": {"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171862552}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224046}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -88,16 +88,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": + body: '{"operations": [{"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": ["properties", "title"], "args": [["TESTING PAGE"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171862987}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224505}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -117,30 +117,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": - [], "args": {"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "version": 1, "alive": + body: '{"operations": [{"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": + [], "args": {"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652171863412, "parent_id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", + "notion_user", "created_time": 1654271224848, "parent_id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "parent_table": "block", "type": "image", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171863412}, "command": - "update", "id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": [], "table": - "block"}, {"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": ["content"], - "args": {"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224848}, "command": + "update", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": [], "table": + "block"}, {"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": ["content"], + "args": {"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171863412}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224848}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171863412}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224848}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171863412}, "command": - "update", "id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271224848}, "command": + "update", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": [], "table": "block"}]}' headers: Content-Length: - '1582' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -160,11 +160,39 @@ interactions: code: 200 message: OK - request: - body: '{"bucket": "secure", "name": "smallest.gif", "contentType": "image/gif"}' + body: '{"blockId": "b0534afc-9a13-4a72-bd84-dce8d213a79e"}' + headers: + Content-Length: + - '51' + Content-Type: + - application/json + cookie: + - PRIVATE + x-notion-active-user-header: + - a03b888f-5426-4e4f-b5ef-bed855b162f0 + method: POST + uri: https://www.notion.so/api/v3/getPublicPageData + response: + body: + string: '{"spaceName":"test_py","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274","spaceDomain":"laced-taxi-315","canJoinSpace":true,"userHasExplicitAccess":true,"betaEnabled":false,"canRequestAccess":true,"requireLogin":false,"publicAccessRole":"none"}' + headers: + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + content-length: + - '243' + status: + code: 200 + message: OK +- request: + body: '{"bucket": "secure", "name": "smallest.gif", "contentType": "image/gif", + "record": {"table": "block", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}}' headers: Content-Length: - - '72' - content-type: + - '199' + Content-Type: - application/json cookie: - PRIVATE @@ -174,7 +202,7 @@ interactions: uri: https://www.notion.so/api/v3/getUploadFileUrl response: body: - string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083744Z&X-Amz-Expires=86400&X-Amz-Signature=102d1e05b5855c905ea88470fe9c64ce5a74bb69cc2f730afbc1adde4800e1a4&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083744Z&X-Amz-Expires=86400&X-Amz-Signature=5c18d8a8d0802bf10dda04eb640f28dc628b1ac0c8ab3389ff32357d8924bbba&X-Amz-SignedHeaders=host&x-id=PutObject"}' + string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154705Z&X-Amz-Expires=86400&X-Amz-Signature=7a4d6899f0fba7205f57bc320816dceb6b8a5268791f3d82f53c834a31d694e3&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154705Z&X-Amz-Expires=86400&X-Amz-Signature=85571ed6682c43dc70f1a0b2f7cb205bd4cbef1d40e37a9fdfddda1d51b7f8f6&X-Amz-SignedHeaders=host&x-id=PutObject"}' headers: Content-Type: - application/json; charset=utf-8 @@ -194,7 +222,7 @@ interactions: Content-type: - image/gif method: PUT - uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T083744Z&X-Amz-Expires=86400&X-Amz-Signature=5c18d8a8d0802bf10dda04eb640f28dc628b1ac0c8ab3389ff32357d8924bbba&X-Amz-SignedHeaders=host&x-id=PutObject + uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154705Z&X-Amz-Expires=86400&X-Amz-Signature=85571ed6682c43dc70f1a0b2f7cb205bd4cbef1d40e37a9fdfddda1d51b7f8f6&X-Amz-SignedHeaders=host&x-id=PutObject response: body: string: '' @@ -202,9 +230,9 @@ interactions: Content-Length: - '0' x-amz-id-2: - - 1TCRjS5Fyf+zzBt2YgBprHyDB73xhaxgMK7QYRxXVNnvBZPVGZv6G6l8H4+kP6fOJXGcBqa/EHk= + - cDBu4uaSzCo0ImKxd0VOr/OcuqP6TiHhGT7lHzqRn20puqX8eFnFkRf+LJ0B9Ufqcy1Zwk1KK1M= x-amz-request-id: - - YEE5J1HZH4R7N46D + - XB5G4GKG8SXN6MGN x-amz-server-side-encryption: - aws:kms x-amz-server-side-encryption-aws-kms-key-id: @@ -212,21 +240,21 @@ interactions: x-amz-server-side-encryption-bucket-key-enabled: - 'true' x-amz-version-id: - - bdXd0fWg1Gxd5qg1evvItDhy2fDWKoFv + - TjBwKAepPJeEkjBBuH5j7GSveXtRU9Q8 status: code: 200 message: OK - request: - body: '{"operations": [{"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": - ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif", + body: '{"operations": [{"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": + ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171865553}, "command": - "update", "id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271227010}, "command": + "update", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": [], "table": "block"}]}' headers: Content-Length: - '503' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -246,16 +274,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": - ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/561c35a4-6f8d-4bcb-b149-823113b0e8cb/smallest.gif"]], + body: '{"operations": [{"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": + ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f4d5a9cc-4af1-450a-9e21-5046a7143837/smallest.gif"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171865949}, "command": - "update", "id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271227360}, "command": + "update", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": [], "table": "block"}]}' headers: Content-Length: - '503' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -275,16 +303,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": - ["file_ids", 0], "args": "561c35a4-6f8d-4bcb-b149-823113b0e8cb", "command": + body: '{"operations": [{"id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": + ["file_ids", 0], "args": "f4d5a9cc-4af1-450a-9e21-5046a7143837", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171866420}, "command": - "update", "id": "0dcf5b85-f627-4898-af9c-4bd06b3c76e6", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271227759}, "command": + "update", "id": "b0534afc-9a13-4a72-bd84-dce8d213a79e", "path": [], "table": "block"}]}' headers: Content-Length: - '417' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -304,20 +332,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": + body: '{"operations": [{"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "args": {"alive": false}, "command": "update", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652171866829}, "command": "update", "id": - "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b"}, + "notion_user", "last_edited_time": 1654271228123}, "command": "update", "id": + "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "7cda1c68-8f89-46ad-bf2e-65edd2140517"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652171866829}, "command": - "update", "id": "4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271228123}, "command": + "update", "id": "7cda1c68-8f89-46ad-bf2e-65edd2140517", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -337,12 +365,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["4e1fd6af-c8ef-4c7a-bd04-59e3e10e049b"], "permanentlyDelete": + body: '{"blockIds": ["7cda1c68-8f89-46ad-bf2e-65edd2140517"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/cassettes/test_upload_note_db.uuid4.json b/tests/cassettes/test_upload_note_db.uuid4.json index e0a0e5a..6346378 100644 --- a/tests/cassettes/test_upload_note_db.uuid4.json +++ b/tests/cassettes/test_upload_note_db.uuid4.json @@ -1 +1 @@ -["7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "f9b2d177-eba7-4548-a11b-bfd6493e058c", "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "94314b26-0014-4c95-b84d-546daf1bd5bd", "411932de-e3d0-4ac0-9833-84cd1115b597", "06f9a6fa-1b33-4520-b0a0-fab449e15f1b"] +["30e94935-9e55-49ac-9bdd-6c5f169cfe51", "abdadafb-d3b2-4471-b118-88cf06450b2c", "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "402e3a54-2e64-43e6-b05a-ecaf2f186891", "073b3f56-97cc-44bd-8702-461ff37b8f13", "1cd0484f-a55b-4ae0-91c3-fa370e410a4f"] diff --git a/tests/cassettes/test_upload_note_db.yaml b/tests/cassettes/test_upload_note_db.yaml index 1313a95..153ffda 100644 --- a/tests/cassettes/test_upload_note_db.yaml +++ b/tests/cassettes/test_upload_note_db.yaml @@ -4,7 +4,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -12,7 +12,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3219,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5714,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -28,7 +28,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -38,7 +38,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3219,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5714,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -50,25 +50,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": - [], "args": {"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "version": 1, "alive": + body: '{"operations": [{"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": + [], "args": {"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175767899, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654271737447, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "parent_table": "space", "type": "page", "permissions": [{"role": "editor", "type": "user_permission", "user_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0"}]}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175767899}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271737447}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba"}, "command": "listAfter", + "args": {"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175767899}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271737447}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -88,16 +88,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": + body: '{"operations": [{"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": ["properties", "title"], "args": [["TESTING PAGE"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175768389}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271737867}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -117,30 +117,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": - [], "args": {"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "version": 1, "alive": + body: '{"operations": [{"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": + [], "args": {"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175770142, "parent_id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", + "notion_user", "created_time": 1654271738196, "parent_id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "parent_table": "block", "type": "collection_view_page", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770142}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": - "block"}, {"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": ["content"], - "args": {"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738196}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": + "block"}, {"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": ["content"], + "args": {"id": "abdadafb-d3b2-4471-b118-88cf06450b2c"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770142}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738196}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770142}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738196}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770142}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738196}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}]}' headers: Content-Length: - '1597' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -160,27 +160,27 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "path": - [], "args": {"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "version": 1, "alive": + body: '{"operations": [{"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "path": + [], "args": {"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175770567, "parent_id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", - "parent_table": "block", "schema": {"Hnv6": {"name": "Tags", "type": "multi_select", - "options": []}, "SYkn": {"name": "URL", "type": "url"}, "UZ1F": {"name": "Created", - "type": "created_time"}, "ndbw": {"name": "Updated", "type": "last_edited_time"}, + "notion_user", "created_time": 1654271738631, "parent_id": "abdadafb-d3b2-4471-b118-88cf06450b2c", + "parent_table": "block", "schema": {"0IZp": {"name": "Tags", "type": "multi_select", + "options": []}, "7qlF": {"name": "URL", "type": "url"}, "WAey": {"name": "Created", + "type": "created_time"}, "xSz4": {"name": "Updated", "type": "last_edited_time"}, "title": {"name": "Title", "type": "title"}}}, "command": "set", "table": "collection"}, - {"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": ["content"], "args": - {"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16"}, "command": "listAfter", "table": + {"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": ["content"], "args": + {"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770567}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738631}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175770567}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271738631}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}]}' headers: Content-Length: - '1330' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -200,16 +200,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": - ["format", "collection_pointer", "id"], "args": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", + body: '{"operations": [{"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": + ["format", "collection_pointer", "id"], "args": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175771036}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271739014}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}]}' headers: Content-Length: - '440' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -229,24 +229,24 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", "path": - [], "args": {"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", "version": 1, "alive": + body: '{"operations": [{"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "path": + [], "args": {"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175771433, "parent_id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", + "notion_user", "created_time": 1654271739363, "parent_id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "parent_table": "block", "type": "list"}, "command": "set", "table": "collection_view"}, - {"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": ["content"], "args": - {"id": "94314b26-0014-4c95-b84d-546daf1bd5bd"}, "command": "listAfter", "table": + {"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": ["content"], "args": + {"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175771433}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271739363}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175771433}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271739363}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}]}' headers: Content-Length: - '1079' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -266,13 +266,13 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", "path": - ["collection_id"], "args": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "command": + body: '{"operations": [{"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "path": + ["collection_id"], "args": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "command": "set", "table": "collection_view"}]}' headers: Content-Length: - '185' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -292,16 +292,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": - ["view_ids"], "args": ["94314b26-0014-4c95-b84d-546daf1bd5bd"], "command": "set", + body: '{"operations": [{"id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": + ["view_ids"], "args": ["402e3a54-2e64-43e6-b05a-ecaf2f186891"], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175772294}, "command": - "update", "id": "f9b2d177-eba7-4548-a11b-bfd6493e058c", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271740134}, "command": + "update", "id": "abdadafb-d3b2-4471-b118-88cf06450b2c", "path": [], "table": "block"}]}' headers: Content-Length: - '416' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -321,14 +321,14 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", "path": - ["format", "list_properties"], "args": [{"property": "Hnv6", "visible": true}, - {"property": "SYkn", "visible": false}, {"property": "UZ1F", "visible": false}, - {"property": "ndbw", "visible": true}], "command": "set", "table": "collection_view"}]}' + body: '{"operations": [{"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "path": + ["format", "list_properties"], "args": [{"property": "0IZp", "visible": true}, + {"property": "7qlF", "visible": false}, {"property": "WAey", "visible": false}, + {"property": "xSz4", "visible": true}], "command": "set", "table": "collection_view"}]}' headers: Content-Length: - '317' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -348,14 +348,14 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "path": - ["format", "collection_page_properties"], "args": [{"property": "Hnv6", "visible": - true}, {"property": "SYkn", "visible": false}, {"property": "UZ1F", "visible": - false}, {"property": "ndbw", "visible": true}], "command": "set", "table": "collection"}]}' + body: '{"operations": [{"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "path": + ["format", "collection_page_properties"], "args": [{"property": "0IZp", "visible": + true}, {"property": "7qlF", "visible": false}, {"property": "WAey", "visible": + false}, {"property": "xSz4", "visible": true}], "command": "set", "table": "collection"}]}' headers: Content-Length: - '323' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -375,12 +375,12 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "path": + body: '{"operations": [{"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "path": ["name"], "args": [["test_database"]], "command": "set", "table": "collection"}]}' headers: Content-Length: - '152' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -400,21 +400,21 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": - [], "args": {"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "version": 1, "alive": + body: '{"operations": [{"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": + [], "args": {"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175775961, "parent_id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", + "notion_user", "created_time": 1654271741492, "parent_id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "parent_table": "collection", "type": "page"}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175775961}, "command": "update", "id": - "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": "block"}, {"args": + "notion_user", "last_edited_time": 1654271741492}, "command": "update", "id": + "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175775961}, "command": "update", "id": - "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271741492}, "command": "update", "id": + "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}]}' headers: Content-Length: - '907' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -434,35 +434,35 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": + body: '{"operations": [{"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["properties", "title"], "args": [["test1 [UNFINISHED UPLOAD]"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776429}, "command": - "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": - "block"}, {"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": ["properties", - "SYkn"], "args": [["", [["a", ""]]]], "command": "set", "table": "block"}, {"args": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271741894}, "command": + "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": + "block"}, {"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["properties", + "7qlF"], "args": [["", [["a", ""]]]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175776429}, "command": "update", "id": - "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": "block"}, {"id": - "411932de-e3d0-4ac0-9833-84cd1115b597", "path": ["properties", "Hnv6"], "args": + "notion_user", "last_edited_time": 1654271741894}, "command": "update", "id": + "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}, {"id": + "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["properties", "0IZp"], "args": [[""]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": "notion_user", - "last_edited_time": 1652175776429}, "command": "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", - "path": [], "table": "block"}, {"id": "411932de-e3d0-4ac0-9833-84cd1115b597", + "last_edited_time": 1654271741894}, "command": "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", + "path": [], "table": "block"}, {"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["created_time"], "args": 1637193600000, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776429}, "command": - "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": - "block"}, {"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", "path": ["page_sort"], - "args": ["411932de-e3d0-4ac0-9833-84cd1115b597"], "command": "set", "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271741894}, "command": + "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": + "block"}, {"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "path": ["page_sort"], + "args": ["073b3f56-97cc-44bd-8702-461ff37b8f13"], "command": "set", "table": "collection_view"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776430}, "command": - "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271741894}, "command": + "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}]}' headers: Content-Length: - '1971' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -482,30 +482,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": - [], "args": {"id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "version": 1, "alive": + body: '{"operations": [{"id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": + [], "args": {"id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175776752, "parent_id": "411932de-e3d0-4ac0-9833-84cd1115b597", + "notion_user", "created_time": 1654271742270, "parent_id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "parent_table": "block", "type": "text", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776752}, "command": - "update", "id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": [], "table": - "block"}, {"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": ["content"], - "args": {"id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271742271}, "command": + "update", "id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": [], "table": + "block"}, {"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["content"], + "args": {"id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776752}, "command": - "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271742271}, "command": + "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776752}, "command": - "update", "id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271742271}, "command": + "update", "id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175776752}, "command": - "update", "id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271742271}, "command": + "update", "id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}]}' headers: Content-Length: - '1581' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -525,18 +525,18 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": + body: '{"operations": [{"id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": ["properties", "title"], "args": [["test"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175777142}, "command": "update", "id": - "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": [], "table": "block"}, {"args": + "notion_user", "last_edited_time": 1654271742673}, "command": "update", "id": + "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175777142}, "command": "update", "id": - "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271742673}, "command": "update", "id": + "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": [], "table": "block"}]}' headers: Content-Length: - '641' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -556,15 +556,15 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": + body: '{"operations": [{"id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": ["properties", "title"], "args": [["test"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175777590}, "command": "update", "id": - "06f9a6fa-1b33-4520-b0a0-fab449e15f1b", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271743056}, "command": "update", "id": + "1cd0484f-a55b-4ae0-91c3-fa370e410a4f", "path": [], "table": "block"}]}' headers: Content-Length: - '397' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -584,15 +584,15 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": + body: '{"operations": [{"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["properties", "title"], "args": [["test1"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175777966}, "command": "update", "id": - "411932de-e3d0-4ac0-9833-84cd1115b597", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271743392}, "command": "update", "id": + "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": [], "table": "block"}]}' headers: Content-Length: - '398' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -612,12 +612,12 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "411932de-e3d0-4ac0-9833-84cd1115b597", "path": + body: '{"operations": [{"id": "073b3f56-97cc-44bd-8702-461ff37b8f13", "path": ["last_edited_time"], "args": 1637280000000, "command": "set", "table": "block"}]}' headers: Content-Length: - '153' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -637,15 +637,15 @@ interactions: code: 200 message: OK - request: - body: '{"collection": {"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "spaceId": - "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "collectionView": {"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", + body: '{"collection": {"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "collectionView": {"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "spaceId": "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "loader": {"reducers": {"table:uncategorized:title:count": {"aggregation": {"aggregator": "count", "property": "title"}, "type": "aggregation"}}, "searchQuery": "", "sort": [], "userTimeZone": "Asia/Tashkent", "type": "reducer"}}' headers: Content-Length: - '460' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -667,15 +667,15 @@ interactions: code: 200 message: OK - request: - body: '{"collection": {"id": "55d28a90-be0e-4bf4-89c3-b0bed18dfa16", "spaceId": - "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "collectionView": {"id": "94314b26-0014-4c95-b84d-546daf1bd5bd", + body: '{"collection": {"id": "a46e4e3f-1fa4-49a1-85aa-a8833cccf57e", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "collectionView": {"id": "402e3a54-2e64-43e6-b05a-ecaf2f186891", "spaceId": "d51d3ca5-7889-4c70-b906-3a5a37b60274"}, "loader": {"reducers": {"collection_group_results": {"limit": 1, "type": "results"}}, "searchQuery": "", "sort": [], "userTimeZone": "Asia/Tashkent", "type": "reducer"}}' headers: Content-Length: - '400' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -685,8 +685,8 @@ interactions: uri: https://www.notion.so/api/v3/queryCollection response: body: - string: '{"result":{"type":"reducer","reducerResults":{"collection_group_results":{"type":"results","blockIds":["411932de-e3d0-4ac0-9833-84cd1115b597"],"hasMore":false}}},"recordMap":{"block":{"411932de-e3d0-4ac0-9833-84cd1115b597":{"role":"editor","value":{"id":"411932de-e3d0-4ac0-9833-84cd1115b597","version":18,"type":"page","properties":{"Hnv6":[[""]],"SYkn":[["",[["a",""]]]],"title":[["test1"]]},"content":["06f9a6fa-1b33-4520-b0a0-fab449e15f1b"],"created_time":1637193600000,"last_edited_time":1637280000000,"parent_id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","parent_table":"collection","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"f9b2d177-eba7-4548-a11b-bfd6493e058c":{"role":"editor","value":{"id":"f9b2d177-eba7-4548-a11b-bfd6493e058c","version":13,"type":"collection_view_page","content":["55d28a90-be0e-4bf4-89c3-b0bed18dfa16","94314b26-0014-4c95-b84d-546daf1bd5bd"],"view_ids":["94314b26-0014-4c95-b84d-546daf1bd5bd"],"format":{"collection_pointer":{"id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","table":"collection","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"created_time":1652175770142,"last_edited_time":1652175772294,"parent_id":"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba":{"role":"editor","value":{"id":"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba","version":8,"type":"page","properties":{"title":[["TESTING - PAGE"]]},"content":["f9b2d177-eba7-4548-a11b-bfd6493e058c"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1652175767899,"last_edited_time":1652175770142,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"collection":{"55d28a90-be0e-4bf4-89c3-b0bed18dfa16":{"role":"editor","value":{"id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","version":3,"name":[["test_database"]],"schema":{"Hnv6":{"name":"Tags","type":"multi_select"},"SYkn":{"name":"URL","type":"url"},"UZ1F":{"name":"Created","type":"created_time"},"ndbw":{"name":"Updated","type":"last_edited_time"},"title":{"name":"Title","type":"title"}},"format":{"collection_page_properties":[{"visible":true,"property":"Hnv6"},{"visible":false,"property":"SYkn"},{"visible":false,"property":"UZ1F"},{"visible":true,"property":"ndbw"}]},"parent_id":"f9b2d177-eba7-4548-a11b-bfd6493e058c","parent_table":"block","alive":true,"migrated":true,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3220,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba"],"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"result":{"type":"reducer","reducerResults":{"collection_group_results":{"type":"results","blockIds":["073b3f56-97cc-44bd-8702-461ff37b8f13"],"hasMore":false}}},"recordMap":{"block":{"073b3f56-97cc-44bd-8702-461ff37b8f13":{"role":"editor","value":{"id":"073b3f56-97cc-44bd-8702-461ff37b8f13","version":18,"type":"page","properties":{"0IZp":[[""]],"7qlF":[["",[["a",""]]]],"title":[["test1"]]},"content":["1cd0484f-a55b-4ae0-91c3-fa370e410a4f"],"created_time":1637193600000,"last_edited_time":1637280000000,"parent_id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","parent_table":"collection","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"abdadafb-d3b2-4471-b118-88cf06450b2c":{"role":"editor","value":{"id":"abdadafb-d3b2-4471-b118-88cf06450b2c","version":13,"type":"collection_view_page","content":["a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","402e3a54-2e64-43e6-b05a-ecaf2f186891"],"view_ids":["402e3a54-2e64-43e6-b05a-ecaf2f186891"],"format":{"collection_pointer":{"id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","table":"collection","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"created_time":1654271738196,"last_edited_time":1654271740134,"parent_id":"30e94935-9e55-49ac-9bdd-6c5f169cfe51","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"30e94935-9e55-49ac-9bdd-6c5f169cfe51":{"role":"editor","value":{"id":"30e94935-9e55-49ac-9bdd-6c5f169cfe51","version":8,"type":"page","properties":{"title":[["TESTING + PAGE"]]},"content":["abdadafb-d3b2-4471-b118-88cf06450b2c"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1654271737447,"last_edited_time":1654271738196,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"collection":{"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e":{"role":"editor","value":{"id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","version":3,"name":[["test_database"]],"schema":{"0IZp":{"name":"Tags","type":"multi_select"},"7qlF":{"name":"URL","type":"url"},"WAey":{"name":"Created","type":"created_time"},"xSz4":{"name":"Updated","type":"last_edited_time"},"title":{"name":"Title","type":"title"}},"format":{"collection_page_properties":[{"visible":true,"property":"0IZp"},{"visible":false,"property":"7qlF"},{"visible":false,"property":"WAey"},{"visible":true,"property":"xSz4"}]},"parent_id":"abdadafb-d3b2-4471-b118-88cf06450b2c","parent_table":"block","alive":true,"migrated":true,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5715,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["30e94935-9e55-49ac-9bdd-6c5f169cfe51"],"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -698,11 +698,11 @@ interactions: code: 200 message: OK - request: - body: '{"requests": [{"table": "block", "id": "06f9a6fa-1b33-4520-b0a0-fab449e15f1b"}]}' + body: '{"requests": [{"table": "block", "id": "1cd0484f-a55b-4ae0-91c3-fa370e410a4f"}]}' headers: Content-Length: - '80' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -712,8 +712,8 @@ interactions: uri: https://www.notion.so/api/v3/getRecordValues response: body: - string: '{"results":[{"role":"editor","value":{"id":"06f9a6fa-1b33-4520-b0a0-fab449e15f1b","version":8,"type":"text","properties":{"title":[["test"]]},"created_time":1652175776752,"last_edited_time":1652175777590,"parent_id":"411932de-e3d0-4ac0-9833-84cd1115b597","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}],"recordMapWithRoles":{"block":{"06f9a6fa-1b33-4520-b0a0-fab449e15f1b":{"role":"editor","value":{"id":"06f9a6fa-1b33-4520-b0a0-fab449e15f1b","version":8,"type":"text","properties":{"title":[["test"]]},"created_time":1652175776752,"last_edited_time":1652175777590,"parent_id":"411932de-e3d0-4ac0-9833-84cd1115b597","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"411932de-e3d0-4ac0-9833-84cd1115b597":{"role":"editor","value":{"id":"411932de-e3d0-4ac0-9833-84cd1115b597","version":18,"type":"page","properties":{"Hnv6":[[""]],"SYkn":[["",[["a",""]]]],"title":[["test1"]]},"content":["06f9a6fa-1b33-4520-b0a0-fab449e15f1b"],"created_time":1637193600000,"last_edited_time":1637280000000,"parent_id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","parent_table":"collection","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"f9b2d177-eba7-4548-a11b-bfd6493e058c":{"role":"editor","value":{"id":"f9b2d177-eba7-4548-a11b-bfd6493e058c","version":13,"type":"collection_view_page","content":["55d28a90-be0e-4bf4-89c3-b0bed18dfa16","94314b26-0014-4c95-b84d-546daf1bd5bd"],"view_ids":["94314b26-0014-4c95-b84d-546daf1bd5bd"],"format":{"collection_pointer":{"id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","table":"collection","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"created_time":1652175770142,"last_edited_time":1652175772294,"parent_id":"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba":{"role":"editor","value":{"id":"7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba","version":8,"type":"page","properties":{"title":[["TESTING - PAGE"]]},"content":["f9b2d177-eba7-4548-a11b-bfd6493e058c"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1652175767899,"last_edited_time":1652175770142,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"collection":{"55d28a90-be0e-4bf4-89c3-b0bed18dfa16":{"role":"editor","value":{"id":"55d28a90-be0e-4bf4-89c3-b0bed18dfa16","version":3,"name":[["test_database"]],"schema":{"Hnv6":{"name":"Tags","type":"multi_select"},"SYkn":{"name":"URL","type":"url"},"UZ1F":{"name":"Created","type":"created_time"},"ndbw":{"name":"Updated","type":"last_edited_time"},"title":{"name":"Title","type":"title"}},"format":{"collection_page_properties":[{"visible":true,"property":"Hnv6"},{"visible":false,"property":"SYkn"},{"visible":false,"property":"UZ1F"},{"visible":true,"property":"ndbw"}]},"parent_id":"f9b2d177-eba7-4548-a11b-bfd6493e058c","parent_table":"block","alive":true,"migrated":true,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3220,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba"],"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"results":[{"role":"editor","value":{"id":"1cd0484f-a55b-4ae0-91c3-fa370e410a4f","version":8,"type":"text","properties":{"title":[["test"]]},"created_time":1654271742270,"last_edited_time":1654271743056,"parent_id":"073b3f56-97cc-44bd-8702-461ff37b8f13","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}],"recordMapWithRoles":{"block":{"1cd0484f-a55b-4ae0-91c3-fa370e410a4f":{"role":"editor","value":{"id":"1cd0484f-a55b-4ae0-91c3-fa370e410a4f","version":8,"type":"text","properties":{"title":[["test"]]},"created_time":1654271742270,"last_edited_time":1654271743056,"parent_id":"073b3f56-97cc-44bd-8702-461ff37b8f13","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"073b3f56-97cc-44bd-8702-461ff37b8f13":{"role":"editor","value":{"id":"073b3f56-97cc-44bd-8702-461ff37b8f13","version":18,"type":"page","properties":{"0IZp":[[""]],"7qlF":[["",[["a",""]]]],"title":[["test1"]]},"content":["1cd0484f-a55b-4ae0-91c3-fa370e410a4f"],"created_time":1637193600000,"last_edited_time":1637280000000,"parent_id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","parent_table":"collection","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"abdadafb-d3b2-4471-b118-88cf06450b2c":{"role":"editor","value":{"id":"abdadafb-d3b2-4471-b118-88cf06450b2c","version":13,"type":"collection_view_page","content":["a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","402e3a54-2e64-43e6-b05a-ecaf2f186891"],"view_ids":["402e3a54-2e64-43e6-b05a-ecaf2f186891"],"format":{"collection_pointer":{"id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","table":"collection","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"created_time":1654271738196,"last_edited_time":1654271740134,"parent_id":"30e94935-9e55-49ac-9bdd-6c5f169cfe51","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"30e94935-9e55-49ac-9bdd-6c5f169cfe51":{"role":"editor","value":{"id":"30e94935-9e55-49ac-9bdd-6c5f169cfe51","version":8,"type":"page","properties":{"title":[["TESTING + PAGE"]]},"content":["abdadafb-d3b2-4471-b118-88cf06450b2c"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1654271737447,"last_edited_time":1654271738196,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"collection":{"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e":{"role":"editor","value":{"id":"a46e4e3f-1fa4-49a1-85aa-a8833cccf57e","version":3,"name":[["test_database"]],"schema":{"0IZp":{"name":"Tags","type":"multi_select"},"7qlF":{"name":"URL","type":"url"},"WAey":{"name":"Created","type":"created_time"},"xSz4":{"name":"Updated","type":"last_edited_time"},"title":{"name":"Title","type":"title"}},"format":{"collection_page_properties":[{"visible":true,"property":"0IZp"},{"visible":false,"property":"7qlF"},{"visible":false,"property":"WAey"},{"visible":true,"property":"xSz4"}]},"parent_id":"abdadafb-d3b2-4471-b118-88cf06450b2c","parent_table":"block","alive":true,"migrated":true,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5715,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["30e94935-9e55-49ac-9bdd-6c5f169cfe51"],"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -725,20 +725,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": + body: '{"operations": [{"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "args": {"alive": false}, "command": "update", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175787388}, "command": "update", "id": - "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba"}, + "notion_user", "last_edited_time": 1654271745163}, "command": "update", "id": + "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175787388}, "command": - "update", "id": "7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271745164}, "command": + "update", "id": "30e94935-9e55-49ac-9bdd-6c5f169cfe51", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -758,12 +758,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["7e3fbf0a-f976-4c0b-8802-6ca00ea7b1ba"], "permanentlyDelete": + body: '{"blockIds": ["30e94935-9e55-49ac-9bdd-6c5f169cfe51"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/cassettes/test_upload_note_with_file.uuid4.json b/tests/cassettes/test_upload_note_with_file.uuid4.json index 97c4128..4ccf877 100644 --- a/tests/cassettes/test_upload_note_with_file.uuid4.json +++ b/tests/cassettes/test_upload_note_with_file.uuid4.json @@ -1 +1 @@ -["f06bd880-a490-4293-9fea-7b261577fb43", "1bd49f77-8152-4a9d-963c-b78c23b96a52", "905fe845-b976-4885-888f-579b73e79219"] +["4b836bd4-3f19-4cd4-a51a-b14545033770", "e24f098f-c6c3-4524-be61-2480e4145f5e", "b94d5b24-f798-4b65-b7d4-76d3f95818a2"] diff --git a/tests/cassettes/test_upload_note_with_file.yaml b/tests/cassettes/test_upload_note_with_file.yaml index 9606475..52161b8 100644 --- a/tests/cassettes/test_upload_note_with_file.yaml +++ b/tests/cassettes/test_upload_note_with_file.yaml @@ -4,7 +4,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -12,7 +12,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3223,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5694,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -28,7 +28,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -38,7 +38,7 @@ interactions: uri: https://www.notion.so/api/v3/loadUserContent response: body: - string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3223,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"recordMap":{"notion_user":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":7,"email":"test_py_notion@protonmail.com","onboarding_completed":true,"name":"test_py"}}},"user_root":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":3,"space_views":["703440cc-f5cb-4f27-ba54-a9125a58e033"],"space_view_pointers":[{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","table":"space_view","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}]}}},"user_settings":{"a03b888f-5426-4e4f-b5ef-bed855b162f0":{"role":"editor","value":{"id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","version":10,"settings":{"type":"personal","persona":"personal","team_role":"unfilled","time_zone":"Asia/Tashkent","signup_time":1638259864507,"cookie_consent":{"id":"2c2f9260-c9a6-4097-bc19-30e5395dfb02","permission":{"necessary":true,"targeting":false,"preference":false,"performance":false}},"preferred_locale":"en-US","used_desktop_web_app":true,"seen_views_intro_modal":true,"preferred_locale_origin":"autodetect","seen_persona_collection":true}}}},"space_view":{"703440cc-f5cb-4f27-ba54-a9125a58e033":{"role":"editor","value":{"id":"703440cc-f5cb-4f27-ba54-a9125a58e033","version":31,"space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","parent_table":"user_root","alive":true,"notify_mobile":false,"notify_desktop":true,"notify_email":false,"visited_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"sidebar_hidden_templates":["7e89f436-7aac-4f66-b0a6-6e65ec868d2a","88c9c2b0-d732-4342-8963-0580a4725571","ba43b46e-4ad3-47f7-95f0-58a3ba01476f","2dddc8c5-a711-4aa2-b5b3-ff952a49bcfa","b7572331-51ab-4ed5-a931-5a7d34b08bf0"],"created_getting_started":true,"created_onboarding_templates":true,"private_pages":["5585f343-8ea5-469b-8a90-a05987977424"],"joined":true,"settings":{"on_app_start":"first_page"}}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5694,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -50,25 +50,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": - [], "args": {"id": "f06bd880-a490-4293-9fea-7b261577fb43", "version": 1, "alive": + body: '{"operations": [{"id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": + [], "args": {"id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175853413, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654271208497, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "parent_table": "space", "type": "page", "permissions": [{"role": "editor", "type": "user_permission", "user_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0"}]}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175853413}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271208497}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "f06bd880-a490-4293-9fea-7b261577fb43"}, "command": "listAfter", + "args": {"id": "4b836bd4-3f19-4cd4-a51a-b14545033770"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175853413}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271208497}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -88,16 +88,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": + body: '{"operations": [{"id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": ["properties", "title"], "args": [["TESTING PAGE"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175853934}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271208941}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -117,30 +117,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": - [], "args": {"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "version": 1, "alive": + body: '{"operations": [{"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": + [], "args": {"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175854369, "parent_id": "f06bd880-a490-4293-9fea-7b261577fb43", + "notion_user", "created_time": 1654271209302, "parent_id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "parent_table": "block", "type": "page", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854369}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": - "block"}, {"id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": ["content"], - "args": {"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271209302}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": + "block"}, {"id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": ["content"], + "args": {"id": "e24f098f-c6c3-4524-be61-2480e4145f5e"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854369}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271209302}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854369}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271209302}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854369}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271209302}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}]}' headers: Content-Length: - '1581' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -160,19 +160,19 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": + body: '{"operations": [{"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": ["properties", "title"], "args": [["test1 [UNFINISHED UPLOAD]"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854912}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210150}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175854912}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210150}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}]}' headers: Content-Length: - '662' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -192,30 +192,30 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": - [], "args": {"id": "905fe845-b976-4885-888f-579b73e79219", "version": 1, "alive": + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": + [], "args": {"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652175855305, "parent_id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", + "notion_user", "created_time": 1654271210505, "parent_id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "parent_table": "block", "type": "file", "child_list_key": null}, "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175855305}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": - "block"}, {"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": ["content"], - "args": {"id": "905fe845-b976-4885-888f-579b73e79219"}, "command": "listAfter", + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210505}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": + "block"}, {"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": ["content"], + "args": {"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2"}, "command": "listAfter", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175855305}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210505}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175855305}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210505}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175855305}, "command": - "update", "id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271210505}, "command": + "update", "id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}]}' headers: Content-Length: - '1581' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -235,11 +235,39 @@ interactions: code: 200 message: OK - request: - body: '{"bucket": "secure", "name": "tiny.bin", "contentType": "application/octet-stream"}' + body: '{"blockId": "b94d5b24-f798-4b65-b7d4-76d3f95818a2"}' headers: Content-Length: - - '83' - content-type: + - '51' + Content-Type: + - application/json + cookie: + - PRIVATE + x-notion-active-user-header: + - a03b888f-5426-4e4f-b5ef-bed855b162f0 + method: POST + uri: https://www.notion.so/api/v3/getPublicPageData + response: + body: + string: '{"spaceName":"test_py","spaceId":"d51d3ca5-7889-4c70-b906-3a5a37b60274","spaceDomain":"laced-taxi-315","canJoinSpace":true,"userHasExplicitAccess":true,"betaEnabled":false,"canRequestAccess":true,"requireLogin":false,"publicAccessRole":"none"}' + headers: + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + content-length: + - '243' + status: + code: 200 + message: OK +- request: + body: '{"bucket": "secure", "name": "tiny.bin", "contentType": "application/octet-stream", + "record": {"table": "block", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "spaceId": + "d51d3ca5-7889-4c70-b906-3a5a37b60274"}}' + headers: + Content-Length: + - '210' + Content-Type: - application/json cookie: - PRIVATE @@ -249,7 +277,7 @@ interactions: uri: https://www.notion.so/api/v3/getUploadFileUrl response: body: - string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T094416Z&X-Amz-Expires=86400&X-Amz-Signature=543e498b5910dcaee9c4305c415f1391340e032dd8ad3c9582b8eb3e8d8309c6&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T094416Z&X-Amz-Expires=86400&X-Amz-Signature=87461307c2f35de8a77f1e3f8cc124ac601c379f5a9335a69af2d2ebd07570c9&X-Amz-SignedHeaders=host&x-id=PutObject"}' + string: '{"url":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin","signedGetUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154650Z&X-Amz-Expires=86400&X-Amz-Signature=57699ef8e57afaf83b062a984d92195b90734399d4edafbe3ea5771892867e98&X-Amz-SignedHeaders=host&x-id=GetObject","signedPutUrl":"https://s3.us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154650Z&X-Amz-Expires=86400&X-Amz-Signature=7cf122606539878c45a43b3078f405b3e3856929e83a5cd80194d02bd497e5a7&X-Amz-SignedHeaders=host&x-id=PutObject"}' headers: Content-Type: - application/json; charset=utf-8 @@ -268,7 +296,7 @@ interactions: Content-type: - application/octet-stream method: PUT - uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220510%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220510T094416Z&X-Amz-Expires=86400&X-Amz-Signature=87461307c2f35de8a77f1e3f8cc124ac601c379f5a9335a69af2d2ebd07570c9&X-Amz-SignedHeaders=host&x-id=PutObject + uri: https://s3.us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220603%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220603T154650Z&X-Amz-Expires=86400&X-Amz-Signature=7cf122606539878c45a43b3078f405b3e3856929e83a5cd80194d02bd497e5a7&X-Amz-SignedHeaders=host&x-id=PutObject response: body: string: '' @@ -276,9 +304,9 @@ interactions: Content-Length: - '0' x-amz-id-2: - - d2s6o7k2dNzB8Vqfv7l1oALxg5PFx284HNV6t2uOKdFbiVpGuXEqNP4Fk3GD7Jsjx7R/3gxVbnk= + - 6wWZ5O44EPfqDAdEPVS7pSqbwCwOb/fYsgLg3TCWNVrgv5R97LrRyq1/eYHEmyqe1FzXjw087e0= x-amz-request-id: - - C7RGK2RN508ZFDVF + - D37HE92F2M0JENGM x-amz-server-side-encryption: - aws:kms x-amz-server-side-encryption-aws-kms-key-id: @@ -286,21 +314,21 @@ interactions: x-amz-server-side-encryption-bucket-key-enabled: - 'true' x-amz-version-id: - - mlksLV9zVB._cFPsRQEOQoqab5315cO0 + - 9sSlbm.X1TQ4I_hnz26CQ2Cdet6zK07J status: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": - ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin", + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": + ["format", "display_source"], "args": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175857435}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271212732}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}]}' headers: Content-Length: - '499' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -320,16 +348,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": - ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin"]], + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": + ["properties", "source"], "args": [["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175857837}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271213113}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}]}' headers: Content-Length: - '499' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -349,16 +377,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": - ["file_ids", 0], "args": "1ba0ee01-b552-400f-9595-c872f20600c1", "command": + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": + ["file_ids", 0], "args": "dba3c153-8e97-4dc2-91fd-49fec52ab02c", "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175858270}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271213462}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}]}' headers: Content-Length: - '417' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -378,15 +406,15 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": ["properties", "size"], "args": [["1B"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175858688}, "command": "update", "id": - "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271213835}, "command": "update", "id": + "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}]}' headers: Content-Length: - '394' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -406,16 +434,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "905fe845-b976-4885-888f-579b73e79219", "path": + body: '{"operations": [{"id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": ["properties", "title"], "args": [["tiny.bin"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175859078}, "command": - "update", "id": "905fe845-b976-4885-888f-579b73e79219", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271214186}, "command": + "update", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2", "path": [], "table": "block"}]}' headers: Content-Length: - '401' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -435,15 +463,15 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": + body: '{"operations": [{"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": ["properties", "title"], "args": [["test1"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175859472}, "command": "update", "id": - "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": [], "table": "block"}]}' + "notion_user", "last_edited_time": 1654271214569}, "command": "update", "id": + "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": [], "table": "block"}]}' headers: Content-Length: - '398' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -463,12 +491,12 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "1bd49f77-8152-4a9d-963c-b78c23b96a52", "path": + body: '{"operations": [{"id": "e24f098f-c6c3-4524-be61-2480e4145f5e", "path": ["last_edited_time"], "args": 1637193600000, "command": "set", "table": "block"}]}' headers: Content-Length: - '153' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -488,11 +516,11 @@ interactions: code: 200 message: OK - request: - body: '{"requests": [{"table": "block", "id": "905fe845-b976-4885-888f-579b73e79219"}]}' + body: '{"requests": [{"table": "block", "id": "b94d5b24-f798-4b65-b7d4-76d3f95818a2"}]}' headers: Content-Length: - '80' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -502,8 +530,8 @@ interactions: uri: https://www.notion.so/api/v3/getRecordValues response: body: - string: '{"results":[{"role":"editor","value":{"id":"905fe845-b976-4885-888f-579b73e79219","version":13,"type":"file","properties":{"size":[["1B"]],"title":[["tiny.bin"]],"source":[["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin"]]},"format":{"display_source":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin"},"created_time":1652175855305,"last_edited_time":1652175859078,"parent_id":"1bd49f77-8152-4a9d-963c-b78c23b96a52","parent_table":"block","alive":true,"file_ids":["1ba0ee01-b552-400f-9595-c872f20600c1"],"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}],"recordMapWithRoles":{"block":{"905fe845-b976-4885-888f-579b73e79219":{"role":"editor","value":{"id":"905fe845-b976-4885-888f-579b73e79219","version":13,"type":"file","properties":{"size":[["1B"]],"title":[["tiny.bin"]],"source":[["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin"]]},"format":{"display_source":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ba0ee01-b552-400f-9595-c872f20600c1/tiny.bin"},"created_time":1652175855305,"last_edited_time":1652175859078,"parent_id":"1bd49f77-8152-4a9d-963c-b78c23b96a52","parent_table":"block","alive":true,"file_ids":["1ba0ee01-b552-400f-9595-c872f20600c1"],"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"1bd49f77-8152-4a9d-963c-b78c23b96a52":{"role":"editor","value":{"id":"1bd49f77-8152-4a9d-963c-b78c23b96a52","version":12,"type":"page","properties":{"title":[["test1"]]},"content":["905fe845-b976-4885-888f-579b73e79219"],"created_time":1652175854369,"last_edited_time":1637193600000,"parent_id":"f06bd880-a490-4293-9fea-7b261577fb43","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"f06bd880-a490-4293-9fea-7b261577fb43":{"role":"editor","value":{"id":"f06bd880-a490-4293-9fea-7b261577fb43","version":8,"type":"page","properties":{"title":[["TESTING - PAGE"]]},"content":["1bd49f77-8152-4a9d-963c-b78c23b96a52"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1652175853413,"last_edited_time":1652175854369,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":3224,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["f06bd880-a490-4293-9fea-7b261577fb43"],"created_time":1638259881592,"last_edited_time":1651932240000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' + string: '{"results":[{"role":"editor","value":{"id":"b94d5b24-f798-4b65-b7d4-76d3f95818a2","version":14,"type":"file","properties":{"size":[["1B"]],"title":[["tiny.bin"]],"source":[["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin"]]},"format":{"display_source":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin"},"created_time":1654271210505,"last_edited_time":1654271214186,"parent_id":"e24f098f-c6c3-4524-be61-2480e4145f5e","parent_table":"block","alive":true,"file_ids":["dba3c153-8e97-4dc2-91fd-49fec52ab02c"],"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}],"recordMapWithRoles":{"block":{"b94d5b24-f798-4b65-b7d4-76d3f95818a2":{"role":"editor","value":{"id":"b94d5b24-f798-4b65-b7d4-76d3f95818a2","version":14,"type":"file","properties":{"size":[["1B"]],"title":[["tiny.bin"]],"source":[["https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin"]]},"format":{"display_source":"https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dba3c153-8e97-4dc2-91fd-49fec52ab02c/tiny.bin"},"created_time":1654271210505,"last_edited_time":1654271214186,"parent_id":"e24f098f-c6c3-4524-be61-2480e4145f5e","parent_table":"block","alive":true,"file_ids":["dba3c153-8e97-4dc2-91fd-49fec52ab02c"],"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"e24f098f-c6c3-4524-be61-2480e4145f5e":{"role":"editor","value":{"id":"e24f098f-c6c3-4524-be61-2480e4145f5e","version":12,"type":"page","properties":{"title":[["test1"]]},"content":["b94d5b24-f798-4b65-b7d4-76d3f95818a2"],"created_time":1654271209302,"last_edited_time":1637193600000,"parent_id":"4b836bd4-3f19-4cd4-a51a-b14545033770","parent_table":"block","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}},"4b836bd4-3f19-4cd4-a51a-b14545033770":{"role":"editor","value":{"id":"4b836bd4-3f19-4cd4-a51a-b14545033770","version":8,"type":"page","properties":{"title":[["TESTING + PAGE"]]},"content":["e24f098f-c6c3-4524-be61-2480e4145f5e"],"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1654271208497,"last_edited_time":1654271209302,"parent_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","parent_table":"space","alive":true,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","space_id":"d51d3ca5-7889-4c70-b906-3a5a37b60274"}}},"space":{"d51d3ca5-7889-4c70-b906-3a5a37b60274":{"role":"editor","value":{"id":"d51d3ca5-7889-4c70-b906-3a5a37b60274","version":5695,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["4b836bd4-3f19-4cd4-a51a-b14545033770"],"created_time":1638259881592,"last_edited_time":1652698380000,"created_by_table":"notion_user","created_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","last_edited_by_table":"notion_user","last_edited_by_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0","plan_type":"personal","invite_link_enabled":true}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -515,20 +543,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": + body: '{"operations": [{"id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "args": {"alive": false}, "command": "update", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "last_edited_by_table": - "notion_user", "last_edited_time": 1652175860589}, "command": "update", "id": - "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "f06bd880-a490-4293-9fea-7b261577fb43"}, + "notion_user", "last_edited_time": 1654271215632}, "command": "update", "id": + "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "4b836bd4-3f19-4cd4-a51a-b14545033770"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652175860589}, "command": - "update", "id": "f06bd880-a490-4293-9fea-7b261577fb43", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654271215633}, "command": + "update", "id": "4b836bd4-3f19-4cd4-a51a-b14545033770", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -548,12 +576,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["f06bd880-a490-4293-9fea-7b261577fb43"], "permanentlyDelete": + body: '{"blockIds": ["4b836bd4-3f19-4cd4-a51a-b14545033770"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/test_enex_uploader.py b/tests/test_enex_uploader.py index fbe2d39..fa11653 100644 --- a/tests/test_enex_uploader.py +++ b/tests/test_enex_uploader.py @@ -264,8 +264,10 @@ def test_upload_note_db(notion_test_page, parse_rules): assert test_row.title == "test1" - assert test_row.created == datetime(2021, 11, 18, 0, 0, 0) - assert test_row.updated == datetime(2021, 11, 19, 0, 0, 0) + assert test_row.columns.created == datetime(2021, 11, 18, 0, 0, 0) + assert test_row.columns.updated == datetime(2021, 11, 19, 0, 0, 0) + assert test_row.columns.tags == [""] + assert test_row.columns.url == "" assert len(test_row.children) == 1 assert isinstance(test_row.children[0], TextBlock)