@lssm/module.audit-trail 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223012036

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 (187) hide show
  1. package/dist/contracts/index.d.ts +1 -1
  2. package/dist/contracts/index.js +55 -57
  3. package/dist/contracts/index.js.map +1 -1
  4. package/dist/entities/index.js +42 -42
  5. package/dist/entities/index.js.map +1 -1
  6. package/package.json +7 -7
  7. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  8. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  9. package/dist/libs/contracts/dist/capabilities/index.js +0 -1
  10. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
  11. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
  12. package/dist/libs/contracts/dist/client/index.js +0 -5
  13. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
  14. package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
  15. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  16. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  17. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
  18. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
  19. package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
  20. package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
  21. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  22. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  23. package/dist/libs/contracts/dist/docs/index.js +0 -25
  24. package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
  25. package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
  26. package/dist/libs/contracts/dist/docs/presentations.js +0 -72
  27. package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
  28. package/dist/libs/contracts/dist/docs/registry.js +0 -45
  29. package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
  30. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  31. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  32. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  33. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  34. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  35. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  36. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  37. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  38. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  39. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  40. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  41. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  42. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  43. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  44. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  45. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  46. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  47. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  48. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  49. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  50. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  51. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  52. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  53. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  54. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  55. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  56. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  57. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  58. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  59. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  60. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  61. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  62. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  63. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  64. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  65. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  66. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  67. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  68. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  69. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  70. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
  71. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  72. package/dist/libs/contracts/dist/events.js +0 -1
  73. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  74. package/dist/libs/contracts/dist/features.js +0 -7
  75. package/dist/libs/contracts/dist/features.js.map +0 -1
  76. package/dist/libs/contracts/dist/forms/forms.js +0 -1
  77. package/dist/libs/contracts/dist/index.js +0 -88
  78. package/dist/libs/contracts/dist/index.js.map +0 -1
  79. package/dist/libs/contracts/dist/install.js +0 -2
  80. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  81. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  82. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  83. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  84. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  85. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  86. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  87. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  88. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  89. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  90. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  91. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  92. package/dist/libs/contracts/dist/integrations/operations.js +0 -377
  93. package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
  94. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  95. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  96. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  97. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  98. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  99. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  100. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  101. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  102. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  103. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  104. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  105. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  106. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  107. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  108. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  109. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  110. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  111. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  112. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  113. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  114. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  115. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  116. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  117. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  118. package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
  119. package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
  120. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  121. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  122. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  123. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  124. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  125. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  126. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  127. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  128. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  129. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  130. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  131. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  132. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  133. package/dist/libs/contracts/dist/llm/exporters.js +0 -21
  134. package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
  135. package/dist/libs/contracts/dist/llm/index.js +0 -2
  136. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  137. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  138. package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
  139. package/dist/libs/contracts/dist/openapi.js +0 -1
  140. package/dist/libs/contracts/dist/operations/index.js +0 -2
  141. package/dist/libs/contracts/dist/operations/operation.js +0 -35
  142. package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
  143. package/dist/libs/contracts/dist/operations/registry.js +0 -8
  144. package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
  145. package/dist/libs/contracts/dist/ownership.js +0 -24
  146. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  147. package/dist/libs/contracts/dist/presentations/index.js +0 -2
  148. package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
  149. package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
  150. package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
  151. package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
  152. package/dist/libs/contracts/dist/prompt.js +0 -1
  153. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  154. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  155. package/dist/libs/contracts/dist/regenerator/service.js +0 -7
  156. package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
  157. package/dist/libs/contracts/dist/registry-utils.js +0 -24
  158. package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
  159. package/dist/libs/contracts/dist/resources.js +0 -1
  160. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3874
  161. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  162. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  163. package/dist/libs/contracts/dist/server/index.js +0 -8
  164. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  165. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
  166. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  167. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  168. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  169. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  170. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  171. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  172. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  173. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  174. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  175. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  176. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  177. package/dist/libs/contracts/dist/tests/index.js +0 -1
  178. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  179. package/dist/libs/contracts/dist/workflow/index.js +0 -2
  180. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  181. package/dist/libs/contracts/dist/workflow/spec.js +0 -7
  182. package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
  183. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
  184. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  185. package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
  186. package/dist/libs/schema/dist/index.js +0 -4896
  187. package/dist/libs/schema/dist/index.js.map +0 -1
