@livechat/developer-studio-api 5.8.0 → 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-H3W6SG7M.mjs → chunk-QGX7NFQO.mjs} +81 -7
- package/dist/{events-yWjeW2vl.d.mts → events-N02veirY.d.mts} +681 -68
- package/dist/{events-yWjeW2vl.d.ts → events-N02veirY.d.ts} +681 -68
- package/dist/index.d.mts +419 -17
- package/dist/index.d.ts +419 -17
- package/dist/index.js +83 -7
- 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 +66 -6
- package/dist/workflow-contracts.mjs +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -117,6 +117,7 @@ __export(src_exports, {
|
|
|
117
117
|
TextApiError: () => TextApiError,
|
|
118
118
|
TextBillingApiError: () => TextBillingApiError,
|
|
119
119
|
TextCustomerEventNames: () => TextCustomerEventNames,
|
|
120
|
+
TextCustomerSegmentType: () => TextCustomerSegmentType,
|
|
120
121
|
TextHelpDeskEventNames: () => TextHelpDeskEventNames,
|
|
121
122
|
TextLivechatEventNames: () => TextLivechatEventNames,
|
|
122
123
|
TextLivechatProductCardEventType: () => TextLivechatProductCardEventType,
|
|
@@ -136,6 +137,7 @@ __export(src_exports, {
|
|
|
136
137
|
WorkflowExecutionStatus: () => WorkflowExecutionStatus,
|
|
137
138
|
WorkflowExecutionTaskStatus: () => WorkflowExecutionTaskStatus,
|
|
138
139
|
WorkflowExecutionType: () => WorkflowExecutionType,
|
|
140
|
+
WorkflowInactivityReason: () => WorkflowInactivityReason,
|
|
139
141
|
WorkflowItemKind: () => WorkflowItemKind,
|
|
140
142
|
WorkflowManualTriggerSubType: () => WorkflowManualTriggerSubType,
|
|
141
143
|
WorkflowManualTriggerSubTypeName: () => WorkflowManualTriggerSubTypeName,
|
|
@@ -872,8 +874,16 @@ var import_zod7 = require("zod");
|
|
|
872
874
|
var TextCustomerEventNames = /* @__PURE__ */ ((TextCustomerEventNames2) => {
|
|
873
875
|
TextCustomerEventNames2["EmailSet"] = "customer_email_set";
|
|
874
876
|
TextCustomerEventNames2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
|
|
877
|
+
TextCustomerEventNames2["SegmentAdded"] = "segment_added";
|
|
878
|
+
TextCustomerEventNames2["SegmentRemoved"] = "segment_removed";
|
|
875
879
|
return TextCustomerEventNames2;
|
|
876
880
|
})(TextCustomerEventNames || {});
|
|
881
|
+
var TextCustomerSegmentType = /* @__PURE__ */ ((TextCustomerSegmentType2) => {
|
|
882
|
+
TextCustomerSegmentType2["Lead"] = "lead";
|
|
883
|
+
TextCustomerSegmentType2["QualifiedLead"] = "qualified_lead";
|
|
884
|
+
TextCustomerSegmentType2["Custom"] = "custom";
|
|
885
|
+
return TextCustomerSegmentType2;
|
|
886
|
+
})(TextCustomerSegmentType || {});
|
|
877
887
|
var textCustomerEventsZods = {
|
|
878
888
|
eventName: import_zod7.z.nativeEnum(TextCustomerEventNames),
|
|
879
889
|
events: {
|
|
@@ -889,12 +899,22 @@ var textCustomerEventsZods = {
|
|
|
889
899
|
to: import_zod7.z.union([import_zod7.z.string(), import_zod7.z.number(), import_zod7.z.boolean()]).nullish()
|
|
890
900
|
})
|
|
891
901
|
).optional()
|
|
902
|
+
}),
|
|
903
|
+
segmentAdded: integrationEventBase.extend({
|
|
904
|
+
name: import_zod7.z.literal("segment_added" /* SegmentAdded */),
|
|
905
|
+
segment_type: import_zod7.z.nativeEnum(TextCustomerSegmentType)
|
|
906
|
+
}),
|
|
907
|
+
segmentRemoved: integrationEventBase.extend({
|
|
908
|
+
name: import_zod7.z.literal("segment_removed" /* SegmentRemoved */),
|
|
909
|
+
segment_type: import_zod7.z.nativeEnum(TextCustomerSegmentType)
|
|
892
910
|
})
|
|
893
911
|
},
|
|
894
912
|
get event() {
|
|
895
913
|
return import_zod7.z.discriminatedUnion("name", [
|
|
896
914
|
this.events.emailSet,
|
|
897
|
-
this.events.propertiesValuesUpdated
|
|
915
|
+
this.events.propertiesValuesUpdated,
|
|
916
|
+
this.events.segmentAdded,
|
|
917
|
+
this.events.segmentRemoved
|
|
898
918
|
]);
|
|
899
919
|
},
|
|
900
920
|
get subscribe() {
|
|
@@ -1082,6 +1102,8 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
|
|
|
1082
1102
|
TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
|
|
1083
1103
|
TextLivechatEventNames2["ChatIdle"] = "chat_idle";
|
|
1084
1104
|
TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
|
|
1105
|
+
TextLivechatEventNames2["FormFilled"] = "form_filled";
|
|
1106
|
+
TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
|
|
1085
1107
|
return TextLivechatEventNames2;
|
|
1086
1108
|
})(TextLivechatEventNames || {});
|
|
1087
1109
|
var CustomerLeftChatReason = /* @__PURE__ */ ((CustomerLeftChatReason2) => {
|
|
@@ -1133,7 +1155,7 @@ var textLivechatEventsZods = {
|
|
|
1133
1155
|
}),
|
|
1134
1156
|
import_zod9.z.object({
|
|
1135
1157
|
name: import_zod9.z.literal("chat_message" /* ChatMessage */),
|
|
1136
|
-
version: import_zod9.z.
|
|
1158
|
+
version: import_zod9.z.enum(["v1", "v2"]),
|
|
1137
1159
|
filters: import_zod9.z.array(import_zod9.z.string()),
|
|
1138
1160
|
caseInsensitive: import_zod9.z.boolean().optional(),
|
|
1139
1161
|
matchWholeWords: import_zod9.z.boolean().optional()
|
|
@@ -1158,6 +1180,14 @@ var textLivechatEventsZods = {
|
|
|
1158
1180
|
name: import_zod9.z.literal("product_card_event" /* ProductCardEvent */),
|
|
1159
1181
|
type: import_zod9.z.nativeEnum(TextLivechatProductCardEventType),
|
|
1160
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()
|
|
1161
1191
|
})
|
|
1162
1192
|
},
|
|
1163
1193
|
get event() {
|
|
@@ -1173,7 +1203,9 @@ var textLivechatEventsZods = {
|
|
|
1173
1203
|
this.events.userRemovedFromChat,
|
|
1174
1204
|
this.events.customerLeftChat,
|
|
1175
1205
|
this.events.chatIdle,
|
|
1176
|
-
this.events.productCardEvent
|
|
1206
|
+
this.events.productCardEvent,
|
|
1207
|
+
this.events.formFilled,
|
|
1208
|
+
this.events.customFormFilled
|
|
1177
1209
|
]);
|
|
1178
1210
|
},
|
|
1179
1211
|
get subscribe() {
|
|
@@ -4803,7 +4835,8 @@ var WorkflowCustomTaskName = {
|
|
|
4803
4835
|
script: `${WorkflowTaskType.inline}_SCRIPT`,
|
|
4804
4836
|
// JQ TRANSFORM
|
|
4805
4837
|
convert: `${WorkflowTaskType.transform}_CONVERT`,
|
|
4806
|
-
construct: `${WorkflowTaskType.transform}_CONSTRUCT
|
|
4838
|
+
construct: `${WorkflowTaskType.transform}_CONSTRUCT`,
|
|
4839
|
+
lookup: `${WorkflowTaskType.transform}_LOOKUP`
|
|
4807
4840
|
};
|
|
4808
4841
|
var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2) => {
|
|
4809
4842
|
WorkflowExecutionTaskStatus2["Completed"] = "COMPLETED";
|
|
@@ -4920,13 +4953,21 @@ var WorkflowTriggerType = {
|
|
|
4920
4953
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/triggers/manual.ts
|
|
4921
4954
|
var WorkflowManualTriggerSubType = {
|
|
4922
4955
|
forSelectedChat: "for_selected_chat",
|
|
4923
|
-
forSelectedTicket: "for_selected_ticket"
|
|
4956
|
+
forSelectedTicket: "for_selected_ticket",
|
|
4957
|
+
forSelectedCustomer: "for_selected_customer"
|
|
4924
4958
|
};
|
|
4925
4959
|
var WorkflowManualTriggerSubTypeName = {
|
|
4926
4960
|
[WorkflowManualTriggerSubType.forSelectedChat]: "text-livechat-manual",
|
|
4927
|
-
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
|
|
4961
|
+
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual",
|
|
4962
|
+
[WorkflowManualTriggerSubType.forSelectedCustomer]: "text-manual"
|
|
4928
4963
|
};
|
|
4929
4964
|
|
|
4965
|
+
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
|
|
4966
|
+
var WorkflowInactivityReason = /* @__PURE__ */ ((WorkflowInactivityReason2) => {
|
|
4967
|
+
WorkflowInactivityReason2["OwnerRemoved"] = "owner_removed";
|
|
4968
|
+
return WorkflowInactivityReason2;
|
|
4969
|
+
})(WorkflowInactivityReason || {});
|
|
4970
|
+
|
|
4930
4971
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflowElement.ts
|
|
4931
4972
|
var TRIGGER_REFERENCE_NAME = "trigger";
|
|
4932
4973
|
|
|
@@ -4993,6 +5034,7 @@ var getUrl5 = (segments = [], version) => buildUrlFromSegments(
|
|
|
4993
5034
|
);
|
|
4994
5035
|
var urls7 = {
|
|
4995
5036
|
getWorkflows: (queryParams) => enrichUrlWithQueryParams(getUrl5([], "v1.0" /* V1 */), queryParams),
|
|
5037
|
+
getAiAgentSkillsSummary: () => getUrl5(["ai_agent", "skills", "summary"], "v1.0" /* V1 */),
|
|
4996
5038
|
createWorkflow: () => getUrl5(),
|
|
4997
5039
|
getWorkflow: (id) => getUrl5([id], "v1.0" /* V1 */),
|
|
4998
5040
|
updateWorkflow: (id) => getUrl5([id]),
|
|
@@ -5026,6 +5068,17 @@ var textPlatformWorkflowsApi = {
|
|
|
5026
5068
|
return workflows;
|
|
5027
5069
|
});
|
|
5028
5070
|
},
|
|
5071
|
+
getAiAgentSkillsSummary(authorization) {
|
|
5072
|
+
return __async(this, null, function* () {
|
|
5073
|
+
const { data } = yield textClientInstance.get(
|
|
5074
|
+
urls7.getAiAgentSkillsSummary(),
|
|
5075
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
5076
|
+
ensureAuthorizationToken: true
|
|
5077
|
+
}))
|
|
5078
|
+
);
|
|
5079
|
+
return data;
|
|
5080
|
+
});
|
|
5081
|
+
},
|
|
5029
5082
|
getWorkflow(workflowId, version, authorization) {
|
|
5030
5083
|
return __async(this, null, function* () {
|
|
5031
5084
|
const searchParams = new URLSearchParams();
|
|
@@ -8655,7 +8708,7 @@ var livechatBotsTemplatesApi = {
|
|
|
8655
8708
|
};
|
|
8656
8709
|
|
|
8657
8710
|
// src/apis/products/livechat/configuration/properties/api.ts
|
|
8658
|
-
var API_BASE_URL = "/v3.
|
|
8711
|
+
var API_BASE_URL = "/v3.6/configuration/action";
|
|
8659
8712
|
var livechatPropertyApi = {
|
|
8660
8713
|
getProperties(clientId, isAgent, authorization) {
|
|
8661
8714
|
return __async(this, null, function* () {
|
|
@@ -9742,6 +9795,8 @@ var import_zod12 = require("zod");
|
|
|
9742
9795
|
var CdpCustomerEventType = /* @__PURE__ */ ((CdpCustomerEventType2) => {
|
|
9743
9796
|
CdpCustomerEventType2["EmailSet"] = "customer_email_set";
|
|
9744
9797
|
CdpCustomerEventType2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
|
|
9798
|
+
CdpCustomerEventType2["SegmentAdded"] = "segment_added";
|
|
9799
|
+
CdpCustomerEventType2["SegmentRemoved"] = "segment_removed";
|
|
9745
9800
|
return CdpCustomerEventType2;
|
|
9746
9801
|
})(CdpCustomerEventType || {});
|
|
9747
9802
|
var customerMetadataZod = import_zod12.z.object({
|
|
@@ -9749,6 +9804,15 @@ var customerMetadataZod = import_zod12.z.object({
|
|
|
9749
9804
|
customer_id: import_zod12.z.string(),
|
|
9750
9805
|
master_id: import_zod12.z.string()
|
|
9751
9806
|
});
|
|
9807
|
+
var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
9808
|
+
segment_id: import_zod12.z.number(),
|
|
9809
|
+
segment_type: 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()
|
|
9815
|
+
}).passthrough();
|
|
9752
9816
|
var cdpCustomerEventMessageZod = import_zod12.z.discriminatedUnion("type", [
|
|
9753
9817
|
import_zod12.z.object({
|
|
9754
9818
|
id: import_zod12.z.string(),
|
|
@@ -9770,6 +9834,16 @@ var cdpCustomerEventMessageZod = import_zod12.z.discriminatedUnion("type", [
|
|
|
9770
9834
|
}).passthrough()
|
|
9771
9835
|
)
|
|
9772
9836
|
}).passthrough()
|
|
9837
|
+
}),
|
|
9838
|
+
import_zod12.z.object({
|
|
9839
|
+
id: import_zod12.z.string(),
|
|
9840
|
+
type: import_zod12.z.literal("segment_added" /* SegmentAdded */),
|
|
9841
|
+
data: segmentMembershipDataZod
|
|
9842
|
+
}),
|
|
9843
|
+
import_zod12.z.object({
|
|
9844
|
+
id: import_zod12.z.string(),
|
|
9845
|
+
type: import_zod12.z.literal("segment_removed" /* SegmentRemoved */),
|
|
9846
|
+
data: segmentMembershipDataZod
|
|
9773
9847
|
})
|
|
9774
9848
|
]);
|
|
9775
9849
|
|
|
@@ -10048,6 +10122,7 @@ function initApi(config, tokens) {
|
|
|
10048
10122
|
TextApiError,
|
|
10049
10123
|
TextBillingApiError,
|
|
10050
10124
|
TextCustomerEventNames,
|
|
10125
|
+
TextCustomerSegmentType,
|
|
10051
10126
|
TextHelpDeskEventNames,
|
|
10052
10127
|
TextLivechatEventNames,
|
|
10053
10128
|
TextLivechatProductCardEventType,
|
|
@@ -10067,6 +10142,7 @@ function initApi(config, tokens) {
|
|
|
10067
10142
|
WorkflowExecutionStatus,
|
|
10068
10143
|
WorkflowExecutionTaskStatus,
|
|
10069
10144
|
WorkflowExecutionType,
|
|
10145
|
+
WorkflowInactivityReason,
|
|
10070
10146
|
WorkflowItemKind,
|
|
10071
10147
|
WorkflowManualTriggerSubType,
|
|
10072
10148
|
WorkflowManualTriggerSubTypeName,
|
package/dist/index.mjs
CHANGED
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
TextApiError,
|
|
50
50
|
TextBillingApiError,
|
|
51
51
|
TextCustomerEventNames,
|
|
52
|
+
TextCustomerSegmentType,
|
|
52
53
|
TextHelpDeskEventNames,
|
|
53
54
|
TextLivechatEventNames,
|
|
54
55
|
TextLivechatProductCardEventType,
|
|
@@ -68,6 +69,7 @@ import {
|
|
|
68
69
|
WorkflowExecutionStatus,
|
|
69
70
|
WorkflowExecutionTaskStatus,
|
|
70
71
|
WorkflowExecutionType,
|
|
72
|
+
WorkflowInactivityReason,
|
|
71
73
|
WorkflowItemKind,
|
|
72
74
|
WorkflowManualTriggerSubType,
|
|
73
75
|
WorkflowManualTriggerSubTypeName,
|
|
@@ -199,7 +201,7 @@ import {
|
|
|
199
201
|
updateWorkflowsClient,
|
|
200
202
|
vercelClientInstance,
|
|
201
203
|
workflowsClientInstance
|
|
202
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-QGX7NFQO.mjs";
|
|
203
205
|
export {
|
|
204
206
|
ACCOUNT_ID_HEADER,
|
|
205
207
|
API_NOTIFICATIONS,
|
|
@@ -251,6 +253,7 @@ export {
|
|
|
251
253
|
TextApiError,
|
|
252
254
|
TextBillingApiError,
|
|
253
255
|
TextCustomerEventNames,
|
|
256
|
+
TextCustomerSegmentType,
|
|
254
257
|
TextHelpDeskEventNames,
|
|
255
258
|
TextLivechatEventNames,
|
|
256
259
|
TextLivechatProductCardEventType,
|
|
@@ -270,6 +273,7 @@ export {
|
|
|
270
273
|
WorkflowExecutionStatus,
|
|
271
274
|
WorkflowExecutionTaskStatus,
|
|
272
275
|
WorkflowExecutionType,
|
|
276
|
+
WorkflowInactivityReason,
|
|
273
277
|
WorkflowItemKind,
|
|
274
278
|
WorkflowManualTriggerSubType,
|
|
275
279
|
WorkflowManualTriggerSubTypeName,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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 {
|
|
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';
|
|
@@ -85,6 +85,7 @@ __export(contracts_exports, {
|
|
|
85
85
|
WorkflowExecutionStatus: () => WorkflowExecutionStatus,
|
|
86
86
|
WorkflowExecutionTaskStatus: () => WorkflowExecutionTaskStatus,
|
|
87
87
|
WorkflowExecutionType: () => WorkflowExecutionType,
|
|
88
|
+
WorkflowInactivityReason: () => WorkflowInactivityReason,
|
|
88
89
|
WorkflowItemKind: () => WorkflowItemKind,
|
|
89
90
|
WorkflowManualTriggerSubType: () => WorkflowManualTriggerSubType,
|
|
90
91
|
WorkflowManualTriggerSubTypeName: () => WorkflowManualTriggerSubTypeName,
|
|
@@ -208,7 +209,8 @@ var WorkflowCustomTaskName = {
|
|
|
208
209
|
script: `${WorkflowTaskType.inline}_SCRIPT`,
|
|
209
210
|
// JQ TRANSFORM
|
|
210
211
|
convert: `${WorkflowTaskType.transform}_CONVERT`,
|
|
211
|
-
construct: `${WorkflowTaskType.transform}_CONSTRUCT
|
|
212
|
+
construct: `${WorkflowTaskType.transform}_CONSTRUCT`,
|
|
213
|
+
lookup: `${WorkflowTaskType.transform}_LOOKUP`
|
|
212
214
|
};
|
|
213
215
|
var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2) => {
|
|
214
216
|
WorkflowExecutionTaskStatus2["Completed"] = "COMPLETED";
|
|
@@ -325,13 +327,21 @@ var WorkflowTriggerType = {
|
|
|
325
327
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/triggers/manual.ts
|
|
326
328
|
var WorkflowManualTriggerSubType = {
|
|
327
329
|
forSelectedChat: "for_selected_chat",
|
|
328
|
-
forSelectedTicket: "for_selected_ticket"
|
|
330
|
+
forSelectedTicket: "for_selected_ticket",
|
|
331
|
+
forSelectedCustomer: "for_selected_customer"
|
|
329
332
|
};
|
|
330
333
|
var WorkflowManualTriggerSubTypeName = {
|
|
331
334
|
[WorkflowManualTriggerSubType.forSelectedChat]: "text-livechat-manual",
|
|
332
|
-
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
|
|
335
|
+
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual",
|
|
336
|
+
[WorkflowManualTriggerSubType.forSelectedCustomer]: "text-manual"
|
|
333
337
|
};
|
|
334
338
|
|
|
339
|
+
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
|
|
340
|
+
var WorkflowInactivityReason = /* @__PURE__ */ ((WorkflowInactivityReason2) => {
|
|
341
|
+
WorkflowInactivityReason2["OwnerRemoved"] = "owner_removed";
|
|
342
|
+
return WorkflowInactivityReason2;
|
|
343
|
+
})(WorkflowInactivityReason || {});
|
|
344
|
+
|
|
335
345
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflowElement.ts
|
|
336
346
|
var TRIGGER_REFERENCE_NAME = "trigger";
|
|
337
347
|
|
|
@@ -1303,6 +1313,15 @@ var customerMetadataZod = import_zod.z.object({
|
|
|
1303
1313
|
customer_id: import_zod.z.string(),
|
|
1304
1314
|
master_id: import_zod.z.string()
|
|
1305
1315
|
});
|
|
1316
|
+
var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
1317
|
+
segment_id: import_zod.z.number(),
|
|
1318
|
+
segment_type: 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()
|
|
1324
|
+
}).passthrough();
|
|
1306
1325
|
var cdpCustomerEventMessageZod = import_zod.z.discriminatedUnion("type", [
|
|
1307
1326
|
import_zod.z.object({
|
|
1308
1327
|
id: import_zod.z.string(),
|
|
@@ -1324,6 +1343,16 @@ var cdpCustomerEventMessageZod = import_zod.z.discriminatedUnion("type", [
|
|
|
1324
1343
|
}).passthrough()
|
|
1325
1344
|
)
|
|
1326
1345
|
}).passthrough()
|
|
1346
|
+
}),
|
|
1347
|
+
import_zod.z.object({
|
|
1348
|
+
id: import_zod.z.string(),
|
|
1349
|
+
type: import_zod.z.literal("segment_added" /* SegmentAdded */),
|
|
1350
|
+
data: segmentMembershipDataZod
|
|
1351
|
+
}),
|
|
1352
|
+
import_zod.z.object({
|
|
1353
|
+
id: import_zod.z.string(),
|
|
1354
|
+
type: import_zod.z.literal("segment_removed" /* SegmentRemoved */),
|
|
1355
|
+
data: segmentMembershipDataZod
|
|
1327
1356
|
})
|
|
1328
1357
|
]);
|
|
1329
1358
|
|
|
@@ -1851,8 +1880,16 @@ var import_zod12 = require("zod");
|
|
|
1851
1880
|
var TextCustomerEventNames = /* @__PURE__ */ ((TextCustomerEventNames2) => {
|
|
1852
1881
|
TextCustomerEventNames2["EmailSet"] = "customer_email_set";
|
|
1853
1882
|
TextCustomerEventNames2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
|
|
1883
|
+
TextCustomerEventNames2["SegmentAdded"] = "segment_added";
|
|
1884
|
+
TextCustomerEventNames2["SegmentRemoved"] = "segment_removed";
|
|
1854
1885
|
return TextCustomerEventNames2;
|
|
1855
1886
|
})(TextCustomerEventNames || {});
|
|
1887
|
+
var TextCustomerSegmentType = /* @__PURE__ */ ((TextCustomerSegmentType2) => {
|
|
1888
|
+
TextCustomerSegmentType2["Lead"] = "lead";
|
|
1889
|
+
TextCustomerSegmentType2["QualifiedLead"] = "qualified_lead";
|
|
1890
|
+
TextCustomerSegmentType2["Custom"] = "custom";
|
|
1891
|
+
return TextCustomerSegmentType2;
|
|
1892
|
+
})(TextCustomerSegmentType || {});
|
|
1856
1893
|
var textCustomerEventsZods = {
|
|
1857
1894
|
eventName: import_zod12.z.nativeEnum(TextCustomerEventNames),
|
|
1858
1895
|
events: {
|
|
@@ -1868,12 +1905,22 @@ var textCustomerEventsZods = {
|
|
|
1868
1905
|
to: import_zod12.z.union([import_zod12.z.string(), import_zod12.z.number(), import_zod12.z.boolean()]).nullish()
|
|
1869
1906
|
})
|
|
1870
1907
|
).optional()
|
|
1908
|
+
}),
|
|
1909
|
+
segmentAdded: integrationEventBase.extend({
|
|
1910
|
+
name: import_zod12.z.literal("segment_added" /* SegmentAdded */),
|
|
1911
|
+
segment_type: import_zod12.z.nativeEnum(TextCustomerSegmentType)
|
|
1912
|
+
}),
|
|
1913
|
+
segmentRemoved: integrationEventBase.extend({
|
|
1914
|
+
name: import_zod12.z.literal("segment_removed" /* SegmentRemoved */),
|
|
1915
|
+
segment_type: import_zod12.z.nativeEnum(TextCustomerSegmentType)
|
|
1871
1916
|
})
|
|
1872
1917
|
},
|
|
1873
1918
|
get event() {
|
|
1874
1919
|
return import_zod12.z.discriminatedUnion("name", [
|
|
1875
1920
|
this.events.emailSet,
|
|
1876
|
-
this.events.propertiesValuesUpdated
|
|
1921
|
+
this.events.propertiesValuesUpdated,
|
|
1922
|
+
this.events.segmentAdded,
|
|
1923
|
+
this.events.segmentRemoved
|
|
1877
1924
|
]);
|
|
1878
1925
|
},
|
|
1879
1926
|
get subscribe() {
|
|
@@ -2042,6 +2089,8 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
|
|
|
2042
2089
|
TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
|
|
2043
2090
|
TextLivechatEventNames2["ChatIdle"] = "chat_idle";
|
|
2044
2091
|
TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
|
|
2092
|
+
TextLivechatEventNames2["FormFilled"] = "form_filled";
|
|
2093
|
+
TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
|
|
2045
2094
|
return TextLivechatEventNames2;
|
|
2046
2095
|
})(TextLivechatEventNames || {});
|
|
2047
2096
|
var CustomerLeftChatReason = /* @__PURE__ */ ((CustomerLeftChatReason2) => {
|
|
@@ -2093,7 +2142,7 @@ var textLivechatEventsZods = {
|
|
|
2093
2142
|
}),
|
|
2094
2143
|
import_zod14.z.object({
|
|
2095
2144
|
name: import_zod14.z.literal("chat_message" /* ChatMessage */),
|
|
2096
|
-
version: import_zod14.z.
|
|
2145
|
+
version: import_zod14.z.enum(["v1", "v2"]),
|
|
2097
2146
|
filters: import_zod14.z.array(import_zod14.z.string()),
|
|
2098
2147
|
caseInsensitive: import_zod14.z.boolean().optional(),
|
|
2099
2148
|
matchWholeWords: import_zod14.z.boolean().optional()
|
|
@@ -2118,6 +2167,14 @@ var textLivechatEventsZods = {
|
|
|
2118
2167
|
name: import_zod14.z.literal("product_card_event" /* ProductCardEvent */),
|
|
2119
2168
|
type: import_zod14.z.nativeEnum(TextLivechatProductCardEventType),
|
|
2120
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()
|
|
2121
2178
|
})
|
|
2122
2179
|
},
|
|
2123
2180
|
get event() {
|
|
@@ -2133,7 +2190,9 @@ var textLivechatEventsZods = {
|
|
|
2133
2190
|
this.events.userRemovedFromChat,
|
|
2134
2191
|
this.events.customerLeftChat,
|
|
2135
2192
|
this.events.chatIdle,
|
|
2136
|
-
this.events.productCardEvent
|
|
2193
|
+
this.events.productCardEvent,
|
|
2194
|
+
this.events.formFilled,
|
|
2195
|
+
this.events.customFormFilled
|
|
2137
2196
|
]);
|
|
2138
2197
|
},
|
|
2139
2198
|
get subscribe() {
|
|
@@ -2319,6 +2378,7 @@ function getWorkflowApiCrmConfig(authorization) {
|
|
|
2319
2378
|
WorkflowExecutionStatus,
|
|
2320
2379
|
WorkflowExecutionTaskStatus,
|
|
2321
2380
|
WorkflowExecutionType,
|
|
2381
|
+
WorkflowInactivityReason,
|
|
2322
2382
|
WorkflowItemKind,
|
|
2323
2383
|
WorkflowManualTriggerSubType,
|
|
2324
2384
|
WorkflowManualTriggerSubTypeName,
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
WorkflowExecutionStatus,
|
|
18
18
|
WorkflowExecutionTaskStatus,
|
|
19
19
|
WorkflowExecutionType,
|
|
20
|
+
WorkflowInactivityReason,
|
|
20
21
|
WorkflowItemKind,
|
|
21
22
|
WorkflowManualTriggerSubType,
|
|
22
23
|
WorkflowManualTriggerSubTypeName,
|
|
@@ -28,7 +29,7 @@ import {
|
|
|
28
29
|
isFilterGroup,
|
|
29
30
|
isWorkflowBaseHttpTaskCore,
|
|
30
31
|
serializeFilters
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QGX7NFQO.mjs";
|
|
32
33
|
export {
|
|
33
34
|
CredentialStatus,
|
|
34
35
|
CredentialType,
|
|
@@ -48,6 +49,7 @@ export {
|
|
|
48
49
|
WorkflowExecutionStatus,
|
|
49
50
|
WorkflowExecutionTaskStatus,
|
|
50
51
|
WorkflowExecutionType,
|
|
52
|
+
WorkflowInactivityReason,
|
|
51
53
|
WorkflowItemKind,
|
|
52
54
|
WorkflowManualTriggerSubType,
|
|
53
55
|
WorkflowManualTriggerSubTypeName,
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "^5.1.6",
|
|
39
39
|
"eslint-config-custom": "0.0.15",
|
|
40
40
|
"tsconfig": "0.2.1",
|
|
41
|
-
"utils": "0.3.
|
|
41
|
+
"utils": "0.3.5"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|