@kontent-ai/migration-toolkit 2.4.0 → 2.6.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 (307) hide show
  1. package/dist/core/config.js.map +1 -0
  2. package/dist/{es2022/core → core}/helpers/workflow-helper.d.ts +5 -5
  3. package/dist/core/helpers/workflow-helper.js.map +1 -0
  4. package/dist/{es2022/core → core}/index.js +8 -8
  5. package/dist/core/index.js.map +1 -0
  6. package/dist/core/logs/loggers.d.ts +2 -0
  7. package/dist/core/logs/loggers.js.map +1 -0
  8. package/dist/{es2022/core → core}/models/core.models.d.ts +2 -2
  9. package/dist/core/models/core.models.js.map +1 -0
  10. package/dist/{es2022/core → core}/models/log.models.d.ts +1 -1
  11. package/dist/core/models/log.models.js.map +1 -0
  12. package/dist/{es2022/core → core}/models/migration.models.d.ts +2 -2
  13. package/dist/core/models/migration.models.js.map +1 -0
  14. package/dist/{es2022/core → core}/models/migration.schema.d.ts +79 -79
  15. package/dist/core/models/migration.schema.js.map +1 -0
  16. package/dist/{es2022/core → core}/utils/array.utils.d.ts +2 -2
  17. package/dist/{es2022/core → core}/utils/array.utils.js +4 -3
  18. package/dist/core/utils/array.utils.js.map +1 -0
  19. package/dist/{es2022/core → core}/utils/binary-data.utils.d.ts +1 -1
  20. package/dist/core/utils/binary-data.utils.js.map +1 -0
  21. package/dist/{es2022/core → core}/utils/confirm.utils.d.ts +1 -1
  22. package/dist/core/utils/confirm.utils.js.map +1 -0
  23. package/dist/{es2022/core → core}/utils/error.utils.d.ts +1 -1
  24. package/dist/core/utils/error.utils.js.map +1 -0
  25. package/dist/core/utils/external-id.utils.js.map +1 -0
  26. package/dist/{es2022/core → core}/utils/global.utils.d.ts +5 -4
  27. package/dist/{es2022/core → core}/utils/global.utils.js +2 -3
  28. package/dist/core/utils/global.utils.js.map +1 -0
  29. package/dist/{es2022/core → core}/utils/http.utils.d.ts +2 -1
  30. package/dist/core/utils/http.utils.js.map +1 -0
  31. package/dist/{es2022/core → core}/utils/management-client-utils.d.ts +4 -4
  32. package/dist/core/utils/management-client-utils.js.map +1 -0
  33. package/dist/{es2022/core → core}/utils/processing-utils.d.ts +2 -2
  34. package/dist/core/utils/processing-utils.js.map +1 -0
  35. package/dist/{es2022/core → core}/utils/run.utils.d.ts +2 -2
  36. package/dist/core/utils/run.utils.js.map +1 -0
  37. package/dist/{es2022/export → export}/context/export-context-fetcher.d.ts +1 -1
  38. package/dist/export/context/export-context-fetcher.js.map +1 -0
  39. package/dist/export/export-manager.d.ts +5 -0
  40. package/dist/export/export-manager.js.map +1 -0
  41. package/dist/{es2022/export → export}/export.models.d.ts +2 -2
  42. package/dist/export/export.models.js.map +1 -0
  43. package/dist/{es2022/export → export}/index.js +1 -1
  44. package/dist/export/index.js.map +1 -0
  45. package/dist/{es2022/export → export}/utils/export.utils.d.ts +1 -1
  46. package/dist/export/utils/export.utils.js.map +1 -0
  47. package/dist/{es2022/file → file}/file-manager.d.ts +2 -2
  48. package/dist/file/file-manager.js.map +1 -0
  49. package/dist/file/index.js.map +1 -0
  50. package/dist/{es2022/import → import}/comparers/asset-comparer.d.ts +2 -2
  51. package/dist/import/comparers/asset-comparer.js.map +1 -0
  52. package/dist/{es2022/import → import}/context/import-context-fetcher.d.ts +1 -1
  53. package/dist/import/context/import-context-fetcher.js.map +1 -0
  54. package/dist/{es2022/import → import}/import-manager.d.ts +1 -1
  55. package/dist/{es2022/import → import}/import-manager.js +1 -1
  56. package/dist/import/import-manager.js.map +1 -0
  57. package/dist/{es2022/import → import}/import.models.d.ts +2 -2
  58. package/dist/import/import.models.js.map +1 -0
  59. package/dist/{es2022/import → import}/importers/assets-importer.d.ts +3 -3
  60. package/dist/import/importers/assets-importer.js.map +1 -0
  61. package/dist/{es2022/import → import}/importers/content-items-importer.d.ts +3 -3
  62. package/dist/import/importers/content-items-importer.js.map +1 -0
  63. package/dist/{es2022/import → import}/importers/language-variant-importer.d.ts +3 -3
  64. package/dist/import/importers/language-variant-importer.js.map +1 -0
  65. package/dist/{es2022/import → import}/importers/workflow-importer.d.ts +2 -2
  66. package/dist/import/importers/workflow-importer.js.map +1 -0
  67. package/dist/{es2022/import → import}/index.js +1 -1
  68. package/dist/import/index.js.map +1 -0
  69. package/dist/{es2022/import → import}/utils/import.utils.d.ts +1 -1
  70. package/dist/import/utils/import.utils.js.map +1 -0
  71. package/dist/{es2022/index.d.ts → index.d.ts} +2 -3
  72. package/dist/{es2022/index.js → index.js} +2 -3
  73. package/dist/index.js.map +1 -0
  74. package/dist/metadata.js +6 -0
  75. package/dist/metadata.js.map +1 -0
  76. package/dist/{es2022/node → node}/cli/actions/export-action.d.ts +1 -1
  77. package/dist/node/cli/actions/export-action.js.map +1 -0
  78. package/dist/{es2022/node → node}/cli/actions/import-action.d.ts +1 -1
  79. package/dist/node/cli/actions/import-action.js.map +1 -0
  80. package/dist/{es2022/node → node}/cli/actions/migrate-action.d.ts +1 -1
  81. package/dist/{es2022/node → node}/cli/actions/migrate-action.js +1 -1
  82. package/dist/node/cli/actions/migrate-action.js.map +1 -0
  83. package/dist/{es2022/node → node}/cli/app.js +2 -2
  84. package/dist/node/cli/app.js.map +1 -0
  85. package/dist/{es2022/node → node}/cli/args/args-fetcher.d.ts +1 -1
  86. package/dist/{es2022/node → node}/cli/args/args-fetcher.js +2 -2
  87. package/dist/node/cli/args/args-fetcher.js.map +1 -0
  88. package/dist/{es2022/node → node}/cli/args/args-setter.d.ts +1 -1
  89. package/dist/node/cli/args/args-setter.js.map +1 -0
  90. package/dist/{es2022/node → node}/cli/cli.models.d.ts +1 -1
  91. package/dist/node/cli/cli.models.js.map +1 -0
  92. package/dist/{es2022/node → node}/cli/commands.js +1 -3
  93. package/dist/node/cli/commands.js.map +1 -0
  94. package/dist/{es2022/toolkit → toolkit}/elements-builder.d.ts +1 -1
  95. package/dist/toolkit/elements-builder.js.map +1 -0
  96. package/dist/toolkit/export.d.ts +3 -0
  97. package/dist/toolkit/export.js.map +1 -0
  98. package/dist/{es2022/toolkit → toolkit}/file.d.ts +1 -1
  99. package/dist/toolkit/file.js.map +1 -0
  100. package/dist/{es2022/toolkit → toolkit}/import.d.ts +1 -1
  101. package/dist/toolkit/import.js.map +1 -0
  102. package/dist/{es2022/toolkit → toolkit}/index.js +2 -2
  103. package/dist/toolkit/index.js.map +1 -0
  104. package/dist/{es2022/toolkit → toolkit}/migrate.d.ts +4 -4
  105. package/dist/toolkit/migrate.js.map +1 -0
  106. package/dist/{es2022/translation → translation}/extraction/items-extraction.processor.d.ts +4 -4
  107. package/dist/{es2022/translation → translation}/extraction/items-extraction.processor.js +8 -8
  108. package/dist/translation/extraction/items-extraction.processor.js.map +1 -0
  109. package/dist/{es2022/translation → translation}/helpers/rich-text.processor.d.ts +1 -1
  110. package/dist/{es2022/translation → translation}/helpers/rich-text.processor.js +20 -68
  111. package/dist/translation/helpers/rich-text.processor.js.map +1 -0
  112. package/dist/{es2022/translation → translation}/index.js +1 -1
  113. package/dist/translation/index.js.map +1 -0
  114. package/dist/translation/transforms/export-transforms.d.ts +3 -0
  115. package/dist/{es2022/translation → translation}/transforms/export-transforms.js +13 -13
  116. package/dist/translation/transforms/export-transforms.js.map +1 -0
  117. package/dist/{es2022/translation → translation}/transforms/import-transforms.d.ts +2 -2
  118. package/dist/{es2022/translation → translation}/transforms/import-transforms.js +6 -6
  119. package/dist/translation/transforms/import-transforms.js.map +1 -0
  120. package/dist/{es2022/zip → zip}/index.js +1 -1
  121. package/dist/zip/index.js.map +1 -0
  122. package/dist/{es2022/zip → zip}/zip-manager.d.ts +3 -3
  123. package/dist/zip/zip-manager.js.map +1 -0
  124. package/dist/zip/zip-packager.d.ts +3 -0
  125. package/dist/zip/zip-packager.js.map +1 -0
  126. package/dist/{es2022/zip → zip}/zip-transformer.d.ts +2 -2
  127. package/dist/zip/zip-transformer.js.map +1 -0
  128. package/dist/{es2022/zip → zip}/zip.models.d.ts +2 -2
  129. package/dist/{es2022/zip → zip}/zip.models.js.map +1 -1
  130. package/lib/core/helpers/workflow-helper.ts +6 -6
  131. package/lib/core/index.ts +8 -8
  132. package/lib/core/logs/loggers.ts +3 -2
  133. package/lib/core/models/core.models.ts +8 -2
  134. package/lib/core/models/log.models.ts +1 -1
  135. package/lib/core/models/migration.models.ts +2 -2
  136. package/lib/core/utils/array.utils.ts +6 -5
  137. package/lib/core/utils/binary-data.utils.ts +1 -1
  138. package/lib/core/utils/confirm.utils.ts +1 -1
  139. package/lib/core/utils/error.utils.ts +1 -1
  140. package/lib/core/utils/global.utils.ts +7 -7
  141. package/lib/core/utils/http.utils.ts +3 -2
  142. package/lib/core/utils/management-client-utils.ts +6 -6
  143. package/lib/core/utils/processing-utils.ts +3 -3
  144. package/lib/core/utils/run.utils.ts +2 -2
  145. package/lib/export/context/export-context-fetcher.ts +8 -6
  146. package/lib/export/export-manager.ts +14 -12
  147. package/lib/export/export.models.ts +2 -2
  148. package/lib/export/index.ts +1 -1
  149. package/lib/export/utils/export.utils.ts +1 -1
  150. package/lib/file/file-manager.ts +2 -2
  151. package/lib/import/comparers/asset-comparer.ts +3 -2
  152. package/lib/import/context/import-context-fetcher.ts +8 -5
  153. package/lib/import/import-manager.ts +6 -5
  154. package/lib/import/import.models.ts +2 -2
  155. package/lib/import/importers/assets-importer.ts +4 -13
  156. package/lib/import/importers/content-items-importer.ts +4 -3
  157. package/lib/import/importers/language-variant-importer.ts +5 -9
  158. package/lib/import/importers/workflow-importer.ts +4 -11
  159. package/lib/import/index.ts +1 -1
  160. package/lib/import/utils/import.utils.ts +1 -1
  161. package/lib/index.ts +2 -3
  162. package/lib/metadata.ts +2 -2
  163. package/lib/node/cli/actions/export-action.ts +1 -1
  164. package/lib/node/cli/actions/import-action.ts +1 -1
  165. package/lib/node/cli/actions/migrate-action.ts +3 -3
  166. package/lib/node/cli/app.ts +2 -2
  167. package/lib/node/cli/args/args-fetcher.ts +5 -4
  168. package/lib/node/cli/args/args-setter.ts +1 -1
  169. package/lib/node/cli/cli.models.ts +1 -1
  170. package/lib/node/cli/commands.ts +2 -5
  171. package/lib/toolkit/elements-builder.ts +7 -19
  172. package/lib/toolkit/export.ts +4 -2
  173. package/lib/toolkit/file.ts +2 -1
  174. package/lib/toolkit/import.ts +2 -1
  175. package/lib/toolkit/index.ts +2 -2
  176. package/lib/toolkit/migrate.ts +5 -11
  177. package/lib/translation/extraction/items-extraction.processor.ts +12 -12
  178. package/lib/translation/helpers/rich-text.processor.ts +21 -77
  179. package/lib/translation/index.ts +1 -1
  180. package/lib/translation/transforms/export-transforms.ts +17 -16
  181. package/lib/translation/transforms/import-transforms.ts +10 -8
  182. package/lib/zip/index.ts +1 -1
  183. package/lib/zip/zip-manager.ts +4 -3
  184. package/lib/zip/zip-packager.ts +4 -3
  185. package/lib/zip/zip-transformer.ts +4 -13
  186. package/lib/zip/zip.models.ts +2 -2
  187. package/package.json +19 -22
  188. package/dist/es2022/core/config.js.map +0 -1
  189. package/dist/es2022/core/helpers/workflow-helper.js.map +0 -1
  190. package/dist/es2022/core/index.js.map +0 -1
  191. package/dist/es2022/core/logs/loggers.d.ts +0 -2
  192. package/dist/es2022/core/logs/loggers.js.map +0 -1
  193. package/dist/es2022/core/models/core.models.js.map +0 -1
  194. package/dist/es2022/core/models/log.models.js.map +0 -1
  195. package/dist/es2022/core/models/migration.models.js.map +0 -1
  196. package/dist/es2022/core/models/migration.schema.js.map +0 -1
  197. package/dist/es2022/core/utils/array.utils.js.map +0 -1
  198. package/dist/es2022/core/utils/binary-data.utils.js.map +0 -1
  199. package/dist/es2022/core/utils/confirm.utils.js.map +0 -1
  200. package/dist/es2022/core/utils/error.utils.js.map +0 -1
  201. package/dist/es2022/core/utils/external-id.utils.js.map +0 -1
  202. package/dist/es2022/core/utils/global.utils.js.map +0 -1
  203. package/dist/es2022/core/utils/http.utils.js.map +0 -1
  204. package/dist/es2022/core/utils/management-client-utils.js.map +0 -1
  205. package/dist/es2022/core/utils/processing-utils.js.map +0 -1
  206. package/dist/es2022/core/utils/run.utils.js.map +0 -1
  207. package/dist/es2022/export/context/export-context-fetcher.js.map +0 -1
  208. package/dist/es2022/export/export-manager.d.ts +0 -5
  209. package/dist/es2022/export/export-manager.js.map +0 -1
  210. package/dist/es2022/export/export.models.js.map +0 -1
  211. package/dist/es2022/export/index.js.map +0 -1
  212. package/dist/es2022/export/utils/export.utils.js.map +0 -1
  213. package/dist/es2022/file/file-manager.js.map +0 -1
  214. package/dist/es2022/file/index.js.map +0 -1
  215. package/dist/es2022/import/comparers/asset-comparer.js.map +0 -1
  216. package/dist/es2022/import/context/import-context-fetcher.js.map +0 -1
  217. package/dist/es2022/import/import-manager.js.map +0 -1
  218. package/dist/es2022/import/import.models.js.map +0 -1
  219. package/dist/es2022/import/importers/assets-importer.js.map +0 -1
  220. package/dist/es2022/import/importers/content-items-importer.js.map +0 -1
  221. package/dist/es2022/import/importers/language-variant-importer.js.map +0 -1
  222. package/dist/es2022/import/importers/workflow-importer.js.map +0 -1
  223. package/dist/es2022/import/index.js.map +0 -1
  224. package/dist/es2022/import/utils/import.utils.js.map +0 -1
  225. package/dist/es2022/index.js.map +0 -1
  226. package/dist/es2022/metadata.js +0 -6
  227. package/dist/es2022/metadata.js.map +0 -1
  228. package/dist/es2022/node/cli/actions/export-action.js.map +0 -1
  229. package/dist/es2022/node/cli/actions/import-action.js.map +0 -1
  230. package/dist/es2022/node/cli/actions/migrate-action.js.map +0 -1
  231. package/dist/es2022/node/cli/app.js.map +0 -1
  232. package/dist/es2022/node/cli/args/args-fetcher.js.map +0 -1
  233. package/dist/es2022/node/cli/args/args-setter.js.map +0 -1
  234. package/dist/es2022/node/cli/cli.models.js.map +0 -1
  235. package/dist/es2022/node/cli/commands.js.map +0 -1
  236. package/dist/es2022/toolkit/elements-builder.js.map +0 -1
  237. package/dist/es2022/toolkit/export.d.ts +0 -3
  238. package/dist/es2022/toolkit/export.js.map +0 -1
  239. package/dist/es2022/toolkit/file.js.map +0 -1
  240. package/dist/es2022/toolkit/import.js.map +0 -1
  241. package/dist/es2022/toolkit/index.js.map +0 -1
  242. package/dist/es2022/toolkit/migrate.js.map +0 -1
  243. package/dist/es2022/translation/extraction/items-extraction.processor.js.map +0 -1
  244. package/dist/es2022/translation/helpers/rich-text.processor.js.map +0 -1
  245. package/dist/es2022/translation/index.js.map +0 -1
  246. package/dist/es2022/translation/transforms/export-transforms.d.ts +0 -3
  247. package/dist/es2022/translation/transforms/export-transforms.js.map +0 -1
  248. package/dist/es2022/translation/transforms/import-transforms.js.map +0 -1
  249. package/dist/es2022/zip/index.js.map +0 -1
  250. package/dist/es2022/zip/zip-manager.js.map +0 -1
  251. package/dist/es2022/zip/zip-packager.d.ts +0 -3
  252. package/dist/es2022/zip/zip-packager.js.map +0 -1
  253. package/dist/es2022/zip/zip-transformer.js.map +0 -1
  254. package/dist/{es2022/core → core}/config.d.ts +0 -0
  255. package/dist/{es2022/core → core}/config.js +0 -0
  256. package/dist/{es2022/core → core}/helpers/workflow-helper.js +0 -0
  257. package/dist/{es2022/core → core}/index.d.ts +8 -8
  258. package/dist/{es2022/core → core}/logs/loggers.js +0 -0
  259. package/dist/{es2022/core → core}/models/core.models.js +0 -0
  260. package/dist/{es2022/core → core}/models/log.models.js +0 -0
  261. package/dist/{es2022/core → core}/models/migration.models.js +0 -0
  262. package/dist/{es2022/core → core}/models/migration.schema.js +0 -0
  263. package/dist/{es2022/core → core}/utils/binary-data.utils.js +0 -0
  264. package/dist/{es2022/core → core}/utils/confirm.utils.js +0 -0
  265. package/dist/{es2022/core → core}/utils/error.utils.js +0 -0
  266. package/dist/{es2022/core → core}/utils/external-id.utils.d.ts +0 -0
  267. package/dist/{es2022/core → core}/utils/external-id.utils.js +0 -0
  268. package/dist/{es2022/core → core}/utils/http.utils.js +0 -0
  269. package/dist/{es2022/core → core}/utils/management-client-utils.js +0 -0
  270. package/dist/{es2022/core → core}/utils/processing-utils.js +0 -0
  271. package/dist/{es2022/core → core}/utils/run.utils.js +0 -0
  272. package/dist/{es2022/export → export}/context/export-context-fetcher.js +0 -0
  273. package/dist/{es2022/export → export}/export-manager.js +0 -0
  274. package/dist/{es2022/export → export}/export.models.js +0 -0
  275. package/dist/{es2022/export → export}/index.d.ts +1 -1
  276. package/dist/{es2022/export → export}/utils/export.utils.js +0 -0
  277. package/dist/{es2022/file → file}/file-manager.js +0 -0
  278. package/dist/{es2022/file → file}/index.d.ts +0 -0
  279. package/dist/{es2022/file → file}/index.js +0 -0
  280. package/dist/{es2022/import → import}/comparers/asset-comparer.js +0 -0
  281. package/dist/{es2022/import → import}/context/import-context-fetcher.js +0 -0
  282. package/dist/{es2022/import → import}/import.models.js +0 -0
  283. package/dist/{es2022/import → import}/importers/assets-importer.js +0 -0
  284. package/dist/{es2022/import → import}/importers/content-items-importer.js +0 -0
  285. package/dist/{es2022/import → import}/importers/language-variant-importer.js +0 -0
  286. package/dist/{es2022/import → import}/importers/workflow-importer.js +0 -0
  287. package/dist/{es2022/import → import}/index.d.ts +1 -1
  288. package/dist/{es2022/import → import}/utils/import.utils.js +0 -0
  289. package/dist/{es2022/metadata.d.ts → metadata.d.ts} +0 -0
  290. package/dist/{es2022/node → node}/cli/actions/export-action.js +0 -0
  291. package/dist/{es2022/node → node}/cli/actions/import-action.js +0 -0
  292. package/dist/{es2022/node → node}/cli/app.d.ts +0 -0
  293. package/dist/{es2022/node → node}/cli/args/args-setter.js +0 -0
  294. package/dist/{es2022/node → node}/cli/cli.models.js +0 -0
  295. package/dist/{es2022/node → node}/cli/commands.d.ts +0 -0
  296. package/dist/{es2022/toolkit → toolkit}/elements-builder.js +0 -0
  297. package/dist/{es2022/toolkit → toolkit}/export.js +0 -0
  298. package/dist/{es2022/toolkit → toolkit}/file.js +0 -0
  299. package/dist/{es2022/toolkit → toolkit}/import.js +0 -0
  300. package/dist/{es2022/toolkit → toolkit}/index.d.ts +2 -2
  301. package/dist/{es2022/toolkit → toolkit}/migrate.js +0 -0
  302. package/dist/{es2022/translation → translation}/index.d.ts +1 -1
  303. package/dist/{es2022/zip → zip}/index.d.ts +1 -1
  304. /package/dist/{es2022/zip → zip}/zip-manager.js +0 -0
  305. /package/dist/{es2022/zip → zip}/zip-packager.js +0 -0
  306. /package/dist/{es2022/zip → zip}/zip-transformer.js +0 -0
  307. /package/dist/{es2022/zip → zip}/zip.models.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../lib/core/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,yBAAyB,EAAE,aAAa;IACxC,0BAA0B,EAAE,GAAG,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,OAAO,EAAE;CAClE,CAAC"}
