@pushwoosh/rpc-gateway-apple-passkit 0.1.28 → 0.1.29
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 +28 -0
- package/package.json +1 -1
- package/pushwoosh_passkit_v1.d.ts +13 -0
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",
|
|
@@ -617,6 +623,28 @@ export const data = {
|
|
|
617
623
|
}
|
|
618
624
|
}
|
|
619
625
|
},
|
|
626
|
+
"pushwoosh.passkit.v1.DownloadPassRequest": {
|
|
627
|
+
"type": "I",
|
|
628
|
+
"fields": {
|
|
629
|
+
"serialNumber": {
|
|
630
|
+
"type": "string"
|
|
631
|
+
},
|
|
632
|
+
"applicationCode": {
|
|
633
|
+
"type": "string"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"pushwoosh.passkit.v1.DownloadPassResponse": {
|
|
638
|
+
"type": "I",
|
|
639
|
+
"fields": {
|
|
640
|
+
"pkpassData": {
|
|
641
|
+
"type": "string"
|
|
642
|
+
},
|
|
643
|
+
"filename": {
|
|
644
|
+
"type": "string"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
},
|
|
620
648
|
"pushwoosh.passkit.v1.DeviceRegistration": {
|
|
621
649
|
"type": "I",
|
|
622
650
|
"fields": {
|
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -270,6 +273,16 @@ export type ListPassesRequest = {
|
|
|
270
273
|
export type ListPassesResponse = {
|
|
271
274
|
passes: PassRecord[];
|
|
272
275
|
};
|
|
276
|
+
/** Download pass request */
|
|
277
|
+
export type DownloadPassRequest = {
|
|
278
|
+
serialNumber: string;
|
|
279
|
+
applicationCode: string;
|
|
280
|
+
};
|
|
281
|
+
/** Download pass response */
|
|
282
|
+
export type DownloadPassResponse = {
|
|
283
|
+
pkpassData: string;
|
|
284
|
+
filename: string;
|
|
285
|
+
};
|
|
273
286
|
/** Device registration info */
|
|
274
287
|
export type DeviceRegistration = {
|
|
275
288
|
deviceLibraryIdentifier: string;
|