@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.
- package/LICENSE.md +227 -0
- package/README.md +187 -0
- package/build/ModyoMcpServer.d.ts +11 -0
- package/build/ModyoMcpServer.d.ts.map +1 -0
- package/build/ModyoMcpServer.js +54 -0
- package/build/ModyoMcpServer.js.map +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +8 -0
- package/build/index.js.map +1 -0
- package/build/prompts/channels/global/GlobalPrompts.d.ts +2 -0
- package/build/prompts/channels/global/GlobalPrompts.d.ts.map +1 -0
- package/build/prompts/channels/global/GlobalPrompts.js +4 -0
- package/build/prompts/channels/global/GlobalPrompts.js.map +1 -0
- package/build/prompts/channels/global/prompts.d.ts +3 -0
- package/build/prompts/channels/global/prompts.d.ts.map +1 -0
- package/build/prompts/channels/global/prompts.js +5 -0
- package/build/prompts/channels/global/prompts.js.map +1 -0
- package/build/prompts/channels/pages/CreateContentPage.d.ts +48 -0
- package/build/prompts/channels/pages/CreateContentPage.d.ts.map +1 -0
- package/build/prompts/channels/pages/CreateContentPage.js +314 -0
- package/build/prompts/channels/pages/CreateContentPage.js.map +1 -0
- package/build/prompts/channels/pages/CreateWidgetPage.d.ts +47 -0
- package/build/prompts/channels/pages/CreateWidgetPage.d.ts.map +1 -0
- package/build/prompts/channels/pages/CreateWidgetPage.js +176 -0
- package/build/prompts/channels/pages/CreateWidgetPage.js.map +1 -0
- package/build/prompts/channels/pages/PagesPrompts.d.ts +2 -0
- package/build/prompts/channels/pages/PagesPrompts.d.ts.map +1 -0
- package/build/prompts/channels/pages/PagesPrompts.js +7 -0
- package/build/prompts/channels/pages/PagesPrompts.js.map +1 -0
- package/build/prompts/channels/releases/ManageReleases.d.ts +34 -0
- package/build/prompts/channels/releases/ManageReleases.d.ts.map +1 -0
- package/build/prompts/channels/releases/ManageReleases.js +407 -0
- package/build/prompts/channels/releases/ManageReleases.js.map +1 -0
- package/build/prompts/channels/releases/ReleasesPrompts.d.ts +2 -0
- package/build/prompts/channels/releases/ReleasesPrompts.d.ts.map +1 -0
- package/build/prompts/channels/releases/ReleasesPrompts.js +5 -0
- package/build/prompts/channels/releases/ReleasesPrompts.js.map +1 -0
- package/build/prompts/channels/templates/ManageTemplates.d.ts +43 -0
- package/build/prompts/channels/templates/ManageTemplates.d.ts.map +1 -0
- package/build/prompts/channels/templates/ManageTemplates.js +530 -0
- package/build/prompts/channels/templates/ManageTemplates.js.map +1 -0
- package/build/prompts/channels/templates/TemplatesPrompts.d.ts +2 -0
- package/build/prompts/channels/templates/TemplatesPrompts.d.ts.map +1 -0
- package/build/prompts/channels/templates/TemplatesPrompts.js +5 -0
- package/build/prompts/channels/templates/TemplatesPrompts.js.map +1 -0
- package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.d.ts +43 -0
- package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.d.ts.map +1 -0
- package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.js +371 -0
- package/build/prompts/channels/widgetDefinitions/CreateWidgetDefinition.js.map +1 -0
- package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.d.ts +2 -0
- package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.d.ts.map +1 -0
- package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.js +5 -0
- package/build/prompts/channels/widgetDefinitions/WidgetDefinitionsPrompts.js.map +1 -0
- package/build/prompts/content/spaces/Create.d.ts +29 -0
- package/build/prompts/content/spaces/Create.d.ts.map +1 -0
- package/build/prompts/content/spaces/Create.js +34 -0
- package/build/prompts/content/spaces/Create.js.map +1 -0
- package/build/prompts/content/spaces/SpacesPrompts.d.ts +2 -0
- package/build/prompts/content/spaces/SpacesPrompts.d.ts.map +1 -0
- package/build/prompts/content/spaces/SpacesPrompts.js +5 -0
- package/build/prompts/content/spaces/SpacesPrompts.js.map +1 -0
- package/build/prompts/core/global/GlobalPrompts.d.ts +2 -0
- package/build/prompts/core/global/GlobalPrompts.d.ts.map +1 -0
- package/build/prompts/core/global/GlobalPrompts.js +4 -0
- package/build/prompts/core/global/GlobalPrompts.js.map +1 -0
- package/build/prompts/core/global/prompts.d.ts +3 -0
- package/build/prompts/core/global/prompts.d.ts.map +1 -0
- package/build/prompts/core/global/prompts.js +5 -0
- package/build/prompts/core/global/prompts.js.map +1 -0
- package/build/prompts/customers/global/GlobalPrompts.d.ts +2 -0
- package/build/prompts/customers/global/GlobalPrompts.d.ts.map +1 -0
- package/build/prompts/customers/global/GlobalPrompts.js +4 -0
- package/build/prompts/customers/global/GlobalPrompts.js.map +1 -0
- package/build/prompts/customers/global/prompts.d.ts +3 -0
- package/build/prompts/customers/global/prompts.d.ts.map +1 -0
- package/build/prompts/customers/global/prompts.js +5 -0
- package/build/prompts/customers/global/prompts.js.map +1 -0
- package/build/prompts/prompts.d.ts +3 -0
- package/build/prompts/prompts.d.ts.map +1 -0
- package/build/prompts/prompts.js +26 -0
- package/build/prompts/prompts.js.map +1 -0
- package/build/prompts/workflows/CreateBlog.d.ts +33 -0
- package/build/prompts/workflows/CreateBlog.d.ts.map +1 -0
- package/build/prompts/workflows/CreateBlog.js +240 -0
- package/build/prompts/workflows/CreateBlog.js.map +1 -0
- package/build/prompts/workflows/SetupSite.d.ts +35 -0
- package/build/prompts/workflows/SetupSite.d.ts.map +1 -0
- package/build/prompts/workflows/SetupSite.js +365 -0
- package/build/prompts/workflows/SetupSite.js.map +1 -0
- package/build/prompts/workflows/WorkflowPrompts.d.ts +2 -0
- package/build/prompts/workflows/WorkflowPrompts.d.ts.map +1 -0
- package/build/prompts/workflows/WorkflowPrompts.js +7 -0
- package/build/prompts/workflows/WorkflowPrompts.js.map +1 -0
- package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.d.ts +24 -0
- package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.d.ts.map +1 -0
- package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.js +103 -0
- package/build/repositories/channels/WidgetDefinitions/WidgetDefinitionsRepository.js.map +1 -0
- package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.d.ts +17 -0
- package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.d.ts.map +1 -0
- package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.js +30 -0
- package/build/repositories/channels/accountTemplates/AccountTemplatesRepository.js.map +1 -0
- package/build/repositories/channels/globalVariables/GlobalVariablesRepository.d.ts +48 -0
- package/build/repositories/channels/globalVariables/GlobalVariablesRepository.d.ts.map +1 -0
- package/build/repositories/channels/globalVariables/GlobalVariablesRepository.js +105 -0
- package/build/repositories/channels/globalVariables/GlobalVariablesRepository.js.map +1 -0
- package/build/repositories/channels/locks/LocksRepository.d.ts +67 -0
- package/build/repositories/channels/locks/LocksRepository.d.ts.map +1 -0
- package/build/repositories/channels/locks/LocksRepository.js +58 -0
- package/build/repositories/channels/locks/LocksRepository.js.map +1 -0
- package/build/repositories/channels/navigation/NavigationRepository.d.ts +164 -0
- package/build/repositories/channels/navigation/NavigationRepository.d.ts.map +1 -0
- package/build/repositories/channels/navigation/NavigationRepository.js +343 -0
- package/build/repositories/channels/navigation/NavigationRepository.js.map +1 -0
- package/build/repositories/channels/pages/PagesRepository.d.ts +190 -0
- package/build/repositories/channels/pages/PagesRepository.d.ts.map +1 -0
- package/build/repositories/channels/pages/PagesRepository.js +256 -0
- package/build/repositories/channels/pages/PagesRepository.js.map +1 -0
- package/build/repositories/channels/releases/ReleasesRepository.d.ts +7 -0
- package/build/repositories/channels/releases/ReleasesRepository.d.ts.map +1 -0
- package/build/repositories/channels/releases/ReleasesRepository.js +10 -0
- package/build/repositories/channels/releases/ReleasesRepository.js.map +1 -0
- package/build/repositories/channels/sites/SitesRepository.d.ts +22 -0
- package/build/repositories/channels/sites/SitesRepository.d.ts.map +1 -0
- package/build/repositories/channels/sites/SitesRepository.js +45 -0
- package/build/repositories/channels/sites/SitesRepository.js.map +1 -0
- package/build/repositories/channels/sites/assets/SiteAssetsRepository.d.ts +7 -0
- package/build/repositories/channels/sites/assets/SiteAssetsRepository.d.ts.map +1 -0
- package/build/repositories/channels/sites/assets/SiteAssetsRepository.js +58 -0
- package/build/repositories/channels/sites/assets/SiteAssetsRepository.js.map +1 -0
- package/build/repositories/channels/templates/TemplatesRepository.d.ts +92 -0
- package/build/repositories/channels/templates/TemplatesRepository.d.ts.map +1 -0
- package/build/repositories/channels/templates/TemplatesRepository.js +281 -0
- package/build/repositories/channels/templates/TemplatesRepository.js.map +1 -0
- package/build/repositories/channels/widgets/WidgetsRepository.d.ts +6 -0
- package/build/repositories/channels/widgets/WidgetsRepository.d.ts.map +1 -0
- package/build/repositories/channels/widgets/WidgetsRepository.js +7 -0
- package/build/repositories/channels/widgets/WidgetsRepository.js.map +1 -0
- package/build/repositories/channels/workflows/WorkflowsRepository.d.ts +22 -0
- package/build/repositories/channels/workflows/WorkflowsRepository.d.ts.map +1 -0
- package/build/repositories/channels/workflows/WorkflowsRepository.js +22 -0
- package/build/repositories/channels/workflows/WorkflowsRepository.js.map +1 -0
- package/build/repositories/content/assets/AssetsRepository.d.ts +49 -0
- package/build/repositories/content/assets/AssetsRepository.d.ts.map +1 -0
- package/build/repositories/content/assets/AssetsRepository.js +109 -0
- package/build/repositories/content/assets/AssetsRepository.js.map +1 -0
- package/build/repositories/content/categories/CategoriesRepository.d.ts +37 -0
- package/build/repositories/content/categories/CategoriesRepository.d.ts.map +1 -0
- package/build/repositories/content/categories/CategoriesRepository.js +19 -0
- package/build/repositories/content/categories/CategoriesRepository.js.map +1 -0
- package/build/repositories/content/entries/EntriesRepository.d.ts +336 -0
- package/build/repositories/content/entries/EntriesRepository.d.ts.map +1 -0
- package/build/repositories/content/entries/EntriesRepository.js +550 -0
- package/build/repositories/content/entries/EntriesRepository.js.map +1 -0
- package/build/repositories/content/spaces/SpacesRepository.d.ts +20 -0
- package/build/repositories/content/spaces/SpacesRepository.d.ts.map +1 -0
- package/build/repositories/content/spaces/SpacesRepository.js +24 -0
- package/build/repositories/content/spaces/SpacesRepository.js.map +1 -0
- package/build/repositories/content/types/TypesRepository.d.ts +76 -0
- package/build/repositories/content/types/TypesRepository.d.ts.map +1 -0
- package/build/repositories/content/types/TypesRepository.js +112 -0
- package/build/repositories/content/types/TypesRepository.js.map +1 -0
- package/build/repositories/core/assets/AdminAssetsRepository.d.ts +36 -0
- package/build/repositories/core/assets/AdminAssetsRepository.d.ts.map +1 -0
- package/build/repositories/core/assets/AdminAssetsRepository.js +69 -0
- package/build/repositories/core/assets/AdminAssetsRepository.js.map +1 -0
- package/build/repositories/core/general/AdminGeneralRepository.d.ts +7 -0
- package/build/repositories/core/general/AdminGeneralRepository.d.ts.map +1 -0
- package/build/repositories/core/general/AdminGeneralRepository.js +13 -0
- package/build/repositories/core/general/AdminGeneralRepository.js.map +1 -0
- package/build/repositories/core/groups/AdminGroupsRepository.d.ts +80 -0
- package/build/repositories/core/groups/AdminGroupsRepository.d.ts.map +1 -0
- package/build/repositories/core/groups/AdminGroupsRepository.js +251 -0
- package/build/repositories/core/groups/AdminGroupsRepository.js.map +1 -0
- package/build/repositories/core/roles/AdminRolesRepository.d.ts +42 -0
- package/build/repositories/core/roles/AdminRolesRepository.d.ts.map +1 -0
- package/build/repositories/core/roles/AdminRolesRepository.js +66 -0
- package/build/repositories/core/roles/AdminRolesRepository.js.map +1 -0
- package/build/repositories/core/sites/AdminSitesRepository.d.ts +15 -0
- package/build/repositories/core/sites/AdminSitesRepository.d.ts.map +1 -0
- package/build/repositories/core/sites/AdminSitesRepository.js +27 -0
- package/build/repositories/core/sites/AdminSitesRepository.js.map +1 -0
- package/build/repositories/core/team/AdminTeamRepository.d.ts +92 -0
- package/build/repositories/core/team/AdminTeamRepository.d.ts.map +1 -0
- package/build/repositories/core/team/AdminTeamRepository.js +129 -0
- package/build/repositories/core/team/AdminTeamRepository.js.map +1 -0
- package/build/repositories/core/teamMembers/AdminTeamMembersRepository.d.ts +80 -0
- package/build/repositories/core/teamMembers/AdminTeamMembersRepository.d.ts.map +1 -0
- package/build/repositories/core/teamMembers/AdminTeamMembersRepository.js +293 -0
- package/build/repositories/core/teamMembers/AdminTeamMembersRepository.js.map +1 -0
- package/build/repositories/customers/forms/FormsRepository.d.ts +37 -0
- package/build/repositories/customers/forms/FormsRepository.d.ts.map +1 -0
- package/build/repositories/customers/forms/FormsRepository.js +92 -0
- package/build/repositories/customers/forms/FormsRepository.js.map +1 -0
- package/build/repositories/customers/originations/OriginationsRepository.d.ts +80 -0
- package/build/repositories/customers/originations/OriginationsRepository.d.ts.map +1 -0
- package/build/repositories/customers/originations/OriginationsRepository.js +590 -0
- package/build/repositories/customers/originations/OriginationsRepository.js.map +1 -0
- package/build/repositories/customers/realms/RealmsRepository.d.ts +13 -0
- package/build/repositories/customers/realms/RealmsRepository.d.ts.map +1 -0
- package/build/repositories/customers/realms/RealmsRepository.js +78 -0
- package/build/repositories/customers/realms/RealmsRepository.js.map +1 -0
- package/build/repositories/customers/realms/SubmissionsRepository.d.ts +11 -0
- package/build/repositories/customers/realms/SubmissionsRepository.d.ts.map +1 -0
- package/build/repositories/customers/realms/SubmissionsRepository.js +32 -0
- package/build/repositories/customers/realms/SubmissionsRepository.js.map +1 -0
- package/build/repositories/customers/segments/SegmentsRepository.d.ts +29 -0
- package/build/repositories/customers/segments/SegmentsRepository.d.ts.map +1 -0
- package/build/repositories/customers/segments/SegmentsRepository.js +55 -0
- package/build/repositories/customers/segments/SegmentsRepository.js.map +1 -0
- package/build/repositories/customers/settings/DataSetsRepository.d.ts +11 -0
- package/build/repositories/customers/settings/DataSetsRepository.d.ts.map +1 -0
- package/build/repositories/customers/settings/DataSetsRepository.js +39 -0
- package/build/repositories/customers/settings/DataSetsRepository.js.map +1 -0
- package/build/repositories/customers/users/UsersRepository.d.ts +10 -0
- package/build/repositories/customers/users/UsersRepository.d.ts.map +1 -0
- package/build/repositories/customers/users/UsersRepository.js +19 -0
- package/build/repositories/customers/users/UsersRepository.js.map +1 -0
- package/build/resources/channels/global/PlatformsClass.d.ts +25 -0
- package/build/resources/channels/global/PlatformsClass.d.ts.map +1 -0
- package/build/resources/channels/global/PlatformsClass.js +34 -0
- package/build/resources/channels/global/PlatformsClass.js.map +1 -0
- package/build/resources/channels/global/registerGlobalResources.d.ts +2 -0
- package/build/resources/channels/global/registerGlobalResources.d.ts.map +1 -0
- package/build/resources/channels/global/registerGlobalResources.js +5 -0
- package/build/resources/channels/global/registerGlobalResources.js.map +1 -0
- package/build/resources/channels/liquid/LiquidReference.d.ts +31 -0
- package/build/resources/channels/liquid/LiquidReference.d.ts.map +1 -0
- package/build/resources/channels/liquid/LiquidReference.js +796 -0
- package/build/resources/channels/liquid/LiquidReference.js.map +1 -0
- package/build/resources/channels/tools/ChannelsDocsToolsResource.d.ts +46 -0
- package/build/resources/channels/tools/ChannelsDocsToolsResource.d.ts.map +1 -0
- package/build/resources/channels/tools/ChannelsDocsToolsResource.js +160 -0
- package/build/resources/channels/tools/ChannelsDocsToolsResource.js.map +1 -0
- package/build/resources/content/global/PlatformsClass.d.ts +25 -0
- package/build/resources/content/global/PlatformsClass.d.ts.map +1 -0
- package/build/resources/content/global/PlatformsClass.js +34 -0
- package/build/resources/content/global/PlatformsClass.js.map +1 -0
- package/build/resources/content/global/registerGlobalResources.d.ts +2 -0
- package/build/resources/content/global/registerGlobalResources.d.ts.map +1 -0
- package/build/resources/content/global/registerGlobalResources.js +5 -0
- package/build/resources/content/global/registerGlobalResources.js.map +1 -0
- package/build/resources/content/spaces/ListSpacesClass.d.ts +28 -0
- package/build/resources/content/spaces/ListSpacesClass.d.ts.map +1 -0
- package/build/resources/content/spaces/ListSpacesClass.js +37 -0
- package/build/resources/content/spaces/ListSpacesClass.js.map +1 -0
- package/build/resources/content/spaces/registerSpacesResources.d.ts +2 -0
- package/build/resources/content/spaces/registerSpacesResources.d.ts.map +1 -0
- package/build/resources/content/spaces/registerSpacesResources.js +5 -0
- package/build/resources/content/spaces/registerSpacesResources.js.map +1 -0
- package/build/resources/content/tools/ContentDocsToolsResource.d.ts +46 -0
- package/build/resources/content/tools/ContentDocsToolsResource.d.ts.map +1 -0
- package/build/resources/content/tools/ContentDocsToolsResource.js +160 -0
- package/build/resources/content/tools/ContentDocsToolsResource.js.map +1 -0
- package/build/resources/content/tools/registerContentToolsResources.d.ts +2 -0
- package/build/resources/content/tools/registerContentToolsResources.d.ts.map +1 -0
- package/build/resources/content/tools/registerContentToolsResources.js +5 -0
- package/build/resources/content/tools/registerContentToolsResources.js.map +1 -0
- package/build/resources/core/global/PlatformsClass.d.ts +25 -0
- package/build/resources/core/global/PlatformsClass.d.ts.map +1 -0
- package/build/resources/core/global/PlatformsClass.js +34 -0
- package/build/resources/core/global/PlatformsClass.js.map +1 -0
- package/build/resources/core/global/registerGlobalResources.d.ts +2 -0
- package/build/resources/core/global/registerGlobalResources.d.ts.map +1 -0
- package/build/resources/core/global/registerGlobalResources.js +5 -0
- package/build/resources/core/global/registerGlobalResources.js.map +1 -0
- package/build/resources/core/tools/CoreDocsToolsResource.d.ts +49 -0
- package/build/resources/core/tools/CoreDocsToolsResource.d.ts.map +1 -0
- package/build/resources/core/tools/CoreDocsToolsResource.js +165 -0
- package/build/resources/core/tools/CoreDocsToolsResource.js.map +1 -0
- package/build/resources/core/tools/registerCoreToolsResources.d.ts +2 -0
- package/build/resources/core/tools/registerCoreToolsResources.d.ts.map +1 -0
- package/build/resources/core/tools/registerCoreToolsResources.js +5 -0
- package/build/resources/core/tools/registerCoreToolsResources.js.map +1 -0
- package/build/resources/customers/global/PlatformsClass.d.ts +25 -0
- package/build/resources/customers/global/PlatformsClass.d.ts.map +1 -0
- package/build/resources/customers/global/PlatformsClass.js +34 -0
- package/build/resources/customers/global/PlatformsClass.js.map +1 -0
- package/build/resources/customers/global/registerGlobalResources.d.ts +2 -0
- package/build/resources/customers/global/registerGlobalResources.d.ts.map +1 -0
- package/build/resources/customers/global/registerGlobalResources.js +5 -0
- package/build/resources/customers/global/registerGlobalResources.js.map +1 -0
- package/build/resources/customers/realms/ListRealmsClass.d.ts +28 -0
- package/build/resources/customers/realms/ListRealmsClass.d.ts.map +1 -0
- package/build/resources/customers/realms/ListRealmsClass.js +37 -0
- package/build/resources/customers/realms/ListRealmsClass.js.map +1 -0
- package/build/resources/customers/realms/registerRealmsResources.d.ts +2 -0
- package/build/resources/customers/realms/registerRealmsResources.d.ts.map +1 -0
- package/build/resources/customers/realms/registerRealmsResources.js +5 -0
- package/build/resources/customers/realms/registerRealmsResources.js.map +1 -0
- package/build/resources/customers/tools/CustomersDocsToolsResource.d.ts +46 -0
- package/build/resources/customers/tools/CustomersDocsToolsResource.d.ts.map +1 -0
- package/build/resources/customers/tools/CustomersDocsToolsResource.js +160 -0
- package/build/resources/customers/tools/CustomersDocsToolsResource.js.map +1 -0
- package/build/resources/customers/tools/registerCustomersToolsResources.d.ts +2 -0
- package/build/resources/customers/tools/registerCustomersToolsResources.d.ts.map +1 -0
- package/build/resources/customers/tools/registerCustomersToolsResources.js +5 -0
- package/build/resources/customers/tools/registerCustomersToolsResources.js.map +1 -0
- package/build/resources/resources.d.ts +3 -0
- package/build/resources/resources.d.ts.map +1 -0
- package/build/resources/resources.js +23 -0
- package/build/resources/resources.js.map +1 -0
- package/build/resources/shared/DocsToolsResource.d.ts +47 -0
- package/build/resources/shared/DocsToolsResource.d.ts.map +1 -0
- package/build/resources/shared/DocsToolsResource.js +120 -0
- package/build/resources/shared/DocsToolsResource.js.map +1 -0
- package/build/shared/FetchRepositoryBase.d.ts +38 -0
- package/build/shared/FetchRepositoryBase.d.ts.map +1 -0
- package/build/shared/FetchRepositoryBase.js +81 -0
- package/build/shared/FetchRepositoryBase.js.map +1 -0
- package/build/shared/McpServerBase.d.ts +61 -0
- package/build/shared/McpServerBase.d.ts.map +1 -0
- package/build/shared/McpServerBase.js +175 -0
- package/build/shared/McpServerBase.js.map +1 -0
- package/build/shared/PromptBase.d.ts +113 -0
- package/build/shared/PromptBase.d.ts.map +1 -0
- package/build/shared/PromptBase.js +169 -0
- package/build/shared/PromptBase.js.map +1 -0
- package/build/shared/ResourceBase.d.ts +160 -0
- package/build/shared/ResourceBase.d.ts.map +1 -0
- package/build/shared/ResourceBase.js +235 -0
- package/build/shared/ResourceBase.js.map +1 -0
- package/build/shared/ToolBase.d.ts +174 -0
- package/build/shared/ToolBase.d.ts.map +1 -0
- package/build/shared/ToolBase.js +247 -0
- package/build/shared/ToolBase.js.map +1 -0
- package/build/shared/clients/fetchClient.d.ts +25 -0
- package/build/shared/clients/fetchClient.d.ts.map +1 -0
- package/build/shared/clients/fetchClient.js +285 -0
- package/build/shared/clients/fetchClient.js.map +1 -0
- package/build/shared/clients/index.d.ts +2 -0
- package/build/shared/clients/index.d.ts.map +1 -0
- package/build/shared/clients/index.js +6 -0
- package/build/shared/clients/index.js.map +1 -0
- package/build/shared/context/sessionContext.d.ts +40 -0
- package/build/shared/context/sessionContext.d.ts.map +1 -0
- package/build/shared/context/sessionContext.js +32 -0
- package/build/shared/context/sessionContext.js.map +1 -0
- package/build/shared/globals/index.d.ts +2 -0
- package/build/shared/globals/index.d.ts.map +1 -0
- package/build/shared/globals/index.js +2 -0
- package/build/shared/globals/index.js.map +1 -0
- package/build/shared/helpers/assetsHelpers.d.ts +24 -0
- package/build/shared/helpers/assetsHelpers.d.ts.map +1 -0
- package/build/shared/helpers/assetsHelpers.js +108 -0
- package/build/shared/helpers/assetsHelpers.js.map +1 -0
- package/build/shared/helpers/cleanObject.d.ts +6 -0
- package/build/shared/helpers/cleanObject.d.ts.map +1 -0
- package/build/shared/helpers/cleanObject.js +10 -0
- package/build/shared/helpers/cleanObject.js.map +1 -0
- package/build/shared/helpers/concurrentBatch.d.ts +95 -0
- package/build/shared/helpers/concurrentBatch.d.ts.map +1 -0
- package/build/shared/helpers/concurrentBatch.js +94 -0
- package/build/shared/helpers/concurrentBatch.js.map +1 -0
- package/build/shared/helpers/contentOffloadHelper.d.ts +109 -0
- package/build/shared/helpers/contentOffloadHelper.d.ts.map +1 -0
- package/build/shared/helpers/contentOffloadHelper.js +162 -0
- package/build/shared/helpers/contentOffloadHelper.js.map +1 -0
- package/build/shared/helpers/deprecation.d.ts +76 -0
- package/build/shared/helpers/deprecation.d.ts.map +1 -0
- package/build/shared/helpers/deprecation.js +97 -0
- package/build/shared/helpers/deprecation.js.map +1 -0
- package/build/shared/helpers/docsDiscovery.d.ts +26 -0
- package/build/shared/helpers/docsDiscovery.d.ts.map +1 -0
- package/build/shared/helpers/docsDiscovery.js +69 -0
- package/build/shared/helpers/docsDiscovery.js.map +1 -0
- package/build/shared/helpers/getDocsPath.d.ts +13 -0
- package/build/shared/helpers/getDocsPath.d.ts.map +1 -0
- package/build/shared/helpers/getDocsPath.js +33 -0
- package/build/shared/helpers/getDocsPath.js.map +1 -0
- package/build/shared/helpers/getRepositoryOrThrow.d.ts +11 -0
- package/build/shared/helpers/getRepositoryOrThrow.d.ts.map +1 -0
- package/build/shared/helpers/getRepositoryOrThrow.js +21 -0
- package/build/shared/helpers/getRepositoryOrThrow.js.map +1 -0
- package/build/shared/helpers/index.d.ts +16 -0
- package/build/shared/helpers/index.d.ts.map +1 -0
- package/build/shared/helpers/index.js +16 -0
- package/build/shared/helpers/index.js.map +1 -0
- package/build/shared/helpers/jobManager.d.ts +157 -0
- package/build/shared/helpers/jobManager.d.ts.map +1 -0
- package/build/shared/helpers/jobManager.js +205 -0
- package/build/shared/helpers/jobManager.js.map +1 -0
- package/build/shared/helpers/logger.d.ts +19 -0
- package/build/shared/helpers/logger.d.ts.map +1 -0
- package/build/shared/helpers/logger.js +64 -0
- package/build/shared/helpers/logger.js.map +1 -0
- package/build/shared/helpers/retryWithBackoff.d.ts +58 -0
- package/build/shared/helpers/retryWithBackoff.d.ts.map +1 -0
- package/build/shared/helpers/retryWithBackoff.js +78 -0
- package/build/shared/helpers/retryWithBackoff.js.map +1 -0
- package/build/shared/helpers/slugSchema.d.ts +2 -0
- package/build/shared/helpers/slugSchema.d.ts.map +1 -0
- package/build/shared/helpers/slugSchema.js +2 -0
- package/build/shared/helpers/slugSchema.js.map +1 -0
- package/build/shared/helpers/slugify.d.ts +2 -0
- package/build/shared/helpers/slugify.d.ts.map +1 -0
- package/build/shared/helpers/slugify.js +9 -0
- package/build/shared/helpers/slugify.js.map +1 -0
- package/build/shared/helpers/templateContentValidator.d.ts +50 -0
- package/build/shared/helpers/templateContentValidator.d.ts.map +1 -0
- package/build/shared/helpers/templateContentValidator.js +301 -0
- package/build/shared/helpers/templateContentValidator.js.map +1 -0
- package/build/shared/helpers/truncateContent.d.ts +6 -0
- package/build/shared/helpers/truncateContent.d.ts.map +1 -0
- package/build/shared/helpers/truncateContent.js +12 -0
- package/build/shared/helpers/truncateContent.js.map +1 -0
- package/build/shared/index.d.ts +13 -0
- package/build/shared/index.d.ts.map +1 -0
- package/build/shared/index.js +20 -0
- package/build/shared/index.js.map +1 -0
- package/build/shared/providers/SinglePlatformProvider.d.ts +13 -0
- package/build/shared/providers/SinglePlatformProvider.d.ts.map +1 -0
- package/build/shared/providers/SinglePlatformProvider.js +42 -0
- package/build/shared/providers/SinglePlatformProvider.js.map +1 -0
- package/build/shared/test-utils/index.d.ts +2 -0
- package/build/shared/test-utils/index.d.ts.map +1 -0
- package/build/shared/test-utils/index.js +2 -0
- package/build/shared/test-utils/index.js.map +1 -0
- package/build/shared/test-utils/toolTestUtils.d.ts +191 -0
- package/build/shared/test-utils/toolTestUtils.d.ts.map +1 -0
- package/build/shared/test-utils/toolTestUtils.js +304 -0
- package/build/shared/test-utils/toolTestUtils.js.map +1 -0
- package/build/shared/tools/index.d.ts +2 -0
- package/build/shared/tools/index.d.ts.map +1 -0
- package/build/shared/tools/index.js +2 -0
- package/build/shared/tools/index.js.map +1 -0
- package/build/shared/types/AssetExtensions.d.ts +15 -0
- package/build/shared/types/AssetExtensions.d.ts.map +1 -0
- package/build/shared/types/AssetExtensions.js +95 -0
- package/build/shared/types/AssetExtensions.js.map +1 -0
- package/build/shared/types/Logger.d.ts +19 -0
- package/build/shared/types/Logger.d.ts.map +1 -0
- package/build/shared/types/Logger.js +2 -0
- package/build/shared/types/Logger.js.map +1 -0
- package/build/shared/types/index.d.ts +8 -0
- package/build/shared/types/index.d.ts.map +1 -0
- package/build/shared/types/index.js +2 -0
- package/build/shared/types/index.js.map +1 -0
- package/build/tools/channels/accountTemplates/AccountTemplatesTools.d.ts +2 -0
- package/build/tools/channels/accountTemplates/AccountTemplatesTools.d.ts.map +1 -0
- package/build/tools/channels/accountTemplates/AccountTemplatesTools.js +5 -0
- package/build/tools/channels/accountTemplates/AccountTemplatesTools.js.map +1 -0
- package/build/tools/channels/accountTemplates/Manage.d.ts +16 -0
- package/build/tools/channels/accountTemplates/Manage.d.ts.map +1 -0
- package/build/tools/channels/accountTemplates/Manage.js +221 -0
- package/build/tools/channels/accountTemplates/Manage.js.map +1 -0
- package/build/tools/channels/download/DownloadTools.d.ts +2 -0
- package/build/tools/channels/download/DownloadTools.d.ts.map +1 -0
- package/build/tools/channels/download/DownloadTools.js +5 -0
- package/build/tools/channels/download/DownloadTools.js.map +1 -0
- package/build/tools/channels/download/Manage.d.ts +21 -0
- package/build/tools/channels/download/Manage.d.ts.map +1 -0
- package/build/tools/channels/download/Manage.js +286 -0
- package/build/tools/channels/download/Manage.js.map +1 -0
- package/build/tools/channels/download/helpers/types.d.ts +45 -0
- package/build/tools/channels/download/helpers/types.d.ts.map +1 -0
- package/build/tools/channels/download/helpers/types.js +2 -0
- package/build/tools/channels/download/helpers/types.js.map +1 -0
- package/build/tools/channels/download/helpers/zipGenerator.d.ts +5 -0
- package/build/tools/channels/download/helpers/zipGenerator.d.ts.map +1 -0
- package/build/tools/channels/download/helpers/zipGenerator.js +114 -0
- package/build/tools/channels/download/helpers/zipGenerator.js.map +1 -0
- package/build/tools/channels/globalVariables/GlobalVariablesTools.d.ts +2 -0
- package/build/tools/channels/globalVariables/GlobalVariablesTools.d.ts.map +1 -0
- package/build/tools/channels/globalVariables/GlobalVariablesTools.js +5 -0
- package/build/tools/channels/globalVariables/GlobalVariablesTools.js.map +1 -0
- package/build/tools/channels/globalVariables/Manage.d.ts +32 -0
- package/build/tools/channels/globalVariables/Manage.d.ts.map +1 -0
- package/build/tools/channels/globalVariables/Manage.js +446 -0
- package/build/tools/channels/globalVariables/Manage.js.map +1 -0
- package/build/tools/channels/locks/LocksTools.d.ts +2 -0
- package/build/tools/channels/locks/LocksTools.d.ts.map +1 -0
- package/build/tools/channels/locks/LocksTools.js +5 -0
- package/build/tools/channels/locks/LocksTools.js.map +1 -0
- package/build/tools/channels/locks/Manage.d.ts +18 -0
- package/build/tools/channels/locks/Manage.d.ts.map +1 -0
- package/build/tools/channels/locks/Manage.js +197 -0
- package/build/tools/channels/locks/Manage.js.map +1 -0
- package/build/tools/channels/navigation/Copy.d.ts +12 -0
- package/build/tools/channels/navigation/Copy.d.ts.map +1 -0
- package/build/tools/channels/navigation/Copy.js +226 -0
- package/build/tools/channels/navigation/Copy.js.map +1 -0
- package/build/tools/channels/navigation/Manage.d.ts +18 -0
- package/build/tools/channels/navigation/Manage.d.ts.map +1 -0
- package/build/tools/channels/navigation/Manage.js +246 -0
- package/build/tools/channels/navigation/Manage.js.map +1 -0
- package/build/tools/channels/navigation/ManageItem.d.ts +43 -0
- package/build/tools/channels/navigation/ManageItem.d.ts.map +1 -0
- package/build/tools/channels/navigation/ManageItem.js +579 -0
- package/build/tools/channels/navigation/ManageItem.js.map +1 -0
- package/build/tools/channels/navigation/NavigationTools.d.ts +2 -0
- package/build/tools/channels/navigation/NavigationTools.d.ts.map +1 -0
- package/build/tools/channels/navigation/NavigationTools.js +9 -0
- package/build/tools/channels/navigation/NavigationTools.js.map +1 -0
- package/build/tools/channels/pages/Copy.d.ts +12 -0
- package/build/tools/channels/pages/Copy.d.ts.map +1 -0
- package/build/tools/channels/pages/Copy.js +253 -0
- package/build/tools/channels/pages/Copy.js.map +1 -0
- package/build/tools/channels/pages/Create.d.ts +29 -0
- package/build/tools/channels/pages/Create.d.ts.map +1 -0
- package/build/tools/channels/pages/Create.js +183 -0
- package/build/tools/channels/pages/Create.js.map +1 -0
- package/build/tools/channels/pages/Manage.d.ts +53 -0
- package/build/tools/channels/pages/Manage.d.ts.map +1 -0
- package/build/tools/channels/pages/Manage.js +583 -0
- package/build/tools/channels/pages/Manage.js.map +1 -0
- package/build/tools/channels/pages/ManageContent.d.ts +26 -0
- package/build/tools/channels/pages/ManageContent.d.ts.map +1 -0
- package/build/tools/channels/pages/ManageContent.js +294 -0
- package/build/tools/channels/pages/ManageContent.js.map +1 -0
- package/build/tools/channels/pages/ManageWidget.d.ts +49 -0
- package/build/tools/channels/pages/ManageWidget.d.ts.map +1 -0
- package/build/tools/channels/pages/ManageWidget.js +478 -0
- package/build/tools/channels/pages/ManageWidget.js.map +1 -0
- package/build/tools/channels/pages/PagesTools.d.ts +2 -0
- package/build/tools/channels/pages/PagesTools.d.ts.map +1 -0
- package/build/tools/channels/pages/PagesTools.js +13 -0
- package/build/tools/channels/pages/PagesTools.js.map +1 -0
- package/build/tools/channels/pages/helpers/categorizeTemplate.d.ts +4 -0
- package/build/tools/channels/pages/helpers/categorizeTemplate.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/categorizeTemplate.js +50 -0
- package/build/tools/channels/pages/helpers/categorizeTemplate.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.d.ts +25 -0
- package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.js +74 -0
- package/build/tools/channels/pages/helpers/contentPages/checkLocaleConsistency.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.d.ts +17 -0
- package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.js +20 -0
- package/build/tools/channels/pages/helpers/contentPages/createNewContentPage.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/findExistingPage.d.ts +4 -0
- package/build/tools/channels/pages/helpers/contentPages/findExistingPage.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/findExistingPage.js +31 -0
- package/build/tools/channels/pages/helpers/contentPages/findExistingPage.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.d.ts +17 -0
- package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.js +77 -0
- package/build/tools/channels/pages/helpers/contentPages/publishPageIfRequested.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.d.ts +18 -0
- package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.js +38 -0
- package/build/tools/channels/pages/helpers/contentPages/resolveOrCreatePage.js.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.d.ts +25 -0
- package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.js +52 -0
- package/build/tools/channels/pages/helpers/contentPages/updateExistingPage.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.d.ts +14 -0
- package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.js +8 -0
- package/build/tools/channels/pages/helpers/pageManagement/fetchAllPages.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleArchive.d.ts +21 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleArchive.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleArchive.js +38 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleArchive.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleDelete.d.ts +17 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleDelete.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleDelete.js +31 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleDelete.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleList.d.ts +33 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleList.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleList.js +32 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleList.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleRestore.d.ts +21 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleRestore.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleRestore.js +30 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleRestore.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.d.ts +20 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.js +29 -0
- package/build/tools/channels/pages/helpers/pageManagement/handleUnpublish.js.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/resolvePage.d.ts +15 -0
- package/build/tools/channels/pages/helpers/pageManagement/resolvePage.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/pageManagement/resolvePage.js +48 -0
- package/build/tools/channels/pages/helpers/pageManagement/resolvePage.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.d.ts +30 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.js +22 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildCustomWidget.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.d.ts +41 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.js +22 -0
- package/build/tools/channels/pages/helpers/widgetPages/buildSimpleWidget.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/index.d.ts +6 -0
- package/build/tools/channels/pages/helpers/widgetPages/index.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/index.js +6 -0
- package/build/tools/channels/pages/helpers/widgetPages/index.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/processWidgets.d.ts +34 -0
- package/build/tools/channels/pages/helpers/widgetPages/processWidgets.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/processWidgets.js +95 -0
- package/build/tools/channels/pages/helpers/widgetPages/processWidgets.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/publishWidget.d.ts +20 -0
- package/build/tools/channels/pages/helpers/widgetPages/publishWidget.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/publishWidget.js +73 -0
- package/build/tools/channels/pages/helpers/widgetPages/publishWidget.js.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.d.ts +19 -0
- package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.d.ts.map +1 -0
- package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.js +77 -0
- package/build/tools/channels/pages/helpers/widgetPages/resolveWidgetByNameOrUuid.js.map +1 -0
- package/build/tools/channels/preview/GeneratePreviewLink.d.ts +23 -0
- package/build/tools/channels/preview/GeneratePreviewLink.d.ts.map +1 -0
- package/build/tools/channels/preview/GeneratePreviewLink.js +190 -0
- package/build/tools/channels/preview/GeneratePreviewLink.js.map +1 -0
- package/build/tools/channels/preview/PreviewTools.d.ts +2 -0
- package/build/tools/channels/preview/PreviewTools.d.ts.map +1 -0
- package/build/tools/channels/preview/PreviewTools.js +5 -0
- package/build/tools/channels/preview/PreviewTools.js.map +1 -0
- package/build/tools/channels/releases/ReleasesTools.d.ts +2 -0
- package/build/tools/channels/releases/ReleasesTools.d.ts.map +1 -0
- package/build/tools/channels/releases/ReleasesTools.js +5 -0
- package/build/tools/channels/releases/ReleasesTools.js.map +1 -0
- package/build/tools/channels/releases/SmartPublish.d.ts +19 -0
- package/build/tools/channels/releases/SmartPublish.d.ts.map +1 -0
- package/build/tools/channels/releases/SmartPublish.js +681 -0
- package/build/tools/channels/releases/SmartPublish.js.map +1 -0
- package/build/tools/channels/sites/GetOverview.d.ts +10 -0
- package/build/tools/channels/sites/GetOverview.d.ts.map +1 -0
- package/build/tools/channels/sites/GetOverview.js +178 -0
- package/build/tools/channels/sites/GetOverview.js.map +1 -0
- package/build/tools/channels/sites/Manage.d.ts +88 -0
- package/build/tools/channels/sites/Manage.d.ts.map +1 -0
- package/build/tools/channels/sites/Manage.js +344 -0
- package/build/tools/channels/sites/Manage.js.map +1 -0
- package/build/tools/channels/sites/SitesTools.d.ts +2 -0
- package/build/tools/channels/sites/SitesTools.d.ts.map +1 -0
- package/build/tools/channels/sites/SitesTools.js +9 -0
- package/build/tools/channels/sites/SitesTools.js.map +1 -0
- package/build/tools/channels/sites/assets/Manage.d.ts +30 -0
- package/build/tools/channels/sites/assets/Manage.d.ts.map +1 -0
- package/build/tools/channels/sites/assets/Manage.js +135 -0
- package/build/tools/channels/sites/assets/Manage.js.map +1 -0
- package/build/tools/channels/sites/assets/SiteAssetsTools.d.ts +2 -0
- package/build/tools/channels/sites/assets/SiteAssetsTools.d.ts.map +1 -0
- package/build/tools/channels/sites/assets/SiteAssetsTools.js +5 -0
- package/build/tools/channels/sites/assets/SiteAssetsTools.js.map +1 -0
- package/build/tools/channels/sites/handlers/cloneHandler.d.ts +14 -0
- package/build/tools/channels/sites/handlers/cloneHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/cloneHandler.js +22 -0
- package/build/tools/channels/sites/handlers/cloneHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/createStageHandler.d.ts +15 -0
- package/build/tools/channels/sites/handlers/createStageHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/createStageHandler.js +23 -0
- package/build/tools/channels/sites/handlers/createStageHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/deleteHandler.d.ts +13 -0
- package/build/tools/channels/sites/handlers/deleteHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/deleteHandler.js +21 -0
- package/build/tools/channels/sites/handlers/deleteHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/index.d.ts +8 -0
- package/build/tools/channels/sites/handlers/index.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/index.js +8 -0
- package/build/tools/channels/sites/handlers/index.js.map +1 -0
- package/build/tools/channels/sites/handlers/listHandler.d.ts +21 -0
- package/build/tools/channels/sites/handlers/listHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/listHandler.js +34 -0
- package/build/tools/channels/sites/handlers/listHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/listStagesHandler.d.ts +24 -0
- package/build/tools/channels/sites/handlers/listStagesHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/listStagesHandler.js +36 -0
- package/build/tools/channels/sites/handlers/listStagesHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/manageHandler.d.ts +71 -0
- package/build/tools/channels/sites/handlers/manageHandler.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/manageHandler.js +201 -0
- package/build/tools/channels/sites/handlers/manageHandler.js.map +1 -0
- package/build/tools/channels/sites/handlers/siteResolver.d.ts +33 -0
- package/build/tools/channels/sites/handlers/siteResolver.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/siteResolver.js +51 -0
- package/build/tools/channels/sites/handlers/siteResolver.js.map +1 -0
- package/build/tools/channels/sites/handlers/types.d.ts +13 -0
- package/build/tools/channels/sites/handlers/types.d.ts.map +1 -0
- package/build/tools/channels/sites/handlers/types.js +2 -0
- package/build/tools/channels/sites/handlers/types.js.map +1 -0
- package/build/tools/channels/templates/Copy.d.ts +18 -0
- package/build/tools/channels/templates/Copy.d.ts.map +1 -0
- package/build/tools/channels/templates/Copy.js +192 -0
- package/build/tools/channels/templates/Copy.js.map +1 -0
- package/build/tools/channels/templates/Find.d.ts +21 -0
- package/build/tools/channels/templates/Find.d.ts.map +1 -0
- package/build/tools/channels/templates/Find.js +152 -0
- package/build/tools/channels/templates/Find.js.map +1 -0
- package/build/tools/channels/templates/Manage.d.ts +39 -0
- package/build/tools/channels/templates/Manage.d.ts.map +1 -0
- package/build/tools/channels/templates/Manage.js +650 -0
- package/build/tools/channels/templates/Manage.js.map +1 -0
- package/build/tools/channels/templates/Replace.d.ts +2 -0
- package/build/tools/channels/templates/Replace.d.ts.map +1 -0
- package/build/tools/channels/templates/Replace.js +251 -0
- package/build/tools/channels/templates/Replace.js.map +1 -0
- package/build/tools/channels/templates/Search.d.ts +2 -0
- package/build/tools/channels/templates/Search.d.ts.map +1 -0
- package/build/tools/channels/templates/Search.js +183 -0
- package/build/tools/channels/templates/Search.js.map +1 -0
- package/build/tools/channels/templates/TemplatesTools.d.ts +2 -0
- package/build/tools/channels/templates/TemplatesTools.d.ts.map +1 -0
- package/build/tools/channels/templates/TemplatesTools.js +15 -0
- package/build/tools/channels/templates/TemplatesTools.js.map +1 -0
- package/build/tools/channels/templates/UpdateOrCreate.d.ts +31 -0
- package/build/tools/channels/templates/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/channels/templates/UpdateOrCreate.js +372 -0
- package/build/tools/channels/templates/UpdateOrCreate.js.map +1 -0
- package/build/tools/channels/templates/helpers.d.ts +10 -0
- package/build/tools/channels/templates/helpers.d.ts.map +1 -0
- package/build/tools/channels/templates/helpers.js +39 -0
- package/build/tools/channels/templates/helpers.js.map +1 -0
- package/build/tools/channels/tools.d.ts +3 -0
- package/build/tools/channels/tools.d.ts.map +1 -0
- package/build/tools/channels/tools.js +25 -0
- package/build/tools/channels/tools.js.map +1 -0
- package/build/tools/channels/widgetDefinitions/Copy.d.ts +12 -0
- package/build/tools/channels/widgetDefinitions/Copy.d.ts.map +1 -0
- package/build/tools/channels/widgetDefinitions/Copy.js +231 -0
- package/build/tools/channels/widgetDefinitions/Copy.js.map +1 -0
- package/build/tools/channels/widgetDefinitions/Manage.d.ts +28 -0
- package/build/tools/channels/widgetDefinitions/Manage.d.ts.map +1 -0
- package/build/tools/channels/widgetDefinitions/Manage.js +422 -0
- package/build/tools/channels/widgetDefinitions/Manage.js.map +1 -0
- package/build/tools/channels/widgetDefinitions/UpdateOrCreate.d.ts +13 -0
- package/build/tools/channels/widgetDefinitions/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/channels/widgetDefinitions/UpdateOrCreate.js +137 -0
- package/build/tools/channels/widgetDefinitions/UpdateOrCreate.js.map +1 -0
- package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.d.ts +2 -0
- package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.d.ts.map +1 -0
- package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.js +9 -0
- package/build/tools/channels/widgetDefinitions/WidgetDefinitionsTools.js.map +1 -0
- package/build/tools/channels/widgets/WidgetsTools.d.ts +2 -0
- package/build/tools/channels/widgets/WidgetsTools.d.ts.map +1 -0
- package/build/tools/channels/widgets/WidgetsTools.js +4 -0
- package/build/tools/channels/widgets/WidgetsTools.js.map +1 -0
- package/build/tools/content/assets/AssetExtensions.d.ts +15 -0
- package/build/tools/content/assets/AssetExtensions.d.ts.map +1 -0
- package/build/tools/content/assets/AssetExtensions.js +95 -0
- package/build/tools/content/assets/AssetExtensions.js.map +1 -0
- package/build/tools/content/assets/AssetTools.d.ts +2 -0
- package/build/tools/content/assets/AssetTools.d.ts.map +1 -0
- package/build/tools/content/assets/AssetTools.js +11 -0
- package/build/tools/content/assets/AssetTools.js.map +1 -0
- package/build/tools/content/assets/BulkCreate.d.ts +24 -0
- package/build/tools/content/assets/BulkCreate.d.ts.map +1 -0
- package/build/tools/content/assets/BulkCreate.js +136 -0
- package/build/tools/content/assets/BulkCreate.js.map +1 -0
- package/build/tools/content/assets/Get.d.ts +9 -0
- package/build/tools/content/assets/Get.d.ts.map +1 -0
- package/build/tools/content/assets/Get.js +36 -0
- package/build/tools/content/assets/Get.js.map +1 -0
- package/build/tools/content/assets/List.d.ts +20 -0
- package/build/tools/content/assets/List.d.ts.map +1 -0
- package/build/tools/content/assets/List.js +74 -0
- package/build/tools/content/assets/List.js.map +1 -0
- package/build/tools/content/assets/Manage.d.ts +31 -0
- package/build/tools/content/assets/Manage.d.ts.map +1 -0
- package/build/tools/content/assets/Manage.js +321 -0
- package/build/tools/content/assets/Manage.js.map +1 -0
- package/build/tools/content/categories/CategoriesTools.d.ts +2 -0
- package/build/tools/content/categories/CategoriesTools.d.ts.map +1 -0
- package/build/tools/content/categories/CategoriesTools.js +9 -0
- package/build/tools/content/categories/CategoriesTools.js.map +1 -0
- package/build/tools/content/categories/Get.d.ts +9 -0
- package/build/tools/content/categories/Get.d.ts.map +1 -0
- package/build/tools/content/categories/Get.js +33 -0
- package/build/tools/content/categories/Get.js.map +1 -0
- package/build/tools/content/categories/List.d.ts +20 -0
- package/build/tools/content/categories/List.d.ts.map +1 -0
- package/build/tools/content/categories/List.js +71 -0
- package/build/tools/content/categories/List.js.map +1 -0
- package/build/tools/content/categories/Manage.d.ts +21 -0
- package/build/tools/content/categories/Manage.d.ts.map +1 -0
- package/build/tools/content/categories/Manage.js +274 -0
- package/build/tools/content/categories/Manage.js.map +1 -0
- package/build/tools/content/entries/BulkManage.d.ts +23 -0
- package/build/tools/content/entries/BulkManage.d.ts.map +1 -0
- package/build/tools/content/entries/BulkManage.js +299 -0
- package/build/tools/content/entries/BulkManage.js.map +1 -0
- package/build/tools/content/entries/EntriesTools.d.ts +2 -0
- package/build/tools/content/entries/EntriesTools.d.ts.map +1 -0
- package/build/tools/content/entries/EntriesTools.js +13 -0
- package/build/tools/content/entries/EntriesTools.js.map +1 -0
- package/build/tools/content/entries/FieldsSchema.d.ts +178 -0
- package/build/tools/content/entries/FieldsSchema.d.ts.map +1 -0
- package/build/tools/content/entries/FieldsSchema.js +277 -0
- package/build/tools/content/entries/FieldsSchema.js.map +1 -0
- package/build/tools/content/entries/Get.d.ts +10 -0
- package/build/tools/content/entries/Get.d.ts.map +1 -0
- package/build/tools/content/entries/Get.js +81 -0
- package/build/tools/content/entries/Get.js.map +1 -0
- package/build/tools/content/entries/List.d.ts +26 -0
- package/build/tools/content/entries/List.d.ts.map +1 -0
- package/build/tools/content/entries/List.js +78 -0
- package/build/tools/content/entries/List.js.map +1 -0
- package/build/tools/content/entries/Manage.d.ts +609 -0
- package/build/tools/content/entries/Manage.d.ts.map +1 -0
- package/build/tools/content/entries/Manage.js +635 -0
- package/build/tools/content/entries/Manage.js.map +1 -0
- package/build/tools/content/entries/UpdateOrCreate.d.ts +193 -0
- package/build/tools/content/entries/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/content/entries/UpdateOrCreate.js +245 -0
- package/build/tools/content/entries/UpdateOrCreate.js.map +1 -0
- package/build/tools/content/entries/resolveFieldIds.d.ts +17 -0
- package/build/tools/content/entries/resolveFieldIds.d.ts.map +1 -0
- package/build/tools/content/entries/resolveFieldIds.js +71 -0
- package/build/tools/content/entries/resolveFieldIds.js.map +1 -0
- package/build/tools/content/helpers/CopyUtils.d.ts +175 -0
- package/build/tools/content/helpers/CopyUtils.d.ts.map +1 -0
- package/build/tools/content/helpers/CopyUtils.js +430 -0
- package/build/tools/content/helpers/CopyUtils.js.map +1 -0
- package/build/tools/content/jobs/JobStatus.d.ts +110 -0
- package/build/tools/content/jobs/JobStatus.d.ts.map +1 -0
- package/build/tools/content/jobs/JobStatus.js +139 -0
- package/build/tools/content/jobs/JobStatus.js.map +1 -0
- package/build/tools/content/jobs/JobsTools.d.ts +2 -0
- package/build/tools/content/jobs/JobsTools.d.ts.map +1 -0
- package/build/tools/content/jobs/JobsTools.js +7 -0
- package/build/tools/content/jobs/JobsTools.js.map +1 -0
- package/build/tools/content/spaces/Copy.d.ts +16 -0
- package/build/tools/content/spaces/Copy.d.ts.map +1 -0
- package/build/tools/content/spaces/Copy.js +804 -0
- package/build/tools/content/spaces/Copy.js.map +1 -0
- package/build/tools/content/spaces/Get.d.ts +8 -0
- package/build/tools/content/spaces/Get.d.ts.map +1 -0
- package/build/tools/content/spaces/Get.js +43 -0
- package/build/tools/content/spaces/Get.js.map +1 -0
- package/build/tools/content/spaces/List.d.ts +20 -0
- package/build/tools/content/spaces/List.d.ts.map +1 -0
- package/build/tools/content/spaces/List.js +76 -0
- package/build/tools/content/spaces/List.js.map +1 -0
- package/build/tools/content/spaces/Manage.d.ts +34 -0
- package/build/tools/content/spaces/Manage.d.ts.map +1 -0
- package/build/tools/content/spaces/Manage.js +406 -0
- package/build/tools/content/spaces/Manage.js.map +1 -0
- package/build/tools/content/spaces/SpacesTools.d.ts +2 -0
- package/build/tools/content/spaces/SpacesTools.d.ts.map +1 -0
- package/build/tools/content/spaces/SpacesTools.js +11 -0
- package/build/tools/content/spaces/SpacesTools.js.map +1 -0
- package/build/tools/content/tools.d.ts +3 -0
- package/build/tools/content/tools.d.ts.map +1 -0
- package/build/tools/content/tools.js +15 -0
- package/build/tools/content/tools.js.map +1 -0
- package/build/tools/content/types/Copy.d.ts +14 -0
- package/build/tools/content/types/Copy.d.ts.map +1 -0
- package/build/tools/content/types/Copy.js +398 -0
- package/build/tools/content/types/Copy.js.map +1 -0
- package/build/tools/content/types/FieldsSchema.d.ts +491 -0
- package/build/tools/content/types/FieldsSchema.d.ts.map +1 -0
- package/build/tools/content/types/FieldsSchema.js +1229 -0
- package/build/tools/content/types/FieldsSchema.js.map +1 -0
- package/build/tools/content/types/Get.d.ts +9 -0
- package/build/tools/content/types/Get.d.ts.map +1 -0
- package/build/tools/content/types/Get.js +35 -0
- package/build/tools/content/types/Get.js.map +1 -0
- package/build/tools/content/types/List.d.ts +24 -0
- package/build/tools/content/types/List.d.ts.map +1 -0
- package/build/tools/content/types/List.js +68 -0
- package/build/tools/content/types/List.js.map +1 -0
- package/build/tools/content/types/Manage.d.ts +1003 -0
- package/build/tools/content/types/Manage.d.ts.map +1 -0
- package/build/tools/content/types/Manage.js +402 -0
- package/build/tools/content/types/Manage.js.map +1 -0
- package/build/tools/content/types/TypesTools.d.ts +2 -0
- package/build/tools/content/types/TypesTools.d.ts.map +1 -0
- package/build/tools/content/types/TypesTools.js +13 -0
- package/build/tools/content/types/TypesTools.js.map +1 -0
- package/build/tools/content/types/UpdateOrCreate.d.ts +501 -0
- package/build/tools/content/types/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/content/types/UpdateOrCreate.js +123 -0
- package/build/tools/content/types/UpdateOrCreate.js.map +1 -0
- package/build/tools/core/groups/GroupsTools.d.ts +2 -0
- package/build/tools/core/groups/GroupsTools.d.ts.map +1 -0
- package/build/tools/core/groups/GroupsTools.js +7 -0
- package/build/tools/core/groups/GroupsTools.js.map +1 -0
- package/build/tools/core/groups/Manage.d.ts +36 -0
- package/build/tools/core/groups/Manage.d.ts.map +1 -0
- package/build/tools/core/groups/Manage.js +479 -0
- package/build/tools/core/groups/Manage.js.map +1 -0
- package/build/tools/core/groups/UpdateOrCreate.d.ts +12 -0
- package/build/tools/core/groups/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/core/groups/UpdateOrCreate.js +155 -0
- package/build/tools/core/groups/UpdateOrCreate.js.map +1 -0
- package/build/tools/core/roles/Create.d.ts +15 -0
- package/build/tools/core/roles/Create.d.ts.map +1 -0
- package/build/tools/core/roles/Create.js +82 -0
- package/build/tools/core/roles/Create.js.map +1 -0
- package/build/tools/core/roles/List.d.ts +13 -0
- package/build/tools/core/roles/List.d.ts.map +1 -0
- package/build/tools/core/roles/List.js +61 -0
- package/build/tools/core/roles/List.js.map +1 -0
- package/build/tools/core/roles/RolesTools.d.ts +2 -0
- package/build/tools/core/roles/RolesTools.d.ts.map +1 -0
- package/build/tools/core/roles/RolesTools.js +7 -0
- package/build/tools/core/roles/RolesTools.js.map +1 -0
- package/build/tools/core/settings/Manage.d.ts +52 -0
- package/build/tools/core/settings/Manage.d.ts.map +1 -0
- package/build/tools/core/settings/Manage.js +402 -0
- package/build/tools/core/settings/Manage.js.map +1 -0
- package/build/tools/core/settings/SettingsTools.d.ts +2 -0
- package/build/tools/core/settings/SettingsTools.d.ts.map +1 -0
- package/build/tools/core/settings/SettingsTools.js +5 -0
- package/build/tools/core/settings/SettingsTools.js.map +1 -0
- package/build/tools/core/team/BulkManage.d.ts +19 -0
- package/build/tools/core/team/BulkManage.d.ts.map +1 -0
- package/build/tools/core/team/BulkManage.js +265 -0
- package/build/tools/core/team/BulkManage.js.map +1 -0
- package/build/tools/core/team/Manage.d.ts +36 -0
- package/build/tools/core/team/Manage.d.ts.map +1 -0
- package/build/tools/core/team/Manage.js +469 -0
- package/build/tools/core/team/Manage.js.map +1 -0
- package/build/tools/core/team/TeamTools.d.ts +2 -0
- package/build/tools/core/team/TeamTools.d.ts.map +1 -0
- package/build/tools/core/team/TeamTools.js +9 -0
- package/build/tools/core/team/TeamTools.js.map +1 -0
- package/build/tools/core/team/UpdateOrCreate.d.ts +17 -0
- package/build/tools/core/team/UpdateOrCreate.d.ts.map +1 -0
- package/build/tools/core/team/UpdateOrCreate.js +149 -0
- package/build/tools/core/team/UpdateOrCreate.js.map +1 -0
- package/build/tools/core/teamMembers/Manage.d.ts +28 -0
- package/build/tools/core/teamMembers/Manage.d.ts.map +1 -0
- package/build/tools/core/teamMembers/Manage.js +317 -0
- package/build/tools/core/teamMembers/Manage.js.map +1 -0
- package/build/tools/core/teamMembers/TeamMembersTools.d.ts +2 -0
- package/build/tools/core/teamMembers/TeamMembersTools.d.ts.map +1 -0
- package/build/tools/core/teamMembers/TeamMembersTools.js +5 -0
- package/build/tools/core/teamMembers/TeamMembersTools.js.map +1 -0
- package/build/tools/core/tools.d.ts +3 -0
- package/build/tools/core/tools.d.ts.map +1 -0
- package/build/tools/core/tools.js +13 -0
- package/build/tools/core/tools.js.map +1 -0
- package/build/tools/customers/forms/FormsCopy.d.ts +15 -0
- package/build/tools/customers/forms/FormsCopy.d.ts.map +1 -0
- package/build/tools/customers/forms/FormsCopy.js +404 -0
- package/build/tools/customers/forms/FormsCopy.js.map +1 -0
- package/build/tools/customers/forms/FormsManage.d.ts +75 -0
- package/build/tools/customers/forms/FormsManage.d.ts.map +1 -0
- package/build/tools/customers/forms/FormsManage.js +413 -0
- package/build/tools/customers/forms/FormsManage.js.map +1 -0
- package/build/tools/customers/forms/FormsTools.d.ts +2 -0
- package/build/tools/customers/forms/FormsTools.d.ts.map +1 -0
- package/build/tools/customers/forms/FormsTools.js +7 -0
- package/build/tools/customers/forms/FormsTools.js.map +1 -0
- package/build/tools/customers/originations/Manage.d.ts +36 -0
- package/build/tools/customers/originations/Manage.d.ts.map +1 -0
- package/build/tools/customers/originations/Manage.js +471 -0
- package/build/tools/customers/originations/Manage.js.map +1 -0
- package/build/tools/customers/originations/OriginationsTools.d.ts +2 -0
- package/build/tools/customers/originations/OriginationsTools.d.ts.map +1 -0
- package/build/tools/customers/originations/OriginationsTools.js +13 -0
- package/build/tools/customers/originations/OriginationsTools.js.map +1 -0
- package/build/tools/customers/originations/RulesManage.d.ts +527 -0
- package/build/tools/customers/originations/RulesManage.d.ts.map +1 -0
- package/build/tools/customers/originations/RulesManage.js +283 -0
- package/build/tools/customers/originations/RulesManage.js.map +1 -0
- package/build/tools/customers/originations/StepClone.d.ts +63 -0
- package/build/tools/customers/originations/StepClone.d.ts.map +1 -0
- package/build/tools/customers/originations/StepClone.js +340 -0
- package/build/tools/customers/originations/StepClone.js.map +1 -0
- package/build/tools/customers/originations/StepManage.d.ts +357 -0
- package/build/tools/customers/originations/StepManage.d.ts.map +1 -0
- package/build/tools/customers/originations/StepManage.js +407 -0
- package/build/tools/customers/originations/StepManage.js.map +1 -0
- package/build/tools/customers/originations/ValidateStructure.d.ts +43 -0
- package/build/tools/customers/originations/ValidateStructure.d.ts.map +1 -0
- package/build/tools/customers/originations/ValidateStructure.js +74 -0
- package/build/tools/customers/originations/ValidateStructure.js.map +1 -0
- package/build/tools/customers/realms/Manage.d.ts +48 -0
- package/build/tools/customers/realms/Manage.d.ts.map +1 -0
- package/build/tools/customers/realms/Manage.js +421 -0
- package/build/tools/customers/realms/Manage.js.map +1 -0
- package/build/tools/customers/realms/RealmsTools.d.ts +2 -0
- package/build/tools/customers/realms/RealmsTools.d.ts.map +1 -0
- package/build/tools/customers/realms/RealmsTools.js +5 -0
- package/build/tools/customers/realms/RealmsTools.js.map +1 -0
- package/build/tools/customers/segments/SegmentsManage.d.ts +44 -0
- package/build/tools/customers/segments/SegmentsManage.d.ts.map +1 -0
- package/build/tools/customers/segments/SegmentsManage.js +353 -0
- package/build/tools/customers/segments/SegmentsManage.js.map +1 -0
- package/build/tools/customers/segments/SegmentsTools.d.ts +2 -0
- package/build/tools/customers/segments/SegmentsTools.d.ts.map +1 -0
- package/build/tools/customers/segments/SegmentsTools.js +5 -0
- package/build/tools/customers/segments/SegmentsTools.js.map +1 -0
- package/build/tools/customers/settings/DataSetsCopy.d.ts +12 -0
- package/build/tools/customers/settings/DataSetsCopy.d.ts.map +1 -0
- package/build/tools/customers/settings/DataSetsCopy.js +175 -0
- package/build/tools/customers/settings/DataSetsCopy.js.map +1 -0
- package/build/tools/customers/settings/DataSetsManage.d.ts +29 -0
- package/build/tools/customers/settings/DataSetsManage.d.ts.map +1 -0
- package/build/tools/customers/settings/DataSetsManage.js +255 -0
- package/build/tools/customers/settings/DataSetsManage.js.map +1 -0
- package/build/tools/customers/settings/SettingsTools.d.ts +2 -0
- package/build/tools/customers/settings/SettingsTools.d.ts.map +1 -0
- package/build/tools/customers/settings/SettingsTools.js +7 -0
- package/build/tools/customers/settings/SettingsTools.js.map +1 -0
- package/build/tools/customers/submissions/BulkManage.d.ts +27 -0
- package/build/tools/customers/submissions/BulkManage.d.ts.map +1 -0
- package/build/tools/customers/submissions/BulkManage.js +367 -0
- package/build/tools/customers/submissions/BulkManage.js.map +1 -0
- package/build/tools/customers/submissions/Manage.d.ts +30 -0
- package/build/tools/customers/submissions/Manage.d.ts.map +1 -0
- package/build/tools/customers/submissions/Manage.js +374 -0
- package/build/tools/customers/submissions/Manage.js.map +1 -0
- package/build/tools/customers/submissions/submissionsTools.d.ts +2 -0
- package/build/tools/customers/submissions/submissionsTools.d.ts.map +1 -0
- package/build/tools/customers/submissions/submissionsTools.js +7 -0
- package/build/tools/customers/submissions/submissionsTools.js.map +1 -0
- package/build/tools/customers/tools.d.ts +3 -0
- package/build/tools/customers/tools.d.ts.map +1 -0
- package/build/tools/customers/tools.js +17 -0
- package/build/tools/customers/tools.js.map +1 -0
- package/build/tools/customers/users/BulkManageUsers.d.ts +36 -0
- package/build/tools/customers/users/BulkManageUsers.d.ts.map +1 -0
- package/build/tools/customers/users/BulkManageUsers.js +253 -0
- package/build/tools/customers/users/BulkManageUsers.js.map +1 -0
- package/build/tools/customers/users/ListRealmUsers.d.ts +19 -0
- package/build/tools/customers/users/ListRealmUsers.d.ts.map +1 -0
- package/build/tools/customers/users/ListRealmUsers.js +109 -0
- package/build/tools/customers/users/ListRealmUsers.js.map +1 -0
- package/build/tools/customers/users/ManageUser.d.ts +33 -0
- package/build/tools/customers/users/ManageUser.d.ts.map +1 -0
- package/build/tools/customers/users/ManageUser.js +277 -0
- package/build/tools/customers/users/ManageUser.js.map +1 -0
- package/build/tools/customers/users/UsersTools.d.ts +2 -0
- package/build/tools/customers/users/UsersTools.d.ts.map +1 -0
- package/build/tools/customers/users/UsersTools.js +9 -0
- package/build/tools/customers/users/UsersTools.js.map +1 -0
- package/build/tools/tools.d.ts +3 -0
- package/build/tools/tools.d.ts.map +1 -0
- package/build/tools/tools.js +70 -0
- package/build/tools/tools.js.map +1 -0
- package/docs/INDEX.md +72 -0
- package/docs/channels/best-practices.md +149 -0
- package/docs/channels/css-js/organization.md +529 -0
- package/docs/channels/css-js/templates.md +464 -0
- package/docs/channels/liquid/best-practices.md +471 -0
- package/docs/channels/liquid/context-reference.md +332 -0
- package/docs/channels/liquid/drops-and-filters.md +839 -0
- package/docs/channels/liquid/field-access.md +340 -0
- package/docs/channels/page-types.md +495 -0
- package/docs/channels/publishing-strategies.md +703 -0
- package/docs/channels/publishing-workflow.md +470 -0
- package/docs/channels/site-architecture.md +246 -0
- package/docs/channels/site-components.md +917 -0
- package/docs/channels/site-patterns.md +707 -0
- package/docs/channels/site-setup-checklist.md +42 -0
- package/docs/channels/snippets/content-access.md +541 -0
- package/docs/channels/snippets/layouts.md +449 -0
- package/docs/channels/snippets/liquid-drops.md +1019 -0
- package/docs/channels/snippets/overview.md +631 -0
- package/docs/channels/templates/status-guide.md +621 -0
- package/docs/channels/templates/status-operations.md +403 -0
- package/docs/channels/templates/workflows.md +628 -0
- package/docs/channels/versioning-system.md +554 -0
- package/docs/development/e2e-test-guide.md +128 -0
- package/docs/development/mcp-overview.md +269 -0
- package/docs/development/test-utilities.md +85 -0
- package/docs/development/tool-patterns.md +102 -0
- package/docs/platform/api-quirks.md +87 -0
- package/docs/platform/architecture.md +70 -0
- package/docs/platform/channels.md +93 -0
- package/docs/platform/content.md +76 -0
- package/docs/platform/core.md +54 -0
- package/docs/platform/customers.md +72 -0
- package/docs/tools/CLAUDE.md +358 -0
- package/docs/tools/PAGE_PARAMETERS_EXPLAINED.md +255 -0
- package/docs/tools/PAGE_WIDGET_TOOLS.md +468 -0
- package/docs/tools/RELEASE_TOOLS.md +263 -0
- package/docs/tools/TOOLS_SUMMARY.md +368 -0
- package/docs/tools/WIDGET_TOOLS.md +374 -0
- package/docs/tools/channels/pages/page-create.md +328 -0
- package/docs/tools/channels/sites/site-create.md +280 -0
- package/docs/tools/channels/templates/template-list-snippets.md +320 -0
- package/docs/widgets/platform/development.md +744 -0
- package/docs/widgets/platform/editing-published.md +483 -0
- package/docs/widgets/platform/workflows.md +603 -0
- package/docs/workflows/published-page-deletion.md +366 -0
- package/package.json +87 -0
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
import { AssetsRepository } from "../../../repositories/content/assets/AssetsRepository.js";
|
|
2
|
+
import { CategoriesRepository } from "../../../repositories/content/categories/CategoriesRepository.js";
|
|
3
|
+
import { EntriesRepository } from "../../../repositories/content/entries/EntriesRepository.js";
|
|
4
|
+
import { SpacesRepository } from "../../../repositories/content/spaces/SpacesRepository.js";
|
|
5
|
+
import { TypesRepository } from "../../../repositories/content/types/TypesRepository.js";
|
|
6
|
+
import { jobManager, processBatch } from "../../../shared/helpers/index.js";
|
|
7
|
+
import { ToolBase } from "../../../shared/index.js";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
import { CopyUtils } from "../helpers/CopyUtils.js";
|
|
10
|
+
const paramsSchema = z.object({
|
|
11
|
+
// Source
|
|
12
|
+
sourceSpaceId: z
|
|
13
|
+
.union([
|
|
14
|
+
z.string(),
|
|
15
|
+
z.number(),
|
|
16
|
+
])
|
|
17
|
+
.describe("Source space ID, UID, or name"),
|
|
18
|
+
// Target
|
|
19
|
+
newName: z
|
|
20
|
+
.string()
|
|
21
|
+
.min(2)
|
|
22
|
+
.max(100)
|
|
23
|
+
.optional()
|
|
24
|
+
.describe("Defaults to source name"),
|
|
25
|
+
newUid: z
|
|
26
|
+
.string()
|
|
27
|
+
.regex(/^[a-z0-9_-]+$/)
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("Auto-suffixed on conflict"),
|
|
30
|
+
// Copy options
|
|
31
|
+
copyTypes: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.default(true)
|
|
34
|
+
.describe("Copy content types (default: true)"),
|
|
35
|
+
copyCategories: z
|
|
36
|
+
.boolean()
|
|
37
|
+
.default(true)
|
|
38
|
+
.describe("Copy category hierarchy (default: true)"),
|
|
39
|
+
copyEntries: z
|
|
40
|
+
.boolean()
|
|
41
|
+
.default(false)
|
|
42
|
+
.describe("Copy all entries (default: false)"),
|
|
43
|
+
copyAssets: z
|
|
44
|
+
.boolean()
|
|
45
|
+
.default(false)
|
|
46
|
+
.describe("Auto-enabled when copyEntries=true"),
|
|
47
|
+
entryLimit: z
|
|
48
|
+
.number()
|
|
49
|
+
.int()
|
|
50
|
+
.positive()
|
|
51
|
+
.optional()
|
|
52
|
+
.describe("Max entries per type (for testing)"),
|
|
53
|
+
asyncThreshold: z
|
|
54
|
+
.number()
|
|
55
|
+
.int()
|
|
56
|
+
.positive()
|
|
57
|
+
.default(50)
|
|
58
|
+
.describe("Async if entries >= threshold (default: 50)"),
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* High-level tool for copying entire spaces.
|
|
62
|
+
*
|
|
63
|
+
* Features:
|
|
64
|
+
* - Space cloning
|
|
65
|
+
* - Auto-suffix UID on conflict
|
|
66
|
+
* - Category hierarchy preservation
|
|
67
|
+
* - Type copying with field remapping
|
|
68
|
+
* - Optional entry and asset copying
|
|
69
|
+
*/
|
|
70
|
+
class SpaceCopyTool extends ToolBase {
|
|
71
|
+
config = {
|
|
72
|
+
name: "content-spaces-copy",
|
|
73
|
+
description: `Clone entire space with types, categories, entries, assets. Auto-suffixes UID on conflict. Large copies run async (check with content-jobs-manage). 📚 modyo://docs/tools/content-spaces-copy`,
|
|
74
|
+
annotations: {
|
|
75
|
+
title: "Copy Space",
|
|
76
|
+
readOnlyHint: false,
|
|
77
|
+
idempotentHint: false,
|
|
78
|
+
destructiveHint: false,
|
|
79
|
+
},
|
|
80
|
+
isPublic: false,
|
|
81
|
+
};
|
|
82
|
+
getParamsSchema() {
|
|
83
|
+
return paramsSchema;
|
|
84
|
+
}
|
|
85
|
+
async execute(params) {
|
|
86
|
+
const { sourceSpaceId, newName, newUid, copyTypes, copyCategories, copyEntries, copyAssets, } = params;
|
|
87
|
+
// Auto-enable asset copying with entries
|
|
88
|
+
const shouldCopyAssets = copyAssets || copyEntries;
|
|
89
|
+
// Get repositories
|
|
90
|
+
const spaceRepo = await this.getRepository(SpacesRepository);
|
|
91
|
+
// Step 1: Resolve source space
|
|
92
|
+
this.debug("Resolving source space", {
|
|
93
|
+
sourceSpaceId,
|
|
94
|
+
});
|
|
95
|
+
const sourceSpace = await this.resolveSpace(spaceRepo, sourceSpaceId);
|
|
96
|
+
this.debug("Source space resolved", {
|
|
97
|
+
id: sourceSpace.id,
|
|
98
|
+
uid: sourceSpace.uid,
|
|
99
|
+
name: sourceSpace.name,
|
|
100
|
+
});
|
|
101
|
+
// Step 2: Resolve naming and conflicts
|
|
102
|
+
const targetName = newName || sourceSpace.name;
|
|
103
|
+
let targetUid = newUid || sourceSpace.uid;
|
|
104
|
+
// Check for UID conflicts
|
|
105
|
+
const existingSpaces = await spaceRepo.getSpaces({});
|
|
106
|
+
const existingUids = existingSpaces.spaces?.map((s) => s.uid) || [];
|
|
107
|
+
if (existingUids.includes(targetUid)) {
|
|
108
|
+
targetUid = CopyUtils.generateUniqueUid(targetUid, existingUids);
|
|
109
|
+
this.debug("UID conflict resolved", {
|
|
110
|
+
original: newUid || sourceSpace.uid,
|
|
111
|
+
resolved: targetUid,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// Step 3: Create space in target
|
|
115
|
+
this.debug("Creating space", {
|
|
116
|
+
targetUid,
|
|
117
|
+
targetName,
|
|
118
|
+
});
|
|
119
|
+
const createdSpace = await spaceRepo.createSpace({
|
|
120
|
+
name: targetName,
|
|
121
|
+
uid: targetUid,
|
|
122
|
+
default_locale: sourceSpace.default_locale,
|
|
123
|
+
});
|
|
124
|
+
// Update space with additional settings
|
|
125
|
+
await spaceRepo.updateSpace(createdSpace.id, {
|
|
126
|
+
locales: sourceSpace.locales,
|
|
127
|
+
cors_enabled: sourceSpace.cors_enabled,
|
|
128
|
+
cors_allow_all: sourceSpace.cors_allow_all,
|
|
129
|
+
cors_allowed_origins: sourceSpace.cors_allowed_origins,
|
|
130
|
+
});
|
|
131
|
+
this.debug("Space created successfully", {
|
|
132
|
+
targetSpaceId: createdSpace.id,
|
|
133
|
+
targetUid: createdSpace.uid,
|
|
134
|
+
});
|
|
135
|
+
// Initialize counters and mappings
|
|
136
|
+
const copied = {
|
|
137
|
+
types: 0,
|
|
138
|
+
categories: 0,
|
|
139
|
+
entries: 0,
|
|
140
|
+
assets: 0,
|
|
141
|
+
};
|
|
142
|
+
const mappings = {
|
|
143
|
+
types: {},
|
|
144
|
+
categories: {},
|
|
145
|
+
assets: {},
|
|
146
|
+
};
|
|
147
|
+
// Step 4: Copy categories
|
|
148
|
+
if (copyCategories) {
|
|
149
|
+
const categoryResult = await this.copyCategories(sourceSpace.id, createdSpace.id);
|
|
150
|
+
copied.categories = categoryResult.count;
|
|
151
|
+
mappings.categories = categoryResult.mapping;
|
|
152
|
+
}
|
|
153
|
+
// Step 5: Copy types
|
|
154
|
+
const typeMapping = new Map();
|
|
155
|
+
if (copyTypes) {
|
|
156
|
+
const typeResult = await this.copyTypes(sourceSpace.id, createdSpace.id);
|
|
157
|
+
copied.types = typeResult.count;
|
|
158
|
+
mappings.types = typeResult.mapping;
|
|
159
|
+
// Convert to Map for use in entry copying
|
|
160
|
+
for (const [srcId, tgtId] of Object.entries(typeResult.mapping)) {
|
|
161
|
+
typeMapping.set(parseInt(srcId, 10), tgtId);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
// Step 6: Copy assets if needed
|
|
165
|
+
const assetMapping = new Map();
|
|
166
|
+
if (shouldCopyAssets && copyEntries) {
|
|
167
|
+
// Assets will be copied during entry copying
|
|
168
|
+
// Pre-collect all asset IDs first
|
|
169
|
+
const assetResult = await this.copyAllAssets(sourceSpace.id, createdSpace.id);
|
|
170
|
+
copied.assets = assetResult.count;
|
|
171
|
+
for (const [srcId, tgtId] of Object.entries(assetResult.mapping)) {
|
|
172
|
+
assetMapping.set(parseInt(srcId, 10), tgtId);
|
|
173
|
+
mappings.assets[parseInt(srcId, 10)] = tgtId;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
// Step 7: Copy entries
|
|
177
|
+
if (copyEntries && copyTypes) {
|
|
178
|
+
// Count total entries before deciding async/sync execution
|
|
179
|
+
const totalEntries = await this.countTotalEntries(sourceSpace.id, Array.from(typeMapping.keys()), params.entryLimit);
|
|
180
|
+
this.debug(`Total entries to copy: ${totalEntries}, Threshold: ${params.asyncThreshold}`);
|
|
181
|
+
// Decide async vs sync based on threshold
|
|
182
|
+
if (totalEntries >= params.asyncThreshold) {
|
|
183
|
+
this.debug("Taking ASYNC path", {
|
|
184
|
+
totalEntries,
|
|
185
|
+
threshold: params.asyncThreshold,
|
|
186
|
+
});
|
|
187
|
+
// Execute async - create job and return immediately
|
|
188
|
+
const job = jobManager.createJob("space-copy", {
|
|
189
|
+
sourceSpaceId: sourceSpace.id,
|
|
190
|
+
targetSpaceId: createdSpace.id,
|
|
191
|
+
totalEntries,
|
|
192
|
+
});
|
|
193
|
+
this.debug("Created job", {
|
|
194
|
+
jobId: job.id,
|
|
195
|
+
});
|
|
196
|
+
// Start async execution in background
|
|
197
|
+
setImmediate(() => {
|
|
198
|
+
this.debug("setImmediate callback executing", {
|
|
199
|
+
jobId: job.id,
|
|
200
|
+
});
|
|
201
|
+
this.executeCopyEntriesAsync(job.id, sourceSpace.id, createdSpace.id, typeMapping, assetMapping, new Map(Object.entries(mappings.categories).map(([k, v]) => [
|
|
202
|
+
parseInt(k, 10),
|
|
203
|
+
v,
|
|
204
|
+
])), params.entryLimit).catch((error) => {
|
|
205
|
+
this.debug("Async copy failed", {
|
|
206
|
+
error: error instanceof Error ? error.message : String(error),
|
|
207
|
+
});
|
|
208
|
+
jobManager.failJob(job.id, error instanceof Error ? error.message : String(error));
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
this.debug("About to return success response with job ID", {
|
|
212
|
+
jobId: job.id,
|
|
213
|
+
});
|
|
214
|
+
// Return job ID immediately
|
|
215
|
+
const response = this.success({
|
|
216
|
+
jobId: job.id,
|
|
217
|
+
status: "pending",
|
|
218
|
+
message: `Async copy job created for ${totalEntries} entries. Check status with job-status tool.`,
|
|
219
|
+
recheckIn: 30, // Seconds
|
|
220
|
+
source: {
|
|
221
|
+
id: sourceSpace.id,
|
|
222
|
+
uid: sourceSpace.uid,
|
|
223
|
+
name: sourceSpace.name,
|
|
224
|
+
},
|
|
225
|
+
target: {
|
|
226
|
+
id: createdSpace.id,
|
|
227
|
+
uid: targetUid,
|
|
228
|
+
name: targetName,
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
this.debug("Response created, returning now", {
|
|
232
|
+
hasContent: !!response.content,
|
|
233
|
+
});
|
|
234
|
+
return response;
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.debug("Taking SYNC path", {
|
|
238
|
+
totalEntries,
|
|
239
|
+
threshold: params.asyncThreshold,
|
|
240
|
+
});
|
|
241
|
+
// Execute synchronously for small operations
|
|
242
|
+
const entryResult = await this.copyEntries(sourceSpace.id, createdSpace.id, typeMapping, assetMapping, new Map(Object.entries(mappings.categories).map(([k, v]) => [
|
|
243
|
+
parseInt(k, 10),
|
|
244
|
+
v,
|
|
245
|
+
])), params.entryLimit);
|
|
246
|
+
copied.entries = entryResult.count;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
// Build response (only for sync execution)
|
|
250
|
+
return this.success({
|
|
251
|
+
source: {
|
|
252
|
+
id: sourceSpace.id,
|
|
253
|
+
uid: sourceSpace.uid,
|
|
254
|
+
name: sourceSpace.name,
|
|
255
|
+
},
|
|
256
|
+
target: {
|
|
257
|
+
id: createdSpace.id,
|
|
258
|
+
uid: targetUid,
|
|
259
|
+
name: targetName,
|
|
260
|
+
},
|
|
261
|
+
action: "created",
|
|
262
|
+
copied,
|
|
263
|
+
mappings,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Resolve space by ID, UID, or name
|
|
268
|
+
*/
|
|
269
|
+
async resolveSpace(repository, identifier) {
|
|
270
|
+
// If numeric, get directly
|
|
271
|
+
if (typeof identifier === "number") {
|
|
272
|
+
return repository.getSpace(identifier);
|
|
273
|
+
}
|
|
274
|
+
// If string, could be UID or name
|
|
275
|
+
const spaces = await repository.getSpaces({
|
|
276
|
+
query: identifier,
|
|
277
|
+
});
|
|
278
|
+
let space = spaces.spaces?.find((s) => s.uid === identifier);
|
|
279
|
+
// Try name match if UID didn't work
|
|
280
|
+
if (!space) {
|
|
281
|
+
space = spaces.spaces?.find((s) => s.name === identifier);
|
|
282
|
+
}
|
|
283
|
+
// Try numeric parse
|
|
284
|
+
if (!space && !Number.isNaN(Number(identifier))) {
|
|
285
|
+
return repository.getSpace(Number(identifier));
|
|
286
|
+
}
|
|
287
|
+
if (!space) {
|
|
288
|
+
throw new Error(`Space not found with identifier: ${identifier}`);
|
|
289
|
+
}
|
|
290
|
+
return space;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Convert Content API response format to Admin API format
|
|
294
|
+
*
|
|
295
|
+
* Content API returns: { fields: { fieldName: value } }
|
|
296
|
+
* Admin API expects: field_values: [{ field_id, type, value }]
|
|
297
|
+
*
|
|
298
|
+
* @param contentFields - Fields from Content API
|
|
299
|
+
* @param typeFields - Type field definitions for mapping names to IDs
|
|
300
|
+
* @returns Admin API formatted field values
|
|
301
|
+
*/
|
|
302
|
+
convertContentApiToAdminFormat(contentFields, typeFields) {
|
|
303
|
+
const fieldValues = [];
|
|
304
|
+
// Create a map of field name to field definition for quick lookup
|
|
305
|
+
const fieldMap = new Map();
|
|
306
|
+
for (const field of typeFields) {
|
|
307
|
+
fieldMap.set(field.name, field);
|
|
308
|
+
}
|
|
309
|
+
// Convert each Content API field to Admin API format
|
|
310
|
+
for (const [fieldName, fieldValue] of Object.entries(contentFields)) {
|
|
311
|
+
const fieldDef = fieldMap.get(fieldName);
|
|
312
|
+
if (!fieldDef || fieldDef.id === null) {
|
|
313
|
+
this.debug(`Skipping field "${fieldName}" - no matching type definition found`);
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
// Handle locations field - Content API uses {location: {lat, lon}} format
|
|
317
|
+
if (fieldDef.type === "locations" && Array.isArray(fieldValue)) {
|
|
318
|
+
const convertedValue = fieldValue.map((loc) => ({
|
|
319
|
+
location_street: loc.location_street,
|
|
320
|
+
lat: typeof loc.location?.lat === "string"
|
|
321
|
+
? parseFloat(loc.location.lat)
|
|
322
|
+
: loc.location?.lat || loc.lat || 0,
|
|
323
|
+
lng: typeof loc.location?.lon === "string"
|
|
324
|
+
? parseFloat(loc.location.lon)
|
|
325
|
+
: loc.location?.lon || loc.lng || 0,
|
|
326
|
+
country: loc.country || "",
|
|
327
|
+
administrative_area_level_1: loc.administrative_area_level_1 || "",
|
|
328
|
+
administrative_area_level_2: loc.administrative_area_level_2 || "",
|
|
329
|
+
administrative_area_level_3: loc.administrative_area_level_3 || "",
|
|
330
|
+
administrative_area_level_4: loc.administrative_area_level_4 || "",
|
|
331
|
+
administrative_area_level_5: loc.administrative_area_level_5 || "",
|
|
332
|
+
}));
|
|
333
|
+
fieldValues.push({
|
|
334
|
+
field_id: fieldDef.id,
|
|
335
|
+
type: fieldDef.type,
|
|
336
|
+
value: convertedValue,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
// All other field types - pass value as-is
|
|
341
|
+
fieldValues.push({
|
|
342
|
+
field_id: fieldDef.id,
|
|
343
|
+
type: fieldDef.type,
|
|
344
|
+
value: fieldValue,
|
|
345
|
+
...(fieldDef.multi
|
|
346
|
+
? {
|
|
347
|
+
multi: true,
|
|
348
|
+
}
|
|
349
|
+
: {}),
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return fieldValues;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Copy categories from source to target space
|
|
357
|
+
*/
|
|
358
|
+
async copyCategories(sourceSpaceId, targetSpaceId) {
|
|
359
|
+
const catRepo = await this.getRepository(CategoriesRepository);
|
|
360
|
+
// Get all source categories
|
|
361
|
+
const sourceCategories = await catRepo.getCategories(sourceSpaceId, {
|
|
362
|
+
page: 1,
|
|
363
|
+
per_page: 100,
|
|
364
|
+
});
|
|
365
|
+
const categories = sourceCategories.categories || [];
|
|
366
|
+
if (categories.length === 0) {
|
|
367
|
+
return {
|
|
368
|
+
count: 0,
|
|
369
|
+
mapping: {},
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
// Build parent mapping (for flattening we need parent_id)
|
|
373
|
+
// Categories from API don't have parent_id directly, we need to infer from depth and parent field
|
|
374
|
+
// For simplicity, we'll create them in order of depth (parents first)
|
|
375
|
+
const sortedCategories = [
|
|
376
|
+
...categories,
|
|
377
|
+
].sort((a, b) => a.depth - b.depth);
|
|
378
|
+
const mapping = {};
|
|
379
|
+
const slugToIdMapping = new Map();
|
|
380
|
+
let count = 0;
|
|
381
|
+
for (const category of sortedCategories) {
|
|
382
|
+
try {
|
|
383
|
+
// For nested categories, we'd need parent_id - the API returns parent: null
|
|
384
|
+
// We'll create all as root categories for now (simplified)
|
|
385
|
+
// TODO: Enhance to handle parent hierarchy properly
|
|
386
|
+
const created = await catRepo.createCategory(targetSpaceId, {
|
|
387
|
+
name: category.name,
|
|
388
|
+
slug: category.slug,
|
|
389
|
+
// parent_id: would need to be mapped from source
|
|
390
|
+
});
|
|
391
|
+
mapping[category.id] = created.id;
|
|
392
|
+
slugToIdMapping.set(category.slug, created.id);
|
|
393
|
+
count++;
|
|
394
|
+
this.debug("Category copied", {
|
|
395
|
+
sourceId: category.id,
|
|
396
|
+
targetId: created.id,
|
|
397
|
+
name: category.name,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
this.debug("Failed to copy category", {
|
|
402
|
+
categoryId: category.id,
|
|
403
|
+
name: category.name,
|
|
404
|
+
error: error instanceof Error ? error.message : String(error),
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return {
|
|
409
|
+
count,
|
|
410
|
+
mapping,
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Copy types from source to target space
|
|
415
|
+
*/
|
|
416
|
+
async copyTypes(sourceSpaceId, targetSpaceId) {
|
|
417
|
+
const typeRepo = await this.getRepository(TypesRepository);
|
|
418
|
+
// Get all source types
|
|
419
|
+
const sourceTypes = await typeRepo.getTypes(sourceSpaceId, {});
|
|
420
|
+
const types = sourceTypes.types || [];
|
|
421
|
+
if (types.length === 0) {
|
|
422
|
+
return {
|
|
423
|
+
count: 0,
|
|
424
|
+
mapping: {},
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
const mapping = {};
|
|
428
|
+
let count = 0;
|
|
429
|
+
// First pass: create types without content_type references
|
|
430
|
+
for (const typeInfo of types) {
|
|
431
|
+
try {
|
|
432
|
+
// Get full type with fields
|
|
433
|
+
const fullType = await typeRepo.getType(sourceSpaceId, typeInfo.id);
|
|
434
|
+
// Strip field IDs
|
|
435
|
+
const fields = CopyUtils.stripFieldIds(fullType.fields);
|
|
436
|
+
// Check for existing UID conflicts
|
|
437
|
+
const existingTypes = await typeRepo.getTypes(targetSpaceId, {});
|
|
438
|
+
const existingUids = existingTypes.types?.map((t) => t.uid) || [];
|
|
439
|
+
let targetUid = fullType.uid;
|
|
440
|
+
if (existingUids.includes(targetUid)) {
|
|
441
|
+
targetUid = CopyUtils.generateUniqueUid(targetUid, existingUids);
|
|
442
|
+
}
|
|
443
|
+
// Create type
|
|
444
|
+
const created = await typeRepo.createType(targetSpaceId, {
|
|
445
|
+
name: fullType.name,
|
|
446
|
+
uid: targetUid,
|
|
447
|
+
single: fullType.single,
|
|
448
|
+
});
|
|
449
|
+
// Update type with fields
|
|
450
|
+
if (fields.length > 0) {
|
|
451
|
+
await typeRepo.updateType(targetSpaceId, created.id, {
|
|
452
|
+
fields: fields,
|
|
453
|
+
dependent_entries: fullType.dependent_entries,
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
mapping[typeInfo.id] = created.id;
|
|
457
|
+
count++;
|
|
458
|
+
this.debug("Type copied", {
|
|
459
|
+
sourceId: typeInfo.id,
|
|
460
|
+
targetId: created.id,
|
|
461
|
+
name: fullType.name,
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
catch (error) {
|
|
465
|
+
this.debug("Failed to copy type", {
|
|
466
|
+
typeId: typeInfo.id,
|
|
467
|
+
name: typeInfo.name,
|
|
468
|
+
error: error instanceof Error ? error.message : String(error),
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
// Second pass: update content_type references
|
|
473
|
+
const typeIdMapping = new Map(Object.entries(mapping).map(([k, v]) => [
|
|
474
|
+
parseInt(k, 10),
|
|
475
|
+
v,
|
|
476
|
+
]));
|
|
477
|
+
for (const typeInfo of types) {
|
|
478
|
+
const targetTypeId = mapping[typeInfo.id];
|
|
479
|
+
if (!targetTypeId)
|
|
480
|
+
continue;
|
|
481
|
+
try {
|
|
482
|
+
const fullType = await typeRepo.getType(sourceSpaceId, typeInfo.id);
|
|
483
|
+
const refs = CopyUtils.findContentTypeReferences(fullType.fields);
|
|
484
|
+
if (refs.length > 0) {
|
|
485
|
+
// Remap references and update
|
|
486
|
+
let fields = CopyUtils.stripFieldIds(fullType.fields);
|
|
487
|
+
fields = CopyUtils.remapContentTypeReferences(fields, typeIdMapping);
|
|
488
|
+
await typeRepo.updateType(targetSpaceId, targetTypeId, {
|
|
489
|
+
fields: fields,
|
|
490
|
+
});
|
|
491
|
+
this.debug("Type references updated", {
|
|
492
|
+
typeId: targetTypeId,
|
|
493
|
+
refs,
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
catch (error) {
|
|
498
|
+
this.debug("Failed to update type references", {
|
|
499
|
+
typeId: typeInfo.id,
|
|
500
|
+
error: error instanceof Error ? error.message : String(error),
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return {
|
|
505
|
+
count,
|
|
506
|
+
mapping,
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Copy all assets from source to target space
|
|
511
|
+
*/
|
|
512
|
+
async copyAllAssets(sourceSpaceId, targetSpaceId) {
|
|
513
|
+
const assetRepo = await this.getRepository(AssetsRepository);
|
|
514
|
+
const mapping = {};
|
|
515
|
+
let count = 0;
|
|
516
|
+
let page = 1;
|
|
517
|
+
let hasMore = true;
|
|
518
|
+
while (hasMore) {
|
|
519
|
+
const assets = await assetRepo.getAssets(sourceSpaceId, {
|
|
520
|
+
page,
|
|
521
|
+
per_page: 100,
|
|
522
|
+
});
|
|
523
|
+
for (const asset of assets.assets || []) {
|
|
524
|
+
try {
|
|
525
|
+
if (!asset.url) {
|
|
526
|
+
this.debug("Asset has no URL, skipping", {
|
|
527
|
+
assetId: asset.id,
|
|
528
|
+
});
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
531
|
+
const modyoType = this.mapAssetTypeToModyoType(asset.type);
|
|
532
|
+
const assetName = asset.data_file_name.replace(/\.[^.]+$/, "") || `asset-${asset.id}`;
|
|
533
|
+
const created = await assetRepo.createAsset(targetSpaceId, {
|
|
534
|
+
input: asset.url,
|
|
535
|
+
modyoType,
|
|
536
|
+
name: assetName,
|
|
537
|
+
});
|
|
538
|
+
// Update metadata
|
|
539
|
+
if (asset.title || asset.description || asset.alt_text) {
|
|
540
|
+
await assetRepo.updateAssetMetadata(targetSpaceId, created.id, {
|
|
541
|
+
title: asset.title,
|
|
542
|
+
description: asset.description ?? undefined,
|
|
543
|
+
alt_text: asset.alt_text ?? undefined,
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
mapping[asset.id] = created.id;
|
|
547
|
+
count++;
|
|
548
|
+
this.debug("Asset copied", {
|
|
549
|
+
sourceId: asset.id,
|
|
550
|
+
targetId: created.id,
|
|
551
|
+
name: assetName,
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
catch (error) {
|
|
555
|
+
this.debug("Failed to copy asset", {
|
|
556
|
+
assetId: asset.id,
|
|
557
|
+
error: error instanceof Error ? error.message : String(error),
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
hasMore = (assets.assets?.length || 0) === 100;
|
|
562
|
+
page++;
|
|
563
|
+
}
|
|
564
|
+
return {
|
|
565
|
+
count,
|
|
566
|
+
mapping,
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Copy entries from source to target space
|
|
571
|
+
*/
|
|
572
|
+
async copyEntries(sourceSpaceId, targetSpaceId, typeMapping, assetMapping, categoryMapping, entryLimit, jobId) {
|
|
573
|
+
const entryRepo = await this.getRepository(EntriesRepository);
|
|
574
|
+
const typeRepo = await this.getRepository(TypesRepository);
|
|
575
|
+
const spaceRepo = await this.getRepository(SpacesRepository);
|
|
576
|
+
let count = 0;
|
|
577
|
+
const entryMapping = new Map();
|
|
578
|
+
const usedSlugs = new Set();
|
|
579
|
+
// Get source space data for UID (needed for Content API)
|
|
580
|
+
const sourceSpaceData = await spaceRepo.getSpace(sourceSpaceId);
|
|
581
|
+
const sourceSpaceUid = sourceSpaceData.uid;
|
|
582
|
+
// Process entries by type
|
|
583
|
+
for (const [sourceTypeId, targetTypeId] of typeMapping) {
|
|
584
|
+
// Get field mapping for this type
|
|
585
|
+
const sourceType = await typeRepo.getType(sourceSpaceId, sourceTypeId);
|
|
586
|
+
const targetType = await typeRepo.getType(targetSpaceId, targetTypeId);
|
|
587
|
+
const fieldIdMapping = CopyUtils.buildFieldIdMapping(sourceType.fields, targetType.fields);
|
|
588
|
+
const sourceTypeUid = sourceType.uid;
|
|
589
|
+
// Collect ALL entries for this type first
|
|
590
|
+
const allEntries = [];
|
|
591
|
+
let page = 1;
|
|
592
|
+
let hasMore = true;
|
|
593
|
+
while (hasMore) {
|
|
594
|
+
const entries = await entryRepo.getEntries(sourceSpaceId, {
|
|
595
|
+
type_id: sourceTypeId,
|
|
596
|
+
page,
|
|
597
|
+
per_page: 100,
|
|
598
|
+
});
|
|
599
|
+
allEntries.push(...(entries.entries || []));
|
|
600
|
+
hasMore = (entries.entries?.length || 0) === 100;
|
|
601
|
+
page++;
|
|
602
|
+
}
|
|
603
|
+
// Apply entry limit if specified
|
|
604
|
+
const entriesToCopy = entryLimit
|
|
605
|
+
? allEntries.slice(0, entryLimit)
|
|
606
|
+
: allEntries;
|
|
607
|
+
this.debug(`Processing ${entriesToCopy.length} entries for type ${sourceTypeId}${entryLimit ? ` (limited from ${allEntries.length})` : ""}`);
|
|
608
|
+
// Process entries in batches with retry
|
|
609
|
+
const results = await processBatch({
|
|
610
|
+
items: entriesToCopy,
|
|
611
|
+
batchSize: 10,
|
|
612
|
+
continueOnError: true,
|
|
613
|
+
retryOptions: {
|
|
614
|
+
maxRetries: 3,
|
|
615
|
+
initialDelayMs: 1000,
|
|
616
|
+
retryableStatusCodes: [
|
|
617
|
+
429,
|
|
618
|
+
503,
|
|
619
|
+
504,
|
|
620
|
+
],
|
|
621
|
+
onRetry: (attempt, error, delay) => {
|
|
622
|
+
this.debug(`Retry ${attempt} after ${delay}ms: ${error.message}`);
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
onProgress: (completed, total) => {
|
|
626
|
+
// Update job progress for async operations
|
|
627
|
+
if (jobId) {
|
|
628
|
+
jobManager.updateProgress(jobId, {
|
|
629
|
+
current: completed,
|
|
630
|
+
total: total,
|
|
631
|
+
message: `Copying entries: ${completed}/${total}`,
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
if (completed % 10 === 0 || completed === total) {
|
|
635
|
+
this.debug(`Progress: ${completed}/${total} entries copied`);
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
operation: async (entry) => {
|
|
639
|
+
this.debug(`\n=== Processing entry: "${entry.name}" (ID: ${entry.id}, Published: ${entry.published}) ===`);
|
|
640
|
+
// Fetch complete entry with field_values
|
|
641
|
+
// For published entries: use Content API (returns complete data with field_values)
|
|
642
|
+
// For draft entries: use Admin API
|
|
643
|
+
let fullEntry;
|
|
644
|
+
if (entry.published && entry.uuid) {
|
|
645
|
+
this.debug(`Fetching PUBLISHED entry from Content API`);
|
|
646
|
+
try {
|
|
647
|
+
const contentApiData = await entryRepo.getPublishedEntry(sourceSpaceUid, sourceTypeUid, entry.uuid);
|
|
648
|
+
// Content API returns data in { meta, fields } structure
|
|
649
|
+
// Convert to admin format for consistency
|
|
650
|
+
fullEntry = {
|
|
651
|
+
...entry,
|
|
652
|
+
field_values: this.convertContentApiToAdminFormat(contentApiData.fields, sourceType.fields),
|
|
653
|
+
};
|
|
654
|
+
this.debug(`Fetched ${fullEntry.field_values?.length || 0} fields from Content API`);
|
|
655
|
+
}
|
|
656
|
+
catch (error) {
|
|
657
|
+
this.debug(`Content API fetch failed, falling back to Admin API: ${error.message}`);
|
|
658
|
+
fullEntry = (await entryRepo.getEntry(sourceSpaceId, entry.id));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
this.debug(`Fetching DRAFT entry from Admin API`);
|
|
663
|
+
fullEntry = (await entryRepo.getEntry(sourceSpaceId, entry.id));
|
|
664
|
+
}
|
|
665
|
+
this.debug(`fullEntry has ${fullEntry.field_values?.length || 0} field_values`);
|
|
666
|
+
// Generate unique slug
|
|
667
|
+
let targetSlug = fullEntry.slug;
|
|
668
|
+
if (usedSlugs.has(targetSlug)) {
|
|
669
|
+
targetSlug = CopyUtils.generateUniqueUid(targetSlug, Array.from(usedSlugs));
|
|
670
|
+
}
|
|
671
|
+
usedSlugs.add(targetSlug);
|
|
672
|
+
// Create empty entry
|
|
673
|
+
const created = await entryRepo.createEntry(targetSpaceId, {
|
|
674
|
+
name: fullEntry.name,
|
|
675
|
+
slug: targetSlug,
|
|
676
|
+
content_type_id: targetTypeId,
|
|
677
|
+
});
|
|
678
|
+
this.debug(`Created entry with ID: ${created.id}`);
|
|
679
|
+
// Process field values from full entry
|
|
680
|
+
let fieldValues = fullEntry.field_values || [];
|
|
681
|
+
this.debug(`Source field values count: ${fieldValues.length}`);
|
|
682
|
+
// Debug: Log ALL source field values to see what we're getting
|
|
683
|
+
if (fieldValues.length > 0) {
|
|
684
|
+
this.debug(`ALL source field values:\n${JSON.stringify(fieldValues.map((fv) => ({
|
|
685
|
+
field_id: fv.field_id,
|
|
686
|
+
type: fv.type,
|
|
687
|
+
})), null, 2)}`);
|
|
688
|
+
}
|
|
689
|
+
// Debug: Log original location fields from source
|
|
690
|
+
const sourceLocationFields = fieldValues.filter((fv) => fv.type === "locations");
|
|
691
|
+
if (sourceLocationFields.length > 0) {
|
|
692
|
+
this.debug(`SOURCE location fields for "${fullEntry.name}":\n${JSON.stringify(sourceLocationFields, null, 2)}`);
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
this.debug(`NO location fields found in source field_values for "${fullEntry.name}"`);
|
|
696
|
+
}
|
|
697
|
+
if (fieldValues.length > 0) {
|
|
698
|
+
// Remap field IDs
|
|
699
|
+
fieldValues = CopyUtils.remapFieldIds(fieldValues, fieldIdMapping);
|
|
700
|
+
// Remap asset and entry references + transform location fields
|
|
701
|
+
fieldValues = CopyUtils.remapEntryFieldValues(fieldValues, assetMapping, entryMapping);
|
|
702
|
+
// Debug: Log location fields AFTER transformation
|
|
703
|
+
const transformedLocationFields = fieldValues.filter((fv) => fv.type === "locations");
|
|
704
|
+
if (transformedLocationFields.length > 0) {
|
|
705
|
+
this.debug(`TRANSFORMED location fields for "${fullEntry.name}":\n${JSON.stringify(transformedLocationFields, null, 2)}`);
|
|
706
|
+
}
|
|
707
|
+
// Update entry with field values
|
|
708
|
+
await entryRepo.updateEntry(targetSpaceId, created.id, {
|
|
709
|
+
field_values: fieldValues,
|
|
710
|
+
...(fullEntry.category_id &&
|
|
711
|
+
categoryMapping.has(fullEntry.category_id)
|
|
712
|
+
? {
|
|
713
|
+
category_id: categoryMapping.get(fullEntry.category_id),
|
|
714
|
+
}
|
|
715
|
+
: {}),
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
entryMapping.set(fullEntry.id, created.id);
|
|
719
|
+
return created;
|
|
720
|
+
},
|
|
721
|
+
});
|
|
722
|
+
// Count successes and failures
|
|
723
|
+
const successCount = results.filter((r) => r.status === "success").length;
|
|
724
|
+
const failCount = results.filter((r) => r.status === "failed").length;
|
|
725
|
+
count += successCount;
|
|
726
|
+
this.debug(`Type ${sourceTypeId} complete: ${successCount} succeeded, ${failCount} failed`);
|
|
727
|
+
}
|
|
728
|
+
return {
|
|
729
|
+
count,
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Count total entries across all types
|
|
734
|
+
*/
|
|
735
|
+
async countTotalEntries(spaceId, typeIds, entryLimit) {
|
|
736
|
+
const entryRepo = await this.getRepository(EntriesRepository);
|
|
737
|
+
let totalCount = 0;
|
|
738
|
+
for (const typeId of typeIds) {
|
|
739
|
+
// Get total count for this type (first page has meta with total)
|
|
740
|
+
const entries = await entryRepo.getEntries(spaceId, {
|
|
741
|
+
type_id: typeId,
|
|
742
|
+
page: 1,
|
|
743
|
+
per_page: 1,
|
|
744
|
+
});
|
|
745
|
+
const typeCount = entries.meta?.total_entries || 0;
|
|
746
|
+
totalCount += typeCount;
|
|
747
|
+
}
|
|
748
|
+
// Apply entry limit if specified
|
|
749
|
+
return entryLimit
|
|
750
|
+
? Math.min(totalCount, entryLimit * typeIds.length)
|
|
751
|
+
: totalCount;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Execute entry copying asynchronously with progress updates
|
|
755
|
+
*/
|
|
756
|
+
async executeCopyEntriesAsync(jobId, sourceSpaceId, targetSpaceId, typeMapping, assetMapping, categoryMapping, entryLimit) {
|
|
757
|
+
try {
|
|
758
|
+
// Update job status to processing
|
|
759
|
+
jobManager.updateStatus(jobId, "processing");
|
|
760
|
+
// Execute the copy with progress tracking
|
|
761
|
+
const result = await this.copyEntries(sourceSpaceId, targetSpaceId, typeMapping, assetMapping, categoryMapping, entryLimit, jobId);
|
|
762
|
+
// Complete the job with result
|
|
763
|
+
jobManager.completeJob(jobId, {
|
|
764
|
+
entriesCopied: result.count,
|
|
765
|
+
message: `Successfully copied ${result.count} entries`,
|
|
766
|
+
});
|
|
767
|
+
this.debug("Async copy completed successfully", {
|
|
768
|
+
jobId,
|
|
769
|
+
count: result.count,
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
catch (error) {
|
|
773
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
774
|
+
jobManager.failJob(jobId, errorMessage);
|
|
775
|
+
this.debug("Async copy failed", {
|
|
776
|
+
jobId,
|
|
777
|
+
error: errorMessage,
|
|
778
|
+
});
|
|
779
|
+
throw error;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Map API asset type to modyoType for creation
|
|
784
|
+
*/
|
|
785
|
+
mapAssetTypeToModyoType(apiType) {
|
|
786
|
+
const typeMap = {
|
|
787
|
+
Image: "picture",
|
|
788
|
+
image: "picture",
|
|
789
|
+
picture: "picture",
|
|
790
|
+
Picture: "picture",
|
|
791
|
+
Video: "video",
|
|
792
|
+
video: "video",
|
|
793
|
+
Audio: "audio",
|
|
794
|
+
audio: "audio",
|
|
795
|
+
Document: "file",
|
|
796
|
+
document: "file",
|
|
797
|
+
File: "file",
|
|
798
|
+
file: "file",
|
|
799
|
+
};
|
|
800
|
+
return typeMap[apiType] || "file";
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
export const Copy = new SpaceCopyTool();
|
|
804
|
+
//# sourceMappingURL=Copy.js.map
|