@pushwoosh/rpc-gateway-apple-passkit 0.1.123 → 0.1.125

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/commonTypes.d.ts CHANGED
@@ -1,10 +1,22 @@
1
1
  export type Duration = number;
2
- export type RpcMethod<Req, Res> = ((request: Req) => Promise<Res>) & {
3
- safe(request: Req): Promise<[{
2
+ /** Arbitrary JSON value (google.protobuf.Value). */
3
+ export type JsonValue = string | number | boolean | null | JsonValue[] | {
4
+ [key: string]: JsonValue;
5
+ };
6
+ /** Arbitrary JSON object (google.protobuf.Struct). */
7
+ export type JsonObject = {
8
+ [key: string]: JsonValue;
9
+ };
10
+ /** Per-call options accepted by every method. */
11
+ export type RpcCallOptions = {
12
+ signal?: AbortSignal;
13
+ };
14
+ export type RpcMethod<Req, Res> = ((request: Req, options?: RpcCallOptions) => Promise<Res>) & {
15
+ safe(request: Req, options?: RpcCallOptions): Promise<[{
4
16
  error: unknown;
5
17
  }, null] | [null, Res]>;
6
18
  };
7
- export type RpcMethodV3<Req, Res, Err> = ((request: Req) => Promise<Res>) & {
8
- safe(request: Req): Promise<[Err, null] | [null, Res]>;
19
+ export type RpcMethodV3<Req, Res, Err> = ((request: Req, options?: RpcCallOptions) => Promise<Res>) & {
20
+ safe(request: Req, options?: RpcCallOptions): Promise<[Err, null] | [null, Res]>;
9
21
  parseError(e: unknown): Err;
10
22
  };
package/data.js CHANGED
@@ -685,31 +685,6 @@ export const data = {
685
685
  "type": "I",
686
686
  "fields": {}
687
687
  },
688
- "pushwoosh.googlewallet.v1.SendGooglePassMessageRequest": {
689
- "type": "I",
690
- "fields": {
691
- "objectId": {
692
- "type": "string"
693
- },
694
- "header": {
695
- "type": "string"
696
- },
697
- "body": {
698
- "type": "string"
699
- },
700
- "messageId": {
701
- "type": "string"
702
- }
703
- }
704
- },
705
- "pushwoosh.googlewallet.v1.SendGooglePassMessageResponse": {
706
- "type": "I",
707
- "fields": {
708
- "success": {
709
- "type": "boolean"
710
- }
711
- }
712
- },
713
688
  "pushwoosh.googlewallet.v1.DeletePassRequest": {
714
689
  "type": "I",
715
690
  "fields": {
@@ -2235,38 +2210,6 @@ export const data = {
2235
2210
  }
2236
2211
  }
2237
2212
  },
2238
- "pushwoosh.walletcampaign.v1.IssueCampaignPassInternalRequest": {
2239
- "type": "I",
2240
- "fields": {
2241
- "campaignId": {
2242
- "type": "number"
2243
- },
2244
- "userId": {
2245
- "type": "string"
2246
- },
2247
- "personal": {
2248
- "type": "string",
2249
- "mapKeyType": "string"
2250
- },
2251
- "reuseExisting": {
2252
- "type": "boolean"
2253
- }
2254
- }
2255
- },
2256
- "pushwoosh.walletcampaign.v1.IssueCampaignPassInternalResponse": {
2257
- "type": "I",
2258
- "fields": {
2259
- "serialNumber": {
2260
- "type": "string"
2261
- },
2262
- "installLink": {
2263
- "type": "string"
2264
- },
2265
- "reused": {
2266
- "type": "boolean"
2267
- }
2268
- }
2269
- },
2270
2213
  "pushwoosh.walletcampaign.v1.ListCampaignPassesRequest": {
2271
2214
  "type": "I",
2272
2215
  "fields": {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.123",
3
+ "version": "0.1.125",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
- "types": "index.d.js",
7
+ "types": "index.d.ts",
8
8
  "sideEffects": false,
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -458,24 +458,6 @@ export type SetPassStateRequest = {
458
458
  active: boolean;
459
459
  };
460
460
  export type SetPassStateResponse = {};
461
- /**
462
- * Send-message request. object_id is the full Google object id
463
- * "{issuerId}.{serial}" (carried as the device push token by the sender).
464
- */
465
- export type SendGooglePassMessageRequest = {
466
- objectId: string;
467
- header: string;
468
- body: string;
469
- /**
470
- * Stable id used as Google's Message.Id so a sender retry (at-least-once
471
- * delivery) does not produce a duplicate notification. The caller should pass
472
- * the message identifier; if empty, a random id is generated (not retry-safe).
473
- */
474
- messageId: string;
475
- };
476
- export type SendGooglePassMessageResponse = {
477
- success: boolean;
478
- };
479
461
  /** Delete pass request */
480
462
  export type DeletePassRequest = {
481
463
  applicationCode: string;
@@ -270,23 +270,6 @@ export type IssuePassResponse = {
270
270
  /** Apple install link or Google save link, depending on the platform. */
271
271
  installLink: string;
272
272
  };
273
- export type IssueCampaignPassInternalRequest = {
274
- campaignId: number;
275
- userId: string;
276
- personal: Record<string, string>;
277
- /**
278
- * Return the card this user already holds instead of a second one: a journey
279
- * retries travelers, and an issued pass never expires.
280
- */
281
- reuseExisting: boolean;
282
- };
283
- export type IssueCampaignPassInternalResponse = {
284
- serialNumber: string;
285
- /** Apple install link or Google save link, depending on the platform. */
286
- installLink: string;
287
- /** True when the pass was already there and nothing was issued. */
288
- reused: boolean;
289
- };
290
273
  export type ListCampaignPassesRequest = {
291
274
  campaignId: number;
292
275
  /** Matches the serial number, the Pushwoosh User ID or the barcode. */