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 CHANGED
@@ -1,3 +1,9 @@
1
+ # 4.11.5 - 2025-04-14
2
+
3
+ ## Fixed
4
+
5
+ 1. export and declare top-level declarations for surveys
6
+
1
7
  # 4.11.4 - 2025-04-14
2
8
 
3
9
  ## 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.5";
26
26
 
27
27
  var PostHogPersistedProperty;
28
28
  (function (PostHogPersistedProperty) {
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
- // Forces this file to be treated as a module
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
- interface SurveyQuestionBase {
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
- interface NextQuestionBranching {
112
+ type NextQuestionBranching = {
116
113
  type: SurveyQuestionBranchingType.NextQuestion
117
114
  }
118
115
 
119
- interface EndBranching {
116
+ type EndBranching = {
120
117
  type: SurveyQuestionBranchingType.End
121
118
  }
122
119
 
123
- interface ResponseBasedBranching {
120
+ type ResponseBasedBranching = {
124
121
  type: SurveyQuestionBranchingType.ResponseBased
125
122
  responseValues: Record<string, any>
126
123
  }
127
124
 
128
- interface SpecificQuestionBranching {
125
+ type SpecificQuestionBranching = {
129
126
  type: SurveyQuestionBranchingType.SpecificQuestion
130
127
  index: number
131
128
  }
132
129
 
133
- interface SurveyResponse {
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
- interface Survey {
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
- interface SurveyActionType {
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
- interface ActionStepType {
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
@@ -1,6 +1,6 @@
1
1
  import { posix, dirname, sep } from 'node:path';
2
2
 
3
- var version = "4.11.4";
3
+ var version = "4.11.5";
4
4
 
5
5
  var PostHogPersistedProperty;
6
6
  (function (PostHogPersistedProperty) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "4.11.4",
3
+ "version": "4.11.5",
4
4
  "description": "PostHog Node.js integration",
5
5
  "repository": {
6
6
  "type": "git",