@pushwoosh/rpc-gateway-apple-passkit 0.1.114 → 0.1.116
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 +22 -0
- package/package.json +1 -1
- package/pushwoosh_googlewallet_v1.d.ts +12 -1
- package/pushwoosh_passkit_v1.d.ts +16 -17
- package/pushwoosh_walletcampaign_v1.d.ts +22 -17
package/data.js
CHANGED
|
@@ -489,9 +489,25 @@ export const data = {
|
|
|
489
489
|
},
|
|
490
490
|
"serviceAccountEmail": {
|
|
491
491
|
"type": "string"
|
|
492
|
+
},
|
|
493
|
+
"pushwooshServiceAccountEmail": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"issuerStatus": {
|
|
497
|
+
"type": "pushwoosh.googlewallet.v1.GoogleIssuerStatus"
|
|
492
498
|
}
|
|
493
499
|
}
|
|
494
500
|
},
|
|
501
|
+
"pushwoosh.googlewallet.v1.GoogleIssuerStatus": {
|
|
502
|
+
"type": "E",
|
|
503
|
+
"values": [
|
|
504
|
+
"GOOGLE_ISSUER_STATUS_UNSPECIFIED",
|
|
505
|
+
"GOOGLE_ISSUER_STATUS_OK",
|
|
506
|
+
"GOOGLE_ISSUER_STATUS_NOT_INVITED",
|
|
507
|
+
"GOOGLE_ISSUER_STATUS_NOT_OWNED",
|
|
508
|
+
"GOOGLE_ISSUER_STATUS_UNAVAILABLE"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
495
511
|
"pushwoosh.googlewallet.v1.ValidatePassRequest": {
|
|
496
512
|
"type": "I",
|
|
497
513
|
"fields": {
|
|
@@ -1279,6 +1295,9 @@ export const data = {
|
|
|
1279
1295
|
},
|
|
1280
1296
|
"message": {
|
|
1281
1297
|
"type": "string"
|
|
1298
|
+
},
|
|
1299
|
+
"installLink": {
|
|
1300
|
+
"type": "string"
|
|
1282
1301
|
}
|
|
1283
1302
|
}
|
|
1284
1303
|
},
|
|
@@ -1557,6 +1576,9 @@ export const data = {
|
|
|
1557
1576
|
"fields": {
|
|
1558
1577
|
"pass": {
|
|
1559
1578
|
"type": "pushwoosh.passkit.v1.PassRecord"
|
|
1579
|
+
},
|
|
1580
|
+
"installLink": {
|
|
1581
|
+
"type": "string"
|
|
1560
1582
|
}
|
|
1561
1583
|
}
|
|
1562
1584
|
},
|
package/package.json
CHANGED
|
@@ -358,7 +358,18 @@ export type GetConfigResponse = {
|
|
|
358
358
|
hasServiceAccount: boolean;
|
|
359
359
|
issuerId: string;
|
|
360
360
|
serviceAccountEmail: string;
|
|
361
|
-
|
|
361
|
+
/** Shared Pushwoosh account the customer invites into their issuer instead of uploading a key. */
|
|
362
|
+
pushwooshServiceAccountEmail: string;
|
|
363
|
+
issuerStatus: GoogleIssuerStatus;
|
|
364
|
+
};
|
|
365
|
+
/** Whether passes can be issued into the configured issuer. */
|
|
366
|
+
export type GoogleIssuerStatus = 'GOOGLE_ISSUER_STATUS_UNSPECIFIED' | 'GOOGLE_ISSUER_STATUS_OK'
|
|
367
|
+
/** The customer has not invited the service account into the issuer yet. */
|
|
368
|
+
| 'GOOGLE_ISSUER_STATUS_NOT_INVITED'
|
|
369
|
+
/** Shared account only: none of the issuer's people is a user of this Pushwoosh account. */
|
|
370
|
+
| 'GOOGLE_ISSUER_STATUS_NOT_OWNED'
|
|
371
|
+
/** Google did not answer; retry later. */
|
|
372
|
+
| 'GOOGLE_ISSUER_STATUS_UNAVAILABLE';
|
|
362
373
|
/** Validate pass request */
|
|
363
374
|
export type ValidatePassRequest = {
|
|
364
375
|
pass: GooglePass;
|
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
30
|
+
/** Deletes a standalone Apple Wallet pass by serial number; it stops updating on devices that added it. */
|
|
36
31
|
DeletePass: PassKitService_DeletePass;
|
|
37
|
-
/**
|
|
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
|
-
/**
|
|
34
|
+
/** Returns one Apple Wallet pass by serial number with its definition and install link. */
|
|
40
35
|
GetPass: PassKitService_GetPass;
|
|
41
|
-
/**
|
|
36
|
+
/** Returns the signed .pkpass file of an existing Apple Wallet pass as bytes. */
|
|
42
37
|
DownloadPass: PassKitService_DownloadPass;
|
|
43
|
-
/**
|
|
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
|
-
/**
|
|
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 = {
|