@lssm/example.analytics-dashboard 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406

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 (94) hide show
  1. package/dist/dashboard/dashboard.contracts.d.ts +131 -131
  2. package/dist/dashboard/dashboard.contracts.js +5 -5
  3. package/dist/dashboard/dashboard.enum.d.ts +4 -4
  4. package/dist/dashboard/dashboard.enum.js +4 -4
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +43 -43
  7. package/dist/docs/analytics-dashboard.docblock.js +2 -2
  8. package/dist/events.d.ts +40 -40
  9. package/dist/events.js +25 -25
  10. package/dist/libs/contracts/dist/capabilities/openbanking.js +53 -49
  11. package/dist/libs/contracts/dist/client/index.js +1 -1
  12. package/dist/libs/contracts/dist/client/react/index.js +1 -1
  13. package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
  14. package/dist/libs/contracts/dist/contract-registry/schemas.js +52 -49
  15. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +11 -86
  16. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +11 -360
  17. package/dist/libs/contracts/dist/docs/index.js +2 -2
  18. package/dist/libs/contracts/dist/docs/presentations.js +48 -44
  19. package/dist/libs/contracts/dist/docs/registry.js +27 -25
  20. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +11 -393
  21. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +11 -78
  22. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +11 -150
  23. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +11 -96
  24. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +10 -10
  25. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +15 -15
  26. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +12 -12
  27. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +11 -223
  28. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +44 -44
  29. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +30 -14
  30. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +10 -10
  31. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +13 -274
  32. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +41 -15
  33. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +15 -15
  34. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +14 -14
  35. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +16 -28
  36. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +60 -15
  37. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +13 -13
  38. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +31 -48
  39. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +40 -15
  40. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +14 -14
  41. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +22 -22
  42. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +12 -12
  43. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +22 -22
  44. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +11 -11
  45. package/dist/libs/contracts/dist/events.js +4 -3
  46. package/dist/libs/contracts/dist/index.js +14 -14
  47. package/dist/libs/contracts/dist/integrations/contracts.js +205 -199
  48. package/dist/libs/contracts/dist/integrations/index.js +5 -5
  49. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +133 -130
  50. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +95 -93
  51. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -3
  52. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +120 -118
  53. package/dist/libs/contracts/dist/integrations/openbanking/models.js +122 -120
  54. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +9 -20
  55. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +25 -25
  56. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +36 -36
  57. package/dist/libs/contracts/dist/integrations/providers/gmail.js +40 -40
  58. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +31 -31
  59. package/dist/libs/contracts/dist/integrations/providers/mistral.js +31 -31
  60. package/dist/libs/contracts/dist/integrations/providers/postmark.js +31 -31
  61. package/dist/libs/contracts/dist/integrations/providers/powens.js +51 -51
  62. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +31 -31
  63. package/dist/libs/contracts/dist/integrations/providers/stripe.js +35 -35
  64. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +28 -28
  65. package/dist/libs/contracts/dist/jsonschema.js +1 -1
  66. package/dist/libs/contracts/dist/knowledge/contracts.js +170 -163
  67. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +17 -17
  68. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +17 -17
  69. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +19 -19
  70. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +17 -17
  71. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +17 -17
  72. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +17 -17
  73. package/dist/libs/contracts/dist/llm/exporters.js +13 -12
  74. package/dist/libs/contracts/dist/onboarding-base.js +116 -99
  75. package/dist/libs/contracts/dist/ownership.js +18 -33
  76. package/dist/libs/contracts/dist/presentations.js +1 -1
  77. package/dist/libs/contracts/dist/presentations.v2.js +6 -2
  78. package/dist/libs/contracts/dist/regenerator/service.js +5 -0
  79. package/dist/libs/contracts/dist/registry.js +1 -1
  80. package/dist/libs/contracts/dist/schema/dist/FieldType.js +24 -14
  81. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +180 -166
  82. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +20 -9
  83. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
  84. package/dist/libs/contracts/dist/spec.js +22 -13
  85. package/dist/libs/schema/dist/EnumType.js +25 -9
  86. package/dist/libs/schema/dist/FieldType.js +24 -14
  87. package/dist/libs/schema/dist/ScalarTypeEnum.js +180 -166
  88. package/dist/libs/schema/dist/SchemaModel.js +25 -10
  89. package/dist/libs/schema/dist/index.js +4 -4
  90. package/dist/query/query.contracts.d.ts +44 -44
  91. package/dist/query/query.contracts.js +3 -3
  92. package/dist/query/query.enum.js +2 -2
  93. package/dist/query/query.schema.js +33 -33
  94. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
