@pushwoosh/rpc-gateway-apple-passkit 0.1.41 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/data.js CHANGED
@@ -86,6 +86,20 @@ export const data = {
86
86
  }
87
87
  }
88
88
  },
89
+ "pushwoosh.googlewallet.v1.GoogleAppLink": {
90
+ "type": "I",
91
+ "fields": {
92
+ "uri": {
93
+ "type": "string"
94
+ },
95
+ "androidPackageName": {
96
+ "type": "string"
97
+ },
98
+ "description": {
99
+ "type": "string"
100
+ }
101
+ }
102
+ },
89
103
  "pushwoosh.googlewallet.v1.GoogleBarcode": {
90
104
  "type": "I",
91
105
  "fields": {
@@ -141,6 +155,9 @@ export const data = {
141
155
  },
142
156
  "expirationTime": {
143
157
  "type": "string"
158
+ },
159
+ "appLink": {
160
+ "type": "pushwoosh.googlewallet.v1.GoogleAppLink"
144
161
  }
145
162
  }
146
163
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -59,6 +59,24 @@ export type GoogleLinkModule = {
59
59
  uri: string;
60
60
  description: string;
61
61
  };
62
+ /**
63
+ * App link - the prominent CTA button on the front of the pass
64
+ * (object.appLinkData). Unlike `links` (reference URLs in the details view),
65
+ * this opens an app or website. Can be swapped per campaign via UpdatePass; once
66
+ * set, Google does not allow removing it via update, only overwriting.
67
+ */
68
+ export type GoogleAppLink = {
69
+ /** web URL, or the deep-link target URI */
70
+ uri: string;
71
+ /** optional; when set, opens the Android app */
72
+ androidPackageName: string;
73
+ /**
74
+ * Optional. Google requires a description on the target URI; it is internal
75
+ * (not a visible button label — Google renders the button itself). Defaults
76
+ * to the URI when empty.
77
+ */
78
+ description: string;
79
+ };
62
80
  /** Barcode information */
63
81
  export type GoogleBarcode = {
64
82
  /** QR_CODE, PDF_417, AZTEC, CODE_128, EAN_13, ... */
@@ -97,6 +115,8 @@ export type GooglePass = {
97
115
  * (validTimeInterval.end). Empty means no expiry.
98
116
  */
99
117
  expirationTime: string;
118
+ /** CTA button on the front of the pass; swappable per campaign. */
119
+ appLink: GoogleAppLink;
100
120
  };
101
121
  /** Get config request */
102
122
  export type GetConfigRequest = {