@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,92 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { CreateTemplateParams, CreateTemplateResponse, ListCSSResponse, ListCustomSnippetsResponse, ListJSResponse, ListLayoutsResponse, ListSnippetsResponse, ListTemplatesParams, ListTemplatesResponse, SaveTemplateRequest, SaveTemplateResponse, TemplateResponse, UnpublishTemplateRequest, UpdateTemplateParams, UpdateTemplateResponse } from "./TemplatesTypes.js";
|
|
3
|
+
export declare class TemplatesRepository extends FetchRepositoryBase {
|
|
4
|
+
getTemplates(siteId: number, queryParams?: ListTemplatesParams): Promise<{
|
|
5
|
+
templates: Omit<ListTemplatesResponse["templates"], "body">;
|
|
6
|
+
meta: ListTemplatesResponse["meta"];
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches all templates from all pages in parallel (without body content)
|
|
10
|
+
*
|
|
11
|
+
* @param siteId - The ID of the site
|
|
12
|
+
* @returns Promise resolving to array of all templates across all pages
|
|
13
|
+
*/
|
|
14
|
+
getAllTemplates(siteId: number): Promise<Omit<ListTemplatesResponse["templates"], "body">>;
|
|
15
|
+
/**
|
|
16
|
+
* Fetches all templates with full body content.
|
|
17
|
+
* Used by the download tool to get full template content.
|
|
18
|
+
*
|
|
19
|
+
* The list endpoint returns templates with empty body. This method
|
|
20
|
+
* fetches the list first, then retrieves each template individually
|
|
21
|
+
* to get the body content. Uses parallel batches for performance.
|
|
22
|
+
*
|
|
23
|
+
* Note: Individual GET requests create temporary editing locks that
|
|
24
|
+
* expire automatically. This is acceptable for read-only operations.
|
|
25
|
+
*
|
|
26
|
+
* @param siteId - The ID of the site
|
|
27
|
+
* @returns Promise resolving to array of all templates including body
|
|
28
|
+
*/
|
|
29
|
+
getAllTemplatesWithBody(siteId: number): Promise<TemplateResponse[]>;
|
|
30
|
+
getSnippets(siteId: number): Promise<ListSnippetsResponse>;
|
|
31
|
+
getCustomSnippets(siteId: number): Promise<ListCustomSnippetsResponse>;
|
|
32
|
+
getCSSTemplates(siteId: number): Promise<ListCSSResponse>;
|
|
33
|
+
getJSTemplates(siteId: number): Promise<ListJSResponse>;
|
|
34
|
+
getLayouts(siteId: number): Promise<ListLayoutsResponse>;
|
|
35
|
+
createTemplate(siteId: number, data: CreateTemplateParams): Promise<CreateTemplateResponse>;
|
|
36
|
+
getTemplate(siteId: number, templateId: number): Promise<TemplateResponse>;
|
|
37
|
+
updateTemplate(siteId: number, templateId: number, data: UpdateTemplateParams): Promise<UpdateTemplateResponse>;
|
|
38
|
+
deleteTemplate(siteId: number, templateId: number): Promise<void>;
|
|
39
|
+
saveTemplate(siteId: number, templateId: number, data: SaveTemplateRequest): Promise<SaveTemplateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Releases the editing lock on a template.
|
|
42
|
+
* Uses DELETE /locks/release with lockable_type and lockable_id.
|
|
43
|
+
* Call this after all template operations (save + get) are complete.
|
|
44
|
+
* Errors are silently ignored since lock release is not critical.
|
|
45
|
+
*/
|
|
46
|
+
releaseTemplateLock(templateId: number): Promise<void>;
|
|
47
|
+
unpublishTemplate(siteId: number, templateId: number, data?: UnpublishTemplateRequest): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Normalize literal \n and \t sequences that LLMs sometimes send as two characters
|
|
50
|
+
* (backslash + n) instead of real newline characters. Only transform if the body
|
|
51
|
+
* has no real newlines but contains literal \n sequences, to avoid double-replacement.
|
|
52
|
+
*/
|
|
53
|
+
private normalizeLiteralEscapes;
|
|
54
|
+
/**
|
|
55
|
+
* Find a template by name using API's query parameter for server-side filtering.
|
|
56
|
+
* Paginates through all results if needed to find exact match.
|
|
57
|
+
* When no type is specified, searches across all template types.
|
|
58
|
+
* Returns the first exact match or null if not found.
|
|
59
|
+
*/
|
|
60
|
+
findTemplateByName(siteId: number, name: string, type?: ListTemplatesParams["type"]): Promise<ListTemplatesResponse["templates"][number] | null>;
|
|
61
|
+
/**
|
|
62
|
+
* Search templates in the generic /templates endpoint with pagination.
|
|
63
|
+
*/
|
|
64
|
+
private searchTemplatesByType;
|
|
65
|
+
/**
|
|
66
|
+
* Search in custom snippets endpoint.
|
|
67
|
+
*/
|
|
68
|
+
private searchInCustomSnippets;
|
|
69
|
+
/**
|
|
70
|
+
* Search in system snippets endpoint.
|
|
71
|
+
*/
|
|
72
|
+
private searchInSnippets;
|
|
73
|
+
/**
|
|
74
|
+
* Search in layouts endpoint.
|
|
75
|
+
*/
|
|
76
|
+
private searchInLayouts;
|
|
77
|
+
/**
|
|
78
|
+
* Search in CSS templates endpoint.
|
|
79
|
+
*/
|
|
80
|
+
private searchInCSSTemplates;
|
|
81
|
+
/**
|
|
82
|
+
* Search in JS templates endpoint.
|
|
83
|
+
*/
|
|
84
|
+
private searchInJSTemplates;
|
|
85
|
+
/**
|
|
86
|
+
* Find a template by name and return full template data including body.
|
|
87
|
+
* Uses optimized server-side filtering then fetches full details.
|
|
88
|
+
* Returns null if not found.
|
|
89
|
+
*/
|
|
90
|
+
findTemplateByNameWithBody(siteId: number, name: string, type?: ListTemplatesParams["type"]): Promise<TemplateResponse | null>;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=TemplatesRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplatesRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/templates/TemplatesRepository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,mBAAoB,SAAQ,mBAAmB;IACpD,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,mBAAmB,GAChC,OAAO,CAAC;QACT,SAAS,EAAE,IA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;;OAKG;IACG,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAetD,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,wBAAwB,GAC9B,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAO/B;;;;;OAKG;IACG,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,GACjC,OAAO,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAmC7D;;OAEG;YACW,qBAAqB;IAmCnC;;OAEG;YACW,sBAAsB;IAWpC;;OAEG;YACW,gBAAgB;IAS9B;;OAEG;YACW,eAAe;IAS7B;;OAEG;YACW,oBAAoB;IAWlC;;OAEG;YACW,mBAAmB;IAWjC;;;;OAIG;IACG,0BAA0B,CAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,GACjC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAKpC"}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { retryWithBackoff } from "../../../shared/helpers/retryWithBackoff.js";
|
|
2
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
3
|
+
export class TemplatesRepository extends FetchRepositoryBase {
|
|
4
|
+
async getTemplates(siteId, queryParams) {
|
|
5
|
+
const response = await this.list(`/sites/${siteId}/templates`, queryParams);
|
|
6
|
+
const mappedResponse = response.templates.map((template) => {
|
|
7
|
+
const { body, ...restTemplate } = template;
|
|
8
|
+
return {
|
|
9
|
+
...restTemplate,
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
templates: mappedResponse,
|
|
14
|
+
meta: response.meta,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetches all templates from all pages in parallel (without body content)
|
|
19
|
+
*
|
|
20
|
+
* @param siteId - The ID of the site
|
|
21
|
+
* @returns Promise resolving to array of all templates across all pages
|
|
22
|
+
*/
|
|
23
|
+
async getAllTemplates(siteId) {
|
|
24
|
+
const perPage = 100;
|
|
25
|
+
const firstPage = await this.getTemplates(siteId, {
|
|
26
|
+
per_page: perPage,
|
|
27
|
+
page: 1,
|
|
28
|
+
});
|
|
29
|
+
const totalTemplates = firstPage.meta?.total_entries || 0;
|
|
30
|
+
const totalPages = Math.ceil(totalTemplates / perPage);
|
|
31
|
+
if (totalPages <= 1) {
|
|
32
|
+
return firstPage.templates || [];
|
|
33
|
+
}
|
|
34
|
+
const pagePromises = [];
|
|
35
|
+
for (let page = 2; page <= totalPages; page++) {
|
|
36
|
+
pagePromises.push(this.getTemplates(siteId, {
|
|
37
|
+
page,
|
|
38
|
+
per_page: perPage,
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
const remainingPages = await Promise.all(pagePromises);
|
|
42
|
+
const allTemplates = [
|
|
43
|
+
...(firstPage.templates || []),
|
|
44
|
+
];
|
|
45
|
+
for (const pageResult of remainingPages) {
|
|
46
|
+
allTemplates.push(...(pageResult.templates || []));
|
|
47
|
+
}
|
|
48
|
+
return allTemplates;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fetches all templates with full body content.
|
|
52
|
+
* Used by the download tool to get full template content.
|
|
53
|
+
*
|
|
54
|
+
* The list endpoint returns templates with empty body. This method
|
|
55
|
+
* fetches the list first, then retrieves each template individually
|
|
56
|
+
* to get the body content. Uses parallel batches for performance.
|
|
57
|
+
*
|
|
58
|
+
* Note: Individual GET requests create temporary editing locks that
|
|
59
|
+
* expire automatically. This is acceptable for read-only operations.
|
|
60
|
+
*
|
|
61
|
+
* @param siteId - The ID of the site
|
|
62
|
+
* @returns Promise resolving to array of all templates including body
|
|
63
|
+
*/
|
|
64
|
+
async getAllTemplatesWithBody(siteId) {
|
|
65
|
+
// Step 1: Get list of all templates (without body)
|
|
66
|
+
const allTemplateHeaders = await this.getAllTemplates(siteId);
|
|
67
|
+
if (!allTemplateHeaders || allTemplateHeaders.length === 0) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
// Step 2: Fetch individual templates with body in parallel batches
|
|
71
|
+
const BATCH_SIZE = 5;
|
|
72
|
+
const templates = [];
|
|
73
|
+
const templateList = allTemplateHeaders;
|
|
74
|
+
for (let i = 0; i < templateList.length; i += BATCH_SIZE) {
|
|
75
|
+
const batch = templateList.slice(i, i + BATCH_SIZE);
|
|
76
|
+
const batchResults = await Promise.all(batch.map((t) => this.getTemplate(siteId, t.id)));
|
|
77
|
+
templates.push(...batchResults);
|
|
78
|
+
}
|
|
79
|
+
return templates;
|
|
80
|
+
}
|
|
81
|
+
async getSnippets(siteId) {
|
|
82
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/snippets`);
|
|
83
|
+
}
|
|
84
|
+
async getCustomSnippets(siteId) {
|
|
85
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/custom_snippets`);
|
|
86
|
+
}
|
|
87
|
+
async getCSSTemplates(siteId) {
|
|
88
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/css`);
|
|
89
|
+
}
|
|
90
|
+
async getJSTemplates(siteId) {
|
|
91
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/js`);
|
|
92
|
+
}
|
|
93
|
+
async getLayouts(siteId) {
|
|
94
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/layouts`);
|
|
95
|
+
}
|
|
96
|
+
async createTemplate(siteId, data) {
|
|
97
|
+
// Normalize literal \n and \t sequences that LLMs sometimes send as two characters
|
|
98
|
+
const normalizedData = data.body
|
|
99
|
+
? {
|
|
100
|
+
...data,
|
|
101
|
+
body: this.normalizeLiteralEscapes(data.body),
|
|
102
|
+
}
|
|
103
|
+
: data;
|
|
104
|
+
return this.create(`/sites/${siteId}/templates`, normalizedData);
|
|
105
|
+
}
|
|
106
|
+
async getTemplate(siteId, templateId) {
|
|
107
|
+
return this.fetchClient.get(`/sites/${siteId}/templates/${templateId}`);
|
|
108
|
+
}
|
|
109
|
+
async updateTemplate(siteId, templateId, data) {
|
|
110
|
+
return this.fetchClient.put(`/sites/${siteId}/templates/${templateId}`, data);
|
|
111
|
+
}
|
|
112
|
+
async deleteTemplate(siteId, templateId) {
|
|
113
|
+
return this.fetchClient.delete(`/sites/${siteId}/templates/${templateId}`);
|
|
114
|
+
}
|
|
115
|
+
async saveTemplate(siteId, templateId, data) {
|
|
116
|
+
const body = this.normalizeLiteralEscapes(data.body);
|
|
117
|
+
// Retry on 422 "is reviewing" — this transient state occurs when a template
|
|
118
|
+
// was just created or read via GET, which auto-creates an editing lock.
|
|
119
|
+
// The lock expires after a short delay, so retrying resolves the issue.
|
|
120
|
+
const result = await retryWithBackoff(async () => {
|
|
121
|
+
const formData = new FormData();
|
|
122
|
+
formData.append("body", body);
|
|
123
|
+
return this.fetchClient.postFormData(`/sites/${siteId}/templates/${templateId}/save`, formData);
|
|
124
|
+
}, {
|
|
125
|
+
maxRetries: 3,
|
|
126
|
+
initialDelayMs: 1500,
|
|
127
|
+
maxDelayMs: 5000,
|
|
128
|
+
retryableStatusCodes: [
|
|
129
|
+
422,
|
|
130
|
+
],
|
|
131
|
+
onRetry: (attempt, error, delayMs) => {
|
|
132
|
+
this.logger(`Template save retry ${attempt} after ${delayMs}ms (reviewing lock): ${error.message}`);
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
return result;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Releases the editing lock on a template.
|
|
139
|
+
* Uses DELETE /locks/release with lockable_type and lockable_id.
|
|
140
|
+
* Call this after all template operations (save + get) are complete.
|
|
141
|
+
* Errors are silently ignored since lock release is not critical.
|
|
142
|
+
*/
|
|
143
|
+
async releaseTemplateLock(templateId) {
|
|
144
|
+
try {
|
|
145
|
+
await this.fetchClient.delete("/locks/release", {}, {
|
|
146
|
+
lockable_type: "Templates::SiteTemplate",
|
|
147
|
+
lockable_id: templateId,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
// Lock release is best-effort — don't fail the operation
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async unpublishTemplate(siteId, templateId, data) {
|
|
155
|
+
return this.fetchClient.post(`/sites/${siteId}/templates/${templateId}/unpublish`, data || {});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Normalize literal \n and \t sequences that LLMs sometimes send as two characters
|
|
159
|
+
* (backslash + n) instead of real newline characters. Only transform if the body
|
|
160
|
+
* has no real newlines but contains literal \n sequences, to avoid double-replacement.
|
|
161
|
+
*/
|
|
162
|
+
normalizeLiteralEscapes(body) {
|
|
163
|
+
if (!body.includes("\n") && body.includes("\\n")) {
|
|
164
|
+
return body.replace(/\\n/g, "\n").replace(/\\t/g, "\t");
|
|
165
|
+
}
|
|
166
|
+
return body;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Find a template by name using API's query parameter for server-side filtering.
|
|
170
|
+
* Paginates through all results if needed to find exact match.
|
|
171
|
+
* When no type is specified, searches across all template types.
|
|
172
|
+
* Returns the first exact match or null if not found.
|
|
173
|
+
*/
|
|
174
|
+
async findTemplateByName(siteId, name, type) {
|
|
175
|
+
// If type is specified, search only that type
|
|
176
|
+
if (type) {
|
|
177
|
+
return this.searchTemplatesByType(siteId, name, type);
|
|
178
|
+
}
|
|
179
|
+
// No type specified - search across all template types in parallel
|
|
180
|
+
const [fromGeneric, fromCustomSnippets, fromSnippets, fromLayouts, fromCSS, fromJS,] = await Promise.all([
|
|
181
|
+
this.searchTemplatesByType(siteId, name, undefined),
|
|
182
|
+
this.searchInCustomSnippets(siteId, name),
|
|
183
|
+
this.searchInSnippets(siteId, name),
|
|
184
|
+
this.searchInLayouts(siteId, name),
|
|
185
|
+
this.searchInCSSTemplates(siteId, name),
|
|
186
|
+
this.searchInJSTemplates(siteId, name),
|
|
187
|
+
]);
|
|
188
|
+
// Return the first match found
|
|
189
|
+
return (fromGeneric ??
|
|
190
|
+
fromCustomSnippets ??
|
|
191
|
+
fromSnippets ??
|
|
192
|
+
fromLayouts ??
|
|
193
|
+
fromCSS ??
|
|
194
|
+
fromJS ??
|
|
195
|
+
null);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Search templates in the generic /templates endpoint with pagination.
|
|
199
|
+
*/
|
|
200
|
+
async searchTemplatesByType(siteId, name, type) {
|
|
201
|
+
const perPage = 100;
|
|
202
|
+
let page = 1;
|
|
203
|
+
let hasMore = true;
|
|
204
|
+
while (hasMore) {
|
|
205
|
+
const response = await this.list(`/sites/${siteId}/templates`, {
|
|
206
|
+
query: name,
|
|
207
|
+
type,
|
|
208
|
+
per_page: perPage,
|
|
209
|
+
page,
|
|
210
|
+
});
|
|
211
|
+
// Find exact match (API query is partial match, we need exact)
|
|
212
|
+
const exactMatch = response.templates.find((t) => t.name === name);
|
|
213
|
+
if (exactMatch) {
|
|
214
|
+
return exactMatch;
|
|
215
|
+
}
|
|
216
|
+
// Check if there are more pages
|
|
217
|
+
const totalEntries = response.meta?.total_entries ?? 0;
|
|
218
|
+
hasMore = page * perPage < totalEntries;
|
|
219
|
+
page++;
|
|
220
|
+
}
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Search in custom snippets endpoint.
|
|
225
|
+
*/
|
|
226
|
+
async searchInCustomSnippets(siteId, name) {
|
|
227
|
+
const result = await this.getCustomSnippets(siteId);
|
|
228
|
+
const snippets = Array.isArray(result)
|
|
229
|
+
? result
|
|
230
|
+
: (result.custom_snippets ?? []);
|
|
231
|
+
return snippets.find((t) => t.name === name) ?? null;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Search in system snippets endpoint.
|
|
235
|
+
*/
|
|
236
|
+
async searchInSnippets(siteId, name) {
|
|
237
|
+
const result = await this.getSnippets(siteId);
|
|
238
|
+
const snippets = Array.isArray(result) ? result : (result.snippets ?? []);
|
|
239
|
+
return snippets.find((t) => t.name === name) ?? null;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Search in layouts endpoint.
|
|
243
|
+
*/
|
|
244
|
+
async searchInLayouts(siteId, name) {
|
|
245
|
+
const result = await this.getLayouts(siteId);
|
|
246
|
+
const layouts = Array.isArray(result) ? result : (result.layouts ?? []);
|
|
247
|
+
return layouts.find((t) => t.name === name) ?? null;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Search in CSS templates endpoint.
|
|
251
|
+
*/
|
|
252
|
+
async searchInCSSTemplates(siteId, name) {
|
|
253
|
+
const result = await this.getCSSTemplates(siteId);
|
|
254
|
+
const cssTemplates = Array.isArray(result)
|
|
255
|
+
? result
|
|
256
|
+
: (result.css_templates ?? []);
|
|
257
|
+
return cssTemplates.find((t) => t.name === name) ?? null;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Search in JS templates endpoint.
|
|
261
|
+
*/
|
|
262
|
+
async searchInJSTemplates(siteId, name) {
|
|
263
|
+
const result = await this.getJSTemplates(siteId);
|
|
264
|
+
const jsTemplates = Array.isArray(result)
|
|
265
|
+
? result
|
|
266
|
+
: (result.js_templates ?? []);
|
|
267
|
+
return jsTemplates.find((t) => t.name === name) ?? null;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Find a template by name and return full template data including body.
|
|
271
|
+
* Uses optimized server-side filtering then fetches full details.
|
|
272
|
+
* Returns null if not found.
|
|
273
|
+
*/
|
|
274
|
+
async findTemplateByNameWithBody(siteId, name, type) {
|
|
275
|
+
const template = await this.findTemplateByName(siteId, name, type);
|
|
276
|
+
if (!template)
|
|
277
|
+
return null;
|
|
278
|
+
return this.getTemplate(siteId, template.id);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
//# sourceMappingURL=TemplatesRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplatesRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/templates/TemplatesRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAmBvD,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IAC1D,KAAK,CAAC,YAAY,CAChB,MAAc,EACd,WAAiC;QAKjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAG9B,UAAU,MAAM,YAAY,EAAE,WAAW,CAAC,CAAC;QAC7C,MAAM,cAAc,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YACzD,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,GAAG,QAAQ,CAAC;YAC3C,OAAO;gBACL,GAAG,YAAY;aAChB,CAAC;QACJ,CAAC,CAAqD,CAAC;QACvD,OAAO;YACL,SAAS,EAAE,cAAc;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,MAAc;QAEd,MAAM,OAAO,GAAG,GAAG,CAAC;QAEpB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;YAChD,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,CAAC;SACR,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,SAAS,CAAC,IAAI,EAAE,aAAa,IAAI,CAAC,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,CAAC;QAEvD,IAAI,UAAU,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,SAAS,CAAC,SAAS,IAAI,EAAE,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CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { CustomWidgetsResponse, ListCustomWidgetsParams } from "./WidgetsTypes.js";
|
|
3
|
+
export declare class WidgetsRepository extends FetchRepositoryBase {
|
|
4
|
+
getCustomWidgets(siteId: number, params?: ListCustomWidgetsParams): Promise<CustomWidgetsResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=WidgetsRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetsRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/widgets/WidgetsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,iBAAkB,SAAQ,mBAAmB;IAClD,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC;CAMlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export class WidgetsRepository extends FetchRepositoryBase {
|
|
3
|
+
async getCustomWidgets(siteId, params) {
|
|
4
|
+
return this.list(`/sites/${siteId}/custom_widgets`, params);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=WidgetsRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetsRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/widgets/WidgetsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IACxD,KAAK,CAAC,gBAAgB,CACpB,MAAc,EACd,MAAgC;QAEhC,OAAO,IAAI,CAAC,IAAI,CACd,UAAU,MAAM,iBAAiB,EACjC,MAAM,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export interface ArchiveWorkflowParams {
|
|
3
|
+
app_type: "site" | "space";
|
|
4
|
+
app_id: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class WorkflowsRepository extends FetchRepositoryBase {
|
|
7
|
+
/**
|
|
8
|
+
* Archives a workflow
|
|
9
|
+
* @param workflowId - The workflow ID to archive
|
|
10
|
+
* @param params - Archive parameters (app_type and app_id)
|
|
11
|
+
* @returns void
|
|
12
|
+
*/
|
|
13
|
+
archiveWorkflow(workflowId: number, params: ArchiveWorkflowParams): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Restores a workflow
|
|
16
|
+
* @param workflowId - The workflow ID to restore
|
|
17
|
+
* @param params - Restore parameters (app_type and app_id)
|
|
18
|
+
* @returns void
|
|
19
|
+
*/
|
|
20
|
+
restoreWorkflow(workflowId: number, params: ArchiveWorkflowParams): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=WorkflowsRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowsRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/channels/workflows/WorkflowsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,mBAAoB,SAAQ,mBAAmB;IAC1D;;;;;OAKG;IACG,eAAe,CACnB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC;IAGhB;;;;;OAKG;IACG,eAAe,CACnB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC;CAGjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
export class WorkflowsRepository extends FetchRepositoryBase {
|
|
3
|
+
/**
|
|
4
|
+
* Archives a workflow
|
|
5
|
+
* @param workflowId - The workflow ID to archive
|
|
6
|
+
* @param params - Archive parameters (app_type and app_id)
|
|
7
|
+
* @returns void
|
|
8
|
+
*/
|
|
9
|
+
async archiveWorkflow(workflowId, params) {
|
|
10
|
+
return this.fetchClient.post(`/workflows/${workflowId}/archive`, params);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Restores a workflow
|
|
14
|
+
* @param workflowId - The workflow ID to restore
|
|
15
|
+
* @param params - Restore parameters (app_type and app_id)
|
|
16
|
+
* @returns void
|
|
17
|
+
*/
|
|
18
|
+
async restoreWorkflow(workflowId, params) {
|
|
19
|
+
return this.fetchClient.post(`/workflows/${workflowId}/restore`, params);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=WorkflowsRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowsRepository.js","sourceRoot":"","sources":["../../../../src/repositories/channels/workflows/WorkflowsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IAC1D;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,UAAkB,EAClB,MAA6B;QAE7B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,UAAU,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;IACD;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,UAAkB,EAClB,MAA6B;QAE7B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,UAAU,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type AssetContentArg, FetchRepositoryBase } from "../../../shared/index.js";
|
|
2
|
+
import type { ParamsSchema as GetAssetsParams } from "../../../tools/content/assets/Get.js";
|
|
3
|
+
import type { ParamsSchema as ListAssetsParams } from "../../../tools/content/assets/List.js";
|
|
4
|
+
import type { AssetCreateResponse, BulkCreateAssetResponse, ListAssetsResponse, UpdateAssetImageFromURL } from "./AssetsTypes.js";
|
|
5
|
+
type AssetData = {
|
|
6
|
+
input: string | Buffer;
|
|
7
|
+
modyoType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
type BulkCreateAssetsParams = {
|
|
11
|
+
spaceId: number;
|
|
12
|
+
assets: AssetData[];
|
|
13
|
+
};
|
|
14
|
+
type CreateAssetsParams = {
|
|
15
|
+
spaceId: number;
|
|
16
|
+
};
|
|
17
|
+
type DeleteAssetsParams = {
|
|
18
|
+
spaceId: number;
|
|
19
|
+
assetId: number;
|
|
20
|
+
};
|
|
21
|
+
type UpdateMetadataAssetsParams = {
|
|
22
|
+
spaceId: number;
|
|
23
|
+
assetId: number;
|
|
24
|
+
};
|
|
25
|
+
type UpdateAssetImageParams = {
|
|
26
|
+
spaceId: number;
|
|
27
|
+
assetId: number;
|
|
28
|
+
};
|
|
29
|
+
type ListAssetsQuery = Omit<ListAssetsParams, "spaceId" | "platformSlug">;
|
|
30
|
+
type AssetMetadata = {
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
alt?: string | undefined;
|
|
35
|
+
alt_text?: string | undefined;
|
|
36
|
+
tags?: string[] | undefined;
|
|
37
|
+
};
|
|
38
|
+
export declare class AssetsRepository extends FetchRepositoryBase {
|
|
39
|
+
bulkCreate(spaceId: BulkCreateAssetsParams["spaceId"], assets: BulkCreateAssetsParams["assets"]): Promise<BulkCreateAssetResponse>;
|
|
40
|
+
createAsset(spaceId: CreateAssetsParams["spaceId"], asset: AssetData): Promise<AssetCreateResponse>;
|
|
41
|
+
deleteAsset(spaceId: DeleteAssetsParams["spaceId"], assetId: DeleteAssetsParams["assetId"]): Promise<void>;
|
|
42
|
+
getAsset(spaceId: GetAssetsParams["spaceId"], assetId: GetAssetsParams["assetId"]): Promise<ListAssetsResponse["assets"][number]>;
|
|
43
|
+
getAssets(spaceId: ListAssetsParams["spaceId"], queryParams?: ListAssetsQuery): Promise<ListAssetsResponse>;
|
|
44
|
+
updateAssetMetadata(spaceId: UpdateMetadataAssetsParams["spaceId"], assetId: UpdateMetadataAssetsParams["assetId"], assetMetadata: Partial<AssetMetadata>): Promise<AssetCreateResponse>;
|
|
45
|
+
updateAssetImageFromUrl(spaceId: number, assetId: number, asset: UpdateAssetImageFromURL): Promise<AssetCreateResponse>;
|
|
46
|
+
updateAssetImage(spaceId: UpdateAssetImageParams["spaceId"], assetId: UpdateAssetImageParams["assetId"], asset: AssetContentArg): Promise<AssetCreateResponse>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=AssetsRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetsRepository.d.ts","sourceRoot":"","sources":["../../../../src/repositories/content/assets/AssetsRepository.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EAEpB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAu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C7B,WAAW,CACf,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,EACtC,KAAK,EAAE,SAAS,GACf,OAAO,CAAC,mBAAmB,CAAC;IAiCzB,WAAW,CACf,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,EACtC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,GACrC,OAAO,CAAC,IAAI,CAAC;IAIV,QAAQ,CACZ,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,EACnC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAClC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAO1C,SAAS,CACb,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,EACpC,WAAW,CAAC,EAAE,eAAe,GAC5B,OAAO,CAAC,kBAAkB,CAAC;IAOxB,mBAAmB,CACvB,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,EAC9C,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,EAC9C,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GACpC,OAAO,CAAC,mBAAmB,CAAC;IAMzB,uBAAuB,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,uBAAuB,GAC7B,OAAO,CAAC,mBAAmB,CAAC;IA4BzB,gBAAgB,CACpB,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,EAC1C,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,eAAe,GACrB,OAAO,CAAC,mBAAmB,CAAC;CAgChC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 AssetsRepository extends FetchRepositoryBase {
|
|
5
|
+
async bulkCreate(spaceId, 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(`/content/spaces/${spaceId}/assets/bulk_create`, formData);
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
for (const tempPath of tempPaths) {
|
|
30
|
+
removeAssetContentTempFile(tempPath);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async createAsset(spaceId, 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(`/content/spaces/${spaceId}/assets/bulk_create`, formData);
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
removeAssetContentTempFile(assetPath.tempPath);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async deleteAsset(spaceId, assetId) {
|
|
58
|
+
return this.delete(`/content/spaces/${spaceId}/assets`, assetId);
|
|
59
|
+
}
|
|
60
|
+
async getAsset(spaceId, assetId) {
|
|
61
|
+
return this.getById(`/content/spaces/${spaceId}/assets`, assetId);
|
|
62
|
+
}
|
|
63
|
+
async getAssets(spaceId, queryParams) {
|
|
64
|
+
return this.list(`/content/spaces/${spaceId}/assets`, queryParams);
|
|
65
|
+
}
|
|
66
|
+
async updateAssetMetadata(spaceId, assetId, assetMetadata) {
|
|
67
|
+
return this.fetchClient.put(`/content/spaces/${spaceId}/assets/${assetId}`, assetMetadata);
|
|
68
|
+
}
|
|
69
|
+
async updateAssetImageFromUrl(spaceId, assetId, asset) {
|
|
70
|
+
const response = await fetch(asset.data);
|
|
71
|
+
const contentType = response.headers.get("content-type") || "application/octet-stream";
|
|
72
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
73
|
+
const buffer = Buffer.from(arrayBuffer);
|
|
74
|
+
const formData = new FormData();
|
|
75
|
+
formData.append("data", new Blob([
|
|
76
|
+
buffer,
|
|
77
|
+
], {
|
|
78
|
+
type: contentType,
|
|
79
|
+
}), asset.name);
|
|
80
|
+
if (asset.klass) {
|
|
81
|
+
formData.append("klass", asset.klass);
|
|
82
|
+
}
|
|
83
|
+
return this.fetchClient.putFormData(`/content/spaces/${spaceId}/assets/${assetId}`, formData);
|
|
84
|
+
}
|
|
85
|
+
async updateAssetImage(spaceId, assetId, asset) {
|
|
86
|
+
const { input, modyoType, name } = asset;
|
|
87
|
+
const assetPath = await downloadTempAsset({
|
|
88
|
+
input,
|
|
89
|
+
modyoType,
|
|
90
|
+
name,
|
|
91
|
+
});
|
|
92
|
+
try {
|
|
93
|
+
const formData = new FormData();
|
|
94
|
+
const fp = path.resolve(assetPath.tempPath);
|
|
95
|
+
const data = await fs.readFile(fp);
|
|
96
|
+
formData.append("data[]", new Blob([
|
|
97
|
+
data,
|
|
98
|
+
], {
|
|
99
|
+
type: assetPath.mimeType,
|
|
100
|
+
}), `${name}.${assetPath.ext}`);
|
|
101
|
+
formData.append("klass[]", modyoType);
|
|
102
|
+
return await this.fetchClient.postFormData(`/content/spaces/${spaceId}/assets/${assetId}`, formData);
|
|
103
|
+
}
|
|
104
|
+
finally {
|
|
105
|
+
removeAssetContentTempFile(assetPath.tempPath);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=AssetsRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetsRepository.js","sourceRoot":"","sources":["../../../../src/repositories/content/assets/AssetsRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAoD1B,MAAM,OAAO,gBAAiB,SAAQ,mBAAmB;IACvD,KAAK,CAAC,UAAU,CACd,OAA0C,EAC1C,MAAwC;QAExC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/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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