@@ -1,210 +0,0 @@
1
- import { E5, x8 } from "../../../schema/dist/index.js";
2
- import { defineCommand, defineQuery } from "../../../operations/operation.js";
3
- import "../../../operations/index.js";
4
- import { BankTransactionRecord } from "../models.js";
5
- import { OPENBANKING_TELEMETRY_EVENTS } from "../telemetry.js";
6
-
7
- //#region ../../libs/contracts/dist/integrations/openbanking/contracts/transactions.js
8
- const OpenBankingListTransactionsInput = new x8({
9
- name: "OpenBankingListTransactionsInput",
10
- description: "Parameters for listing bank transactions from the canonical ledger.",
11
- fields: {
12
- tenantId: {
13
- type: E5.ID(),
14
- isOptional: false
15
- },
16
- accountId: {
17
- type: E5.ID(),
18
- isOptional: false
19
- },
20
- from: {
21
- type: E5.DateTime(),
22
- isOptional: true
23
- },
24
- to: {
25
- type: E5.DateTime(),
26
- isOptional: true
27
- },
28
- cursor: {
29
- type: E5.String_unsecure(),
30
- isOptional: true
31
- },
32
- pageSize: {
33
- type: E5.Int_unsecure(),
34
- isOptional: true
35
- },
36
- direction: {
37
- type: E5.String_unsecure(),
38
- isOptional: true
39
- },
40
- minimumAmount: {
41
- type: E5.Float_unsecure(),
42
- isOptional: true
43
- },
44
- maximumAmount: {
45
- type: E5.Float_unsecure(),
46
- isOptional: true
47
- },
48
- category: {
49
- type: E5.String_unsecure(),
50
- isOptional: true
51
- }
52
- }
53
- });
54
- const OpenBankingListTransactionsOutput = new x8({
55
- name: "OpenBankingListTransactionsOutput",
56
- description: "Paginated list of transactions for a bank account.",
57
- fields: {
58
- transactions: {
59
- type: BankTransactionRecord,
60
- isOptional: false,
61
- isArray: true
62
- },
63
- nextCursor: {
64
- type: E5.String_unsecure(),
65
- isOptional: true
66
- },
67
- hasMore: {
68
- type: E5.Boolean(),
69
- isOptional: true
70
- }
71
- }
72
- });
73
- const OpenBankingSyncTransactionsInput = new x8({
74
- name: "OpenBankingSyncTransactionsInput",
75
- description: "Command payload to synchronise transactions from the open banking provider into the canonical ledger.",
76
- fields: {
77
- tenantId: {
78
- type: E5.ID(),
79
- isOptional: false
80
- },
81
- accountId: {
82
- type: E5.ID(),
83
- isOptional: false
84
- },
85
- from: {
86
- type: E5.DateTime(),
87
- isOptional: true
88
- },
89
- to: {
90
- type: E5.DateTime(),
91
- isOptional: true
92
- },
93
- connectionId: {
94
- type: E5.ID(),
95
- isOptional: true
96
- },
97
- includePending: {
98
- type: E5.Boolean(),
99
- isOptional: true
100
- },
101
- backfillDays: {
102
- type: E5.Int_unsecure(),
103
- isOptional: true
104
- }
105
- }
106
- });
107
- const OpenBankingSyncTransactionsOutput = new x8({
108
- name: "OpenBankingSyncTransactionsOutput",
109
- description: "Result of a transaction synchronisation run.",
110
- fields: {
111
- synced: {
112
- type: E5.Int_unsecure(),
113
- isOptional: false
114
- },
115
- failed: {
116
- type: E5.Int_unsecure(),
117
- isOptional: false
118
- },
119
- earliestSyncedAt: {
120
- type: E5.DateTime(),
121
- isOptional: true
122
- },
123
- latestSyncedAt: {
124
- type: E5.DateTime(),
125
- isOptional: true
126
- },
127
- nextSinceToken: {
128
- type: E5.String_unsecure(),
129
- isOptional: true
130
- },
131
- errors: {
132
- type: E5.String_unsecure(),
133
- isArray: true,
134
- isOptional: true
135
- }
136
- }
137
- });
138
- const OpenBankingListTransactions = defineQuery({
139
- meta: {
140
- name: "openbanking.transactions.list",
141
- version: 1,
142
- description: "List bank transactions that have been normalised into the canonical ledger.",
143
- goal: "Allow downstream analytics and UI surfaces to page through canonical bank transactions.",
144
- context: "Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.",
145
- owners: ["platform.finance"],
146
- tags: [
147
- "open-banking",
148
- "powens",
149
- "transactions"
150
- ],
151
- stability: "experimental"
152
- },
153
- io: {
154
- input: OpenBankingListTransactionsInput,
155
- output: OpenBankingListTransactionsOutput
156
- },
157
- policy: { auth: "user" }
158
- });
159
- const OpenBankingSyncTransactions = defineCommand({
160
- meta: {
161
- name: "openbanking.transactions.sync",
162
- version: 1,
163
- description: "Synchronise transactions for a bank account by calling the configured open banking provider.",
164
- goal: "Ensure the canonical transaction ledger stays aligned with the external provider.",
165
- context: "Triggered by scheduled workflows or on-demand actions when activity is expected on an account.",
166
- owners: ["platform.finance"],
167
- tags: [
168
- "open-banking",
169
- "powens",
170
- "transactions"
171
- ],
172
- stability: "experimental"
173
- },
174
- io: {
175
- input: OpenBankingSyncTransactionsInput,
176
- output: OpenBankingSyncTransactionsOutput
177
- },
178
- policy: { auth: "admin" },
179
- telemetry: {
180
- success: {
181
- event: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced },
182
- properties: ({ input, output }) => {
183
- const payload = input;
184
- const result = output;
185
- return {
186
- tenantId: payload?.tenantId,
187
- accountId: payload?.accountId,
188
- synced: result?.synced,
189
- failed: result?.failed,
190
- earliestSyncedAt: result?.earliestSyncedAt,
191
- latestSyncedAt: result?.latestSyncedAt
192
- };
193
- }
194
- },
195
- failure: {
196
- event: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSyncFailed },
197
- properties: ({ input, error }) => {
198
- const payload = input;
199
- return {
200
- tenantId: payload?.tenantId,
201
- accountId: payload?.accountId,
202
- error: error instanceof Error ? error.message : String(error ?? "unknown")
203
- };
204
- }
205
- }
206
- }
207
- });
208
-
209
- //#endregion
210
- //# sourceMappingURL=transactions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/integrations/openbanking/contracts/transactions.js"],"sourcesContent":["import { E5, x8 } from \"../../../schema/dist/index.js\";\nimport { defineCommand, defineQuery } from \"../../../operations/operation.js\";\nimport \"../../../operations/index.js\";\nimport { BankTransactionRecord } from \"../models.js\";\nimport { OPENBANKING_TELEMETRY_EVENTS } from \"../telemetry.js\";\n\n//#region src/integrations/openbanking/contracts/transactions.ts\nconst OpenBankingListTransactionsInput = new x8({\n\tname: \"OpenBankingListTransactionsInput\",\n\tdescription: \"Parameters for listing bank transactions from the canonical ledger.\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tfrom: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tto: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcursor: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tpageSize: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tdirection: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tminimumAmount: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tmaximumAmount: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcategory: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingListTransactionsOutput = new x8({\n\tname: \"OpenBankingListTransactionsOutput\",\n\tdescription: \"Paginated list of transactions for a bank account.\",\n\tfields: {\n\t\ttransactions: {\n\t\t\ttype: BankTransactionRecord,\n\t\t\tisOptional: false,\n\t\t\tisArray: true\n\t\t},\n\t\tnextCursor: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thasMore: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingSyncTransactionsInput = new x8({\n\tname: \"OpenBankingSyncTransactionsInput\",\n\tdescription: \"Command payload to synchronise transactions from the open banking provider into the canonical ledger.\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tfrom: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tto: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\tincludePending: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t},\n\t\tbackfillDays: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingSyncTransactionsOutput = new x8({\n\tname: \"OpenBankingSyncTransactionsOutput\",\n\tdescription: \"Result of a transaction synchronisation run.\",\n\tfields: {\n\t\tsynced: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tfailed: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tearliestSyncedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tlatestSyncedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tnextSinceToken: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\terrors: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisArray: true,\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingListTransactions = defineQuery({\n\tmeta: {\n\t\tname: \"openbanking.transactions.list\",\n\t\tversion: 1,\n\t\tdescription: \"List bank transactions that have been normalised into the canonical ledger.\",\n\t\tgoal: \"Allow downstream analytics and UI surfaces to page through canonical bank transactions.\",\n\t\tcontext: \"Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"powens\",\n\t\t\t\"transactions\"\n\t\t],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: OpenBankingListTransactionsInput,\n\t\toutput: OpenBankingListTransactionsOutput\n\t},\n\tpolicy: { auth: \"user\" }\n});\nconst OpenBankingSyncTransactions = defineCommand({\n\tmeta: {\n\t\tname: \"openbanking.transactions.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Synchronise transactions for a bank account by calling the configured open banking provider.\",\n\t\tgoal: \"Ensure the canonical transaction ledger stays aligned with the external provider.\",\n\t\tcontext: \"Triggered by scheduled workflows or on-demand actions when activity is expected on an account.\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"powens\",\n\t\t\t\"transactions\"\n\t\t],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: OpenBankingSyncTransactionsInput,\n\t\toutput: OpenBankingSyncTransactionsOutput\n\t},\n\tpolicy: { auth: \"admin\" },\n\ttelemetry: {\n\t\tsuccess: {\n\t\t\tevent: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced },\n\t\t\tproperties: ({ input, output }) => {\n\t\t\t\tconst payload = input;\n\t\t\t\tconst result = output;\n\t\t\t\treturn {\n\t\t\t\t\ttenantId: payload?.tenantId,\n\t\t\t\t\taccountId: payload?.accountId,\n\t\t\t\t\tsynced: result?.synced,\n\t\t\t\t\tfailed: result?.failed,\n\t\t\t\t\tearliestSyncedAt: result?.earliestSyncedAt,\n\t\t\t\t\tlatestSyncedAt: result?.latestSyncedAt\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\tfailure: {\n\t\t\tevent: { name: OPENBANKING_TELEMETRY_EVENTS.transactionsSyncFailed },\n\t\t\tproperties: ({ input, error }) => {\n\t\t\t\tconst payload = input;\n\t\t\t\treturn {\n\t\t\t\t\ttenantId: payload?.tenantId,\n\t\t\t\t\taccountId: payload?.accountId,\n\t\t\t\t\terror: error instanceof Error ? error.message : String(error ?? \"unknown\")\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n});\nconst openBankingTransactionContracts = {\n\tOpenBankingListTransactions,\n\tOpenBankingSyncTransactions\n};\nfunction registerOpenBankingTransactionContracts(registry) {\n\treturn registry.register(OpenBankingListTransactions).register(OpenBankingSyncTransactions);\n}\n\n//#endregion\nexport { OpenBankingListTransactions, OpenBankingSyncTransactions, openBankingTransactionContracts, registerOpenBankingTransactionContracts };"],"mappings":";;;;;;;AAOA,MA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AEF;EACD,SAAS;GACR,OAAO,EAAE,MAAM,6BAA6B,wBAAwB;GACpE,aAAa,EAAE,OAAO,YAAY;IACjC,MAAM,UAAU;AAChB,WAAO;KACN,UAAU,SAAS;KACnB,WAAW,SAAS;KACpB,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,SAAS,UAAU;KAC1E;;GAEF;EACD;CACD,CAAC"}
@@ -1,241 +0,0 @@
1
- import { E5, x8 } from "../../schema/dist/index.js";
2
-
3
- //#region ../../libs/contracts/dist/integrations/openbanking/models.js
4
- const BankAccountRecord = new x8({
5
- name: "BankAccountRecord",
6
- description: "Canonical representation of a bank account synced from an open banking provider.",
7
- fields: {
8
- id: {
9
- type: E5.ID(),
10
- isOptional: false
11
- },
12
- tenantId: {
13
- type: E5.ID(),
14
- isOptional: false
15
- },
16
- userId: {
17
- type: E5.ID(),
18
- isOptional: false
19
- },
20
- connectionId: {
21
- type: E5.ID(),
22
- isOptional: false
23
- },
24
- externalId: {
25
- type: E5.NonEmptyString(),
26
- isOptional: false
27
- },
28
- institutionId: {
29
- type: E5.NonEmptyString(),
30
- isOptional: false
31
- },
32
- institutionName: {
33
- type: E5.NonEmptyString(),
34
- isOptional: false
35
- },
36
- institutionLogoUrl: {
37
- type: E5.URL(),
38
- isOptional: true
39
- },
40
- iban: {
41
- type: E5.String_unsecure(),
42
- isOptional: true
43
- },
44
- bic: {
45
- type: E5.String_unsecure(),
46
- isOptional: true
47
- },
48
- accountType: {
49
- type: E5.NonEmptyString(),
50
- isOptional: false
51
- },
52
- currency: {
53
- type: E5.Currency(),
54
- isOptional: false
55
- },
56
- displayName: {
57
- type: E5.NonEmptyString(),
58
- isOptional: false
59
- },
60
- accountNumberMasked: {
61
- type: E5.String_unsecure(),
62
- isOptional: true
63
- },
64
- productCode: {
65
- type: E5.String_unsecure(),
66
- isOptional: true
67
- },
68
- balance: {
69
- type: E5.Float_unsecure(),
70
- isOptional: true
71
- },
72
- availableBalance: {
73
- type: E5.Float_unsecure(),
74
- isOptional: true
75
- },
76
- lastSyncedAt: {
77
- type: E5.DateTime(),
78
- isOptional: false
79
- },
80
- createdAt: {
81
- type: E5.DateTime(),
82
- isOptional: false
83
- },
84
- updatedAt: {
85
- type: E5.DateTime(),
86
- isOptional: false
87
- },
88
- metadata: {
89
- type: E5.JSONObject(),
90
- isOptional: true
91
- }
92
- }
93
- });
94
- const BankTransactionRecord = new x8({
95
- name: "BankTransactionRecord",
96
- description: "Canonical transaction entry mapped from Powens into the open banking ledger.",
97
- fields: {
98
- id: {
99
- type: E5.ID(),
100
- isOptional: false
101
- },
102
- accountId: {
103
- type: E5.ID(),
104
- isOptional: false
105
- },
106
- tenantId: {
107
- type: E5.ID(),
108
- isOptional: false
109
- },
110
- connectionId: {
111
- type: E5.ID(),
112
- isOptional: false
113
- },
114
- externalId: {
115
- type: E5.NonEmptyString(),
116
- isOptional: false
117
- },
118
- amount: {
119
- type: E5.Float_unsecure(),
120
- isOptional: false
121
- },
122
- currency: {
123
- type: E5.Currency(),
124
- isOptional: false
125
- },
126
- date: {
127
- type: E5.DateTime(),
128
- isOptional: false
129
- },
130
- bookingDate: {
131
- type: E5.DateTime(),
132
- isOptional: true
133
- },
134
- valueDate: {
135
- type: E5.DateTime(),
136
- isOptional: true
137
- },
138
- description: {
139
- type: E5.String_unsecure(),
140
- isOptional: true
141
- },
142
- counterpartyName: {
143
- type: E5.String_unsecure(),
144
- isOptional: true
145
- },
146
- counterpartyAccount: {
147
- type: E5.String_unsecure(),
148
- isOptional: true
149
- },
150
- merchantCategoryCode: {
151
- type: E5.String_unsecure(),
152
- isOptional: true
153
- },
154
- rawCategory: {
155
- type: E5.String_unsecure(),
156
- isOptional: true
157
- },
158
- standardizedCategory: {
159
- type: E5.String_unsecure(),
160
- isOptional: true
161
- },
162
- transactionType: {
163
- type: E5.NonEmptyString(),
164
- isOptional: false
165
- },
166
- status: {
167
- type: E5.NonEmptyString(),
168
- isOptional: false
169
- },
170
- runningBalance: {
171
- type: E5.Float_unsecure(),
172
- isOptional: true
173
- },
174
- metadata: {
175
- type: E5.JSONObject(),
176
- isOptional: true
177
- },
178
- createdAt: {
179
- type: E5.DateTime(),
180
- isOptional: false
181
- },
182
- updatedAt: {
183
- type: E5.DateTime(),
184
- isOptional: false
185
- }
186
- }
187
- });
188
- const AccountBalanceRecord = new x8({
189
- name: "AccountBalanceRecord",
190
- description: "Canonical balance snapshot computed from Powens balance payloads.",
191
- fields: {
192
- id: {
193
- type: E5.ID(),
194
- isOptional: false
195
- },
196
- accountId: {
197
- type: E5.ID(),
198
- isOptional: false
199
- },
200
- tenantId: {
201
- type: E5.ID(),
202
- isOptional: false
203
- },
204
- connectionId: {
205
- type: E5.ID(),
206
- isOptional: false
207
- },
208
- balanceType: {
209
- type: E5.NonEmptyString(),
210
- isOptional: false
211
- },
212
- currentBalance: {
213
- type: E5.Float_unsecure(),
214
- isOptional: false
215
- },
216
- availableBalance: {
217
- type: E5.Float_unsecure(),
218
- isOptional: true
219
- },
220
- currency: {
221
- type: E5.Currency(),
222
- isOptional: false
223
- },
224
- lastUpdatedAt: {
225
- type: E5.DateTime(),
226
- isOptional: false
227
- },
228
- createdAt: {
229
- type: E5.DateTime(),
230
- isOptional: false
231
- },
232
- metadata: {
233
- type: E5.JSONObject(),
234
- isOptional: true
235
- }
236
- }
237
- });
238
-
239
- //#endregion
240
- export { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord };
241
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/integrations/openbanking/models.js"],"sourcesContent":["import { E5, x8 } from \"../../schema/dist/index.js\";\n\n//#region src/integrations/openbanking/models.ts\nconst BankAccountRecord = new x8({\n\tname: \"BankAccountRecord\",\n\tdescription: \"Canonical representation of a bank account synced from an open banking provider.\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tuserId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\texternalId: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tinstitutionId: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tinstitutionName: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tinstitutionLogoUrl: {\n\t\t\ttype: E5.URL(),\n\t\t\tisOptional: true\n\t\t},\n\t\tiban: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tbic: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\taccountType: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcurrency: {\n\t\t\ttype: E5.Currency(),\n\t\t\tisOptional: false\n\t\t},\n\t\tdisplayName: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountNumberMasked: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tproductCode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tbalance: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tavailableBalance: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tlastSyncedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tmetadata: {\n\t\t\ttype: E5.JSONObject(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst BankTransactionRecord = new x8({\n\tname: \"BankTransactionRecord\",\n\tdescription: \"Canonical transaction entry mapped from Powens into the open banking ledger.\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\texternalId: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tamount: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcurrency: {\n\t\t\ttype: E5.Currency(),\n\t\t\tisOptional: false\n\t\t},\n\t\tdate: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tbookingDate: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tvalueDate: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tdescription: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcounterpartyName: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcounterpartyAccount: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tmerchantCategoryCode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\trawCategory: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tstandardizedCategory: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\ttransactionType: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tstatus: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\trunningBalance: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tmetadata: {\n\t\t\ttype: E5.JSONObject(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t}\n\t}\n});\nconst AccountBalanceRecord = new x8({\n\tname: \"AccountBalanceRecord\",\n\tdescription: \"Canonical balance snapshot computed from Powens balance payloads.\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tbalanceType: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcurrentBalance: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tavailableBalance: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcurrency: {\n\t\t\ttype: E5.Currency(),\n\t\t\tisOptional: false\n\t\t},\n\t\tlastUpdatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: false\n\t\t},\n\t\tmetadata: {\n\t\t\ttype: E5.JSONObject(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\n\n//#endregion\nexport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Y;GACZ;EACD,WAAW;GACV,MAAM,GAAG,UAAU;GACnB,YAAY;GACZ;EACD;CACD,CAAC;AACF,MAAM,uBAAuB,IAAI,GAAG;CACnC,MAAM;CACN,aAAa;CACb,QAAQ;EACP,IAAI;GACH,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,WAAW;GACV,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,UAAU;GACT,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,cAAc;GACb,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,aAAa;GACZ,MAAM,GAAG,gBAAgB;GACzB,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,GAAG,gBAAgB;GACzB,YAAY;GACZ;EACD,kBAAkB;GACjB,MAAM,GAAG,gBAAgB;GACzB,YAAY;GACZ;EACD,UAAU;GACT,MAAM,GAAG,UAAU;GACnB,YAAY;GACZ;EACD,eAAe;GACd,MAAM,GAAG,UAAU;GACnB,YAAY;GACZ;EACD,WAAW;GACV,MAAM,GAAG,UAAU;GACnB,YAAY;GACZ;EACD,UAAU;GACT,MAAM,GAAG,YAAY;GACrB,YAAY;GACZ;EACD;CACD,CAAC"}
@@ -1,14 +0,0 @@
1
- //#region ../../libs/contracts/dist/integrations/openbanking/telemetry.js
2
- const OPENBANKING_TELEMETRY_EVENTS = {
3
- accountsSynced: "openbanking.accounts.synced",
4
- accountsSyncFailed: "openbanking.accounts.sync_failed",
5
- transactionsSynced: "openbanking.transactions.synced",
6
- transactionsSyncFailed: "openbanking.transactions.sync_failed",
7
- balancesRefreshed: "openbanking.balances.refreshed",
8
- balancesRefreshFailed: "openbanking.balances.refresh_failed",
9
- overviewGenerated: "openbanking.overview.generated"
10
- };
11
-
12
- //#endregion
13
- export { OPENBANKING_TELEMETRY_EVENTS };
14
- //# sourceMappingURL=telemetry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/integrations/openbanking/telemetry.js"],"sourcesContent":["//#region src/integrations/openbanking/telemetry.ts\nconst OPENBANKING_PII_FIELDS = [\n\t\"iban\",\n\t\"bic\",\n\t\"accountNumberMasked\",\n\t\"accountNumber\",\n\t\"counterpartyName\",\n\t\"counterpartyAccount\",\n\t\"description\",\n\t\"merchantName\",\n\t\"merchantCategoryCode\",\n\t\"reference\"\n];\nconst OPENBANKING_TELEMETRY_EVENTS = {\n\taccountsSynced: \"openbanking.accounts.synced\",\n\taccountsSyncFailed: \"openbanking.accounts.sync_failed\",\n\ttransactionsSynced: \"openbanking.transactions.synced\",\n\ttransactionsSyncFailed: \"openbanking.transactions.sync_failed\",\n\tbalancesRefreshed: \"openbanking.balances.refreshed\",\n\tbalancesRefreshFailed: \"openbanking.balances.refresh_failed\",\n\toverviewGenerated: \"openbanking.overview.generated\"\n};\nfunction redactOpenBankingTelemetryPayload(payload) {\n\tconst redacted = {};\n\tfor (const [key, value] of Object.entries(payload)) if (OPENBANKING_PII_FIELDS.includes(key)) redacted[key] = maskValue(value);\n\telse if (Array.isArray(value)) redacted[key] = value.map((item) => typeof item === \"object\" && item !== null ? redactOpenBankingTelemetryPayload(item) : item);\n\telse if (typeof value === \"object\" && value !== null) redacted[key] = redactOpenBankingTelemetryPayload(value);\n\telse redacted[key] = value;\n\treturn redacted;\n}\nfunction maskValue(value) {\n\tif (value == null) return \"\";\n\tconst str = String(value);\n\tif (str.length <= 4) return \"*\".repeat(str.length);\n\treturn `${\"*\".repeat(Math.max(str.length - 4, 0))}${str.slice(-4)}`;\n}\n\n//#endregion\nexport { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, redactOpenBankingTelemetryPayload };"],"mappings":";AAaA,MAAM,+BAA+B;CACpC,gBAAgB;CAChB,oBAAoB;CACpB,oBAAoB;CACpB,wBAAwB;CACxB,mBAAmB;CACnB,uBAAuB;CACvB,mBAAmB;CACnB"}