Skip to content

Commit

Permalink
0XP-1703: Add carousel imageOptions for CSVTicketPipeline (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrliu authored Jan 8, 2025
1 parent 6cea67c commit 45d7ab2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,14 @@ export class CSVTicketPipeline implements BasePipeline {
timestampConsumed: 0,
timestampSigned: new Date().getTime(),
isConsumed: false,
isRevoked: false
isRevoked: false,
imageUrl: this.definition.options.imageOptions?.imageUrl,
qrCodeOverrideImageUrl:
atom.imageUrl ||
this.definition.options.imageOptions?.qrCodeOverrideImageUrl,
eventLocation: this.definition.options.imageOptions?.eventLocation,
eventStartDate: this.definition.options.imageOptions?.eventStartDate,
accentColor: this.definition.options.imageOptions?.accentColor
};

const pcd = await EdDSATicketPCDPackage.prove({
Expand Down Expand Up @@ -368,7 +375,14 @@ export class CSVTicketPipeline implements BasePipeline {
timestampConsumed: 0,
timestampSigned: new Date().getTime(),
isConsumed: false,
isRevoked: false
isRevoked: false,
imageUrl: this.definition.options.imageOptions?.imageUrl,
qrCodeOverrideImageUrl:
atom.imageUrl ||
this.definition.options.imageOptions?.qrCodeOverrideImageUrl,
eventLocation: this.definition.options.imageOptions?.eventLocation,
eventStartDate: this.definition.options.imageOptions?.eventStartDate,
accentColor: this.definition.options.imageOptions?.accentColor
};

const pcd = await PODTicketPCDPackage.prove({
Expand Down
3 changes: 2 additions & 1 deletion packages/lib/passport-interface/src/genericIssuanceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ const CSVTicketPipelineOptionsSchema = BasePipelineOptionsSchema.extend({
feedOptions: FeedIssuanceOptionsSchema,
pcdTypes: z.array(z.enum(["EdDSATicketPCD", "PODTicketPCD"])).min(1),
issueToUnmatchedEmail: z.boolean().optional(),
semaphoreGroupName: z.string().optional()
semaphoreGroupName: z.string().optional(),
imageOptions: ImageOptionsSchema.optional()
});

export type CSVTicketPipelineOptions = z.infer<
Expand Down

0 comments on commit 45d7ab2

Please sign in to comment.