@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.
- package/dist/connection/connection.enum.js +2 -2
- package/dist/connection/connection.enum.js.map +1 -1
- package/dist/connection/connection.operation.d.ts +27 -27
- package/dist/connection/connection.operation.d.ts.map +1 -1
- package/dist/connection/connection.operation.js +1 -2
- package/dist/connection/connection.operation.js.map +1 -1
- 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 +42 -42
- package/dist/events.d.ts.map +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.d.ts +16 -16
- 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/events.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { defineEvent } from "
|
|
2
|
-
import "
|
|
3
|
-
import { E5, K5 } from "./libs/schema/dist/index.js";
|
|
1
|
+
import { defineEvent } from "@lssm/lib.contracts";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
|
|
4
3
|
|
|
5
4
|
//#region src/events.ts
|
|
6
|
-
const IntegrationCreatedPayload =
|
|
5
|
+
const IntegrationCreatedPayload = defineSchemaModel({
|
|
7
6
|
name: "IntegrationCreatedPayload",
|
|
8
7
|
description: "Payload when an integration is created",
|
|
9
8
|
fields: {
|
|
10
9
|
integrationId: {
|
|
11
|
-
type:
|
|
10
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
12
11
|
isOptional: false
|
|
13
12
|
},
|
|
14
13
|
type: {
|
|
15
|
-
type:
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
16
15
|
isOptional: false
|
|
17
16
|
},
|
|
18
17
|
createdAt: {
|
|
19
|
-
type:
|
|
18
|
+
type: ScalarTypeEnum.DateTime(),
|
|
20
19
|
isOptional: false
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -27,24 +26,24 @@ const IntegrationCreatedEvent = defineEvent({
|
|
|
27
26
|
description: "Fired when a new integration is created",
|
|
28
27
|
payload: IntegrationCreatedPayload
|
|
29
28
|
});
|
|
30
|
-
const ConnectionCreatedPayload =
|
|
29
|
+
const ConnectionCreatedPayload = defineSchemaModel({
|
|
31
30
|
name: "ConnectionCreatedPayload",
|
|
32
31
|
description: "Payload when a connection is established",
|
|
33
32
|
fields: {
|
|
34
33
|
connectionId: {
|
|
35
|
-
type:
|
|
34
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
36
35
|
isOptional: false
|
|
37
36
|
},
|
|
38
37
|
integrationId: {
|
|
39
|
-
type:
|
|
38
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
40
39
|
isOptional: false
|
|
41
40
|
},
|
|
42
41
|
status: {
|
|
43
|
-
type:
|
|
42
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
44
43
|
isOptional: false
|
|
45
44
|
},
|
|
46
45
|
createdAt: {
|
|
47
|
-
type:
|
|
46
|
+
type: ScalarTypeEnum.DateTime(),
|
|
48
47
|
isOptional: false
|
|
49
48
|
}
|
|
50
49
|
}
|
|
@@ -55,24 +54,24 @@ const ConnectionCreatedEvent = defineEvent({
|
|
|
55
54
|
description: "Fired when a new connection is established",
|
|
56
55
|
payload: ConnectionCreatedPayload
|
|
57
56
|
});
|
|
58
|
-
const ConnectionStatusChangedPayload =
|
|
57
|
+
const ConnectionStatusChangedPayload = defineSchemaModel({
|
|
59
58
|
name: "ConnectionStatusChangedPayload",
|
|
60
59
|
description: "Payload when a connection status changes",
|
|
61
60
|
fields: {
|
|
62
61
|
connectionId: {
|
|
63
|
-
type:
|
|
62
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
64
63
|
isOptional: false
|
|
65
64
|
},
|
|
66
65
|
previousStatus: {
|
|
67
|
-
type:
|
|
66
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
68
67
|
isOptional: false
|
|
69
68
|
},
|
|
70
69
|
newStatus: {
|
|
71
|
-
type:
|
|
70
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
72
71
|
isOptional: false
|
|
73
72
|
},
|
|
74
73
|
changedAt: {
|
|
75
|
-
type:
|
|
74
|
+
type: ScalarTypeEnum.DateTime(),
|
|
76
75
|
isOptional: false
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -83,20 +82,20 @@ const ConnectionStatusChangedEvent = defineEvent({
|
|
|
83
82
|
description: "Fired when a connection status changes",
|
|
84
83
|
payload: ConnectionStatusChangedPayload
|
|
85
84
|
});
|
|
86
|
-
const SyncConfigCreatedPayload =
|
|
85
|
+
const SyncConfigCreatedPayload = defineSchemaModel({
|
|
87
86
|
name: "SyncConfigCreatedPayload",
|
|
88
87
|
description: "Payload when a sync configuration is created",
|
|
89
88
|
fields: {
|
|
90
89
|
syncConfigId: {
|
|
91
|
-
type:
|
|
90
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
92
91
|
isOptional: false
|
|
93
92
|
},
|
|
94
93
|
connectionId: {
|
|
95
|
-
type:
|
|
94
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
96
95
|
isOptional: false
|
|
97
96
|
},
|
|
98
97
|
createdAt: {
|
|
99
|
-
type:
|
|
98
|
+
type: ScalarTypeEnum.DateTime(),
|
|
100
99
|
isOptional: false
|
|
101
100
|
}
|
|
102
101
|
}
|
|
@@ -107,20 +106,20 @@ const SyncConfigCreatedEvent = defineEvent({
|
|
|
107
106
|
description: "Fired when a sync configuration is created",
|
|
108
107
|
payload: SyncConfigCreatedPayload
|
|
109
108
|
});
|
|
110
|
-
const SyncStartedPayload =
|
|
109
|
+
const SyncStartedPayload = defineSchemaModel({
|
|
111
110
|
name: "SyncStartedPayload",
|
|
112
111
|
description: "Payload when a sync run starts",
|
|
113
112
|
fields: {
|
|
114
113
|
syncRunId: {
|
|
115
|
-
type:
|
|
114
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
116
115
|
isOptional: false
|
|
117
116
|
},
|
|
118
117
|
syncConfigId: {
|
|
119
|
-
type:
|
|
118
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
120
119
|
isOptional: false
|
|
121
120
|
},
|
|
122
121
|
startedAt: {
|
|
123
|
-
type:
|
|
122
|
+
type: ScalarTypeEnum.DateTime(),
|
|
124
123
|
isOptional: false
|
|
125
124
|
}
|
|
126
125
|
}
|
|
@@ -131,24 +130,24 @@ const SyncStartedEvent = defineEvent({
|
|
|
131
130
|
description: "Fired when a sync run starts",
|
|
132
131
|
payload: SyncStartedPayload
|
|
133
132
|
});
|
|
134
|
-
const SyncCompletedPayload =
|
|
133
|
+
const SyncCompletedPayload = defineSchemaModel({
|
|
135
134
|
name: "SyncCompletedPayload",
|
|
136
135
|
description: "Payload when a sync run completes successfully",
|
|
137
136
|
fields: {
|
|
138
137
|
syncRunId: {
|
|
139
|
-
type:
|
|
138
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
140
139
|
isOptional: false
|
|
141
140
|
},
|
|
142
141
|
syncConfigId: {
|
|
143
|
-
type:
|
|
142
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
144
143
|
isOptional: false
|
|
145
144
|
},
|
|
146
145
|
recordsProcessed: {
|
|
147
|
-
type:
|
|
146
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
148
147
|
isOptional: false
|
|
149
148
|
},
|
|
150
149
|
completedAt: {
|
|
151
|
-
type:
|
|
150
|
+
type: ScalarTypeEnum.DateTime(),
|
|
152
151
|
isOptional: false
|
|
153
152
|
}
|
|
154
153
|
}
|
|
@@ -159,24 +158,24 @@ const SyncCompletedEvent = defineEvent({
|
|
|
159
158
|
description: "Fired when a sync run completes successfully",
|
|
160
159
|
payload: SyncCompletedPayload
|
|
161
160
|
});
|
|
162
|
-
const SyncFailedPayload =
|
|
161
|
+
const SyncFailedPayload = defineSchemaModel({
|
|
163
162
|
name: "SyncFailedPayload",
|
|
164
163
|
description: "Payload when a sync run fails",
|
|
165
164
|
fields: {
|
|
166
165
|
syncRunId: {
|
|
167
|
-
type:
|
|
166
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
168
167
|
isOptional: false
|
|
169
168
|
},
|
|
170
169
|
syncConfigId: {
|
|
171
|
-
type:
|
|
170
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
172
171
|
isOptional: false
|
|
173
172
|
},
|
|
174
173
|
error: {
|
|
175
|
-
type:
|
|
174
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
176
175
|
isOptional: false
|
|
177
176
|
},
|
|
178
177
|
failedAt: {
|
|
179
|
-
type:
|
|
178
|
+
type: ScalarTypeEnum.DateTime(),
|
|
180
179
|
isOptional: false
|
|
181
180
|
}
|
|
182
181
|
}
|
|
@@ -187,24 +186,24 @@ const SyncFailedEvent = defineEvent({
|
|
|
187
186
|
description: "Fired when a sync run fails",
|
|
188
187
|
payload: SyncFailedPayload
|
|
189
188
|
});
|
|
190
|
-
const RecordSyncedPayload =
|
|
189
|
+
const RecordSyncedPayload = defineSchemaModel({
|
|
191
190
|
name: "RecordSyncedPayload",
|
|
192
191
|
description: "Payload when a single record is synced",
|
|
193
192
|
fields: {
|
|
194
193
|
syncRunId: {
|
|
195
|
-
type:
|
|
194
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
196
195
|
isOptional: false
|
|
197
196
|
},
|
|
198
197
|
recordId: {
|
|
199
|
-
type:
|
|
198
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
200
199
|
isOptional: false
|
|
201
200
|
},
|
|
202
201
|
sourceId: {
|
|
203
|
-
type:
|
|
202
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
204
203
|
isOptional: false
|
|
205
204
|
},
|
|
206
205
|
targetId: {
|
|
207
|
-
type:
|
|
206
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
208
207
|
isOptional: false
|
|
209
208
|
}
|
|
210
209
|
}
|
|
@@ -215,20 +214,20 @@ const RecordSyncedEvent = defineEvent({
|
|
|
215
214
|
description: "Fired when a single record is synced",
|
|
216
215
|
payload: RecordSyncedPayload
|
|
217
216
|
});
|
|
218
|
-
const FieldMappingAddedPayload =
|
|
217
|
+
const FieldMappingAddedPayload = defineSchemaModel({
|
|
219
218
|
name: "FieldMappingAddedPayload",
|
|
220
219
|
description: "Payload when a field mapping is added to a sync config",
|
|
221
220
|
fields: {
|
|
222
221
|
syncConfigId: {
|
|
223
|
-
type:
|
|
222
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
224
223
|
isOptional: false
|
|
225
224
|
},
|
|
226
225
|
sourceField: {
|
|
227
|
-
type:
|
|
226
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
228
227
|
isOptional: false
|
|
229
228
|
},
|
|
230
229
|
targetField: {
|
|
231
|
-
type:
|
|
230
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
232
231
|
isOptional: false
|
|
233
232
|
}
|
|
234
233
|
}
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","names":[
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { defineEvent } from '@lssm/lib.contracts';\nimport { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\n\n// Integration events\nconst IntegrationCreatedPayload = defineSchemaModel({\n name: 'IntegrationCreatedPayload',\n description: 'Payload when an integration is created',\n fields: {\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const IntegrationCreatedEvent = defineEvent({\n name: 'integration.created',\n version: 1,\n description: 'Fired when a new integration is created',\n payload: IntegrationCreatedPayload,\n});\n\n// Connection events\nconst ConnectionCreatedPayload = defineSchemaModel({\n name: 'ConnectionCreatedPayload',\n description: 'Payload when a connection is established',\n fields: {\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ConnectionCreatedEvent = defineEvent({\n name: 'integration.connection.created',\n version: 1,\n description: 'Fired when a new connection is established',\n payload: ConnectionCreatedPayload,\n});\n\nconst ConnectionStatusChangedPayload = defineSchemaModel({\n name: 'ConnectionStatusChangedPayload',\n description: 'Payload when a connection status changes',\n fields: {\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n previousStatus: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n newStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ConnectionStatusChangedEvent = defineEvent({\n name: 'integration.connection.statusChanged',\n version: 1,\n description: 'Fired when a connection status changes',\n payload: ConnectionStatusChangedPayload,\n});\n\n// Sync config events\nconst SyncConfigCreatedPayload = defineSchemaModel({\n name: 'SyncConfigCreatedPayload',\n description: 'Payload when a sync configuration is created',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const SyncConfigCreatedEvent = defineEvent({\n name: 'integration.syncConfig.created',\n version: 1,\n description: 'Fired when a sync configuration is created',\n payload: SyncConfigCreatedPayload,\n});\n\n// Sync run events\nconst SyncStartedPayload = defineSchemaModel({\n name: 'SyncStartedPayload',\n description: 'Payload when a sync run starts',\n fields: {\n syncRunId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const SyncStartedEvent = defineEvent({\n name: 'integration.sync.started',\n version: 1,\n description: 'Fired when a sync run starts',\n payload: SyncStartedPayload,\n});\n\nconst SyncCompletedPayload = defineSchemaModel({\n name: 'SyncCompletedPayload',\n description: 'Payload when a sync run completes successfully',\n fields: {\n syncRunId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n recordsProcessed: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const SyncCompletedEvent = defineEvent({\n name: 'integration.sync.completed',\n version: 1,\n description: 'Fired when a sync run completes successfully',\n payload: SyncCompletedPayload,\n});\n\nconst SyncFailedPayload = defineSchemaModel({\n name: 'SyncFailedPayload',\n description: 'Payload when a sync run fails',\n fields: {\n syncRunId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n failedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const SyncFailedEvent = defineEvent({\n name: 'integration.sync.failed',\n version: 1,\n description: 'Fired when a sync run fails',\n payload: SyncFailedPayload,\n});\n\nconst RecordSyncedPayload = defineSchemaModel({\n name: 'RecordSyncedPayload',\n description: 'Payload when a single record is synced',\n fields: {\n syncRunId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n recordId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const RecordSyncedEvent = defineEvent({\n name: 'integration.record.synced',\n version: 1,\n description: 'Fired when a single record is synced',\n payload: RecordSyncedPayload,\n});\n\nconst FieldMappingAddedPayload = defineSchemaModel({\n name: 'FieldMappingAddedPayload',\n description: 'Payload when a field mapping is added to a sync config',\n fields: {\n syncConfigId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n targetField: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const FieldMappingAddedEvent = defineEvent({\n name: 'integration.fieldMapping.added',\n version: 1,\n description: 'Fired when a field mapping is added to a sync config',\n payload: FieldMappingAddedPayload,\n});\n"],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ConnectionStatusEnum } from "./connection/connection.enum.js";
|
|
2
2
|
import { CreateConnectionContract } from "./connection/connection.operation.js";
|
|
3
3
|
import { ConnectionModel, CreateConnectionInputModel } from "./connection/connection.schema.js";
|
|
4
|
+
import "./connection/index.js";
|
|
4
5
|
import { IntegrationStatusEnum } from "./integration/integration.enum.js";
|
|
5
6
|
import { CreateIntegrationInputModel, IntegrationModel } from "./integration/integration.schema.js";
|
|
6
7
|
import { CreateIntegrationContract } from "./integration/integration.contracts.js";
|
|
8
|
+
import "./integration/index.js";
|
|
7
9
|
import { MappingTypeEnum, SyncDirectionEnum, SyncStatusEnum } from "./sync/sync.enum.js";
|
|
8
10
|
import { AddFieldMappingInputModel, CreateSyncConfigInputModel, FieldMappingModel, ListSyncRunsInputModel, ListSyncRunsOutputModel, SyncConfigModel, SyncRunModel, TriggerSyncInputModel } from "./sync/sync.schema.js";
|
|
9
11
|
import { AddFieldMappingContract, CreateSyncConfigContract, ListSyncRunsContract, TriggerSyncContract } from "./sync/sync.contracts.js";
|
|
12
|
+
import "./sync/index.js";
|
|
10
13
|
import { BasicFieldTransformer, BasicSyncEngine, FieldMapping, IFieldTransformer, ISyncEngine, LookupConfig, SourceRecord, SyncConfig, SyncContext, SyncError, SyncResult, TargetRecord, computeChecksum, createSyncEngine, hasChanges } from "./sync-engine/index.js";
|
|
11
14
|
export { AddFieldMappingContract, AddFieldMappingInputModel, BasicFieldTransformer, BasicSyncEngine, ConnectionModel, ConnectionStatusEnum, CreateConnectionContract, CreateConnectionInputModel, CreateIntegrationContract, CreateIntegrationInputModel, CreateSyncConfigContract, CreateSyncConfigInputModel, FieldMapping, FieldMappingModel, IFieldTransformer, ISyncEngine, IntegrationModel, IntegrationStatusEnum, ListSyncRunsContract, ListSyncRunsInputModel, ListSyncRunsOutputModel, LookupConfig, MappingTypeEnum, SourceRecord, SyncConfig, SyncConfigModel, SyncContext, SyncDirectionEnum, SyncError, SyncResult, SyncRunModel, SyncStatusEnum, TargetRecord, TriggerSyncContract, TriggerSyncInputModel, computeChecksum, createSyncEngine, hasChanges };
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import * as _lssm_lib_schema82 from "@lssm/lib.schema";
|
|
2
1
|
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema81 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/integration/integration.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new integration.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateIntegrationContract: _lssm_lib_contracts9.OperationSpec<
|
|
8
|
+
declare const CreateIntegrationContract: _lssm_lib_contracts9.OperationSpec<_lssm_lib_schema81.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
slug: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
description: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
provider: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
config: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema81.FieldType<unknown, unknown>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
featureFlagKey: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
|
-
}>,
|
|
33
|
+
}>, _lssm_lib_schema81.SchemaModel<{
|
|
34
34
|
id: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
name: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
slug: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
description: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
provider: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
status: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema81.EnumType<[string, string, string, string, string]>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
createdAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema81.FieldType<Date, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
}>, {
|
|
63
63
|
name: string;
|
|
64
64
|
version: number;
|
|
65
65
|
when: string;
|
|
66
|
-
payload:
|
|
66
|
+
payload: _lssm_lib_schema81.SchemaModel<{
|
|
67
67
|
id: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
name: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
slug: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
description: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
provider: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema81.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
status: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema81.EnumType<[string, string, string, string, string]>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
createdAt: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema81.FieldType<Date, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
}>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from "../libs/contracts/dist/operations/operation.js";
|
|
2
|
-
import "../libs/contracts/dist/operations/index.js";
|
|
3
1
|
import { CreateIntegrationInputModel, IntegrationModel } from "./integration.schema.js";
|
|
2
|
+
import { defineCommand } from "@lssm/lib.contracts/operations";
|
|
4
3
|
|
|
5
4
|
//#region src/integration/integration.contracts.ts
|
|
6
5
|
const OWNERS = ["@example.integration-hub"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.contracts.js","names":[],"sources":["../../src/integration/integration.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/operations';\nimport {\n CreateIntegrationInputModel,\n IntegrationModel,\n} from './integration.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a new integration.\n */\nexport const CreateIntegrationContract = defineCommand({\n meta: {\n name: 'integration.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'create'],\n description: 'Create a new integration.',\n goal: 'Allow users to set up integrations with external systems.',\n context: 'Integration setup.',\n },\n io: { input: CreateIntegrationInputModel, output: IntegrationModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'integration.created',\n version: 1,\n when: 'Integration created',\n payload: IntegrationModel,\n },\n ],\n audit: ['integration.created'],\n },\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration.contracts.js","names":[],"sources":["../../src/integration/integration.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/operations';\nimport {\n CreateIntegrationInputModel,\n IntegrationModel,\n} from './integration.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a new integration.\n */\nexport const CreateIntegrationContract = defineCommand({\n meta: {\n name: 'integration.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'create'],\n description: 'Create a new integration.',\n goal: 'Allow users to set up integrations with external systems.',\n context: 'Integration setup.',\n },\n io: { input: CreateIntegrationInputModel, output: IntegrationModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'integration.created',\n version: 1,\n when: 'Integration created',\n payload: IntegrationModel,\n },\n ],\n audit: ['integration.created'],\n },\n});\n"],"mappings":";;;;AAMA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,4BAA4B,cAAc;CACrD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,eAAe,SAAS;EAC/B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA6B,QAAQ;EAAkB;CACpE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,sBAAsB;EAC/B;CACF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema119 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/integration/integration.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Integration status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const IntegrationStatusEnum:
|
|
7
|
+
declare const IntegrationStatusEnum: _lssm_lib_schema119.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { IntegrationStatusEnum };
|
|
10
10
|
//# sourceMappingURL=integration.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.enum.d.ts","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,qBAMX,EAAA,
|
|
1
|
+
{"version":3,"file":"integration.enum.d.ts","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,qBAMX,EAAA,mBAAA,CANgC,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineEnum } from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/integration/integration.enum.ts
|
|
4
4
|
/**
|
|
5
5
|
* Integration status enum.
|
|
6
6
|
*/
|
|
7
|
-
const IntegrationStatusEnum =
|
|
7
|
+
const IntegrationStatusEnum = defineEnum("IntegrationStatus", [
|
|
8
8
|
"DRAFT",
|
|
9
9
|
"ACTIVE",
|
|
10
10
|
"PAUSED",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.enum.js","names":[
|
|
1
|
+
{"version":3,"file":"integration.enum.js","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Integration status enum.\n */\nexport const IntegrationStatusEnum = defineEnum('IntegrationStatus', [\n 'DRAFT',\n 'ACTIVE',\n 'PAUSED',\n 'ERROR',\n 'ARCHIVED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,wBAAwB,WAAW,qBAAqB;CACnE;CACA;CACA;CACA;CACA;CACD,CAAC"}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema104 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/integration/integration.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An integration with an external system.
|
|
6
6
|
*/
|
|
7
|
-
declare const IntegrationModel:
|
|
7
|
+
declare const IntegrationModel: _lssm_lib_schema104.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
name: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
slug: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
description: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
22
22
|
isOptional: true;
|
|
23
23
|
};
|
|
24
24
|
provider: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema104.EnumType<[string, string, string, string, string]>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
createdAt: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema104.FieldType<Date, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
38
|
* Input for creating an integration.
|
|
39
39
|
*/
|
|
40
|
-
declare const CreateIntegrationInputModel:
|
|
40
|
+
declare const CreateIntegrationInputModel: _lssm_lib_schema104.SchemaModel<{
|
|
41
41
|
name: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
slug: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
description: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
51
51
|
isOptional: true;
|
|
52
52
|
};
|
|
53
53
|
provider: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
config: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema104.FieldType<unknown, unknown>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
featureFlagKey: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema104.FieldType<string, string>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|