@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,190 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { CreatePageRequest, CreatePageResponse, ListPagesParams, ListPagesResponse, PageActivityResponse, PageResponse, PageTemplateResponse, UnpublishPageRequest, UpdatePageRequest, UpdatePageResponse } from "./PagesTypes.js";
|
|
3
|
+
/**
|
|
4
|
+
* Repository for managing Modyo layout pages (widget, content, and origination pages)
|
|
5
|
+
*
|
|
6
|
+
* Supports three page types:
|
|
7
|
+
* - Widget pages: Accept custom widgets with grid layouts
|
|
8
|
+
* - Content pages: Display content from Content API with Liquid templates
|
|
9
|
+
* - Origination pages: Multi-step form workflows
|
|
10
|
+
*/
|
|
11
|
+
export declare class PagesRepository extends FetchRepositoryBase {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a paginated list of layout pages for a site
|
|
14
|
+
*
|
|
15
|
+
* @param siteId - The ID of the site
|
|
16
|
+
* @param queryParams - Optional query parameters for filtering and pagination
|
|
17
|
+
* @param queryParams.query - Search query to filter pages by name or path
|
|
18
|
+
* @param queryParams.states - Filter by page states (e.g., 'draft', 'published')
|
|
19
|
+
* @param queryParams.type - Filter by page type
|
|
20
|
+
* @param queryParams.show_archived - Include archived pages in results
|
|
21
|
+
* @param queryParams.page - Page number for pagination (default: 1)
|
|
22
|
+
* @param queryParams.per_page - Items per page (default: 100)
|
|
23
|
+
* @param queryParams.sort_by - Field to sort by (name, path, created_at, updated_at)
|
|
24
|
+
* @param queryParams.order - Sort order (asc, desc)
|
|
25
|
+
* @returns Promise resolving to paginated list of pages with metadata
|
|
26
|
+
* @throws Error if API request fails or authentication is invalid
|
|
27
|
+
*/
|
|
28
|
+
getPages(siteId: number, queryParams?: ListPagesParams): Promise<ListPagesResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Fetches all pages from all pages in parallel
|
|
31
|
+
*
|
|
32
|
+
* @param siteId - The ID of the site
|
|
33
|
+
* @returns Promise resolving to array of all pages across all pages
|
|
34
|
+
*/
|
|
35
|
+
getAllPages(siteId: number): Promise<ListPagesResponse["layout_pages"]>;
|
|
36
|
+
/**
|
|
37
|
+
* Recursively flattens nested page hierarchy into a single-level array.
|
|
38
|
+
* The API returns pages with nested `children[]` — grandchild+ pages
|
|
39
|
+
* are invisible without flattening.
|
|
40
|
+
*/
|
|
41
|
+
private flattenPages;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new layout page in a site
|
|
44
|
+
*
|
|
45
|
+
* Page types:
|
|
46
|
+
* - 'custom' or 'default': Widget pages that accept custom widgets
|
|
47
|
+
* - 'content' or 'entry': Content pages connected to Content API
|
|
48
|
+
* - 'origination': Form workflow pages
|
|
49
|
+
*
|
|
50
|
+
* Important notes:
|
|
51
|
+
* - Widget pages require grid_type (e.g., 'full_grid', 'side_left_grid')
|
|
52
|
+
* - Content pages require content_type_id to connect to content type
|
|
53
|
+
* - Path should not include leading slash (use 'blog' not '/blog')
|
|
54
|
+
* - Home page path is '/' or empty string
|
|
55
|
+
*
|
|
56
|
+
* @param siteId - The ID of the site
|
|
57
|
+
* @param data - Page creation data
|
|
58
|
+
* @param data.name - Page name (displayed in admin)
|
|
59
|
+
* @param data.path - URL path without leading slash
|
|
60
|
+
* @param data.type - Page type ('custom', 'content', 'origination')
|
|
61
|
+
* @param data.grid_type - Grid layout for widget pages
|
|
62
|
+
* @param data.content_type_id - Content type ID for content pages (required for content pages)
|
|
63
|
+
* @param data.has_router - Enable routing (client-side for widgets, server-side for content)
|
|
64
|
+
* @returns Promise resolving to created page data
|
|
65
|
+
* @throws Error if API request fails, validation fails, or authentication is invalid
|
|
66
|
+
*/
|
|
67
|
+
createPage(siteId: number, data: CreatePageRequest): Promise<CreatePageResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves a single page by ID with full details
|
|
70
|
+
*
|
|
71
|
+
* Returns complete page data including content, CSS, JS, meta tags, widgets, and templates
|
|
72
|
+
*
|
|
73
|
+
* @param siteId - The ID of the site
|
|
74
|
+
* @param pageId - The ID of the page
|
|
75
|
+
* @returns Promise resolving to page data with all details
|
|
76
|
+
* @throws Error if page not found, API request fails, or authentication is invalid
|
|
77
|
+
*/
|
|
78
|
+
getPage(siteId: number, pageId: number): Promise<PageResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Updates an existing layout page
|
|
81
|
+
*
|
|
82
|
+
* Partial updates supported - only include fields to change.
|
|
83
|
+
* Can update page properties, widgets, templates, content, CSS, and JS.
|
|
84
|
+
*
|
|
85
|
+
* Important notes:
|
|
86
|
+
* - Updating widgets replaces entire widget array (not merged)
|
|
87
|
+
* - Updating templates replaces entire template array (not merged)
|
|
88
|
+
* - Use empty path ('') for home page
|
|
89
|
+
*
|
|
90
|
+
* @param siteId - The ID of the site
|
|
91
|
+
* @param pageId - The ID of the page to update
|
|
92
|
+
* @param data - Page update data (partial)
|
|
93
|
+
* @param data.name - Updated page name
|
|
94
|
+
* @param data.path - Updated URL path
|
|
95
|
+
* @param data.widgets - Complete widget array (replaces existing)
|
|
96
|
+
* @param data.templates - Complete template array for content pages (replaces existing)
|
|
97
|
+
* @param data.content - HTML content
|
|
98
|
+
* @param data.css - Custom CSS
|
|
99
|
+
* @param data.js - Custom JavaScript
|
|
100
|
+
* @returns Promise resolving to updated page data
|
|
101
|
+
* @throws Error if page not found, validation fails, API request fails, or authentication is invalid
|
|
102
|
+
*/
|
|
103
|
+
updatePage(siteId: number, pageId: number, data: UpdatePageRequest): Promise<UpdatePageResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Permanently deletes a layout page
|
|
106
|
+
*
|
|
107
|
+
* Workflow for deleting published pages:
|
|
108
|
+
* 1. Unpublish page (unpublishPage)
|
|
109
|
+
* 2. Archive workflow
|
|
110
|
+
* 3. Delete page (this method)
|
|
111
|
+
*
|
|
112
|
+
* Important restrictions:
|
|
113
|
+
* - Cannot delete published pages directly - must unpublish first
|
|
114
|
+
* - Cannot delete home pages via API (Modyo platform protection)
|
|
115
|
+
* - Deletion is permanent and cannot be undone
|
|
116
|
+
*
|
|
117
|
+
* @param siteId - The ID of the site
|
|
118
|
+
* @param pageId - The ID of the page to delete
|
|
119
|
+
* @returns Promise resolving when deletion completes
|
|
120
|
+
* @throws Error if page is published, is home page, API request fails, or authentication is invalid
|
|
121
|
+
*/
|
|
122
|
+
deletePage(siteId: number, pageId: number): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves page activity history
|
|
125
|
+
*
|
|
126
|
+
* Returns chronological list of actions performed on the page
|
|
127
|
+
* (creation, updates, publishing, archiving, etc.)
|
|
128
|
+
*
|
|
129
|
+
* @param siteId - The ID of the site
|
|
130
|
+
* @param pageId - The ID of the page
|
|
131
|
+
* @returns Promise resolving to activity log with user and timestamp data
|
|
132
|
+
* @throws Error if page not found, API request fails, or authentication is invalid
|
|
133
|
+
*/
|
|
134
|
+
getPageActivity(siteId: number, pageId: number): Promise<PageActivityResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves page template content
|
|
137
|
+
*
|
|
138
|
+
* For content pages, retrieves Liquid template body for index or show views
|
|
139
|
+
*
|
|
140
|
+
* @param siteId - The ID of the site
|
|
141
|
+
* @param pageId - The ID of the page
|
|
142
|
+
* @param queryParams - Optional query parameters
|
|
143
|
+
* @param queryParams.type - Template type ('index' or 'show')
|
|
144
|
+
* @param queryParams.version - Template version number
|
|
145
|
+
* @returns Promise resolving to template content and metadata
|
|
146
|
+
* @throws Error if page not found, template not found, API request fails, or authentication is invalid
|
|
147
|
+
*/
|
|
148
|
+
getPageTemplate(siteId: number, pageId: number, queryParams?: {
|
|
149
|
+
type?: string;
|
|
150
|
+
version?: number;
|
|
151
|
+
}): Promise<PageTemplateResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Unpublishes a layout page (removes from live site)
|
|
154
|
+
*
|
|
155
|
+
* This is Step 1 in the published page deletion workflow:
|
|
156
|
+
* 1. Unpublish page (this method) - Removes from live site
|
|
157
|
+
* 2. Archive workflow - Closes the workflow
|
|
158
|
+
* 3. Delete page - Permanently removes page
|
|
159
|
+
*
|
|
160
|
+
* Scheduling options:
|
|
161
|
+
* - Immediate unpublish: Omit data parameter or pass empty object
|
|
162
|
+
* - Scheduled unpublish: Provide unpublish_at with ISO 8601 date
|
|
163
|
+
*
|
|
164
|
+
* Important restrictions:
|
|
165
|
+
* - Cannot unpublish home pages via API (Modyo platform protection)
|
|
166
|
+
* - Home pages identified by path '/' or '' or page_type 'home'/'homelayoutpage'
|
|
167
|
+
*
|
|
168
|
+
* @param siteId - The ID of the site
|
|
169
|
+
* @param pageId - The ID of the page to unpublish
|
|
170
|
+
* @param data - Optional scheduling parameters
|
|
171
|
+
* @param data.unpublish_at - ISO 8601 date for scheduled unpublish (omit for immediate)
|
|
172
|
+
* @param data.publish_at - ISO 8601 date for re-publishing
|
|
173
|
+
* @returns Promise resolving when unpublish operation completes or is scheduled
|
|
174
|
+
* @throws Error if page is home page, not published, API request fails, or authentication is invalid
|
|
175
|
+
*/
|
|
176
|
+
unpublishPage(siteId: number, pageId: number, data?: UnpublishPageRequest): Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* Creates a copy of an existing page
|
|
179
|
+
*
|
|
180
|
+
* Copies all page properties, widgets, templates, content, CSS, and JS.
|
|
181
|
+
* New page is created as a draft with name suffixed with "(copy)"
|
|
182
|
+
*
|
|
183
|
+
* @param siteId - The ID of the site
|
|
184
|
+
* @param pageId - The ID of the page to copy
|
|
185
|
+
* @returns Promise resolving to newly created page data
|
|
186
|
+
* @throws Error if source page not found, API request fails, or authentication is invalid
|
|
187
|
+
*/
|
|
188
|
+
copyPage(siteId: number, pageId: number): Promise<CreatePageResponse>;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=PagesRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagesRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/pages/PagesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;GAOG;AACH,qBAAa,eAAgB,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;;OAeG;IACG,QAAQ,CACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,eAAe,GAC5B,OAAO,CAAC,iBAAiB,CAAC;IAO7B;;;;;OAKG;IACG,WAAW,CACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAoC7C;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAapB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,UAAU,CACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;;;;;OASG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIpE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,UAAU,CACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,kBAAkB,CAAC;IAQ9B;;;;;;;;;;;;;;;;;OAiBG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB/D;;;;;;;;;;OAUG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,oBAAoB,CAAC;IAMhC;;;;;;;;;;;;OAYG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GACA,OAAO,CAAC,oBAAoB,CAAC;IAShC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,oBAAoB,GAC1B,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;;;;;;OAUG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAM5E"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Repository for managing Modyo layout pages (widget, content, and origination pages)
|
|
4
|
+
*
|
|
5
|
+
* Supports three page types:
|
|
6
|
+
* - Widget pages: Accept custom widgets with grid layouts
|
|
7
|
+
* - Content pages: Display content from Content API with Liquid templates
|
|
8
|
+
* - Origination pages: Multi-step form workflows
|
|
9
|
+
*/
|
|
10
|
+
export class PagesRepository extends FetchRepositoryBase {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a paginated list of layout pages for a site
|
|
13
|
+
*
|
|
14
|
+
* @param siteId - The ID of the site
|
|
15
|
+
* @param queryParams - Optional query parameters for filtering and pagination
|
|
16
|
+
* @param queryParams.query - Search query to filter pages by name or path
|
|
17
|
+
* @param queryParams.states - Filter by page states (e.g., 'draft', 'published')
|
|
18
|
+
* @param queryParams.type - Filter by page type
|
|
19
|
+
* @param queryParams.show_archived - Include archived pages in results
|
|
20
|
+
* @param queryParams.page - Page number for pagination (default: 1)
|
|
21
|
+
* @param queryParams.per_page - Items per page (default: 100)
|
|
22
|
+
* @param queryParams.sort_by - Field to sort by (name, path, created_at, updated_at)
|
|
23
|
+
* @param queryParams.order - Sort order (asc, desc)
|
|
24
|
+
* @returns Promise resolving to paginated list of pages with metadata
|
|
25
|
+
* @throws Error if API request fails or authentication is invalid
|
|
26
|
+
*/
|
|
27
|
+
async getPages(siteId, queryParams) {
|
|
28
|
+
return this.list(`/sites/${siteId}/layout_pages`, queryParams);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Fetches all pages from all pages in parallel
|
|
32
|
+
*
|
|
33
|
+
* @param siteId - The ID of the site
|
|
34
|
+
* @returns Promise resolving to array of all pages across all pages
|
|
35
|
+
*/
|
|
36
|
+
async getAllPages(siteId) {
|
|
37
|
+
const perPage = 100;
|
|
38
|
+
const firstPage = await this.getPages(siteId, {
|
|
39
|
+
page: 1,
|
|
40
|
+
per_page: perPage,
|
|
41
|
+
});
|
|
42
|
+
const totalPages = firstPage.meta?.total_entries || 0;
|
|
43
|
+
const totalPagesCount = Math.ceil(totalPages / perPage);
|
|
44
|
+
if (totalPagesCount <= 1) {
|
|
45
|
+
return this.flattenPages(firstPage.layout_pages || []);
|
|
46
|
+
}
|
|
47
|
+
const pagePromises = [];
|
|
48
|
+
for (let page = 2; page <= totalPagesCount; page++) {
|
|
49
|
+
pagePromises.push(this.getPages(siteId, {
|
|
50
|
+
page,
|
|
51
|
+
per_page: perPage,
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
const remainingPages = await Promise.all(pagePromises);
|
|
55
|
+
const allPages = [
|
|
56
|
+
...(firstPage.layout_pages || []),
|
|
57
|
+
];
|
|
58
|
+
for (const pageResult of remainingPages) {
|
|
59
|
+
allPages.push(...(pageResult.layout_pages || []));
|
|
60
|
+
}
|
|
61
|
+
return this.flattenPages(allPages);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Recursively flattens nested page hierarchy into a single-level array.
|
|
65
|
+
* The API returns pages with nested `children[]` — grandchild+ pages
|
|
66
|
+
* are invisible without flattening.
|
|
67
|
+
*/
|
|
68
|
+
flattenPages(pages) {
|
|
69
|
+
const result = [];
|
|
70
|
+
for (const page of pages) {
|
|
71
|
+
result.push(page);
|
|
72
|
+
if (page.children && page.children.length > 0) {
|
|
73
|
+
result.push(...this.flattenPages(page.children));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates a new layout page in a site
|
|
80
|
+
*
|
|
81
|
+
* Page types:
|
|
82
|
+
* - 'custom' or 'default': Widget pages that accept custom widgets
|
|
83
|
+
* - 'content' or 'entry': Content pages connected to Content API
|
|
84
|
+
* - 'origination': Form workflow pages
|
|
85
|
+
*
|
|
86
|
+
* Important notes:
|
|
87
|
+
* - Widget pages require grid_type (e.g., 'full_grid', 'side_left_grid')
|
|
88
|
+
* - Content pages require content_type_id to connect to content type
|
|
89
|
+
* - Path should not include leading slash (use 'blog' not '/blog')
|
|
90
|
+
* - Home page path is '/' or empty string
|
|
91
|
+
*
|
|
92
|
+
* @param siteId - The ID of the site
|
|
93
|
+
* @param data - Page creation data
|
|
94
|
+
* @param data.name - Page name (displayed in admin)
|
|
95
|
+
* @param data.path - URL path without leading slash
|
|
96
|
+
* @param data.type - Page type ('custom', 'content', 'origination')
|
|
97
|
+
* @param data.grid_type - Grid layout for widget pages
|
|
98
|
+
* @param data.content_type_id - Content type ID for content pages (required for content pages)
|
|
99
|
+
* @param data.has_router - Enable routing (client-side for widgets, server-side for content)
|
|
100
|
+
* @returns Promise resolving to created page data
|
|
101
|
+
* @throws Error if API request fails, validation fails, or authentication is invalid
|
|
102
|
+
*/
|
|
103
|
+
async createPage(siteId, data) {
|
|
104
|
+
return this.create(`/sites/${siteId}/layout_pages`, data);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves a single page by ID with full details
|
|
108
|
+
*
|
|
109
|
+
* Returns complete page data including content, CSS, JS, meta tags, widgets, and templates
|
|
110
|
+
*
|
|
111
|
+
* @param siteId - The ID of the site
|
|
112
|
+
* @param pageId - The ID of the page
|
|
113
|
+
* @returns Promise resolving to page data with all details
|
|
114
|
+
* @throws Error if page not found, API request fails, or authentication is invalid
|
|
115
|
+
*/
|
|
116
|
+
async getPage(siteId, pageId) {
|
|
117
|
+
return this.fetchClient.get(`/sites/${siteId}/layout_pages/${pageId}`);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Updates an existing layout page
|
|
121
|
+
*
|
|
122
|
+
* Partial updates supported - only include fields to change.
|
|
123
|
+
* Can update page properties, widgets, templates, content, CSS, and JS.
|
|
124
|
+
*
|
|
125
|
+
* Important notes:
|
|
126
|
+
* - Updating widgets replaces entire widget array (not merged)
|
|
127
|
+
* - Updating templates replaces entire template array (not merged)
|
|
128
|
+
* - Use empty path ('') for home page
|
|
129
|
+
*
|
|
130
|
+
* @param siteId - The ID of the site
|
|
131
|
+
* @param pageId - The ID of the page to update
|
|
132
|
+
* @param data - Page update data (partial)
|
|
133
|
+
* @param data.name - Updated page name
|
|
134
|
+
* @param data.path - Updated URL path
|
|
135
|
+
* @param data.widgets - Complete widget array (replaces existing)
|
|
136
|
+
* @param data.templates - Complete template array for content pages (replaces existing)
|
|
137
|
+
* @param data.content - HTML content
|
|
138
|
+
* @param data.css - Custom CSS
|
|
139
|
+
* @param data.js - Custom JavaScript
|
|
140
|
+
* @returns Promise resolving to updated page data
|
|
141
|
+
* @throws Error if page not found, validation fails, API request fails, or authentication is invalid
|
|
142
|
+
*/
|
|
143
|
+
async updatePage(siteId, pageId, data) {
|
|
144
|
+
return this.update(`/sites/${siteId}/layout_pages`, pageId, data);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Permanently deletes a layout page
|
|
148
|
+
*
|
|
149
|
+
* Workflow for deleting published pages:
|
|
150
|
+
* 1. Unpublish page (unpublishPage)
|
|
151
|
+
* 2. Archive workflow
|
|
152
|
+
* 3. Delete page (this method)
|
|
153
|
+
*
|
|
154
|
+
* Important restrictions:
|
|
155
|
+
* - Cannot delete published pages directly - must unpublish first
|
|
156
|
+
* - Cannot delete home pages via API (Modyo platform protection)
|
|
157
|
+
* - Deletion is permanent and cannot be undone
|
|
158
|
+
*
|
|
159
|
+
* @param siteId - The ID of the site
|
|
160
|
+
* @param pageId - The ID of the page to delete
|
|
161
|
+
* @returns Promise resolving when deletion completes
|
|
162
|
+
* @throws Error if page is published, is home page, API request fails, or authentication is invalid
|
|
163
|
+
*/
|
|
164
|
+
async deletePage(siteId, pageId) {
|
|
165
|
+
try {
|
|
166
|
+
return await this.fetchClient.delete(`/sites/${siteId}/layout_pages/${pageId}`);
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
this.logger("Failed to delete page", {
|
|
170
|
+
siteId,
|
|
171
|
+
pageId,
|
|
172
|
+
error,
|
|
173
|
+
}, "error");
|
|
174
|
+
throw new Error(`Failed to delete page ${pageId} from site ${siteId}: ${error.message}`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Retrieves page activity history
|
|
179
|
+
*
|
|
180
|
+
* Returns chronological list of actions performed on the page
|
|
181
|
+
* (creation, updates, publishing, archiving, etc.)
|
|
182
|
+
*
|
|
183
|
+
* @param siteId - The ID of the site
|
|
184
|
+
* @param pageId - The ID of the page
|
|
185
|
+
* @returns Promise resolving to activity log with user and timestamp data
|
|
186
|
+
* @throws Error if page not found, API request fails, or authentication is invalid
|
|
187
|
+
*/
|
|
188
|
+
async getPageActivity(siteId, pageId) {
|
|
189
|
+
return this.fetchClient.get(`/sites/${siteId}/layout_pages/${pageId}/activity`);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves page template content
|
|
193
|
+
*
|
|
194
|
+
* For content pages, retrieves Liquid template body for index or show views
|
|
195
|
+
*
|
|
196
|
+
* @param siteId - The ID of the site
|
|
197
|
+
* @param pageId - The ID of the page
|
|
198
|
+
* @param queryParams - Optional query parameters
|
|
199
|
+
* @param queryParams.type - Template type ('index' or 'show')
|
|
200
|
+
* @param queryParams.version - Template version number
|
|
201
|
+
* @returns Promise resolving to template content and metadata
|
|
202
|
+
* @throws Error if page not found, template not found, API request fails, or authentication is invalid
|
|
203
|
+
*/
|
|
204
|
+
async getPageTemplate(siteId, pageId, queryParams) {
|
|
205
|
+
return this.fetchClient.get(`/sites/${siteId}/layout_pages/${pageId}/template`, {
|
|
206
|
+
queryParams,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Unpublishes a layout page (removes from live site)
|
|
211
|
+
*
|
|
212
|
+
* This is Step 1 in the published page deletion workflow:
|
|
213
|
+
* 1. Unpublish page (this method) - Removes from live site
|
|
214
|
+
* 2. Archive workflow - Closes the workflow
|
|
215
|
+
* 3. Delete page - Permanently removes page
|
|
216
|
+
*
|
|
217
|
+
* Scheduling options:
|
|
218
|
+
* - Immediate unpublish: Omit data parameter or pass empty object
|
|
219
|
+
* - Scheduled unpublish: Provide unpublish_at with ISO 8601 date
|
|
220
|
+
*
|
|
221
|
+
* Important restrictions:
|
|
222
|
+
* - Cannot unpublish home pages via API (Modyo platform protection)
|
|
223
|
+
* - Home pages identified by path '/' or '' or page_type 'home'/'homelayoutpage'
|
|
224
|
+
*
|
|
225
|
+
* @param siteId - The ID of the site
|
|
226
|
+
* @param pageId - The ID of the page to unpublish
|
|
227
|
+
* @param data - Optional scheduling parameters
|
|
228
|
+
* @param data.unpublish_at - ISO 8601 date for scheduled unpublish (omit for immediate)
|
|
229
|
+
* @param data.publish_at - ISO 8601 date for re-publishing
|
|
230
|
+
* @returns Promise resolving when unpublish operation completes or is scheduled
|
|
231
|
+
* @throws Error if page is home page, not published, API request fails, or authentication is invalid
|
|
232
|
+
*/
|
|
233
|
+
async unpublishPage(siteId, pageId, data) {
|
|
234
|
+
// API expects body wrapped in layout_page key
|
|
235
|
+
// When immediate unpublish: {"layout_page": {"unpublish_at": ""}}
|
|
236
|
+
// When scheduled: {"layout_page": {"unpublish_at": "2025-..."}}
|
|
237
|
+
return this.fetchClient.post(`/sites/${siteId}/layout_pages/${pageId}/unpublish`, {
|
|
238
|
+
layout_page: data ?? {},
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Creates a copy of an existing page
|
|
243
|
+
*
|
|
244
|
+
* Copies all page properties, widgets, templates, content, CSS, and JS.
|
|
245
|
+
* New page is created as a draft with name suffixed with "(copy)"
|
|
246
|
+
*
|
|
247
|
+
* @param siteId - The ID of the site
|
|
248
|
+
* @param pageId - The ID of the page to copy
|
|
249
|
+
* @returns Promise resolving to newly created page data
|
|
250
|
+
* @throws Error if source page not found, API request fails, or authentication is invalid
|
|
251
|
+
*/
|
|
252
|
+
async copyPage(siteId, pageId) {
|
|
253
|
+
return this.fetchClient.post(`/sites/${siteId}/layout_pages/${pageId}/copy`, {});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
//# sourceMappingURL=PagesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/pages/PagesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAcvD;;;;;;;GAOG;AACH,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,QAAQ,CACZ,MAAc,EACd,WAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CACd,UAAU,MAAM,eAAe,EAC/B,WAAW,CACZ,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,MAAc;QAEd,MAAM,OAAO,GAAG,GAAG,CAAC;QAEpB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC5C,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,OAAO;SAClB,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,EAAE,aAAa,IAAI,CAAC,CAAC;QACtD,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,CAAC;QAExD,IAAI,eAAe,IAAI,CAAC,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,YAAY,GAAG,EAAE,CAAC;QACxB,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,eAAe,EAAE,IAAI,EAAE,EAAE,CAAC;YACnD,YAAY,CAAC,IAAI,CACf,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBACpB,IAAI;gBACJ,QAAQ,EAAE,OAAO;aAClB,CAAC,CACH,CAAC;QACJ,CAAC;QAED,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACvD,MAAM,QAAQ,GAAG;YACf,GAAG,CAAC,SAAS,CAAC,YAAY,IAAI,EAAE,CAAC;SAClC,CAAC;QACF,KAAK,MAAM,UAAU,IAAI,cAAc,EAAE,CAAC;YACxC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAED;;;;OAIG;IACK,YAAY,CAClB,KAAwC;QAExC,MAAM,MAAM,GAAsC,EAAE,CAAC;QACrD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAClB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC9C,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,UAAU,CACd,MAAc,EACd,IAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAChB,UAAU,MAAM,eAAe,EAC/B,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,MAAc;QAC1C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,MAAM,iBAAiB,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,UAAU,CACd,MAAc,EACd,MAAc,EACd,IAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAChB,UAAU,MAAM,eAAe,EAC/B,MAAM,EACN,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,MAAc;QAC7C,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAClC,UAAU,MAAM,iBAAiB,MAAM,EAAE,CAC1C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CACT,uBAAuB,EACvB;gBACE,MAAM;gBACN,MAAM;gBACN,KAAK;aACN,EACD,OAAO,CACR,CAAC;YACF,MAAM,IAAI,KAAK,CACb,yBAAyB,MAAM,cAAc,MAAM,KAAM,KAAe,CAAC,OAAO,EAAE,CACnF,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,MAAc,EACd,MAAc;QAEd,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,UAAU,MAAM,iBAAiB,MAAM,WAAW,CACnD,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,eAAe,CACnB,MAAc,EACd,MAAc,EACd,WAGC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,UAAU,MAAM,iBAAiB,MAAM,WAAW,EAClD;YACE,WAAW;SACZ,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,aAAa,CACjB,MAAc,EACd,MAAc,EACd,IAA2B;QAE3B,8CAA8C;QAC9C,kEAAkE;QAClE,gEAAgE;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAC1B,UAAU,MAAM,iBAAiB,MAAM,YAAY,EACnD;YACE,WAAW,EAAE,IAAI,IAAI,EAAE;SACxB,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,QAAQ,CAAC,MAAc,EAAE,MAAc;QAC3C,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAC1B,UAAU,MAAM,iBAAiB,MAAM,OAAO,EAC9C,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { ReleaseCreateInput, ReleaseCreateResponse, ReleaseElements } from "./ReleasesTypes.js";
|
|
3
|
+
export declare class ReleasesRepository extends FetchRepositoryBase {
|
|
4
|
+
getElementsToPublish(siteId: number): Promise<ReleaseElements>;
|
|
5
|
+
createRelease(siteId: number, data: ReleaseCreateInput): Promise<ReleaseCreateResponse>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ReleasesRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReleasesRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/releases/ReleasesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,qBAAa,kBAAmB,SAAQ,mBAAmB;IACnD,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAM9D,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,qBAAqB,CAAC;CAGlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export class ReleasesRepository extends FetchRepositoryBase {
|
|
3
|
+
async getElementsToPublish(siteId) {
|
|
4
|
+
return this.fetchClient.get(`/sites/${siteId}/releases/elements_to_publish`);
|
|
5
|
+
}
|
|
6
|
+
async createRelease(siteId, data) {
|
|
7
|
+
return this.fetchClient.post(`/sites/${siteId}/releases`, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ReleasesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReleasesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/releases/ReleasesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IACzD,KAAK,CAAC,oBAAoB,CAAC,MAAc;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,UAAU,MAAM,+BAA+B,CAChD,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,MAAc,EACd,IAAwB;QAExB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,MAAM,WAAW,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { CloneSiteResponse, CreateSiteRequest, CreateSiteResponse, CreateStageResponse, ListSitesParams, ListSitesResponse, ListStagesParams, ListStagesResponse, SiteResponse, UpdateSiteRequest, UpdateSiteResponse } from "./SitesTypes.js";
|
|
3
|
+
export declare class SitesRepository extends FetchRepositoryBase {
|
|
4
|
+
getSites(queryParams?: ListSitesParams): Promise<ListSitesResponse>;
|
|
5
|
+
createSite(data: CreateSiteRequest): Promise<CreateSiteResponse>;
|
|
6
|
+
getSite(siteId: number): Promise<SiteResponse>;
|
|
7
|
+
updateSite(siteId: number, site: Partial<UpdateSiteRequest>): Promise<UpdateSiteResponse>;
|
|
8
|
+
deleteSite(siteId: number, validation: string): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Clone a site (creates independent copy)
|
|
11
|
+
*/
|
|
12
|
+
cloneSite(siteId: number): Promise<CloneSiteResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a stage from a site (creates linked clone, like a branch)
|
|
15
|
+
*/
|
|
16
|
+
createStage(siteId: number, stageName: string): Promise<CreateStageResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List all stages for a site
|
|
19
|
+
*/
|
|
20
|
+
listStages(siteId: number, queryParams?: ListStagesParams): Promise<ListStagesResponse>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=SitesRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SitesRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/sites/SitesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,eAAgB,SAAQ,mBAAmB;IAChD,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAInE,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIhE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9C,UAAU,CACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAC/B,OAAO,CAAC,kBAAkB,CAAC;IAQxB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQnE;;OAEG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAO3D;;OAEG;IACG,WAAW,CACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,mBAAmB,CAAC;IAY/B;;OAEG;IACG,UAAU,CACd,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,gBAAgB,GAC7B,OAAO,CAAC,kBAAkB,CAAC;CAM/B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export class SitesRepository extends FetchRepositoryBase {
|
|
3
|
+
async getSites(queryParams) {
|
|
4
|
+
return this.list("/sites", queryParams);
|
|
5
|
+
}
|
|
6
|
+
async createSite(data) {
|
|
7
|
+
return this.create("/sites", data);
|
|
8
|
+
}
|
|
9
|
+
async getSite(siteId) {
|
|
10
|
+
return this.getById("/sites", siteId);
|
|
11
|
+
}
|
|
12
|
+
async updateSite(siteId, site) {
|
|
13
|
+
return this.update("/sites", siteId, site);
|
|
14
|
+
}
|
|
15
|
+
async deleteSite(siteId, validation) {
|
|
16
|
+
return this.fetchClient.delete(`/sites/${siteId}`, {
|
|
17
|
+
queryParams: {
|
|
18
|
+
validation,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Clone a site (creates independent copy)
|
|
24
|
+
*/
|
|
25
|
+
async cloneSite(siteId) {
|
|
26
|
+
return this.fetchClient.post(`/sites/${siteId}/clone`, {});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a stage from a site (creates linked clone, like a branch)
|
|
30
|
+
*/
|
|
31
|
+
async createStage(siteId, stageName) {
|
|
32
|
+
return this.fetchClient.post(`/sites/${siteId}/clone`, {}, {
|
|
33
|
+
queryParams: {
|
|
34
|
+
stage_name: stageName,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* List all stages for a site
|
|
40
|
+
*/
|
|
41
|
+
async listStages(siteId, queryParams) {
|
|
42
|
+
return this.list(`/sites/${siteId}/stages`, queryParams);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=SitesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SitesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/sites/SitesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAevD,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACtD,KAAK,CAAC,QAAQ,CAAC,WAA6B;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAqC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAuB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAwC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAc;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAe,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CACd,MAAc,EACd,IAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAChB,QAAQ,EACR,MAAM,EACN,IAAI,CACL,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,UAAkB;QACjD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,MAAM,EAAE,EAAE;YACjD,WAAW,EAAE;gBACX,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,MAAc;QAC5B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAC1B,UAAU,MAAM,QAAQ,EACxB,EAAE,CACH,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,MAAc,EACd,SAAiB;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAC1B,UAAU,MAAM,QAAQ,EACxB,EAAE,EACF;YACE,WAAW,EAAE;gBACX,UAAU,EAAE,SAAS;aACtB;SACF,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,MAAc,EACd,WAA8B;QAE9B,OAAO,IAAI,CAAC,IAAI,CACd,UAAU,MAAM,SAAS,EACzB,WAAW,CACZ,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../../shared/index.js";
|
|
2
|
+
import type { BulkCreateSiteAssetResponse, SiteAssetCreateResponse, SiteAssetInput } from "./SiteAssetsTypes.js";
|
|
3
|
+
export declare class SiteAssetsRepository extends FetchRepositoryBase {
|
|
4
|
+
bulkCreate(siteId: number, assets: SiteAssetInput[]): Promise<BulkCreateSiteAssetResponse>;
|
|
5
|
+
createAsset(siteId: number, asset: SiteAssetInput): Promise<SiteAssetCreateResponse>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SiteAssetsRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteAssetsRepository.d.ts","sourceRoot":"","sources":["../../../../../src/repositories/channels/sites/assets/SiteAssetsRepository.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,oBAAqB,SAAQ,mBAAmB;IACrD,UAAU,CACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,EAAE,GACvB,OAAO,CAAC,2BAA2B,CAAC;IAyCjC,WAAW,CACf,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,uBAAuB,CAAC;CAgCpC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { downloadTempAsset, FetchRepositoryBase, removeAssetContentTempFile, } from "../../../../shared/index.js";
|
|
4
|
+
export class SiteAssetsRepository extends FetchRepositoryBase {
|
|
5
|
+
async bulkCreate(siteId, assets) {
|
|
6
|
+
const formData = new FormData();
|
|
7
|
+
const tempPaths = [];
|
|
8
|
+
for (const asset of assets) {
|
|
9
|
+
const { input, modyoType, name } = asset;
|
|
10
|
+
const assetPath = await downloadTempAsset({
|
|
11
|
+
input,
|
|
12
|
+
modyoType,
|
|
13
|
+
name,
|
|
14
|
+
});
|
|
15
|
+
tempPaths.push(assetPath.tempPath);
|
|
16
|
+
const fp = path.resolve(assetPath.tempPath);
|
|
17
|
+
const data = await fs.readFile(fp);
|
|
18
|
+
formData.append("data[]", new Blob([
|
|
19
|
+
data,
|
|
20
|
+
], {
|
|
21
|
+
type: assetPath.mimeType,
|
|
22
|
+
}), `${name}.${assetPath.ext}`);
|
|
23
|
+
formData.append("klass[]", modyoType);
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
return await this.fetchClient.postFormData(`/sites/${siteId}/assets/bulk_create`, formData);
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
for (const tempPath of tempPaths) {
|
|
30
|
+
removeAssetContentTempFile(tempPath);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async createAsset(siteId, asset) {
|
|
35
|
+
const { input, modyoType, name } = asset;
|
|
36
|
+
const assetPath = await downloadTempAsset({
|
|
37
|
+
input,
|
|
38
|
+
modyoType,
|
|
39
|
+
name,
|
|
40
|
+
});
|
|
41
|
+
try {
|
|
42
|
+
const formData = new FormData();
|
|
43
|
+
const fp = path.resolve(assetPath.tempPath);
|
|
44
|
+
const data = await fs.readFile(fp);
|
|
45
|
+
formData.append("data[]", new Blob([
|
|
46
|
+
data,
|
|
47
|
+
], {
|
|
48
|
+
type: assetPath.mimeType,
|
|
49
|
+
}), `${name}.${assetPath.ext}`);
|
|
50
|
+
formData.append("klass[]", modyoType);
|
|
51
|
+
return await this.fetchClient.postFormData(`/sites/${siteId}/assets/bulk_create`, formData);
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
removeAssetContentTempFile(assetPath.tempPath);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=SiteAssetsRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteAssetsRepository.js","sourceRoot":"","sources":["../../../../../src/repositories/channels/sites/assets/SiteAssetsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAO1B,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC3D,KAAK,CAAC,UAAU,CACd,MAAc,EACd,MAAwB;QAExB,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,SAAS,GAAa,EAAE,CAAC;QAE/B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;YACzC,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC;gBACxC,KAAK;gBACL,SAAS;gBACT,IAAI;aACL,CAAC,CAAC;YACH,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YACnC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC5C,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnC,QAAQ,CAAC,MAAM,CACb,QAAQ,EACR,IAAI,IAAI,CACN;gBACE,IAAI;aACL,EACD;gBACE,IAAI,EAAE,SAAS,CAAC,QAAQ;aACzB,CACF,EACD,GAAG,IAAI,IAAI,SAAS,CAAC,GAAG,EAAE,CAC3B,CAAC;YACF,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACxC,CAAC;QAED,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CACxC,UAAU,MAAM,qBAAqB,EACrC,QAAQ,CACT,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;gBACjC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,MAAc,EACd,KAAqB;QAErB,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;QACzC,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC;YACxC,KAAK;YACL,SAAS;YACT,IAAI;SACL,CAAC,CAAC;QACH,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAChC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC5C,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnC,QAAQ,CAAC,MAAM,CACb,QAAQ,EACR,IAAI,IAAI,CACN;gBACE,IAAI;aACL,EACD;gBACE,IAAI,EAAE,SAAS,CAAC,QAAQ;aACzB,CACF,EACD,GAAG,IAAI,IAAI,SAAS,CAAC,GAAG,EAAE,CAC3B,CAAC;YACF,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YACtC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CACxC,UAAU,MAAM,qBAAqB,EACrC,QAAQ,CACT,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,0BAA0B,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;CACF"}
|