@@ -1,8 +1,4 @@
1
- import { WorkflowModels } from '@kontent-ai/management-sdk';
2
- interface TransitionTo {
3
- readonly codename: string;
4
- readonly id: string;
5
- }
1
+ import type { WorkflowModels } from '@kontent-ai/management-sdk';
6
2
  export type WorkflowStep = {
7
3
  readonly codename: string;
8
4
  readonly id: string;
@@ -19,6 +15,10 @@ type StepMatcher = {
19
15
  readonly match: (step: WorkflowStep, index: number) => boolean;
20
16
  readonly errorMessage: string;
21
17
  };
18
+ type TransitionTo = {
19
+ readonly codename: string;
20
+ readonly id: string;
21
+ };
22
22
  export declare function workflowHelper(workflows: readonly Readonly<WorkflowModels.Workflow>[]): {
23
23
  getWorkflowByCodename: (workflowCodename: string) => Readonly<WorkflowModels.Workflow>;
24
24
  getWorkflowStepByCodename: (workflow: Readonly<WorkflowModels.Workflow>, stepCodename: string) => WorkflowStep;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-helper.js","sourceRoot":"","sources":["../../../lib/core/helpers/workflow-helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA0BvD,MAAM,UAAU,cAAc,CAAC,SAAuD;IAClF,MAAM,0BAA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SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7F,CAAC,CAAC;IAEF,OAAO;QACH,qBAAqB;QACrB,yBAAyB;QACzB,6BAA6B;QAC7B,mBAAmB;QACnB,eAAe;QACf,kBAAkB;QAClB,WAAW;QACX,yBAAyB;QACzB,wBAAwB;QACxB,yBAAyB;QACzB,mBAAmB;QACnB,4BAA4B;KAC/B,CAAC;AACN,CAAC"}
@@ -1,17 +1,17 @@
1
- export * from './utils/global.utils.js';
2
- export * from './utils/processing-utils.js';
3
- export * from './utils/http.utils.js';
1
+ export * from './utils/array.utils.js';
2
+ export * from './utils/binary-data.utils.js';
4
3
  export * from './utils/confirm.utils.js';
5
4
  export * from './utils/error.utils.js';
6
- export * from './utils/run.utils.js';
7
5
  export * from './utils/external-id.utils.js';
8
- export * from './utils/binary-data.utils.js';
9
- export * from './utils/array.utils.js';
6
+ export * from './utils/global.utils.js';
7
+ export * from './utils/http.utils.js';
10
8
  export * from './utils/management-client-utils.js';
11
- export * from './models/log.models.js';
9
+ export * from './utils/processing-utils.js';
10
+ export * from './utils/run.utils.js';
12
11
  export * from './models/core.models.js';
12
+ export * from './models/log.models.js';
13
13
  export * from './models/migration.models.js';
14
14
  export * from './models/migration.schema.js';
15
- export * from './logs/loggers.js';
16
15
  export * from './helpers/workflow-helper.js';
16
+ export * from './logs/loggers.js';
17
17
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AAErC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Logger } from '../models/log.models.js';
2
+ export declare function getDefaultLogger(): Logger;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggers.js","sourceRoot":"","sources":["../../../lib/core/logs/loggers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;AAElC,MAAM,UAAU,gBAAgB;IAC5B,OAAO,KAAK,CAAC,qBAAqB,EAAE,CAAC;SAChC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC;SACrC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC;SAC3C,UAAU,EAAE,CAAC;AACtB,CAAC;AAED,MAAM,iBAAiB,GAAW;IAC9B,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACnD,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAChC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC;QAEhC,OAAO,MAAM,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YAC1C,0DAA0D;YAC1D,uDAAuD;YACvD,oEAAoE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AI,EAAE,CAAC;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACzB,UAAU,EAAiB;SAC3B,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC9B,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;SACzE,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;SACpC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC9B,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;AAClD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { AssetModels, ContentItemModels, ContentTypeElements, LanguageVariantModels, WorkflowModels } from '@kontent-ai/management-sdk';
2
- import { MigrationElementType } from './migration.models.js';
1
+ import type { AssetModels, ContentItemModels, ContentTypeElements, LanguageVariantModels, WorkflowModels } from '@kontent-ai/management-sdk';
2
+ import type { MigrationElementType } from './migration.models.js';
3
3
  export type LiteralUnion<T extends string> = T | (string & {});
4
4
  export type TargetItemState = 'exists' | 'doesNotExists';
5
5
  export type CliAction = 'export' | 'import' | 'migrate';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.models.js","sourceRoot":"","sources":["../../../lib/core/models/core.models.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { MapiAction, MapiType, MigrationItemType } from '../index.js';
1
+ import type { MapiAction, MapiType, MigrationItemType } from '../index.js';
2
2
  export type DebugType = 'error' | 'completed' | 'warning' | 'info' | 'errorData' | 'cancel' | 'process' | 'readFs' | 'skip' | 'writeFs' | 'download' | MigrationItemType | MapiType | MapiAction;
3
3
  export interface LogMessage {
4
4
  readonly type?: DebugType;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.models.js","sourceRoot":"","sources":["../../../lib/core/models/log.models.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { MigrationAssetDescriptionSchema, MigrationAssetSchema, MigrationComponentSchema, MigrationDataSchema, MigrationElementSchema, MigrationElementsSchema, MigrationElementTypeSchema, MigrationElementValueSchema, MigrationItemSchema, MigrationItemSystemSchema, MigrationItemVersionSchema, MigrationReferenceSchema, MigrationUrlSlugModeSchema } from './migration.schema.js';
1
+ import type { z } from 'zod';
2
+ import type { MigrationAssetDescriptionSchema, MigrationAssetSchema, MigrationComponentSchema, MigrationDataSchema, MigrationElementSchema, MigrationElementsSchema, MigrationElementTypeSchema, MigrationElementValueSchema, MigrationItemSchema, MigrationItemSystemSchema, MigrationItemVersionSchema, MigrationReferenceSchema, MigrationUrlSlugModeSchema } from './migration.schema.js';
3
3
  export declare namespace MigrationElementModels {
4
4
  type MigrationElementDef<TElementType extends MigrationElementType = MigrationElementType, TValue extends MigrationElementValue = MigrationElementValue> = {
5
5
  readonly value: TValue | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration.models.js","sourceRoot":"","sources":["../../../lib/core/models/migration.models.ts"],"names":[],"mappings":""}
@@ -150,7 +150,7 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
150
150
  }>>, "many">>>;
151
151
  mode: z.ZodOptional<z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>>;
152
152
  }, "strict", z.ZodTypeAny, {
153
- type: "number" | "asset" | "taxonomy" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "modular_content" | "url_slug" | "subpages";
153
+ type: "number" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "asset" | "modular_content" | "taxonomy" | "url_slug" | "subpages";
154
154
  value?: string | number | Readonly<{
155
155
  codename: string;
156
156
  }>[] | undefined;
@@ -164,9 +164,9 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
164
164
  };
165
165
  elements: Readonly<Elements>;
166
166
  }>[] | undefined;
167
- mode?: "custom" | "autogenerated" | undefined;
167
+ mode?: "autogenerated" | "custom" | undefined;
168
168
  }, {
169
- type: "number" | "asset" | "taxonomy" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "modular_content" | "url_slug" | "subpages";
169
+ type: "number" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "asset" | "modular_content" | "taxonomy" | "url_slug" | "subpages";
170
170
  value?: string | number | Readonly<{
171
171
  codename: string;
172
172
  }>[] | undefined;
@@ -180,7 +180,7 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
180
180
  };
