@pushwoosh/rpc-v2-http-api-data 0.2.175 → 0.2.177

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.
@@ -155,8 +155,6 @@ export type ControlGroup = {
155
155
  /** Hold-out size as a percentage, 1-20. Zero means the group is off. */
156
156
  percentage: number;
157
157
  enabled: boolean;
158
- /** Whether a send that does not name a group falls back to this one. */
159
- isDefault: boolean;
160
158
  /** Incremented by every reshuffle; 0 means never reshuffled. */
161
159
  generation: number;
162
160
  lastModifiedAt: Date;
package/data.js CHANGED
@@ -3229,6 +3229,49 @@ export const data = {
3229
3229
  }
3230
3230
  }
3231
3231
  },
3232
+ "pushwoosh.aibuilder.v1.BarcodeSymbology": {
3233
+ "type": "E",
3234
+ "values": [
3235
+ "BARCODE_SYMBOLOGY_UNSPECIFIED",
3236
+ "BARCODE_SYMBOLOGY_CODE128",
3237
+ "BARCODE_SYMBOLOGY_EAN13",
3238
+ "BARCODE_SYMBOLOGY_EAN8",
3239
+ "BARCODE_SYMBOLOGY_UPCA",
3240
+ "BARCODE_SYMBOLOGY_QR"
3241
+ ]
3242
+ },
3243
+ "pushwoosh.aibuilder.v1.Barcode": {
3244
+ "type": "I",
3245
+ "fields": {
3246
+ "value": {
3247
+ "type": "string"
3248
+ },
3249
+ "symbology": {
3250
+ "type": "pushwoosh.aibuilder.v1.BarcodeSymbology"
3251
+ },
3252
+ "showText": {
3253
+ "type": "boolean"
3254
+ },
3255
+ "width": {
3256
+ "type": "number"
3257
+ },
3258
+ "height": {
3259
+ "type": "number"
3260
+ },
3261
+ "foregroundColor": {
3262
+ "type": "string"
3263
+ },
3264
+ "backgroundColor": {
3265
+ "type": "string"
3266
+ },
3267
+ "ecLevel": {
3268
+ "type": "string"
3269
+ },
3270
+ "quietModules": {
3271
+ "type": "number"
3272
+ }
3273
+ }
3274
+ },
3232
3275
  "pushwoosh.aibuilder.v1.RawHtml": {
3233
3276
  "type": "I",
3234
3277
  "fields": {
@@ -3398,6 +3441,9 @@ export const data = {
3398
3441
  "video": {
3399
3442
  "type": "pushwoosh.aibuilder.v1.Video"
3400
3443
  },
3444
+ "barcode": {
3445
+ "type": "pushwoosh.aibuilder.v1.Barcode"
3446
+ },
3401
3447
  "padding": {
3402
3448
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
3403
3449
  "optional": true
@@ -3431,7 +3477,8 @@ export const data = {
3431
3477
  "rawHtml",
3432
3478
  "menu",
3433
3479
  "social",
3434
- "video"
3480
+ "video",
3481
+ "barcode"
3435
3482
  ]
3436
3483
  }
3437
3484
  }
@@ -6570,9 +6617,6 @@ export const data = {
6570
6617
  "enabled": {
6571
6618
  "type": "boolean"
6572
6619
  },
6573
- "isDefault": {
6574
- "type": "boolean"
6575
- },
6576
6620
  "generation": {
6577
6621
  "type": "number"
6578
6622
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.175",
3
+ "version": "0.2.177",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -658,6 +658,36 @@ export type Timer = {
658
658
  digitFontWeight: number;
659
659
  labelFontWeight: number;
660
660
  };
661
+ export type BarcodeSymbology =
662
+ /** treated as CODE128 */
663
+ 'BARCODE_SYMBOLOGY_UNSPECIFIED' | 'BARCODE_SYMBOLOGY_CODE128' | 'BARCODE_SYMBOLOGY_EAN13' | 'BARCODE_SYMBOLOGY_EAN8' | 'BARCODE_SYMBOLOGY_UPCA' | 'BARCODE_SYMBOLOGY_QR';
664
+ /**
665
+ * Barcode rendered from a voucher code by this service's public
666
+ * /barcode/v1/code.png endpoint. Client-managed: the LLM never invents codes.
667
+ */
668
+ export type Barcode = {
669
+ /**
670
+ * What to encode. Normally a placeholder ({{voucher}} or a Dynamic Content
671
+ * tag) resolved per recipient by the send pipeline, not a literal code.
672
+ */
673
+ value: string;
674
+ symbology: BarcodeSymbology;
675
+ /** Print the value in digits under the code, for keying it in by hand. */
676
+ showText: boolean;
677
+ /** Canvas size in px; 0 = renderer default (600x200, QR 400x400). */
678
+ width: number;
679
+ height: number;
680
+ /**
681
+ * Hex "#rrggbb"; empty = black on white. A tinted background is a scan
682
+ * risk, so the renderer always fills it opaque.
683
+ */
684
+ foregroundColor: string;
685
+ backgroundColor: string;
686
+ /** QR error correction: L, M, Q or H; empty = M. Ignored by 1D symbologies. */
687
+ ecLevel: string;
688
+ /** Blank margin per side in modules; 0 = renderer default (10, QR 4). */
689
+ quietModules: number;
690
+ };
661
691
  /**
662
692
  * An Unlayer HTML widget. The markup is deliberately kept verbatim: unlike
663
693
  * TextBlock.text this is a complete, user-authored HTML fragment and flattening
@@ -792,7 +822,11 @@ export type ContentItem_item_video = {
792
822
  type: 'video';
793
823
  data: Video;
794
824
  };
795
- export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu | ContentItem_item_social | ContentItem_item_video;
825
+ export type ContentItem_item_barcode = {
826
+ type: 'barcode';
827
+ data: Barcode;
828
+ };
829
+ export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu | ContentItem_item_social | ContentItem_item_video | ContentItem_item_barcode;
796
830
  export type ContentItem = {
797
831
  /**
798
832
  * Container padding of the item. Unset = client's default inter-item gap;