Skip to content

Commit

Permalink
feat: add tixly ticket system
Browse files Browse the repository at this point in the history
KK-1215 KK-1219.

Add the Tixly external ticket system next to Ticketmaster and
Lippupiste. The implementation is the same between the all 3 of them.
  • Loading branch information
nikomakela committed Oct 22, 2024
1 parent 9ab5966 commit 0ea21cf
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/common/translation/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
},
"LIPPUPISTE": {
"label": "Lippupiste"
},
"TIXLY": {
"label": "Tixly"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/common/translation/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
},
"LIPPUPISTE": {
"label": "Lippupiste"
},
"TIXLY": {
"label": "Tixly"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/common/translation/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
},
"LIPPUPISTE": {
"label": "Lippupiste"
},
"TIXLY": {
"label": "Tixly"
}
}
},
Expand Down
70 changes: 62 additions & 8 deletions src/domain/api/generatedTypes/graphql.tsx

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/domain/events/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ export const ticketSystemChoices = [
id: TicketSystem.Lippupiste,
name: 'events.fields.ticketSystem.choices.LIPPUPISTE.label',
},
{
id: TicketSystem.Tixly,
name: 'events.fields.ticketSystem.choices.TIXLY.label',
},
];
8 changes: 8 additions & 0 deletions src/domain/events/mutations/EventMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const addEventMutation = gql`
url
endTime
}
... on TixlyEventTicketSystem {
url
endTime
}
}
translations {
languageCode
Expand Down Expand Up @@ -66,6 +70,10 @@ export const updateEventMutation = gql`
url
endTime
}
... on TixlyEventTicketSystem {
url
endTime
}
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions src/domain/events/queries/EventQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const eventsQuery = gql`
url
endTime
}
... on TixlyEventTicketSystem {
url
endTime
}
}
}
}
Expand Down Expand Up @@ -92,6 +96,12 @@ export const eventQuery = gql`
url
endTime
}
... on TixlyEventTicketSystem {
usedPasswordCount
freePasswordCount
url
endTime
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/domain/occurrences/mutations/OccurrenceMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export const addOccurrenceMutation = gql`
... on LippupisteOccurrenceTicketSystem {
url
}
... on TixlyOccurrenceTicketSystem {
url
}
}
}
}
Expand Down Expand Up @@ -87,6 +90,9 @@ export const updateOccurrenceMutation = gql`
... on LippupisteOccurrenceTicketSystem {
url
}
... on TixlyOccurrenceTicketSystem {
url
}
}
}
}
Expand Down

0 comments on commit 0ea21cf

Please sign in to comment.