@pushwoosh/rpc-gateway-ai-assistant 0.1.646 → 0.1.647
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 +38 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +18 -2
package/data.js
CHANGED
|
@@ -1027,6 +1027,40 @@ export const data = {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
},
|
|
1030
|
+
"pushwoosh.aibuilder.v1.InAppFormCheckbox": {
|
|
1031
|
+
"type": "I",
|
|
1032
|
+
"fields": {
|
|
1033
|
+
"text": {
|
|
1034
|
+
"type": "string"
|
|
1035
|
+
},
|
|
1036
|
+
"textTranslations": {
|
|
1037
|
+
"type": "string",
|
|
1038
|
+
"mapKeyType": "string"
|
|
1039
|
+
},
|
|
1040
|
+
"required": {
|
|
1041
|
+
"type": "boolean"
|
|
1042
|
+
},
|
|
1043
|
+
"linkText": {
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
},
|
|
1046
|
+
"linkTextTranslations": {
|
|
1047
|
+
"type": "string",
|
|
1048
|
+
"mapKeyType": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"linkUrl": {
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
"tag": {
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
},
|
|
1056
|
+
"showLink": {
|
|
1057
|
+
"type": "boolean"
|
|
1058
|
+
},
|
|
1059
|
+
"saveToTag": {
|
|
1060
|
+
"type": "boolean"
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1030
1064
|
"pushwoosh.aibuilder.v1.InAppFormSuccess": {
|
|
1031
1065
|
"type": "I",
|
|
1032
1066
|
"fields": {
|
|
@@ -1071,6 +1105,10 @@ export const data = {
|
|
|
1071
1105
|
},
|
|
1072
1106
|
"confirmEmail": {
|
|
1073
1107
|
"type": "pushwoosh.aibuilder.v1.InAppFormSuccess"
|
|
1108
|
+
},
|
|
1109
|
+
"checkboxes": {
|
|
1110
|
+
"type": "pushwoosh.aibuilder.v1.InAppFormCheckbox",
|
|
1111
|
+
"array": true
|
|
1074
1112
|
}
|
|
1075
1113
|
}
|
|
1076
1114
|
},
|
package/package.json
CHANGED
|
@@ -792,7 +792,7 @@ export type InAppFormFieldType =
|
|
|
792
792
|
| 'IN_APP_FORM_FIELD_TYPE_EMAIL'
|
|
793
793
|
/** registered as the user's SMS channel */
|
|
794
794
|
| 'IN_APP_FORM_FIELD_TYPE_PHONE' | 'IN_APP_FORM_FIELD_TYPE_NAME' | 'IN_APP_FORM_FIELD_TYPE_TEXT';
|
|
795
|
-
/**
|
|
795
|
+
/** Legacy marketing consent next to an email or phone field; read as a required InAppForm checkbox. */
|
|
796
796
|
export type InAppFormConsent = {
|
|
797
797
|
text: string;
|
|
798
798
|
textTranslations: Record<string, string>;
|
|
@@ -809,9 +809,23 @@ export type InAppFormField = {
|
|
|
809
809
|
required: boolean;
|
|
810
810
|
/** NAME / TEXT only: tag the value is written to; empty = none. */
|
|
811
811
|
tag: string;
|
|
812
|
-
/**
|
|
812
|
+
/** Legacy, superseded by InAppForm.checkboxes; still rendered when the form has none. */
|
|
813
813
|
consent?: InAppFormConsent;
|
|
814
814
|
};
|
|
815
|
+
/** Checkbox under the form's fields; a required one blocks the submit while unticked. */
|
|
816
|
+
export type InAppFormCheckbox = {
|
|
817
|
+
text: string;
|
|
818
|
+
textTranslations: Record<string, string>;
|
|
819
|
+
required: boolean;
|
|
820
|
+
/** Link under the text; shown with show_link when both link_text and a safe link_url are set. */
|
|
821
|
+
linkText: string;
|
|
822
|
+
linkTextTranslations: Record<string, string>;
|
|
823
|
+
linkUrl: string;
|
|
824
|
+
/** Boolean tag set to whether the box is ticked on submit; written with save_to_tag when not empty. */
|
|
825
|
+
tag: string;
|
|
826
|
+
showLink: boolean;
|
|
827
|
+
saveToTag: boolean;
|
|
828
|
+
};
|
|
815
829
|
/** What replaces the in-app after the form went out; its button closes the in-app. */
|
|
816
830
|
export type InAppFormSuccess = {
|
|
817
831
|
title: string;
|
|
@@ -834,6 +848,8 @@ export type InAppForm = {
|
|
|
834
848
|
subscribed: InAppFormSuccess;
|
|
835
849
|
/** Shown when the application's double opt-in sent a confirmation letter. */
|
|
836
850
|
confirmEmail: InAppFormSuccess;
|
|
851
|
+
/** Up to five, rendered after the fields in this order; empty = no checkboxes. */
|
|
852
|
+
checkboxes: InAppFormCheckbox[];
|
|
837
853
|
};
|
|
838
854
|
/**
|
|
839
855
|
* Countdown timer. Renders in email HTML as an animated GIF served by this
|