@pushwoosh/rpc-gateway-ai-assistant 0.1.617 → 0.1.619
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 +35 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +13 -0
- package/pushwoosh_aigen_v1.d.ts +2 -0
package/data.js
CHANGED
|
@@ -1021,6 +1021,32 @@ export const data = {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
},
|
|
1024
|
+
"pushwoosh.aibuilder.v1.InAppFormSuccess": {
|
|
1025
|
+
"type": "I",
|
|
1026
|
+
"fields": {
|
|
1027
|
+
"title": {
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
},
|
|
1030
|
+
"titleTranslations": {
|
|
1031
|
+
"type": "string",
|
|
1032
|
+
"mapKeyType": "string"
|
|
1033
|
+
},
|
|
1034
|
+
"text": {
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
},
|
|
1037
|
+
"textTranslations": {
|
|
1038
|
+
"type": "string",
|
|
1039
|
+
"mapKeyType": "string"
|
|
1040
|
+
},
|
|
1041
|
+
"buttonLabel": {
|
|
1042
|
+
"type": "string"
|
|
1043
|
+
},
|
|
1044
|
+
"buttonLabelTranslations": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"mapKeyType": "string"
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1024
1050
|
"pushwoosh.aibuilder.v1.InAppForm": {
|
|
1025
1051
|
"type": "I",
|
|
1026
1052
|
"fields": {
|
|
@@ -1033,6 +1059,12 @@ export const data = {
|
|
|
1033
1059
|
},
|
|
1034
1060
|
"submit": {
|
|
1035
1061
|
"type": "pushwoosh.aibuilder.v1.AnswerSubmit"
|
|
1062
|
+
},
|
|
1063
|
+
"subscribed": {
|
|
1064
|
+
"type": "pushwoosh.aibuilder.v1.InAppFormSuccess"
|
|
1065
|
+
},
|
|
1066
|
+
"confirmEmail": {
|
|
1067
|
+
"type": "pushwoosh.aibuilder.v1.InAppFormSuccess"
|
|
1036
1068
|
}
|
|
1037
1069
|
}
|
|
1038
1070
|
},
|
|
@@ -3473,6 +3505,9 @@ export const data = {
|
|
|
3473
3505
|
},
|
|
3474
3506
|
"position": {
|
|
3475
3507
|
"type": "pushwoosh.aigen.v1.PopupPosition"
|
|
3508
|
+
},
|
|
3509
|
+
"deviceApiUrl": {
|
|
3510
|
+
"type": "string"
|
|
3476
3511
|
}
|
|
3477
3512
|
}
|
|
3478
3513
|
},
|
package/package.json
CHANGED
|
@@ -808,6 +808,15 @@ export type InAppFormField = {
|
|
|
808
808
|
/** EMAIL / PHONE only; unset = no consent checkbox. */
|
|
809
809
|
consent?: InAppFormConsent;
|
|
810
810
|
};
|
|
811
|
+
/** What replaces the in-app after the form went out; its button closes the in-app. */
|
|
812
|
+
export type InAppFormSuccess = {
|
|
813
|
+
title: string;
|
|
814
|
+
titleTranslations: Record<string, string>;
|
|
815
|
+
text: string;
|
|
816
|
+
textTranslations: Record<string, string>;
|
|
817
|
+
buttonLabel: string;
|
|
818
|
+
buttonLabelTranslations: Record<string, string>;
|
|
819
|
+
};
|
|
811
820
|
/**
|
|
812
821
|
* Field form (in-app only): email / phone become the user's channels, name / text go to tags.
|
|
813
822
|
* Posts PW_InAppAnswer {question, inapp_code}; field values never go to the event.
|
|
@@ -817,6 +826,10 @@ export type InAppForm = {
|
|
|
817
826
|
question: string;
|
|
818
827
|
fields: InAppFormField[];
|
|
819
828
|
submit: AnswerSubmit;
|
|
829
|
+
/** Shown when nothing waits for a confirmation; unset = the stock copy. */
|
|
830
|
+
subscribed: InAppFormSuccess;
|
|
831
|
+
/** Shown when the application's double opt-in sent a confirmation letter. */
|
|
832
|
+
confirmEmail: InAppFormSuccess;
|
|
820
833
|
};
|
|
821
834
|
/**
|
|
822
835
|
* Countdown timer. Renders in email HTML as an animated GIF served by this
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -1033,6 +1033,8 @@ export type AiGenDocumentToPopupHtmlRequest = {
|
|
|
1033
1033
|
closeButton: PopupCloseButton;
|
|
1034
1034
|
/** An edge offset authored on the document outranks this. */
|
|
1035
1035
|
position: PopupPosition;
|
|
1036
|
+
/** Public device-api origin the in-app form posts email / phone to; empty = the form writes tags only. */
|
|
1037
|
+
deviceApiUrl: string;
|
|
1036
1038
|
};
|
|
1037
1039
|
export type AiGenDocumentToPopupHtmlResponse = {
|
|
1038
1040
|
html: string;
|