@lssm/example.integration-hub 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.
- package/dist/connection/connection.enum.d.ts +2 -2
- package/dist/connection/connection.enum.js +2 -2
- package/dist/connection/connection.enum.js.map +1 -1
- package/dist/connection/connection.operation.d.ts +1 -1
- package/dist/connection/connection.operation.js +1 -2
- package/dist/connection/connection.operation.js.map +1 -1
- package/dist/connection/connection.schema.d.ts +16 -16
- package/dist/connection/connection.schema.js +15 -15
- package/dist/connection/connection.schema.js.map +1 -1
- package/dist/docs/integration-hub.docblock.js +1 -2
- package/dist/docs/integration-hub.docblock.js.map +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/events.js +43 -44
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/integration/integration.contracts.d.ts +24 -24
- package/dist/integration/integration.contracts.js +1 -2
- package/dist/integration/integration.contracts.js.map +1 -1
- package/dist/integration/integration.enum.d.ts +2 -2
- package/dist/integration/integration.enum.d.ts.map +1 -1
- package/dist/integration/integration.enum.js +2 -2
- package/dist/integration/integration.enum.js.map +1 -1
- package/dist/integration/integration.schema.js +15 -15
- package/dist/integration/integration.schema.js.map +1 -1
- package/dist/sync/sync.contracts.d.ts +125 -125
- package/dist/sync/sync.contracts.js +1 -2
- package/dist/sync/sync.contracts.js.map +1 -1
- package/dist/sync/sync.enum.d.ts +4 -4
- package/dist/sync/sync.enum.js +4 -4
- package/dist/sync/sync.enum.js.map +1 -1
- package/dist/sync/sync.schema.js +56 -56
- package/dist/sync/sync.schema.js.map +1 -1
- package/package.json +13 -13
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
- package/dist/libs/contracts/dist/capabilities/index.js +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
- package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
- package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/index.js +0 -25
- package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
- package/dist/libs/contracts/dist/docs/presentations.js +0 -72
- package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
- package/dist/libs/contracts/dist/docs/registry.js +0 -45
- package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
- package/dist/libs/contracts/dist/events.js +0 -11
- package/dist/libs/contracts/dist/events.js.map +0 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/features.js +0 -7
- package/dist/libs/contracts/dist/features.js.map +0 -1
- package/dist/libs/contracts/dist/forms/forms.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -88
- package/dist/libs/contracts/dist/index.js.map +0 -1
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/operations.js +0 -377
- package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
- package/dist/libs/contracts/dist/jsonschema.js +0 -1
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
- package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
- package/dist/libs/contracts/dist/llm/exporters.js +0 -21
- package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -1
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
- package/dist/libs/contracts/dist/openapi.js +0 -1
- package/dist/libs/contracts/dist/operations/index.js +0 -2
- package/dist/libs/contracts/dist/operations/operation.js +0 -35
- package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
- package/dist/libs/contracts/dist/operations/registry.js +0 -8
- package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
- package/dist/libs/contracts/dist/ownership.js +0 -24
- package/dist/libs/contracts/dist/ownership.js.map +0 -1
- package/dist/libs/contracts/dist/presentations/index.js +0 -2
- package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
- package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
- package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
- package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -1
- package/dist/libs/contracts/dist/regenerator/service.js +0 -7
- package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
- package/dist/libs/contracts/dist/registry-utils.js +0 -24
- package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -3873
- package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -2
- package/dist/libs/contracts/dist/workflow/index.js +0 -2
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/contracts/dist/workflow/spec.js +0 -7
- package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
- package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
- package/dist/libs/schema/dist/index.js +0 -4717
- package/dist/libs/schema/dist/index.js.map +0 -1
package/dist/sync/sync.enum.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
7
|
+
declare const SyncDirectionEnum: _lssm_lib_schema244.EnumType<[string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Sync status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const SyncStatusEnum:
|
|
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:
|
|
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
|
package/dist/sync/sync.enum.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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 =
|
|
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 =
|
|
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 =
|
|
25
|
+
const MappingTypeEnum = defineEnum("MappingType", [
|
|
26
26
|
"DIRECT",
|
|
27
27
|
"TRANSFORM",
|
|
28
28
|
"LOOKUP",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.enum.js","names":[
|
|
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"}
|
package/dist/sync/sync.schema.js
CHANGED
|
@@ -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 =
|
|
8
|
+
const FieldMappingModel = defineSchemaModel({
|
|
9
9
|
name: "FieldMappingModel",
|
|
10
10
|
fields: {
|
|
11
11
|
id: {
|
|
12
|
-
type:
|
|
12
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
13
13
|
isOptional: false
|
|
14
14
|
},
|
|
15
15
|
sourceField: {
|
|
16
|
-
type:
|
|
16
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
17
17
|
isOptional: false
|
|
18
18
|
},
|
|
19
19
|
targetField: {
|
|
20
|
-
type:
|
|
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:
|
|
28
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
29
29
|
isOptional: true
|
|
30
30
|
},
|
|
31
31
|
isRequired: {
|
|
32
|
-
type:
|
|
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 =
|
|
40
|
+
const SyncConfigModel = defineSchemaModel({
|
|
41
41
|
name: "SyncConfigModel",
|
|
42
42
|
fields: {
|
|
43
43
|
id: {
|
|
44
|
-
type:
|
|
44
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
45
45
|
isOptional: false
|
|
46
46
|
},
|
|
47
47
|
integrationId: {
|
|
48
|
-
type:
|
|
48
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
49
49
|
isOptional: false
|
|
50
50
|
},
|
|
51
51
|
connectionId: {
|
|
52
|
-
type:
|
|
52
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
53
53
|
isOptional: false
|
|
54
54
|
},
|
|
55
55
|
name: {
|
|
56
|
-
type:
|
|
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:
|
|
64
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
65
65
|
isOptional: false
|
|
66
66
|
},
|
|
67
67
|
targetObject: {
|
|
68
|
-
type:
|
|
68
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
69
69
|
isOptional: false
|
|
70
70
|
},
|
|
71
71
|
scheduleEnabled: {
|
|
72
|
-
type:
|
|
72
|
+
type: ScalarTypeEnum.Boolean(),
|
|
73
73
|
isOptional: false
|
|
74
74
|
},
|
|
75
75
|
scheduleCron: {
|
|
76
|
-
type:
|
|
76
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
77
77
|
isOptional: true
|
|
78
78
|
},
|
|
79
79
|
isActive: {
|
|
80
|
-
type:
|
|
80
|
+
type: ScalarTypeEnum.Boolean(),
|
|
81
81
|
isOptional: false
|
|
82
82
|
},
|
|
83
83
|
lastSyncAt: {
|
|
84
|
-
type:
|
|
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 =
|
|
97
|
+
const SyncRunModel = defineSchemaModel({
|
|
98
98
|
name: "SyncRunModel",
|
|
99
99
|
fields: {
|
|
100
100
|
id: {
|
|
101
|
-
type:
|
|
101
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
102
102
|
isOptional: false
|
|
103
103
|
},
|
|
104
104
|
syncConfigId: {
|
|
105
|
-
type:
|
|
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:
|
|
117
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
118
118
|
isOptional: false
|
|
119
119
|
},
|
|
120
120
|
recordsProcessed: {
|
|
121
|
-
type:
|
|
121
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
122
122
|
isOptional: false
|
|
123
123
|
},
|
|
124
124
|
recordsCreated: {
|
|
125
|
-
type:
|
|
125
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
126
126
|
isOptional: false
|
|
127
127
|
},
|
|
128
128
|
recordsUpdated: {
|
|
129
|
-
type:
|
|
129
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
130
130
|
isOptional: false
|
|
131
131
|
},
|
|
132
132
|
recordsFailed: {
|
|
133
|
-
type:
|
|
133
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
134
134
|
isOptional: false
|
|
135
135
|
},
|
|
136
136
|
errorMessage: {
|
|
137
|
-
type:
|
|
137
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
138
138
|
isOptional: true
|
|
139
139
|
},
|
|
140
140
|
startedAt: {
|
|
141
|
-
type:
|
|
141
|
+
type: ScalarTypeEnum.DateTime(),
|
|
142
142
|
isOptional: true
|
|
143
143
|
},
|
|
144
144
|
completedAt: {
|
|
145
|
-
type:
|
|
145
|
+
type: ScalarTypeEnum.DateTime(),
|
|
146
146
|
isOptional: true
|
|
147
147
|
},
|
|
148
148
|
createdAt: {
|
|
149
|
-
type:
|
|
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 =
|
|
157
|
+
const CreateSyncConfigInputModel = defineSchemaModel({
|
|
158
158
|
name: "CreateSyncConfigInput",
|
|
159
159
|
fields: {
|
|
160
160
|
integrationId: {
|
|
161
|
-
type:
|
|
161
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
162
162
|
isOptional: false
|
|
163
163
|
},
|
|
164
164
|
connectionId: {
|
|
165
|
-
type:
|
|
165
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
166
166
|
isOptional: false
|
|
167
167
|
},
|
|
168
168
|
name: {
|
|
169
|
-
type:
|
|
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:
|
|
177
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
178
178
|
isOptional: false
|
|
179
179
|
},
|
|
180
180
|
targetObject: {
|
|
181
|
-
type:
|
|
181
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
182
182
|
isOptional: false
|
|
183
183
|
},
|
|
184
184
|
scheduleEnabled: {
|
|
185
|
-
type:
|
|
185
|
+
type: ScalarTypeEnum.Boolean(),
|
|
186
186
|
isOptional: true
|
|
187
187
|
},
|
|
188
188
|
scheduleCron: {
|
|
189
|
-
type:
|
|
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 =
|
|
197
|
+
const AddFieldMappingInputModel = defineSchemaModel({
|
|
198
198
|
name: "AddFieldMappingInput",
|
|
199
199
|
fields: {
|
|
200
200
|
syncConfigId: {
|
|
201
|
-
type:
|
|
201
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
202
202
|
isOptional: false
|
|
203
203
|
},
|
|
204
204
|
sourceField: {
|
|
205
|
-
type:
|
|
205
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
206
206
|
isOptional: false
|
|
207
207
|
},
|
|
208
208
|
targetField: {
|
|
209
|
-
type:
|
|
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:
|
|
217
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
218
218
|
isOptional: true
|
|
219
219
|
},
|
|
220
220
|
lookupConfig: {
|
|
221
|
-
type:
|
|
221
|
+
type: ScalarTypeEnum.JSON(),
|
|
222
222
|
isOptional: true
|
|
223
223
|
},
|
|
224
224
|
constantValue: {
|
|
225
|
-
type:
|
|
225
|
+
type: ScalarTypeEnum.JSON(),
|
|
226
226
|
isOptional: true
|
|
227
227
|
},
|
|
228
228
|
isRequired: {
|
|
229
|
-
type:
|
|
229
|
+
type: ScalarTypeEnum.Boolean(),
|
|
230
230
|
isOptional: true
|
|
231
231
|
},
|
|
232
232
|
defaultValue: {
|
|
233
|
-
type:
|
|
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 =
|
|
241
|
+
const TriggerSyncInputModel = defineSchemaModel({
|
|
242
242
|
name: "TriggerSyncInput",
|
|
243
243
|
fields: {
|
|
244
244
|
syncConfigId: {
|
|
245
|
-
type:
|
|
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:
|
|
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 =
|
|
261
|
+
const ListSyncRunsInputModel = defineSchemaModel({
|
|
262
262
|
name: "ListSyncRunsInput",
|
|
263
263
|
fields: {
|
|
264
264
|
syncConfigId: {
|
|
265
|
-
type:
|
|
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:
|
|
273
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
274
274
|
isOptional: true,
|
|
275
275
|
defaultValue: 20
|
|
276
276
|
},
|
|
277
277
|
offset: {
|
|
278
|
-
type:
|
|
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 =
|
|
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:
|
|
296
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
297
297
|
isOptional: false
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.schema.js","names":[
|
|
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":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.integration-hub",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251223012036",
|
|
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:
|
|
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-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
25
|
-
"@lssm/lib.files": "0.0.0-canary-
|
|
26
|
-
"@lssm/lib.feature-flags": "0.0.0-canary-
|
|
27
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
28
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
29
|
-
"@lssm/module.notifications": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251223012036",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251223012036",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251223012036",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251223012036",
|
|
25
|
+
"@lssm/lib.files": "0.0.0-canary-20251223012036",
|
|
26
|
+
"@lssm/lib.feature-flags": "0.0.0-canary-20251223012036",
|
|
27
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251223012036",
|
|
28
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251223012036",
|
|
29
|
+
"@lssm/module.notifications": "0.0.0-canary-20251223012036",
|
|
30
30
|
"zod": "^4.1.13"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
34
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
33
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251223012036",
|
|
34
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251223012036",
|
|
35
35
|
"typescript": "^5.9.3"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema } from "./schemas.js";
|