@modyo/mcp 0.1.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 (1069) hide show
  1. package/LICENSE.md +227 -0
  2. package/README.md +187 -0
  3. package/build/ModyoMcpServer.d.ts +11 -0
  4. package/build/ModyoMcpServer.d.ts.map +1 -0
  5. package/build/ModyoMcpServer.js +54 -0
  6. package/build/ModyoMcpServer.js.map +1 -0
  7. package/build/index.d.ts +3 -0
  8. package/build/index.d.ts.map +1 -0
  9. package/build/index.js +8 -0
  10. package/build/index.js.map +1 -0
  11. package/build/prompts/channels/global/GlobalPrompts.d.ts +2 -0
  12. package/build/prompts/channels/global/GlobalPrompts.d.ts.map +1 -0
  13. package/build/prompts/channels/global/GlobalPrompts.js +4 -0
  14. package/build/prompts/channels/global/GlobalPrompts.js.map +1 -0
  15. package/build/prompts/channels/global/prompts.d.ts +3 -0
  16. package/build/prompts/channels/global/prompts.d.ts.map +1 -0
  17. package/build/prompts/channels/global/prompts.js +5 -0
  18. package/build/prompts/channels/global/prompts.js.map +1 -0
  19. package/build/prompts/channels/pages/CreateContentPage.d.ts +48 -0
  20. package/build/prompts/channels/pages/CreateContentPage.d.ts.map +1 -0
  21. package/build/prompts/channels/pages/CreateContentPage.js +314 -0
  22. package/build/prompts/channels/pages/CreateContentPage.js.map +1 -0
  23. package/build/prompts/channels/pages/CreateWidgetPage.d.ts +47 -0
  24. package/build/prompts/channels/pages/CreateWidgetPage.d.ts.map +1 -0
  25. package/build/prompts/channels/pages/CreateWidgetPage.js +176 -0
  26. package/build/prompts/channels/pages/CreateWidgetPage.js.map +1 -0
  27. package/build/prompts/channels/pages/PagesPrompts.d.ts +2 -0
  28. package/build/prompts/channels/pages/PagesPrompts.d.ts.map +1 -0
  29. package/build/prompts/channels/pages/PagesPrompts.js +7 -0
  30. package/build/prompts/channels/pages/PagesPrompts.js.map +1 -0
  31. package/build/prompts/channels/releases/ManageReleases.d.ts +34 -0
  32. package/build/prompts/channels/releases/ManageReleases.d.ts.map +1 -0
  33. package/build/prompts/channels/releases/ManageReleases.js +407 -0
  34. package/build/prompts/channels/releases/ManageReleases.js.map +1 -0
  35. package/build/prompts/channels/releases/ReleasesPrompts.d.ts +2 -0
  36. package/build/prompts/channels/releases/ReleasesPrompts.d.ts.map +1 -0
  37. package/build/prompts/channels/releases/ReleasesPrompts.js +5 -0
  38. package/build/prompts/channels/releases/ReleasesPrompts.js.map +1 -0
  39. package/build/prompts/channels/templates/ManageTemplates.d.ts +43 -0
  40. package/build/prompts/channels/templates/ManageTemplates.d.ts.map +1 -0
  41. package/build/prompts/channels/templates/ManageTemplates.js +530 -0
  42. package/build/prompts/channels/templates/ManageTemplates.js.map +1 -0
  43. package/build/prompts/channels/templates/TemplatesPrompts.d.ts +2 -0
  44. package/build/prompts/channels/templates/TemplatesPrompts.d.ts.map +1 -0
  45. package/build/prompts/channels/templates/TemplatesPrompts.js +5 -0
  46. package/build/prompts/channels/templates/TemplatesPrompts.js.map +1 -0
  47. package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.d.ts +43 -0
  48. package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.d.ts.map +1 -0
  49. package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.js +371 -0
  50. package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.js.map +1 -0
  51. package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.d.ts +2 -0
  52. package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.d.ts.map +1 -0
  53. package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.js +5 -0
  54. package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.js.map +1 -0
  55. package/build/prompts/content/spaces/Create.d.ts +29 -0
  56. package/build/prompts/content/spaces/Create.d.ts.map +1 -0
  57. package/build/prompts/content/spaces/Create.js +34 -0
  58. package/build/prompts/content/spaces/Create.js.map +1 -0
  59. package/build/prompts/content/spaces/SpacesPrompts.d.ts +2 -0
  60. package/build/prompts/content/spaces/SpacesPrompts.d.ts.map +1 -0
  61. package/build/prompts/content/spaces/SpacesPrompts.js +5 -0
  62. package/build/prompts/content/spaces/SpacesPrompts.js.map +1 -0
  63. package/build/prompts/core/global/GlobalPrompts.d.ts +2 -0
  64. package/build/prompts/core/global/GlobalPrompts.d.ts.map +1 -0
  65. package/build/prompts/core/global/GlobalPrompts.js +4 -0
  66. package/build/prompts/core/global/GlobalPrompts.js.map +1 -0
  67. package/build/prompts/core/global/prompts.d.ts +3 -0
  68. package/build/prompts/core/global/prompts.d.ts.map +1 -0
  69. package/build/prompts/core/global/prompts.js +5 -0
  70. package/build/prompts/core/global/prompts.js.map +1 -0
  71. package/build/prompts/customers/global/GlobalPrompts.d.ts +2 -0
  72. package/build/prompts/customers/global/GlobalPrompts.d.ts.map +1 -0
  73. package/build/prompts/customers/global/GlobalPrompts.js +4 -0
  74. package/build/prompts/customers/global/GlobalPrompts.js.map +1 -0
  75. package/build/prompts/customers/global/prompts.d.ts +3 -0
  76. package/build/prompts/customers/global/prompts.d.ts.map +1 -0
  77. package/build/prompts/customers/global/prompts.js +5 -0
  78. package/build/prompts/customers/global/prompts.js.map +1 -0
  79. package/build/prompts/prompts.d.ts +3 -0
  80. package/build/prompts/prompts.d.ts.map +1 -0
  81. package/build/prompts/prompts.js +26 -0
  82. package/build/prompts/prompts.js.map +1 -0
  83. package/build/prompts/workflows/CreateBlog.d.ts +33 -0
  84. package/build/prompts/workflows/CreateBlog.d.ts.map +1 -0
  85. package/build/prompts/workflows/CreateBlog.js +240 -0
  86. package/build/prompts/workflows/CreateBlog.js.map +1 -0
  87. package/build/prompts/workflows/SetupSite.d.ts +35 -0
  88. package/build/prompts/workflows/SetupSite.d.ts.map +1 -0
  89. package/build/prompts/workflows/SetupSite.js +365 -0
  90. package/build/prompts/workflows/SetupSite.js.map +1 -0
  91. package/build/prompts/workflows/WorkflowPrompts.d.ts +2 -0
  92. package/build/prompts/workflows/WorkflowPrompts.d.ts.map +1 -0
  93. package/build/prompts/workflows/WorkflowPrompts.js +7 -0
  94. package/build/prompts/workflows/WorkflowPrompts.js.map +1 -0
  95. package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.d.ts +24 -0
  96. package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.d.ts.map +1 -0
  97. package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.js +103 -0
  98. package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.js.map +1 -0
  99. package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.d.ts +17 -0
  100. package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.d.ts.map +1 -0
  101. package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.js +30 -0
  102. package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.js.map +1 -0
  103. package/build/repositories/channels/globalVariables/GlobalVariablesRepository.d.ts +48 -0
  104. package/build/repositories/channels/globalVariables/GlobalVariablesRepository.d.ts.map +1 -0
  105. package/build/repositories/channels/globalVariables/GlobalVariablesRepository.js +105 -0
  106. package/build/repositories/channels/globalVariables/GlobalVariablesRepository.js.map +1 -0
  107. package/build/repositories/channels/locks/LocksRepository.d.ts +67 -0
  108. package/build/repositories/channels/locks/LocksRepository.d.ts.map +1 -0
  109. package/build/repositories/channels/locks/LocksRepository.js +58 -0
  110. package/build/repositories/channels/locks/LocksRepository.js.map +1 -0
  111. package/build/repositories/channels/navigation/NavigationRepository.d.ts +164 -0
  112. package/build/repositories/channels/navigation/NavigationRepository.d.ts.map +1 -0
  113. package/build/repositories/channels/navigation/NavigationRepository.js +343 -0
  114. package/build/repositories/channels/navigation/NavigationRepository.js.map +1 -0
  115. package/build/repositories/channels/pages/PagesRepository.d.ts +190 -0
  116. package/build/repositories/channels/pages/PagesRepository.d.ts.map +1 -0
  117. package/build/repositories/channels/pages/PagesRepository.js +256 -0
  118. package/build/repositories/channels/pages/PagesRepository.js.map +1 -0
  119. package/build/repositories/channels/releases/ReleasesRepository.d.ts +7 -0
  120. package/build/repositories/channels/releases/ReleasesRepository.d.ts.map +1 -0
  121. package/build/repositories/channels/releases/ReleasesRepository.js +10 -0
  122. package/build/repositories/channels/releases/ReleasesRepository.js.map +1 -0
  123. package/build/repositories/channels/sites/SitesRepository.d.ts +22 -0
  124. package/build/repositories/channels/sites/SitesRepository.d.ts.map +1 -0
  125. package/build/repositories/channels/sites/SitesRepository.js +45 -0
  126. package/build/repositories/channels/sites/SitesRepository.js.map +1 -0
  127. package/build/repositories/channels/sites/assets/SiteAssetsRepository.d.ts +7 -0
  128. package/build/repositories/channels/sites/assets/SiteAssetsRepository.d.ts.map +1 -0
  129. package/build/repositories/channels/sites/assets/SiteAssetsRepository.js +58 -0
  130. package/build/repositories/channels/sites/assets/SiteAssetsRepository.js.map +1 -0
  131. package/build/repositories/channels/templates/TemplatesRepository.d.ts +92 -0
  132. package/build/repositories/channels/templates/TemplatesRepository.d.ts.map +1 -0
  133. package/build/repositories/channels/templates/TemplatesRepository.js +281 -0
  134. package/build/repositories/channels/templates/TemplatesRepository.js.map +1 -0
  135. package/build/repositories/channels/widgets/WidgetsRepository.d.ts +6 -0
  136. package/build/repositories/channels/widgets/WidgetsRepository.d.ts.map +1 -0
  137. package/build/repositories/channels/widgets/WidgetsRepository.js +7 -0
  138. package/build/repositories/channels/widgets/WidgetsRepository.js.map +1 -0
  139. package/build/repositories/channels/workflows/WorkflowsRepository.d.ts +22 -0
  140. package/build/repositories/channels/workflows/WorkflowsRepository.d.ts.map +1 -0
  141. package/build/repositories/channels/workflows/WorkflowsRepository.js +22 -0
  142. package/build/repositories/channels/workflows/WorkflowsRepository.js.map +1 -0
  143. package/build/repositories/content/assets/AssetsRepository.d.ts +49 -0
  144. package/build/repositories/content/assets/AssetsRepository.d.ts.map +1 -0
  145. package/build/repositories/content/assets/AssetsRepository.js +109 -0
  146. package/build/repositories/content/assets/AssetsRepository.js.map +1 -0
  147. package/build/repositories/content/categories/CategoriesRepository.d.ts +37 -0
  148. package/build/repositories/content/categories/CategoriesRepository.d.ts.map +1 -0
  149. package/build/repositories/content/categories/CategoriesRepository.js +19 -0
  150. package/build/repositories/content/categories/CategoriesRepository.js.map +1 -0
  151. package/build/repositories/content/entries/EntriesRepository.d.ts +336 -0
  152. package/build/repositories/content/entries/EntriesRepository.d.ts.map +1 -0
  153. package/build/repositories/content/entries/EntriesRepository.js +550 -0
  154. package/build/repositories/content/entries/EntriesRepository.js.map +1 -0
  155. package/build/repositories/content/spaces/SpacesRepository.d.ts +20 -0
  156. package/build/repositories/content/spaces/SpacesRepository.d.ts.map +1 -0
  157. package/build/repositories/content/spaces/SpacesRepository.js +24 -0
  158. package/build/repositories/content/spaces/SpacesRepository.js.map +1 -0
  159. package/build/repositories/content/types/TypesRepository.d.ts +76 -0
  160. package/build/repositories/content/types/TypesRepository.d.ts.map +1 -0
  161. package/build/repositories/content/types/TypesRepository.js +112 -0
  162. package/build/repositories/content/types/TypesRepository.js.map +1 -0
  163. package/build/repositories/core/assets/AdminAssetsRepository.d.ts +36 -0
  164. package/build/repositories/core/assets/AdminAssetsRepository.d.ts.map +1 -0
  165. package/build/repositories/core/assets/AdminAssetsRepository.js +69 -0
  166. package/build/repositories/core/assets/AdminAssetsRepository.js.map +1 -0
  167. package/build/repositories/core/general/AdminGeneralRepository.d.ts +7 -0
  168. package/build/repositories/core/general/AdminGeneralRepository.d.ts.map +1 -0
  169. package/build/repositories/core/general/AdminGeneralRepository.js +13 -0
  170. package/build/repositories/core/general/AdminGeneralRepository.js.map +1 -0
  171. package/build/repositories/core/groups/AdminGroupsRepository.d.ts +80 -0
  172. package/build/repositories/core/groups/AdminGroupsRepository.d.ts.map +1 -0
  173. package/build/repositories/core/groups/AdminGroupsRepository.js +251 -0
  174. package/build/repositories/core/groups/AdminGroupsRepository.js.map +1 -0
  175. package/build/repositories/core/roles/AdminRolesRepository.d.ts +42 -0
  176. package/build/repositories/core/roles/AdminRolesRepository.d.ts.map +1 -0
  177. package/build/repositories/core/roles/AdminRolesRepository.js +66 -0
  178. package/build/repositories/core/roles/AdminRolesRepository.js.map +1 -0
  179. package/build/repositories/core/sites/AdminSitesRepository.d.ts +15 -0
  180. package/build/repositories/core/sites/AdminSitesRepository.d.ts.map +1 -0
  181. package/build/repositories/core/sites/AdminSitesRepository.js +27 -0
  182. package/build/repositories/core/sites/AdminSitesRepository.js.map +1 -0
  183. package/build/repositories/core/team/AdminTeamRepository.d.ts +92 -0
  184. package/build/repositories/core/team/AdminTeamRepository.d.ts.map +1 -0
  185. package/build/repositories/core/team/AdminTeamRepository.js +129 -0
  186. package/build/repositories/core/team/AdminTeamRepository.js.map +1 -0
  187. package/build/repositories/core/teamMembers/AdminTeamMembersRepository.d.ts +80 -0
  188. package/build/repositories/core/teamMembers/AdminTeamMembersRepository.d.ts.map +1 -0
  189. package/build/repositories/core/teamMembers/AdminTeamMembersRepository.js +293 -0
  190. package/build/repositories/core/teamMembers/AdminTeamMembersRepository.js.map +1 -0
  191. package/build/repositories/customers/forms/FormsRepository.d.ts +37 -0
  192. package/build/repositories/customers/forms/FormsRepository.d.ts.map +1 -0
  193. package/build/repositories/customers/forms/FormsRepository.js +92 -0
  194. package/build/repositories/customers/forms/FormsRepository.js.map +1 -0
  195. package/build/repositories/customers/originations/OriginationsRepository.d.ts +80 -0
  196. package/build/repositories/customers/originations/OriginationsRepository.d.ts.map +1 -0
  197. package/build/repositories/customers/originations/OriginationsRepository.js +590 -0
  198. package/build/repositories/customers/originations/OriginationsRepository.js.map +1 -0
  199. package/build/repositories/customers/realms/RealmsRepository.d.ts +13 -0
  200. package/build/repositories/customers/realms/RealmsRepository.d.ts.map +1 -0
  201. package/build/repositories/customers/realms/RealmsRepository.js +78 -0
  202. package/build/repositories/customers/realms/RealmsRepository.js.map +1 -0
  203. package/build/repositories/customers/realms/SubmissionsRepository.d.ts +11 -0
  204. package/build/repositories/customers/realms/SubmissionsRepository.d.ts.map +1 -0
  205. package/build/repositories/customers/realms/SubmissionsRepository.js +32 -0
  206. package/build/repositories/customers/realms/SubmissionsRepository.js.map +1 -0
  207. package/build/repositories/customers/segments/SegmentsRepository.d.ts +29 -0
  208. package/build/repositories/customers/segments/SegmentsRepository.d.ts.map +1 -0
  209. package/build/repositories/customers/segments/SegmentsRepository.js +55 -0
  210. package/build/repositories/customers/segments/SegmentsRepository.js.map +1 -0
  211. package/build/repositories/customers/settings/DataSetsRepository.d.ts +11 -0
  212. package/build/repositories/customers/settings/DataSetsRepository.d.ts.map +1 -0
  213. package/build/repositories/customers/settings/DataSetsRepository.js +39 -0
  214. package/build/repositories/customers/settings/DataSetsRepository.js.map +1 -0
  215. package/build/repositories/customers/users/UsersRepository.d.ts +10 -0
  216. package/build/repositories/customers/users/UsersRepository.d.ts.map +1 -0
  217. package/build/repositories/customers/users/UsersRepository.js +19 -0
  218. package/build/repositories/customers/users/UsersRepository.js.map +1 -0
  219. package/build/resources/channels/global/PlatformsClass.d.ts +25 -0
  220. package/build/resources/channels/global/PlatformsClass.d.ts.map +1 -0
  221. package/build/resources/channels/global/PlatformsClass.js +34 -0
  222. package/build/resources/channels/global/PlatformsClass.js.map +1 -0
  223. package/build/resources/channels/global/registerGlobalResources.d.ts +2 -0
  224. package/build/resources/channels/global/registerGlobalResources.d.ts.map +1 -0
  225. package/build/resources/channels/global/registerGlobalResources.js +5 -0
  226. package/build/resources/channels/global/registerGlobalResources.js.map +1 -0
  227. package/build/resources/channels/liquid/LiquidReference.d.ts +31 -0
  228. package/build/resources/channels/liquid/LiquidReference.d.ts.map +1 -0
  229. package/build/resources/channels/liquid/LiquidReference.js +796 -0
  230. package/build/resources/channels/liquid/LiquidReference.js.map +1 -0
  231. package/build/resources/channels/tools/ChannelsDocsToolsResource.d.ts +46 -0
  232. package/build/resources/channels/tools/ChannelsDocsToolsResource.d.ts.map +1 -0
  233. package/build/resources/channels/tools/ChannelsDocsToolsResource.js +160 -0
  234. package/build/resources/channels/tools/ChannelsDocsToolsResource.js.map +1 -0
  235. package/build/resources/content/global/PlatformsClass.d.ts +25 -0
  236. package/build/resources/content/global/PlatformsClass.d.ts.map +1 -0
  237. package/build/resources/content/global/PlatformsClass.js +34 -0
  238. package/build/resources/content/global/PlatformsClass.js.map +1 -0
  239. package/build/resources/content/global/registerGlobalResources.d.ts +2 -0
  240. package/build/resources/content/global/registerGlobalResources.d.ts.map +1 -0
  241. package/build/resources/content/global/registerGlobalResources.js +5 -0
  242. package/build/resources/content/global/registerGlobalResources.js.map +1 -0
  243. package/build/resources/content/spaces/ListSpacesClass.d.ts +28 -0
  244. package/build/resources/content/spaces/ListSpacesClass.d.ts.map +1 -0
  245. package/build/resources/content/spaces/ListSpacesClass.js +37 -0
  246. package/build/resources/content/spaces/ListSpacesClass.js.map +1 -0
  247. package/build/resources/content/spaces/registerSpacesResources.d.ts +2 -0
  248. package/build/resources/content/spaces/registerSpacesResources.d.ts.map +1 -0
  249. package/build/resources/content/spaces/registerSpacesResources.js +5 -0
  250. package/build/resources/content/spaces/registerSpacesResources.js.map +1 -0
  251. package/build/resources/content/tools/ContentDocsToolsResource.d.ts +46 -0
  252. package/build/resources/content/tools/ContentDocsToolsResource.d.ts.map +1 -0
  253. package/build/resources/content/tools/ContentDocsToolsResource.js +160 -0
  254. package/build/resources/content/tools/ContentDocsToolsResource.js.map +1 -0
  255. package/build/resources/content/tools/registerContentToolsResources.d.ts +2 -0
  256. package/build/resources/content/tools/registerContentToolsResources.d.ts.map +1 -0
  257. package/build/resources/content/tools/registerContentToolsResources.js +5 -0
  258. package/build/resources/content/tools/registerContentToolsResources.js.map +1 -0
  259. package/build/resources/core/global/PlatformsClass.d.ts +25 -0
  260. package/build/resources/core/global/PlatformsClass.d.ts.map +1 -0
  261. package/build/resources/core/global/PlatformsClass.js +34 -0
  262. package/build/resources/core/global/PlatformsClass.js.map +1 -0
  263. package/build/resources/core/global/registerGlobalResources.d.ts +2 -0
  264. package/build/resources/core/global/registerGlobalResources.d.ts.map +1 -0
  265. package/build/resources/core/global/registerGlobalResources.js +5 -0
  266. package/build/resources/core/global/registerGlobalResources.js.map +1 -0
  267. package/build/resources/core/tools/CoreDocsToolsResource.d.ts +49 -0
  268. package/build/resources/core/tools/CoreDocsToolsResource.d.ts.map +1 -0
  269. package/build/resources/core/tools/CoreDocsToolsResource.js +165 -0
  270. package/build/resources/core/tools/CoreDocsToolsResource.js.map +1 -0
  271. package/build/resources/core/tools/registerCoreToolsResources.d.ts +2 -0
  272. package/build/resources/core/tools/registerCoreToolsResources.d.ts.map +1 -0
  273. package/build/resources/core/tools/registerCoreToolsResources.js +5 -0
  274. package/build/resources/core/tools/registerCoreToolsResources.js.map +1 -0
  275. package/build/resources/customers/global/PlatformsClass.d.ts +25 -0
  276. package/build/resources/customers/global/PlatformsClass.d.ts.map +1 -0
  277. package/build/resources/customers/global/PlatformsClass.js +34 -0
  278. package/build/resources/customers/global/PlatformsClass.js.map +1 -0
  279. package/build/resources/customers/global/registerGlobalResources.d.ts +2 -0
  280. package/build/resources/customers/global/registerGlobalResources.d.ts.map +1 -0
  281. package/build/resources/customers/global/registerGlobalResources.js +5 -0
  282. package/build/resources/customers/global/registerGlobalResources.js.map +1 -0
  283. package/build/resources/customers/realms/ListRealmsClass.d.ts +28 -0
  284. package/build/resources/customers/realms/ListRealmsClass.d.ts.map +1 -0
  285. package/build/resources/customers/realms/ListRealmsClass.js +37 -0
  286. package/build/resources/customers/realms/ListRealmsClass.js.map +1 -0
  287. package/build/resources/customers/realms/registerRealmsResources.d.ts +2 -0
  288. package/build/resources/customers/realms/registerRealmsResources.d.ts.map +1 -0
  289. package/build/resources/customers/realms/registerRealmsResources.js +5 -0
  290. package/build/resources/customers/realms/registerRealmsResources.js.map +1 -0
  291. package/build/resources/customers/tools/CustomersDocsToolsResource.d.ts +46 -0
  292. package/build/resources/customers/tools/CustomersDocsToolsResource.d.ts.map +1 -0
  293. package/build/resources/customers/tools/CustomersDocsToolsResource.js +160 -0
  294. package/build/resources/customers/tools/CustomersDocsToolsResource.js.map +1 -0
  295. package/build/resources/customers/tools/registerCustomersToolsResources.d.ts +2 -0
  296. package/build/resources/customers/tools/registerCustomersToolsResources.d.ts.map +1 -0
  297. package/build/resources/customers/tools/registerCustomersToolsResources.js +5 -0
  298. package/build/resources/customers/tools/registerCustomersToolsResources.js.map +1 -0
  299. package/build/resources/resources.d.ts +3 -0
  300. package/build/resources/resources.d.ts.map +1 -0
  301. package/build/resources/resources.js +23 -0
  302. package/build/resources/resources.js.map +1 -0
  303. package/build/resources/shared/DocsToolsResource.d.ts +47 -0
  304. package/build/resources/shared/DocsToolsResource.d.ts.map +1 -0
  305. package/build/resources/shared/DocsToolsResource.js +120 -0
  306. package/build/resources/shared/DocsToolsResource.js.map +1 -0
  307. package/build/shared/FetchRepositoryBase.d.ts +38 -0
  308. package/build/shared/FetchRepositoryBase.d.ts.map +1 -0
  309. package/build/shared/FetchRepositoryBase.js +81 -0
  310. package/build/shared/FetchRepositoryBase.js.map +1 -0
  311. package/build/shared/McpServerBase.d.ts +61 -0
  312. package/build/shared/McpServerBase.d.ts.map +1 -0
  313. package/build/shared/McpServerBase.js +175 -0
  314. package/build/shared/McpServerBase.js.map +1 -0
  315. package/build/shared/PromptBase.d.ts +113 -0
  316. package/build/shared/PromptBase.d.ts.map +1 -0
  317. package/build/shared/PromptBase.js +169 -0
  318. package/build/shared/PromptBase.js.map +1 -0
  319. package/build/shared/ResourceBase.d.ts +160 -0
  320. package/build/shared/ResourceBase.d.ts.map +1 -0
  321. package/build/shared/ResourceBase.js +235 -0
  322. package/build/shared/ResourceBase.js.map +1 -0
  323. package/build/shared/ToolBase.d.ts +174 -0
  324. package/build/shared/ToolBase.d.ts.map +1 -0
  325. package/build/shared/ToolBase.js +247 -0
  326. package/build/shared/ToolBase.js.map +1 -0
  327. package/build/shared/clients/fetchClient.d.ts +25 -0
  328. package/build/shared/clients/fetchClient.d.ts.map +1 -0
  329. package/build/shared/clients/fetchClient.js +285 -0
  330. package/build/shared/clients/fetchClient.js.map +1 -0
  331. package/build/shared/clients/index.d.ts +2 -0
  332. package/build/shared/clients/index.d.ts.map +1 -0
  333. package/build/shared/clients/index.js +6 -0
  334. package/build/shared/clients/index.js.map +1 -0
  335. package/build/shared/context/sessionContext.d.ts +40 -0
  336. package/build/shared/context/sessionContext.d.ts.map +1 -0
  337. package/build/shared/context/sessionContext.js +32 -0
  338. package/build/shared/context/sessionContext.js.map +1 -0
  339. package/build/shared/globals/index.d.ts +2 -0
  340. package/build/shared/globals/index.d.ts.map +1 -0
  341. package/build/shared/globals/index.js +2 -0
  342. package/build/shared/globals/index.js.map +1 -0
  343. package/build/shared/helpers/assetsHelpers.d.ts +24 -0
  344. package/build/shared/helpers/assetsHelpers.d.ts.map +1 -0
  345. package/build/shared/helpers/assetsHelpers.js +108 -0
  346. package/build/shared/helpers/assetsHelpers.js.map +1 -0
  347. package/build/shared/helpers/cleanObject.d.ts +6 -0
  348. package/build/shared/helpers/cleanObject.d.ts.map +1 -0
  349. package/build/shared/helpers/cleanObject.js +10 -0
  350. package/build/shared/helpers/cleanObject.js.map +1 -0
  351. package/build/shared/helpers/concurrentBatch.d.ts +95 -0
  352. package/build/shared/helpers/concurrentBatch.d.ts.map +1 -0
  353. package/build/shared/helpers/concurrentBatch.js +94 -0
  354. package/build/shared/helpers/concurrentBatch.js.map +1 -0
  355. package/build/shared/helpers/contentOffloadHelper.d.ts +109 -0
  356. package/build/shared/helpers/contentOffloadHelper.d.ts.map +1 -0
  357. package/build/shared/helpers/contentOffloadHelper.js +162 -0
  358. package/build/shared/helpers/contentOffloadHelper.js.map +1 -0
  359. package/build/shared/helpers/deprecation.d.ts +76 -0
  360. package/build/shared/helpers/deprecation.d.ts.map +1 -0
  361. package/build/shared/helpers/deprecation.js +97 -0
  362. package/build/shared/helpers/deprecation.js.map +1 -0
  363. package/build/shared/helpers/docsDiscovery.d.ts +26 -0
  364. package/build/shared/helpers/docsDiscovery.d.ts.map +1 -0
  365. package/build/shared/helpers/docsDiscovery.js +69 -0
  366. package/build/shared/helpers/docsDiscovery.js.map +1 -0
  367. package/build/shared/helpers/getDocsPath.d.ts +13 -0
  368. package/build/shared/helpers/getDocsPath.d.ts.map +1 -0
  369. package/build/shared/helpers/getDocsPath.js +33 -0
  370. package/build/shared/helpers/getDocsPath.js.map +1 -0
  371. package/build/shared/helpers/getRepositoryOrThrow.d.ts +11 -0
  372. package/build/shared/helpers/getRepositoryOrThrow.d.ts.map +1 -0
  373. package/build/shared/helpers/getRepositoryOrThrow.js +21 -0
  374. package/build/shared/helpers/getRepositoryOrThrow.js.map +1 -0
  375. package/build/shared/helpers/index.d.ts +16 -0
  376. package/build/shared/helpers/index.d.ts.map +1 -0
  377. package/build/shared/helpers/index.js +16 -0
  378. package/build/shared/helpers/index.js.map +1 -0
  379. package/build/shared/helpers/jobManager.d.ts +157 -0
  380. package/build/shared/helpers/jobManager.d.ts.map +1 -0
  381. package/build/shared/helpers/jobManager.js +205 -0
  382. package/build/shared/helpers/jobManager.js.map +1 -0
  383. package/build/shared/helpers/logger.d.ts +19 -0
  384. package/build/shared/helpers/logger.d.ts.map +1 -0
  385. package/build/shared/helpers/logger.js +64 -0
  386. package/build/shared/helpers/logger.js.map +1 -0
  387. package/build/shared/helpers/retryWithBackoff.d.ts +58 -0
  388. package/build/shared/helpers/retryWithBackoff.d.ts.map +1 -0
  389. package/build/shared/helpers/retryWithBackoff.js +78 -0
  390. package/build/shared/helpers/retryWithBackoff.js.map +1 -0
  391. package/build/shared/helpers/slugSchema.d.ts +2 -0
  392. package/build/shared/helpers/slugSchema.d.ts.map +1 -0
  393. package/build/shared/helpers/slugSchema.js +2 -0
  394. package/build/shared/helpers/slugSchema.js.map +1 -0
  395. package/build/shared/helpers/slugify.d.ts +2 -0
  396. package/build/shared/helpers/slugify.d.ts.map +1 -0
  397. package/build/shared/helpers/slugify.js +9 -0
  398. package/build/shared/helpers/slugify.js.map +1 -0
  399. package/build/shared/helpers/templateContentValidator.d.ts +50 -0
  400. package/build/shared/helpers/templateContentValidator.d.ts.map +1 -0
  401. package/build/shared/helpers/templateContentValidator.js +301 -0
  402. package/build/shared/helpers/templateContentValidator.js.map +1 -0
  403. package/build/shared/helpers/truncateContent.d.ts +6 -0
  404. package/build/shared/helpers/truncateContent.d.ts.map +1 -0
  405. package/build/shared/helpers/truncateContent.js +12 -0
  406. package/build/shared/helpers/truncateContent.js.map +1 -0
  407. package/build/shared/index.d.ts +13 -0
  408. package/build/shared/index.d.ts.map +1 -0
  409. package/build/shared/index.js +20 -0
  410. package/build/shared/index.js.map +1 -0
  411. package/build/shared/providers/SinglePlatformProvider.d.ts +13 -0
  412. package/build/shared/providers/SinglePlatformProvider.d.ts.map +1 -0
  413. package/build/shared/providers/SinglePlatformProvider.js +42 -0
  414. package/build/shared/providers/SinglePlatformProvider.js.map +1 -0
  415. package/build/shared/test-utils/index.d.ts +2 -0
  416. package/build/shared/test-utils/index.d.ts.map +1 -0
  417. package/build/shared/test-utils/index.js +2 -0
  418. package/build/shared/test-utils/index.js.map +1 -0
  419. package/build/shared/test-utils/toolTestUtils.d.ts +191 -0
  420. package/build/shared/test-utils/toolTestUtils.d.ts.map +1 -0
  421. package/build/shared/test-utils/toolTestUtils.js +304 -0
  422. package/build/shared/test-utils/toolTestUtils.js.map +1 -0
  423. package/build/shared/tools/index.d.ts +2 -0
  424. package/build/shared/tools/index.d.ts.map +1 -0
  425. package/build/shared/tools/index.js +2 -0
  426. package/build/shared/tools/index.js.map +1 -0
  427. package/build/shared/types/AssetExtensions.d.ts +15 -0
  428. package/build/shared/types/AssetExtensions.d.ts.map +1 -0
  429. package/build/shared/types/AssetExtensions.js +95 -0
  430. package/build/shared/types/AssetExtensions.js.map +1 -0
  431. package/build/shared/types/Logger.d.ts +19 -0
  432. package/build/shared/types/Logger.d.ts.map +1 -0
  433. package/build/shared/types/Logger.js +2 -0
  434. package/build/shared/types/Logger.js.map +1 -0
  435. package/build/shared/types/index.d.ts +8 -0
  436. package/build/shared/types/index.d.ts.map +1 -0
  437. package/build/shared/types/index.js +2 -0
  438. package/build/shared/types/index.js.map +1 -0
  439. package/build/tools/channels/accountTemplates/AccountTemplatesTools.d.ts +2 -0
  440. package/build/tools/channels/accountTemplates/AccountTemplatesTools.d.ts.map +1 -0
  441. package/build/tools/channels/accountTemplates/AccountTemplatesTools.js +5 -0
  442. package/build/tools/channels/accountTemplates/AccountTemplatesTools.js.map +1 -0
  443. package/build/tools/channels/accountTemplates/Manage.d.ts +16 -0
  444. package/build/tools/channels/accountTemplates/Manage.d.ts.map +1 -0
  445. package/build/tools/channels/accountTemplates/Manage.js +221 -0
  446. package/build/tools/channels/accountTemplates/Manage.js.map +1 -0
  447. package/build/tools/channels/download/DownloadTools.d.ts +2 -0
  448. package/build/tools/channels/download/DownloadTools.d.ts.map +1 -0
  449. package/build/tools/channels/download/DownloadTools.js +5 -0
  450. package/build/tools/channels/download/DownloadTools.js.map +1 -0
  451. package/build/tools/channels/download/Manage.d.ts +21 -0
  452. package/build/tools/channels/download/Manage.d.ts.map +1 -0
  453. package/build/tools/channels/download/Manage.js +286 -0
  454. package/build/tools/channels/download/Manage.js.map +1 -0
  455. package/build/tools/channels/download/helpers/types.d.ts +45 -0
  456. package/build/tools/channels/download/helpers/types.d.ts.map +1 -0
  457. package/build/tools/channels/download/helpers/types.js +2 -0
  458. package/build/tools/channels/download/helpers/types.js.map +1 -0
  459. package/build/tools/channels/download/helpers/zipGenerator.d.ts +5 -0
  460. package/build/tools/channels/download/helpers/zipGenerator.d.ts.map +1 -0
  461. package/build/tools/channels/download/helpers/zipGenerator.js +114 -0
  462. package/build/tools/channels/download/helpers/zipGenerator.js.map +1 -0
  463. package/build/tools/channels/globalVariables/GlobalVariablesTools.d.ts +2 -0
  464. package/build/tools/channels/globalVariables/GlobalVariablesTools.d.ts.map +1 -0
  465. package/build/tools/channels/globalVariables/GlobalVariablesTools.js +5 -0
  466. package/build/tools/channels/globalVariables/GlobalVariablesTools.js.map +1 -0
  467. package/build/tools/channels/globalVariables/Manage.d.ts +32 -0
  468. package/build/tools/channels/globalVariables/Manage.d.ts.map +1 -0
  469. package/build/tools/channels/globalVariables/Manage.js +446 -0
  470. package/build/tools/channels/globalVariables/Manage.js.map +1 -0
  471. package/build/tools/channels/locks/LocksTools.d.ts +2 -0
  472. package/build/tools/channels/locks/LocksTools.d.ts.map +1 -0
  473. package/build/tools/channels/locks/LocksTools.js +5 -0
  474. package/build/tools/channels/locks/LocksTools.js.map +1 -0
  475. package/build/tools/channels/locks/Manage.d.ts +18 -0
  476. package/build/tools/channels/locks/Manage.d.ts.map +1 -0
  477. package/build/tools/channels/locks/Manage.js +197 -0
  478. package/build/tools/channels/locks/Manage.js.map +1 -0
  479. package/build/tools/channels/navigation/Copy.d.ts +12 -0
  480. package/build/tools/channels/navigation/Copy.d.ts.map +1 -0
  481. package/build/tools/channels/navigation/Copy.js +226 -0
  482. package/build/tools/channels/navigation/Copy.js.map +1 -0
  483. package/build/tools/channels/navigation/Manage.d.ts +18 -0
  484. package/build/tools/channels/navigation/Manage.d.ts.map +1 -0
  485. package/build/tools/channels/navigation/Manage.js +246 -0
  486. package/build/tools/channels/navigation/Manage.js.map +1 -0
  487. package/build/tools/channels/navigation/ManageItem.d.ts +43 -0
  488. package/build/tools/channels/navigation/ManageItem.d.ts.map +1 -0
  489. package/build/tools/channels/navigation/ManageItem.js +579 -0
  490. package/build/tools/channels/navigation/ManageItem.js.map +1 -0
  491. package/build/tools/channels/navigation/NavigationTools.d.ts +2 -0
  492. package/build/tools/channels/navigation/NavigationTools.d.ts.map +1 -0
  493. package/build/tools/channels/navigation/NavigationTools.js +9 -0
  494. package/build/tools/channels/navigation/NavigationTools.js.map +1 -0
  495. package/build/tools/channels/pages/Copy.d.ts +12 -0
  496. package/build/tools/channels/pages/Copy.d.ts.map +1 -0
  497. package/build/tools/channels/pages/Copy.js +253 -0
  498. package/build/tools/channels/pages/Copy.js.map +1 -0
  499. package/build/tools/channels/pages/Create.d.ts +29 -0
  500. package/build/tools/channels/pages/Create.d.ts.map +1 -0
  501. package/build/tools/channels/pages/Create.js +183 -0
  502. package/build/tools/channels/pages/Create.js.map +1 -0
  503. package/build/tools/channels/pages/Manage.d.ts +53 -0
  504. package/build/tools/channels/pages/Manage.d.ts.map +1 -0
  505. package/build/tools/channels/pages/Manage.js +583 -0
  506. package/build/tools/channels/pages/Manage.js.map +1 -0
  507. package/build/tools/channels/pages/ManageContent.d.ts +26 -0
  508. package/build/tools/channels/pages/ManageContent.d.ts.map +1 -0
  509. package/build/tools/channels/pages/ManageContent.js +294 -0
  510. package/build/tools/channels/pages/ManageContent.js.map +1 -0
  511. package/build/tools/channels/pages/ManageWidget.d.ts +49 -0
  512. package/build/tools/channels/pages/ManageWidget.d.ts.map +1 -0
  513. package/build/tools/channels/pages/ManageWidget.js +478 -0
  514. package/build/tools/channels/pages/ManageWidget.js.map +1 -0
  515. package/build/tools/channels/pages/PagesTools.d.ts +2 -0
  516. package/build/tools/channels/pages/PagesTools.d.ts.map +1 -0
  517. package/build/tools/channels/pages/PagesTools.js +13 -0
  518. package/build/tools/channels/pages/PagesTools.js.map +1 -0
  519. package/build/tools/channels/pages/helpers/categorizeTemplate.d.ts +4 -0
  520. package/build/tools/channels/pages/helpers/categorizeTemplate.d.ts.map +1 -0
  521. package/build/tools/channels/pages/helpers/categorizeTemplate.js +50 -0
  522. package/build/tools/channels/pages/helpers/categorizeTemplate.js.map +1 -0
  523. package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.d.ts +25 -0
  524. package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.d.ts.map +1 -0
  525. package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.js +74 -0
  526. package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.js.map +1 -0
  527. package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.d.ts +17 -0
  528. package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.d.ts.map +1 -0
  529. package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.js +20 -0
  530. package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.js.map +1 -0
  531. package/build/tools/channels/pages/helpers/contentPages/findExistingPage.d.ts +4 -0
  532. package/build/tools/channels/pages/helpers/contentPages/findExistingPage.d.ts.map +1 -0
  533. package/build/tools/channels/pages/helpers/contentPages/findExistingPage.js +31 -0
  534. package/build/tools/channels/pages/helpers/contentPages/findExistingPage.js.map +1 -0
  535. package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.d.ts +17 -0
  536. package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.d.ts.map +1 -0
  537. package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.js +77 -0
  538. package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.js.map +1 -0
  539. package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.d.ts +18 -0
  540. package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.d.ts.map +1 -0
  541. package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.js +38 -0
  542. package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.js.map +1 -0
  543. package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.d.ts +25 -0
  544. package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.d.ts.map +1 -0
  545. package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.js +52 -0
  546. package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.js.map +1 -0
  547. package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.d.ts +14 -0
  548. package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.d.ts.map +1 -0
  549. package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.js +8 -0
  550. package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.js.map +1 -0
  551. package/build/tools/channels/pages/helpers/pageManagement/handleArchive.d.ts +21 -0
  552. package/build/tools/channels/pages/helpers/pageManagement/handleArchive.d.ts.map +1 -0
  553. package/build/tools/channels/pages/helpers/pageManagement/handleArchive.js +38 -0
  554. package/build/tools/channels/pages/helpers/pageManagement/handleArchive.js.map +1 -0
  555. package/build/tools/channels/pages/helpers/pageManagement/handleDelete.d.ts +17 -0
  556. package/build/tools/channels/pages/helpers/pageManagement/handleDelete.d.ts.map +1 -0
  557. package/build/tools/channels/pages/helpers/pageManagement/handleDelete.js +31 -0
  558. package/build/tools/channels/pages/helpers/pageManagement/handleDelete.js.map +1 -0
  559. package/build/tools/channels/pages/helpers/pageManagement/handleList.d.ts +33 -0
  560. package/build/tools/channels/pages/helpers/pageManagement/handleList.d.ts.map +1 -0
  561. package/build/tools/channels/pages/helpers/pageManagement/handleList.js +32 -0
  562. package/build/tools/channels/pages/helpers/pageManagement/handleList.js.map +1 -0
  563. package/build/tools/channels/pages/helpers/pageManagement/handleRestore.d.ts +21 -0
  564. package/build/tools/channels/pages/helpers/pageManagement/handleRestore.d.ts.map +1 -0
  565. package/build/tools/channels/pages/helpers/pageManagement/handleRestore.js +30 -0
  566. package/build/tools/channels/pages/helpers/pageManagement/handleRestore.js.map +1 -0
  567. package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.d.ts +20 -0
  568. package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.d.ts.map +1 -0
  569. package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.js +29 -0
  570. package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.js.map +1 -0
  571. package/build/tools/channels/pages/helpers/pageManagement/resolvePage.d.ts +15 -0
  572. package/build/tools/channels/pages/helpers/pageManagement/resolvePage.d.ts.map +1 -0
  573. package/build/tools/channels/pages/helpers/pageManagement/resolvePage.js +48 -0
  574. package/build/tools/channels/pages/helpers/pageManagement/resolvePage.js.map +1 -0
  575. package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.d.ts +30 -0
  576. package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.d.ts.map +1 -0
  577. package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.js +22 -0
  578. package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.js.map +1 -0
  579. package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.d.ts +41 -0
  580. package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.d.ts.map +1 -0
  581. package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.js +22 -0
  582. package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.js.map +1 -0
  583. package/build/tools/channels/pages/helpers/widgetPages/index.d.ts +6 -0
  584. package/build/tools/channels/pages/helpers/widgetPages/index.d.ts.map +1 -0
  585. package/build/tools/channels/pages/helpers/widgetPages/index.js +6 -0
  586. package/build/tools/channels/pages/helpers/widgetPages/index.js.map +1 -0
  587. package/build/tools/channels/pages/helpers/widgetPages/processWidgets.d.ts +34 -0
  588. package/build/tools/channels/pages/helpers/widgetPages/processWidgets.d.ts.map +1 -0
  589. package/build/tools/channels/pages/helpers/widgetPages/processWidgets.js +95 -0
  590. package/build/tools/channels/pages/helpers/widgetPages/processWidgets.js.map +1 -0
  591. package/build/tools/channels/pages/helpers/widgetPages/publishWidget.d.ts +20 -0
  592. package/build/tools/channels/pages/helpers/widgetPages/publishWidget.d.ts.map +1 -0
  593. package/build/tools/channels/pages/helpers/widgetPages/publishWidget.js +73 -0
  594. package/build/tools/channels/pages/helpers/widgetPages/publishWidget.js.map +1 -0
  595. package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.d.ts +19 -0
  596. package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.d.ts.map +1 -0
  597. package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.js +77 -0
  598. package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.js.map +1 -0
  599. package/build/tools/channels/preview/GeneratePreviewLink.d.ts +23 -0
  600. package/build/tools/channels/preview/GeneratePreviewLink.d.ts.map +1 -0
  601. package/build/tools/channels/preview/GeneratePreviewLink.js +190 -0
  602. package/build/tools/channels/preview/GeneratePreviewLink.js.map +1 -0
  603. package/build/tools/channels/preview/PreviewTools.d.ts +2 -0
  604. package/build/tools/channels/preview/PreviewTools.d.ts.map +1 -0
  605. package/build/tools/channels/preview/PreviewTools.js +5 -0
  606. package/build/tools/channels/preview/PreviewTools.js.map +1 -0
  607. package/build/tools/channels/releases/ReleasesTools.d.ts +2 -0
  608. package/build/tools/channels/releases/ReleasesTools.d.ts.map +1 -0
  609. package/build/tools/channels/releases/ReleasesTools.js +5 -0
  610. package/build/tools/channels/releases/ReleasesTools.js.map +1 -0
  611. package/build/tools/channels/releases/SmartPublish.d.ts +19 -0
  612. package/build/tools/channels/releases/SmartPublish.d.ts.map +1 -0
  613. package/build/tools/channels/releases/SmartPublish.js +681 -0
  614. package/build/tools/channels/releases/SmartPublish.js.map +1 -0
  615. package/build/tools/channels/sites/GetOverview.d.ts +10 -0
  616. package/build/tools/channels/sites/GetOverview.d.ts.map +1 -0
  617. package/build/tools/channels/sites/GetOverview.js +178 -0
  618. package/build/tools/channels/sites/GetOverview.js.map +1 -0
  619. package/build/tools/channels/sites/Manage.d.ts +88 -0
  620. package/build/tools/channels/sites/Manage.d.ts.map +1 -0
  621. package/build/tools/channels/sites/Manage.js +344 -0
  622. package/build/tools/channels/sites/Manage.js.map +1 -0
  623. package/build/tools/channels/sites/SitesTools.d.ts +2 -0
  624. package/build/tools/channels/sites/SitesTools.d.ts.map +1 -0
  625. package/build/tools/channels/sites/SitesTools.js +9 -0
  626. package/build/tools/channels/sites/SitesTools.js.map +1 -0
  627. package/build/tools/channels/sites/assets/Manage.d.ts +30 -0
  628. package/build/tools/channels/sites/assets/Manage.d.ts.map +1 -0
  629. package/build/tools/channels/sites/assets/Manage.js +135 -0
  630. package/build/tools/channels/sites/assets/Manage.js.map +1 -0
  631. package/build/tools/channels/sites/assets/SiteAssetsTools.d.ts +2 -0
  632. package/build/tools/channels/sites/assets/SiteAssetsTools.d.ts.map +1 -0
  633. package/build/tools/channels/sites/assets/SiteAssetsTools.js +5 -0
  634. package/build/tools/channels/sites/assets/SiteAssetsTools.js.map +1 -0
  635. package/build/tools/channels/sites/handlers/cloneHandler.d.ts +14 -0
  636. package/build/tools/channels/sites/handlers/cloneHandler.d.ts.map +1 -0
  637. package/build/tools/channels/sites/handlers/cloneHandler.js +22 -0
  638. package/build/tools/channels/sites/handlers/cloneHandler.js.map +1 -0
  639. package/build/tools/channels/sites/handlers/createStageHandler.d.ts +15 -0
  640. package/build/tools/channels/sites/handlers/createStageHandler.d.ts.map +1 -0
  641. package/build/tools/channels/sites/handlers/createStageHandler.js +23 -0
  642. package/build/tools/channels/sites/handlers/createStageHandler.js.map +1 -0
  643. package/build/tools/channels/sites/handlers/deleteHandler.d.ts +13 -0
  644. package/build/tools/channels/sites/handlers/deleteHandler.d.ts.map +1 -0
  645. package/build/tools/channels/sites/handlers/deleteHandler.js +21 -0
  646. package/build/tools/channels/sites/handlers/deleteHandler.js.map +1 -0
  647. package/build/tools/channels/sites/handlers/index.d.ts +8 -0
  648. package/build/tools/channels/sites/handlers/index.d.ts.map +1 -0
  649. package/build/tools/channels/sites/handlers/index.js +8 -0
  650. package/build/tools/channels/sites/handlers/index.js.map +1 -0
  651. package/build/tools/channels/sites/handlers/listHandler.d.ts +21 -0
  652. package/build/tools/channels/sites/handlers/listHandler.d.ts.map +1 -0
  653. package/build/tools/channels/sites/handlers/listHandler.js +34 -0
  654. package/build/tools/channels/sites/handlers/listHandler.js.map +1 -0
  655. package/build/tools/channels/sites/handlers/listStagesHandler.d.ts +24 -0
  656. package/build/tools/channels/sites/handlers/listStagesHandler.d.ts.map +1 -0
  657. package/build/tools/channels/sites/handlers/listStagesHandler.js +36 -0
  658. package/build/tools/channels/sites/handlers/listStagesHandler.js.map +1 -0
  659. package/build/tools/channels/sites/handlers/manageHandler.d.ts +71 -0
  660. package/build/tools/channels/sites/handlers/manageHandler.d.ts.map +1 -0
  661. package/build/tools/channels/sites/handlers/manageHandler.js +201 -0
  662. package/build/tools/channels/sites/handlers/manageHandler.js.map +1 -0
  663. package/build/tools/channels/sites/handlers/siteResolver.d.ts +33 -0
  664. package/build/tools/channels/sites/handlers/siteResolver.d.ts.map +1 -0
  665. package/build/tools/channels/sites/handlers/siteResolver.js +51 -0
  666. package/build/tools/channels/sites/handlers/siteResolver.js.map +1 -0
  667. package/build/tools/channels/sites/handlers/types.d.ts +13 -0
  668. package/build/tools/channels/sites/handlers/types.d.ts.map +1 -0
  669. package/build/tools/channels/sites/handlers/types.js +2 -0
  670. package/build/tools/channels/sites/handlers/types.js.map +1 -0
  671. package/build/tools/channels/templates/Copy.d.ts +18 -0
  672. package/build/tools/channels/templates/Copy.d.ts.map +1 -0
  673. package/build/tools/channels/templates/Copy.js +192 -0
  674. package/build/tools/channels/templates/Copy.js.map +1 -0
  675. package/build/tools/channels/templates/Find.d.ts +21 -0
  676. package/build/tools/channels/templates/Find.d.ts.map +1 -0
  677. package/build/tools/channels/templates/Find.js +152 -0
  678. package/build/tools/channels/templates/Find.js.map +1 -0
  679. package/build/tools/channels/templates/Manage.d.ts +39 -0
  680. package/build/tools/channels/templates/Manage.d.ts.map +1 -0
  681. package/build/tools/channels/templates/Manage.js +650 -0
  682. package/build/tools/channels/templates/Manage.js.map +1 -0
  683. package/build/tools/channels/templates/Replace.d.ts +2 -0
  684. package/build/tools/channels/templates/Replace.d.ts.map +1 -0
  685. package/build/tools/channels/templates/Replace.js +251 -0
  686. package/build/tools/channels/templates/Replace.js.map +1 -0
  687. package/build/tools/channels/templates/Search.d.ts +2 -0
  688. package/build/tools/channels/templates/Search.d.ts.map +1 -0
  689. package/build/tools/channels/templates/Search.js +183 -0
  690. package/build/tools/channels/templates/Search.js.map +1 -0
  691. package/build/tools/channels/templates/TemplatesTools.d.ts +2 -0
  692. package/build/tools/channels/templates/TemplatesTools.d.ts.map +1 -0
  693. package/build/tools/channels/templates/TemplatesTools.js +15 -0
  694. package/build/tools/channels/templates/TemplatesTools.js.map +1 -0
  695. package/build/tools/channels/templates/UpdateOrCreate.d.ts +31 -0
  696. package/build/tools/channels/templates/UpdateOrCreate.d.ts.map +1 -0
  697. package/build/tools/channels/templates/UpdateOrCreate.js +372 -0
  698. package/build/tools/channels/templates/UpdateOrCreate.js.map +1 -0
  699. package/build/tools/channels/templates/helpers.d.ts +10 -0
  700. package/build/tools/channels/templates/helpers.d.ts.map +1 -0
  701. package/build/tools/channels/templates/helpers.js +39 -0
  702. package/build/tools/channels/templates/helpers.js.map +1 -0
  703. package/build/tools/channels/tools.d.ts +3 -0
  704. package/build/tools/channels/tools.d.ts.map +1 -0
  705. package/build/tools/channels/tools.js +25 -0
  706. package/build/tools/channels/tools.js.map +1 -0
  707. package/build/tools/channels/widgetDefinitions/Copy.d.ts +12 -0
  708. package/build/tools/channels/widgetDefinitions/Copy.d.ts.map +1 -0
  709. package/build/tools/channels/widgetDefinitions/Copy.js +231 -0
  710. package/build/tools/channels/widgetDefinitions/Copy.js.map +1 -0
  711. package/build/tools/channels/widgetDefinitions/Manage.d.ts +28 -0
  712. package/build/tools/channels/widgetDefinitions/Manage.d.ts.map +1 -0
  713. package/build/tools/channels/widgetDefinitions/Manage.js +422 -0
  714. package/build/tools/channels/widgetDefinitions/Manage.js.map +1 -0
  715. package/build/tools/channels/widgetDefinitions/UpdateOrCreate.d.ts +13 -0
  716. package/build/tools/channels/widgetDefinitions/UpdateOrCreate.d.ts.map +1 -0
  717. package/build/tools/channels/widgetDefinitions/UpdateOrCreate.js +137 -0
  718. package/build/tools/channels/widgetDefinitions/UpdateOrCreate.js.map +1 -0
  719. package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.d.ts +2 -0
  720. package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.d.ts.map +1 -0
  721. package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.js +9 -0
  722. package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.js.map +1 -0
  723. package/build/tools/channels/widgets/WidgetsTools.d.ts +2 -0
  724. package/build/tools/channels/widgets/WidgetsTools.d.ts.map +1 -0
  725. package/build/tools/channels/widgets/WidgetsTools.js +4 -0
  726. package/build/tools/channels/widgets/WidgetsTools.js.map +1 -0
  727. package/build/tools/content/assets/AssetExtensions.d.ts +15 -0
  728. package/build/tools/content/assets/AssetExtensions.d.ts.map +1 -0
  729. package/build/tools/content/assets/AssetExtensions.js +95 -0
  730. package/build/tools/content/assets/AssetExtensions.js.map +1 -0
  731. package/build/tools/content/assets/AssetTools.d.ts +2 -0
  732. package/build/tools/content/assets/AssetTools.d.ts.map +1 -0
  733. package/build/tools/content/assets/AssetTools.js +11 -0
  734. package/build/tools/content/assets/AssetTools.js.map +1 -0
  735. package/build/tools/content/assets/BulkCreate.d.ts +24 -0
  736. package/build/tools/content/assets/BulkCreate.d.ts.map +1 -0
  737. package/build/tools/content/assets/BulkCreate.js +136 -0
  738. package/build/tools/content/assets/BulkCreate.js.map +1 -0
  739. package/build/tools/content/assets/Get.d.ts +9 -0
  740. package/build/tools/content/assets/Get.d.ts.map +1 -0
  741. package/build/tools/content/assets/Get.js +36 -0
  742. package/build/tools/content/assets/Get.js.map +1 -0
  743. package/build/tools/content/assets/List.d.ts +20 -0
  744. package/build/tools/content/assets/List.d.ts.map +1 -0
  745. package/build/tools/content/assets/List.js +74 -0
  746. package/build/tools/content/assets/List.js.map +1 -0
  747. package/build/tools/content/assets/Manage.d.ts +31 -0
  748. package/build/tools/content/assets/Manage.d.ts.map +1 -0
  749. package/build/tools/content/assets/Manage.js +321 -0
  750. package/build/tools/content/assets/Manage.js.map +1 -0
  751. package/build/tools/content/categories/CategoriesTools.d.ts +2 -0
  752. package/build/tools/content/categories/CategoriesTools.d.ts.map +1 -0
  753. package/build/tools/content/categories/CategoriesTools.js +9 -0
  754. package/build/tools/content/categories/CategoriesTools.js.map +1 -0
  755. package/build/tools/content/categories/Get.d.ts +9 -0
  756. package/build/tools/content/categories/Get.d.ts.map +1 -0
  757. package/build/tools/content/categories/Get.js +33 -0
  758. package/build/tools/content/categories/Get.js.map +1 -0
  759. package/build/tools/content/categories/List.d.ts +20 -0
  760. package/build/tools/content/categories/List.d.ts.map +1 -0
  761. package/build/tools/content/categories/List.js +71 -0
  762. package/build/tools/content/categories/List.js.map +1 -0
  763. package/build/tools/content/categories/Manage.d.ts +21 -0
  764. package/build/tools/content/categories/Manage.d.ts.map +1 -0
  765. package/build/tools/content/categories/Manage.js +274 -0
  766. package/build/tools/content/categories/Manage.js.map +1 -0
  767. package/build/tools/content/entries/BulkManage.d.ts +23 -0
  768. package/build/tools/content/entries/BulkManage.d.ts.map +1 -0
  769. package/build/tools/content/entries/BulkManage.js +299 -0
  770. package/build/tools/content/entries/BulkManage.js.map +1 -0
  771. package/build/tools/content/entries/EntriesTools.d.ts +2 -0
  772. package/build/tools/content/entries/EntriesTools.d.ts.map +1 -0
  773. package/build/tools/content/entries/EntriesTools.js +13 -0
  774. package/build/tools/content/entries/EntriesTools.js.map +1 -0
  775. package/build/tools/content/entries/FieldsSchema.d.ts +178 -0
  776. package/build/tools/content/entries/FieldsSchema.d.ts.map +1 -0
  777. package/build/tools/content/entries/FieldsSchema.js +277 -0
  778. package/build/tools/content/entries/FieldsSchema.js.map +1 -0
  779. package/build/tools/content/entries/Get.d.ts +10 -0
  780. package/build/tools/content/entries/Get.d.ts.map +1 -0
  781. package/build/tools/content/entries/Get.js +81 -0
  782. package/build/tools/content/entries/Get.js.map +1 -0
  783. package/build/tools/content/entries/List.d.ts +26 -0
  784. package/build/tools/content/entries/List.d.ts.map +1 -0
  785. package/build/tools/content/entries/List.js +78 -0
  786. package/build/tools/content/entries/List.js.map +1 -0
  787. package/build/tools/content/entries/Manage.d.ts +609 -0
  788. package/build/tools/content/entries/Manage.d.ts.map +1 -0
  789. package/build/tools/content/entries/Manage.js +635 -0
  790. package/build/tools/content/entries/Manage.js.map +1 -0
  791. package/build/tools/content/entries/UpdateOrCreate.d.ts +193 -0
  792. package/build/tools/content/entries/UpdateOrCreate.d.ts.map +1 -0
  793. package/build/tools/content/entries/UpdateOrCreate.js +245 -0
  794. package/build/tools/content/entries/UpdateOrCreate.js.map +1 -0
  795. package/build/tools/content/entries/resolveFieldIds.d.ts +17 -0
  796. package/build/tools/content/entries/resolveFieldIds.d.ts.map +1 -0
  797. package/build/tools/content/entries/resolveFieldIds.js +71 -0
  798. package/build/tools/content/entries/resolveFieldIds.js.map +1 -0
  799. package/build/tools/content/helpers/CopyUtils.d.ts +175 -0
  800. package/build/tools/content/helpers/CopyUtils.d.ts.map +1 -0
  801. package/build/tools/content/helpers/CopyUtils.js +430 -0
  802. package/build/tools/content/helpers/CopyUtils.js.map +1 -0
  803. package/build/tools/content/jobs/JobStatus.d.ts +110 -0
  804. package/build/tools/content/jobs/JobStatus.d.ts.map +1 -0
  805. package/build/tools/content/jobs/JobStatus.js +139 -0
  806. package/build/tools/content/jobs/JobStatus.js.map +1 -0
  807. package/build/tools/content/jobs/JobsTools.d.ts +2 -0
  808. package/build/tools/content/jobs/JobsTools.d.ts.map +1 -0
  809. package/build/tools/content/jobs/JobsTools.js +7 -0
  810. package/build/tools/content/jobs/JobsTools.js.map +1 -0
  811. package/build/tools/content/spaces/Copy.d.ts +16 -0
  812. package/build/tools/content/spaces/Copy.d.ts.map +1 -0
  813. package/build/tools/content/spaces/Copy.js +804 -0
  814. package/build/tools/content/spaces/Copy.js.map +1 -0
  815. package/build/tools/content/spaces/Get.d.ts +8 -0
  816. package/build/tools/content/spaces/Get.d.ts.map +1 -0
  817. package/build/tools/content/spaces/Get.js +43 -0
  818. package/build/tools/content/spaces/Get.js.map +1 -0
  819. package/build/tools/content/spaces/List.d.ts +20 -0
  820. package/build/tools/content/spaces/List.d.ts.map +1 -0
  821. package/build/tools/content/spaces/List.js +76 -0
  822. package/build/tools/content/spaces/List.js.map +1 -0
  823. package/build/tools/content/spaces/Manage.d.ts +34 -0
  824. package/build/tools/content/spaces/Manage.d.ts.map +1 -0
  825. package/build/tools/content/spaces/Manage.js +406 -0
  826. package/build/tools/content/spaces/Manage.js.map +1 -0
  827. package/build/tools/content/spaces/SpacesTools.d.ts +2 -0
  828. package/build/tools/content/spaces/SpacesTools.d.ts.map +1 -0
  829. package/build/tools/content/spaces/SpacesTools.js +11 -0
  830. package/build/tools/content/spaces/SpacesTools.js.map +1 -0
  831. package/build/tools/content/tools.d.ts +3 -0
  832. package/build/tools/content/tools.d.ts.map +1 -0
  833. package/build/tools/content/tools.js +15 -0
  834. package/build/tools/content/tools.js.map +1 -0
  835. package/build/tools/content/types/Copy.d.ts +14 -0
  836. package/build/tools/content/types/Copy.d.ts.map +1 -0
  837. package/build/tools/content/types/Copy.js +398 -0
  838. package/build/tools/content/types/Copy.js.map +1 -0
  839. package/build/tools/content/types/FieldsSchema.d.ts +491 -0
  840. package/build/tools/content/types/FieldsSchema.d.ts.map +1 -0
  841. package/build/tools/content/types/FieldsSchema.js +1229 -0
  842. package/build/tools/content/types/FieldsSchema.js.map +1 -0
  843. package/build/tools/content/types/Get.d.ts +9 -0
  844. package/build/tools/content/types/Get.d.ts.map +1 -0
  845. package/build/tools/content/types/Get.js +35 -0
  846. package/build/tools/content/types/Get.js.map +1 -0
  847. package/build/tools/content/types/List.d.ts +24 -0
  848. package/build/tools/content/types/List.d.ts.map +1 -0
  849. package/build/tools/content/types/List.js +68 -0
  850. package/build/tools/content/types/List.js.map +1 -0
  851. package/build/tools/content/types/Manage.d.ts +1003 -0
  852. package/build/tools/content/types/Manage.d.ts.map +1 -0
  853. package/build/tools/content/types/Manage.js +402 -0
  854. package/build/tools/content/types/Manage.js.map +1 -0
  855. package/build/tools/content/types/TypesTools.d.ts +2 -0
  856. package/build/tools/content/types/TypesTools.d.ts.map +1 -0
  857. package/build/tools/content/types/TypesTools.js +13 -0
  858. package/build/tools/content/types/TypesTools.js.map +1 -0
  859. package/build/tools/content/types/UpdateOrCreate.d.ts +501 -0
  860. package/build/tools/content/types/UpdateOrCreate.d.ts.map +1 -0
  861. package/build/tools/content/types/UpdateOrCreate.js +123 -0
  862. package/build/tools/content/types/UpdateOrCreate.js.map +1 -0
  863. package/build/tools/core/groups/GroupsTools.d.ts +2 -0
  864. package/build/tools/core/groups/GroupsTools.d.ts.map +1 -0
  865. package/build/tools/core/groups/GroupsTools.js +7 -0
  866. package/build/tools/core/groups/GroupsTools.js.map +1 -0
  867. package/build/tools/core/groups/Manage.d.ts +36 -0
  868. package/build/tools/core/groups/Manage.d.ts.map +1 -0
  869. package/build/tools/core/groups/Manage.js +479 -0
  870. package/build/tools/core/groups/Manage.js.map +1 -0
  871. package/build/tools/core/groups/UpdateOrCreate.d.ts +12 -0
  872. package/build/tools/core/groups/UpdateOrCreate.d.ts.map +1 -0
  873. package/build/tools/core/groups/UpdateOrCreate.js +155 -0
  874. package/build/tools/core/groups/UpdateOrCreate.js.map +1 -0
  875. package/build/tools/core/roles/Create.d.ts +15 -0
  876. package/build/tools/core/roles/Create.d.ts.map +1 -0
  877. package/build/tools/core/roles/Create.js +82 -0
  878. package/build/tools/core/roles/Create.js.map +1 -0
  879. package/build/tools/core/roles/List.d.ts +13 -0
  880. package/build/tools/core/roles/List.d.ts.map +1 -0
  881. package/build/tools/core/roles/List.js +61 -0
  882. package/build/tools/core/roles/List.js.map +1 -0
  883. package/build/tools/core/roles/RolesTools.d.ts +2 -0
  884. package/build/tools/core/roles/RolesTools.d.ts.map +1 -0
  885. package/build/tools/core/roles/RolesTools.js +7 -0
  886. package/build/tools/core/roles/RolesTools.js.map +1 -0
  887. package/build/tools/core/settings/Manage.d.ts +52 -0
  888. package/build/tools/core/settings/Manage.d.ts.map +1 -0
  889. package/build/tools/core/settings/Manage.js +402 -0
  890. package/build/tools/core/settings/Manage.js.map +1 -0
  891. package/build/tools/core/settings/SettingsTools.d.ts +2 -0
  892. package/build/tools/core/settings/SettingsTools.d.ts.map +1 -0
  893. package/build/tools/core/settings/SettingsTools.js +5 -0
  894. package/build/tools/core/settings/SettingsTools.js.map +1 -0
  895. package/build/tools/core/team/BulkManage.d.ts +19 -0
  896. package/build/tools/core/team/BulkManage.d.ts.map +1 -0
  897. package/build/tools/core/team/BulkManage.js +265 -0
  898. package/build/tools/core/team/BulkManage.js.map +1 -0
  899. package/build/tools/core/team/Manage.d.ts +36 -0
  900. package/build/tools/core/team/Manage.d.ts.map +1 -0
  901. package/build/tools/core/team/Manage.js +469 -0
  902. package/build/tools/core/team/Manage.js.map +1 -0
  903. package/build/tools/core/team/TeamTools.d.ts +2 -0
  904. package/build/tools/core/team/TeamTools.d.ts.map +1 -0
  905. package/build/tools/core/team/TeamTools.js +9 -0
  906. package/build/tools/core/team/TeamTools.js.map +1 -0
  907. package/build/tools/core/team/UpdateOrCreate.d.ts +17 -0
  908. package/build/tools/core/team/UpdateOrCreate.d.ts.map +1 -0
  909. package/build/tools/core/team/UpdateOrCreate.js +149 -0
  910. package/build/tools/core/team/UpdateOrCreate.js.map +1 -0
  911. package/build/tools/core/teamMembers/Manage.d.ts +28 -0
  912. package/build/tools/core/teamMembers/Manage.d.ts.map +1 -0
  913. package/build/tools/core/teamMembers/Manage.js +317 -0
  914. package/build/tools/core/teamMembers/Manage.js.map +1 -0
  915. package/build/tools/core/teamMembers/TeamMembersTools.d.ts +2 -0
  916. package/build/tools/core/teamMembers/TeamMembersTools.d.ts.map +1 -0
  917. package/build/tools/core/teamMembers/TeamMembersTools.js +5 -0
  918. package/build/tools/core/teamMembers/TeamMembersTools.js.map +1 -0
  919. package/build/tools/core/tools.d.ts +3 -0
  920. package/build/tools/core/tools.d.ts.map +1 -0
  921. package/build/tools/core/tools.js +13 -0
  922. package/build/tools/core/tools.js.map +1 -0
  923. package/build/tools/customers/forms/FormsCopy.d.ts +15 -0
  924. package/build/tools/customers/forms/FormsCopy.d.ts.map +1 -0
  925. package/build/tools/customers/forms/FormsCopy.js +404 -0
  926. package/build/tools/customers/forms/FormsCopy.js.map +1 -0
  927. package/build/tools/customers/forms/FormsManage.d.ts +75 -0
  928. package/build/tools/customers/forms/FormsManage.d.ts.map +1 -0
  929. package/build/tools/customers/forms/FormsManage.js +413 -0
  930. package/build/tools/customers/forms/FormsManage.js.map +1 -0
  931. package/build/tools/customers/forms/FormsTools.d.ts +2 -0
  932. package/build/tools/customers/forms/FormsTools.d.ts.map +1 -0
  933. package/build/tools/customers/forms/FormsTools.js +7 -0
  934. package/build/tools/customers/forms/FormsTools.js.map +1 -0
  935. package/build/tools/customers/originations/Manage.d.ts +36 -0
  936. package/build/tools/customers/originations/Manage.d.ts.map +1 -0
  937. package/build/tools/customers/originations/Manage.js +471 -0
  938. package/build/tools/customers/originations/Manage.js.map +1 -0
  939. package/build/tools/customers/originations/OriginationsTools.d.ts +2 -0
  940. package/build/tools/customers/originations/OriginationsTools.d.ts.map +1 -0
  941. package/build/tools/customers/originations/OriginationsTools.js +13 -0
  942. package/build/tools/customers/originations/OriginationsTools.js.map +1 -0
  943. package/build/tools/customers/originations/RulesManage.d.ts +527 -0
  944. package/build/tools/customers/originations/RulesManage.d.ts.map +1 -0
  945. package/build/tools/customers/originations/RulesManage.js +283 -0
  946. package/build/tools/customers/originations/RulesManage.js.map +1 -0
  947. package/build/tools/customers/originations/StepClone.d.ts +63 -0
  948. package/build/tools/customers/originations/StepClone.d.ts.map +1 -0
  949. package/build/tools/customers/originations/StepClone.js +340 -0
  950. package/build/tools/customers/originations/StepClone.js.map +1 -0
  951. package/build/tools/customers/originations/StepManage.d.ts +357 -0
  952. package/build/tools/customers/originations/StepManage.d.ts.map +1 -0
  953. package/build/tools/customers/originations/StepManage.js +407 -0
  954. package/build/tools/customers/originations/StepManage.js.map +1 -0
  955. package/build/tools/customers/originations/ValidateStructure.d.ts +43 -0
  956. package/build/tools/customers/originations/ValidateStructure.d.ts.map +1 -0
  957. package/build/tools/customers/originations/ValidateStructure.js +74 -0
  958. package/build/tools/customers/originations/ValidateStructure.js.map +1 -0
  959. package/build/tools/customers/realms/Manage.d.ts +48 -0
  960. package/build/tools/customers/realms/Manage.d.ts.map +1 -0
  961. package/build/tools/customers/realms/Manage.js +421 -0
  962. package/build/tools/customers/realms/Manage.js.map +1 -0
  963. package/build/tools/customers/realms/RealmsTools.d.ts +2 -0
  964. package/build/tools/customers/realms/RealmsTools.d.ts.map +1 -0
  965. package/build/tools/customers/realms/RealmsTools.js +5 -0
  966. package/build/tools/customers/realms/RealmsTools.js.map +1 -0
  967. package/build/tools/customers/segments/SegmentsManage.d.ts +44 -0
  968. package/build/tools/customers/segments/SegmentsManage.d.ts.map +1 -0
  969. package/build/tools/customers/segments/SegmentsManage.js +353 -0
  970. package/build/tools/customers/segments/SegmentsManage.js.map +1 -0
  971. package/build/tools/customers/segments/SegmentsTools.d.ts +2 -0
  972. package/build/tools/customers/segments/SegmentsTools.d.ts.map +1 -0
  973. package/build/tools/customers/segments/SegmentsTools.js +5 -0
  974. package/build/tools/customers/segments/SegmentsTools.js.map +1 -0
  975. package/build/tools/customers/settings/DataSetsCopy.d.ts +12 -0
  976. package/build/tools/customers/settings/DataSetsCopy.d.ts.map +1 -0
  977. package/build/tools/customers/settings/DataSetsCopy.js +175 -0
  978. package/build/tools/customers/settings/DataSetsCopy.js.map +1 -0
  979. package/build/tools/customers/settings/DataSetsManage.d.ts +29 -0
  980. package/build/tools/customers/settings/DataSetsManage.d.ts.map +1 -0
  981. package/build/tools/customers/settings/DataSetsManage.js +255 -0
  982. package/build/tools/customers/settings/DataSetsManage.js.map +1 -0
  983. package/build/tools/customers/settings/SettingsTools.d.ts +2 -0
  984. package/build/tools/customers/settings/SettingsTools.d.ts.map +1 -0
  985. package/build/tools/customers/settings/SettingsTools.js +7 -0
  986. package/build/tools/customers/settings/SettingsTools.js.map +1 -0
  987. package/build/tools/customers/submissions/BulkManage.d.ts +27 -0
  988. package/build/tools/customers/submissions/BulkManage.d.ts.map +1 -0
  989. package/build/tools/customers/submissions/BulkManage.js +367 -0
  990. package/build/tools/customers/submissions/BulkManage.js.map +1 -0
  991. package/build/tools/customers/submissions/Manage.d.ts +30 -0
  992. package/build/tools/customers/submissions/Manage.d.ts.map +1 -0
  993. package/build/tools/customers/submissions/Manage.js +374 -0
  994. package/build/tools/customers/submissions/Manage.js.map +1 -0
  995. package/build/tools/customers/submissions/submissionsTools.d.ts +2 -0
  996. package/build/tools/customers/submissions/submissionsTools.d.ts.map +1 -0
  997. package/build/tools/customers/submissions/submissionsTools.js +7 -0
  998. package/build/tools/customers/submissions/submissionsTools.js.map +1 -0
  999. package/build/tools/customers/tools.d.ts +3 -0
  1000. package/build/tools/customers/tools.d.ts.map +1 -0
  1001. package/build/tools/customers/tools.js +17 -0
  1002. package/build/tools/customers/tools.js.map +1 -0
  1003. package/build/tools/customers/users/BulkManageUsers.d.ts +36 -0
  1004. package/build/tools/customers/users/BulkManageUsers.d.ts.map +1 -0
  1005. package/build/tools/customers/users/BulkManageUsers.js +253 -0
  1006. package/build/tools/customers/users/BulkManageUsers.js.map +1 -0
  1007. package/build/tools/customers/users/ListRealmUsers.d.ts +19 -0
  1008. package/build/tools/customers/users/ListRealmUsers.d.ts.map +1 -0
  1009. package/build/tools/customers/users/ListRealmUsers.js +109 -0
  1010. package/build/tools/customers/users/ListRealmUsers.js.map +1 -0
  1011. package/build/tools/customers/users/ManageUser.d.ts +33 -0
  1012. package/build/tools/customers/users/ManageUser.d.ts.map +1 -0
  1013. package/build/tools/customers/users/ManageUser.js +277 -0
  1014. package/build/tools/customers/users/ManageUser.js.map +1 -0
  1015. package/build/tools/customers/users/UsersTools.d.ts +2 -0
  1016. package/build/tools/customers/users/UsersTools.d.ts.map +1 -0
  1017. package/build/tools/customers/users/UsersTools.js +9 -0
  1018. package/build/tools/customers/users/UsersTools.js.map +1 -0
  1019. package/build/tools/tools.d.ts +3 -0
  1020. package/build/tools/tools.d.ts.map +1 -0
  1021. package/build/tools/tools.js +70 -0
  1022. package/build/tools/tools.js.map +1 -0
  1023. package/docs/INDEX.md +72 -0
  1024. package/docs/channels/best-practices.md +149 -0
  1025. package/docs/channels/css-js/organization.md +529 -0
  1026. package/docs/channels/css-js/templates.md +464 -0
  1027. package/docs/channels/liquid/best-practices.md +471 -0
  1028. package/docs/channels/liquid/context-reference.md +332 -0
  1029. package/docs/channels/liquid/drops-and-filters.md +839 -0
  1030. package/docs/channels/liquid/field-access.md +340 -0
  1031. package/docs/channels/page-types.md +495 -0
  1032. package/docs/channels/publishing-strategies.md +703 -0
  1033. package/docs/channels/publishing-workflow.md +470 -0
  1034. package/docs/channels/site-architecture.md +246 -0
  1035. package/docs/channels/site-components.md +917 -0
  1036. package/docs/channels/site-patterns.md +707 -0
  1037. package/docs/channels/site-setup-checklist.md +42 -0
  1038. package/docs/channels/snippets/content-access.md +541 -0
  1039. package/docs/channels/snippets/layouts.md +449 -0
  1040. package/docs/channels/snippets/liquid-drops.md +1019 -0
  1041. package/docs/channels/snippets/overview.md +631 -0
  1042. package/docs/channels/templates/status-guide.md +621 -0
  1043. package/docs/channels/templates/status-operations.md +403 -0
  1044. package/docs/channels/templates/workflows.md +628 -0
  1045. package/docs/channels/versioning-system.md +554 -0
  1046. package/docs/development/e2e-test-guide.md +128 -0
  1047. package/docs/development/mcp-overview.md +269 -0
  1048. package/docs/development/test-utilities.md +85 -0
  1049. package/docs/development/tool-patterns.md +102 -0
  1050. package/docs/platform/api-quirks.md +87 -0
  1051. package/docs/platform/architecture.md +70 -0
  1052. package/docs/platform/channels.md +93 -0
  1053. package/docs/platform/content.md +76 -0
  1054. package/docs/platform/core.md +54 -0
  1055. package/docs/platform/customers.md +72 -0
  1056. package/docs/tools/CLAUDE.md +358 -0
  1057. package/docs/tools/PAGE_PARAMETERS_EXPLAINED.md +255 -0
  1058. package/docs/tools/PAGE_WIDGET_TOOLS.md +468 -0
  1059. package/docs/tools/RELEASE_TOOLS.md +263 -0
  1060. package/docs/tools/TOOLS_SUMMARY.md +368 -0
  1061. package/docs/tools/WIDGET_TOOLS.md +374 -0
  1062. package/docs/tools/channels/pages/page-create.md +328 -0
  1063. package/docs/tools/channels/sites/site-create.md +280 -0
  1064. package/docs/tools/channels/templates/template-list-snippets.md +320 -0
  1065. package/docs/widgets/platform/development.md +744 -0
  1066. package/docs/widgets/platform/editing-published.md +483 -0
  1067. package/docs/widgets/platform/workflows.md +603 -0
  1068. package/docs/workflows/published-page-deletion.md +366 -0
  1069. package/package.json +87 -0
