posthog-node 4.11.4 → 4.11.5
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 +6 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +10 -13
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/index.cjs.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
import { SeverityLevel } from 'posthog-node/src/extensions/error-tracking/types';
|
|
3
3
|
import * as http from 'node:http';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface SurveyAppearance {
|
|
5
|
+
type SurveyAppearance = {
|
|
9
6
|
// keep in sync with frontend/src/types.ts -> SurveyAppearance
|
|
10
7
|
backgroundColor?: string
|
|
11
8
|
submitButtonColor?: string
|
|
@@ -57,7 +54,7 @@ enum SurveyQuestionDescriptionContentType {
|
|
|
57
54
|
Text = 'text',
|
|
58
55
|
}
|
|
59
56
|
|
|
60
|
-
|
|
57
|
+
type SurveyQuestionBase = {
|
|
61
58
|
question: string
|
|
62
59
|
id?: string // TODO: use this for the question id
|
|
63
60
|
description?: string
|
|
@@ -112,25 +109,25 @@ enum SurveyQuestionBranchingType {
|
|
|
112
109
|
SpecificQuestion = 'specific_question',
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
|
|
112
|
+
type NextQuestionBranching = {
|
|
116
113
|
type: SurveyQuestionBranchingType.NextQuestion
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
|
|
116
|
+
type EndBranching = {
|
|
120
117
|
type: SurveyQuestionBranchingType.End
|
|
121
118
|
}
|
|
122
119
|
|
|
123
|
-
|
|
120
|
+
type ResponseBasedBranching = {
|
|
124
121
|
type: SurveyQuestionBranchingType.ResponseBased
|
|
125
122
|
responseValues: Record<string, any>
|
|
126
123
|
}
|
|
127
124
|
|
|
128
|
-
|
|
125
|
+
type SpecificQuestionBranching = {
|
|
129
126
|
type: SurveyQuestionBranchingType.SpecificQuestion
|
|
130
127
|
index: number
|
|
131
128
|
}
|
|
132
129
|
|
|
133
|
-
|
|
130
|
+
type SurveyResponse = {
|
|
134
131
|
surveys: Survey[]
|
|
135
132
|
}
|
|
136
133
|
|
|
@@ -143,7 +140,7 @@ enum SurveyMatchType {
|
|
|
143
140
|
NotIcontains = 'not_icontains',
|
|
144
141
|
}
|
|
145
142
|
|
|
146
|
-
|
|
143
|
+
type Survey = {
|
|
147
144
|
// Sync this with the backend's SurveyAPISerializer!
|
|
148
145
|
id: string
|
|
149
146
|
name: string
|
|
@@ -182,7 +179,7 @@ interface Survey {
|
|
|
182
179
|
current_iteration_start_date?: string
|
|
183
180
|
}
|
|
184
181
|
|
|
185
|
-
|
|
182
|
+
type SurveyActionType = {
|
|
186
183
|
id: number
|
|
187
184
|
name?: string
|
|
188
185
|
steps?: ActionStepType[]
|
|
@@ -195,7 +192,7 @@ enum ActionStepStringMatching {
|
|
|
195
192
|
Regex = 'regex',
|
|
196
193
|
}
|
|
197
194
|
|
|
198
|
-
|
|
195
|
+
type ActionStepType = {
|
|
199
196
|
event?: string
|
|
200
197
|
selector?: string
|
|
201
198
|
/** @deprecated Only `selector` should be used now. */
|
package/lib/index.esm.js
CHANGED