@livechat/developer-studio-api 3.1.35 → 3.1.36

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/dist/index.d.mts CHANGED
@@ -5764,6 +5764,9 @@ declare const api: {
5764
5764
  name: string;
5765
5765
  active: boolean;
5766
5766
  }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5767
+ validateWorkflowDefinition(payload: {
5768
+ definition: WorkflowDefinitionDto;
5769
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5767
5770
  };
5768
5771
  credentials: {
5769
5772
  get(id: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CredentialDto, any>>;
package/dist/index.d.ts CHANGED
@@ -5764,6 +5764,9 @@ declare const api: {
5764
5764
  name: string;
5765
5765
  active: boolean;
5766
5766
  }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5767
+ validateWorkflowDefinition(payload: {
5768
+ definition: WorkflowDefinitionDto;
5769
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5767
5770
  };
5768
5771
  credentials: {
5769
5772
  get(id: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CredentialDto, any>>;
package/dist/index.js CHANGED
@@ -2227,6 +2227,17 @@ var textPlatformWorkflowsApi = {
2227
2227
  }))
2228
2228
  );
2229
2229
  });
2230
+ },
2231
+ validateWorkflowDefinition(payload, authorization) {
2232
+ return __async(this, null, function* () {
2233
+ yield textClientInstance.post(
2234
+ `/workflow_platform/workflows/validation`,
2235
+ payload,
2236
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
2237
+ ensureAuthorizationToken: true
2238
+ }))
2239
+ );
2240
+ });
2230
2241
  }
2231
2242
  };
2232
2243
 
package/dist/index.mjs CHANGED
@@ -2074,6 +2074,17 @@ var textPlatformWorkflowsApi = {
2074
2074
  }))
2075
2075
  );
2076
2076
  });
2077
+ },
2078
+ validateWorkflowDefinition(payload, authorization) {
2079
+ return __async(this, null, function* () {
2080
+ yield textClientInstance.post(
2081
+ `/workflow_platform/workflows/validation`,
2082
+ payload,
2083
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
2084
+ ensureAuthorizationToken: true
2085
+ }))
2086
+ );
2087
+ });
2077
2088
  }
2078
2089
  };
2079
2090
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.1.35",
3
+ "version": "3.1.36",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",