@posthog/core 1.0.0

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.
Files changed (43) hide show
  1. package/dist/eventemitter.d.ts +9 -0
  2. package/dist/eventemitter.d.ts.map +1 -0
  3. package/dist/eventemitter.js +52 -0
  4. package/dist/eventemitter.mjs +18 -0
  5. package/dist/featureFlagUtils.d.ts +35 -0
  6. package/dist/featureFlagUtils.d.ts.map +1 -0
  7. package/dist/featureFlagUtils.js +193 -0
  8. package/dist/featureFlagUtils.mjs +138 -0
  9. package/dist/gzip.d.ts +10 -0
  10. package/dist/gzip.d.ts.map +1 -0
  11. package/dist/gzip.js +56 -0
  12. package/dist/gzip.mjs +19 -0
  13. package/dist/index.d.ts +261 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +1305 -0
  16. package/dist/index.mjs +1198 -0
  17. package/dist/testing/PostHogCoreTestClient.d.ts +24 -0
  18. package/dist/testing/PostHogCoreTestClient.d.ts.map +1 -0
  19. package/dist/testing/PostHogCoreTestClient.js +95 -0
  20. package/dist/testing/PostHogCoreTestClient.mjs +58 -0
  21. package/dist/testing/index.d.ts +3 -0
  22. package/dist/testing/index.d.ts.map +1 -0
  23. package/dist/testing/index.js +69 -0
  24. package/dist/testing/index.mjs +2 -0
  25. package/dist/testing/test-utils.d.ts +6 -0
  26. package/dist/testing/test-utils.d.ts.map +1 -0
  27. package/dist/testing/test-utils.js +75 -0
  28. package/dist/testing/test-utils.mjs +29 -0
  29. package/dist/types.d.ts +441 -0
  30. package/dist/types.d.ts.map +1 -0
  31. package/dist/types.js +163 -0
  32. package/dist/types.mjs +99 -0
  33. package/dist/utils.d.ts +24 -0
  34. package/dist/utils.d.ts.map +1 -0
  35. package/dist/utils.js +115 -0
  36. package/dist/utils.mjs +51 -0
  37. package/dist/vendor/uuidv7.d.ts +180 -0
  38. package/dist/vendor/uuidv7.d.ts.map +1 -0
  39. package/dist/vendor/uuidv7.js +223 -0
  40. package/dist/vendor/uuidv7.js.LICENSE.txt +7 -0
  41. package/dist/vendor/uuidv7.mjs +174 -0
  42. package/dist/vendor/uuidv7.mjs.LICENSE.txt +7 -0
  43. package/package.json +52 -0
