@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.
- 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 +4 -4
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +43 -43
- package/dist/docs/analytics-dashboard.docblock.js +2 -2
- package/dist/events.d.ts +40 -40
- package/dist/events.js +25 -25
- package/dist/libs/contracts/dist/capabilities/openbanking.js +53 -49
- package/dist/libs/contracts/dist/client/index.js +1 -1
- package/dist/libs/contracts/dist/client/react/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +52 -49
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +11 -86
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +11 -360
- package/dist/libs/contracts/dist/docs/index.js +2 -2
- package/dist/libs/contracts/dist/docs/presentations.js +48 -44
- package/dist/libs/contracts/dist/docs/registry.js +27 -25
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +11 -393
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +11 -78
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +11 -150
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +11 -96
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +10 -10
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +15 -15
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +12 -12
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +11 -223
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +44 -44
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +30 -14
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +10 -10
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +13 -274
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +41 -15
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +15 -15
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +14 -14
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +16 -28
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +60 -15
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +13 -13
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +31 -48
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +40 -15
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +14 -14
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +22 -22
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +12 -12
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +22 -22
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +11 -11
- package/dist/libs/contracts/dist/events.js +4 -3
- package/dist/libs/contracts/dist/index.js +14 -14
- package/dist/libs/contracts/dist/integrations/contracts.js +205 -199
- package/dist/libs/contracts/dist/integrations/index.js +5 -5
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +133 -130
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +95 -93
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +120 -118
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +122 -120
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +9 -20
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +25 -25
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +36 -36
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +40 -40
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/powens.js +51 -51
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +35 -35
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +28 -28
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +170 -163
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +19 -19
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +17 -17
- package/dist/libs/contracts/dist/llm/exporters.js +13 -12
- package/dist/libs/contracts/dist/onboarding-base.js +116 -99
- package/dist/libs/contracts/dist/ownership.js +18 -33
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +6 -2
- package/dist/libs/contracts/dist/regenerator/service.js +5 -0
- package/dist/libs/contracts/dist/registry.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +24 -14
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +180 -166
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +20 -9
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/spec.js +22 -13
- package/dist/libs/schema/dist/EnumType.js +25 -9
- package/dist/libs/schema/dist/FieldType.js +24 -14
- package/dist/libs/schema/dist/ScalarTypeEnum.js +180 -166
- package/dist/libs/schema/dist/SchemaModel.js +25 -10
- package/dist/libs/schema/dist/index.js +4 -4
- package/dist/query/query.contracts.d.ts +44 -44
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.js +2 -2
- package/dist/query/query.schema.js +33 -33
- package/package.json +10 -10
|
@@ -1,208 +1,210 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SchemaModel } from "../../../schema/dist/SchemaModel.js";
|
|
2
|
+
import { ScalarTypeEnum } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
3
3
|
import "../../../schema/dist/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { defineCommand, defineQuery } from "../../../spec.js";
|
|
5
|
+
import { BankTransactionRecord } from "../models.js";
|
|
6
|
+
import { OPENBANKING_TELEMETRY_EVENTS } from "../telemetry.js";
|
|
7
7
|
|
|
8
8
|
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/transactions.js
|
|
9
|
-
const
|
|
10
|
-
name:
|
|
11
|
-
description:
|
|
9
|
+
const OpenBankingListTransactionsInput = new SchemaModel({
|
|
10
|
+
name: "OpenBankingListTransactionsInput",
|
|
11
|
+
description: "Parameters for listing bank transactions from the canonical ledger.",
|
|
12
12
|
fields: {
|
|
13
13
|
tenantId: {
|
|
14
|
-
type:
|
|
15
|
-
isOptional:
|
|
14
|
+
type: ScalarTypeEnum.ID(),
|
|
15
|
+
isOptional: false
|
|
16
16
|
},
|
|
17
17
|
accountId: {
|
|
18
|
-
type:
|
|
19
|
-
isOptional:
|
|
18
|
+
type: ScalarTypeEnum.ID(),
|
|
19
|
+
isOptional: false
|
|
20
20
|
},
|
|
21
21
|
from: {
|
|
22
|
-
type:
|
|
23
|
-
isOptional:
|
|
22
|
+
type: ScalarTypeEnum.DateTime(),
|
|
23
|
+
isOptional: true
|
|
24
24
|
},
|
|
25
25
|
to: {
|
|
26
|
-
type:
|
|
27
|
-
isOptional:
|
|
26
|
+
type: ScalarTypeEnum.DateTime(),
|
|
27
|
+
isOptional: true
|
|
28
28
|
},
|
|
29
29
|
cursor: {
|
|
30
|
-
type:
|
|
31
|
-
isOptional:
|
|
30
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
31
|
+
isOptional: true
|
|
32
32
|
},
|
|
33
33
|
pageSize: {
|
|
34
|
-
type:
|
|
35
|
-
isOptional:
|
|
34
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
35
|
+
isOptional: true
|
|
36
36
|
},
|
|
37
37
|
direction: {
|
|
38
|
-
type:
|
|
39
|
-
isOptional:
|
|
38
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
39
|
+
isOptional: true
|
|
40
40
|
},
|
|
41
41
|
minimumAmount: {
|
|
42
|
-
type:
|
|
43
|
-
isOptional:
|
|
42
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
43
|
+
isOptional: true
|
|
44
44
|
},
|
|
45
45
|
maximumAmount: {
|
|
46
|
-
type:
|
|
47
|
-
isOptional:
|
|
46
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
47
|
+
isOptional: true
|
|
48
48
|
},
|
|
49
49
|
category: {
|
|
50
|
-
type:
|
|
51
|
-
isOptional:
|
|
50
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
51
|
+
isOptional: true
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
});
|
|
55
|
+
const OpenBankingListTransactionsOutput = new SchemaModel({
|
|
56
|
+
name: "OpenBankingListTransactionsOutput",
|
|
57
|
+
description: "Paginated list of transactions for a bank account.",
|
|
57
58
|
fields: {
|
|
58
59
|
transactions: {
|
|
59
|
-
type:
|
|
60
|
-
isOptional:
|
|
61
|
-
isArray:
|
|
60
|
+
type: BankTransactionRecord,
|
|
61
|
+
isOptional: false,
|
|
62
|
+
isArray: true
|
|
62
63
|
},
|
|
63
64
|
nextCursor: {
|
|
64
|
-
type:
|
|
65
|
-
isOptional:
|
|
65
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
66
|
+
isOptional: true
|
|
66
67
|
},
|
|
67
68
|
hasMore: {
|
|
68
|
-
type:
|
|
69
|
-
isOptional:
|
|
69
|
+
type: ScalarTypeEnum.Boolean(),
|
|
70
|
+
isOptional: true
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
});
|
|
74
|
+
const OpenBankingSyncTransactionsInput = new SchemaModel({
|
|
75
|
+
name: "OpenBankingSyncTransactionsInput",
|
|
76
|
+
description: "Command payload to synchronise transactions from the open banking provider into the canonical ledger.",
|
|
75
77
|
fields: {
|
|
76
78
|
tenantId: {
|
|
77
|
-
type:
|
|
78
|
-
isOptional:
|
|
79
|
+
type: ScalarTypeEnum.ID(),
|
|
80
|
+
isOptional: false
|
|
79
81
|
},
|
|
80
82
|
accountId: {
|
|
81
|
-
type:
|
|
82
|
-
isOptional:
|
|
83
|
+
type: ScalarTypeEnum.ID(),
|
|
84
|
+
isOptional: false
|
|
83
85
|
},
|
|
84
86
|
from: {
|
|
85
|
-
type:
|
|
86
|
-
isOptional:
|
|
87
|
+
type: ScalarTypeEnum.DateTime(),
|
|
88
|
+
isOptional: true
|
|
87
89
|
},
|
|
88
90
|
to: {
|
|
89
|
-
type:
|
|
90
|
-
isOptional:
|
|
91
|
+
type: ScalarTypeEnum.DateTime(),
|
|
92
|
+
isOptional: true
|
|
91
93
|
},
|
|
92
94
|
connectionId: {
|
|
93
|
-
type:
|
|
94
|
-
isOptional:
|
|
95
|
+
type: ScalarTypeEnum.ID(),
|
|
96
|
+
isOptional: true
|
|
95
97
|
},
|
|
96
98
|
includePending: {
|
|
97
|
-
type:
|
|
98
|
-
isOptional:
|
|
99
|
+
type: ScalarTypeEnum.Boolean(),
|
|
100
|
+
isOptional: true
|
|
99
101
|
},
|
|
100
102
|
backfillDays: {
|
|
101
|
-
type:
|
|
102
|
-
isOptional:
|
|
103
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
104
|
+
isOptional: true
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
|
-
})
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
});
|
|
108
|
+
const OpenBankingSyncTransactionsOutput = new SchemaModel({
|
|
109
|
+
name: "OpenBankingSyncTransactionsOutput",
|
|
110
|
+
description: "Result of a transaction synchronisation run.",
|
|
108
111
|
fields: {
|
|
109
112
|
synced: {
|
|
110
|
-
type:
|
|
111
|
-
isOptional:
|
|
113
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
114
|
+
isOptional: false
|
|
112
115
|
},
|
|
113
116
|
failed: {
|
|
114
|
-
type:
|
|
115
|
-
isOptional:
|
|
117
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
118
|
+
isOptional: false
|
|
116
119
|
},
|
|
117
120
|
earliestSyncedAt: {
|
|
118
|
-
type:
|
|
119
|
-
isOptional:
|
|
121
|
+
type: ScalarTypeEnum.DateTime(),
|
|
122
|
+
isOptional: true
|
|
120
123
|
},
|
|
121
124
|
latestSyncedAt: {
|
|
122
|
-
type:
|
|
123
|
-
isOptional:
|
|
125
|
+
type: ScalarTypeEnum.DateTime(),
|
|
126
|
+
isOptional: true
|
|
124
127
|
},
|
|
125
128
|
nextSinceToken: {
|
|
126
|
-
type:
|
|
127
|
-
isOptional:
|
|
129
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
130
|
+
isOptional: true
|
|
128
131
|
},
|
|
129
132
|
errors: {
|
|
130
|
-
type:
|
|
131
|
-
isArray:
|
|
132
|
-
isOptional:
|
|
133
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
134
|
+
isArray: true,
|
|
135
|
+
isOptional: true
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
|
-
})
|
|
138
|
+
});
|
|
139
|
+
const OpenBankingListTransactions = defineQuery({
|
|
136
140
|
meta: {
|
|
137
|
-
name:
|
|
141
|
+
name: "openbanking.transactions.list",
|
|
138
142
|
version: 1,
|
|
139
|
-
description:
|
|
140
|
-
goal:
|
|
141
|
-
context:
|
|
142
|
-
owners: [
|
|
143
|
+
description: "List bank transactions that have been normalised into the canonical ledger.",
|
|
144
|
+
goal: "Allow downstream analytics and UI surfaces to page through canonical bank transactions.",
|
|
145
|
+
context: "Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.",
|
|
146
|
+
owners: ["platform.finance"],
|
|
143
147
|
tags: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
"open-banking",
|
|
149
|
+
"powens",
|
|
150
|
+
"transactions"
|
|
147
151
|
],
|
|
148
|
-
stability:
|
|
152
|
+
stability: "experimental"
|
|
149
153
|
},
|
|
150
154
|
io: {
|
|
151
|
-
input:
|
|
152
|
-
output:
|
|
155
|
+
input: OpenBankingListTransactionsInput,
|
|
156
|
+
output: OpenBankingListTransactionsOutput
|
|
153
157
|
},
|
|
154
|
-
policy: { auth:
|
|
155
|
-
})
|
|
158
|
+
policy: { auth: "user" }
|
|
159
|
+
});
|
|
160
|
+
const OpenBankingSyncTransactions = defineCommand({
|
|
156
161
|
meta: {
|
|
157
|
-
name:
|
|
162
|
+
name: "openbanking.transactions.sync",
|
|
158
163
|
version: 1,
|
|
159
|
-
description:
|
|
160
|
-
goal:
|
|
161
|
-
context:
|
|
162
|
-
owners: [
|
|
164
|
+
description: "Synchronise transactions for a bank account by calling the configured open banking provider.",
|
|
165
|
+
goal: "Ensure the canonical transaction ledger stays aligned with the external provider.",
|
|
166
|
+
context: "Triggered by scheduled workflows or on-demand actions when activity is expected on an account.",
|
|
167
|
+
owners: ["platform.finance"],
|
|
163
168
|
tags: [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
"open-banking",
|
|
170
|
+
"powens",
|
|
171
|
+
"transactions"
|
|
167
172
|
],
|
|
168
|
-
stability:
|
|
173
|
+
stability: "experimental"
|
|
169
174
|
},
|
|
170
175
|
io: {
|
|
171
|
-
input:
|
|
172
|
-
output:
|
|
176
|
+
input: OpenBankingSyncTransactionsInput,
|
|
177
|
+
output: OpenBankingSyncTransactionsOutput
|
|
173
178
|
},
|
|
174
|
-
policy: { auth:
|
|
179
|
+
policy: { auth: "admin" },
|
|
175
180
|
telemetry: {
|
|
176
181
|
success: {
|
|
177
|
-
event: { name:
|
|
178
|
-
properties: ({ input
|
|
179
|
-
|
|
182
|
+
event: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced },
|
|
183
|
+
properties: ({ input, output }) => {
|
|
184
|
+
const payload = input;
|
|
185
|
+
const result = output;
|
|
180
186
|
return {
|
|
181
|
-
tenantId:
|
|
182
|
-
accountId:
|
|
183
|
-
synced:
|
|
184
|
-
failed:
|
|
185
|
-
earliestSyncedAt:
|
|
186
|
-
latestSyncedAt:
|
|
187
|
+
tenantId: payload?.tenantId,
|
|
188
|
+
accountId: payload?.accountId,
|
|
189
|
+
synced: result?.synced,
|
|
190
|
+
failed: result?.failed,
|
|
191
|
+
earliestSyncedAt: result?.earliestSyncedAt,
|
|
192
|
+
latestSyncedAt: result?.latestSyncedAt
|
|
187
193
|
};
|
|
188
194
|
}
|
|
189
195
|
},
|
|
190
196
|
failure: {
|
|
191
|
-
event: { name:
|
|
192
|
-
properties: ({ input
|
|
193
|
-
|
|
197
|
+
event: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSyncFailed },
|
|
198
|
+
properties: ({ input, error }) => {
|
|
199
|
+
const payload = input;
|
|
194
200
|
return {
|
|
195
|
-
tenantId:
|
|
196
|
-
accountId:
|
|
197
|
-
error:
|
|
201
|
+
tenantId: payload?.tenantId,
|
|
202
|
+
accountId: payload?.accountId,
|
|
203
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
198
204
|
};
|
|
199
205
|
}
|
|
200
206
|
}
|
|
201
207
|
}
|
|
202
|
-
})
|
|
203
|
-
OpenBankingListTransactions: u,
|
|
204
|
-
OpenBankingSyncTransactions: d
|
|
205
|
-
};
|
|
208
|
+
});
|
|
206
209
|
|
|
207
|
-
//#endregion
|
|
208
|
-
export { d, u };
|
|
210
|
+
//#endregion
|