Skip to content

Commit

Permalink
added appLaunchURL mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
navelencia committed Nov 15, 2024
1 parent 84ddb92 commit 0ba9512
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ export const TOP_LEVEL_FIELDS: {
type: Array,
templatable: true,
},
appLaunchURL: {
required: false,
type: 'string',
templatable: true,
},
// Expiration Keys
expirationDate: {
type: 'string', // W3C date, as a string
Expand Down
15 changes: 15 additions & 0 deletions src/lib/base-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,21 @@ export class PassBase extends PassStructure {
else delete this.fields.associatedStoreIdentifiers;
}

/**
* A URL the system passes to the associated app from
* associatedStoreIdentifiers during launch.
*/
get appLaunchURL(): ApplePass['appLaunchURL'] {
return this.fields.appLaunchURL;
}
set appLaunchURL(v: ApplePass['appLaunchURL']) {
if (!v) {
delete this.fields.appLaunchURL;
} else {
this.fields.appLaunchURL = v;
}
}

/**
* Brief description of the pass, used by the iOS accessibility technologies.
* Don’t try to include all of the data on the pass in its description,
Expand Down

0 comments on commit 0ba9512

Please sign in to comment.