- import { l } from "../libs/schema/dist/ScalarTypeEnum.js";
2
- import { n } from "../libs/schema/dist/SchemaModel.js";
1
+ import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
+ import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
3
  import "../libs/schema/dist/index.js";
4
4
  import { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum } from "./dashboard.enum.js";
5
5
 
@@ -7,19 +7,19 @@ import { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum } from "./dash
7
7
  /**
8
8
  * A dashboard widget.
9
9
  */
10
- const WidgetModel = n({
10
+ const WidgetModel = defineSchemaModel({
11
11
  name: "WidgetModel",
12
12
  fields: {
13
13
  id: {
14
- type: l.String_unsecure(),
14
+ type: ScalarTypeEnum.String_unsecure(),
15
15
  isOptional: false
16
16
  },
17
17
  dashboardId: {
18
- type: l.String_unsecure(),
18
+ type: ScalarTypeEnum.String_unsecure(),
19
19
  isOptional: false
20
20
  },
21
21
  name: {
22
- type: l.String_unsecure(),
22
+ type: ScalarTypeEnum.String_unsecure(),
23
23
  isOptional: false
24
24
  },
25
25
  type: {
@@ -27,27 +27,27 @@ const WidgetModel = n({
27
27
  isOptional: false
28
28
  },
29
29
  gridX: {
30
- type: l.Int_unsecure(),
30
+ type: ScalarTypeEnum.Int_unsecure(),
31
31
  isOptional: false
32
32
  },
33
33
  gridY: {
34
- type: l.Int_unsecure(),
34
+ type: ScalarTypeEnum.Int_unsecure(),
35
35
  isOptional: false
36
36
  },
37
37
  gridWidth: {
38
- type: l.Int_unsecure(),
38
+ type: ScalarTypeEnum.Int_unsecure(),
39
39
  isOptional: false
40
40
  },
41
41
  gridHeight: {
42
- type: l.Int_unsecure(),
42
+ type: ScalarTypeEnum.Int_unsecure(),
43
43
  isOptional: false
44
44
  },
45
45
  queryId: {
46
- type: l.String_unsecure(),
46
+ type: ScalarTypeEnum.String_unsecure(),
47
47
  isOptional: true
48
48
  },
49
49
  config: {
50
- type: l.JSON(),
50
+ type: ScalarTypeEnum.JSON(),
51
51
  isOptional: true
52
52
  }
53
53
  }
@@ -55,23 +55,23 @@ const WidgetModel = n({
55
55
  /**
56
56
  * An analytics dashboard.
57
57
  */
58
- const DashboardModel = n({
58
+ const DashboardModel = defineSchemaModel({
59
59
  name: "DashboardModel",
60
60
  fields: {
61
61
  id: {
62
- type: l.String_unsecure(),
62
+ type: ScalarTypeEnum.String_unsecure(),
63
63
  isOptional: false
64
64
  },
65
65
  name: {
66
- type: l.String_unsecure(),
66
+ type: ScalarTypeEnum.String_unsecure(),
67
67
  isOptional: false
68
68
  },
69
69
  slug: {
70
- type: l.String_unsecure(),
70
+ type: ScalarTypeEnum.String_unsecure(),
71
71
  isOptional: false
72
72
  },
73
73
  description: {
74
- type: l.String_unsecure(),
74
+ type: ScalarTypeEnum.String_unsecure(),
75
75
  isOptional: true
76
76
  },
77
77
  status: {
@@ -83,7 +83,7 @@ const DashboardModel = n({
83
83
  isOptional: false
84
84
  },
85
85
  isPublic: {
86
- type: l.Boolean(),
86
+ type: ScalarTypeEnum.Boolean(),
87
87
  isOptional: false
88
88
  },
89
89
  widgets: {
@@ -92,7 +92,7 @@ const DashboardModel = n({
92
92
  isOptional: true
93
93
  },
94
94
  createdAt: {
95
- type: l.DateTime(),
95
+ type: ScalarTypeEnum.DateTime(),
96
96
  isOptional: false
97
97
  }
98
98
  }
@@ -100,19 +100,19 @@ const DashboardModel = n({
100
100
  /**
101
101
  * Input for creating a dashboard.
102
102
  */
103
- const CreateDashboardInputModel = n({
103
+ const CreateDashboardInputModel = defineSchemaModel({
104
104
  name: "CreateDashboardInput",
105
105
  fields: {
106
106
  name: {
107
- type: l.NonEmptyString(),
107
+ type: ScalarTypeEnum.NonEmptyString(),
108
108
  isOptional: false
109
109
  },
110
110
  slug: {
111
- type: l.NonEmptyString(),
111
+ type: ScalarTypeEnum.NonEmptyString(),
112
112
  isOptional: false
113
113
  },
114
114
  description: {
115
- type: l.String_unsecure(),
115
+ type: ScalarTypeEnum.String_unsecure(),
116
116
  isOptional: true
117
117
  },
118
118
  refreshInterval: {
@@ -120,7 +120,7 @@ const CreateDashboardInputModel = n({
120
120
  isOptional: true
121
121
  },
122
122
  dateRange: {
123
- type: l.JSON(),
123
+ type: ScalarTypeEnum.JSON(),
124
124
  isOptional: true
125
125
  }
126
126
  }
@@ -128,15 +128,15 @@ const CreateDashboardInputModel = n({
128
128
  /**
129
129
  * Input for adding a widget.
130
130
  */
131
- const AddWidgetInputModel = n({
131
+ const AddWidgetInputModel = defineSchemaModel({
132
132
  name: "AddWidgetInput",
133
133
  fields: {
134
134
  dashboardId: {
135
- type: l.String_unsecure(),
135
+ type: ScalarTypeEnum.String_unsecure(),
136
136
  isOptional: false
137
137
  },
138
138
  name: {
139
- type: l.NonEmptyString(),
139
+ type: ScalarTypeEnum.NonEmptyString(),
140
140
  isOptional: false
141
141
  },
142
142
  type: {
@@ -144,27 +144,27 @@ const AddWidgetInputModel = n({
144
144
  isOptional: false
145
145
  },
146
146
  gridX: {
147
- type: l.Int_unsecure(),
147
+ type: ScalarTypeEnum.Int_unsecure(),
148
148
  isOptional: true
149
149
  },
150
150
  gridY: {
151
- type: l.Int_unsecure(),
151
+ type: ScalarTypeEnum.Int_unsecure(),
152
152
  isOptional: true
153
153
  },
154
154
  gridWidth: {
155
- type: l.Int_unsecure(),
155
+ type: ScalarTypeEnum.Int_unsecure(),
156
156
  isOptional: true
157
157
  },
158
158
  gridHeight: {
159
- type: l.Int_unsecure(),
159
+ type: ScalarTypeEnum.Int_unsecure(),
160
160
  isOptional: true
161
161
  },
162
162
  queryId: {
163
- type: l.String_unsecure(),
163
+ type: ScalarTypeEnum.String_unsecure(),
164
164
  isOptional: true
165
165
  },
166
166
  config: {
167
- type: l.JSON(),
167
+ type: ScalarTypeEnum.JSON(),
168
168
  isOptional: true
169
169
  }
170
170
  }
@@ -172,7 +172,7 @@ const AddWidgetInputModel = n({
172
172
  /**
173
173
  * Input for listing dashboards.
174
174
  */
175
- const ListDashboardsInputModel = n({
175
+ const ListDashboardsInputModel = defineSchemaModel({
176
176
  name: "ListDashboardsInput",
177
177
  fields: {
178
178
  status: {
@@ -180,16 +180,16 @@ const ListDashboardsInputModel = n({
180
180
  isOptional: true
181
181
  },
182
182
  search: {
183
- type: l.String_unsecure(),
183
+ type: ScalarTypeEnum.String_unsecure(),
184
184
  isOptional: true
185
185
  },
186
186
  limit: {
187
- type: l.Int_unsecure(),
187
+ type: ScalarTypeEnum.Int_unsecure(),
188
188
  isOptional: true,
189
189
  defaultValue: 20
190
190
  },
191
191
  offset: {
192
- type: l.Int_unsecure(),
192
+ type: ScalarTypeEnum.Int_unsecure(),
193
193
  isOptional: true,
194
194
  defaultValue: 0
195
195
  }
@@ -198,7 +198,7 @@ const ListDashboardsInputModel = n({
198
198
  /**
199
199
  * Output for listing dashboards.
200
200
  */
201
- const ListDashboardsOutputModel = n({
201
+ const ListDashboardsOutputModel = defineSchemaModel({
202
202
  name: "ListDashboardsOutput",
203
203
  fields: {
204
204
  dashboards: {
@@ -207,7 +207,7 @@ const ListDashboardsOutputModel = n({
207
207
  isOptional: false
208
208
  },
209
209
  total: {
210
- type: l.Int_unsecure(),
210
+ type: ScalarTypeEnum.Int_unsecure(),
211
211
  isOptional: false
212
212
  }
213
213
  }
@@ -215,19 +215,19 @@ const ListDashboardsOutputModel = n({
215
215
  /**
216
216
  * Input for getting a dashboard.
217
217
  */
218
- const GetDashboardInputModel = n({
218
+ const GetDashboardInputModel = defineSchemaModel({
219
219
  name: "GetDashboardInput",
220
220
  fields: {
221
221
  dashboardId: {
222
- type: l.String_unsecure(),
222
+ type: ScalarTypeEnum.String_unsecure(),
223
223
  isOptional: true
224
224
  },
225
225
  slug: {
226
- type: l.String_unsecure(),
226
+ type: ScalarTypeEnum.String_unsecure(),
227
227
  isOptional: true
228
228
  },
229
229
  shareToken: {
230
- type: l.String_unsecure(),
230
+ type: ScalarTypeEnum.String_unsecure(),
231
231
  isOptional: true
232
232
  }
233
233
  }
@@ -1,8 +1,8 @@
1
- import { a } from "../libs/contracts/dist/docs/registry.js";
1
+ import { registerDocBlocks } from "../libs/contracts/dist/docs/registry.js";
2
2
  import "../libs/contracts/dist/docs/index.js";
3
3
 
4
4
  //#region src/docs/analytics-dashboard.docblock.ts
5
- a([
5
+ registerDocBlocks([
6
6
  {
7
7
  id: "docs.examples.analytics-dashboard",
8
8
  title: "Analytics Dashboard",
package/dist/events.d.ts CHANGED
@@ -1,145 +1,145 @@
1
- import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
2
- import * as _lssm_lib_schema131 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
2
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/events.d.ts
5
- declare const DashboardCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
5
+ declare const DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
6
6
  dashboardId: {
7
- type: _lssm_lib_schema131.FieldType<string, string>;
7
+ type: _lssm_lib_schema0.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  title: {
11
- type: _lssm_lib_schema131.FieldType<string, string>;
11
+ type: _lssm_lib_schema0.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  orgId: {
15
- type: _lssm_lib_schema131.FieldType<string, string>;
15
+ type: _lssm_lib_schema0.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  createdBy: {
19
- type: _lssm_lib_schema131.FieldType<string, string>;
19
+ type: _lssm_lib_schema0.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  timestamp: {
23
- type: _lssm_lib_schema131.FieldType<Date, string>;
23
+ type: _lssm_lib_schema0.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
27
- declare const WidgetAddedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
27
+ declare const WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
28
28
  widgetId: {
29
- type: _lssm_lib_schema131.FieldType<string, string>;
29
+ type: _lssm_lib_schema0.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  dashboardId: {
33
- type: _lssm_lib_schema131.FieldType<string, string>;
33
+ type: _lssm_lib_schema0.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  widgetType: {
37
- type: _lssm_lib_schema131.FieldType<string, string>;
37
+ type: _lssm_lib_schema0.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  orgId: {
41
- type: _lssm_lib_schema131.FieldType<string, string>;
41
+ type: _lssm_lib_schema0.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  timestamp: {
45
- type: _lssm_lib_schema131.FieldType<Date, string>;
45
+ type: _lssm_lib_schema0.FieldType<Date, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  }>>;
49
- declare const QueryCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
49
+ declare const QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
50
50
  queryId: {
51
- type: _lssm_lib_schema131.FieldType<string, string>;
51
+ type: _lssm_lib_schema0.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  name: {
55
- type: _lssm_lib_schema131.FieldType<string, string>;
55
+ type: _lssm_lib_schema0.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  queryType: {
59
- type: _lssm_lib_schema131.FieldType<string, string>;
59
+ type: _lssm_lib_schema0.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  orgId: {
63
- type: _lssm_lib_schema131.FieldType<string, string>;
63
+ type: _lssm_lib_schema0.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  createdBy: {
67
- type: _lssm_lib_schema131.FieldType<string, string>;
67
+ type: _lssm_lib_schema0.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  timestamp: {
71
- type: _lssm_lib_schema131.FieldType<Date, string>;
71
+ type: _lssm_lib_schema0.FieldType<Date, string>;
72
72
  isOptional: false;
73
73
  };
74
74
  }>>;
75
75
  declare const AnalyticsDashboardEvents: {
76
- DashboardCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
76
+ DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
77
77
  dashboardId: {
78
- type: _lssm_lib_schema131.FieldType<string, string>;
78
+ type: _lssm_lib_schema0.FieldType<string, string>;
79
79
  isOptional: false;
80
80
  };
81
81
  title: {
82
- type: _lssm_lib_schema131.FieldType<string, string>;
82
+ type: _lssm_lib_schema0.FieldType<string, string>;
83
83
  isOptional: false;
84
84
  };
85
85
  orgId: {
86
- type: _lssm_lib_schema131.FieldType<string, string>;
86
+ type: _lssm_lib_schema0.FieldType<string, string>;
87
87
  isOptional: false;
88
88
  };
89
89
  createdBy: {
90
- type: _lssm_lib_schema131.FieldType<string, string>;
90
+ type: _lssm_lib_schema0.FieldType<string, string>;
91
91
  isOptional: false;
92
92
  };
93
93
  timestamp: {
94
- type: _lssm_lib_schema131.FieldType<Date, string>;
94
+ type: _lssm_lib_schema0.FieldType<Date, string>;
95
95
  isOptional: false;
96
96
  };
97
97
  }>>;
98
- WidgetAddedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
98
+ WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
99
99
  widgetId: {
100
- type: _lssm_lib_schema131.FieldType<string, string>;
100
+ type: _lssm_lib_schema0.FieldType<string, string>;
101
101
  isOptional: false;
102
102
  };
103
103
  dashboardId: {
104
- type: _lssm_lib_schema131.FieldType<string, string>;
104
+ type: _lssm_lib_schema0.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  widgetType: {
108
- type: _lssm_lib_schema131.FieldType<string, string>;
108
+ type: _lssm_lib_schema0.FieldType<string, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  orgId: {
112
- type: _lssm_lib_schema131.FieldType<string, string>;
112
+ type: _lssm_lib_schema0.FieldType<string, string>;
113
113
  isOptional: false;
114
114
  };
115
115
  timestamp: {
116
- type: _lssm_lib_schema131.FieldType<Date, string>;
116
+ type: _lssm_lib_schema0.FieldType<Date, string>;
117
117
  isOptional: false;
118
118
  };
119
119
  }>>;
120
- QueryCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
120
+ QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
121
121
  queryId: {
122
- type: _lssm_lib_schema131.FieldType<string, string>;
122
+ type: _lssm_lib_schema0.FieldType<string, string>;
123
123
  isOptional: false;
124
124
  };
125
125
  name: {
126
- type: _lssm_lib_schema131.FieldType<string, string>;
126
+ type: _lssm_lib_schema0.FieldType<string, string>;
127
127
  isOptional: false;
128
128
  };
129
129
  queryType: {
130
- type: _lssm_lib_schema131.FieldType<string, string>;
130
+ type: _lssm_lib_schema0.FieldType<string, string>;
131
131
  isOptional: false;
132
132
  };
133
133
  orgId: {
134
- type: _lssm_lib_schema131.FieldType<string, string>;
134
+ type: _lssm_lib_schema0.FieldType<string, string>;
135
135
  isOptional: false;
136
136
  };
137
137
  createdBy: {
138
- type: _lssm_lib_schema131.FieldType<string, string>;
138
+ type: _lssm_lib_schema0.FieldType<string, string>;
139
139
  isOptional: false;
140
140
  };
141
141
  timestamp: {
142
- type: _lssm_lib_schema131.FieldType<Date, string>;
142
+ type: _lssm_lib_schema0.FieldType<Date, string>;
143
143
  isOptional: false;
144
144
  };
145
145
  }>>;
package/dist/events.js CHANGED
@@ -1,105 +1,105 @@
1
- import { l } from "./libs/schema/dist/ScalarTypeEnum.js";
2
- import { n } from "./libs/schema/dist/SchemaModel.js";
1
+ import { ScalarTypeEnum } from "./libs/schema/dist/ScalarTypeEnum.js";
2
+ import { defineSchemaModel } from "./libs/schema/dist/SchemaModel.js";
3
3
  import "./libs/schema/dist/index.js";
4
- import { e } from "./libs/contracts/dist/events.js";
4
+ import { defineEvent } from "./libs/contracts/dist/events.js";
5
5
  import "./libs/contracts/dist/index.js";
6
6
 
7
7
  //#region src/events.ts
8
- const DashboardEventPayload = n({
8
+ const DashboardEventPayload = defineSchemaModel({
9
9
  name: "DashboardEventPayload",
10
10
  description: "Payload for dashboard events",
11
11
  fields: {
12
12
  dashboardId: {
13
- type: l.String_unsecure(),
13
+ type: ScalarTypeEnum.String_unsecure(),
14
14
  isOptional: false
15
15
  },
16
16
  title: {
17
- type: l.String_unsecure(),
17
+ type: ScalarTypeEnum.String_unsecure(),
18
18
  isOptional: false
19
19
  },
20
20
  orgId: {
21
- type: l.String_unsecure(),
21
+ type: ScalarTypeEnum.String_unsecure(),
22
22
  isOptional: false
23
23
  },
24
24
  createdBy: {
25
- type: l.String_unsecure(),
25
+ type: ScalarTypeEnum.String_unsecure(),
26
26
  isOptional: false
27
27
  },
28
28
  timestamp: {
29
- type: l.DateTime(),
29
+ type: ScalarTypeEnum.DateTime(),
30
30
  isOptional: false
31
31
  }
32
32
  }
33
33
  });
34
- const WidgetEventPayload = n({
34
+ const WidgetEventPayload = defineSchemaModel({
35
35
  name: "WidgetEventPayload",
36
36
  description: "Payload for widget events",
37
37
  fields: {
38
38
  widgetId: {
39
- type: l.String_unsecure(),
39
+ type: ScalarTypeEnum.String_unsecure(),
40
40
  isOptional: false
41
41
  },
42
42
  dashboardId: {
43
- type: l.String_unsecure(),
43
+ type: ScalarTypeEnum.String_unsecure(),
44
44
  isOptional: false
45
45
  },
46
46
  widgetType: {
47
- type: l.String_unsecure(),
47
+ type: ScalarTypeEnum.String_unsecure(),
48
48
  isOptional: false
49
49
  },
50
50
  orgId: {
51
- type: l.String_unsecure(),
51
+ type: ScalarTypeEnum.String_unsecure(),
52
52
  isOptional: false
53
53
  },
54
54
  timestamp: {
55
- type: l.DateTime(),
55
+ type: ScalarTypeEnum.DateTime(),
56
56
  isOptional: false
57
57
  }
58
58
  }
59
59
  });
60
- const QueryEventPayload = n({
60
+ const QueryEventPayload = defineSchemaModel({
61
61
  name: "QueryEventPayload",
62
62
  description: "Payload for query events",
63
63
  fields: {
64
64
  queryId: {
65
- type: l.String_unsecure(),
65
+ type: ScalarTypeEnum.String_unsecure(),
66
66
  isOptional: false
67
67
  },
68
68
  name: {
69
- type: l.String_unsecure(),
69
+ type: ScalarTypeEnum.String_unsecure(),
70
70
  isOptional: false
71
71
  },
72
72
  queryType: {
73
- type: l.String_unsecure(),
73
+ type: ScalarTypeEnum.String_unsecure(),
74
74
  isOptional: false
75
75
  },
76
76
  orgId: {
77
- type: l.String_unsecure(),
77
+ type: ScalarTypeEnum.String_unsecure(),
78
78
  isOptional: false
79
79
  },
80
80
  createdBy: {
81
- type: l.String_unsecure(),
81
+ type: ScalarTypeEnum.String_unsecure(),
82
82
  isOptional: false
83
83
  },
84
84
  timestamp: {
85
- type: l.DateTime(),
85
+ type: ScalarTypeEnum.DateTime(),
86
86
  isOptional: false
87
87
  }
88
88
  }
89
89
  });
90
- const DashboardCreatedEvent = e({
90
+ const DashboardCreatedEvent = defineEvent({
91
91
  name: "analytics.dashboard.created",
92
92
  version: 1,
93
93
  description: "A dashboard was created.",
94
94
  payload: DashboardEventPayload
95
95
  });
96
- const WidgetAddedEvent = e({
96
+ const WidgetAddedEvent = defineEvent({
97
97
  name: "analytics.widget.added",
98
98
  version: 1,
99
99
  description: "A widget was added to a dashboard.",
100
100
  payload: WidgetEventPayload
101
101
  });
102
- const QueryCreatedEvent = e({
102
+ const QueryCreatedEvent = defineEvent({
103
103
  name: "analytics.query.created",
104
104
  version: 1,
105
105
  description: "A query was created.",