@pushwoosh/rpc-gateway-apple-passkit 0.1.40 → 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
  },
@@ -441,6 +458,12 @@ export const data = {
441
458
  "method": "post",
442
459
  "path": "/api/pass/update/{serial_number}"
443
460
  },
461
+ "SendPassMessage": {
462
+ "request": "pushwoosh.passkit.v1.SendPassMessageRequest",
463
+ "response": "pushwoosh.passkit.v1.UpdatePassResponse",
464
+ "method": "post",
465
+ "path": "/api/pass/message/{serial_number}"
466
+ },
444
467
  "DeletePass": {
445
468
  "request": "pushwoosh.passkit.v1.DeletePassRequest",
446
469
  "response": "pushwoosh.passkit.v1.DeletePassResponse",
@@ -958,6 +981,20 @@ export const data = {
958
981
  }
959
982
  }
960
983
  },
984
+ "pushwoosh.passkit.v1.SendPassMessageRequest": {
985
+ "type": "I",
986
+ "fields": {
987
+ "serialNumber": {
988
+ "type": "string"
989
+ },
990
+ "text": {
991
+ "type": "string"
992
+ },
993
+ "applicationCode": {
994
+ "type": "string"
995
+ }
996
+ }
997
+ },
961
998
  "pushwoosh.passkit.v1.DeletePassRequest": {
962
999
  "type": "I",
963
1000
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.40",
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 = {
@@ -5,6 +5,7 @@ export type PassKitService_GetConfig = RpcMethod<GetConfigRequest, GetConfigResp
5
5
  export type PassKitService_ListTemplates = RpcMethod<ListTemplatesRequest, ListTemplatesResponse>;
6
6
  export type PassKitService_GetTemplate = RpcMethod<GetTemplateRequest, GetTemplateResponse>;
7
7
  export type PassKitService_UpdatePass = RpcMethod<UpdatePassRequest, UpdatePassResponse>;
8
+ export type PassKitService_SendPassMessage = RpcMethod<SendPassMessageRequest, UpdatePassResponse>;
8
9
  export type PassKitService_DeletePass = RpcMethod<DeletePassRequest, DeletePassResponse>;
9
10
  export type PassKitService_ListPasses = RpcMethod<ListPassesRequest, ListPassesResponse>;
10
11
  export type PassKitService_GetPass = RpcMethod<GetPassRequest, GetPassResponse>;
@@ -24,6 +25,13 @@ export interface PassKitService {
24
25
  GetTemplate: PassKitService_GetTemplate;
25
26
  /** Update an existing pass */
26
27
  UpdatePass: PassKitService_UpdatePass;
28
+ /**
29
+ * Send a lock-screen message to every device that installed the pass. Writes
30
+ * the text into a reserved hidden back field (with a changeMessage) and pushes;
31
+ * the field is cleared again shortly after so the back stays blank and the same
32
+ * text can be sent again later.
33
+ */
34
+ SendPassMessage: PassKitService_SendPassMessage;
27
35
  /** Delete an existing pass */
28
36
  DeletePass: PassKitService_DeletePass;
29
37
  /** List all passes */
@@ -253,6 +261,12 @@ export type UpdatePassResponse = {
253
261
  updateTag: number;
254
262
  message: string;
255
263
  };
264
+ /** Send pass message request */
265
+ export type SendPassMessageRequest = {
266
+ serialNumber: string;
267
+ text: string;
268
+ applicationCode: string;
269
+ };
256
270
  /** Delete pass request */
257
271
  export type DeletePassRequest = {
258
272
  serialNumber: string;