181
181
  elements: Readonly<Elements>;
182
182
  }>[] | undefined;
183
- mode?: "custom" | "autogenerated" | undefined;
183
+ mode?: "autogenerated" | "custom" | undefined;
184
184
  }>>;
185
185
  export declare const MigrationItemVersionSchema: z.ZodReadonly<z.ZodObject<{
186
186
  workflow_step: z.ZodReadonly<z.ZodObject<{
@@ -262,6 +262,11 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
262
262
  codename: string;
263
263
  }>>;
264
264
  }, "strict", z.ZodTypeAny, {
265
+ codename: string;
266
+ type: Readonly<{
267
+ codename: string;
268
+ }>;
269
+ name: string;
265
270
  language: Readonly<{
266
271
  codename: string;
267
272
  }>;
@@ -271,12 +276,12 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
271
276
  workflow: Readonly<{
272
277
  codename: string;
273
278
  }>;
279
+ }, {
274
280
  codename: string;
275
281
  type: Readonly<{
276
282
  codename: string;
277
283
  }>;
278
284
  name: string;
279
- }, {
280
285
  language: Readonly<{
281
286
  codename: string;
282
287
  }>;
@@ -286,11 +291,6 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
286
291
  workflow: Readonly<{
287
292
  codename: string;
288
293
  }>;
289
- codename: string;
290
- type: Readonly<{
291
- codename: string;
292
- }>;
293
- name: string;
294
294
  }>;
