@lssm/example.integration-hub 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223010757

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 (216) hide show
  1. package/dist/connection/connection.enum.js +2 -2
  2. package/dist/connection/connection.enum.js.map +1 -1
  3. package/dist/connection/connection.operation.d.ts +27 -27
  4. package/dist/connection/connection.operation.d.ts.map +1 -1
  5. package/dist/connection/connection.operation.js +1 -2
  6. package/dist/connection/connection.operation.js.map +1 -1
  7. package/dist/connection/connection.schema.js +15 -15
  8. package/dist/connection/connection.schema.js.map +1 -1
  9. package/dist/docs/integration-hub.docblock.js +1 -2
  10. package/dist/docs/integration-hub.docblock.js.map +1 -1
  11. package/dist/events.d.ts +42 -42
  12. package/dist/events.d.ts.map +1 -1
  13. package/dist/events.js +43 -44
  14. package/dist/events.js.map +1 -1
  15. package/dist/index.d.ts +3 -0
  16. package/dist/integration/integration.contracts.d.ts +24 -24
  17. package/dist/integration/integration.contracts.js +1 -2
  18. package/dist/integration/integration.contracts.js.map +1 -1
  19. package/dist/integration/integration.enum.d.ts +2 -2
  20. package/dist/integration/integration.enum.d.ts.map +1 -1
  21. package/dist/integration/integration.enum.js +2 -2
  22. package/dist/integration/integration.enum.js.map +1 -1
  23. package/dist/integration/integration.schema.d.ts +16 -16
  24. package/dist/integration/integration.schema.js +15 -15
  25. package/dist/integration/integration.schema.js.map +1 -1
  26. package/dist/sync/sync.contracts.d.ts +125 -125
  27. package/dist/sync/sync.contracts.js +1 -2
  28. package/dist/sync/sync.contracts.js.map +1 -1
  29. package/dist/sync/sync.enum.d.ts +4 -4
  30. package/dist/sync/sync.enum.js +4 -4
  31. package/dist/sync/sync.enum.js.map +1 -1
  32. package/dist/sync/sync.schema.js +56 -56
  33. package/dist/sync/sync.schema.js.map +1 -1
  34. package/package.json +13 -13
  35. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  36. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  37. package/dist/libs/contracts/dist/capabilities/index.js +0 -1
  38. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
  39. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
  40. package/dist/libs/contracts/dist/client/index.js +0 -5
  41. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
  42. package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
  43. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  44. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  45. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
  46. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
  47. package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
  48. package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
  49. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  50. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  51. package/dist/libs/contracts/dist/docs/index.js +0 -25
  52. package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
  53. package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
  54. package/dist/libs/contracts/dist/docs/presentations.js +0 -72
  55. package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
  56. package/dist/libs/contracts/dist/docs/registry.js +0 -45
  57. package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
  58. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  59. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  60. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  61. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  62. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  63. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  64. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  65. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  66. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  67. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  68. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  69. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  70. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  71. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  72. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  73. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  74. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  75. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  76. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  77. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  78. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  79. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  80. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  81. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  82. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  83. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  84. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  85. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  86. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  87. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  88. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  89. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  90. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  91. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  92. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  93. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  94. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  95. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  96. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  97. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  98. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
  99. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  100. package/dist/libs/contracts/dist/events.js +0 -11
  101. package/dist/libs/contracts/dist/events.js.map +0 -1
  102. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  103. package/dist/libs/contracts/dist/features.js +0 -7
  104. package/dist/libs/contracts/dist/features.js.map +0 -1
  105. package/dist/libs/contracts/dist/forms/forms.js +0 -1
  106. package/dist/libs/contracts/dist/index.js +0 -88
  107. package/dist/libs/contracts/dist/index.js.map +0 -1
  108. package/dist/libs/contracts/dist/install.js +0 -2
  109. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  110. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  111. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  112. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  113. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  114. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  115. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  116. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  117. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  118. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  119. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  120. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  121. package/dist/libs/contracts/dist/integrations/operations.js +0 -377
  122. package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
  123. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  124. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  125. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  126. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  127. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  128. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  129. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  130. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  131. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  132. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  133. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  134. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  135. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  136. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  137. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  138. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  139. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  140. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  141. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  142. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  143. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  144. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  145. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  146. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  147. package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
  148. package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
  149. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  150. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  151. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  152. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  153. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  154. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  155. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  156. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  157. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  158. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  159. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  160. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  161. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  162. package/dist/libs/contracts/dist/llm/exporters.js +0 -21
  163. package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
  164. package/dist/libs/contracts/dist/llm/index.js +0 -2
  165. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  166. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  167. package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
  168. package/dist/libs/contracts/dist/openapi.js +0 -1
  169. package/dist/libs/contracts/dist/operations/index.js +0 -2
  170. package/dist/libs/contracts/dist/operations/operation.js +0 -35
  171. package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
  172. package/dist/libs/contracts/dist/operations/registry.js +0 -8
  173. package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
  174. package/dist/libs/contracts/dist/ownership.js +0 -24
  175. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  176. package/dist/libs/contracts/dist/presentations/index.js +0 -2
  177. package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
  178. package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
  179. package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
  180. package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
  181. package/dist/libs/contracts/dist/prompt.js +0 -1
  182. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  183. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  184. package/dist/libs/contracts/dist/regenerator/service.js +0 -7
  185. package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
  186. package/dist/libs/contracts/dist/registry-utils.js +0 -24
  187. package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
  188. package/dist/libs/contracts/dist/resources.js +0 -1
  189. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3873
  190. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  191. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  192. package/dist/libs/contracts/dist/server/index.js +0 -8
  193. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  194. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
  195. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  196. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  197. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  198. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  199. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  200. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  201. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  202. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  203. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  204. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  205. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  206. package/dist/libs/contracts/dist/tests/index.js +0 -1
  207. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  208. package/dist/libs/contracts/dist/workflow/index.js +0 -2
  209. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  210. package/dist/libs/contracts/dist/workflow/spec.js +0 -7
  211. package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
  212. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
  213. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  214. package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
  215. package/dist/libs/schema/dist/index.js +0 -4717
  216. package/dist/libs/schema/dist/index.js.map +0 -1
