@pushwoosh/rpc-gateway-apple-passkit 0.1.28 → 0.1.30

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
@@ -53,6 +53,12 @@ export const data = {
53
53
  "method": "get",
54
54
  "path": "/api/passes"
55
55
  },
56
+ "DownloadPass": {
57
+ "request": "pushwoosh.passkit.v1.DownloadPassRequest",
58
+ "response": "pushwoosh.passkit.v1.DownloadPassResponse",
59
+ "method": "get",
60
+ "path": "/api/pass/{application_code}/{serial_number}/download"
61
+ },
56
62
  "GetPassRegistrations": {
57
63
  "request": "pushwoosh.passkit.v1.GetPassRegistrationsRequest",
58
64
  "response": "pushwoosh.passkit.v1.GetPassRegistrationsResponse",
@@ -354,9 +360,6 @@ export const data = {
354
360
  "voided": {
355
361
  "type": "boolean"
356
362
  },
357
- "webServiceURL": {
358
- "type": "string"
359
- },
360
363
  "authenticationToken": {
361
364
  "type": "string"
362
365
  },
@@ -617,6 +620,28 @@ export const data = {
617
620
  }
618
621
  }
619
622
  },
623
+ "pushwoosh.passkit.v1.DownloadPassRequest": {
624
+ "type": "I",
625
+ "fields": {
626
+ "serialNumber": {
627
+ "type": "string"
628
+ },
629
+ "applicationCode": {
630
+ "type": "string"
631
+ }
632
+ }
633
+ },
634
+ "pushwoosh.passkit.v1.DownloadPassResponse": {
635
+ "type": "I",
636
+ "fields": {
637
+ "pkpassData": {
638
+ "type": "string"
639
+ },
640
+ "filename": {
641
+ "type": "string"
642
+ }
643
+ }
644
+ },
620
645
  "pushwoosh.passkit.v1.DeviceRegistration": {
621
646
  "type": "I",
622
647
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,6 +7,7 @@ export type PassKitService_GetTemplate = RpcMethod<GetTemplateRequest, GetTempla
7
7
  export type PassKitService_UpdatePass = RpcMethod<UpdatePassRequest, UpdatePassResponse>;
8
8
  export type PassKitService_DeletePass = RpcMethod<DeletePassRequest, DeletePassResponse>;
9
9
  export type PassKitService_ListPasses = RpcMethod<ListPassesRequest, ListPassesResponse>;
10
+ export type PassKitService_DownloadPass = RpcMethod<DownloadPassRequest, DownloadPassResponse>;
10
11
  export type PassKitService_GetPassRegistrations = RpcMethod<GetPassRegistrationsRequest, GetPassRegistrationsResponse>;
11
12
  /** PassKit Designer Service - Main API for pass creation and management */
12
13
  export interface PassKitService {
@@ -26,6 +27,8 @@ export interface PassKitService {
26
27
  DeletePass: PassKitService_DeletePass;
27
28
  /** List all passes */
28
29
  ListPasses: PassKitService_ListPasses;
30
+ /** Download the .pkpass file of an already created pass */
31
+ DownloadPass: PassKitService_DownloadPass;
29
32
  /** Get registrations for a pass */
30
33
  GetPassRegistrations: PassKitService_GetPassRegistrations;
31
34
  }
@@ -160,7 +163,6 @@ export type Pass = {
160
163
  expirationDate: string;
161
164
  voided: boolean;
162
165
  /** Web Service */
163
- webServiceURL: string;
164
166
  authenticationToken: string;
165
167
  /** Advanced */
166
168
  groupingIdentifier: string;
@@ -270,6 +272,16 @@ export type ListPassesRequest = {
270
272
  export type ListPassesResponse = {
271
273
  passes: PassRecord[];
272
274
  };
275
+ /** Download pass request */
276
+ export type DownloadPassRequest = {
277
+ serialNumber: string;
278
+ applicationCode: string;
279
+ };
280
+ /** Download pass response */
281
+ export type DownloadPassResponse = {
282
+ pkpassData: string;
283
+ filename: string;
284
+ };
273
285
  /** Device registration info */
274
286
  export type DeviceRegistration = {
275
287
  deviceLibraryIdentifier: string;