diff --git a/desktop/src/main/obsHelpers.test.ts b/desktop/src/main/obsHelpers.test.ts index d2658aa15..f5f27fbde 100644 --- a/desktop/src/main/obsHelpers.test.ts +++ b/desktop/src/main/obsHelpers.test.ts @@ -25,6 +25,8 @@ beforeAll(() => { rundowns: [], continuityItems: [], version: 1, + ytBroadcastID: null, + ytStreamID: null, }); }); @@ -42,6 +44,7 @@ describe("addOrReplaceMediaAsScene", () => { order: 1, durationSeconds: 15, showId: 1, + ytBroadcastID: null, }, ], durationSeconds: 15, diff --git a/desktop/src/main/ontimeHelpers.test.ts b/desktop/src/main/ontimeHelpers.test.ts index b3cf41d5e..48556f8f8 100644 --- a/desktop/src/main/ontimeHelpers.test.ts +++ b/desktop/src/main/ontimeHelpers.test.ts @@ -9,6 +9,8 @@ describe("ontimeHelpers", () => { name: "Test", start: new Date("2023-10-06T19:00:00+01:00"), version: 0, + ytBroadcastID: null, + ytStreamID: null, rundowns: [ { id: 1, @@ -16,6 +18,7 @@ describe("ontimeHelpers", () => { showId: 1, order: 1, assets: [], + ytBroadcastID: null, items: [ { id: 1, diff --git a/jobrunner/src/jobrunner.integration.test.ts b/jobrunner/src/jobrunner.integration.test.ts index 248905615..6260897c4 100644 --- a/jobrunner/src/jobrunner.integration.test.ts +++ b/jobrunner/src/jobrunner.integration.test.ts @@ -5,9 +5,7 @@ import { integrate } from "@bowser/testing"; integrate("doOneJob", () => { beforeEach(async () => { - await db.$executeRawUnsafe( - `TRUNCATE TABLE "base_jobs" RESTART IDENTITY CASCADE`, - ); + await db.$executeRawUnsafe(`DELETE FROM "base_jobs"`); }); it("works", async () => { await db.dummyTestJob.create({ diff --git a/jobrunner/src/jobs/ProcessMediaJob.integration.test.ts b/jobrunner/src/jobs/ProcessMediaJob.integration.test.ts index d01bd760e..946799fc4 100644 --- a/jobrunner/src/jobs/ProcessMediaJob.integration.test.ts +++ b/jobrunner/src/jobs/ProcessMediaJob.integration.test.ts @@ -48,12 +48,8 @@ async function uploadTestFileToTus() { integrate("ProcessMediaJob", () => { beforeEach(async () => { - await db.$executeRawUnsafe( - `TRUNCATE TABLE "base_jobs" RESTART IDENTITY CASCADE`, - ); - await db.$executeRawUnsafe( - `TRUNCATE TABLE "shows" RESTART IDENTITY CASCADE`, - ); + await db.$executeRawUnsafe(`DELETE FROM "base_jobs"`); + await db.$executeRawUnsafe(`DELETE FROM "shows"`); }); it("works", async () => { const testMediaID = await uploadTestFileToTus(); diff --git a/server/app/api/__tests__/__snapshots__/shows.integration.test.ts.snap b/server/app/api/__tests__/__snapshots__/shows.integration.test.ts.snap index aacfaf4ee..d79864c24 100644 --- a/server/app/api/__tests__/__snapshots__/shows.integration.test.ts.snap +++ b/server/app/api/__tests__/__snapshots__/shows.integration.test.ts.snap @@ -6,5 +6,7 @@ exports[`shows listUpcoming returns upcoming shows 1`] = ` "name": "Test Show", "start": Any, "version": 0, + "ytBroadcastID": null, + "ytStreamID": null, } `; diff --git a/server/app/api/__tests__/shows.integration.test.ts b/server/app/api/__tests__/shows.integration.test.ts index 56e564c28..cdf87ed18 100644 --- a/server/app/api/__tests__/shows.integration.test.ts +++ b/server/app/api/__tests__/shows.integration.test.ts @@ -7,7 +7,7 @@ const api = appRouter.createCaller({}); integrate("shows", () => { beforeEach(async () => { - await db.$executeRawUnsafe("TRUNCATE TABLE shows CASCADE"); + await db.$executeRawUnsafe("DELETE FROM shows"); }); describe("listUpcoming", () => { it("returns nothing with no shows", async () => { diff --git a/server/app/shows/[show_id]/actions.integration.test.ts b/server/app/shows/[show_id]/actions.integration.test.ts index acda506fb..5c6348b89 100644 --- a/server/app/shows/[show_id]/actions.integration.test.ts +++ b/server/app/shows/[show_id]/actions.integration.test.ts @@ -1,6 +1,7 @@ import { db } from "@/lib/db"; import { reorderShowItems } from "./actions"; import { integrate } from "@bowser/testing"; +import { ContinuityItem, Rundown, Show } from "@bowser/prisma/client"; jest.mock("server-only", () => ({})); jest.mock("next/cache", () => ({ revalidatePath: () => {} })); @@ -8,23 +9,24 @@ jest.mock("next/cache", () => ({ revalidatePath: () => {} })); const TEST_TIME = new Date("2023-07-21T16:46:35.036Z"); integrate("reorderShowItems", () => { + let testShow: Show & { + rundowns: Rundown[]; + continuityItems: ContinuityItem[]; + }; beforeEach(async () => { - await db.$executeRawUnsafe("TRUNCATE TABLE shows RESTART IDENTITY CASCADE"); - await db.show.create({ + await db.$executeRawUnsafe("DELETE FROM shows"); + testShow = await db.show.create({ data: { - id: 1, name: "Test Show", start: TEST_TIME, rundowns: { createMany: { data: [ { - id: 1, name: "Test 1", order: 0, }, { - id: 2, name: "Test 3", order: 2, }, @@ -35,13 +37,11 @@ integrate("reorderShowItems", () => { createMany: { data: [ { - id: 1, name: "Test 2", durationSeconds: 0, order: 1, }, { - id: 2, name: "Test 4", durationSeconds: 0, order: 3, @@ -50,135 +50,66 @@ integrate("reorderShowItems", () => { }, }, }, + include: { + rundowns: true, + continuityItems: true, + }, }); }); test("move 2 to 1", async () => { - await reorderShowItems(1, "continuity_item", 1, 0); + await reorderShowItems( + testShow.id, + "continuity_item", + testShow.continuityItems[0].id, + 0, + ); const newShow = await db.show.findFirstOrThrow({ - where: { id: 1 }, + where: { id: testShow.id }, include: { rundowns: true, continuityItems: true }, }); const newItems = [...newShow.rundowns, ...newShow.continuityItems].sort( (a, b) => a.order - b.order, ); - expect(newItems).toMatchInlineSnapshot(` - [ - { - "durationSeconds": 0, - "id": 1, - "mediaId": null, - "name": "Test 2", - "order": 0, - "showId": 1, - }, - { - "id": 1, - "name": "Test 1", - "order": 1, - "showId": 1, - }, - { - "id": 2, - "name": "Test 3", - "order": 2, - "showId": 1, - }, - { - "durationSeconds": 0, - "id": 2, - "mediaId": null, - "name": "Test 4", - "order": 3, - "showId": 1, - }, - ] - `); + expect(newItems.map((x) => x.id)).toEqual([ + testShow.continuityItems[0].id, + testShow.rundowns[0].id, + testShow.rundowns[1].id, + testShow.continuityItems[1].id, + ]); }); test("move 3 to 1", async () => { - await reorderShowItems(1, "rundown", 2, 0); + await reorderShowItems(testShow.id, "rundown", testShow.rundowns[1].id, 0); const newShow = await db.show.findFirstOrThrow({ - where: { id: 1 }, + where: { id: testShow.id }, include: { rundowns: true, continuityItems: true }, }); const newItems = [...newShow.rundowns, ...newShow.continuityItems].sort( (a, b) => a.order - b.order, ); - expect(newItems).toMatchInlineSnapshot(` - [ - { - "id": 2, - "name": "Test 3", - "order": 0, - "showId": 1, - }, - { - "id": 1, - "name": "Test 1", - "order": 1, - "showId": 1, - }, - { - "durationSeconds": 0, - "id": 1, - "mediaId": null, - "name": "Test 2", - "order": 2, - "showId": 1, - }, - { - "durationSeconds": 0, - "id": 2, - "mediaId": null, - "name": "Test 4", - "order": 3, - "showId": 1, - }, - ] - `); + expect(newItems.map((x) => x.id)).toEqual([ + testShow.rundowns[1].id, + testShow.rundowns[0].id, + testShow.continuityItems[0].id, + testShow.continuityItems[1].id, + ]); }); test("move 1 to 4", async () => { - await reorderShowItems(1, "rundown", 1, 3); + await reorderShowItems(testShow.id, "rundown", testShow.rundowns[0].id, 3); const newShow = await db.show.findFirstOrThrow({ - where: { id: 1 }, + where: { id: testShow.id }, include: { rundowns: true, continuityItems: true }, }); const newItems = [...newShow.rundowns, ...newShow.continuityItems].sort( (a, b) => a.order - b.order, ); - expect(newItems).toMatchInlineSnapshot(` - [ - { - "durationSeconds": 0, - "id": 1, - "mediaId": null, - "name": "Test 2", - "order": 0, - "showId": 1, - }, - { - "id": 2, - "name": "Test 3", - "order": 1, - "showId": 1, - }, - { - "durationSeconds": 0, - "id": 2, - "mediaId": null, - "name": "Test 4", - "order": 2, - "showId": 1, - }, - { - "id": 1, - "name": "Test 1", - "order": 3, - "showId": 1, - }, - ] - `); + expect(newItems.map((x) => x.id)).toEqual([ + testShow.continuityItems[0].id, + testShow.rundowns[1].id, + testShow.continuityItems[1].id, + testShow.rundowns[0].id, + ]); }); }); diff --git a/server/app/shows/[show_id]/youtube/__snapshots__/actions.integration.test.ts.snap b/server/app/shows/[show_id]/youtube/__snapshots__/actions.integration.test.ts.snap new file mode 100644 index 000000000..23758a9ec --- /dev/null +++ b/server/app/shows/[show_id]/youtube/__snapshots__/actions.integration.test.ts.snap @@ -0,0 +1,103 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`youtube/doCreateStreams works 1`] = ` +{ + "part": [ + "id", + "snippet", + "cdn", + ], + "requestBody": { + "cdn": { + "frameRate": "30fps", + "ingestionType": "rtmp", + "resolution": "1080p", + }, + "snippet": { + "title": "Test Show", + }, + }, +} +`; + +exports[`youtube/doCreateStreams works 2`] = ` +{ + "part": [ + "id", + "snippet", + "status", + "contentDetails", + ], + "requestBody": { + "contentDetails": { + "enableAutoStart": false, + "enableAutoStop": false, + "enableClosedCaptions": true, + "enableDvr": true, + "enableEmbed": true, + "recordFromStart": true, + }, + "snippet": { + "description": "", + "scheduledEndTime": "2023-07-21T16:46:35.036Z", + "scheduledStartTime": "2023-07-21T16:46:35.036Z", + "title": "Test Show", + }, + "status": { + "privacyStatus": "public", + "selfDeclaredMadeForKids": false, + }, + }, +} +`; + +exports[`youtube/doCreateStreams works 3`] = ` +{ + "id": "test-broadcast-0", + "part": [ + "id", + ], + "streamId": "test-stream-0", +} +`; + +exports[`youtube/doCreateStreams works 4`] = ` +{ + "part": [ + "id", + "snippet", + "status", + "contentDetails", + ], + "requestBody": { + "contentDetails": { + "enableAutoStart": false, + "enableAutoStop": false, + "enableClosedCaptions": true, + "enableDvr": true, + "enableEmbed": true, + "recordFromStart": true, + }, + "snippet": { + "description": "", + "scheduledEndTime": "2023-07-21T16:46:35.036Z", + "scheduledStartTime": "2023-07-21T16:46:35.036Z", + "title": "Test 1", + }, + "status": { + "privacyStatus": "public", + "selfDeclaredMadeForKids": false, + }, + }, +} +`; + +exports[`youtube/doCreateStreams works 5`] = ` +{ + "id": "test-broadcast-1", + "part": [ + "id", + ], + "streamId": "test-stream-0", +} +`; diff --git a/server/app/shows/[show_id]/youtube/actions.integration.test.ts b/server/app/shows/[show_id]/youtube/actions.integration.test.ts new file mode 100644 index 000000000..d675337bc --- /dev/null +++ b/server/app/shows/[show_id]/youtube/actions.integration.test.ts @@ -0,0 +1,155 @@ +import { db } from "@/lib/db"; +import { doCreateStreams } from "./actions"; +import { integrate } from "@bowser/testing"; +import { youtube_v3 } from "googleapis"; +import { ContinuityItem, Rundown, Show } from "@bowser/prisma/client"; +import { OAuth2Client } from "google-auth-library"; + +jest.mock("server-only", () => ({})); +jest.mock("next/cache", () => ({ revalidatePath: () => {} })); +jest.mock("@/lib/auth", () => ({ + checkSession: () => Promise.resolve({}), +})); +jest.mock("@/lib/connections", () => { + return { + makeGoogleOauthClient: () => new OAuth2Client(), + getConnectionAccessToken: () => "GOOGLE_ACCESS_TOKEN", + }; +}); +jest.mock("googleapis", () => { + const Youtube = jest.fn(); + + let streamID = 0; + let broadcastID = 0; + + Youtube.prototype.liveStreams = { + insert: jest.fn(() => ({ + data: { + id: "test-stream-" + streamID++, + }, + })), + }; + Youtube.prototype.liveBroadcasts = { + insert: jest.fn(() => ({ + data: { + id: "test-broadcast-" + broadcastID++, + }, + })), + bind: jest.fn(), + }; + + return { youtube_v3: { Youtube } }; +}); + +const TEST_TIME = new Date("2023-07-21T16:46:35.036Z"); + +integrate("youtube/doCreateStreams", () => { + let testShow: Show & { + rundowns: Rundown[]; + continuityItems: ContinuityItem[]; + }; + beforeEach(async () => { + await Promise.all( + ["shows", "metadata"].map((table) => + db.$executeRawUnsafe(`DELETE FROM ${table}`), + ), + ); + testShow = await db.show.create({ + data: { + name: "Test Show", + start: TEST_TIME, + rundowns: { + createMany: { + data: [ + { + name: "Test 1", + order: 0, + }, + ], + }, + }, + continuityItems: { + createMany: { + data: [ + { + name: "Test 2", + durationSeconds: 0, + order: 1, + }, + ], + }, + }, + }, + include: { + rundowns: true, + continuityItems: true, + }, + }); + }); + + it("works", async () => { + await doCreateStreams({ + show_id: testShow.id, + resolution: "1080p", + frameRate: "30fps", + ingestionType: "rtmp", + items: [ + { + title: "Test Show", + description: "", + start: TEST_TIME, + end: TEST_TIME, + enabled: true, + visibility: "public", + isShowBroadcast: true, + }, + { + title: "Test 1", + description: "", + start: TEST_TIME, + end: TEST_TIME, + enabled: true, + visibility: "public", + rundownID: testShow.rundowns[0].id, + }, + { + title: "Test 2", + description: "", + start: TEST_TIME, + end: TEST_TIME, + enabled: false, + visibility: "public", + continuityItemID: testShow.continuityItems[0].id, + }, + ], + }); + const yt = jest.mocked(youtube_v3.Youtube).mock.instances[0]; + expect(yt.liveStreams.insert).toHaveBeenCalled(); + expect( + jest.mocked(yt.liveStreams.insert).mock.lastCall![0], + ).toMatchSnapshot(); + + expect(yt.liveBroadcasts.insert).toHaveBeenCalledTimes(2); + expect( + jest.mocked(yt.liveBroadcasts.insert).mock.calls[0][0], + ).toMatchSnapshot(); + expect( + jest.mocked(yt.liveBroadcasts.bind).mock.calls[0][0], + ).toMatchSnapshot(); + expect( + jest.mocked(yt.liveBroadcasts.insert).mock.calls[1][0], + ).toMatchSnapshot(); + expect( + jest.mocked(yt.liveBroadcasts.bind).mock.calls[1][0], + ).toMatchSnapshot(); + + const dbShow = await db.show.findFirstOrThrow({ + where: { id: testShow.id }, + include: { rundowns: true, continuityItems: true }, + }); + expect(dbShow.ytStreamID).toEqual("test-stream-0"); + expect(dbShow.ytBroadcastID).toEqual("test-broadcast-0"); + expect(dbShow.rundowns[0].ytBroadcastID).toEqual("test-broadcast-1"); + expect(dbShow.continuityItems[0].ytBroadcastID).toBeNull(); + }); +}); diff --git a/server/app/shows/[show_id]/youtube/actions.ts b/server/app/shows/[show_id]/youtube/actions.ts new file mode 100644 index 000000000..82090ca51 --- /dev/null +++ b/server/app/shows/[show_id]/youtube/actions.ts @@ -0,0 +1,217 @@ +"use server"; + +import { db } from "@/lib/db"; +import { youtube_v3 } from "googleapis"; +import { z } from "zod"; +import { createStreamsPayloadSchema } from "./schema"; +import { FormResponse } from "@/components/Form"; +import { checkSession } from "@/lib/auth"; +import { cookies } from "next/headers"; +import { OAuth2Client } from "google-auth-library"; +import { ConnectionTarget } from "@bowser/prisma/client"; +import { redirect } from "next/navigation"; +import invariant from "@/lib/invariant"; +import { + getConnectionAccessToken, + makeGoogleOauthClient, +} from "@/lib/connections"; + +async function getAccessTokenForCurrentUser() { + // If we already have an access token in cookies, use that + const cookie = await cookies().get("google_access_token"); + if (cookie?.value) { + return cookie.value; + } + // Now check if we already have a refresh token, and if so, use that to get an access token. + const user = await checkSession(); + const connection = await db.connection.findFirst({ + where: { + target: ConnectionTarget.google, + userId: user!.id, + }, + }); + if (!connection) { + // Damn and blast. + redirect("/connect/google"); + } + + const client = new OAuth2Client({ + clientId: process.env.GOOGLE_CLIENT_ID!, + clientSecret: process.env.GOOGLE_CLIENT_SECRET!, + redirectUri: process.env.GOOGLE_CONNECT_REDIRECT_URI!, + credentials: { + refresh_token: connection.refreshToken, + }, + }); + const accessToken = await client.getAccessToken(); + invariant(accessToken.token, "failed to refresh token"); + await cookies().set("google_access_token", accessToken.token, { + secure: process.env.NODE_ENV === "production", + httpOnly: true, + expires: new Date(Date.now() + 60 * 60 * 1000), + sameSite: "strict", + }); + return accessToken.token; +} + +export async function doCreateStreams( + dataRaw: z.infer, +): Promise { + const data = createStreamsPayloadSchema.parse(dataRaw); + const me = await checkSession(); + invariant(me, "no current user"); + + await db.$transaction(async ($db) => { + // Lock the row for the duration of this transaction + await $db.$queryRaw`SELECT id FROM shows WHERE id = ${data.show_id} FOR UPDATE`; + const show = await $db.show.findUniqueOrThrow({ + where: { + id: data.show_id, + }, + include: { + rundowns: true, + continuityItems: true, + }, + }); + + const token = await getConnectionAccessToken( + ConnectionTarget.google, + me.id, + ); + if (!token) { + redirect("/connect/google"); + } + const client = makeGoogleOauthClient(); + client.setCredentials({ + access_token: token, + }); + + const yt = new youtube_v3.Youtube({ + auth: client, + }); + console.log(yt); + + // Create the stream + let streamID; + if (show.ytStreamID) { + console.log("Using existing stream", show.ytStreamID); + streamID = show.ytStreamID; + } else { + const stream = await yt.liveStreams.insert({ + part: ["id", "snippet", "cdn"], + requestBody: { + snippet: { + title: show.name, + }, + cdn: { + ingestionType: data.ingestionType, + resolution: data.resolution, + frameRate: data.frameRate, + }, + }, + }); + await $db.show.update({ + where: { + id: show.id, + }, + data: { + ytStreamID: stream.data.id!, + }, + }); + streamID = stream.data.id!; + } + // Now create the broadcasts + for (const item of data.items) { + if (!item.enabled) { + continue; + } + if (item.rundownID) { + const rd = show.rundowns.find((x) => x.id === item.rundownID); + if (rd?.ytBroadcastID?.length) { + console.log("Skipping broadcast creation for rundown", rd.id); + continue; + } + } else if (item.continuityItemID) { + const ci = show.continuityItems.find( + (x) => x.id === item.continuityItemID, + ); + if (ci?.ytBroadcastID?.length) { + console.log("Skipping broadcast creation for continuity item", ci.id); + continue; + } + } else if (item.isShowBroadcast) { + if (show.ytBroadcastID?.length) { + console.log("Skipping broadcast creation for show", show.id); + continue; + } + } + + const broadcast = await yt.liveBroadcasts.insert({ + part: ["id", "snippet", "status", "contentDetails"], + requestBody: { + snippet: { + title: item.title, + description: item.description, + scheduledStartTime: item.start.toISOString(), + scheduledEndTime: item.end.toISOString(), + }, + status: { + privacyStatus: item.visibility, + selfDeclaredMadeForKids: false, + }, + contentDetails: { + enableAutoStart: false, + enableAutoStop: false, + enableClosedCaptions: true, + enableDvr: true, + enableEmbed: true, + recordFromStart: true, + }, + }, + }); + // TODO[BOW-132]: Set thumbnail + // await yt.thumbnails.set({ + // videoId: broadcast.data.id!, + // media: { + // mimeType: "image/jpeg", + // body: item.thumbnail, + // } + // }); + await yt.liveBroadcasts.bind({ + id: broadcast.data.id!, + part: ["id"], + streamId: streamID, + }); + if (item.rundownID) { + await $db.rundown.update({ + where: { + id: item.rundownID, + }, + data: { + ytBroadcastID: broadcast.data.id!, + }, + }); + } else if (item.continuityItemID) { + await $db.continuityItem.update({ + where: { + id: item.continuityItemID, + }, + data: { + ytBroadcastID: broadcast.data.id!, + }, + }); + } else if (item.isShowBroadcast) { + await $db.show.update({ + where: { + id: show.id, + }, + data: { + ytBroadcastID: broadcast.data.id!, + }, + }); + } + } + }); + + return { ok: true }; +} diff --git a/server/app/shows/[show_id]/youtube/form.tsx b/server/app/shows/[show_id]/youtube/form.tsx new file mode 100644 index 000000000..79ac0a5e1 --- /dev/null +++ b/server/app/shows/[show_id]/youtube/form.tsx @@ -0,0 +1,238 @@ +"use client"; + +import Form from "@/components/Form"; +import type { + ContinuityItem, + Metadata, + MetadataField, + Rundown, + Show, +} from "@bowser/prisma/client"; +import { createStreamsPayloadSchema } from "./schema"; +import { doCreateStreams } from "./actions"; +import { DeepPartial, useController } from "react-hook-form"; +import { + CheckBoxField, + DatePickerField, + Field, + HiddenField, + SelectField, +} from "@/components/FormFields"; +import { ReactNode } from "react"; +import { RundownItem } from "@bowser/prisma/client"; +import { z } from "zod"; +import { identity } from "lodash"; +import { twMerge } from "tailwind-merge"; + +interface MetaValueWithField extends Metadata { + field: MetadataField; +} + +interface RundownWithItemsAndMeta extends Rundown { + items: RundownItem[]; + metadata: MetaValueWithField[]; +} + +export interface YTStreamsShowData extends Show { + rundowns: RundownWithItemsAndMeta[]; + continuityItems: ContinuityItem[]; + metadata: MetaValueWithField[]; +} + +function StreamItem(props: { + namePrefix: string; + name: string; + broadcastExists?: boolean; +}) { + const enabled = useController({ + name: props.namePrefix + ".enabled", + }); + + return ( +
+
+ +

{props.name}

+
+ {enabled.field.value && ( + <> + + + + + v[0].toLocaleUpperCase() + v.slice(1)} + filter={false} + /> + + )} +
+ ); +} + +export default function CreateYTStreamsForm(props: { + show: YTStreamsShowData; + titleFieldID?: number; + descFieldID?: number; +}) { + const items = [...props.show.rundowns, ...props.show.continuityItems].sort( + (a, b) => a.order - b.order, + ); + + const itemFields: ReactNode[] = []; + const initialValues: DeepPartial> = + { + items: [], + resolution: "1080p", + frameRate: "30fps", + ingestionType: "rtmp", + }; + let time = props.show.start.getTime(); + let idx = 0; + + for (const item of items) { + const durationSeconds = + "durationSeconds" in item + ? item.durationSeconds + : item.items.map((x) => x.durationSeconds).reduce((a, b) => a + b, 0); + + let title, description; + if (props.titleFieldID && "metadata" in item) { + const field = item.metadata.find((x) => x.fieldId == props.titleFieldID); + if (field) { + title = (field.value as string) + " | " + item.name; + } + } + if (!title) { + title = item.name; + } + + if (props.descFieldID && "metadata" in item) { + const field = item.metadata.find((x) => x.fieldId == props.descFieldID); + if (field) { + description = field.value as string; + } + } + if (!description) { + description = ""; + } + + initialValues.items!.push({ + enabled: !("durationSeconds" in item) || !!item.ytBroadcastID, // it's a rundown or it already exists + title, + description, + start: new Date(time), + end: new Date(time + durationSeconds * 1000), + visibility: "public", + rundownID: "durationSeconds" in item ? item.id : undefined, + continuityItemID: "durationSeconds" in item ? undefined : item.id, + }); + itemFields.push( + , + ); + idx++; + time += durationSeconds; + } + + let title, description; + if (props.titleFieldID) { + const field = props.show.metadata.find( + (x) => x.fieldId == props.titleFieldID, + ); + if (field) { + title = field.value as string; + } + } + if (!title) { + title = props.show.name; + } + if (props.descFieldID) { + const field = props.show.metadata.find( + (x) => x.fieldId == props.descFieldID, + ); + if (field) { + description = field.value as string; + } + } + if (!description) { + description = ""; + } + + initialValues.items!.unshift({ + title, + description, + start: props.show.start, + end: new Date(time), + enabled: true, + visibility: "public", + isShowBroadcast: true, + }); + itemFields.unshift( + , + ); + + return ( +
+ + + + +
{itemFields}
+ + ); +} diff --git a/server/app/shows/[show_id]/youtube/page.tsx b/server/app/shows/[show_id]/youtube/page.tsx new file mode 100644 index 000000000..7ec589ef7 --- /dev/null +++ b/server/app/shows/[show_id]/youtube/page.tsx @@ -0,0 +1,73 @@ +import { db } from "@/lib/db"; +import { enableYoutube } from "@bowser/feature-flags"; +import { notFound, redirect } from "next/navigation"; +import CreateYTStreamsForm from "./form"; +import { getSetting } from "@/lib/settings"; +import { ConnectionTarget } from "@bowser/prisma/client"; +import { checkSession } from "@/lib/auth"; + +export default async function ShowYouTubePage(props: { + params: { show_id: string }; +}) { + if (!enableYoutube) { + notFound(); + } + + const me = await checkSession(); + + const conn = await db.connection.findFirst({ + where: { + target: ConnectionTarget.google, + userId: me?.id, + }, + }); + if (!conn) { + redirect("/connect/google"); + } + + const show = await db.show.findFirst({ + where: { + id: parseInt(props.params.show_id, 10), + }, + include: { + rundowns: { + include: { + items: true, + metadata: { + include: { + field: true, + }, + }, + }, + }, + continuityItems: true, + metadata: { + include: { + field: true, + }, + orderBy: { + fieldId: "asc", + }, + }, + }, + }); + if (!show) { + notFound(); + } + + const [titleFieldID, descFieldID] = await Promise.all([ + getSetting("YouTube", "TitleMetadataID"), + getSetting("YouTube", "DescriptionMetadataID"), + ]); + + return ( +
+

Create YouTube Streams for {show.name}

+ +
+ ); +} diff --git a/server/app/shows/[show_id]/youtube/schema.ts b/server/app/shows/[show_id]/youtube/schema.ts new file mode 100644 index 000000000..488d8962e --- /dev/null +++ b/server/app/shows/[show_id]/youtube/schema.ts @@ -0,0 +1,30 @@ +import { z } from "zod"; + +export const createStreamsPayloadSchema = z.object({ + show_id: z.coerce.number(), + items: z.array( + z.object({ + enabled: z.boolean(), + title: z.string().nonempty(), + description: z.string(), + start: z.date(), + end: z.date(), + visibility: z.enum(["public", "unlisted", "private"]), + // thumbnail: z.string(), + rundownID: z.number().optional(), + continuityItemID: z.number().optional(), + isShowBroadcast: z.boolean().optional(), + }), + ), + ingestionType: z.enum(["rtmp", "dash"]), + resolution: z.enum([ + "240p", + "360p", + "480p", + "720p", + "1080p", + "1440p", + "2160p", + ]), + frameRate: z.enum(["30fps", "60fps"]), +}); diff --git a/server/components/FormFields.tsx b/server/components/FormFields.tsx index 776c6dd8a..906b6712d 100644 --- a/server/components/FormFields.tsx +++ b/server/components/FormFields.tsx @@ -194,15 +194,29 @@ export function DatePickerField(props: { ); } -export function CheckBoxField(props: { name: string; label?: string }) { +export function CheckBoxField(props: { + name: string; + label?: string; + disabled?: boolean; +}) { const ctx = useFormContext(); if (!props.label) { - return ; + return ( + + ); } return ( ); } diff --git a/server/jest.config.js b/server/jest.config.js index 6b13dca9a..f051184f6 100644 --- a/server/jest.config.js +++ b/server/jest.config.js @@ -23,6 +23,7 @@ const customJestConfig = { "../utility/components/**", "../utility/prisma/utilityTypes.ts", ], + prettierPath: null, }; // createJestConfig is exported in this way to ensure that next/jest can load the Next.js configuration, which is async diff --git a/server/package.json b/server/package.json index 01f890cab..e9766447b 100644 --- a/server/package.json +++ b/server/package.json @@ -48,6 +48,7 @@ "eslint-config-next": "13.5.6", "eslint-plugin-react": "latest", "google-auth-library": "^9.2.0", + "googleapis": "^128.0.0", "lodash": "^4.17.21", "next": "13.5.6", "react": "18.3.0-canary-1a001dac6-20230812", @@ -69,7 +70,7 @@ }, "devDependencies": { "@playwright/test": "^1.37.0", - "@prisma/nextjs-monorepo-workaround-plugin": "^5.5.2", + "@prisma/nextjs-monorepo-workaround-plugin": "toniopelo/prisma-nextjs-monorepo-workaround-plugin", "@types/jest": "^29.5.9", "@types/shelljs": "^0.8.12", "@vitejs/plugin-react": "^4.0.3", diff --git a/utility/feature-flags/featureFlags.ts b/utility/feature-flags/featureFlags.ts index 99e3f4f5d..51fc5eeb9 100644 --- a/utility/feature-flags/featureFlags.ts +++ b/utility/feature-flags/featureFlags.ts @@ -36,28 +36,59 @@ const nonE2e = !e2e; const production = process.env.ENVIRONMENT === "prod"; const nonProd = !production; -export const enableNomadJobQueue = flag( - "Nomad Job Queue", - "ENABLE_NOMAD_JOB_QUEUE", - false, +// ----------------------------------------------------------------- +// Rolled-out features +// +// Flags that can likely be removed now as the feature is always on +// ----------------------------------------------------------------- + +export const enableUserManagement = flag( + "User Management", + "ENABLE_USER_MANAGEMENT", + true, ); +// ----------------------------------------------------------------- +// Kill-switches +// +// Flags that solely exist to allow us to disable a feature in production +// if it starts causing problems +// ----------------------------------------------------------------- + export const enableQualityControl = flag( "Quality Control", "ENABLE_QUALITY_CONTROL", true, ); -export const failUploadOnQualityControlFail = flag( - "Fail Upload on Quality Control Fail", - "FAIL_UPLOAD_ON_QUALITY_CONTROL_FAIL", - nonE2e, +// ----------------------------------------------------------------- +// Development features +// +// Flags that allow us to enable a feature in development that +// isn't yet ready for production use. +// ----------------------------------------------------------------- + +export const enableYoutube = flag( + "YouTube Integration", + "ENABLE_YOUTUBE", + nonProd, ); -export const enableUserManagement = flag( - "User Management", - "ENABLE_USER_MANAGEMENT", - true, +// ----------------------------------------------------------------- +// Feature controls +// +// Flags that allow us to enable/disable a feature in production. +// Unlike other flags, there are legitimate reasons to enable or +// disable these. +// +// If we ever have a proper settings system, these should be +// migrated to that. +// ----------------------------------------------------------------- + +export const enableNomadJobQueue = flag( + "Nomad Job Queue", + "ENABLE_NOMAD_JOB_QUEUE", + false, ); export const enableGoogleLogin = flag( @@ -66,6 +97,20 @@ export const enableGoogleLogin = flag( nonE2e, ); +// ----------------------------------------------------------------- +// Testing behaviour switches +// +// Flags that allow us to change behaviour in tests if a feature +// is simply untestable or too difficult to test. These should +// never be enabled in production. +// ----------------------------------------------------------------- + +export const failUploadOnQualityControlFail = flag( + "Fail Upload on Quality Control Fail", + "FAIL_UPLOAD_ON_QUALITY_CONTROL_FAIL", + nonE2e, +); + export const disablePermissionsChecks = flag( "Disable Permissions Checks", "DISABLE_PERMISSIONS_CHECKS", diff --git a/utility/prisma/migrations/20231115234906_add_yt_fields/migration.sql b/utility/prisma/migrations/20231115234906_add_yt_fields/migration.sql new file mode 100644 index 000000000..e202b7c7e --- /dev/null +++ b/utility/prisma/migrations/20231115234906_add_yt_fields/migration.sql @@ -0,0 +1,13 @@ +-- AlterTable +ALTER TABLE "continuity_items" ADD COLUMN "ytBroadcastID" TEXT; + +-- AlterTable +ALTER TABLE "rundowns" ADD COLUMN "ytBroadcastID" TEXT; + +-- AlterTable +ALTER TABLE "shows" ADD COLUMN "ytBroadcastID" TEXT, +ADD COLUMN "ytStreamID" TEXT; + +-- Need to recreate the view to pick up definitions +DROP VIEW "shows_with_duration"; +CREATE VIEW "shows_with_duration" AS SELECT *, calculate_show_duration(id) AS "durationSeconds", "start" + (calculate_show_duration(id) * '1 second'::interval) AS "end" FROM shows; diff --git a/utility/prisma/migrations/20231121000758_add_some_ondelete_cascades/migration.sql b/utility/prisma/migrations/20231121000758_add_some_ondelete_cascades/migration.sql new file mode 100644 index 000000000..2a51b90f9 --- /dev/null +++ b/utility/prisma/migrations/20231121000758_add_some_ondelete_cascades/migration.sql @@ -0,0 +1,35 @@ +-- DropForeignKey +ALTER TABLE "connections" DROP CONSTRAINT "connections_userId_fkey"; + +-- DropForeignKey +ALTER TABLE "continuity_items" DROP CONSTRAINT "continuity_items_showId_fkey"; + +-- DropForeignKey +ALTER TABLE "identities" DROP CONSTRAINT "identities_userID_fkey"; + +-- DropForeignKey +ALTER TABLE "metadata" DROP CONSTRAINT "metadata_fieldId_fkey"; + +-- DropForeignKey +ALTER TABLE "rundown_items" DROP CONSTRAINT "rundown_items_rundownId_fkey"; + +-- DropForeignKey +ALTER TABLE "rundowns" DROP CONSTRAINT "rundowns_showId_fkey"; + +-- AddForeignKey +ALTER TABLE "identities" ADD CONSTRAINT "identities_userID_fkey" FOREIGN KEY ("userID") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "connections" ADD CONSTRAINT "connections_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "rundowns" ADD CONSTRAINT "rundowns_showId_fkey" FOREIGN KEY ("showId") REFERENCES "shows"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "rundown_items" ADD CONSTRAINT "rundown_items_rundownId_fkey" FOREIGN KEY ("rundownId") REFERENCES "rundowns"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "continuity_items" ADD CONSTRAINT "continuity_items_showId_fkey" FOREIGN KEY ("showId") REFERENCES "shows"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "metadata" ADD CONSTRAINT "metadata_fieldId_fkey" FOREIGN KEY ("fieldId") REFERENCES "metadata_fields"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/utility/prisma/schema.prisma b/utility/prisma/schema.prisma index 1343d2ab1..8330faf9f 100644 --- a/utility/prisma/schema.prisma +++ b/utility/prisma/schema.prisma @@ -42,7 +42,7 @@ model Identity { identityID String userID Int - user User @relation(fields: [userID], references: [id]) + user User @relation(fields: [userID], references: [id], onDelete: Cascade) @@unique([provider, identityID]) @@map("identities") @@ -62,7 +62,7 @@ model Connection { target ConnectionTarget refreshToken String - user User @relation(fields: [userId], references: [id]) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@unique([userId, target]) @@map("connections") @@ -81,6 +81,9 @@ model Show { /// This is used by Desktop to watch for changes. version Int @default(0) + ytStreamID String? + ytBroadcastID String? + rundowns Rundown[] continuityItems ContinuityItem[] metadata Metadata[] @@ -99,6 +102,9 @@ view ShowWithDuration { /// This is used by Desktop to watch for changes. version Int @default(0) + ytStreamID String? + ytBroadcastID String? + @@map("shows_with_duration") } @@ -108,7 +114,9 @@ model Rundown { showId Int order Int - show Show @relation(fields: [showId], references: [id]) + ytBroadcastID String? + + show Show @relation(fields: [showId], references: [id], onDelete: Cascade) items RundownItem[] assets Asset[] metadata Metadata[] @@ -135,7 +143,7 @@ model RundownItem { media Media? @relation(fields: [mediaId], references: [id], onDelete: SetNull) mediaId Int? - rundown Rundown @relation(fields: [rundownId], references: [id]) + rundown Rundown @relation(fields: [rundownId], references: [id], onDelete: Cascade) // Do not be tempted to include a @@unique on the order! // See https://github.com/prisma/prisma/issues/13115 and https://github.com/prisma/prisma/issues/8807 @@ -148,11 +156,12 @@ model ContinuityItem { order Int showId Int durationSeconds Int + ytBroadcastID String? media Media? @relation(fields: [mediaId], references: [id], onDelete: SetNull) mediaId Int? - show Show @relation(fields: [showId], references: [id]) + show Show @relation(fields: [showId], references: [id], onDelete: Cascade) // Do not be tempted to include a @@unique on the order! // See https://github.com/prisma/prisma/issues/13115 and https://github.com/prisma/prisma/issues/8807 @@ -192,7 +201,7 @@ model Metadata { showId Int? rundownId Int? - field MetadataField @relation(fields: [fieldId], references: [id]) + field MetadataField @relation(fields: [fieldId], references: [id], onDelete: Cascade) show Show? @relation(fields: [showId], references: [id], onDelete: Cascade) rundown Rundown? @relation(fields: [rundownId], references: [id], onDelete: Cascade) diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemCountOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemCountOrderByAggregateInputSchema.ts index b7fbfbe1f..ea36a81ef 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemCountOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemCountOrderByAggregateInputSchema.ts @@ -10,6 +10,7 @@ export const ContinuityItemCountOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), durationSeconds: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), mediaId: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateInputSchema.ts index 11bef3719..d92f6b13c 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateInputSchema.ts @@ -9,6 +9,7 @@ export const ContinuityItemCreateInputSchema: z.ZodType MediaCreateNestedOneWithoutContinuityItemsInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateManyInputSchema.ts index fc1d07f7a..6499d96ea 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateManyInputSchema.ts @@ -9,6 +9,7 @@ export const ContinuityItemCreateManyInputSchema: z.ZodType ShowCreateNestedOneWithoutContinuityItemsInputSchema), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateWithoutShowInputSchema.ts index 9cd390ee1..8b4c1a071 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemCreateWithoutShowInputSchema.ts @@ -8,6 +8,7 @@ export const ContinuityItemCreateWithoutShowInputSchema: z.ZodType MediaCreateNestedOneWithoutContinuityItemsInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemMaxOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemMaxOrderByAggregateInputSchema.ts index b1b6b8227..724208a6e 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemMaxOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemMaxOrderByAggregateInputSchema.ts @@ -10,6 +10,7 @@ export const ContinuityItemMaxOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), durationSeconds: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), mediaId: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemMinOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemMinOrderByAggregateInputSchema.ts index 7946f8be8..244b7462f 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemMinOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemMinOrderByAggregateInputSchema.ts @@ -10,6 +10,7 @@ export const ContinuityItemMinOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), durationSeconds: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), mediaId: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithAggregationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithAggregationInputSchema.ts index b6ab8de39..acb0bb058 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithAggregationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithAggregationInputSchema.ts @@ -16,6 +16,12 @@ export const ContinuityItemOrderByWithAggregationInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), durationSeconds: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), mediaId: z .union([ z.lazy(() => SortOrderSchema), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithRelationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithRelationInputSchema.ts index 8436fa077..401d1d03b 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithRelationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemOrderByWithRelationInputSchema.ts @@ -13,6 +13,12 @@ export const ContinuityItemOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), durationSeconds: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), mediaId: z .union([ z.lazy(() => SortOrderSchema), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarFieldEnumSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarFieldEnumSchema.ts index 0f9b032ac..26b635e22 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarFieldEnumSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarFieldEnumSchema.ts @@ -6,6 +6,7 @@ export const ContinuityItemScalarFieldEnumSchema = z.enum([ "order", "showId", "durationSeconds", + "ytBroadcastID", "mediaId", ]); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereInputSchema.ts index 65a1fd4e1..92abdb9f0 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { IntNullableFilterSchema } from "./IntNullableFilterSchema"; export const ContinuityItemScalarWhereInputSchema: z.ZodType = @@ -30,6 +31,10 @@ export const ContinuityItemScalarWhereInputSchema: z.ZodType IntFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), mediaId: z .union([z.lazy(() => IntNullableFilterSchema), z.number()]) .optional() diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereWithAggregatesInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereWithAggregatesInputSchema.ts index 7761764a6..817be6dba 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereWithAggregatesInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemScalarWhereWithAggregatesInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntWithAggregatesFilterSchema } from "./IntWithAggregatesFilterSchema"; import { StringWithAggregatesFilterSchema } from "./StringWithAggregatesFilterSchema"; +import { StringNullableWithAggregatesFilterSchema } from "./StringNullableWithAggregatesFilterSchema"; import { IntNullableWithAggregatesFilterSchema } from "./IntNullableWithAggregatesFilterSchema"; export const ContinuityItemScalarWhereWithAggregatesInputSchema: z.ZodType = @@ -42,6 +43,13 @@ export const ContinuityItemScalarWhereWithAggregatesInputSchema: z.ZodType IntWithAggregatesFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), mediaId: z .union([ z.lazy(() => IntNullableWithAggregatesFilterSchema), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemSelectSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemSelectSchema.ts index 23ff3f052..019a3b442 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemSelectSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemSelectSchema.ts @@ -11,6 +11,7 @@ export const ContinuityItemSelectSchema: z.ZodType order: z.boolean().optional(), showId: z.boolean().optional(), durationSeconds: z.boolean().optional(), + ytBroadcastID: z.boolean().optional(), mediaId: z.boolean().optional(), media: z.union([z.boolean(), z.lazy(() => MediaArgsSchema)]).optional(), show: z.union([z.boolean(), z.lazy(() => ShowArgsSchema)]).optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedCreateInputSchema.ts index 7cf31f100..031c936ca 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedCreateInputSchema.ts @@ -9,6 +9,7 @@ export const ContinuityItemUncheckedCreateInputSchema: z.ZodType = @@ -37,6 +38,13 @@ export const ContinuityItemUncheckedUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), mediaId: z .union([ z.number().int(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyInputSchema.ts index ff0516130..4f97f8857 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { NullableIntFieldUpdateOperationsInputSchema } from "./NullableIntFieldUpdateOperationsInputSchema"; export const ContinuityItemUncheckedUpdateManyInputSchema: z.ZodType = @@ -37,6 +38,13 @@ export const ContinuityItemUncheckedUpdateManyInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), mediaId: z .union([ z.number().int(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema.ts index 46a793bf6..70edaa3e7 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema: z.ZodType = z @@ -36,6 +37,13 @@ export const ContinuityItemUncheckedUpdateManyWithoutMediaInputSchema: z.ZodType z.lazy(() => IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutShowInputSchema.ts index 07213846a..0e19ab100 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateManyWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { NullableIntFieldUpdateOperationsInputSchema } from "./NullableIntFieldUpdateOperationsInputSchema"; export const ContinuityItemUncheckedUpdateManyWithoutShowInputSchema: z.ZodType = @@ -31,6 +32,13 @@ export const ContinuityItemUncheckedUpdateManyWithoutShowInputSchema: z.ZodType< z.lazy(() => IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), mediaId: z .union([ z.number().int(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutMediaInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutMediaInputSchema.ts index 9a3de48c4..b06518bef 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutMediaInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutMediaInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ContinuityItemUncheckedUpdateWithoutMediaInputSchema: z.ZodType = z @@ -36,6 +37,13 @@ export const ContinuityItemUncheckedUpdateWithoutMediaInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutShowInputSchema.ts index 2ed87dd23..f580fb3e7 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUncheckedUpdateWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { NullableIntFieldUpdateOperationsInputSchema } from "./NullableIntFieldUpdateOperationsInputSchema"; export const ContinuityItemUncheckedUpdateWithoutShowInputSchema: z.ZodType = @@ -31,6 +32,13 @@ export const ContinuityItemUncheckedUpdateWithoutShowInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), mediaId: z .union([ z.number().int(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateInputSchema.ts index dcee6d7a4..c0b404e4b 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { MediaUpdateOneWithoutContinuityItemsNestedInputSchema } from "./MediaUpdateOneWithoutContinuityItemsNestedInputSchema"; import { ShowUpdateOneRequiredWithoutContinuityItemsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutContinuityItemsNestedInputSchema"; @@ -26,6 +27,13 @@ export const ContinuityItemUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), media: z .lazy(() => MediaUpdateOneWithoutContinuityItemsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateManyMutationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateManyMutationInputSchema.ts index f4b339acf..9822daff5 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateManyMutationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateManyMutationInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ContinuityItemUpdateManyMutationInputSchema: z.ZodType = z @@ -24,6 +25,13 @@ export const ContinuityItemUpdateManyMutationInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutMediaInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutMediaInputSchema.ts index 7f2c31d93..c485dfb63 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutMediaInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutMediaInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ShowUpdateOneRequiredWithoutContinuityItemsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutContinuityItemsNestedInputSchema"; export const ContinuityItemUpdateWithoutMediaInputSchema: z.ZodType = @@ -25,6 +26,13 @@ export const ContinuityItemUpdateWithoutMediaInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), show: z .lazy( () => ShowUpdateOneRequiredWithoutContinuityItemsNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutShowInputSchema.ts index 58de02bf4..b8680ddf6 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemUpdateWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { MediaUpdateOneWithoutContinuityItemsNestedInputSchema } from "./MediaUpdateOneWithoutContinuityItemsNestedInputSchema"; export const ContinuityItemUpdateWithoutShowInputSchema: z.ZodType = @@ -25,6 +26,13 @@ export const ContinuityItemUpdateWithoutShowInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), media: z .lazy(() => MediaUpdateOneWithoutContinuityItemsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereInputSchema.ts index 2dac6e8ee..bf8eb3deb 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { IntNullableFilterSchema } from "./IntNullableFilterSchema"; import { MediaNullableRelationFilterSchema } from "./MediaNullableRelationFilterSchema"; import { MediaWhereInputSchema } from "./MediaWhereInputSchema"; @@ -34,6 +35,10 @@ export const ContinuityItemWhereInputSchema: z.ZodType IntFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), mediaId: z .union([z.lazy(() => IntNullableFilterSchema), z.number()]) .optional() diff --git a/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereUniqueInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereUniqueInputSchema.ts index 16cd2d069..7d61465cd 100644 --- a/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereUniqueInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ContinuityItemWhereUniqueInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { ContinuityItemWhereInputSchema } from "./ContinuityItemWhereInputSchema"; import { StringFilterSchema } from "./StringFilterSchema"; import { IntFilterSchema } from "./IntFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { IntNullableFilterSchema } from "./IntNullableFilterSchema"; import { MediaNullableRelationFilterSchema } from "./MediaNullableRelationFilterSchema"; import { MediaWhereInputSchema } from "./MediaWhereInputSchema"; @@ -46,6 +47,10 @@ export const ContinuityItemWhereUniqueInputSchema: z.ZodType IntFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), mediaId: z .union([z.lazy(() => IntNullableFilterSchema), z.number()]) .optional() diff --git a/utility/prisma/types/inputTypeSchemas/RundownCountOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCountOrderByAggregateInputSchema.ts index 10af5ab73..f95a9ad32 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCountOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCountOrderByAggregateInputSchema.ts @@ -9,6 +9,7 @@ export const RundownCountOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), order: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCreateInputSchema.ts index 0141ba74d..3c6c31f57 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCreateInputSchema.ts @@ -9,6 +9,7 @@ export const RundownCreateInputSchema: z.ZodType = z .object({ name: z.string(), order: z.number().int(), + ytBroadcastID: z.string().optional().nullable(), show: z.lazy(() => ShowCreateNestedOneWithoutRundownsInputSchema), items: z .lazy(() => RundownItemCreateNestedManyWithoutRundownInputSchema) diff --git a/utility/prisma/types/inputTypeSchemas/RundownCreateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCreateManyInputSchema.ts index cecd85323..942791209 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCreateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCreateManyInputSchema.ts @@ -8,6 +8,7 @@ export const RundownCreateManyInputSchema: z.ZodType ShowCreateNestedOneWithoutRundownsInputSchema), items: z .lazy(() => RundownItemCreateNestedManyWithoutRundownInputSchema) diff --git a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutItemsInputSchema.ts index ed24e8841..088ffb382 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutItemsInputSchema.ts @@ -9,6 +9,7 @@ export const RundownCreateWithoutItemsInputSchema: z.ZodType ShowCreateNestedOneWithoutRundownsInputSchema), assets: z .lazy(() => AssetCreateNestedManyWithoutRundownInputSchema) diff --git a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutMetadataInputSchema.ts index bc38edb8f..f20699664 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutMetadataInputSchema.ts @@ -9,6 +9,7 @@ export const RundownCreateWithoutMetadataInputSchema: z.ZodType ShowCreateNestedOneWithoutRundownsInputSchema), items: z .lazy(() => RundownItemCreateNestedManyWithoutRundownInputSchema) diff --git a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutShowInputSchema.ts index e9e27196e..58b74e1ae 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownCreateWithoutShowInputSchema.ts @@ -9,6 +9,7 @@ export const RundownCreateWithoutShowInputSchema: z.ZodType RundownItemCreateNestedManyWithoutRundownInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownMaxOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownMaxOrderByAggregateInputSchema.ts index 6eee7410e..615b1d08a 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownMaxOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownMaxOrderByAggregateInputSchema.ts @@ -9,6 +9,7 @@ export const RundownMaxOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), order: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownMinOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownMinOrderByAggregateInputSchema.ts index baab60c9b..e3684b8a5 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownMinOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownMinOrderByAggregateInputSchema.ts @@ -9,6 +9,7 @@ export const RundownMinOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), order: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownOrderByWithAggregationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownOrderByWithAggregationInputSchema.ts index b45e028e4..9132ee81b 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownOrderByWithAggregationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownOrderByWithAggregationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; import { RundownCountOrderByAggregateInputSchema } from "./RundownCountOrderByAggregateInputSchema"; import { RundownAvgOrderByAggregateInputSchema } from "./RundownAvgOrderByAggregateInputSchema"; import { RundownMaxOrderByAggregateInputSchema } from "./RundownMaxOrderByAggregateInputSchema"; @@ -14,6 +15,12 @@ export const RundownOrderByWithAggregationInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), order: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), _count: z.lazy(() => RundownCountOrderByAggregateInputSchema).optional(), _avg: z.lazy(() => RundownAvgOrderByAggregateInputSchema).optional(), _max: z.lazy(() => RundownMaxOrderByAggregateInputSchema).optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownOrderByWithRelationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownOrderByWithRelationInputSchema.ts index 4a5cdad35..644a71fa1 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownOrderByWithRelationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownOrderByWithRelationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; import { ShowOrderByWithRelationInputSchema } from "./ShowOrderByWithRelationInputSchema"; import { RundownItemOrderByRelationAggregateInputSchema } from "./RundownItemOrderByRelationAggregateInputSchema"; import { AssetOrderByRelationAggregateInputSchema } from "./AssetOrderByRelationAggregateInputSchema"; @@ -13,6 +14,12 @@ export const RundownOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(), showId: z.lazy(() => SortOrderSchema).optional(), order: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), show: z.lazy(() => ShowOrderByWithRelationInputSchema).optional(), items: z .lazy(() => RundownItemOrderByRelationAggregateInputSchema) diff --git a/utility/prisma/types/inputTypeSchemas/RundownScalarFieldEnumSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownScalarFieldEnumSchema.ts index 3ca0cfff6..29a3a93fa 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownScalarFieldEnumSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownScalarFieldEnumSchema.ts @@ -1,5 +1,11 @@ -import { z } from 'zod'; +import { z } from "zod"; -export const RundownScalarFieldEnumSchema = z.enum(['id','name','showId','order']); +export const RundownScalarFieldEnumSchema = z.enum([ + "id", + "name", + "showId", + "order", + "ytBroadcastID", +]); export default RundownScalarFieldEnumSchema; diff --git a/utility/prisma/types/inputTypeSchemas/RundownScalarWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownScalarWhereInputSchema.ts index 9f38bae1b..e69d74930 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownScalarWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownScalarWhereInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; export const RundownScalarWhereInputSchema: z.ZodType = z @@ -26,6 +27,10 @@ export const RundownScalarWhereInputSchema: z.ZodType StringFilterSchema), z.string()]).optional(), showId: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), order: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownScalarWhereWithAggregatesInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownScalarWhereWithAggregatesInputSchema.ts index d5ebd2d07..09892c1ff 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownScalarWhereWithAggregatesInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownScalarWhereWithAggregatesInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntWithAggregatesFilterSchema } from "./IntWithAggregatesFilterSchema"; import { StringWithAggregatesFilterSchema } from "./StringWithAggregatesFilterSchema"; +import { StringNullableWithAggregatesFilterSchema } from "./StringNullableWithAggregatesFilterSchema"; export const RundownScalarWhereWithAggregatesInputSchema: z.ZodType = z @@ -34,6 +35,13 @@ export const RundownScalarWhereWithAggregatesInputSchema: z.ZodType IntWithAggregatesFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownSelectSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownSelectSchema.ts index 31d2686f8..f847efd87 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownSelectSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownSelectSchema.ts @@ -12,6 +12,7 @@ export const RundownSelectSchema: z.ZodType = z name: z.boolean().optional(), showId: z.boolean().optional(), order: z.boolean().optional(), + ytBroadcastID: z.boolean().optional(), show: z.union([z.boolean(), z.lazy(() => ShowArgsSchema)]).optional(), items: z .union([z.boolean(), z.lazy(() => RundownItemFindManyArgsSchema)]) diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateInputSchema.ts index 5278fd99a..c9d424d29 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateInputSchema.ts @@ -11,6 +11,7 @@ export const RundownUncheckedCreateInputSchema: z.ZodType RundownItemUncheckedCreateNestedManyWithoutRundownInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutAssetsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutAssetsInputSchema.ts index ecfd06d64..9f5038a86 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutAssetsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutAssetsInputSchema.ts @@ -10,6 +10,7 @@ export const RundownUncheckedCreateWithoutAssetsInputSchema: z.ZodType RundownItemUncheckedCreateNestedManyWithoutRundownInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutItemsInputSchema.ts index a42f18f9e..a3191ed18 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutItemsInputSchema.ts @@ -10,6 +10,7 @@ export const RundownUncheckedCreateWithoutItemsInputSchema: z.ZodType AssetUncheckedCreateNestedManyWithoutRundownInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutMetadataInputSchema.ts index 3a80e7afb..0036d69bc 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutMetadataInputSchema.ts @@ -10,6 +10,7 @@ export const RundownUncheckedCreateWithoutMetadataInputSchema: z.ZodType RundownItemUncheckedCreateNestedManyWithoutRundownInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutShowInputSchema.ts index 858b63a8b..4a648ab94 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedCreateWithoutShowInputSchema.ts @@ -10,6 +10,7 @@ export const RundownUncheckedCreateWithoutShowInputSchema: z.ZodType RundownItemUncheckedCreateNestedManyWithoutRundownInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateInputSchema.ts index 6275bd960..b5dfb7472 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { AssetUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./AssetUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema"; @@ -33,6 +34,13 @@ export const RundownUncheckedUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), items: z .lazy( () => RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyInputSchema.ts index 46c047baa..aa47c4955 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const RundownUncheckedUpdateManyInputSchema: z.ZodType = z @@ -30,6 +31,13 @@ export const RundownUncheckedUpdateManyInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyWithoutShowInputSchema.ts index 8b34d95d5..5b6951dcb 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateManyWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const RundownUncheckedUpdateManyWithoutShowInputSchema: z.ZodType = z @@ -24,6 +25,13 @@ export const RundownUncheckedUpdateManyWithoutShowInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutAssetsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutAssetsInputSchema.ts index 827251a45..e8eb6dfb5 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutAssetsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutAssetsInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema"; @@ -32,6 +33,13 @@ export const RundownUncheckedUpdateWithoutAssetsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), items: z .lazy( () => RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutItemsInputSchema.ts index 949cf3c33..84f741fcb 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutItemsInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { AssetUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./AssetUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema"; @@ -32,6 +33,13 @@ export const RundownUncheckedUpdateWithoutItemsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), assets: z .lazy(() => AssetUncheckedUpdateManyWithoutRundownNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutMetadataInputSchema.ts index 126e1dc41..c1eae441d 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutMetadataInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { AssetUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./AssetUncheckedUpdateManyWithoutRundownNestedInputSchema"; @@ -32,6 +33,13 @@ export const RundownUncheckedUpdateWithoutMetadataInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), items: z .lazy( () => RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutShowInputSchema.ts index 820fd37a9..dabbbb53f 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUncheckedUpdateWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { AssetUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./AssetUncheckedUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutRundownNestedInputSchema"; @@ -27,6 +28,13 @@ export const RundownUncheckedUpdateWithoutShowInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), items: z .lazy( () => RundownItemUncheckedUpdateManyWithoutRundownNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateInputSchema.ts index 0c885e5d9..8b8ae9bf9 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ShowUpdateOneRequiredWithoutRundownsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutRundownsNestedInputSchema"; import { RundownItemUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUpdateManyWithoutRundownNestedInputSchema"; import { AssetUpdateManyWithoutRundownNestedInputSchema } from "./AssetUpdateManyWithoutRundownNestedInputSchema"; @@ -18,6 +19,13 @@ export const RundownUpdateInputSchema: z.ZodType = z z.lazy(() => IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), show: z .lazy(() => ShowUpdateOneRequiredWithoutRundownsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateManyMutationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateManyMutationInputSchema.ts index 6198be8b0..b138c2495 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateManyMutationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateManyMutationInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const RundownUpdateManyMutationInputSchema: z.ZodType = z @@ -18,6 +19,13 @@ export const RundownUpdateManyMutationInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutAssetsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutAssetsInputSchema.ts index b4c2c1b26..1c0047fa0 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutAssetsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutAssetsInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ShowUpdateOneRequiredWithoutRundownsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutRundownsNestedInputSchema"; import { RundownItemUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUpdateManyWithoutRundownNestedInputSchema"; @@ -21,6 +22,13 @@ export const RundownUpdateWithoutAssetsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), show: z .lazy(() => ShowUpdateOneRequiredWithoutRundownsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutItemsInputSchema.ts index bb6ba86e1..fbcd053ab 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutItemsInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ShowUpdateOneRequiredWithoutRundownsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutRundownsNestedInputSchema"; import { AssetUpdateManyWithoutRundownNestedInputSchema } from "./AssetUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUpdateManyWithoutRundownNestedInputSchema"; @@ -21,6 +22,13 @@ export const RundownUpdateWithoutItemsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), show: z .lazy(() => ShowUpdateOneRequiredWithoutRundownsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutMetadataInputSchema.ts index 0f5f40eb4..27d5aa5d2 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutMetadataInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ShowUpdateOneRequiredWithoutRundownsNestedInputSchema } from "./ShowUpdateOneRequiredWithoutRundownsNestedInputSchema"; import { RundownItemUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUpdateManyWithoutRundownNestedInputSchema"; import { AssetUpdateManyWithoutRundownNestedInputSchema } from "./AssetUpdateManyWithoutRundownNestedInputSchema"; @@ -21,6 +22,13 @@ export const RundownUpdateWithoutMetadataInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), show: z .lazy(() => ShowUpdateOneRequiredWithoutRundownsNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutShowInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutShowInputSchema.ts index 0c9154695..8e8263f18 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutShowInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownUpdateWithoutShowInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownItemUpdateManyWithoutRundownNestedInputSchema } from "./RundownItemUpdateManyWithoutRundownNestedInputSchema"; import { AssetUpdateManyWithoutRundownNestedInputSchema } from "./AssetUpdateManyWithoutRundownNestedInputSchema"; import { MetadataUpdateManyWithoutRundownNestedInputSchema } from "./MetadataUpdateManyWithoutRundownNestedInputSchema"; @@ -21,6 +22,13 @@ export const RundownUpdateWithoutShowInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), items: z .lazy(() => RundownItemUpdateManyWithoutRundownNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/RundownWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownWhereInputSchema.ts index 6be21ce37..854a80b67 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownWhereInputSchema.ts @@ -2,6 +2,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { ShowRelationFilterSchema } from "./ShowRelationFilterSchema"; import { ShowWhereInputSchema } from "./ShowWhereInputSchema"; import { RundownItemListRelationFilterSchema } from "./RundownItemListRelationFilterSchema"; @@ -30,6 +31,10 @@ export const RundownWhereInputSchema: z.ZodType = z name: z.union([z.lazy(() => StringFilterSchema), z.string()]).optional(), showId: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), order: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), show: z .union([ z.lazy(() => ShowRelationFilterSchema), diff --git a/utility/prisma/types/inputTypeSchemas/RundownWhereUniqueInputSchema.ts b/utility/prisma/types/inputTypeSchemas/RundownWhereUniqueInputSchema.ts index cb07b9c0b..290cfffff 100644 --- a/utility/prisma/types/inputTypeSchemas/RundownWhereUniqueInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/RundownWhereUniqueInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { RundownWhereInputSchema } from "./RundownWhereInputSchema"; import { StringFilterSchema } from "./StringFilterSchema"; import { IntFilterSchema } from "./IntFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { ShowRelationFilterSchema } from "./ShowRelationFilterSchema"; import { ShowWhereInputSchema } from "./ShowWhereInputSchema"; import { RundownItemListRelationFilterSchema } from "./RundownItemListRelationFilterSchema"; @@ -43,6 +44,10 @@ export const RundownWhereUniqueInputSchema: z.ZodType IntFilterSchema), z.number()]) .optional(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), show: z .union([ z.lazy(() => ShowRelationFilterSchema), diff --git a/utility/prisma/types/inputTypeSchemas/ShowCountOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCountOrderByAggregateInputSchema.ts index c3d19b2b3..b3bd6a804 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCountOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCountOrderByAggregateInputSchema.ts @@ -9,6 +9,8 @@ export const ShowCountOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), start: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCreateInputSchema.ts index 3e179595c..6262748f2 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCreateInputSchema.ts @@ -9,6 +9,8 @@ export const ShowCreateInputSchema: z.ZodType = z name: z.string(), start: z.coerce.date(), version: z.number().int().optional(), + ytStreamID: z.string().optional().nullable(), + ytBroadcastID: z.string().optional().nullable(), rundowns: z .lazy(() => RundownCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowCreateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCreateManyInputSchema.ts index 0c1b66aba..4933bb18b 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCreateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCreateManyInputSchema.ts @@ -8,6 +8,8 @@ export const ShowCreateManyInputSchema: z.ZodType = name: z.string(), start: z.coerce.date(), version: z.number().int().optional(), + ytStreamID: z.string().optional().nullable(), + ytBroadcastID: z.string().optional().nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutContinuityItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutContinuityItemsInputSchema.ts index e0061a9a4..9525d2a95 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutContinuityItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutContinuityItemsInputSchema.ts @@ -9,6 +9,8 @@ export const ShowCreateWithoutContinuityItemsInputSchema: z.ZodType RundownCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutMetadataInputSchema.ts index 9f0c41d1f..ec9d4ef46 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutMetadataInputSchema.ts @@ -9,6 +9,8 @@ export const ShowCreateWithoutMetadataInputSchema: z.ZodType RundownCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutRundownsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutRundownsInputSchema.ts index 94a3dbbe8..aedfdfa4c 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutRundownsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowCreateWithoutRundownsInputSchema.ts @@ -9,6 +9,8 @@ export const ShowCreateWithoutRundownsInputSchema: z.ZodType ContinuityItemCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowMaxOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowMaxOrderByAggregateInputSchema.ts index 4bf293293..724f51595 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowMaxOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowMaxOrderByAggregateInputSchema.ts @@ -9,6 +9,8 @@ export const ShowMaxOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), start: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowMinOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowMinOrderByAggregateInputSchema.ts index 07e611593..a6220b89f 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowMinOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowMinOrderByAggregateInputSchema.ts @@ -9,6 +9,8 @@ export const ShowMinOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), start: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowOrderByWithAggregationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowOrderByWithAggregationInputSchema.ts index 5d6f0b1c5..dad3db450 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowOrderByWithAggregationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowOrderByWithAggregationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; import { ShowCountOrderByAggregateInputSchema } from "./ShowCountOrderByAggregateInputSchema"; import { ShowAvgOrderByAggregateInputSchema } from "./ShowAvgOrderByAggregateInputSchema"; import { ShowMaxOrderByAggregateInputSchema } from "./ShowMaxOrderByAggregateInputSchema"; @@ -14,6 +15,18 @@ export const ShowOrderByWithAggregationInputSchema: z.ZodType SortOrderSchema).optional(), start: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), _count: z.lazy(() => ShowCountOrderByAggregateInputSchema).optional(), _avg: z.lazy(() => ShowAvgOrderByAggregateInputSchema).optional(), _max: z.lazy(() => ShowMaxOrderByAggregateInputSchema).optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowOrderByWithRelationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowOrderByWithRelationInputSchema.ts index f5252b00d..0e0b6b389 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowOrderByWithRelationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowOrderByWithRelationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; import { RundownOrderByRelationAggregateInputSchema } from "./RundownOrderByRelationAggregateInputSchema"; import { ContinuityItemOrderByRelationAggregateInputSchema } from "./ContinuityItemOrderByRelationAggregateInputSchema"; import { MetadataOrderByRelationAggregateInputSchema } from "./MetadataOrderByRelationAggregateInputSchema"; @@ -12,6 +13,18 @@ export const ShowOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(), start: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), rundowns: z .lazy(() => RundownOrderByRelationAggregateInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowScalarFieldEnumSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowScalarFieldEnumSchema.ts index 03bf50b84..b9d23ea35 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowScalarFieldEnumSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowScalarFieldEnumSchema.ts @@ -1,5 +1,12 @@ -import { z } from 'zod'; +import { z } from "zod"; -export const ShowScalarFieldEnumSchema = z.enum(['id','name','start','version']); +export const ShowScalarFieldEnumSchema = z.enum([ + "id", + "name", + "start", + "version", + "ytStreamID", + "ytBroadcastID", +]); export default ShowScalarFieldEnumSchema; diff --git a/utility/prisma/types/inputTypeSchemas/ShowScalarWhereWithAggregatesInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowScalarWhereWithAggregatesInputSchema.ts index 2823f31c2..222ace4bc 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowScalarWhereWithAggregatesInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowScalarWhereWithAggregatesInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntWithAggregatesFilterSchema } from "./IntWithAggregatesFilterSchema"; import { StringWithAggregatesFilterSchema } from "./StringWithAggregatesFilterSchema"; import { DateTimeWithAggregatesFilterSchema } from "./DateTimeWithAggregatesFilterSchema"; +import { StringNullableWithAggregatesFilterSchema } from "./StringNullableWithAggregatesFilterSchema"; export const ShowScalarWhereWithAggregatesInputSchema: z.ZodType = z @@ -38,6 +39,20 @@ export const ShowScalarWhereWithAggregatesInputSchema: z.ZodType IntWithAggregatesFilterSchema), z.number()]) .optional(), + ytStreamID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowSelectSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowSelectSchema.ts index c18ff31cb..240596425 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowSelectSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowSelectSchema.ts @@ -11,6 +11,8 @@ export const ShowSelectSchema: z.ZodType = z name: z.boolean().optional(), start: z.boolean().optional(), version: z.boolean().optional(), + ytStreamID: z.boolean().optional(), + ytBroadcastID: z.boolean().optional(), rundowns: z .union([z.boolean(), z.lazy(() => RundownFindManyArgsSchema)]) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateInputSchema.ts index d5783380a..34eb4309d 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateInputSchema.ts @@ -11,6 +11,8 @@ export const ShowUncheckedCreateInputSchema: z.ZodType RundownUncheckedCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutContinuityItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutContinuityItemsInputSchema.ts index 6b4d06483..3debd2286 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutContinuityItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutContinuityItemsInputSchema.ts @@ -10,6 +10,8 @@ export const ShowUncheckedCreateWithoutContinuityItemsInputSchema: z.ZodType RundownUncheckedCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutMetadataInputSchema.ts index 6620e7cac..c73f697c4 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutMetadataInputSchema.ts @@ -10,6 +10,8 @@ export const ShowUncheckedCreateWithoutMetadataInputSchema: z.ZodType RundownUncheckedCreateNestedManyWithoutShowInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutRundownsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutRundownsInputSchema.ts index 8fc914edd..94bd284c3 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutRundownsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedCreateWithoutRundownsInputSchema.ts @@ -10,6 +10,8 @@ export const ShowUncheckedCreateWithoutRundownsInputSchema: z.ZodType ContinuityItemUncheckedCreateNestedManyWithoutShowInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateInputSchema.ts index 6321ab43a..9b73d6870 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUncheckedUpdateManyWithoutShowNestedInputSchema } from "./RundownUncheckedUpdateManyWithoutShowNestedInputSchema"; import { ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutShowNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutShowNestedInputSchema"; @@ -34,6 +35,20 @@ export const ShowUncheckedUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUncheckedUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateManyInputSchema.ts index e6e8c2e27..cdf181ff4 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateManyInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ShowUncheckedUpdateManyInputSchema: z.ZodType = z @@ -31,6 +32,20 @@ export const ShowUncheckedUpdateManyInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutContinuityItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutContinuityItemsInputSchema.ts index 24dcd4d1b..7bebd437d 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutContinuityItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutContinuityItemsInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUncheckedUpdateManyWithoutShowNestedInputSchema } from "./RundownUncheckedUpdateManyWithoutShowNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutShowNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutShowNestedInputSchema"; @@ -33,6 +34,20 @@ export const ShowUncheckedUpdateWithoutContinuityItemsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUncheckedUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutMetadataInputSchema.ts index dc562861f..ce9ee7709 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutMetadataInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUncheckedUpdateManyWithoutShowNestedInputSchema } from "./RundownUncheckedUpdateManyWithoutShowNestedInputSchema"; import { ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema"; @@ -33,6 +34,20 @@ export const ShowUncheckedUpdateWithoutMetadataInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUncheckedUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutRundownsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutRundownsInputSchema.ts index 659cb888f..43946f90c 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutRundownsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUncheckedUpdateWithoutRundownsInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema"; import { MetadataUncheckedUpdateManyWithoutShowNestedInputSchema } from "./MetadataUncheckedUpdateManyWithoutShowNestedInputSchema"; @@ -33,6 +34,20 @@ export const ShowUncheckedUpdateWithoutRundownsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), continuityItems: z .lazy( () => ContinuityItemUncheckedUpdateManyWithoutShowNestedInputSchema, diff --git a/utility/prisma/types/inputTypeSchemas/ShowUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUpdateInputSchema.ts index 57986e96d..887f148cd 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUpdateInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUpdateManyWithoutShowNestedInputSchema } from "./RundownUpdateManyWithoutShowNestedInputSchema"; import { ContinuityItemUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUpdateManyWithoutShowNestedInputSchema"; import { MetadataUpdateManyWithoutShowNestedInputSchema } from "./MetadataUpdateManyWithoutShowNestedInputSchema"; @@ -24,6 +25,20 @@ export const ShowUpdateInputSchema: z.ZodType = z z.lazy(() => IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUpdateManyMutationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUpdateManyMutationInputSchema.ts index fa6a05dbe..271d15207 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUpdateManyMutationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUpdateManyMutationInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ShowUpdateManyMutationInputSchema: z.ZodType = z @@ -25,6 +26,20 @@ export const ShowUpdateManyMutationInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutContinuityItemsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutContinuityItemsInputSchema.ts index 62dae265a..a0d3dd65a 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutContinuityItemsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutContinuityItemsInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUpdateManyWithoutShowNestedInputSchema } from "./RundownUpdateManyWithoutShowNestedInputSchema"; import { MetadataUpdateManyWithoutShowNestedInputSchema } from "./MetadataUpdateManyWithoutShowNestedInputSchema"; @@ -27,6 +28,20 @@ export const ShowUpdateWithoutContinuityItemsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutMetadataInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutMetadataInputSchema.ts index 90c8b6381..e0482144f 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutMetadataInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutMetadataInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { RundownUpdateManyWithoutShowNestedInputSchema } from "./RundownUpdateManyWithoutShowNestedInputSchema"; import { ContinuityItemUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUpdateManyWithoutShowNestedInputSchema"; @@ -27,6 +28,20 @@ export const ShowUpdateWithoutMetadataInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), rundowns: z .lazy(() => RundownUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutRundownsInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutRundownsInputSchema.ts index 18662e581..bfebf553e 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutRundownsInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowUpdateWithoutRundownsInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; import { ContinuityItemUpdateManyWithoutShowNestedInputSchema } from "./ContinuityItemUpdateManyWithoutShowNestedInputSchema"; import { MetadataUpdateManyWithoutShowNestedInputSchema } from "./MetadataUpdateManyWithoutShowNestedInputSchema"; @@ -27,6 +28,20 @@ export const ShowUpdateWithoutRundownsInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), continuityItems: z .lazy(() => ContinuityItemUpdateManyWithoutShowNestedInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWhereInputSchema.ts index c228f24dc..fa1fd5197 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWhereInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; import { DateTimeFilterSchema } from "./DateTimeFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { RundownListRelationFilterSchema } from "./RundownListRelationFilterSchema"; import { ContinuityItemListRelationFilterSchema } from "./ContinuityItemListRelationFilterSchema"; import { MetadataListRelationFilterSchema } from "./MetadataListRelationFilterSchema"; @@ -31,6 +32,14 @@ export const ShowWhereInputSchema: z.ZodType = z .union([z.lazy(() => DateTimeFilterSchema), z.coerce.date()]) .optional(), version: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), + ytStreamID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), rundowns: z.lazy(() => RundownListRelationFilterSchema).optional(), continuityItems: z .lazy(() => ContinuityItemListRelationFilterSchema) diff --git a/utility/prisma/types/inputTypeSchemas/ShowWhereUniqueInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWhereUniqueInputSchema.ts index 5d3045c57..ab2ebc797 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWhereUniqueInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWhereUniqueInputSchema.ts @@ -4,6 +4,7 @@ import { ShowWhereInputSchema } from "./ShowWhereInputSchema"; import { StringFilterSchema } from "./StringFilterSchema"; import { DateTimeFilterSchema } from "./DateTimeFilterSchema"; import { IntFilterSchema } from "./IntFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; import { RundownListRelationFilterSchema } from "./RundownListRelationFilterSchema"; import { ContinuityItemListRelationFilterSchema } from "./ContinuityItemListRelationFilterSchema"; import { MetadataListRelationFilterSchema } from "./MetadataListRelationFilterSchema"; @@ -42,6 +43,14 @@ export const ShowWhereUniqueInputSchema: z.ZodType version: z .union([z.lazy(() => IntFilterSchema), z.number()]) .optional(), + ytStreamID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), rundowns: z.lazy(() => RundownListRelationFilterSchema).optional(), continuityItems: z .lazy(() => ContinuityItemListRelationFilterSchema) diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationCountOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationCountOrderByAggregateInputSchema.ts index 4969ba521..2e8e991e7 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationCountOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationCountOrderByAggregateInputSchema.ts @@ -11,6 +11,8 @@ export const ShowWithDurationCountOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), end: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationCreateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationCreateInputSchema.ts index 47434cd2f..9488c926c 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationCreateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationCreateInputSchema.ts @@ -10,6 +10,8 @@ export const ShowWithDurationCreateInputSchema: z.ZodType SortOrderSchema).optional(), end: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationMinOrderByAggregateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationMinOrderByAggregateInputSchema.ts index ab3cc1c75..cd40aa1b5 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationMinOrderByAggregateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationMinOrderByAggregateInputSchema.ts @@ -11,6 +11,8 @@ export const ShowWithDurationMinOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(), end: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z.lazy(() => SortOrderSchema).optional(), + ytBroadcastID: z.lazy(() => SortOrderSchema).optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithAggregationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithAggregationInputSchema.ts index fe4bc9354..807e942e4 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithAggregationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithAggregationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; import { ShowWithDurationCountOrderByAggregateInputSchema } from "./ShowWithDurationCountOrderByAggregateInputSchema"; import { ShowWithDurationAvgOrderByAggregateInputSchema } from "./ShowWithDurationAvgOrderByAggregateInputSchema"; import { ShowWithDurationMaxOrderByAggregateInputSchema } from "./ShowWithDurationMaxOrderByAggregateInputSchema"; @@ -16,6 +17,18 @@ export const ShowWithDurationOrderByWithAggregationInputSchema: z.ZodType SortOrderSchema).optional(), end: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), _count: z .lazy(() => ShowWithDurationCountOrderByAggregateInputSchema) .optional(), diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithRelationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithRelationInputSchema.ts index ec28ba9f2..6686ed108 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithRelationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationOrderByWithRelationInputSchema.ts @@ -1,6 +1,7 @@ import type { Prisma } from "../../client"; import { z } from "zod"; import { SortOrderSchema } from "./SortOrderSchema"; +import { SortOrderInputSchema } from "./SortOrderInputSchema"; export const ShowWithDurationOrderByWithRelationInputSchema: z.ZodType = z @@ -11,6 +12,18 @@ export const ShowWithDurationOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(), end: z.lazy(() => SortOrderSchema).optional(), version: z.lazy(() => SortOrderSchema).optional(), + ytStreamID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), + ytBroadcastID: z + .union([ + z.lazy(() => SortOrderSchema), + z.lazy(() => SortOrderInputSchema), + ]) + .optional(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarFieldEnumSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarFieldEnumSchema.ts index 9b366a8a5..c79b28cc9 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarFieldEnumSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarFieldEnumSchema.ts @@ -7,6 +7,8 @@ export const ShowWithDurationScalarFieldEnumSchema = z.enum([ "durationSeconds", "end", "version", + "ytStreamID", + "ytBroadcastID", ]); export default ShowWithDurationScalarFieldEnumSchema; diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarWhereWithAggregatesInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarWhereWithAggregatesInputSchema.ts index 81f5fa125..f05d48f77 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarWhereWithAggregatesInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationScalarWhereWithAggregatesInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntWithAggregatesFilterSchema } from "./IntWithAggregatesFilterSchema"; import { StringWithAggregatesFilterSchema } from "./StringWithAggregatesFilterSchema"; import { DateTimeWithAggregatesFilterSchema } from "./DateTimeWithAggregatesFilterSchema"; +import { StringNullableWithAggregatesFilterSchema } from "./StringNullableWithAggregatesFilterSchema"; export const ShowWithDurationScalarWhereWithAggregatesInputSchema: z.ZodType = z @@ -51,6 +52,20 @@ export const ShowWithDurationScalarWhereWithAggregatesInputSchema: z.ZodType IntWithAggregatesFilterSchema), z.number()]) .optional(), + ytStreamID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.lazy(() => StringNullableWithAggregatesFilterSchema), + z.string(), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationSelectSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationSelectSchema.ts index afc93c680..80008e84c 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationSelectSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationSelectSchema.ts @@ -10,6 +10,8 @@ export const ShowWithDurationSelectSchema: z.ZodType = z @@ -43,6 +44,20 @@ export const ShowWithDurationUncheckedUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUncheckedUpdateManyInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUncheckedUpdateManyInputSchema.ts index e71735c75..422bf5520 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUncheckedUpdateManyInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUncheckedUpdateManyInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ShowWithDurationUncheckedUpdateManyInputSchema: z.ZodType = z @@ -43,6 +44,20 @@ export const ShowWithDurationUncheckedUpdateManyInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateInputSchema.ts index b8b6a4f04..6d80c8f38 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ShowWithDurationUpdateInputSchema: z.ZodType = z @@ -43,6 +44,20 @@ export const ShowWithDurationUpdateInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateManyMutationInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateManyMutationInputSchema.ts index 12f0d1126..330d54c3e 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateManyMutationInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationUpdateManyMutationInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFieldUpdateOperationsInputSchema } from "./IntFieldUpdateOperationsInputSchema"; import { StringFieldUpdateOperationsInputSchema } from "./StringFieldUpdateOperationsInputSchema"; import { DateTimeFieldUpdateOperationsInputSchema } from "./DateTimeFieldUpdateOperationsInputSchema"; +import { NullableStringFieldUpdateOperationsInputSchema } from "./NullableStringFieldUpdateOperationsInputSchema"; export const ShowWithDurationUpdateManyMutationInputSchema: z.ZodType = z @@ -43,6 +44,20 @@ export const ShowWithDurationUpdateManyMutationInputSchema: z.ZodType IntFieldUpdateOperationsInputSchema), ]) .optional(), + ytStreamID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), + ytBroadcastID: z + .union([ + z.string(), + z.lazy(() => NullableStringFieldUpdateOperationsInputSchema), + ]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereInputSchema.ts index 53c4f1ecd..4f7effc41 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereInputSchema.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { IntFilterSchema } from "./IntFilterSchema"; import { StringFilterSchema } from "./StringFilterSchema"; import { DateTimeFilterSchema } from "./DateTimeFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; export const ShowWithDurationWhereInputSchema: z.ZodType = z @@ -35,6 +36,14 @@ export const ShowWithDurationWhereInputSchema: z.ZodType DateTimeFilterSchema), z.coerce.date()]) .optional(), version: z.union([z.lazy(() => IntFilterSchema), z.number()]).optional(), + ytStreamID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), }) .strict(); diff --git a/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereUniqueInputSchema.ts b/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereUniqueInputSchema.ts index 07a33b32b..e01229b9e 100644 --- a/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereUniqueInputSchema.ts +++ b/utility/prisma/types/inputTypeSchemas/ShowWithDurationWhereUniqueInputSchema.ts @@ -4,6 +4,7 @@ import { ShowWithDurationWhereInputSchema } from "./ShowWithDurationWhereInputSc import { StringFilterSchema } from "./StringFilterSchema"; import { DateTimeFilterSchema } from "./DateTimeFilterSchema"; import { IntFilterSchema } from "./IntFilterSchema"; +import { StringNullableFilterSchema } from "./StringNullableFilterSchema"; export const ShowWithDurationWhereUniqueInputSchema: z.ZodType = z @@ -45,6 +46,14 @@ export const ShowWithDurationWhereUniqueInputSchema: z.ZodType IntFilterSchema), z.number()]) .optional(), + ytStreamID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), + ytBroadcastID: z + .union([z.lazy(() => StringNullableFilterSchema), z.string()]) + .optional() + .nullable(), }) .strict(), ); diff --git a/utility/prisma/types/modelSchema/ContinuityItemSchema.ts b/utility/prisma/types/modelSchema/ContinuityItemSchema.ts index dee608f20..0e407af8e 100644 --- a/utility/prisma/types/modelSchema/ContinuityItemSchema.ts +++ b/utility/prisma/types/modelSchema/ContinuityItemSchema.ts @@ -10,6 +10,7 @@ export const ContinuityItemSchema = z.object({ order: z.number().int(), showId: z.number().int(), durationSeconds: z.number().int(), + ytBroadcastID: z.string().nullable(), mediaId: z.number().int().nullable(), }); diff --git a/utility/prisma/types/modelSchema/RundownSchema.ts b/utility/prisma/types/modelSchema/RundownSchema.ts index c6d849506..684383eb0 100644 --- a/utility/prisma/types/modelSchema/RundownSchema.ts +++ b/utility/prisma/types/modelSchema/RundownSchema.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import { z } from "zod"; ///////////////////////////////////////// // RUNDOWN SCHEMA @@ -9,8 +9,9 @@ export const RundownSchema = z.object({ name: z.string(), showId: z.number().int(), order: z.number().int(), -}) + ytBroadcastID: z.string().nullable(), +}); -export type Rundown = z.infer +export type Rundown = z.infer; export default RundownSchema; diff --git a/utility/prisma/types/modelSchema/ShowSchema.ts b/utility/prisma/types/modelSchema/ShowSchema.ts index 7a790d5d3..30d4a6bd7 100644 --- a/utility/prisma/types/modelSchema/ShowSchema.ts +++ b/utility/prisma/types/modelSchema/ShowSchema.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import { z } from "zod"; ///////////////////////////////////////// // SHOW SCHEMA @@ -13,8 +13,10 @@ export const ShowSchema = z.object({ * This is used by Desktop to watch for changes. */ version: z.number().int(), -}) + ytStreamID: z.string().nullable(), + ytBroadcastID: z.string().nullable(), +}); -export type Show = z.infer +export type Show = z.infer; export default ShowSchema; diff --git a/utility/prisma/types/modelSchema/ShowWithDurationSchema.ts b/utility/prisma/types/modelSchema/ShowWithDurationSchema.ts index 4c06bb7ab..f64f4f138 100644 --- a/utility/prisma/types/modelSchema/ShowWithDurationSchema.ts +++ b/utility/prisma/types/modelSchema/ShowWithDurationSchema.ts @@ -15,6 +15,8 @@ export const ShowWithDurationSchema = z.object({ * This is used by Desktop to watch for changes. */ version: z.number().int(), + ytStreamID: z.string().nullable(), + ytBroadcastID: z.string().nullable(), }); export type ShowWithDuration = z.infer; diff --git a/yarn.lock b/yarn.lock index c4d099890..a6d5eaed9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3182,10 +3182,10 @@ __metadata: languageName: node linkType: hard -"@prisma/nextjs-monorepo-workaround-plugin@npm:^5.5.2": - version: 5.5.2 - resolution: "@prisma/nextjs-monorepo-workaround-plugin@npm:5.5.2" - checksum: a317bd32abc316ca8cfefac050f98864f76f2fdc42ece869780758530bf5e1e3b644f0fa0852625908219350024da4f34ad9d4f66593a2d850a55703da0195b2 +"@prisma/nextjs-monorepo-workaround-plugin@toniopelo/prisma-nextjs-monorepo-workaround-plugin": + version: 0.0.0 + resolution: "@prisma/nextjs-monorepo-workaround-plugin@https://github.com/toniopelo/prisma-nextjs-monorepo-workaround-plugin.git#commit=6a37ec791786a2a7f386ad4c5da1f19b1fd78f38" + checksum: 4311c58049342a2966bd1680aff06e730c69e8e800da21feb637b5caf6c4a47b2b39343ac77fa09e0396681ff73c241adc9888905f89d3b99cf8851237943023 languageName: node linkType: hard @@ -6974,7 +6974,7 @@ __metadata: "@hello-pangea/dnd": ^16.3.0 "@hookform/resolvers": ^3.1.1 "@playwright/test": ^1.37.0 - "@prisma/nextjs-monorepo-workaround-plugin": ^5.5.2 + "@prisma/nextjs-monorepo-workaround-plugin": toniopelo/prisma-nextjs-monorepo-workaround-plugin "@sentry/nextjs": latest "@sentry/utils": ^7.69.0 "@tailwindcss/forms": ^0.5.4 @@ -7003,6 +7003,7 @@ __metadata: eslint-config-next: 13.5.6 eslint-plugin-react: latest google-auth-library: ^9.2.0 + googleapis: ^128.0.0 jest: ^29.7.0 jsdom: ^22.1.0 lodash: ^4.17.21 @@ -10223,7 +10224,7 @@ __metadata: languageName: node linkType: hard -"gaxios@npm:^6.0.0": +"gaxios@npm:^6.0.0, gaxios@npm:^6.0.3": version: 6.1.1 resolution: "gaxios@npm:6.1.1" dependencies: @@ -10611,7 +10612,7 @@ __metadata: languageName: node linkType: hard -"google-auth-library@npm:^9.2.0": +"google-auth-library@npm:^9.0.0, google-auth-library@npm:^9.2.0": version: 9.2.0 resolution: "google-auth-library@npm:9.2.0" dependencies: @@ -10650,6 +10651,30 @@ __metadata: languageName: node linkType: hard +"googleapis-common@npm:^7.0.0": + version: 7.0.1 + resolution: "googleapis-common@npm:7.0.1" + dependencies: + extend: ^3.0.2 + gaxios: ^6.0.3 + google-auth-library: ^9.0.0 + qs: ^6.7.0 + url-template: ^2.0.8 + uuid: ^9.0.0 + checksum: b87f3e14aed5fab82d3327d924e82a1f1527715c93c0b3534b2e28de698abc02daea00bebe375966ca8bb491394f5fd521e6b615cb89e1bfbe8870b7caa5f899 + languageName: node + linkType: hard + +"googleapis@npm:^128.0.0": + version: 128.0.0 + resolution: "googleapis@npm:128.0.0" + dependencies: + google-auth-library: ^9.0.0 + googleapis-common: ^7.0.0 + checksum: ac03a2e715073c6b73f1433672b926e8c96e0804216c5e042903b79f0ff8622552f8ec0ebce11a67fe9d575ffe125f324711865726b2954f8963f1eb5beac398 + languageName: node + linkType: hard + "gopd@npm:^1.0.1": version: 1.0.1 resolution: "gopd@npm:1.0.1"