@pushwoosh/rpc-gateway-apple-passkit 0.1.55 → 0.1.57

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
@@ -386,6 +386,15 @@ export const data = {
386
386
  }
387
387
  }
388
388
  },
389
+ "pushwoosh.googlewallet.v1.GooglePass.HoldersPolicy": {
390
+ "type": "E",
391
+ "values": [
392
+ "HOLDERS_POLICY_UNSPECIFIED",
393
+ "ONE_USER_ALL_DEVICES",
394
+ "MULTIPLE_HOLDERS",
395
+ "ONE_USER_ONE_DEVICE"
396
+ ]
397
+ },
389
398
  "pushwoosh.googlewallet.v1.GooglePass": {
390
399
  "type": "I",
391
400
  "fields": {
@@ -422,6 +431,9 @@ export const data = {
422
431
  "type": "pushwoosh.googlewallet.v1.GoogleLocation",
423
432
  "array": true
424
433
  },
434
+ "holdersPolicy": {
435
+ "type": "pushwoosh.googlewallet.v1.GooglePass.HoldersPolicy"
436
+ },
425
437
  "generic": {
426
438
  "type": "pushwoosh.googlewallet.v1.GoogleGeneric"
427
439
  },
@@ -549,6 +561,9 @@ export const data = {
549
561
  },
550
562
  "notifyMessage": {
551
563
  "type": "string"
564
+ },
565
+ "notifyOnUpdate": {
566
+ "type": "boolean"
552
567
  }
553
568
  }
554
569
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -282,6 +282,16 @@ export type GoogleBarcode = {
282
282
  value: string;
283
283
  altText: string;
284
284
  };
285
+ /** Who may save the pass (Google's multipleDevicesAndHoldersAllowedStatus). */
286
+ export type GooglePass_HoldersPolicy =
287
+ /** Treated as ONE_USER_ALL_DEVICES: passes are issued to a specific user_id. */
288
+ 'HOLDERS_POLICY_UNSPECIFIED'
289
+ /** One Google account, all its devices. */
290
+ | 'ONE_USER_ALL_DEVICES'
291
+ /** Anyone with the save link; all holders see the same object. */
292
+ | 'MULTIPLE_HOLDERS'
293
+ /** A single device of a single account. */
294
+ | 'ONE_USER_ONE_DEVICE';
285
295
  export type GooglePass_style_generic = {
286
296
  type: 'generic';
287
297
  data: GoogleGeneric;
@@ -336,6 +346,7 @@ export type GooglePass = {
336
346
  appLink: GoogleAppLink;
337
347
  /** Geofenced-notification points (max 10). */
338
348
  locations: GoogleLocation[];
349
+ holdersPolicy: GooglePass_HoldersPolicy;
339
350
  style: GooglePass_style;
340
351
  };
341
352
  /** Get config request */
@@ -385,6 +396,16 @@ export type UpdatePassRequest = {
385
396
  * who saved the pass; empty means a silent update.
386
397
  */
387
398
  notifyMessage: string;
399
+ /**
400
+ * When true, ask Google to notify users about changed fields
401
+ * (notifyPreference=NOTIFY_ON_UPDATE). Google renders the notification text
402
+ * itself and only loyalty, event ticket and flight passes have notifiable
403
+ * fields (loyalty points/tier/program name; event name/venue/time/seat;
404
+ * flight seat) - a no-op for the other styles. Event and flight
405
+ * notifications fire only within 3 hours of the start time. Quota: 3
406
+ * field-update notifications per pass per 24h.
407
+ */
408
+ notifyOnUpdate: boolean;
388
409
  };
389
410
  /** Update pass response */
390
411
  export type UpdatePassResponse = {