@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,356 +1,351 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/sync/sync.schema.d.ts
4
1
  /**
5
2
  * A field mapping configuration.
6
3
  */
7
- declare const FieldMappingModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- sourceField: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- targetField: {
17
- type: _contractspec_lib_schema0.FieldType<string, string>;
18
- isOptional: false;
19
- };
20
- mappingType: {
21
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
22
- isOptional: false;
23
- };
24
- transformExpression: {
25
- type: _contractspec_lib_schema0.FieldType<string, string>;
26
- isOptional: true;
27
- };
28
- isRequired: {
29
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
30
- isOptional: false;
31
- };
4
+ export declare const FieldMappingModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ sourceField: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ targetField: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ mappingType: {
18
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
19
+ isOptional: false;
20
+ };
21
+ transformExpression: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ isRequired: {
26
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
27
+ isOptional: false;
28
+ };
32
29
  }>;
33
30
  /**
34
31
  * A sync configuration.
35
32
  */
36
- declare const SyncConfigModel: _contractspec_lib_schema0.SchemaModel<{
37
- id: {
38
- type: _contractspec_lib_schema0.FieldType<string, string>;
39
- isOptional: false;
40
- };
41
- integrationId: {
42
- type: _contractspec_lib_schema0.FieldType<string, string>;
43
- isOptional: false;
44
- };
45
- connectionId: {
46
- type: _contractspec_lib_schema0.FieldType<string, string>;
47
- isOptional: false;
48
- };
49
- name: {
50
- type: _contractspec_lib_schema0.FieldType<string, string>;
51
- isOptional: false;
52
- };
53
- direction: {
54
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
55
- isOptional: false;
56
- };
57
- sourceObject: {
58
- type: _contractspec_lib_schema0.FieldType<string, string>;
59
- isOptional: false;
60
- };
61
- targetObject: {
62
- type: _contractspec_lib_schema0.FieldType<string, string>;
63
- isOptional: false;
64
- };
65
- scheduleEnabled: {
66
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
67
- isOptional: false;
68
- };
69
- scheduleCron: {
70
- type: _contractspec_lib_schema0.FieldType<string, string>;
71
- isOptional: true;
72
- };
73
- isActive: {
74
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
75
- isOptional: false;
76
- };
77
- lastSyncAt: {
78
- type: _contractspec_lib_schema0.FieldType<Date, string>;
79
- isOptional: true;
80
- };
81
- fieldMappings: {
82
- type: _contractspec_lib_schema0.SchemaModel<{
83
- id: {
84
- type: _contractspec_lib_schema0.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- sourceField: {
88
- type: _contractspec_lib_schema0.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- targetField: {
92
- type: _contractspec_lib_schema0.FieldType<string, string>;
93
- isOptional: false;
94
- };
95
- mappingType: {
96
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
97
- isOptional: false;
98
- };
99
- transformExpression: {
100
- type: _contractspec_lib_schema0.FieldType<string, string>;
33
+ export declare const SyncConfigModel: import("@contractspec/lib.schema").SchemaModel<{
34
+ id: {
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ integrationId: {
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ connectionId: {
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ name: {
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ direction: {
51
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
52
+ isOptional: false;
53
+ };
54
+ sourceObject: {
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ targetObject: {
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ scheduleEnabled: {
63
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
64
+ isOptional: false;
65
+ };
66
+ scheduleCron: {
67
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ isActive: {
71
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
72
+ isOptional: false;
73
+ };
74
+ lastSyncAt: {
75
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
76
+ isOptional: true;
77
+ };
78
+ fieldMappings: {
79
+ type: import("@contractspec/lib.schema").SchemaModel<{
80
+ id: {
81
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
82
+ isOptional: false;
83
+ };
84
+ sourceField: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ targetField: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ mappingType: {
93
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
94
+ isOptional: false;
95
+ };
96
+ transformExpression: {
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: true;
99
+ };
100
+ isRequired: {
101
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
102
+ isOptional: false;
103
+ };
104
+ }>;
105
+ isArray: true;
101
106
  isOptional: true;
102
- };
103
- isRequired: {
104
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
105
- isOptional: false;
106
- };
107
- }>;
108
- isArray: true;
109
- isOptional: true;
110
- };
107
+ };
111
108
  }>;
112
109
  /**
113
110
  * A sync run.
114
111
  */
115
- declare const SyncRunModel: _contractspec_lib_schema0.SchemaModel<{
116
- id: {
117
- type: _contractspec_lib_schema0.FieldType<string, string>;
118
- isOptional: false;
119
- };
120
- syncConfigId: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- status: {
125
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
126
- isOptional: false;
127
- };
128
- direction: {
129
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
130
- isOptional: false;
131
- };
132
- trigger: {
133
- type: _contractspec_lib_schema0.FieldType<string, string>;
134
- isOptional: false;
135
- };
136
- recordsProcessed: {
137
- type: _contractspec_lib_schema0.FieldType<number, number>;
138
- isOptional: false;
139
- };
140
- recordsCreated: {
141
- type: _contractspec_lib_schema0.FieldType<number, number>;
142
- isOptional: false;
143
- };
144
- recordsUpdated: {
145
- type: _contractspec_lib_schema0.FieldType<number, number>;
146
- isOptional: false;
147
- };
148
- recordsFailed: {
149
- type: _contractspec_lib_schema0.FieldType<number, number>;
150
- isOptional: false;
151
- };
152
- errorMessage: {
153
- type: _contractspec_lib_schema0.FieldType<string, string>;
154
- isOptional: true;
155
- };
156
- startedAt: {
157
- type: _contractspec_lib_schema0.FieldType<Date, string>;
158
- isOptional: true;
159
- };
160
- completedAt: {
161
- type: _contractspec_lib_schema0.FieldType<Date, string>;
162
- isOptional: true;
163
- };
164
- createdAt: {
165
- type: _contractspec_lib_schema0.FieldType<Date, string>;
166
- isOptional: false;
167
- };
112
+ export declare const SyncRunModel: import("@contractspec/lib.schema").SchemaModel<{
113
+ id: {
114
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
115
+ isOptional: false;
116
+ };
117
+ syncConfigId: {
118
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ status: {
122
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
123
+ isOptional: false;
124
+ };
125
+ direction: {
126
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
127
+ isOptional: false;
128
+ };
129
+ trigger: {
130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
131
+ isOptional: false;
132
+ };
133
+ recordsProcessed: {
134
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
135
+ isOptional: false;
136
+ };
137
+ recordsCreated: {
138
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
139
+ isOptional: false;
140
+ };
141
+ recordsUpdated: {
142
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
143
+ isOptional: false;
144
+ };
145
+ recordsFailed: {
146
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
147
+ isOptional: false;
148
+ };
149
+ errorMessage: {
150
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
151
+ isOptional: true;
152
+ };
153
+ startedAt: {
154
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
155
+ isOptional: true;
156
+ };
157
+ completedAt: {
158
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
159
+ isOptional: true;
160
+ };
161
+ createdAt: {
162
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
163
+ isOptional: false;
164
+ };
168
165
  }>;
169
166
  /**
170
167
  * Input for creating a sync config.
171
168
  */
172
- declare const CreateSyncConfigInputModel: _contractspec_lib_schema0.SchemaModel<{
173
- integrationId: {
174
- type: _contractspec_lib_schema0.FieldType<string, string>;
175
- isOptional: false;
176
- };
177
- connectionId: {
178
- type: _contractspec_lib_schema0.FieldType<string, string>;
179
- isOptional: false;
180
- };
181
- name: {
182
- type: _contractspec_lib_schema0.FieldType<string, string>;
183
- isOptional: false;
184
- };
185
- direction: {
186
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
187
- isOptional: false;
188
- };
189
- sourceObject: {
190
- type: _contractspec_lib_schema0.FieldType<string, string>;
191
- isOptional: false;
192
- };
193
- targetObject: {
194
- type: _contractspec_lib_schema0.FieldType<string, string>;
195
- isOptional: false;
196
- };
197
- scheduleEnabled: {
198
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
199
- isOptional: true;
200
- };
201
- scheduleCron: {
202
- type: _contractspec_lib_schema0.FieldType<string, string>;
203
- isOptional: true;
204
- };
169
+ export declare const CreateSyncConfigInputModel: import("@contractspec/lib.schema").SchemaModel<{
170
+ integrationId: {
171
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
172
+ isOptional: false;
173
+ };
174
+ connectionId: {
175
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
176
+ isOptional: false;
177
+ };
178
+ name: {
179
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
180
+ isOptional: false;
181
+ };
182
+ direction: {
183
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
184
+ isOptional: false;
185
+ };
186
+ sourceObject: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: false;
189
+ };
190
+ targetObject: {
191
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
192
+ isOptional: false;
193
+ };
194
+ scheduleEnabled: {
195
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
196
+ isOptional: true;
197
+ };
198
+ scheduleCron: {
199
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
200
+ isOptional: true;
201
+ };
205
202
  }>;
206
203
  /**
207
204
  * Input for adding a field mapping.
208
205
  */
209
- declare const AddFieldMappingInputModel: _contractspec_lib_schema0.SchemaModel<{
210
- syncConfigId: {
211
- type: _contractspec_lib_schema0.FieldType<string, string>;
212
- isOptional: false;
213
- };
214
- sourceField: {
215
- type: _contractspec_lib_schema0.FieldType<string, string>;
216
- isOptional: false;
217
- };
218
- targetField: {
219
- type: _contractspec_lib_schema0.FieldType<string, string>;
220
- isOptional: false;
221
- };
222
- mappingType: {
223
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
224
- isOptional: false;
225
- };
226
- transformExpression: {
227
- type: _contractspec_lib_schema0.FieldType<string, string>;
228
- isOptional: true;
229
- };
230
- lookupConfig: {
231
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
232
- isOptional: true;
233
- };
234
- constantValue: {
235
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
236
- isOptional: true;
237
- };
238
- isRequired: {
239
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
240
- isOptional: true;
241
- };
242
- defaultValue: {
243
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
244
- isOptional: true;
245
- };
206
+ export declare const AddFieldMappingInputModel: import("@contractspec/lib.schema").SchemaModel<{
207
+ syncConfigId: {
208
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
209
+ isOptional: false;
210
+ };
211
+ sourceField: {
212
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
213
+ isOptional: false;
214
+ };
215
+ targetField: {
216
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
217
+ isOptional: false;
218
+ };
219
+ mappingType: {
220
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
221
+ isOptional: false;
222
+ };
223
+ transformExpression: {
224
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
225
+ isOptional: true;
226
+ };
227
+ lookupConfig: {
228
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
229
+ isOptional: true;
230
+ };
231
+ constantValue: {
232
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
233
+ isOptional: true;
234
+ };
235
+ isRequired: {
236
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
237
+ isOptional: true;
238
+ };
239
+ defaultValue: {
240
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
241
+ isOptional: true;
242
+ };
246
243
  }>;
247
244
  /**
248
245
  * Input for triggering a sync.
249
246
  */
250
- declare const TriggerSyncInputModel: _contractspec_lib_schema0.SchemaModel<{
251
- syncConfigId: {
252
- type: _contractspec_lib_schema0.FieldType<string, string>;
253
- isOptional: false;
254
- };
255
- direction: {
256
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
257
- isOptional: true;
258
- };
259
- fullSync: {
260
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
261
- isOptional: true;
262
- };
247
+ export declare const TriggerSyncInputModel: import("@contractspec/lib.schema").SchemaModel<{
248
+ syncConfigId: {
249
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
250
+ isOptional: false;
251
+ };
252
+ direction: {
253
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
254
+ isOptional: true;
255
+ };
256
+ fullSync: {
257
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
258
+ isOptional: true;
259
+ };
263
260
  }>;
264
261
  /**
265
262
  * Input for listing sync runs.
266
263
  */
267
- declare const ListSyncRunsInputModel: _contractspec_lib_schema0.SchemaModel<{
268
- syncConfigId: {
269
- type: _contractspec_lib_schema0.FieldType<string, string>;
270
- isOptional: false;
271
- };
272
- status: {
273
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
274
- isOptional: true;
275
- };
276
- limit: {
277
- type: _contractspec_lib_schema0.FieldType<number, number>;
278
- isOptional: true;
279
- defaultValue: number;
280
- };
281
- offset: {
282
- type: _contractspec_lib_schema0.FieldType<number, number>;
283
- isOptional: true;
284
- defaultValue: number;
285
- };
264
+ export declare const ListSyncRunsInputModel: import("@contractspec/lib.schema").SchemaModel<{
265
+ syncConfigId: {
266
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
267
+ isOptional: false;
268
+ };
269
+ status: {
270
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
271
+ isOptional: true;
272
+ };
273
+ limit: {
274
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
275
+ isOptional: true;
276
+ defaultValue: number;
277
+ };
278
+ offset: {
279
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
280
+ isOptional: true;
281
+ defaultValue: number;
282
+ };
286
283
  }>;
287
284
  /**
288
285
  * Output for listing sync runs.
289
286
  */
290
- declare const ListSyncRunsOutputModel: _contractspec_lib_schema0.SchemaModel<{
291
- runs: {
292
- type: _contractspec_lib_schema0.SchemaModel<{
293
- id: {
294
- type: _contractspec_lib_schema0.FieldType<string, string>;
295
- isOptional: false;
296
- };
297
- syncConfigId: {
298
- type: _contractspec_lib_schema0.FieldType<string, string>;
299
- isOptional: false;
300
- };
301
- status: {
302
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
303
- isOptional: false;
304
- };
305
- direction: {
306
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
307
- isOptional: false;
308
- };
309
- trigger: {
310
- type: _contractspec_lib_schema0.FieldType<string, string>;
311
- isOptional: false;
312
- };
313
- recordsProcessed: {
314
- type: _contractspec_lib_schema0.FieldType<number, number>;
315
- isOptional: false;
316
- };
317
- recordsCreated: {
318
- type: _contractspec_lib_schema0.FieldType<number, number>;
319
- isOptional: false;
320
- };
321
- recordsUpdated: {
322
- type: _contractspec_lib_schema0.FieldType<number, number>;
323
- isOptional: false;
324
- };
325
- recordsFailed: {
326
- type: _contractspec_lib_schema0.FieldType<number, number>;
327
- isOptional: false;
328
- };
329
- errorMessage: {
330
- type: _contractspec_lib_schema0.FieldType<string, string>;
331
- isOptional: true;
332
- };
333
- startedAt: {
334
- type: _contractspec_lib_schema0.FieldType<Date, string>;
335
- isOptional: true;
336
- };
337
- completedAt: {
338
- type: _contractspec_lib_schema0.FieldType<Date, string>;
339
- isOptional: true;
340
- };
341
- createdAt: {
342
- type: _contractspec_lib_schema0.FieldType<Date, string>;
343
- isOptional: false;
344
- };
345
- }>;
346
- isArray: true;
347
- isOptional: false;
348
- };
349
- total: {
350
- type: _contractspec_lib_schema0.FieldType<number, number>;
351
- isOptional: false;
352
- };
287
+ export declare const ListSyncRunsOutputModel: import("@contractspec/lib.schema").SchemaModel<{
288
+ runs: {
289
+ type: import("@contractspec/lib.schema").SchemaModel<{
290
+ id: {
291
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
292
+ isOptional: false;
293
+ };
294
+ syncConfigId: {
295
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
296
+ isOptional: false;
297
+ };
298
+ status: {
299
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
300
+ isOptional: false;
301
+ };
302
+ direction: {
303
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
304
+ isOptional: false;
305
+ };
306
+ trigger: {
307
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
308
+ isOptional: false;
309
+ };
310
+ recordsProcessed: {
311
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
312
+ isOptional: false;
313
+ };
314
+ recordsCreated: {
315
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
316
+ isOptional: false;
317
+ };
318
+ recordsUpdated: {
319
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
320
+ isOptional: false;
321
+ };
322
+ recordsFailed: {
323
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
324
+ isOptional: false;
325
+ };
326
+ errorMessage: {
327
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
328
+ isOptional: true;
329
+ };
330
+ startedAt: {
331
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
332
+ isOptional: true;
333
+ };
334
+ completedAt: {
335
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
336
+ isOptional: true;
337
+ };
338
+ createdAt: {
339
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
340
+ isOptional: false;
341
+ };
342
+ }>;
343
+ isArray: true;
344
+ isOptional: false;
345
+ };
346
+ total: {
347
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
348
+ isOptional: false;
349
+ };
353
350
  }>;
354
- //#endregion
355
- export { AddFieldMappingInputModel, CreateSyncConfigInputModel, FieldMappingModel, ListSyncRunsInputModel, ListSyncRunsOutputModel, SyncConfigModel, SyncRunModel, TriggerSyncInputModel };
356
351
  //# sourceMappingURL=sync.schema.d.ts.map