@livechat/platform-workflows 0.1.4 → 0.1.6

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.
@@ -0,0 +1,1037 @@
1
+ import * as _livechat_developer_studio_api from '@livechat/developer-studio-api';
2
+ import { WorkflowDefinitionHttpTask, WorkflowTriggerDto, DeepPartial, SlackEventNames, WorkflowDefinitionSwitchTask, WorkflowDefinitionForkJoinTask, WorkflowDefinitionJoinTask, WorkflowDefinitionTerminateTask, WorkflowDefinitionTask, WorkflowTemplate } from '@livechat/developer-studio-api';
3
+ import { JSONSchema7, JSONSchema7Definition } from 'json-schema';
4
+ import { DeepPartial as DeepPartial$1 } from 'utils';
5
+
6
+ declare enum WorkflowsIframeMessages {
7
+ OpenSideNav = "openSideNav",
8
+ CloseSideNav = "closeSideNav",
9
+ ToggleSideNav = "toggleSideNav"
10
+ }
11
+
12
+ declare const OTHER_TYPES: {
13
+ SYSTEM: string;
14
+ SCHEDULED: string;
15
+ MANUAL: string;
16
+ };
17
+
18
+ interface WorkflowItemCustomization {
19
+ provider: string;
20
+ product?: string;
21
+ displayName: string;
22
+ description: string;
23
+ shortDescription: string;
24
+ }
25
+ interface WorkflowItemConfigBase {
26
+ key: string;
27
+ customization: WorkflowItemCustomization;
28
+ }
29
+ type WorkflowTaskConfig = WorkflowItemConfigBase & ({
30
+ type: 'other';
31
+ specification: {
32
+ input?: JSONSchema7;
33
+ output?: JSONSchema7;
34
+ };
35
+ } | {
36
+ type: 'HTTP';
37
+ url: string;
38
+ specification: {
39
+ input?: JSONSchema7;
40
+ output?: JSONSchema7;
41
+ };
42
+ });
43
+ type WorkflowTriggerConfig = (WorkflowItemConfigBase & {
44
+ type: 'webhook';
45
+ name: string;
46
+ specification: {
47
+ input?: JSONSchema7;
48
+ output: JSONSchema7;
49
+ };
50
+ }) | (WorkflowItemConfigBase & {
51
+ type: 'system';
52
+ specification: {
53
+ input?: JSONSchema7;
54
+ output?: JSONSchema7;
55
+ };
56
+ });
57
+ type WorkflowItemConfig = ({
58
+ kind: 'task';
59
+ } & WorkflowTaskConfig) | ({
60
+ kind: 'trigger';
61
+ } & WorkflowTriggerConfig);
62
+
63
+ declare enum BigCommerceTaskNames {
64
+ CreateBlogPost = "BIGCOMMERCE_CREATE_BLOG_POST",
65
+ CreateCustomer = "BIGCOMMERCE_CREATE_CUSTOMER",
66
+ UpdateCustomer = "BIGCOMMERCE_UPDATE_CUSTOMER",
67
+ CreateProduct = "BIGCOMMERCE_CREATE_PRODUCT",
68
+ CreateCustomerAddress = "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS",
69
+ GetCustomer = "BIGCOMMERCE_GET_CUSTOMER",
70
+ GetCustomerAddresses = "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES",
71
+ GetProducts = "BIGCOMMERCE_GET_PRODUCTS"
72
+ }
73
+ declare const bigCommerceTaskConfigs: () => Record<BigCommerceTaskNames, WorkflowTaskConfig>;
74
+ declare const bigCommerceTaskTemplates: () => Record<BigCommerceTaskNames, WorkflowDefinitionHttpTask>;
75
+ declare const BigCommerceTriggerNames: {
76
+ readonly CartCreated: "bigcommerce-cart_created";
77
+ readonly CartUpdated: "bigcommerce-cart_updated";
78
+ readonly OrderCreated: "bigcommerce-order_created";
79
+ readonly OrderUpdated: "bigcommerce-order_updated";
80
+ readonly ProductCreated: "bigcommerce-product_created";
81
+ readonly ProductUpdated: "bigcommerce-product_updated";
82
+ };
83
+ declare const bigcommerceTriggerConfigs: () => Record<(typeof BigCommerceTriggerNames)[keyof typeof BigCommerceTriggerNames], Extract<WorkflowTriggerConfig, {
84
+ type: 'webhook';
85
+ }>>;
86
+ declare const bigcommerceTriggerTemplates: () => Record<(typeof BigCommerceTriggerNames)[keyof typeof BigCommerceTriggerNames], Extract<WorkflowTriggerDto, {
87
+ type: 'webhook';
88
+ }>>;
89
+
90
+ declare function isJSONSchema7(schema: JSONSchema7Definition | undefined): schema is JSONSchema7;
91
+ declare const WORKFLOW_TRIGGER_OUTPUT_SCHEMA: (body: JSONSchema7) => JSONSchema7;
92
+ declare const WORKFLOW_HTTP_TASK_SCHEMA: (name?: string, overrides?: {
93
+ uri?: JSONSchema7Definition;
94
+ headers?: JSONSchema7Definition;
95
+ body?: JSONSchema7Definition;
96
+ }) => {
97
+ required: string[];
98
+ properties: {
99
+ type: {
100
+ const: string;
101
+ };
102
+ name: {
103
+ const: string;
104
+ };
105
+ inputParameters: {
106
+ type: string;
107
+ required: string[];
108
+ properties: {
109
+ http_request: {
110
+ type: string;
111
+ required: (string | undefined)[];
112
+ properties: {
113
+ uri: JSONSchema7Definition;
114
+ method: {
115
+ type: string;
116
+ title: string;
117
+ enum: string[];
118
+ };
119
+ headers: JSONSchema7Definition;
120
+ body: boolean | JSONSchema7 | {
121
+ type: "object";
122
+ title: string;
123
+ properties: {};
124
+ additionalProperties: {
125
+ type: ("string" | "number" | "object" | "array")[];
126
+ items: {
127
+ type: ("string" | "number")[];
128
+ };
129
+ properties: {
130
+ [Symbol.toStringTag]: {
131
+ type: string[];
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ };
139
+ };
140
+ };
141
+ };
142
+ declare const WORKFLOW_HTTP_TASK_INPUT_SCHEMA: (body?: JSONSchema7, query?: JSONSchema7) => JSONSchema7;
143
+ declare const WORKFLOW_HTTP_TASK_OUTPUT_SCHEMA: (body: JSONSchema7) => JSONSchema7;
144
+ declare const WORKFLOW_SWITCH_TASK_SCHEMA: {
145
+ required: string[];
146
+ properties: {
147
+ type: {
148
+ const: string;
149
+ };
150
+ inputParameters: {
151
+ type: string;
152
+ properties: {
153
+ switchCaseValue: {
154
+ type: string;
155
+ };
156
+ };
157
+ };
158
+ evaluatorType: {
159
+ type: string;
160
+ oneOf: {
161
+ const: string;
162
+ title: string;
163
+ }[];
164
+ };
165
+ expression: {
166
+ type: string;
167
+ title: string;
168
+ };
169
+ defaultCase: {
170
+ $ref: string;
171
+ minItems: number;
172
+ };
173
+ decisionCases: {
174
+ type: string;
175
+ title: string;
176
+ properties: {};
177
+ additionalProperties: {
178
+ $ref: string;
179
+ };
180
+ };
181
+ };
182
+ };
183
+ declare const WORKFLOW_FORK_TASK_SCHEMA: {
184
+ required: string[];
185
+ properties: {
186
+ type: {
187
+ const: string;
188
+ };
189
+ forkTasks: {
190
+ title: string;
191
+ type: string;
192
+ items: {
193
+ $ref: string;
194
+ };
195
+ };
196
+ };
197
+ };
198
+ declare const WORKFLOW_JOIN_TASK_SCHEMA: {
199
+ required: string[];
200
+ properties: {
201
+ type: {
202
+ const: string;
203
+ };
204
+ joinOn: {
205
+ type: string;
206
+ items: {
207
+ type: string;
208
+ title: string;
209
+ };
210
+ };
211
+ };
212
+ };
213
+ declare const WORKFLOW_TERMINATE_TASK_SCHEMA: {
214
+ required: string[];
215
+ properties: {
216
+ type: {
217
+ const: string;
218
+ };
219
+ inputParameters: {
220
+ type: string;
221
+ required: string[];
222
+ properties: {
223
+ terminationStatus: {
224
+ type: string;
225
+ title: string;
226
+ oneOf: {
227
+ const: string;
228
+ title: string;
229
+ }[];
230
+ };
231
+ terminationReason: {
232
+ type: string;
233
+ title: string;
234
+ };
235
+ };
236
+ };
237
+ };
238
+ };
239
+
240
+ declare enum TextHelpdeskTaskNames {
241
+ CreateTicket = "HELPDESK_CREATE_TICKET",
242
+ UpdateTicket = "HELPDESK_UPDATE_TICKET",
243
+ AddFollowersToTicket = "HELPDESK_ADD_FOLLOWERS_TO_TICKET",
244
+ AddTagsToTicket = "HELPDESK_ADD_TAGS_TO_TICKET",
245
+ CreateTransaction = "HELPDESK_CREATE_TRANSACTION",
246
+ FindTicket = "HELPDESK_FIND_TICKET"
247
+ }
248
+ declare const helpdeskTaskConfigs: () => Record<TextHelpdeskTaskNames, WorkflowTaskConfig>;
249
+ declare const helpdeskTaskTemplates: () => Record<TextHelpdeskTaskNames, WorkflowDefinitionHttpTask>;
250
+ declare const TextHelpDeskTriggerNames: {
251
+ readonly TicketCreated: "text-helpdesk-ticket_created";
252
+ readonly TicketUpdated: "text-helpdesk-ticket_updated";
253
+ readonly TicketStatusChanged: "text-helpdesk-ticket_status_changed";
254
+ readonly TicketPriorityChanged: "text-helpdesk-ticket_priority_changed";
255
+ readonly TicketTagsChanged: "text-helpdesk-ticket_tags_added";
256
+ readonly TicketFollowersChanged: "text-helpdesk-ticket_followers_added";
257
+ readonly TicketAssignmentChanged: "text-helpdesk-ticket_assignment_added";
258
+ readonly TicketMessageAdded: "text-helpdesk-ticket_message_added";
259
+ };
260
+ declare const helpDeskTriggerConfigs: () => Record<(typeof TextHelpDeskTriggerNames)[keyof typeof TextHelpDeskTriggerNames], Extract<WorkflowTriggerConfig, {
261
+ type: 'webhook';
262
+ }>>;
263
+ declare const helpdeskTriggerTemplates: () => Record<(typeof TextHelpDeskTriggerNames)[keyof typeof TextHelpDeskTriggerNames], Extract<WorkflowTriggerDto, {
264
+ type: 'webhook';
265
+ }>>;
266
+
267
+ declare enum HubSpotTaskNames {
268
+ CreateContact = "HUBSPOT_CREATE_CONTACT",
269
+ UpdateContact = "HUBSPOT_UPDATE_CONTACT",
270
+ GetContact = "HUBSPOT_GET_CONTACT"
271
+ }
272
+ declare const hubspotTaskConfigs: () => Record<HubSpotTaskNames, WorkflowTaskConfig>;
273
+ declare const hubspotTaskTemplates: () => Record<HubSpotTaskNames, WorkflowDefinitionHttpTask>;
274
+ declare const HubSpotTriggerNames: {
275
+ readonly ContactCreated: "hubspot-contact_created";
276
+ readonly ContactDeleted: "hubspot-contact_deleted";
277
+ };
278
+ declare const hubspotTriggerConfigs: () => Record<(typeof HubSpotTriggerNames)[keyof typeof HubSpotTriggerNames], Extract<WorkflowTriggerConfig, {
279
+ type: 'webhook';
280
+ }>>;
281
+ declare const hubSpotTriggerTemplates: () => Record<(typeof HubSpotTriggerNames)[keyof typeof HubSpotTriggerNames], Extract<WorkflowTriggerDto, {
282
+ type: 'webhook';
283
+ }>>;
284
+
285
+ declare enum TextLiveChatTaskNames {
286
+ GetChatTranscript = "LIVECHAT_CHAT_TRANSCRIPT",
287
+ SendMessage = "LIVECHAT_SEND_MESSAGE",
288
+ TransferChat = "LIVECHAT_TRANSFER_CHAT",
289
+ TagChat = "LIVECHAT_TAG_CHAT",
290
+ SuperviseChat = "LIVECHAT_SUPERVISE_CHAT"
291
+ }
292
+ declare const livechatTaskConfigs: () => Record<TextLiveChatTaskNames, WorkflowTaskConfig>;
293
+ declare const livechatTaskTemplates: () => Record<TextLiveChatTaskNames, WorkflowDefinitionHttpTask>;
294
+ declare const TextLiveChatTriggerNames: {
295
+ readonly ChatStarted: "text-livechat-chat_started";
296
+ readonly ChatEnded: "text-livechat-chat_ended";
297
+ readonly ChatTransferred: "text-livechat-chat_transferred";
298
+ readonly ChatTagged: "text-livechat-chat_tagged";
299
+ readonly ChatRated: "text-livechat-chat_rated";
300
+ readonly ChatCommented: "text-livechat-chat_commented";
301
+ readonly ChatMessage: "text-livechat-chat_message";
302
+ readonly UserAddedToChat: "text-livechat-user_added_to_chat";
303
+ readonly UserRemovedFromChat: "text-livechat-user_removed_from_chat";
304
+ };
305
+ declare const livechatTriggerConfigs: () => Record<(typeof TextLiveChatTriggerNames)[keyof typeof TextLiveChatTriggerNames], Extract<WorkflowTriggerConfig, {
306
+ type: 'webhook';
307
+ }>>;
308
+ declare const livechatTriggerTemplates: () => Record<(typeof TextLiveChatTriggerNames)[keyof typeof TextLiveChatTriggerNames], Extract<WorkflowTriggerDto, {
309
+ type: 'webhook';
310
+ }>>;
311
+
312
+ declare enum MailchimpTaskNames {
313
+ AddSubscriber = "MAILCHIMP_ADD_SUBSCRIBER",
314
+ AddCampaign = "MAILCHIMP_ADD_CAMPAIGN",
315
+ SendCampaign = "MAILCHIMP_SEND_CAMPAIGN",
316
+ AddOrUpdateSubscriber = "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER",
317
+ UpdateSubscriber = "MAILCHIMP_UPDATE_SUBSCRIBER",
318
+ ArchiveSubscriber = "MAILCHIMP_ARCHIVE_SUBSCRIBER",
319
+ DeleteSubscriber = "MAILCHIMP_DELETE_SUBSCRIBER",
320
+ AddSubscriberTag = "MAILCHIMP_ADD_SUBSCRIBER_TAG",
321
+ AddSubscriberEvent = "MAILCHIMP_ADD_SUBSCRIBER_EVENT",
322
+ AddSubscriberNote = "MAILCHIMP_ADD_SUBSCRIBER_NOTE",
323
+ DeleteSubscriberTag = "MAILCHIMP_DELETE_SUBSCRIBER_TAG",
324
+ GetSubscriberTags = "MAILCHIMP_GET_SUBSCRIBER_TAGS",
325
+ GetSubscriber = "MAILCHIMP_GET_SUBSCRIBER",
326
+ GetSubscribers = "MAILCHIMP_GET_SUBSCRIBERS",
327
+ FindCampaign = "MAILCHIMP_FIND_CAMPAIGN"
328
+ }
329
+ declare const mailchimpTaskConfigs: () => Record<MailchimpTaskNames, WorkflowTaskConfig>;
330
+ declare const mailchimpTaskTemplates: () => Record<MailchimpTaskNames, WorkflowDefinitionHttpTask>;
331
+ declare const MailchimpTriggerNames: {
332
+ readonly Subscribed: "mailchimp-subscribed";
333
+ readonly Unsubscribed: "mailchimp-unsubscribed";
334
+ };
335
+ declare const mailchimpTriggerConfigs: () => Record<(typeof MailchimpTriggerNames)[keyof typeof MailchimpTriggerNames], Extract<WorkflowTriggerConfig, {
336
+ type: 'webhook';
337
+ }>>;
338
+ declare const mailchimpTriggerTemplates: () => Record<(typeof MailchimpTriggerNames)[keyof typeof MailchimpTriggerNames], DeepPartial<Extract<WorkflowTriggerDto, {
339
+ type: 'webhook';
340
+ }>>>;
341
+
342
+ declare enum OpenAiTaskNames {
343
+ ExtractOrderRequest = "OPENAI_EXTRACT_ORDER_REQUEST",
344
+ AnalyzeTextSentiment = "OPENAI_ANALYZE_TEXT_SENTIMENT",
345
+ SummarizeText = "OPENAI_SUMMARIZE_TEXT",
346
+ ModerateText = "OPENAI_MODERATE_TEXT",
347
+ CategorizeText = "OPENAI_CATEGORIZE_TEXT"
348
+ }
349
+ declare const openAiTaskConfigs: () => Record<OpenAiTaskNames, WorkflowTaskConfig>;
350
+ declare const openAiTaskTemplates: () => Record<OpenAiTaskNames, WorkflowDefinitionHttpTask>;
351
+
352
+ declare enum ShopifyTaskNames {
353
+ CreateCustomer = "SHOPIFY_CREATE_CUSTOMER",
354
+ CreateOrder = "SHOPIFY_CREATE_ORDER",
355
+ CreateDraftOrder = "SHOPIFY_CREATE_DRAFT_ORDER",
356
+ CreateProduct = "SHOPIFY_CREATE_PRODUCT",
357
+ CreateProductVariant = "SHOPIFY_CREATE_PRODUCT_VARIANT",
358
+ GetCustomer = "SHOPIFY_GET_CUSTOMER",
359
+ GetCustomerOrders = "SHOPIFY_GET_CUSTOMER_ORDERS",
360
+ GetProduct = "SHOPIFY_GET_PRODUCT",
361
+ GetProductVariant = "SHOPIFY_GET_PRODUCT_VARIANT",
362
+ UpdateInventoryQuantity = "SHOPIFY_UPDATE_INVENTORY_QUANTITY",
363
+ UpdateOrder = "SHOPIFY_UPDATE_ORDER",
364
+ UpdateProduct = "SHOPIFY_UPDATE_PRODUCT",
365
+ UpdateProductVariant = "SHOPIFY_UPDATE_PRODUCT_VARIANT",
366
+ UpdateCustomer = "SHOPIFY_UPDATE_CUSTOMER",
367
+ GetCustomerLastOrder = "SHOPIFY_GET_CUSTOMER_LAST_ORDER"
368
+ }
369
+ declare const shopifyTaskConfigs: () => Record<ShopifyTaskNames, WorkflowTaskConfig>;
370
+ declare const shopifyTaskTemplates: () => Record<ShopifyTaskNames, WorkflowDefinitionHttpTask>;
371
+ declare const ShopifyTriggerNames: {
372
+ readonly OrderCreated: "shopify-order_created";
373
+ };
374
+ declare const shopifyTriggerConfigs: () => Record<(typeof ShopifyTriggerNames)[keyof typeof ShopifyTriggerNames], Extract<WorkflowTriggerConfig, {
375
+ type: 'webhook';
376
+ }>>;
377
+ declare const shopifyTriggerTemplates: () => Record<(typeof ShopifyTriggerNames)[keyof typeof ShopifyTriggerNames], Extract<WorkflowTriggerDto, {
378
+ type: 'webhook';
379
+ }>>;
380
+
381
+ declare const SlackTriggerNames: {
382
+ readonly ChannelNewMessagePosted: "slack-channel_new_message_posted";
383
+ readonly MemberNewMention: "slack-member_new_mention";
384
+ };
385
+ declare enum SlackTaskNames {
386
+ SendMessage = "SEND_MESSAGE",
387
+ CreateChannel = "CREATE_CHANNEL"
388
+ }
389
+ declare const slackTaskConfigs: () => Record<SlackTaskNames, WorkflowTaskConfig>;
390
+ declare const slackTaskTemplates: () => Record<SlackTaskNames, WorkflowDefinitionHttpTask>;
391
+ declare const slackTriggerConfigs: () => Record<(typeof SlackTriggerNames)[keyof typeof SlackTriggerNames], Extract<WorkflowTriggerConfig, {
392
+ type: 'webhook';
393
+ }>>;
394
+ declare const slackTriggerTemplates: () => Record<(typeof SlackTriggerNames)[keyof typeof SlackEventNames], DeepPartial$1<Extract<WorkflowTriggerDto, {
395
+ type: 'webhook';
396
+ }>>>;
397
+
398
+ declare const systemTaskConfigs: () => Record<string, WorkflowTaskConfig>;
399
+ declare const workflowHttpTask: WorkflowDefinitionHttpTask;
400
+ declare const systemTaskTemplates: () => {
401
+ HTTP: WorkflowDefinitionHttpTask;
402
+ SWITCH: WorkflowDefinitionSwitchTask;
403
+ FORK_JOIN: WorkflowDefinitionForkJoinTask;
404
+ JOIN: WorkflowDefinitionJoinTask;
405
+ TERMINATE: WorkflowDefinitionTerminateTask;
406
+ };
407
+ declare enum WorkflowSystemTriggers {
408
+ Scheduled = "scheduled",
409
+ Manual = "manual"
410
+ }
411
+ declare const systemTriggerConfigs: () => Record<WorkflowSystemTriggers, Extract<WorkflowTriggerConfig, {
412
+ type: 'system';
413
+ }>>;
414
+ declare const systemTriggerTemplates: () => Record<WorkflowSystemTriggers, WorkflowTriggerDto>;
415
+
416
+ declare class WorkflowSpecification {
417
+ private static _instance;
418
+ private configs;
419
+ private templates;
420
+ private constructor();
421
+ static get config(): {
422
+ tasks: {
423
+ SEND_MESSAGE: WorkflowTaskConfig;
424
+ CREATE_CHANNEL: WorkflowTaskConfig;
425
+ OPENAI_EXTRACT_ORDER_REQUEST: WorkflowTaskConfig;
426
+ OPENAI_ANALYZE_TEXT_SENTIMENT: WorkflowTaskConfig;
427
+ OPENAI_SUMMARIZE_TEXT: WorkflowTaskConfig;
428
+ OPENAI_MODERATE_TEXT: WorkflowTaskConfig;
429
+ OPENAI_CATEGORIZE_TEXT: WorkflowTaskConfig;
430
+ BIGCOMMERCE_CREATE_BLOG_POST: WorkflowTaskConfig;
431
+ BIGCOMMERCE_CREATE_CUSTOMER: WorkflowTaskConfig;
432
+ BIGCOMMERCE_UPDATE_CUSTOMER: WorkflowTaskConfig;
433
+ BIGCOMMERCE_CREATE_PRODUCT: WorkflowTaskConfig;
434
+ BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS: WorkflowTaskConfig;
435
+ BIGCOMMERCE_GET_CUSTOMER: WorkflowTaskConfig;
436
+ BIGCOMMERCE_GET_CUSTOMER_ADDRESSES: WorkflowTaskConfig;
437
+ BIGCOMMERCE_GET_PRODUCTS: WorkflowTaskConfig;
438
+ HUBSPOT_CREATE_CONTACT: WorkflowTaskConfig;
439
+ HUBSPOT_UPDATE_CONTACT: WorkflowTaskConfig;
440
+ HUBSPOT_GET_CONTACT: WorkflowTaskConfig;
441
+ SHOPIFY_CREATE_CUSTOMER: WorkflowTaskConfig;
442
+ SHOPIFY_CREATE_ORDER: WorkflowTaskConfig;
443
+ SHOPIFY_CREATE_DRAFT_ORDER: WorkflowTaskConfig;
444
+ SHOPIFY_CREATE_PRODUCT: WorkflowTaskConfig;
445
+ SHOPIFY_CREATE_PRODUCT_VARIANT: WorkflowTaskConfig;
446
+ SHOPIFY_GET_CUSTOMER: WorkflowTaskConfig;
447
+ SHOPIFY_GET_CUSTOMER_ORDERS: WorkflowTaskConfig;
448
+ SHOPIFY_GET_PRODUCT: WorkflowTaskConfig;
449
+ SHOPIFY_GET_PRODUCT_VARIANT: WorkflowTaskConfig;
450
+ SHOPIFY_UPDATE_INVENTORY_QUANTITY: WorkflowTaskConfig;
451
+ SHOPIFY_UPDATE_ORDER: WorkflowTaskConfig;
452
+ SHOPIFY_UPDATE_PRODUCT: WorkflowTaskConfig;
453
+ SHOPIFY_UPDATE_PRODUCT_VARIANT: WorkflowTaskConfig;
454
+ SHOPIFY_UPDATE_CUSTOMER: WorkflowTaskConfig;
455
+ SHOPIFY_GET_CUSTOMER_LAST_ORDER: WorkflowTaskConfig;
456
+ MAILCHIMP_ADD_SUBSCRIBER: WorkflowTaskConfig;
457
+ MAILCHIMP_ADD_CAMPAIGN: WorkflowTaskConfig;
458
+ MAILCHIMP_SEND_CAMPAIGN: WorkflowTaskConfig;
459
+ MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER: WorkflowTaskConfig;
460
+ MAILCHIMP_UPDATE_SUBSCRIBER: WorkflowTaskConfig;
461
+ MAILCHIMP_ARCHIVE_SUBSCRIBER: WorkflowTaskConfig;
462
+ MAILCHIMP_DELETE_SUBSCRIBER: WorkflowTaskConfig;
463
+ MAILCHIMP_ADD_SUBSCRIBER_TAG: WorkflowTaskConfig;
464
+ MAILCHIMP_ADD_SUBSCRIBER_EVENT: WorkflowTaskConfig;
465
+ MAILCHIMP_ADD_SUBSCRIBER_NOTE: WorkflowTaskConfig;
466
+ MAILCHIMP_DELETE_SUBSCRIBER_TAG: WorkflowTaskConfig;
467
+ MAILCHIMP_GET_SUBSCRIBER_TAGS: WorkflowTaskConfig;
468
+ MAILCHIMP_GET_SUBSCRIBER: WorkflowTaskConfig;
469
+ MAILCHIMP_GET_SUBSCRIBERS: WorkflowTaskConfig;
470
+ MAILCHIMP_FIND_CAMPAIGN: WorkflowTaskConfig;
471
+ HELPDESK_CREATE_TICKET: WorkflowTaskConfig;
472
+ HELPDESK_UPDATE_TICKET: WorkflowTaskConfig;
473
+ HELPDESK_ADD_FOLLOWERS_TO_TICKET: WorkflowTaskConfig;
474
+ HELPDESK_ADD_TAGS_TO_TICKET: WorkflowTaskConfig;
475
+ HELPDESK_CREATE_TRANSACTION: WorkflowTaskConfig;
476
+ HELPDESK_FIND_TICKET: WorkflowTaskConfig;
477
+ LIVECHAT_CHAT_TRANSCRIPT: WorkflowTaskConfig;
478
+ LIVECHAT_SEND_MESSAGE: WorkflowTaskConfig;
479
+ LIVECHAT_TRANSFER_CHAT: WorkflowTaskConfig;
480
+ LIVECHAT_TAG_CHAT: WorkflowTaskConfig;
481
+ LIVECHAT_SUPERVISE_CHAT: WorkflowTaskConfig;
482
+ };
483
+ triggers: {
484
+ scheduled: WorkflowItemConfigBase & {
485
+ type: "system";
486
+ specification: {
487
+ input?: JSONSchema7;
488
+ output?: JSONSchema7;
489
+ };
490
+ };
491
+ manual: WorkflowItemConfigBase & {
492
+ type: "system";
493
+ specification: {
494
+ input?: JSONSchema7;
495
+ output?: JSONSchema7;
496
+ };
497
+ };
498
+ "bigcommerce-cart_created": WorkflowItemConfigBase & {
499
+ type: "webhook";
500
+ name: string;
501
+ specification: {
502
+ input?: JSONSchema7;
503
+ output: JSONSchema7;
504
+ };
505
+ };
506
+ "bigcommerce-cart_updated": WorkflowItemConfigBase & {
507
+ type: "webhook";
508
+ name: string;
509
+ specification: {
510
+ input?: JSONSchema7;
511
+ output: JSONSchema7;
512
+ };
513
+ };
514
+ "bigcommerce-order_created": WorkflowItemConfigBase & {
515
+ type: "webhook";
516
+ name: string;
517
+ specification: {
518
+ input?: JSONSchema7;
519
+ output: JSONSchema7;
520
+ };
521
+ };
522
+ "bigcommerce-order_updated": WorkflowItemConfigBase & {
523
+ type: "webhook";
524
+ name: string;
525
+ specification: {
526
+ input?: JSONSchema7;
527
+ output: JSONSchema7;
528
+ };
529
+ };
530
+ "bigcommerce-product_created": WorkflowItemConfigBase & {
531
+ type: "webhook";
532
+ name: string;
533
+ specification: {
534
+ input?: JSONSchema7;
535
+ output: JSONSchema7;
536
+ };
537
+ };
538
+ "bigcommerce-product_updated": WorkflowItemConfigBase & {
539
+ type: "webhook";
540
+ name: string;
541
+ specification: {
542
+ input?: JSONSchema7;
543
+ output: JSONSchema7;
544
+ };
545
+ };
546
+ "slack-channel_new_message_posted": WorkflowItemConfigBase & {
547
+ type: "webhook";
548
+ name: string;
549
+ specification: {
550
+ input?: JSONSchema7;
551
+ output: JSONSchema7;
552
+ };
553
+ };
554
+ "slack-member_new_mention": WorkflowItemConfigBase & {
555
+ type: "webhook";
556
+ name: string;
557
+ specification: {
558
+ input?: JSONSchema7;
559
+ output: JSONSchema7;
560
+ };
561
+ };
562
+ "hubspot-contact_created": WorkflowItemConfigBase & {
563
+ type: "webhook";
564
+ name: string;
565
+ specification: {
566
+ input?: JSONSchema7;
567
+ output: JSONSchema7;
568
+ };
569
+ };
570
+ "hubspot-contact_deleted": WorkflowItemConfigBase & {
571
+ type: "webhook";
572
+ name: string;
573
+ specification: {
574
+ input?: JSONSchema7;
575
+ output: JSONSchema7;
576
+ };
577
+ };
578
+ "shopify-order_created": WorkflowItemConfigBase & {
579
+ type: "webhook";
580
+ name: string;
581
+ specification: {
582
+ input?: JSONSchema7;
583
+ output: JSONSchema7;
584
+ };
585
+ };
586
+ "mailchimp-subscribed": WorkflowItemConfigBase & {
587
+ type: "webhook";
588
+ name: string;
589
+ specification: {
590
+ input?: JSONSchema7;
591
+ output: JSONSchema7;
592
+ };
593
+ };
594
+ "mailchimp-unsubscribed": WorkflowItemConfigBase & {
595
+ type: "webhook";
596
+ name: string;
597
+ specification: {
598
+ input?: JSONSchema7;
599
+ output: JSONSchema7;
600
+ };
601
+ };
602
+ "text-helpdesk-ticket_created": WorkflowItemConfigBase & {
603
+ type: "webhook";
604
+ name: string;
605
+ specification: {
606
+ input?: JSONSchema7;
607
+ output: JSONSchema7;
608
+ };
609
+ };
610
+ "text-helpdesk-ticket_updated": WorkflowItemConfigBase & {
611
+ type: "webhook";
612
+ name: string;
613
+ specification: {
614
+ input?: JSONSchema7;
615
+ output: JSONSchema7;
616
+ };
617
+ };
618
+ "text-helpdesk-ticket_status_changed": WorkflowItemConfigBase & {
619
+ type: "webhook";
620
+ name: string;
621
+ specification: {
622
+ input?: JSONSchema7;
623
+ output: JSONSchema7;
624
+ };
625
+ };
626
+ "text-helpdesk-ticket_priority_changed": WorkflowItemConfigBase & {
627
+ type: "webhook";
628
+ name: string;
629
+ specification: {
630
+ input?: JSONSchema7;
631
+ output: JSONSchema7;
632
+ };
633
+ };
634
+ "text-helpdesk-ticket_tags_added": WorkflowItemConfigBase & {
635
+ type: "webhook";
636
+ name: string;
637
+ specification: {
638
+ input?: JSONSchema7;
639
+ output: JSONSchema7;
640
+ };
641
+ };
642
+ "text-helpdesk-ticket_followers_added": WorkflowItemConfigBase & {
643
+ type: "webhook";
644
+ name: string;
645
+ specification: {
646
+ input?: JSONSchema7;
647
+ output: JSONSchema7;
648
+ };
649
+ };
650
+ "text-helpdesk-ticket_assignment_added": WorkflowItemConfigBase & {
651
+ type: "webhook";
652
+ name: string;
653
+ specification: {
654
+ input?: JSONSchema7;
655
+ output: JSONSchema7;
656
+ };
657
+ };
658
+ "text-helpdesk-ticket_message_added": WorkflowItemConfigBase & {
659
+ type: "webhook";
660
+ name: string;
661
+ specification: {
662
+ input?: JSONSchema7;
663
+ output: JSONSchema7;
664
+ };
665
+ };
666
+ "text-livechat-chat_started": WorkflowItemConfigBase & {
667
+ type: "webhook";
668
+ name: string;
669
+ specification: {
670
+ input?: JSONSchema7;
671
+ output: JSONSchema7;
672
+ };
673
+ };
674
+ "text-livechat-chat_ended": WorkflowItemConfigBase & {
675
+ type: "webhook";
676
+ name: string;
677
+ specification: {
678
+ input?: JSONSchema7;
679
+ output: JSONSchema7;
680
+ };
681
+ };
682
+ "text-livechat-chat_transferred": WorkflowItemConfigBase & {
683
+ type: "webhook";
684
+ name: string;
685
+ specification: {
686
+ input?: JSONSchema7;
687
+ output: JSONSchema7;
688
+ };
689
+ };
690
+ "text-livechat-chat_tagged": WorkflowItemConfigBase & {
691
+ type: "webhook";
692
+ name: string;
693
+ specification: {
694
+ input?: JSONSchema7;
695
+ output: JSONSchema7;
696
+ };
697
+ };
698
+ "text-livechat-chat_rated": WorkflowItemConfigBase & {
699
+ type: "webhook";
700
+ name: string;
701
+ specification: {
702
+ input?: JSONSchema7;
703
+ output: JSONSchema7;
704
+ };
705
+ };
706
+ "text-livechat-chat_commented": WorkflowItemConfigBase & {
707
+ type: "webhook";
708
+ name: string;
709
+ specification: {
710
+ input?: JSONSchema7;
711
+ output: JSONSchema7;
712
+ };
713
+ };
714
+ "text-livechat-chat_message": WorkflowItemConfigBase & {
715
+ type: "webhook";
716
+ name: string;
717
+ specification: {
718
+ input?: JSONSchema7;
719
+ output: JSONSchema7;
720
+ };
721
+ };
722
+ "text-livechat-user_added_to_chat": WorkflowItemConfigBase & {
723
+ type: "webhook";
724
+ name: string;
725
+ specification: {
726
+ input?: JSONSchema7;
727
+ output: JSONSchema7;
728
+ };
729
+ };
730
+ "text-livechat-user_removed_from_chat": WorkflowItemConfigBase & {
731
+ type: "webhook";
732
+ name: string;
733
+ specification: {
734
+ input?: JSONSchema7;
735
+ output: JSONSchema7;
736
+ };
737
+ };
738
+ };
739
+ };
740
+ static get templates(): {
741
+ tasks: {
742
+ livechat: Record<TextLiveChatTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
743
+ helpdesk: Record<TextHelpdeskTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
744
+ mailchimp: Record<MailchimpTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
745
+ hubspot: Record<HubSpotTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
746
+ bigcommerce: Record<BigCommerceTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
747
+ shopify: Record<ShopifyTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
748
+ openai: Record<OpenAiTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
749
+ slack: Record<SlackTaskNames, _livechat_developer_studio_api.WorkflowDefinitionHttpTask>;
750
+ system: {
751
+ HTTP: _livechat_developer_studio_api.WorkflowDefinitionHttpTask;
752
+ SWITCH: _livechat_developer_studio_api.WorkflowDefinitionSwitchTask;
753
+ FORK_JOIN: _livechat_developer_studio_api.WorkflowDefinitionForkJoinTask;
754
+ JOIN: _livechat_developer_studio_api.WorkflowDefinitionJoinTask;
755
+ TERMINATE: _livechat_developer_studio_api.WorkflowDefinitionTerminateTask;
756
+ };
757
+ };
758
+ triggers: {
759
+ livechat: Record<"text-livechat-chat_started" | "text-livechat-chat_ended" | "text-livechat-chat_transferred" | "text-livechat-chat_tagged" | "text-livechat-chat_rated" | "text-livechat-chat_commented" | "text-livechat-chat_message" | "text-livechat-user_added_to_chat" | "text-livechat-user_removed_from_chat", {
760
+ type: "webhook";
761
+ webhook: {
762
+ source: _livechat_developer_studio_api.IntegrationEventProviderName;
763
+ event: _livechat_developer_studio_api.IntegrationEvent;
764
+ headers?: Record<string, string[]>;
765
+ };
766
+ }>;
767
+ helpdesk: Record<"text-helpdesk-ticket_created" | "text-helpdesk-ticket_updated" | "text-helpdesk-ticket_status_changed" | "text-helpdesk-ticket_priority_changed" | "text-helpdesk-ticket_tags_added" | "text-helpdesk-ticket_followers_added" | "text-helpdesk-ticket_assignment_added" | "text-helpdesk-ticket_message_added", {
768
+ type: "webhook";
769
+ webhook: {
770
+ source: _livechat_developer_studio_api.IntegrationEventProviderName;
771
+ event: _livechat_developer_studio_api.IntegrationEvent;
772
+ headers?: Record<string, string[]>;
773
+ };
774
+ }>;
775
+ mailchimp: Record<"mailchimp-subscribed" | "mailchimp-unsubscribed", {
776
+ type?: "webhook" | null | undefined;
777
+ webhook?: {
778
+ source?: _livechat_developer_studio_api.IntegrationNames.Mailchimp | _livechat_developer_studio_api.IntegrationNames.Shopify | _livechat_developer_studio_api.IntegrationNames.HubSpot | _livechat_developer_studio_api.IntegrationNames.BigCommerce | _livechat_developer_studio_api.IntegrationNames.LiveChat | _livechat_developer_studio_api.IntegrationNames.HelpDesk | _livechat_developer_studio_api.IntegrationNames.Slack | null | undefined;
779
+ event?: {
780
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatStarted | null | undefined;
781
+ targetAgentId?: string | null | undefined;
782
+ } | {
783
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatEnded | null | undefined;
784
+ } | {
785
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatTransferred | null | undefined;
786
+ } | {
787
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatTagged | null | undefined;
788
+ exact?: boolean | null | undefined;
789
+ tag?: string | null | undefined;
790
+ } | {
791
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatRated | null | undefined;
792
+ rating?: "all" | "bad" | "good" | null | undefined;
793
+ } | {
794
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatCommented | null | undefined;
795
+ } | {
796
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatMessage | null | undefined;
797
+ filter?: string | null | undefined;
798
+ } | {
799
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.UserAddedToChat | null | undefined;
800
+ userType?: "customer" | "agent" | null | undefined;
801
+ } | {
802
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.UserRemovedFromChat | null | undefined;
803
+ } | {
804
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketCreated | null | undefined;
805
+ } | {
806
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketUpdated | null | undefined;
807
+ } | {
808
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketStatusChanged | null | undefined;
809
+ } | {
810
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketPriorityChanged | null | undefined;
811
+ } | {
812
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketTagsChanged | null | undefined;
813
+ } | {
814
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketFollowersChanged | null | undefined;
815
+ } | {
816
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketAssignmentChanged | null | undefined;
817
+ } | {
818
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketMessageAdded | null | undefined;
819
+ } | {
820
+ name?: _livechat_developer_studio_api.ShopifyEventNames | null | undefined;
821
+ } | {
822
+ name?: _livechat_developer_studio_api.MailchimpEventNames.Subscribed | null | undefined;
823
+ listId?: string | null | undefined;
824
+ } | {
825
+ name?: _livechat_developer_studio_api.MailchimpEventNames.Unsubscribed | null | undefined;
826
+ listId?: string | null | undefined;
827
+ } | {
828
+ name?: _livechat_developer_studio_api.HubspotEventNames.ContactCreated | null | undefined;
829
+ } | {
830
+ name?: _livechat_developer_studio_api.HubspotEventNames.ContactDeleted | null | undefined;
831
+ } | {
832
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.CartCreated | null | undefined;
833
+ } | {
834
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.CartUpdated | null | undefined;
835
+ } | {
836
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.OrderCreated | null | undefined;
837
+ } | {
838
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.OrderUpdated | null | undefined;
839
+ } | {
840
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.ProductCreated | null | undefined;
841
+ } | {
842
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.ProductUpdated | null | undefined;
843
+ } | {
844
+ name?: _livechat_developer_studio_api.SlackEventNames.ChannelNewMessagePosted | null | undefined;
845
+ channelId?: string | null | undefined;
846
+ } | {
847
+ name?: _livechat_developer_studio_api.SlackEventNames.MemberNewMention | null | undefined;
848
+ userId?: string | null | undefined;
849
+ } | null | undefined;
850
+ headers?: {
851
+ [x: string]: (string | null | undefined)[] | null | undefined;
852
+ } | null | undefined;
853
+ } | null | undefined;
854
+ }>;
855
+ shopify: Record<"shopify-order_created", {
856
+ type: "webhook";
857
+ webhook: {
858
+ source: _livechat_developer_studio_api.IntegrationEventProviderName;
859
+ event: _livechat_developer_studio_api.IntegrationEvent;
860
+ headers?: Record<string, string[]>;
861
+ };
862
+ }>;
863
+ hubspot: Record<"hubspot-contact_created" | "hubspot-contact_deleted", {
864
+ type: "webhook";
865
+ webhook: {
866
+ source: _livechat_developer_studio_api.IntegrationEventProviderName;
867
+ event: _livechat_developer_studio_api.IntegrationEvent;
868
+ headers?: Record<string, string[]>;
869
+ };
870
+ }>;
871
+ slack: Record<"slack-channel_new_message_posted" | "slack-member_new_mention", {
872
+ type?: "webhook" | null | undefined;
873
+ webhook?: {
874
+ source?: _livechat_developer_studio_api.IntegrationNames.Mailchimp | _livechat_developer_studio_api.IntegrationNames.Shopify | _livechat_developer_studio_api.IntegrationNames.HubSpot | _livechat_developer_studio_api.IntegrationNames.BigCommerce | _livechat_developer_studio_api.IntegrationNames.LiveChat | _livechat_developer_studio_api.IntegrationNames.HelpDesk | _livechat_developer_studio_api.IntegrationNames.Slack | null | undefined;
875
+ event?: {
876
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatStarted | null | undefined;
877
+ targetAgentId?: string | null | undefined;
878
+ } | {
879
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatEnded | null | undefined;
880
+ } | {
881
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatTransferred | null | undefined;
882
+ } | {
883
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatTagged | null | undefined;
884
+ exact?: boolean | null | undefined;
885
+ tag?: string | null | undefined;
886
+ } | {
887
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatRated | null | undefined;
888
+ rating?: "all" | "bad" | "good" | null | undefined;
889
+ } | {
890
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatCommented | null | undefined;
891
+ } | {
892
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.ChatMessage | null | undefined;
893
+ filter?: string | null | undefined;
894
+ } | {
895
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.UserAddedToChat | null | undefined;
896
+ userType?: "customer" | "agent" | null | undefined;
897
+ } | {
898
+ name?: _livechat_developer_studio_api.TextLivechatEventNames.UserRemovedFromChat | null | undefined;
899
+ } | {
900
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketCreated | null | undefined;
901
+ } | {
902
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketUpdated | null | undefined;
903
+ } | {
904
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketStatusChanged | null | undefined;
905
+ } | {
906
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketPriorityChanged | null | undefined;
907
+ } | {
908
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketTagsChanged | null | undefined;
909
+ } | {
910
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketFollowersChanged | null | undefined;
911
+ } | {
912
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketAssignmentChanged | null | undefined;
913
+ } | {
914
+ name?: _livechat_developer_studio_api.TextHelpDeskEventNames.TicketMessageAdded | null | undefined;
915
+ } | {
916
+ name?: _livechat_developer_studio_api.ShopifyEventNames | null | undefined;
917
+ } | {
918
+ name?: _livechat_developer_studio_api.MailchimpEventNames.Subscribed | null | undefined;
919
+ listId?: string | null | undefined;
920
+ } | {
921
+ name?: _livechat_developer_studio_api.MailchimpEventNames.Unsubscribed | null | undefined;
922
+ listId?: string | null | undefined;
923
+ } | {
924
+ name?: _livechat_developer_studio_api.HubspotEventNames.ContactCreated | null | undefined;
925
+ } | {
926
+ name?: _livechat_developer_studio_api.HubspotEventNames.ContactDeleted | null | undefined;
927
+ } | {
928
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.CartCreated | null | undefined;
929
+ } | {
930
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.CartUpdated | null | undefined;
931
+ } | {
932
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.OrderCreated | null | undefined;
933
+ } | {
934
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.OrderUpdated | null | undefined;
935
+ } | {
936
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.ProductCreated | null | undefined;
937
+ } | {
938
+ name?: _livechat_developer_studio_api.BigCommerceEventNames.ProductUpdated | null | undefined;
939
+ } | {
940
+ name?: _livechat_developer_studio_api.SlackEventNames.ChannelNewMessagePosted | null | undefined;
941
+ channelId?: string | null | undefined;
942
+ } | {
943
+ name?: _livechat_developer_studio_api.SlackEventNames.MemberNewMention | null | undefined;
944
+ userId?: string | null | undefined;
945
+ } | null | undefined;
946
+ headers?: {
947
+ [x: string]: (string | null | undefined)[] | null | undefined;
948
+ } | null | undefined;
949
+ } | null | undefined;
950
+ }>;
951
+ bigcommerce: Record<"bigcommerce-cart_created" | "bigcommerce-cart_updated" | "bigcommerce-order_created" | "bigcommerce-order_updated" | "bigcommerce-product_created" | "bigcommerce-product_updated", {
952
+ type: "webhook";
953
+ webhook: {
954
+ source: _livechat_developer_studio_api.IntegrationEventProviderName;
955
+ event: _livechat_developer_studio_api.IntegrationEvent;
956
+ headers?: Record<string, string[]>;
957
+ };
958
+ }>;
959
+ system: Record<WorkflowSystemTriggers, WorkflowTriggerDto>;
960
+ };
961
+ };
962
+ static getTaskConfig(task: {
963
+ name: string;
964
+ }): WorkflowTaskConfig;
965
+ static getTaskConfigByReference(value: string): WorkflowTaskConfig | undefined;
966
+ static getTriggerConfig(trigger: WorkflowTriggerDto): (WorkflowItemConfigBase & {
967
+ type: "webhook";
968
+ name: string;
969
+ specification: {
970
+ input?: JSONSchema7;
971
+ output: JSONSchema7;
972
+ };
973
+ }) | (WorkflowItemConfigBase & {
974
+ type: "system";
975
+ specification: {
976
+ input?: JSONSchema7;
977
+ output?: JSONSchema7;
978
+ };
979
+ }) | undefined;
980
+ static getTriggerConfigByReference(value: string): WorkflowTriggerConfig | undefined;
981
+ static getItemConfig(item: WorkflowDefinitionTask | WorkflowTriggerDto): WorkflowTaskConfig | (WorkflowItemConfigBase & {
982
+ type: "webhook";
983
+ name: string;
984
+ specification: {
985
+ input?: JSONSchema7;
986
+ output: JSONSchema7;
987
+ };
988
+ }) | (WorkflowItemConfigBase & {
989
+ type: "system";
990
+ specification: {
991
+ input?: JSONSchema7;
992
+ output?: JSONSchema7;
993
+ };
994
+ }) | undefined;
995
+ static getItemConfigByReference(value: string): WorkflowTaskConfig | WorkflowTriggerConfig | undefined;
996
+ }
997
+ declare const WORKFLOW_SCHEMA_DEFS: {
998
+ definitions: () => {
999
+ tasks: JSONSchema7;
1000
+ };
1001
+ $defs: {
1002
+ mailchimp_audience: JSONSchema7Definition;
1003
+ mailchimp_campaign: JSONSchema7Definition;
1004
+ helpdesk_ticket: JSONSchema7Definition;
1005
+ helpdesk_tag: JSONSchema7Definition;
1006
+ helpdesk_agent: JSONSchema7Definition;
1007
+ livechat_chat_id: JSONSchema7Definition;
1008
+ livechat_tag: JSONSchema7Definition;
1009
+ livechat_agent: JSONSchema7Definition;
1010
+ livechat_group: JSONSchema7Definition;
1011
+ slack_channel_id: JSONSchema7Definition;
1012
+ slack_user_id: JSONSchema7Definition;
1013
+ };
1014
+ };
1015
+ declare const WORKFLOW_SCHEMA: () => JSONSchema7;
1016
+
1017
+ declare const NEW_WORKFLOW: {
1018
+ name: string;
1019
+ description: string;
1020
+ draft: boolean;
1021
+ definition: {
1022
+ tasks: never[];
1023
+ inputParameters: never[];
1024
+ outputParameters: {};
1025
+ schemaVersion: number;
1026
+ restartable: boolean;
1027
+ workflowStatusListenerEnabled: boolean;
1028
+ timeoutPolicy: string;
1029
+ timeoutSeconds: number;
1030
+ ownerEmail: string;
1031
+ };
1032
+ trigger: {};
1033
+ version: number;
1034
+ };
1035
+ declare const getWorkflowTemplates: () => WorkflowTemplate[];
1036
+
1037
+ export { BigCommerceTaskNames, BigCommerceTriggerNames, HubSpotTaskNames, HubSpotTriggerNames, MailchimpTaskNames, MailchimpTriggerNames, NEW_WORKFLOW, OTHER_TYPES, OpenAiTaskNames, ShopifyTaskNames, ShopifyTriggerNames, SlackTaskNames, SlackTriggerNames, TextHelpDeskTriggerNames, TextHelpdeskTaskNames, TextLiveChatTaskNames, TextLiveChatTriggerNames, WORKFLOW_FORK_TASK_SCHEMA, WORKFLOW_HTTP_TASK_INPUT_SCHEMA, WORKFLOW_HTTP_TASK_OUTPUT_SCHEMA, WORKFLOW_HTTP_TASK_SCHEMA, WORKFLOW_JOIN_TASK_SCHEMA, WORKFLOW_SCHEMA, WORKFLOW_SCHEMA_DEFS, WORKFLOW_SWITCH_TASK_SCHEMA, WORKFLOW_TERMINATE_TASK_SCHEMA, WORKFLOW_TRIGGER_OUTPUT_SCHEMA, type WorkflowItemConfig, type WorkflowItemConfigBase, type WorkflowItemCustomization, WorkflowSpecification, WorkflowSystemTriggers, type WorkflowTaskConfig, type WorkflowTriggerConfig, WorkflowsIframeMessages, bigCommerceTaskConfigs, bigCommerceTaskTemplates, bigcommerceTriggerConfigs, bigcommerceTriggerTemplates, getWorkflowTemplates, helpDeskTriggerConfigs, helpdeskTaskConfigs, helpdeskTaskTemplates, helpdeskTriggerTemplates, hubSpotTriggerTemplates, hubspotTaskConfigs, hubspotTaskTemplates, hubspotTriggerConfigs, isJSONSchema7, livechatTaskConfigs, livechatTaskTemplates, livechatTriggerConfigs, livechatTriggerTemplates, mailchimpTaskConfigs, mailchimpTaskTemplates, mailchimpTriggerConfigs, mailchimpTriggerTemplates, openAiTaskConfigs, openAiTaskTemplates, shopifyTaskConfigs, shopifyTaskTemplates, shopifyTriggerConfigs, shopifyTriggerTemplates, slackTaskConfigs, slackTaskTemplates, slackTriggerConfigs, slackTriggerTemplates, systemTaskConfigs, systemTaskTemplates, systemTriggerConfigs, systemTriggerTemplates, workflowHttpTask };