@@ -0,0 +1,441 @@
1
+ export type PostHogCoreOptions = {
2
+ /** PostHog API host, usually 'https://us.i.posthog.com' or 'https://eu.i.posthog.com' */
3
+ host?: string;
4
+ /** The number of events to queue before sending to PostHog (flushing) */
5
+ flushAt?: number;
6
+ /** The interval in milliseconds between periodic flushes */
7
+ flushInterval?: number;
8
+ /** The maximum number of queued messages to be flushed as part of a single batch (must be higher than `flushAt`) */
9
+ maxBatchSize?: number;
10
+ /** The maximum number of cached messages either in memory or on the local storage.
11
+ * Defaults to 1000, (must be higher than `flushAt`)
12
+ */
13
+ maxQueueSize?: number;
14
+ /** If set to true the SDK is essentially disabled (useful for local environments where you don't want to track anything) */
15
+ disabled?: boolean;
16
+ /** If set to false the SDK will not track until the `optIn` function is called. */
17
+ defaultOptIn?: boolean;
18
+ /** Whether to track that `getFeatureFlag` was called (used by Experiments) */
19
+ sendFeatureFlagEvent?: boolean;
20
+ /** Whether to load feature flags when initialized or not */
21
+ preloadFeatureFlags?: boolean;
22
+ /**
23
+ * Whether to load remote config when initialized or not
24
+ * Experimental support
25
+ * Default: false - Remote config is loaded by default
26
+ */
27
+ disableRemoteConfig?: boolean;
28
+ /**
29
+ * Whether to load surveys when initialized or not
30
+ * Experimental support
31
+ * Default: false - Surveys are loaded by default, but requires the `PostHogSurveyProvider` to be used
32
+ */
33
+ disableSurveys?: boolean;
34
+ /** Option to bootstrap the library with given distinctId and feature flags */
35
+ bootstrap?: {
36
+ distinctId?: string;
37
+ isIdentifiedId?: boolean;
38
+ featureFlags?: Record<string, FeatureFlagValue>;
39
+ featureFlagPayloads?: Record<string, JsonType>;
40
+ };
41
+ /** How many times we will retry HTTP requests. Defaults to 3. */
42
+ fetchRetryCount?: number;
43
+ /** The delay between HTTP request retries, Defaults to 3 seconds. */
44
+ fetchRetryDelay?: number;
45
+ /** Timeout in milliseconds for any calls. Defaults to 10 seconds. */
46
+ requestTimeout?: number;
47
+ /** Timeout in milliseconds for feature flag calls. Defaults to 10 seconds for stateful clients, and 3 seconds for stateless. */
48
+ featureFlagsRequestTimeoutMs?: number;
49
+ /** Timeout in milliseconds for remote config calls. Defaults to 3 seconds. */
50
+ remoteConfigRequestTimeoutMs?: number;
51
+ /** For Session Analysis how long before we expire a session (defaults to 30 mins) */
52
+ sessionExpirationTimeSeconds?: number;
53
+ /** Whether to disable GZIP compression */
54
+ disableCompression?: boolean;
55
+ disableGeoip?: boolean;
56
+ /** Special flag to indicate ingested data is for a historical migration. */
57
+ historicalMigration?: boolean;
58
+ };
59
+ export declare enum PostHogPersistedProperty {
60
+ AnonymousId = "anonymous_id",
61
+ DistinctId = "distinct_id",
62
+ Props = "props",
63
+ FeatureFlagDetails = "feature_flag_details",
64
+ FeatureFlags = "feature_flags",
65
+ FeatureFlagPayloads = "feature_flag_payloads",
66
+ BootstrapFeatureFlagDetails = "bootstrap_feature_flag_details",
67
+ BootstrapFeatureFlags = "bootstrap_feature_flags",
68
+ BootstrapFeatureFlagPayloads = "bootstrap_feature_flag_payloads",
69
+ OverrideFeatureFlags = "override_feature_flags",
70
+ Queue = "queue",
71
+ OptedOut = "opted_out",
72
+ SessionId = "session_id",
73
+ SessionStartTimestamp = "session_start_timestamp",
74
+ SessionLastTimestamp = "session_timestamp",
75
+ PersonProperties = "person_properties",
76
+ GroupProperties = "group_properties",
77
+ InstalledAppBuild = "installed_app_build",// only used by posthog-react-native
78
+ InstalledAppVersion = "installed_app_version",// only used by posthog-react-native
79
+ SessionReplay = "session_replay",// only used by posthog-react-native
80
+ SurveyLastSeenDate = "survey_last_seen_date",// only used by posthog-react-native
81
+ SurveysSeen = "surveys_seen",// only used by posthog-react-native
82
+ Surveys = "surveys",// only used by posthog-react-native
83
+ RemoteConfig = "remote_config",
84
+ FlagsEndpointWasHit = "flags_endpoint_was_hit"
85
+ }
86
+ export type PostHogFetchOptions = {
87
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH';
88
+ mode?: 'no-cors';
89
+ credentials?: 'omit';
90
+ headers: {
91
+ [key: string]: string;
92
+ };
93
+ body?: string | Blob;
94
+ signal?: AbortSignal;
95
+ };
96
+ export type PostHogCaptureOptions = {
97
+ /** If provided overrides the auto-generated event ID */
98
+ uuid?: string;
99
+ /** If provided overrides the auto-generated timestamp */
100
+ timestamp?: Date;
101
+ disableGeoip?: boolean;
102
+ };
103
+ export type PostHogFetchResponse = {
104
+ status: number;
105
+ text: () => Promise<string>;
106
+ json: () => Promise<any>;
107
+ };
108
+ export type PostHogQueueItem = {
109
+ message: any;
110
+ callback?: (err: any) => void;
111
+ };
112
+ export type PostHogEventProperties = {
113
+ [key: string]: JsonType;
114
+ };
115
+ export type PostHogGroupProperties = {
116
+ [type: string]: string | number;
117
+ };
118
+ export type PostHogAutocaptureElement = {
119
+ $el_text?: string;
120
+ tag_name: string;
121
+ href?: string;
122
+ nth_child?: number;
123
+ nth_of_type?: number;
124
+ order?: number;
125
+ } & PostHogEventProperties;
126
+ export declare enum Compression {
127
+ GZipJS = "gzip-js",
128
+ Base64 = "base64"
129
+ }
130
+ export type PostHogRemoteConfig = {
131
+ sessionRecording?: boolean | {
132
+ [key: string]: JsonType;
133
+ };
134
+ /**
135
+ * Supported compression algorithms
136
+ */
137
+ supportedCompression?: Compression[];
138
+ /**
139
+ * Whether surveys are enabled
140
+ */
141
+ surveys?: boolean | Survey[];
142
+ /**
143
+ * Indicates if the team has any flags enabled (if not we don't need to load them)
144
+ */
145
+ hasFeatureFlags?: boolean;
146
+ };
147
+ export type FeatureFlagValue = string | boolean;
148
+ export type PostHogFlagsResponse = Omit<PostHogRemoteConfig, 'surveys' | 'hasFeatureFlags'> & {
149
+ featureFlags: {
150
+ [key: string]: FeatureFlagValue;
151
+ };
152
+ featureFlagPayloads: {
153
+ [key: string]: JsonType;
154
+ };
155
+ flags: {
156
+ [key: string]: FeatureFlagDetail;
157
+ };
158
+ errorsWhileComputingFlags: boolean;
159
+ sessionRecording?: boolean | {
160
+ [key: string]: JsonType;
161
+ };
162
+ quotaLimited?: string[];
163
+ requestId?: string;
164
+ };
165
+ export type PostHogFeatureFlagsResponse = PartialWithRequired<PostHogFlagsResponse, 'flags' | 'featureFlags' | 'featureFlagPayloads' | 'requestId'>;
166
+ /**
167
+ * Creates a type with all properties of T, but makes only K properties required while the rest remain optional.
168
+ *
169
+ * @template T - The base type containing all properties
170
+ * @template K - Union type of keys from T that should be required
171
+ *
172
+ * @example
173
+ * interface User {
174
+ * id: number;
175
+ * name: string;
176
+ * email?: string;
177
+ * age?: number;
178
+ * }
179
+ *
180
+ * // Makes 'id' and 'name' required, but 'email' and 'age' optional
181
+ * type RequiredUser = PartialWithRequired<User, 'id' | 'name'>;
182
+ *
183
+ * const user: RequiredUser = {
184
+ * id: 1, // Must be provided
185
+ * name: "John" // Must be provided
186
+ * // email and age are optional
187
+ * };
188
+ */
189
+ export type PartialWithRequired<T, K extends keyof T> = {
190
+ [P in K]: T[P];
191
+ } & {
192
+ [P in Exclude<keyof T, K>]?: T[P];
193
+ };
194
+ /**
195
+ * These are the fields we care about from PostHogFlagsResponse for feature flags.
196
+ */
197
+ export type PostHogFeatureFlagDetails = PartialWithRequired<PostHogFlagsResponse, 'flags' | 'featureFlags' | 'featureFlagPayloads' | 'requestId'>;
198
+ /**
199
+ * Models the response from the v1 `/flags` endpoint.
200
+ */
201
+ export type PostHogV1FlagsResponse = Omit<PostHogFlagsResponse, 'flags'>;
202
+ /**
203
+ * Models the response from the v2 `/flags` endpoint.
204
+ */
205
+ export type PostHogV2FlagsResponse = Omit<PostHogFlagsResponse, 'featureFlags' | 'featureFlagPayloads'>;
206
+ /**
207
+ * The format of the flags object in persisted storage
208
+ *
209
+ * When we pull flags from persistence, we can normalize them to PostHogFeatureFlagDetails
210
+ * so that we can support v1 and v2 of the API.
211
+ */
212
+ export type PostHogFlagsStorageFormat = Pick<PostHogFeatureFlagDetails, 'flags'>;
213
+ /**
214
+ * Models legacy flags and payloads return type for many public methods.
215
+ */
216
+ export type PostHogFlagsAndPayloadsResponse = Partial<Pick<PostHogFlagsResponse, 'featureFlags' | 'featureFlagPayloads'>>;
217
+ export type JsonType = string | number | boolean | null | {
218
+ [key: string]: JsonType;
219
+ } | Array<JsonType> | JsonType[];
220
+ export type FetchLike = (url: string, options: PostHogFetchOptions) => Promise<PostHogFetchResponse>;
221
+ export type FeatureFlagDetail = {
222
+ key: string;
223
+ enabled: boolean;
224
+ variant: string | undefined;
225
+ reason: EvaluationReason | undefined;
226
+ metadata: FeatureFlagMetadata | undefined;
227
+ };
228
+ export type FeatureFlagMetadata = {
229
+ id: number | undefined;
230
+ version: number | undefined;
231
+ description: string | undefined;
232
+ payload: string | undefined;
233
+ };
234
+ export type EvaluationReason = {
235
+ code: string | undefined;
236
+ condition_index: number | undefined;
237
+ description: string | undefined;
238
+ };
239
+ export type SurveyAppearance = {
240
+ backgroundColor?: string;
241
+ submitButtonColor?: string;
242
+ submitButtonText?: string;
243
+ submitButtonTextColor?: string;
244
+ ratingButtonColor?: string;
245
+ ratingButtonActiveColor?: string;
246
+ autoDisappear?: boolean;
247
+ displayThankYouMessage?: boolean;
248
+ thankYouMessageHeader?: string;
249
+ thankYouMessageDescription?: string;
250
+ thankYouMessageDescriptionContentType?: SurveyQuestionDescriptionContentType;
251
+ thankYouMessageCloseButtonText?: string;
252
+ borderColor?: string;
253
+ position?: SurveyPosition;
254
+ placeholder?: string;
255
+ shuffleQuestions?: boolean;
256
+ surveyPopupDelaySeconds?: number;
257
+ widgetType?: SurveyWidgetType;
258
+ widgetSelector?: string;
259
+ widgetLabel?: string;
260
+ widgetColor?: string;
261
+ };
262
+ export declare enum SurveyPosition {
263
+ TopLeft = "top_left",
264
+ TopCenter = "top_center",
265
+ TopRight = "top_right",
266
+ MiddleLeft = "middle_left",
267
+ MiddleCenter = "middle_center",
268
+ MiddleRight = "middle_right",
269
+ Left = "left",
270
+ Right = "right",
271
+ Center = "center"
272
+ }
273
+ export declare enum SurveyWidgetType {
274
+ Button = "button",
275
+ Tab = "tab",
276
+ Selector = "selector"
277
+ }
278
+ export declare enum SurveyType {
279
+ Popover = "popover",
280
+ API = "api",
281
+ Widget = "widget",
282
+ ExternalSurvey = "external_survey"
283
+ }
284
+ export type SurveyQuestion = BasicSurveyQuestion | LinkSurveyQuestion | RatingSurveyQuestion | MultipleSurveyQuestion;
285
+ export declare enum SurveyQuestionDescriptionContentType {
286
+ Html = "html",
287
+ Text = "text"
288
+ }
289
+ type SurveyQuestionBase = {
290
+ question: string;
291
+ id?: string;
292
+ description?: string;
293
+ descriptionContentType?: SurveyQuestionDescriptionContentType;
294
+ optional?: boolean;
295
+ buttonText?: string;
296
+ originalQuestionIndex: number;
297
+ branching?: NextQuestionBranching | EndBranching | ResponseBasedBranching | SpecificQuestionBranching;
298
+ };
299
+ export type BasicSurveyQuestion = SurveyQuestionBase & {
300
+ type: SurveyQuestionType.Open;
301
+ };
302
+ export type LinkSurveyQuestion = SurveyQuestionBase & {
303
+ type: SurveyQuestionType.Link;
304
+ link?: string;
305
+ };
306
+ export type RatingSurveyQuestion = SurveyQuestionBase & {
307
+ type: SurveyQuestionType.Rating;
308
+ display: SurveyRatingDisplay;
309
+ scale: 3 | 5 | 7 | 10;
310
+ lowerBoundLabel: string;
311
+ upperBoundLabel: string;
312
+ };
313
+ export declare enum SurveyRatingDisplay {
314
+ Number = "number",
315
+ Emoji = "emoji"
316
+ }
317
+ export type MultipleSurveyQuestion = SurveyQuestionBase & {
318
+ type: SurveyQuestionType.SingleChoice | SurveyQuestionType.MultipleChoice;
319
+ choices: string[];
320
+ hasOpenChoice?: boolean;
321
+ shuffleOptions?: boolean;
322
+ };
323
+ export declare enum SurveyQuestionType {
324
+ Open = "open",
325
+ MultipleChoice = "multiple_choice",
326
+ SingleChoice = "single_choice",
327
+ Rating = "rating",
328
+ Link = "link"
329
+ }
330
+ export declare enum SurveyQuestionBranchingType {
331
+ NextQuestion = "next_question",
332
+ End = "end",
333
+ ResponseBased = "response_based",
334
+ SpecificQuestion = "specific_question"
335
+ }
336
+ export type NextQuestionBranching = {
337
+ type: SurveyQuestionBranchingType.NextQuestion;
338
+ };
339
+ export type EndBranching = {
340
+ type: SurveyQuestionBranchingType.End;
341
+ };
342
+ export type ResponseBasedBranching = {
343
+ type: SurveyQuestionBranchingType.ResponseBased;
344
+ responseValues: Record<string, any>;
345
+ };
346
+ export type SpecificQuestionBranching = {
347
+ type: SurveyQuestionBranchingType.SpecificQuestion;
348
+ index: number;
349
+ };
350
+ export type SurveyResponse = {
351
+ surveys: Survey[];
352
+ };
353
+ export type SurveyCallback = (surveys: Survey[]) => void;
354
+ export declare enum SurveyMatchType {
355
+ Regex = "regex",
356
+ NotRegex = "not_regex",
357
+ Exact = "exact",
358
+ IsNot = "is_not",
359
+ Icontains = "icontains",
360
+ NotIcontains = "not_icontains"
361
+ }
362
+ export type SurveyElement = {
363
+ text?: string;
364
+ $el_text?: string;
365
+ tag_name?: string;
366
+ href?: string;
367
+ attr_id?: string;
368
+ attr_class?: string[];
369
+ nth_child?: number;
370
+ nth_of_type?: number;
371
+ attributes?: Record<string, any>;
372
+ event_id?: number;
373
+ order?: number;
374
+ group_id?: number;
375
+ };
376
+ export type SurveyRenderReason = {
377
+ visible: boolean;
378
+ disabledReason?: string;
379
+ };
380
+ export type Survey = {
381
+ id: string;
382
+ name: string;
383
+ description?: string;
384
+ type: SurveyType;
385
+ feature_flag_keys?: {
386
+ key: string;
387
+ value?: string;
388
+ }[];
389
+ linked_flag_key?: string;
390
+ targeting_flag_key?: string;
391
+ internal_targeting_flag_key?: string;
392
+ questions: SurveyQuestion[];
393
+ appearance?: SurveyAppearance;
394
+ conditions?: {
395
+ url?: string;
396
+ selector?: string;
397
+ seenSurveyWaitPeriodInDays?: number;
398
+ urlMatchType?: SurveyMatchType;
399
+ events?: {
400
+ repeatedActivation?: boolean;
401
+ values?: {
402
+ name: string;
403
+ }[];
404
+ };
405
+ actions?: {
406
+ values: SurveyActionType[];
407
+ };
408
+ deviceTypes?: string[];
409
+ deviceTypesMatchType?: SurveyMatchType;
410
+ };
411
+ start_date?: string;
412
+ end_date?: string;
413
+ current_iteration?: number;
414
+ current_iteration_start_date?: string;
415
+ };
416
+ export type SurveyActionType = {
417
+ id: number;
418
+ name?: string;
419
+ steps?: ActionStepType[];
420
+ };
421
+ /** Sync with plugin-server/src/types.ts */
422
+ export declare enum ActionStepStringMatching {
423
+ Contains = "contains",
424
+ Exact = "exact",
425
+ Regex = "regex"
426
+ }
427
+ export type ActionStepType = {
428
+ event?: string;
429
+ selector?: string;
430
+ text?: string;
431
+ /** @default StringMatching.Exact */
432
+ text_matching?: ActionStepStringMatching;
433
+ href?: string;
434
+ /** @default ActionStepStringMatching.Exact */
435
+ href_matching?: ActionStepStringMatching;
436
+ url?: string;
437
+ /** @default StringMatching.Contains */
438
+ url_matching?: ActionStepStringMatching;
439
+ };
440
+ export {};
441
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oHAAoH;IACpH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4HAA4H;IAC5H,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mFAAmF;IACnF,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8EAA8E;IAC9E,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,OAAO,CAAA;I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AAwB;IAClC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,aAAa,CAAC,EAAE,wBAAwB,CAAA;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8CAA8C;IAC9C,aAAa,CAAC,EAAE,wBAAwB,CAAA;IACxC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,YAAY,CAAC,EAAE,wBAAwB,CAAA;CACxC,CAAA"}
package/dist/types.js ADDED
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ ActionStepStringMatching: ()=>ActionStepStringMatching,
28
+ Compression: ()=>Compression,
29
+ PostHogPersistedProperty: ()=>PostHogPersistedProperty,
30
+ SurveyMatchType: ()=>SurveyMatchType,
31
+ SurveyPosition: ()=>SurveyPosition,
32
+ SurveyQuestionBranchingType: ()=>SurveyQuestionBranchingType,
33
+ SurveyQuestionDescriptionContentType: ()=>SurveyQuestionDescriptionContentType,
34
+ SurveyQuestionType: ()=>SurveyQuestionType,
35
+ SurveyRatingDisplay: ()=>SurveyRatingDisplay,
36
+ SurveyType: ()=>SurveyType,
37
+ SurveyWidgetType: ()=>SurveyWidgetType
38
+ });
39
+ var PostHogPersistedProperty = /*#__PURE__*/ function(PostHogPersistedProperty) {
40
+ PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
41
+ PostHogPersistedProperty["DistinctId"] = "distinct_id";
42
+ PostHogPersistedProperty["Props"] = "props";
43
+ PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
44
+ PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
45
+ PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
46
+ PostHogPersistedProperty["BootstrapFeatureFlagDetails"] = "bootstrap_feature_flag_details";
47
+ PostHogPersistedProperty["BootstrapFeatureFlags"] = "bootstrap_feature_flags";
48
+ PostHogPersistedProperty["BootstrapFeatureFlagPayloads"] = "bootstrap_feature_flag_payloads";
49
+ PostHogPersistedProperty["OverrideFeatureFlags"] = "override_feature_flags";
50
+ PostHogPersistedProperty["Queue"] = "queue";
51
+ PostHogPersistedProperty["OptedOut"] = "opted_out";
52
+ PostHogPersistedProperty["SessionId"] = "session_id";
53
+ PostHogPersistedProperty["SessionStartTimestamp"] = "session_start_timestamp";
54
+ PostHogPersistedProperty["SessionLastTimestamp"] = "session_timestamp";
55
+ PostHogPersistedProperty["PersonProperties"] = "person_properties";
56
+ PostHogPersistedProperty["GroupProperties"] = "group_properties";
57
+ PostHogPersistedProperty["InstalledAppBuild"] = "installed_app_build";
58
+ PostHogPersistedProperty["InstalledAppVersion"] = "installed_app_version";
59
+ PostHogPersistedProperty["SessionReplay"] = "session_replay";
60
+ PostHogPersistedProperty["SurveyLastSeenDate"] = "survey_last_seen_date";
61
+ PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
62
+ PostHogPersistedProperty["Surveys"] = "surveys";
63
+ PostHogPersistedProperty["RemoteConfig"] = "remote_config";
64
+ PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
65
+ return PostHogPersistedProperty;
66
+ }({});
67
+ var Compression = /*#__PURE__*/ function(Compression) {
68
+ Compression["GZipJS"] = "gzip-js";
69
+ Compression["Base64"] = "base64";
70
+ return Compression;
71
+ }({});
72
+ var SurveyPosition = /*#__PURE__*/ function(SurveyPosition) {
73
+ SurveyPosition["TopLeft"] = "top_left";
74
+ SurveyPosition["TopCenter"] = "top_center";
75
+ SurveyPosition["TopRight"] = "top_right";
76
+ SurveyPosition["MiddleLeft"] = "middle_left";
77
+ SurveyPosition["MiddleCenter"] = "middle_center";
78
+ SurveyPosition["MiddleRight"] = "middle_right";
79
+ SurveyPosition["Left"] = "left";
80
+ SurveyPosition["Right"] = "right";
81
+ SurveyPosition["Center"] = "center";
82
+ return SurveyPosition;
83
+ }({});
84
+ var SurveyWidgetType = /*#__PURE__*/ function(SurveyWidgetType) {
85
+ SurveyWidgetType["Button"] = "button";
86
+ SurveyWidgetType["Tab"] = "tab";
87
+ SurveyWidgetType["Selector"] = "selector";
88
+ return SurveyWidgetType;
89
+ }({});
90
+ var SurveyType = /*#__PURE__*/ function(SurveyType) {
91
+ SurveyType["Popover"] = "popover";
92
+ SurveyType["API"] = "api";
93
+ SurveyType["Widget"] = "widget";
94
+ SurveyType["ExternalSurvey"] = "external_survey";
95
+ return SurveyType;
96
+ }({});
97
+ var SurveyQuestionDescriptionContentType = /*#__PURE__*/ function(SurveyQuestionDescriptionContentType) {
98
+ SurveyQuestionDescriptionContentType["Html"] = "html";
99
+ SurveyQuestionDescriptionContentType["Text"] = "text";
100
+ return SurveyQuestionDescriptionContentType;
101
+ }({});
102
+ var SurveyRatingDisplay = /*#__PURE__*/ function(SurveyRatingDisplay) {
103
+ SurveyRatingDisplay["Number"] = "number";
104
+ SurveyRatingDisplay["Emoji"] = "emoji";
105
+ return SurveyRatingDisplay;
106
+ }({});
107
+ var SurveyQuestionType = /*#__PURE__*/ function(SurveyQuestionType) {
108
+ SurveyQuestionType["Open"] = "open";
109
+ SurveyQuestionType["MultipleChoice"] = "multiple_choice";
110
+ SurveyQuestionType["SingleChoice"] = "single_choice";
111
+ SurveyQuestionType["Rating"] = "rating";
112
+ SurveyQuestionType["Link"] = "link";
113
+ return SurveyQuestionType;
114
+ }({});
115
+ var SurveyQuestionBranchingType = /*#__PURE__*/ function(SurveyQuestionBranchingType) {
116
+ SurveyQuestionBranchingType["NextQuestion"] = "next_question";
117
+ SurveyQuestionBranchingType["End"] = "end";
118
+ SurveyQuestionBranchingType["ResponseBased"] = "response_based";
119
+ SurveyQuestionBranchingType["SpecificQuestion"] = "specific_question";
120
+ return SurveyQuestionBranchingType;
121
+ }({});
122
+ var SurveyMatchType = /*#__PURE__*/ function(SurveyMatchType) {
123
+ SurveyMatchType["Regex"] = "regex";
124
+ SurveyMatchType["NotRegex"] = "not_regex";
125
+ SurveyMatchType["Exact"] = "exact";
126
+ SurveyMatchType["IsNot"] = "is_not";
127
+ SurveyMatchType["Icontains"] = "icontains";
128
+ SurveyMatchType["NotIcontains"] = "not_icontains";
129
+ return SurveyMatchType;
130
+ }({});
131
+ var ActionStepStringMatching = /*#__PURE__*/ function(ActionStepStringMatching) {
132
+ ActionStepStringMatching["Contains"] = "contains";
133
+ ActionStepStringMatching["Exact"] = "exact";
134
+ ActionStepStringMatching["Regex"] = "regex";
135
+ return ActionStepStringMatching;
136
+ }({});
137
+ exports.ActionStepStringMatching = __webpack_exports__.ActionStepStringMatching;
138
+ exports.Compression = __webpack_exports__.Compression;
139
+ exports.PostHogPersistedProperty = __webpack_exports__.PostHogPersistedProperty;
140
+ exports.SurveyMatchType = __webpack_exports__.SurveyMatchType;
141
+ exports.SurveyPosition = __webpack_exports__.SurveyPosition;
142
+ exports.SurveyQuestionBranchingType = __webpack_exports__.SurveyQuestionBranchingType;
143
+ exports.SurveyQuestionDescriptionContentType = __webpack_exports__.SurveyQuestionDescriptionContentType;
144
+ exports.SurveyQuestionType = __webpack_exports__.SurveyQuestionType;
145
+ exports.SurveyRatingDisplay = __webpack_exports__.SurveyRatingDisplay;
146
+ exports.SurveyType = __webpack_exports__.SurveyType;
147
+ exports.SurveyWidgetType = __webpack_exports__.SurveyWidgetType;
148
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
149
+ "ActionStepStringMatching",
150
+ "Compression",
151
+ "PostHogPersistedProperty",
152
+ "SurveyMatchType",
153
+ "SurveyPosition",
154
+ "SurveyQuestionBranchingType",
155
+ "SurveyQuestionDescriptionContentType",
156
+ "SurveyQuestionType",
157
+ "SurveyRatingDisplay",
158
+ "SurveyType",
159
+ "SurveyWidgetType"
160
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
161
+ Object.defineProperty(exports, '__esModule', {
162
+ value: true
163
+ });