@bernierllc/contentful-suite 1.0.3

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 (76) hide show
  1. package/.eslintrc.cjs +16 -0
  2. package/LICENSE +5 -0
  3. package/README.md +497 -0
  4. package/__mocks__/@bernierllc/contentful-cache-service.ts +12 -0
  5. package/__mocks__/@bernierllc/contentful-gateway-service.ts +21 -0
  6. package/__mocks__/@bernierllc/contentful-migration-service.ts +13 -0
  7. package/__mocks__/@bernierllc/contentful-sync-service.ts +14 -0
  8. package/__mocks__/@bernierllc/contentful-webhook-service.ts +15 -0
  9. package/__mocks__/@bernierllc/logger.ts +27 -0
  10. package/__mocks__/@bernierllc/neverhub-adapter.ts +17 -0
  11. package/coverage/clover.xml +192 -0
  12. package/coverage/coverage-final.json +5 -0
  13. package/coverage/coverage-summary.json +6 -0
  14. package/coverage/lcov-report/base.css +224 -0
  15. package/coverage/lcov-report/block-navigation.js +87 -0
  16. package/coverage/lcov-report/favicon.png +0 -0
  17. package/coverage/lcov-report/index.html +131 -0
  18. package/coverage/lcov-report/prettify.css +1 -0
  19. package/coverage/lcov-report/prettify.js +2 -0
  20. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  21. package/coverage/lcov-report/sorter.js +210 -0
  22. package/coverage/lcov-report/src/ContentfulSuite.ts.html +1330 -0
  23. package/coverage/lcov-report/src/index.html +116 -0
  24. package/coverage/lcov-report/src/storage/InMemoryContentStorage.ts.html +394 -0
  25. package/coverage/lcov-report/src/storage/InMemoryMigrationStorage.ts.html +304 -0
  26. package/coverage/lcov-report/src/storage/InMemorySyncStateStorage.ts.html +211 -0
  27. package/coverage/lcov-report/src/storage/index.html +146 -0
  28. package/coverage/lcov.info +349 -0
  29. package/dist/ContentfulSuite.d.ts +85 -0
  30. package/dist/ContentfulSuite.d.ts.map +1 -0
  31. package/dist/ContentfulSuite.js +352 -0
  32. package/dist/ContentfulSuite.js.map +1 -0
  33. package/dist/__tests__/ContentfulSuite.test.d.ts +2 -0
  34. package/dist/__tests__/ContentfulSuite.test.d.ts.map +1 -0
  35. package/dist/__tests__/ContentfulSuite.test.js +347 -0
  36. package/dist/__tests__/ContentfulSuite.test.js.map +1 -0
  37. package/dist/__tests__/storage.test.d.ts +2 -0
  38. package/dist/__tests__/storage.test.d.ts.map +1 -0
  39. package/dist/__tests__/storage.test.js +343 -0
  40. package/dist/__tests__/storage.test.js.map +1 -0
  41. package/dist/index.d.ts +20 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/index.js +45 -0
  44. package/dist/index.js.map +1 -0
  45. package/dist/storage/InMemoryContentStorage.d.ts +41 -0
  46. package/dist/storage/InMemoryContentStorage.d.ts.map +1 -0
  47. package/dist/storage/InMemoryContentStorage.js +88 -0
  48. package/dist/storage/InMemoryContentStorage.js.map +1 -0
  49. package/dist/storage/InMemoryMigrationStorage.d.ts +21 -0
  50. package/dist/storage/InMemoryMigrationStorage.d.ts.map +1 -0
  51. package/dist/storage/InMemoryMigrationStorage.js +61 -0
  52. package/dist/storage/InMemoryMigrationStorage.js.map +1 -0
  53. package/dist/storage/InMemorySyncStateStorage.d.ts +19 -0
  54. package/dist/storage/InMemorySyncStateStorage.d.ts.map +1 -0
  55. package/dist/storage/InMemorySyncStateStorage.js +41 -0
  56. package/dist/storage/InMemorySyncStateStorage.js.map +1 -0
  57. package/dist/storage/index.d.ts +4 -0
  58. package/dist/storage/index.d.ts.map +1 -0
  59. package/dist/storage/index.js +17 -0
  60. package/dist/storage/index.js.map +1 -0
  61. package/dist/types.d.ts +131 -0
  62. package/dist/types.d.ts.map +1 -0
  63. package/dist/types.js +10 -0
  64. package/dist/types.js.map +1 -0
  65. package/jest.config.cjs +45 -0
  66. package/package.json +67 -0
  67. package/src/ContentfulSuite.ts +415 -0
  68. package/src/__tests__/ContentfulSuite.test.ts +424 -0
  69. package/src/__tests__/storage.test.ts +405 -0
  70. package/src/index.ts +60 -0
  71. package/src/storage/InMemoryContentStorage.ts +103 -0
  72. package/src/storage/InMemoryMigrationStorage.ts +73 -0
  73. package/src/storage/InMemorySyncStateStorage.ts +42 -0
  74. package/src/storage/index.ts +11 -0
  75. package/src/types.ts +158 -0
  76. package/tsconfig.json +21 -0
