@pushwoosh/rpc-gateway-apple-passkit 0.1.26 → 0.1.27

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
@@ -41,6 +41,12 @@ export const data = {
41
41
  "method": "post",
42
42
  "path": "/api/pass/update/{serial_number}"
43
43
  },
44
+ "DeletePass": {
45
+ "request": "pushwoosh.passkit.v1.DeletePassRequest",
46
+ "response": "pushwoosh.passkit.v1.DeletePassResponse",
47
+ "method": "delete",
48
+ "path": "/api/pass/{application_code}/{serial_number}"
49
+ },
44
50
  "ListPasses": {
45
51
  "request": "pushwoosh.passkit.v1.ListPassesRequest",
46
52
  "response": "pushwoosh.passkit.v1.ListPassesResponse",
@@ -539,6 +545,28 @@ export const data = {
539
545
  }
540
546
  }
541
547
  },
548
+ "pushwoosh.passkit.v1.DeletePassRequest": {
549
+ "type": "I",
550
+ "fields": {
551
+ "serialNumber": {
552
+ "type": "string"
553
+ },
554
+ "applicationCode": {
555
+ "type": "string"
556
+ }
557
+ }
558
+ },
559
+ "pushwoosh.passkit.v1.DeletePassResponse": {
560
+ "type": "I",
561
+ "fields": {
562
+ "success": {
563
+ "type": "boolean"
564
+ },
565
+ "message": {
566
+ "type": "string"
567
+ }
568
+ }
569
+ },
542
570
  "pushwoosh.passkit.v1.PassRecord": {
543
571
  "type": "I",
544
572
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
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<{}, ListTemplatesResponse>;
6
6
  export type PassKitService_GetTemplate = RpcMethod<GetTemplateRequest, GetTemplateResponse>;
7
7
  export type PassKitService_UpdatePass = RpcMethod<UpdatePassRequest, UpdatePassResponse>;
8
+ export type PassKitService_DeletePass = RpcMethod<DeletePassRequest, DeletePassResponse>;
8
9
  export type PassKitService_ListPasses = RpcMethod<ListPassesRequest, ListPassesResponse>;
9
10
  export type PassKitService_GetPassRegistrations = RpcMethod<GetPassRegistrationsRequest, GetPassRegistrationsResponse>;
10
11
  /** PassKit Designer Service - Main API for pass creation and management */
@@ -21,6 +22,8 @@ export interface PassKitService {
21
22
  GetTemplate: PassKitService_GetTemplate;
22
23
  /** Update an existing pass */
23
24
  UpdatePass: PassKitService_UpdatePass;
25
+ /** Delete an existing pass */
26
+ DeletePass: PassKitService_DeletePass;
24
27
  /** List all passes */
25
28
  ListPasses: PassKitService_ListPasses;
26
29
  /** Get registrations for a pass */
@@ -236,6 +239,16 @@ export type UpdatePassResponse = {
236
239
  updateTag: number;
237
240
  message: string;
238
241
  };
242
+ /** Delete pass request */
243
+ export type DeletePassRequest = {
244
+ serialNumber: string;
245
+ applicationCode: string;
246
+ };
247
+ /** Delete pass response */
248
+ export type DeletePassResponse = {
249
+ success: boolean;
250
+ message: string;
251
+ };
239
252
  /** Pass record for listing */
240
253
  export type PassRecord = {
241
254
  serialNumber: string;