posthog-node 4.11.4 → 4.11.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 4.11.6 - 2025-04-15
2
+
3
+ ## Fixed
4
+
5
+ 1. move survey export top-level declarations
6
+
7
+ # 4.11.5 - 2025-04-14
8
+
9
+ ## Fixed
10
+
11
+ 1. export and declare top-level declarations for surveys
12
+
1
13
  # 4.11.4 - 2025-04-14
2
14
 
3
15
  ## Fixed
package/lib/index.cjs.js CHANGED
@@ -22,7 +22,7 @@ function _interopNamespace(e) {
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var version = "4.11.4";
25
+ var version = "4.11.6";
26
26
 
27
27
  var PostHogPersistedProperty;
28
28
  (function (PostHogPersistedProperty) {
@@ -50,7 +50,66 @@ var PostHogPersistedProperty;
50
50
  PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
51
51
  PostHogPersistedProperty["Surveys"] = "surveys";
52
52
  PostHogPersistedProperty["RemoteConfig"] = "remote_config";
53
- })(PostHogPersistedProperty || (PostHogPersistedProperty = {}));
53
+ })(PostHogPersistedProperty || (PostHogPersistedProperty = {}));
54
+ var SurveyPosition;
55
+ (function (SurveyPosition) {
56
+ SurveyPosition["Left"] = "left";
57
+ SurveyPosition["Right"] = "right";
58
+ SurveyPosition["Center"] = "center";
59
+ })(SurveyPosition || (SurveyPosition = {}));
60
+ var SurveyWidgetType;
61
+ (function (SurveyWidgetType) {
62
+ SurveyWidgetType["Button"] = "button";
63
+ SurveyWidgetType["Tab"] = "tab";
64
+ SurveyWidgetType["Selector"] = "selector";
65
+ })(SurveyWidgetType || (SurveyWidgetType = {}));
66
+ var SurveyType;
67
+ (function (SurveyType) {
68
+ SurveyType["Popover"] = "popover";
69
+ SurveyType["API"] = "api";
70
+ SurveyType["Widget"] = "widget";
71
+ })(SurveyType || (SurveyType = {}));
72
+ var SurveyQuestionDescriptionContentType;
73
+ (function (SurveyQuestionDescriptionContentType) {
74
+ SurveyQuestionDescriptionContentType["Html"] = "html";
75
+ SurveyQuestionDescriptionContentType["Text"] = "text";
76
+ })(SurveyQuestionDescriptionContentType || (SurveyQuestionDescriptionContentType = {}));
77
+ var SurveyRatingDisplay;
78
+ (function (SurveyRatingDisplay) {
79
+ SurveyRatingDisplay["Number"] = "number";
80
+ SurveyRatingDisplay["Emoji"] = "emoji";
81
+ })(SurveyRatingDisplay || (SurveyRatingDisplay = {}));
82
+ var SurveyQuestionType;
83
+ (function (SurveyQuestionType) {
84
+ SurveyQuestionType["Open"] = "open";
85
+ SurveyQuestionType["MultipleChoice"] = "multiple_choice";
86
+ SurveyQuestionType["SingleChoice"] = "single_choice";
87
+ SurveyQuestionType["Rating"] = "rating";
88
+ SurveyQuestionType["Link"] = "link";
89
+ })(SurveyQuestionType || (SurveyQuestionType = {}));
90
+ var SurveyQuestionBranchingType;
91
+ (function (SurveyQuestionBranchingType) {
92
+ SurveyQuestionBranchingType["NextQuestion"] = "next_question";
93
+ SurveyQuestionBranchingType["End"] = "end";
94
+ SurveyQuestionBranchingType["ResponseBased"] = "response_based";
95
+ SurveyQuestionBranchingType["SpecificQuestion"] = "specific_question";
96
+ })(SurveyQuestionBranchingType || (SurveyQuestionBranchingType = {}));
97
+ var SurveyMatchType;
98
+ (function (SurveyMatchType) {
99
+ SurveyMatchType["Regex"] = "regex";
100
+ SurveyMatchType["NotRegex"] = "not_regex";
101
+ SurveyMatchType["Exact"] = "exact";
102
+ SurveyMatchType["IsNot"] = "is_not";
103
+ SurveyMatchType["Icontains"] = "icontains";
104
+ SurveyMatchType["NotIcontains"] = "not_icontains";
105
+ })(SurveyMatchType || (SurveyMatchType = {}));
106
+ /** Sync with plugin-server/src/types.ts */
107
+ var ActionStepStringMatching;
108
+ (function (ActionStepStringMatching) {
109
+ ActionStepStringMatching["Contains"] = "contains";
110
+ ActionStepStringMatching["Exact"] = "exact";
111
+ ActionStepStringMatching["Regex"] = "regex";
112
+ })(ActionStepStringMatching || (ActionStepStringMatching = {}));
54
113
 
55
114
  const normalizeDecideResponse = (decideResponse) => {
56
115
  if ('flags' in decideResponse) {