@wix/auto_sdk_automations_automation-templates 1.0.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/build/cjs/index.d.ts +1491 -0
- package/build/cjs/index.js +895 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +809 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1353 -0
- package/build/cjs/meta.js +728 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +1491 -0
- package/build/es/index.mjs +852 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +766 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1353 -0
- package/build/es/meta.mjs +682 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +110 -0
- package/build/internal/cjs/index.js +895 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1608 -0
- package/build/internal/cjs/index.typings.js +809 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1354 -0
- package/build/internal/cjs/meta.js +728 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +110 -0
- package/build/internal/es/index.mjs +852 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1608 -0
- package/build/internal/es/index.typings.mjs +766 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1354 -0
- package/build/internal/es/meta.mjs +682 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/automations-templates-v1-automation-template-automation-templates.http.ts","../../../src/automations-templates-v1-automation-template-automation-templates.types.ts","../../../src/automations-templates-v1-automation-template-automation-templates.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/automation-templates',\n destPath: '/api',\n },\n {\n srcPath: '/automation-templates',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_automation-templates';\n\n/** Creates an AutomationTemplate. */\nexport function createAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __createAutomationTemplate({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.CreateAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAutomationTemplate;\n}\n\n/** Creates a draft AutomationTemplate. */\nexport function createDraftAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDraftAutomationTemplate({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.CreateDraftAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/drafts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDraftAutomationTemplate;\n}\n\n/** Retrieves an AutomationTemplate. */\nexport function getAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __getAutomationTemplate({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.GetAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/{automationTemplateId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAutomationTemplate;\n}\n\n/** Updates an AutomationTemplate. */\nexport function updateAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateAutomationTemplate({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.UpdateAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/{automationTemplate.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAutomationTemplate;\n}\n\n/** Updates an existing draft AutomationTemplate without creating a new template version. */\nexport function updateDraftAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDraftAutomationTemplate({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.UpdateDraftAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/drafts/{automationTemplate.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDraftAutomationTemplate;\n}\n\n/** Deletes an AutomationTemplate. */\nexport function deleteAutomationTemplate(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteAutomationTemplate({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.DeleteAutomationTemplate',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/{componentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAutomationTemplate;\n}\n\n/** Returns AutomationTemplates that are installed on the site and exposed to Wix users. */\nexport function resolveAutomationTemplates(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveAutomationTemplates({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.ResolveAutomationTemplates',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/resolve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplates.createdDate' },\n { path: 'automationTemplates.updatedDate' },\n { path: 'automationTemplates.automation.createdDate' },\n { path: 'automationTemplates.automation.updatedDate' },\n { path: 'automationTemplates.automation.draftUpdatedDate' },\n {\n path: 'automationTemplates.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveAutomationTemplates;\n}\n\n/** Allows an app to query its automation templates. */\nexport function queryAutomationTemplatesForApp(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryAutomationTemplatesForApp({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.QueryAutomationTemplatesForApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/query-for-app',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplates.createdDate' },\n { path: 'automationTemplates.updatedDate' },\n { path: 'automationTemplates.automation.createdDate' },\n { path: 'automationTemplates.automation.updatedDate' },\n { path: 'automationTemplates.automation.draftUpdatedDate' },\n {\n path: 'automationTemplates.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAutomationTemplatesForApp;\n}\n\n/** Generates an AutomationTemplate from an Automation. */\nexport function generateTemplateFromAutomation(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateTemplateFromAutomation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'automation.createdDate' },\n { path: 'automation.updatedDate' },\n { path: 'automation.draftUpdatedDate' },\n { path: 'automation.autoArchivePolicy.archiveDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.templates.v1.automation_template',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.templates.v1.AutomationTemplatesService.GenerateTemplateFromAutomation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({\n protoPath: '/v1/automation-templates/generate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'automationTemplate.createdDate' },\n { path: 'automationTemplate.updatedDate' },\n { path: 'automationTemplate.automation.createdDate' },\n { path: 'automationTemplate.automation.updatedDate' },\n { path: 'automationTemplate.automation.draftUpdatedDate' },\n {\n path: 'automationTemplate.automation.autoArchivePolicy.archiveDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateTemplateFromAutomation;\n}\n","/** An AutomationTemplate holds a reusable automation blueprint with template-specific metadata. */\nexport interface AutomationTemplate {\n /**\n * AutomationTemplate ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number. This increments by 1 whenever the automation template is updated. Specify the current revision number whenever updating an existing automation template.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the AutomationTemplate was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the AutomationTemplate was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** The automation blueprint this template is based on. */\n automation?: Automation;\n /**\n * Component ID that owns this template.\n * @format GUID\n * @readonly\n */\n componentId?: string | null;\n /**\n * Component version.\n * @readonly\n */\n componentVersion?: number | null;\n /**\n * App ID that owns this template.\n * @format GUID\n * @readonly\n */\n appId?: string;\n /**\n * Display name for the automation template.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * description of what the automation template does.\n * @minLength 1\n * @maxLength 2000\n */\n description?: string;\n /**\n * goal or intent of the automation template.\n * @maxLength 500\n */\n goal?: string | null;\n}\n\nexport enum Category {\n SELL_MORE_ONLINE = 'SELL_MORE_ONLINE',\n ENGAGE_WITH_CLIENTS = 'ENGAGE_WITH_CLIENTS',\n GET_PAID_ON_TIME = 'GET_PAID_ON_TIME',\n MANAGE_BUSINESS = 'MANAGE_BUSINESS',\n RETAIN_CUSTOMERS = 'RETAIN_CUSTOMERS',\n POPULAR = 'POPULAR',\n}\n\n/** @enumType */\nexport type CategoryWithLiterals =\n | Category\n | 'SELL_MORE_ONLINE'\n | 'ENGAGE_WITH_CLIENTS'\n | 'GET_PAID_ON_TIME'\n | 'MANAGE_BUSINESS'\n | 'RETAIN_CUSTOMERS'\n | 'POPULAR';\n\nexport interface Automation extends AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n /** When the origin of the automation is `TEMPLATE`, the details of the template automation. */\n templateInfo?: TemplateOrigin;\n /**\n * Automation ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Who created the automation.\n * @immutable\n * @readonly\n */\n createdBy?: AuditInfo;\n /**\n * When the automation was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Who last updated the automation.\n * @readonly\n */\n updatedBy?: AuditInfo;\n /**\n * When the automation was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Automation name as displayed on the user's site.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Automation description.\n * @maxLength 2000\n */\n description?: string | null;\n /** Automation configuration. */\n configuration?: AutomationConfiguration;\n /**\n * How the automation was added to the user's site.\n * @immutable\n */\n origin?: OriginWithLiterals;\n /** Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations */\n settings?: AutomationSettings;\n /**\n * When the automation is a draft, the draft details.\n * @readonly\n */\n draftInfo?: DraftInfo;\n /**\n * Whether the automation is archived.\n *\n * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.\n */\n archived?: boolean;\n /** Auto archive policy */\n autoArchivePolicy?: AutoArchivePolicy;\n}\n\n/** @oneof */\nexport interface AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n /** When the origin of the automation is `TEMPLATE`, the details of the template automation. */\n templateInfo?: TemplateOrigin;\n}\n\nexport interface AIMetadata {\n /**\n * Origin agent identifier.\n * @minLength 1\n * @maxLength 64\n */\n originAgentIdentifier?: string | null;\n}\n\nexport interface ActionSettings {\n /**\n * IDs of actions whose `skipActionExpression` can't be modified.\n *\n * An action's `skipActionExpression` determines whether the action is skipped. Including an action's ID in this array makes its `skipActionExpression` permanent, so it can't be changed.\n *\n * When empty, the `skipActionExpression` of all actions can be edited.\n * @maxSize 30\n * @format GUID\n */\n permanentActionIds?: string[];\n /**\n * IDs of read-only actions. Read-only actions cannot be modified.\n *\n * When empty and the automation's `settings.readonly` is `false`, all actions are modifiable.\n * @maxSize 30\n * @format GUID\n */\n readonlyActionIds?: string[];\n}\n\nexport enum Domain {\n /** User domain (default). */\n USER = 'USER',\n /** Wix domain. */\n WIX = 'WIX',\n /** Wix account-level domain. */\n WIX_ACCOUNT = 'WIX_ACCOUNT',\n}\n\n/** @enumType */\nexport type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';\n\nexport interface TriggerSettings {}\n\nexport interface Enrichment {\n /**\n * Enrichment input mappings.\n * @maxSize 2\n */\n inputMappings?: Record<string, any>[] | null;\n}\n\nexport interface AuditInfo extends AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface AutomationConfiguration {\n /** Status of the automation on the site. */\n status?: StatusWithLiterals;\n /** Trigger configuration. */\n trigger?: Trigger;\n /**\n * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.\n *\n * > **Note**: You can currently only specify 1 root action.\n * @maxSize 20\n * @format GUID\n */\n rootActionIds?: string[];\n /** Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below. */\n actions?: Record<string, Action>;\n}\n\nexport enum TimeUnit {\n /** Minutes. */\n MINUTES = 'MINUTES',\n /** Hours. */\n HOURS = 'HOURS',\n /** Days. */\n DAYS = 'DAYS',\n /** Weeks. */\n WEEKS = 'WEEKS',\n /** Months. */\n MONTHS = 'MONTHS',\n}\n\n/** @enumType */\nexport type TimeUnitWithLiterals =\n | TimeUnit\n | 'MINUTES'\n | 'HOURS'\n | 'DAYS'\n | 'WEEKS'\n | 'MONTHS';\n\nexport interface Filter {\n /**\n * Filter ID.\n * @format GUID\n */\n id?: string;\n /**\n * Field key.\n *\n * You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).\n * @minLength 1\n * @maxLength 110\n */\n fieldKey?: string;\n /**\n * Filter expression in bracket notation.\n *\n * For the automation to run, the expression must evaluate to `true`.\n * @maxLength 5000\n */\n filterExpression?: string;\n}\n\nexport interface FutureDateActivationOffset {\n /**\n * Amount of time before the trigger to run the automation.\n *\n * > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).\n * @maxLength 1000\n */\n preScheduledEventOffsetExpression?: string;\n /** Unit in which to set the action offset. */\n scheduledEventOffsetTimeUnit?: TimeUnitWithLiterals;\n}\n\nexport interface RateLimit {\n /**\n * Maximum number of times the trigger can be activated.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Duration of the rate limit. The rate limit applies for the specified duration and then expires.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n durationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n durationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Activation identifier used to count the number of activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n}\n\nexport interface FilterValueSelection {\n /**\n * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.\n * @maxLength 80\n * @maxSize 50\n */\n selectedFilterValues?: string[];\n}\n\nexport interface ConditionExpressionGroup {\n /** Logical operator used to evaluate the condition expressions. */\n operator?: OperatorWithLiterals;\n /**\n * Expressions evaluated using the selected operator.\n * @minSize 1\n * @maxSize 20\n * @maxLength 5000\n */\n booleanExpressions?: string[];\n}\n\nexport enum Operator {\n /** `OR` operator. */\n OR = 'OR',\n /** `AND` operator. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type OperatorWithLiterals = Operator | 'OR' | 'AND';\n\nexport interface CodeSnippet {\n /** Logical operator used to evaluate the condition expressions. */\n language?: LanguageWithLiterals;\n /**\n * Expressions evaluated using the selected operator. this code should comply the language syntax. and format\n * @maxLength 1500\n */\n code?: string;\n}\n\nexport enum Language {\n /** JavaScript. */\n JAVASCRIPT = 'JAVASCRIPT',\n}\n\n/** @enumType */\nexport type LanguageWithLiterals = Language | 'JAVASCRIPT';\n\n/** Path definition */\nexport interface Path {\n /**\n * Unique path ID.\n * @format GUID\n */\n id?: string;\n /**\n * Path name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * ID of the action to run when this path is taken.\n * @format GUID\n */\n postActionId?: string | null;\n /**\n * Editable display name for the path.\n * @minLength 1\n * @maxLength 60\n */\n displayName?: string | null;\n}\n\nexport enum Type {\n /** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action). This action type is available in the site dashboard. */\n APP_DEFINED = 'APP_DEFINED',\n /**\n * Condition action. Evaluates a condition to determine which action runs next.\n *\n * Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.\n *\n * > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `conditionInfo.truePostActionIds` run and those in `conditionInfo.falsePostActionIds` are skipped.\n */\n CONDITION = 'CONDITION',\n /**\n * Code condition action. Evaluates custom code to determine which action runs next.\n *\n * Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.\n *\n * > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `codeConditionInfo.truePostActionIds` run and those in `codeConditionInfo.falsePostActionIds` are skipped.\n */\n CODE_CONDITION = 'CODE_CONDITION',\n /** Delay. The automation must wait before executing the next step. */\n DELAY = 'DELAY',\n /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */\n RATE_LIMIT = 'RATE_LIMIT',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'APP_DEFINED'\n | 'CONDITION'\n | 'CODE_CONDITION'\n | 'DELAY'\n | 'RATE_LIMIT';\n\nexport interface AppDefinedAction {\n /**\n * ID of the app that defines the action.\n * @format GUID\n */\n appId?: string;\n /**\n * Action key.\n * @minLength 1\n * @maxLength 100\n */\n actionKey?: string;\n /**\n * Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\n *\n * The input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\n */\n inputMapping?: Record<string, any> | null;\n /**\n * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @maxSize 10\n * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @replacedBy skip_action_expression\n * @targetRemovalDate 2026-02-01\n */\n skipConditionOrExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions that run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n /** Action output schema. When specified, this replaces the action schema. */\n overrideOutputSchema?: Record<string, any> | null;\n}\n\nexport interface ConditionAction {\n /**\n * Condition is `true` if one or more of the expression groups evaluates to `true`.\n * @minSize 1\n * @maxSize 10\n */\n orExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n /**\n * ID of the MERGE action for this condition. When absent, branches run independently (current behavior).\n * @format GUID\n */\n mergeActionId?: string | null;\n}\n\nexport interface CodeConditionAction {\n /** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */\n snippet?: CodeSnippet;\n /**\n * dynamic variables used in the code snippet. these variables can be used inside the code using var('variableName') function.\n * this list is mainly for validation purpose.\n * @maxSize 50\n * @maxLength 100\n */\n dynamicVariableExpressions?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n /**\n * ID of the MERGE action for this condition. When absent, branches run independently (current behavior).\n * @format GUID\n */\n mergeActionId?: string | null;\n}\n\nexport interface DelayAction {\n /**\n * Time to wait before running the action. The wait time starts from when the current action completes.\n *\n * > **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.\n * @maxLength 1000\n */\n offsetExpression?: string | null;\n /** Unit in which to set the wait time to wait before the action runs. */\n offsetTimeUnit?: TimeUnitWithLiterals;\n /**\n * Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n * @deprecated Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @replacedBy due_date_expression\n * @targetRemovalDate 2026-02-01\n */\n dueDateEpochExpression?: string | null;\n /**\n * Action run date as a timestamp or DateTime expression using bracket notation.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n */\n dueDateExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the time delay.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface RateLimitAction {\n /**\n * Maximum number of times the action can run.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Rate limit duration.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n rateLimitDurationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n rateLimitDurationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Unique identifier of each activation by which rate limiter counts activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface SetVariablesAction {\n /** Output mapping. For example: `{\"someField\": \"{{10}}\", \"someOtherField\": \"{{multiply( var('account.points.balance') ;2 )}}\" }`. */\n outputMapping?: Record<string, any> | null;\n /**\n * Output JSON schema representation.\n *\n * > **Note**: To minimize request size, you can also specify a string.\n */\n outputSchema?: Record<string, any> | null;\n /**\n * IDs of actions to run in parallel after variable initialization.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface OutputAction {\n /** Output action output mapping. */\n outputMapping?: Record<string, any> | null;\n}\n\nexport interface SplitAction {\n /**\n * List of paths to split execution into.\n * @minSize 2\n * @maxSize 10\n */\n paths?: Path[];\n}\n\nexport interface MergeAction {\n /**\n * ID of the action to execute after the arriving branch completes.\n * @format GUID\n */\n postActionId?: string | null;\n}\n\nexport enum Status {\n /** Active. Active automations can be triggered. */\n ACTIVE = 'ACTIVE',\n /** Inactive. Inactive automations cannot be triggered. */\n INACTIVE = 'INACTIVE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'ACTIVE' | 'INACTIVE';\n\nexport interface Trigger {\n /**\n * ID of the app that defines the trigger.\n * @format GUID\n */\n appId?: string;\n /**\n * Trigger key.\n *\n * Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).\n * @minLength 1\n * @maxLength 100\n */\n triggerKey?: string;\n /**\n * Schema field filters. All filter conditions must be met for the automation to run.\n *\n * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#filters).\n * @maxSize 5\n */\n filters?: Filter[];\n /**\n * Automation offset. You can schedule automations to run before the trigger occurs.\n *\n * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).\n */\n scheduledEventOffset?: FutureDateActivationOffset;\n /** Limit on the number of times an automation can be triggered. */\n rateLimit?: RateLimit;\n /** Trigger schema override. When specified, this replaces the trigger schema. */\n overrideSchema?: Record<string, any> | null;\n}\n\nexport interface Action extends ActionInfoOneOf {\n /** Details of the action whose `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action whose `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action whose `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action whose `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action whose `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n /**\n * Action ID.\n *\n * Unique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\n *\n * If not specified, automatically generated by Wix.\n * @format GUID\n */\n id?: string | null;\n /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type). */\n type?: TypeWithLiterals;\n /**\n * Editable display name for the action.\n * @minLength 1\n * @maxLength 60\n */\n displayName?: string | null;\n /**\n * [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\n *\n * If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.\n * @minLength 1\n * @maxLength 100\n */\n namespace?: string | null;\n /**\n * Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\n *\n * When empty, the action runs.\n * @maxLength 1000\n */\n skipActionExpression?: string | null;\n}\n\n/** @oneof */\nexport interface ActionInfoOneOf {\n /** Details of the action whose `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action whose `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action whose `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action whose `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action whose `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n}\n\nexport interface FilterableAppDefinedActions {\n /**\n * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 150\n */\n actionIdentifiers?: string[];\n}\n\nexport enum Origin {\n /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */\n USER = 'USER',\n /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */\n APPLICATION = 'APPLICATION',\n /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */\n PREINSTALLED = 'PREINSTALLED',\n}\n\n/** @enumType */\nexport type OriginWithLiterals =\n | Origin\n | 'USER'\n | 'APPLICATION'\n | 'PREINSTALLED';\n\nexport interface ApplicationOrigin {\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface PreinstalledOrigin {\n /**\n * ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).\n * @format GUID\n */\n appId?: string;\n /**\n * Whether the automation is an override.\n *\n * When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\n *\n * > **Note**: An override automation can no longer be updated by the app that originally installed it.\n * >\n * > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\n *\n * Default: `false`.\n * @immutable\n * @readonly\n */\n override?: boolean | null;\n}\n\nexport interface TemplateOrigin {\n /**\n * ID of the app that added the template automation.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface AutomationSettings {\n /**\n * Whether the automation is hidden from users.\n *\n * Default: `false`\n */\n hidden?: boolean;\n /**\n * Whether the automation is read-only.\n *\n * When `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\n *\n * Default: `false`.\n *\n * > **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\n */\n readonly?: boolean;\n /**\n * Whether to disable the option to delete the automation from the site.\n *\n * Default: `false`.\n */\n disableDelete?: boolean;\n /**\n * Whether to disable the option to change the automation's `configuration.status`.\n *\n * Default: `false`.\n */\n disableStatusChange?: boolean;\n /** Automation action settings. */\n actionSettings?: ActionSettings;\n}\n\nexport interface DraftInfo {\n /**\n * ID of the original automation.\n * @format GUID\n * @readonly\n */\n originalAutomationId?: string | null;\n}\n\nexport interface Enrichments {\n /** Whether the studio site enrichment is wanted. */\n studioSite?: Enrichment;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface AutoArchivePolicy {\n /**\n * Date when to archive the automation\n * If this date in the past, nothing will happen (automation will not go into archived state)\n * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\n * After this date the automation may be unarchived and archived again, this date will have no influence\n */\n archiveDate?: Date | null;\n}\n\nexport interface Notes {}\n\nexport interface Note {}\n\nexport interface Position {}\n\nexport interface Offset {}\n\nexport interface Dimensions {}\n\n/** A category with its order for ordering the template within the category. */\nexport interface CategoryInfo {\n /** The category. */\n category?: CategoryWithLiterals;\n}\n\n/** Information needed to create or resolve a segment from an automation template. */\nexport interface SegmentInfo {\n /** Segment template JSON that may contain placeholder values. */\n segmentTemplate?: Record<string, any> | null;\n /**\n * Automation action values keyed by segment template parameter.\n * @maxSize 100\n */\n templateParameterOverrides?: Record<string, any>;\n}\n\nexport interface AutomationTemplateDeletedWithEntity {\n /** The AutomationTemplate that was deleted. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface CreateAutomationTemplateRequest {\n /** AutomationTemplate to be created. */\n automationTemplate: AutomationTemplate;\n /**\n * ID of the app to which the automation template belongs.\n * @format GUID\n */\n appId: string;\n /**\n * The meta site ID from which the original automation was taken.\n * @format GUID\n */\n originalMetaSiteId: string;\n}\n\nexport interface AutomationTemplateSpecInfo {\n /**\n * Spec to conduct on for the automation.\n *\n * For internal use only.\n * @minLength 1\n * @maxLength 128\n */\n spec?: string;\n /**\n * Value the spec should return in order to affect the user with the operation\n * e.g. creation - show the users the automation template, update - show the users the updated automation template, deletion - not show the users the automation template\n * @minLength 1\n * @maxLength 128\n */\n variantValue?: string | null;\n /**\n * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)\n * For example, if 50 is set, version 49 and below (including 49) will not expose the automation template to the user.\n */\n experimentVersion?: number;\n}\n\nexport interface CreateAutomationTemplateResponse {\n /** The created AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface CreateDraftAutomationTemplateRequest {\n /** Draft AutomationTemplate to be created. May be partial. */\n automationTemplate: AutomationTemplate;\n /**\n * ID of the app to which the draft automation template belongs.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface CreateDraftAutomationTemplateResponse {\n /** The created draft AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface GetAutomationTemplateRequest {\n /**\n * ID of the AutomationTemplate to retrieve.\n * @format GUID\n */\n automationTemplateId: string;\n}\n\nexport interface GetAutomationTemplateResponse {\n /** The requested AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface UpdateAutomationTemplateRequest {\n /** AutomationTemplate to be updated, may be partial. */\n automationTemplate: AutomationTemplate;\n /**\n * ID of the app to which the automation template belongs.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface UpdateAutomationTemplateResponse {\n /** Updated AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface UpdateDraftAutomationTemplateRequest {\n /** Draft AutomationTemplate content to persist. */\n automationTemplate: AutomationTemplate;\n /**\n * ID of the app to which the automation template belongs.\n * @format GUID\n */\n appId: string;\n /**\n * The meta site ID from which the draft automation was taken.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\nexport interface UpdateDraftAutomationTemplateResponse {\n /** Updated draft AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface DeleteAutomationTemplateRequest {\n /**\n * App id of the AutomationTemplate to delete.\n * @format GUID\n */\n appId: string;\n /**\n * Component id of the AutomationTemplate to delete.\n * @format GUID\n */\n componentId: string;\n}\n\nexport interface DeleteAutomationTemplateResponse {}\n\nexport interface ResolveAutomationTemplatesRequest {\n /** Query options. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CommonCursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: CommonSorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CommonCursorPaging;\n}\n\nexport interface CommonSorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: CommonSortOrderWithLiterals;\n}\n\nexport enum CommonSortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type CommonSortOrderWithLiterals = CommonSortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ResolveAutomationTemplatesResponse {\n /** Retrieved AutomationTemplates. */\n automationTemplates?: AutomationTemplate[];\n /** Paging metadata of the response. */\n pagingMetadata?: CommonCursorPagingMetadata;\n}\n\nexport interface CommonCursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: CommonCursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface CommonCursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryAutomationTemplatesForAppRequest {\n /** Query options. */\n query: CursorQuery;\n /**\n * ID of the app for which to query template automations.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryAutomationTemplatesForAppResponse {\n /** Retrieved AutomationTemplates. */\n automationTemplates?: AutomationTemplate[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface GenerateTemplateFromAutomationRequest {\n /** Automation to generate a template from. */\n automation: Automation;\n /**\n * ID of the app generating the template.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface GenerateTemplateFromAutomationResponse {\n /** The generated AutomationTemplate. */\n automationTemplate?: AutomationTemplate;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixAutomationsTemplatesV1AutomationTemplate from './automations-templates-v1-automation-template-automation-templates.http.js';\nimport * as ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes from './automations-templates-v1-automation-template-automation-templates.types.js';\nimport * as ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes from './automations-templates-v1-automation-template-automation-templates.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createAutomationTemplate(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.CreateAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.CreateAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.CreateAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.CreateAutomationTemplateResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.createAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/automation-templates',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDraftAutomationTemplate(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.CreateDraftAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.CreateDraftAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.CreateDraftAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.CreateDraftAutomationTemplateResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.createDraftAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/automation-templates/drafts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAutomationTemplate(): __PublicMethodMetaInfo<\n 'GET',\n { automationTemplateId: string },\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.GetAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.GetAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.GetAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.GetAutomationTemplateResponse\n> {\n const payload = { automationTemplateId: ':automationTemplateId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.getAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/automation-templates/{automationTemplateId}',\n pathParams: { automationTemplateId: 'automationTemplateId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateAutomationTemplate(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationTemplateId: string },\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.UpdateAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.UpdateAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.UpdateAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.UpdateAutomationTemplateResponse\n> {\n const payload = {\n automationTemplate: { id: ':automationTemplateId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.updateAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/automation-templates/{automationTemplate.id}',\n pathParams: { automationTemplateId: 'automationTemplateId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateDraftAutomationTemplate(): __PublicMethodMetaInfo<\n 'PATCH',\n { automationTemplateId: string },\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.UpdateDraftAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.UpdateDraftAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.UpdateDraftAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.UpdateDraftAutomationTemplateResponse\n> {\n const payload = {\n automationTemplate: { id: ':automationTemplateId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.updateDraftAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/automation-templates/drafts/{automationTemplate.id}',\n pathParams: { automationTemplateId: 'automationTemplateId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteAutomationTemplate(): __PublicMethodMetaInfo<\n 'DELETE',\n { componentId: string },\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.DeleteAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.DeleteAutomationTemplateRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.DeleteAutomationTemplateResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.DeleteAutomationTemplateResponse\n> {\n const payload = { componentId: ':componentId' } as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.deleteAutomationTemplate(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/automation-templates/{componentId}',\n pathParams: { componentId: 'componentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function resolveAutomationTemplates(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.ResolveAutomationTemplatesRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.ResolveAutomationTemplatesRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.ResolveAutomationTemplatesResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.ResolveAutomationTemplatesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.resolveAutomationTemplates(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/automation-templates/resolve',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryAutomationTemplatesForApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.QueryAutomationTemplatesForAppRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.QueryAutomationTemplatesForAppRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.QueryAutomationTemplatesForAppResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.QueryAutomationTemplatesForAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.queryAutomationTemplatesForApp(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/automation-templates/query-for-app',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateTemplateFromAutomation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.GenerateTemplateFromAutomationRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.GenerateTemplateFromAutomationRequest,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateUniversalTypes.GenerateTemplateFromAutomationResponse,\n ambassadorWixAutomationsTemplatesV1AutomationTemplateTypes.GenerateTemplateFromAutomationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAutomationsTemplatesV1AutomationTemplate.generateTemplateFromAutomation(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/automation-templates/generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n AutomationTemplate as AutomationTemplateOriginal,\n Category as CategoryOriginal,\n CategoryWithLiterals as CategoryWithLiteralsOriginal,\n Automation as AutomationOriginal,\n AutomationOriginInfoOneOf as AutomationOriginInfoOneOfOriginal,\n AIMetadata as AIMetadataOriginal,\n ActionSettings as ActionSettingsOriginal,\n Domain as DomainOriginal,\n DomainWithLiterals as DomainWithLiteralsOriginal,\n TriggerSettings as TriggerSettingsOriginal,\n Enrichment as EnrichmentOriginal,\n AuditInfo as AuditInfoOriginal,\n AuditInfoIdOneOf as AuditInfoIdOneOfOriginal,\n AutomationConfiguration as AutomationConfigurationOriginal,\n TimeUnit as TimeUnitOriginal,\n TimeUnitWithLiterals as TimeUnitWithLiteralsOriginal,\n Filter as FilterOriginal,\n FutureDateActivationOffset as FutureDateActivationOffsetOriginal,\n RateLimit as RateLimitOriginal,\n FilterValueSelection as FilterValueSelectionOriginal,\n ConditionExpressionGroup as ConditionExpressionGroupOriginal,\n Operator as OperatorOriginal,\n OperatorWithLiterals as OperatorWithLiteralsOriginal,\n CodeSnippet as CodeSnippetOriginal,\n Language as LanguageOriginal,\n LanguageWithLiterals as LanguageWithLiteralsOriginal,\n Path as PathOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n AppDefinedAction as AppDefinedActionOriginal,\n ConditionAction as ConditionActionOriginal,\n CodeConditionAction as CodeConditionActionOriginal,\n DelayAction as DelayActionOriginal,\n RateLimitAction as RateLimitActionOriginal,\n SetVariablesAction as SetVariablesActionOriginal,\n OutputAction as OutputActionOriginal,\n SplitAction as SplitActionOriginal,\n MergeAction as MergeActionOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n Trigger as TriggerOriginal,\n Action as ActionOriginal,\n ActionInfoOneOf as ActionInfoOneOfOriginal,\n FilterableAppDefinedActions as FilterableAppDefinedActionsOriginal,\n Origin as OriginOriginal,\n OriginWithLiterals as OriginWithLiteralsOriginal,\n ApplicationOrigin as ApplicationOriginOriginal,\n PreinstalledOrigin as PreinstalledOriginOriginal,\n TemplateOrigin as TemplateOriginOriginal,\n AutomationSettings as AutomationSettingsOriginal,\n DraftInfo as DraftInfoOriginal,\n Enrichments as EnrichmentsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n AutoArchivePolicy as AutoArchivePolicyOriginal,\n Notes as NotesOriginal,\n Note as NoteOriginal,\n Position as PositionOriginal,\n Offset as OffsetOriginal,\n Dimensions as DimensionsOriginal,\n CategoryInfo as CategoryInfoOriginal,\n SegmentInfo as SegmentInfoOriginal,\n AutomationTemplateDeletedWithEntity as AutomationTemplateDeletedWithEntityOriginal,\n CreateAutomationTemplateRequest as CreateAutomationTemplateRequestOriginal,\n AutomationTemplateSpecInfo as AutomationTemplateSpecInfoOriginal,\n CreateAutomationTemplateResponse as CreateAutomationTemplateResponseOriginal,\n CreateDraftAutomationTemplateRequest as CreateDraftAutomationTemplateRequestOriginal,\n CreateDraftAutomationTemplateResponse as CreateDraftAutomationTemplateResponseOriginal,\n GetAutomationTemplateRequest as GetAutomationTemplateRequestOriginal,\n GetAutomationTemplateResponse as GetAutomationTemplateResponseOriginal,\n UpdateAutomationTemplateRequest as UpdateAutomationTemplateRequestOriginal,\n UpdateAutomationTemplateResponse as UpdateAutomationTemplateResponseOriginal,\n UpdateDraftAutomationTemplateRequest as UpdateDraftAutomationTemplateRequestOriginal,\n UpdateDraftAutomationTemplateResponse as UpdateDraftAutomationTemplateResponseOriginal,\n DeleteAutomationTemplateRequest as DeleteAutomationTemplateRequestOriginal,\n DeleteAutomationTemplateResponse as DeleteAutomationTemplateResponseOriginal,\n ResolveAutomationTemplatesRequest as ResolveAutomationTemplatesRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n CommonSorting as CommonSortingOriginal,\n CommonSortOrder as CommonSortOrderOriginal,\n CommonSortOrderWithLiterals as CommonSortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CommonCursorPaging as CommonCursorPagingOriginal,\n ResolveAutomationTemplatesResponse as ResolveAutomationTemplatesResponseOriginal,\n CommonCursorPagingMetadata as CommonCursorPagingMetadataOriginal,\n CommonCursors as CommonCursorsOriginal,\n QueryAutomationTemplatesForAppRequest as QueryAutomationTemplatesForAppRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryAutomationTemplatesForAppResponse as QueryAutomationTemplatesForAppResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n GenerateTemplateFromAutomationRequest as GenerateTemplateFromAutomationRequestOriginal,\n GenerateTemplateFromAutomationResponse as GenerateTemplateFromAutomationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './automations-templates-v1-automation-template-automation-templates.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC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ACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACkD;AAAA,IACpD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Category","Domain","TimeUnit","Operator","Language","Type","Status","Origin","CommonSortOrder","SortOrder","WebhookIdentityType","createAutomationTemplate","createDraftAutomationTemplate","getAutomationTemplate","updateAutomationTemplate","updateDraftAutomationTemplate","deleteAutomationTemplate","resolveAutomationTemplates","queryAutomationTemplatesForApp","generateTemplateFromAutomation"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_automations_automation-templates",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/",
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"main": "./build/cjs/index.js",
|
|
12
|
+
"types": "./build/cjs/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./build/es/index.mjs",
|
|
16
|
+
"require": "./build/cjs/index.js",
|
|
17
|
+
"types": "./build/es/index.d.mts"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./meta": {
|
|
21
|
+
"import": "./build/es/meta.mjs",
|
|
22
|
+
"require": "./build/cjs/meta.js",
|
|
23
|
+
"types": "./build/es/meta.d.mts"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"build",
|
|
28
|
+
"meta",
|
|
29
|
+
"service-plugins"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.12",
|
|
33
|
+
"@wix/sdk-types": "^1.17.7",
|
|
34
|
+
"zod": "^4.3.6"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"tsup": "^8.4.0",
|
|
38
|
+
"typescript": "^5.3.2"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"test": ":"
|
|
43
|
+
},
|
|
44
|
+
"wix": {
|
|
45
|
+
"artifact": {
|
|
46
|
+
"artifactId": "auto-sdk-automations-automation-templates",
|
|
47
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
48
|
+
},
|
|
49
|
+
"sdkDependency": {
|
|
50
|
+
"fqdnNamespace": "automationTemplates",
|
|
51
|
+
"fqdn": "wix.automations.templates.v1.automation_template"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"falconPackageHash": "f796bef4f36f3a889591698fc72321a6282f6978d7be5cc7d55e8a4c"
|
|
55
|
+
}
|