import { NonNullablePaths } from '@wix/sdk-types'; interface ScriptProperties { /** * Dynamic parameters available to the script when it runs on the site. * * Learn more about [using dynamic parameters](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#using-dynamic-parameters-in-your-html-code). */ parameters?: Record; /** Whether to disable the script. Default: `false`. */ disabled?: boolean; } interface EmbedScriptRequest { /** Details of the script to embed. */ properties: ScriptProperties; /** * Extension ID of the embedded script. * * You can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts). * @format GUID */ componentId?: string | null; } interface EmbedScriptResponse { /** Details of the embedded script. */ properties?: ScriptProperties; } interface GetEmbeddedScriptRequest { /** * Extension ID of the embedded script to retrieve. * * You can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts). * @format GUID */ componentId?: string | null; } interface GetEmbeddedScriptResponse { /** Details of the retrieved embedded script. */ properties?: ScriptProperties; } interface EmbedScriptByInstanceIdRequest { /** @format GUID */ instanceId?: string; /** Parameters to embed */ properties?: ScriptProperties; /** @format GUID */ componentId?: string | null; } interface GetEmbeddedScriptByInstanceIdRequest { /** @format GUID */ instanceId?: string; /** @format GUID */ componentId?: string | null; } /** * Inserts custom script tags into a site, with the specified values for any dynamic parameters. Call this method when your app is installed on a site. * * Your app must have an existing * [embedded script component](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/embedded-scripts/about-embedded-scripts), * with exactly matching parameter names. * @param properties - Details of the script to embed. * @public * @requiredField properties * @permissionId APPS.MANAGE_EMBEDDED_SCRIPT * @applicableIdentity APP * @fqn com.wixpress.market.aim.api.EmbeddedScriptsService.EmbedScript */ declare function embedScript(properties: ScriptProperties, options?: EmbedScriptOptions): Promise>; interface EmbedScriptOptions { /** * Extension ID of the embedded script. * * You can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts). * @format GUID */ componentId?: string | null; } /** * Retrieves information about your app's existing embedded script. * * If your app doesn't have an embedded script on the relevant site, a `404` error is returned. * @public * @permissionId APPS.MANAGE_EMBEDDED_SCRIPT * @applicableIdentity APP * @returns Details of the retrieved embedded script. * @fqn com.wixpress.market.aim.api.EmbeddedScriptsService.GetEmbeddedScript */ declare function getEmbeddedScript(options?: GetEmbeddedScriptOptions): Promise>; interface GetEmbeddedScriptOptions { /** * Extension ID of the embedded script to retrieve. * * You can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts). * @format GUID */ componentId?: string | null; } export { type EmbedScriptByInstanceIdRequest, type EmbedScriptOptions, type EmbedScriptRequest, type EmbedScriptResponse, type GetEmbeddedScriptByInstanceIdRequest, type GetEmbeddedScriptOptions, type GetEmbeddedScriptRequest, type GetEmbeddedScriptResponse, type ScriptProperties, embedScript, getEmbeddedScript };