Skip to content

Commit

Permalink
attempt for CSVTicketPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrliu committed Jan 8, 2025
1 parent 6cea67c commit fe4fada
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,13 @@ 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
};

const pcd = await EdDSATicketPCDPackage.prove({
Expand Down Expand Up @@ -368,7 +374,13 @@ 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
};

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 fe4fada

Please sign in to comment.