diff --git a/tests/cassettes/test_import_root_new.uuid4.json b/tests/cassettes/test_import_root_new.uuid4.json index e761719..372b69e 100644 --- a/tests/cassettes/test_import_root_new.uuid4.json +++ b/tests/cassettes/test_import_root_new.uuid4.json @@ -1 +1 @@ -["150184d0-4b1a-4a63-a1f2-4410a09e83a2", "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "7c575e6e-4f2b-4f1e-abec-48bc6928c77a"] +["3f063153-8039-43cf-b9b5-ec105783e2ef", "cedd570c-1f78-469d-b260-5d1e17fac1d3", "f860341d-ae69-467d-8138-45669c54da77"] diff --git a/tests/cassettes/test_import_root_new.yaml b/tests/cassettes/test_import_root_new.yaml index 91b8498..4ef3526 100644 --- a/tests/cassettes/test_import_root_new.yaml +++ b/tests/cassettes/test_import_root_new.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":3125,"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":5810,"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":1654272600000,"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":3125,"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":5810,"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":1654272600000,"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": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": - [], "args": {"id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "version": 1, "alive": + body: '{"operations": [{"id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "path": + [], "args": {"id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652170475187, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654272964217, "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": 1652170475187}, "command": - "update", "id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272964217}, "command": + "update", "id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2"}, "command": "listAfter", + "args": {"id": "3f063153-8039-43cf-b9b5-ec105783e2ef"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170475187}, "command": - "update", "id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272964217}, "command": + "update", "id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "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": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": + body: '{"operations": [{"id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "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": 1652170475650}, "command": - "update", "id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272964690}, "command": + "update", "id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "path": [], "table": "block"}]}' headers: Content-Length: - '405' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -121,7 +121,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -131,8 +131,8 @@ 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":3126,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["150184d0-4b1a-4a63-a1f2-4410a09e83a2"],"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}}},"block":{"150184d0-4b1a-4a63-a1f2-4410a09e83a2":{"role":"editor","value":{"id":"150184d0-4b1a-4a63-a1f2-4410a09e83a2","version":5,"type":"page","properties":{"title":[["TESTING - PAGE"]]},"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1652170475187,"last_edited_time":1652170475650,"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"}}}}}' + 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":5811,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["3f063153-8039-43cf-b9b5-ec105783e2ef"],"created_time":1638259881592,"last_edited_time":1654272600000,"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}}},"block":{"3f063153-8039-43cf-b9b5-ec105783e2ef":{"role":"editor","value":{"id":"3f063153-8039-43cf-b9b5-ec105783e2ef","version":5,"type":"page","properties":{"title":[["TESTING + PAGE"]]},"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1654272964217,"last_edited_time":1654272964690,"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"}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -144,25 +144,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": - [], "args": {"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "version": 1, "alive": + body: '{"operations": [{"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": + [], "args": {"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652170476369, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654272965865, "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": 1652170476369}, "command": - "update", "id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272965865}, "command": + "update", "id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb"}, "command": "listAfter", + "args": {"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170476369}, "command": - "update", "id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272965865}, "command": + "update", "id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -182,16 +182,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": + body: '{"operations": [{"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": ["properties", "title"], "args": [["TESTING PAGE 2"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170476823}, "command": - "update", "id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272966276}, "command": + "update", "id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": [], "table": "block"}]}' headers: Content-Length: - '407' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -211,20 +211,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": + body: '{"operations": [{"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "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": 1652170477212}, "command": "update", "id": - "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb"}, + "notion_user", "last_edited_time": 1654272966654}, "command": "update", "id": + "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "cedd570c-1f78-469d-b260-5d1e17fac1d3"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170477212}, "command": - "update", "id": "ff4f5caa-46db-47cf-b89e-ff6118c87beb", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272966654}, "command": + "update", "id": "cedd570c-1f78-469d-b260-5d1e17fac1d3", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -244,12 +244,12 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["ff4f5caa-46db-47cf-b89e-ff6118c87beb"], "permanentlyDelete": + body: '{"blockIds": ["cedd570c-1f78-469d-b260-5d1e17fac1d3"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -273,7 +273,7 @@ interactions: headers: Content-Length: - '2' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -283,8 +283,8 @@ 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":3128,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["150184d0-4b1a-4a63-a1f2-4410a09e83a2"],"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}}},"block":{"150184d0-4b1a-4a63-a1f2-4410a09e83a2":{"role":"editor","value":{"id":"150184d0-4b1a-4a63-a1f2-4410a09e83a2","version":5,"type":"page","properties":{"title":[["TESTING - PAGE"]]},"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1652170475187,"last_edited_time":1652170475650,"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"}}}}}' + 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":5813,"name":"test_py","permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"beta_enabled":false,"pages":["3f063153-8039-43cf-b9b5-ec105783e2ef"],"created_time":1638259881592,"last_edited_time":1654272600000,"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}}},"block":{"3f063153-8039-43cf-b9b5-ec105783e2ef":{"role":"editor","value":{"id":"3f063153-8039-43cf-b9b5-ec105783e2ef","version":5,"type":"page","properties":{"title":[["TESTING + PAGE"]]},"permissions":[{"role":"editor","type":"user_permission","user_id":"a03b888f-5426-4e4f-b5ef-bed855b162f0"}],"created_time":1654272964217,"last_edited_time":1654272964690,"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"}}}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -296,25 +296,25 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "path": - [], "args": {"id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "version": 1, "alive": + body: '{"operations": [{"id": "f860341d-ae69-467d-8138-45669c54da77", "path": + [], "args": {"id": "f860341d-ae69-467d-8138-45669c54da77", "version": 1, "alive": true, "created_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", "created_by_table": - "notion_user", "created_time": 1652170479906, "parent_id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", + "notion_user", "created_time": 1654272967758, "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": 1652170479906}, "command": - "update", "id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272967758}, "command": + "update", "id": "f860341d-ae69-467d-8138-45669c54da77", "path": [], "table": "block"}, {"id": "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], - "args": {"id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a"}, "command": "listAfter", + "args": {"id": "f860341d-ae69-467d-8138-45669c54da77"}, "command": "listAfter", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170479906}, "command": - "update", "id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272967758}, "command": + "update", "id": "f860341d-ae69-467d-8138-45669c54da77", "path": [], "table": "block"}]}' headers: Content-Length: - '1182' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -334,16 +334,16 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "path": + body: '{"operations": [{"id": "f860341d-ae69-467d-8138-45669c54da77", "path": ["properties", "title"], "args": [["TESTING PAGE 2"]], "command": "set", "table": "block"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170480383}, "command": - "update", "id": "7c575e6e-4f2b-4f1e-abec-48bc6928c77a", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272968365}, "command": + "update", "id": "f860341d-ae69-467d-8138-45669c54da77", "path": [], "table": "block"}]}' headers: Content-Length: - '407' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -363,20 +363,20 @@ interactions: code: 200 message: OK - request: - body: '{"operations": [{"id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": + body: '{"operations": [{"id": "f860341d-ae69-467d-8138-45669c54da77", "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": 1652170480988}, "command": "update", "id": - "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": [], "table": "block"}, {"id": - "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2"}, + "notion_user", "last_edited_time": 1654272969072}, "command": "update", "id": + "f860341d-ae69-467d-8138-45669c54da77", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "f860341d-ae69-467d-8138-45669c54da77"}, "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", - "last_edited_by_table": "notion_user", "last_edited_time": 1652170480989}, "command": - "update", "id": "150184d0-4b1a-4a63-a1f2-4410a09e83a2", "path": [], "table": + "last_edited_by_table": "notion_user", "last_edited_time": 1654272969072}, "command": + "update", "id": "f860341d-ae69-467d-8138-45669c54da77", "path": [], "table": "block"}]}' headers: Content-Length: - '795' - content-type: + Content-Type: - application/json cookie: - PRIVATE @@ -396,12 +396,70 @@ interactions: code: 200 message: OK - request: - body: '{"blockIds": ["150184d0-4b1a-4a63-a1f2-4410a09e83a2"], "permanentlyDelete": + body: '{"blockIds": ["f860341d-ae69-467d-8138-45669c54da77"], "permanentlyDelete": true}' headers: Content-Length: - '81' - content-type: + 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/deleteBlocks + response: + body: + string: '{"recordMap":{}}' + headers: + Content-Length: + - '16' + Content-Type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: '{"operations": [{"id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "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": 1654272969982}, "command": "update", "id": + "3f063153-8039-43cf-b9b5-ec105783e2ef", "path": [], "table": "block"}, {"id": + "d51d3ca5-7889-4c70-b906-3a5a37b60274", "path": ["pages"], "args": {"id": "3f063153-8039-43cf-b9b5-ec105783e2ef"}, + "command": "listRemove", "table": "space"}, {"args": {"last_edited_by_id": "a03b888f-5426-4e4f-b5ef-bed855b162f0", + "last_edited_by_table": "notion_user", "last_edited_time": 1654272969982}, "command": + "update", "id": "3f063153-8039-43cf-b9b5-ec105783e2ef", "path": [], "table": + "block"}]}' + headers: + Content-Length: + - '795' + 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/submitTransaction + response: + body: + string: '{}' + headers: + Content-Length: + - '2' + Content-Type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: '{"blockIds": ["3f063153-8039-43cf-b9b5-ec105783e2ef"], "permanentlyDelete": + true}' + headers: + Content-Length: + - '81' + Content-Type: - application/json cookie: - PRIVATE diff --git a/tests/test_enex_uploader.py b/tests/test_enex_uploader.py index fa11653..bc520d1 100644 --- a/tests/test_enex_uploader.py +++ b/tests/test_enex_uploader.py @@ -105,7 +105,9 @@ def test_import_root_new(notion_test_page, caplog): root.remove(permanently=True) with caplog.at_level(logging.INFO, logger="enex2notion"): - get_import_root(notion_test_page._client, test_import_title) + new_root = get_import_root(notion_test_page._client, test_import_title) + + new_root.remove(permanently=True) assert f"Creating '{test_import_title}' page..." in caplog.text