@livechat/developer-studio-api 5.10.1 → 5.11.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/dist/{chunk-BZVBB5BG.mjs → chunk-QGX7NFQO.mjs} +24 -5
- package/dist/{events-00ZFjf-6.d.mts → events-N02veirY.d.mts} +412 -23
- package/dist/{events-00ZFjf-6.d.ts → events-N02veirY.d.ts} +412 -23
- package/dist/index.d.mts +104 -15
- package/dist/index.d.ts +104 -15
- package/dist/index.js +24 -5
- package/dist/index.mjs +1 -1
- package/dist/workflow-contracts.d.mts +1 -1
- package/dist/workflow-contracts.d.ts +1 -1
- package/dist/workflow-contracts.js +24 -5
- package/dist/workflow-contracts.mjs +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1102,6 +1102,8 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
|
|
|
1102
1102
|
TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
|
|
1103
1103
|
TextLivechatEventNames2["ChatIdle"] = "chat_idle";
|
|
1104
1104
|
TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
|
|
1105
|
+
TextLivechatEventNames2["FormFilled"] = "form_filled";
|
|
1106
|
+
TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
|
|
1105
1107
|
return TextLivechatEventNames2;
|
|
1106
1108
|
})(TextLivechatEventNames || {});
|
|
1107
1109
|
var CustomerLeftChatReason = /* @__PURE__ */ ((CustomerLeftChatReason2) => {
|
|
@@ -1178,6 +1180,14 @@ var textLivechatEventsZods = {
|
|
|
1178
1180
|
name: import_zod9.z.literal("product_card_event" /* ProductCardEvent */),
|
|
1179
1181
|
type: import_zod9.z.nativeEnum(TextLivechatProductCardEventType),
|
|
1180
1182
|
product_id: import_zod9.z.string().optional()
|
|
1183
|
+
}),
|
|
1184
|
+
formFilled: integrationEventBase.extend({
|
|
1185
|
+
name: import_zod9.z.literal("form_filled" /* FormFilled */),
|
|
1186
|
+
form_id: import_zod9.z.string().optional()
|
|
1187
|
+
}),
|
|
1188
|
+
customFormFilled: integrationEventBase.extend({
|
|
1189
|
+
name: import_zod9.z.literal("custom_form_filled" /* CustomFormFilled */),
|
|
1190
|
+
form_id: import_zod9.z.string().optional()
|
|
1181
1191
|
})
|
|
1182
1192
|
},
|
|
1183
1193
|
get event() {
|
|
@@ -1193,7 +1203,9 @@ var textLivechatEventsZods = {
|
|
|
1193
1203
|
this.events.userRemovedFromChat,
|
|
1194
1204
|
this.events.customerLeftChat,
|
|
1195
1205
|
this.events.chatIdle,
|
|
1196
|
-
this.events.productCardEvent
|
|
1206
|
+
this.events.productCardEvent,
|
|
1207
|
+
this.events.formFilled,
|
|
1208
|
+
this.events.customFormFilled
|
|
1197
1209
|
]);
|
|
1198
1210
|
},
|
|
1199
1211
|
get subscribe() {
|
|
@@ -4823,7 +4835,8 @@ var WorkflowCustomTaskName = {
|
|
|
4823
4835
|
script: `${WorkflowTaskType.inline}_SCRIPT`,
|
|
4824
4836
|
// JQ TRANSFORM
|
|
4825
4837
|
convert: `${WorkflowTaskType.transform}_CONVERT`,
|
|
4826
|
-
construct: `${WorkflowTaskType.transform}_CONSTRUCT
|
|
4838
|
+
construct: `${WorkflowTaskType.transform}_CONSTRUCT`,
|
|
4839
|
+
lookup: `${WorkflowTaskType.transform}_LOOKUP`
|
|
4827
4840
|
};
|
|
4828
4841
|
var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2) => {
|
|
4829
4842
|
WorkflowExecutionTaskStatus2["Completed"] = "COMPLETED";
|
|
@@ -4940,11 +4953,13 @@ var WorkflowTriggerType = {
|
|
|
4940
4953
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/triggers/manual.ts
|
|
4941
4954
|
var WorkflowManualTriggerSubType = {
|
|
4942
4955
|
forSelectedChat: "for_selected_chat",
|
|
4943
|
-
forSelectedTicket: "for_selected_ticket"
|
|
4956
|
+
forSelectedTicket: "for_selected_ticket",
|
|
4957
|
+
forSelectedCustomer: "for_selected_customer"
|
|
4944
4958
|
};
|
|
4945
4959
|
var WorkflowManualTriggerSubTypeName = {
|
|
4946
4960
|
[WorkflowManualTriggerSubType.forSelectedChat]: "text-livechat-manual",
|
|
4947
|
-
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
|
|
4961
|
+
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual",
|
|
4962
|
+
[WorkflowManualTriggerSubType.forSelectedCustomer]: "text-manual"
|
|
4948
4963
|
};
|
|
4949
4964
|
|
|
4950
4965
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
|
|
@@ -9792,7 +9807,11 @@ var customerMetadataZod = import_zod12.z.object({
|
|
|
9792
9807
|
var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
9793
9808
|
segment_id: import_zod12.z.number(),
|
|
9794
9809
|
segment_type: import_zod12.z.string(),
|
|
9795
|
-
membership_last_updated_at: import_zod12.z.string()
|
|
9810
|
+
membership_last_updated_at: import_zod12.z.string(),
|
|
9811
|
+
segment_fields: import_zod12.z.object({
|
|
9812
|
+
email: import_zod12.z.string().optional(),
|
|
9813
|
+
customer_properties: import_zod12.z.record(import_zod12.z.unknown()).optional()
|
|
9814
|
+
}).passthrough().optional()
|
|
9796
9815
|
}).passthrough();
|
|
9797
9816
|
var cdpCustomerEventMessageZod = import_zod12.z.discriminatedUnion("type", [
|
|
9798
9817
|
import_zod12.z.object({
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as
|
|
1
|
+
export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as WorkflowConvertTaskInputAffix, bO as WorkflowConvertTaskInputFilter, bP as WorkflowConvertTaskInputJoin, bQ as WorkflowConvertTaskInputMath, bR as WorkflowConvertTaskInputPickOmit, bS as WorkflowConvertTaskInputPluck, bT as WorkflowConvertTaskInputReducer, bU as WorkflowConvertTaskInputReplace, bV as WorkflowConvertTaskInputRound, bW as WorkflowConvertTaskInputSimple, bX as WorkflowConvertTaskInputSort, bY as WorkflowConvertTaskInputSplit, bZ as WorkflowConvertTaskInputSum, b_ as WorkflowConvertTaskMathOperation, b$ as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, c0 as WorkflowCustomHttpTaskCore, c1 as WorkflowCustomTaskName, c2 as WorkflowDefinitionDto, c3 as WorkflowDoWhileBaseTask, c4 as WorkflowDoWhileBaseTaskCore, c5 as WorkflowDoWhileBaseTaskInput, c6 as WorkflowDoWhileTask, c7 as WorkflowDoWhileTaskCore, W as WorkflowDto, c8 as WorkflowElement, c9 as WorkflowElementCore, ca as WorkflowElementIdentity, cb as WorkflowElementRef, s as WorkflowExecution, cc as WorkflowExecutionActionTaskData, cd as WorkflowExecutionAwaitTaskData, ce as WorkflowExecutionChatContext, cf as WorkflowExecutionConditionTask, cg as WorkflowExecutionConstructTask, ch as WorkflowExecutionContext, ci as WorkflowExecutionConvertTask, cj as WorkflowExecutionData, ck as WorkflowExecutionDefinitionStatus, cl as WorkflowExecutionDoWhileIterationOutput, cm as WorkflowExecutionDoWhileTaskData, cn as WorkflowExecutionForkJoinTaskData, co as WorkflowExecutionHttpTaskData, cp as WorkflowExecutionInlineBaseTask, cq as WorkflowExecutionInlineTaskData, cr as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cs as WorkflowExecutionLookupTask, ct as WorkflowExecutionNotifyAiAgentTaskData, cu as WorkflowExecutionReasoningTaskData, cv as WorkflowExecutionScriptTask, cw as WorkflowExecutionSimpleBaseTaskData, cx as WorkflowExecutionSimpleTaskData, cy as WorkflowExecutionStatus, cz as WorkflowExecutionSwitchBaseTask, cA as WorkflowExecutionSwitchCaseTask, cB as WorkflowExecutionSwitchTaskData, cC as WorkflowExecutionTaskBase, cD as WorkflowExecutionTaskData, cE as WorkflowExecutionTaskStatus, cF as WorkflowExecutionTerminateTaskData, cG as WorkflowExecutionTicketContext, cH as WorkflowExecutionTransformBaseTask, cI as WorkflowExecutionTransformTaskData, cJ as WorkflowExecutionTriggerData, cK as WorkflowExecutionTriggerDataBase, cL as WorkflowExecutionType, cM as WorkflowExecutionWaitTaskData, cN as WorkflowForEachTask, cO as WorkflowForEachTaskCore, cP as WorkflowForEachTaskInput, cQ as WorkflowForkJoinTask, cR as WorkflowForkJoinTaskCore, cS as WorkflowForkJoinTaskInput, cT as WorkflowFunctionErrorResponseBody, cU as WorkflowGraph, cV as WorkflowHttpRequest, cW as WorkflowHttpTask, cX as WorkflowHttpTaskCore, cY as WorkflowHttpTaskErrorResponseBody, cZ as WorkflowHttpTaskFunctionErrorResponseBody, c_ as WorkflowHttpTaskHeaders, c$ as WorkflowHttpTaskInput, d0 as WorkflowHttpTaskProviderErrorResponseBody, d1 as WorkflowInactivityReason, d2 as WorkflowInlineBaseTask, d3 as WorkflowInlineBaseTaskCore, d4 as WorkflowInlineBaseTaskInput, d5 as WorkflowInlineTask, d6 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d7 as WorkflowItemKind, d8 as WorkflowJoinTask, d9 as WorkflowJoinTaskCore, da as WorkflowJoinTaskInput, q as WorkflowListItemDto, db as WorkflowLookupTask, dc as WorkflowLookupTaskCore, dd as WorkflowLookupTaskDefinitionInputParameters, de as WorkflowLookupTaskInput, df as WorkflowLoopTask, dg as WorkflowLoopTaskCore, dh as WorkflowLoopTaskInput, di as WorkflowManualTrigger, dj as WorkflowManualTriggerCore, dk as WorkflowManualTriggerParameter, dl as WorkflowManualTriggerSubType, dm as WorkflowManualTriggerSubTypeName, dn as WorkflowNode, dp as WorkflowNotifyAiAgentTask, dq as WorkflowNotifyAiAgentTaskCore, dr as WorkflowNotifyAiAgentTaskInput, ds as WorkflowNotifyAiAgentTaskObjectiveInput, dt as WorkflowNotifyAiAgentTaskStrictInput, du as WorkflowOneTimeTrigger, dv as WorkflowOneTimeTriggerCore, dw as WorkflowOneTimeTriggerInput, dx as WorkflowParentRef, dy as WorkflowPlan, dz as WorkflowReasoningOption, dA as WorkflowReasoningOptionAgent, dB as WorkflowReasoningOptionCustomer, dC as WorkflowReasoningTask, dD as WorkflowReasoningTaskCore, dE as WorkflowReasoningTaskInput, dF as WorkflowRecurringTrigger, dG as WorkflowRecurringTriggerCore, dH as WorkflowRecurringTriggerInput, dI as WorkflowResourceBucket, dJ as WorkflowResourceRow, dK as WorkflowResources, dL as WorkflowScriptTask, dM as WorkflowScriptTaskCore, dN as WorkflowScriptTaskInput, dO as WorkflowSimpleBaseTask, dP as WorkflowSimpleBaseTaskCore, dQ as WorkflowSimpleTask, dR as WorkflowSimpleTaskCore, dS as WorkflowSwitchBaseTask, dT as WorkflowSwitchBaseTaskCore, dU as WorkflowSwitchCaseTask, dV as WorkflowSwitchCaseTaskCore, dW as WorkflowSwitchCaseTaskInput, dX as WorkflowSwitchTask, dY as WorkflowSwitchTaskCore, dZ as WorkflowSwitchTaskInput, d_ as WorkflowTask, d$ as WorkflowTaskBase, e0 as WorkflowTaskCore, e1 as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, e2 as WorkflowTaskIntrospection, e3 as WorkflowTaskOf, e4 as WorkflowTaskPlan, e5 as WorkflowTaskType, E as WorkflowTemplate, e6 as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, e7 as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, e8 as WorkflowTerminateTask, e9 as WorkflowTerminateTaskCore, ea as WorkflowTerminateTaskInput, eb as WorkflowTransformBaseTask, ec as WorkflowTransformBaseTaskCore, ed as WorkflowTransformBaseTaskInput, ee as WorkflowTransformTask, ef as WorkflowTransformTaskCore, eg as WorkflowTrigger, eh as WorkflowTriggerBase, ei as WorkflowTriggerCore, ej as WorkflowTriggerDto, ek as WorkflowTriggerIdentity, el as WorkflowTriggerOf, em as WorkflowTriggerPlan, en as WorkflowTriggerType, eo as WorkflowWaitTask, ep as WorkflowWaitTaskCore, eq as WorkflowWaitTaskInput, er as WorkflowWebhook, es as WorkflowWebhookInput, et as WorkflowWebhookManualTrigger, eu as WorkflowWebhookManualTriggerCore, ev as WorkflowWebhookTrigger, ew as WorkflowWebhookTriggerCore, ex as WorkflowWebhookTriggerPure, eB as getWorkflowApiCrmConfig, eH as isFilter, eI as isFilterGroup, eJ as isWorkflowBaseHttpTaskCore, eL as serializeFilters } from './events-N02veirY.mjs';
|
|
2
2
|
import 'utils';
|
|
3
3
|
import 'json-schema';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as
|
|
1
|
+
export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as WorkflowConvertTaskInputAffix, bO as WorkflowConvertTaskInputFilter, bP as WorkflowConvertTaskInputJoin, bQ as WorkflowConvertTaskInputMath, bR as WorkflowConvertTaskInputPickOmit, bS as WorkflowConvertTaskInputPluck, bT as WorkflowConvertTaskInputReducer, bU as WorkflowConvertTaskInputReplace, bV as WorkflowConvertTaskInputRound, bW as WorkflowConvertTaskInputSimple, bX as WorkflowConvertTaskInputSort, bY as WorkflowConvertTaskInputSplit, bZ as WorkflowConvertTaskInputSum, b_ as WorkflowConvertTaskMathOperation, b$ as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, c0 as WorkflowCustomHttpTaskCore, c1 as WorkflowCustomTaskName, c2 as WorkflowDefinitionDto, c3 as WorkflowDoWhileBaseTask, c4 as WorkflowDoWhileBaseTaskCore, c5 as WorkflowDoWhileBaseTaskInput, c6 as WorkflowDoWhileTask, c7 as WorkflowDoWhileTaskCore, W as WorkflowDto, c8 as WorkflowElement, c9 as WorkflowElementCore, ca as WorkflowElementIdentity, cb as WorkflowElementRef, s as WorkflowExecution, cc as WorkflowExecutionActionTaskData, cd as WorkflowExecutionAwaitTaskData, ce as WorkflowExecutionChatContext, cf as WorkflowExecutionConditionTask, cg as WorkflowExecutionConstructTask, ch as WorkflowExecutionContext, ci as WorkflowExecutionConvertTask, cj as WorkflowExecutionData, ck as WorkflowExecutionDefinitionStatus, cl as WorkflowExecutionDoWhileIterationOutput, cm as WorkflowExecutionDoWhileTaskData, cn as WorkflowExecutionForkJoinTaskData, co as WorkflowExecutionHttpTaskData, cp as WorkflowExecutionInlineBaseTask, cq as WorkflowExecutionInlineTaskData, cr as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cs as WorkflowExecutionLookupTask, ct as WorkflowExecutionNotifyAiAgentTaskData, cu as WorkflowExecutionReasoningTaskData, cv as WorkflowExecutionScriptTask, cw as WorkflowExecutionSimpleBaseTaskData, cx as WorkflowExecutionSimpleTaskData, cy as WorkflowExecutionStatus, cz as WorkflowExecutionSwitchBaseTask, cA as WorkflowExecutionSwitchCaseTask, cB as WorkflowExecutionSwitchTaskData, cC as WorkflowExecutionTaskBase, cD as WorkflowExecutionTaskData, cE as WorkflowExecutionTaskStatus, cF as WorkflowExecutionTerminateTaskData, cG as WorkflowExecutionTicketContext, cH as WorkflowExecutionTransformBaseTask, cI as WorkflowExecutionTransformTaskData, cJ as WorkflowExecutionTriggerData, cK as WorkflowExecutionTriggerDataBase, cL as WorkflowExecutionType, cM as WorkflowExecutionWaitTaskData, cN as WorkflowForEachTask, cO as WorkflowForEachTaskCore, cP as WorkflowForEachTaskInput, cQ as WorkflowForkJoinTask, cR as WorkflowForkJoinTaskCore, cS as WorkflowForkJoinTaskInput, cT as WorkflowFunctionErrorResponseBody, cU as WorkflowGraph, cV as WorkflowHttpRequest, cW as WorkflowHttpTask, cX as WorkflowHttpTaskCore, cY as WorkflowHttpTaskErrorResponseBody, cZ as WorkflowHttpTaskFunctionErrorResponseBody, c_ as WorkflowHttpTaskHeaders, c$ as WorkflowHttpTaskInput, d0 as WorkflowHttpTaskProviderErrorResponseBody, d1 as WorkflowInactivityReason, d2 as WorkflowInlineBaseTask, d3 as WorkflowInlineBaseTaskCore, d4 as WorkflowInlineBaseTaskInput, d5 as WorkflowInlineTask, d6 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d7 as WorkflowItemKind, d8 as WorkflowJoinTask, d9 as WorkflowJoinTaskCore, da as WorkflowJoinTaskInput, q as WorkflowListItemDto, db as WorkflowLookupTask, dc as WorkflowLookupTaskCore, dd as WorkflowLookupTaskDefinitionInputParameters, de as WorkflowLookupTaskInput, df as WorkflowLoopTask, dg as WorkflowLoopTaskCore, dh as WorkflowLoopTaskInput, di as WorkflowManualTrigger, dj as WorkflowManualTriggerCore, dk as WorkflowManualTriggerParameter, dl as WorkflowManualTriggerSubType, dm as WorkflowManualTriggerSubTypeName, dn as WorkflowNode, dp as WorkflowNotifyAiAgentTask, dq as WorkflowNotifyAiAgentTaskCore, dr as WorkflowNotifyAiAgentTaskInput, ds as WorkflowNotifyAiAgentTaskObjectiveInput, dt as WorkflowNotifyAiAgentTaskStrictInput, du as WorkflowOneTimeTrigger, dv as WorkflowOneTimeTriggerCore, dw as WorkflowOneTimeTriggerInput, dx as WorkflowParentRef, dy as WorkflowPlan, dz as WorkflowReasoningOption, dA as WorkflowReasoningOptionAgent, dB as WorkflowReasoningOptionCustomer, dC as WorkflowReasoningTask, dD as WorkflowReasoningTaskCore, dE as WorkflowReasoningTaskInput, dF as WorkflowRecurringTrigger, dG as WorkflowRecurringTriggerCore, dH as WorkflowRecurringTriggerInput, dI as WorkflowResourceBucket, dJ as WorkflowResourceRow, dK as WorkflowResources, dL as WorkflowScriptTask, dM as WorkflowScriptTaskCore, dN as WorkflowScriptTaskInput, dO as WorkflowSimpleBaseTask, dP as WorkflowSimpleBaseTaskCore, dQ as WorkflowSimpleTask, dR as WorkflowSimpleTaskCore, dS as WorkflowSwitchBaseTask, dT as WorkflowSwitchBaseTaskCore, dU as WorkflowSwitchCaseTask, dV as WorkflowSwitchCaseTaskCore, dW as WorkflowSwitchCaseTaskInput, dX as WorkflowSwitchTask, dY as WorkflowSwitchTaskCore, dZ as WorkflowSwitchTaskInput, d_ as WorkflowTask, d$ as WorkflowTaskBase, e0 as WorkflowTaskCore, e1 as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, e2 as WorkflowTaskIntrospection, e3 as WorkflowTaskOf, e4 as WorkflowTaskPlan, e5 as WorkflowTaskType, E as WorkflowTemplate, e6 as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, e7 as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, e8 as WorkflowTerminateTask, e9 as WorkflowTerminateTaskCore, ea as WorkflowTerminateTaskInput, eb as WorkflowTransformBaseTask, ec as WorkflowTransformBaseTaskCore, ed as WorkflowTransformBaseTaskInput, ee as WorkflowTransformTask, ef as WorkflowTransformTaskCore, eg as WorkflowTrigger, eh as WorkflowTriggerBase, ei as WorkflowTriggerCore, ej as WorkflowTriggerDto, ek as WorkflowTriggerIdentity, el as WorkflowTriggerOf, em as WorkflowTriggerPlan, en as WorkflowTriggerType, eo as WorkflowWaitTask, ep as WorkflowWaitTaskCore, eq as WorkflowWaitTaskInput, er as WorkflowWebhook, es as WorkflowWebhookInput, et as WorkflowWebhookManualTrigger, eu as WorkflowWebhookManualTriggerCore, ev as WorkflowWebhookTrigger, ew as WorkflowWebhookTriggerCore, ex as WorkflowWebhookTriggerPure, eB as getWorkflowApiCrmConfig, eH as isFilter, eI as isFilterGroup, eJ as isWorkflowBaseHttpTaskCore, eL as serializeFilters } from './events-N02veirY.js';
|
|
2
2
|
import 'utils';
|
|
3
3
|
import 'json-schema';
|
|
4
4
|
import 'zod';
|
|
@@ -209,7 +209,8 @@ var WorkflowCustomTaskName = {
|
|
|
209
209
|
script: `${WorkflowTaskType.inline}_SCRIPT`,
|
|
210
210
|
// JQ TRANSFORM
|
|
211
211
|
convert: `${WorkflowTaskType.transform}_CONVERT`,
|
|
212
|
-
construct: `${WorkflowTaskType.transform}_CONSTRUCT
|
|
212
|
+
construct: `${WorkflowTaskType.transform}_CONSTRUCT`,
|
|
213
|
+
lookup: `${WorkflowTaskType.transform}_LOOKUP`
|
|
213
214
|
};
|
|
214
215
|
var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2) => {
|
|
215
216
|
WorkflowExecutionTaskStatus2["Completed"] = "COMPLETED";
|
|
@@ -326,11 +327,13 @@ var WorkflowTriggerType = {
|
|
|
326
327
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/triggers/manual.ts
|
|
327
328
|
var WorkflowManualTriggerSubType = {
|
|
328
329
|
forSelectedChat: "for_selected_chat",
|
|
329
|
-
forSelectedTicket: "for_selected_ticket"
|
|
330
|
+
forSelectedTicket: "for_selected_ticket",
|
|
331
|
+
forSelectedCustomer: "for_selected_customer"
|
|
330
332
|
};
|
|
331
333
|
var WorkflowManualTriggerSubTypeName = {
|
|
332
334
|
[WorkflowManualTriggerSubType.forSelectedChat]: "text-livechat-manual",
|
|
333
|
-
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
|
|
335
|
+
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual",
|
|
336
|
+
[WorkflowManualTriggerSubType.forSelectedCustomer]: "text-manual"
|
|
334
337
|
};
|
|
335
338
|
|
|
336
339
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
|
|
@@ -1313,7 +1316,11 @@ var customerMetadataZod = import_zod.z.object({
|
|
|
1313
1316
|
var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
1314
1317
|
segment_id: import_zod.z.number(),
|
|
1315
1318
|
segment_type: import_zod.z.string(),
|
|
1316
|
-
membership_last_updated_at: import_zod.z.string()
|
|
1319
|
+
membership_last_updated_at: import_zod.z.string(),
|
|
1320
|
+
segment_fields: import_zod.z.object({
|
|
1321
|
+
email: import_zod.z.string().optional(),
|
|
1322
|
+
customer_properties: import_zod.z.record(import_zod.z.unknown()).optional()
|
|
1323
|
+
}).passthrough().optional()
|
|
1317
1324
|
}).passthrough();
|
|
1318
1325
|
var cdpCustomerEventMessageZod = import_zod.z.discriminatedUnion("type", [
|
|
1319
1326
|
import_zod.z.object({
|
|
@@ -2082,6 +2089,8 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
|
|
|
2082
2089
|
TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
|
|
2083
2090
|
TextLivechatEventNames2["ChatIdle"] = "chat_idle";
|
|
2084
2091
|
TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
|
|
2092
|
+
TextLivechatEventNames2["FormFilled"] = "form_filled";
|
|
2093
|
+
TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
|
|
2085
2094
|
return TextLivechatEventNames2;
|
|
2086
2095
|
})(TextLivechatEventNames || {});
|
|
2087
2096
|
var CustomerLeftChatReason = /* @__PURE__ */ ((CustomerLeftChatReason2) => {
|
|
@@ -2158,6 +2167,14 @@ var textLivechatEventsZods = {
|
|
|
2158
2167
|
name: import_zod14.z.literal("product_card_event" /* ProductCardEvent */),
|
|
2159
2168
|
type: import_zod14.z.nativeEnum(TextLivechatProductCardEventType),
|
|
2160
2169
|
product_id: import_zod14.z.string().optional()
|
|
2170
|
+
}),
|
|
2171
|
+
formFilled: integrationEventBase.extend({
|
|
2172
|
+
name: import_zod14.z.literal("form_filled" /* FormFilled */),
|
|
2173
|
+
form_id: import_zod14.z.string().optional()
|
|
2174
|
+
}),
|
|
2175
|
+
customFormFilled: integrationEventBase.extend({
|
|
2176
|
+
name: import_zod14.z.literal("custom_form_filled" /* CustomFormFilled */),
|
|
2177
|
+
form_id: import_zod14.z.string().optional()
|
|
2161
2178
|
})
|
|
2162
2179
|
},
|
|
2163
2180
|
get event() {
|
|
@@ -2173,7 +2190,9 @@ var textLivechatEventsZods = {
|
|
|
2173
2190
|
this.events.userRemovedFromChat,
|
|
2174
2191
|
this.events.customerLeftChat,
|
|
2175
2192
|
this.events.chatIdle,
|
|
2176
|
-
this.events.productCardEvent
|
|
2193
|
+
this.events.productCardEvent,
|
|
2194
|
+
this.events.formFilled,
|
|
2195
|
+
this.events.customFormFilled
|
|
2177
2196
|
]);
|
|
2178
2197
|
},
|
|
2179
2198
|
get subscribe() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tsup": "^8.5.1",
|
|
38
38
|
"typescript": "^5.1.6",
|
|
39
39
|
"eslint-config-custom": "0.0.15",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"tsconfig": "0.2.1",
|
|
41
|
+
"utils": "0.3.5"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|