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

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 (138) 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 +5 -4
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +44 -42
  7. package/dist/docs/analytics-dashboard.docblock.js +3 -2
  8. package/dist/events.d.ts +40 -40
  9. package/dist/events.js +27 -24
  10. package/dist/index.d.ts +0 -1
  11. package/dist/libs/contracts/dist/capabilities/openbanking.js +84 -0
  12. package/dist/libs/contracts/dist/client/index.js +5 -0
  13. package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
  14. package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
  15. package/dist/libs/contracts/dist/client/react/index.js +4 -0
  16. package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
  17. package/dist/libs/contracts/dist/contract-registry/schemas.js +57 -0
  18. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +91 -0
  19. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +365 -0
  20. package/dist/libs/contracts/dist/docs/index.js +29 -0
  21. package/dist/libs/contracts/dist/docs/presentations.js +67 -0
  22. package/dist/libs/contracts/dist/docs/registry.js +42 -0
  23. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +398 -0
  24. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +83 -0
  25. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +155 -0
  26. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +101 -0
  27. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
  28. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
  29. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
  30. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +228 -0
  31. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
  32. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +21 -0
  33. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
  34. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +281 -0
  35. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +22 -0
  36. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
  37. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
  38. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +57 -0
  39. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +22 -0
  40. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
  41. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +86 -0
  42. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +22 -0
  43. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
  44. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
  45. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
  46. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
  47. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
  48. package/dist/libs/contracts/dist/events.js +9 -0
  49. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  50. package/dist/libs/contracts/dist/index.js +71 -0
  51. package/dist/libs/contracts/dist/install.js +2 -0
  52. package/dist/libs/contracts/dist/integrations/contracts.js +371 -0
  53. package/dist/libs/contracts/dist/integrations/index.js +18 -0
  54. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +225 -0
  55. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +157 -0
  56. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
  57. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +208 -0
  58. package/dist/libs/contracts/dist/integrations/openbanking/models.js +240 -0
  59. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +24 -0
  60. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
  61. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
  62. package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
  63. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
  64. package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
  65. package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
  66. package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
  67. package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
  68. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
  69. package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
  70. package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
  71. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
  72. package/dist/libs/contracts/dist/jsonschema.js +1 -0
  73. package/dist/libs/contracts/dist/knowledge/contracts.js +299 -0
  74. package/dist/libs/contracts/dist/knowledge/index.js +7 -0
  75. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
  76. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
  77. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
  78. package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
  79. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
  80. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
  81. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
  82. package/dist/libs/contracts/dist/llm/exporters.js +18 -0
  83. package/dist/libs/contracts/dist/llm/index.js +2 -0
  84. package/dist/libs/contracts/dist/llm/prompts.js +1 -0
  85. package/dist/libs/contracts/dist/onboarding-base.js +179 -0
  86. package/dist/libs/contracts/dist/openapi.js +1 -0
  87. package/dist/libs/contracts/dist/ownership.js +36 -0
  88. package/dist/libs/contracts/dist/presentations.js +1 -0
  89. package/dist/libs/contracts/dist/presentations.v2.js +7 -0
  90. package/dist/libs/contracts/dist/prompt.js +1 -0
  91. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  92. package/dist/libs/contracts/dist/regenerator/index.js +1 -0
  93. package/dist/libs/contracts/dist/regenerator/service.js +1 -0
  94. package/dist/libs/contracts/dist/registry.js +2 -0
  95. package/dist/libs/contracts/dist/resources.js +1 -0
  96. package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
  97. package/dist/libs/contracts/dist/schema/dist/FieldType.js +39 -0
  98. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +222 -0
  99. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +23 -0
  100. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  101. package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
  102. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  103. package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
  104. package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
  105. package/dist/libs/contracts/dist/server/index.js +8 -0
  106. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
  107. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
  108. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
  109. package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
  110. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
  111. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  112. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  113. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  114. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  115. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  116. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  117. package/dist/libs/contracts/dist/spec.js +25 -0
  118. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  119. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  120. package/dist/libs/contracts/dist/tests/index.js +1 -0
  121. package/dist/libs/contracts/dist/tests/runner.js +2 -0
  122. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  123. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  124. package/dist/libs/schema/dist/EnumType.js +40 -0
  125. package/dist/libs/schema/dist/FieldType.js +39 -0
  126. package/dist/libs/schema/dist/ScalarTypeEnum.js +222 -0
  127. package/dist/libs/schema/dist/SchemaModel.js +24 -0
  128. package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
  129. package/dist/libs/schema/dist/entity/index.js +2 -0
  130. package/dist/libs/schema/dist/entity/types.js +1 -0
  131. package/dist/libs/schema/dist/index.js +6 -0
  132. package/dist/query/query.contracts.d.ts +44 -44
  133. package/dist/query/query.contracts.js +3 -3
  134. package/dist/query/query.enum.d.ts +2 -2
  135. package/dist/query/query.enum.js +3 -2
  136. package/dist/query/query.schema.d.ts +34 -34
  137. package/dist/query/query.schema.js +34 -32
  138. package/package.json +10 -10