@@ -0,0 +1,550 @@
1
+ import { FetchRepositoryBase } from "../../../shared/index.js";
2
+ /**
3
+ * Repository for managing Content API entries
4
+ *
5
+ * Handles CRUD operations and bulk actions for content entries within spaces.
6
+ * Entries are content instances of a specific content type (e.g., blog posts, products).
7
+ */
8
+ export class EntriesRepository extends FetchRepositoryBase {
9
+ /**
10
+ * Bulk deletes multiple entries by UUID
11
+ *
12
+ * Permanently deletes multiple entries in a single operation.
13
+ * This operation is irreversible.
14
+ *
15
+ * Important notes:
16
+ * - Entries must be unpublished before deletion
17
+ * - Uses entry UUIDs (not IDs) for identification
18
+ * - Target locale defaults to 'en'
19
+ *
20
+ * @param spaceId - The ID of the space containing the entries
21
+ * @param entries - Array of entry UUIDs to delete
22
+ * @returns Promise resolving when bulk deletion completes
23
+ * @throws Error if entries are published, not found, API request fails, or authentication is invalid
24
+ */
25
+ async bulkDeleteEntries(spaceId, entries, locale = "en") {
26
+ try {
27
+ return await this.fetchClient.delete(`/content/spaces/${spaceId}/entries/bulk`, {}, {
28
+ filters: {},
29
+ target_locale: locale,
30
+ uuid: entries,
31
+ });
32
+ }
33
+ catch (error) {
34
+ this.logger("Failed to bulk delete entries", {
35
+ spaceId,
36
+ entryCount: entries.length,
37
+ error,
38
+ }, "error");
39
+ throw new Error(`Failed to bulk delete ${entries.length} entries from space ${spaceId}: ${error.message}`);
40
+ }
41
+ }
42
+ /**
43
+ * Performs bulk actions on multiple entries
44
+ *
45
+ * Executes a single action (archive, delete, publish, unpublish) on multiple entries.
46
+ * More efficient than individual operations for large batches.
47
+ *
48
+ * Supported actions:
49
+ * - 'archive': Archives entries (step before delete for published entries)
50
+ * - 'delete': Permanently deletes entries (must be unpublished first)
51
+ * - 'publish': Publishes entries to live site
52
+ * - 'unpublish': Removes entries from live site
53
+ *
54
+ * Important notes:
55
+ * - Archive is required before deleting published entries
56
+ * - Returns success/failure status for each entry
57
+ *
58
+ * @param spaceId - The ID of the space containing the entries
59
+ * @param entries - Array of entry UUIDs to process
60
+ * @param bulk_action - Action to perform ('archive', 'delete', 'publish', 'unpublish')
61
+ * @param target_locale - Target locale for the operation (defaults to 'en')
62
+ * @returns Promise resolving to operation results with per-entry status
63
+ * @throws Error if action fails, entries not found, API request fails, or authentication is invalid
64
+ */
65
+ async bulkActionEntry(spaceId, entries, bulk_action, target_locale = "en") {
66
+ try {
67
+ return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/bulk`, {
68
+ filters: {},
69
+ target_locale,
70
+ uuid: entries,
71
+ }, {
72
+ queryParams: {
73
+ bulk_action,
74
+ },
75
+ });
76
+ }
77
+ catch (error) {
78
+ this.logger(`Failed to bulk ${bulk_action} entries`, {
79
+ spaceId,
80
+ entryCount: entries.length,
81
+ bulk_action,
82
+ target_locale,
83
+ error,
84
+ }, "error");
85
+ throw new Error(`Failed to bulk ${bulk_action} ${entries.length} entries in space ${spaceId}: ${error.message}`);
86
+ }
87
+ }
88
+ /**
89
+ * Archives an entry workflow
90
+ *
91
+ * Archives the workflow associated with an entry. This is required before
92
+ * deleting published entries.
93
+ *
94
+ * Workflow for deleting published entries:
95
+ * 1. Unpublish entry (via bulkActionEntry with 'unpublish')
96
+ * 2. Archive workflow (this method)
97
+ * 3. Delete entry (via bulkActionEntry with 'delete' or deleteEntry)
98
+ *
99
+ * @param spaceId - The ID of the space containing the entry
100
+ * @param workflowId - The ID of the workflow to archive
101
+ * @returns Promise resolving to archive confirmation
102
+ * @throws Error if workflow not found, already archived, API request fails, or authentication is invalid
103
+ */
104
+ async archiveEntry(spaceId, workflowId) {
105
+ try {
106
+ return await this.fetchClient.post(`/workflows/${workflowId}/archive`, {
107
+ app_id: spaceId,
108
+ app_type: "space",
109
+ });
110
+ }
111
+ catch (error) {
112
+ this.logger("Failed to archive entry workflow", {
113
+ spaceId,
114
+ workflowId,
115
+ error,
116
+ }, "error");
117
+ throw new Error(`Failed to archive workflow ${workflowId} for space ${spaceId}: ${error.message}`);
118
+ }
119
+ }
120
+ /**
121
+ * Creates a new content entry
122
+ *
123
+ * Creates a new entry instance of a specific content type within a space.
124
+ * Entry is created as a draft and must be published separately.
125
+ *
126
+ * Important notes:
127
+ * - Entry structure must match content type field definitions
128
+ * - All required fields from content type must be provided
129
+ * - Entry created in default locale (usually 'en')
130
+ * - Use content type slug or UUID for type_uid
131
+ *
132
+ * @param spaceId - The ID of the space to create entry in
133
+ * @param entry - Entry creation data
134
+ * @param entry.type_uid - Content type slug or UUID
135
+ * @param entry.fields - Entry field values matching content type schema
136
+ * @param entry.locale - Entry locale (default: 'en')
137
+ * @returns Promise resolving to created entry data with UUID and workflow info
138
+ * @throws Error if validation fails, type not found, API request fails, or authentication is invalid
139
+ */
140
+ async createEntry(spaceId, entry, targetLocale) {
141
+ if (targetLocale) {
142
+ return this.fetchClient.post(`/content/spaces/${spaceId}/entries`, entry, {
143
+ queryParams: {
144
+ target_locale: targetLocale,
145
+ },
146
+ });
147
+ }
148
+ return this.create(`/content/spaces/${spaceId}/entries`, entry);
149
+ }
150
+ /**
151
+ * Permanently deletes a single entry
152
+ *
153
+ * Important restrictions:
154
+ * - Entry must be unpublished before deletion
155
+ * - Deletion is permanent and cannot be undone
156
+ * - Use bulkDeleteEntries for deleting multiple entries
157
+ *
158
+ * @param spaceId - The ID of the space containing the entry
159
+ * @param entryId - The ID of the entry to delete
160
+ * @returns Promise resolving when deletion completes
161
+ * @throws Error if entry is published, not found, API request fails, or authentication is invalid
162
+ */
163
+ async deleteEntry(spaceId, entryId) {
164
+ try {
165
+ return await this.delete(`/content/spaces/${spaceId}/entries`, entryId);
166
+ }
167
+ catch (error) {
168
+ this.logger("Failed to delete entry", {
169
+ spaceId,
170
+ entryId,
171
+ error,
172
+ }, "error");
173
+ throw new Error(`Failed to delete entry ${entryId} from space ${spaceId}: ${error.message}`);
174
+ }
175
+ }
176
+ /**
177
+ * Retrieves a single entry by ID
178
+ *
179
+ * Returns complete entry data including all field values, workflow status,
180
+ * and metadata.
181
+ *
182
+ * @param spaceId - The ID of the space containing the entry
183
+ * @param entryId - The numeric ID of the entry to retrieve
184
+ * @returns Promise resolving to entry data with all fields and metadata
185
+ * @throws Error if entry not found, API request fails, or authentication is invalid
186
+ */
187
+ async getEntry(spaceId, entryId, targetLocale) {
188
+ if (targetLocale) {
189
+ return this.fetchClient.get(`/content/spaces/${spaceId}/entries/${entryId}`, {
190
+ queryParams: {
191
+ target_locale: targetLocale,
192
+ },
193
+ });
194
+ }
195
+ return this.getById(`/content/spaces/${spaceId}/entries`, entryId);
196
+ }
197
+ /**
198
+ * Fetches a PUBLISHED entry from the Content API (public endpoint)
199
+ *
200
+ * The Content API returns complete entry data including field_values,
201
+ * unlike the Admin API which may return empty field_values.
202
+ *
203
+ * Important: This only works for PUBLISHED entries.
204
+ *
205
+ * @param spaceUid - The UID (not ID) of the space
206
+ * @param typeUid - The UID (not ID) of the content type
207
+ * @param entryUuid - The UUID (not ID) of the entry
208
+ * @returns Promise resolving to complete entry data with all field values
209
+ * @throws Error if entry is not published or not found
210
+ */
211
+ async getPublishedEntry(spaceUid, typeUid, entryUuid) {
212
+ // Content API uses /api/content (not /api/admin/content)
213
+ // and requires UIDs/UUIDs instead of IDs
214
+ return this.fetchClient.get(`/content/spaces/${spaceUid}/types/${typeUid}/entries/${entryUuid}`);
215
+ }
216
+ /**
217
+ * Gets a published entry's numeric ID by looking it up via the Admin API's
218
+ * UID-based endpoint, which can return published-only entries.
219
+ *
220
+ * Uses the same path as getPublishedEntry but extracts the numeric ID
221
+ * from the response (Admin API variant returns id field).
222
+ *
223
+ * @param spaceUid - The UID of the space
224
+ * @param typeUid - The UID of the content type
225
+ * @param entryUuid - The UUID of the entry
226
+ * @returns The numeric entry ID, or undefined if not found or no id in response
227
+ */
228
+ async getPublishedEntryId(spaceUid, typeUid, entryUuid) {
229
+ try {
230
+ const entry = await this.getPublishedEntry(spaceUid, typeUid, entryUuid);
231
+ // Admin API response may include id directly or nested in meta
232
+ return entry?.id ?? entry?.meta?.id;
233
+ }
234
+ catch (error) {
235
+ this.logger("Failed to resolve published entry ID", {
236
+ spaceUid,
237
+ typeUid,
238
+ entryUuid,
239
+ error,
240
+ }, "error");
241
+ return undefined;
242
+ }
243
+ }
244
+ /**
245
+ * Searches for a published entry by slug using the public Content API.
246
+ *
247
+ * The Admin API list endpoint does not return published-only entries
248
+ * (entries without a pending draft version). The Content API at
249
+ * /api/content always returns published entries and supports meta.slug filter.
250
+ *
251
+ * @param spaceUid - The UID (not ID) of the space
252
+ * @param typeUid - The UID (not ID) of the content type
253
+ * @param slug - The slug to search for
254
+ * @returns The entry's UUID if found, undefined otherwise
255
+ */
256
+ async findPublishedEntryUuidBySlug(spaceUid, typeUid, slug) {
257
+ try {
258
+ const url = `${this.modyoBaseUrl}/api/content/spaces/${spaceUid}/types/${typeUid}/entries`;
259
+ const data = await this.fetchClient.get(url, {
260
+ queryParams: {
261
+ "meta.slug": slug,
262
+ },
263
+ });
264
+ const entry = data.entries?.find((e) => e.meta?.slug === slug);
265
+ return entry?.meta?.uuid;
266
+ }
267
+ catch {
268
+ return undefined;
269
+ }
270
+ }
271
+ /**
272
+ * Retrieves a paginated list of entries for a space
273
+ *
274
+ * Supports filtering, sorting, and pagination for efficient data retrieval.
275
+ *
276
+ * @param spaceId - The ID of the space to list entries from
277
+ * @param queryParams - Optional query parameters
278
+ * @param queryParams.type - Filter by content type slug or UUID
279
+ * @param queryParams.category - Filter by category slug
280
+ * @param queryParams.locale - Filter by locale (default: 'en')
281
+ * @param queryParams.query - Search query string
282
+ * @param queryParams.page - Page number for pagination (default: 1)
283
+ * @param queryParams.per_page - Items per page (default: 15)
284
+ * @param queryParams.sort_by - Field to sort by
285
+ * @param queryParams.order - Sort order ('asc' or 'desc')
286
+ * @returns Promise resolving to paginated list of entries with metadata
287
+ * @throws Error if API request fails or authentication is invalid
288
+ */
289
+ async getEntries(spaceId, queryParams, targetLocale) {
290
+ const params = targetLocale
291
+ ? {
292
+ ...queryParams,
293
+ target_locale: targetLocale,
294
+ }
295
+ : queryParams;
296
+ return this.list(`/content/spaces/${spaceId}/entries`, params);
297
+ }
298
+ /**
299
+ * Updates an existing entry
300
+ *
301
+ * Partial updates supported - only include fields to change.
302
+ * Updated entry remains in current workflow state (draft/published).
303
+ *
304
+ * Important notes:
305
+ * - Only mutable fields can be updated
306
+ * - System fields (id, uuid, created_at) are read-only
307
+ * - Updating published entry creates a new draft version
308
+ *
309
+ * @param spaceId - The ID of the space containing the entry
310
+ * @param entryId - The ID of the entry to update
311
+ * @param entry - Entry update data (partial)
312
+ * @param entry.fields - Field values to update
313
+ * @param entry.category - Updated category slug
314
+ * @param entry.tags - Updated tags array
315
+ * @returns Promise resolving to updated entry data
316
+ * @throws Error if validation fails, entry not found, API request fails, or authentication is invalid
317
+ */
318
+ async updateEntry(spaceId, entryId, entry, targetLocale) {
319
+ if (targetLocale) {
320
+ return this.fetchClient.put(`/content/spaces/${spaceId}/entries/${entryId}`, entry, {
321
+ queryParams: {
322
+ target_locale: targetLocale,
323
+ },
324
+ });
325
+ }
326
+ return this.update(`/content/spaces/${spaceId}/entries`, entryId, entry);
327
+ }
328
+ /**
329
+ * Publishes a single entry to the live site
330
+ *
331
+ * Makes the entry content visible on the public API.
332
+ * Entry ID may change after publishing - use UUID for stable references.
333
+ *
334
+ * Important notes:
335
+ * - Entry must have all required fields filled
336
+ * - Entry ID may change after publishing
337
+ * - UUID remains stable across publish cycles
338
+ *
339
+ * @param spaceId - The ID of the space containing the entry
340
+ * @param entryId - The ID of the entry to publish
341
+ * @param options - Optional publish options
342
+ * @param options.publish_at - ISO date string for scheduled publish (empty for immediate)
343
+ * @param options.unpublish_at - ISO date string for scheduled unpublish
344
+ * @param options.force_publish - Force publish even if validation warnings exist
345
+ * @returns Promise resolving to published entry data
346
+ * @throws Error if entry not found, validation fails, API request fails, or authentication is invalid
347
+ */
348
+ async publishEntry(spaceId, entryId, options) {
349
+ try {
350
+ return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/publish`, {
351
+ entry: {
352
+ publish_at: options?.publish_at ?? "",
353
+ unpublish_at: options?.unpublish_at ?? "",
354
+ force_publish: options?.force_publish ?? false,
355
+ },
356
+ });
357
+ }
358
+ catch (error) {
359
+ this.logger("Failed to publish entry", {
360
+ spaceId,
361
+ entryId,
362
+ error,
363
+ }, "error");
364
+ throw new Error(`Failed to publish entry ${entryId} in space ${spaceId}: ${error.message}`);
365
+ }
366
+ }
367
+ /**
368
+ * Unpublishes a single entry from the live site
369
+ *
370
+ * Removes the entry from the public API while keeping it in draft state.
371
+ *
372
+ * Important notes:
373
+ * - Entry must be currently published
374
+ * - Entry will return to draft state
375
+ *
376
+ * @param spaceId - The ID of the space containing the entry
377
+ * @param entryId - The ID of the entry to unpublish
378
+ * @returns Promise resolving to unpublished entry data
379
+ * @throws Error if entry not found, not published, API request fails, or authentication is invalid
380
+ */
381
+ async unpublishEntry(spaceId, entryId, options) {
382
+ try {
383
+ return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/unpublish`, {
384
+ entry: {
385
+ unpublish_at: options?.unpublish_at ?? "",
386
+ },
387
+ });
388
+ }
389
+ catch (error) {
390
+ this.logger("Failed to unpublish entry", {
391
+ spaceId,
392
+ entryId,
393
+ error,
394
+ }, "error");
395
+ throw new Error(`Failed to unpublish entry ${entryId} in space ${spaceId}: ${error.message}`);
396
+ }
397
+ }
398
+ /**
399
+ * Creates a copy/clone of an existing entry
400
+ *
401
+ * Duplicates an entry with all its field values in the same space.
402
+ * The new entry is created as a draft with a new UUID and ID.
403
+ *
404
+ * Important notes:
405
+ * - The new entry is created as a draft
406
+ * - All field values are copied from the source entry
407
+ * - A new UUID is generated for the cloned entry
408
+ * - The slug will be auto-generated (usually source-slug-copy or similar)
409
+ *
410
+ * @param spaceId - The ID of the space containing the entry
411
+ * @param entryId - The ID of the entry to copy
412
+ * @param uuid - The UUID of the entry to copy
413
+ * @returns Promise resolving to the newly created entry data
414
+ * @throws Error if entry not found, API request fails, or authentication is invalid
415
+ */
416
+ async copyEntry(spaceId, entryId, uuid) {
417
+ try {
418
+ return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/copy`, {
419
+ uuid,
420
+ });
421
+ }
422
+ catch (error) {
423
+ this.logger("Failed to copy entry", {
424
+ spaceId,
425
+ entryId,
426
+ uuid,
427
+ error,
428
+ }, "error");
429
+ throw new Error(`Failed to copy entry ${entryId} in space ${spaceId}: ${error.message}`);
430
+ }
431
+ }
432
+ /**
433
+ * Creates a translation of an existing entry in a target locale.
434
+ *
435
+ * Uses the same entries endpoint with `status: "translate"` to signal
436
+ * the API that this is a translation, not a new entry.
437
+ *
438
+ * @param spaceId - The ID of the space
439
+ * @param params - Translation parameters
440
+ * @returns Promise resolving to created translation entry
441
+ */
442
+ async createTranslation(spaceId, params) {
443
+ try {
444
+ const transformedFieldValues = params.field_values.map((fv) => ({
445
+ id: fv.id ?? null,
446
+ uid: `field_${fv.field_id}`,
447
+ field_id: fv.field_id,
448
+ type: fv.type,
449
+ multi: fv.multi ?? false,
450
+ name: fv.name ?? "",
451
+ hint: null,
452
+ value: fv.value,
453
+ ...(fv.parent_id !== undefined
454
+ ? {
455
+ parent_id: fv.parent_id,
456
+ }
457
+ : {}),
458
+ validations: {},
459
+ entry: {
460
+ space_id: spaceId,
461
+ locale: params.target_locale,
462
+ },
463
+ }));
464
+ const payload = {
465
+ content_type_id: params.content_type_id,
466
+ space_id: spaceId,
467
+ uuid: params.uuid,
468
+ name: params.name,
469
+ slug: params.slug,
470
+ ...(params.category_id !== undefined
471
+ ? {
472
+ category_id: params.category_id,
473
+ }
474
+ : {}),
475
+ ...(params.excerpt !== undefined
476
+ ? {
477
+ excerpt: params.excerpt,
478
+ }
479
+ : {}),
480
+ category_path: null,
481
+ field_values: transformedFieldValues,
482
+ status: "translate",
483
+ target_locale: params.target_locale,
484
+ };
485
+ return await this.fetchClient.post(`/content/spaces/${spaceId}/entries`, payload);
486
+ }
487
+ catch (error) {
488
+ this.logger("Failed to create entry translation", {
489
+ spaceId,
490
+ uuid: params.uuid,
491
+ target_locale: params.target_locale,
492
+ error,
493
+ }, "error");
494
+ throw new Error(`Failed to create ${params.target_locale} translation for entry ${params.uuid} in space ${spaceId}: ${error.message}`);
495
+ }
496
+ }
497
+ /**
498
+ * Fetches all entries from all pages in parallel
499
+ *
500
+ * First gets page 1 to determine total count, then fetches remaining pages
501
+ * concurrently using Promise.all for maximum throughput.
502
+ *
503
+ * @param spaceId - The ID of the space to fetch entries from
504
+ * @param options - Optional filters
505
+ * @param options.type_id - Filter by content type ID
506
+ * @returns Promise resolving to array of all entries across all pages
507
+ */
508
+ async getAllEntries(spaceId, options = {}) {
509
+ const perPage = 100;
510
+ const { target_locale, ...queryOptions } = options;
511
+ // Include all entry states to ensure no entries are missed.
512
+ // The Admin API default listing may exclude entries without a pending draft.
513
+ const statesParam = {
514
+ states: [
515
+ "draft",
516
+ "published",
517
+ "unpublished",
518
+ ],
519
+ };
520
+ const firstPage = await this.getEntries(spaceId, {
521
+ page: 1,
522
+ per_page: perPage,
523
+ ...statesParam,
524
+ ...queryOptions,
525
+ }, target_locale);
526
+ const totalEntries = firstPage.meta?.total_entries || 0;
527
+ const totalPages = Math.ceil(totalEntries / perPage);
528
+ if (totalPages <= 1) {
529
+ return firstPage.entries || [];
530
+ }
531
+ const pagePromises = [];
532
+ for (let page = 2; page <= totalPages; page++) {
533
+ pagePromises.push(this.getEntries(spaceId, {
534
+ page,
535
+ per_page: perPage,
536
+ ...statesParam,
537
+ ...queryOptions,
538
+ }, target_locale));
539
+ }
540
+ const remainingPages = await Promise.all(pagePromises);
541
+ const allEntries = [
542
+ ...(firstPage.entries || []),
543
+ ];
544
+ for (const pageResult of remainingPages) {
545
+ allEntries.push(...(pageResult.entries || []));
546
+ }
547
+ return allEntries;
548
+ }
549
+ }
550
+ //# sourceMappingURL=EntriesRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntriesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/content/entries/EntriesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA6DvD;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IACxD;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA0C,EAC1C,OAA0C,EAC1C,MAAM,GAAG,IAAI;QAEb,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAClC,mBAAmB,OAAO,eAAe,EACzC,EAAE,EACF;gBACE,OAAO,EAAE,EAAE;gBACX,aAAa,EAAE,MAAM;gBACrB,IAAI,EAAE,OAAO;aACd,CACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CACT,+BAA+B,EAC/B;gBACE,OAAO;gBACP,UAAU,EAAE,OAAO,CAAC,MAAM;gBAC1B,KAAK;aACN,EACD,OAAO,CACR,CAAC;YACF,MAAM,IAAI,KAAK,CACb,yBAAyB,OAAO,CAAC,MAAM,uBAAuB,OAAO,KAAM,KAAe,CAAC,OAAO,EAAE,CACrG,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAA0C,EAC1C,WAA2D,EAC3D,aAAa,GAAG,IAAI;QAEpB,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAIhC,mBAAmB,OAAO,eAAe,EACzC;gBACE,OAAO,EAAE,EAAE;gBACX,aAAa;gBACb,IAAI,EAAE,OAAO;aACd,EACD;gBACE,WAAW,EAAE;oBACX,WAAW;iBACZ;aACF,CACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,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,EAAE,OAAO;gBACjB,GAAG,WAAW;gBACd,GAAG,YAAY;aACQ,EACzB,aAAa,CACd,CACF,CAAC;QACJ,CAAC;QAED,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACvD,MAAM,UAAU,GAAG;YACjB,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC;SAC7B,CAAC;QACF,KAAK,MAAM,UAAU,IAAI,cAAc,EAAE,CAAC;YACxC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { FetchRepositoryBase } from "../../../shared/index.js";
2
+ import type { ParamsSchema as GetSpacesParams } from "../../../tools/content/spaces/Get.js";
3
+ import type { ParamsSchema as ListSpacesParams } from "../../../tools/content/spaces/List.js";
4
+ import type { CreateSpaceRequest, ListSpaces } from "./SpacesTypes.js";
5
+ type ListSpace = Omit<ListSpacesParams, "platformSlug">;
6
+ type GetSpace = Omit<GetSpacesParams, "platformSlug">;
7
+ type CreateSpace = Partial<CreateSpaceRequest>;
8
+ type UpdateSpace = {
9
+ spaceId: number;
10
+ } & Partial<CreateSpaceRequest>;
11
+ type UpdateSpaceData = Partial<CreateSpaceRequest>;
12
+ export declare class SpacesRepository extends FetchRepositoryBase {
13
+ getSpaces(queryParams?: ListSpace): Promise<ListSpaces>;
14
+ getSpace(spaceId: GetSpace["spaceId"]): Promise<ListSpaces["spaces"][number]>;
15
+ updateSpace(spaceId: UpdateSpace["spaceId"], space: Partial<UpdateSpaceData>): Promise<ListSpaces["spaces"][number]>;
16
+ deleteSpace(spaceId: number, validationName: string): Promise<void>;
17
+ createSpace(space: Partial<CreateSpace>): Promise<ListSpaces["spaces"][number]>;
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=SpacesRepository.d.ts.map
@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f,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAC1B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;CASzC"}
@@ -0,0 +1,24 @@
1
+ import { FetchRepositoryBase } from "../../../shared/index.js";
2
+ export class SpacesRepository extends FetchRepositoryBase {
3
+ async getSpaces(queryParams) {
4
+ return this.list("/content/spaces", queryParams);
5
+ }
6
+ async getSpace(spaceId) {
7
+ return this.getById("/content/spaces", spaceId);
8
+ }
9
+ async updateSpace(spaceId, space) {
10
+ return this.update("/content/spaces", spaceId, space);
11
+ }
12
+ async deleteSpace(spaceId, validationName) {
13
+ return this.fetchClient.delete(`/content/spaces/${spaceId}`, {
14
+ queryParams: {
15
+ validation: validationName,
16
+ },
17
+ encodeSpaces: true,
18
+ });
19
+ }
20
+ async createSpace(space) {
21
+ return this.create("/content/spaces", space);
22
+ }
23
+ }
24
+ //# sourceMappingURL=SpacesRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpacesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/content/spaces/SpacesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAavD,MAAM,OAAO,gBAAiB,SAAQ,mBAAmB;IACvD,KAAK,CAAC,SAAS,CAAC,WAAuB;QACrC,OAAO,IAAI,CAAC,IAAI,CAAwB,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA4B;QAE5B,OAAO,IAAI,CAAC,OAAO,CACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CACf,OAA+B,EAC/B,KAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAChB,iBAAiB,EACjB,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAe,EAAE,cAAsB;QACvD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,mBAAmB,OAAO,EAAE,EAAE;YAC3D,WAAW,EAAE;gBACX,UAAU,EAAE,cAAc;aAC3B;YACD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CACf,KAA2B;QAE3B,OAAO,IAAI,CAAC,MAAM,CAChB,iBAAiB,EACjB,KAAK,CACN,CAAC;IACJ,CAAC;CAIF"}