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
104 changes: 52 additions & 52 deletions apis/api-gateway/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,6 @@ type Mutation @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS
blockRestore is used for redo/undo
"""
blockRestore(id: ID!) : [Block!]! @join__field(graph: API_JOURNEYS)
cardBlockCreate(input: CardBlockCreateInput!) : CardBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
cardBlockUpdate(
id: ID!
input: CardBlockUpdateInput!
"""
drop this parameter after merging teams
"""
journeyId: ID
): CardBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
iconBlockCreate(input: IconBlockCreateInput!) : IconBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
iconBlockUpdate(
id: ID!
input: IconBlockUpdateInput!
Expand Down Expand Up @@ -351,15 +341,25 @@ type Mutation @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS
Allow current user to update specific allowable fields of their visitor record
"""
visitorUpdateForCurrentUser(input: VisitorUpdateInput!) : Visitor! @join__field(graph: API_JOURNEYS)
buttonBlockCreate(input: ButtonBlockCreateInput!) : ButtonBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
buttonBlockCreate(input: ButtonBlockCreateInput!) : ButtonBlock! @join__field(graph: API_JOURNEYS_MODERN)
buttonBlockUpdate(
id: ID!
input: ButtonBlockUpdateInput!
"""
drop this parameter after merging teams
"""
journeyId: ID
): ButtonBlock @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
): ButtonBlock @join__field(graph: API_JOURNEYS_MODERN)
cardBlockCreate(input: CardBlockCreateInput!) : CardBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
cardBlockUpdate(
id: ID!
input: CardBlockUpdateInput!
"""
drop this parameter after merging teams
"""
journeyId: ID
): CardBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
iconBlockCreate(input: IconBlockCreateInput!) : IconBlock! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
multiselectBlockCreate(input: MultiselectBlockCreateInput!) : MultiselectBlock! @join__field(graph: API_JOURNEYS_MODERN)
multiselectBlockUpdate(
id: ID!
Expand Down Expand Up @@ -413,7 +413,7 @@ type Mutation @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS
journeyAiTranslateCreate(input: JourneyAiTranslateInput!) : Journey! @join__field(graph: API_JOURNEYS_MODERN)
createJourneyEventsExportLog(input: JourneyEventsExportLogInput!) : JourneyEventsExportLog! @join__field(graph: API_JOURNEYS_MODERN)
journeyLanguageAiDetect(input: MutationJourneyLanguageAiDetectInput!) : Boolean! @join__field(graph: API_JOURNEYS_MODERN)
journeyProfileUpdate(input: JourneyProfileUpdateInput!) : JourneyProfile! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
journeyProfileUpdate(input: JourneyProfileUpdateInput!) : JourneyProfile! @join__field(graph: API_JOURNEYS_MODERN)
journeyVisitorExportToGoogleSheet(
journeyId: ID!
filter: JourneyEventsFilter
Expand Down Expand Up @@ -717,7 +717,6 @@ type Query @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS)
hosts(teamId: ID!) : [Host!]! @join__field(graph: API_JOURNEYS)
integrations(teamId: ID!) : [Integration!]! @join__field(graph: API_JOURNEYS)
adminJourneysReport(reportType: JourneysReportType!) : PowerBiEmbed @join__field(graph: API_JOURNEYS)
adminJourney(id: ID!, idType: IdType = slug) : Journey! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
journeys(where: JourneysFilter, options: JourneysQueryOptions) : [Journey!]! @join__field(graph: API_JOURNEYS)
journey(id: ID!, idType: IdType, options: JourneysQueryOptions) : Journey! @join__field(graph: API_JOURNEYS)
journeyCollection(id: ID!) : JourneyCollection! @join__field(graph: API_JOURNEYS)
Expand Down Expand Up @@ -785,6 +784,7 @@ type Query @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS)
journeySimpleGet(id: ID!) : Json @join__field(graph: API_JOURNEYS_MODERN)
googleSheetsSyncs(filter: GoogleSheetsSyncsFilter!) : [GoogleSheetsSync!]! @join__field(graph: API_JOURNEYS_MODERN)
integrationGooglePickerToken(integrationId: ID!) : String! @join__field(graph: API_JOURNEYS_MODERN)
adminJourney(id: ID!, idType: IdType = slug) : Journey! @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
adminJourneys(
status: [JourneyStatus!]
template: Boolean
Expand Down Expand Up @@ -844,7 +844,7 @@ type Query @join__type(graph: API_ANALYTICS) @join__type(graph: API_JOURNEYS)
"""
status: [JourneyStatus!]
): [TemplateFamilyStatsBreakdownResponse!] @join__field(graph: API_JOURNEYS_MODERN)
getUserRole: UserRole @join__field(graph: API_JOURNEYS_MODERN, override: "api-journeys")
getUserRole: UserRole @join__field(graph: API_JOURNEYS_MODERN)
language(id: ID!, idType: LanguageIdType = databaseId) : Language @join__field(graph: API_LANGUAGES)
languages(offset: Int, limit: Int, where: LanguagesFilter, term: String) : [Language!]! @join__field(graph: API_LANGUAGES)
languagesCount(where: LanguagesFilter, term: String) : Int! @join__field(graph: API_LANGUAGES)
Expand Down Expand Up @@ -1320,11 +1320,11 @@ type VideoBlock implements Block @join__type(graph: API_JOURNEYS, key: "id") @j
subtitleLanguage: Language
showGeneratedSubtitles: Boolean
customizable: Boolean
mediaVideo: MediaVideo @join__field(graph: API_JOURNEYS_MODERN)
"""
Publisher notes for template adapters (e.g. trailer, intro).
"""
notes: String @join__field(graph: API_JOURNEYS_MODERN)
notes: String
mediaVideo: MediaVideo @join__field(graph: API_JOURNEYS_MODERN)
}

"""
Expand Down Expand Up @@ -3921,41 +3921,6 @@ input ButtonBlockSettingsInput @join__type(graph: API_JOURNEYS) @join__type(gra
color: String
}

input CardBlockCreateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
id: ID
journeyId: ID!
parentBlockId: ID!
eventLabel: BlockEventLabel
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

input CardBlockUpdateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
parentBlockId: ID
eventLabel: BlockEventLabel
coverBlockId: ID
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

input IconBlockCreateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
"""
ID should be unique Response UUID (Provided for optimistic mutation result matching)
"""
id: ID
parentBlockId: ID!
journeyId: ID!
name: IconName
color: IconColor
size: IconSize
}

