@contractspec/example.integration-hub 1.44.1 → 1.45.1

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.
Files changed (33) hide show
  1. package/dist/connection/connection.enum.d.ts +2 -2
  2. package/dist/connection/connection.operation.d.ts +28 -28
  3. package/dist/connection/connection.operation.d.ts.map +1 -1
  4. package/dist/connection/connection.operation.js +2 -2
  5. package/dist/connection/connection.operation.js.map +1 -1
  6. package/dist/connection/connection.presentation.js +2 -2
  7. package/dist/connection/connection.presentation.js.map +1 -1
  8. package/dist/connection/connection.schema.d.ts +16 -16
  9. package/dist/events.d.ts +42 -42
  10. package/dist/events.d.ts.map +1 -1
  11. package/dist/events.js +9 -9
  12. package/dist/events.js.map +1 -1
  13. package/dist/example.d.ts +3 -36
  14. package/dist/example.d.ts.map +1 -1
  15. package/dist/example.js +16 -11
  16. package/dist/example.js.map +1 -1
  17. package/dist/integration/integration.enum.d.ts +2 -2
  18. package/dist/integration/integration.enum.d.ts.map +1 -1
  19. package/dist/integration/integration.operations.d.ts +25 -25
  20. package/dist/integration/integration.operations.js +2 -2
  21. package/dist/integration/integration.operations.js.map +1 -1
  22. package/dist/integration/integration.presentation.js +3 -3
  23. package/dist/integration/integration.presentation.js.map +1 -1
  24. package/dist/integration/integration.schema.d.ts +16 -16
  25. package/dist/integration/integration.schema.d.ts.map +1 -1
  26. package/dist/integration-hub.feature.js +48 -48
  27. package/dist/integration-hub.feature.js.map +1 -1
  28. package/dist/sync/sync.operations.d.ts +3 -3
  29. package/dist/sync/sync.operations.js +7 -7
  30. package/dist/sync/sync.operations.js.map +1 -1
  31. package/dist/sync/sync.presentation.js +6 -6
  32. package/dist/sync/sync.presentation.js.map +1 -1
  33. package/package.json +12 -12
