@pushwoosh/rpc-gateway-messaging 0.6.58 → 0.6.60

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
@@ -286,6 +286,9 @@ export const data = {
286
286
  "emailPayload": {
287
287
  "type": "pushwoosh.channels.messagingApi.v2.EmailPayload"
288
288
  },
289
+ "smsPayload": {
290
+ "type": "pushwoosh.channels.messagingApi.v2.SMSPayload"
291
+ },
289
292
  "frequencyCapping": {
290
293
  "type": "pushwoosh.channels.messagingApi.v2.FrequencyCapping"
291
294
  },
@@ -317,7 +320,8 @@ export const data = {
317
320
  "messagePayload": {
318
321
  "oneof": [
319
322
  "payload",
320
- "emailPayload"
323
+ "emailPayload",
324
+ "smsPayload"
321
325
  ]
322
326
  }
323
327
  }
@@ -380,6 +384,9 @@ export const data = {
380
384
  "emailPayload": {
381
385
  "type": "pushwoosh.channels.messagingApi.v2.EmailPayload"
382
386
  },
387
+ "smsPayload": {
388
+ "type": "pushwoosh.channels.messagingApi.v2.SMSPayload"
389
+ },
383
390
  "returnUnknownIdentifiers": {
384
391
  "type": "boolean"
385
392
  },
@@ -424,7 +431,8 @@ export const data = {
424
431
  "messagePayload": {
425
432
  "oneof": [
426
433
  "payload",
427
- "emailPayload"
434
+ "emailPayload",
435
+ "smsPayload"
428
436
  ]
429
437
  }
430
438
  }
@@ -1355,9 +1363,6 @@ export const data = {
1355
1363
  },
1356
1364
  "appleWalletPassSerial": {
1357
1365
  "type": "string"
1358
- },
1359
- "smsPreset": {
1360
- "type": "string"
1361
1366
  }
1362
1367
  },
1363
1368
  "oneofs": {
@@ -1416,6 +1421,20 @@ export const data = {
1416
1421
  },
1417
1422
  "emailTemplate": {
1418
1423
  "type": "string"
1424
+ },
1425
+ "emailPreset": {
1426
+ "type": "string"
1427
+ }
1428
+ }
1429
+ },
1430
+ "pushwoosh.channels.messagingApi.v2.SMSPayload": {
1431
+ "type": "I",
1432
+ "fields": {
1433
+ "preset": {
1434
+ "type": "string"
1435
+ },
1436
+ "content": {
1437
+ "type": "pushwoosh.channels.messagingApi.v2.LocalizedContent"
1419
1438
  }
1420
1439
  }
1421
1440
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.58",
3
+ "version": "0.6.60",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -154,7 +154,11 @@ export type NotifySegment_messagePayload_emailPayload = {
154
154
  type: 'emailPayload';
155
155
  data: EmailPayload;
156
156
  };
157
- export type NotifySegment_messagePayload = NotifySegment_messagePayload_payload | NotifySegment_messagePayload_emailPayload;
157
+ export type NotifySegment_messagePayload_smsPayload = {
158
+ type: 'smsPayload';
159
+ data: SMSPayload;
160
+ };
161
+ export type NotifySegment_messagePayload = NotifySegment_messagePayload_payload | NotifySegment_messagePayload_emailPayload | NotifySegment_messagePayload_smsPayload;
158
162
  /**
159
163
  * NotifySegment defines a request to send a message to a segment of users.
160
164
  * Segment can be defined either by a segment code or by a seglang expression.
@@ -215,7 +219,11 @@ export type NotifyTransactional_messagePayload_emailPayload = {
215
219
  type: 'emailPayload';
216
220
  data: EmailPayload;
217
221
  };
218
- export type NotifyTransactional_messagePayload = NotifyTransactional_messagePayload_payload | NotifyTransactional_messagePayload_emailPayload;
222
+ export type NotifyTransactional_messagePayload_smsPayload = {
223
+ type: 'smsPayload';
224
+ data: SMSPayload;
225
+ };
226
+ export type NotifyTransactional_messagePayload = NotifyTransactional_messagePayload_payload | NotifyTransactional_messagePayload_emailPayload | NotifyTransactional_messagePayload_smsPayload;
219
227
  export type NotifyTransactional = {
220
228
  /** Message schedule. */
221
229
  schedule: Schedule;
@@ -598,8 +606,14 @@ export type Content_PlatformPropertiesWhatsApp = {
598
606
  /** JSON string, map of template body placeholders (e.g. {"1":"John"}). */
599
607
  contentVariables: string;
600
608
  /**
601
- * JSON string, map of button-URL placeholders keyed by button index
602
- * (e.g. {"0":"https://..."}).
609
+ * JSON string, map of button placeholders keyed by the button's 0-based
610
+ * Meta index (its position among all of the template's buttons).
611
+ * A URL button uses the bare index as the key and its dynamic URL text as
612
+ * the value (e.g. {"0":"summer-sale"}). Buttons of other types encode the
613
+ * type in the key as "<index>:<type>": "<i>:coupon_code" for a COPY_CODE
614
+ * button (value = the coupon code), "<i>:CATALOG" (value = ""), "<i>:MPM"
615
+ * (value = JSON of product-section actions). A bare numeric key is sent as
616
+ * a URL button.
603
617
  */
604
618
  buttonUrlVariables: string;
605
619
  /**
@@ -647,11 +661,6 @@ export type Payload = {
647
661
  openActions: Record<number, OpenAction>;
648
662
  voipPush: boolean;
649
663
  appleWalletPassSerial: string;
650
- /**
651
- * sms_preset references a saved SMS preset by code. When set, messaging-api resolves the
652
- * preset content into the per-language SMS body; inline sms.body overrides the preset per language.
653
- */
654
- smsPreset: string;
655
664
  kind: Payload_kind;
656
665
  };
657
666
  /** Email attachments. */
@@ -680,4 +689,18 @@ export type EmailPayload = {
680
689
  replyTo: EmailPayload_Address;
681
690
  /** Email template code to use for this email, must reference an existing Email Template. */
682
691
  emailTemplate: string;
692
+ /**
693
+ * Email preset code. When set, messaging-api resolves the preset into
694
+ * email_template + subject + from + reply_to (inline fields override the preset).
695
+ */
696
+ emailPreset: string;
697
+ };
698
+ export type SMSPayload = {
699
+ /**
700
+ * preset references a saved SMS preset by code. When set, messaging-api resolves the
701
+ * preset content into the per-language SMS body; inline content overrides the preset per language.
702
+ */
703
+ preset: string;
704
+ /** Per-locale SMS content. SMS body is read from Content.sms.body of each locale. */
705
+ content: LocalizedContent;
683
706
  };