@@ -0,0 +1,146 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for src/storage</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> src/storage</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>48/48</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>17/17</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>30/30</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>48/48</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <div class="pad1">
66
+ <table class="coverage-summary">
67
+ <thead>
68
+ <tr>
69
+ <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
+ <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
+ <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
+ <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
+ <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
+ <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
+ <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
+ <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
+ <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
+ <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
+ </tr>
80
+ </thead>
81
+ <tbody><tr>
82
+ <td class="file high" data-value="InMemoryContentStorage.ts"><a href="InMemoryContentStorage.ts.html">InMemoryContentStorage.ts</a></td>
83
+ <td data-value="100" class="pic high">
84
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
85
+ </td>
86
+ <td data-value="100" class="pct high">100%</td>
87
+ <td data-value="23" class="abs high">23/23</td>
88
+ <td data-value="100" class="pct high">100%</td>
89
+ <td data-value="4" class="abs high">4/4</td>
90
+ <td data-value="100" class="pct high">100%</td>
91
+ <td data-value="15" class="abs high">15/15</td>
92
+ <td data-value="100" class="pct high">100%</td>
93
+ <td data-value="23" class="abs high">23/23</td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <td class="file high" data-value="InMemoryMigrationStorage.ts"><a href="InMemoryMigrationStorage.ts.html">InMemoryMigrationStorage.ts</a></td>
98
+ <td data-value="100" class="pic high">
99
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
100
+ </td>
101
+ <td data-value="100" class="pct high">100%</td>
102
+ <td data-value="18" class="abs high">18/18</td>
103
+ <td data-value="100" class="pct high">100%</td>
104
+ <td data-value="11" class="abs high">11/11</td>
105
+ <td data-value="100" class="pct high">100%</td>
106
+ <td data-value="9" class="abs high">9/9</td>
107
+ <td data-value="100" class="pct high">100%</td>
108
+ <td data-value="18" class="abs high">18/18</td>
109
+ </tr>
110
+
111
+ <tr>
112
+ <td class="file high" data-value="InMemorySyncStateStorage.ts"><a href="InMemorySyncStateStorage.ts.html">InMemorySyncStateStorage.ts</a></td>
113
+ <td data-value="100" class="pic high">
114
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
115
+ </td>
116
+ <td data-value="100" class="pct high">100%</td>
117
+ <td data-value="7" class="abs high">7/7</td>
118
+ <td data-value="100" class="pct high">100%</td>
119
+ <td data-value="2" class="abs high">2/2</td>
120
+ <td data-value="100" class="pct high">100%</td>
121
+ <td data-value="6" class="abs high">6/6</td>
122
+ <td data-value="100" class="pct high">100%</td>
123
+ <td data-value="7" class="abs high">7/7</td>
124
+ </tr>
125
+
126
+ </tbody>
127
+ </table>
128
+ </div>
129
+ <div class='push'></div><!-- for sticky footer -->
130
+ </div><!-- /wrapper -->
131
+ <div class='footer quiet pad2 space-top1 center small'>
132
+ Code coverage generated by
133
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
+ at 2025-12-02T21:09:29.730Z
135
+ </div>
136
+ <script src="../../prettify.js"></script>
137
+ <script>
138
+ window.onload = function () {
139
+ prettyPrint();
140
+ };
141
+ </script>
142
+ <script src="../../sorter.js"></script>
143
+ <script src="../../block-navigation.js"></script>
144
+ </body>
145
+ </html>
146
+
@@ -0,0 +1,349 @@
1
+ TN:
2
+ SF:src/ContentfulSuite.ts
3
+ FN:44,(anonymous_0)
4
+ FN:56,(anonymous_1)
5
+ FN:142,(anonymous_2)
6
+ FN:158,(anonymous_3)
7
+ FN:214,(anonymous_4)
8
+ FN:233,(anonymous_5)
9
+ FN:268,(anonymous_6)
10
+ FN:303,(anonymous_7)
11
+ FN:316,(anonymous_8)
12
+ FN:331,(anonymous_9)
13
+ FN:347,(anonymous_10)
14
+ FN:358,(anonymous_11)
15
+ FN:372,(anonymous_12)
16
+ FN:384,(anonymous_13)
17
+ FN:391,(anonymous_14)
18
+ FN:398,(anonymous_15)
19
+ FN:405,(anonymous_16)
20
+ FN:412,(anonymous_17)
21
+ FNF:18
22
+ FNH:16
23
+ FNDA:19,(anonymous_0)
24
+ FNDA:18,(anonymous_1)
25
+ FNDA:0,(anonymous_2)
26
+ FNDA:0,(anonymous_3)
27
+ FNDA:4,(anonymous_4)
28
+ FNDA:1,(anonymous_5)
29
+ FNDA:2,(anonymous_6)
30
+ FNDA:3,(anonymous_7)
31
+ FNDA:2,(anonymous_8)
32
+ FNDA:2,(anonymous_9)
33
+ FNDA:2,(anonymous_10)
34
+ FNDA:18,(anonymous_11)
35
+ FNDA:13,(anonymous_12)
36
+ FNDA:5,(anonymous_13)
37
+ FNDA:8,(anonymous_14)
38
+ FNDA:5,(anonymous_15)
39
+ FNDA:3,(anonymous_16)
40
+ FNDA:4,(anonymous_17)
41
+ DA:9,1
42
+ DA:10,1
43
+ DA:11,1
44
+ DA:12,1
45
+ DA:13,1
46
+ DA:14,1
47
+ DA:15,1
48
+ DA:16,1
49
+ DA:33,1
50
+ DA:35,19
51
+ DA:38,19
52
+ DA:42,19
53
+ DA:45,19
54
+ DA:46,19
55
+ DA:57,18
56
+ DA:66,18
57
+ DA:67,0
58
+ DA:68,0
59
+ DA:86,0
60
+ DA:90,18
61
+ DA:91,15
62
+ DA:92,15
63
+ DA:100,15
64
+ DA:104,18
65
+ DA:105,13
66
+ DA:106,1
67
+ DA:109,12
68
+ DA:110,13
69
+ DA:120,13
70
+ DA:123,13
71
+ DA:124,13
72
+ DA:125,13
73
+ DA:127,13
74
+ DA:130,13
75
+ DA:135,17
76
+ DA:136,16
77
+ DA:141,16
78
+ DA:142,12
79
+ DA:144,0
80
+ DA:145,0
81
+ DA:146,0
82
+ DA:147,0
83
+ DA:149,0
84
+ DA:150,0
85
+ DA:157,16
86
+ DA:158,0
87
+ DA:159,0
88
+ DA:161,0
89
+ DA:163,0
90
+ DA:164,0
91
+ DA:169,16
92
+ DA:173,17
93
+ DA:174,16
94
+ DA:175,16
95
+ DA:186,16
96
+ DA:190,17
97
+ DA:191,15
98
+ DA:192,1
99
+ DA:195,14
100
+ DA:196,15
101
+ DA:203,15
102
+ DA:204,15
103
+ DA:208,16
104
+ DA:215,4
105
+ DA:218,4
106
+ DA:219,4
107
+ DA:220,4
108
+ DA:224,4
109
+ DA:225,4
110
+ DA:226,4
111
+ DA:230,4
112
+ DA:231,4
113
+ DA:232,4
114
+ DA:233,4
115
+ DA:234,1
116
+ DA:235,1
117
+ DA:236,1
118
+ DA:238,0
119
+ DA:239,0
120
+ DA:243,4
121
+ DA:245,4
122
+ DA:252,4
123
+ DA:253,0
124
+ DA:262,4
125
+ DA:269,2
126
+ DA:272,2
127
+ DA:273,2
128
+ DA:275,2
129
+ DA:278,2
130
+ DA:279,2
131
+ DA:280,2
132
+ DA:287,2
133
+ DA:288,0
134
+ DA:296,2
135
+ DA:304,3
136
+ DA:305,1
137
+ DA:308,2
138
+ DA:312,2
139
+ DA:313,2
140
+ DA:315,2
141
+ DA:316,1
142
+ DA:317,2
143
+ DA:321,1
144
+ DA:324,0
145
+ DA:325,0
146
+ DA:336,2
147
+ DA:337,2
148
+ DA:338,1
149
+ DA:341,1
150
+ DA:348,2
151
+ DA:359,18
152
+ DA:373,13
153
+ DA:374,0
154
+ DA:377,13
155
+ DA:378,13
156
+ DA:385,5
157
+ DA:392,8
158
+ DA:399,5
159
+ DA:406,3
160
+ DA:413,4
161
+ LF:120
162
+ LH:99
163
+ BRDA:66,0,0,0
164
+ BRDA:90,1,0,15
165
+ BRDA:91,2,0,15
166
+ BRDA:91,2,1,15
167
+ BRDA:104,3,0,13
168
+ BRDA:105,4,0,1
169
+ BRDA:105,5,0,13
170
+ BRDA:105,5,1,12
171
+ BRDA:124,6,0,13
172
+ BRDA:135,7,0,16
173
+ BRDA:141,8,0,12
174
+ BRDA:157,9,0,0
175
+ BRDA:173,10,0,16
176
+ BRDA:173,11,0,17
177
+ BRDA:173,11,1,16
178
+ BRDA:190,12,0,15
179
+ BRDA:191,13,0,1
180
+ BRDA:218,14,0,4
181
+ BRDA:224,15,0,4
182
+ BRDA:230,16,0,4
183
+ BRDA:230,17,0,4
184
+ BRDA:230,17,1,4
185
+ BRDA:252,18,0,0
186
+ BRDA:278,19,0,2
187
+ BRDA:287,20,0,0
188
+ BRDA:304,21,0,1
189
+ BRDA:312,22,0,2
190
+ BRDA:312,23,0,2
191
+ BRDA:312,23,1,2
192
+ BRDA:315,24,0,1
193
+ BRDA:337,25,0,1
194
+ BRDA:373,26,0,0
195
+ BRF:32
196
+ BRH:27
197
+ end_of_record
198
+ TN:
199
+ SF:src/storage/InMemoryContentStorage.ts
200
+ FN:19,(anonymous_0)
201
+ FN:24,(anonymous_1)
202
+ FN:30,(anonymous_2)
203
+ FN:36,(anonymous_3)
204
+ FN:42,(anonymous_4)
205
+ FN:46,(anonymous_5)
206
+ FN:50,(anonymous_6)
207
+ FN:54,(anonymous_7)
208
+ FN:58,(anonymous_8)
209
+ FN:62,(anonymous_9)
210
+ FN:66,(anonymous_10)
211
+ FN:75,(anonymous_11)
212
+ FN:82,(anonymous_12)
213
+ FN:89,(anonymous_13)
214
+ FN:96,(anonymous_14)
215
+ FNF:15
216
+ FNH:15
217
+ FNDA:32,(anonymous_0)
218
+ FNDA:3,(anonymous_1)
219
+ FNDA:8,(anonymous_2)
220
+ FNDA:6,(anonymous_3)
221
+ FNDA:1,(anonymous_4)
222
+ FNDA:1,(anonymous_5)
223
+ FNDA:1,(anonymous_6)
224
+ FNDA:1,(anonymous_7)
225
+ FNDA:4,(anonymous_8)
226
+ FNDA:4,(anonymous_9)
227
+ FNDA:1,(anonymous_10)
228
+ FNDA:4,(anonymous_11)
229
+ FNDA:2,(anonymous_12)
230
+ FNDA:2,(anonymous_13)
231
+ FNDA:1,(anonymous_14)
232
+ DA:19,2
233
+ DA:20,32
234
+ DA:21,32
235
+ DA:22,32
236
+ DA:25,3
237
+ DA:26,3
238
+ DA:31,8
239
+ DA:32,9
240
+ DA:37,6
241
+ DA:38,6
242
+ DA:43,1
243
+ DA:47,1
244
+ DA:51,1
245
+ DA:55,1
246
+ DA:59,4
247
+ DA:63,4
248
+ DA:67,1
249
+ DA:68,1
250
+ DA:69,1
251
+ DA:76,4
252
+ DA:83,2
253
+ DA:90,2
254
+ DA:97,1
255
+ LF:23
256
+ LH:23
257
+ BRDA:59,0,0,4
258
+ BRDA:59,0,1,2
259
+ BRDA:63,1,0,4
260
+ BRDA:63,1,1,2
261
+ BRF:4
262
+ BRH:4
263
+ end_of_record
264
+ TN:
265
+ SF:src/storage/InMemoryMigrationStorage.ts
266
+ FN:14,(anonymous_0)
267
+ FN:17,(anonymous_1)
268
+ FN:21,(anonymous_2)
269
+ FN:25,(anonymous_3)
270
+ FN:27,(anonymous_4)
271
+ FN:31,(anonymous_5)
272
+ FN:41,(anonymous_6)
273
+ FN:63,(anonymous_7)
274
+ FN:70,(anonymous_8)
275
+ FNF:9
276
+ FNH:9
277
+ FNDA:29,(anonymous_0)
278
+ FNDA:10,(anonymous_1)
279
+ FNDA:4,(anonymous_2)
280
+ FNDA:1,(anonymous_3)
281
+ FNDA:2,(anonymous_4)
282
+ FNDA:3,(anonymous_5)
283
+ FNDA:2,(anonymous_6)
284
+ FNDA:2,(anonymous_7)
285
+ FNDA:1,(anonymous_8)
286
+ DA:14,2
287
+ DA:15,29
288
+ DA:18,10
289
+ DA:22,4
290
+ DA:26,1
291
+ DA:27,2
292
+ DA:32,3
293
+ DA:33,3
294
+ DA:47,2
295
+ DA:48,2
296
+ DA:49,2
297
+ DA:50,2
298
+ DA:51,1
299
+ DA:53,2
300
+ DA:54,1
301
+ DA:56,2
302
+ DA:64,2
303
+ DA:71,1
304
+ LF:18
305
+ LH:18
306
+ BRDA:22,0,0,4
307
+ BRDA:22,0,1,1
308
+ BRDA:27,1,0,2
309
+ BRDA:27,1,1,1
310
+ BRDA:34,2,0,3
311
+ BRDA:34,2,1,2
312
+ BRDA:34,2,2,2
313
+ BRDA:34,2,3,2
314
+ BRDA:48,3,0,2
315
+ BRDA:50,4,0,1
316
+ BRDA:53,5,0,1
317
+ BRF:11
318
+ BRH:11
319
+ end_of_record
320
+ TN:
321
+ SF:src/storage/InMemorySyncStateStorage.ts
322
+ FN:14,(anonymous_0)
323
+ FN:17,(anonymous_1)
324
+ FN:21,(anonymous_2)
325
+ FN:25,(anonymous_3)
326
+ FN:32,(anonymous_4)
327
+ FN:39,(anonymous_5)
328
+ FNF:6
329
+ FNH:6
330
+ FNDA:24,(anonymous_0)
331
+ FNDA:16,(anonymous_1)
332
+ FNDA:6,(anonymous_2)
333
+ FNDA:1,(anonymous_3)
334
+ FNDA:2,(anonymous_4)
335
+ FNDA:1,(anonymous_5)
336
+ DA:14,2
337
+ DA:15,24
338
+ DA:18,16
339
+ DA:22,6
340
+ DA:26,1
341
+ DA:33,2
342
+ DA:40,1
343
+ LF:7
344
+ LH:7
345
+ BRDA:18,0,0,16
346
+ BRDA:18,0,1,15
347
+ BRF:2
348
+ BRH:2
349
+ end_of_record
@@ -0,0 +1,85 @@
1
+ import { ContentfulGatewayService } from '@bernierllc/contentful-gateway-service';
2
+ import { ContentfulSyncService } from '@bernierllc/contentful-sync-service';
3
+ import { ContentfulWebhookService } from '@bernierllc/contentful-webhook-service';
4
+ import { ContentfulCacheService } from '@bernierllc/contentful-cache-service';
5
+ import { ContentfulMigrationService } from '@bernierllc/contentful-migration-service';
6
+ import type { ContentfulSuiteConfig, SuiteHealth } from './types';
7
+ /**
8
+ * ContentfulSuite - Complete Contentful integration orchestrator
9
+ *
10
+ * Provides unified interface for:
11
+ * - ML training pipeline (full content export + sync)
12
+ * - Headless CMS proxy (API gateway + caching)
13
+ * - Content syndication (real-time webhooks)
14
+ * - Multi-space/organization management
15
+ */
16
+ export declare class ContentfulSuite {
17
+ private gateway?;
18
+ private syncServices;
19
+ private webhooks?;
20
+ private cache?;
21
+ private migrationServices;
22
+ private config;
23
+ private logger;
24
+ private neverhub?;
25
+ private syncIntervals;
26
+ constructor(config: ContentfulSuiteConfig);
27
+ /**
28
+ * Initialize all suite services
29
+ */
30
+ initialize(): Promise<void>;
31
+ /**
32
+ * Start all services
33
+ */
34
+ start(): Promise<void>;
35
+ /**
36
+ * Stop all services gracefully
37
+ */
38
+ stop(): Promise<void>;
39
+ /**
40
+ * Get content for ML training
41
+ * Queries local storage for all synced content
42
+ */
43
+ getMLTrainingData(spaceId: string, contentType?: string): Promise<unknown[]>;
44
+ /**
45
+ * Run migration on a specific space
46
+ */
47
+ runMigration(spaceId: string, migrationFunction: (_migration: unknown) => void, options: {
48
+ dryRun?: boolean;
49
+ id: string;
50
+ name: string;
51
+ }): Promise<void>;
52
+ /**
53
+ * Get health status of all services
54
+ */
55
+ getHealth(): SuiteHealth;
56
+ /**
57
+ * Get service status
58
+ */
59
+ private getServiceStatus;
60
+ /**
61
+ * Check if a space needs initial sync
62
+ */
63
+ private checkNeedsInitialSync;
64
+ /**
65
+ * Get gateway service (for advanced use)
66
+ */
67
+ getGateway(): ContentfulGatewayService | undefined;
68
+ /**
69
+ * Get sync service for a space (for advanced use)
70
+ */
71
+ getSyncService(spaceId: string): ContentfulSyncService | undefined;
72
+ /**
73
+ * Get webhook service (for advanced use)
74
+ */
75
+ getWebhookService(): ContentfulWebhookService | undefined;
76
+ /**
77
+ * Get cache service (for advanced use)
78
+ */
79
+ getCacheService(): ContentfulCacheService | undefined;
80
+ /**
81
+ * Get migration service for a space (for advanced use)
82
+ */
83
+ getMigrationService(spaceId: string): ContentfulMigrationService | undefined;
84
+ }
85
+ //# sourceMappingURL=ContentfulSuite.d.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