Skip to content

Commit 26a2e79

Browse files
committed
Add DefinePrinter and useDefault to printing Options
1 parent a2950fb commit 26a2e79

2 files changed

Lines changed: 205 additions & 189 deletions

File tree

actions/gls-action/src/types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,12 @@ export const PrintingOptionsSchema = z.object({
338338
"NONE", "D_200", "PF_4_I", "PF_4_I_200", "PF_4_I_300", "PF_8_D_200", "T_200_BF", "T_300_BF", "ZPL_200", "ZPL_200_TRACKID_EAN_128", "ZPL_200_TRACKID_CODE_39", "ZPL_200_REFNO_EAN_128", "ZPL_200_REFNO_CODE_39", "ZPL_300", "ZPL_300_TRACKID_EAN_128", "ZPL_300_TRACKID_CODE_39", "ZPL_300_REFNO_EAN_128", "ZPL_300_REFNO_CODE_39"
339339
]),
340340
LabelFormat: z.enum(["PDF", "ZEBRA", "INTERMEC", "DATAMAX", "TOSHIBA", "PNG"])
341-
})
341+
}).optional(),
342+
useDefault: z.string().max(7).optional(),
343+
DefinePrinter: z.object({
344+
LabelPrinter: z.string().max(255).optional(),
345+
DocumentPrinter: z.string().max(255).optional(),
346+
}).optional(),
342347
})
343348

344349
export type PrintingOptions = z.infer<typeof PrintingOptionsSchema>

0 commit comments

Comments
 (0)