295
295
  export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
296
296
  system: z.ZodObject<{
@@ -325,6 +325,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
325
325
  codename: string;
326
326
  }>>;
327
327
  }, "strict", z.ZodTypeAny, {
328
+ codename: string;
329
+ type: Readonly<{
330
+ codename: string;
331
+ }>;
332
+ name: string;
328
333
  language: Readonly<{
329
334
  codename: string;
330
335
  }>;
@@ -334,12 +339,12 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
334
339
  workflow: Readonly<{
335
340
  codename: string;
336
341
  }>;
342
+ }, {
337
343
  codename: string;
338
344
  type: Readonly<{
339
345
  codename: string;
340
346
  }>;
341
347
  name: string;
342
- }, {
343
348
  language: Readonly<{
344
349
  codename: string;
345
350
  }>;
@@ -349,11 +354,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
349
354
  workflow: Readonly<{
350
355
  codename: string;
351
356
  }>;
352
- codename: string;
353
- type: Readonly<{
354
- codename: string;
355
- }>;
356
- name: string;
357
357
  }>;
358
358
  versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
359
359
  workflow_step: z.ZodReadonly<z.ZodObject<{
@@ -405,6 +405,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
405
405
  }>>, "many">>;
406
406
  }, "strict", z.ZodTypeAny, {
407
407
  system: {
408
+ codename: string;
409
+ type: Readonly<{
410
+ codename: string;
411
+ }>;
412
+ name: string;
408
413
  language: Readonly<{
409
414
  codename: string;
410
415
  }>;
@@ -414,11 +419,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
414
419
  workflow: Readonly<{
415
420
  codename: string;
416
421
  }>;
417
- codename: string;
418
- type: Readonly<{
419
- codename: string;
420
- }>;
421
- name: string;
422
422
  };
423
423
  versions: readonly Readonly<{
424
424
  elements: Readonly<Elements>;
@@ -434,6 +434,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
434
434
  }>[];
435
435
  }, {
436
436
  system: {
437
+ codename: string;
438
+ type: Readonly<{
439
+ codename: string;
440
+ }>;
441
+ name: string;
437
442
  language: Readonly<{
438
443
  codename: string;
439
444
  }>;
@@ -443,11 +448,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
443
448
  workflow: Readonly<{
444
449
  codename: string;
445
450
  }>;
446
- codename: string;
447
- type: Readonly<{
448
- codename: string;
449
- }>;
450
- name: string;
451
451
  };
452
452
  versions: readonly Readonly<{
453
453
  elements: Readonly<Elements>;
@@ -521,12 +521,12 @@ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUti
521
521
  codename: string;
522
522
  }>>>;
523
523
  }, {
524
- binary_data: z.ZodUnion<[z.ZodType<BufferProxy, z.ZodTypeDef, BufferProxy>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
524
+ binary_data: z.ZodUnion<[z.ZodType<BufferProxy<ArrayBufferLike>, z.ZodTypeDef, BufferProxy<ArrayBufferLike>>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
525
525
  }>, "strict", z.ZodTypeAny, {
526
526
  codename: string;
527
527
  filename: string;
528
528
  title: string;
529
- binary_data: BufferProxy | import("buffer").Blob;
529
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
530
530
  collection?: Readonly<{
531
531
  codename: string;
532
532
  }> | undefined;
@@ -543,7 +543,7 @@ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUti
543
543
  codename: string;
544
544
  filename: string;
545
545
  title: string;
546
- binary_data: BufferProxy | import("buffer").Blob;
546
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
547
547
  collection?: Readonly<{
548
548
  codename: string;
549
549
  }> | undefined;
@@ -671,12 +671,12 @@ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadon
671
671
  codename: string;
672
672
  }>>>;
673
673
  }, {
674
- binary_data: z.ZodUnion<[z.ZodType<BufferProxy, z.ZodTypeDef, BufferProxy>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
674
+ binary_data: z.ZodUnion<[z.ZodType<BufferProxy<ArrayBufferLike>, z.ZodTypeDef, BufferProxy<ArrayBufferLike>>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
675
675
  }>, "strict", z.ZodTypeAny, {
676
676
  codename: string;
677
677
  filename: string;
678
678
  title: string;
679
- binary_data: BufferProxy | import("buffer").Blob;
679
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
680
680
  collection?: Readonly<{
681
681
  codename: string;
682
682
  }> | undefined;
@@ -693,7 +693,7 @@ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadon
693
693
  codename: string;
694
694
  filename: string;
695
695
  title: string;
696
- binary_data: BufferProxy | import("buffer").Blob;
696
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
697
697
  collection?: Readonly<{
698
698
  codename: string;
699
699
  }> | undefined;
@@ -815,6 +815,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
815
815
  codename: string;
816
816
  }>>;
817
817
  }, "strict", z.ZodTypeAny, {
818
+ codename: string;
819
+ type: Readonly<{
820
+ codename: string;
821
+ }>;
822
+ name: string;
818
823
  language: Readonly<{
819
824
  codename: string;
820
825
  }>;
@@ -824,12 +829,12 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
824
829
  workflow: Readonly<{
825
830
  codename: string;
826
831
  }>;
832
+ }, {
827
833
  codename: string;
828
834
  type: Readonly<{
829
835
  codename: string;
830
836
  }>;
831
837
  name: string;
832
- }, {
833
838
  language: Readonly<{
834
839
  codename: string;
835
840
  }>;
@@ -839,11 +844,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
839
844
  workflow: Readonly<{
840
845
  codename: string;
841
846
  }>;
842
- codename: string;
843
- type: Readonly<{
844
- codename: string;
845
- }>;
846
- name: string;
847
847
  }>;
848
848
  versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
849
849
  workflow_step: z.ZodReadonly<z.ZodObject<{
@@ -895,6 +895,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
895
895
  }>>, "many">>;
896
896
  }, "strict", z.ZodTypeAny, {
897
897
  system: {
898
+ codename: string;
899
+ type: Readonly<{
900
+ codename: string;
901
+ }>;
902
+ name: string;
898
903
  language: Readonly<{
899
904
  codename: string;
900
905
  }>;
@@ -904,11 +909,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
904
909
  workflow: Readonly<{
905
910
  codename: string;
906
911
  }>;
907
- codename: string;
908
- type: Readonly<{
909
- codename: string;
910
- }>;
911
- name: string;
912
912
  };
913
913
  versions: readonly Readonly<{
914
914
  elements: Readonly<Elements>;
@@ -924,6 +924,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
924
924
  }>[];
925
925
  }, {
926
926
  system: {
927
+ codename: string;
928
+ type: Readonly<{
929
+ codename: string;
930
+ }>;
931
+ name: string;
927
932
  language: Readonly<{
928
933
  codename: string;
929
934
  }>;
@@ -933,11 +938,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
933
938
  workflow: Readonly<{
934
939
  codename: string;
935
940
  }>;
936
- codename: string;
937
- type: Readonly<{
938
- codename: string;
939
- }>;
940
- name: string;
941
941
  };
942
942
  versions: readonly Readonly<{
943
943
  elements: Readonly<Elements>;
@@ -986,6 +986,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
986
986
  codename: string;
987
987
  }>>;
988
988
  }, "strict", z.ZodTypeAny, {
989
+ codename: string;
990
+ type: Readonly<{
991
+ codename: string;
992
+ }>;
993
+ name: string;
989
994
  language: Readonly<{
990
995
  codename: string;
991
996
  }>;
@@ -995,12 +1000,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
995
1000
  workflow: Readonly<{
996
1001
  codename: string;
997
1002
  }>;
1003
+ }, {
998
1004
  codename: string;
999
1005
  type: Readonly<{
1000
1006
  codename: string;
1001
1007
  }>;
1002
1008
  name: string;
1003
- }, {
1004
1009
  language: Readonly<{
1005
1010
  codename: string;
1006
1011
  }>;
@@ -1010,11 +1015,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1010
1015
  workflow: Readonly<{
1011
1016
  codename: string;
1012
1017
  }>;
1013
- codename: string;
1014
- type: Readonly<{
1015
- codename: string;
1016
- }>;
1017
- name: string;
1018
1018
  }>;
1019
1019
  versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1020
1020
  workflow_step: z.ZodReadonly<z.ZodObject<{
@@ -1066,6 +1066,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1066
1066
  }>>, "many">>;
1067
1067
  }, "strict", z.ZodTypeAny, {
1068
1068
  system: {
1069
+ codename: string;
1070
+ type: Readonly<{
1071
+ codename: string;
1072
+ }>;
1073
+ name: string;
1069
1074
  language: Readonly<{
1070
1075
  codename: string;
1071
1076
  }>;
@@ -1075,11 +1080,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1075
1080
  workflow: Readonly<{
1076
1081
  codename: string;
1077
1082
  }>;
1078
- codename: string;
1079
- type: Readonly<{
1080
- codename: string;
1081
- }>;
1082
- name: string;
1083
1083
  };
1084
1084
  versions: readonly Readonly<{
1085
1085
  elements: Readonly<Elements>;
@@ -1095,6 +1095,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1095
1095
  }>[];
1096
1096
  }, {
1097
1097
  system: {
1098
+ codename: string;
1099
+ type: Readonly<{
1100
+ codename: string;
1101
+ }>;
1102
+ name: string;
1098
1103
  language: Readonly<{
1099
1104
  codename: string;
1100
1105
  }>;
@@ -1104,11 +1109,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1104
1109
  workflow: Readonly<{
1105
1110
  codename: string;
1106
1111
  }>;
1107
- codename: string;
1108
- type: Readonly<{
1109
- codename: string;
1110
- }>;
1111
- name: string;
1112
1112
  };
1113
1113
  versions: readonly Readonly<{
1114
1114
  elements: Readonly<Elements>;
@@ -1162,12 +1162,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1162
1162
  codename: string;
1163
1163
  }>>>;
1164
1164
  }, {
1165
- binary_data: z.ZodUnion<[z.ZodType<BufferProxy, z.ZodTypeDef, BufferProxy>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
1165
+ binary_data: z.ZodUnion<[z.ZodType<BufferProxy<ArrayBufferLike>, z.ZodTypeDef, BufferProxy<ArrayBufferLike>>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
1166
1166
  }>, "strict", z.ZodTypeAny, {
1167
1167
  codename: string;
1168
1168
  filename: string;
1169
1169
  title: string;
1170
- binary_data: BufferProxy | import("buffer").Blob;
1170
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
1171
1171
  collection?: Readonly<{
1172
1172
  codename: string;
1173
1173
  }> | undefined;
@@ -1184,7 +1184,7 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1184
1184
  codename: string;
1185
1185
  filename: string;
1186
1186
  title: string;
1187
- binary_data: BufferProxy | import("buffer").Blob;
1187
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
1188
1188
  collection?: Readonly<{
1189
1189
  codename: string;
1190
1190
  }> | undefined;
@@ -1201,6 +1201,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1201
1201
  }, "strict", z.ZodTypeAny, {
1202
1202
  items: readonly Readonly<{
1203
1203
  system: {
1204
+ codename: string;
1205
+ type: Readonly<{
1206
+ codename: string;
1207
+ }>;
1208
+ name: string;
1204
1209
  language: Readonly<{
1205
1210
  codename: string;
1206
1211
  }>;
@@ -1210,11 +1215,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1210
1215
  workflow: Readonly<{
1211
1216
  codename: string;
1212
1217
  }>;
1213
- codename: string;
1214
- type: Readonly<{
1215
- codename: string;
1216
- }>;
1217
- name: string;
1218
1218
  };
1219
1219
  versions: readonly Readonly<{
1220
1220
  elements: Readonly<Elements>;
@@ -1233,7 +1233,7 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1233
1233
  codename: string;
1234
1234
  filename: string;
1235
1235
  title: string;
1236
- binary_data: BufferProxy | import("buffer").Blob;
1236
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
1237
1237
  collection?: Readonly<{
1238
1238
  codename: string;
1239
1239
  }> | undefined;
@@ -1250,6 +1250,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1250
1250
  }, {
1251
1251
  items: readonly Readonly<{
1252
1252
  system: {
1253
+ codename: string;
1254
+ type: Readonly<{
1255
+ codename: string;
1256
+ }>;
1257
+ name: string;
1253
1258
  language: Readonly<{
1254
1259
  codename: string;
1255
1260
  }>;
@@ -1259,11 +1264,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1259
1264
  workflow: Readonly<{
1260
1265
  codename: string;
1261
1266
  }>;
1262
- codename: string;
1263
- type: Readonly<{
1264
- codename: string;
1265
- }>;
1266
- name: string;
1267
1267
  };
1268
1268
  versions: readonly Readonly<{
1269
1269
  elements: Readonly<Elements>;
@@ -1282,7 +1282,7 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1282
1282
  codename: string;
1283
1283
  filename: string;
1284
1284
  title: string;
1285
- binary_data: BufferProxy | import("buffer").Blob;
1285
+ binary_data: BufferProxy<ArrayBufferLike> | import("buffer").Blob;
1286
1286
  collection?: Readonly<{
1287
1287
  codename: string;
1288
1288
  }> | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration.schema.js","sourceRoot":"","sources":["../../../lib/core/models/migration.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwCxB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AACzF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACtC,IAAI,CAAC;IACF,MAAM;IACN,WAAW;IACX,QAAQ;IACR,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,iBAAiB;IACjB,UAAU;IACV,UAAU;IACV,QAAQ;IACR,UAAU;CACb,CAAC;KACD,QAAQ,EAAE,CAAC;AAEhB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACpC,YAAY,CAAC;IACV,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,QAAQ,EAAE,CAAC;AAEhB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC1B,YAAY,CAAC;IACV,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzD,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QA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AC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IAChE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;CACxE,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACnE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE,CAAC;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KAC/B,YAAY,CAAC;IACV,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,qBAAqB;CAChC,CAAC;KACD,QAAQ,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { MigrationElementValue, MigrationReference } from '../models/migration.models.js';
1
+ import type { MigrationElementValue, MigrationReference } from '../models/migration.models.js';
2
2
  export declare function parseAsMigrationReferencesArray(value: MigrationElementValue): readonly MigrationReference[];
3
3
  export declare function findRequired<T>(array: readonly T[], predicate: (item: T, index: number) => boolean, errorMessage: string): T;
4
4
  export declare function findRequired<T>(array: readonly T[], predicate: (item: T, index: number) => boolean, errorMessage: () => never): T;
5
- export declare function mapAsync<Input, Result>(array: readonly Input[], callbackAsync: (item: Readonly<Input>, index: number, array: readonly Input[]) => Promise<Readonly<Result>>): Promise<Readonly<Result[]>>;
5
+ export declare function mapAsync<Input, Result>(array: readonly Input[], callbackAsync: (item: Readonly<Input>, index: number, array: readonly Input[]) => Promise<Readonly<Result>>): Promise<readonly Result[]>;
@@ -1,8 +1,9 @@
1
+ import { isArray, isString } from './global.utils.js';
1
2
  export function parseAsMigrationReferencesArray(value) {
2
3
  if (!value) {
3
4
  return [];
4
5
  }
5
- if (Array.isArray(value)) {
6
+ if (isArray(value)) {
6
7
  return value;
7
8
  }
8
9
  throw Error(`Value is not an array`);
@@ -12,8 +13,8 @@ export function findRequired(array, predicate, errorMessage) {
12
13
  if (item) {
13
14
  return item;
14
15
  }
15
- if (typeof errorMessage === 'string' || errorMessage instanceof String) {
16
- throw Error(errorMessage.toString());
16
+ if (isString(errorMessage)) {
17
+ throw Error(errorMessage);
17
18
  }
18
19
  return errorMessage();
19
20
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.utils.js","sourceRoot":"","sources":["../../../lib/core/utils/array.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,UAAU,+BAA+B,CAAC,KAA4B;IACxE,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,MAAM,KAAK,CAAC,uBAAuB,CAAC,CAAC;AACzC,CAAC;AAID,MAAM,UAAU,YAAY,CACxB,KAAmB,EACnB,SAA8C,EAC9C,YAAoC;IAEpC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEnC,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,YAAY,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC1B,KAAuB,EACvB,aAA2G;IAE3G,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,MAAM,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FileBinaryData } from '../../zip/index.js';
1
+ import type { FileBinaryData } from '../../zip/index.js';
2
2
  export declare function getBinaryDataFromUrlAsync(url: string): Promise<{
3
3
  readonly data: FileBinaryData;
4
4
  readonly contentLength: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-data.utils.js","sourceRoot":"","sources":["../../../lib/core/utils/binary-data.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,GAAW;IACvD,wDAAwD;IACxD,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAEzC,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,QAAQ,CAC9C;QACI,GAAG,EAAE,QAAQ;KAChB,EACD;QACI,YAAY,EAAE,aAAa;QAC3B,aAAa,EAAE,oBAAoB;KACtC,CACJ,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,gBAAgB,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC;IAE/G,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAoB;IAC9C,OAAO,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;AAC9D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Logger } from '../models/log.models.js';
1
+ import type { Logger } from '../models/log.models.js';
2
2
  export declare function confirmExportAsync(data: {
3
3
  readonly force: boolean;
4
4
  readonly environmentId: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm.utils.js","sourceRoot":"","sources":["../../../lib/core/utils/confirm.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,IAQxC;IACG,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAC3C,4BAA4B,CAAC;QACzB,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,MAAM,EAAE,IAAI,CAAC,MAAM;KACtB,CAAC,EACF,IAAI,CAAC,MAAM,CACd,CAAC,mBAAmB,EAAE,CAAC;IAExB,MAAM,IAAI,GAAW,2BAA2B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,aAAa,kBAAkB,CACnH,IAAI,CAAC,YAAY,CAAC,UAAU,CAC/B,SAAS,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC;IAExF,MAAM,YAAY,CAAC;QACf,KAAK,EAAE,IAAI,CAAC,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CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;AAC1C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ErrorData } from '../models/core.models.js';
1
+ import type { ErrorData } from '../models/core.models.js';
2
2
  export declare function extractErrorData(error: unknown): ErrorData;
3
3
  export declare function is404Error(error: unknown): boolean;
4
4
  export declare function handleError(error: unknown): void;