Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apis/api-gateway/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ type ImageBlock implements Block @join__type(graph: API_JOURNEYS) @join__type(g
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

type MultiselectBlock implements Block @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) @join__implements(graph: API_JOURNEYS, interface: "Block") @join__implements(graph: API_JOURNEYS_MODERN, interface: "Block") {
Expand Down Expand Up @@ -1315,6 +1316,7 @@ type VideoBlock implements Block @join__type(graph: API_JOURNEYS, key: "id") @j
objectFit: VideoBlockObjectFit
subtitleLanguage: Language
showGeneratedSubtitles: Boolean
customizable: Boolean
mediaVideo: MediaVideo @join__field(graph: API_JOURNEYS_MODERN)
}

Expand Down Expand Up @@ -3955,6 +3957,7 @@ input ImageBlockCreateInput @join__type(graph: API_JOURNEYS) @join__type(graph:
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

input ImageBlockUpdateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
Expand All @@ -3970,6 +3973,7 @@ input ImageBlockUpdateInput @join__type(graph: API_JOURNEYS) @join__type(graph:
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

input RadioOptionBlockCreateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
Expand Down Expand Up @@ -4982,6 +4986,7 @@ input VideoBlockCreateInput @join__type(graph: API_JOURNEYS_MODERN) {
posterBlockId: ID
subtitleLanguageId: ID
showGeneratedSubtitles: Boolean
customizable: Boolean
}

input VideoBlockUpdateInput @join__type(graph: API_JOURNEYS_MODERN) {
Expand All @@ -5008,6 +5013,7 @@ input VideoBlockUpdateInput @join__type(graph: API_JOURNEYS_MODERN) {
"""
source: VideoBlockSource
showGeneratedSubtitles: Boolean
customizable: Boolean
}

input LanguagesFilter @join__type(graph: API_LANGUAGES) {
Expand Down
6 changes: 6 additions & 0 deletions apis/api-journeys-modern/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ type ImageBlock implements Block
focalTop: Int
focalLeft: Int
scale: Int
customizable: Boolean
}

input ImageBlockCreateInput {
Expand All @@ -665,6 +666,7 @@ input ImageBlockCreateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

input ImageBlockUpdateInput {
Expand All @@ -682,6 +684,7 @@ input ImageBlockUpdateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

interface Integration {
Expand Down Expand Up @@ -2382,6 +2385,7 @@ type VideoBlock implements Block
action: Action
showGeneratedSubtitles: Boolean
mediaVideo: MediaVideo
customizable: Boolean
}

input VideoBlockCreateInput {
Expand Down Expand Up @@ -2411,6 +2415,7 @@ input VideoBlockCreateInput {
posterBlockId: ID
subtitleLanguageId: ID
showGeneratedSubtitles: Boolean
customizable: Boolean
}

enum VideoBlockObjectFit {
Expand Down Expand Up @@ -2451,6 +2456,7 @@ input VideoBlockUpdateInput {
"""
source: VideoBlockSource
showGeneratedSubtitles: Boolean
customizable: Boolean
}

type VideoCollapseEvent implements Event
Expand Down
3 changes: 3 additions & 0 deletions apis/api-journeys-modern/src/schema/block/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Find a frontend implementation at https://github.com/woltapp/blurhash
}),
scale: t.exposeInt('scale', {
nullable: true
}),
customizable: t.exposeBoolean('customizable', {
nullable: true
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const ImageBlockCreateInput = builder.inputType(
}),
scale: t.int({ required: false }),
focalTop: t.int({ required: false }),
focalLeft: t.int({ required: false })
focalLeft: t.int({ required: false }),
customizable: t.boolean({ required: false })
})
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const ImageBlockUpdateInput = builder.inputType(
isCover: t.boolean({ required: false }),
scale: t.int({ required: false }),
focalTop: t.int({ required: false }),
focalLeft: t.int({ required: false })
focalLeft: t.int({ required: false }),
customizable: t.boolean({ required: false })
})
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const VideoBlockCreateInput = builder.inputType(
fullsize: t.boolean({ required: false }),
posterBlockId: t.id({ required: false }),
subtitleLanguageId: t.id({ required: false }),
showGeneratedSubtitles: t.boolean({ required: false })
showGeneratedSubtitles: t.boolean({ required: false }),
customizable: t.boolean({ required: false })
})
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const VideoBlockUpdateInput = builder.inputType(
description: `internal source: videoId and videoVariantLanguageId required
youTube source: videoId required`
}),
showGeneratedSubtitles: t.boolean({ required: false })
showGeneratedSubtitles: t.boolean({ required: false }),
customizable: t.boolean({ required: false })
})
}
)
3 changes: 3 additions & 0 deletions apis/api-journeys-modern/src/schema/block/video/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ youTube source: videoId, title, description, and duration present`,
source: block.source
} as any
}
}),
customizable: t.exposeBoolean('customizable', {
nullable: true
})
})
})
Expand Down
4 changes: 4 additions & 0 deletions apis/api-journeys/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ type ImageBlock implements Block
scale: Int @shareable
focalTop: Int @shareable
focalLeft: Int @shareable
customizable: Boolean @shareable
}

input ImageBlockCreateInput {
Expand All @@ -852,6 +853,7 @@ input ImageBlockCreateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

input ImageBlockUpdateInput {
Expand All @@ -868,6 +870,7 @@ input ImageBlockUpdateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

type MultiselectBlock implements Block
Expand Down Expand Up @@ -1322,6 +1325,7 @@ type VideoBlock implements Block
objectFit: VideoBlockObjectFit @shareable
subtitleLanguage: Language @shareable
showGeneratedSubtitles: Boolean @shareable
customizable: Boolean @shareable
}

"""
Expand Down
13 changes: 13 additions & 0 deletions apis/api-journeys/src/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions apis/api-journeys/src/app/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apis/api-journeys/src/app/modules/block/image/image.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type ImageBlock implements Block @shareable {
scale: Int @shareable
focalTop: Int @shareable
focalLeft: Int @shareable
customizable: Boolean @shareable
}

input ImageBlockCreateInput {
Expand All @@ -40,6 +41,7 @@ input ImageBlockCreateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

input ImageBlockUpdateInput {
Expand All @@ -55,6 +57,7 @@ input ImageBlockUpdateInput {
scale: Int
focalTop: Int
focalLeft: Int
customizable: Boolean
}

extend type Mutation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ type VideoBlock implements Block @key(fields: "id") @shareable {
objectFit: VideoBlockObjectFit @shareable
subtitleLanguage: Language @shareable
showGeneratedSubtitles: Boolean @shareable
customizable: Boolean @shareable
}
4 changes: 4 additions & 0 deletions apps/journeys-admin/__generated__/globalTypes.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Block" ADD COLUMN "customizable" BOOLEAN;
1 change: 1 addition & 0 deletions libs/prisma/journeys/db/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ model Block {
max Int?
settings Json @default("{ }") // block settings
exportOrder Int? // column order for CSV exports and Google Sheets syncs
customizable Boolean?
@@unique([slug, journeyId])
@@index(journeyId)
Expand Down
Loading