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

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
@@ -441,6 +441,12 @@ export const data = {
441
441
  "method": "post",
442
442
  "path": "/api/pass/update/{serial_number}"
443
443
  },
444
+ "SendPassMessage": {
445
+ "request": "pushwoosh.passkit.v1.SendPassMessageRequest",
446
+ "response": "pushwoosh.passkit.v1.UpdatePassResponse",
447
+ "method": "post",
448
+ "path": "/api/pass/message/{serial_number}"
449
+ },
444
450
  "DeletePass": {
445
451
  "request": "pushwoosh.passkit.v1.DeletePassRequest",
446
452
  "response": "pushwoosh.passkit.v1.DeletePassResponse",
@@ -958,6 +964,20 @@ export const data = {
958
964
  }
959
965
  }
960
966
  },
967
+ "pushwoosh.passkit.v1.SendPassMessageRequest": {
968
+ "type": "I",
969
+ "fields": {
970
+ "serialNumber": {
971
+ "type": "string"
972
+ },
973
+ "text": {
974
+ "type": "string"
975
+ },
976
+ "applicationCode": {
977
+ "type": "string"
978
+ }
979
+ }
980
+ },
961
981
  "pushwoosh.passkit.v1.DeletePassRequest": {
962
982
  "type": "I",
963
983
  "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.41",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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;