@livechat/developer-studio-api 3.1.34 → 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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12 -4
- package/dist/index.mjs +12 -4
- package/package.json +1 -1
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
|
|
|
@@ -3334,10 +3345,7 @@ var hubspotWebhooksApi = {
|
|
|
3334
3345
|
// ...authorization,
|
|
3335
3346
|
// ensureAuthorizationToken: true,
|
|
3336
3347
|
// })
|
|
3337
|
-
)
|
|
3338
|
-
console.log(e);
|
|
3339
|
-
throw e;
|
|
3340
|
-
});
|
|
3348
|
+
);
|
|
3341
3349
|
});
|
|
3342
3350
|
},
|
|
3343
3351
|
update(appId, payload, authorization) {
|
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
|
|
|
@@ -3181,10 +3192,7 @@ var hubspotWebhooksApi = {
|
|
|
3181
3192
|
// ...authorization,
|
|
3182
3193
|
// ensureAuthorizationToken: true,
|
|
3183
3194
|
// })
|
|
3184
|
-
)
|
|
3185
|
-
console.log(e);
|
|
3186
|
-
throw e;
|
|
3187
|
-
});
|
|
3195
|
+
);
|
|
3188
3196
|
});
|
|
3189
3197
|
},
|
|
3190
3198
|
update(appId, payload, authorization) {
|