@pushwoosh/rpc-gateway-apple-passkit 0.1.100 → 0.1.102

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
@@ -2151,6 +2151,38 @@ export const data = {
2151
2151
  }
2152
2152
  }
2153
2153
  },
2154
+ "pushwoosh.walletcampaign.v1.IssueCampaignPassInternalRequest": {
2155
+ "type": "I",
2156
+ "fields": {
2157
+ "campaignId": {
2158
+ "type": "number"
2159
+ },
2160
+ "userId": {
2161
+ "type": "string"
2162
+ },
2163
+ "personal": {
2164
+ "type": "string",
2165
+ "mapKeyType": "string"
2166
+ },
2167
+ "reuseExisting": {
2168
+ "type": "boolean"
2169
+ }
2170
+ }
2171
+ },
2172
+ "pushwoosh.walletcampaign.v1.IssueCampaignPassInternalResponse": {
2173
+ "type": "I",
2174
+ "fields": {
2175
+ "serialNumber": {
2176
+ "type": "string"
2177
+ },
2178
+ "installLink": {
2179
+ "type": "string"
2180
+ },
2181
+ "reused": {
2182
+ "type": "boolean"
2183
+ }
2184
+ }
2185
+ },
2154
2186
  "pushwoosh.walletcampaign.v1.ListCampaignPassesRequest": {
2155
2187
  "type": "I",
2156
2188
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-apple-passkit",
3
- "version": "0.1.100",
3
+ "version": "0.1.102",
4
4
  "description": "Apple PassKit Service api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -227,6 +227,23 @@ export type IssuePassResponse = {
227
227
  /** Apple install link or Google save link, depending on the platform. */
228
228
  installLink: string;
229
229
  };
230
+ export type IssueCampaignPassInternalRequest = {
231
+ campaignId: number;
232
+ userId: string;
233
+ personal: Record<string, string>;
234
+ /**
235
+ * Return the card this user already holds instead of a second one: a journey
236
+ * retries travelers, and an issued pass never expires.
237
+ */
238
+ reuseExisting: boolean;
239
+ };
240
+ export type IssueCampaignPassInternalResponse = {
241
+ serialNumber: string;
242
+ /** Apple install link or Google save link, depending on the platform. */
243
+ installLink: string;
244
+ /** True when the pass was already there and nothing was issued. */
245
+ reused: boolean;
246
+ };
230
247
  export type ListCampaignPassesRequest = {
231
248
  campaignId: number;
232
249
  /** Matches the serial number, the Pushwoosh User ID or the barcode. */