@pushwoosh/rpc-gateway-apple-passkit 0.1.33 → 0.1.34
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 +25 -0
- package/package.json +1 -1
- package/pushwoosh_passkit_v1.d.ts +12 -0
package/data.js
CHANGED
|
@@ -53,6 +53,12 @@ export const data = {
|
|
|
53
53
|
"method": "get",
|
|
54
54
|
"path": "/api/passes"
|
|
55
55
|
},
|
|
56
|
+
"GetPass": {
|
|
57
|
+
"request": "pushwoosh.passkit.v1.GetPassRequest",
|
|
58
|
+
"response": "pushwoosh.passkit.v1.GetPassResponse",
|
|
59
|
+
"method": "get",
|
|
60
|
+
"path": "/api/pass/{application_code}/{serial_number}"
|
|
61
|
+
},
|
|
56
62
|
"DownloadPass": {
|
|
57
63
|
"request": "pushwoosh.passkit.v1.DownloadPassRequest",
|
|
58
64
|
"response": "pushwoosh.passkit.v1.DownloadPassResponse",
|
|
@@ -648,6 +654,25 @@ export const data = {
|
|
|
648
654
|
}
|
|
649
655
|
}
|
|
650
656
|
},
|
|
657
|
+
"pushwoosh.passkit.v1.GetPassRequest": {
|
|
658
|
+
"type": "I",
|
|
659
|
+
"fields": {
|
|
660
|
+
"serialNumber": {
|
|
661
|
+
"type": "string"
|
|
662
|
+
},
|
|
663
|
+
"applicationCode": {
|
|
664
|
+
"type": "string"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"pushwoosh.passkit.v1.GetPassResponse": {
|
|
669
|
+
"type": "I",
|
|
670
|
+
"fields": {
|
|
671
|
+
"pass": {
|
|
672
|
+
"type": "pushwoosh.passkit.v1.PassRecord"
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
},
|
|
651
676
|
"pushwoosh.passkit.v1.DeviceRegistration": {
|
|
652
677
|
"type": "I",
|
|
653
678
|
"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_GetPass = RpcMethod<GetPassRequest, GetPassResponse>;
|
|
10
11
|
export type PassKitService_DownloadPass = RpcMethod<DownloadPassRequest, DownloadPassResponse>;
|
|
11
12
|
export type PassKitService_GetPassRegistrations = RpcMethod<GetPassRegistrationsRequest, GetPassRegistrationsResponse>;
|
|
12
13
|
/** PassKit Designer Service - Main API for pass creation and management */
|
|
@@ -27,6 +28,8 @@ export interface PassKitService {
|
|
|
27
28
|
DeletePass: PassKitService_DeletePass;
|
|
28
29
|
/** List all passes */
|
|
29
30
|
ListPasses: PassKitService_ListPasses;
|
|
31
|
+
/** Get a single pass by serial number */
|
|
32
|
+
GetPass: PassKitService_GetPass;
|
|
30
33
|
/** Download the .pkpass file of an already created pass */
|
|
31
34
|
DownloadPass: PassKitService_DownloadPass;
|
|
32
35
|
/** Get registrations for a pass */
|
|
@@ -289,6 +292,15 @@ export type DownloadPassResponse = {
|
|
|
289
292
|
pkpassData: string;
|
|
290
293
|
filename: string;
|
|
291
294
|
};
|
|
295
|
+
/** Get pass request */
|
|
296
|
+
export type GetPassRequest = {
|
|
297
|
+
serialNumber: string;
|
|
298
|
+
applicationCode: string;
|
|
299
|
+
};
|
|
300
|
+
/** Get pass response */
|
|
301
|
+
export type GetPassResponse = {
|
|
302
|
+
pass: PassRecord;
|
|
303
|
+
};
|
|
292
304
|
/** Device registration info */
|
|
293
305
|
export type DeviceRegistration = {
|
|
294
306
|
deviceLibraryIdentifier: string;
|