@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.
Files changed (80) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cli.js +99 -98
  3. package/dist/cli.js.map +4 -4
  4. package/package.json +2 -2
  5. package/services/backend/.yarn/install-state.gz +0 -0
  6. package/services/backend/dist/core/eventBus/index.js +7 -0
  7. package/services/backend/dist/core/pluginSystem/configGenerator/index.js +346 -0
  8. package/services/backend/dist/core/sockets/index.js +95 -0
  9. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/events/index.js +31 -0
  10. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/index.js +48 -0
  11. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/account/routes/index.js +15 -0
  12. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/events/index.js +22 -0
  13. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/index.js +51 -0
  14. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/composition/routes/index.js +19 -0
  15. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/events/index.js +22 -0
  16. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/index.js +48 -0
  17. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/interactionLink/routes/index.js +19 -0
  18. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/events/index.js +31 -0
  19. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/index.js +49 -0
  20. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/project/routes/index.js +16 -0
  21. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/events/index.js +39 -0
  22. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/index.js +50 -0
  23. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/tag/routes/index.js +19 -0
  24. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/events/index.js +31 -0
  25. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/index.js +51 -0
  26. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/user/routes/index.js +21 -0
  27. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/events/index.js +31 -0
  28. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/index.js +48 -0
  29. package/services/backend/dist/corePlugins/raclette__core/backend/datatypes/workSession/routes/index.js +15 -0
  30. package/services/backend/dist/corePlugins/raclette__core/backend/index.js +34 -0
  31. package/services/backend/dist/domains/index.js +11 -0
  32. package/services/backend/dist/domains/system/index.js +11 -0
  33. package/services/backend/dist/domains/system/routes/index.js +17 -0
  34. package/services/backend/dist/helpers/index.js +14 -0
  35. package/services/backend/dist/index.js +3 -0
  36. package/services/backend/dist/modules/authentication/index.js +253 -0
  37. package/services/backend/dist/shared/types/core/index.js +8 -0
  38. package/services/backend/dist/shared/types/dataTypes/index.js +6 -0
  39. package/services/backend/dist/shared/types/index.js +8 -0
  40. package/services/backend/dist/shared/types/plugins/index.js +8 -0
  41. package/services/backend/dist/types/index.js +12 -0
  42. package/services/backend/dist/utils/index.js +2 -0
  43. package/services/backend/package.json +2 -2
  44. package/services/backend/src/core/config/configService.ts +1 -1
  45. package/services/backend/src/corePlugins/raclette__core/frontend/generated-config.ts +12 -0
  46. package/services/backend/src/modules/hooks/rate-limiter.ts +1 -12
  47. package/services/backend/src/shared/schemas/core/Account.schema.ts +10 -10
  48. package/services/backend/src/shared/schemas/core/Composition.schema.ts +25 -22
  49. package/services/backend/src/shared/schemas/core/CompositionCreate.schema.ts +19 -16
  50. package/services/backend/src/shared/schemas/core/CompositionUpdate.schema.ts +19 -16
  51. package/services/backend/src/shared/schemas/core/InteractionLink.schema.ts +15 -15
  52. package/services/backend/src/shared/schemas/core/InteractionLinkCreate.schema.ts +9 -9
  53. package/services/backend/src/shared/schemas/core/InteractionLinkUpdate.schema.ts +9 -9
  54. package/services/backend/src/shared/schemas/core/Project.schema.ts +28 -6
  55. package/services/backend/src/shared/schemas/core/ProjectCreate.schema.ts +22 -0
  56. package/services/backend/src/shared/schemas/core/ProjectUpdate.schema.ts +25 -0
  57. package/services/backend/src/shared/schemas/core/Tag.schema.ts +11 -9
  58. package/services/backend/src/shared/schemas/core/TagCreate.schema.ts +1 -3
  59. package/services/backend/src/shared/schemas/core/TagUpdate.schema.ts +1 -0
  60. package/services/backend/src/shared/schemas/core/Trigger.schema.ts +3 -3
  61. package/services/backend/src/shared/schemas/core/User.schema.ts +18 -18
  62. package/services/backend/src/shared/schemas/core/UserCreate.schema.ts +9 -9
  63. package/services/backend/src/shared/schemas/core/Widget.schema.ts +5 -5
  64. package/services/backend/src/shared/schemas/core/WidgetLayout.schema.ts +9 -9
  65. package/services/backend/src/shared/types/core/Composition.types.ts +1 -0
  66. package/services/backend/src/shared/types/core/CompositionCreate.types.ts +1 -0
  67. package/services/backend/src/shared/types/core/CompositionUpdate.types.ts +1 -0
  68. package/services/backend/src/shared/types/core/Project.types.ts +4 -0
  69. package/services/backend/src/shared/types/core/ProjectCreate.types.ts +4 -0
  70. package/services/backend/src/shared/types/core/ProjectUpdate.types.ts +4 -1
  71. package/services/backend/src/shared/types/core/Tag.types.ts +1 -1
  72. package/services/backend/src/shared/types/core/TagCreate.types.ts +0 -1
  73. package/services/backend/src/shared/types/core/index.ts +4 -0
  74. package/services/backend/src/shared/types/plugins/index.ts +1 -1
  75. package/services/backend/yarn.lock +517 -292
  76. package/services/frontend/.yarn/install-state.gz +0 -0
  77. package/services/frontend/src/core/lib/data/dataApi.ts +2 -2
  78. package/services/frontend/src/core/lib/data/queryApi.ts +1 -2
  79. package/services/frontend/src/core/store/state.ts +6 -41
  80. package/services/frontend/vite.config.ts +2 -1
