@lssm/example.integration-hub 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/connection/connection.contracts.d.ts +29 -28
- package/dist/connection/connection.contracts.d.ts.map +1 -0
- package/dist/connection/connection.contracts.js +2 -1
- package/dist/connection/connection.contracts.js.map +1 -0
- package/dist/connection/connection.enum.d.ts +4 -3
- package/dist/connection/connection.enum.d.ts.map +1 -0
- package/dist/connection/connection.enum.js +4 -4
- package/dist/connection/connection.enum.js.map +1 -0
- package/dist/connection/connection.presentation.d.ts +2 -1
- package/dist/connection/connection.presentation.d.ts.map +1 -0
- package/dist/connection/connection.presentation.js +2 -1
- package/dist/connection/connection.presentation.js.map +1 -0
- package/dist/connection/connection.schema.d.ts +18 -17
- package/dist/connection/connection.schema.d.ts.map +1 -0
- package/dist/connection/connection.schema.js +17 -18
- package/dist/connection/connection.schema.js.map +1 -0
- package/dist/docs/integration-hub.docblock.js +2 -1
- package/dist/docs/integration-hub.docblock.js.map +1 -0
- package/dist/events.d.ts +45 -44
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +44 -45
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/integration/integration.contracts.d.ts +27 -26
- package/dist/integration/integration.contracts.d.ts.map +1 -0
- package/dist/integration/integration.contracts.js +2 -1
- package/dist/integration/integration.contracts.js.map +1 -0
- package/dist/integration/integration.enum.d.ts +4 -3
- package/dist/integration/integration.enum.d.ts.map +1 -0
- package/dist/integration/integration.enum.js +4 -4
- package/dist/integration/integration.enum.js.map +1 -0
- package/dist/integration/integration.presentation.d.ts +2 -1
- package/dist/integration/integration.presentation.d.ts.map +1 -0
- package/dist/integration/integration.presentation.js +2 -1
- package/dist/integration/integration.presentation.js.map +1 -0
- package/dist/integration/integration.schema.d.ts +18 -17
- package/dist/integration/integration.schema.d.ts.map +1 -0
- package/dist/integration/integration.schema.js +17 -18
- package/dist/integration/integration.schema.js.map +1 -0
- package/dist/integration-hub.feature.d.ts +2 -1
- package/dist/integration-hub.feature.d.ts.map +1 -0
- package/dist/integration-hub.feature.js +2 -1
- package/dist/integration-hub.feature.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4717 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/sync/sync.contracts.d.ts +128 -127
- package/dist/sync/sync.contracts.d.ts.map +1 -0
- package/dist/sync/sync.contracts.js +2 -1
- package/dist/sync/sync.contracts.js.map +1 -0
- package/dist/sync/sync.enum.d.ts +6 -5
- package/dist/sync/sync.enum.d.ts.map +1 -0
- package/dist/sync/sync.enum.js +6 -6
- package/dist/sync/sync.enum.js.map +1 -0
- package/dist/sync/sync.presentation.d.ts +2 -1
- package/dist/sync/sync.presentation.d.ts.map +1 -0
- package/dist/sync/sync.presentation.js +2 -1
- package/dist/sync/sync.presentation.js.map +1 -0
- package/dist/sync/sync.schema.d.ts +87 -86
- package/dist/sync/sync.schema.d.ts.map +1 -0
- package/dist/sync/sync.schema.js +58 -59
- package/dist/sync/sync.schema.js.map +1 -0
- package/dist/sync-engine/index.d.ts +3 -2
- package/dist/sync-engine/index.d.ts.map +1 -0
- package/dist/sync-engine/index.js +5 -3
- package/dist/sync-engine/index.js.map +1 -0
- package/package.json +20 -13
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -56
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
package/dist/events.d.ts
CHANGED
|
@@ -1,152 +1,153 @@
|
|
|
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
|
}>>;
|
|
151
151
|
//#endregion
|
|
152
|
-
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
152
|
+
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
153
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAiBa,yBAAuB,oBAAA,CAAA,4BAAA;;UAKlC,iBAAA,CAAA;;EALW,CAAA;EAKX,IAAA,EAAA;;;;;IALkC,IAAA,6BAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAsBvB,CAAA;CAKX,CAAA,CAAA;cALW,wBAAsB,oBAAA,CAAA,4BAAA;;UAKjC,iBAAA,CAAA;;;EALiC,aAAA,EAAA;IAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBtB,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;;IALuC,IAAA,6BAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAkB5B,CAAA;CAKX,CAAA,CAAA;cAvBW,8BAA4B,oBAAA,CAAA,4BAAA;;UAKvC,iBAAA,CAAA;gBAaiC,KAAA;EAAA,CAAA;EAAA,cAAA,EAAA;IAkBtB,IAAA,6BAKX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;gBAL2B,KAAA;EAAA,CAAA;EAAA,SAAA,EAAA;IAqBhB,IAAA,6BAKX,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;cA5CW,wBAAsB,oBAAA,CAAA,4BAAA;;UAKjC,iBAAA,CAAA,SAkC6B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAkBlB,YAAA,EAAA;IAKX,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;gBAL0B,KAAA;EAAA,CAAA;CAAA,CAAA,CAAA;AAkBf,cAzDA,gBA8DX,EA9D2B,oBAAA,CAAA,SA8D3B,mBA9D2B,WA8D3B,CAAA;EAAA,SAAA,EAAA;UAzDA,iBAAA,CAAA;;;;IAoD4B,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAiBjB,CAAA;EAKX,SAAA,EAAA;;;;CALiC,CAAA,CAAA;AAAA,cArDtB,kBAqDsB,EArDJ,oBAAA,CAAA,SAqDI,mBArDJ,WAqDI,CAAA;;UAhDjC,iBAAA,CAAA;;;;;;;;;;;;;;;;cAaW,iBAAe,oBAAA,CAAA,4BAAA;;UAK1B,iBAAA,CAAA;;;;;;;;;;;;;;;;cAaW,mBAAiB,oBAAA,CAAA,4BAAA;;UAK5B,iBAAA,CAAA;;;;;;;;;;;;;;;;cAYW,wBAAsB,oBAAA,CAAA,4BAAA;;UAKjC,iBAAA,CAAA"}
|
package/dist/events.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { defineEvent } from "./libs/contracts/dist/events.js";
|
|
2
2
|
import "./libs/contracts/dist/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import { defineSchemaModel } from "./libs/schema/dist/SchemaModel.js";
|
|
5
|
-
import "./libs/schema/dist/index.js";
|
|
3
|
+
import { E5, K5 } from "./libs/schema/dist/index.js";
|
|
6
4
|
|
|
7
5
|
//#region src/events.ts
|
|
8
|
-
const IntegrationCreatedPayload =
|
|
6
|
+
const IntegrationCreatedPayload = K5({
|
|
9
7
|
name: "IntegrationCreatedPayload",
|
|
10
8
|
description: "Payload when an integration is created",
|
|
11
9
|
fields: {
|
|
12
10
|
integrationId: {
|
|
13
|
-
type:
|
|
11
|
+
type: E5.String_unsecure(),
|
|
14
12
|
isOptional: false
|
|
15
13
|
},
|
|
16
14
|
type: {
|
|
17
|
-
type:
|
|
15
|
+
type: E5.String_unsecure(),
|
|
18
16
|
isOptional: false
|
|
19
17
|
},
|
|
20
18
|
createdAt: {
|
|
21
|
-
type:
|
|
19
|
+
type: E5.DateTime(),
|
|
22
20
|
isOptional: false
|
|
23
21
|
}
|
|
24
22
|
}
|
|
@@ -29,24 +27,24 @@ const IntegrationCreatedEvent = defineEvent({
|
|
|
29
27
|
description: "Fired when a new integration is created",
|
|
30
28
|
payload: IntegrationCreatedPayload
|
|
31
29
|
});
|
|
32
|
-
const ConnectionCreatedPayload =
|
|
30
|
+
const ConnectionCreatedPayload = K5({
|
|
33
31
|
name: "ConnectionCreatedPayload",
|
|
34
32
|
description: "Payload when a connection is established",
|
|
35
33
|
fields: {
|
|
36
34
|
connectionId: {
|
|
37
|
-
type:
|
|
35
|
+
type: E5.String_unsecure(),
|
|
38
36
|
isOptional: false
|
|
39
37
|
},
|
|
40
38
|
integrationId: {
|
|
41
|
-
type:
|
|
39
|
+
type: E5.String_unsecure(),
|
|
42
40
|
isOptional: false
|
|
43
41
|
},
|
|
44
42
|
status: {
|
|
45
|
-
type:
|
|
43
|
+
type: E5.String_unsecure(),
|
|
46
44
|
isOptional: false
|
|
47
45
|
},
|
|
48
46
|
createdAt: {
|
|
49
|
-
type:
|
|
47
|
+
type: E5.DateTime(),
|
|
50
48
|
isOptional: false
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -57,24 +55,24 @@ const ConnectionCreatedEvent = defineEvent({
|
|
|
57
55
|
description: "Fired when a new connection is established",
|
|
58
56
|
payload: ConnectionCreatedPayload
|
|
59
57
|
});
|
|
60
|
-
const ConnectionStatusChangedPayload =
|
|
58
|
+
const ConnectionStatusChangedPayload = K5({
|
|
61
59
|
name: "ConnectionStatusChangedPayload",
|
|
62
60
|
description: "Payload when a connection status changes",
|
|
63
61
|
fields: {
|
|
64
62
|
connectionId: {
|
|
65
|
-
type:
|
|
63
|
+
type: E5.String_unsecure(),
|
|
66
64
|
isOptional: false
|
|
67
65
|
},
|
|
68
66
|
previousStatus: {
|
|
69
|
-
type:
|
|
67
|
+
type: E5.String_unsecure(),
|
|
70
68
|
isOptional: false
|
|
71
69
|
},
|
|
72
70
|
newStatus: {
|
|
73
|
-
type:
|
|
71
|
+
type: E5.String_unsecure(),
|
|
74
72
|
isOptional: false
|
|
75
73
|
},
|
|
76
74
|
changedAt: {
|
|
77
|
-
type:
|
|
75
|
+
type: E5.DateTime(),
|
|
78
76
|
isOptional: false
|
|
79
77
|
}
|
|
80
78
|
}
|
|
@@ -85,20 +83,20 @@ const ConnectionStatusChangedEvent = defineEvent({
|
|
|
85
83
|
description: "Fired when a connection status changes",
|
|
86
84
|
payload: ConnectionStatusChangedPayload
|
|
87
85
|
});
|
|
88
|
-
const SyncConfigCreatedPayload =
|
|
86
|
+
const SyncConfigCreatedPayload = K5({
|
|
89
87
|
name: "SyncConfigCreatedPayload",
|
|
90
88
|
description: "Payload when a sync configuration is created",
|
|
91
89
|
fields: {
|
|
92
90
|
syncConfigId: {
|
|
93
|
-
type:
|
|
91
|
+
type: E5.String_unsecure(),
|
|
94
92
|
isOptional: false
|
|
95
93
|
},
|
|
96
94
|
connectionId: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.String_unsecure(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
},
|
|
100
98
|
createdAt: {
|
|
101
|
-
type:
|
|
99
|
+
type: E5.DateTime(),
|
|
102
100
|
isOptional: false
|
|
103
101
|
}
|
|
104
102
|
}
|
|
@@ -109,20 +107,20 @@ const SyncConfigCreatedEvent = defineEvent({
|
|
|
109
107
|
description: "Fired when a sync configuration is created",
|
|
110
108
|
payload: SyncConfigCreatedPayload
|
|
111
109
|
});
|
|
112
|
-
const SyncStartedPayload =
|
|
110
|
+
const SyncStartedPayload = K5({
|
|
113
111
|
name: "SyncStartedPayload",
|
|
114
112
|
description: "Payload when a sync run starts",
|
|
115
113
|
fields: {
|
|
116
114
|
syncRunId: {
|
|
117
|
-
type:
|
|
115
|
+
type: E5.String_unsecure(),
|
|
118
116
|
isOptional: false
|
|
119
117
|
},
|
|
120
118
|
syncConfigId: {
|
|
121
|
-
type:
|
|
119
|
+
type: E5.String_unsecure(),
|
|
122
120
|
isOptional: false
|
|
123
121
|
},
|
|
124
122
|
startedAt: {
|
|
125
|
-
type:
|
|
123
|
+
type: E5.DateTime(),
|
|
126
124
|
isOptional: false
|
|
127
125
|
}
|
|
128
126
|
}
|
|
@@ -133,24 +131,24 @@ const SyncStartedEvent = defineEvent({
|
|
|
133
131
|
description: "Fired when a sync run starts",
|
|
134
132
|
payload: SyncStartedPayload
|
|
135
133
|
});
|
|
136
|
-
const SyncCompletedPayload =
|
|
134
|
+
const SyncCompletedPayload = K5({
|
|
137
135
|
name: "SyncCompletedPayload",
|
|
138
136
|
description: "Payload when a sync run completes successfully",
|
|
139
137
|
fields: {
|
|
140
138
|
syncRunId: {
|
|
141
|
-
type:
|
|
139
|
+
type: E5.String_unsecure(),
|
|
142
140
|
isOptional: false
|
|
143
141
|
},
|
|
144
142
|
syncConfigId: {
|
|
145
|
-
type:
|
|
143
|
+
type: E5.String_unsecure(),
|
|
146
144
|
isOptional: false
|
|
147
145
|
},
|
|
148
146
|
recordsProcessed: {
|
|
149
|
-
type:
|
|
147
|
+
type: E5.Int_unsecure(),
|
|
150
148
|
isOptional: false
|
|
151
149
|
},
|
|
152
150
|
completedAt: {
|
|
153
|
-
type:
|
|
151
|
+
type: E5.DateTime(),
|
|
154
152
|
isOptional: false
|
|
155
153
|
}
|
|
156
154
|
}
|
|
@@ -161,24 +159,24 @@ const SyncCompletedEvent = defineEvent({
|
|
|
161
159
|
description: "Fired when a sync run completes successfully",
|
|
162
160
|
payload: SyncCompletedPayload
|
|
163
161
|
});
|
|
164
|
-
const SyncFailedPayload =
|
|
162
|
+
const SyncFailedPayload = K5({
|
|
165
163
|
name: "SyncFailedPayload",
|
|
166
164
|
description: "Payload when a sync run fails",
|
|
167
165
|
fields: {
|
|
168
166
|
syncRunId: {
|
|
169
|
-
type:
|
|
167
|
+
type: E5.String_unsecure(),
|
|
170
168
|
isOptional: false
|
|
171
169
|
},
|
|
172
170
|
syncConfigId: {
|
|
173
|
-
type:
|
|
171
|
+
type: E5.String_unsecure(),
|
|
174
172
|
isOptional: false
|
|
175
173
|
},
|
|
176
174
|
error: {
|
|
177
|
-
type:
|
|
175
|
+
type: E5.String_unsecure(),
|
|
178
176
|
isOptional: false
|
|
179
177
|
},
|
|
180
178
|
failedAt: {
|
|
181
|
-
type:
|
|
179
|
+
type: E5.DateTime(),
|
|
182
180
|
isOptional: false
|
|
183
181
|
}
|
|
184
182
|
}
|
|
@@ -189,24 +187,24 @@ const SyncFailedEvent = defineEvent({
|
|
|
189
187
|
description: "Fired when a sync run fails",
|
|
190
188
|
payload: SyncFailedPayload
|
|
191
189
|
});
|
|
192
|
-
const RecordSyncedPayload =
|
|
190
|
+
const RecordSyncedPayload = K5({
|
|
193
191
|
name: "RecordSyncedPayload",
|
|
194
192
|
description: "Payload when a single record is synced",
|
|
195
193
|
fields: {
|
|
196
194
|
syncRunId: {
|
|
197
|
-
type:
|
|
195
|
+
type: E5.String_unsecure(),
|
|
198
196
|
isOptional: false
|
|
199
197
|
},
|
|
200
198
|
recordId: {
|
|
201
|
-
type:
|
|
199
|
+
type: E5.String_unsecure(),
|
|
202
200
|
isOptional: false
|
|
203
201
|
},
|
|
204
202
|
sourceId: {
|
|
205
|
-
type:
|
|
203
|
+
type: E5.String_unsecure(),
|
|
206
204
|
isOptional: false
|
|
207
205
|
},
|
|
208
206
|
targetId: {
|
|
209
|
-
type:
|
|
207
|
+
type: E5.String_unsecure(),
|
|
210
208
|
isOptional: false
|
|
211
209
|
}
|
|
212
210
|
}
|
|
@@ -217,20 +215,20 @@ const RecordSyncedEvent = defineEvent({
|
|
|
217
215
|
description: "Fired when a single record is synced",
|
|
218
216
|
payload: RecordSyncedPayload
|
|
219
217
|
});
|
|
220
|
-
const FieldMappingAddedPayload =
|
|
218
|
+
const FieldMappingAddedPayload = K5({
|
|
221
219
|
name: "FieldMappingAddedPayload",
|
|
222
220
|
description: "Payload when a field mapping is added to a sync config",
|
|
223
221
|
fields: {
|
|
224
222
|
syncConfigId: {
|
|
225
|
-
type:
|
|
223
|
+
type: E5.String_unsecure(),
|
|
226
224
|
isOptional: false
|
|
227
225
|
},
|
|
228
226
|
sourceField: {
|
|
229
|
-
type:
|
|
227
|
+
type: E5.String_unsecure(),
|
|
230
228
|
isOptional: false
|
|
231
229
|
},
|
|
232
230
|
targetField: {
|
|
233
|
-
type:
|
|
231
|
+
type: E5.String_unsecure(),
|
|
234
232
|
isOptional: false
|
|
235
233
|
}
|
|
236
234
|
}
|
|
@@ -243,4 +241,5 @@ const FieldMappingAddedEvent = defineEvent({
|
|
|
243
241
|
});
|
|
244
242
|
|
|
245
243
|
//#endregion
|
|
246
|
-
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
244
|
+
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
245
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":["defineSchemaModel","ScalarTypeEnum"],"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/example.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,iBAAA"}
|
package/dist/example.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'integration-hub',\n title: 'Integration Hub',\n summary:\n 'Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.',\n tags: ['integrations', 'sync', 'etl', 'connectors'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.integration-hub',\n goalDocId: 'docs.examples.integration-hub.goal',\n usageDocId: 'docs.examples.integration-hub.usage',\n constraintsDocId: 'docs.examples.integration-hub.constraints',\n },\n entrypoints: {\n packageName: '@lssm/example.integration-hub',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAgB;EAAQ;EAAO;EAAa;CACnD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
|
@@ -1,98 +1,99 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema81 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_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
|
}>;
|
|
96
96
|
}[]>;
|
|
97
97
|
//#endregion
|
|
98
|
-
export { CreateIntegrationContract };
|
|
98
|
+
export { CreateIntegrationContract };
|
|
99
|
+
//# sourceMappingURL=integration.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.contracts.d.ts","names":[],"sources":["../../src/integration/integration.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAWa,gDAAyB,gCAAA;EAAzB,IAAA,EAAA;IAwBX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAxBoC,WAAA,EAAA;;;;;;;;;;;;;;;;;;UAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.contracts.js","names":[],"sources":["../../src/integration/integration.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/spec';\nimport {\n IntegrationModel,\n CreateIntegrationInputModel,\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"}
|