@lssm/example.analytics-dashboard 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217060834
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 +130 -130
- package/dist/dashboard/dashboard.contracts.js +5 -5
- package/dist/dashboard/dashboard.enum.d.ts +4 -4
- package/dist/dashboard/dashboard.enum.js +4 -5
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +42 -44
- package/dist/docs/analytics-dashboard.docblock.js +2 -3
- package/dist/events.d.ts +39 -39
- package/dist/events.js +24 -27
- package/dist/index.d.ts +1 -0
- package/dist/query/query.contracts.d.ts +1 -1
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.enum.js +2 -3
- package/dist/query/query.schema.d.ts +34 -34
- package/dist/query/query.schema.js +32 -34
- package/package.json +10 -10
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -84
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -57
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -91
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -365
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -67
- package/dist/libs/contracts/dist/docs/registry.js +0 -42
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -398
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -83
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -228
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -281
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -22
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -22
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -86
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -22
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/events.js +0 -9
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -71
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +0 -371
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -225
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -157
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -208
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -240
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -24
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/libs/contracts/dist/jsonschema.js +0 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +0 -299
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/libs/contracts/dist/llm/exporters.js +0 -18
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -1
- package/dist/libs/contracts/dist/onboarding-base.js +0 -179
- package/dist/libs/contracts/dist/openapi.js +0 -1
- package/dist/libs/contracts/dist/ownership.js +0 -36
- package/dist/libs/contracts/dist/presentations.js +0 -1
- package/dist/libs/contracts/dist/presentations.v2.js +0 -7
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -1
- package/dist/libs/contracts/dist/regenerator/service.js +0 -1
- package/dist/libs/contracts/dist/registry.js +0 -2
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -39
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -222
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -23
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -25
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -2
- package/dist/libs/contracts/dist/workflow/index.js +0 -1
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -40
- package/dist/libs/schema/dist/FieldType.js +0 -39
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -222
- package/dist/libs/schema/dist/SchemaModel.js +0 -24
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/index.js +0 -6
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { t } from "../../../schema/dist/SchemaModel.js";
|
|
2
|
-
import { l } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
3
|
-
import "../../../schema/dist/index.js";
|
|
4
|
-
import { n, t as t$1 } from "../../../spec.js";
|
|
5
|
-
import { n as n$1 } from "../models.js";
|
|
6
|
-
import { t as t$2 } from "../telemetry.js";
|
|
7
|
-
|
|
8
|
-
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/accounts.js
|
|
9
|
-
const o = new t({
|
|
10
|
-
name: `OpenBankingListAccountsInput`,
|
|
11
|
-
description: `Parameters for listing bank accounts through the open banking provider.`,
|
|
12
|
-
fields: {
|
|
13
|
-
tenantId: {
|
|
14
|
-
type: l.ID(),
|
|
15
|
-
isOptional: !1
|
|
16
|
-
},
|
|
17
|
-
userId: {
|
|
18
|
-
type: l.ID(),
|
|
19
|
-
isOptional: !1
|
|
20
|
-
},
|
|
21
|
-
connectionId: {
|
|
22
|
-
type: l.ID(),
|
|
23
|
-
isOptional: !0
|
|
24
|
-
},
|
|
25
|
-
includeBalances: {
|
|
26
|
-
type: l.Boolean(),
|
|
27
|
-
isOptional: !0
|
|
28
|
-
},
|
|
29
|
-
institutionId: {
|
|
30
|
-
type: l.String_unsecure(),
|
|
31
|
-
isOptional: !0
|
|
32
|
-
},
|
|
33
|
-
cursor: {
|
|
34
|
-
type: l.String_unsecure(),
|
|
35
|
-
isOptional: !0
|
|
36
|
-
},
|
|
37
|
-
pageSize: {
|
|
38
|
-
type: l.Int_unsecure(),
|
|
39
|
-
isOptional: !0
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}), s = new t({
|
|
43
|
-
name: `OpenBankingListAccountsOutput`,
|
|
44
|
-
description: `Paginated list of bank accounts available to the tenant and user.`,
|
|
45
|
-
fields: {
|
|
46
|
-
accounts: {
|
|
47
|
-
type: n$1,
|
|
48
|
-
isOptional: !1,
|
|
49
|
-
isArray: !0
|
|
50
|
-
},
|
|
51
|
-
nextCursor: {
|
|
52
|
-
type: l.String_unsecure(),
|
|
53
|
-
isOptional: !0
|
|
54
|
-
},
|
|
55
|
-
hasMore: {
|
|
56
|
-
type: l.Boolean(),
|
|
57
|
-
isOptional: !0
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}), c = new t({
|
|
61
|
-
name: `OpenBankingGetAccountInput`,
|
|
62
|
-
description: `Parameters for retrieving a specific bank account.`,
|
|
63
|
-
fields: {
|
|
64
|
-
tenantId: {
|
|
65
|
-
type: l.ID(),
|
|
66
|
-
isOptional: !1
|
|
67
|
-
},
|
|
68
|
-
accountId: {
|
|
69
|
-
type: l.ID(),
|
|
70
|
-
isOptional: !1
|
|
71
|
-
},
|
|
72
|
-
includeBalances: {
|
|
73
|
-
type: l.Boolean(),
|
|
74
|
-
isOptional: !0
|
|
75
|
-
},
|
|
76
|
-
includeLatestTransactions: {
|
|
77
|
-
type: l.Boolean(),
|
|
78
|
-
isOptional: !0
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}), l$1 = new t({
|
|
82
|
-
name: `OpenBankingSyncAccountsInput`,
|
|
83
|
-
description: `Command payload to trigger an account synchronisation against the open banking provider.`,
|
|
84
|
-
fields: {
|
|
85
|
-
tenantId: {
|
|
86
|
-
type: l.ID(),
|
|
87
|
-
isOptional: !1
|
|
88
|
-
},
|
|
89
|
-
userId: {
|
|
90
|
-
type: l.ID(),
|
|
91
|
-
isOptional: !0
|
|
92
|
-
},
|
|
93
|
-
connectionId: {
|
|
94
|
-
type: l.ID(),
|
|
95
|
-
isOptional: !1
|
|
96
|
-
},
|
|
97
|
-
accountIds: {
|
|
98
|
-
type: l.ID(),
|
|
99
|
-
isArray: !0,
|
|
100
|
-
isOptional: !0
|
|
101
|
-
},
|
|
102
|
-
forceFullRefresh: {
|
|
103
|
-
type: l.Boolean(),
|
|
104
|
-
isOptional: !0
|
|
105
|
-
},
|
|
106
|
-
triggerWorkflows: {
|
|
107
|
-
type: l.Boolean(),
|
|
108
|
-
isOptional: !0
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}), u = new t({
|
|
112
|
-
name: `OpenBankingSyncAccountsOutput`,
|
|
113
|
-
description: `Result of a bank account synchronisation run.`,
|
|
114
|
-
fields: {
|
|
115
|
-
synced: {
|
|
116
|
-
type: l.Int_unsecure(),
|
|
117
|
-
isOptional: !1
|
|
118
|
-
},
|
|
119
|
-
failed: {
|
|
120
|
-
type: l.Int_unsecure(),
|
|
121
|
-
isOptional: !1
|
|
122
|
-
},
|
|
123
|
-
errors: {
|
|
124
|
-
type: l.String_unsecure(),
|
|
125
|
-
isArray: !0,
|
|
126
|
-
isOptional: !0
|
|
127
|
-
},
|
|
128
|
-
nextSyncSuggestedAt: {
|
|
129
|
-
type: l.DateTime(),
|
|
130
|
-
isOptional: !0
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}), d = n({
|
|
134
|
-
meta: {
|
|
135
|
-
name: `openbanking.accounts.list`,
|
|
136
|
-
version: 1,
|
|
137
|
-
description: `List bank accounts available to a tenant/user via Powens Open Banking.`,
|
|
138
|
-
goal: `Provide downstream workflows with the set of accounts accessible via the configured open banking connection.`,
|
|
139
|
-
context: `Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.`,
|
|
140
|
-
owners: [`platform.finance`],
|
|
141
|
-
tags: [
|
|
142
|
-
`open-banking`,
|
|
143
|
-
`powens`,
|
|
144
|
-
`accounts`
|
|
145
|
-
],
|
|
146
|
-
stability: `experimental`
|
|
147
|
-
},
|
|
148
|
-
io: {
|
|
149
|
-
input: o,
|
|
150
|
-
output: s
|
|
151
|
-
},
|
|
152
|
-
policy: { auth: `user` }
|
|
153
|
-
}), f = n({
|
|
154
|
-
meta: {
|
|
155
|
-
name: `openbanking.accounts.get`,
|
|
156
|
-
version: 1,
|
|
157
|
-
description: `Retrieve the canonical bank account record for the given account identifier.`,
|
|
158
|
-
goal: `Allow user-facing experiences and automations to display up-to-date account metadata.`,
|
|
159
|
-
context: `Invoked by UI surfaces and workflow automation steps that require detailed metadata for a specific bank account.`,
|
|
160
|
-
owners: [`platform.finance`],
|
|
161
|
-
tags: [
|
|
162
|
-
`open-banking`,
|
|
163
|
-
`powens`,
|
|
164
|
-
`accounts`
|
|
165
|
-
],
|
|
166
|
-
stability: `experimental`
|
|
167
|
-
},
|
|
168
|
-
io: {
|
|
169
|
-
input: c,
|
|
170
|
-
output: n$1
|
|
171
|
-
},
|
|
172
|
-
policy: { auth: `user` }
|
|
173
|
-
}), p = t$1({
|
|
174
|
-
meta: {
|
|
175
|
-
name: `openbanking.accounts.sync`,
|
|
176
|
-
version: 1,
|
|
177
|
-
description: `Initiate a synchronisation run to refresh bank account metadata from Powens.`,
|
|
178
|
-
goal: `Keep canonical bank account records aligned with the external open banking provider.`,
|
|
179
|
-
context: `Triggered by scheduled workflows or manual operator actions to reconcile account metadata prior to transaction/balance syncs.`,
|
|
180
|
-
owners: [`platform.finance`],
|
|
181
|
-
tags: [
|
|
182
|
-
`open-banking`,
|
|
183
|
-
`powens`,
|
|
184
|
-
`accounts`
|
|
185
|
-
],
|
|
186
|
-
stability: `experimental`
|
|
187
|
-
},
|
|
188
|
-
io: {
|
|
189
|
-
input: l$1,
|
|
190
|
-
output: u
|
|
191
|
-
},
|
|
192
|
-
policy: { auth: `admin` },
|
|
193
|
-
telemetry: {
|
|
194
|
-
success: {
|
|
195
|
-
event: { name: t$2.accountsSynced },
|
|
196
|
-
properties: ({ input: e, output: t$3 }) => {
|
|
197
|
-
let n$2 = e, r = t$3;
|
|
198
|
-
return {
|
|
199
|
-
tenantId: n$2?.tenantId,
|
|
200
|
-
connectionId: n$2?.connectionId,
|
|
201
|
-
synced: r?.synced,
|
|
202
|
-
failed: r?.failed
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
failure: {
|
|
207
|
-
event: { name: t$2.accountsSyncFailed },
|
|
208
|
-
properties: ({ input: e, error: t$3 }) => {
|
|
209
|
-
let n$2 = e;
|
|
210
|
-
return {
|
|
211
|
-
tenantId: n$2?.tenantId,
|
|
212
|
-
connectionId: n$2?.connectionId,
|
|
213
|
-
error: t$3 instanceof Error ? t$3.message : String(t$3 ?? `unknown`)
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}), m = {
|
|
219
|
-
OpenBankingListAccounts: d,
|
|
220
|
-
OpenBankingGetAccount: f,
|
|
221
|
-
OpenBankingSyncAccounts: p
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
//#endregion
|
|
225
|
-
export { d, f, p };
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { t } from "../../../schema/dist/SchemaModel.js";
|
|
2
|
-
import { l } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
3
|
-
import "../../../schema/dist/index.js";
|
|
4
|
-
import { n, t as t$1 } from "../../../spec.js";
|
|
5
|
-
import { i } from "../models.js";
|
|
6
|
-
import { t as t$2 } from "../telemetry.js";
|
|
7
|
-
|
|
8
|
-
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/balances.js
|
|
9
|
-
const o = new t({
|
|
10
|
-
name: `OpenBankingGetBalancesInput`,
|
|
11
|
-
description: `Parameters for retrieving bank account balances from the canonical ledger.`,
|
|
12
|
-
fields: {
|
|
13
|
-
tenantId: {
|
|
14
|
-
type: l.ID(),
|
|
15
|
-
isOptional: !1
|
|
16
|
-
},
|
|
17
|
-
accountId: {
|
|
18
|
-
type: l.ID(),
|
|
19
|
-
isOptional: !1
|
|
20
|
-
},
|
|
21
|
-
balanceTypes: {
|
|
22
|
-
type: l.String_unsecure(),
|
|
23
|
-
isArray: !0,
|
|
24
|
-
isOptional: !0
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}), s = new t({
|
|
28
|
-
name: `OpenBankingGetBalancesOutput`,
|
|
29
|
-
description: `Canonical balances for a bank account.`,
|
|
30
|
-
fields: {
|
|
31
|
-
balances: {
|
|
32
|
-
type: i,
|
|
33
|
-
isOptional: !1,
|
|
34
|
-
isArray: !0
|
|
35
|
-
},
|
|
36
|
-
asOf: {
|
|
37
|
-
type: l.DateTime(),
|
|
38
|
-
isOptional: !0
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}), c = new t({
|
|
42
|
-
name: `OpenBankingRefreshBalancesInput`,
|
|
43
|
-
description: `Command payload to refresh balances for a bank account via the open banking provider.`,
|
|
44
|
-
fields: {
|
|
45
|
-
tenantId: {
|
|
46
|
-
type: l.ID(),
|
|
47
|
-
isOptional: !1
|
|
48
|
-
},
|
|
49
|
-
accountId: {
|
|
50
|
-
type: l.ID(),
|
|
51
|
-
isOptional: !1
|
|
52
|
-
},
|
|
53
|
-
connectionId: {
|
|
54
|
-
type: l.ID(),
|
|
55
|
-
isOptional: !0
|
|
56
|
-
},
|
|
57
|
-
balanceTypes: {
|
|
58
|
-
type: l.String_unsecure(),
|
|
59
|
-
isArray: !0,
|
|
60
|
-
isOptional: !0
|
|
61
|
-
},
|
|
62
|
-
forceRefresh: {
|
|
63
|
-
type: l.Boolean(),
|
|
64
|
-
isOptional: !0
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}), l$1 = new t({
|
|
68
|
-
name: `OpenBankingRefreshBalancesOutput`,
|
|
69
|
-
description: `Result of a balance refresh against the open banking provider.`,
|
|
70
|
-
fields: {
|
|
71
|
-
balances: {
|
|
72
|
-
type: i,
|
|
73
|
-
isOptional: !1,
|
|
74
|
-
isArray: !0
|
|
75
|
-
},
|
|
76
|
-
refreshedAt: {
|
|
77
|
-
type: l.DateTime(),
|
|
78
|
-
isOptional: !1
|
|
79
|
-
},
|
|
80
|
-
errors: {
|
|
81
|
-
type: l.String_unsecure(),
|
|
82
|
-
isArray: !0,
|
|
83
|
-
isOptional: !0
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}), u = n({
|
|
87
|
-
meta: {
|
|
88
|
-
name: `openbanking.balances.get`,
|
|
89
|
-
version: 1,
|
|
90
|
-
description: `Retrieve the latest cached balances for a bank account.`,
|
|
91
|
-
goal: `Expose current and available balances required by dashboards and analytics.`,
|
|
92
|
-
context: `Used by Pocket Family Office UI surfaces and automation steps that require balance totals prior to generating summaries.`,
|
|
93
|
-
owners: [`platform.finance`],
|
|
94
|
-
tags: [
|
|
95
|
-
`open-banking`,
|
|
96
|
-
`powens`,
|
|
97
|
-
`balances`
|
|
98
|
-
],
|
|
99
|
-
stability: `experimental`
|
|
100
|
-
},
|
|
101
|
-
io: {
|
|
102
|
-
input: o,
|
|
103
|
-
output: s
|
|
104
|
-
},
|
|
105
|
-
policy: { auth: `user` }
|
|
106
|
-
}), d = t$1({
|
|
107
|
-
meta: {
|
|
108
|
-
name: `openbanking.balances.refresh`,
|
|
109
|
-
version: 1,
|
|
110
|
-
description: `Refresh balances for a bank account via the configured open banking provider.`,
|
|
111
|
-
goal: `Ensure canonical balance records reflect the latest values from Powens.`,
|
|
112
|
-
context: `Triggered by scheduled workflows before generating summaries or forecasting cashflow.`,
|
|
113
|
-
owners: [`platform.finance`],
|
|
114
|
-
tags: [
|
|
115
|
-
`open-banking`,
|
|
116
|
-
`powens`,
|
|
117
|
-
`balances`
|
|
118
|
-
],
|
|
119
|
-
stability: `experimental`
|
|
120
|
-
},
|
|
121
|
-
io: {
|
|
122
|
-
input: c,
|
|
123
|
-
output: l$1
|
|
124
|
-
},
|
|
125
|
-
policy: { auth: `admin` },
|
|
126
|
-
telemetry: {
|
|
127
|
-
success: {
|
|
128
|
-
event: { name: t$2.balancesRefreshed },
|
|
129
|
-
properties: ({ input: e, output: t$3 }) => {
|
|
130
|
-
let n$1 = e, r = t$3;
|
|
131
|
-
return {
|
|
132
|
-
tenantId: n$1?.tenantId,
|
|
133
|
-
accountId: n$1?.accountId,
|
|
134
|
-
refreshedAt: r?.refreshedAt,
|
|
135
|
-
balanceCount: Array.isArray(r?.balances) ? r?.balances.length : void 0
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
failure: {
|
|
140
|
-
event: { name: t$2.balancesRefreshFailed },
|
|
141
|
-
properties: ({ input: e, error: t$3 }) => {
|
|
142
|
-
let n$1 = e;
|
|
143
|
-
return {
|
|
144
|
-
tenantId: n$1?.tenantId,
|
|
145
|
-
accountId: n$1?.accountId,
|
|
146
|
-
error: t$3 instanceof Error ? t$3.message : String(t$3 ?? `unknown`)
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}), f = {
|
|
152
|
-
OpenBankingGetBalances: u,
|
|
153
|
-
OpenBankingRefreshBalances: d
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
//#endregion
|
|
157
|
-
export { d, u };
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { t } from "../../../schema/dist/SchemaModel.js";
|
|
2
|
-
import { l } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
3
|
-
import "../../../schema/dist/index.js";
|
|
4
|
-
import { n, t as t$1 } from "../../../spec.js";
|
|
5
|
-
import { r } from "../models.js";
|
|
6
|
-
import { t as t$2 } from "../telemetry.js";
|
|
7
|
-
|
|
8
|
-
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/transactions.js
|
|
9
|
-
const o = new t({
|
|
10
|
-
name: `OpenBankingListTransactionsInput`,
|
|
11
|
-
description: `Parameters for listing bank transactions from the canonical ledger.`,
|
|
12
|
-
fields: {
|
|
13
|
-
tenantId: {
|
|
14
|
-
type: l.ID(),
|
|
15
|
-
isOptional: !1
|
|
16
|
-
},
|
|
17
|
-
accountId: {
|
|
18
|
-
type: l.ID(),
|
|
19
|
-
isOptional: !1
|
|
20
|
-
},
|
|
21
|
-
from: {
|
|
22
|
-
type: l.DateTime(),
|
|
23
|
-
isOptional: !0
|
|
24
|
-
},
|
|
25
|
-
to: {
|
|
26
|
-
type: l.DateTime(),
|
|
27
|
-
isOptional: !0
|
|
28
|
-
},
|
|
29
|
-
cursor: {
|
|
30
|
-
type: l.String_unsecure(),
|
|
31
|
-
isOptional: !0
|
|
32
|
-
},
|
|
33
|
-
pageSize: {
|
|
34
|
-
type: l.Int_unsecure(),
|
|
35
|
-
isOptional: !0
|
|
36
|
-
},
|
|
37
|
-
direction: {
|
|
38
|
-
type: l.String_unsecure(),
|
|
39
|
-
isOptional: !0
|
|
40
|
-
},
|
|
41
|
-
minimumAmount: {
|
|
42
|
-
type: l.Float_unsecure(),
|
|
43
|
-
isOptional: !0
|
|
44
|
-
},
|
|
45
|
-
maximumAmount: {
|
|
46
|
-
type: l.Float_unsecure(),
|
|
47
|
-
isOptional: !0
|
|
48
|
-
},
|
|
49
|
-
category: {
|
|
50
|
-
type: l.String_unsecure(),
|
|
51
|
-
isOptional: !0
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}), s = new t({
|
|
55
|
-
name: `OpenBankingListTransactionsOutput`,
|
|
56
|
-
description: `Paginated list of transactions for a bank account.`,
|
|
57
|
-
fields: {
|
|
58
|
-
transactions: {
|
|
59
|
-
type: r,
|
|
60
|
-
isOptional: !1,
|
|
61
|
-
isArray: !0
|
|
62
|
-
},
|
|
63
|
-
nextCursor: {
|
|
64
|
-
type: l.String_unsecure(),
|
|
65
|
-
isOptional: !0
|
|
66
|
-
},
|
|
67
|
-
hasMore: {
|
|
68
|
-
type: l.Boolean(),
|
|
69
|
-
isOptional: !0
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}), c = new t({
|
|
73
|
-
name: `OpenBankingSyncTransactionsInput`,
|
|
74
|
-
description: `Command payload to synchronise transactions from the open banking provider into the canonical ledger.`,
|
|
75
|
-
fields: {
|
|
76
|
-
tenantId: {
|
|
77
|
-
type: l.ID(),
|
|
78
|
-
isOptional: !1
|
|
79
|
-
},
|
|
80
|
-
accountId: {
|
|
81
|
-
type: l.ID(),
|
|
82
|
-
isOptional: !1
|
|
83
|
-
},
|
|
84
|
-
from: {
|
|
85
|
-
type: l.DateTime(),
|
|
86
|
-
isOptional: !0
|
|
87
|
-
},
|
|
88
|
-
to: {
|
|
89
|
-
type: l.DateTime(),
|
|
90
|
-
isOptional: !0
|
|
91
|
-
},
|
|
92
|
-
connectionId: {
|
|
93
|
-
type: l.ID(),
|
|
94
|
-
isOptional: !0
|
|
95
|
-
},
|
|
96
|
-
includePending: {
|
|
97
|
-
type: l.Boolean(),
|
|
98
|
-
isOptional: !0
|
|
99
|
-
},
|
|
100
|
-
backfillDays: {
|
|
101
|
-
type: l.Int_unsecure(),
|
|
102
|
-
isOptional: !0
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}), l$1 = new t({
|
|
106
|
-
name: `OpenBankingSyncTransactionsOutput`,
|
|
107
|
-
description: `Result of a transaction synchronisation run.`,
|
|
108
|
-
fields: {
|
|
109
|
-
synced: {
|
|
110
|
-
type: l.Int_unsecure(),
|
|
111
|
-
isOptional: !1
|
|
112
|
-
},
|
|
113
|
-
failed: {
|
|
114
|
-
type: l.Int_unsecure(),
|
|
115
|
-
isOptional: !1
|
|
116
|
-
},
|
|
117
|
-
earliestSyncedAt: {
|
|
118
|
-
type: l.DateTime(),
|
|
119
|
-
isOptional: !0
|
|
120
|
-
},
|
|
121
|
-
latestSyncedAt: {
|
|
122
|
-
type: l.DateTime(),
|
|
123
|
-
isOptional: !0
|
|
124
|
-
},
|
|
125
|
-
nextSinceToken: {
|
|
126
|
-
type: l.String_unsecure(),
|
|
127
|
-
isOptional: !0
|
|
128
|
-
},
|
|
129
|
-
errors: {
|
|
130
|
-
type: l.String_unsecure(),
|
|
131
|
-
isArray: !0,
|
|
132
|
-
isOptional: !0
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}), u = n({
|
|
136
|
-
meta: {
|
|
137
|
-
name: `openbanking.transactions.list`,
|
|
138
|
-
version: 1,
|
|
139
|
-
description: `List bank transactions that have been normalised into the canonical ledger.`,
|
|
140
|
-
goal: `Allow downstream analytics and UI surfaces to page through canonical bank transactions.`,
|
|
141
|
-
context: `Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.`,
|
|
142
|
-
owners: [`platform.finance`],
|
|
143
|
-
tags: [
|
|
144
|
-
`open-banking`,
|
|
145
|
-
`powens`,
|
|
146
|
-
`transactions`
|
|
147
|
-
],
|
|
148
|
-
stability: `experimental`
|
|
149
|
-
},
|
|
150
|
-
io: {
|
|
151
|
-
input: o,
|
|
152
|
-
output: s
|
|
153
|
-
},
|
|
154
|
-
policy: { auth: `user` }
|
|
155
|
-
}), d = t$1({
|
|
156
|
-
meta: {
|
|
157
|
-
name: `openbanking.transactions.sync`,
|
|
158
|
-
version: 1,
|
|
159
|
-
description: `Synchronise transactions for a bank account by calling the configured open banking provider.`,
|
|
160
|
-
goal: `Ensure the canonical transaction ledger stays aligned with the external provider.`,
|
|
161
|
-
context: `Triggered by scheduled workflows or on-demand actions when activity is expected on an account.`,
|
|
162
|
-
owners: [`platform.finance`],
|
|
163
|
-
tags: [
|
|
164
|
-
`open-banking`,
|
|
165
|
-
`powens`,
|
|
166
|
-
`transactions`
|
|
167
|
-
],
|
|
168
|
-
stability: `experimental`
|
|
169
|
-
},
|
|
170
|
-
io: {
|
|
171
|
-
input: c,
|
|
172
|
-
output: l$1
|
|
173
|
-
},
|
|
174
|
-
policy: { auth: `admin` },
|
|
175
|
-
telemetry: {
|
|
176
|
-
success: {
|
|
177
|
-
event: { name: t$2.transactionsSynced },
|
|
178
|
-
properties: ({ input: e, output: t$3 }) => {
|
|
179
|
-
let n$1 = e, r$1 = t$3;
|
|
180
|
-
return {
|
|
181
|
-
tenantId: n$1?.tenantId,
|
|
182
|
-
accountId: n$1?.accountId,
|
|
183
|
-
synced: r$1?.synced,
|
|
184
|
-
failed: r$1?.failed,
|
|
185
|
-
earliestSyncedAt: r$1?.earliestSyncedAt,
|
|
186
|
-
latestSyncedAt: r$1?.latestSyncedAt
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
failure: {
|
|
191
|
-
event: { name: t$2.transactionsSyncFailed },
|
|
192
|
-
properties: ({ input: e, error: t$3 }) => {
|
|
193
|
-
let n$1 = e;
|
|
194
|
-
return {
|
|
195
|
-
tenantId: n$1?.tenantId,
|
|
196
|
-
accountId: n$1?.accountId,
|
|
197
|
-
error: t$3 instanceof Error ? t$3.message : String(t$3 ?? `unknown`)
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}), f = {
|
|
203
|
-
OpenBankingListTransactions: u,
|
|
204
|
-
OpenBankingSyncTransactions: d
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
//#endregion
|
|
208
|
-
export { d, u };
|