@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,550 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Repository for managing Content API entries
|
|
4
|
+
*
|
|
5
|
+
* Handles CRUD operations and bulk actions for content entries within spaces.
|
|
6
|
+
* Entries are content instances of a specific content type (e.g., blog posts, products).
|
|
7
|
+
*/
|
|
8
|
+
export class EntriesRepository extends FetchRepositoryBase {
|
|
9
|
+
/**
|
|
10
|
+
* Bulk deletes multiple entries by UUID
|
|
11
|
+
*
|
|
12
|
+
* Permanently deletes multiple entries in a single operation.
|
|
13
|
+
* This operation is irreversible.
|
|
14
|
+
*
|
|
15
|
+
* Important notes:
|
|
16
|
+
* - Entries must be unpublished before deletion
|
|
17
|
+
* - Uses entry UUIDs (not IDs) for identification
|
|
18
|
+
* - Target locale defaults to 'en'
|
|
19
|
+
*
|
|
20
|
+
* @param spaceId - The ID of the space containing the entries
|
|
21
|
+
* @param entries - Array of entry UUIDs to delete
|
|
22
|
+
* @returns Promise resolving when bulk deletion completes
|
|
23
|
+
* @throws Error if entries are published, not found, API request fails, or authentication is invalid
|
|
24
|
+
*/
|
|
25
|
+
async bulkDeleteEntries(spaceId, entries, locale = "en") {
|
|
26
|
+
try {
|
|
27
|
+
return await this.fetchClient.delete(`/content/spaces/${spaceId}/entries/bulk`, {}, {
|
|
28
|
+
filters: {},
|
|
29
|
+
target_locale: locale,
|
|
30
|
+
uuid: entries,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
this.logger("Failed to bulk delete entries", {
|
|
35
|
+
spaceId,
|
|
36
|
+
entryCount: entries.length,
|
|
37
|
+
error,
|
|
38
|
+
}, "error");
|
|
39
|
+
throw new Error(`Failed to bulk delete ${entries.length} entries from space ${spaceId}: ${error.message}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Performs bulk actions on multiple entries
|
|
44
|
+
*
|
|
45
|
+
* Executes a single action (archive, delete, publish, unpublish) on multiple entries.
|
|
46
|
+
* More efficient than individual operations for large batches.
|
|
47
|
+
*
|
|
48
|
+
* Supported actions:
|
|
49
|
+
* - 'archive': Archives entries (step before delete for published entries)
|
|
50
|
+
* - 'delete': Permanently deletes entries (must be unpublished first)
|
|
51
|
+
* - 'publish': Publishes entries to live site
|
|
52
|
+
* - 'unpublish': Removes entries from live site
|
|
53
|
+
*
|
|
54
|
+
* Important notes:
|
|
55
|
+
* - Archive is required before deleting published entries
|
|
56
|
+
* - Returns success/failure status for each entry
|
|
57
|
+
*
|
|
58
|
+
* @param spaceId - The ID of the space containing the entries
|
|
59
|
+
* @param entries - Array of entry UUIDs to process
|
|
60
|
+
* @param bulk_action - Action to perform ('archive', 'delete', 'publish', 'unpublish')
|
|
61
|
+
* @param target_locale - Target locale for the operation (defaults to 'en')
|
|
62
|
+
* @returns Promise resolving to operation results with per-entry status
|
|
63
|
+
* @throws Error if action fails, entries not found, API request fails, or authentication is invalid
|
|
64
|
+
*/
|
|
65
|
+
async bulkActionEntry(spaceId, entries, bulk_action, target_locale = "en") {
|
|
66
|
+
try {
|
|
67
|
+
return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/bulk`, {
|
|
68
|
+
filters: {},
|
|
69
|
+
target_locale,
|
|
70
|
+
uuid: entries,
|
|
71
|
+
}, {
|
|
72
|
+
queryParams: {
|
|
73
|
+
bulk_action,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
this.logger(`Failed to bulk ${bulk_action} entries`, {
|
|
79
|
+
spaceId,
|
|
80
|
+
entryCount: entries.length,
|
|
81
|
+
bulk_action,
|
|
82
|
+
target_locale,
|
|
83
|
+
error,
|
|
84
|
+
}, "error");
|
|
85
|
+
throw new Error(`Failed to bulk ${bulk_action} ${entries.length} entries in space ${spaceId}: ${error.message}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Archives an entry workflow
|
|
90
|
+
*
|
|
91
|
+
* Archives the workflow associated with an entry. This is required before
|
|
92
|
+
* deleting published entries.
|
|
93
|
+
*
|
|
94
|
+
* Workflow for deleting published entries:
|
|
95
|
+
* 1. Unpublish entry (via bulkActionEntry with 'unpublish')
|
|
96
|
+
* 2. Archive workflow (this method)
|
|
97
|
+
* 3. Delete entry (via bulkActionEntry with 'delete' or deleteEntry)
|
|
98
|
+
*
|
|
99
|
+
* @param spaceId - The ID of the space containing the entry
|
|
100
|
+
* @param workflowId - The ID of the workflow to archive
|
|
101
|
+
* @returns Promise resolving to archive confirmation
|
|
102
|
+
* @throws Error if workflow not found, already archived, API request fails, or authentication is invalid
|
|
103
|
+
*/
|
|
104
|
+
async archiveEntry(spaceId, workflowId) {
|
|
105
|
+
try {
|
|
106
|
+
return await this.fetchClient.post(`/workflows/${workflowId}/archive`, {
|
|
107
|
+
app_id: spaceId,
|
|
108
|
+
app_type: "space",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
this.logger("Failed to archive entry workflow", {
|
|
113
|
+
spaceId,
|
|
114
|
+
workflowId,
|
|
115
|
+
error,
|
|
116
|
+
}, "error");
|
|
117
|
+
throw new Error(`Failed to archive workflow ${workflowId} for space ${spaceId}: ${error.message}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Creates a new content entry
|
|
122
|
+
*
|
|
123
|
+
* Creates a new entry instance of a specific content type within a space.
|
|
124
|
+
* Entry is created as a draft and must be published separately.
|
|
125
|
+
*
|
|
126
|
+
* Important notes:
|
|
127
|
+
* - Entry structure must match content type field definitions
|
|
128
|
+
* - All required fields from content type must be provided
|
|
129
|
+
* - Entry created in default locale (usually 'en')
|
|
130
|
+
* - Use content type slug or UUID for type_uid
|
|
131
|
+
*
|
|
132
|
+
* @param spaceId - The ID of the space to create entry in
|
|
133
|
+
* @param entry - Entry creation data
|
|
134
|
+
* @param entry.type_uid - Content type slug or UUID
|
|
135
|
+
* @param entry.fields - Entry field values matching content type schema
|
|
136
|
+
* @param entry.locale - Entry locale (default: 'en')
|
|
137
|
+
* @returns Promise resolving to created entry data with UUID and workflow info
|
|
138
|
+
* @throws Error if validation fails, type not found, API request fails, or authentication is invalid
|
|
139
|
+
*/
|
|
140
|
+
async createEntry(spaceId, entry, targetLocale) {
|
|
141
|
+
if (targetLocale) {
|
|
142
|
+
return this.fetchClient.post(`/content/spaces/${spaceId}/entries`, entry, {
|
|
143
|
+
queryParams: {
|
|
144
|
+
target_locale: targetLocale,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return this.create(`/content/spaces/${spaceId}/entries`, entry);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Permanently deletes a single entry
|
|
152
|
+
*
|
|
153
|
+
* Important restrictions:
|
|
154
|
+
* - Entry must be unpublished before deletion
|
|
155
|
+
* - Deletion is permanent and cannot be undone
|
|
156
|
+
* - Use bulkDeleteEntries for deleting multiple entries
|
|
157
|
+
*
|
|
158
|
+
* @param spaceId - The ID of the space containing the entry
|
|
159
|
+
* @param entryId - The ID of the entry to delete
|
|
160
|
+
* @returns Promise resolving when deletion completes
|
|
161
|
+
* @throws Error if entry is published, not found, API request fails, or authentication is invalid
|
|
162
|
+
*/
|
|
163
|
+
async deleteEntry(spaceId, entryId) {
|
|
164
|
+
try {
|
|
165
|
+
return await this.delete(`/content/spaces/${spaceId}/entries`, entryId);
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
this.logger("Failed to delete entry", {
|
|
169
|
+
spaceId,
|
|
170
|
+
entryId,
|
|
171
|
+
error,
|
|
172
|
+
}, "error");
|
|
173
|
+
throw new Error(`Failed to delete entry ${entryId} from space ${spaceId}: ${error.message}`);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Retrieves a single entry by ID
|
|
178
|
+
*
|
|
179
|
+
* Returns complete entry data including all field values, workflow status,
|
|
180
|
+
* and metadata.
|
|
181
|
+
*
|
|
182
|
+
* @param spaceId - The ID of the space containing the entry
|
|
183
|
+
* @param entryId - The numeric ID of the entry to retrieve
|
|
184
|
+
* @returns Promise resolving to entry data with all fields and metadata
|
|
185
|
+
* @throws Error if entry not found, API request fails, or authentication is invalid
|
|
186
|
+
*/
|
|
187
|
+
async getEntry(spaceId, entryId, targetLocale) {
|
|
188
|
+
if (targetLocale) {
|
|
189
|
+
return this.fetchClient.get(`/content/spaces/${spaceId}/entries/${entryId}`, {
|
|
190
|
+
queryParams: {
|
|
191
|
+
target_locale: targetLocale,
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
return this.getById(`/content/spaces/${spaceId}/entries`, entryId);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Fetches a PUBLISHED entry from the Content API (public endpoint)
|
|
199
|
+
*
|
|
200
|
+
* The Content API returns complete entry data including field_values,
|
|
201
|
+
* unlike the Admin API which may return empty field_values.
|
|
202
|
+
*
|
|
203
|
+
* Important: This only works for PUBLISHED entries.
|
|
204
|
+
*
|
|
205
|
+
* @param spaceUid - The UID (not ID) of the space
|
|
206
|
+
* @param typeUid - The UID (not ID) of the content type
|
|
207
|
+
* @param entryUuid - The UUID (not ID) of the entry
|
|
208
|
+
* @returns Promise resolving to complete entry data with all field values
|
|
209
|
+
* @throws Error if entry is not published or not found
|
|
210
|
+
*/
|
|
211
|
+
async getPublishedEntry(spaceUid, typeUid, entryUuid) {
|
|
212
|
+
// Content API uses /api/content (not /api/admin/content)
|
|
213
|
+
// and requires UIDs/UUIDs instead of IDs
|
|
214
|
+
return this.fetchClient.get(`/content/spaces/${spaceUid}/types/${typeUid}/entries/${entryUuid}`);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Gets a published entry's numeric ID by looking it up via the Admin API's
|
|
218
|
+
* UID-based endpoint, which can return published-only entries.
|
|
219
|
+
*
|
|
220
|
+
* Uses the same path as getPublishedEntry but extracts the numeric ID
|
|
221
|
+
* from the response (Admin API variant returns id field).
|
|
222
|
+
*
|
|
223
|
+
* @param spaceUid - The UID of the space
|
|
224
|
+
* @param typeUid - The UID of the content type
|
|
225
|
+
* @param entryUuid - The UUID of the entry
|
|
226
|
+
* @returns The numeric entry ID, or undefined if not found or no id in response
|
|
227
|
+
*/
|
|
228
|
+
async getPublishedEntryId(spaceUid, typeUid, entryUuid) {
|
|
229
|
+
try {
|
|
230
|
+
const entry = await this.getPublishedEntry(spaceUid, typeUid, entryUuid);
|
|
231
|
+
// Admin API response may include id directly or nested in meta
|
|
232
|
+
return entry?.id ?? entry?.meta?.id;
|
|
233
|
+
}
|
|
234
|
+
catch (error) {
|
|
235
|
+
this.logger("Failed to resolve published entry ID", {
|
|
236
|
+
spaceUid,
|
|
237
|
+
typeUid,
|
|
238
|
+
entryUuid,
|
|
239
|
+
error,
|
|
240
|
+
}, "error");
|
|
241
|
+
return undefined;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Searches for a published entry by slug using the public Content API.
|
|
246
|
+
*
|
|
247
|
+
* The Admin API list endpoint does not return published-only entries
|
|
248
|
+
* (entries without a pending draft version). The Content API at
|
|
249
|
+
* /api/content always returns published entries and supports meta.slug filter.
|
|
250
|
+
*
|
|
251
|
+
* @param spaceUid - The UID (not ID) of the space
|
|
252
|
+
* @param typeUid - The UID (not ID) of the content type
|
|
253
|
+
* @param slug - The slug to search for
|
|
254
|
+
* @returns The entry's UUID if found, undefined otherwise
|
|
255
|
+
*/
|
|
256
|
+
async findPublishedEntryUuidBySlug(spaceUid, typeUid, slug) {
|
|
257
|
+
try {
|
|
258
|
+
const url = `${this.modyoBaseUrl}/api/content/spaces/${spaceUid}/types/${typeUid}/entries`;
|
|
259
|
+
const data = await this.fetchClient.get(url, {
|
|
260
|
+
queryParams: {
|
|
261
|
+
"meta.slug": slug,
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
const entry = data.entries?.find((e) => e.meta?.slug === slug);
|
|
265
|
+
return entry?.meta?.uuid;
|
|
266
|
+
}
|
|
267
|
+
catch {
|
|
268
|
+
return undefined;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Retrieves a paginated list of entries for a space
|
|
273
|
+
*
|
|
274
|
+
* Supports filtering, sorting, and pagination for efficient data retrieval.
|
|
275
|
+
*
|
|
276
|
+
* @param spaceId - The ID of the space to list entries from
|
|
277
|
+
* @param queryParams - Optional query parameters
|
|
278
|
+
* @param queryParams.type - Filter by content type slug or UUID
|
|
279
|
+
* @param queryParams.category - Filter by category slug
|
|
280
|
+
* @param queryParams.locale - Filter by locale (default: 'en')
|
|
281
|
+
* @param queryParams.query - Search query string
|
|
282
|
+
* @param queryParams.page - Page number for pagination (default: 1)
|
|
283
|
+
* @param queryParams.per_page - Items per page (default: 15)
|
|
284
|
+
* @param queryParams.sort_by - Field to sort by
|
|
285
|
+
* @param queryParams.order - Sort order ('asc' or 'desc')
|
|
286
|
+
* @returns Promise resolving to paginated list of entries with metadata
|
|
287
|
+
* @throws Error if API request fails or authentication is invalid
|
|
288
|
+
*/
|
|
289
|
+
async getEntries(spaceId, queryParams, targetLocale) {
|
|
290
|
+
const params = targetLocale
|
|
291
|
+
? {
|
|
292
|
+
...queryParams,
|
|
293
|
+
target_locale: targetLocale,
|
|
294
|
+
}
|
|
295
|
+
: queryParams;
|
|
296
|
+
return this.list(`/content/spaces/${spaceId}/entries`, params);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Updates an existing entry
|
|
300
|
+
*
|
|
301
|
+
* Partial updates supported - only include fields to change.
|
|
302
|
+
* Updated entry remains in current workflow state (draft/published).
|
|
303
|
+
*
|
|
304
|
+
* Important notes:
|
|
305
|
+
* - Only mutable fields can be updated
|
|
306
|
+
* - System fields (id, uuid, created_at) are read-only
|
|
307
|
+
* - Updating published entry creates a new draft version
|
|
308
|
+
*
|
|
309
|
+
* @param spaceId - The ID of the space containing the entry
|
|
310
|
+
* @param entryId - The ID of the entry to update
|
|
311
|
+
* @param entry - Entry update data (partial)
|
|
312
|
+
* @param entry.fields - Field values to update
|
|
313
|
+
* @param entry.category - Updated category slug
|
|
314
|
+
* @param entry.tags - Updated tags array
|
|
315
|
+
* @returns Promise resolving to updated entry data
|
|
316
|
+
* @throws Error if validation fails, entry not found, API request fails, or authentication is invalid
|
|
317
|
+
*/
|
|
318
|
+
async updateEntry(spaceId, entryId, entry, targetLocale) {
|
|
319
|
+
if (targetLocale) {
|
|
320
|
+
return this.fetchClient.put(`/content/spaces/${spaceId}/entries/${entryId}`, entry, {
|
|
321
|
+
queryParams: {
|
|
322
|
+
target_locale: targetLocale,
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
return this.update(`/content/spaces/${spaceId}/entries`, entryId, entry);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Publishes a single entry to the live site
|
|
330
|
+
*
|
|
331
|
+
* Makes the entry content visible on the public API.
|
|
332
|
+
* Entry ID may change after publishing - use UUID for stable references.
|
|
333
|
+
*
|
|
334
|
+
* Important notes:
|
|
335
|
+
* - Entry must have all required fields filled
|
|
336
|
+
* - Entry ID may change after publishing
|
|
337
|
+
* - UUID remains stable across publish cycles
|
|
338
|
+
*
|
|
339
|
+
* @param spaceId - The ID of the space containing the entry
|
|
340
|
+
* @param entryId - The ID of the entry to publish
|
|
341
|
+
* @param options - Optional publish options
|
|
342
|
+
* @param options.publish_at - ISO date string for scheduled publish (empty for immediate)
|
|
343
|
+
* @param options.unpublish_at - ISO date string for scheduled unpublish
|
|
344
|
+
* @param options.force_publish - Force publish even if validation warnings exist
|
|
345
|
+
* @returns Promise resolving to published entry data
|
|
346
|
+
* @throws Error if entry not found, validation fails, API request fails, or authentication is invalid
|
|
347
|
+
*/
|
|
348
|
+
async publishEntry(spaceId, entryId, options) {
|
|
349
|
+
try {
|
|
350
|
+
return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/publish`, {
|
|
351
|
+
entry: {
|
|
352
|
+
publish_at: options?.publish_at ?? "",
|
|
353
|
+
unpublish_at: options?.unpublish_at ?? "",
|
|
354
|
+
force_publish: options?.force_publish ?? false,
|
|
355
|
+
},
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
catch (error) {
|
|
359
|
+
this.logger("Failed to publish entry", {
|
|
360
|
+
spaceId,
|
|
361
|
+
entryId,
|
|
362
|
+
error,
|
|
363
|
+
}, "error");
|
|
364
|
+
throw new Error(`Failed to publish entry ${entryId} in space ${spaceId}: ${error.message}`);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Unpublishes a single entry from the live site
|
|
369
|
+
*
|
|
370
|
+
* Removes the entry from the public API while keeping it in draft state.
|
|
371
|
+
*
|
|
372
|
+
* Important notes:
|
|
373
|
+
* - Entry must be currently published
|
|
374
|
+
* - Entry will return to draft state
|
|
375
|
+
*
|
|
376
|
+
* @param spaceId - The ID of the space containing the entry
|
|
377
|
+
* @param entryId - The ID of the entry to unpublish
|
|
378
|
+
* @returns Promise resolving to unpublished entry data
|
|
379
|
+
* @throws Error if entry not found, not published, API request fails, or authentication is invalid
|
|
380
|
+
*/
|
|
381
|
+
async unpublishEntry(spaceId, entryId, options) {
|
|
382
|
+
try {
|
|
383
|
+
return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/unpublish`, {
|
|
384
|
+
entry: {
|
|
385
|
+
unpublish_at: options?.unpublish_at ?? "",
|
|
386
|
+
},
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
catch (error) {
|
|
390
|
+
this.logger("Failed to unpublish entry", {
|
|
391
|
+
spaceId,
|
|
392
|
+
entryId,
|
|
393
|
+
error,
|
|
394
|
+
}, "error");
|
|
395
|
+
throw new Error(`Failed to unpublish entry ${entryId} in space ${spaceId}: ${error.message}`);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Creates a copy/clone of an existing entry
|
|
400
|
+
*
|
|
401
|
+
* Duplicates an entry with all its field values in the same space.
|
|
402
|
+
* The new entry is created as a draft with a new UUID and ID.
|
|
403
|
+
*
|
|
404
|
+
* Important notes:
|
|
405
|
+
* - The new entry is created as a draft
|
|
406
|
+
* - All field values are copied from the source entry
|
|
407
|
+
* - A new UUID is generated for the cloned entry
|
|
408
|
+
* - The slug will be auto-generated (usually source-slug-copy or similar)
|
|
409
|
+
*
|
|
410
|
+
* @param spaceId - The ID of the space containing the entry
|
|
411
|
+
* @param entryId - The ID of the entry to copy
|
|
412
|
+
* @param uuid - The UUID of the entry to copy
|
|
413
|
+
* @returns Promise resolving to the newly created entry data
|
|
414
|
+
* @throws Error if entry not found, API request fails, or authentication is invalid
|
|
415
|
+
*/
|
|
416
|
+
async copyEntry(spaceId, entryId, uuid) {
|
|
417
|
+
try {
|
|
418
|
+
return await this.fetchClient.post(`/content/spaces/${spaceId}/entries/${entryId}/copy`, {
|
|
419
|
+
uuid,
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
catch (error) {
|
|
423
|
+
this.logger("Failed to copy entry", {
|
|
424
|
+
spaceId,
|
|
425
|
+
entryId,
|
|
426
|
+
uuid,
|
|
427
|
+
error,
|
|
428
|
+
}, "error");
|
|
429
|
+
throw new Error(`Failed to copy entry ${entryId} in space ${spaceId}: ${error.message}`);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Creates a translation of an existing entry in a target locale.
|
|
434
|
+
*
|
|
435
|
+
* Uses the same entries endpoint with `status: "translate"` to signal
|
|
436
|
+
* the API that this is a translation, not a new entry.
|
|
437
|
+
*
|
|
438
|
+
* @param spaceId - The ID of the space
|
|
439
|
+
* @param params - Translation parameters
|
|
440
|
+
* @returns Promise resolving to created translation entry
|
|
441
|
+
*/
|
|
442
|
+
async createTranslation(spaceId, params) {
|
|
443
|
+
try {
|
|
444
|
+
const transformedFieldValues = params.field_values.map((fv) => ({
|
|
445
|
+
id: fv.id ?? null,
|
|
446
|
+
uid: `field_${fv.field_id}`,
|
|
447
|
+
field_id: fv.field_id,
|
|
448
|
+
type: fv.type,
|
|
449
|
+
multi: fv.multi ?? false,
|
|
450
|
+
name: fv.name ?? "",
|
|
451
|
+
hint: null,
|
|
452
|
+
value: fv.value,
|
|
453
|
+
...(fv.parent_id !== undefined
|
|
454
|
+
? {
|
|
455
|
+
parent_id: fv.parent_id,
|
|
456
|
+
}
|
|
457
|
+
: {}),
|
|
458
|
+
validations: {},
|
|
459
|
+
entry: {
|
|
460
|
+
space_id: spaceId,
|
|
461
|
+
locale: params.target_locale,
|
|
462
|
+
},
|
|
463
|
+
}));
|
|
464
|
+
const payload = {
|
|
465
|
+
content_type_id: params.content_type_id,
|
|
466
|
+
space_id: spaceId,
|
|
467
|
+
uuid: params.uuid,
|
|
468
|
+
name: params.name,
|
|
469
|
+
slug: params.slug,
|
|
470
|
+
...(params.category_id !== undefined
|
|
471
|
+
? {
|
|
472
|
+
category_id: params.category_id,
|
|
473
|
+
}
|
|
474
|
+
: {}),
|
|
475
|
+
...(params.excerpt !== undefined
|
|
476
|
+
? {
|
|
477
|
+
excerpt: params.excerpt,
|
|
478
|
+
}
|
|
479
|
+
: {}),
|
|
480
|
+
category_path: null,
|
|
481
|
+
field_values: transformedFieldValues,
|
|
482
|
+
status: "translate",
|
|
483
|
+
target_locale: params.target_locale,
|
|
484
|
+
};
|
|
485
|
+
return await this.fetchClient.post(`/content/spaces/${spaceId}/entries`, payload);
|
|
486
|
+
}
|
|
487
|
+
catch (error) {
|
|
488
|
+
this.logger("Failed to create entry translation", {
|
|
489
|
+
spaceId,
|
|
490
|
+
uuid: params.uuid,
|
|
491
|
+
target_locale: params.target_locale,
|
|
492
|
+
error,
|
|
493
|
+
}, "error");
|
|
494
|
+
throw new Error(`Failed to create ${params.target_locale} translation for entry ${params.uuid} in space ${spaceId}: ${error.message}`);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Fetches all entries from all pages in parallel
|
|
499
|
+
*
|
|
500
|
+
* First gets page 1 to determine total count, then fetches remaining pages
|
|
501
|
+
* concurrently using Promise.all for maximum throughput.
|
|
502
|
+
*
|
|
503
|
+
* @param spaceId - The ID of the space to fetch entries from
|
|
504
|
+
* @param options - Optional filters
|
|
505
|
+
* @param options.type_id - Filter by content type ID
|
|
506
|
+
* @returns Promise resolving to array of all entries across all pages
|
|
507
|
+
*/
|
|
508
|
+
async getAllEntries(spaceId, options = {}) {
|
|
509
|
+
const perPage = 100;
|
|
510
|
+
const { target_locale, ...queryOptions } = options;
|
|
511
|
+
// Include all entry states to ensure no entries are missed.
|
|
512
|
+
// The Admin API default listing may exclude entries without a pending draft.
|
|
513
|
+
const statesParam = {
|
|
514
|
+
states: [
|
|
515
|
+
"draft",
|
|
516
|
+
"published",
|
|
517
|
+
"unpublished",
|
|
518
|
+
],
|
|
519
|
+
};
|
|
520
|
+
const firstPage = await this.getEntries(spaceId, {
|
|
521
|
+
page: 1,
|
|
522
|
+
per_page: perPage,
|
|
523
|
+
...statesParam,
|
|
524
|
+
...queryOptions,
|
|
525
|
+
}, target_locale);
|
|
526
|
+
const totalEntries = firstPage.meta?.total_entries || 0;
|
|
527
|
+
const totalPages = Math.ceil(totalEntries / perPage);
|
|
528
|
+
if (totalPages <= 1) {
|
|
529
|
+
return firstPage.entries || [];
|
|
530
|
+
}
|
|
531
|
+
const pagePromises = [];
|
|
532
|
+
for (let page = 2; page <= totalPages; page++) {
|
|
533
|
+
pagePromises.push(this.getEntries(spaceId, {
|
|
534
|
+
page,
|
|
535
|
+
per_page: perPage,
|
|
536
|
+
...statesParam,
|
|
537
|
+
...queryOptions,
|
|
538
|
+
}, target_locale));
|
|
539
|
+
}
|
|
540
|
+
const remainingPages = await Promise.all(pagePromises);
|
|
541
|
+
const allEntries = [
|
|
542
|
+
...(firstPage.entries || []),
|
|
543
|
+
];
|
|
544
|
+
for (const pageResult of remainingPages) {
|
|
545
|
+
allEntries.push(...(pageResult.entries || []));
|
|
546
|
+
}
|
|
547
|
+
return allEntries;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
//# sourceMappingURL=EntriesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntriesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/content/entries/EntriesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA6DvD;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IACxD;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA0C,EAC1C,OAA0C,EAC1C,MAAM,GAAG,IAAI;QAEb,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAClC,mBAAmB,OAAO,eAAe,EACzC,EAAE,EACF;gBACE,OAAO,EAAE,EAAE;gBACX,aAAa,EAAE,MAAM;gBACrB,IAAI,EAAE,OAAO;aACd,CACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CACT,+BAA+B,EAC/B;gBACE,OAAO;gBACP,UAAU,EAAE,OAAO,CAAC,MAAM;gBAC1B,KAAK;aACN,EACD,OAAO,CACR,CAAC;YACF,MAAM,IAAI,KAAK,CACb,yBAAyB,OAAO,CAAC,MAAM,uBAAuB,OAAO,KAAM,KAAe,CAAC,OAAO,EAAE,CACrG,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAA0C,EAC1C,WAA2D,EAC3D,aAAa,GAAG,IAAI;QAEpB,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAIhC,mBAAmB,OAAO,eAAe,EACzC;gBACE,OAAO,EAAE,EAAE;gBACX,aAAa;gBACb,IAAI,EAAE,OAAO;aACd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;YAC9C,YAAY,CAAC,IAAI,CACf,IAAI,CAAC,UAAU,CACb,OAAO,EACP;gBACE,IAAI;gBACJ,QAAQ,EAAE,OAAO;gBACjB,GAAG,WAAW;gBACd,GAAG,YAAY;aACQ,EACzB,aAAa,CACd,CACF,CAAC;QACJ,CAAC;QAED,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACvD,MAAM,UAAU,GAAG;YACjB,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC;SAC7B,CAAC;QACF,KAAK,MAAM,UAAU,IAAI,cAAc,EAAE,CAAC;YACxC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { ParamsSchema as GetSpacesParams } from "../../../tools/content/spaces/Get.js";
|
|
3
|
+
import type { ParamsSchema as ListSpacesParams } from "../../../tools/content/spaces/List.js";
|
|
4
|
+
import type { CreateSpaceRequest, ListSpaces } from "./SpacesTypes.js";
|
|
5
|
+
type ListSpace = Omit<ListSpacesParams, "platformSlug">;
|
|
6
|
+
type GetSpace = Omit<GetSpacesParams, "platformSlug">;
|
|
7
|
+
type CreateSpace = Partial<CreateSpaceRequest>;
|
|
8
|
+
type UpdateSpace = {
|
|
9
|
+
spaceId: number;
|
|
10
|
+
} & Partial<CreateSpaceRequest>;
|
|
11
|
+
type UpdateSpaceData = Partial<CreateSpaceRequest>;
|
|
12
|
+
export declare class SpacesRepository extends FetchRepositoryBase {
|
|
13
|
+
getSpaces(queryParams?: ListSpace): Promise<ListSpaces>;
|
|
14
|
+
getSpace(spaceId: GetSpace["spaceId"]): Promise<ListSpaces["spaces"][number]>;
|
|
15
|
+
updateSpace(spaceId: UpdateSpace["spaceId"], space: Partial<UpdateSpaceData>): Promise<ListSpaces["spaces"][number]>;
|
|
16
|
+
deleteSpace(spaceId: number, validationName: string): Promise<void>;
|
|
17
|
+
createSpace(space: Partial<CreateSpace>): Promise<ListSpaces["spaces"][number]>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=SpacesRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacesRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/content/spaces/SpacesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGvE,KAAK,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AACxD,KAAK,QAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC/C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAChC,KAAK,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACnD,qBAAa,gBAAiB,SAAQ,mBAAmB;IACjD,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;IAIvD,QAAQ,CACZ,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC3B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAOlC,WAAW,CACf,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,GAC9B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAQlC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASnE,WAAW,CACf,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAC1B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;CASzC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export class SpacesRepository extends FetchRepositoryBase {
|
|
3
|
+
async getSpaces(queryParams) {
|
|
4
|
+
return this.list("/content/spaces", queryParams);
|
|
5
|
+
}
|
|
6
|
+
async getSpace(spaceId) {
|
|
7
|
+
return this.getById("/content/spaces", spaceId);
|
|
8
|
+
}
|
|
9
|
+
async updateSpace(spaceId, space) {
|
|
10
|
+
return this.update("/content/spaces", spaceId, space);
|
|
11
|
+
}
|
|
12
|
+
async deleteSpace(spaceId, validationName) {
|
|
13
|
+
return this.fetchClient.delete(`/content/spaces/${spaceId}`, {
|
|
14
|
+
queryParams: {
|
|
15
|
+
validation: validationName,
|
|
16
|
+
},
|
|
17
|
+
encodeSpaces: true,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
async createSpace(space) {
|
|
21
|
+
return this.create("/content/spaces", space);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=SpacesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/content/spaces/SpacesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAavD,MAAM,OAAO,gBAAiB,SAAQ,mBAAmB;IACvD,KAAK,CAAC,SAAS,CAAC,WAAuB;QACrC,OAAO,IAAI,CAAC,IAAI,CAAwB,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA4B;QAE5B,OAAO,IAAI,CAAC,OAAO,CACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CACf,OAA+B,EAC/B,KAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAChB,iBAAiB,EACjB,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAe,EAAE,cAAsB;QACvD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,mBAAmB,OAAO,EAAE,EAAE;YAC3D,WAAW,EAAE;gBACX,UAAU,EAAE,cAAc;aAC3B;YACD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CACf,KAA2B;QAE3B,OAAO,IAAI,CAAC,MAAM,CAChB,iBAAiB,EACjB,KAAK,CACN,CAAC;IACJ,CAAC;CAIF"}
|