@lssm/example.integration-hub 1.41.1 → 1.42.2
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 +13 -0
- package/dist/connection/connection.enum.d.ts +10 -0
- package/dist/connection/connection.enum.d.ts.map +1 -0
- package/dist/connection/connection.enum.js +17 -1
- package/dist/connection/connection.enum.js.map +1 -0
- package/dist/connection/connection.operation.d.ts +107 -0
- package/dist/connection/connection.operation.d.ts.map +1 -0
- package/dist/connection/connection.operation.js +63 -0
- package/dist/connection/connection.operation.js.map +1 -0
- package/dist/connection/connection.presentation.d.ts +8 -0
- package/dist/connection/connection.presentation.d.ts.map +1 -0
- package/dist/connection/connection.presentation.js +60 -1
- package/dist/connection/connection.presentation.js.map +1 -0
- package/dist/connection/connection.schema.d.ts +68 -0
- package/dist/connection/connection.schema.d.ts.map +1 -0
- package/dist/connection/connection.schema.js +76 -1
- package/dist/connection/connection.schema.js.map +1 -0
- package/dist/connection/index.d.ts +4 -0
- package/dist/connection/index.js +5 -1
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -1
- package/dist/docs/integration-hub.docblock.d.ts +1 -0
- package/dist/docs/integration-hub.docblock.js +61 -5
- package/dist/docs/integration-hub.docblock.js.map +1 -0
- package/dist/events.d.ts +153 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +289 -1
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +40 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +51 -1
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +15 -1
- package/dist/integration/index.d.ts +4 -0
- package/dist/integration/index.js +5 -1
- package/dist/integration/integration.enum.d.ts +10 -0
- package/dist/integration/integration.enum.d.ts.map +1 -0
- package/dist/integration/integration.enum.js +17 -1
- package/dist/integration/integration.enum.js.map +1 -0
- package/dist/integration/integration.operations.d.ts +99 -0
- package/dist/integration/integration.operations.d.ts.map +1 -0
- package/dist/integration/integration.operations.js +57 -0
- package/dist/integration/integration.operations.js.map +1 -0
- package/dist/integration/integration.presentation.d.ts +9 -0
- package/dist/integration/integration.presentation.d.ts.map +1 -0
- package/dist/integration/integration.presentation.js +77 -1
- package/dist/integration/integration.presentation.js.map +1 -0
- package/dist/integration/integration.schema.d.ts +68 -0
- package/dist/integration/integration.schema.d.ts.map +1 -0
- package/dist/integration/integration.schema.js +76 -1
- package/dist/integration/integration.schema.js.map +1 -0
- package/dist/integration-hub.feature.d.ts +8 -0
- package/dist/integration-hub.feature.d.ts.map +1 -0
- package/dist/integration-hub.feature.js +239 -1
- package/dist/integration-hub.feature.js.map +1 -0
- package/dist/sync/index.d.ts +4 -0
- package/dist/sync/index.js +5 -1
- package/dist/sync/sync.enum.d.ts +18 -0
- package/dist/sync/sync.enum.d.ts.map +1 -0
- package/dist/sync/sync.enum.js +35 -1
- package/dist/sync/sync.enum.js.map +1 -0
- package/dist/sync/sync.operations.d.ts +509 -0
- package/dist/sync/sync.operations.d.ts.map +1 -0
- package/dist/sync/sync.operations.js +203 -0
- package/dist/sync/sync.operations.js.map +1 -0
- package/dist/sync/sync.presentation.d.ts +12 -0
- package/dist/sync/sync.presentation.d.ts.map +1 -0
- package/dist/sync/sync.presentation.js +168 -1
- package/dist/sync/sync.presentation.js.map +1 -0
- package/dist/sync/sync.schema.d.ts +356 -0
- package/dist/sync/sync.schema.d.ts.map +1 -0
- package/dist/sync/sync.schema.js +304 -1
- package/dist/sync/sync.schema.js.map +1 -0
- package/dist/sync-engine/index.d.ts +109 -0
- package/dist/sync-engine/index.d.ts.map +1 -0
- package/dist/sync-engine/index.js +148 -1
- package/dist/sync-engine/index.js.map +1 -0
- package/package.json +46 -39
- package/dist/connection/connection.contracts.js +0 -1
- package/dist/integration/integration.contracts.js +0 -1
- package/dist/sync/sync.contracts.js +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema25 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/events.d.ts
|
|
5
|
+
declare const IntegrationCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
6
|
+
integrationId: {
|
|
7
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
createdAt: {
|
|
15
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
}>>;
|
|
19
|
+
declare const ConnectionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
20
|
+
connectionId: {
|
|
21
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
integrationId: {
|
|
25
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
}>>;
|
|
37
|
+
declare const ConnectionStatusChangedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
38
|
+
connectionId: {
|
|
39
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
previousStatus: {
|
|
43
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
newStatus: {
|
|
47
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
changedAt: {
|
|
51
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
}>>;
|
|
55
|
+
declare const SyncConfigCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
56
|
+
syncConfigId: {
|
|
57
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
connectionId: {
|
|
61
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
62
|
+
isOptional: false;
|
|
63
|
+
};
|
|
64
|
+
createdAt: {
|
|
65
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
66
|
+
isOptional: false;
|
|
67
|
+
};
|
|
68
|
+
}>>;
|
|
69
|
+
declare const SyncStartedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
70
|
+
syncRunId: {
|
|
71
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
syncConfigId: {
|
|
75
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
startedAt: {
|
|
79
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
}>>;
|
|
83
|
+
declare const SyncCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
84
|
+
syncRunId: {
|
|
85
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
syncConfigId: {
|
|
89
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
recordsProcessed: {
|
|
93
|
+
type: _lssm_lib_schema25.FieldType<number, number>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
completedAt: {
|
|
97
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
}>>;
|
|
101
|
+
declare const SyncFailedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
102
|
+
syncRunId: {
|
|
103
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
syncConfigId: {
|
|
107
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
error: {
|
|
111
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
failedAt: {
|
|
115
|
+
type: _lssm_lib_schema25.FieldType<Date, string>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
}>>;
|
|
119
|
+
declare const RecordSyncedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
120
|
+
syncRunId: {
|
|
121
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
recordId: {
|
|
125
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
126
|
+
isOptional: false;
|
|
127
|
+
};
|
|
128
|
+
sourceId: {
|
|
129
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
targetId: {
|
|
133
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
134
|
+
isOptional: false;
|
|
135
|
+
};
|
|
136
|
+
}>>;
|
|
137
|
+
declare const FieldMappingAddedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema25.SchemaModel<{
|
|
138
|
+
syncConfigId: {
|
|
139
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
sourceField: {
|
|
143
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
targetField: {
|
|
147
|
+
type: _lssm_lib_schema25.FieldType<string, string>;
|
|
148
|
+
isOptional: false;
|
|
149
|
+
};
|
|
150
|
+
}>>;
|
|
151
|
+
//#endregion
|
|
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,6BAAA;;UAUlC,kBAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;IAVkC,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EA2BvB,CAAA;CAUX,CAAA,CAAA;cAVW,wBAAsB,oBAAA,CAAA,6BAAA;;UAUjC,kBAAA,CAAA;;;EAViC,aAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IA0BtB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;IAVuC,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;E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vent } from "@lssm/lib.contracts";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/events.ts
|
|
5
|
+
const IntegrationCreatedPayload = defineSchemaModel({
|
|
6
|
+
name: "IntegrationCreatedPayload",
|
|
7
|
+
description: "Payload when an integration is created",
|
|
8
|
+
fields: {
|
|
9
|
+
integrationId: {
|
|
10
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
11
|
+
isOptional: false
|
|
12
|
+
},
|
|
13
|
+
type: {
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
createdAt: {
|
|
18
|
+
type: ScalarTypeEnum.DateTime(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const IntegrationCreatedEvent = defineEvent({
|
|
24
|
+
meta: {
|
|
25
|
+
key: "integration.created",
|
|
26
|
+
version: 1,
|
|
27
|
+
description: "Fired when a new integration is created",
|
|
28
|
+
stability: "experimental",
|
|
29
|
+
owners: ["@integration-team"],
|
|
30
|
+
tags: ["integration"]
|
|
31
|
+
},
|
|
32
|
+
payload: IntegrationCreatedPayload
|
|
33
|
+
});
|
|
34
|
+
const ConnectionCreatedPayload = defineSchemaModel({
|
|
35
|
+
name: "ConnectionCreatedPayload",
|
|
36
|
+
description: "Payload when a connection is established",
|
|
37
|
+
fields: {
|
|
38
|
+
connectionId: {
|
|
39
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
40
|
+
isOptional: false
|
|
41
|
+
},
|
|
42
|
+
integrationId: {
|
|
43
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
44
|
+
isOptional: false
|
|
45
|
+
},
|
|
46
|
+
status: {
|
|
47
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
48
|
+
isOptional: false
|
|
49
|
+
},
|
|
50
|
+
createdAt: {
|
|
51
|
+
type: ScalarTypeEnum.DateTime(),
|
|
52
|
+
isOptional: false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const ConnectionCreatedEvent = defineEvent({
|
|
57
|
+
meta: {
|
|
58
|
+
key: "integration.connection.created",
|
|
59
|
+
version: 1,
|
|
60
|
+
description: "Fired when a new connection is established",
|
|
61
|
+
stability: "experimental",
|
|
62
|
+
owners: ["@integration-team"],
|
|
63
|
+
tags: ["integration", "connection"]
|
|
64
|
+
},
|
|
65
|
+
payload: ConnectionCreatedPayload
|
|
66
|
+
});
|
|
67
|
+
const ConnectionStatusChangedPayload = defineSchemaModel({
|
|
68
|
+
name: "ConnectionStatusChangedPayload",
|
|
69
|
+
description: "Payload when a connection status changes",
|
|
70
|
+
fields: {
|
|
71
|
+
connectionId: {
|
|
72
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
73
|
+
isOptional: false
|
|
74
|
+
},
|
|
75
|
+
previousStatus: {
|
|
76
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
77
|
+
isOptional: false
|
|
78
|
+
},
|
|
79
|
+
newStatus: {
|
|
80
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
81
|
+
isOptional: false
|
|
82
|
+
},
|
|
83
|
+
changedAt: {
|
|
84
|
+
type: ScalarTypeEnum.DateTime(),
|
|
85
|
+
isOptional: false
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const ConnectionStatusChangedEvent = defineEvent({
|
|
90
|
+
meta: {
|
|
91
|
+
key: "integration.connection.statusChanged",
|
|
92
|
+
version: 1,
|
|
93
|
+
description: "Fired when a connection status changes",
|
|
94
|
+
stability: "experimental",
|
|
95
|
+
owners: ["@integration-team"],
|
|
96
|
+
tags: ["integration", "connection"]
|
|
97
|
+
},
|
|
98
|
+
payload: ConnectionStatusChangedPayload
|
|
99
|
+
});
|
|
100
|
+
const SyncConfigCreatedPayload = defineSchemaModel({
|
|
101
|
+
name: "SyncConfigCreatedPayload",
|
|
102
|
+
description: "Payload when a sync configuration is created",
|
|
103
|
+
fields: {
|
|
104
|
+
syncConfigId: {
|
|
105
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
106
|
+
isOptional: false
|
|
107
|
+
},
|
|
108
|
+
connectionId: {
|
|
109
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
110
|
+
isOptional: false
|
|
111
|
+
},
|
|
112
|
+
createdAt: {
|
|
113
|
+
type: ScalarTypeEnum.DateTime(),
|
|
114
|
+
isOptional: false
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const SyncConfigCreatedEvent = defineEvent({
|
|
119
|
+
meta: {
|
|
120
|
+
key: "integration.syncConfig.created",
|
|
121
|
+
version: 1,
|
|
122
|
+
description: "Fired when a sync configuration is created",
|
|
123
|
+
stability: "experimental",
|
|
124
|
+
owners: ["@integration-team"],
|
|
125
|
+
tags: ["integration", "sync"]
|
|
126
|
+
},
|
|
127
|
+
payload: SyncConfigCreatedPayload
|
|
128
|
+
});
|
|
129
|
+
const SyncStartedPayload = defineSchemaModel({
|
|
130
|
+
name: "SyncStartedPayload",
|
|
131
|
+
description: "Payload when a sync run starts",
|
|
132
|
+
fields: {
|
|
133
|
+
syncRunId: {
|
|
134
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
135
|
+
isOptional: false
|
|
136
|
+
},
|
|
137
|
+
syncConfigId: {
|
|
138
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
139
|
+
isOptional: false
|
|
140
|
+
},
|
|
141
|
+
startedAt: {
|
|
142
|
+
type: ScalarTypeEnum.DateTime(),
|
|
143
|
+
isOptional: false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
const SyncStartedEvent = defineEvent({
|
|
148
|
+
meta: {
|
|
149
|
+
key: "integration.sync.started",
|
|
150
|
+
version: 1,
|
|
151
|
+
description: "Fired when a sync run starts",
|
|
152
|
+
stability: "experimental",
|
|
153
|
+
owners: ["@integration-team"],
|
|
154
|
+
tags: ["integration", "sync"]
|
|
155
|
+
},
|
|
156
|
+
payload: SyncStartedPayload
|
|
157
|
+
});
|
|
158
|
+
const SyncCompletedPayload = defineSchemaModel({
|
|
159
|
+
name: "SyncCompletedPayload",
|
|
160
|
+
description: "Payload when a sync run completes successfully",
|
|
161
|
+
fields: {
|
|
162
|
+
syncRunId: {
|
|
163
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
164
|
+
isOptional: false
|
|
165
|
+
},
|
|
166
|
+
syncConfigId: {
|
|
167
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
168
|
+
isOptional: false
|
|
169
|
+
},
|
|
170
|
+
recordsProcessed: {
|
|
171
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
172
|
+
isOptional: false
|
|
173
|
+
},
|
|
174
|
+
completedAt: {
|
|
175
|
+
type: ScalarTypeEnum.DateTime(),
|
|
176
|
+
isOptional: false
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const SyncCompletedEvent = defineEvent({
|
|
181
|
+
meta: {
|
|
182
|
+
key: "integration.sync.completed",
|
|
183
|
+
version: 1,
|
|
184
|
+
description: "Fired when a sync run completes successfully",
|
|
185
|
+
stability: "experimental",
|
|
186
|
+
owners: ["@integration-team"],
|
|
187
|
+
tags: ["integration", "sync"]
|
|
188
|
+
},
|
|
189
|
+
payload: SyncCompletedPayload
|
|
190
|
+
});
|
|
191
|
+
const SyncFailedPayload = defineSchemaModel({
|
|
192
|
+
name: "SyncFailedPayload",
|
|
193
|
+
description: "Payload when a sync run fails",
|
|
194
|
+
fields: {
|
|
195
|
+
syncRunId: {
|
|
196
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
197
|
+
isOptional: false
|
|
198
|
+
},
|
|
199
|
+
syncConfigId: {
|
|
200
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
201
|
+
isOptional: false
|
|
202
|
+
},
|
|
203
|
+
error: {
|
|
204
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
205
|
+
isOptional: false
|
|
206
|
+
},
|
|
207
|
+
failedAt: {
|
|
208
|
+
type: ScalarTypeEnum.DateTime(),
|
|
209
|
+
isOptional: false
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
const SyncFailedEvent = defineEvent({
|
|
214
|
+
meta: {
|
|
215
|
+
key: "integration.sync.failed",
|
|
216
|
+
version: 1,
|
|
217
|
+
description: "Fired when a sync run fails",
|
|
218
|
+
stability: "experimental",
|
|
219
|
+
owners: ["@integration-team"],
|
|
220
|
+
tags: ["integration", "sync"]
|
|
221
|
+
},
|
|
222
|
+
payload: SyncFailedPayload
|
|
223
|
+
});
|
|
224
|
+
const RecordSyncedPayload = defineSchemaModel({
|
|
225
|
+
name: "RecordSyncedPayload",
|
|
226
|
+
description: "Payload when a single record is synced",
|
|
227
|
+
fields: {
|
|
228
|
+
syncRunId: {
|
|
229
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
230
|
+
isOptional: false
|
|
231
|
+
},
|
|
232
|
+
recordId: {
|
|
233
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
234
|
+
isOptional: false
|
|
235
|
+
},
|
|
236
|
+
sourceId: {
|
|
237
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
238
|
+
isOptional: false
|
|
239
|
+
},
|
|
240
|
+
targetId: {
|
|
241
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
242
|
+
isOptional: false
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
const RecordSyncedEvent = defineEvent({
|
|
247
|
+
meta: {
|
|
248
|
+
key: "integration.record.synced",
|
|
249
|
+
version: 1,
|
|
250
|
+
description: "Fired when a single record is synced",
|
|
251
|
+
stability: "experimental",
|
|
252
|
+
owners: ["@integration-team"],
|
|
253
|
+
tags: ["integration", "sync"]
|
|
254
|
+
},
|
|
255
|
+
payload: RecordSyncedPayload
|
|
256
|
+
});
|
|
257
|
+
const FieldMappingAddedPayload = defineSchemaModel({
|
|
258
|
+
name: "FieldMappingAddedPayload",
|
|
259
|
+
description: "Payload when a field mapping is added to a sync config",
|
|
260
|
+
fields: {
|
|
261
|
+
syncConfigId: {
|
|
262
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
263
|
+
isOptional: false
|
|
264
|
+
},
|
|
265
|
+
sourceField: {
|
|
266
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
267
|
+
isOptional: false
|
|
268
|
+
},
|
|
269
|
+
targetField: {
|
|
270
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
271
|
+
isOptional: false
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
const FieldMappingAddedEvent = defineEvent({
|
|
276
|
+
meta: {
|
|
277
|
+
key: "integration.fieldMapping.added",
|
|
278
|
+
version: 1,
|
|
279
|
+
description: "Fired when a field mapping is added to a sync config",
|
|
280
|
+
stability: "experimental",
|
|
281
|
+
owners: ["@integration-team"],
|
|
282
|
+
tags: ["integration", "sync"]
|
|
283
|
+
},
|
|
284
|
+
payload: FieldMappingAddedPayload
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
//#endregion
|
|
288
|
+
export { ConnectionCreatedEvent, ConnectionStatusChangedEvent, FieldMappingAddedEvent, IntegrationCreatedEvent, RecordSyncedEvent, SyncCompletedEvent, SyncConfigCreatedEvent, SyncFailedEvent, SyncStartedEvent };
|
|
289
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { defineEvent } from '@lssm/lib.contracts';\nimport { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\n\n// Integration events\nconst IntegrationCreatedPayload = defineSchemaModel({\n name: 'IntegrationCreatedPayload',\n description: 'Payload when an integration is created',\n fields: {\n integrationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const IntegrationCreatedEvent = defineEvent({\n meta: {\n key: 'integration.created',\n version: 1,\n description: 'Fired when a new integration is created',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration'],\n },\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 meta: {\n key: 'integration.connection.created',\n version: 1,\n description: 'Fired when a new connection is established',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'connection'],\n },\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 meta: {\n key: 'integration.connection.statusChanged',\n version: 1,\n description: 'Fired when a connection status changes',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'connection'],\n },\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 meta: {\n key: 'integration.syncConfig.created',\n version: 1,\n description: 'Fired when a sync configuration is created',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\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 meta: {\n key: 'integration.sync.started',\n version: 1,\n description: 'Fired when a sync run starts',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\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 meta: {\n key: 'integration.sync.completed',\n version: 1,\n description: 'Fired when a sync run completes successfully',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\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 meta: {\n key: 'integration.sync.failed',\n version: 1,\n description: 'Fired when a sync run fails',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\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 meta: {\n key: 'integration.record.synced',\n version: 1,\n description: 'Fired when a single record is synced',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\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 meta: {\n key: 'integration.fieldMapping.added',\n version: 1,\n description: 'Fired when a field mapping is added to a sync config',\n stability: 'experimental',\n owners: ['@integration-team'],\n tags: ['integration', 'sync'],\n },\n payload: FieldMappingAddedPayload,\n});\n"],"mappings":";;;;AAIA,MAAM,4BAA4B,kBAAkB;CAClD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,eAAe;GACb,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E,YAAY;GAAO;EAC1E,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E;CACF,CAAC;AAEF,MAAa,yBAAyB,YAAY;CAChD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,OAAO;EAC9B;CACD,SAAS;CACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 };
|
|
40
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -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
|
@@ -1 +1,51 @@
|
|
|
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 };
|
|
51
|
+
//# sourceMappingURL=example.js.map
|
|
@@ -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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConnectionStatusEnum } from "./connection/connection.enum.js";
|
|
2
|
+
import { CreateConnectionContract } from "./connection/connection.operation.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.operations.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.operations.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 };
|
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.operations.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.operation.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.operations.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 };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IntegrationStatusEnum } from "./integration.enum.js";
|
|
2
|
+
import { CreateIntegrationInputModel, IntegrationModel } from "./integration.schema.js";
|
|
3
|
+
import { CreateIntegrationContract } from "./integration.operations.js";
|
|
4
|
+
export { CreateIntegrationContract, CreateIntegrationInputModel, IntegrationModel, IntegrationStatusEnum };
|
|
@@ -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.operations.js";
|
|
4
|
+
|
|
5
|
+
export { CreateIntegrationContract, CreateIntegrationInputModel, IntegrationModel, IntegrationStatusEnum };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _lssm_lib_schema104 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_schema104.EnumType<[string, string, string, string, string]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { IntegrationStatusEnum };
|
|
10
|
+
//# sourceMappingURL=integration.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.enum.d.ts","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,qBAMX,EAAA,mBAAA,CANgC,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
import{defineEnum
|
|
1
|
+
import { defineEnum } from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/integration/integration.enum.ts
|
|
4
|
+
/**
|
|
5
|
+
* Integration status enum.
|
|
6
|
+
*/
|
|
7
|
+
const IntegrationStatusEnum = defineEnum("IntegrationStatus", [
|
|
8
|
+
"DRAFT",
|
|
9
|
+
"ACTIVE",
|
|
10
|
+
"PAUSED",
|
|
11
|
+
"ERROR",
|
|
12
|
+
"ARCHIVED"
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { IntegrationStatusEnum };
|
|
17
|
+
//# sourceMappingURL=integration.enum.js.map
|