@livechat/developer-studio-api 5.3.0-beta.v1 → 5.3.1-beta.generator.v1
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/{chunk-WMWSKU4M.mjs → chunk-WXTWJG7Z.mjs} +15 -4
- package/dist/{events-DAbR7Qk8.d.mts → events-D6Wj4603.d.mts} +55 -49
- package/dist/{events-DAbR7Qk8.d.ts → events-D6Wj4603.d.ts} +55 -49
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +580 -567
- package/dist/index.mjs +5 -1
- package/dist/workflow-contracts.d.mts +1 -1
- package/dist/workflow-contracts.d.ts +1 -1
- package/dist/workflow-contracts.js +33 -0
- package/dist/workflow-contracts.mjs +5 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -84,6 +84,7 @@ import {
|
|
|
84
84
|
cdpCustomerEventMessageZod,
|
|
85
85
|
consoleClientInstance,
|
|
86
86
|
dpsClientInstance,
|
|
87
|
+
enrichWorkflowTrigger,
|
|
87
88
|
extractTokenFromAuthorizationHeader,
|
|
88
89
|
getAdapterClientConfig,
|
|
89
90
|
getAdapterClientDefaultConfig,
|
|
@@ -157,6 +158,7 @@ import {
|
|
|
157
158
|
integrationSubscriptionZods,
|
|
158
159
|
isFilter,
|
|
159
160
|
isFilterGroup,
|
|
161
|
+
isWorkflowBaseHttpTaskCore,
|
|
160
162
|
livechatClientInstance,
|
|
161
163
|
mailchimpClientInstance,
|
|
162
164
|
mailchimpEventsZods,
|
|
@@ -190,7 +192,7 @@ import {
|
|
|
190
192
|
updateWorkflowsClient,
|
|
191
193
|
vercelClientInstance,
|
|
192
194
|
workflowsClientInstance
|
|
193
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-WXTWJG7Z.mjs";
|
|
194
196
|
export {
|
|
195
197
|
ACCOUNT_ID_HEADER,
|
|
196
198
|
API_NOTIFICATIONS,
|
|
@@ -277,6 +279,7 @@ export {
|
|
|
277
279
|
cdpCustomerEventMessageZod,
|
|
278
280
|
consoleClientInstance,
|
|
279
281
|
dpsClientInstance,
|
|
282
|
+
enrichWorkflowTrigger,
|
|
280
283
|
extractTokenFromAuthorizationHeader,
|
|
281
284
|
getAdapterClientConfig,
|
|
282
285
|
getAdapterClientDefaultConfig,
|
|
@@ -350,6 +353,7 @@ export {
|
|
|
350
353
|
integrationSubscriptionZods,
|
|
351
354
|
isFilter,
|
|
352
355
|
isFilterGroup,
|
|
356
|
+
isWorkflowBaseHttpTaskCore,
|
|
353
357
|
livechatClientInstance,
|
|
354
358
|
mailchimpClientInstance,
|
|
355
359
|
mailchimpEventsZods,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, J as ApiPagination, K as AwaitTaskCallback, N as BigCommerceOauthCredential, v as CreateCredentialPayload, O as Credential, P as CredentialCore, C as CredentialDto, Q as CredentialInjection, R as CredentialStatus, V as CredentialType, X as CredentialTypeDisplayNameMapping, Z as ExternalResourceConfig, _ as ExternalResourceDependency, E as ExternalResourceReference, $ as Filter, a0 as FilterGroup, a1 as FilterOperator, a2 as FilterValue, a3 as Filters, F as FunctionDto, a4 as FunctionSchema, a5 as GitHubAppCredential, a6 as GitHubOauthCredential, a7 as HubSpotOauthCredential, t as IntrospectWorkflowTaskPayload, an as MailchimpOauthCredential, ao as NeonOauthCredential, ap as NetlifyOauthCredential, aq as OAuthCredential, ar as OauthCredentialGrantType, as as OpenaiCredential, at as PlanetScaleOauthCredential, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, w as UpdateCredentialPayload, s as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerCore, be as WorkflowAgentTriggerInput, bf as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bg as WorkflowAwaitTask, bh as WorkflowAwaitTaskCore, bi as WorkflowAwaitTaskInput, bj as
|
|
1
|
+
export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, J as ApiPagination, K as AwaitTaskCallback, N as BigCommerceOauthCredential, v as CreateCredentialPayload, O as Credential, P as CredentialCore, C as CredentialDto, Q as CredentialInjection, R as CredentialStatus, V as CredentialType, X as CredentialTypeDisplayNameMapping, Z as ExternalResourceConfig, _ as ExternalResourceDependency, E as ExternalResourceReference, $ as Filter, a0 as FilterGroup, a1 as FilterOperator, a2 as FilterValue, a3 as Filters, F as FunctionDto, a4 as FunctionSchema, a5 as GitHubAppCredential, a6 as GitHubOauthCredential, a7 as HubSpotOauthCredential, t as IntrospectWorkflowTaskPayload, an as MailchimpOauthCredential, ao as NeonOauthCredential, ap as NetlifyOauthCredential, aq as OAuthCredential, ar as OauthCredentialGrantType, as as OpenaiCredential, at as PlanetScaleOauthCredential, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, w as UpdateCredentialPayload, s as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerCore, be as WorkflowAgentTriggerInput, bf as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bg as WorkflowAwaitTask, bh as WorkflowAwaitTaskCore, bi as WorkflowAwaitTaskInput, bj as WorkflowBaseHttpTaskCore, bk as WorkflowBranch, bl as WorkflowBundle, bm as WorkflowConditionTask, bn as WorkflowConditionTaskCondition, bo as WorkflowConditionTaskCore, bp as WorkflowConditionTaskFieldType, bq as WorkflowConditionTaskInput, br as WorkflowConditionTaskLogic, bs as WorkflowConditionTaskOperator, bt as WorkflowConditionTaskOperatorGroup, bu as WorkflowConditionTaskOperatorValueType, bv as WorkflowConstructArrayItem, bw as WorkflowConstructObjectField, bx as WorkflowConstructOutputType, by as WorkflowConstructTask, bz as WorkflowConstructTaskCore, bA as WorkflowConstructTaskDefinitionInputParameters, bB as WorkflowConstructTaskInput, bC as WorkflowConstructTaskInputArray, bD as WorkflowConstructTaskInputObject, bE as WorkflowConvertTask, bF as WorkflowConvertTaskCore, bG as WorkflowConvertTaskDefinitionInputParameters, bH as WorkflowConvertTaskInput, bI as WorkflowConvertTaskInputFilter, bJ as WorkflowConvertTaskInputJoin, bK as WorkflowConvertTaskInputLookup, bL as WorkflowConvertTaskInputPickOmit, bM as WorkflowConvertTaskInputPluck, bN as WorkflowConvertTaskInputReducer, bO as WorkflowConvertTaskInputReplace, bP as WorkflowConvertTaskInputSimple, bQ as WorkflowConvertTaskInputSort, bR as WorkflowConvertTaskInputSplit, bS as WorkflowConvertTaskInputSum, bT as WorkflowConvertTaskTransformer, i as WorkflowCore, n as WorkflowCrmOrganization, k as WorkflowCrmOrganizationsOrderBy, o as WorkflowCrmWorkflowsOrderBy, bU as WorkflowCustomHttpTaskCore, bV as WorkflowCustomTaskName, bW as WorkflowDefinitionDto, bX as WorkflowDoWhileBaseTask, bY as WorkflowDoWhileBaseTaskCore, bZ as WorkflowDoWhileBaseTaskInput, b_ as WorkflowDoWhileTask, b$ as WorkflowDoWhileTaskCore, W as WorkflowDto, c0 as WorkflowElement, c1 as WorkflowElementCore, c2 as WorkflowElementIdentity, c3 as WorkflowElementRef, q as WorkflowExecution, c4 as WorkflowExecutionActionTaskData, c5 as WorkflowExecutionAwaitTaskData, c6 as WorkflowExecutionChatContext, c7 as WorkflowExecutionConditionTask, c8 as WorkflowExecutionConstructTask, c9 as WorkflowExecutionContext, ca as WorkflowExecutionConvertTask, cb as WorkflowExecutionData, cc as WorkflowExecutionDefinitionStatus, cd as WorkflowExecutionDoWhileIterationOutput, ce as WorkflowExecutionDoWhileTaskData, cf as WorkflowExecutionForkJoinTaskData, cg as WorkflowExecutionHttpTaskData, ch as WorkflowExecutionInlineBaseTask, ci as WorkflowExecutionInlineTaskData, cj as WorkflowExecutionJoinTaskData, p as WorkflowExecutionListItem, ck as WorkflowExecutionNotifyAiAgentTaskData, cl as WorkflowExecutionReasoningTaskData, cm as WorkflowExecutionScriptTask, cn as WorkflowExecutionSimpleBaseTaskData, co as WorkflowExecutionSimpleTaskData, cp as WorkflowExecutionStatus, cq as WorkflowExecutionSwitchBaseTask, cr as WorkflowExecutionSwitchCaseTask, cs as WorkflowExecutionSwitchTaskData, ct as WorkflowExecutionTaskBase, cu as WorkflowExecutionTaskData, cv as WorkflowExecutionTaskStatus, cw as WorkflowExecutionTerminateTaskData, cx as WorkflowExecutionTicketContext, cy as WorkflowExecutionTransformBaseTask, cz as WorkflowExecutionTransformTaskData, cA as WorkflowExecutionTriggerData, cB as WorkflowExecutionTriggerDataBase, cC as WorkflowExecutionWaitTaskData, cD as WorkflowForEachTask, cE as WorkflowForEachTaskCore, cF as WorkflowForEachTaskInput, cG as WorkflowForkJoinTask, cH as WorkflowForkJoinTaskCore, cI as WorkflowForkJoinTaskInput, cJ as WorkflowFunctionErrorResponseBody, cK as WorkflowGraph, cL as WorkflowHttpRequest, cM as WorkflowHttpTask, cN as WorkflowHttpTaskCore, cO as WorkflowHttpTaskErrorResponseBody, cP as WorkflowHttpTaskFunctionErrorResponseBody, cQ as WorkflowHttpTaskHeaders, cR as WorkflowHttpTaskInput, cS as WorkflowHttpTaskProviderErrorResponseBody, cT as WorkflowInlineBaseTask, cU as WorkflowInlineBaseTaskCore, cV as WorkflowInlineBaseTaskInput, cW as WorkflowInlineTask, cX as WorkflowInlineTaskCore, r as WorkflowIntrospection, cY as WorkflowItemKind, cZ as WorkflowJoinTask, c_ as WorkflowJoinTaskCore, c$ as WorkflowJoinTaskInput, d0 as WorkflowLoopTask, d1 as WorkflowLoopTaskCore, d2 as WorkflowLoopTaskInput, d3 as WorkflowManualTrigger, d4 as WorkflowManualTriggerCore, d5 as WorkflowManualTriggerInput, d6 as WorkflowManualTriggerParameter, d7 as WorkflowNode, d8 as WorkflowNotifyAiAgentTask, d9 as WorkflowNotifyAiAgentTaskCore, da as WorkflowNotifyAiAgentTaskInput, db as WorkflowNotifyAiAgentTaskObjectiveInput, dc as WorkflowNotifyAiAgentTaskStrictInput, dd as WorkflowOneTimeTrigger, de as WorkflowOneTimeTriggerCore, df as WorkflowOneTimeTriggerInput, dg as WorkflowParentRef, dh as WorkflowPlan, di as WorkflowPlanTask, dj as WorkflowPlanTrigger, dk as WorkflowReasoningOption, dl as WorkflowReasoningOptionAgent, dm as WorkflowReasoningOptionCustomer, dn as WorkflowReasoningTask, dp as WorkflowReasoningTaskCore, dq as WorkflowReasoningTaskInput, dr as WorkflowRecurringTrigger, ds as WorkflowRecurringTriggerCore, dt as WorkflowRecurringTriggerInput, du as WorkflowScriptTask, dv as WorkflowScriptTaskCore, dw as WorkflowScriptTaskInput, dx as WorkflowSimpleBaseTask, dy as WorkflowSimpleBaseTaskCore, dz as WorkflowSimpleTask, dA as WorkflowSimpleTaskCore, dB as WorkflowSwitchBaseTask, dC as WorkflowSwitchBaseTaskCore, dD as WorkflowSwitchCaseTask, dE as WorkflowSwitchCaseTaskCore, dF as WorkflowSwitchCaseTaskInput, dG as WorkflowSwitchTask, dH as WorkflowSwitchTaskCore, dI as WorkflowSwitchTaskInput, dJ as WorkflowTask, dK as WorkflowTaskBase, dL as WorkflowTaskCore, dM as WorkflowTaskIdentity, u as WorkflowTaskIntrospectResponse, dN as WorkflowTaskIntrospection, dO as WorkflowTaskOf, dP as WorkflowTaskType, z as WorkflowTemplate, dQ as WorkflowTemplateCategory, y as WorkflowTemplateListEntry, dR as WorkflowTemplateMetadataItem, x as WorkflowTemplateOrderBy, dS as WorkflowTerminateTask, dT as WorkflowTerminateTaskCore, dU as WorkflowTerminateTaskInput, dV as WorkflowTransformBaseTask, dW as WorkflowTransformBaseTaskCore, dX as WorkflowTransformBaseTaskInput, dY as WorkflowTransformTask, dZ as WorkflowTransformTaskCore, d_ as WorkflowTrigger, d$ as WorkflowTriggerBase, e0 as WorkflowTriggerCore, e1 as WorkflowTriggerDto, e2 as WorkflowTriggerIdentity, e3 as WorkflowTriggerOf, e4 as WorkflowTriggerType, e5 as WorkflowWaitTask, e6 as WorkflowWaitTaskCore, e7 as WorkflowWaitTaskInput, e8 as WorkflowWebhook, e9 as WorkflowWebhookInput, ea as WorkflowWebhookManualTrigger, eb as WorkflowWebhookManualTriggerCore, ec as WorkflowWebhookTrigger, ed as WorkflowWebhookTriggerCore, ee as WorkflowWebhookTriggerPure, eg as enrichWorkflowTrigger, ej as getWorkflowApiCrmConfig, ep as isFilter, eq as isFilterGroup, er as isWorkflowBaseHttpTaskCore, et as serializeFilters } from './events-D6Wj4603.mjs';
|
|
2
2
|
import 'utils';
|
|
3
3
|
import 'json-schema';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, J as ApiPagination, K as AwaitTaskCallback, N as BigCommerceOauthCredential, v as CreateCredentialPayload, O as Credential, P as CredentialCore, C as CredentialDto, Q as CredentialInjection, R as CredentialStatus, V as CredentialType, X as CredentialTypeDisplayNameMapping, Z as ExternalResourceConfig, _ as ExternalResourceDependency, E as ExternalResourceReference, $ as Filter, a0 as FilterGroup, a1 as FilterOperator, a2 as FilterValue, a3 as Filters, F as FunctionDto, a4 as FunctionSchema, a5 as GitHubAppCredential, a6 as GitHubOauthCredential, a7 as HubSpotOauthCredential, t as IntrospectWorkflowTaskPayload, an as MailchimpOauthCredential, ao as NeonOauthCredential, ap as NetlifyOauthCredential, aq as OAuthCredential, ar as OauthCredentialGrantType, as as OpenaiCredential, at as PlanetScaleOauthCredential, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, w as UpdateCredentialPayload, s as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerCore, be as WorkflowAgentTriggerInput, bf as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bg as WorkflowAwaitTask, bh as WorkflowAwaitTaskCore, bi as WorkflowAwaitTaskInput, bj as
|
|
1
|
+
export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, J as ApiPagination, K as AwaitTaskCallback, N as BigCommerceOauthCredential, v as CreateCredentialPayload, O as Credential, P as CredentialCore, C as CredentialDto, Q as CredentialInjection, R as CredentialStatus, V as CredentialType, X as CredentialTypeDisplayNameMapping, Z as ExternalResourceConfig, _ as ExternalResourceDependency, E as ExternalResourceReference, $ as Filter, a0 as FilterGroup, a1 as FilterOperator, a2 as FilterValue, a3 as Filters, F as FunctionDto, a4 as FunctionSchema, a5 as GitHubAppCredential, a6 as GitHubOauthCredential, a7 as HubSpotOauthCredential, t as IntrospectWorkflowTaskPayload, an as MailchimpOauthCredential, ao as NeonOauthCredential, ap as NetlifyOauthCredential, aq as OAuthCredential, ar as OauthCredentialGrantType, as as OpenaiCredential, at as PlanetScaleOauthCredential, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, w as UpdateCredentialPayload, s as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerCore, be as WorkflowAgentTriggerInput, bf as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bg as WorkflowAwaitTask, bh as WorkflowAwaitTaskCore, bi as WorkflowAwaitTaskInput, bj as WorkflowBaseHttpTaskCore, bk as WorkflowBranch, bl as WorkflowBundle, bm as WorkflowConditionTask, bn as WorkflowConditionTaskCondition, bo as WorkflowConditionTaskCore, bp as WorkflowConditionTaskFieldType, bq as WorkflowConditionTaskInput, br as WorkflowConditionTaskLogic, bs as WorkflowConditionTaskOperator, bt as WorkflowConditionTaskOperatorGroup, bu as WorkflowConditionTaskOperatorValueType, bv as WorkflowConstructArrayItem, bw as WorkflowConstructObjectField, bx as WorkflowConstructOutputType, by as WorkflowConstructTask, bz as WorkflowConstructTaskCore, bA as WorkflowConstructTaskDefinitionInputParameters, bB as WorkflowConstructTaskInput, bC as WorkflowConstructTaskInputArray, bD as WorkflowConstructTaskInputObject, bE as WorkflowConvertTask, bF as WorkflowConvertTaskCore, bG as WorkflowConvertTaskDefinitionInputParameters, bH as WorkflowConvertTaskInput, bI as WorkflowConvertTaskInputFilter, bJ as WorkflowConvertTaskInputJoin, bK as WorkflowConvertTaskInputLookup, bL as WorkflowConvertTaskInputPickOmit, bM as WorkflowConvertTaskInputPluck, bN as WorkflowConvertTaskInputReducer, bO as WorkflowConvertTaskInputReplace, bP as WorkflowConvertTaskInputSimple, bQ as WorkflowConvertTaskInputSort, bR as WorkflowConvertTaskInputSplit, bS as WorkflowConvertTaskInputSum, bT as WorkflowConvertTaskTransformer, i as WorkflowCore, n as WorkflowCrmOrganization, k as WorkflowCrmOrganizationsOrderBy, o as WorkflowCrmWorkflowsOrderBy, bU as WorkflowCustomHttpTaskCore, bV as WorkflowCustomTaskName, bW as WorkflowDefinitionDto, bX as WorkflowDoWhileBaseTask, bY as WorkflowDoWhileBaseTaskCore, bZ as WorkflowDoWhileBaseTaskInput, b_ as WorkflowDoWhileTask, b$ as WorkflowDoWhileTaskCore, W as WorkflowDto, c0 as WorkflowElement, c1 as WorkflowElementCore, c2 as WorkflowElementIdentity, c3 as WorkflowElementRef, q as WorkflowExecution, c4 as WorkflowExecutionActionTaskData, c5 as WorkflowExecutionAwaitTaskData, c6 as WorkflowExecutionChatContext, c7 as WorkflowExecutionConditionTask, c8 as WorkflowExecutionConstructTask, c9 as WorkflowExecutionContext, ca as WorkflowExecutionConvertTask, cb as WorkflowExecutionData, cc as WorkflowExecutionDefinitionStatus, cd as WorkflowExecutionDoWhileIterationOutput, ce as WorkflowExecutionDoWhileTaskData, cf as WorkflowExecutionForkJoinTaskData, cg as WorkflowExecutionHttpTaskData, ch as WorkflowExecutionInlineBaseTask, ci as WorkflowExecutionInlineTaskData, cj as WorkflowExecutionJoinTaskData, p as WorkflowExecutionListItem, ck as WorkflowExecutionNotifyAiAgentTaskData, cl as WorkflowExecutionReasoningTaskData, cm as WorkflowExecutionScriptTask, cn as WorkflowExecutionSimpleBaseTaskData, co as WorkflowExecutionSimpleTaskData, cp as WorkflowExecutionStatus, cq as WorkflowExecutionSwitchBaseTask, cr as WorkflowExecutionSwitchCaseTask, cs as WorkflowExecutionSwitchTaskData, ct as WorkflowExecutionTaskBase, cu as WorkflowExecutionTaskData, cv as WorkflowExecutionTaskStatus, cw as WorkflowExecutionTerminateTaskData, cx as WorkflowExecutionTicketContext, cy as WorkflowExecutionTransformBaseTask, cz as WorkflowExecutionTransformTaskData, cA as WorkflowExecutionTriggerData, cB as WorkflowExecutionTriggerDataBase, cC as WorkflowExecutionWaitTaskData, cD as WorkflowForEachTask, cE as WorkflowForEachTaskCore, cF as WorkflowForEachTaskInput, cG as WorkflowForkJoinTask, cH as WorkflowForkJoinTaskCore, cI as WorkflowForkJoinTaskInput, cJ as WorkflowFunctionErrorResponseBody, cK as WorkflowGraph, cL as WorkflowHttpRequest, cM as WorkflowHttpTask, cN as WorkflowHttpTaskCore, cO as WorkflowHttpTaskErrorResponseBody, cP as WorkflowHttpTaskFunctionErrorResponseBody, cQ as WorkflowHttpTaskHeaders, cR as WorkflowHttpTaskInput, cS as WorkflowHttpTaskProviderErrorResponseBody, cT as WorkflowInlineBaseTask, cU as WorkflowInlineBaseTaskCore, cV as WorkflowInlineBaseTaskInput, cW as WorkflowInlineTask, cX as WorkflowInlineTaskCore, r as WorkflowIntrospection, cY as WorkflowItemKind, cZ as WorkflowJoinTask, c_ as WorkflowJoinTaskCore, c$ as WorkflowJoinTaskInput, d0 as WorkflowLoopTask, d1 as WorkflowLoopTaskCore, d2 as WorkflowLoopTaskInput, d3 as WorkflowManualTrigger, d4 as WorkflowManualTriggerCore, d5 as WorkflowManualTriggerInput, d6 as WorkflowManualTriggerParameter, d7 as WorkflowNode, d8 as WorkflowNotifyAiAgentTask, d9 as WorkflowNotifyAiAgentTaskCore, da as WorkflowNotifyAiAgentTaskInput, db as WorkflowNotifyAiAgentTaskObjectiveInput, dc as WorkflowNotifyAiAgentTaskStrictInput, dd as WorkflowOneTimeTrigger, de as WorkflowOneTimeTriggerCore, df as WorkflowOneTimeTriggerInput, dg as WorkflowParentRef, dh as WorkflowPlan, di as WorkflowPlanTask, dj as WorkflowPlanTrigger, dk as WorkflowReasoningOption, dl as WorkflowReasoningOptionAgent, dm as WorkflowReasoningOptionCustomer, dn as WorkflowReasoningTask, dp as WorkflowReasoningTaskCore, dq as WorkflowReasoningTaskInput, dr as WorkflowRecurringTrigger, ds as WorkflowRecurringTriggerCore, dt as WorkflowRecurringTriggerInput, du as WorkflowScriptTask, dv as WorkflowScriptTaskCore, dw as WorkflowScriptTaskInput, dx as WorkflowSimpleBaseTask, dy as WorkflowSimpleBaseTaskCore, dz as WorkflowSimpleTask, dA as WorkflowSimpleTaskCore, dB as WorkflowSwitchBaseTask, dC as WorkflowSwitchBaseTaskCore, dD as WorkflowSwitchCaseTask, dE as WorkflowSwitchCaseTaskCore, dF as WorkflowSwitchCaseTaskInput, dG as WorkflowSwitchTask, dH as WorkflowSwitchTaskCore, dI as WorkflowSwitchTaskInput, dJ as WorkflowTask, dK as WorkflowTaskBase, dL as WorkflowTaskCore, dM as WorkflowTaskIdentity, u as WorkflowTaskIntrospectResponse, dN as WorkflowTaskIntrospection, dO as WorkflowTaskOf, dP as WorkflowTaskType, z as WorkflowTemplate, dQ as WorkflowTemplateCategory, y as WorkflowTemplateListEntry, dR as WorkflowTemplateMetadataItem, x as WorkflowTemplateOrderBy, dS as WorkflowTerminateTask, dT as WorkflowTerminateTaskCore, dU as WorkflowTerminateTaskInput, dV as WorkflowTransformBaseTask, dW as WorkflowTransformBaseTaskCore, dX as WorkflowTransformBaseTaskInput, dY as WorkflowTransformTask, dZ as WorkflowTransformTaskCore, d_ as WorkflowTrigger, d$ as WorkflowTriggerBase, e0 as WorkflowTriggerCore, e1 as WorkflowTriggerDto, e2 as WorkflowTriggerIdentity, e3 as WorkflowTriggerOf, e4 as WorkflowTriggerType, e5 as WorkflowWaitTask, e6 as WorkflowWaitTaskCore, e7 as WorkflowWaitTaskInput, e8 as WorkflowWebhook, e9 as WorkflowWebhookInput, ea as WorkflowWebhookManualTrigger, eb as WorkflowWebhookManualTriggerCore, ec as WorkflowWebhookTrigger, ed as WorkflowWebhookTriggerCore, ee as WorkflowWebhookTriggerPure, eg as enrichWorkflowTrigger, ej as getWorkflowApiCrmConfig, ep as isFilter, eq as isFilterGroup, er as isWorkflowBaseHttpTaskCore, et as serializeFilters } from './events-D6Wj4603.js';
|
|
2
2
|
import 'utils';
|
|
3
3
|
import 'json-schema';
|
|
4
4
|
import 'zod';
|
|
@@ -87,9 +87,11 @@ __export(contracts_exports, {
|
|
|
87
87
|
WorkflowTaskType: () => WorkflowTaskType,
|
|
88
88
|
WorkflowTemplateCategory: () => WorkflowTemplateCategory,
|
|
89
89
|
WorkflowTriggerType: () => WorkflowTriggerType,
|
|
90
|
+
enrichWorkflowTrigger: () => enrichWorkflowTrigger,
|
|
90
91
|
getWorkflowApiCrmConfig: () => getWorkflowApiCrmConfig,
|
|
91
92
|
isFilter: () => isFilter,
|
|
92
93
|
isFilterGroup: () => isFilterGroup,
|
|
94
|
+
isWorkflowBaseHttpTaskCore: () => isWorkflowBaseHttpTaskCore,
|
|
93
95
|
serializeFilters: () => serializeFilters
|
|
94
96
|
});
|
|
95
97
|
module.exports = __toCommonJS(contracts_exports);
|
|
@@ -219,6 +221,11 @@ var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2
|
|
|
219
221
|
return WorkflowExecutionTaskStatus2;
|
|
220
222
|
})(WorkflowExecutionTaskStatus || {});
|
|
221
223
|
|
|
224
|
+
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/tasks/http.ts
|
|
225
|
+
function isWorkflowBaseHttpTaskCore(task) {
|
|
226
|
+
return task.name === WorkflowTaskType.http;
|
|
227
|
+
}
|
|
228
|
+
|
|
222
229
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/tasks/switch/variants/condition.ts
|
|
223
230
|
var WorkflowConditionTaskLogic = /* @__PURE__ */ ((WorkflowConditionTaskLogic2) => {
|
|
224
231
|
WorkflowConditionTaskLogic2["AND"] = "AND";
|
|
@@ -2140,6 +2147,30 @@ var integrationNameToProduct = {
|
|
|
2140
2147
|
["text-livechat" /* LiveChat */]: "livechat"
|
|
2141
2148
|
};
|
|
2142
2149
|
|
|
2150
|
+
// src/apis/integrations/text/platform/workflow/workflows/api.ts
|
|
2151
|
+
var enrichWorkflowTrigger = (workflow) => {
|
|
2152
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2153
|
+
if (((_a = workflow.trigger) == null ? void 0 : _a.type) === WorkflowTriggerType.webhook) {
|
|
2154
|
+
workflow.trigger.name = (_c = workflow.trigger.sub_type) != null ? _c : `${workflow.trigger.webhook.source}-${(_b = workflow.trigger.webhook.event) == null ? void 0 : _b.name}`;
|
|
2155
|
+
}
|
|
2156
|
+
if (((_d = workflow.trigger) == null ? void 0 : _d.type) === WorkflowTriggerType.webhookManual) {
|
|
2157
|
+
workflow.trigger.name = "webhook_manual";
|
|
2158
|
+
}
|
|
2159
|
+
if (((_e = workflow.trigger) == null ? void 0 : _e.type) === WorkflowTriggerType.manual) {
|
|
2160
|
+
workflow.trigger.name = "manual";
|
|
2161
|
+
}
|
|
2162
|
+
if (((_f = workflow.trigger) == null ? void 0 : _f.type) === WorkflowTriggerType.agent) {
|
|
2163
|
+
workflow.trigger.name = "ai_agent";
|
|
2164
|
+
}
|
|
2165
|
+
if (((_g = workflow.trigger) == null ? void 0 : _g.type) === WorkflowTriggerType.recurring) {
|
|
2166
|
+
workflow.trigger.name = "scheduled";
|
|
2167
|
+
}
|
|
2168
|
+
if (((_h = workflow.trigger) == null ? void 0 : _h.type) === WorkflowTriggerType.oneTime) {
|
|
2169
|
+
workflow.trigger.name = "one_time";
|
|
2170
|
+
}
|
|
2171
|
+
return workflow;
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2143
2174
|
// src/apis/integrations/vercel/api.ts
|
|
2144
2175
|
var import_axios30 = __toESM(require("axios"));
|
|
2145
2176
|
|
|
@@ -2270,8 +2301,10 @@ function getWorkflowApiCrmConfig(authorization) {
|
|
|
2270
2301
|
WorkflowTaskType,
|
|
2271
2302
|
WorkflowTemplateCategory,
|
|
2272
2303
|
WorkflowTriggerType,
|
|
2304
|
+
enrichWorkflowTrigger,
|
|
2273
2305
|
getWorkflowApiCrmConfig,
|
|
2274
2306
|
isFilter,
|
|
2275
2307
|
isFilterGroup,
|
|
2308
|
+
isWorkflowBaseHttpTaskCore,
|
|
2276
2309
|
serializeFilters
|
|
2277
2310
|
});
|
|
@@ -19,11 +19,13 @@ import {
|
|
|
19
19
|
WorkflowTaskType,
|
|
20
20
|
WorkflowTemplateCategory,
|
|
21
21
|
WorkflowTriggerType,
|
|
22
|
+
enrichWorkflowTrigger,
|
|
22
23
|
getWorkflowApiCrmConfig,
|
|
23
24
|
isFilter,
|
|
24
25
|
isFilterGroup,
|
|
26
|
+
isWorkflowBaseHttpTaskCore,
|
|
25
27
|
serializeFilters
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WXTWJG7Z.mjs";
|
|
27
29
|
export {
|
|
28
30
|
CredentialStatus,
|
|
29
31
|
CredentialType,
|
|
@@ -45,8 +47,10 @@ export {
|
|
|
45
47
|
WorkflowTaskType,
|
|
46
48
|
WorkflowTemplateCategory,
|
|
47
49
|
WorkflowTriggerType,
|
|
50
|
+
enrichWorkflowTrigger,
|
|
48
51
|
getWorkflowApiCrmConfig,
|
|
49
52
|
isFilter,
|
|
50
53
|
isFilterGroup,
|
|
54
|
+
isWorkflowBaseHttpTaskCore,
|
|
51
55
|
serializeFilters
|
|
52
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1-beta.generator.v1",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"tsup": "^8.5.1",
|
|
39
39
|
"typescript": "^5.1.6",
|
|
40
40
|
"eslint-config-custom": "0.0.14",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"tsconfig": "0.1.0",
|
|
42
|
+
"utils": "0.3.2"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsup",
|