@pushwoosh/rpc-v2-http-api-data 0.2.175 → 0.2.176
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 +48 -1
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +35 -1
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
|
}
|
package/package.json
CHANGED
|
@@ -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
|
|
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;
|