@contractspec/example.integration-hub 1.57.0 → 1.58.0

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 (190) hide show
  1. package/dist/browser/connection/connection.enum.js +12 -0
  2. package/dist/browser/connection/connection.operation.js +101 -0
  3. package/dist/browser/connection/connection.presentation.js +99 -0
  4. package/dist/browser/connection/connection.schema.js +48 -0
  5. package/dist/browser/connection/index.js +104 -0
  6. package/dist/browser/docs/index.js +104 -0
  7. package/dist/browser/docs/integration-hub.docblock.js +104 -0
  8. package/dist/browser/events.js +211 -0
  9. package/dist/browser/example.js +42 -0
  10. package/dist/browser/handlers/index.js +246 -0
  11. package/dist/browser/handlers/integration.handlers.js +246 -0
  12. package/dist/browser/index.js +1595 -0
  13. package/dist/browser/integration/index.js +92 -0
  14. package/dist/browser/integration/integration.enum.js +12 -0
  15. package/dist/browser/integration/integration.operations.js +89 -0
  16. package/dist/browser/integration/integration.presentation.js +117 -0
  17. package/dist/browser/integration/integration.schema.js +42 -0
  18. package/dist/browser/integration-hub.capability.js +40 -0
  19. package/dist/browser/integration-hub.feature.js +114 -0
  20. package/dist/browser/seeders/index.js +60 -0
  21. package/dist/browser/sync/index.js +332 -0
  22. package/dist/browser/sync/sync.enum.js +26 -0
  23. package/dist/browser/sync/sync.operations.js +321 -0
  24. package/dist/browser/sync/sync.presentation.js +298 -0
  25. package/dist/browser/sync/sync.schema.js +154 -0
  26. package/dist/browser/sync-engine/index.js +186 -0
  27. package/dist/browser/tests/operations.test-spec.js +85 -0
  28. package/dist/browser/ui/IntegrationDashboard.js +369 -0
  29. package/dist/browser/ui/hooks/index.js +57 -0
  30. package/dist/browser/ui/hooks/useIntegrationData.js +54 -0
  31. package/dist/browser/ui/index.js +644 -0
  32. package/dist/browser/ui/renderers/index.js +273 -0
  33. package/dist/browser/ui/renderers/integration.markdown.js +273 -0
  34. package/dist/connection/connection.enum.d.ts +1 -6
  35. package/dist/connection/connection.enum.d.ts.map +1 -1
  36. package/dist/connection/connection.enum.js +11 -15
  37. package/dist/connection/connection.operation.d.ts +78 -84
  38. package/dist/connection/connection.operation.d.ts.map +1 -1
  39. package/dist/connection/connection.operation.js +99 -60
  40. package/dist/connection/connection.presentation.d.ts +2 -7
  41. package/dist/connection/connection.presentation.d.ts.map +1 -1
  42. package/dist/connection/connection.presentation.js +96 -56
  43. package/dist/connection/connection.schema.d.ts +54 -59
  44. package/dist/connection/connection.schema.d.ts.map +1 -1
  45. package/dist/connection/connection.schema.js +46 -73
  46. package/dist/connection/index.d.ts +7 -4
  47. package/dist/connection/index.d.ts.map +1 -0
  48. package/dist/connection/index.js +104 -4
  49. package/dist/docs/index.d.ts +2 -1
  50. package/dist/docs/index.d.ts.map +1 -0
  51. package/dist/docs/index.js +105 -1
  52. package/dist/docs/integration-hub.docblock.d.ts +2 -1
  53. package/dist/docs/integration-hub.docblock.d.ts.map +1 -0
  54. package/dist/docs/integration-hub.docblock.js +45 -56
  55. package/dist/events.d.ts +137 -143
  56. package/dist/events.d.ts.map +1 -1
  57. package/dist/events.js +210 -287
  58. package/dist/example.d.ts +2 -6
  59. package/dist/example.d.ts.map +1 -1
  60. package/dist/example.js +41 -55
  61. package/dist/handlers/index.d.ts +2 -2
  62. package/dist/handlers/index.d.ts.map +1 -0
  63. package/dist/handlers/index.js +247 -3
  64. package/dist/handlers/integration.handlers.d.ts +114 -113
  65. package/dist/handlers/integration.handlers.d.ts.map +1 -1
  66. package/dist/handlers/integration.handlers.js +232 -267
  67. package/dist/index.d.ts +12 -19
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +1596 -20
  70. package/dist/integration/index.d.ts +7 -4
  71. package/dist/integration/index.d.ts.map +1 -0
  72. package/dist/integration/index.js +92 -4
  73. package/dist/integration/integration.enum.d.ts +1 -6
  74. package/dist/integration/integration.enum.d.ts.map +1 -1
  75. package/dist/integration/integration.enum.js +11 -15
  76. package/dist/integration/integration.operations.d.ts +74 -80
  77. package/dist/integration/integration.operations.d.ts.map +1 -1
  78. package/dist/integration/integration.operations.js +87 -54
  79. package/dist/integration/integration.presentation.d.ts +3 -8
  80. package/dist/integration/integration.presentation.d.ts.map +1 -1
  81. package/dist/integration/integration.presentation.js +114 -73
  82. package/dist/integration/integration.schema.d.ts +54 -59
  83. package/dist/integration/integration.schema.d.ts.map +1 -1
  84. package/dist/integration/integration.schema.js +40 -73
  85. package/dist/integration-hub.capability.d.ts +3 -8
  86. package/dist/integration-hub.capability.d.ts.map +1 -1
  87. package/dist/integration-hub.capability.js +41 -38
  88. package/dist/integration-hub.feature.d.ts +1 -6
  89. package/dist/integration-hub.feature.d.ts.map +1 -1
  90. package/dist/integration-hub.feature.js +113 -242
  91. package/dist/node/connection/connection.enum.js +12 -0
  92. package/dist/node/connection/connection.operation.js +101 -0
  93. package/dist/node/connection/connection.presentation.js +99 -0
  94. package/dist/node/connection/connection.schema.js +48 -0
  95. package/dist/node/connection/index.js +104 -0
  96. package/dist/node/docs/index.js +104 -0
  97. package/dist/node/docs/integration-hub.docblock.js +104 -0
  98. package/dist/node/events.js +211 -0
  99. package/dist/node/example.js +42 -0
  100. package/dist/node/handlers/index.js +246 -0
  101. package/dist/node/handlers/integration.handlers.js +246 -0
  102. package/dist/node/index.js +1595 -0
  103. package/dist/node/integration/index.js +92 -0
  104. package/dist/node/integration/integration.enum.js +12 -0
  105. package/dist/node/integration/integration.operations.js +89 -0
  106. package/dist/node/integration/integration.presentation.js +117 -0
  107. package/dist/node/integration/integration.schema.js +42 -0
  108. package/dist/node/integration-hub.capability.js +40 -0
  109. package/dist/node/integration-hub.feature.js +114 -0
  110. package/dist/node/seeders/index.js +60 -0
  111. package/dist/node/sync/index.js +332 -0
  112. package/dist/node/sync/sync.enum.js +26 -0
  113. package/dist/node/sync/sync.operations.js +321 -0
  114. package/dist/node/sync/sync.presentation.js +298 -0
  115. package/dist/node/sync/sync.schema.js +154 -0
  116. package/dist/node/sync-engine/index.js +186 -0
  117. package/dist/node/tests/operations.test-spec.js +85 -0
  118. package/dist/node/ui/IntegrationDashboard.js +369 -0
  119. package/dist/node/ui/hooks/index.js +57 -0
  120. package/dist/node/ui/hooks/useIntegrationData.js +54 -0
  121. package/dist/node/ui/index.js +644 -0
  122. package/dist/node/ui/renderers/index.js +273 -0
  123. package/dist/node/ui/renderers/integration.markdown.js +273 -0
  124. package/dist/seeders/index.d.ts +4 -8
  125. package/dist/seeders/index.d.ts.map +1 -1
  126. package/dist/seeders/index.js +54 -52
  127. package/dist/sync/index.d.ts +7 -4
  128. package/dist/sync/index.d.ts.map +1 -0
  129. package/dist/sync/index.js +332 -4
  130. package/dist/sync/sync.enum.d.ts +3 -8
  131. package/dist/sync/sync.enum.d.ts.map +1 -1
  132. package/dist/sync/sync.enum.js +23 -31
  133. package/dist/sync/sync.operations.d.ts +413 -419
  134. package/dist/sync/sync.operations.d.ts.map +1 -1
  135. package/dist/sync/sync.operations.js +316 -197
  136. package/dist/sync/sync.presentation.d.ts +6 -11
  137. package/dist/sync/sync.presentation.d.ts.map +1 -1
  138. package/dist/sync/sync.presentation.js +291 -160
  139. package/dist/sync/sync.schema.d.ts +317 -322
  140. package/dist/sync/sync.schema.d.ts.map +1 -1
  141. package/dist/sync/sync.schema.js +146 -295
  142. package/dist/sync-engine/index.d.ts +88 -91
  143. package/dist/sync-engine/index.d.ts.map +1 -1
  144. package/dist/sync-engine/index.js +181 -142
  145. package/dist/tests/operations.test-spec.d.ts +3 -8
  146. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  147. package/dist/tests/operations.test-spec.js +82 -90
  148. package/dist/ui/IntegrationDashboard.d.ts +1 -6
  149. package/dist/ui/IntegrationDashboard.d.ts.map +1 -1
  150. package/dist/ui/IntegrationDashboard.js +365 -261
  151. package/dist/ui/hooks/index.d.ts +2 -2
  152. package/dist/ui/hooks/index.d.ts.map +1 -0
  153. package/dist/ui/hooks/index.js +57 -4
  154. package/dist/ui/hooks/useIntegrationData.d.ts +16 -20
  155. package/dist/ui/hooks/useIntegrationData.d.ts.map +1 -1
  156. package/dist/ui/hooks/useIntegrationData.js +51 -55
  157. package/dist/ui/index.d.ts +7 -6
  158. package/dist/ui/index.d.ts.map +1 -0
  159. package/dist/ui/index.js +644 -5
  160. package/dist/ui/renderers/index.d.ts +2 -2
  161. package/dist/ui/renderers/index.d.ts.map +1 -0
  162. package/dist/ui/renderers/index.js +274 -3
  163. package/dist/ui/renderers/integration.markdown.d.ts +13 -14
  164. package/dist/ui/renderers/integration.markdown.d.ts.map +1 -1
  165. package/dist/ui/renderers/integration.markdown.js +268 -264
  166. package/package.json +360 -71
  167. package/dist/connection/connection.enum.js.map +0 -1
  168. package/dist/connection/connection.operation.js.map +0 -1
  169. package/dist/connection/connection.presentation.js.map +0 -1
  170. package/dist/connection/connection.schema.js.map +0 -1
  171. package/dist/docs/integration-hub.docblock.js.map +0 -1
  172. package/dist/events.js.map +0 -1
  173. package/dist/example.js.map +0 -1
  174. package/dist/handlers/integration.handlers.js.map +0 -1
  175. package/dist/integration/integration.enum.js.map +0 -1
  176. package/dist/integration/integration.operations.js.map +0 -1
  177. package/dist/integration/integration.presentation.js.map +0 -1
  178. package/dist/integration/integration.schema.js.map +0 -1
  179. package/dist/integration-hub.capability.js.map +0 -1
  180. package/dist/integration-hub.feature.js.map +0 -1
  181. package/dist/seeders/index.js.map +0 -1
  182. package/dist/sync/sync.enum.js.map +0 -1
  183. package/dist/sync/sync.operations.js.map +0 -1
  184. package/dist/sync/sync.presentation.js.map +0 -1
  185. package/dist/sync/sync.schema.js.map +0 -1
  186. package/dist/sync-engine/index.js.map +0 -1
  187. package/dist/tests/operations.test-spec.js.map +0 -1
  188. package/dist/ui/IntegrationDashboard.js.map +0 -1
  189. package/dist/ui/hooks/useIntegrationData.js.map +0 -1
  190. package/dist/ui/renderers/integration.markdown.js.map +0 -1