@@ -1,23 +1,25 @@
1
+ import { l } from "../libs/schema/dist/ScalarTypeEnum.js";
2
+ import { n } from "../libs/schema/dist/SchemaModel.js";
3
+ import "../libs/schema/dist/index.js";
1
4
  import { DashboardStatusEnum, RefreshIntervalEnum, WidgetTypeEnum } from "./dashboard.enum.js";
2
- import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
3
5
 
4
6
  //#region src/dashboard/dashboard.schema.ts
5
7
  /**
6
8
  * A dashboard widget.
7
9
  */
8
- const WidgetModel = defineSchemaModel({
10
+ const WidgetModel = n({
9
11
  name: "WidgetModel",
10
12
  fields: {
11
13
  id: {
12
- type: ScalarTypeEnum.String_unsecure(),
14
+ type: l.String_unsecure(),
13
15
  isOptional: false
14
16
  },
15
17
  dashboardId: {
16
- type: ScalarTypeEnum.String_unsecure(),
18
+ type: l.String_unsecure(),
17
19
  isOptional: false
18
20
  },
19
21
  name: {
20
- type: ScalarTypeEnum.String_unsecure(),
22
+ type: l.String_unsecure(),
21
23
  isOptional: false
22
24
  },
23
25
  type: {
@@ -25,27 +27,27 @@ const WidgetModel = defineSchemaModel({
25
27
  isOptional: false
26
28
  },
27
29
  gridX: {
28
- type: ScalarTypeEnum.Int_unsecure(),
30
+ type: l.Int_unsecure(),
29
31
  isOptional: false
30
32
  },
31
33
  gridY: {
32
- type: ScalarTypeEnum.Int_unsecure(),
34
+ type: l.Int_unsecure(),
33
35
  isOptional: false
34
36
  },
35
37
  gridWidth: {
36
- type: ScalarTypeEnum.Int_unsecure(),
38
+ type: l.Int_unsecure(),
37
39
  isOptional: false
38
40
  },
39
41
  gridHeight: {
40
- type: ScalarTypeEnum.Int_unsecure(),
42
+ type: l.Int_unsecure(),
41
43
  isOptional: false
42
44
  },
43
45
  queryId: {
44
- type: ScalarTypeEnum.String_unsecure(),
46
+ type: l.String_unsecure(),
45
47
  isOptional: true
46
48
  },
47
49
  config: {
48
- type: ScalarTypeEnum.JSON(),
50
+ type: l.JSON(),
49
51
  isOptional: true
50
52
  }
51
53
  }
@@ -53,23 +55,23 @@ const WidgetModel = defineSchemaModel({
53
55
  /**
54
56
  * An analytics dashboard.
55
57
  */
56
- const DashboardModel = defineSchemaModel({
58
+ const DashboardModel = n({
57
59
  name: "DashboardModel",
58
60
  fields: {
59
61
  id: {
60
- type: ScalarTypeEnum.String_unsecure(),
62
+ type: l.String_unsecure(),
61
63
  isOptional: false
62
64
  },
63
65
  name: {
64
- type: ScalarTypeEnum.String_unsecure(),
66
+ type: l.String_unsecure(),
65
67
  isOptional: false
66
68
  },
67
69
  slug: {
68
- type: ScalarTypeEnum.String_unsecure(),
70
+ type: l.String_unsecure(),
69
71
  isOptional: false
70
72
  },
71
73
  description: {
72
- type: ScalarTypeEnum.String_unsecure(),
74
+ type: l.String_unsecure(),
73
75
  isOptional: true
74
76
  },
75
77
  status: {
@@ -81,7 +83,7 @@ const DashboardModel = defineSchemaModel({
81
83
  isOptional: false
82
84
  },
83
85
  isPublic: {
84
- type: ScalarTypeEnum.Boolean(),
86
+ type: l.Boolean(),
85
87
  isOptional: false
86
88
  },
87
89
  widgets: {
@@ -90,7 +92,7 @@ const DashboardModel = defineSchemaModel({
90
92
  isOptional: true
91
93
  },
92
94
  createdAt: {
93
- type: ScalarTypeEnum.DateTime(),
95
+ type: l.DateTime(),
94
96
  isOptional: false
95
97
  }
96
98
  }
@@ -98,19 +100,19 @@ const DashboardModel = defineSchemaModel({
98
100
  /**
99
101
  * Input for creating a dashboard.
100
102
  */
101
- const CreateDashboardInputModel = defineSchemaModel({
103
+ const CreateDashboardInputModel = n({
102
104
  name: "CreateDashboardInput",
103
105
  fields: {
104
106
  name: {
105
- type: ScalarTypeEnum.NonEmptyString(),
107
+ type: l.NonEmptyString(),
106
108
  isOptional: false
107
109
  },
108
110
  slug: {
109
- type: ScalarTypeEnum.NonEmptyString(),
111
+ type: l.NonEmptyString(),
110
112
  isOptional: false
111
113
  },
112
114
  description: {
113
- type: ScalarTypeEnum.String_unsecure(),
115
+ type: l.String_unsecure(),
114
116
  isOptional: true
115
117
  },
116
118
  refreshInterval: {
@@ -118,7 +120,7 @@ const CreateDashboardInputModel = defineSchemaModel({
118
120
  isOptional: true
119
121
  },
120
122
  dateRange: {
121
- type: ScalarTypeEnum.JSON(),
123
+ type: l.JSON(),
122
124
  isOptional: true
123
125
  }
124
126
  }
@@ -126,15 +128,15 @@ const CreateDashboardInputModel = defineSchemaModel({
126
128
  /**
127
129
  * Input for adding a widget.
128
130
  */
129
- const AddWidgetInputModel = defineSchemaModel({
131
+ const AddWidgetInputModel = n({
130
132
  name: "AddWidgetInput",
131
133
  fields: {
132
134
  dashboardId: {
133
- type: ScalarTypeEnum.String_unsecure(),
135
+ type: l.String_unsecure(),
134
136
  isOptional: false
135
137
  },
136
138
  name: {
137
- type: ScalarTypeEnum.NonEmptyString(),
139
+ type: l.NonEmptyString(),
138
140
  isOptional: false
139
141
  },
140
142
  type: {
@@ -142,27 +144,27 @@ const AddWidgetInputModel = defineSchemaModel({
142
144
  isOptional: false
143
145
  },
144
146
  gridX: {
145
- type: ScalarTypeEnum.Int_unsecure(),
147
+ type: l.Int_unsecure(),
146
148
  isOptional: true
147
149
  },
148
150
  gridY: {
149
- type: ScalarTypeEnum.Int_unsecure(),
151
+ type: l.Int_unsecure(),
150
152
  isOptional: true
151
153
  },
152
154
  gridWidth: {
153
- type: ScalarTypeEnum.Int_unsecure(),
155
+ type: l.Int_unsecure(),
154
156
  isOptional: true
155
157
  },
156
158
  gridHeight: {
157
- type: ScalarTypeEnum.Int_unsecure(),
159
+ type: l.Int_unsecure(),
158
160
  isOptional: true
159
161
  },
160
162
  queryId: {
161
- type: ScalarTypeEnum.String_unsecure(),
163
+ type: l.String_unsecure(),
162
164
  isOptional: true
163
165
  },
164
166
  config: {
165
- type: ScalarTypeEnum.JSON(),
167
+ type: l.JSON(),
166
168
  isOptional: true
167
169
  }
168
170
  }
@@ -170,7 +172,7 @@ const AddWidgetInputModel = defineSchemaModel({
170
172
  /**
171
173
  * Input for listing dashboards.
172
174
  */
173
- const ListDashboardsInputModel = defineSchemaModel({
175
+ const ListDashboardsInputModel = n({
174
176
  name: "ListDashboardsInput",
175
177
  fields: {
176
178
  status: {
@@ -178,16 +180,16 @@ const ListDashboardsInputModel = defineSchemaModel({
178
180
  isOptional: true
179
181
  },
180
182
  search: {
181
- type: ScalarTypeEnum.String_unsecure(),
183
+ type: l.String_unsecure(),
182
184
  isOptional: true
183
185
  },
184
186
  limit: {
185
- type: ScalarTypeEnum.Int_unsecure(),
187
+ type: l.Int_unsecure(),
186
188
  isOptional: true,
187
189
  defaultValue: 20
188
190
  },
189
191
  offset: {
190
- type: ScalarTypeEnum.Int_unsecure(),
192
+ type: l.Int_unsecure(),
191
193
  isOptional: true,
192
194
  defaultValue: 0
193
195
  }
@@ -196,7 +198,7 @@ const ListDashboardsInputModel = defineSchemaModel({
196
198
  /**
197
199
  * Output for listing dashboards.
198
200
  */
199
- const ListDashboardsOutputModel = defineSchemaModel({
201
+ const ListDashboardsOutputModel = n({
200
202
  name: "ListDashboardsOutput",
201
203
  fields: {
202
204
  dashboards: {
@@ -205,7 +207,7 @@ const ListDashboardsOutputModel = defineSchemaModel({
205
207
  isOptional: false
206
208
  },
207
209
  total: {
208
- type: ScalarTypeEnum.Int_unsecure(),
210
+ type: l.Int_unsecure(),
209
211
  isOptional: false
210
212
  }
211
213
  }
@@ -213,19 +215,19 @@ const ListDashboardsOutputModel = defineSchemaModel({
213
215
  /**
214
216
  * Input for getting a dashboard.
215
217
  */
216
- const GetDashboardInputModel = defineSchemaModel({
218
+ const GetDashboardInputModel = n({
217
219
  name: "GetDashboardInput",
218
220
  fields: {
219
221
  dashboardId: {
220
- type: ScalarTypeEnum.String_unsecure(),
222
+ type: l.String_unsecure(),
221
223
  isOptional: true
222
224
  },
223
225
  slug: {
224
- type: ScalarTypeEnum.String_unsecure(),
226
+ type: l.String_unsecure(),
225
227
  isOptional: true
226
228
  },
227
229
  shareToken: {
228
- type: ScalarTypeEnum.String_unsecure(),
230
+ type: l.String_unsecure(),
229
231
  isOptional: true
230
232
  }
231
233
  }
@@ -1,7 +1,8 @@
1
- import { registerDocBlocks } from "@lssm/lib.contracts/docs";
1
+ import { a } from "../libs/contracts/dist/docs/registry.js";
2
+ import "../libs/contracts/dist/docs/index.js";
2
3
 
3
4
  //#region src/docs/analytics-dashboard.docblock.ts
4
- registerDocBlocks([
5
+ a([
5
6
  {
6
7
  id: "docs.examples.analytics-dashboard",
7
8
  title: "Analytics Dashboard",
package/dist/events.d.ts CHANGED
@@ -1,145 +1,145 @@
1
- import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
2
+ import * as _lssm_lib_schema131 from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/events.d.ts
5
- declare const DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
5
+ declare const DashboardCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
6
6
  dashboardId: {
7
- type: _lssm_lib_schema0.FieldType<string, string>;
7
+ type: _lssm_lib_schema131.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  title: {
11
- type: _lssm_lib_schema0.FieldType<string, string>;
11
+ type: _lssm_lib_schema131.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  orgId: {
15
- type: _lssm_lib_schema0.FieldType<string, string>;
15
+ type: _lssm_lib_schema131.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  createdBy: {
19
- type: _lssm_lib_schema0.FieldType<string, string>;
19
+ type: _lssm_lib_schema131.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  timestamp: {
23
- type: _lssm_lib_schema0.FieldType<Date, string>;
23
+ type: _lssm_lib_schema131.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
27
- declare const WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
27
+ declare const WidgetAddedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
28
28
  widgetId: {
29
- type: _lssm_lib_schema0.FieldType<string, string>;
29
+ type: _lssm_lib_schema131.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  dashboardId: {
33
- type: _lssm_lib_schema0.FieldType<string, string>;
33
+ type: _lssm_lib_schema131.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  widgetType: {
37
- type: _lssm_lib_schema0.FieldType<string, string>;
37
+ type: _lssm_lib_schema131.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  orgId: {
41
- type: _lssm_lib_schema0.FieldType<string, string>;
41
+ type: _lssm_lib_schema131.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  timestamp: {
45
- type: _lssm_lib_schema0.FieldType<Date, string>;
45
+ type: _lssm_lib_schema131.FieldType<Date, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  }>>;
49
- declare const QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
49
+ declare const QueryCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
50
50
  queryId: {
51
- type: _lssm_lib_schema0.FieldType<string, string>;
51
+ type: _lssm_lib_schema131.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  name: {
55
- type: _lssm_lib_schema0.FieldType<string, string>;
55
+ type: _lssm_lib_schema131.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  queryType: {
59
- type: _lssm_lib_schema0.FieldType<string, string>;
59
+ type: _lssm_lib_schema131.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  orgId: {
63
- type: _lssm_lib_schema0.FieldType<string, string>;
63
+ type: _lssm_lib_schema131.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  createdBy: {
67
- type: _lssm_lib_schema0.FieldType<string, string>;
67
+ type: _lssm_lib_schema131.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  timestamp: {
71
- type: _lssm_lib_schema0.FieldType<Date, string>;
71
+ type: _lssm_lib_schema131.FieldType<Date, string>;
72
72
  isOptional: false;
73
73
  };
74
74
  }>>;
75
75
  declare const AnalyticsDashboardEvents: {
76
- DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
76
+ DashboardCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
77
77
  dashboardId: {
78
- type: _lssm_lib_schema0.FieldType<string, string>;
78
+ type: _lssm_lib_schema131.FieldType<string, string>;
79
79
  isOptional: false;
80
80
  };
81
81
  title: {
82
- type: _lssm_lib_schema0.FieldType<string, string>;
82
+ type: _lssm_lib_schema131.FieldType<string, string>;
83
83
  isOptional: false;
84
84
  };
85
85
  orgId: {
86
- type: _lssm_lib_schema0.FieldType<string, string>;
86
+ type: _lssm_lib_schema131.FieldType<string, string>;
87
87
  isOptional: false;
88
88
  };
89
89
  createdBy: {
90
- type: _lssm_lib_schema0.FieldType<string, string>;
90
+ type: _lssm_lib_schema131.FieldType<string, string>;
91
91
  isOptional: false;
92
92
  };
93
93
  timestamp: {
94
- type: _lssm_lib_schema0.FieldType<Date, string>;
94
+ type: _lssm_lib_schema131.FieldType<Date, string>;
95
95
  isOptional: false;
96
96
  };
97
97
  }>>;
98
- WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
98
+ WidgetAddedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
99
99
  widgetId: {
100
- type: _lssm_lib_schema0.FieldType<string, string>;
100
+ type: _lssm_lib_schema131.FieldType<string, string>;
101
101
  isOptional: false;
102
102
  };
103
103
  dashboardId: {
104
- type: _lssm_lib_schema0.FieldType<string, string>;
104
+ type: _lssm_lib_schema131.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  widgetType: {
108
- type: _lssm_lib_schema0.FieldType<string, string>;
108
+ type: _lssm_lib_schema131.FieldType<string, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  orgId: {
112
- type: _lssm_lib_schema0.FieldType<string, string>;
112
+ type: _lssm_lib_schema131.FieldType<string, string>;
113
113
  isOptional: false;
114
114
  };
115
115
  timestamp: {
116
- type: _lssm_lib_schema0.FieldType<Date, string>;
116
+ type: _lssm_lib_schema131.FieldType<Date, string>;
117
117
  isOptional: false;
118
118
  };
119
119
  }>>;
120
- QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
120
+ QueryCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema131.SchemaModel<{
121
121
  queryId: {
122
- type: _lssm_lib_schema0.FieldType<string, string>;
122
+ type: _lssm_lib_schema131.FieldType<string, string>;
123
123
  isOptional: false;
124
124
  };
125
125
  name: {
126
- type: _lssm_lib_schema0.FieldType<string, string>;
126
+ type: _lssm_lib_schema131.FieldType<string, string>;
127
127
  isOptional: false;
128
128
  };
129
129
  queryType: {
130
- type: _lssm_lib_schema0.FieldType<string, string>;
130
+ type: _lssm_lib_schema131.FieldType<string, string>;
131
131
  isOptional: false;
132
132
  };
133
133
  orgId: {
134
- type: _lssm_lib_schema0.FieldType<string, string>;
134
+ type: _lssm_lib_schema131.FieldType<string, string>;
135
135
  isOptional: false;
136
136
  };
137
137
  createdBy: {
138
- type: _lssm_lib_schema0.FieldType<string, string>;
138
+ type: _lssm_lib_schema131.FieldType<string, string>;
139
139
  isOptional: false;
140
140
  };
141
141
  timestamp: {
142
- type: _lssm_lib_schema0.FieldType<Date, string>;
142
+ type: _lssm_lib_schema131.FieldType<Date, string>;
143
143
  isOptional: false;
144
144
  };
145
145
  }>>;
package/dist/events.js CHANGED
@@ -1,102 +1,105 @@
1
- import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
2
- import { defineEvent } from "@lssm/lib.contracts";
1
+ import { l } from "./libs/schema/dist/ScalarTypeEnum.js";
2
+ import { n } from "./libs/schema/dist/SchemaModel.js";
3
+ import "./libs/schema/dist/index.js";
4
+ import { e } from "./libs/contracts/dist/events.js";
5
+ import "./libs/contracts/dist/index.js";
3
6
 
4
7
  //#region src/events.ts
5
- const DashboardEventPayload = defineSchemaModel({
8
+ const DashboardEventPayload = n({
6
9
  name: "DashboardEventPayload",
7
10
  description: "Payload for dashboard events",
8
11
  fields: {
9
12
  dashboardId: {
10
- type: ScalarTypeEnum.String_unsecure(),
13
+ type: l.String_unsecure(),
11
14
  isOptional: false
12
15
  },
13
16
  title: {
14
- type: ScalarTypeEnum.String_unsecure(),
17
+ type: l.String_unsecure(),
15
18
  isOptional: false
16
19
  },
17
20
  orgId: {
18
- type: ScalarTypeEnum.String_unsecure(),
21
+ type: l.String_unsecure(),
19
22
  isOptional: false
20
23
  },
21
24
  createdBy: {
22
- type: ScalarTypeEnum.String_unsecure(),
25
+ type: l.String_unsecure(),
23
26
  isOptional: false
24
27
  },
25
28
  timestamp: {
26
- type: ScalarTypeEnum.DateTime(),
29
+ type: l.DateTime(),
27
30
  isOptional: false
28
31
  }
29
32
  }
30
33
  });
31
- const WidgetEventPayload = defineSchemaModel({
34
+ const WidgetEventPayload = n({
32
35
  name: "WidgetEventPayload",
33
36
  description: "Payload for widget events",
34
37
  fields: {
35
38
  widgetId: {
36
- type: ScalarTypeEnum.String_unsecure(),
39
+ type: l.String_unsecure(),
37
40
  isOptional: false
38
41
  },
39
42
  dashboardId: {
40
- type: ScalarTypeEnum.String_unsecure(),
43
+ type: l.String_unsecure(),
41
44
  isOptional: false
42
45
  },
43
46
  widgetType: {
44
- type: ScalarTypeEnum.String_unsecure(),
47
+ type: l.String_unsecure(),
45
48
  isOptional: false
46
49
  },
47
50
  orgId: {
48
- type: ScalarTypeEnum.String_unsecure(),
51
+ type: l.String_unsecure(),
49
52
  isOptional: false
50
53
  },
51
54
  timestamp: {
52
- type: ScalarTypeEnum.DateTime(),
55
+ type: l.DateTime(),
53
56
  isOptional: false
54
57
  }
55
58
  }
56
59
  });
57
- const QueryEventPayload = defineSchemaModel({
60
+ const QueryEventPayload = n({
58
61
  name: "QueryEventPayload",
59
62
  description: "Payload for query events",
60
63
  fields: {
61
64
  queryId: {
62
- type: ScalarTypeEnum.String_unsecure(),
65
+ type: l.String_unsecure(),
63
66
  isOptional: false
64
67
  },
65
68
  name: {
66
- type: ScalarTypeEnum.String_unsecure(),
69
+ type: l.String_unsecure(),
67
70
  isOptional: false
68
71
  },
69
72
  queryType: {
70
- type: ScalarTypeEnum.String_unsecure(),
73
+ type: l.String_unsecure(),
71
74
  isOptional: false
72
75
  },
73
76
  orgId: {
74
- type: ScalarTypeEnum.String_unsecure(),
77
+ type: l.String_unsecure(),
75
78
  isOptional: false
76
79
  },
77
80
  createdBy: {
78
- type: ScalarTypeEnum.String_unsecure(),
81
+ type: l.String_unsecure(),
79
82
  isOptional: false
80
83
  },
81
84
  timestamp: {
82
- type: ScalarTypeEnum.DateTime(),
85
+ type: l.DateTime(),
83
86
  isOptional: false
84
87
  }
85
88
  }
86
89
  });
87
- const DashboardCreatedEvent = defineEvent({
90
+ const DashboardCreatedEvent = e({
88
91
  name: "analytics.dashboard.created",
89
92
  version: 1,
90
93
  description: "A dashboard was created.",
91
94
  payload: DashboardEventPayload
92
95
  });
93
- const WidgetAddedEvent = defineEvent({
96
+ const WidgetAddedEvent = e({
94
97
  name: "analytics.widget.added",
95
98
  version: 1,
96
99
  description: "A widget was added to a dashboard.",
97
100
  payload: WidgetEventPayload
98
101
  });
99
- const QueryCreatedEvent = defineEvent({
102
+ const QueryCreatedEvent = e({
100
103
  name: "analytics.query.created",
101
104
  version: 1,
102
105
  description: "A query was created.",
package/dist/index.d.ts CHANGED
@@ -2,6 +2,5 @@ import { AnalyticsDashboardFeature } from "./dashboard.feature.js";
2
2
  import { QueryTypeEnum } from "./query/query.enum.js";
3
3
  import { CreateQueryInputModel, ExecuteQueryInputModel, QueryModel, QueryResultModel } from "./query/query.schema.js";
4
4
  import { CreateQueryContract, ExecuteQueryContract } from "./query/query.contracts.js";
5
- import "./query/index.js";
6
5
  import { AggregationDefinition, BasicQueryEngine, ColumnDefinition, CustomQueryDefinition, DimensionDefinition, FilterDefinition, IQueryCache, IQueryEngine, InMemoryQueryCache, MeasureDefinition, OrderByDefinition, QueryDefinition, QueryParameters, QueryResult, createQueryEngine } from "./query-engine/index.js";
7
6
  export { AggregationDefinition, AnalyticsDashboardFeature, BasicQueryEngine, ColumnDefinition, CreateQueryContract, CreateQueryInputModel, CustomQueryDefinition, DimensionDefinition, ExecuteQueryContract, ExecuteQueryInputModel, FilterDefinition, IQueryCache, IQueryEngine, InMemoryQueryCache, MeasureDefinition, OrderByDefinition, QueryDefinition, QueryModel, QueryParameters, QueryResult, QueryResultModel, QueryTypeEnum, createQueryEngine };
@@ -0,0 +1,84 @@
1
+ import { e } from "../ownership.js";
2
+
3
+ //#region ../../libs/contracts/dist/capabilities/openbanking.js
4
+ const t = [`platform.finance`], n = [`open-banking`, `finance`], r = {
5
+ meta: {
6
+ key: `openbanking.accounts.read`,
7
+ version: 1,
8
+ kind: `integration`,
9
+ title: `Open Banking Accounts (Read)`,
10
+ description: `Provides read-only access to linked bank accounts, including account summaries and metadata.`,
11
+ domain: `finance`,
12
+ owners: [...t],
13
+ tags: [...n],
14
+ stability: e.Experimental
15
+ },
16
+ provides: [
17
+ {
18
+ surface: `operation`,
19
+ name: `openbanking.accounts.list`,
20
+ version: 1,
21
+ description: `List bank accounts linked to a Powens open banking connection.`
22
+ },
23
+ {
24
+ surface: `operation`,
25
+ name: `openbanking.accounts.get`,
26
+ version: 1,
27
+ description: `Retrieve the canonical bank account record for a specific account.`
28
+ },
29
+ {
30
+ surface: `operation`,
31
+ name: `openbanking.accounts.sync`,
32
+ version: 1,
33
+ description: `Trigger a refresh of bank account metadata from the open banking provider.`
34
+ }
35
+ ]
36
+ }, i = {
37
+ meta: {
38
+ key: `openbanking.transactions.read`,
39
+ version: 1,
40
+ kind: `integration`,
41
+ title: `Open Banking Transactions (Read)`,
42
+ description: `Enables retrieval of transaction history for linked bank accounts via open banking providers.`,
43
+ domain: `finance`,
44
+ owners: [...t],
45
+ tags: [...n, `transactions`],
46
+ stability: e.Experimental
47
+ },
48
+ provides: [{
49
+ surface: `operation`,
50
+ name: `openbanking.transactions.list`,
51
+ version: 1,
52
+ description: `List transactions for a given bank account with optional date filtering.`
53
+ }, {
54
+ surface: `operation`,
55
+ name: `openbanking.transactions.sync`,
56
+ version: 1,
57
+ description: `Synchronise transactions from the open banking provider into the canonical ledger.`
58
+ }]
59
+ }, a = {
60
+ meta: {
61
+ key: `openbanking.balances.read`,
62
+ version: 1,
63
+ kind: `integration`,
64
+ title: `Open Banking Balances (Read)`,
65
+ description: `Allows querying of current and available balances for linked bank accounts via open banking providers.`,
66
+ domain: `finance`,
67
+ owners: [...t],
68
+ tags: [...n, `balances`],
69
+ stability: e.Experimental
70
+ },
71
+ provides: [{
72
+ surface: `operation`,
73
+ name: `openbanking.balances.get`,
74
+ version: 1,
75
+ description: `Retrieve the latest known balances for a specified bank account.`
76
+ }, {
77
+ surface: `operation`,
78
+ name: `openbanking.balances.refresh`,
79
+ version: 1,
80
+ description: `Force a balance refresh from the open banking provider.`
81
+ }]
82
+ };
83
+
84
+ //#endregion