@@ -2,7 +2,7 @@
2
2
  const IntegrationHubFeature = {
3
3
  meta: {
4
4
  key: "integration-hub",
5
- version: 1,
5
+ version: "1.0.0",
6
6
  title: "Integration Hub",
7
7
  description: "Connect and sync data with external systems through configurable integrations",
8
8
  domain: "integration",
@@ -18,179 +18,179 @@ const IntegrationHubFeature = {
18
18
  operations: [
19
19
  {
20
20
  key: "integration.create",
21
- version: 1
21
+ version: "1.0.0"
22
22
  },
23
23
  {
24
24
  key: "integration.connection.create",
25
- version: 1
25
+ version: "1.0.0"
26
26
  },
27
27
  {
28
28
  key: "integration.syncConfig.create",
29
- version: 1
29
+ version: "1.0.0"
30
30
  },
31
31
  {
32
32
  key: "integration.fieldMapping.add",
33
- version: 1
33
+ version: "1.0.0"
34
34
  },
35
35
  {
36
36
  key: "integration.sync.trigger",
37
- version: 1
37
+ version: "1.0.0"
38
38
  },
39
39
  {
40
40
  key: "integration.syncRun.list",
41
- version: 1
41
+ version: "1.0.0"
42
42
  }
43
43
  ],
44
44
  events: [
45
45
  {
46
46
  key: "integration.created",
47
- version: 1
47
+ version: "1.0.0"
48
48
  },
49
49
  {
50
50
  key: "integration.connection.created",
51
- version: 1
51
+ version: "1.0.0"
52
52
  },
53
53
  {
54
54
  key: "integration.connection.statusChanged",
55
- version: 1
55
+ version: "1.0.0"
56
56
  },
57
57
  {
58
58
  key: "integration.syncConfig.created",
59
- version: 1
59
+ version: "1.0.0"
60
60
  },
61
61
  {
62
62
  key: "integration.sync.started",
63
- version: 1
63
+ version: "1.0.0"
64
64
  },
65
65
  {
66
66
  key: "integration.sync.completed",
67
- version: 1
67
+ version: "1.0.0"
68
68
  },
69
69
  {
70
70
  key: "integration.sync.failed",
71
- version: 1
71
+ version: "1.0.0"
72
72
  },
73
73
  {
74
74
  key: "integration.record.synced",
75
- version: 1
75
+ version: "1.0.0"
76
76
  },
77
77
  {
78
78
  key: "integration.fieldMapping.added",
79
- version: 1
79
+ version: "1.0.0"
80
80
  }
81
81
  ],
82
82
  presentations: [
83
83
  {
84
84
  key: "integration.list",
85
- version: 1
85
+ version: "1.0.0"
86
86
  },
87
87
  {
88
88
  key: "integration.detail",
89
- version: 1
89
+ version: "1.0.0"
90
90
  },
91
91
  {
92
92
  key: "integration.connection.list",
93
- version: 1
93
+ version: "1.0.0"
94
94
  },
95
95
  {
96
96
  key: "integration.connection.setup",
97
- version: 1
97
+ version: "1.0.0"
98
98
  },
99
99
  {
100
100
  key: "integration.syncConfig.list",
101
- version: 1
101
+ version: "1.0.0"
102
102
  },
103
103
  {
104
104
  key: "integration.syncConfig.editor",
105
- version: 1
105
+ version: "1.0.0"
106
106
  },
107
107
  {
108
108
  key: "integration.fieldMapping.editor",
109
- version: 1
109
+ version: "1.0.0"
110
110
  },
111
111
  {
112
112
  key: "integration.syncRun.list",
113
- version: 1
113
+ version: "1.0.0"
114
114
  },
115
115
  {
116
116
  key: "integration.syncRun.detail",
117
- version: 1
117
+ version: "1.0.0"
118
118
  },
119
119
  {
120
120
  key: "integration.health",
121
- version: 1
121
+ version: "1.0.0"
122
122
  },
123
123
  {
124
124
  key: "integration.sync.activity",
125
- version: 1
125
+ version: "1.0.0"
126
126
  }
127
127
  ],
128
128
  opToPresentation: [
129
129
  {
130
130
  op: {
131
131
  key: "integration.syncConfig.create",
132
- version: 1
132
+ version: "1.0.0"
133
133
  },
134
134
  pres: {
135
135
  key: "integration.syncConfig.editor",
136
- version: 1
136
+ version: "1.0.0"
137
137
  }
138
138
  },
139
139
  {
140
140
  op: {
141
141
  key: "integration.fieldMapping.add",
142
- version: 1
142
+ version: "1.0.0"
143
143
  },
144
144
  pres: {
145
145
  key: "integration.fieldMapping.editor",
146
- version: 1
146
+ version: "1.0.0"
147
147
  }
148
148
  },
149
149
  {
150
150
  op: {
151
151
  key: "integration.syncRun.list",
152
- version: 1
152
+ version: "1.0.0"
153
153
  },
154
154
  pres: {
155
155
  key: "integration.syncRun.list",
156
- version: 1
156
+ version: "1.0.0"
157
157
  }
158
158
  }
159
159
  ],
160
160
  presentationsTargets: [
161
161
  {
162
162
  key: "integration.list",
163
- version: 1,
163
+ version: "1.0.0",
164
164
  targets: ["react", "markdown"]
165
165
  },
166
166
  {
167
167
  key: "integration.detail",
168
- version: 1,
168
+ version: "1.0.0",
169
169
  targets: ["react", "markdown"]
170
170
  },
171
171
  {
172
172
  key: "integration.syncConfig.list",
173
- version: 1,
173
+ version: "1.0.0",
174
174
  targets: ["react", "markdown"]
175
175
  },
176
176
  {
177
177
  key: "integration.syncConfig.editor",
178
- version: 1,
178
+ version: "1.0.0",
179
179
  targets: ["react"]
180
180
  },
181
181
  {
182
182
  key: "integration.fieldMapping.editor",
183
- version: 1,
183
+ version: "1.0.0",
184
184
  targets: ["react"]
185
185
  },
186
186
  {
187
187
  key: "integration.syncRun.list",
188
- version: 1,
188
+ version: "1.0.0",
189
189
  targets: ["react", "markdown"]
190
190
  },
191
191
  {
192
192
  key: "integration.syncRun.detail",
193
- version: 1,
193
+ version: "1.0.0",
194
194
  targets: ["react", "markdown"]
195
195
  }
196
196
  ],
@@ -198,37 +198,37 @@ const IntegrationHubFeature = {
198
198
  requires: [
199
199
  {
200
200
  key: "identity",
201
- version: 1
201
+ version: "1.0.0"
202
202
  },
203
203
  {
204
204
  key: "audit-trail",
205
- version: 1
205
+ version: "1.0.0"
206
206
  },
207
207
  {
208
208
  key: "feature-flags",
209
- version: 1
209
+ version: "1.0.0"
210
210
  },
211
211
  {
212
212
  key: "jobs",
213
- version: 1
213
+ version: "1.0.0"
214
214
  },
215
215
  {
216
216
  key: "files",
217
- version: 1
217
+ version: "1.0.0"
218
218
  }
219
219
  ],
220
220
  provides: [
221
221
  {
222
222
  key: "integration",
223
- version: 1
223
+ version: "1.0.0"
224
224
  },
225
225
  {
226
226
  key: "sync",
227
- version: 1
227
+ version: "1.0.0"
228
228
  },
229
229
  {
230
230
  key: "etl",
231
- version: 1
231
+ version: "1.0.0"
232
232
  }
233
233
  ]
234
234
  }
@@ -1 +1 @@
1
- {"version":3,"file":"integration-hub.feature.js","names":["IntegrationHubFeature: FeatureModuleSpec"],"sources":["../src/integration-hub.feature.ts"],"sourcesContent":["/**\n * Integration Hub Feature Module Specification\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const IntegrationHubFeature: FeatureModuleSpec = {\n meta: {\n key: 'integration-hub',\n version: 1,\n title: 'Integration Hub',\n description:\n 'Connect and sync data with external systems through configurable integrations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'etl', 'connectors'],\n stability: 'experimental',\n },\n\n operations: [\n { key: 'integration.create', version: 1 },\n { key: 'integration.connection.create', version: 1 },\n { key: 'integration.syncConfig.create', version: 1 },\n { key: 'integration.fieldMapping.add', version: 1 },\n { key: 'integration.sync.trigger', version: 1 },\n { key: 'integration.syncRun.list', version: 1 },\n ],\n\n events: [\n { key: 'integration.created', version: 1 },\n { key: 'integration.connection.created', version: 1 },\n { key: 'integration.connection.statusChanged', version: 1 },\n { key: 'integration.syncConfig.created', version: 1 },\n { key: 'integration.sync.started', version: 1 },\n { key: 'integration.sync.completed', version: 1 },\n { key: 'integration.sync.failed', version: 1 },\n { key: 'integration.record.synced', version: 1 },\n { key: 'integration.fieldMapping.added', version: 1 },\n ],\n\n presentations: [\n { key: 'integration.list', version: 1 },\n { key: 'integration.detail', version: 1 },\n { key: 'integration.connection.list', version: 1 },\n { key: 'integration.connection.setup', version: 1 },\n { key: 'integration.syncConfig.list', version: 1 },\n { key: 'integration.syncConfig.editor', version: 1 },\n { key: 'integration.fieldMapping.editor', version: 1 },\n { key: 'integration.syncRun.list', version: 1 },\n { key: 'integration.syncRun.detail', version: 1 },\n { key: 'integration.health', version: 1 },\n { key: 'integration.sync.activity', version: 1 },\n ],\n\n opToPresentation: [\n {\n op: { key: 'integration.syncConfig.create', version: 1 },\n pres: { key: 'integration.syncConfig.editor', version: 1 },\n },\n {\n op: { key: 'integration.fieldMapping.add', version: 1 },\n pres: { key: 'integration.fieldMapping.editor', version: 1 },\n },\n {\n op: { key: 'integration.syncRun.list', version: 1 },\n pres: { key: 'integration.syncRun.list', version: 1 },\n },\n ],\n\n presentationsTargets: [\n { key: 'integration.list', version: 1, targets: ['react', 'markdown'] },\n { key: 'integration.detail', version: 1, targets: ['react', 'markdown'] },\n {\n key: 'integration.syncConfig.list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n { key: 'integration.syncConfig.editor', version: 1, targets: ['react'] },\n { key: 'integration.fieldMapping.editor', version: 1, targets: ['react'] },\n {\n key: 'integration.syncRun.list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'integration.syncRun.detail',\n version: 1,\n targets: ['react', 'markdown'],\n },\n ],\n\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'feature-flags', version: 1 },\n { key: 'jobs', version: 1 },\n { key: 'files', version: 1 },\n ],\n provides: [\n { key: 'integration', version: 1 },\n { key: 'sync', version: 1 },\n { key: 'etl', version: 1 },\n ],\n },\n};\n"],"mappings":";AAKA,MAAaA,wBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAa;EAClD,WAAW;EACZ;CAED,YAAY;EACV;GAAE,KAAK;GAAsB,SAAS;GAAG;EACzC;GAAE,KAAK;GAAiC,SAAS;GAAG;EACpD;GAAE,KAAK;GAAiC,SAAS;GAAG;EACpD;GAAE,KAAK;GAAgC,SAAS;GAAG;EACnD;GAAE,KAAK;GAA4B,SAAS;GAAG;EAC/C;GAAE,KAAK;GAA4B,SAAS;GAAG;EAChD;CAED,QAAQ;EACN;GAAE,KAAK;GAAuB,SAAS;GAAG;EAC1C;GAAE,KAAK;GAAkC,SAAS;GAAG;EACrD;GAAE,KAAK;GAAwC,SAAS;GAAG;EAC3D;GAAE,KAAK;GAAkC,SAAS;GAAG;EACrD;GAAE,KAAK;GAA4B,SAAS;GAAG;EAC/C;GAAE,KAAK;GAA8B,SAAS;GAAG;EACjD;GAAE,KAAK;GAA2B,SAAS;GAAG;EAC9C;GAAE,KAAK;GAA6B,SAAS;GAAG;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AAW;GAC/B;EACF;CAED,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAG;GAC/B;IAAE,KAAK;IAAe,SAAS;IAAG;GAClC;IAAE,KAAK;IAAiB,SAAS;IAAG;GACpC;IAAE,KAAK;IAAQ,SAAS;IAAG;GAC3B;IAAE,KAAK;IAAS,SAAS;IAAG;GAC7B;EACD,UAAU;GACR;IAAE,KAAK;IAAe,SAAS;IAAG;GAClC;IAAE,KAAK;IAAQ,SAAS;IAAG;GAC3B;IAAE,KAAK;IAAO,SAAS;IAAG;GAC3B;EACF;CACF"}
1
+ {"version":3,"file":"integration-hub.feature.js","names":["IntegrationHubFeature: FeatureModuleSpec"],"sources":["../src/integration-hub.feature.ts"],"sourcesContent":["/**\n * Integration Hub Feature Module Specification\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const IntegrationHubFeature: FeatureModuleSpec = {\n meta: {\n key: 'integration-hub',\n version: '1.0.0',\n title: 'Integration Hub',\n description:\n 'Connect and sync data with external systems through configurable integrations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'etl', 'connectors'],\n stability: 'experimental',\n },\n\n operations: [\n { key: 'integration.create', version: '1.0.0' },\n { key: 'integration.connection.create', version: '1.0.0' },\n { key: 'integration.syncConfig.create', version: '1.0.0' },\n { key: 'integration.fieldMapping.add', version: '1.0.0' },\n { key: 'integration.sync.trigger', version: '1.0.0' },\n { key: 'integration.syncRun.list', version: '1.0.0' },\n ],\n\n events: [\n { key: 'integration.created', version: '1.0.0' },\n { key: 'integration.connection.created', version: '1.0.0' },\n { key: 'integration.connection.statusChanged', version: '1.0.0' },\n { key: 'integration.syncConfig.created', version: '1.0.0' },\n { key: 'integration.sync.started', version: '1.0.0' },\n { key: 'integration.sync.completed', version: '1.0.0' },\n { key: 'integration.sync.failed', version: '1.0.0' },\n { key: 'integration.record.synced', version: '1.0.0' },\n { key: 'integration.fieldMapping.added', version: '1.0.0' },\n ],\n\n presentations: [\n { key: 'integration.list', version: '1.0.0' },\n { key: 'integration.detail', version: '1.0.0' },\n { key: 'integration.connection.list', version: '1.0.0' },\n { key: 'integration.connection.setup', version: '1.0.0' },\n { key: 'integration.syncConfig.list', version: '1.0.0' },\n { key: 'integration.syncConfig.editor', version: '1.0.0' },\n { key: 'integration.fieldMapping.editor', version: '1.0.0' },\n { key: 'integration.syncRun.list', version: '1.0.0' },\n { key: 'integration.syncRun.detail', version: '1.0.0' },\n { key: 'integration.health', version: '1.0.0' },\n { key: 'integration.sync.activity', version: '1.0.0' },\n ],\n\n opToPresentation: [\n {\n op: { key: 'integration.syncConfig.create', version: '1.0.0' },\n pres: { key: 'integration.syncConfig.editor', version: '1.0.0' },\n },\n {\n op: { key: 'integration.fieldMapping.add', version: '1.0.0' },\n pres: { key: 'integration.fieldMapping.editor', version: '1.0.0' },\n },\n {\n op: { key: 'integration.syncRun.list', version: '1.0.0' },\n pres: { key: 'integration.syncRun.list', version: '1.0.0' },\n },\n ],\n\n presentationsTargets: [\n {\n key: 'integration.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'integration.detail',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'integration.syncConfig.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'integration.syncConfig.editor',\n version: '1.0.0',\n targets: ['react'],\n },\n {\n key: 'integration.fieldMapping.editor',\n version: '1.0.0',\n targets: ['react'],\n },\n {\n key: 'integration.syncRun.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'integration.syncRun.detail',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'feature-flags', version: '1.0.0' },\n { key: 'jobs', version: '1.0.0' },\n { key: 'files', version: '1.0.0' },\n ],\n provides: [\n { key: 'integration', version: '1.0.0' },\n { key: 'sync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;GAAE,KAAK;GAA6B,SAAS;GAAS;EACvD;CAED,kBAAkB;EAChB;GACE,IAAI;IAAE,KAAK;IAAiC,SAAS;IAAS;GAC9D,MAAM;IAAE,KAAK;IAAiC,SAAS;IAAS;GACjE;EACD;GACE,IAAI;IAAE,KAAK;IAAgC,SAAS;IAAS;GAC7D,MAAM;IAAE,KAAK;IAAmC,SAAS;IAAS;GACnE;EACD;GACE,IAAI;IAAE,KAAK;IAA4B,SAAS;IAAS;GACzD,MAAM;IAAE,KAAK;IAA4B,SAAS;IAAS;GAC5D;EACF;CAED,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACF;CAED,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAe,SAAS;IAAS;GACxC;IAAE,KAAK;IAAiB,SAAS;IAAS;GAC1C;IAAE,KAAK;IAAQ,SAAS;IAAS;GACjC;IAAE,KAAK;IAAS,SAAS;IAAS;GACnC;EACD,UAAU;GACR;IAAE,KAAK;IAAe,SAAS;IAAS;GACxC;IAAE,KAAK;IAAQ,SAAS;IAAS;GACjC;IAAE,KAAK;IAAO,SAAS;IAAS;GACjC;EACF;CACF"}
@@ -115,7 +115,7 @@ declare const CreateSyncConfigContract: _contractspec_lib_contracts10.OperationS
115
115
  };
116
116
  }>, {
117
117
  key: string;
118
- version: number;
118
+ version: string;
119
119
  when: string;
120
120
  payload: _contractspec_lib_schema123.SchemaModel<{
121
121
  id: {
@@ -261,7 +261,7 @@ declare const AddFieldMappingContract: _contractspec_lib_contracts10.OperationSp
261
261
  };
262
262
  }>, {
263
263
  key: string;
264
- version: number;
264
+ version: string;
265
265
  when: string;
266
266
  payload: _contractspec_lib_schema123.SchemaModel<{
267
267
  id: {
@@ -361,7 +361,7 @@ declare const TriggerSyncContract: _contractspec_lib_contracts10.OperationSpec<_
361
361
  };
362
362
  }>, {
363
363
  key: string;
364
- version: number;
364
+ version: string;
365
365
  when: string;
366
366
  payload: _contractspec_lib_schema123.SchemaModel<{
367
367
  id: {
@@ -9,7 +9,7 @@ const OWNERS = ["@example.integration-hub"];
9
9
  const CreateSyncConfigContract = defineCommand({
10
10
  meta: {
11
11
  key: "integration.syncConfig.create",
12
- version: 1,
12
+ version: "1.0.0",
13
13
  stability: "stable",
14
14
  owners: [...OWNERS],
15
15
  tags: [
@@ -30,7 +30,7 @@ const CreateSyncConfigContract = defineCommand({
30
30
  sideEffects: {
31
31
  emits: [{
32
32
  key: "integration.syncConfig.created",
33
- version: 1,
33
+ version: "1.0.0",
34
34
  when: "Sync config created",
35
35
  payload: SyncConfigModel
36
36
  }],
@@ -63,7 +63,7 @@ const CreateSyncConfigContract = defineCommand({
63
63
  const AddFieldMappingContract = defineCommand({
64
64
  meta: {
65
65
  key: "integration.fieldMapping.add",
66
- version: 1,
66
+ version: "1.0.0",
67
67
  stability: "stable",
68
68
  owners: [...OWNERS],
69
69
  tags: [
@@ -82,7 +82,7 @@ const AddFieldMappingContract = defineCommand({
82
82
  policy: { auth: "user" },
83
83
  sideEffects: { emits: [{
84
84
  key: "integration.fieldMapping.added",
85
- version: 1,
85
+ version: "1.0.0",
86
86
  when: "Mapping added",
87
87
  payload: FieldMappingModel
88
88
  }] },
@@ -113,7 +113,7 @@ const AddFieldMappingContract = defineCommand({
113
113
  const TriggerSyncContract = defineCommand({
114
114
  meta: {
115
115
  key: "integration.sync.trigger",
116
- version: 1,
116
+ version: "1.0.0",
117
117
  stability: "stable",
118
118
  owners: [...OWNERS],
119
119
  tags: [
@@ -133,7 +133,7 @@ const TriggerSyncContract = defineCommand({
133
133
  sideEffects: {
134
134
  emits: [{
135
135
  key: "integration.sync.started",
136
- version: 1,
136
+ version: "1.0.0",
137
137
  when: "Sync starts",
138
138
  payload: SyncRunModel
139
139
  }],
@@ -162,7 +162,7 @@ const TriggerSyncContract = defineCommand({
162
162
  const ListSyncRunsContract = defineQuery({
163
163
  meta: {
164
164
  key: "integration.syncRun.list",
165
- version: 1,
165
+ version: "1.0.0",
166
166
  stability: "stable",
167
167
  owners: [...OWNERS],
168
168
  tags: [
@@ -1 +1 @@
1
- {"version":3,"file":"sync.operations.js","names":[],"sources":["../../src/sync/sync.operations.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n CreateSyncConfigInputModel,\n AddFieldMappingInputModel,\n TriggerSyncInputModel,\n ListSyncRunsInputModel,\n ListSyncRunsOutputModel,\n} from './sync.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a sync configuration.\n */\nexport const CreateSyncConfigContract = defineCommand({\n meta: {\n key: 'integration.syncConfig.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'config', 'create'],\n description: 'Create a sync configuration.',\n goal: 'Define how data should be synchronized.',\n context: 'Sync setup.',\n },\n io: { input: CreateSyncConfigInputModel, output: SyncConfigModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.syncConfig.created',\n version: 1,\n when: 'Sync config created',\n payload: SyncConfigModel,\n },\n ],\n audit: ['integration.syncConfig.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-sync-happy-path',\n given: ['User is authenticated'],\n when: ['User creates sync config'],\n then: ['Sync config is created', 'SyncConfigCreated event is emitted'],\n },\n ],\n examples: [\n {\n key: 'create-contact-sync',\n input: {\n name: 'Contacts Sync',\n sourceConnectionId: 'conn-1',\n targetConnectionId: 'conn-2',\n },\n output: { id: 'sync-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Add a field mapping to a sync config.\n */\nexport const AddFieldMappingContract = defineCommand({\n meta: {\n key: 'integration.fieldMapping.add',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'mapping', 'field'],\n description: 'Add a field mapping to a sync config.',\n goal: 'Map fields between systems.',\n context: 'Mapping configuration.',\n },\n io: { input: AddFieldMappingInputModel, output: FieldMappingModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.fieldMapping.added',\n version: 1,\n when: 'Mapping added',\n payload: FieldMappingModel,\n },\n ],\n },\n acceptance: {\n scenarios: [\n {\n key: 'add-mapping-happy-path',\n given: ['Sync config exists'],\n when: ['User adds field mapping'],\n then: ['Mapping is added', 'FieldMappingAdded event is emitted'],\n },\n ],\n examples: [\n {\n key: 'map-email',\n input: {\n syncConfigId: 'sync-123',\n sourceField: 'email',\n targetField: 'user_email',\n },\n output: { id: 'map-456', type: 'string' },\n },\n ],\n },\n});\n\n/**\n * Trigger a manual sync.\n */\nexport const TriggerSyncContract = defineCommand({\n meta: {\n key: 'integration.sync.trigger',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'trigger'],\n description: 'Trigger a manual sync.',\n goal: 'Start data synchronization.',\n context: 'Manual sync or webhook trigger.',\n },\n io: { input: TriggerSyncInputModel, output: SyncRunModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.sync.started',\n version: 1,\n when: 'Sync starts',\n payload: SyncRunModel,\n },\n ],\n audit: ['integration.sync.triggered'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'trigger-sync-happy-path',\n given: ['Sync config exists'],\n when: ['User triggers sync'],\n then: ['Sync run starts', 'SyncStarted event is emitted'],\n },\n ],\n examples: [\n {\n key: 'manual-trigger',\n input: { syncConfigId: 'sync-123' },\n output: { id: 'run-789', status: 'pending' },\n },\n ],\n },\n});\n\n/**\n * List sync run history.\n */\nexport const ListSyncRunsContract = defineQuery({\n meta: {\n key: 'integration.syncRun.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'run', 'list'],\n description: 'List sync run history.',\n goal: 'View sync history and status.',\n context: 'Sync monitoring.',\n },\n io: { input: ListSyncRunsInputModel, output: ListSyncRunsOutputModel },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-runs-happy-path',\n given: ['User has access to syncs'],\n when: ['User lists sync runs'],\n then: ['List of runs is returned'],\n },\n ],\n examples: [\n {\n key: 'list-recent',\n input: { limit: 10 },\n output: { items: [], total: 50 },\n },\n ],\n },\n});\n"],"mappings":";;;;AAeA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA4B,QAAQ;EAAiB;CAClE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,iCAAiC;EAC1C;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,0BAA0B,qCAAqC;GACvE,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,MAAM;IACN,oBAAoB;IACpB,oBAAoB;IACrB;GACD,QAAQ;IAAE,IAAI;IAAY,QA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C,QAAQ;IAAE,IAAI;IAAW,QAAQ;IAAW;GAC7C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAO;EAC5C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAyB;CACtE,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,2BAA2B;GACnC,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,2BAA2B;GACnC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO,EAAE,OAAO,IAAI;GACpB,QAAQ;IAAE,OAAO,EAAE;IAAE,OAAO;IAAI;GACjC,CACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"sync.operations.js","names":[],"sources":["../../src/sync/sync.operations.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n CreateSyncConfigInputModel,\n AddFieldMappingInputModel,\n TriggerSyncInputModel,\n ListSyncRunsInputModel,\n ListSyncRunsOutputModel,\n} from './sync.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a sync configuration.\n */\nexport const CreateSyncConfigContract = defineCommand({\n meta: {\n key: 'integration.syncConfig.create',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'config', 'create'],\n description: 'Create a sync configuration.',\n goal: 'Define how data should be synchronized.',\n context: 'Sync setup.',\n },\n io: { input: CreateSyncConfigInputModel, output: SyncConfigModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.syncConfig.created',\n version: '1.0.0',\n when: 'Sync config created',\n payload: SyncConfigModel,\n },\n ],\n audit: ['integration.syncConfig.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-sync-happy-path',\n given: ['User is authenticated'],\n when: ['User creates sync config'],\n then: ['Sync config is created', 'SyncConfigCreated event is emitted'],\n },\n ],\n examples: [\n {\n key: 'create-contact-sync',\n input: {\n name: 'Contacts Sync',\n sourceConnectionId: 'conn-1',\n targetConnectionId: 'conn-2',\n },\n output: { id: 'sync-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Add a field mapping to a sync config.\n */\nexport const AddFieldMappingContract = defineCommand({\n meta: {\n key: 'integration.fieldMapping.add',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'mapping', 'field'],\n description: 'Add a field mapping to a sync config.',\n goal: 'Map fields between systems.',\n context: 'Mapping configuration.',\n },\n io: { input: AddFieldMappingInputModel, output: FieldMappingModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.fieldMapping.added',\n version: '1.0.0',\n when: 'Mapping added',\n payload: FieldMappingModel,\n },\n ],\n },\n acceptance: {\n scenarios: [\n {\n key: 'add-mapping-happy-path',\n given: ['Sync config exists'],\n when: ['User adds field mapping'],\n then: ['Mapping is added', 'FieldMappingAdded event is emitted'],\n },\n ],\n examples: [\n {\n key: 'map-email',\n input: {\n syncConfigId: 'sync-123',\n sourceField: 'email',\n targetField: 'user_email',\n },\n output: { id: 'map-456', type: 'string' },\n },\n ],\n },\n});\n\n/**\n * Trigger a manual sync.\n */\nexport const TriggerSyncContract = defineCommand({\n meta: {\n key: 'integration.sync.trigger',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'trigger'],\n description: 'Trigger a manual sync.',\n goal: 'Start data synchronization.',\n context: 'Manual sync or webhook trigger.',\n },\n io: { input: TriggerSyncInputModel, output: SyncRunModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.sync.started',\n version: '1.0.0',\n when: 'Sync starts',\n payload: SyncRunModel,\n },\n ],\n audit: ['integration.sync.triggered'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'trigger-sync-happy-path',\n given: ['Sync config exists'],\n when: ['User triggers sync'],\n then: ['Sync run starts', 'SyncStarted event is emitted'],\n },\n ],\n examples: [\n {\n key: 'manual-trigger',\n input: { syncConfigId: 'sync-123' },\n output: { id: 'run-789', status: 'pending' },\n },\n ],\n },\n});\n\n/**\n * List sync run history.\n */\nexport const ListSyncRunsContract = defineQuery({\n meta: {\n key: 'integration.syncRun.list',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'run', 'list'],\n description: 'List sync run history.',\n goal: 'View sync history and status.',\n context: 'Sync monitoring.',\n },\n io: { input: ListSyncRunsInputModel, output: ListSyncRunsOutputModel },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-runs-happy-path',\n given: ['User has access to syncs'],\n when: ['User lists sync runs'],\n then: ['List of runs is returned'],\n },\n ],\n examples: [\n {\n key: 'list-recent',\n input: { limit: 10 },\n output: { items: [], total: 50 },\n },\n ],\n },\n});\n"],"mappings":";;;;AAeA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA4B,QAAQ;EAAiB;CAClE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,iCAAiC;EAC1C;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BA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AAK;GACL,OAAO,CAAC,qBAAqB;GAC7B,MAAM,CAAC,qBAAqB;GAC5B,MAAM,CAAC,mBAAmB,+BAA+B;GAC1D,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO,EAAE,cAAc,YAAY;GACnC,QAAQ;IAAE,IAAI;IAAW,QAAQ;IAAW;GAC7C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAO;EAC5C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAyB;CACtE,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,2BAA2B;GACnC,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,2BAA2B;GACnC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO,EAAE,OAAO,IAAI;GACpB,QAAQ;IAAE,OAAO,EAAE;IAAE,OAAO;IAAI;GACjC,CACF;EACF;CACF,CAAC"}
@@ -5,7 +5,7 @@ import { StabilityEnum } from "@contractspec/lib.contracts";
5
5
  const SyncConfigListPresentation = {
6
6
  meta: {
7
7
  key: "integration.syncConfig.list",
8
- version: 1,
8
+ version: "1.0.0",
9
9
  title: "Sync Config List",
10
10
  description: "List of sync configurations",
11
11
  domain: "integration",
@@ -32,7 +32,7 @@ const SyncConfigListPresentation = {
32
32
  const SyncConfigEditorPresentation = {
33
33
  meta: {
34
34
  key: "integration.syncConfig.editor",
35
- version: 1,
35
+ version: "1.0.0",
36
36
  title: "Sync Config Editor",
37
37
  description: "Editor for sync configuration settings",
38
38
  domain: "integration",
@@ -59,7 +59,7 @@ const SyncConfigEditorPresentation = {
59
59
  const FieldMappingEditorPresentation = {
60
60
  meta: {
61
61
  key: "integration.fieldMapping.editor",
62
- version: 1,
62
+ version: "1.0.0",
63
63
  title: "Field Mapping Editor",
64
64
  description: "Visual field mapping editor",
65
65
  domain: "integration",
@@ -85,7 +85,7 @@ const FieldMappingEditorPresentation = {
85
85
  const SyncRunListPresentation = {
86
86
  meta: {
87
87
  key: "integration.syncRun.list",
88
- version: 1,
88
+ version: "1.0.0",
89
89
  title: "Sync Run History",
90
90
  description: "History of sync runs",
91
91
  domain: "integration",
@@ -112,7 +112,7 @@ const SyncRunListPresentation = {
112
112
  const SyncRunDetailPresentation = {
113
113
  meta: {
114
114
  key: "integration.syncRun.detail",
115
- version: 1,
115
+ version: "1.0.0",
116
116
  title: "Sync Run Details",
117
117
  description: "Detailed view of a sync run with logs",
118
118
  domain: "integration",
@@ -139,7 +139,7 @@ const SyncRunDetailPresentation = {
139
139
  const SyncActivityPresentation = {
140
140
  meta: {
141
141
  key: "integration.sync.activity",
142
- version: 1,
142
+ version: "1.0.0",
143
143
  title: "Sync Activity Monitor",
144
144
  description: "Real-time sync activity monitor",
145
145
  domain: "integration",
@@ -1 +1 @@
1
- {"version":3,"file":"sync.presentation.js","names":["SyncConfigListPresentation: PresentationSpec","SyncConfigEditorPresentation: PresentationSpec","FieldMappingEditorPresentation: PresentationSpec","SyncRunListPresentation: PresentationSpec","SyncRunDetailPresentation: PresentationSpec","SyncActivityPresentation: PresentationSpec"],"sources":["../../src/sync/sync.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n} from './sync.schema';\n\nexport const SyncConfigListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.list',\n version: 1,\n title: 'Sync Config List',\n description: 'List of sync configurations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users their current sync configurations.',\n context: 'Management view for data synchronization.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigList',\n props: SyncConfigModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncConfigEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.editor',\n version: 1,\n title: 'Sync Config Editor',\n description: 'Editor for sync configuration settings',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to configure schedule, filters, and settings for a sync.',\n context: 'Configuration interface for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigEditor',\n props: SyncConfigModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const FieldMappingEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.fieldMapping.editor',\n version: 1,\n title: 'Field Mapping Editor',\n description: 'Visual field mapping editor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'field-mapping', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to map source fields to target fields visually.',\n context: 'Schema mapping tool for data consistency.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'FieldMappingEditor',\n props: FieldMappingModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.list',\n version: 1,\n title: 'Sync Run History',\n description: 'History of sync runs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'runs', 'history'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a historical log of all sync attempts and their results.',\n context: 'Audit and troubleshooting view for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunList',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.detail',\n version: 1,\n title: 'Sync Run Details',\n description: 'Detailed view of a sync run with logs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'run', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show granular details and logs for a specific sync run.',\n context: 'Detailed troubleshooting view.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunDetail',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncActivityPresentation: PresentationSpec = {\n meta: {\n key: 'integration.sync.activity',\n version: 1,\n title: 'Sync Activity Monitor',\n description: 'Real-time sync activity monitor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'activity', 'realtime'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor live data flow and sync performance.',\n context: 'Real-time operations monitor.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncActivity',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n"],"mappings":";;;;AAQA,MAAaA,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAO;EAC/C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF;AAED,MAAaC,+BAAiD;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe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MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAY;GAAW;EACrD,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF"}
1
+ {"version":3,"file":"sync.presentation.js","names":["SyncConfigListPresentation: PresentationSpec","SyncConfigEditorPresentation: PresentationSpec","FieldMappingEditorPresentation: PresentationSpec","SyncRunListPresentation: PresentationSpec","SyncRunDetailPresentation: PresentationSpec","SyncActivityPresentation: PresentationSpec"],"sources":["../../src/sync/sync.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n} from './sync.schema';\n\nexport const SyncConfigListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.list',\n version: '1.0.0',\n title: 'Sync Config List',\n description: 'List of sync configurations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users their current sync configurations.',\n context: 'Management view for data synchronization.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigList',\n props: SyncConfigModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncConfigEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.editor',\n version: '1.0.0',\n title: 'Sync Config Editor',\n description: 'Editor for sync configuration settings',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to configure schedule, filters, and settings for a sync.',\n context: 'Configuration interface for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigEditor',\n props: SyncConfigModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const FieldMappingEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.fieldMapping.editor',\n version: '1.0.0',\n title: 'Field Mapping Editor',\n description: 'Visual field mapping editor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'field-mapping', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to map source fields to target fields visually.',\n context: 'Schema mapping tool for data consistency.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'FieldMappingEditor',\n props: FieldMappingModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.list',\n version: '1.0.0',\n title: 'Sync Run History',\n description: 'History of sync runs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'runs', 'history'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a historical log of all sync attempts and their results.',\n context: 'Audit and troubleshooting view for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunList',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.detail',\n version: '1.0.0',\n title: 'Sync Run Details',\n description: 'Detailed view of a sync run with logs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'run', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show granular details and logs for a specific sync run.',\n context: 'Detailed troubleshooting view.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunDetail',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncActivityPresentation: PresentationSpec = {\n meta: {\n key: 'integration.sync.activity',\n version: '1.0.0',\n title: 'Sync Activity Monitor',\n description: 'Real-time sync activity monitor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'activity', 'realtime'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor live data flow and sync performance.',\n context: 'Real-time operations monitor.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncActivity',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n"],"mappings":";;;;AAQA,MAAaA,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAO;EAC/C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF;AAED,MAAaC,+BAAiD;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF;AAED,MAAaC,iCAAmD;CAC9D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;E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,EACpC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.integration-hub",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "Integration Hub example with sync engine and field mappings for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,20 +18,20 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@contractspec/lib.schema": "1.44.1",
22
- "@contractspec/lib.contracts": "1.44.1",
23
- "@contractspec/lib.bus": "1.44.1",
24
- "@contractspec/lib.identity-rbac": "1.44.1",
25
- "@contractspec/lib.files": "1.44.1",
26
- "@contractspec/lib.feature-flags": "1.44.1",
27
- "@contractspec/lib.jobs": "1.44.1",
28
- "@contractspec/module.audit-trail": "1.44.1",
29
- "@contractspec/module.notifications": "1.44.1",
21
+ "@contractspec/lib.schema": "1.45.1",
22
+ "@contractspec/lib.contracts": "1.45.1",
23
+ "@contractspec/lib.bus": "1.45.1",
24
+ "@contractspec/lib.identity-rbac": "1.45.1",
25
+ "@contractspec/lib.files": "1.45.1",
26
+ "@contractspec/lib.feature-flags": "1.45.1",
27
+ "@contractspec/lib.jobs": "1.45.1",
28
+ "@contractspec/module.audit-trail": "1.45.1",
29
+ "@contractspec/module.notifications": "1.45.1",
30
30
  "zod": "^4.1.13"
31
31
  },
32
32
  "devDependencies": {
33
- "@contractspec/tool.typescript": "1.44.1",
34
- "@contractspec/tool.tsdown": "1.44.1",
33
+ "@contractspec/tool.typescript": "1.45.1",
34
+ "@contractspec/tool.tsdown": "1.45.1",
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "exports": {