Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changeset/template-header-fields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@passmint/node': minor
---

Add the optional `headerFields` slot to `TemplateDesign`, so templates created or updated through the SDK can place small fields in the pass header (top-right, next to the logo).
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export interface TemplateDesign {
iconImageKey: string | null
stripImageKey: string | null
thumbnailImageKey: string | null
/**
* Small fields shown top-right of the pass, next to the logo (Apple slot,
* max 3). Optional — omit for templates that don't use them.
*/
headerFields?: TemplateField[]
primaryFields: TemplateField[]
secondaryFields: TemplateField[]
auxiliaryFields: TemplateField[]
Expand Down
Loading