@lssm/example.integration-hub 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406
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.contracts.d.ts +27 -27
- package/dist/connection/connection.contracts.js +41 -1
- package/dist/connection/connection.enum.d.ts +2 -2
- package/dist/connection/connection.enum.js +17 -1
- package/dist/connection/connection.presentation.js +50 -1
- package/dist/connection/connection.schema.d.ts +16 -16
- package/dist/connection/connection.schema.js +77 -1
- package/dist/connection/index.js +5 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/integration-hub.docblock.js +61 -5
- package/dist/events.d.ts +43 -43
- package/dist/events.js +246 -1
- package/dist/example.js +50 -1
- package/dist/index.js +15 -1
- package/dist/integration/index.js +5 -1
- package/dist/integration/integration.contracts.d.ts +25 -25
- package/dist/integration/integration.contracts.js +37 -1
- package/dist/integration/integration.enum.d.ts +2 -2
- package/dist/integration/integration.enum.js +17 -1
- package/dist/integration/integration.presentation.js +63 -1
- package/dist/integration/integration.schema.d.ts +16 -16
- package/dist/integration/integration.schema.js +77 -1
- package/dist/integration-hub.feature.js +237 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
- package/dist/libs/contracts/dist/client/index.js +5 -1
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
- package/dist/libs/contracts/dist/client/react/index.js +4 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
- package/dist/libs/contracts/dist/docs/index.js +29 -1
- package/dist/libs/contracts/dist/docs/presentations.js +71 -1
- package/dist/libs/contracts/dist/docs/registry.js +44 -1
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
- package/dist/libs/contracts/dist/events.js +10 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
- package/dist/libs/contracts/dist/index.js +71 -1
- package/dist/libs/contracts/dist/install.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
- package/dist/libs/contracts/dist/integrations/index.js +18 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
- package/dist/libs/contracts/dist/knowledge/index.js +7 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
- package/dist/libs/contracts/dist/llm/exporters.js +19 -1
- package/dist/libs/contracts/dist/llm/index.js +2 -1
- package/dist/libs/contracts/dist/llm/prompts.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +196 -1
- package/dist/libs/contracts/dist/openapi.js +1 -1
- package/dist/libs/contracts/dist/ownership.js +21 -1
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +11 -1
- package/dist/libs/contracts/dist/prompt.js +1 -1
- package/dist/libs/contracts/dist/promptRegistry.js +1 -1
- package/dist/libs/contracts/dist/regenerator/index.js +1 -1
- package/dist/libs/contracts/dist/regenerator/service.js +6 -1
- package/dist/libs/contracts/dist/registry.js +2 -1
- package/dist/libs/contracts/dist/resources.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -1
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
- package/dist/libs/contracts/dist/server/index.js +8 -1
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
- package/dist/libs/contracts/dist/server/rest-express.js +1 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
- package/dist/libs/contracts/dist/spec.js +34 -1
- package/dist/libs/contracts/dist/telemetry/index.js +1 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
- package/dist/libs/contracts/dist/tests/index.js +1 -1
- package/dist/libs/contracts/dist/tests/runner.js +2 -1
- package/dist/libs/contracts/dist/workflow/index.js +1 -1
- package/dist/libs/contracts/dist/workflow/runner.js +1 -1
- package/dist/libs/schema/dist/EnumType.js +56 -1
- package/dist/libs/schema/dist/FieldType.js +49 -1
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/schema/dist/entity/index.js +2 -1
- package/dist/libs/schema/dist/entity/types.js +1 -1
- package/dist/libs/schema/dist/index.js +6 -1
- package/dist/sync/index.js +5 -1
- package/dist/sync/sync.contracts.d.ts +125 -125
- package/dist/sync/sync.contracts.js +130 -1
- package/dist/sync/sync.enum.d.ts +4 -4
- package/dist/sync/sync.enum.js +35 -1
- package/dist/sync/sync.presentation.js +142 -1
- package/dist/sync/sync.schema.d.ts +85 -85
- package/dist/sync/sync.schema.js +305 -1
- package/dist/sync-engine/index.js +146 -1
- package/package.json +12 -12
package/dist/events.d.ts
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const IntegrationCreatedEvent:
|
|
5
|
+
declare const IntegrationCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
6
|
integrationId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
createdAt: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
}>>;
|
|
19
|
-
declare const ConnectionCreatedEvent:
|
|
19
|
+
declare const ConnectionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
20
20
|
connectionId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
integrationId: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
createdAt: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>>;
|
|
37
|
-
declare const ConnectionStatusChangedEvent:
|
|
37
|
+
declare const ConnectionStatusChangedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
38
38
|
connectionId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
previousStatus: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
newStatus: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
changedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
}>>;
|
|
55
|
-
declare const SyncConfigCreatedEvent:
|
|
55
|
+
declare const SyncConfigCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
56
56
|
syncConfigId: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
connectionId: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
createdAt: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
}>>;
|
|
69
|
-
declare const SyncStartedEvent:
|
|
69
|
+
declare const SyncStartedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
70
70
|
syncRunId: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
syncConfigId: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
startedAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
}>>;
|
|
83
|
-
declare const SyncCompletedEvent:
|
|
83
|
+
declare const SyncCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
84
84
|
syncRunId: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
syncConfigId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
recordsProcessed: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
completedAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>>;
|
|
101
|
-
declare const SyncFailedEvent:
|
|
101
|
+
declare const SyncFailedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
102
102
|
syncRunId: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
104
104
|
isOptional: false;
|
|
105
105
|
};
|
|
106
106
|
syncConfigId: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
error: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
failedAt: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
}>>;
|
|
119
|
-
declare const RecordSyncedEvent:
|
|
119
|
+
declare const RecordSyncedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
120
120
|
syncRunId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
recordId: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
sourceId: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
targetId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
}>>;
|
|
137
|
-
declare const FieldMappingAddedEvent:
|
|
137
|
+
declare const FieldMappingAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
138
138
|
syncConfigId: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
sourceField: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
targetField: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -1 +1,246 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineEvent } from "./libs/contracts/dist/events.js";
|
|
2
|
+
import "./libs/contracts/dist/index.js";
|
|
3
|
+
import { ScalarTypeEnum } from "./libs/schema/dist/ScalarTypeEnum.js";
|
|
4
|
+
import { defineSchemaModel } from "./libs/schema/dist/SchemaModel.js";
|
|
5
|
+
import "./libs/schema/dist/index.js";
|
|
6
|
+
|
|
7
|
+
//#region src/events.ts
|
|
8
|
+
const IntegrationCreatedPayload = defineSchemaModel({
|
|
9
|
+
name: "IntegrationCreatedPayload",
|
|
10
|
+
description: "Payload when an integration is created",
|
|
11
|
+
fields: {
|
|
12
|
+
integrationId: {
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
|
+
isOptional: false
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
|
+
isOptional: false
|
|
19
|
+
},
|
|
20
|
+
createdAt: {
|
|
21
|
+
type: ScalarTypeEnum.DateTime(),
|
|
22
|
+
isOptional: false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const IntegrationCreatedEvent = defineEvent({
|
|
27
|
+
name: "integration.created",
|
|
28
|
+
version: 1,
|
|
29
|
+
description: "Fired when a new integration is created",
|
|
30
|
+
payload: IntegrationCreatedPayload
|
|
31
|
+
});
|
|
32
|
+
const ConnectionCreatedPayload = defineSchemaModel({
|
|
33
|
+
name: "ConnectionCreatedPayload",
|
|
34
|
+
description: "Payload when a connection is established",
|
|
35
|
+
fields: {
|
|
36
|
+
connectionId: {
|
|
37
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
38
|
+
isOptional: false
|
|
39
|
+
},
|
|
40
|
+
integrationId: {
|
|
41
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
42
|
+
isOptional: false
|
|
43
|
+
},
|
|
44
|
+
status: {
|
|
45
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
46
|
+
isOptional: false
|
|
47
|
+
},
|
|
48
|
+
createdAt: {
|
|
49
|
+
type: ScalarTypeEnum.DateTime(),
|
|
50
|
+
isOptional: false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const ConnectionCreatedEvent = defineEvent({
|
|
55
|
+
name: "integration.connection.created",
|
|
56
|
+
version: 1,
|
|
57
|
+
description: "Fired when a new connection is established",
|
|
58
|
+
payload: ConnectionCreatedPayload
|
|
59
|
+
});
|
|
60
|
+
const ConnectionStatusChangedPayload = defineSchemaModel({
|
|
61
|
+
name: "ConnectionStatusChangedPayload",
|
|
62
|
+
description: "Payload when a connection status changes",
|
|
63
|
+
fields: {
|
|
64
|
+
connectionId: {
|
|
65
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
66
|
+
isOptional: false
|
|
67
|
+
},
|
|
68
|
+
previousStatus: {
|
|
69
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
70
|
+
isOptional: false
|
|
71
|
+
},
|
|
72
|
+
newStatus: {
|
|
73
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
74
|
+
isOptional: false
|
|
75
|
+
},
|
|
76
|
+
changedAt: {
|
|
77
|
+
type: ScalarTypeEnum.DateTime(),
|
|
78
|
+
isOptional: false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const ConnectionStatusChangedEvent = defineEvent({
|
|
83
|
+
name: "integration.connection.statusChanged",
|
|
84
|
+
version: 1,
|
|
85
|
+
description: "Fired when a connection status changes",
|
|
86
|
+
payload: ConnectionStatusChangedPayload
|
|
87
|
+
});
|
|
88
|
+
const SyncConfigCreatedPayload = defineSchemaModel({
|
|
89
|
+
name: "SyncConfigCreatedPayload",
|
|
90
|
+
description: "Payload when a sync configuration is created",
|
|
91
|
+
fields: {
|
|
92
|
+
syncConfigId: {
|
|
93
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
94
|
+
isOptional: false
|
|
95
|
+
},
|
|
96
|
+
connectionId: {
|
|
97
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
98
|
+
isOptional: false
|
|
99
|
+
},
|
|
100
|
+
createdAt: {
|
|
101
|
+
type: ScalarTypeEnum.DateTime(),
|
|
102
|
+
isOptional: false
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const SyncConfigCreatedEvent = defineEvent({
|
|
107
|
+
name: "integration.syncConfig.created",
|
|
108
|
+
version: 1,
|
|
109
|
+
description: "Fired when a sync configuration is created",
|
|
110
|
+
payload: SyncConfigCreatedPayload
|
|
111
|
+
});
|
|
112
|
+
const SyncStartedPayload = defineSchemaModel({
|
|
113
|
+
name: "SyncStartedPayload",
|
|
114
|
+
description: "Payload when a sync run starts",
|
|
115
|
+
fields: {
|
|
116
|
+
syncRunId: {
|
|
117
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
118
|
+
isOptional: false
|
|
119
|
+
},
|
|
120
|
+
syncConfigId: {
|
|
121
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
122
|
+
isOptional: false
|
|
123
|
+
},
|
|
124
|
+
startedAt: {
|
|
125
|
+
type: ScalarTypeEnum.DateTime(),
|
|
126
|
+
isOptional: false
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const SyncStartedEvent = defineEvent({
|
|
131
|
+
name: "integration.sync.started",
|
|
132
|
+
version: 1,
|
|
133
|
+
description: "Fired when a sync run starts",
|
|
134
|
+
payload: SyncStartedPayload
|
|
135
|
+
});
|
|
136
|
+
const SyncCompletedPayload = defineSchemaModel({
|
|
137
|
+
name: "SyncCompletedPayload",
|
|
138
|
+
description: "Payload when a sync run completes successfully",
|
|
139
|
+
fields: {
|
|
140
|
+
syncRunId: {
|
|
141
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
142
|
+
isOptional: false
|
|
143
|
+
},
|
|
144
|
+
syncConfigId: {
|
|
145
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
146
|
+
isOptional: false
|
|
147
|
+
},
|
|
148
|
+
recordsProcessed: {
|
|
149
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
150
|
+
isOptional: false
|
|
151
|
+
},
|
|
152
|
+
completedAt: {
|
|
153
|
+
type: ScalarTypeEnum.DateTime(),
|
|
154
|
+
isOptional: false
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
const SyncCompletedEvent = defineEvent({
|
|
159
|
+
name: "integration.sync.completed",
|
|
160
|
+
version: 1,
|
|
161
|
+
description: "Fired when a sync run completes successfully",
|
|
162
|
+
payload: SyncCompletedPayload
|
|
163
|
+
});
|
|
164
|
+
const SyncFailedPayload = defineSchemaModel({
|
|
165
|
+
name: "SyncFailedPayload",
|
|
166
|
+
description: "Payload when a sync run fails",
|
|
167
|
+
fields: {
|
|
168
|
+
syncRunId: {
|
|
169
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
170
|
+
isOptional: false
|
|
171
|
+
},
|
|
172
|
+
syncConfigId: {
|
|
173
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
174
|
+
isOptional: false
|
|
175
|
+
},
|
|
176
|
+
error: {
|
|
177
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
178
|
+
isOptional: false
|
|
179
|
+
},
|
|
180
|
+
failedAt: {
|
|
181
|
+
type: ScalarTypeEnum.DateTime(),
|
|
182
|
+
isOptional: false
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
const SyncFailedEvent = defineEvent({
|
|
187
|
+
name: "integration.sync.failed",
|
|
188
|
+
version: 1,
|
|
189
|
+
description: "Fired when a sync run fails",
|
|
190
|
+
payload: SyncFailedPayload
|
|
191
|
+
});
|
|
192
|
+
const RecordSyncedPayload = defineSchemaModel({
|
|
193
|
+
name: "RecordSyncedPayload",
|
|
194
|
+
description: "Payload when a single record is synced",
|
|
195
|
+
fields: {
|
|
196
|
+
syncRunId: {
|
|
197
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
198
|
+
isOptional: false
|
|
199
|
+
},
|
|
200
|
+
recordId: {
|
|
201
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
202
|
+
isOptional: false
|
|
203
|
+
},
|
|
204
|
+
sourceId: {
|
|
205
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
206
|
+
isOptional: false
|
|
207
|
+
},
|
|
208
|
+
targetId: {
|
|
209
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
210
|
+
isOptional: false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
const RecordSyncedEvent = defineEvent({
|
|
215
|
+
name: "integration.record.synced",
|
|
216
|
+
version: 1,
|
|
217
|
+
description: "Fired when a single record is synced",
|
|
218
|
+
payload: RecordSyncedPayload
|
|
219
|
+
});
|
|
220
|
+
const FieldMappingAddedPayload = defineSchemaModel({
|
|
221
|
+
name: "FieldMappingAddedPayload",
|
|
222
|
+
description: "Payload when a field mapping is added to a sync config",
|
|
223
|
+
fields: {
|
|
224
|
+
syncConfigId: {
|
|
225
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
226
|
+
isOptional: false
|
|
227
|
+
},
|
|
228
|
+
sourceField: {
|
|
229
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
230
|
+
isOptional: false
|
|
231
|
+
},
|
|
232
|
+
targetField: {
|
|
233
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
234
|
+
isOptional: false
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
const FieldMappingAddedEvent = defineEvent({
|
|
239
|
+
name: "integration.fieldMapping.added",
|
|
240
|
+
version: 1,
|
|
241
|
+
description: "Fired when a field mapping is added to a sync config",
|
|
242
|
+
payload: FieldMappingAddedPayload
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
//#endregion
|
|
246
|
+
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
package/dist/example.js
CHANGED
|
@@ -1 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/example.ts
|
|
2
|
+
const example = {
|
|
3
|
+
id: "integration-hub",
|
|
4
|
+
title: "Integration Hub",
|
|
5
|
+
summary: "Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.",
|
|
6
|
+
tags: [
|
|
7
|
+
"integrations",
|
|
8
|
+
"sync",
|
|
9
|
+
"etl",
|
|
10
|
+
"connectors"
|
|
11
|
+
],
|
|
12
|
+
kind: "template",
|
|
13
|
+
visibility: "public",
|
|
14
|
+
docs: {
|
|
15
|
+
rootDocId: "docs.examples.integration-hub",
|
|
16
|
+
goalDocId: "docs.examples.integration-hub.goal",
|
|
17
|
+
usageDocId: "docs.examples.integration-hub.usage",
|
|
18
|
+
constraintsDocId: "docs.examples.integration-hub.constraints"
|
|
19
|
+
},
|
|
20
|
+
entrypoints: {
|
|
21
|
+
packageName: "@lssm/example.integration-hub",
|
|
22
|
+
feature: "./feature",
|
|
23
|
+
contracts: "./contracts",
|
|
24
|
+
presentations: "./presentations",
|
|
25
|
+
handlers: "./handlers",
|
|
26
|
+
docs: "./docs"
|
|
27
|
+
},
|
|
28
|
+
surfaces: {
|
|
29
|
+
templates: true,
|
|
30
|
+
sandbox: {
|
|
31
|
+
enabled: true,
|
|
32
|
+
modes: [
|
|
33
|
+
"playground",
|
|
34
|
+
"specs",
|
|
35
|
+
"builder",
|
|
36
|
+
"markdown",
|
|
37
|
+
"evolution"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
studio: {
|
|
41
|
+
enabled: true,
|
|
42
|
+
installable: true
|
|
43
|
+
},
|
|
44
|
+
mcp: { enabled: true }
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var example_default = example;
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { example_default as default };
|
package/dist/index.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
import{IntegrationStatusEnum
|
|
1
|
+
import { IntegrationStatusEnum } from "./integration/integration.enum.js";
|
|
2
|
+
import { CreateIntegrationInputModel, IntegrationModel } from "./integration/integration.schema.js";
|
|
3
|
+
import { CreateIntegrationContract } from "./integration/integration.contracts.js";
|
|
4
|
+
import "./integration/index.js";
|
|
5
|
+
import { ConnectionStatusEnum } from "./connection/connection.enum.js";
|
|
6
|
+
import { ConnectionModel, CreateConnectionInputModel } from "./connection/connection.schema.js";
|
|
7
|
+
import { CreateConnectionContract } from "./connection/connection.contracts.js";
|
|
8
|
+
import "./connection/index.js";
|
|
9
|
+
import { MappingTypeEnum, SyncDirectionEnum, SyncStatusEnum } from "./sync/sync.enum.js";
|
|
10
|
+
import { AddFieldMappingInputModel, CreateSyncConfigInputModel, FieldMappingModel, ListSyncRunsInputModel, ListSyncRunsOutputModel, SyncConfigModel, SyncRunModel, TriggerSyncInputModel } from "./sync/sync.schema.js";
|
|
11
|
+
import { AddFieldMappingContract, CreateSyncConfigContract, ListSyncRunsContract, TriggerSyncContract } from "./sync/sync.contracts.js";
|
|
12
|
+
import "./sync/index.js";
|
|
13
|
+
import { BasicFieldTransformer, BasicSyncEngine, computeChecksum, createSyncEngine, hasChanges } from "./sync-engine/index.js";
|
|
14
|
+
|
|
15
|
+
export { AddFieldMappingContract, AddFieldMappingInputModel, BasicFieldTransformer, BasicSyncEngine, ConnectionModel, ConnectionStatusEnum, CreateConnectionContract, CreateConnectionInputModel, CreateIntegrationContract, CreateIntegrationInputModel, CreateSyncConfigContract, CreateSyncConfigInputModel, FieldMappingModel, IntegrationModel, IntegrationStatusEnum, ListSyncRunsContract, ListSyncRunsInputModel, ListSyncRunsOutputModel, MappingTypeEnum, SyncConfigModel, SyncDirectionEnum, SyncRunModel, SyncStatusEnum, TriggerSyncContract, TriggerSyncInputModel, computeChecksum, createSyncEngine, hasChanges };
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
import{IntegrationStatusEnum
|
|
1
|
+
import { IntegrationStatusEnum } from "./integration.enum.js";
|
|
2
|
+
import { CreateIntegrationInputModel, IntegrationModel } from "./integration.schema.js";
|
|
3
|
+
import { CreateIntegrationContract } from "./integration.contracts.js";
|
|
4
|
+
|
|
5
|
+
export { CreateIntegrationContract, CreateIntegrationInputModel, IntegrationModel, IntegrationStatusEnum };
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema66 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
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:
|
|
8
|
+
declare const CreateIntegrationContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema66.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
slug: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
description: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
provider: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
config: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema66.FieldType<unknown, unknown>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
featureFlagKey: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
|
-
}>,
|
|
33
|
+
}>, _lssm_lib_schema66.SchemaModel<{
|
|
34
34
|
id: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
name: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
slug: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
description: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
provider: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
status: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema66.EnumType<[string, string, string, string, string]>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
createdAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema66.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_schema66.SchemaModel<{
|
|
67
67
|
id: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
name: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
slug: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
description: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
provider: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema66.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
status: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema66.EnumType<[string, string, string, string, string]>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
createdAt: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema66.FieldType<Date, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
}>;
|