From 3ea7a134d10baa2c1ae66139952a40362328a9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20=C3=85rstrand?= Date: Thu, 4 Apr 2024 12:57:16 +0200 Subject: [PATCH] Upgraded to Electric 0.9.6 --- README.md | 30 +- package.json | 4 +- src/generated/client/migrations.ts | 60 +- src/generated/client/prismaClient.d.ts | 865 +++++++++---------------- yarn.lock | 85 +-- 5 files changed, 375 insertions(+), 669 deletions(-) diff --git a/README.md b/README.md index 7b746d1..24aa63b 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ - - - - - ElectricSQL logo - - - -# Welcome to your ElectricSQL app! +# Test cases for Electric-SQL + +This repository contains some test cases created to assist the Electric-SQL team. + +## 1. Incorrect Types in generated client + +See [GitHub issue 1001](https://github.com/electric-sql/electric/issues/1001) for details. + +Reproducible in commit [10e5ff75b4fc92852ef04cbff69c167024aac7d1](https://github.com/fooware/electric-testcase-01/commit/10e5ff75b4fc92852ef04cbff69c167024aac7d1) on main. Fixed by upgrading to Electric 0.9.6 in the following commit. + +## 2. Failing referential integrity (discussed in Discord) + +Failing referential integrity when doing overlapping deletes and inserts, [Discussed in Discord](https://discord.com/channels/933657521581858818/1202273462593532004). Test case and instructions can be found in the [electric_8_1 branch](https://github.com/fooware/electric-testcase-01/tree/electric_8_1). + +## ********************* Officials docs below ********************* This is a web application using ElectricSQL in the browser with [wa-sqlite](https://electric-sql.com/docs/integrations/drivers/web/wa-sqlite). diff --git a/package.json b/package.json index 9e89a63..71eb566 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "preview": "vite preview" }, "dependencies": { - "electric-sql": "^0.9.3", + "electric-sql": "^0.9.6", "react": "^18.2.0", "react-dom": "^18.2.0", "wa-sqlite": "github:rhashimoto/wa-sqlite#semver:^0.9.8" @@ -37,4 +37,4 @@ "typescript": "^5.3.3", "vite": "^5.1.4" } -} \ No newline at end of file +} diff --git a/src/generated/client/migrations.ts b/src/generated/client/migrations.ts index 37ab751..c6f4307 100644 --- a/src/generated/client/migrations.ts +++ b/src/generated/client/migrations.ts @@ -10,102 +10,102 @@ export default [ "CREATE INDEX \"box_user_person_id_idx\" ON \"box_user\" (\"person_id\" ASC);\n", "CREATE TABLE \"room_user\" (\n \"id\" TEXT NOT NULL,\n \"person_id\" TEXT NOT NULL,\n CONSTRAINT \"room_user_id_fkey\" FOREIGN KEY (\"id\") REFERENCES \"room\" (\"id\") ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT \"room_user_person_id_fkey\" FOREIGN KEY (\"person_id\") REFERENCES \"person\" (\"id\") ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT \"room_user_pkey\" PRIMARY KEY (\"id\", \"person_id\")\n) WITHOUT ROWID;\n", "CREATE INDEX \"room_user_person_id_idx\" ON \"room_user\" (\"person_id\" ASC);\n", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.house', 1);", - " /* Triggers for table house */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_house_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.house', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_house_primarykey;", "CREATE TRIGGER update_ensure_main_house_primarykey\n BEFORE UPDATE ON \"main\".\"house\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_house_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_house_into_oplog;", "CREATE TRIGGER insert_main_house_into_oplog\n AFTER INSERT ON \"main\".\"house\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.house')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'house', 'INSERT', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_house_into_oplog;", "CREATE TRIGGER update_main_house_into_oplog\n AFTER UPDATE ON \"main\".\"house\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.house')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'house', 'UPDATE', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\"), json_object('id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_house_into_oplog;", "CREATE TRIGGER delete_main_house_into_oplog\n AFTER DELETE ON \"main\".\"house\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.house')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'house', 'DELETE', json_object('id', old.\"id\"), NULL, json_object('id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.room', 1);", - " /* Triggers for table room */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_room_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.room', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_room_primarykey;", "CREATE TRIGGER update_ensure_main_room_primarykey\n BEFORE UPDATE ON \"main\".\"room\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_room_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_room_into_oplog;", "CREATE TRIGGER insert_main_room_into_oplog\n AFTER INSERT ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room', 'INSERT', json_object('id', new.\"id\"), json_object('house_id', new.\"house_id\", 'id', new.\"id\", 'name', new.\"name\", 'owner_id', new.\"owner_id\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_room_into_oplog;", "CREATE TRIGGER update_main_room_into_oplog\n AFTER UPDATE ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room', 'UPDATE', json_object('id', new.\"id\"), json_object('house_id', new.\"house_id\", 'id', new.\"id\", 'name', new.\"name\", 'owner_id', new.\"owner_id\"), json_object('house_id', old.\"house_id\", 'id', old.\"id\", 'name', old.\"name\", 'owner_id', old.\"owner_id\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_room_into_oplog;", "CREATE TRIGGER delete_main_room_into_oplog\n AFTER DELETE ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room', 'DELETE', json_object('id', old.\"id\"), NULL, json_object('house_id', old.\"house_id\", 'id', old.\"id\", 'name', old.\"name\", 'owner_id', old.\"owner_id\"), NULL);\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_room_house_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_room_house_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_room_house_id_into_oplog\n AFTER INSERT ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.house') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'house', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"house\" WHERE \"id\" = new.\"house_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_room_house_id_into_oplog;", "CREATE TRIGGER compensation_update_main_room_house_id_into_oplog\n AFTER UPDATE ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.house') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'house', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"house\" WHERE \"id\" = new.\"house_id\";\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_room_owner_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_room_owner_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_room_owner_id_into_oplog\n AFTER INSERT ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"owner_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_room_owner_id_into_oplog;", "CREATE TRIGGER compensation_update_main_room_owner_id_into_oplog\n AFTER UPDATE ON \"main\".\"room\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"owner_id\";\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.box', 1);", - " /* Triggers for table box */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_box_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.box', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_box_primarykey;", "CREATE TRIGGER update_ensure_main_box_primarykey\n BEFORE UPDATE ON \"main\".\"box\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_box_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_box_into_oplog;", "CREATE TRIGGER insert_main_box_into_oplog\n AFTER INSERT ON \"main\".\"box\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box', 'INSERT', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\", 'room_id', new.\"room_id\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_box_into_oplog;", "CREATE TRIGGER update_main_box_into_oplog\n AFTER UPDATE ON \"main\".\"box\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box', 'UPDATE', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\", 'room_id', new.\"room_id\"), json_object('id', old.\"id\", 'name', old.\"name\", 'room_id', old.\"room_id\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_box_into_oplog;", "CREATE TRIGGER delete_main_box_into_oplog\n AFTER DELETE ON \"main\".\"box\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box', 'DELETE', json_object('id', old.\"id\"), NULL, json_object('id', old.\"id\", 'name', old.\"name\", 'room_id', old.\"room_id\"), NULL);\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_box_room_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_box_room_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_box_room_id_into_oplog\n AFTER INSERT ON \"main\".\"box\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'room', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"room\" WHERE \"id\" = new.\"room_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_box_room_id_into_oplog;", "CREATE TRIGGER compensation_update_main_box_room_id_into_oplog\n AFTER UPDATE ON \"main\".\"box\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'room', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"room\" WHERE \"id\" = new.\"room_id\";\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.thing', 1);", - " /* Triggers for table thing */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_thing_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.thing', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_thing_primarykey;", "CREATE TRIGGER update_ensure_main_thing_primarykey\n BEFORE UPDATE ON \"main\".\"thing\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_thing_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_thing_into_oplog;", "CREATE TRIGGER insert_main_thing_into_oplog\n AFTER INSERT ON \"main\".\"thing\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.thing')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'thing', 'INSERT', json_object('id', new.\"id\"), json_object('box_id', new.\"box_id\", 'id', new.\"id\", 'name', new.\"name\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_thing_into_oplog;", "CREATE TRIGGER update_main_thing_into_oplog\n AFTER UPDATE ON \"main\".\"thing\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.thing')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'thing', 'UPDATE', json_object('id', new.\"id\"), json_object('box_id', new.\"box_id\", 'id', new.\"id\", 'name', new.\"name\"), json_object('box_id', old.\"box_id\", 'id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_thing_into_oplog;", "CREATE TRIGGER delete_main_thing_into_oplog\n AFTER DELETE ON \"main\".\"thing\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.thing')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'thing', 'DELETE', json_object('id', old.\"id\"), NULL, json_object('box_id', old.\"box_id\", 'id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_thing_box_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_thing_box_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_thing_box_id_into_oplog\n AFTER INSERT ON \"main\".\"thing\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'box', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"box\" WHERE \"id\" = new.\"box_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_thing_box_id_into_oplog;", "CREATE TRIGGER compensation_update_main_thing_box_id_into_oplog\n AFTER UPDATE ON \"main\".\"thing\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'box', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"box\" WHERE \"id\" = new.\"box_id\";\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.person', 1);", - " /* Triggers for table person */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_person_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.person', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_person_primarykey;", "CREATE TRIGGER update_ensure_main_person_primarykey\n BEFORE UPDATE ON \"main\".\"person\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_person_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_person_into_oplog;", "CREATE TRIGGER insert_main_person_into_oplog\n AFTER INSERT ON \"main\".\"person\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'person', 'INSERT', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_person_into_oplog;", "CREATE TRIGGER update_main_person_into_oplog\n AFTER UPDATE ON \"main\".\"person\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'person', 'UPDATE', json_object('id', new.\"id\"), json_object('id', new.\"id\", 'name', new.\"name\"), json_object('id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_person_into_oplog;", "CREATE TRIGGER delete_main_person_into_oplog\n AFTER DELETE ON \"main\".\"person\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'person', 'DELETE', json_object('id', old.\"id\"), NULL, json_object('id', old.\"id\", 'name', old.\"name\"), NULL);\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.box_user', 1);", - " /* Triggers for table box_user */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_box_user_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.box_user', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_box_user_primarykey;", "CREATE TRIGGER update_ensure_main_box_user_primarykey\n BEFORE UPDATE ON \"main\".\"box_user\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n WHEN old.\"person_id\" != new.\"person_id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column person_id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_box_user_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_box_user_into_oplog;", "CREATE TRIGGER insert_main_box_user_into_oplog\n AFTER INSERT ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box_user', 'INSERT', json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', new.\"id\", 'person_id', new.\"person_id\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_box_user_into_oplog;", "CREATE TRIGGER update_main_box_user_into_oplog\n AFTER UPDATE ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box_user', 'UPDATE', json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_box_user_into_oplog;", "CREATE TRIGGER delete_main_box_user_into_oplog\n AFTER DELETE ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'box_user', 'DELETE', json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL, json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL);\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_box_user_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_box_user_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_box_user_id_into_oplog\n AFTER INSERT ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'box', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"box\" WHERE \"id\" = new.\"id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_box_user_id_into_oplog;", "CREATE TRIGGER compensation_update_main_box_user_id_into_oplog\n AFTER UPDATE ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.box') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'box', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"box\" WHERE \"id\" = new.\"id\";\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_box_user_person_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_box_user_person_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_box_user_person_id_into_oplog\n AFTER INSERT ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"person_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_box_user_person_id_into_oplog;", "CREATE TRIGGER compensation_update_main_box_user_person_id_into_oplog\n AFTER UPDATE ON \"main\".\"box_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"person_id\";\nEND;", - "-- Toggles for turning the triggers on and off\nINSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.room_user', 1);", - " /* Triggers for table room_user */\n\n -- ensures primary key is immutable\n DROP TRIGGER IF EXISTS update_ensure_main_room_user_primarykey;", + "INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.room_user', 1);", + "DROP TRIGGER IF EXISTS update_ensure_main_room_user_primarykey;", "CREATE TRIGGER update_ensure_main_room_user_primarykey\n BEFORE UPDATE ON \"main\".\"room_user\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n WHEN old.\"person_id\" != new.\"person_id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column person_id as it belongs to the primary key')\n END;\nEND;", - "-- Triggers that add INSERT, UPDATE, DELETE operation to the _opslog table\nDROP TRIGGER IF EXISTS insert_main_room_user_into_oplog;", + "DROP TRIGGER IF EXISTS insert_main_room_user_into_oplog;", "CREATE TRIGGER insert_main_room_user_into_oplog\n AFTER INSERT ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room_user', 'INSERT', json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', new.\"id\", 'person_id', new.\"person_id\"), NULL, NULL);\nEND;", "DROP TRIGGER IF EXISTS update_main_room_user_into_oplog;", "CREATE TRIGGER update_main_room_user_into_oplog\n AFTER UPDATE ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room_user', 'UPDATE', json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', new.\"id\", 'person_id', new.\"person_id\"), json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL);\nEND;", "DROP TRIGGER IF EXISTS delete_main_room_user_into_oplog;", "CREATE TRIGGER delete_main_room_user_into_oplog\n AFTER DELETE ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room_user')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'room_user', 'DELETE', json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL, json_object('id', old.\"id\", 'person_id', old.\"person_id\"), NULL);\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_room_user_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_room_user_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_room_user_id_into_oplog\n AFTER INSERT ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'room', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"room\" WHERE \"id\" = new.\"id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_room_user_id_into_oplog;", "CREATE TRIGGER compensation_update_main_room_user_id_into_oplog\n AFTER UPDATE ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.room') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'room', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"room\" WHERE \"id\" = new.\"id\";\nEND;", - "-- Triggers for foreign key compensations\nDROP TRIGGER IF EXISTS compensation_insert_main_room_user_person_id_into_oplog;", + "DROP TRIGGER IF EXISTS compensation_insert_main_room_user_person_id_into_oplog;", "CREATE TRIGGER compensation_insert_main_room_user_person_id_into_oplog\n AFTER INSERT ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"person_id\";\nEND;", "DROP TRIGGER IF EXISTS compensation_update_main_room_user_person_id_into_oplog;", "CREATE TRIGGER compensation_update_main_room_user_person_id_into_oplog\n AFTER UPDATE ON \"main\".\"room_user\"\n WHEN 1 == (SELECT flag from _electric_trigger_settings WHERE tablename == 'main.person') AND\n 1 == (SELECT value from _electric_meta WHERE key == 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'person', 'COMPENSATION', json_object('id', \"id\"), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"person\" WHERE \"id\" = new.\"person_id\";\nEND;" ], - "version": "20240222220230_346" + "version": "20240404100213_420" } ] \ No newline at end of file diff --git a/src/generated/client/prismaClient.d.ts b/src/generated/client/prismaClient.d.ts index b4db527..7adac15 100644 --- a/src/generated/client/prismaClient.d.ts +++ b/src/generated/client/prismaClient.d.ts @@ -347,7 +347,7 @@ export namespace Prisma { /** * Prisma Client JS version: 4.8.1 - * Query Engine version: 23fdc5965b1e05fc54e5f26ed3de66776b93de64 + * Query Engine version: d6e67a83f971b175a593ccc12e15c4a757f93ffe */ export type PrismaVersion = { client: string @@ -971,8 +971,8 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } export type BoxCountOutputTypeSelect = { - box_user?: boolean | BoxCountOutputTypeCountBox_userArgs - thing?: boolean | BoxCountOutputTypeCountThingArgs + box_user?: boolean + thing?: boolean } export type BoxCountOutputTypeGetPayload = @@ -1005,22 +1005,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } - /** - * BoxCountOutputType without action - */ - export type BoxCountOutputTypeCountBox_userArgs = { - where?: Box_userWhereInput - } - - - /** - * BoxCountOutputType without action - */ - export type BoxCountOutputTypeCountThingArgs = { - where?: ThingWhereInput - } - - /** * Count Type HouseCountOutputType @@ -1032,7 +1016,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } export type HouseCountOutputTypeSelect = { - room?: boolean | HouseCountOutputTypeCountRoomArgs + room?: boolean } export type HouseCountOutputTypeGetPayload = @@ -1065,14 +1049,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } - /** - * HouseCountOutputType without action - */ - export type HouseCountOutputTypeCountRoomArgs = { - where?: RoomWhereInput - } - - /** * Count Type PersonCountOutputType @@ -1086,9 +1062,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } export type PersonCountOutputTypeSelect = { - box_user?: boolean | PersonCountOutputTypeCountBox_userArgs - room?: boolean | PersonCountOutputTypeCountRoomArgs - room_user?: boolean | PersonCountOutputTypeCountRoom_userArgs + box_user?: boolean + room?: boolean + room_user?: boolean } export type PersonCountOutputTypeGetPayload = @@ -1121,30 +1097,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } - /** - * PersonCountOutputType without action - */ - export type PersonCountOutputTypeCountBox_userArgs = { - where?: Box_userWhereInput - } - - - /** - * PersonCountOutputType without action - */ - export type PersonCountOutputTypeCountRoomArgs = { - where?: RoomWhereInput - } - - - /** - * PersonCountOutputType without action - */ - export type PersonCountOutputTypeCountRoom_userArgs = { - where?: Room_userWhereInput - } - - /** * Count Type RoomCountOutputType @@ -1157,8 +1109,8 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } export type RoomCountOutputTypeSelect = { - box?: boolean | RoomCountOutputTypeCountBoxArgs - room_user?: boolean | RoomCountOutputTypeCountRoom_userArgs + box?: boolean + room_user?: boolean } export type RoomCountOutputTypeGetPayload = @@ -1191,22 +1143,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } - /** - * RoomCountOutputType without action - */ - export type RoomCountOutputTypeCountBoxArgs = { - where?: BoxWhereInput - } - - - /** - * RoomCountOutputType without action - */ - export type RoomCountOutputTypeCountRoom_userArgs = { - where?: Room_userWhereInput - } - - /** * Models @@ -5421,7 +5357,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject owner_id?: boolean box?: boolean | Room$boxArgs house?: boolean | HouseArgs - person?: boolean | Room$personArgs + person?: boolean | PersonArgs room_user?: boolean | Room$room_userArgs _count?: boolean | RoomCountOutputTypeArgs } @@ -5430,7 +5366,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type RoomInclude = { box?: boolean | Room$boxArgs house?: boolean | HouseArgs - person?: boolean | Room$personArgs + person?: boolean | PersonArgs room_user?: boolean | Room$room_userArgs _count?: boolean | RoomCountOutputTypeArgs } @@ -5833,7 +5769,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject house(args?: Subset): Prisma__HouseClient | Null>; - person(args?: Subset): Prisma__PersonClient | Null>; + person(args?: Subset): Prisma__PersonClient | Null>; room_user(args?: Subset): PrismaPromise>| Null>; @@ -6263,24 +6199,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject } - /** - * Room.person - */ - export type Room$personArgs = { - /** - * Select specific fields to fetch from the Person - * - **/ - select?: PersonSelect | null - /** - * Choose, which related nodes to fetch as well. - * - **/ - include?: PersonInclude | null - where?: PersonWhereInput - } - - /** * Room.room_user */ @@ -8271,16 +8189,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject // Based on // https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275 - export const TransactionIsolationLevel: { - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' - }; - - export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - export const BoxScalarFieldEnum: { id: 'id', name: 'name', @@ -8314,6 +8222,14 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type PersonScalarFieldEnum = (typeof PersonScalarFieldEnum)[keyof typeof PersonScalarFieldEnum] + export const QueryMode: { + default: 'default', + insensitive: 'insensitive' + }; + + export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + export const RoomScalarFieldEnum: { id: 'id', name: 'name', @@ -8332,15 +8248,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type Room_userScalarFieldEnum = (typeof Room_userScalarFieldEnum)[keyof typeof Room_userScalarFieldEnum] - export const ThingScalarFieldEnum: { - id: 'id', - name: 'name', - box_id: 'box_id' - }; - - export type ThingScalarFieldEnum = (typeof ThingScalarFieldEnum)[keyof typeof ThingScalarFieldEnum] - - export const SortOrder: { asc: 'asc', desc: 'desc' @@ -8349,53 +8256,25 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - export const QueryMode: { - default: 'default', - insensitive: 'insensitive' + export const ThingScalarFieldEnum: { + id: 'id', + name: 'name', + box_id: 'box_id' }; - export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + export type ThingScalarFieldEnum = (typeof ThingScalarFieldEnum)[keyof typeof ThingScalarFieldEnum] - export const NullsOrder: { - first: 'first', - last: 'last' + export const TransactionIsolationLevel: { + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' }; - export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - /** - * Field references - */ - - - /** - * Reference to a field of type 'String' - */ - export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - - /** - * Reference to a field of type 'String[]' - */ - export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> - - - - /** - * Reference to a field of type 'Int' - */ - export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - + export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - /** - * Reference to a field of type 'Int[]' - */ - export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> - /** * Deep Input Types */ @@ -8405,9 +8284,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Box"> | string - name?: StringFilter<"Box"> | string - room_id?: UuidFilter<"Box"> | string + id?: UuidFilter | string + name?: StringFilter | string + room_id?: UuidFilter | string room?: XOR box_user?: Box_userListRelationFilter thing?: ThingListRelationFilter @@ -8422,17 +8301,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject thing?: ThingOrderByRelationAggregateInput } - export type BoxWhereUniqueInput = Prisma.AtLeast<{ + export type BoxWhereUniqueInput = { id?: string - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - name?: StringFilter<"Box"> | string - room_id?: UuidFilter<"Box"> | string - room?: XOR - box_user?: Box_userListRelationFilter - thing?: ThingListRelationFilter - }, "id"> + } export type BoxOrderByWithAggregationInput = { id?: SortOrder @@ -8447,17 +8318,17 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Box"> | string - name?: StringWithAggregatesFilter<"Box"> | string - room_id?: UuidWithAggregatesFilter<"Box"> | string + id?: UuidWithAggregatesFilter | string + name?: StringWithAggregatesFilter | string + room_id?: UuidWithAggregatesFilter | string } export type Box_userWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Box_user"> | string - person_id?: UuidFilter<"Box_user"> | string + id?: UuidFilter | string + person_id?: UuidFilter | string box?: XOR person?: XOR } @@ -8469,16 +8340,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject person?: PersonOrderByWithRelationInput } - export type Box_userWhereUniqueInput = Prisma.AtLeast<{ + export type Box_userWhereUniqueInput = { id_person_id?: Box_userIdPerson_idCompoundUniqueInput - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - id?: UuidFilter<"Box_user"> | string - person_id?: UuidFilter<"Box_user"> | string - box?: XOR - person?: XOR - }, "id_person_id"> + } export type Box_userOrderByWithAggregationInput = { id?: SortOrder @@ -8492,16 +8356,16 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Box_user"> | string - person_id?: UuidWithAggregatesFilter<"Box_user"> | string + id?: UuidWithAggregatesFilter | string + person_id?: UuidWithAggregatesFilter | string } export type HouseWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"House"> | string - name?: StringFilter<"House"> | string + id?: UuidFilter | string + name?: StringFilter | string room?: RoomListRelationFilter } @@ -8511,14 +8375,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject room?: RoomOrderByRelationAggregateInput } - export type HouseWhereUniqueInput = Prisma.AtLeast<{ + export type HouseWhereUniqueInput = { id?: string - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - name?: StringFilter<"House"> | string - room?: RoomListRelationFilter - }, "id"> + } export type HouseOrderByWithAggregationInput = { id?: SortOrder @@ -8532,16 +8391,16 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"House"> | string - name?: StringWithAggregatesFilter<"House"> | string + id?: UuidWithAggregatesFilter | string + name?: StringWithAggregatesFilter | string } export type PersonWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Person"> | string - name?: StringFilter<"Person"> | string + id?: UuidFilter | string + name?: StringFilter | string box_user?: Box_userListRelationFilter room?: RoomListRelationFilter room_user?: Room_userListRelationFilter @@ -8555,16 +8414,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject room_user?: Room_userOrderByRelationAggregateInput } - export type PersonWhereUniqueInput = Prisma.AtLeast<{ + export type PersonWhereUniqueInput = { id?: string - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - name?: StringFilter<"Person"> | string - box_user?: Box_userListRelationFilter - room?: RoomListRelationFilter - room_user?: Room_userListRelationFilter - }, "id"> + } export type PersonOrderByWithAggregationInput = { id?: SortOrder @@ -8578,21 +8430,21 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Person"> | string - name?: StringWithAggregatesFilter<"Person"> | string + id?: UuidWithAggregatesFilter | string + name?: StringWithAggregatesFilter | string } export type RoomWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Room"> | string - name?: StringFilter<"Room"> | string - house_id?: UuidFilter<"Room"> | string - owner_id?: UuidNullableFilter<"Room"> | string | null + id?: UuidFilter | string + name?: StringFilter | string + house_id?: UuidFilter | string + owner_id?: UuidNullableFilter | string | null box?: BoxListRelationFilter house?: XOR - person?: XOR | null + person?: XOR | null room_user?: Room_userListRelationFilter } @@ -8600,32 +8452,22 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject id?: SortOrder name?: SortOrder house_id?: SortOrder - owner_id?: SortOrderInput | SortOrder + owner_id?: SortOrder box?: BoxOrderByRelationAggregateInput house?: HouseOrderByWithRelationInput person?: PersonOrderByWithRelationInput room_user?: Room_userOrderByRelationAggregateInput } - export type RoomWhereUniqueInput = Prisma.AtLeast<{ + export type RoomWhereUniqueInput = { id?: string - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - name?: StringFilter<"Room"> | string - house_id?: UuidFilter<"Room"> | string - owner_id?: UuidNullableFilter<"Room"> | string | null - box?: BoxListRelationFilter - house?: XOR - person?: XOR | null - room_user?: Room_userListRelationFilter - }, "id"> + } export type RoomOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder house_id?: SortOrder - owner_id?: SortOrderInput | SortOrder + owner_id?: SortOrder _count?: RoomCountOrderByAggregateInput _max?: RoomMaxOrderByAggregateInput _min?: RoomMinOrderByAggregateInput @@ -8635,18 +8477,18 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Room"> | string - name?: StringWithAggregatesFilter<"Room"> | string - house_id?: UuidWithAggregatesFilter<"Room"> | string - owner_id?: UuidNullableWithAggregatesFilter<"Room"> | string | null + id?: UuidWithAggregatesFilter | string + name?: StringWithAggregatesFilter | string + house_id?: UuidWithAggregatesFilter | string + owner_id?: UuidNullableWithAggregatesFilter | string | null } export type Room_userWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Room_user"> | string - person_id?: UuidFilter<"Room_user"> | string + id?: UuidFilter | string + person_id?: UuidFilter | string room?: XOR person?: XOR } @@ -8658,16 +8500,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject person?: PersonOrderByWithRelationInput } - export type Room_userWhereUniqueInput = Prisma.AtLeast<{ + export type Room_userWhereUniqueInput = { id_person_id?: Room_userIdPerson_idCompoundUniqueInput - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - id?: UuidFilter<"Room_user"> | string - person_id?: UuidFilter<"Room_user"> | string - room?: XOR - person?: XOR - }, "id_person_id"> + } export type Room_userOrderByWithAggregationInput = { id?: SortOrder @@ -8681,17 +8516,17 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Room_user"> | string - person_id?: UuidWithAggregatesFilter<"Room_user"> | string + id?: UuidWithAggregatesFilter | string + person_id?: UuidWithAggregatesFilter | string } export type ThingWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Thing"> | string - name?: StringFilter<"Thing"> | string - box_id?: UuidFilter<"Thing"> | string + id?: UuidFilter | string + name?: StringFilter | string + box_id?: UuidFilter | string box?: XOR } @@ -8702,15 +8537,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject box?: BoxOrderByWithRelationInput } - export type ThingWhereUniqueInput = Prisma.AtLeast<{ + export type ThingWhereUniqueInput = { id?: string - AND?: Enumerable - OR?: Enumerable - NOT?: Enumerable - name?: StringFilter<"Thing"> | string - box_id?: UuidFilter<"Thing"> | string - box?: XOR - }, "id"> + } export type ThingOrderByWithAggregationInput = { id?: SortOrder @@ -8725,9 +8554,9 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidWithAggregatesFilter<"Thing"> | string - name?: StringWithAggregatesFilter<"Thing"> | string - box_id?: UuidWithAggregatesFilter<"Thing"> | string + id?: UuidWithAggregatesFilter | string + name?: StringWithAggregatesFilter | string + box_id?: UuidWithAggregatesFilter | string } export type BoxCreateInput = { @@ -9029,31 +8858,31 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject box_id?: StringFieldUpdateOperationsInput | string } - export type UuidFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> + export type UuidFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string mode?: QueryMode - not?: NestedUuidFilter<$PrismaModel> | string - } - - export type StringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> + not?: NestedUuidFilter | string + } + + export type StringFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + contains?: string + startsWith?: string + endsWith?: string mode?: QueryMode - not?: NestedStringFilter<$PrismaModel> | string + not?: NestedStringFilter | string } export type RoomRelationFilter = { @@ -9099,37 +8928,37 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject room_id?: SortOrder } - export type UuidWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> + export type UuidWithAggregatesFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string mode?: QueryMode - not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> + not?: NestedUuidWithAggregatesFilter | string + _count?: NestedIntFilter + _min?: NestedStringFilter + _max?: NestedStringFilter + } + + export type StringWithAggregatesFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + contains?: string + startsWith?: string + endsWith?: string mode?: QueryMode - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> + not?: NestedStringWithAggregatesFilter | string + _count?: NestedIntFilter + _min?: NestedStringFilter + _max?: NestedStringFilter } export type BoxRelationFilter = { @@ -9212,16 +9041,16 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject name?: SortOrder } - export type UuidNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> + export type UuidNullableFilter = { + equals?: string | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: string + lte?: string + gt?: string + gte?: string mode?: QueryMode - not?: NestedUuidNullableFilter<$PrismaModel> | string | null + not?: NestedUuidNullableFilter | string | null } export type BoxListRelationFilter = { @@ -9235,16 +9064,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject isNot?: HouseWhereInput } - export type PersonNullableRelationFilter = { - is?: PersonWhereInput | null - isNot?: PersonWhereInput | null - } - - export type SortOrderInput = { - sort: SortOrder - nulls?: NullsOrder - } - export type BoxOrderByRelationAggregateInput = { _count?: SortOrder } @@ -9270,19 +9089,19 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject owner_id?: SortOrder } - export type UuidNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> + export type UuidNullableWithAggregatesFilter = { + equals?: string | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: string + lte?: string + gt?: string + gte?: string mode?: QueryMode - not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> + not?: NestedUuidNullableWithAggregatesFilter | string | null + _count?: NestedIntNullableFilter + _min?: NestedStringNullableFilter + _max?: NestedStringNullableFilter } export type Room_userIdPerson_idCompoundUniqueInput = { @@ -9366,7 +9185,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: RoomCreateOrConnectWithoutBoxInput upsert?: RoomUpsertWithoutBoxInput connect?: RoomWhereUniqueInput - update?: XOR, RoomUncheckedUpdateWithoutBoxInput> + update?: XOR } export type Box_userUpdateManyWithoutBoxNestedInput = { @@ -9442,7 +9261,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: BoxCreateOrConnectWithoutBox_userInput upsert?: BoxUpsertWithoutBox_userInput connect?: BoxWhereUniqueInput - update?: XOR, BoxUncheckedUpdateWithoutBox_userInput> + update?: XOR } export type PersonUpdateOneRequiredWithoutBox_userNestedInput = { @@ -9450,7 +9269,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: PersonCreateOrConnectWithoutBox_userInput upsert?: PersonUpsertWithoutBox_userInput connect?: PersonWhereUniqueInput - update?: XOR, PersonUncheckedUpdateWithoutBox_userInput> + update?: XOR } export type RoomCreateNestedManyWithoutHouseInput = { @@ -9680,17 +9499,17 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: HouseCreateOrConnectWithoutRoomInput upsert?: HouseUpsertWithoutRoomInput connect?: HouseWhereUniqueInput - update?: XOR, HouseUncheckedUpdateWithoutRoomInput> + update?: XOR } export type PersonUpdateOneWithoutRoomNestedInput = { create?: XOR connectOrCreate?: PersonCreateOrConnectWithoutRoomInput upsert?: PersonUpsertWithoutRoomInput - disconnect?: PersonWhereInput | boolean - delete?: PersonWhereInput | boolean + disconnect?: boolean + delete?: boolean connect?: PersonWhereUniqueInput - update?: XOR, PersonUncheckedUpdateWithoutRoomInput> + update?: XOR } export type Room_userUpdateManyWithoutRoomNestedInput = { @@ -9756,7 +9575,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: RoomCreateOrConnectWithoutRoom_userInput upsert?: RoomUpsertWithoutRoom_userInput connect?: RoomWhereUniqueInput - update?: XOR, RoomUncheckedUpdateWithoutRoom_userInput> + update?: XOR } export type PersonUpdateOneRequiredWithoutRoom_userNestedInput = { @@ -9764,7 +9583,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: PersonCreateOrConnectWithoutRoom_userInput upsert?: PersonUpsertWithoutRoom_userInput connect?: PersonWhereUniqueInput - update?: XOR, PersonUncheckedUpdateWithoutRoom_userInput> + update?: XOR } export type BoxCreateNestedOneWithoutThingInput = { @@ -9778,124 +9597,124 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject connectOrCreate?: BoxCreateOrConnectWithoutThingInput upsert?: BoxUpsertWithoutThingInput connect?: BoxWhereUniqueInput - update?: XOR, BoxUncheckedUpdateWithoutThingInput> - } - - export type NestedUuidFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - not?: NestedUuidFilter<$PrismaModel> | string - } - - export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: Enumerable | ListIntFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListIntFieldRefInput<$PrismaModel> - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type NestedUuidNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - not?: NestedUuidNullableFilter<$PrismaModel> | string | null - } - - export type NestedUuidNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListIntFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListIntFieldRefInput<$PrismaModel> | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - notIn?: Enumerable | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null + update?: XOR + } + + export type NestedUuidFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + not?: NestedUuidFilter | string + } + + export type NestedStringFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + contains?: string + startsWith?: string + endsWith?: string + not?: NestedStringFilter | string + } + + export type NestedUuidWithAggregatesFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + not?: NestedUuidWithAggregatesFilter | string + _count?: NestedIntFilter + _min?: NestedStringFilter + _max?: NestedStringFilter + } + + export type NestedIntFilter = { + equals?: number + in?: Enumerable + notIn?: Enumerable + lt?: number + lte?: number + gt?: number + gte?: number + not?: NestedIntFilter | number + } + + export type NestedStringWithAggregatesFilter = { + equals?: string + in?: Enumerable + notIn?: Enumerable + lt?: string + lte?: string + gt?: string + gte?: string + contains?: string + startsWith?: string + endsWith?: string + not?: NestedStringWithAggregatesFilter | string + _count?: NestedIntFilter + _min?: NestedStringFilter + _max?: NestedStringFilter + } + + export type NestedUuidNullableFilter = { + equals?: string | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: string + lte?: string + gt?: string + gte?: string + not?: NestedUuidNullableFilter | string | null + } + + export type NestedUuidNullableWithAggregatesFilter = { + equals?: string | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: string + lte?: string + gt?: string + gte?: string + not?: NestedUuidNullableWithAggregatesFilter | string | null + _count?: NestedIntNullableFilter + _min?: NestedStringNullableFilter + _max?: NestedStringNullableFilter + } + + export type NestedIntNullableFilter = { + equals?: number | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: number + lte?: number + gt?: number + gte?: number + not?: NestedIntNullableFilter | number | null + } + + export type NestedStringNullableFilter = { + equals?: string | null + in?: Enumerable | null + notIn?: Enumerable | null + lt?: string + lte?: string + gt?: string + gte?: string + contains?: string + startsWith?: string + endsWith?: string + not?: NestedStringNullableFilter | string | null } export type RoomCreateWithoutBoxInput = { @@ -9960,12 +9779,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type RoomUpsertWithoutBoxInput = { update: XOR create: XOR - where?: RoomWhereInput - } - - export type RoomUpdateToOneWithWhereWithoutBoxInput = { - where?: RoomWhereInput - data: XOR } export type RoomUpdateWithoutBoxInput = { @@ -9997,15 +9810,15 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type Box_userUpdateManyWithWhereWithoutBoxInput = { where: Box_userScalarWhereInput - data: XOR + data: XOR } export type Box_userScalarWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Box_user"> | string - person_id?: UuidFilter<"Box_user"> | string + id?: UuidFilter | string + person_id?: UuidFilter | string } export type ThingUpsertWithWhereUniqueWithoutBoxInput = { @@ -10021,16 +9834,16 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type ThingUpdateManyWithWhereWithoutBoxInput = { where: ThingScalarWhereInput - data: XOR + data: XOR } export type ThingScalarWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Thing"> | string - name?: StringFilter<"Thing"> | string - box_id?: UuidFilter<"Thing"> | string + id?: UuidFilter | string + name?: StringFilter | string + box_id?: UuidFilter | string } export type BoxCreateWithoutBox_userInput = { @@ -10074,12 +9887,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type BoxUpsertWithoutBox_userInput = { update: XOR create: XOR - where?: BoxWhereInput - } - - export type BoxUpdateToOneWithWhereWithoutBox_userInput = { - where?: BoxWhereInput - data: XOR } export type BoxUpdateWithoutBox_userInput = { @@ -10099,12 +9906,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type PersonUpsertWithoutBox_userInput = { update: XOR create: XOR - where?: PersonWhereInput - } - - export type PersonUpdateToOneWithWhereWithoutBox_userInput = { - where?: PersonWhereInput - data: XOR } export type PersonUpdateWithoutBox_userInput = { @@ -10160,17 +9961,17 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type RoomUpdateManyWithWhereWithoutHouseInput = { where: RoomScalarWhereInput - data: XOR + data: XOR } export type RoomScalarWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Room"> | string - name?: StringFilter<"Room"> | string - house_id?: UuidFilter<"Room"> | string - owner_id?: UuidNullableFilter<"Room"> | string | null + id?: UuidFilter | string + name?: StringFilter | string + house_id?: UuidFilter | string + owner_id?: UuidNullableFilter | string | null } export type Box_userCreateWithoutPersonInput = { @@ -10248,7 +10049,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type Box_userUpdateManyWithWhereWithoutPersonInput = { where: Box_userScalarWhereInput - data: XOR + data: XOR } export type RoomUpsertWithWhereUniqueWithoutPersonInput = { @@ -10264,7 +10065,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type RoomUpdateManyWithWhereWithoutPersonInput = { where: RoomScalarWhereInput - data: XOR + data: XOR } export type Room_userUpsertWithWhereUniqueWithoutPersonInput = { @@ -10280,15 +10081,15 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type Room_userUpdateManyWithWhereWithoutPersonInput = { where: Room_userScalarWhereInput - data: XOR + data: XOR } export type Room_userScalarWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Room_user"> | string - person_id?: UuidFilter<"Room_user"> | string + id?: UuidFilter | string + person_id?: UuidFilter | string } export type BoxCreateWithoutRoomInput = { @@ -10380,27 +10181,21 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type BoxUpdateManyWithWhereWithoutRoomInput = { where: BoxScalarWhereInput - data: XOR + data: XOR } export type BoxScalarWhereInput = { AND?: Enumerable OR?: Enumerable NOT?: Enumerable - id?: UuidFilter<"Box"> | string - name?: StringFilter<"Box"> | string - room_id?: UuidFilter<"Box"> | string + id?: UuidFilter | string + name?: StringFilter | string + room_id?: UuidFilter | string } export type HouseUpsertWithoutRoomInput = { update: XOR create: XOR - where?: HouseWhereInput - } - - export type HouseUpdateToOneWithWhereWithoutRoomInput = { - where?: HouseWhereInput - data: XOR } export type HouseUpdateWithoutRoomInput = { @@ -10416,12 +10211,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type PersonUpsertWithoutRoomInput = { update: XOR create: XOR - where?: PersonWhereInput - } - - export type PersonUpdateToOneWithWhereWithoutRoomInput = { - where?: PersonWhereInput - data: XOR } export type PersonUpdateWithoutRoomInput = { @@ -10451,7 +10240,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type Room_userUpdateManyWithWhereWithoutRoomInput = { where: Room_userScalarWhereInput - data: XOR + data: XOR } export type RoomCreateWithoutRoom_userInput = { @@ -10497,12 +10286,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type RoomUpsertWithoutRoom_userInput = { update: XOR create: XOR - where?: RoomWhereInput - } - - export type RoomUpdateToOneWithWhereWithoutRoom_userInput = { - where?: RoomWhereInput - data: XOR } export type RoomUpdateWithoutRoom_userInput = { @@ -10524,12 +10307,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type PersonUpsertWithoutRoom_userInput = { update: XOR create: XOR - where?: PersonWhereInput - } - - export type PersonUpdateToOneWithWhereWithoutRoom_userInput = { - where?: PersonWhereInput - data: XOR } export type PersonUpdateWithoutRoom_userInput = { @@ -10568,12 +10345,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject export type BoxUpsertWithoutThingInput = { update: XOR create: XOR - where?: BoxWhereInput - } - - export type BoxUpdateToOneWithWhereWithoutThingInput = { - where?: BoxWhereInput - data: XOR } export type BoxUpdateWithoutThingInput = { @@ -10607,7 +10378,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject person_id?: StringFieldUpdateOperationsInput | string } - export type Box_userUncheckedUpdateManyWithoutBoxInput = { + export type Box_userUncheckedUpdateManyWithoutBox_userInput = { person_id?: StringFieldUpdateOperationsInput | string } @@ -10621,7 +10392,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject name?: StringFieldUpdateOperationsInput | string } - export type ThingUncheckedUpdateManyWithoutBoxInput = { + export type ThingUncheckedUpdateManyWithoutThingInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string } @@ -10648,7 +10419,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject room_user?: Room_userUncheckedUpdateManyWithoutRoomNestedInput } - export type RoomUncheckedUpdateManyWithoutHouseInput = { + export type RoomUncheckedUpdateManyWithoutRoomInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string owner_id?: NullableStringFieldUpdateOperationsInput | string | null @@ -10676,10 +10447,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject id?: StringFieldUpdateOperationsInput | string } - export type Box_userUncheckedUpdateManyWithoutPersonInput = { - id?: StringFieldUpdateOperationsInput | string - } - export type RoomUpdateWithoutPersonInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string @@ -10696,12 +10463,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject room_user?: Room_userUncheckedUpdateManyWithoutRoomNestedInput } - export type RoomUncheckedUpdateManyWithoutPersonInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - house_id?: StringFieldUpdateOperationsInput | string - } - export type Room_userUpdateWithoutPersonInput = { room?: RoomUpdateOneRequiredWithoutRoom_userNestedInput } @@ -10710,7 +10471,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject id?: StringFieldUpdateOperationsInput | string } - export type Room_userUncheckedUpdateManyWithoutPersonInput = { + export type Room_userUncheckedUpdateManyWithoutRoom_userInput = { id?: StringFieldUpdateOperationsInput | string } @@ -10737,7 +10498,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject thing?: ThingUncheckedUpdateManyWithoutBoxNestedInput } - export type BoxUncheckedUpdateManyWithoutRoomInput = { + export type BoxUncheckedUpdateManyWithoutBoxInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string } @@ -10750,10 +10511,6 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject person_id?: StringFieldUpdateOperationsInput | string } - export type Room_userUncheckedUpdateManyWithoutRoomInput = { - person_id?: StringFieldUpdateOperationsInput | string - } - /** diff --git a/yarn.lock b/yarn.lock index d510ed2..2f8141b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -613,45 +613,16 @@ debug "4.3.4" strip-ansi "6.0.1" -"@prisma/debug@5.9.0": - version "5.9.0" - resolved "https://registry.yarnpkg.com/@prisma/debug/-/debug-5.9.0.tgz#aed189652592c9831abeda33b3800eab780d5406" - integrity sha512-3Uhj5YSPqaIfzJQ6JQzCNBXeBTy0x803fGIoo2tvP/KIEd+o4o49JxCQtKtP8aeef5iNh5Nn9Z25wDrdLjS80A== - "@prisma/engines-version@4.8.0-61.d6e67a83f971b175a593ccc12e15c4a757f93ffe": version "4.8.0-61.d6e67a83f971b175a593ccc12e15c4a757f93ffe" resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-4.8.0-61.d6e67a83f971b175a593ccc12e15c4a757f93ffe.tgz#30401aba1029e7d32e3cb717e705a7c92ccc211e" integrity sha512-MHSOSexomRMom8QN4t7bu87wPPD+pa+hW9+71JnVcF3DqyyO/ycCLhRL1we3EojRpZxKvuyGho2REQsMCvxcJw== -"@prisma/engines-version@5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64": - version "5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64" - resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64.tgz#54d2164f28d23e09d41cf9eb0bddbbe7f3aaa660" - integrity sha512-HFl7275yF0FWbdcNvcSRbbu9JCBSLMcurYwvWc8WGDnpu7APxQo2ONtZrUggU3WxLxUJ2uBX+0GOFIcJeVeOOQ== - "@prisma/engines@4.8.1": version "4.8.1" resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-4.8.1.tgz#8428f7dcd7912c6073024511376595017630dc85" integrity sha512-93tctjNXcIS+i/e552IO6tqw17sX8liivv8WX9lDMCpEEe3ci+nT9F+1oHtAafqruXLepKF80i/D20Mm+ESlOw== -"@prisma/engines@5.9.0": - version "5.9.0" - resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-5.9.0.tgz#92dda0eda060c6827a09b15d614327c62e923640" - integrity sha512-BH1fpXbMH09TwfZH5FVMJwRp6afEhKzqwebbCLdaEkJDuhxA//iwbILLqGFtGTgZbdBNUOThIK+UC3++5kWMTg== - dependencies: - "@prisma/debug" "5.9.0" - "@prisma/engines-version" "5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64" - "@prisma/fetch-engine" "5.9.0" - "@prisma/get-platform" "5.9.0" - -"@prisma/fetch-engine@5.9.0": - version "5.9.0" - resolved "https://registry.yarnpkg.com/@prisma/fetch-engine/-/fetch-engine-5.9.0.tgz#b79cdd90f3e53895bb9b1eee7a5d655d1a13487e" - integrity sha512-NL8Vm8Vl2d6NOSkkPGN5TTTz4s6cyCleXOzqtOFWzfKFJ4wtN2Shu7llOT+ykf6nDzh1lCN2JHUt1S6FGFZGig== - dependencies: - "@prisma/debug" "5.9.0" - "@prisma/engines-version" "5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64" - "@prisma/get-platform" "5.9.0" - "@prisma/generator-helper@^4.11.0": version "4.16.2" resolved "https://registry.yarnpkg.com/@prisma/generator-helper/-/generator-helper-4.16.2.tgz#a50b0d595d0a5350619e530d410ebaa815a89a25" @@ -662,13 +633,6 @@ cross-spawn "7.0.3" kleur "4.1.5" -"@prisma/get-platform@5.9.0": - version "5.9.0" - resolved "https://registry.yarnpkg.com/@prisma/get-platform/-/get-platform-5.9.0.tgz#87cc696bebdb84ca9d8b8c9228771773bc7c2dd7" - integrity sha512-8CatX+E6eZxcOjJZe5hF8EXxdb5GsQTA/u7pdmUJSxGLacW9K3r5vDdgV8s22PubObQQ6979/rkCMItbCrG4Yg== - dependencies: - "@prisma/debug" "5.9.0" - "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" @@ -1550,10 +1514,10 @@ eastasianwidth@^0.2.0: resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -electric-sql@^0.9.3: - version "0.9.4" - resolved "https://registry.yarnpkg.com/electric-sql/-/electric-sql-0.9.4.tgz#fa94c87d81bc06875b752257b325e475f234ccd2" - integrity sha512-EWk6+e9Tdl+TFfazPSis2/GQ09cmCCocf3LD1t4Z38tOiVfvVSaF9TJY/7nENLtb4jQX5hxvDkc0kXW3erQnTw== +electric-sql@^0.9.6: + version "0.9.6" + resolved "https://registry.yarnpkg.com/electric-sql/-/electric-sql-0.9.6.tgz#115b5fc2aa1a3fca290dce5293fe8cc4488dbe37" + integrity sha512-0W46ZBKO9+BJ+/VVTGfWumdSXYzPUVvZUTTFbvfDG3AMXH85B17PNpwudSgQRfT5FwUE6k8C+d0gR5Xuo29mmA== dependencies: "@electric-sql/prisma-generator" "1.1.3" "@prisma/client" "4.8.1" @@ -1566,7 +1530,6 @@ electric-sql@^0.9.3: dotenv-flow "^4.1.0" events "^3.3.0" exponential-backoff "^3.1.0" - fastestsmallesttextencoderdecoder "^1.0.22" frame-stream "^3.0.1" get-port "^7.0.0" jose "^4.14.4" @@ -1583,16 +1546,14 @@ electric-sql@^0.9.3: object.hasown "^1.1.2" ohash "^1.1.2" prisma "4.8.1" - prisma-v5 "npm:prisma@5.9.0" prompts "^2.4.2" protobufjs "^7.1.1" - react-native-uuid "^2.0.1" squel "^5.13.0" tcp-port-used "^1.0.2" + text-encoder-lite "^2.0.0" ts-dedent "^2.2.0" - uuid "^9.0.0" ws "^8.8.1" - zod "^3.20.2" + zod "3.21.1" electron-to-chromium@^1.4.668: version "1.4.680" @@ -1909,11 +1870,6 @@ fast-levenshtein@^2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== -fastestsmallesttextencoderdecoder@^1.0.22: - version "1.0.22" - resolved "https://registry.yarnpkg.com/fastestsmallesttextencoderdecoder/-/fastestsmallesttextencoderdecoder-1.0.22.tgz#59b47e7b965f45258629cc6c127bf783281c5e93" - integrity sha512-Pb8d48e+oIuY4MaM64Cd7OW1gt4nxCHs7/ddPPZ/Ic3sg8yVGM7O9wDvZ7us6ScaUupzM+pfBolwtYhN1IxBIw== - fastq@^1.6.0: version "1.17.1" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" @@ -3146,13 +3102,6 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -"prisma-v5@npm:prisma@5.9.0": - version "5.9.0" - resolved "https://registry.yarnpkg.com/prisma/-/prisma-5.9.0.tgz#182b4b5ad418cce9e46874668df5452cedee059d" - integrity sha512-0UcOofjNuAnd227JMaPqZvP01dsUXw9EXB9iC8fyoZtfv7zkQ0ozxyjY1g+vcjFPOnNLICMnLHx+lM5BJZYqOQ== - dependencies: - "@prisma/engines" "5.9.0" - prisma@4.8.1: version "4.8.1" resolved "https://registry.yarnpkg.com/prisma/-/prisma-4.8.1.tgz#ef93cd908809b7d02e9f4bead5eea7733ba50c68" @@ -3227,11 +3176,6 @@ react-dom@^18.2.0: loose-envify "^1.1.0" scheduler "^0.23.0" -react-native-uuid@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz#ed4e2dfb1683eddb66967eb5dca140dfe1abddb9" - integrity sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g== - react-refresh@^0.14.0: version "0.14.0" resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.0.tgz#4e02825378a5f227079554d4284889354e5f553e" @@ -3661,6 +3605,11 @@ tcp-port-used@^1.0.2: debug "4.3.1" is2 "^2.0.6" +text-encoder-lite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/text-encoder-lite/-/text-encoder-lite-2.0.0.tgz#3c865dd6f3720b279c9e370f8f36c831d2cee175" + integrity sha512-bo08ND8LlBwPeU23EluRUcO3p2Rsb/eN5EIfOVqfRmblNDEVKK5IzM9Qfidvo+odT0hhV8mpXQcP/M5MMzABXw== + text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -3850,11 +3799,6 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -uuid@^9.0.0: - version "9.0.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" - integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== - vite@^5.1.4: version "5.1.4" resolved "https://registry.yarnpkg.com/vite/-/vite-5.1.4.tgz#14e9d3e7a6e488f36284ef13cebe149f060bcfb6" @@ -3994,7 +3938,12 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -zod@^3.20.2, zod@^3.21.1: +zod@3.21.1: + version "3.21.1" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.1.tgz#ac5bb7cf68876281ebd02f95ac4bb9a080370282" + integrity sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA== + +zod@^3.21.1: version "3.22.4" resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==