@livechat/developer-studio-api 5.10.1 → 5.11.1
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-Cbu2KbXk.d.mts} +413 -23
- package/dist/{events-00ZFjf-6.d.ts → events-Cbu2KbXk.d.ts} +413 -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 +4 -4
|
@@ -147,7 +147,8 @@ var WorkflowCustomTaskName = {
|
|
|
147
147
|
script: `${WorkflowTaskType.inline}_SCRIPT`,
|
|
148
148
|
// JQ TRANSFORM
|
|
149
149
|
convert: `${WorkflowTaskType.transform}_CONVERT`,
|
|
150
|
-
construct: `${WorkflowTaskType.transform}_CONSTRUCT
|
|
150
|
+
construct: `${WorkflowTaskType.transform}_CONSTRUCT`,
|
|
151
|
+
lookup: `${WorkflowTaskType.transform}_LOOKUP`
|
|
151
152
|
};
|
|
152
153
|
var WorkflowExecutionTaskStatus = /* @__PURE__ */ ((WorkflowExecutionTaskStatus2) => {
|
|
153
154
|
WorkflowExecutionTaskStatus2["Completed"] = "COMPLETED";
|
|
@@ -264,11 +265,13 @@ var WorkflowTriggerType = {
|
|
|
264
265
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/triggers/manual.ts
|
|
265
266
|
var WorkflowManualTriggerSubType = {
|
|
266
267
|
forSelectedChat: "for_selected_chat",
|
|
267
|
-
forSelectedTicket: "for_selected_ticket"
|
|
268
|
+
forSelectedTicket: "for_selected_ticket",
|
|
269
|
+
forSelectedCustomer: "for_selected_customer"
|
|
268
270
|
};
|
|
269
271
|
var WorkflowManualTriggerSubTypeName = {
|
|
270
272
|
[WorkflowManualTriggerSubType.forSelectedChat]: "text-livechat-manual",
|
|
271
|
-
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
|
|
273
|
+
[WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual",
|
|
274
|
+
[WorkflowManualTriggerSubType.forSelectedCustomer]: "text-manual"
|
|
272
275
|
};
|
|
273
276
|
|
|
274
277
|
// src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
|
|
@@ -8521,7 +8524,11 @@ var customerMetadataZod = z.object({
|
|
|
8521
8524
|
var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
8522
8525
|
segment_id: z.number(),
|
|
8523
8526
|
segment_type: z.string(),
|
|
8524
|
-
membership_last_updated_at: z.string()
|
|
8527
|
+
membership_last_updated_at: z.string(),
|
|
8528
|
+
segment_fields: z.object({
|
|
8529
|
+
email: z.string().optional(),
|
|
8530
|
+
customer_properties: z.record(z.unknown()).optional()
|
|
8531
|
+
}).passthrough().optional()
|
|
8525
8532
|
}).passthrough();
|
|
8526
8533
|
var cdpCustomerEventMessageZod = z.discriminatedUnion("type", [
|
|
8527
8534
|
z.object({
|
|
@@ -9347,6 +9354,8 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
|
|
|
9347
9354
|
TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
|
|
9348
9355
|
TextLivechatEventNames2["ChatIdle"] = "chat_idle";
|
|
9349
9356
|
TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
|
|
9357
|
+
TextLivechatEventNames2["FormFilled"] = "form_filled";
|
|
9358
|
+
TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
|
|
9350
9359
|
return TextLivechatEventNames2;
|
|
9351
9360
|
})(TextLivechatEventNames || {});
|
|
9352
9361
|
var CustomerLeftChatReason = /* @__PURE__ */ ((CustomerLeftChatReason2) => {
|
|
@@ -9423,6 +9432,14 @@ var textLivechatEventsZods = {
|
|
|
9423
9432
|
name: z14.literal("product_card_event" /* ProductCardEvent */),
|
|
9424
9433
|
type: z14.nativeEnum(TextLivechatProductCardEventType),
|
|
9425
9434
|
product_id: z14.string().optional()
|
|
9435
|
+
}),
|
|
9436
|
+
formFilled: integrationEventBase.extend({
|
|
9437
|
+
name: z14.literal("form_filled" /* FormFilled */),
|
|
9438
|
+
form_id: z14.string().optional()
|
|
9439
|
+
}),
|
|
9440
|
+
customFormFilled: integrationEventBase.extend({
|
|
9441
|
+
name: z14.literal("custom_form_filled" /* CustomFormFilled */),
|
|
9442
|
+
form_id: z14.string().optional()
|
|
9426
9443
|
})
|
|
9427
9444
|
},
|
|
9428
9445
|
get event() {
|
|
@@ -9438,7 +9455,9 @@ var textLivechatEventsZods = {
|
|
|
9438
9455
|
this.events.userRemovedFromChat,
|
|
9439
9456
|
this.events.customerLeftChat,
|
|
9440
9457
|
this.events.chatIdle,
|
|
9441
|
-
this.events.productCardEvent
|
|
9458
|
+
this.events.productCardEvent,
|
|
9459
|
+
this.events.formFilled,
|
|
9460
|
+
this.events.customFormFilled
|
|
9442
9461
|
]);
|
|
9443
9462
|
},
|
|
9444
9463
|
get subscribe() {
|