@pushwoosh/rpc-gateway-apple-passkit 0.1.116 → 0.1.118

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.116",
3
+ "version": "0.1.118",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -11,7 +11,7 @@ export type GoogleWalletService_DeletePass = RpcMethod<DeletePassRequest, Delete
11
11
  export type GoogleWalletService_ListTemplates = RpcMethod<ListTemplatesRequest, ListTemplatesResponse>;
12
12
  export type GoogleWalletService_GetTemplate = RpcMethod<GetTemplateRequest, GetTemplateResponse>;
13
13
  /**
14
- * Google Wallet Service - issues Generic passes via the Google Wallet API.
14
+ * Google Wallet Service - issues Google Wallet passes via the Google Wallet API.
15
15
  *
16
16
  * Unlike Apple PassKit there is no signed file to host: the pass class and
17
17
  * object live on Google's side (walletobjects REST API), and the user installs
@@ -20,38 +20,27 @@ export type GoogleWalletService_GetTemplate = RpcMethod<GetTemplateRequest, GetT
20
20
  * devices itself (no push infrastructure on our side).
21
21
  */
22
22
  export interface GoogleWalletService {
23
- /** Get Google Wallet configuration state for an application */
23
+ /** Reports whether Google Wallet is set up for an application (code XXXXX-XXXXX): issuer_id, pushwoosh_service_account_email (the address the customer invites into their issuer as Developer) and issuer_status — OK: passes can be issued; NOT_INVITED: the address is not among the issuer's users yet; NOT_OWNED: none of the issuer's users is a user of this Pushwoosh account; UNAVAILABLE: Google did not answer, retry later. Empty issuer_id means no setup; save the issuer id with update_platform_configuration (google_wallet_configuration.google_wallet_issuer_id). */
24
24
  GetConfig: GoogleWalletService_GetConfig;
25
- /** Validate a pass configuration */
25
+ /** Checks a Google Wallet pass definition against Google's rules without creating anything; returns errors and warnings. Use before create_google_wallet_pass or before saving a Google campaign design. */
26
26
  ValidatePass: GoogleWalletService_ValidatePass;
27
- /** Create a new pass object in Google Wallet */
27
+ /** Creates one standalone Google Wallet pass for an application (code XXXXX-XXXXX) and a Pushwoosh User ID; exactly one style (generic, offer, loyalty, event_ticket, gift_card, flight, transit) must be set, images are public HTTPS URLs. Returns the serial number and the "Save to Google Wallet" link to send. For one design issued to many users use create_wallet_campaign with PLATFORM_GOOGLE instead. */
28
28
  CreatePass: GoogleWalletService_CreatePass;
29
- /** Update an existing pass object (patch; Google delivers the update) */
29
+ /** Updates a standalone Google Wallet pass by serial number; Google delivers the change to every holder. notify_message shows a notification with that text, empty means a silent update. The style cannot change. Passes of a campaign change through update_wallet_campaign. */
30
30
  UpdatePass: GoogleWalletService_UpdatePass;
31
- /**
32
- * Get an "Add to Google Wallet" save link for an already created pass.
33
- * The link is a thin JWT: it references the object by id only; the object
34
- * itself must already exist (created via CreatePass).
35
- */
31
+ /** Returns the "Save to Google Wallet" link of an existing pass (application code XXXXX-XXXXX and serial number); it also works as a QR code. */
36
32
  GetSaveLink: GoogleWalletService_GetSaveLink;
37
- /** Get a single pass by serial number. */
33
+ /** Returns one Google Wallet pass of an application (code XXXXX-XXXXX) by serial number: style, state (ACTIVE/INACTIVE), User ID and the full pass definition. */
38
34
  GetPass: GoogleWalletService_GetPass;
39
- /** List passes of an application. */
35
+ /** Lists the Google Wallet passes of an application (code XXXXX-XXXXX), newest first; query matches the serial number, the User ID or the barcode. */
40
36
  ListPasses: GoogleWalletService_ListPasses;
41
- /**
42
- * Activate or invalidate a pass (Google state ACTIVE/INACTIVE). An
43
- * invalidated pass moves to the user's "Expired passes" section; the record
44
- * is kept so it can be re-activated.
45
- */
37
+ /** Activates (active=true) or invalidates (active=false) a Google Wallet pass; an invalidated pass moves to the holder's "Expired passes" and can be activated again. */
46
38
  SetPassState: GoogleWalletService_SetPassState;
47
- /**
48
- * Delete a pass: invalidate it in Google (it cannot be force-removed from a
49
- * user's device) and drop our stored record.
50
- */
39
+ /** Deletes a Google Wallet pass: Google cannot remove it from a holder's phone, so it is invalidated there and our record is dropped. Irreversible; call only on an explicit yes. */
51
40
  DeletePass: GoogleWalletService_DeletePass;
52
- /** List example pass templates. */
41
+ /** Lists the example Google Wallet pass templates, one per style (generic, offer, loyalty, eventTicket, giftCard, flight, transit). */
53
42
  ListTemplates: GoogleWalletService_ListTemplates;
54
- /** Get an example pass template by filename. */
43
+ /** Returns an example Google Wallet pass by template filename from list_google_wallet_templates; start a pass or a Google campaign design from it. */
55
44
  GetTemplate: GoogleWalletService_GetTemplate;
56
45
  }
57
46
  /** Text module - a labeled block of text on the pass details view */
@@ -17,7 +17,7 @@ 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
+ /** Creates a Wallet Pass Campaign: one pass design issued to many users of an application (code XXXXX-XXXXX), on PLATFORM_APPLE (design_json shaped as an Apple pass definition) or PLATFORM_GOOGLE (shaped as a Google Wallet pass, start from get_google_wallet_template; field keys are text module ids, {Tag} placeholders work in any text). 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 to a media file uuid from create_media_file — Apple: icon, logo, strip, background, footer, thumbnail, icon required; Google: logo, hero. A new campaign is a draft: set status ACTIVE to issue and to run tag sync. Platform and pass style cannot change later. */
21
21
  CreateCampaign: WalletCampaignService_CreateCampaign;
22
22
  /** Lists the Wallet Pass Campaigns of an application (code XXXXX-XXXXX) with how many passes each issued. */
23
23
  ListCampaigns: WalletCampaignService_ListCampaigns;
@@ -159,14 +159,14 @@ export type CampaignPass = {
159
159
  export type CreateCampaignRequest = {
160
160
  /** Application code (format XXXXX-XXXXX). */
161
161
  applicationCode: string;
162
- /** PLATFORM_APPLE for Apple Wallet. */
162
+ /** PLATFORM_APPLE for Apple Wallet, PLATFORM_GOOGLE for Google Wallet. */
163
163
  platform: Platform;
164
- /** Apple: boardingPass, coupon, eventTicket, storeCard or generic. */
164
+ /** Apple: boardingPass, coupon, eventTicket, storeCard or generic. Google: generic, offer, loyalty, eventTicket, giftCard, flight or transit. */
165
165
  passStyle: string;
166
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
+ /** The pass definition as JSON (colors, logo text, barcode, field layout); start from get_apple_wallet_template or get_google_wallet_template. */
170
170
  designJson: string;
171
171
  /** Field key -> value shown on every pass; editing it later updates all issued passes. */
172
172
  sharedFields: Record<string, string>;