@picked/analytics 0.0.70 → 0.0.71-next.2
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/dist/.tsbuildinfo +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/plugins/analytics/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/plugins/analytics/index.js +1 -1
- package/dist/{src-DCcxqQag.js → src-R1PKYjf1.js} +10 -9
- package/dist/src-UWMblyJI.cjs +1 -0
- package/dist/types/events/app_close.d.ts +3 -3
- package/dist/types/events/app_initialize.d.ts +3 -3
- package/dist/types/events/app_load.d.ts +3 -3
- package/dist/types/events/app_open.d.ts +3 -3
- package/dist/types/events/cart_add.d.ts +4 -4
- package/dist/types/events/cart_remove.d.ts +4 -4
- package/dist/types/events/checkout_complete.d.ts +4 -4
- package/dist/types/events/checkout_start.d.ts +4 -4
- package/dist/types/events/custom.d.ts +2 -2
- package/dist/types/events/experience_load.d.ts +3 -3
- package/dist/types/events/feature_decide.d.ts +3 -3
- package/dist/types/events/field_validation_error.d.ts +3 -3
- package/dist/types/events/form_submit.d.ts +3 -3
- package/dist/types/events/form_submit_error.d.ts +3 -3
- package/dist/types/events/form_submit_success.d.ts +3 -3
- package/dist/types/events/identify.d.ts +4 -4
- package/dist/types/events/interaction/back.d.ts +3 -3
- package/dist/types/events/interaction/backspace.d.ts +3 -3
- package/dist/types/events/interaction/click.d.ts +3 -3
- package/dist/types/events/interaction/copy.d.ts +3 -3
- package/dist/types/events/interaction/drag.d.ts +3 -3
- package/dist/types/events/interaction/forward.d.ts +3 -3
- package/dist/types/events/interaction/mouse_shake.d.ts +3 -3
- package/dist/types/events/interaction/offline.d.ts +3 -3
- package/dist/types/events/interaction/online.d.ts +3 -3
- package/dist/types/events/interaction/page_hidden.d.ts +3 -3
- package/dist/types/events/interaction/page_hide.d.ts +3 -3
- package/dist/types/events/interaction/page_show.d.ts +3 -3
- package/dist/types/events/interaction/page_visible.d.ts +3 -3
- package/dist/types/events/interaction/paste.d.ts +3 -3
- package/dist/types/events/interaction/rapid_click.d.ts +3 -3
- package/dist/types/events/interaction/rapid_scroll.d.ts +3 -3
- package/dist/types/events/interaction/resize.d.ts +3 -3
- package/dist/types/events/interaction/right_click.d.ts +3 -3
- package/dist/types/events/interaction/scroll.d.ts +3 -3
- package/dist/types/events/interaction/unload.d.ts +3 -3
- package/dist/types/events/interaction/video_pause.d.ts +4 -3
- package/dist/types/events/interaction/video_play.d.ts +4 -3
- package/dist/types/events/lead_capture.d.ts +3 -3
- package/dist/types/events/modal_close.d.ts +3 -3
- package/dist/types/events/modal_open.d.ts +3 -3
- package/dist/types/events/order_create.d.ts +4 -4
- package/dist/types/events/page_view.d.ts +4 -4
- package/dist/types/events/product_list_view.d.ts +4 -4
- package/dist/types/events/product_select.d.ts +3 -3
- package/dist/types/events/product_view_details.d.ts +4 -4
- package/dist/types/events/recommendation_present.d.ts +3 -3
- package/dist/types/events/search_results_list_view.d.ts +3 -3
- package/dist/types/events/step_complete.d.ts +3 -3
- package/dist/types/events/step_enter.d.ts +3 -3
- package/dist/types/events/step_submit.d.ts +3 -3
- package/dist/types/events/step_submit_error.d.ts +3 -3
- package/dist/types/events/step_submit_success.d.ts +3 -3
- package/dist/types/events/waitlist_join.d.ts +3 -3
- package/dist/types/events/wishlist_add.d.ts +3 -3
- package/dist/types/fixtures/analytics-event.d.ts.map +1 -1
- package/dist/types/interaction-events.d.ts +5 -1
- package/dist/types/listeners/backspace.d.ts +1 -1
- package/dist/types/listeners/click.d.ts +1 -1
- package/dist/types/listeners/copy.d.ts +1 -1
- package/dist/types/listeners/drag.d.ts +1 -1
- package/dist/types/listeners/mouse_shake.d.ts +1 -1
- package/dist/types/listeners/offline.d.ts +1 -1
- package/dist/types/listeners/online.d.ts +1 -1
- package/dist/types/listeners/pagehide.d.ts +1 -1
- package/dist/types/listeners/pageshow.d.ts +1 -1
- package/dist/types/listeners/paste.d.ts +1 -1
- package/dist/types/listeners/rapid_click.d.ts +1 -1
- package/dist/types/listeners/rapid_scroll.d.ts +1 -1
- package/dist/types/listeners/resize.d.ts +1 -1
- package/dist/types/listeners/right_click.d.ts +1 -1
- package/dist/types/listeners/scroll.d.ts +1 -1
- package/dist/types/listeners/unload.d.ts +1 -1
- package/dist/types/listeners/video_pause.d.ts +1 -1
- package/dist/types/listeners/video_play.d.ts +1 -1
- package/dist/types/listeners/visibility.d.ts +1 -1
- package/dist/types/plugins/analytics/plugin.d.ts +4 -3
- package/dist/types/plugins/analytics/plugin.d.ts.map +1 -1
- package/dist/types/schemas/answer_list/1-0-0.d.ts +27 -27
- package/dist/types/schemas/answer_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/answer_list/index.d.ts +28 -28
- package/dist/types/schemas/answer_list/index.d.ts.map +1 -1
- package/dist/types/schemas/app/1-0-0.d.ts +15 -15
- package/dist/types/schemas/app/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/app/1-1-0.d.ts +14 -13
- package/dist/types/schemas/app/1-1-0.d.ts.map +1 -1
- package/dist/types/schemas/app/index.d.ts +29 -28
- package/dist/types/schemas/app/index.d.ts.map +1 -1
- package/dist/types/schemas/cvly_funnel/1-0-0.d.ts +13 -13
- package/dist/types/schemas/cvly_funnel/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/cvly_funnel/index.d.ts +14 -14
- package/dist/types/schemas/cvly_funnel/index.d.ts.map +1 -1
- package/dist/types/schemas/cvly_x/1-0-0.d.ts +19 -19
- package/dist/types/schemas/cvly_x/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/cvly_x/1-0-1.d.ts +19 -19
- package/dist/types/schemas/cvly_x/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/cvly_x/index.d.ts +38 -38
- package/dist/types/schemas/cvly_x/index.d.ts.map +1 -1
- package/dist/types/schemas/deployment/1-0-0.d.ts +19 -19
- package/dist/types/schemas/deployment/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/deployment/1-0-1.d.ts +19 -19
- package/dist/types/schemas/deployment/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/deployment/index.d.ts +38 -38
- package/dist/types/schemas/deployment/index.d.ts.map +1 -1
- package/dist/types/schemas/element/1-0-0.d.ts +19 -19
- package/dist/types/schemas/element/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/element/index.d.ts +20 -20
- package/dist/types/schemas/element/index.d.ts.map +1 -1
- package/dist/types/schemas/event/1-0-0.d.ts +13 -13
- package/dist/types/schemas/event/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/event/index.d.ts +14 -14
- package/dist/types/schemas/event/index.d.ts.map +1 -1
- package/dist/types/schemas/exception/1-0-0.d.ts +13 -13
- package/dist/types/schemas/exception/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/exception/index.d.ts +14 -14
- package/dist/types/schemas/exception/index.d.ts.map +1 -1
- package/dist/types/schemas/experience/1-0-0.d.ts +17 -17
- package/dist/types/schemas/experience/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/experience/1-0-1.d.ts +17 -17
- package/dist/types/schemas/experience/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/experience/index.d.ts +34 -34
- package/dist/types/schemas/experience/index.d.ts.map +1 -1
- package/dist/types/schemas/feature_list/1-0-0.d.ts +26 -26
- package/dist/types/schemas/feature_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/feature_list/2-0-0.d.ts +26 -26
- package/dist/types/schemas/feature_list/2-0-0.d.ts.map +1 -1
- package/dist/types/schemas/feature_list/index.d.ts +52 -52
- package/dist/types/schemas/feature_list/index.d.ts.map +1 -1
- package/dist/types/schemas/field_list/1-0-0.d.ts +37 -37
- package/dist/types/schemas/field_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/field_list/index.d.ts +38 -38
- package/dist/types/schemas/field_list/index.d.ts.map +1 -1
- package/dist/types/schemas/form/1-0-0.d.ts +15 -15
- package/dist/types/schemas/form/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/form/index.d.ts +16 -16
- package/dist/types/schemas/form/index.d.ts.map +1 -1
- package/dist/types/schemas/modal/1-0-0.d.ts +15 -15
- package/dist/types/schemas/modal/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/modal/index.d.ts +16 -16
- package/dist/types/schemas/modal/index.d.ts.map +1 -1
- package/dist/types/schemas/order/1-0-0.d.ts +19 -19
- package/dist/types/schemas/order/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/order/index.d.ts +20 -20
- package/dist/types/schemas/order/index.d.ts.map +1 -1
- package/dist/types/schemas/picked/1-0-0.d.ts +13 -13
- package/dist/types/schemas/picked/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/picked/index.d.ts +14 -14
- package/dist/types/schemas/picked/index.d.ts.map +1 -1
- package/dist/types/schemas/product_list/1-0-0.d.ts +34 -34
- package/dist/types/schemas/product_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/product_list/2-0-0.d.ts +65 -65
- package/dist/types/schemas/product_list/2-0-0.d.ts.map +1 -1
- package/dist/types/schemas/product_list/2-0-1.d.ts +67 -67
- package/dist/types/schemas/product_list/2-0-1.d.ts.map +1 -1
- package/dist/types/schemas/product_list/index.d.ts +165 -165
- package/dist/types/schemas/product_list/index.d.ts.map +1 -1
- package/dist/types/schemas/question_list/1-0-0.d.ts +37 -37
- package/dist/types/schemas/question_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/question_list/index.d.ts +38 -38
- package/dist/types/schemas/question_list/index.d.ts.map +1 -1
- package/dist/types/schemas/recommendation_list/1-0-0.d.ts +24 -24
- package/dist/types/schemas/recommendation_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/recommendation_list/index.d.ts +25 -25
- package/dist/types/schemas/recommendation_list/index.d.ts.map +1 -1
- package/dist/types/schemas/response_list/1-0-0.d.ts +27 -27
- package/dist/types/schemas/response_list/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/response_list/index.d.ts +28 -28
- package/dist/types/schemas/response_list/index.d.ts.map +1 -1
- package/dist/types/schemas/session/1-0-0.d.ts +13 -13
- package/dist/types/schemas/session/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/session/1-0-1.d.ts +14 -14
- package/dist/types/schemas/session/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/session/1-0-2.d.ts +16 -16
- package/dist/types/schemas/session/1-0-2.d.ts.map +1 -1
- package/dist/types/schemas/session/1-0-3.d.ts +22 -22
- package/dist/types/schemas/session/1-0-3.d.ts.map +1 -1
- package/dist/types/schemas/session/1-0-4.d.ts +24 -24
- package/dist/types/schemas/session/1-0-4.d.ts.map +1 -1
- package/dist/types/schemas/session/index.d.ts +86 -86
- package/dist/types/schemas/session/index.d.ts.map +1 -1
- package/dist/types/schemas/step/1-0-0.d.ts +15 -15
- package/dist/types/schemas/step/1-0-0.d.ts.map +1 -1
- package/dist/types/schemas/step/1-0-1.d.ts +18 -17
- package/dist/types/schemas/step/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/step/index.d.ts +33 -32
- package/dist/types/schemas/step/index.d.ts.map +1 -1
- package/dist/types/tracker.d.ts +2 -2
- package/dist/types/types.d.ts +4 -3
- package/dist/types/user-interaction.d.ts +6 -2
- package/dist/types/utils.d.ts +2 -2
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +23 -24
- package/dist/src-D2gFGLtR.cjs +0 -1
|
@@ -1,200 +1,200 @@
|
|
|
1
|
-
import { SchemaUrl } from '../../types';
|
|
2
|
-
import { Schema as Schema1_0_4, Version as Version1_0_4 } from './1-0-4';
|
|
1
|
+
import type { SchemaUrl } from '../../types';
|
|
2
|
+
import type { Schema as Schema1_0_4, Version as Version1_0_4 } from './1-0-4';
|
|
3
3
|
export declare const name = "session";
|
|
4
4
|
export declare const schemas: {
|
|
5
5
|
'1-0-0': {
|
|
6
|
-
readonly $schema:
|
|
6
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
7
7
|
readonly additionalProperties: true;
|
|
8
|
-
readonly description:
|
|
8
|
+
readonly description: 'Schema for a session';
|
|
9
9
|
readonly minProperties: 1;
|
|
10
10
|
readonly properties: {
|
|
11
11
|
readonly id: {
|
|
12
|
-
readonly description:
|
|
13
|
-
readonly type:
|
|
12
|
+
readonly description: 'The session ID';
|
|
13
|
+
readonly type: 'string';
|
|
14
14
|
readonly maxLength: 255;
|
|
15
15
|
};
|
|
16
16
|
readonly meta: {
|
|
17
|
-
readonly description:
|
|
17
|
+
readonly description: 'Additional metadata';
|
|
18
18
|
readonly additionalProperties: true;
|
|
19
|
-
readonly type: readonly [
|
|
19
|
+
readonly type: readonly ['object', 'null'];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
readonly required: readonly [
|
|
22
|
+
readonly required: readonly ['id'];
|
|
23
23
|
readonly self: {
|
|
24
|
-
readonly vendor:
|
|
25
|
-
readonly name:
|
|
26
|
-
readonly format:
|
|
27
|
-
readonly version:
|
|
24
|
+
readonly vendor: 'dev.pckd';
|
|
25
|
+
readonly name: 'session';
|
|
26
|
+
readonly format: 'jsonschema';
|
|
27
|
+
readonly version: '1-0-0';
|
|
28
28
|
};
|
|
29
|
-
readonly type:
|
|
29
|
+
readonly type: 'object';
|
|
30
30
|
};
|
|
31
31
|
'1-0-1': {
|
|
32
|
-
readonly $schema:
|
|
32
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
33
33
|
readonly additionalProperties: true;
|
|
34
|
-
readonly description:
|
|
34
|
+
readonly description: 'Schema for a session';
|
|
35
35
|
readonly minProperties: 1;
|
|
36
36
|
readonly properties: {
|
|
37
37
|
readonly id: {
|
|
38
|
-
readonly description:
|
|
39
|
-
readonly type: readonly [
|
|
38
|
+
readonly description: 'The session ID';
|
|
39
|
+
readonly type: readonly ['string', 'null'];
|
|
40
40
|
readonly maxLength: 255;
|
|
41
41
|
};
|
|
42
42
|
readonly gaid: {
|
|
43
|
-
readonly description:
|
|
44
|
-
readonly type: readonly [
|
|
43
|
+
readonly description: 'The session Google Analytics Client ID';
|
|
44
|
+
readonly type: readonly ['string', 'null'];
|
|
45
45
|
readonly maxLength: 255;
|
|
46
46
|
};
|
|
47
47
|
readonly meta: {
|
|
48
|
-
readonly description:
|
|
48
|
+
readonly description: 'Additional metadata';
|
|
49
49
|
readonly additionalProperties: true;
|
|
50
|
-
readonly type: readonly [
|
|
50
|
+
readonly type: readonly ['object', 'null'];
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
readonly self: {
|
|
54
|
-
readonly vendor:
|
|
55
|
-
readonly name:
|
|
56
|
-
readonly format:
|
|
57
|
-
readonly version:
|
|
54
|
+
readonly vendor: 'dev.pckd';
|
|
55
|
+
readonly name: 'session';
|
|
56
|
+
readonly format: 'jsonschema';
|
|
57
|
+
readonly version: '1-0-1';
|
|
58
58
|
};
|
|
59
|
-
readonly type:
|
|
59
|
+
readonly type: 'object';
|
|
60
60
|
};
|
|
61
61
|
'1-0-2': {
|
|
62
|
-
readonly $schema:
|
|
62
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
63
63
|
readonly additionalProperties: true;
|
|
64
|
-
readonly description:
|
|
64
|
+
readonly description: 'Schema for a session';
|
|
65
65
|
readonly minProperties: 1;
|
|
66
66
|
readonly properties: {
|
|
67
67
|
readonly id: {
|
|
68
|
-
readonly description:
|
|
69
|
-
readonly type: readonly [
|
|
68
|
+
readonly description: 'The session ID';
|
|
69
|
+
readonly type: readonly ['string', 'null'];
|
|
70
70
|
readonly maxLength: 255;
|
|
71
71
|
};
|
|
72
72
|
readonly gaid: {
|
|
73
|
-
readonly description:
|
|
74
|
-
readonly type: readonly [
|
|
73
|
+
readonly description: 'The session Google Analytics Client ID';
|
|
74
|
+
readonly type: readonly ['string', 'null'];
|
|
75
75
|
readonly maxLength: 255;
|
|
76
76
|
};
|
|
77
77
|
readonly shopify_client_id: {
|
|
78
|
-
readonly description:
|
|
79
|
-
readonly type: readonly [
|
|
78
|
+
readonly description: 'The session Shopify Client ID';
|
|
79
|
+
readonly type: readonly ['string', 'null'];
|
|
80
80
|
readonly maxLength: 255;
|
|
81
81
|
};
|
|
82
82
|
readonly meta: {
|
|
83
|
-
readonly description:
|
|
83
|
+
readonly description: 'Additional metadata';
|
|
84
84
|
readonly additionalProperties: true;
|
|
85
|
-
readonly type: readonly [
|
|
85
|
+
readonly type: readonly ['object', 'null'];
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
readonly self: {
|
|
89
|
-
readonly vendor:
|
|
90
|
-
readonly name:
|
|
91
|
-
readonly format:
|
|
92
|
-
readonly version:
|
|
89
|
+
readonly vendor: 'dev.pckd';
|
|
90
|
+
readonly name: 'session';
|
|
91
|
+
readonly format: 'jsonschema';
|
|
92
|
+
readonly version: '1-0-2';
|
|
93
93
|
};
|
|
94
|
-
readonly type:
|
|
94
|
+
readonly type: 'object';
|
|
95
95
|
};
|
|
96
96
|
'1-0-3': {
|
|
97
|
-
readonly $schema:
|
|
97
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
98
98
|
readonly additionalProperties: true;
|
|
99
|
-
readonly description:
|
|
99
|
+
readonly description: 'Schema for a session';
|
|
100
100
|
readonly minProperties: 1;
|
|
101
101
|
readonly properties: {
|
|
102
102
|
readonly id: {
|
|
103
|
-
readonly description:
|
|
104
|
-
readonly type: readonly [
|
|
103
|
+
readonly description: 'The session ID';
|
|
104
|
+
readonly type: readonly ['string', 'null'];
|
|
105
105
|
readonly maxLength: 255;
|
|
106
106
|
};
|
|
107
107
|
readonly is_user: {
|
|
108
|
-
readonly description:
|
|
109
|
-
readonly type: readonly [
|
|
108
|
+
readonly description: 'The session is attributed to a Picked user';
|
|
109
|
+
readonly type: readonly ['boolean', 'null'];
|
|
110
110
|
};
|
|
111
111
|
readonly gaid: {
|
|
112
|
-
readonly description:
|
|
113
|
-
readonly type: readonly [
|
|
112
|
+
readonly description: 'The session Google Analytics Client ID';
|
|
113
|
+
readonly type: readonly ['string', 'null'];
|
|
114
114
|
readonly maxLength: 255;
|
|
115
115
|
};
|
|
116
116
|
readonly shopify_client_id: {
|
|
117
|
-
readonly description:
|
|
118
|
-
readonly type: readonly [
|
|
117
|
+
readonly description: 'The session Shopify Client ID';
|
|
118
|
+
readonly type: readonly ['string', 'null'];
|
|
119
119
|
readonly maxLength: 255;
|
|
120
120
|
};
|
|
121
121
|
readonly shopify_customer_id: {
|
|
122
|
-
readonly description:
|
|
123
|
-
readonly type: readonly [
|
|
122
|
+
readonly description: 'The session Shopify Customer ID';
|
|
123
|
+
readonly type: readonly ['string', 'null'];
|
|
124
124
|
readonly maxLength: 255;
|
|
125
125
|
};
|
|
126
126
|
readonly shopify_checkout_token: {
|
|
127
|
-
readonly description:
|
|
128
|
-
readonly type: readonly [
|
|
127
|
+
readonly description: 'The session Shopify Checkout token';
|
|
128
|
+
readonly type: readonly ['string', 'null'];
|
|
129
129
|
readonly maxLength: 255;
|
|
130
130
|
};
|
|
131
131
|
readonly meta: {
|
|
132
|
-
readonly description:
|
|
132
|
+
readonly description: 'Additional metadata';
|
|
133
133
|
readonly additionalProperties: true;
|
|
134
|
-
readonly type: readonly [
|
|
134
|
+
readonly type: readonly ['object', 'null'];
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
137
|
readonly self: {
|
|
138
|
-
readonly vendor:
|
|
139
|
-
readonly name:
|
|
140
|
-
readonly format:
|
|
141
|
-
readonly version:
|
|
138
|
+
readonly vendor: 'dev.pckd';
|
|
139
|
+
readonly name: 'session';
|
|
140
|
+
readonly format: 'jsonschema';
|
|
141
|
+
readonly version: '1-0-3';
|
|
142
142
|
};
|
|
143
|
-
readonly type:
|
|
143
|
+
readonly type: 'object';
|
|
144
144
|
};
|
|
145
145
|
'1-0-4': {
|
|
146
|
-
readonly $schema:
|
|
146
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
147
147
|
readonly additionalProperties: true;
|
|
148
|
-
readonly description:
|
|
148
|
+
readonly description: 'Schema for a session';
|
|
149
149
|
readonly minProperties: 1;
|
|
150
150
|
readonly properties: {
|
|
151
151
|
readonly id: {
|
|
152
|
-
readonly description:
|
|
153
|
-
readonly type: readonly [
|
|
152
|
+
readonly description: 'The session ID';
|
|
153
|
+
readonly type: readonly ['string', 'null'];
|
|
154
154
|
readonly maxLength: 255;
|
|
155
155
|
};
|
|
156
156
|
readonly is_user: {
|
|
157
|
-
readonly description:
|
|
158
|
-
readonly type: readonly [
|
|
157
|
+
readonly description: 'The session is attributed to a Picked user';
|
|
158
|
+
readonly type: readonly ['boolean', 'null'];
|
|
159
159
|
};
|
|
160
160
|
readonly gaid: {
|
|
161
|
-
readonly description:
|
|
162
|
-
readonly type: readonly [
|
|
161
|
+
readonly description: 'The session Google Analytics Client ID';
|
|
162
|
+
readonly type: readonly ['string', 'null'];
|
|
163
163
|
readonly maxLength: 255;
|
|
164
164
|
};
|
|
165
165
|
readonly shopify_client_id: {
|
|
166
|
-
readonly description:
|
|
167
|
-
readonly type: readonly [
|
|
166
|
+
readonly description: 'The session Shopify Client ID';
|
|
167
|
+
readonly type: readonly ['string', 'null'];
|
|
168
168
|
readonly maxLength: 255;
|
|
169
169
|
};
|
|
170
170
|
readonly shopify_customer_id: {
|
|
171
|
-
readonly description:
|
|
172
|
-
readonly type: readonly [
|
|
171
|
+
readonly description: 'The session Shopify Customer ID';
|
|
172
|
+
readonly type: readonly ['string', 'null'];
|
|
173
173
|
readonly maxLength: 255;
|
|
174
174
|
};
|
|
175
175
|
readonly shopify_checkout_token: {
|
|
176
|
-
readonly description:
|
|
177
|
-
readonly type: readonly [
|
|
176
|
+
readonly description: 'The session Shopify Checkout token';
|
|
177
|
+
readonly type: readonly ['string', 'null'];
|
|
178
178
|
readonly maxLength: 255;
|
|
179
179
|
};
|
|
180
180
|
readonly fingerprintjs_visitor_id: {
|
|
181
|
-
readonly description:
|
|
182
|
-
readonly type: readonly [
|
|
181
|
+
readonly description: 'The FingerprintJS visitor ID';
|
|
182
|
+
readonly type: readonly ['string', 'null'];
|
|
183
183
|
readonly maxLength: 255;
|
|
184
184
|
};
|
|
185
185
|
readonly meta: {
|
|
186
|
-
readonly description:
|
|
186
|
+
readonly description: 'Additional metadata';
|
|
187
187
|
readonly additionalProperties: true;
|
|
188
|
-
readonly type: readonly [
|
|
188
|
+
readonly type: readonly ['object', 'null'];
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
191
|
readonly self: {
|
|
192
|
-
readonly vendor:
|
|
193
|
-
readonly name:
|
|
194
|
-
readonly format:
|
|
195
|
-
readonly version:
|
|
192
|
+
readonly vendor: 'dev.pckd';
|
|
193
|
+
readonly name: 'session';
|
|
194
|
+
readonly format: 'jsonschema';
|
|
195
|
+
readonly version: '1-0-4';
|
|
196
196
|
};
|
|
197
|
-
readonly type:
|
|
197
|
+
readonly type: 'object';
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
200
|
export type CurrentSchema = Schema1_0_4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAO7E,eAAO,MAAM,IAAI,YAAY,CAAA;AAE7B,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAO7E,eAAO,MAAM,IAAI,YAAY,CAAA;AAE7B,eAAO,MAAM,OAAO;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACR,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAA;AACzC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,IAAI,EAAE,cAAc,CAAC,CAAA"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { FromSchema } from 'json-schema-to-ts';
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
export declare const schema: {
|
|
3
|
-
readonly $schema:
|
|
3
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
4
4
|
readonly additionalProperties: true;
|
|
5
|
-
readonly description:
|
|
5
|
+
readonly description: 'Schema for a step';
|
|
6
6
|
readonly minProperties: 1;
|
|
7
7
|
readonly properties: {
|
|
8
8
|
readonly id: {
|
|
9
|
-
readonly description:
|
|
10
|
-
readonly type:
|
|
9
|
+
readonly description: 'The step ID';
|
|
10
|
+
readonly type: 'string';
|
|
11
11
|
readonly maxLength: 255;
|
|
12
12
|
};
|
|
13
13
|
readonly title: {
|
|
14
|
-
readonly description:
|
|
15
|
-
readonly type:
|
|
14
|
+
readonly description: 'The step title';
|
|
15
|
+
readonly type: 'string';
|
|
16
16
|
readonly maxLength: 255;
|
|
17
17
|
};
|
|
18
18
|
readonly meta: {
|
|
19
|
-
readonly description:
|
|
19
|
+
readonly description: 'Additional metadata';
|
|
20
20
|
readonly additionalProperties: true;
|
|
21
|
-
readonly type: readonly [
|
|
21
|
+
readonly type: readonly ['object', 'null'];
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
readonly required: readonly [
|
|
24
|
+
readonly required: readonly ['id', 'title'];
|
|
25
25
|
readonly self: {
|
|
26
|
-
readonly vendor:
|
|
27
|
-
readonly name:
|
|
28
|
-
readonly format:
|
|
29
|
-
readonly version:
|
|
26
|
+
readonly vendor: 'dev.pckd';
|
|
27
|
+
readonly name: 'step';
|
|
28
|
+
readonly format: 'jsonschema';
|
|
29
|
+
readonly version: '1-0-0';
|
|
30
30
|
};
|
|
31
|
-
readonly type:
|
|
31
|
+
readonly type: 'object';
|
|
32
32
|
};
|
|
33
33
|
export type Schema = FromSchema<typeof schema>;
|
|
34
34
|
export type Version = typeof schema.self.version;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,mBAAmB;aAChC,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,EAAE;qBACA,WAAW,EAAE,aAAa;qBAC1B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,KAAK;qBACH,WAAW,EAAE,gBAAgB;qBAC7B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,IAAI,EAAE,OAAO;aACxB,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,MAAM;iBACZ,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAA;AAC9C,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA"}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Snowplow "step" context schema v1-0-1, adding the deterministic step key alongside the id. */
|
|
2
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
3
|
export declare const schema: {
|
|
3
|
-
readonly $schema:
|
|
4
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
4
5
|
readonly additionalProperties: true;
|
|
5
|
-
readonly description:
|
|
6
|
+
readonly description: 'Schema for a step';
|
|
6
7
|
readonly minProperties: 1;
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly id: {
|
|
9
|
-
readonly description:
|
|
10
|
-
readonly type:
|
|
10
|
+
readonly description: 'The step ID';
|
|
11
|
+
readonly type: 'string';
|
|
11
12
|
readonly maxLength: 255;
|
|
12
13
|
};
|
|
13
14
|
readonly title: {
|
|
14
|
-
readonly description:
|
|
15
|
-
readonly type:
|
|
15
|
+
readonly description: 'The step title';
|
|
16
|
+
readonly type: 'string';
|
|
16
17
|
readonly maxLength: 255;
|
|
17
18
|
};
|
|
18
19
|
readonly key: {
|
|
19
|
-
readonly description:
|
|
20
|
-
readonly type: readonly [
|
|
20
|
+
readonly description: 'The stable, deterministic step key';
|
|
21
|
+
readonly type: readonly ['string', 'null'];
|
|
21
22
|
readonly maxLength: 255;
|
|
22
23
|
};
|
|
23
24
|
readonly meta: {
|
|
24
|
-
readonly description:
|
|
25
|
+
readonly description: 'Additional metadata';
|
|
25
26
|
readonly additionalProperties: true;
|
|
26
|
-
readonly type: readonly [
|
|
27
|
+
readonly type: readonly ['object', 'null'];
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
|
-
readonly required: readonly [
|
|
30
|
+
readonly required: readonly ['id', 'title'];
|
|
30
31
|
readonly self: {
|
|
31
|
-
readonly vendor:
|
|
32
|
-
readonly name:
|
|
33
|
-
readonly format:
|
|
34
|
-
readonly version:
|
|
32
|
+
readonly vendor: 'dev.pckd';
|
|
33
|
+
readonly name: 'step';
|
|
34
|
+
readonly format: 'jsonschema';
|
|
35
|
+
readonly version: '1-0-1';
|
|
35
36
|
};
|
|
36
|
-
readonly type:
|
|
37
|
+
readonly type: 'object';
|
|
37
38
|
};
|
|
38
39
|
export type Schema = FromSchema<typeof schema>;
|
|
39
40
|
export type Version = typeof schema.self.version;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-0-1.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/1-0-1.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"1-0-1.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/1-0-1.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,mBAAmB;aAChC,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,EAAE;qBACA,WAAW,EAAE,aAAa;qBAC1B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,KAAK;qBACH,WAAW,EAAE,gBAAgB;qBAC7B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,GAAG;qBACD,WAAW,EAAE,oCAAoC;qBACjD,IAAI,YAAG,QAAQ,EAAE,MAAM;qBACvB,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,IAAI,EAAE,OAAO;aACxB,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,MAAM;iBACZ,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAA;AAC9C,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA"}
|
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Registry of Snowplow "step" context schema versions with the current-version pointer. */
|
|
2
|
+
import type { SchemaUrl } from '../../types';
|
|
3
|
+
import type { Schema as Schema1_0_1, Version as Version1_0_1 } from './1-0-1';
|
|
3
4
|
export declare const name = "step";
|
|
4
5
|
export declare const schemas: {
|
|
5
6
|
'1-0-0': {
|
|
6
|
-
readonly $schema:
|
|
7
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
7
8
|
readonly additionalProperties: true;
|
|
8
|
-
readonly description:
|
|
9
|
+
readonly description: 'Schema for a step';
|
|
9
10
|
readonly minProperties: 1;
|
|
10
11
|
readonly properties: {
|
|
11
12
|
readonly id: {
|
|
12
|
-
readonly description:
|
|
13
|
-
readonly type:
|
|
13
|
+
readonly description: 'The step ID';
|
|
14
|
+
readonly type: 'string';
|
|
14
15
|
readonly maxLength: 255;
|
|
15
16
|
};
|
|
16
17
|
readonly title: {
|
|
17
|
-
readonly description:
|
|
18
|
-
readonly type:
|
|
18
|
+
readonly description: 'The step title';
|
|
19
|
+
readonly type: 'string';
|
|
19
20
|
readonly maxLength: 255;
|
|
20
21
|
};
|
|
21
22
|
readonly meta: {
|
|
22
|
-
readonly description:
|
|
23
|
+
readonly description: 'Additional metadata';
|
|
23
24
|
readonly additionalProperties: true;
|
|
24
|
-
readonly type: readonly [
|
|
25
|
+
readonly type: readonly ['object', 'null'];
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
|
-
readonly required: readonly [
|
|
28
|
+
readonly required: readonly ['id', 'title'];
|
|
28
29
|
readonly self: {
|
|
29
|
-
readonly vendor:
|
|
30
|
-
readonly name:
|
|
31
|
-
readonly format:
|
|
32
|
-
readonly version:
|
|
30
|
+
readonly vendor: 'dev.pckd';
|
|
31
|
+
readonly name: 'step';
|
|
32
|
+
readonly format: 'jsonschema';
|
|
33
|
+
readonly version: '1-0-0';
|
|
33
34
|
};
|
|
34
|
-
readonly type:
|
|
35
|
+
readonly type: 'object';
|
|
35
36
|
};
|
|
36
37
|
'1-0-1': {
|
|
37
|
-
readonly $schema:
|
|
38
|
+
readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
|
|
38
39
|
readonly additionalProperties: true;
|
|
39
|
-
readonly description:
|
|
40
|
+
readonly description: 'Schema for a step';
|
|
40
41
|
readonly minProperties: 1;
|
|
41
42
|
readonly properties: {
|
|
42
43
|
readonly id: {
|
|
43
|
-
readonly description:
|
|
44
|
-
readonly type:
|
|
44
|
+
readonly description: 'The step ID';
|
|
45
|
+
readonly type: 'string';
|
|
45
46
|
readonly maxLength: 255;
|
|
46
47
|
};
|
|
47
48
|
readonly title: {
|
|
48
|
-
readonly description:
|
|
49
|
-
readonly type:
|
|
49
|
+
readonly description: 'The step title';
|
|
50
|
+
readonly type: 'string';
|
|
50
51
|
readonly maxLength: 255;
|
|
51
52
|
};
|
|
52
53
|
readonly key: {
|
|
53
|
-
readonly description:
|
|
54
|
-
readonly type: readonly [
|
|
54
|
+
readonly description: 'The stable, deterministic step key';
|
|
55
|
+
readonly type: readonly ['string', 'null'];
|
|
55
56
|
readonly maxLength: 255;
|
|
56
57
|
};
|
|
57
58
|
readonly meta: {
|
|
58
|
-
readonly description:
|
|
59
|
+
readonly description: 'Additional metadata';
|
|
59
60
|
readonly additionalProperties: true;
|
|
60
|
-
readonly type: readonly [
|
|
61
|
+
readonly type: readonly ['object', 'null'];
|
|
61
62
|
};
|
|
62
63
|
};
|
|
63
|
-
readonly required: readonly [
|
|
64
|
+
readonly required: readonly ['id', 'title'];
|
|
64
65
|
readonly self: {
|
|
65
|
-
readonly vendor:
|
|
66
|
-
readonly name:
|
|
67
|
-
readonly format:
|
|
68
|
-
readonly version:
|
|
66
|
+
readonly vendor: 'dev.pckd';
|
|
67
|
+
readonly name: 'step';
|
|
68
|
+
readonly format: 'jsonschema';
|
|
69
|
+
readonly version: '1-0-1';
|
|
69
70
|
};
|
|
70
|
-
readonly type:
|
|
71
|
+
readonly type: 'object';
|
|
71
72
|
};
|
|
72
73
|
};
|
|
73
74
|
export type CurrentSchema = Schema1_0_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/index.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAI7E,eAAO,MAAM,IAAI,SAAS,CAAA;AAE1B,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/step/index.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAI7E,eAAO,MAAM,IAAI,SAAS,CAAA;AAE1B,eAAO,MAAM,OAAO;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACR,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAA;AACzC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,IAAI,EAAE,cAAc,CAAC,CAAA"}
|
package/dist/types/tracker.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CreateTrackerOptions } from './types';
|
|
2
|
-
export declare function createTracker({ projectId, cvlyX, deployment, collectorUrl, appId, trackVitals, trackPerformance, trackWebPage, trackSessions, trackBrowser, trackActivity, trackErrors, trackActivityCallback, trackButtonClickAllowList, }: CreateTrackerOptions): import(
|
|
1
|
+
import type { CreateTrackerOptions } from './types';
|
|
2
|
+
export declare function createTracker({ projectId, cvlyX, deployment, collectorUrl, appId, trackVitals, trackPerformance, trackWebPage, trackSessions, trackBrowser, trackActivity, trackErrors, trackActivityCallback, trackButtonClickAllowList, }: CreateTrackerOptions): import("@snowplow/browser-tracker").BrowserTracker | null | undefined;
|
|
3
3
|
//# sourceMappingURL=tracker.d.ts.map
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file Analytics event types and interfaces for Snowplow tracking. */
|
|
2
|
+
import type { ActivityCallbackData, CommonEventProperties, SelfDescribingEvent } from '@snowplow/browser-tracker';
|
|
3
|
+
import type { ExperienceStep, Field, FieldValue, ValidationError as FieldValidationError } from '@picked/client';
|
|
4
|
+
import type { AppSchema, AppUrl, CvlyFunnelSchema, CvlyFunnelUrl, CvlyXSchema, CvlyXUrl, DeploymentSchema, DeploymentUrl, ElementSchema, ElementUrl, EventSchema, EventUrl, ExceptionSchema, ExceptionUrl, ExperienceSchema, ExperienceUrl, FeatureListSchema, FeatureListUrl, FieldListSchema, FieldListUrl, FormSchema, FormUrl, ModalSchema, ModalUrl, OrderSchema, OrderUrl, PickedSchema, PickedUrl, ProductListSchema, ProductListUrl, ResponseListSchema, ResponseListUrl, SessionSchema, SessionUrl, StepSchema, StepUrl } from './schemas';
|
|
4
5
|
export type SnowplowSelfDescribingEvent = SelfDescribingEvent & CommonEventProperties;
|
|
5
6
|
export type SchemaUrl<Schema extends string, Version extends string> = `iglu:dev.pckd/${Schema}/jsonschema/${Version}`;
|
|
6
7
|
export interface Context<Url extends string, Schema extends Record<string, unknown>> {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Wires Picked experience targets to opt-in DOM interaction listeners and
|
|
3
|
+
* window/document level listeners.
|
|
4
|
+
*/
|
|
5
|
+
import { type InteractionEventName } from './interaction-events';
|
|
6
|
+
import type { AnalyticsContext } from './types';
|
|
3
7
|
/**
|
|
4
8
|
* Bind the listed DOM interaction listeners to the given target. Listeners not
|
|
5
9
|
* named in `enabledEvents` are not bound; the empty list is a no-op.
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnalyticsContext, AppContext, Context, ContextArray, ExceptionContext, ExperienceContext, FeatureListContext, FieldListContext, FormContext, ModalContext, OrderContext, ProductListContext, ResponseListContext, SchemaUrl, SessionContext, SnowplowEventWithContext, SnowplowSelfDescribingEvent, StepContext } from './types';
|
|
2
|
-
import { EventSchema } from './schemas';
|
|
1
|
+
import type { AnalyticsContext, AppContext, Context, ContextArray, ExceptionContext, ExperienceContext, FeatureListContext, FieldListContext, FormContext, ModalContext, OrderContext, ProductListContext, ResponseListContext, SchemaUrl, SessionContext, SnowplowEventWithContext, SnowplowSelfDescribingEvent, StepContext } from './types';
|
|
2
|
+
import type { EventSchema } from './schemas';
|
|
3
3
|
export declare function schemaUrl<T extends string, U extends string>(schema: T, version: U): SchemaUrl<T, U>;
|
|
4
4
|
export declare function log(_message: string, ..._data: unknown[]): void;
|
|
5
5
|
export declare function warn(_message: string, ..._data: unknown[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAC1D,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC,GACT,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAEjB;AAED,wBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAExD;AAED,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAEzD;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1D;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,wBAAwB,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,EAChG,I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