@lssm/example.integration-hub 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060433
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 +106 -0
- package/dist/connection/connection.enum.d.ts +9 -0
- package/dist/connection/connection.presentation.d.ts +7 -0
- package/dist/connection/connection.schema.d.ts +67 -0
- package/dist/connection/index.d.ts +4 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/integration-hub.docblock.d.ts +1 -0
- package/dist/events.d.ts +152 -0
- package/dist/example.d.ts +39 -0
- package/dist/index.d.ts +14 -0
- package/dist/integration/index.d.ts +4 -0
- package/dist/integration/integration.contracts.d.ts +98 -0
- package/dist/integration/integration.enum.d.ts +9 -0
- package/dist/integration/integration.presentation.d.ts +8 -0
- package/dist/integration/integration.schema.d.ts +67 -0
- package/dist/integration-hub.feature.d.ts +7 -0
- package/dist/sync/index.d.ts +4 -0
- package/dist/sync/sync.contracts.d.ts +508 -0
- package/dist/sync/sync.enum.d.ts +17 -0
- package/dist/sync/sync.presentation.d.ts +11 -0
- package/dist/sync/sync.schema.d.ts +355 -0
- package/dist/sync-engine/index.d.ts +108 -0
- package/package.json +34 -34
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema283 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/connection/connection.contracts.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a connection to an external system.
|
|
7
|
+
*/
|
|
8
|
+
declare const CreateConnectionContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_schema283.SchemaModel<{
|
|
9
|
+
integrationId: {
|
|
10
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
authType: {
|
|
18
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
credentials: {
|
|
22
|
+
type: _lssm_lib_schema283.FieldType<unknown, unknown>;
|
|
23
|
+
isOptional: true;
|
|
24
|
+
};
|
|
25
|
+
}>, _lssm_lib_schema283.SchemaModel<{
|
|
26
|
+
id: {
|
|
27
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
integrationId: {
|
|
31
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
name: {
|
|
35
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
status: {
|
|
39
|
+
type: _lssm_lib_schema283.EnumType<[string, string, string, string, string]>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
authType: {
|
|
43
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
externalAccountName: {
|
|
47
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
48
|
+
isOptional: true;
|
|
49
|
+
};
|
|
50
|
+
connectedAt: {
|
|
51
|
+
type: _lssm_lib_schema283.FieldType<Date, string>;
|
|
52
|
+
isOptional: true;
|
|
53
|
+
};
|
|
54
|
+
lastHealthCheck: {
|
|
55
|
+
type: _lssm_lib_schema283.FieldType<Date, string>;
|
|
56
|
+
isOptional: true;
|
|
57
|
+
};
|
|
58
|
+
healthStatus: {
|
|
59
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
60
|
+
isOptional: true;
|
|
61
|
+
};
|
|
62
|
+
}>, {
|
|
63
|
+
name: string;
|
|
64
|
+
version: number;
|
|
65
|
+
when: string;
|
|
66
|
+
payload: _lssm_lib_schema283.SchemaModel<{
|
|
67
|
+
id: {
|
|
68
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
70
|
+
};
|
|
71
|
+
integrationId: {
|
|
72
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
name: {
|
|
76
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
77
|
+
isOptional: false;
|
|
78
|
+
};
|
|
79
|
+
status: {
|
|
80
|
+
type: _lssm_lib_schema283.EnumType<[string, string, string, string, string]>;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
authType: {
|
|
84
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
85
|
+
isOptional: false;
|
|
86
|
+
};
|
|
87
|
+
externalAccountName: {
|
|
88
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
89
|
+
isOptional: true;
|
|
90
|
+
};
|
|
91
|
+
connectedAt: {
|
|
92
|
+
type: _lssm_lib_schema283.FieldType<Date, string>;
|
|
93
|
+
isOptional: true;
|
|
94
|
+
};
|
|
95
|
+
lastHealthCheck: {
|
|
96
|
+
type: _lssm_lib_schema283.FieldType<Date, string>;
|
|
97
|
+
isOptional: true;
|
|
98
|
+
};
|
|
99
|
+
healthStatus: {
|
|
100
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
101
|
+
isOptional: true;
|
|
102
|
+
};
|
|
103
|
+
}>;
|
|
104
|
+
}[]>;
|
|
105
|
+
//#endregion
|
|
106
|
+
export { CreateConnectionContract };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as _lssm_lib_schema124 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/connection/connection.enum.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Connection status enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const ConnectionStatusEnum: _lssm_lib_schema124.EnumType<[string, string, string, string, string]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ConnectionStatusEnum };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/connection/connection.presentation.d.ts
|
|
4
|
+
declare const ConnectionListPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const ConnectionSetupPresentation: PresentationDescriptorV2;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { ConnectionListPresentation, ConnectionSetupPresentation };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as _lssm_lib_schema125 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/connection/connection.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A connection to an external system.
|
|
6
|
+
*/
|
|
7
|
+
declare const ConnectionModel: _lssm_lib_schema125.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
integrationId: {
|
|
13
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
name: {
|
|
17
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
status: {
|
|
21
|
+
type: _lssm_lib_schema125.EnumType<[string, string, string, string, string]>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
authType: {
|
|
25
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
externalAccountName: {
|
|
29
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
30
|
+
isOptional: true;
|
|
31
|
+
};
|
|
32
|
+
connectedAt: {
|
|
33
|
+
type: _lssm_lib_schema125.FieldType<Date, string>;
|
|
34
|
+
isOptional: true;
|
|
35
|
+
};
|
|
36
|
+
lastHealthCheck: {
|
|
37
|
+
type: _lssm_lib_schema125.FieldType<Date, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
};
|
|
40
|
+
healthStatus: {
|
|
41
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
42
|
+
isOptional: true;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Input for creating a connection.
|
|
47
|
+
*/
|
|
48
|
+
declare const CreateConnectionInputModel: _lssm_lib_schema125.SchemaModel<{
|
|
49
|
+
integrationId: {
|
|
50
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
name: {
|
|
54
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
authType: {
|
|
58
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
59
|
+
isOptional: false;
|
|
60
|
+
};
|
|
61
|
+
credentials: {
|
|
62
|
+
type: _lssm_lib_schema125.FieldType<unknown, unknown>;
|
|
63
|
+
isOptional: true;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { ConnectionModel, CreateConnectionInputModel };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CreateConnectionContract } from "./connection.contracts.js";
|
|
2
|
+
import { ConnectionStatusEnum } from "./connection.enum.js";
|
|
3
|
+
import { ConnectionModel, CreateConnectionInputModel } from "./connection.schema.js";
|
|
4
|
+
export { ConnectionModel, ConnectionStatusEnum, CreateConnectionContract, CreateConnectionInputModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/events.d.ts
|
|
5
|
+
declare const IntegrationCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
|
+
integrationId: {
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
createdAt: {
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
}>>;
|
|
19
|
+
declare const ConnectionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
20
|
+
connectionId: {
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
integrationId: {
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
}>>;
|
|
37
|
+
declare const ConnectionStatusChangedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
38
|
+
connectionId: {
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
previousStatus: {
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
newStatus: {
|
|
47
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
changedAt: {
|
|
51
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
}>>;
|
|
55
|
+
declare const SyncConfigCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
56
|
+
syncConfigId: {
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
connectionId: {
|
|
61
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
62
|
+
isOptional: false;
|
|
63
|
+
};
|
|
64
|
+
createdAt: {
|
|
65
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
66
|
+
isOptional: false;
|
|
67
|
+
};
|
|
68
|
+
}>>;
|
|
69
|
+
declare const SyncStartedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
70
|
+
syncRunId: {
|
|
71
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
syncConfigId: {
|
|
75
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
startedAt: {
|
|
79
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
}>>;
|
|
83
|
+
declare const SyncCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
84
|
+
syncRunId: {
|
|
85
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
syncConfigId: {
|
|
89
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
recordsProcessed: {
|
|
93
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
completedAt: {
|
|
97
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
}>>;
|
|
101
|
+
declare const SyncFailedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
102
|
+
syncRunId: {
|
|
103
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
syncConfigId: {
|
|
107
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
error: {
|
|
111
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
failedAt: {
|
|
115
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
}>>;
|
|
119
|
+
declare const RecordSyncedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
120
|
+
syncRunId: {
|
|
121
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
recordId: {
|
|
125
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
126
|
+
isOptional: false;
|
|
127
|
+
};
|
|
128
|
+
sourceId: {
|
|
129
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
targetId: {
|
|
133
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
134
|
+
isOptional: false;
|
|
135
|
+
};
|
|
136
|
+
}>>;
|
|
137
|
+
declare const FieldMappingAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
138
|
+
syncConfigId: {
|
|
139
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
sourceField: {
|
|
143
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
targetField: {
|
|
147
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
148
|
+
isOptional: false;
|
|
149
|
+
};
|
|
150
|
+
}>>;
|
|
151
|
+
//#endregion
|
|
152
|
+
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "integration-hub";
|
|
4
|
+
readonly title: "Integration Hub";
|
|
5
|
+
readonly summary: "Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.";
|
|
6
|
+
readonly tags: readonly ["integrations", "sync", "etl", "connectors"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.examples.integration-hub";
|
|
11
|
+
readonly goalDocId: "docs.examples.integration-hub.goal";
|
|
12
|
+
readonly usageDocId: "docs.examples.integration-hub.usage";
|
|
13
|
+
readonly constraintsDocId: "docs.examples.integration-hub.constraints";
|
|
14
|
+
};
|
|
15
|
+
readonly entrypoints: {
|
|
16
|
+
readonly packageName: "@lssm/example.integration-hub";
|
|
17
|
+
readonly feature: "./feature";
|
|
18
|
+
readonly contracts: "./contracts";
|
|
19
|
+
readonly presentations: "./presentations";
|
|
20
|
+
readonly handlers: "./handlers";
|
|
21
|
+
readonly docs: "./docs";
|
|
22
|
+
};
|
|
23
|
+
readonly surfaces: {
|
|
24
|
+
readonly templates: true;
|
|
25
|
+
readonly sandbox: {
|
|
26
|
+
readonly enabled: true;
|
|
27
|
+
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
28
|
+
};
|
|
29
|
+
readonly studio: {
|
|
30
|
+
readonly enabled: true;
|
|
31
|
+
readonly installable: true;
|
|
32
|
+
};
|
|
33
|
+
readonly mcp: {
|
|
34
|
+
readonly enabled: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { example as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreateConnectionContract } from "./connection/connection.contracts.js";
|
|
2
|
+
import { ConnectionStatusEnum } from "./connection/connection.enum.js";
|
|
3
|
+
import { ConnectionModel, CreateConnectionInputModel } from "./connection/connection.schema.js";
|
|
4
|
+
import "./connection/index.js";
|
|
5
|
+
import { IntegrationStatusEnum } from "./integration/integration.enum.js";
|
|
6
|
+
import { CreateIntegrationInputModel, IntegrationModel } from "./integration/integration.schema.js";
|
|
7
|
+
import { CreateIntegrationContract } from "./integration/integration.contracts.js";
|
|
8
|
+
import "./integration/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, FieldMapping, IFieldTransformer, ISyncEngine, LookupConfig, SourceRecord, SyncConfig, SyncContext, SyncError, SyncResult, TargetRecord, computeChecksum, createSyncEngine, hasChanges } from "./sync-engine/index.js";
|
|
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 };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IntegrationStatusEnum } from "./integration.enum.js";
|
|
2
|
+
import { CreateIntegrationInputModel, IntegrationModel } from "./integration.schema.js";
|
|
3
|
+
import { CreateIntegrationContract } from "./integration.contracts.js";
|
|
4
|
+
export { CreateIntegrationContract, CreateIntegrationInputModel, IntegrationModel, IntegrationStatusEnum };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts13 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema308 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/integration/integration.contracts.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a new integration.
|
|
7
|
+
*/
|
|
8
|
+
declare const CreateIntegrationContract: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema308.SchemaModel<{
|
|
9
|
+
name: {
|
|
10
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
slug: {
|
|
14
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
description: {
|
|
18
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
provider: {
|
|
22
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
config: {
|
|
26
|
+
type: _lssm_lib_schema308.FieldType<unknown, unknown>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
featureFlagKey: {
|
|
30
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
}>, _lssm_lib_schema308.SchemaModel<{
|
|
34
|
+
id: {
|
|
35
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
name: {
|
|
39
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
slug: {
|
|
43
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
description: {
|
|
47
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
48
|
+
isOptional: true;
|
|
49
|
+
};
|
|
50
|
+
provider: {
|
|
51
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
status: {
|
|
55
|
+
type: _lssm_lib_schema308.EnumType<[string, string, string, string, string]>;
|
|
56
|
+
isOptional: false;
|
|
57
|
+
};
|
|
58
|
+
createdAt: {
|
|
59
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
}>, {
|
|
63
|
+
name: string;
|
|
64
|
+
version: number;
|
|
65
|
+
when: string;
|
|
66
|
+
payload: _lssm_lib_schema308.SchemaModel<{
|
|
67
|
+
id: {
|
|
68
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
70
|
+
};
|
|
71
|
+
name: {
|
|
72
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
slug: {
|
|
76
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
77
|
+
isOptional: false;
|
|
78
|
+
};
|
|
79
|
+
description: {
|
|
80
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
81
|
+
isOptional: true;
|
|
82
|
+
};
|
|
83
|
+
provider: {
|
|
84
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
85
|
+
isOptional: false;
|
|
86
|
+
};
|
|
87
|
+
status: {
|
|
88
|
+
type: _lssm_lib_schema308.EnumType<[string, string, string, string, string]>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
createdAt: {
|
|
92
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
93
|
+
isOptional: false;
|
|
94
|
+
};
|
|
95
|
+
}>;
|
|
96
|
+
}[]>;
|
|
97
|
+
//#endregion
|
|
98
|
+
export { CreateIntegrationContract };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as _lssm_lib_schema140 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/integration/integration.enum.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Integration status enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const IntegrationStatusEnum: _lssm_lib_schema140.EnumType<[string, string, string, string, string]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { IntegrationStatusEnum };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/integration/integration.presentation.d.ts
|
|
4
|
+
declare const IntegrationListPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const IntegrationDetailPresentation: PresentationDescriptorV2;
|
|
6
|
+
declare const IntegrationHealthPresentation: PresentationDescriptorV2;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { IntegrationDetailPresentation, IntegrationHealthPresentation, IntegrationListPresentation };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as _lssm_lib_schema141 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/integration/integration.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* An integration with an external system.
|
|
6
|
+
*/
|
|
7
|
+
declare const IntegrationModel: _lssm_lib_schema141.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
name: {
|
|
13
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
slug: {
|
|
17
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
description: {
|
|
21
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
22
|
+
isOptional: true;
|
|
23
|
+
};
|
|
24
|
+
provider: {
|
|
25
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
type: _lssm_lib_schema141.EnumType<[string, string, string, string, string]>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: _lssm_lib_schema141.FieldType<Date, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Input for creating an integration.
|
|
39
|
+
*/
|
|
40
|
+
declare const CreateIntegrationInputModel: _lssm_lib_schema141.SchemaModel<{
|
|
41
|
+
name: {
|
|
42
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
slug: {
|
|
46
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
description: {
|
|
50
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
51
|
+
isOptional: true;
|
|
52
|
+
};
|
|
53
|
+
provider: {
|
|
54
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
config: {
|
|
58
|
+
type: _lssm_lib_schema141.FieldType<unknown, unknown>;
|
|
59
|
+
isOptional: true;
|
|
60
|
+
};
|
|
61
|
+
featureFlagKey: {
|
|
62
|
+
type: _lssm_lib_schema141.FieldType<string, string>;
|
|
63
|
+
isOptional: true;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { CreateIntegrationInputModel, IntegrationModel };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MappingTypeEnum, SyncDirectionEnum, SyncStatusEnum } from "./sync.enum.js";
|
|
2
|
+
import { AddFieldMappingInputModel, CreateSyncConfigInputModel, FieldMappingModel, ListSyncRunsInputModel, ListSyncRunsOutputModel, SyncConfigModel, SyncRunModel, TriggerSyncInputModel } from "./sync.schema.js";
|
|
3
|
+
import { AddFieldMappingContract, CreateSyncConfigContract, ListSyncRunsContract, TriggerSyncContract } from "./sync.contracts.js";
|
|
4
|
+
export { AddFieldMappingContract, AddFieldMappingInputModel, CreateSyncConfigContract, CreateSyncConfigInputModel, FieldMappingModel, ListSyncRunsContract, ListSyncRunsInputModel, ListSyncRunsOutputModel, MappingTypeEnum, SyncConfigModel, SyncDirectionEnum, SyncRunModel, SyncStatusEnum, TriggerSyncContract, TriggerSyncInputModel };
|