input IconBlockUpdateInput @join__type(graph: API_JOURNEYS) @join__type(graph: API_JOURNEYS_MODERN) {
name: IconName
color: IconColor
Expand Down Expand Up @@ -4756,6 +4721,29 @@ input ButtonClickEventCreateInput @join__type(graph: API_JOURNEYS_MODERN) {
actionValue: String
}

input CardBlockCreateInput @join__type(graph: API_JOURNEYS_MODERN) {
id: ID
journeyId: ID!
parentBlockId: ID!
eventLabel: BlockEventLabel
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

input CardBlockUpdateInput @join__type(graph: API_JOURNEYS_MODERN) {
parentBlockId: ID
eventLabel: BlockEventLabel
coverBlockId: ID
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

input ChatActionInput @join__type(graph: API_JOURNEYS_MODERN) {
gtmEventName: String
chatUrl: String!
Expand Down Expand Up @@ -4800,6 +4788,18 @@ input GoogleSheetsSyncsFilter @join__type(graph: API_JOURNEYS_MODERN) {
integrationId: ID
}

input IconBlockCreateInput @join__type(graph: API_JOURNEYS_MODERN) {
"""
ID should be unique Response UUID (Provided for optimistic mutation result matching)
"""
id: ID
parentBlockId: ID!
journeyId: ID!
name: IconName
color: IconColor
size: IconSize
}

input IntegrationGoogleCreateInput @join__type(graph: API_JOURNEYS_MODERN) {
teamId: String!
code: String!
Expand Down
8 changes: 4 additions & 4 deletions apis/api-journeys-modern/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1337,14 +1337,14 @@ input MultiselectSubmissionEventCreateInput {
}

type Mutation {
buttonBlockCreate(input: ButtonBlockCreateInput!): ButtonBlock! @override(from: "api-journeys")
buttonBlockCreate(input: ButtonBlockCreateInput!): ButtonBlock!
buttonBlockUpdate(
id: ID!
input: ButtonBlockUpdateInput!

"""drop this parameter after merging teams"""
journeyId: ID
): ButtonBlock @override(from: "api-journeys")
): ButtonBlock
cardBlockCreate(input: CardBlockCreateInput!): CardBlock! @override(from: "api-journeys")
cardBlockUpdate(
id: ID!
Expand Down Expand Up @@ -1405,7 +1405,7 @@ type Mutation {
journeyAiTranslateCreate(input: JourneyAiTranslateInput!): Journey!
createJourneyEventsExportLog(input: JourneyEventsExportLogInput!): JourneyEventsExportLog!
journeyLanguageAiDetect(input: MutationJourneyLanguageAiDetectInput!): Boolean!
journeyProfileUpdate(input: JourneyProfileUpdateInput!): JourneyProfile! @override(from: "api-journeys")
journeyProfileUpdate(input: JourneyProfileUpdateInput!): JourneyProfile!
journeyVisitorExportToGoogleSheet(
journeyId: ID!
filter: JourneyEventsFilter
Expand Down Expand Up @@ -1795,7 +1795,7 @@ type Query {
"""
status: [JourneyStatus!]
): [TemplateFamilyStatsBreakdownResponse!]
getUserRole: UserRole @override(from: "api-journeys")
getUserRole: UserRole
}

type RadioOptionBlock implements Block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ builder.mutationField('buttonBlockCreate', (t) =>
t.withAuth({ $any: { isAuthenticated: true, isAnonymous: true } }).field({
type: ButtonBlock,
nullable: false,
override: {
from: 'api-journeys'
},
args: {
input: t.arg({ type: ButtonBlockCreateInput, required: true })
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ builder.mutationField('buttonBlockUpdate', (t) =>
t.withAuth({ $any: { isAuthenticated: true, isAnonymous: true } }).field({
type: ButtonBlock,
nullable: true,
override: {
from: 'api-journeys'
},
args: {
id: t.arg({ type: 'ID', required: true }),
input: t.arg({ type: ButtonBlockUpdateInput, required: true }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ builder.mutationField('cardBlockCreate', (t) =>
t.withAuth({ $any: { isAuthenticated: true, isAnonymous: true } }).field({
type: CardBlock,
nullable: false,
override: {
from: 'api-journeys'
},
args: {
input: t.arg({ type: CardBlockCreateInput, required: true })
},
override: {
from: 'api-journeys'
},
resolve: async (_parent, args, context) => {
const { input: initialInput } = args
const input = { ...initialInput }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ builder.mutationField('journeyProfileUpdate', (t) =>
.withAuth({ $any: { isAuthenticated: true, isAnonymous: true } })
.prismaField({
type: JourneyProfileRef,
override: {
from: 'api-journeys'
},
nullable: false,
args: {
input: t.arg({ type: JourneyProfileUpdateInput, required: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ builder.queryField('getUserRole', (t) =>
.prismaField({
type: UserRoleRef,
nullable: true,
override: {
from: 'api-journeys'
},
resolve: async (query, _parent, _args, context) => {
return await getUserRoleByUserId(context.user.id)
}
Expand Down
48 changes: 3 additions & 45 deletions apis/api-journeys/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ extend type Query {
hosts(teamId: ID!): [Host!]!
integrations(teamId: ID!): [Integration!]!
adminJourneysReport(reportType: JourneysReportType!): PowerBiEmbed
adminJourney(id: ID!, idType: IdType): Journey!
journeys(where: JourneysFilter, options: JourneysQueryOptions): [Journey!]!
journey(id: ID!, idType: IdType, options: JourneysQueryOptions): Journey!
journeyCollection(id: ID!): JourneyCollection!
Expand Down Expand Up @@ -339,15 +338,6 @@ type Mutation {

"""blockRestore is used for redo/undo"""
blockRestore(id: ID!): [Block!]!
cardBlockCreate(input: CardBlockCreateInput!): CardBlock!
cardBlockUpdate(
id: ID!
input: CardBlockUpdateInput!

"""drop this parameter after merging teams"""
journeyId: ID
): CardBlock!
iconBlockCreate(input: IconBlockCreateInput!): IconBlock!
iconBlockUpdate(
id: ID!
input: IconBlockUpdateInput!
Expand Down Expand Up @@ -609,29 +599,6 @@ type CardBlock implements Block
themeName: ThemeName @shareable
}

input CardBlockCreateInput {
id: ID
journeyId: ID!
parentBlockId: ID!
eventLabel: BlockEventLabel
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

input CardBlockUpdateInput {
parentBlockId: ID
eventLabel: BlockEventLabel
coverBlockId: ID
backgroundColor: String
backdropBlur: Int
fullscreen: Boolean
themeMode: ThemeMode
themeName: ThemeName
}

enum GridDirection {
columnReverse
column
Expand Down Expand Up @@ -739,18 +706,6 @@ type IconBlock implements Block
size: IconSize @shareable
}

input IconBlockCreateInput {
"""
ID should be unique Response UUID (Provided for optimistic mutation result matching)
"""
id: ID
parentBlockId: ID!
journeyId: ID!
name: IconName
color: IconColor
size: IconSize
}

input IconBlockUpdateInput {
name: IconName
color: IconColor
Expand Down Expand Up @@ -1277,6 +1232,9 @@ type VideoBlock implements Block
subtitleLanguage: Language @shareable
showGeneratedSubtitles: Boolean @shareable
customizable: Boolean @shareable

"""Publisher notes for template adapters (e.g. trailer, intro)."""
notes: String
}

"""
Expand Down
Loading
Loading