@@ -1,18 +1,18 @@
1
- import * as _lssm_lib_schema120 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema244 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/sync/sync.enum.d.ts
4
4
  /**
5
5
  * Sync direction enum.
6
6
  */
7
- declare const SyncDirectionEnum: _lssm_lib_schema120.EnumType<[string, string, string]>;
7
+ declare const SyncDirectionEnum: _lssm_lib_schema244.EnumType<[string, string, string]>;
8
8
  /**
9
9
  * Sync status enum.
10
10
  */
11
- declare const SyncStatusEnum: _lssm_lib_schema120.EnumType<[string, string, string, string, string]>;
11
+ declare const SyncStatusEnum: _lssm_lib_schema244.EnumType<[string, string, string, string, string]>;
12
12
  /**
13
13
  * Mapping type enum.
14
14
  */
15
- declare const MappingTypeEnum: _lssm_lib_schema120.EnumType<[string, string, string, string, string]>;
15
+ declare const MappingTypeEnum: _lssm_lib_schema244.EnumType<[string, string, string, string, string]>;
16
16
  //#endregion
17
17
  export { MappingTypeEnum, SyncDirectionEnum, SyncStatusEnum };
18
18
  //# sourceMappingURL=sync.enum.d.ts.map
@@ -1,10 +1,10 @@
1
- import { N5 } from "../libs/schema/dist/index.js";
1
+ import { defineEnum } from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/sync/sync.enum.ts
4
4
  /**
5
5
  * Sync direction enum.
6
6
  */