@@ -42,6 +42,7 @@ const $writeDataApi = (
42
42
  if (options.responseType === "stream") {
43
43
  return writeData(actionId, operationDefinition, queryParams, options)
44
44
  }
45
+
45
46
  isLoadingSubject$.next(true)
46
47
  const resultData = await writeData(
47
48
  actionId,
@@ -49,8 +50,7 @@ const $writeDataApi = (
49
50
  queryParams,
50
51
  options,
51
52
  ).catch((e) => {
52
- const errorObj = e
53
- errorSubject$.next(errorObj)
53
+ errorSubject$.next(e.response)
54
54
  isLoadingSubject$.next(false)
55
55
  })
56
56
  responseSubject$.next(resultData?.response)
@@ -86,8 +86,7 @@ export const $queryApi = (
86
86
  queryParams,
87
87
  options,
88
88
  ).catch((e) => {
89
- const errorObj = e
90
- errorSubject$.next(errorObj)
89
+ errorSubject$.next(e.response)
91
90
  })
92
91
  responseSubject$.next(resultData?.response)
93
92
  if (callbacks[actionId] && typeof callbacks[actionId] === "function") {
@@ -122,26 +122,6 @@ const storePatterns = {
122
122
  uuid: false,
123
123
  version: "0.0.0",
124
124
  },
125
- page: {
126
- // the icon to be displayed in the page navigation
127
- icon: false,
128
- // this will determine if we always scroll to the last page position or
129
- // to the top whenever we enter this page
130
- scrollTop: false,
131
- // The title of the page if i18n from db
132
- title: "",
133
- // The title of the page if i18n key is handled in frontend
134
- titleI18n: "",
135
- // grid config for a page
136
- grid: configPatterns.grid,
137
- // the array containing the configs for the 1-n slots
138
- slots: [[]],
139
- // the name of the route configured in the vue router
140
- routeName: false,
141
- // The uuid of other unique identifier for the page within the application context
142
- uuid: false,
143
- version: "0.0.0",
144
- },
145
125
  widget: {
146
126
  // The title of the page if i18n from db
147
127
  title: "",
@@ -152,30 +132,15 @@ const storePatterns = {
152
132
  uuid: false,
153
133
  // the type of widget which represents a folder name under widgets and a config
154
134
  name: false,
155
- // a deeper abstractation level for widgets which are used as tools.
156
- // ie. type:''add' create a folder called 'add' and create a default.vue
157
- // or FACE.vue containing your add logic for a given widget
135
+ // any working state we want to have available in the store and not just the component
158
136
  workingState: {},
137
+ // any acutal config we provide to the widget
138
+ config: {},
139
+ // any data the widget want's to provide to other widgets/plugins/core such as serializers, connection hooks to other modules etc
140
+ public: {},
159
141
  version: "0.0.0",
160
- },
161
- tools: {
162
- // The title of the page if i18n from db
163
- title: "",
164
- // The title of the page if i18n key is handled in frontend
165
- titleI18n: "",
166
- // an array of route names this tool should be visible on. If array is empty, it will be visible everywhere
167
- pages: [],
168
- // an icon to be displayed in the tool wrapper
169
- icon: false,
170
- // a uniqe identifier for the tool
171
- uuid: false,
172
- // the widget which should serve as the functionallity of the tool
173
- widget: false,
174
- version: "0.0.0",
142
+ pluginKey: "",
175
143
  },
176
144
  }
177
145
 
178
- // add the widget store pattern to the tool
179
- storePatterns.tools.widget = storePatterns.widget
180
-
181
146
  export { loadingHold, applicationState, configPatterns, storePatterns }
@@ -34,8 +34,9 @@ export default defineConfig({
34
34
  },
35
35
  },
36
36
  optimizeDeps: {
37
- include: ["vue", "vue-router", "vuetify"],
37
+ include: ["vue", "vue-router"],
38
38
  exclude: [
39
+ "vuetify",
39
40
  "virtual:plugin-key",
40
41
  "virtual:plugin-setup",
41
42
  "@racletteOrchestrator/composables/usePluginApi",