@lssm/example.analytics-dashboard 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217062139
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/dist/dashboard/dashboard.contracts.d.ts +131 -131
- package/dist/dashboard/dashboard.contracts.js +5 -5
- package/dist/dashboard/dashboard.enum.d.ts +4 -4
- package/dist/dashboard/dashboard.enum.js +5 -4
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +44 -42
- package/dist/docs/analytics-dashboard.docblock.js +3 -2
- package/dist/events.d.ts +40 -40
- package/dist/events.js +27 -24
- package/dist/index.d.ts +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +84 -0
- package/dist/libs/contracts/dist/client/index.js +5 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
- package/dist/libs/contracts/dist/client/react/index.js +4 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +57 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +91 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +365 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +67 -0
- package/dist/libs/contracts/dist/docs/registry.js +42 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +398 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +83 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +228 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +21 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +281 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +86 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/contracts/dist/events.js +9 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +71 -0
- package/dist/libs/contracts/dist/install.js +2 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +371 -0
- package/dist/libs/contracts/dist/integrations/index.js +18 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +225 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +157 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +208 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +240 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +24 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +299 -0
- package/dist/libs/contracts/dist/knowledge/index.js +7 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
- package/dist/libs/contracts/dist/llm/exporters.js +18 -0
- package/dist/libs/contracts/dist/llm/index.js +2 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +179 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +36 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +7 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +1 -0
- package/dist/libs/contracts/dist/registry.js +2 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +39 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +23 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
- package/dist/libs/contracts/dist/server/index.js +8 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +25 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +2 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +40 -0
- package/dist/libs/schema/dist/FieldType.js +39 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/schema/dist/SchemaModel.js +24 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +2 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +6 -0
- package/dist/query/query.contracts.d.ts +45 -45
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.enum.js +3 -2
- package/dist/query/query.schema.d.ts +34 -34
- package/dist/query/query.schema.js +34 -32
- 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 =
|
|
10
|
+
const WidgetModel = n({
|
|
9
11
|
name: "WidgetModel",
|
|
10
12
|
fields: {
|
|
11
13
|
id: {
|
|
12
|
-
type:
|
|
14
|
+
type: l.String_unsecure(),
|
|
13
15
|
isOptional: false
|
|
14
16
|
},
|
|
15
17
|
dashboardId: {
|
|
16
|
-
type:
|
|
18
|
+
type: l.String_unsecure(),
|
|
17
19
|
isOptional: false
|
|
18
20
|
},
|
|
19
21
|
name: {
|
|
20
|
-
type:
|
|
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:
|
|
30
|
+
type: l.Int_unsecure(),
|
|
29
31
|
isOptional: false
|
|
30
32
|
},
|
|
31
33
|
gridY: {
|
|
32
|
-
type:
|
|
34
|
+
type: l.Int_unsecure(),
|
|
33
35
|
isOptional: false
|
|
34
36
|
},
|
|
35
37
|
gridWidth: {
|
|
36
|
-
type:
|
|
38
|
+
type: l.Int_unsecure(),
|
|
37
39
|
isOptional: false
|
|
38
40
|
},
|
|
39
41
|
gridHeight: {
|
|
40
|
-
type:
|
|
42
|
+
type: l.Int_unsecure(),
|
|
41
43
|
isOptional: false
|
|
42
44
|
},
|
|
43
45
|
queryId: {
|
|
44
|
-
type:
|
|
46
|
+
type: l.String_unsecure(),
|
|
45
47
|
isOptional: true
|
|
46
48
|
},
|
|
47
49
|
config: {
|
|
48
|
-
type:
|
|
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 =
|
|
58
|
+
const DashboardModel = n({
|
|
57
59
|
name: "DashboardModel",
|
|
58
60
|
fields: {
|
|
59
61
|
id: {
|
|
60
|
-
type:
|
|
62
|
+
type: l.String_unsecure(),
|
|
61
63
|
isOptional: false
|
|
62
64
|
},
|
|
63
65
|
name: {
|
|
64
|
-
type:
|
|
66
|
+
type: l.String_unsecure(),
|
|
65
67
|
isOptional: false
|
|
66
68
|
},
|
|
67
69
|
slug: {
|
|
68
|
-
type:
|
|
70
|
+
type: l.String_unsecure(),
|
|
69
71
|
isOptional: false
|
|
70
72
|
},
|
|
71
73
|
description: {
|
|
72
|
-
type:
|
|
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:
|
|
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:
|
|
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 =
|
|
103
|
+
const CreateDashboardInputModel = n({
|
|
102
104
|
name: "CreateDashboardInput",
|
|
103
105
|
fields: {
|
|
104
106
|
name: {
|
|
105
|
-
type:
|
|
107
|
+
type: l.NonEmptyString(),
|
|
106
108
|
isOptional: false
|
|
107
109
|
},
|
|
108
110
|
slug: {
|
|
109
|
-
type:
|
|
111
|
+
type: l.NonEmptyString(),
|
|
110
112
|
isOptional: false
|
|
111
113
|
},
|
|
112
114
|
description: {
|
|
113
|
-
type:
|
|
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:
|
|
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 =
|
|
131
|
+
const AddWidgetInputModel = n({
|
|
130
132
|
name: "AddWidgetInput",
|
|
131
133
|
fields: {
|
|
132
134
|
dashboardId: {
|
|
133
|
-
type:
|
|
135
|
+
type: l.String_unsecure(),
|
|
134
136
|
isOptional: false
|
|
135
137
|
},
|
|
136
138
|
name: {
|
|
137
|
-
type:
|
|
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:
|
|
147
|
+
type: l.Int_unsecure(),
|
|
146
148
|
isOptional: true
|
|
147
149
|
},
|
|
148
150
|
gridY: {
|
|
149
|
-
type:
|
|
151
|
+
type: l.Int_unsecure(),
|
|
150
152
|
isOptional: true
|
|
151
153
|
},
|
|
152
154
|
gridWidth: {
|
|
153
|
-
type:
|
|
155
|
+
type: l.Int_unsecure(),
|
|
154
156
|
isOptional: true
|
|
155
157
|
},
|
|
156
158
|
gridHeight: {
|
|
157
|
-
type:
|
|
159
|
+
type: l.Int_unsecure(),
|
|
158
160
|
isOptional: true
|
|
159
161
|
},
|
|
160
162
|
queryId: {
|
|
161
|
-
type:
|
|
163
|
+
type: l.String_unsecure(),
|
|
162
164
|
isOptional: true
|
|
163
165
|
},
|
|
164
166
|
config: {
|
|
165
|
-
type:
|
|
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 =
|
|
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:
|
|
183
|
+
type: l.String_unsecure(),
|
|
182
184
|
isOptional: true
|
|
183
185
|
},
|
|
184
186
|
limit: {
|
|
185
|
-
type:
|
|
187
|
+
type: l.Int_unsecure(),
|
|
186
188
|
isOptional: true,
|
|
187
189
|
defaultValue: 20
|
|
188
190
|
},
|
|
189
191
|
offset: {
|
|
190
|
-
type:
|
|
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 =
|
|
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:
|
|
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 =
|
|
218
|
+
const GetDashboardInputModel = n({
|
|
217
219
|
name: "GetDashboardInput",
|
|
218
220
|
fields: {
|
|
219
221
|
dashboardId: {
|
|
220
|
-
type:
|
|
222
|
+
type: l.String_unsecure(),
|
|
221
223
|
isOptional: true
|
|
222
224
|
},
|
|
223
225
|
slug: {
|
|
224
|
-
type:
|
|
226
|
+
type: l.String_unsecure(),
|
|
225
227
|
isOptional: true
|
|
226
228
|
},
|
|
227
229
|
shareToken: {
|
|
228
|
-
type:
|
|
230
|
+
type: l.String_unsecure(),
|
|
229
231
|
isOptional: true
|
|
230
232
|
}
|
|
231
233
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema3 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const DashboardCreatedEvent:
|
|
5
|
+
declare const DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
6
6
|
dashboardId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
title: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
orgId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
createdBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
timestamp: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
declare const WidgetAddedEvent:
|
|
27
|
+
declare const WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
28
28
|
widgetId: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dashboardId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
widgetType: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
orgId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
timestamp: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
}>>;
|
|
49
|
-
declare const QueryCreatedEvent:
|
|
49
|
+
declare const QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
50
50
|
queryId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
queryType: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
orgId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
createdBy: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
timestamp: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
}>>;
|
|
75
75
|
declare const AnalyticsDashboardEvents: {
|
|
76
|
-
DashboardCreatedEvent:
|
|
76
|
+
DashboardCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
77
77
|
dashboardId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
title: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
orgId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
createdBy: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
timestamp: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>>;
|
|
98
|
-
WidgetAddedEvent:
|
|
98
|
+
WidgetAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
99
99
|
widgetId: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
dashboardId: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
widgetType: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
orgId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
timestamp: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
}>>;
|
|
120
|
-
QueryCreatedEvent:
|
|
120
|
+
QueryCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema3.SchemaModel<{
|
|
121
121
|
queryId: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
name: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
queryType: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
orgId: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
createdBy: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema3.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
timestamp: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema3.FieldType<Date, string>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -1,102 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 =
|
|
8
|
+
const DashboardEventPayload = n({
|
|
6
9
|
name: "DashboardEventPayload",
|
|
7
10
|
description: "Payload for dashboard events",
|
|
8
11
|
fields: {
|
|
9
12
|
dashboardId: {
|
|
10
|
-
type:
|
|
13
|
+
type: l.String_unsecure(),
|
|
11
14
|
isOptional: false
|
|
12
15
|
},
|
|
13
16
|
title: {
|
|
14
|
-
type:
|
|
17
|
+
type: l.String_unsecure(),
|
|
15
18
|
isOptional: false
|
|
16
19
|
},
|
|
17
20
|
orgId: {
|
|
18
|
-
type:
|
|
21
|
+
type: l.String_unsecure(),
|
|
19
22
|
isOptional: false
|
|
20
23
|
},
|
|
21
24
|
createdBy: {
|
|
22
|
-
type:
|
|
25
|
+
type: l.String_unsecure(),
|
|
23
26
|
isOptional: false
|
|
24
27
|
},
|
|
25
28
|
timestamp: {
|
|
26
|
-
type:
|
|
29
|
+
type: l.DateTime(),
|
|
27
30
|
isOptional: false
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
});
|
|
31
|
-
const WidgetEventPayload =
|
|
34
|
+
const WidgetEventPayload = n({
|
|
32
35
|
name: "WidgetEventPayload",
|
|
33
36
|
description: "Payload for widget events",
|
|
34
37
|
fields: {
|
|
35
38
|
widgetId: {
|
|
36
|
-
type:
|
|
39
|
+
type: l.String_unsecure(),
|
|
37
40
|
isOptional: false
|
|
38
41
|
},
|
|
39
42
|
dashboardId: {
|
|
40
|
-
type:
|
|
43
|
+
type: l.String_unsecure(),
|
|
41
44
|
isOptional: false
|
|
42
45
|
},
|
|
43
46
|
widgetType: {
|
|
44
|
-
type:
|
|
47
|
+
type: l.String_unsecure(),
|
|
45
48
|
isOptional: false
|
|
46
49
|
},
|
|
47
50
|
orgId: {
|
|
48
|
-
type:
|
|
51
|
+
type: l.String_unsecure(),
|
|
49
52
|
isOptional: false
|
|
50
53
|
},
|
|
51
54
|
timestamp: {
|
|
52
|
-
type:
|
|
55
|
+
type: l.DateTime(),
|
|
53
56
|
isOptional: false
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
});
|
|
57
|
-
const QueryEventPayload =
|
|
60
|
+
const QueryEventPayload = n({
|
|
58
61
|
name: "QueryEventPayload",
|
|
59
62
|
description: "Payload for query events",
|
|
60
63
|
fields: {
|
|
61
64
|
queryId: {
|
|
62
|
-
type:
|
|
65
|
+
type: l.String_unsecure(),
|
|
63
66
|
isOptional: false
|
|
64
67
|
},
|
|
65
68
|
name: {
|
|
66
|
-
type:
|
|
69
|
+
type: l.String_unsecure(),
|
|
67
70
|
isOptional: false
|
|
68
71
|
},
|
|
69
72
|
queryType: {
|
|
70
|
-
type:
|
|
73
|
+
type: l.String_unsecure(),
|
|
71
74
|
isOptional: false
|
|
72
75
|
},
|
|
73
76
|
orgId: {
|
|
74
|
-
type:
|
|
77
|
+
type: l.String_unsecure(),
|
|
75
78
|
isOptional: false
|
|
76
79
|
},
|
|
77
80
|
createdBy: {
|
|
78
|
-
type:
|
|
81
|
+
type: l.String_unsecure(),
|
|
79
82
|
isOptional: false
|
|
80
83
|
},
|
|
81
84
|
timestamp: {
|
|
82
|
-
type:
|
|
85
|
+
type: l.DateTime(),
|
|
83
86
|
isOptional: false
|
|
84
87
|
}
|
|
85
88
|
}
|
|
86
89
|
});
|
|
87
|
-
const DashboardCreatedEvent =
|
|
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 =
|
|
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 =
|
|
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
|