7
- const SyncDirectionEnum = N5("SyncDirection", [
7
+ const SyncDirectionEnum = defineEnum("SyncDirection", [
8
8
  "INBOUND",
9
9
  "OUTBOUND",
10
10
  "BIDIRECTIONAL"
@@ -12,7 +12,7 @@ const SyncDirectionEnum = N5("SyncDirection", [
12
12
  /**
13
13
  * Sync status enum.
14
14
  */
15
- const SyncStatusEnum = N5("SyncStatus", [
15
+ const SyncStatusEnum = defineEnum("SyncStatus", [
16
16
  "PENDING",
17
17
  "RUNNING",
18
18
  "COMPLETED",
@@ -22,7 +22,7 @@ const SyncStatusEnum = N5("SyncStatus", [
22
22
  /**
23
23
  * Mapping type enum.
24
24
  */
25
- const MappingTypeEnum = N5("MappingType", [
25
+ const MappingTypeEnum = defineEnum("MappingType", [
26
26
  "DIRECT",
27
27
  "TRANSFORM",
28
28
  "LOOKUP",
@@ -1 +1 @@
1
- {"version":3,"file":"sync.enum.js","names":["defineEnum"],"sources":["../../src/sync/sync.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Sync direction enum.\n */\nexport const SyncDirectionEnum = defineEnum('SyncDirection', [\n 'INBOUND',\n 'OUTBOUND',\n 'BIDIRECTIONAL',\n]);\n\n/**\n * Sync status enum.\n */\nexport const SyncStatusEnum = defineEnum('SyncStatus', [\n 'PENDING',\n 'RUNNING',\n 'COMPLETED',\n 'FAILED',\n 'CANCELLED',\n]);\n\n/**\n * Mapping type enum.\n */\nexport const MappingTypeEnum = defineEnum('MappingType', [\n 'DIRECT',\n 'TRANSFORM',\n 'LOOKUP',\n 'CONSTANT',\n 'COMPUTED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,oBAAoBA,GAAW,iBAAiB;CAC3D;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,iBAAiBA,GAAW,cAAc;CACrD;CACA;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,kBAAkBA,GAAW,eAAe;CACvD;CACA;CACA;CACA;CACA;CACD,CAAC"}
1
+ {"version":3,"file":"sync.enum.js","names":[],"sources":["../../src/sync/sync.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Sync direction enum.\n */\nexport const SyncDirectionEnum = defineEnum('SyncDirection', [\n 'INBOUND',\n 'OUTBOUND',\n 'BIDIRECTIONAL',\n]);\n\n/**\n * Sync status enum.\n */\nexport const SyncStatusEnum = defineEnum('SyncStatus', [\n 'PENDING',\n 'RUNNING',\n 'COMPLETED',\n 'FAILED',\n 'CANCELLED',\n]);\n\n/**\n * Mapping type enum.\n */\nexport const MappingTypeEnum = defineEnum('MappingType', [\n 'DIRECT',\n 'TRANSFORM',\n 'LOOKUP',\n 'CONSTANT',\n 'COMPUTED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,oBAAoB,WAAW,iBAAiB;CAC3D;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,iBAAiB,WAAW,cAAc;CACrD;CACA;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,kBAAkB,WAAW,eAAe;CACvD;CACA;CACA;CACA;CACA;CACD,CAAC"}
@@ -1,23 +1,23 @@
1
- import { E5, K5 } from "../libs/schema/dist/index.js";
2
1
  import { MappingTypeEnum, SyncDirectionEnum, SyncStatusEnum } from "./sync.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/sync/sync.schema.ts
5
5
  /**
6
6
  * A field mapping configuration.
7
7
  */
8
- const FieldMappingModel = K5({
8
+ const FieldMappingModel = defineSchemaModel({
9
9
  name: "FieldMappingModel",
10
10
  fields: {
11
11
  id: {
12
- type: E5.String_unsecure(),
12
+ type: ScalarTypeEnum.String_unsecure(),
13
13
  isOptional: false
14
14
  },
15
15
  sourceField: {
16
- type: E5.String_unsecure(),
16
+ type: ScalarTypeEnum.String_unsecure(),
17
17
  isOptional: false
18
18
  },
19
19
  targetField: {
20
- type: E5.String_unsecure(),
20
+ type: ScalarTypeEnum.String_unsecure(),
21
21
  isOptional: false
22
22
  },
23
23
  mappingType: {
@@ -25,11 +25,11 @@ const FieldMappingModel = K5({
25
25
  isOptional: false
26
26
  },
27
27
  transformExpression: {
28
- type: E5.String_unsecure(),
28
+ type: ScalarTypeEnum.String_unsecure(),
29
29
  isOptional: true
30
30
  },
31
31
  isRequired: {
32
- type: E5.Boolean(),
32
+ type: ScalarTypeEnum.Boolean(),
33
33
  isOptional: false
34
34
  }
35
35
  }
@@ -37,23 +37,23 @@ const FieldMappingModel = K5({
37
37
  /**
38
38
  * A sync configuration.
39
39
  */
40
- const SyncConfigModel = K5({
40
+ const SyncConfigModel = defineSchemaModel({
41
41
  name: "SyncConfigModel",
42
42
  fields: {
43
43
  id: {
44
- type: E5.String_unsecure(),
44
+ type: ScalarTypeEnum.String_unsecure(),
45
45
  isOptional: false
46
46
  },
47
47
  integrationId: {
48
- type: E5.String_unsecure(),
48
+ type: ScalarTypeEnum.String_unsecure(),
49
49
  isOptional: false
50
50
  },
51
51
  connectionId: {
52
- type: E5.String_unsecure(),
52
+ type: ScalarTypeEnum.String_unsecure(),
53
53
  isOptional: false
54
54
  },
55
55
  name: {
56
- type: E5.String_unsecure(),
56
+ type: ScalarTypeEnum.String_unsecure(),
57
57
  isOptional: false
58
58
  },
59
59
  direction: {
@@ -61,27 +61,27 @@ const SyncConfigModel = K5({
61
61
  isOptional: false
62
62
  },
63
63
  sourceObject: {
64
- type: E5.String_unsecure(),
64
+ type: ScalarTypeEnum.String_unsecure(),
65
65
  isOptional: false
66
66
  },
67
67
  targetObject: {
68
- type: E5.String_unsecure(),
68
+ type: ScalarTypeEnum.String_unsecure(),
69
69
  isOptional: false
70
70
  },
71
71
  scheduleEnabled: {
72
- type: E5.Boolean(),
72
+ type: ScalarTypeEnum.Boolean(),
73
73
  isOptional: false
74
74
  },
75
75
  scheduleCron: {
76
- type: E5.String_unsecure(),
76
+ type: ScalarTypeEnum.String_unsecure(),
77
77
  isOptional: true
78
78
  },
79
79
  isActive: {
80
- type: E5.Boolean(),
80
+ type: ScalarTypeEnum.Boolean(),
81
81
  isOptional: false
82
82
  },
83
83
  lastSyncAt: {
84
- type: E5.DateTime(),
84
+ type: ScalarTypeEnum.DateTime(),
85
85
  isOptional: true
86
86
  },
87
87
  fieldMappings: {
@@ -94,15 +94,15 @@ const SyncConfigModel = K5({
94
94
  /**
95
95
  * A sync run.
96
96
  */
97
- const SyncRunModel = K5({
97
+ const SyncRunModel = defineSchemaModel({
98
98
  name: "SyncRunModel",
99
99
  fields: {
100
100
  id: {
101
- type: E5.String_unsecure(),
101
+ type: ScalarTypeEnum.String_unsecure(),
102
102
  isOptional: false
103
103
  },
104
104
  syncConfigId: {
105
- type: E5.String_unsecure(),
105
+ type: ScalarTypeEnum.String_unsecure(),
106
106
  isOptional: false
107
107
  },
108
108
  status: {
@@ -114,39 +114,39 @@ const SyncRunModel = K5({
114
114
  isOptional: false
115
115
  },
116
116
  trigger: {
117
- type: E5.String_unsecure(),
117
+ type: ScalarTypeEnum.String_unsecure(),
118
118
  isOptional: false
119
119
  },
120
120
  recordsProcessed: {
121
- type: E5.Int_unsecure(),
121
+ type: ScalarTypeEnum.Int_unsecure(),
122
122
  isOptional: false
123
123
  },
124
124
  recordsCreated: {
125
- type: E5.Int_unsecure(),
125
+ type: ScalarTypeEnum.Int_unsecure(),
126
126
  isOptional: false
127
127
  },
128
128
  recordsUpdated: {
129
- type: E5.Int_unsecure(),
129
+ type: ScalarTypeEnum.Int_unsecure(),
130
130
  isOptional: false
131
131
  },
132
132
  recordsFailed: {
133
- type: E5.Int_unsecure(),
133
+ type: ScalarTypeEnum.Int_unsecure(),
134
134
  isOptional: false
135
135
  },
136
136
  errorMessage: {
137
- type: E5.String_unsecure(),
137
+ type: ScalarTypeEnum.String_unsecure(),
138
138
  isOptional: true
139
139
  },
140
140
  startedAt: {
141
- type: E5.DateTime(),
141
+ type: ScalarTypeEnum.DateTime(),
142
142
  isOptional: true
143
143
  },
144
144
  completedAt: {
145
- type: E5.DateTime(),
145
+ type: ScalarTypeEnum.DateTime(),
146
146
  isOptional: true
147
147
  },
148
148
  createdAt: {
149
- type: E5.DateTime(),
149
+ type: ScalarTypeEnum.DateTime(),
150
150
  isOptional: false
151
151
  }
152
152
  }
@@ -154,19 +154,19 @@ const SyncRunModel = K5({
154
154
  /**
155
155
  * Input for creating a sync config.
156
156
  */
157
- const CreateSyncConfigInputModel = K5({
157
+ const CreateSyncConfigInputModel = defineSchemaModel({
158
158
  name: "CreateSyncConfigInput",
159
159
  fields: {
160
160
  integrationId: {
161
- type: E5.String_unsecure(),
161
+ type: ScalarTypeEnum.String_unsecure(),
162
162
  isOptional: false
163
163
  },
164
164
  connectionId: {
165
- type: E5.String_unsecure(),
165
+ type: ScalarTypeEnum.String_unsecure(),
166
166
  isOptional: false
167
167
  },
168
168
  name: {
169
- type: E5.NonEmptyString(),
169
+ type: ScalarTypeEnum.NonEmptyString(),
170
170
  isOptional: false
171
171
  },
172
172
  direction: {
@@ -174,19 +174,19 @@ const CreateSyncConfigInputModel = K5({
174
174
  isOptional: false
175
175
  },
176
176
  sourceObject: {
177
- type: E5.NonEmptyString(),
177
+ type: ScalarTypeEnum.NonEmptyString(),
178
178
  isOptional: false
179
179
  },
180
180
  targetObject: {
181
- type: E5.NonEmptyString(),
181
+ type: ScalarTypeEnum.NonEmptyString(),
182
182
  isOptional: false
183
183
  },
184
184
  scheduleEnabled: {
185
- type: E5.Boolean(),
185
+ type: ScalarTypeEnum.Boolean(),
186
186
  isOptional: true
187
187
  },
188
188
  scheduleCron: {
189
- type: E5.String_unsecure(),
189
+ type: ScalarTypeEnum.String_unsecure(),
190
190
  isOptional: true
191
191
  }
192
192
  }
@@ -194,19 +194,19 @@ const CreateSyncConfigInputModel = K5({
194
194
  /**
195
195
  * Input for adding a field mapping.
196
196
  */
197
- const AddFieldMappingInputModel = K5({
197
+ const AddFieldMappingInputModel = defineSchemaModel({
198
198
  name: "AddFieldMappingInput",
199
199
  fields: {
200
200
  syncConfigId: {
201
- type: E5.String_unsecure(),
201
+ type: ScalarTypeEnum.String_unsecure(),
202
202
  isOptional: false
203
203
  },
204
204
  sourceField: {
205
- type: E5.NonEmptyString(),
205
+ type: ScalarTypeEnum.NonEmptyString(),
206
206
  isOptional: false
207
207
  },
208
208
  targetField: {
209
- type: E5.NonEmptyString(),
209
+ type: ScalarTypeEnum.NonEmptyString(),
210
210
  isOptional: false
211
211
  },
212
212
  mappingType: {
@@ -214,23 +214,23 @@ const AddFieldMappingInputModel = K5({
214
214
  isOptional: false
215
215
  },
216
216
  transformExpression: {
217
- type: E5.String_unsecure(),
217
+ type: ScalarTypeEnum.String_unsecure(),
218
218
  isOptional: true
219
219
  },
220
220
  lookupConfig: {
221
- type: E5.JSON(),
221
+ type: ScalarTypeEnum.JSON(),
222
222
  isOptional: true
223
223
  },
224
224
  constantValue: {
225
- type: E5.JSON(),
225
+ type: ScalarTypeEnum.JSON(),
226
226
  isOptional: true
227
227
  },
228
228
  isRequired: {
229
- type: E5.Boolean(),
229
+ type: ScalarTypeEnum.Boolean(),
230
230
  isOptional: true
231
231
  },
232
232
  defaultValue: {
233
- type: E5.JSON(),
233
+ type: ScalarTypeEnum.JSON(),
234
234
  isOptional: true
235
235
  }
236
236
  }
@@ -238,11 +238,11 @@ const AddFieldMappingInputModel = K5({
238
238
  /**
239
239
  * Input for triggering a sync.
240
240
  */
241
- const TriggerSyncInputModel = K5({
241
+ const TriggerSyncInputModel = defineSchemaModel({
242
242
  name: "TriggerSyncInput",
243
243
  fields: {
244
244
  syncConfigId: {
245
- type: E5.String_unsecure(),
245
+ type: ScalarTypeEnum.String_unsecure(),
246
246
  isOptional: false
247
247
  },
248
248
  direction: {
@@ -250,7 +250,7 @@ const TriggerSyncInputModel = K5({
250
250
  isOptional: true
251
251
  },
252
252
  fullSync: {
253
- type: E5.Boolean(),
253
+ type: ScalarTypeEnum.Boolean(),
254
254
  isOptional: true
255
255
  }
256
256
  }
@@ -258,11 +258,11 @@ const TriggerSyncInputModel = K5({
258
258
  /**
259
259
  * Input for listing sync runs.
260
260
  */
261
- const ListSyncRunsInputModel = K5({
261
+ const ListSyncRunsInputModel = defineSchemaModel({
262
262
  name: "ListSyncRunsInput",
263
263
  fields: {
264
264
  syncConfigId: {
265
- type: E5.String_unsecure(),
265
+ type: ScalarTypeEnum.String_unsecure(),
266
266
  isOptional: false
267
267
  },
268
268
  status: {
@@ -270,12 +270,12 @@ const ListSyncRunsInputModel = K5({
270
270
  isOptional: true
271
271
  },
272
272
  limit: {
273
- type: E5.Int_unsecure(),
273
+ type: ScalarTypeEnum.Int_unsecure(),
274
274
  isOptional: true,
275
275
  defaultValue: 20
276
276
  },
277
277
  offset: {
278
- type: E5.Int_unsecure(),
278
+ type: ScalarTypeEnum.Int_unsecure(),
279
279
  isOptional: true,
280
280
  defaultValue: 0
281
281
  }
@@ -284,7 +284,7 @@ const ListSyncRunsInputModel = K5({
284
284
  /**
285
285
  * Output for listing sync runs.
286
286
  */
287
- const ListSyncRunsOutputModel = K5({
287
+ const ListSyncRunsOutputModel = defineSchemaModel({
288
288
  name: "ListSyncRunsOutput",
289
289
  fields: {
290
290
  runs: {
@@ -293,7 +293,7 @@ const ListSyncRunsOutputModel = K5({
293
293
  isOptional: false
294
294
  },
295
295
  total: {
296
- type: E5.Int_unsecure(),
296
+ type: ScalarTypeEnum.Int_unsecure(),
297
297
  isOptional: false
298
298
  }
299
299
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sync.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/sync/sync.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n SyncDirectionEnum,\n SyncStatusEnum,\n MappingTypeEnum,\n} from './sync.enum';\n\n/**\n * A field mapping configuration.\n */\nexport const FieldMappingModel = defineSchemaModel({\n name: 'FieldMappingModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mappingType: { type: MappingTypeEnum, isOptional: false },\n transformExpression: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n isRequired: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\n/**\n * A sync configuration.\n */\nexport const SyncConfigModel = defineSchemaModel({\n name: 'SyncConfigModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n sourceObject: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetObject: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduleEnabled: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n scheduleCron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isActive: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n lastSyncAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n fieldMappings: { type: FieldMappingModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * A sync run.\n */\nexport const SyncRunModel = defineSchemaModel({\n name: 'SyncRunModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: SyncStatusEnum, isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n trigger: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n recordsProcessed: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n recordsCreated: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n recordsUpdated: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n recordsFailed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a sync config.\n */\nexport const CreateSyncConfigInputModel = defineSchemaModel({\n name: 'CreateSyncConfigInput',\n fields: {\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n sourceObject: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n targetObject: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n scheduleEnabled: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n scheduleCron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for adding a field mapping.\n */\nexport const AddFieldMappingInputModel = defineSchemaModel({\n name: 'AddFieldMappingInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceField: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n targetField: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n mappingType: { type: MappingTypeEnum, isOptional: false },\n transformExpression: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n lookupConfig: { type: ScalarTypeEnum.JSON(), isOptional: true },\n constantValue: { type: ScalarTypeEnum.JSON(), isOptional: true },\n isRequired: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n defaultValue: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n\n/**\n * Input for triggering a sync.\n */\nexport const TriggerSyncInputModel = defineSchemaModel({\n name: 'TriggerSyncInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: true },\n fullSync: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n\n/**\n * Input for listing sync runs.\n */\nexport const ListSyncRunsInputModel = defineSchemaModel({\n name: 'ListSyncRunsInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: SyncStatusEnum, isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n});\n\n/**\n * Output for listing sync runs.\n */\nexport const ListSyncRunsOutputModel = defineSchemaModel({\n name: 'ListSyncRunsOutput',\n fields: {\n runs: { type: SyncRunModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,oBAAoBA,GAAkB;CACjD,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,aAAa;GAAE,MAAM;GAAiB,YAAY;GAAO;EACzD,qBAAqB;GACnB,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,YAAY;GAAE,MAAMA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Ae,MAAM;GAAE,YAAY;GAAM;EAC/D,eAAe;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAChE,YAAY;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAM;EAChE,cAAc;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAChE;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,QAAQ;EACN,cAAc;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,WAAW;GAAE,MAAM;GAAmB,YAAY;GAAM;EACxD,UAAU;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,yBAAyBD,GAAkB;CACtD,MAAM;CACN,QAAQ;EACN,cAAc;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,QAAQ;GAAE,MAAM;GAAgB,YAAY;GAAM;EAClD,OAAO;GACL,MAAMA,GAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,QAAQ;GACN,MAAMA,GAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACF;CACF,CAAC;;;;AAKF,MAAa,0BAA0BD,GAAkB;CACvD,MAAM;CACN,QAAQ;EACN,MAAM;GAAE,MAAM;GAAc,SAAS;GAAM,YAAY;GAAO;EAC9D,OAAO;GAAE,MAAMC,GAAe,cAAc;GAAE,YAAY;GAAO;EAClE;CACF,CAAC"}
1
+ {"version":3,"file":"sync.schema.js","names":[],"sources":["../../src/sync/sync.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n SyncDirectionEnum,\n SyncStatusEnum,\n MappingTypeEnum,\n} from './sync.enum';\n\n/**\n * A field mapping configuration.\n */\nexport const FieldMappingModel = defineSchemaModel({\n name: 'FieldMappingModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mappingType: { type: MappingTypeEnum, isOptional: false },\n transformExpression: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n isRequired: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\n/**\n * A sync configuration.\n */\nexport const SyncConfigModel = defineSchemaModel({\n name: 'SyncConfigModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n sourceObject: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetObject: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduleEnabled: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n scheduleCron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isActive: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n lastSyncAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n fieldMappings: { type: FieldMappingModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * A sync run.\n */\nexport const SyncRunModel = defineSchemaModel({\n name: 'SyncRunModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: SyncStatusEnum, isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n trigger: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n recordsProcessed: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n recordsCreated: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n recordsUpdated: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n recordsFailed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a sync config.\n */\nexport const CreateSyncConfigInputModel = defineSchemaModel({\n name: 'CreateSyncConfigInput',\n fields: {\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: false },\n sourceObject: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n targetObject: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n scheduleEnabled: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n scheduleCron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for adding a field mapping.\n */\nexport const AddFieldMappingInputModel = defineSchemaModel({\n name: 'AddFieldMappingInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceField: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n targetField: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n mappingType: { type: MappingTypeEnum, isOptional: false },\n transformExpression: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n lookupConfig: { type: ScalarTypeEnum.JSON(), isOptional: true },\n constantValue: { type: ScalarTypeEnum.JSON(), isOptional: true },\n isRequired: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n defaultValue: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n\n/**\n * Input for triggering a sync.\n */\nexport const TriggerSyncInputModel = defineSchemaModel({\n name: 'TriggerSyncInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n direction: { type: SyncDirectionEnum, isOptional: true },\n fullSync: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n\n/**\n * Input for listing sync runs.\n */\nexport const ListSyncRunsInputModel = defineSchemaModel({\n name: 'ListSyncRunsInput',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: SyncStatusEnum, isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n});\n\n/**\n * Output for listing sync runs.\n */\nexport const ListSyncRunsOutputModel = defineSchemaModel({\n name: 'ListSyncRunsOutput',\n fields: {\n runs: { type: SyncRunModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,oBAAoB,kBAAkB;CACjD,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,aAAa;GAAE,MAAM;GAAiB,YAAY;GAAO;EACzD,qBAAqB;GACnB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,YAAY;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,kBAAkB,kBAAkB;CAC/C,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,eAAe;GACb,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,MAAM;GAAE,MAA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GAAE,MAAM;GAAmB,YAAY;GAAM;EACxD,UAAU;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,kBAAkB;CACtD,MAAM;CACN,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,QAAQ;GAAE,MAAM;GAAgB,YAAY;GAAM;EAClD,OAAO;GACL,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,QAAQ;GACN,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACF;CACF,CAAC;;;;AAKF,MAAa,0BAA0B,kBAAkB;CACvD,MAAM;CACN,QAAQ;EACN,MAAM;GAAE,MAAM;GAAc,SAAS;GAAM,YAAY;GAAO;EAC9D,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAClE;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.integration-hub",
3
- "version": "0.0.0-canary-20251222120211",
3
+ "version": "0.0.0-canary-20251223010757",
4
4
  "description": "Integration Hub example with sync engine and field mappings for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
10
10
  "publish:pkg:canary": "bun publish:pkg --tag canary",
11
- "build": "bun build:bundle && bun build:types",
11
+ "build": "bun build:types && bun build:bundle",
12
12
  "build:bundle": "tsdown",
13
13
  "build:types": "tsc --noEmit",
14
14
  "dev": "bun build:bundle --watch",
@@ -18,20 +18,20 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@lssm/lib.schema": "0.0.0-canary-20251222120211",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251222120211",
23
- "@lssm/lib.bus": "0.0.0-canary-20251222120211",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251222120211",
25
- "@lssm/lib.files": "0.0.0-canary-20251222120211",
26
- "@lssm/lib.feature-flags": "0.0.0-canary-20251222120211",
27
- "@lssm/lib.jobs": "0.0.0-canary-20251222120211",
28
- "@lssm/module.audit-trail": "0.0.0-canary-20251222120211",
29
- "@lssm/module.notifications": "0.0.0-canary-20251222120211",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251223010757",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251223010757",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251223010757",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251223010757",
25
+ "@lssm/lib.files": "0.0.0-canary-20251223010757",
26
+ "@lssm/lib.feature-flags": "0.0.0-canary-20251223010757",
27
+ "@lssm/lib.jobs": "0.0.0-canary-20251223010757",
28
+ "@lssm/module.audit-trail": "0.0.0-canary-20251223010757",
29
+ "@lssm/module.notifications": "0.0.0-canary-20251223010757",
30
30
  "zod": "^4.1.13"
31
31
  },
32
32
  "devDependencies": {
33
- "@lssm/tool.typescript": "0.0.0-canary-20251222120211",
34
- "@lssm/tool.tsdown": "0.0.0-canary-20251222120211",
33
+ "@lssm/tool.typescript": "0.0.0-canary-20251223010757",
34
+ "@lssm/tool.tsdown": "0.0.0-canary-20251223010757",
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "exports": {
@@ -1,6 +0,0 @@
1
- //#region ../../libs/contracts/dist/_virtual/rolldown_runtime.js
2
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
3
-
4
- //#endregion
5
- export { __esmMin };
6
- //# sourceMappingURL=rolldown_runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolldown_runtime.js","names":[],"sources":["../../../../../../../libs/contracts/dist/_virtual/rolldown_runtime.js"],"sourcesContent":["//#region rolldown:runtime\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);\nvar __export = (all, symbols) => {\n\tlet target = {};\n\tfor (var name in all) {\n\t\t__defProp(target, name, {\n\t\t\tget: all[name],\n\t\t\tenumerable: true\n\t\t});\n\t}\n\tif (symbols) {\n\t\t__defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\t}\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __hasOwnProp.call(mod, \"module.exports\") ? mod[\"module.exports\"] : __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n//#endregion\nexport { __esmMin, __export, __toCommonJS };"],"mappings":";AAKA,IAAI,YAAY,IAAI,eAAe,OAAO,MAAM,GAAG,KAAK,EAAE,GAAG"}
@@ -1 +0,0 @@
1
- import "./openbanking.js";
@@ -1,89 +0,0 @@
1
- import { StabilityEnum } from "../ownership.js";
2
-
3
- //#region ../../libs/contracts/dist/capabilities/openbanking.js
4
- const OWNERS = ["platform.finance"];
5
- const TAGS = ["open-banking", "finance"];
6
- const openBankingAccountsReadCapability = {
7
- meta: {
8
- key: "openbanking.accounts.read",
9
- version: 1,
10
- kind: "integration",
11
- title: "Open Banking Accounts (Read)",
12
- description: "Provides read-only access to linked bank accounts, including account summaries and metadata.",
13
- domain: "finance",
14
- owners: [...OWNERS],
15
- tags: [...TAGS],
16
- stability: StabilityEnum.Experimental
17
- },
18
- provides: [
19
- {
20
- surface: "operation",
21
- name: "openbanking.accounts.list",
22
- version: 1,
23
- description: "List bank accounts linked to a Powens open banking connection."
24
- },
25
- {
26
- surface: "operation",
27
- name: "openbanking.accounts.get",
28
- version: 1,
29
- description: "Retrieve the canonical bank account record for a specific account."
30
- },
31
- {
32
- surface: "operation",
33
- name: "openbanking.accounts.sync",
34
- version: 1,
35
- description: "Trigger a refresh of bank account metadata from the open banking provider."
36
- }
37
- ]
38
- };
39
- const openBankingTransactionsReadCapability = {
40
- meta: {
41
- key: "openbanking.transactions.read",
42
- version: 1,
43
- kind: "integration",
44
- title: "Open Banking Transactions (Read)",
45
- description: "Enables retrieval of transaction history for linked bank accounts via open banking providers.",
46
- domain: "finance",
47
- owners: [...OWNERS],
48
- tags: [...TAGS, "transactions"],
49
- stability: StabilityEnum.Experimental
50
- },
51
- provides: [{
52
- surface: "operation",
53
- name: "openbanking.transactions.list",
54
- version: 1,
55
- description: "List transactions for a given bank account with optional date filtering."
56
- }, {
57
- surface: "operation",
58
- name: "openbanking.transactions.sync",
59
- version: 1,
60
- description: "Synchronise transactions from the open banking provider into the canonical ledger."
61
- }]
62
- };
63
- const openBankingBalancesReadCapability = {
64
- meta: {
65
- key: "openbanking.balances.read",
66
- version: 1,
67
- kind: "integration",
68
- title: "Open Banking Balances (Read)",
69
- description: "Allows querying of current and available balances for linked bank accounts via open banking providers.",
70
- domain: "finance",
71
- owners: [...OWNERS],
72
- tags: [...TAGS, "balances"],
73
- stability: StabilityEnum.Experimental
74
- },
75
- provides: [{
76
- surface: "operation",
77
- name: "openbanking.balances.get",
78
- version: 1,
79
- description: "Retrieve the latest known balances for a specified bank account."
80
- }, {
81
- surface: "operation",
82
- name: "openbanking.balances.refresh",
83
- version: 1,
84
- description: "Force a balance refresh from the open banking provider."
85
- }]
86
- };
87
-
88
- //#endregion
89
- //# sourceMappingURL=openbanking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openbanking.js","names":[],"sources":["../../../../../../../libs/contracts/dist/capabilities/openbanking.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\n\n//#region src/capabilities/openbanking.ts\nconst OWNERS = [\"platform.finance\"];\nconst TAGS = [\"open-banking\", \"finance\"];\nconst openBankingAccountsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.accounts.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Accounts (Read)\",\n\t\tdescription: \"Provides read-only access to linked bank accounts, including account summaries and metadata.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.list\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"List bank accounts linked to a Powens open banking connection.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.get\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Retrieve the canonical bank account record for a specific account.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.sync\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Trigger a refresh of bank account metadata from the open banking provider.\"\n\t\t}\n\t]\n};\nconst openBankingTransactionsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.transactions.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Transactions (Read)\",\n\t\tdescription: \"Enables retrieval of transaction history for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"transactions\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.list\",\n\t\tversion: 1,\n\t\tdescription: \"List transactions for a given bank account with optional date filtering.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Synchronise transactions from the open banking provider into the canonical ledger.\"\n\t}]\n};\nconst openBankingBalancesReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.balances.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Balances (Read)\",\n\t\tdescription: \"Allows querying of current and available balances for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"balances\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.get\",\n\t\tversion: 1,\n\t\tdescription: \"Retrieve the latest known balances for a specified bank account.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.refresh\",\n\t\tversion: 1,\n\t\tdescription: \"Force a balance refresh from the open banking provider.\"\n\t}]\n};\nfunction registerOpenBankingCapabilities(registry) {\n\treturn registry.register(openBankingAccountsReadCapability).register(openBankingTransactionsReadCapability).register(openBankingBalancesReadCapability);\n}\n\n//#endregion\nexport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities };"],"mappings":";;;AAGA,MAAM,SAAS,CAAC,mBAAmB;AACnC,MAAM,OAAO,CAAC,gBAAgB,UAAU;AACxC,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,KAAK;EACf,WAAW,cAAc;EACzB;CACD,UAAU;EACT;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;CACD;AACD,MAAM,wCAAwC;CAC7C,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,eAAe;EAC/B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF;AACD,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,WAAW;EAC3B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- 'use client';
2
-
3
- import "./react/feature-render.js";
4
- import "./react/form-render.js";
5
- import "./react/index.js";
@@ -1,3 +0,0 @@
1
- import "../../presentations/transform-engine.js";
2
- import "../../presentations/index.js";
3
- import "react";
@@ -1,5 +0,0 @@
1
- import "../../forms/forms.js";
2
- import "react";
3
- import "react-hook-form";
4
- import "@hookform/resolvers/zod";
5
- import "react/jsx-runtime";
@@ -1,4 +0,0 @@
1
- 'use client';
2
-
3
- import "./feature-render.js";
4
- import "./form-render.js";
@@ -1 +0,0 @@
1
- import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema } from "./schemas.js";