@pushwoosh/rpc-gateway-apple-passkit 0.1.114 → 0.1.115

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
@@ -1279,6 +1279,9 @@ export const data = {
1279
1279
  },
1280
1280
  "message": {
1281
1281
  "type": "string"
1282
+ },
1283
+ "installLink": {
1284
+ "type": "string"
1282
1285
  }
1283
1286
  }
1284
1287
  },
@@ -1557,6 +1560,9 @@ export const data = {
1557
1560
  "fields": {
1558
1561
  "pass": {
1559
1562
  "type": "pushwoosh.passkit.v1.PassRecord"
1563
+ },
1564
+ "installLink": {
1565
+ "type": "string"
1560
1566
  }
1561
1567
  }
1562
1568
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -13,34 +13,29 @@ export type PassKitService_DownloadPass = RpcMethod<DownloadPassRequest, Downloa
13
13
  export type PassKitService_GetPassRegistrations = RpcMethod<GetPassRegistrationsRequest, GetPassRegistrationsResponse>;
14
14
  /** PassKit Designer Service - Main API for pass creation and management */
15
15
  export interface PassKitService {
16
- /** Validate a pass configuration */
16
+ /** Checks an Apple Wallet pass definition against Apple's rules without creating anything; returns errors and warnings. Use before create_apple_wallet_pass. */
17
17
  ValidatePass: PassKitService_ValidatePass;
18
- /** Create a new pass (.pkpass file) */
18
+ /** Creates one standalone Apple Wallet pass (.pkpass) for an application (code XXXXX-XXXXX), signed with the application's Pass Type ID certificate; icon and logo images are required, passed as bytes. Returns the serial number and the install link to send. For one design issued to many users use create_wallet_campaign instead. */
19
19
  CreatePass: PassKitService_CreatePass;
20
- /** Get server configuration */
20
+ /** Reports whether Apple Wallet is set up for an application (code XXXXX-XXXXX): has_certificate, the Pass Type ID, the Apple Team ID and the web service URL install links are built on. has_certificate=false means the setup has not been done yet. */
21
21
  GetConfig: PassKitService_GetConfig;
22
- /** List available templates */
22
+ /** Lists the built-in Apple Wallet pass templates (boarding pass, coupon, event ticket, generic, store card) to start a design from. */
23
23
  ListTemplates: PassKitService_ListTemplates;
24
- /** Get a specific template */
24
+ /** Returns one built-in Apple Wallet pass template (filename from list_apple_wallet_templates) as a full pass definition to adapt. */
25
25
  GetTemplate: PassKitService_GetTemplate;
26
- /** Update an existing pass */
26
+ /** Updates a standalone Apple Wallet pass by serial number and pushes the change to every device that added it; holders keep the same card. */
27
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
- */
28
+ /** Shows a lock-screen message on every device that added the Apple Wallet pass (serial number), without changing the pass content. */
34
29
  SendPassMessage: PassKitService_SendPassMessage;
35
- /** Delete an existing pass */
30
+ /** Deletes a standalone Apple Wallet pass by serial number; it stops updating on devices that added it. */
36
31
  DeletePass: PassKitService_DeletePass;
37
- /** List all passes */
32
+ /** Lists the Apple Wallet passes of an application (code XXXXX-XXXXX), newest first by default; page is zero-based. */
38
33
  ListPasses: PassKitService_ListPasses;
39
- /** Get a single pass by serial number */
34
+ /** Returns one Apple Wallet pass by serial number with its definition and install link. */
40
35
  GetPass: PassKitService_GetPass;
41
- /** Download the .pkpass file of an already created pass */
36
+ /** Returns the signed .pkpass file of an existing Apple Wallet pass as bytes. */
42
37
  DownloadPass: PassKitService_DownloadPass;
43
- /** Get registrations for a pass */
38
+ /** Lists the devices that added an Apple Wallet pass (serial number): how many holders actually installed it. */
44
39
  GetPassRegistrations: PassKitService_GetPassRegistrations;
45
40
  }
46
41
  /** Pass Field - represents a field in the pass */
@@ -216,6 +211,8 @@ export type CreatePassResponse = {
216
211
  */
217
212
  serialNumber: string;
218
213
  message: string;
214
+ /** Link a recipient opens to add the pass to Apple Wallet (also good for a QR code). */
215
+ installLink: string;
219
216
  };
220
217
  /** Get config response */
221
218
  export type GetConfigResponse = {
@@ -345,6 +342,8 @@ export type GetPassRequest = {
345
342
  /** Get pass response */
346
343
  export type GetPassResponse = {
347
344
  pass: PassRecord;
345
+ /** Link a recipient opens to add the pass to Apple Wallet. */
346
+ installLink: string;
348
347
  };
349
348
  /** Device registration info */
350
349
  export type DeviceRegistration = {
@@ -17,35 +17,31 @@ export type WalletCampaignService_DeletePassOverride = RpcMethod<DeletePassOverr
17
17
  * and the shared field values, issued passes hold only what is theirs.
18
18
  */
19
19
  export interface WalletCampaignService {
20
+ /** Creates a Wallet Pass Campaign: one pass design (design_json, the same shape as an Apple pass definition) issued to many users of an application (code XXXXX-XXXXX). shared_fields hold the values every pass shows and update everywhere when changed; personal_fields are per user, from a tag or from input at issue time. images map a slot (icon, logo, strip, background, footer, thumbnail) to a media file uuid from create_media_file; icon is required. A new campaign is a draft: set status ACTIVE to issue and to run tag sync. Platform and pass style cannot change later. */
20
21
  CreateCampaign: WalletCampaignService_CreateCampaign;
22
+ /** Lists the Wallet Pass Campaigns of an application (code XXXXX-XXXXX) with how many passes each issued. */
21
23
  ListCampaigns: WalletCampaignService_ListCampaigns;
24
+ /** Returns one Wallet Pass Campaign: design, shared and personal fields, images, status and the current revision a patch must quote. */
22
25
  GetCampaign: WalletCampaignService_GetCampaign;
23
- /**
24
- * Patch the campaign and propagate shared field changes to its passes.
25
- * Answers 202: delivery runs in a job. dry_run only reports the impact.
26
- */
26
+ /** Changes a Wallet Pass Campaign and delivers the change to every issued pass in a background job. Quote revision from get_wallet_campaign and list every changed field in update_mask (an empty mask is refused). Passes where a field was edited by hand keep it unless force_overwrite. Run with dry_run=true first to show how many passes it touches; returns the job id to follow with get_wallet_campaign_job. */
27
27
  PatchCampaign: WalletCampaignService_PatchCampaign;
28
- /**
29
- * Delete the campaign. Shared values are materialized into its passes first,
30
- * so already issued passes keep working as standalone.
31
- */
28
+ /** Deletes a Wallet Pass Campaign. Issued passes keep working as standalone passes with the campaign's last values; only the shared editing is gone. */
32
29
  DeleteCampaign: WalletCampaignService_DeleteCampaign;
30
+ /** Lists the change history of a Wallet Pass Campaign: who changed what, and the delivery job of each change. */
33
31
  ListCampaignRevisions: WalletCampaignService_ListCampaignRevisions;
34
- /**
35
- * Issue one pass from the campaign: only personal values travel in, shared
36
- * ones come from the campaign at render time.
37
- */
32
+ /** Issues one pass from a Wallet Pass Campaign to a user (Pushwoosh User ID). Only personal values with source INPUT are passed; shared and tag values come from the campaign. Returns the install link to send to the user. */
38
33
  IssuePass: WalletCampaignService_IssuePass;
34
+ /** Lists the passes issued from a Wallet Pass Campaign; query matches serial number, User ID or barcode. */
39
35
  ListCampaignPasses: WalletCampaignService_ListCampaignPasses;
40
- /**
41
- * Attach standalone passes to the campaign. Values differing from the
42
- * campaign become overrides instead of being silently replaced.
43
- */
36
+ /** Attaches existing standalone passes (serial numbers) to a Wallet Pass Campaign of the same style; differing values are kept as hand edits. */
44
37
  AttachPasses: WalletCampaignService_AttachPasses;
38
+ /** Returns the progress of a Wallet Pass Campaign delivery job: passes updated, skipped, failed, and the failures. */
45
39
  GetJob: WalletCampaignService_GetJob;
40
+ /** Retries the failed passes of a Wallet Pass Campaign delivery job. */
46
41
  RetryJob: WalletCampaignService_RetryJob;
42
+ /** Stops a running Wallet Pass Campaign delivery job; passes already updated stay updated. */
47
43
  CancelJob: WalletCampaignService_CancelJob;
48
- /** Drop one override so the field takes the campaign value again. */
44
+ /** Drops the hand edit of one field on one campaign pass so it shows the campaign value again. */
49
45
  DeletePassOverride: WalletCampaignService_DeletePassOverride;
50
46
  }
51
47
  export type Platform = 'PLATFORM_UNSPECIFIED' | 'PLATFORM_APPLE' | 'PLATFORM_GOOGLE';
@@ -161,13 +157,20 @@ export type CampaignPass = {
161
157
  updatedAt: Date;
162
158
  };
163
159
  export type CreateCampaignRequest = {
160
+ /** Application code (format XXXXX-XXXXX). */
164
161
  applicationCode: string;
162
+ /** PLATFORM_APPLE for Apple Wallet. */
165
163
  platform: Platform;
164
+ /** Apple: boardingPass, coupon, eventTicket, storeCard or generic. */
166
165
  passStyle: string;
166
+ /** Internal name, not shown on the pass. */
167
167
  name: string;
168
168
  description: string;
169
+ /** The pass definition as JSON (colors, logo text, barcode, field layout); start from get_apple_wallet_template. */
169
170
  designJson: string;
171
+ /** Field key -> value shown on every pass; editing it later updates all issued passes. */
170
172
  sharedFields: Record<string, string>;
173
+ /** Per-user fields: from a tag (source TAG) or typed in at issue time (source INPUT). */
171
174
  personalFields: PersonalFieldSpec[];
172
175
  status: CampaignStatus;
173
176
  /** Image slot -> media_files.uuid, uploaded through MediaFilesService beforehand. */
@@ -256,7 +259,9 @@ export type ListCampaignRevisionsResponse = {
256
259
  };
257
260
  export type IssuePassRequest = {
258
261
  campaignId: number;
262
+ /** Pushwoosh User ID of the recipient. */
259
263
  userId: string;
264
+ /** Field key -> value for personal fields with source INPUT. */
260
265
  personal: Record<string, string>;
261
266
  };
262
267
  export type IssuePassResponse = {