@@ -1,509 +1,503 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
-
4
- //#region src/sync/sync.operations.d.ts
5
1
  /**
6
2
  * Create a sync configuration.
7
3
  */
8
- declare const CreateSyncConfigContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- integrationId: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- connectionId: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- name: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: false;
20
- };
21
- direction: {
22
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
23
- isOptional: false;
24
- };
25
- sourceObject: {
26
- type: _contractspec_lib_schema0.FieldType<string, string>;
27
- isOptional: false;
28
- };
29
- targetObject: {
30
- type: _contractspec_lib_schema0.FieldType<string, string>;
31
- isOptional: false;
32
- };
33
- scheduleEnabled: {
34
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
35
- isOptional: true;
36
- };
37
- scheduleCron: {
38
- type: _contractspec_lib_schema0.FieldType<string, string>;
39
- isOptional: true;
40
- };
41
- }>, _contractspec_lib_schema0.SchemaModel<{
42
- id: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- integrationId: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- connectionId: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- name: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- direction: {
59
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
60
- isOptional: false;
61
- };
62
- sourceObject: {
63
- type: _contractspec_lib_schema0.FieldType<string, string>;
64
- isOptional: false;
65
- };
66
- targetObject: {
67
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
- isOptional: false;
69
- };
70
- scheduleEnabled: {
71
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
72
- isOptional: false;
73
- };
74
- scheduleCron: {
75
- type: _contractspec_lib_schema0.FieldType<string, string>;
76
- isOptional: true;
77
- };
78
- isActive: {
79
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
80
- isOptional: false;
81
- };
82
- lastSyncAt: {
83
- type: _contractspec_lib_schema0.FieldType<Date, string>;
84
- isOptional: true;
85
- };
86
- fieldMappings: {
87
- type: _contractspec_lib_schema0.SchemaModel<{
88
- id: {
89
- type: _contractspec_lib_schema0.FieldType<string, string>;
90
- isOptional: false;
91
- };
92
- sourceField: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
- isOptional: false;
95
- };
96
- targetField: {
97
- type: _contractspec_lib_schema0.FieldType<string, string>;
98
- isOptional: false;
99
- };
100
- mappingType: {
101
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
102
- isOptional: false;
103
- };
104
- transformExpression: {
105
- type: _contractspec_lib_schema0.FieldType<string, string>;
106
- isOptional: true;
107
- };
108
- isRequired: {
109
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
4
+ export declare const CreateSyncConfigContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ integrationId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
110
7
  isOptional: false;
111
- };
112
- }>;
113
- isArray: true;
114
- isOptional: true;
115
- };
116
- }>, {
117
- key: string;
118
- version: string;
119
- when: string;
120
- payload: _contractspec_lib_schema0.SchemaModel<{
8
+ };
9
+ connectionId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ name: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ direction: {
18
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
19
+ isOptional: false;
20
+ };
21
+ sourceObject: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ targetObject: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: false;
28
+ };
29
+ scheduleEnabled: {
30
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
31
+ isOptional: true;
32
+ };
33
+ scheduleCron: {
34
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ }>, import("@contractspec/lib.schema").SchemaModel<{
121
38
  id: {
122
- type: _contractspec_lib_schema0.FieldType<string, string>;
123
- isOptional: false;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
124
41
  };
125
42
  integrationId: {
126
- type: _contractspec_lib_schema0.FieldType<string, string>;
127
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
128
45
  };
129
46
  connectionId: {
130
- type: _contractspec_lib_schema0.FieldType<string, string>;
131
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: false;
132
49
  };
133
50
  name: {
134
- type: _contractspec_lib_schema0.FieldType<string, string>;
135
- isOptional: false;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: false;
136
53
  };
137
54
  direction: {
138
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
139
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
56
+ isOptional: false;
140
57
  };
141
58
  sourceObject: {
142
- type: _contractspec_lib_schema0.FieldType<string, string>;
143
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
144
61
  };
145
62
  targetObject: {
146
- type: _contractspec_lib_schema0.FieldType<string, string>;
147
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: false;
148
65
  };
149
66
  scheduleEnabled: {
150
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
151
- isOptional: false;
67
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
68
+ isOptional: false;
152
69
  };
153
70
  scheduleCron: {
154
- type: _contractspec_lib_schema0.FieldType<string, string>;
155
- isOptional: true;
71
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
72
+ isOptional: true;
156
73
  };
157
74
  isActive: {
158
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
159
- isOptional: false;
75
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
76
+ isOptional: false;
160
77
  };
161
78
  lastSyncAt: {
162
- type: _contractspec_lib_schema0.FieldType<Date, string>;
163
- isOptional: true;
79
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
80
+ isOptional: true;
164
81
  };
165
82
  fieldMappings: {
166
- type: _contractspec_lib_schema0.SchemaModel<{
83
+ type: import("@contractspec/lib.schema").SchemaModel<{
84
+ id: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ sourceField: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ targetField: {
93
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ mappingType: {
97
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
98
+ isOptional: false;
99
+ };
100
+ transformExpression: {
101
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
102
+ isOptional: true;
103
+ };
104
+ isRequired: {
105
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
106
+ isOptional: false;
107
+ };
108
+ }>;
109
+ isArray: true;
110
+ isOptional: true;
111
+ };
112
+ }>, {
113
+ key: string;
114
+ version: string;
115
+ when: string;
116
+ payload: import("@contractspec/lib.schema").SchemaModel<{
167
117
  id: {
168
- type: _contractspec_lib_schema0.FieldType<string, string>;
169
- isOptional: false;
118
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
119
+ isOptional: false;
170
120
  };
171
- sourceField: {
172
- type: _contractspec_lib_schema0.FieldType<string, string>;
173
- isOptional: false;
121
+ integrationId: {
122
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
123
+ isOptional: false;
174
124
  };
175
- targetField: {
176
- type: _contractspec_lib_schema0.FieldType<string, string>;
177
- isOptional: false;
125
+ connectionId: {
126
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
127
+ isOptional: false;
178
128
  };
179
- mappingType: {
180
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
181
- isOptional: false;
129
+ name: {
130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
131
+ isOptional: false;
182
132
  };
183
- transformExpression: {
184
- type: _contractspec_lib_schema0.FieldType<string, string>;
185
- isOptional: true;
133
+ direction: {
134
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
135
+ isOptional: false;
186
136
  };
187
- isRequired: {
188
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
189
- isOptional: false;
137
+ sourceObject: {
138
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
139
+ isOptional: false;
190
140
  };
191
- }>;
192
- isArray: true;
193
- isOptional: true;
194
- };
195
- }>;
141
+ targetObject: {
142
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ scheduleEnabled: {
146
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
147
+ isOptional: false;
148
+ };
149
+ scheduleCron: {
150
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
151
+ isOptional: true;
152
+ };
153
+ isActive: {
154
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
155
+ isOptional: false;
156
+ };
157
+ lastSyncAt: {
158
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
159
+ isOptional: true;
160
+ };
161
+ fieldMappings: {
162
+ type: import("@contractspec/lib.schema").SchemaModel<{
163
+ id: {
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: false;
166
+ };
167
+ sourceField: {
168
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
+ isOptional: false;
170
+ };
171
+ targetField: {
172
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
173
+ isOptional: false;
174
+ };
175
+ mappingType: {
176
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
177
+ isOptional: false;
178
+ };
179
+ transformExpression: {
180
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
181
+ isOptional: true;
182
+ };
183
+ isRequired: {
184
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
185
+ isOptional: false;
186
+ };
187
+ }>;
188
+ isArray: true;
189
+ isOptional: true;
190
+ };
191
+ }>;
196
192
  }[]>;
197
193
  /**
198
194
  * Add a field mapping to a sync config.
199
195
  */
200
- declare const AddFieldMappingContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
201
- syncConfigId: {
202
- type: _contractspec_lib_schema0.FieldType<string, string>;
203
- isOptional: false;
204
- };
205
- sourceField: {
206
- type: _contractspec_lib_schema0.FieldType<string, string>;
207
- isOptional: false;
208
- };
209
- targetField: {
210
- type: _contractspec_lib_schema0.FieldType<string, string>;
211
- isOptional: false;
212
- };
213
- mappingType: {
214
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
215
- isOptional: false;
216
- };
217
- transformExpression: {
218
- type: _contractspec_lib_schema0.FieldType<string, string>;
219
- isOptional: true;
220
- };
221
- lookupConfig: {
222
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
223
- isOptional: true;
224
- };
225
- constantValue: {
226
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
227
- isOptional: true;
228
- };
229
- isRequired: {
230
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
231
- isOptional: true;
232
- };
233
- defaultValue: {
234
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
235
- isOptional: true;
236
- };
237
- }>, _contractspec_lib_schema0.SchemaModel<{
238
- id: {
239
- type: _contractspec_lib_schema0.FieldType<string, string>;
240
- isOptional: false;
241
- };
242
- sourceField: {
243
- type: _contractspec_lib_schema0.FieldType<string, string>;
244
- isOptional: false;
245
- };
246
- targetField: {
247
- type: _contractspec_lib_schema0.FieldType<string, string>;
248
- isOptional: false;
249
- };
250
- mappingType: {
251
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
252
- isOptional: false;
253
- };
254
- transformExpression: {
255
- type: _contractspec_lib_schema0.FieldType<string, string>;
256
- isOptional: true;
257
- };
258
- isRequired: {
259
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
260
- isOptional: false;
261
- };
262
- }>, {
263
- key: string;
264
- version: string;
265
- when: string;
266
- payload: _contractspec_lib_schema0.SchemaModel<{
196
+ export declare const AddFieldMappingContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
197
+ syncConfigId: {
198
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
199
+ isOptional: false;
200
+ };
201
+ sourceField: {
202
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
203
+ isOptional: false;
204
+ };
205
+ targetField: {
206
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
207
+ isOptional: false;
208
+ };
209
+ mappingType: {
210
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
211
+ isOptional: false;
212
+ };
213
+ transformExpression: {
214
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
215
+ isOptional: true;
216
+ };
217
+ lookupConfig: {
218
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
219
+ isOptional: true;
220
+ };
221
+ constantValue: {
222
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
223
+ isOptional: true;
224
+ };
225
+ isRequired: {
226
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
227
+ isOptional: true;
228
+ };
229
+ defaultValue: {
230
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
231
+ isOptional: true;
232
+ };
233
+ }>, import("@contractspec/lib.schema").SchemaModel<{
267
234
  id: {
268
- type: _contractspec_lib_schema0.FieldType<string, string>;
269
- isOptional: false;
235
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
236
+ isOptional: false;
270
237
  };
271
238
  sourceField: {
272
- type: _contractspec_lib_schema0.FieldType<string, string>;
273
- isOptional: false;
239
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
240
+ isOptional: false;
274
241
  };
275
242
  targetField: {
276
- type: _contractspec_lib_schema0.FieldType<string, string>;
277
- isOptional: false;
243
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
244
+ isOptional: false;
278
245
  };
279
246
  mappingType: {
280
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
281
- isOptional: false;
247
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
248
+ isOptional: false;
282
249
  };
283
250
  transformExpression: {
284
- type: _contractspec_lib_schema0.FieldType<string, string>;
285
- isOptional: true;
251
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
252
+ isOptional: true;
286
253
  };
287
254
  isRequired: {
288
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
289
- isOptional: false;
255
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
256
+ isOptional: false;
290
257
  };
291
- }>;
258
+ }>, {
259
+ key: string;
260
+ version: string;
261
+ when: string;
262
+ payload: import("@contractspec/lib.schema").SchemaModel<{
263
+ id: {
264
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
265
+ isOptional: false;
266
+ };
267
+ sourceField: {
268
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
269
+ isOptional: false;
270
+ };
271
+ targetField: {
272
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
273
+ isOptional: false;
274
+ };
275
+ mappingType: {
276
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
277
+ isOptional: false;
278
+ };
279
+ transformExpression: {
280
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
281
+ isOptional: true;
282
+ };
283
+ isRequired: {
284
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
285
+ isOptional: false;
286
+ };
287
+ }>;
292
288
  }[]>;
293
289
  /**
294
290
  * Trigger a manual sync.
295
291
  */
296
- declare const TriggerSyncContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
297
- syncConfigId: {
298
- type: _contractspec_lib_schema0.FieldType<string, string>;
299
- isOptional: false;
300
- };
301
- direction: {
302
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
303
- isOptional: true;
304
- };
305
- fullSync: {
306
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
307
- isOptional: true;
308
- };
309
- }>, _contractspec_lib_schema0.SchemaModel<{
310
- id: {
311
- type: _contractspec_lib_schema0.FieldType<string, string>;
312
- isOptional: false;
313
- };
314
- syncConfigId: {
315
- type: _contractspec_lib_schema0.FieldType<string, string>;
316
- isOptional: false;
317
- };
318
- status: {
319
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
320
- isOptional: false;
321
- };
322
- direction: {
323
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
324
- isOptional: false;
325
- };
326
- trigger: {
327
- type: _contractspec_lib_schema0.FieldType<string, string>;
328
- isOptional: false;
329
- };
330
- recordsProcessed: {
331
- type: _contractspec_lib_schema0.FieldType<number, number>;
332
- isOptional: false;
333
- };
334
- recordsCreated: {
335
- type: _contractspec_lib_schema0.FieldType<number, number>;
336
- isOptional: false;
337
- };
338
- recordsUpdated: {
339
- type: _contractspec_lib_schema0.FieldType<number, number>;
340
- isOptional: false;
341
- };
342
- recordsFailed: {
343
- type: _contractspec_lib_schema0.FieldType<number, number>;
344
- isOptional: false;
345
- };
346
- errorMessage: {
347
- type: _contractspec_lib_schema0.FieldType<string, string>;
348
- isOptional: true;
349
- };
350
- startedAt: {
351
- type: _contractspec_lib_schema0.FieldType<Date, string>;
352
- isOptional: true;
353
- };
354
- completedAt: {
355
- type: _contractspec_lib_schema0.FieldType<Date, string>;
356
- isOptional: true;
357
- };
358
- createdAt: {
359
- type: _contractspec_lib_schema0.FieldType<Date, string>;
360
- isOptional: false;
361
- };
362
- }>, {
363
- key: string;
364
- version: string;
365
- when: string;
366
- payload: _contractspec_lib_schema0.SchemaModel<{
292
+ export declare const TriggerSyncContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
293
+ syncConfigId: {
294
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
295
+ isOptional: false;
296
+ };
297
+ direction: {
298
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
299
+ isOptional: true;
300
+ };
301
+ fullSync: {
302
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
303
+ isOptional: true;
304
+ };
305
+ }>, import("@contractspec/lib.schema").SchemaModel<{
367
306
  id: {
368
- type: _contractspec_lib_schema0.FieldType<string, string>;
369
- isOptional: false;
307
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
308
+ isOptional: false;
370
309
  };
371
310
  syncConfigId: {
372
- type: _contractspec_lib_schema0.FieldType<string, string>;
373
- isOptional: false;
311
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
312
+ isOptional: false;
374
313
  };
375
314
  status: {
376
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
377
- isOptional: false;
315
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
316
+ isOptional: false;
378
317
  };
379
318
  direction: {
380
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
381
- isOptional: false;
319
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
320
+ isOptional: false;
382
321
  };
383
322
  trigger: {
384
- type: _contractspec_lib_schema0.FieldType<string, string>;
385
- isOptional: false;
323
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
324
+ isOptional: false;
386
325
  };
387
326
  recordsProcessed: {
388
- type: _contractspec_lib_schema0.FieldType<number, number>;
389
- isOptional: false;
327
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
328
+ isOptional: false;
390
329
  };
391
330
  recordsCreated: {
392
- type: _contractspec_lib_schema0.FieldType<number, number>;
393
- isOptional: false;
331
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
332
+ isOptional: false;
394
333
  };
395
334
  recordsUpdated: {
396
- type: _contractspec_lib_schema0.FieldType<number, number>;
397
- isOptional: false;
335
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
336
+ isOptional: false;
398
337
  };
399
338
  recordsFailed: {
400
- type: _contractspec_lib_schema0.FieldType<number, number>;
401
- isOptional: false;
339
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
340
+ isOptional: false;
402
341
  };
403
342
  errorMessage: {
404
- type: _contractspec_lib_schema0.FieldType<string, string>;
405
- isOptional: true;
343
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
344
+ isOptional: true;
406
345
  };
407
346
  startedAt: {
408
- type: _contractspec_lib_schema0.FieldType<Date, string>;
409
- isOptional: true;
347
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
348
+ isOptional: true;
410
349
  };
411
350
  completedAt: {
412
- type: _contractspec_lib_schema0.FieldType<Date, string>;
413
- isOptional: true;
351
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
352
+ isOptional: true;
414
353
  };
415
354
  createdAt: {
416
- type: _contractspec_lib_schema0.FieldType<Date, string>;
417
- isOptional: false;
355
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
356
+ isOptional: false;
418
357
  };
419
- }>;
358
+ }>, {
359
+ key: string;
360
+ version: string;
361
+ when: string;
362
+ payload: import("@contractspec/lib.schema").SchemaModel<{
363
+ id: {
364
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
365
+ isOptional: false;
366
+ };
367
+ syncConfigId: {
368
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
369
+ isOptional: false;
370
+ };
371
+ status: {
372
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
373
+ isOptional: false;
374
+ };
375
+ direction: {
376
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
377
+ isOptional: false;
378
+ };
379
+ trigger: {
380
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
381
+ isOptional: false;
382
+ };
383
+ recordsProcessed: {
384
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
385
+ isOptional: false;
386
+ };
387
+ recordsCreated: {
388
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
389
+ isOptional: false;
390
+ };
391
+ recordsUpdated: {
392
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
393
+ isOptional: false;
394
+ };
395
+ recordsFailed: {
396
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
397
+ isOptional: false;
398
+ };
399
+ errorMessage: {
400
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
401
+ isOptional: true;
402
+ };
403
+ startedAt: {
404
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
405
+ isOptional: true;
406
+ };
407
+ completedAt: {
408
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
409
+ isOptional: true;
410
+ };
411
+ createdAt: {
412
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
413
+ isOptional: false;
414
+ };
415
+ }>;
420
416
  }[]>;
421
417
  /**
422
418
  * List sync run history.
423
419
  */
424
- declare const ListSyncRunsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
425
- syncConfigId: {
426
- type: _contractspec_lib_schema0.FieldType<string, string>;
427
- isOptional: false;
428
- };
429
- status: {
430
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
431
- isOptional: true;
432
- };
433
- limit: {
434
- type: _contractspec_lib_schema0.FieldType<number, number>;
435
- isOptional: true;
436
- defaultValue: number;
437
- };
438
- offset: {
439
- type: _contractspec_lib_schema0.FieldType<number, number>;
440
- isOptional: true;
441
- defaultValue: number;
442
- };
443
- }>, _contractspec_lib_schema0.SchemaModel<{
444
- runs: {
445
- type: _contractspec_lib_schema0.SchemaModel<{
446
- id: {
447
- type: _contractspec_lib_schema0.FieldType<string, string>;
448
- isOptional: false;
449
- };
450
- syncConfigId: {
451
- type: _contractspec_lib_schema0.FieldType<string, string>;
452
- isOptional: false;
453
- };
454
- status: {
455
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
456
- isOptional: false;
457
- };
458
- direction: {
459
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
460
- isOptional: false;
461
- };
462
- trigger: {
463
- type: _contractspec_lib_schema0.FieldType<string, string>;
464
- isOptional: false;
465
- };
466
- recordsProcessed: {
467
- type: _contractspec_lib_schema0.FieldType<number, number>;
468
- isOptional: false;
469
- };
470
- recordsCreated: {
471
- type: _contractspec_lib_schema0.FieldType<number, number>;
472
- isOptional: false;
473
- };
474
- recordsUpdated: {
475
- type: _contractspec_lib_schema0.FieldType<number, number>;
476
- isOptional: false;
477
- };
478
- recordsFailed: {
479
- type: _contractspec_lib_schema0.FieldType<number, number>;
480
- isOptional: false;
481
- };
482
- errorMessage: {
483
- type: _contractspec_lib_schema0.FieldType<string, string>;
420
+ export declare const ListSyncRunsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
421
+ syncConfigId: {
422
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
423
+ isOptional: false;
424
+ };
425
+ status: {
426
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
484
427
  isOptional: true;
485
- };
486
- startedAt: {
487
- type: _contractspec_lib_schema0.FieldType<Date, string>;
428
+ };
429
+ limit: {
430
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
488
431
  isOptional: true;
489
- };
490
- completedAt: {
491
- type: _contractspec_lib_schema0.FieldType<Date, string>;
432
+ defaultValue: number;
433
+ };
434
+ offset: {
435
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
492
436
  isOptional: true;
493
- };
494
- createdAt: {
495
- type: _contractspec_lib_schema0.FieldType<Date, string>;
437
+ defaultValue: number;
438
+ };
439
+ }>, import("@contractspec/lib.schema").SchemaModel<{
440
+ runs: {
441
+ type: import("@contractspec/lib.schema").SchemaModel<{
442
+ id: {
443
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
444
+ isOptional: false;
445
+ };
446
+ syncConfigId: {
447
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
448
+ isOptional: false;
449
+ };
450
+ status: {
451
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
452
+ isOptional: false;
453
+ };
454
+ direction: {
455
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
456
+ isOptional: false;
457
+ };
458
+ trigger: {
459
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
460
+ isOptional: false;
461
+ };
462
+ recordsProcessed: {
463
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
464
+ isOptional: false;
465
+ };
466
+ recordsCreated: {
467
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
468
+ isOptional: false;
469
+ };
470
+ recordsUpdated: {
471
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
472
+ isOptional: false;
473
+ };
474
+ recordsFailed: {
475
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
476
+ isOptional: false;
477
+ };
478
+ errorMessage: {
479
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
480
+ isOptional: true;
481
+ };
482
+ startedAt: {
483
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
484
+ isOptional: true;
485
+ };
486
+ completedAt: {
487
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
488
+ isOptional: true;
489
+ };
490
+ createdAt: {
491
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
492
+ isOptional: false;
493
+ };
494
+ }>;
495
+ isArray: true;
496
496
  isOptional: false;
497
- };
498
- }>;
499
- isArray: true;
500
- isOptional: false;
501
- };
502
- total: {
503
- type: _contractspec_lib_schema0.FieldType<number, number>;
504
- isOptional: false;
505
- };
497
+ };
498
+ total: {
499
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
500
+ isOptional: false;
501
+ };
506
502
  }>, undefined>;
507
- //#endregion
508
- export { AddFieldMappingContract, CreateSyncConfigContract, ListSyncRunsContract, TriggerSyncContract };
509
503
  //# sourceMappingURL=sync.operations.d.ts.map