@pushwoosh/rpc-gateway-apple-passkit 0.1.51 → 0.1.52

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
@@ -100,6 +100,17 @@ export const data = {
100
100
  }
101
101
  }
102
102
  },
103
+ "pushwoosh.googlewallet.v1.GoogleLocation": {
104
+ "type": "I",
105
+ "fields": {
106
+ "latitude": {
107
+ "type": "number"
108
+ },
109
+ "longitude": {
110
+ "type": "number"
111
+ }
112
+ }
113
+ },
103
114
  "pushwoosh.googlewallet.v1.GoogleBarcode": {
104
115
  "type": "I",
105
116
  "fields": {
@@ -158,6 +169,10 @@ export const data = {
158
169
  },
159
170
  "appLink": {
160
171
  "type": "pushwoosh.googlewallet.v1.GoogleAppLink"
172
+ },
173
+ "locations": {
174
+ "type": "pushwoosh.googlewallet.v1.GoogleLocation",
175
+ "array": true
161
176
  }
162
177
  }
163
178
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -77,6 +77,17 @@ export type GoogleAppLink = {
77
77
  */
78
78
  description: string;
79
79
  };
80
+ /**
81
+ * Location of interest (object.merchantLocations). Google shows a geofenced
82
+ * notification when a user dwells within a Google-set radius of the point.
83
+ * Maximum of 10 per pass.
84
+ */
85
+ export type GoogleLocation = {
86
+ /** -90.0 to +90.0 */
87
+ latitude: number;
88
+ /** -180.0 to +180.0 */
89
+ longitude: number;
90
+ };
80
91
  /** Barcode information */
81
92
  export type GoogleBarcode = {
82
93
  /** QR_CODE, PDF_417, AZTEC, CODE_128, EAN_13, ... */
@@ -117,6 +128,8 @@ export type GooglePass = {
117
128
  expirationTime: string;
118
129
  /** CTA button on the front of the pass; swappable per campaign. */
119
130
  appLink: GoogleAppLink;
131
+ /** Geofenced-notification points (max 10). */
132
+ locations: GoogleLocation[];
120
133
  };
121
134
  /** Get config request */
122
135
  export type GetConfigRequest = {