@picked/analytics 0.0.11 → 0.0.12-next.10
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/README.md +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/plugins/analytics/index.js +1 -1
- package/dist/esm/index.js +93 -88
- package/dist/esm/plugins/analytics/index.js +44 -46
- package/dist/types/events/feature_decide.d.ts +4 -0
- package/dist/types/events/feature_decide.d.ts.map +1 -0
- package/dist/types/events/identify.d.ts.map +1 -1
- package/dist/types/events/index.d.ts +1 -0
- package/dist/types/events/index.d.ts.map +1 -1
- package/dist/types/fixtures/analytics-event.d.ts +0 -1
- package/dist/types/fixtures/analytics-event.d.ts.map +1 -1
- package/dist/types/plugins/analytics/plugin.d.ts.map +1 -1
- package/dist/types/schemas/experience/1-0-0.d.ts +1 -1
- package/dist/types/schemas/experience/1-0-1.d.ts +40 -0
- package/dist/types/schemas/experience/1-0-1.d.ts.map +1 -0
- package/dist/types/schemas/experience/index.d.ts +40 -4
- package/dist/types/schemas/experience/index.d.ts.map +1 -1
- package/dist/types/schemas/product_list/2-0-1.d.ts +168 -0
- package/dist/types/schemas/product_list/2-0-1.d.ts.map +1 -0
- package/dist/types/schemas/product_list/index.d.ts +167 -3
- package/dist/types/schemas/product_list/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/user-interaction-CcXZofFr.js +1152 -0
- package/dist/user-interaction-lI3cxLrp.cjs +1 -0
- package/package.json +4 -4
- package/dist/user-interaction-B2ZoDZL_.js +0 -1134
- package/dist/user-interaction-C2A-97sb.cjs +0 -1
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { supportsWindow as
|
|
2
|
-
import { split as
|
|
3
|
-
import { m as
|
|
1
|
+
import { supportsWindow as S } from "@picked/client";
|
|
2
|
+
import { split as k, attach as b } from "effector";
|
|
3
|
+
import { m as _, o as g, n as l, A as I, v as F, w as A, u as C, z as L, y as h, x as w, r as z, s as R, t as B, q as G, p as T } from "../../../user-interaction-CcXZofFr.js";
|
|
4
4
|
import "@snowplow/browser-tracker";
|
|
5
|
-
function
|
|
5
|
+
function j(o) {
|
|
6
6
|
return o.isResolved;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const P = ({
|
|
9
9
|
trackerOptions: o,
|
|
10
10
|
enableDocumentListeners: v = !1
|
|
11
11
|
}) => ({
|
|
12
12
|
name: "analytics",
|
|
13
13
|
setup: (s) => {
|
|
14
|
-
if (!
|
|
14
|
+
if (!S())
|
|
15
15
|
return;
|
|
16
|
-
const { organizationId: a, projectId:
|
|
17
|
-
if (!
|
|
18
|
-
const { id: i, key:
|
|
16
|
+
const { organizationId: a, projectId: u } = s, f = () => s.features.listStore.getState().flatMap((e) => {
|
|
17
|
+
if (!j(e)) return [];
|
|
18
|
+
const { id: i, key: n, name: c } = e, { bucket: p } = e.getBucket();
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
name: c,
|
|
22
|
-
key:
|
|
22
|
+
key: n,
|
|
23
23
|
feature: i,
|
|
24
|
-
bucket:
|
|
24
|
+
bucket: p
|
|
25
25
|
}
|
|
26
26
|
];
|
|
27
|
-
}),
|
|
27
|
+
}), E = (t) => {
|
|
28
28
|
if ("experience" in t && t.experience) {
|
|
29
29
|
const { experience: e } = t;
|
|
30
30
|
return {
|
|
31
31
|
id: e.id,
|
|
32
|
-
type: e.configStore.getState().type,
|
|
33
32
|
title: e.configStore.getState().name
|
|
34
33
|
};
|
|
35
34
|
}
|
|
@@ -37,14 +36,13 @@ const O = ({
|
|
|
37
36
|
const { experienceInstance: e } = t;
|
|
38
37
|
return {
|
|
39
38
|
id: e.experienceId,
|
|
40
|
-
type: e.configStore.getState().type,
|
|
41
39
|
title: e.configStore.getState().name
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
|
-
|
|
43
|
+
_({
|
|
46
44
|
organizationId: a,
|
|
47
|
-
projectId:
|
|
45
|
+
projectId: u,
|
|
48
46
|
...o
|
|
49
47
|
});
|
|
50
48
|
const m = (t) => {
|
|
@@ -53,13 +51,12 @@ const O = ({
|
|
|
53
51
|
var c;
|
|
54
52
|
return {
|
|
55
53
|
organizationId: a,
|
|
56
|
-
projectId:
|
|
54
|
+
projectId: u,
|
|
57
55
|
sessionId: (c = s.session) == null ? void 0 : c.id,
|
|
58
56
|
features: i,
|
|
59
57
|
...e && {
|
|
60
58
|
experience: {
|
|
61
59
|
id: e.experienceId,
|
|
62
|
-
type: e.configStore.getState().type,
|
|
63
60
|
title: e.configStore.getState().name
|
|
64
61
|
}
|
|
65
62
|
}
|
|
@@ -68,58 +65,59 @@ const O = ({
|
|
|
68
65
|
};
|
|
69
66
|
if (v) {
|
|
70
67
|
const t = m();
|
|
71
|
-
|
|
68
|
+
g(t);
|
|
72
69
|
}
|
|
73
70
|
s.experienceInstances.listStore.watch((t) => {
|
|
74
71
|
t.forEach((e) => {
|
|
75
72
|
const i = e.target;
|
|
76
73
|
if (i) {
|
|
77
|
-
const
|
|
78
|
-
|
|
74
|
+
const n = m({ experience: e });
|
|
75
|
+
l(n, i.shadowRoot);
|
|
79
76
|
}
|
|
80
77
|
});
|
|
81
78
|
});
|
|
82
|
-
function
|
|
83
|
-
return
|
|
79
|
+
function r(t) {
|
|
80
|
+
return b({
|
|
84
81
|
source: { fields: s.fields.listStore, responses: s.responses.listStore },
|
|
85
|
-
effect: async ({ fields: e, responses: i },
|
|
86
|
-
var
|
|
87
|
-
const c = f(),
|
|
82
|
+
effect: async ({ fields: e, responses: i }, n) => {
|
|
83
|
+
var x, d;
|
|
84
|
+
const c = f(), p = {
|
|
88
85
|
organizationId: a,
|
|
89
|
-
projectId:
|
|
90
|
-
sessionId: (
|
|
91
|
-
experience:
|
|
92
|
-
step: "step" in
|
|
93
|
-
form: "form" in
|
|
94
|
-
exception: "exception" in
|
|
86
|
+
projectId: u,
|
|
87
|
+
sessionId: (x = s.session) == null ? void 0 : x.id,
|
|
88
|
+
experience: E(n),
|
|
89
|
+
step: "step" in n ? n.step : void 0,
|
|
90
|
+
form: "form" in n ? n.form : void 0,
|
|
91
|
+
exception: "exception" in n ? (d = n.exception.reason) == null ? void 0 : d[0] : void 0,
|
|
95
92
|
// todo: support multiple exceptions
|
|
96
93
|
fields: e,
|
|
97
94
|
responses: i,
|
|
98
95
|
features: c
|
|
99
96
|
};
|
|
100
|
-
return t(
|
|
97
|
+
return t(p);
|
|
101
98
|
}
|
|
102
99
|
});
|
|
103
100
|
}
|
|
104
|
-
|
|
101
|
+
k({
|
|
105
102
|
source: s.eventBus,
|
|
106
103
|
match: (t) => t.type,
|
|
107
104
|
cases: {
|
|
108
|
-
initialized:
|
|
109
|
-
experience_open:
|
|
110
|
-
experience_close:
|
|
111
|
-
field_validation_error:
|
|
112
|
-
experience_initialized:
|
|
113
|
-
step_enter:
|
|
114
|
-
step_submit:
|
|
115
|
-
step_submit_success:
|
|
116
|
-
form_submit:
|
|
117
|
-
form_submit_success:
|
|
118
|
-
form_submit_error:
|
|
105
|
+
initialized: r(T),
|
|
106
|
+
experience_open: r(G),
|
|
107
|
+
experience_close: r(B),
|
|
108
|
+
field_validation_error: r(R),
|
|
109
|
+
experience_initialized: r(z),
|
|
110
|
+
step_enter: r(w),
|
|
111
|
+
step_submit: r(h),
|
|
112
|
+
step_submit_success: r(L),
|
|
113
|
+
form_submit: r(C),
|
|
114
|
+
form_submit_success: r(A),
|
|
115
|
+
form_submit_error: r(F),
|
|
116
|
+
feature_decide: r(I)
|
|
119
117
|
}
|
|
120
118
|
});
|
|
121
119
|
}
|
|
122
120
|
});
|
|
123
121
|
export {
|
|
124
|
-
|
|
122
|
+
P as analyticsPlugin
|
|
125
123
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature_decide.d.ts","sourceRoot":"","sources":["../../../src/events/feature_decide.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,gBAAgB,EAMjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA8B7C,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-event.d.ts","sourceRoot":"","sources":["../../../src/fixtures/analytics-event.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"analytics-event.d.ts","sourceRoot":"","sources":["../../../src/fixtures/analytics-event.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;AAqBvB,OAAO,KAAK,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEzE,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,oBAAoB,CAAA;IACrC,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAMD,eAAO,MAAM,eAAe,GAAI,8CAG7B,sBAAsB,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CA+I1E,CAAA"}
|
|
@@ -26,7 +26,7 @@ export declare const schema: {
|
|
|
26
26
|
readonly type: readonly ["object", "null"];
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
readonly required: readonly ["id", "
|
|
29
|
+
readonly required: readonly ["id", "title"];
|
|
30
30
|
readonly self: {
|
|
31
31
|
readonly vendor: "dev.pckd";
|
|
32
32
|
readonly name: "experience";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
readonly $schema: "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#";
|
|
4
|
+
readonly additionalProperties: true;
|
|
5
|
+
readonly description: "Schema for an experience";
|
|
6
|
+
readonly minProperties: 1;
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly id: {
|
|
9
|
+
readonly description: "The experience ID";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly maxLength: 255;
|
|
12
|
+
};
|
|
13
|
+
readonly type: {
|
|
14
|
+
readonly description: "The experience type";
|
|
15
|
+
readonly type: readonly ["string", "null"];
|
|
16
|
+
readonly maxLength: 255;
|
|
17
|
+
};
|
|
18
|
+
readonly title: {
|
|
19
|
+
readonly description: "The experience title";
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly maxLength: 255;
|
|
22
|
+
};
|
|
23
|
+
readonly meta: {
|
|
24
|
+
readonly description: "Additional metadata";
|
|
25
|
+
readonly additionalProperties: true;
|
|
26
|
+
readonly type: readonly ["object", "null"];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["id", "title"];
|
|
30
|
+
readonly self: {
|
|
31
|
+
readonly vendor: "dev.pckd";
|
|
32
|
+
readonly name: "experience";
|
|
33
|
+
readonly format: "jsonschema";
|
|
34
|
+
readonly version: "1-0-1";
|
|
35
|
+
};
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
};
|
|
38
|
+
export type Schema = FromSchema<typeof schema>;
|
|
39
|
+
export type Version = typeof schema.self.version;
|
|
40
|
+
//# sourceMappingURL=1-0-1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1-0-1.d.ts","sourceRoot":"","sources":["../../../../src/schemas/experience/1-0-1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCT,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,5 +1,5 @@
|
|
|
1
|
-
import { Schema as Schema1_0_0, Version as Version1_0_0 } from './1-0-0';
|
|
2
1
|
import { SchemaUrl } from '../../types';
|
|
2
|
+
import { Schema as Schema1_0_1, Version as Version1_0_1 } from './1-0-1';
|
|
3
3
|
export declare const name = "experience";
|
|
4
4
|
export declare const schemas: {
|
|
5
5
|
'1-0-0': {
|
|
@@ -29,7 +29,7 @@ export declare const schemas: {
|
|
|
29
29
|
readonly type: readonly ["object", "null"];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
readonly required: readonly ["id", "
|
|
32
|
+
readonly required: readonly ["id", "title"];
|
|
33
33
|
readonly self: {
|
|
34
34
|
readonly vendor: "dev.pckd";
|
|
35
35
|
readonly name: "experience";
|
|
@@ -38,8 +38,44 @@ export declare const schemas: {
|
|
|
38
38
|
};
|
|
39
39
|
readonly type: "object";
|
|
40
40
|
};
|
|
41
|
+
'1-0-1': {
|
|
42
|
+
readonly $schema: "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#";
|
|
43
|
+
readonly additionalProperties: true;
|
|
44
|
+
readonly description: "Schema for an experience";
|
|
45
|
+
readonly minProperties: 1;
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly id: {
|
|
48
|
+
readonly description: "The experience ID";
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly maxLength: 255;
|
|
51
|
+
};
|
|
52
|
+
readonly type: {
|
|
53
|
+
readonly description: "The experience type";
|
|
54
|
+
readonly type: readonly ["string", "null"];
|
|
55
|
+
readonly maxLength: 255;
|
|
56
|
+
};
|
|
57
|
+
readonly title: {
|
|
58
|
+
readonly description: "The experience title";
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
readonly maxLength: 255;
|
|
61
|
+
};
|
|
62
|
+
readonly meta: {
|
|
63
|
+
readonly description: "Additional metadata";
|
|
64
|
+
readonly additionalProperties: true;
|
|
65
|
+
readonly type: readonly ["object", "null"];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly required: readonly ["id", "title"];
|
|
69
|
+
readonly self: {
|
|
70
|
+
readonly vendor: "dev.pckd";
|
|
71
|
+
readonly name: "experience";
|
|
72
|
+
readonly format: "jsonschema";
|
|
73
|
+
readonly version: "1-0-1";
|
|
74
|
+
};
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
};
|
|
41
77
|
};
|
|
42
|
-
export type CurrentSchema =
|
|
43
|
-
export type CurrentVersion =
|
|
78
|
+
export type CurrentSchema = Schema1_0_1;
|
|
79
|
+
export type CurrentVersion = Version1_0_1;
|
|
44
80
|
export type Url = SchemaUrl<typeof name, CurrentVersion>;
|
|
45
81
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/experience/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/experience/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;AAI7E,eAAO,MAAM,IAAI,eAAe,CAAA;AAEhC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,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"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
readonly $schema: "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#";
|
|
4
|
+
readonly additionalProperties: true;
|
|
5
|
+
readonly description: "Schema for a product list";
|
|
6
|
+
readonly minProperties: 1;
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly title: {
|
|
9
|
+
readonly description: "The title of the product list";
|
|
10
|
+
readonly type: readonly ["string", "null"];
|
|
11
|
+
readonly maxLength: 255;
|
|
12
|
+
};
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly description: "A list of products";
|
|
15
|
+
readonly type: "array";
|
|
16
|
+
readonly items: {
|
|
17
|
+
readonly type: "object";
|
|
18
|
+
readonly description: "Products in the list";
|
|
19
|
+
readonly properties: {
|
|
20
|
+
readonly item_id: {
|
|
21
|
+
readonly type: readonly ["string", "null"];
|
|
22
|
+
readonly description: "The product ID";
|
|
23
|
+
readonly maxLength: 255;
|
|
24
|
+
};
|
|
25
|
+
readonly item_name: {
|
|
26
|
+
readonly type: readonly ["string", "null"];
|
|
27
|
+
readonly description: "The product name";
|
|
28
|
+
readonly maxLength: 255;
|
|
29
|
+
};
|
|
30
|
+
readonly affiliation: {
|
|
31
|
+
readonly type: readonly ["string", "null"];
|
|
32
|
+
readonly description: "The affiliation";
|
|
33
|
+
readonly maxLength: 255;
|
|
34
|
+
};
|
|
35
|
+
readonly coupon: {
|
|
36
|
+
readonly type: readonly ["string", "null"];
|
|
37
|
+
readonly description: "The coupon code";
|
|
38
|
+
readonly maxLength: 255;
|
|
39
|
+
};
|
|
40
|
+
readonly currency: {
|
|
41
|
+
readonly type: readonly ["string", "null"];
|
|
42
|
+
readonly description: "The currency";
|
|
43
|
+
readonly maxLength: 255;
|
|
44
|
+
};
|
|
45
|
+
readonly creative_name: {
|
|
46
|
+
readonly type: readonly ["string", "null"];
|
|
47
|
+
readonly description: "The creative name";
|
|
48
|
+
readonly maxLength: 255;
|
|
49
|
+
};
|
|
50
|
+
readonly creative_slot: {
|
|
51
|
+
readonly type: readonly ["string", "null"];
|
|
52
|
+
readonly description: "The creative slot";
|
|
53
|
+
readonly maxLength: 255;
|
|
54
|
+
};
|
|
55
|
+
readonly discount: {
|
|
56
|
+
readonly type: readonly ["number", "null"];
|
|
57
|
+
readonly description: "The discount";
|
|
58
|
+
readonly minimum: -9999999999;
|
|
59
|
+
readonly maximum: 9999999999;
|
|
60
|
+
};
|
|
61
|
+
readonly index: {
|
|
62
|
+
readonly type: readonly ["number", "null"];
|
|
63
|
+
readonly description: "The index";
|
|
64
|
+
readonly minimum: -9999999999;
|
|
65
|
+
readonly maximum: 9999999999;
|
|
66
|
+
};
|
|
67
|
+
readonly item_brand: {
|
|
68
|
+
readonly type: readonly ["string", "null"];
|
|
69
|
+
readonly description: "The item brand";
|
|
70
|
+
readonly maxLength: 255;
|
|
71
|
+
};
|
|
72
|
+
readonly item_category: {
|
|
73
|
+
readonly type: readonly ["string", "null"];
|
|
74
|
+
readonly description: "The item category";
|
|
75
|
+
readonly maxLength: 255;
|
|
76
|
+
};
|
|
77
|
+
readonly item_category2: {
|
|
78
|
+
readonly type: readonly ["string", "null"];
|
|
79
|
+
readonly description: "The item category 2";
|
|
80
|
+
readonly maxLength: 255;
|
|
81
|
+
};
|
|
82
|
+
readonly item_category3: {
|
|
83
|
+
readonly type: readonly ["string", "null"];
|
|
84
|
+
readonly description: "The item category 3";
|
|
85
|
+
readonly maxLength: 255;
|
|
86
|
+
};
|
|
87
|
+
readonly item_category4: {
|
|
88
|
+
readonly type: readonly ["string", "null"];
|
|
89
|
+
readonly description: "The item category 4";
|
|
90
|
+
readonly maxLength: 255;
|
|
91
|
+
};
|
|
92
|
+
readonly item_category5: {
|
|
93
|
+
readonly type: readonly ["string", "null"];
|
|
94
|
+
readonly description: "The item category 5";
|
|
95
|
+
readonly maxLength: 255;
|
|
96
|
+
};
|
|
97
|
+
readonly item_list_id: {
|
|
98
|
+
readonly type: readonly ["string", "null"];
|
|
99
|
+
readonly description: "The item list ID";
|
|
100
|
+
readonly maxLength: 255;
|
|
101
|
+
};
|
|
102
|
+
readonly item_list_name: {
|
|
103
|
+
readonly type: readonly ["string", "null"];
|
|
104
|
+
readonly description: "The item list";
|
|
105
|
+
readonly maxLength: 255;
|
|
106
|
+
};
|
|
107
|
+
readonly item_variant: {
|
|
108
|
+
readonly type: readonly ["string", "null"];
|
|
109
|
+
readonly description: "The item variant";
|
|
110
|
+
readonly maxLength: 255;
|
|
111
|
+
};
|
|
112
|
+
readonly location_id: {
|
|
113
|
+
readonly type: readonly ["string", "null"];
|
|
114
|
+
readonly description: "The location ID";
|
|
115
|
+
readonly maxLength: 255;
|
|
116
|
+
};
|
|
117
|
+
readonly price: {
|
|
118
|
+
readonly type: readonly ["number", "null"];
|
|
119
|
+
readonly description: "The price";
|
|
120
|
+
readonly minimum: -9999999999;
|
|
121
|
+
readonly maximum: 9999999999;
|
|
122
|
+
};
|
|
123
|
+
readonly promotion_id: {
|
|
124
|
+
readonly type: readonly ["string", "null"];
|
|
125
|
+
readonly description: "The promotion ID";
|
|
126
|
+
readonly maxLength: 255;
|
|
127
|
+
};
|
|
128
|
+
readonly promotion_name: {
|
|
129
|
+
readonly type: readonly ["string", "null"];
|
|
130
|
+
readonly description: "The promotion name";
|
|
131
|
+
readonly maxLength: 255;
|
|
132
|
+
};
|
|
133
|
+
readonly quantity: {
|
|
134
|
+
readonly type: readonly ["number", "null"];
|
|
135
|
+
readonly description: "The quantity";
|
|
136
|
+
readonly minimum: -9999999999;
|
|
137
|
+
readonly maximum: 9999999999;
|
|
138
|
+
};
|
|
139
|
+
readonly meta: {
|
|
140
|
+
readonly description: "Additional metadata";
|
|
141
|
+
readonly additionalProperties: true;
|
|
142
|
+
readonly type: readonly ["object", "null"];
|
|
143
|
+
};
|
|
144
|
+
readonly in_stock: {
|
|
145
|
+
readonly description: "The stock availability of the product";
|
|
146
|
+
readonly type: readonly ["boolean", "null"];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly meta: {
|
|
152
|
+
readonly description: "Additional metadata";
|
|
153
|
+
readonly additionalProperties: true;
|
|
154
|
+
readonly type: readonly ["object", "null"];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly required: readonly ["items"];
|
|
158
|
+
readonly self: {
|
|
159
|
+
readonly vendor: "dev.pckd";
|
|
160
|
+
readonly name: "product_list";
|
|
161
|
+
readonly format: "jsonschema";
|
|
162
|
+
readonly version: "2-0-1";
|
|
163
|
+
};
|
|
164
|
+
readonly type: "object";
|
|
165
|
+
};
|
|
166
|
+
export type Schema = FromSchema<typeof schema>;
|
|
167
|
+
export type Version = typeof schema.self.version;
|
|
168
|
+
//# sourceMappingURL=2-0-1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-0-1.d.ts","sourceRoot":"","sources":["../../../../src/schemas/product_list/2-0-1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKT,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAA;AAC9C,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA"}
|