@pushwoosh/rpc-gateway-apple-passkit 0.1.54 → 0.1.56
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 +199 -1
- package/package.json +1 -1
- package/pushwoosh_googlewallet_v1.d.ts +152 -3
package/data.js
CHANGED
|
@@ -182,6 +182,185 @@ export const data = {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
+
"pushwoosh.googlewallet.v1.GoogleEventTicket": {
|
|
186
|
+
"type": "I",
|
|
187
|
+
"fields": {
|
|
188
|
+
"eventName": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"venueName": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"venueAddress": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"startDateTime": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
"endDateTime": {
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
"ticketHolderName": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"ticketNumber": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"ticketType": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"section": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"row": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"seat": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"gate": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"issuerName": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"pushwoosh.googlewallet.v1.GoogleGiftCard": {
|
|
230
|
+
"type": "I",
|
|
231
|
+
"fields": {
|
|
232
|
+
"merchantName": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
"cardNumber": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
"pin": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
"balance": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"balanceCurrency": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"issuerName": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"pushwoosh.googlewallet.v1.GoogleFlight": {
|
|
253
|
+
"type": "I",
|
|
254
|
+
"fields": {
|
|
255
|
+
"carrierIataCode": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"airlineName": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"flightNumber": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
"originAirportCode": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"originTerminal": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"originGate": {
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"destinationAirportCode": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"destinationTerminal": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"departureDateTime": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"boardingTime": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"passengerName": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"confirmationCode": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"seatNumber": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"seatClass": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
"boardingGroup": {
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"issuerName": {
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
"arrivalDateTime": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"pushwoosh.googlewallet.v1.GoogleTransitLeg": {
|
|
309
|
+
"type": "I",
|
|
310
|
+
"fields": {
|
|
311
|
+
"originName": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
"destinationName": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"departureDateTime": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"arrivalDateTime": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"platform": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
"coach": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
"seat": {
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"fareName": {
|
|
333
|
+
"type": "string"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"pushwoosh.googlewallet.v1.GoogleTransit": {
|
|
338
|
+
"type": "I",
|
|
339
|
+
"fields": {
|
|
340
|
+
"transitType": {
|
|
341
|
+
"type": "string"
|
|
342
|
+
},
|
|
343
|
+
"transitOperatorName": {
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
"passengerName": {
|
|
347
|
+
"type": "string"
|
|
348
|
+
},
|
|
349
|
+
"ticketNumber": {
|
|
350
|
+
"type": "string"
|
|
351
|
+
},
|
|
352
|
+
"tripType": {
|
|
353
|
+
"type": "string"
|
|
354
|
+
},
|
|
355
|
+
"legs": {
|
|
356
|
+
"type": "pushwoosh.googlewallet.v1.GoogleTransitLeg",
|
|
357
|
+
"array": true
|
|
358
|
+
},
|
|
359
|
+
"issuerName": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
185
364
|
"pushwoosh.googlewallet.v1.GoogleLocation": {
|
|
186
365
|
"type": "I",
|
|
187
366
|
"fields": {
|
|
@@ -251,6 +430,18 @@ export const data = {
|
|
|
251
430
|
},
|
|
252
431
|
"loyalty": {
|
|
253
432
|
"type": "pushwoosh.googlewallet.v1.GoogleLoyalty"
|
|
433
|
+
},
|
|
434
|
+
"eventTicket": {
|
|
435
|
+
"type": "pushwoosh.googlewallet.v1.GoogleEventTicket"
|
|
436
|
+
},
|
|
437
|
+
"giftCard": {
|
|
438
|
+
"type": "pushwoosh.googlewallet.v1.GoogleGiftCard"
|
|
439
|
+
},
|
|
440
|
+
"flight": {
|
|
441
|
+
"type": "pushwoosh.googlewallet.v1.GoogleFlight"
|
|
442
|
+
},
|
|
443
|
+
"transit": {
|
|
444
|
+
"type": "pushwoosh.googlewallet.v1.GoogleTransit"
|
|
254
445
|
}
|
|
255
446
|
},
|
|
256
447
|
"oneofs": {
|
|
@@ -258,7 +449,11 @@ export const data = {
|
|
|
258
449
|
"oneof": [
|
|
259
450
|
"generic",
|
|
260
451
|
"offer",
|
|
261
|
-
"loyalty"
|
|
452
|
+
"loyalty",
|
|
453
|
+
"eventTicket",
|
|
454
|
+
"giftCard",
|
|
455
|
+
"flight",
|
|
456
|
+
"transit"
|
|
262
457
|
]
|
|
263
458
|
}
|
|
264
459
|
}
|
|
@@ -354,6 +549,9 @@ export const data = {
|
|
|
354
549
|
},
|
|
355
550
|
"notifyMessage": {
|
|
356
551
|
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"notifyOnUpdate": {
|
|
554
|
+
"type": "boolean"
|
|
357
555
|
}
|
|
358
556
|
}
|
|
359
557
|
},
|
package/package.json
CHANGED
|
@@ -141,6 +141,129 @@ export type GoogleLoyalty = {
|
|
|
141
141
|
/** Shown on Google's "issued by" surfaces; defaults to program_name when empty. */
|
|
142
142
|
issuerName: string;
|
|
143
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* Event ticket pass data (maps to EventTicketClass/EventTicketObject;
|
|
146
|
+
* https://developers.google.com/wallet/tickets/events). Google renders its
|
|
147
|
+
* native event layout and surfaces the pass around the event start time.
|
|
148
|
+
*/
|
|
149
|
+
export type GoogleEventTicket = {
|
|
150
|
+
/** required */
|
|
151
|
+
eventName: string;
|
|
152
|
+
venueName: string;
|
|
153
|
+
venueAddress: string;
|
|
154
|
+
/** ISO 8601 with offset (e.g. "2026-07-01T19:30:00+02:00"). */
|
|
155
|
+
startDateTime: string;
|
|
156
|
+
endDateTime: string;
|
|
157
|
+
ticketHolderName: string;
|
|
158
|
+
ticketNumber: string;
|
|
159
|
+
/** e.g. "Adult", "VIP" */
|
|
160
|
+
ticketType: string;
|
|
161
|
+
section: string;
|
|
162
|
+
row: string;
|
|
163
|
+
seat: string;
|
|
164
|
+
gate: string;
|
|
165
|
+
/** Shown on Google's "issued by" surfaces; defaults to event_name when empty. */
|
|
166
|
+
issuerName: string;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Gift card pass data (maps to GiftCardClass/GiftCardObject;
|
|
170
|
+
* https://developers.google.com/wallet/retail/gift-cards).
|
|
171
|
+
*/
|
|
172
|
+
export type GoogleGiftCard = {
|
|
173
|
+
/** required */
|
|
174
|
+
merchantName: string;
|
|
175
|
+
/** required */
|
|
176
|
+
cardNumber: string;
|
|
177
|
+
pin: string;
|
|
178
|
+
/** Decimal amount, e.g. "25.00"; balance_currency is required with it. */
|
|
179
|
+
balance: string;
|
|
180
|
+
/** ISO 4217, e.g. "USD" */
|
|
181
|
+
balanceCurrency: string;
|
|
182
|
+
/** Shown on Google's "issued by" surfaces; defaults to merchant_name when empty. */
|
|
183
|
+
issuerName: string;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Flight boarding pass data (maps to FlightClass/FlightObject;
|
|
187
|
+
* https://developers.google.com/wallet/tickets/boarding-passes). Google
|
|
188
|
+
* renders its native boarding pass layout and live flight status.
|
|
189
|
+
*/
|
|
190
|
+
export type GoogleFlight = {
|
|
191
|
+
/** required; 2-letter IATA code, e.g. "LX" */
|
|
192
|
+
carrierIataCode: string;
|
|
193
|
+
/** Airline display name next to the logo; also the issuerName default. */
|
|
194
|
+
airlineName: string;
|
|
195
|
+
/** required; digits only, e.g. "113" */
|
|
196
|
+
flightNumber: string;
|
|
197
|
+
/** required; 3-letter IATA code */
|
|
198
|
+
originAirportCode: string;
|
|
199
|
+
originTerminal: string;
|
|
200
|
+
originGate: string;
|
|
201
|
+
/** required; 3-letter IATA code */
|
|
202
|
+
destinationAirportCode: string;
|
|
203
|
+
destinationTerminal: string;
|
|
204
|
+
/**
|
|
205
|
+
* Scheduled departure in the origin airport's LOCAL time, ISO 8601 without
|
|
206
|
+
* a UTC offset (e.g. "2026-09-01T06:30:00") - a Google requirement.
|
|
207
|
+
*/
|
|
208
|
+
departureDateTime: string;
|
|
209
|
+
/** same local format */
|
|
210
|
+
boardingTime: string;
|
|
211
|
+
/** required */
|
|
212
|
+
passengerName: string;
|
|
213
|
+
confirmationCode: string;
|
|
214
|
+
seatNumber: string;
|
|
215
|
+
seatClass: string;
|
|
216
|
+
boardingGroup: string;
|
|
217
|
+
/**
|
|
218
|
+
* Shown on Google's "issued by" surfaces; defaults to airline_name, then
|
|
219
|
+
* the carrier code.
|
|
220
|
+
*/
|
|
221
|
+
issuerName: string;
|
|
222
|
+
/**
|
|
223
|
+
* Scheduled arrival in the DESTINATION airport's local time, same format
|
|
224
|
+
* as departure_date_time.
|
|
225
|
+
*/
|
|
226
|
+
arrivalDateTime: string;
|
|
227
|
+
};
|
|
228
|
+
/** One journey segment of a transit ticket (TransitObject.ticketLeg(s)). */
|
|
229
|
+
export type GoogleTransitLeg = {
|
|
230
|
+
/** required */
|
|
231
|
+
originName: string;
|
|
232
|
+
/** required */
|
|
233
|
+
destinationName: string;
|
|
234
|
+
/** ISO 8601; a UTC offset is allowed but optional (local time when omitted). */
|
|
235
|
+
departureDateTime: string;
|
|
236
|
+
arrivalDateTime: string;
|
|
237
|
+
platform: string;
|
|
238
|
+
coach: string;
|
|
239
|
+
seat: string;
|
|
240
|
+
/** e.g. "Anytime Single" */
|
|
241
|
+
fareName: string;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Transit ticket data (maps to TransitClass/TransitObject;
|
|
245
|
+
* https://developers.google.com/wallet/tickets/transit-passes): rail, bus,
|
|
246
|
+
* ferry and other ground transport. Note: Google requires a logo, so
|
|
247
|
+
* logo_url is mandatory for transit passes.
|
|
248
|
+
*/
|
|
249
|
+
export type GoogleTransit = {
|
|
250
|
+
/** required: BUS | RAIL | TRAM | FERRY | OTHER */
|
|
251
|
+
transitType: string;
|
|
252
|
+
/** required; also the issuerName default */
|
|
253
|
+
transitOperatorName: string;
|
|
254
|
+
/** required */
|
|
255
|
+
passengerName: string;
|
|
256
|
+
ticketNumber: string;
|
|
257
|
+
/** ONE_WAY | ROUND_TRIP; empty defaults to ONE_WAY. */
|
|
258
|
+
tripType: string;
|
|
259
|
+
/**
|
|
260
|
+
* Journey segments in travel order (at least one). A round trip is two
|
|
261
|
+
* legs; connections are additional legs.
|
|
262
|
+
*/
|
|
263
|
+
legs: GoogleTransitLeg[];
|
|
264
|
+
/** Shown on Google's "issued by" surfaces; defaults to transit_operator_name. */
|
|
265
|
+
issuerName: string;
|
|
266
|
+
};
|
|
144
267
|
/**
|
|
145
268
|
* Location of interest (object.merchantLocations). Google shows a geofenced
|
|
146
269
|
* notification when a user dwells within a Google-set radius of the point.
|
|
@@ -171,7 +294,23 @@ export type GooglePass_style_loyalty = {
|
|
|
171
294
|
type: 'loyalty';
|
|
172
295
|
data: GoogleLoyalty;
|
|
173
296
|
};
|
|
174
|
-
export type
|
|
297
|
+
export type GooglePass_style_eventTicket = {
|
|
298
|
+
type: 'eventTicket';
|
|
299
|
+
data: GoogleEventTicket;
|
|
300
|
+
};
|
|
301
|
+
export type GooglePass_style_giftCard = {
|
|
302
|
+
type: 'giftCard';
|
|
303
|
+
data: GoogleGiftCard;
|
|
304
|
+
};
|
|
305
|
+
export type GooglePass_style_flight = {
|
|
306
|
+
type: 'flight';
|
|
307
|
+
data: GoogleFlight;
|
|
308
|
+
};
|
|
309
|
+
export type GooglePass_style_transit = {
|
|
310
|
+
type: 'transit';
|
|
311
|
+
data: GoogleTransit;
|
|
312
|
+
};
|
|
313
|
+
export type GooglePass_style = GooglePass_style_generic | GooglePass_style_offer | GooglePass_style_loyalty | GooglePass_style_eventTicket | GooglePass_style_giftCard | GooglePass_style_flight | GooglePass_style_transit;
|
|
175
314
|
/** Pass object data; style-specific fields live in the oneof. */
|
|
176
315
|
export type GooglePass = {
|
|
177
316
|
/**
|
|
@@ -246,6 +385,16 @@ export type UpdatePassRequest = {
|
|
|
246
385
|
* who saved the pass; empty means a silent update.
|
|
247
386
|
*/
|
|
248
387
|
notifyMessage: string;
|
|
388
|
+
/**
|
|
389
|
+
* When true, ask Google to notify users about changed fields
|
|
390
|
+
* (notifyPreference=NOTIFY_ON_UPDATE). Google renders the notification text
|
|
391
|
+
* itself and only loyalty, event ticket and flight passes have notifiable
|
|
392
|
+
* fields (loyalty points/tier/program name; event name/venue/time/seat;
|
|
393
|
+
* flight seat) - a no-op for the other styles. Event and flight
|
|
394
|
+
* notifications fire only within 3 hours of the start time. Quota: 3
|
|
395
|
+
* field-update notifications per pass per 24h.
|
|
396
|
+
*/
|
|
397
|
+
notifyOnUpdate: boolean;
|
|
249
398
|
};
|
|
250
399
|
/** Update pass response */
|
|
251
400
|
export type UpdatePassResponse = {
|
|
@@ -285,7 +434,7 @@ export type GooglePassRecord = {
|
|
|
285
434
|
updatedAt: Date;
|
|
286
435
|
/** ACTIVE, INACTIVE */
|
|
287
436
|
state: string;
|
|
288
|
-
/** generic, offer, loyalty */
|
|
437
|
+
/** generic, offer, loyalty, eventTicket, giftCard, flight, transit */
|
|
289
438
|
style: string;
|
|
290
439
|
};
|
|
291
440
|
/** Set pass state request */
|
|
@@ -326,7 +475,7 @@ export type GoogleTemplateInfo = {
|
|
|
326
475
|
filename: string;
|
|
327
476
|
name: string;
|
|
328
477
|
description: string;
|
|
329
|
-
/** generic, offer, loyalty */
|
|
478
|
+
/** generic, offer, loyalty, eventTicket, giftCard, flight, transit */
|
|
330
479
|
style: string;
|
|
331
480
|
};
|
|
332
481
|
export type ListTemplatesRequest = {};
|