@raclettejs/core 0.1.24 → 0.1.26
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 +23 -0
- package/dist/cli.js +99 -98
- package/dist/cli.js.map +4 -4
- package/package.json +2 -2
- package/services/backend/.yarn/install-state.gz +0 -0
- package/services/backend/dist/core/eventBus/index.js +7 -0
- package/services/backend/dist/core/pluginSystem/configGenerator/index.js +346 -0
- package/services/backend/dist/core/sockets/index.js +95 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/events/index.js +31 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/index.js +48 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/routes/index.js +15 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/events/index.js +22 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/index.js +51 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/routes/index.js +19 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/events/index.js +22 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/index.js +48 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/routes/index.js +19 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/events/index.js +31 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/index.js +49 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/routes/index.js +16 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/events/index.js +39 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/index.js +50 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/routes/index.js +19 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/events/index.js +31 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/index.js +51 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/routes/index.js +21 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/events/index.js +31 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/index.js +48 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/routes/index.js +15 -0
- package/services/backend/dist/corePlugins/raclette__core/backend/index.js +34 -0
- package/services/backend/dist/domains/index.js +11 -0
- package/services/backend/dist/domains/system/index.js +11 -0
- package/services/backend/dist/domains/system/routes/index.js +17 -0
- package/services/backend/dist/helpers/index.js +14 -0
- package/services/backend/dist/index.js +3 -0
- package/services/backend/dist/modules/authentication/index.js +253 -0
- package/services/backend/dist/shared/types/core/index.js +8 -0
- package/services/backend/dist/shared/types/dataTypes/index.js +6 -0
- package/services/backend/dist/shared/types/index.js +8 -0
- package/services/backend/dist/shared/types/plugins/index.js +8 -0
- package/services/backend/dist/types/index.js +12 -0
- package/services/backend/dist/utils/index.js +2 -0
- package/services/backend/package.json +2 -2
- package/services/backend/src/core/config/configService.ts +1 -1
- package/services/backend/src/corePlugins/raclette__core/frontend/generated-config.ts +12 -0
- package/services/backend/src/modules/hooks/rate-limiter.ts +1 -12
- package/services/backend/src/shared/schemas/core/Account.schema.ts +10 -10
- package/services/backend/src/shared/schemas/core/Composition.schema.ts +25 -22
- package/services/backend/src/shared/schemas/core/CompositionCreate.schema.ts +19 -16
- package/services/backend/src/shared/schemas/core/CompositionUpdate.schema.ts +19 -16
- package/services/backend/src/shared/schemas/core/InteractionLink.schema.ts +15 -15
- package/services/backend/src/shared/schemas/core/InteractionLinkCreate.schema.ts +9 -9
- package/services/backend/src/shared/schemas/core/InteractionLinkUpdate.schema.ts +9 -9
- package/services/backend/src/shared/schemas/core/Project.schema.ts +28 -6
- package/services/backend/src/shared/schemas/core/ProjectCreate.schema.ts +22 -0
- package/services/backend/src/shared/schemas/core/ProjectUpdate.schema.ts +25 -0
- package/services/backend/src/shared/schemas/core/Tag.schema.ts +11 -9
- package/services/backend/src/shared/schemas/core/TagCreate.schema.ts +1 -3
- package/services/backend/src/shared/schemas/core/TagUpdate.schema.ts +1 -0
- package/services/backend/src/shared/schemas/core/Trigger.schema.ts +3 -3
- package/services/backend/src/shared/schemas/core/User.schema.ts +18 -18
- package/services/backend/src/shared/schemas/core/UserCreate.schema.ts +9 -9
- package/services/backend/src/shared/schemas/core/Widget.schema.ts +5 -5
- package/services/backend/src/shared/schemas/core/WidgetLayout.schema.ts +9 -9
- package/services/backend/src/shared/types/core/Composition.types.ts +1 -0
- package/services/backend/src/shared/types/core/CompositionCreate.types.ts +1 -0
- package/services/backend/src/shared/types/core/CompositionUpdate.types.ts +1 -0
- package/services/backend/src/shared/types/core/Project.types.ts +4 -0
- package/services/backend/src/shared/types/core/ProjectCreate.types.ts +4 -0
- package/services/backend/src/shared/types/core/ProjectUpdate.types.ts +4 -1
- package/services/backend/src/shared/types/core/Tag.types.ts +1 -1
- package/services/backend/src/shared/types/core/TagCreate.types.ts +0 -1
- package/services/backend/src/shared/types/core/index.ts +4 -0
- package/services/backend/src/shared/types/plugins/index.ts +1 -1
- package/services/backend/yarn.lock +517 -292
- package/services/frontend/.yarn/install-state.gz +0 -0
- package/services/frontend/src/core/lib/data/dataApi.ts +2 -2
- package/services/frontend/src/core/lib/data/queryApi.ts +1 -2
- package/services/frontend/src/core/store/state.ts +6 -41
- package/services/frontend/vite.config.ts +2 -1
|
@@ -12,6 +12,18 @@ export const InteractionLinkSchema = {
|
|
|
12
12
|
$id: "#interactionLink/base",
|
|
13
13
|
title: "core/interactionLink",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"_id",
|
|
17
|
+
"composition",
|
|
18
|
+
"slotType",
|
|
19
|
+
"triggers",
|
|
20
|
+
"tags",
|
|
21
|
+
"author",
|
|
22
|
+
"lastEditor",
|
|
23
|
+
"createdAt",
|
|
24
|
+
"updatedAt",
|
|
25
|
+
"isDeleted",
|
|
26
|
+
],
|
|
15
27
|
properties: {
|
|
16
28
|
_id: {
|
|
17
29
|
type: "string",
|
|
@@ -29,6 +41,9 @@ export const InteractionLinkSchema = {
|
|
|
29
41
|
$id: "#trigger/base",
|
|
30
42
|
title: "core/trigger",
|
|
31
43
|
type: "object",
|
|
44
|
+
required: [
|
|
45
|
+
"type",
|
|
46
|
+
],
|
|
32
47
|
properties: {
|
|
33
48
|
type: {
|
|
34
49
|
type: "string",
|
|
@@ -40,9 +55,6 @@ export const InteractionLinkSchema = {
|
|
|
40
55
|
},
|
|
41
56
|
},
|
|
42
57
|
},
|
|
43
|
-
required: [
|
|
44
|
-
"type",
|
|
45
|
-
],
|
|
46
58
|
},
|
|
47
59
|
},
|
|
48
60
|
queryParameters: {
|
|
@@ -84,18 +96,6 @@ export const InteractionLinkSchema = {
|
|
|
84
96
|
type: "boolean",
|
|
85
97
|
},
|
|
86
98
|
},
|
|
87
|
-
required: [
|
|
88
|
-
"_id",
|
|
89
|
-
"composition",
|
|
90
|
-
"slotType",
|
|
91
|
-
"triggers",
|
|
92
|
-
"tags",
|
|
93
|
-
"author",
|
|
94
|
-
"lastEditor",
|
|
95
|
-
"createdAt",
|
|
96
|
-
"updatedAt",
|
|
97
|
-
"isDeleted",
|
|
98
|
-
],
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
|
|
@@ -12,6 +12,12 @@ export const InteractionLinkCreateSchema = {
|
|
|
12
12
|
$id: "#interactionLink/create",
|
|
13
13
|
title: "core/interactionLink-create",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"composition",
|
|
17
|
+
"slotType",
|
|
18
|
+
"triggers",
|
|
19
|
+
"tags",
|
|
20
|
+
],
|
|
15
21
|
properties: {
|
|
16
22
|
composition: {
|
|
17
23
|
type: "string",
|
|
@@ -26,6 +32,9 @@ export const InteractionLinkCreateSchema = {
|
|
|
26
32
|
$id: "#trigger/base",
|
|
27
33
|
title: "core/trigger",
|
|
28
34
|
type: "object",
|
|
35
|
+
required: [
|
|
36
|
+
"type",
|
|
37
|
+
],
|
|
29
38
|
properties: {
|
|
30
39
|
type: {
|
|
31
40
|
type: "string",
|
|
@@ -37,9 +46,6 @@ export const InteractionLinkCreateSchema = {
|
|
|
37
46
|
},
|
|
38
47
|
},
|
|
39
48
|
},
|
|
40
|
-
required: [
|
|
41
|
-
"type",
|
|
42
|
-
],
|
|
43
49
|
},
|
|
44
50
|
},
|
|
45
51
|
queryParameters: {
|
|
@@ -63,12 +69,6 @@ export const InteractionLinkCreateSchema = {
|
|
|
63
69
|
type: "boolean",
|
|
64
70
|
},
|
|
65
71
|
},
|
|
66
|
-
required: [
|
|
67
|
-
"composition",
|
|
68
|
-
"slotType",
|
|
69
|
-
"triggers",
|
|
70
|
-
"tags",
|
|
71
|
-
],
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
|
|
@@ -12,6 +12,12 @@ export const InteractionLinkUpdateSchema = {
|
|
|
12
12
|
$id: "#interactionLink/update",
|
|
13
13
|
title: "core/interactionLink-update",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"composition",
|
|
17
|
+
"slotType",
|
|
18
|
+
"triggers",
|
|
19
|
+
"tags",
|
|
20
|
+
],
|
|
15
21
|
properties: {
|
|
16
22
|
composition: {
|
|
17
23
|
type: "string",
|
|
@@ -26,6 +32,9 @@ export const InteractionLinkUpdateSchema = {
|
|
|
26
32
|
$id: "#trigger/base",
|
|
27
33
|
title: "core/trigger",
|
|
28
34
|
type: "object",
|
|
35
|
+
required: [
|
|
36
|
+
"type",
|
|
37
|
+
],
|
|
29
38
|
properties: {
|
|
30
39
|
type: {
|
|
31
40
|
type: "string",
|
|
@@ -37,9 +46,6 @@ export const InteractionLinkUpdateSchema = {
|
|
|
37
46
|
},
|
|
38
47
|
},
|
|
39
48
|
},
|
|
40
|
-
required: [
|
|
41
|
-
"type",
|
|
42
|
-
],
|
|
43
49
|
},
|
|
44
50
|
},
|
|
45
51
|
queryParameters: {
|
|
@@ -63,12 +69,6 @@ export const InteractionLinkUpdateSchema = {
|
|
|
63
69
|
type: "boolean",
|
|
64
70
|
},
|
|
65
71
|
},
|
|
66
|
-
required: [
|
|
67
|
-
"composition",
|
|
68
|
-
"slotType",
|
|
69
|
-
"triggers",
|
|
70
|
-
"tags",
|
|
71
|
-
],
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
|
|
@@ -12,6 +12,12 @@ export const ProjectSchema = {
|
|
|
12
12
|
$id: "#project/base",
|
|
13
13
|
title: "core/project",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"_id",
|
|
17
|
+
"isDeleted",
|
|
18
|
+
"createdAt",
|
|
19
|
+
"updatedAt",
|
|
20
|
+
],
|
|
15
21
|
properties: {
|
|
16
22
|
_id: {
|
|
17
23
|
type: "string",
|
|
@@ -38,6 +44,28 @@ export const ProjectSchema = {
|
|
|
38
44
|
default: false,
|
|
39
45
|
type: "boolean",
|
|
40
46
|
},
|
|
47
|
+
config: {
|
|
48
|
+
$id: "#project/config",
|
|
49
|
+
title: "core/project-config",
|
|
50
|
+
type: "object",
|
|
51
|
+
required: [
|
|
52
|
+
"tags",
|
|
53
|
+
"railPageNavigation",
|
|
54
|
+
],
|
|
55
|
+
properties: {
|
|
56
|
+
tags: {
|
|
57
|
+
default: [],
|
|
58
|
+
type: "array",
|
|
59
|
+
items: {
|
|
60
|
+
type: "string",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
railPageNavigation: {
|
|
64
|
+
default: false,
|
|
65
|
+
type: "boolean",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
41
69
|
isDeleted: {
|
|
42
70
|
default: false,
|
|
43
71
|
type: "boolean",
|
|
@@ -51,12 +79,6 @@ export const ProjectSchema = {
|
|
|
51
79
|
type: "string",
|
|
52
80
|
},
|
|
53
81
|
},
|
|
54
|
-
required: [
|
|
55
|
-
"_id",
|
|
56
|
-
"isDeleted",
|
|
57
|
-
"createdAt",
|
|
58
|
-
"updatedAt",
|
|
59
|
-
],
|
|
60
82
|
}
|
|
61
83
|
|
|
62
84
|
|
|
@@ -38,6 +38,28 @@ export const ProjectCreateSchema = {
|
|
|
38
38
|
default: false,
|
|
39
39
|
type: "boolean",
|
|
40
40
|
},
|
|
41
|
+
config: {
|
|
42
|
+
$id: "#project/config",
|
|
43
|
+
title: "core/project-config",
|
|
44
|
+
type: "object",
|
|
45
|
+
required: [
|
|
46
|
+
"tags",
|
|
47
|
+
"railPageNavigation",
|
|
48
|
+
],
|
|
49
|
+
properties: {
|
|
50
|
+
tags: {
|
|
51
|
+
default: [],
|
|
52
|
+
type: "array",
|
|
53
|
+
items: {
|
|
54
|
+
type: "string",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
railPageNavigation: {
|
|
58
|
+
default: false,
|
|
59
|
+
type: "boolean",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
41
63
|
},
|
|
42
64
|
required: [],
|
|
43
65
|
}
|
|
@@ -21,9 +21,11 @@ export const ProjectUpdateSchema = {
|
|
|
21
21
|
type: "string",
|
|
22
22
|
},
|
|
23
23
|
account: {
|
|
24
|
+
default: null,
|
|
24
25
|
type: "string",
|
|
25
26
|
},
|
|
26
27
|
tags: {
|
|
28
|
+
default: [],
|
|
27
29
|
type: "array",
|
|
28
30
|
items: {
|
|
29
31
|
type: "string",
|
|
@@ -33,8 +35,31 @@ export const ProjectUpdateSchema = {
|
|
|
33
35
|
type: "string",
|
|
34
36
|
},
|
|
35
37
|
isDefault: {
|
|
38
|
+
default: false,
|
|
36
39
|
type: "boolean",
|
|
37
40
|
},
|
|
41
|
+
config: {
|
|
42
|
+
$id: "#project/config",
|
|
43
|
+
title: "core/project-config",
|
|
44
|
+
type: "object",
|
|
45
|
+
required: [
|
|
46
|
+
"tags",
|
|
47
|
+
"railPageNavigation",
|
|
48
|
+
],
|
|
49
|
+
properties: {
|
|
50
|
+
tags: {
|
|
51
|
+
default: [],
|
|
52
|
+
type: "array",
|
|
53
|
+
items: {
|
|
54
|
+
type: "string",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
railPageNavigation: {
|
|
58
|
+
default: false,
|
|
59
|
+
type: "boolean",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
38
63
|
},
|
|
39
64
|
required: [],
|
|
40
65
|
}
|
|
@@ -12,6 +12,13 @@ export const TagSchema = {
|
|
|
12
12
|
$id: "#tag/base",
|
|
13
13
|
title: "core/tag",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"_id",
|
|
17
|
+
"owner",
|
|
18
|
+
"isDeleted",
|
|
19
|
+
"createdAt",
|
|
20
|
+
"updatedAt",
|
|
21
|
+
],
|
|
15
22
|
properties: {
|
|
16
23
|
_id: {
|
|
17
24
|
type: "string",
|
|
@@ -19,9 +26,6 @@ export const TagSchema = {
|
|
|
19
26
|
project: {
|
|
20
27
|
type: "string",
|
|
21
28
|
},
|
|
22
|
-
owner: {
|
|
23
|
-
type: "string",
|
|
24
|
-
},
|
|
25
29
|
title: {
|
|
26
30
|
maxLength: 200,
|
|
27
31
|
default: null,
|
|
@@ -51,12 +55,16 @@ export const TagSchema = {
|
|
|
51
55
|
"user",
|
|
52
56
|
"project",
|
|
53
57
|
"category",
|
|
58
|
+
"event",
|
|
54
59
|
"system",
|
|
55
60
|
],
|
|
56
61
|
maxLength: 50,
|
|
57
62
|
default: "system",
|
|
58
63
|
type: "string",
|
|
59
64
|
},
|
|
65
|
+
owner: {
|
|
66
|
+
type: "string",
|
|
67
|
+
},
|
|
60
68
|
order: {
|
|
61
69
|
default: 0,
|
|
62
70
|
type: "number",
|
|
@@ -74,12 +82,6 @@ export const TagSchema = {
|
|
|
74
82
|
type: "string",
|
|
75
83
|
},
|
|
76
84
|
},
|
|
77
|
-
required: [
|
|
78
|
-
"_id",
|
|
79
|
-
"isDeleted",
|
|
80
|
-
"createdAt",
|
|
81
|
-
"updatedAt",
|
|
82
|
-
],
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
|
|
@@ -19,9 +19,6 @@ export const TagCreateSchema = {
|
|
|
19
19
|
project: {
|
|
20
20
|
type: "string",
|
|
21
21
|
},
|
|
22
|
-
owner: {
|
|
23
|
-
type: "string",
|
|
24
|
-
},
|
|
25
22
|
title: {
|
|
26
23
|
maxLength: 200,
|
|
27
24
|
default: null,
|
|
@@ -51,6 +48,7 @@ export const TagCreateSchema = {
|
|
|
51
48
|
"user",
|
|
52
49
|
"project",
|
|
53
50
|
"category",
|
|
51
|
+
"event",
|
|
54
52
|
"system",
|
|
55
53
|
],
|
|
56
54
|
maxLength: 50,
|
|
@@ -12,6 +12,9 @@ export const TriggerSchema = {
|
|
|
12
12
|
$id: "#trigger/base",
|
|
13
13
|
title: "core/trigger",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"type",
|
|
17
|
+
],
|
|
15
18
|
properties: {
|
|
16
19
|
type: {
|
|
17
20
|
type: "string",
|
|
@@ -23,9 +26,6 @@ export const TriggerSchema = {
|
|
|
23
26
|
},
|
|
24
27
|
},
|
|
25
28
|
},
|
|
26
|
-
required: [
|
|
27
|
-
"type",
|
|
28
|
-
],
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
|
|
@@ -12,6 +12,19 @@ export const UserSchema = {
|
|
|
12
12
|
$id: "#user/base",
|
|
13
13
|
title: "core/user",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"_id",
|
|
17
|
+
"email",
|
|
18
|
+
"firstname",
|
|
19
|
+
"lastname",
|
|
20
|
+
"email_verified",
|
|
21
|
+
"active",
|
|
22
|
+
"blocked",
|
|
23
|
+
"tags",
|
|
24
|
+
"createdAt",
|
|
25
|
+
"updatedAt",
|
|
26
|
+
"isDeleted",
|
|
27
|
+
],
|
|
15
28
|
properties: {
|
|
16
29
|
_id: {
|
|
17
30
|
format: "uuid",
|
|
@@ -88,6 +101,11 @@ export const UserSchema = {
|
|
|
88
101
|
type: "boolean",
|
|
89
102
|
},
|
|
90
103
|
},
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const PublicUserSchema = {
|
|
107
|
+
title: "core/user",
|
|
108
|
+
type: "object",
|
|
91
109
|
required: [
|
|
92
110
|
"_id",
|
|
93
111
|
"email",
|
|
@@ -101,11 +119,6 @@ export const UserSchema = {
|
|
|
101
119
|
"updatedAt",
|
|
102
120
|
"isDeleted",
|
|
103
121
|
],
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export const PublicUserSchema = {
|
|
107
|
-
title: "core/user",
|
|
108
|
-
type: "object",
|
|
109
122
|
properties: {
|
|
110
123
|
_id: {
|
|
111
124
|
format: "uuid",
|
|
@@ -172,19 +185,6 @@ export const PublicUserSchema = {
|
|
|
172
185
|
type: "boolean",
|
|
173
186
|
},
|
|
174
187
|
},
|
|
175
|
-
required: [
|
|
176
|
-
"_id",
|
|
177
|
-
"email",
|
|
178
|
-
"firstname",
|
|
179
|
-
"lastname",
|
|
180
|
-
"email_verified",
|
|
181
|
-
"active",
|
|
182
|
-
"blocked",
|
|
183
|
-
"tags",
|
|
184
|
-
"createdAt",
|
|
185
|
-
"updatedAt",
|
|
186
|
-
"isDeleted",
|
|
187
|
-
],
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export default UserSchema
|
|
@@ -12,6 +12,15 @@ export const UserCreateSchema = {
|
|
|
12
12
|
$id: "#user/create",
|
|
13
13
|
title: "core/user-create",
|
|
14
14
|
type: "object",
|
|
15
|
+
required: [
|
|
16
|
+
"email",
|
|
17
|
+
"firstname",
|
|
18
|
+
"lastname",
|
|
19
|
+
"email_verified",
|
|
20
|
+
"tags",
|
|
21
|
+
"password",
|
|
22
|
+
"account",
|
|
23
|
+
],
|
|
15
24
|
properties: {
|
|
16
25
|
_id: {
|
|
17
26
|
type: "string",
|
|
@@ -57,15 +66,6 @@ export const UserCreateSchema = {
|
|
|
57
66
|
type: "string",
|
|
58
67
|
},
|
|
59
68
|
},
|
|
60
|
-
required: [
|
|
61
|
-
"email",
|
|
62
|
-
"firstname",
|
|
63
|
-
"lastname",
|
|
64
|
-
"email_verified",
|
|
65
|
-
"tags",
|
|
66
|
-
"password",
|
|
67
|
-
"account",
|
|
68
|
-
],
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
|
|
@@ -10,6 +10,11 @@ import { Type } from "@sinclair/typebox"
|
|
|
10
10
|
|
|
11
11
|
export const WidgetSchema = {
|
|
12
12
|
type: "object",
|
|
13
|
+
required: [
|
|
14
|
+
"uuid",
|
|
15
|
+
"name",
|
|
16
|
+
"pluginKey",
|
|
17
|
+
],
|
|
13
18
|
properties: {
|
|
14
19
|
uuid: {
|
|
15
20
|
type: "string",
|
|
@@ -23,11 +28,6 @@ export const WidgetSchema = {
|
|
|
23
28
|
config: {},
|
|
24
29
|
public: {},
|
|
25
30
|
},
|
|
26
|
-
required: [
|
|
27
|
-
"uuid",
|
|
28
|
-
"name",
|
|
29
|
-
"pluginKey",
|
|
30
|
-
],
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
@@ -10,12 +10,21 @@ import { Type } from "@sinclair/typebox"
|
|
|
10
10
|
|
|
11
11
|
export const WidgetLayoutSchema = {
|
|
12
12
|
type: "object",
|
|
13
|
+
required: [
|
|
14
|
+
"column",
|
|
15
|
+
"widget",
|
|
16
|
+
],
|
|
13
17
|
properties: {
|
|
14
18
|
column: {
|
|
15
19
|
type: "number",
|
|
16
20
|
},
|
|
17
21
|
widget: {
|
|
18
22
|
type: "object",
|
|
23
|
+
required: [
|
|
24
|
+
"uuid",
|
|
25
|
+
"name",
|
|
26
|
+
"pluginKey",
|
|
27
|
+
],
|
|
19
28
|
properties: {
|
|
20
29
|
uuid: {
|
|
21
30
|
type: "string",
|
|
@@ -29,17 +38,8 @@ export const WidgetLayoutSchema = {
|
|
|
29
38
|
config: {},
|
|
30
39
|
public: {},
|
|
31
40
|
},
|
|
32
|
-
required: [
|
|
33
|
-
"uuid",
|
|
34
|
-
"name",
|
|
35
|
-
"pluginKey",
|
|
36
|
-
],
|
|
37
41
|
},
|
|
38
42
|
},
|
|
39
|
-
required: [
|
|
40
|
-
"column",
|
|
41
|
-
"widget",
|
|
42
|
-
],
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
|
@@ -14,6 +14,7 @@ export type * from './InteractionLink.types'
|
|
|
14
14
|
export type * from './InteractionLinkCreate.types'
|
|
15
15
|
export type * from './InteractionLinkUpdate.types'
|
|
16
16
|
export type * from './Project.types'
|
|
17
|
+
export type * from './ProjectConfig.types'
|
|
17
18
|
export type * from './ProjectCreate.types'
|
|
18
19
|
export type * from './ProjectUpdate.types'
|
|
19
20
|
export type * from './Tag.types'
|
|
@@ -25,3 +26,6 @@ export type * from './UserCreate.types'
|
|
|
25
26
|
export type * from './UserUpdate.types'
|
|
26
27
|
export type * from './Widget.types'
|
|
27
28
|
export type * from './WidgetLayout.types'
|
|
29
|
+
export type * from './WorkSession.types'
|
|
30
|
+
export type * from './WorkSessionCreate.types'
|
|
31
|
+
export type * from './WorkSessionUpdate.types'
|