@wix/auto_sdk_automations_automations-v-2 1.0.76 → 1.0.77
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 +9 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +139 -61
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +123 -59
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +9 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +139 -61
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +123 -59
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +139 -61
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +123 -59
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +9 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +139 -61
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +123 -59
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -145,7 +145,15 @@ interface PublishDraftAutomationSignature {
|
|
|
145
145
|
declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
|
|
146
146
|
interface ValidateAutomationSignature {
|
|
147
147
|
/**
|
|
148
|
-
* Validates
|
|
148
|
+
* Validates an automation. A valid automation has no validation errors.
|
|
149
|
+
*
|
|
150
|
+
* This method:
|
|
151
|
+
*
|
|
152
|
+
* - Validates that the [trigger is properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger).
|
|
153
|
+
* - Validates that all [actions are properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) with correct [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) and other mappings.
|
|
154
|
+
* - Validates custom logic added by [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
|
|
155
|
+
*
|
|
156
|
+
* > **Note**: This method identifies configuration errors but doesn't fix them. It does not modify the automation.
|
|
149
157
|
* @param - Automation to validate.
|
|
150
158
|
*/
|
|
151
159
|
(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `status` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.errorSeverity` | `actionValidationErrors` | `actionValidationErrors.${number}.configurationError.errorType` | `actionValidationErrors.${number}.providerConfigurationError.message` | `actionValidationErrors.${number}.providerConfigurationError.title` | `actionValidationErrors.${number}.actionId` | `actionValidationErrors.${number}.appId` | `actionValidationErrors.${number}.actionKey` | `actionValidationErrors.${number}.errorType` | `actionValidationErrors.${number}.errorSeverity`, 5>>;
|