@livechat/platform-workflows 0.1.7 → 0.44.0-beta.v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-6ZQIQVNX.mjs +33594 -0
- package/dist/chunk-OAUPCV3P.mjs +19 -0
- package/dist/config.d.mts +0 -4
- package/dist/config.d.ts +0 -4
- package/dist/config.js +6 -17
- package/dist/config.mjs +1 -2
- package/dist/constants.d.mts +921 -993
- package/dist/constants.d.ts +921 -993
- package/dist/constants.js +31411 -9497
- package/dist/constants.mjs +393 -10773
- package/dist/domain.d.mts +298 -0
- package/dist/domain.d.ts +298 -0
- package/dist/domain.js +35232 -0
- package/dist/domain.mjs +2975 -0
- package/dist/index.css +64 -73
- package/dist/index.d.mts +817 -21
- package/dist/index.d.ts +817 -21
- package/dist/index.js +56780 -21544
- package/dist/index.mjs +58180 -22037
- package/dist/tests.d.mts +140 -10
- package/dist/tests.d.ts +140 -10
- package/dist/tests.js +147 -17
- package/dist/tests.mjs +147 -19
- package/dist/types-BSdHiBvO.d.mts +440 -0
- package/dist/types-BSdHiBvO.d.ts +440 -0
- package/package.json +38 -30
- package/dist/chunk-BW4GCPXP.mjs +0 -20
- package/dist/chunk-EACC5D4G.mjs +0 -113
- package/dist/chunk-I4E63NIC.mjs +0 -24
- package/dist/chunk-OHDSKF3P.mjs +0 -193
- package/dist/chunk-PWFJOGII.mjs +0 -83
- package/dist/chunk-UQO6HYDU.mjs +0 -84
- package/dist/chunk-V3FK4SUN.mjs +0 -1606
- package/dist/chunk-WFVTCU6F.mjs +0 -24
- package/dist/chunk-WNNR3KXF.mjs +0 -1607
- package/dist/chunk-WS4FFM4M.mjs +0 -111
- package/dist/chunk-XIPVJOPR.mjs +0 -1621
- package/dist/chunk-YS3C7NY2.mjs +0 -1623
- package/dist/index-B3GBo8sA.d.mts +0 -98
- package/dist/index-B3GBo8sA.d.ts +0 -98
package/dist/constants.d.ts
CHANGED
|
@@ -1,1037 +1,965 @@
|
|
|
1
1
|
import * as _livechat_developer_studio_api from '@livechat/developer-studio-api';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { IntegrationNames, WorkflowHttpTaskCore, WorkflowHttpRequest, WorkflowItemKind, WorkflowDto } from '@livechat/developer-studio-api';
|
|
3
|
+
import { W as WorkflowDomainConfig, a as WorkflowDomain, P as ProviderConfig, D as DeclarativeWorkflowTaskTemplate, b as WorkflowTaskTemplate, c as WorkflowTaskConfig, d as WorkflowReferenceDefinition, e as WorkflowResourceDefinition, C as CredentialConfig, f as WorkflowItemSpecificationRef, g as WorkflowItemConfig, h as WorkflowItemTemplate, i as WorkflowItemSpecification, j as WorkflowItemMetadata, k as WorkflowItemCustomization, l as WorkflowItemSpecifications, m as WorkflowTriggerConfig, n as WorkflowTriggerTemplate, L as LightSpecification, S as Specification } from './types-BSdHiBvO.js';
|
|
4
|
+
export { o as Configuration, p as CredentialAuthenticate, q as CredentialField, r as CredentialGenericAuthType, s as CredentialKind, t as CredentialTemplate, u as CredentialTest, v as LightConfiguration, w as LightProviderConfiguration, x as ProviderConfiguration, y as ProviderProductConfig, z as WorkflowItemBaseMetadata, A as WorkflowItemConfigBase, B as WorkflowItemFlags, E as WorkflowItemInputBinding, F as WorkflowItemTag, G as WorkflowItemTemplateBase, H as WorkflowOperation, I as WorkflowRefClass, J as WorkflowReferenceKind, K as WorkflowReferenceMatchingStrategy, M as WorkflowSubject, N as WorkflowTaskCoreMap, O as WorkflowTaskDefinitionMap, Q as WorkflowTriggerCoreMap, R as WorkflowsTriggerDefinitionMap } from './types-BSdHiBvO.js';
|
|
5
|
+
import { JSONSchema7 } from 'json-schema';
|
|
6
|
+
import '@rjsf/utils';
|
|
5
7
|
|
|
6
|
-
declare
|
|
8
|
+
declare const RECORDS_PER_PAGE = 25;
|
|
9
|
+
declare const DEFAULT_PAGE = 1;
|
|
10
|
+
|
|
11
|
+
declare const TEXTAPP_PRODUCT_NAME = "TextApp";
|
|
12
|
+
declare enum TextProductDomains {
|
|
13
|
+
Chats = "Chats",
|
|
14
|
+
Tickets = "Tickets"
|
|
15
|
+
}
|
|
16
|
+
type IntegrationKey = keyof typeof IntegrationNames;
|
|
17
|
+
declare const IntegrationNamesToTextProductDomains: Record<IntegrationNames.LiveChat | IntegrationNames.HelpDesk, TextProductDomains>;
|
|
18
|
+
|
|
19
|
+
declare enum WorkflowsOutcomingMessages {
|
|
7
20
|
OpenSideNav = "openSideNav",
|
|
8
21
|
CloseSideNav = "closeSideNav",
|
|
9
|
-
ToggleSideNav = "toggleSideNav"
|
|
22
|
+
ToggleSideNav = "toggleSideNav",
|
|
23
|
+
Back = "router:back"
|
|
10
24
|
}
|
|
11
25
|
|
|
12
26
|
declare const OTHER_TYPES: {
|
|
13
|
-
SYSTEM:
|
|
14
|
-
SCHEDULED:
|
|
15
|
-
MANUAL:
|
|
27
|
+
readonly SYSTEM: "system";
|
|
28
|
+
readonly SCHEDULED: "scheduled";
|
|
29
|
+
readonly MANUAL: "manual";
|
|
30
|
+
readonly WEBHOOK: "webhook";
|
|
16
31
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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";
|
|
32
|
+
declare const OTHER_TYPES_DISPLAY: {
|
|
33
|
+
readonly SYSTEM: "Built-in";
|
|
34
|
+
readonly SYSTEM_TRIGGERS: "Built-in triggers";
|
|
35
|
+
readonly SYSTEM_TASKS: "Built-in actions";
|
|
82
36
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
declare const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
};
|
|
37
|
+
|
|
38
|
+
declare const workflowDomainConfigs: Record<string, WorkflowDomainConfig>;
|
|
39
|
+
|
|
40
|
+
declare const isWorkflowDomain: (domain: string) => domain is WorkflowDomain;
|
|
41
|
+
|
|
42
|
+
declare function buildDeclarativeElementFromTemplate(providerConfig: ProviderConfig, task: DeclarativeWorkflowTaskTemplate): {
|
|
43
|
+
template: WorkflowTaskTemplate<WorkflowHttpTaskCore>;
|
|
44
|
+
config: WorkflowTaskConfig;
|
|
141
45
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Resolves {{$self.*}} placeholders in a declarative HTTP task's request.
|
|
49
|
+
*
|
|
50
|
+
* Path parameters in the URI use {{$self.query_params.fieldName}} syntax.
|
|
51
|
+
* This function resolves those placeholders using the task's own http_request
|
|
52
|
+
* data, similar to how credential interpolation resolves {{$self.*}} in
|
|
53
|
+
* credentials/utils/converter/interpolate.ts.
|
|
54
|
+
*
|
|
55
|
+
* Credential-level placeholders (e.g., {{instance_url}}) are left unresolved
|
|
56
|
+
* for backend resolution, thanks to the noFallback option.
|
|
57
|
+
*/
|
|
58
|
+
declare function resolveDeclarativeTaskSelf<T extends Partial<WorkflowHttpRequest>>(httpRequest: T): T;
|
|
59
|
+
|
|
60
|
+
declare const GENERAL_REFERENCE_NAMES: {
|
|
61
|
+
readonly Email: "email";
|
|
182
62
|
};
|
|
183
|
-
declare const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
$ref: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
63
|
+
declare const GENERAL_REFERENCES: Record<(typeof GENERAL_REFERENCE_NAMES)[keyof typeof GENERAL_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* JSON-serializable subset of WorkflowReferenceDefinition.
|
|
67
|
+
* Omits `class` (always Reference) and `domain` (always null for declarative).
|
|
68
|
+
*/
|
|
69
|
+
type DeclarativeReferenceDefinition = Omit<WorkflowReferenceDefinition, 'class' | 'domain'> & {
|
|
70
|
+
product?: string;
|
|
71
|
+
configs?: {
|
|
72
|
+
dependencies?: Record<string, JSONSchema7>;
|
|
196
73
|
};
|
|
197
74
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
type: string;
|
|
208
|
-
title: string;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
};
|
|
75
|
+
|
|
76
|
+
declare function buildReferenceFromTemplate(template: DeclarativeReferenceDefinition): WorkflowReferenceDefinition;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* JSON-serializable subset of WorkflowResourceDefinition.
|
|
80
|
+
* Omits `class` (always Resource).
|
|
81
|
+
*/
|
|
82
|
+
type DeclarativeResourceDefinition = Omit<WorkflowResourceDefinition, 'class'> & {
|
|
83
|
+
product?: string;
|
|
212
84
|
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
};
|
|
85
|
+
|
|
86
|
+
declare function buildResourceFromTemplate(template: DeclarativeResourceDefinition): WorkflowResourceDefinition;
|
|
87
|
+
|
|
88
|
+
declare function getCredentialConfigs(): Record<string, CredentialConfig>;
|
|
89
|
+
|
|
90
|
+
type SchemaRefsMap = {
|
|
91
|
+
references: Record<string, WorkflowItemSpecificationRef<string>[]>;
|
|
92
|
+
resources: Record<string, WorkflowItemSpecificationRef<string>[]>;
|
|
238
93
|
};
|
|
94
|
+
declare const rawItemTemplates: Record<string, WorkflowItemTemplate>;
|
|
95
|
+
declare const rawItemConfigs: Record<string, WorkflowItemConfig>;
|
|
96
|
+
declare function getItemTemplates(): Record<string, WorkflowItemTemplate>;
|
|
97
|
+
declare function getItemConfigs(): Record<string, WorkflowItemConfig>;
|
|
98
|
+
declare function collectSchemaRefs(schema: JSONSchema7, shallowRefs: boolean): SchemaRefsMap;
|
|
99
|
+
declare function getWorkflowSpecificationItemByReference(value: string): {
|
|
100
|
+
specification: (WorkflowItemSpecification & {
|
|
101
|
+
metadata: WorkflowItemMetadata;
|
|
102
|
+
template: _livechat_developer_studio_api.WorkflowHttpTask | _livechat_developer_studio_api.WorkflowForkJoinTask | _livechat_developer_studio_api.WorkflowJoinTask | _livechat_developer_studio_api.WorkflowSwitchTask | _livechat_developer_studio_api.WorkflowDoWhileTask | _livechat_developer_studio_api.WorkflowTerminateTask | _livechat_developer_studio_api.WorkflowWaitTask | _livechat_developer_studio_api.WorkflowInlineBaseTask | _livechat_developer_studio_api.WorkflowScriptTask | _livechat_developer_studio_api.WorkflowConvertTask | _livechat_developer_studio_api.WorkflowConstructTask | _livechat_developer_studio_api.WorkflowSimpleTask;
|
|
103
|
+
}) | (WorkflowItemSpecification & {
|
|
104
|
+
metadata: WorkflowItemMetadata;
|
|
105
|
+
template: _livechat_developer_studio_api.WorkflowWebhookTrigger | _livechat_developer_studio_api.WorkflowWebhookManualTrigger | _livechat_developer_studio_api.WorkflowManualTrigger | _livechat_developer_studio_api.WorkflowAgentTrigger | _livechat_developer_studio_api.WorkflowRecurringTrigger | _livechat_developer_studio_api.WorkflowOneTimeTrigger;
|
|
106
|
+
});
|
|
107
|
+
kind: typeof WorkflowItemKind.Task;
|
|
108
|
+
key: string;
|
|
109
|
+
customization: WorkflowItemCustomization;
|
|
110
|
+
specifications: WorkflowItemSpecifications<_livechat_developer_studio_api.WorkflowHttpTask | _livechat_developer_studio_api.WorkflowForkJoinTask | _livechat_developer_studio_api.WorkflowJoinTask | _livechat_developer_studio_api.WorkflowSwitchTask | _livechat_developer_studio_api.WorkflowDoWhileTask | _livechat_developer_studio_api.WorkflowTerminateTask | _livechat_developer_studio_api.WorkflowWaitTask | _livechat_developer_studio_api.WorkflowInlineBaseTask | _livechat_developer_studio_api.WorkflowScriptTask | _livechat_developer_studio_api.WorkflowConvertTask | _livechat_developer_studio_api.WorkflowConstructTask | _livechat_developer_studio_api.WorkflowSimpleTask>;
|
|
111
|
+
} | {
|
|
112
|
+
specification: WorkflowItemSpecification;
|
|
113
|
+
kind: typeof WorkflowItemKind.Trigger;
|
|
114
|
+
key: string;
|
|
115
|
+
customization: WorkflowItemCustomization;
|
|
116
|
+
specifications: WorkflowItemSpecifications<_livechat_developer_studio_api.WorkflowWebhookTrigger | _livechat_developer_studio_api.WorkflowWebhookManualTrigger | _livechat_developer_studio_api.WorkflowManualTrigger | _livechat_developer_studio_api.WorkflowAgentTrigger | _livechat_developer_studio_api.WorkflowRecurringTrigger | _livechat_developer_studio_api.WorkflowOneTimeTrigger>;
|
|
117
|
+
} | undefined;
|
|
239
118
|
|
|
240
|
-
declare
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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";
|
|
119
|
+
declare const rawProviderConfigs: Record<string, ProviderConfig>;
|
|
120
|
+
declare function getProviderConfigs(): Record<string, ProviderConfig>;
|
|
121
|
+
|
|
122
|
+
declare const workflowResources: {
|
|
123
|
+
text_customer: WorkflowResourceDefinition;
|
|
124
|
+
helpdesk_ticket: WorkflowResourceDefinition;
|
|
125
|
+
livechat_chat: WorkflowResourceDefinition;
|
|
126
|
+
livechat_chat_v1: WorkflowResourceDefinition;
|
|
259
127
|
};
|
|
260
|
-
declare const
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
128
|
+
declare const workflowReferences: {
|
|
129
|
+
klaviyo_list: WorkflowReferenceDefinition;
|
|
130
|
+
"text_shopify-account": WorkflowReferenceDefinition;
|
|
131
|
+
text_organization: WorkflowReferenceDefinition;
|
|
132
|
+
"text_customer-property": WorkflowReferenceDefinition;
|
|
133
|
+
"text_external-account": WorkflowReferenceDefinition;
|
|
134
|
+
hubspot_contactId: WorkflowReferenceDefinition;
|
|
135
|
+
slack_channel_id: WorkflowReferenceDefinition;
|
|
136
|
+
slack_user_id: WorkflowReferenceDefinition;
|
|
137
|
+
slack_message_timestamp: WorkflowReferenceDefinition;
|
|
138
|
+
slack_reaction: WorkflowReferenceDefinition;
|
|
139
|
+
salesforce_account: WorkflowReferenceDefinition;
|
|
140
|
+
salesforce_account_type: WorkflowReferenceDefinition;
|
|
141
|
+
salesforce_account_industry: WorkflowReferenceDefinition;
|
|
142
|
+
salesforce_account_billing_country_code: WorkflowReferenceDefinition;
|
|
143
|
+
salesforce_account_billing_state_code: WorkflowReferenceDefinition;
|
|
144
|
+
salesforce_account_custom_fields: WorkflowReferenceDefinition;
|
|
145
|
+
salesforce_contact_id: WorkflowReferenceDefinition;
|
|
146
|
+
salesforce_contact_custom_fields: WorkflowReferenceDefinition;
|
|
147
|
+
salesforce_case_id: WorkflowReferenceDefinition;
|
|
148
|
+
salesforce_case_status: WorkflowReferenceDefinition;
|
|
149
|
+
salesforce_case_priority: WorkflowReferenceDefinition;
|
|
150
|
+
salesforce_case_origin: WorkflowReferenceDefinition;
|
|
151
|
+
salesforce_case_custom_fields: WorkflowReferenceDefinition;
|
|
152
|
+
salesforce_lead: WorkflowReferenceDefinition;
|
|
153
|
+
salesforce_lead_status: WorkflowReferenceDefinition;
|
|
154
|
+
salesforce_lead_source: WorkflowReferenceDefinition;
|
|
155
|
+
salesforce_lead_custom_fields: WorkflowReferenceDefinition;
|
|
156
|
+
mailchimp_audience: WorkflowReferenceDefinition;
|
|
157
|
+
mailchimp_campaign: WorkflowReferenceDefinition;
|
|
158
|
+
helpdesk_ticket: WorkflowReferenceDefinition;
|
|
159
|
+
helpdesk_tag: WorkflowReferenceDefinition;
|
|
160
|
+
helpdesk_agent: WorkflowReferenceDefinition;
|
|
161
|
+
helpdesk_team: WorkflowReferenceDefinition;
|
|
162
|
+
helpdesk_custom_field: WorkflowReferenceDefinition;
|
|
163
|
+
helpdesk_mailbox: WorkflowReferenceDefinition;
|
|
164
|
+
helpdesk_status: WorkflowReferenceDefinition;
|
|
165
|
+
helpdesk_priority: WorkflowReferenceDefinition;
|
|
166
|
+
helpdesk_canned_response: WorkflowReferenceDefinition;
|
|
167
|
+
livechat_chat: WorkflowReferenceDefinition;
|
|
168
|
+
livechat_thread: WorkflowReferenceDefinition;
|
|
169
|
+
livechat_customer: WorkflowReferenceDefinition;
|
|
170
|
+
livechat_tag: WorkflowReferenceDefinition;
|
|
171
|
+
livechat_agent: WorkflowReferenceDefinition;
|
|
172
|
+
livechat_group: WorkflowReferenceDefinition;
|
|
173
|
+
livechat_credential_resolver: WorkflowReferenceDefinition;
|
|
174
|
+
email: WorkflowReferenceDefinition;
|
|
277
175
|
};
|
|
278
|
-
declare
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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";
|
|
176
|
+
declare function getResourceConfigs(): {
|
|
177
|
+
text_customer: WorkflowResourceDefinition;
|
|
178
|
+
helpdesk_ticket: WorkflowResourceDefinition;
|
|
179
|
+
livechat_chat: WorkflowResourceDefinition;
|
|
180
|
+
livechat_chat_v1: WorkflowResourceDefinition;
|
|
304
181
|
};
|
|
305
|
-
declare
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
182
|
+
declare function getReferenceConfigs(): {
|
|
183
|
+
klaviyo_list: WorkflowReferenceDefinition;
|
|
184
|
+
"text_shopify-account": WorkflowReferenceDefinition;
|
|
185
|
+
text_organization: WorkflowReferenceDefinition;
|
|
186
|
+
"text_customer-property": WorkflowReferenceDefinition;
|
|
187
|
+
"text_external-account": WorkflowReferenceDefinition;
|
|
188
|
+
hubspot_contactId: WorkflowReferenceDefinition;
|
|
189
|
+
slack_channel_id: WorkflowReferenceDefinition;
|
|
190
|
+
slack_user_id: WorkflowReferenceDefinition;
|
|
191
|
+
slack_message_timestamp: WorkflowReferenceDefinition;
|
|
192
|
+
slack_reaction: WorkflowReferenceDefinition;
|
|
193
|
+
salesforce_account: WorkflowReferenceDefinition;
|
|
194
|
+
salesforce_account_type: WorkflowReferenceDefinition;
|
|
195
|
+
salesforce_account_industry: WorkflowReferenceDefinition;
|
|
196
|
+
salesforce_account_billing_country_code: WorkflowReferenceDefinition;
|
|
197
|
+
salesforce_account_billing_state_code: WorkflowReferenceDefinition;
|
|
198
|
+
salesforce_account_custom_fields: WorkflowReferenceDefinition;
|
|
199
|
+
salesforce_contact_id: WorkflowReferenceDefinition;
|
|
200
|
+
salesforce_contact_custom_fields: WorkflowReferenceDefinition;
|
|
201
|
+
salesforce_case_id: WorkflowReferenceDefinition;
|
|
202
|
+
salesforce_case_status: WorkflowReferenceDefinition;
|
|
203
|
+
salesforce_case_priority: WorkflowReferenceDefinition;
|
|
204
|
+
salesforce_case_origin: WorkflowReferenceDefinition;
|
|
205
|
+
salesforce_case_custom_fields: WorkflowReferenceDefinition;
|
|
206
|
+
salesforce_lead: WorkflowReferenceDefinition;
|
|
207
|
+
salesforce_lead_status: WorkflowReferenceDefinition;
|
|
208
|
+
salesforce_lead_source: WorkflowReferenceDefinition;
|
|
209
|
+
salesforce_lead_custom_fields: WorkflowReferenceDefinition;
|
|
210
|
+
mailchimp_audience: WorkflowReferenceDefinition;
|
|
211
|
+
mailchimp_campaign: WorkflowReferenceDefinition;
|
|
212
|
+
helpdesk_ticket: WorkflowReferenceDefinition;
|
|
213
|
+
helpdesk_tag: WorkflowReferenceDefinition;
|
|
214
|
+
helpdesk_agent: WorkflowReferenceDefinition;
|
|
215
|
+
helpdesk_team: WorkflowReferenceDefinition;
|
|
216
|
+
helpdesk_custom_field: WorkflowReferenceDefinition;
|
|
217
|
+
helpdesk_mailbox: WorkflowReferenceDefinition;
|
|
218
|
+
helpdesk_status: WorkflowReferenceDefinition;
|
|
219
|
+
helpdesk_priority: WorkflowReferenceDefinition;
|
|
220
|
+
helpdesk_canned_response: WorkflowReferenceDefinition;
|
|
221
|
+
livechat_chat: WorkflowReferenceDefinition;
|
|
222
|
+
livechat_thread: WorkflowReferenceDefinition;
|
|
223
|
+
livechat_customer: WorkflowReferenceDefinition;
|
|
224
|
+
livechat_tag: WorkflowReferenceDefinition;
|
|
225
|
+
livechat_agent: WorkflowReferenceDefinition;
|
|
226
|
+
livechat_group: WorkflowReferenceDefinition;
|
|
227
|
+
livechat_credential_resolver: WorkflowReferenceDefinition;
|
|
228
|
+
email: WorkflowReferenceDefinition;
|
|
334
229
|
};
|
|
335
|
-
declare
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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";
|
|
230
|
+
declare function getWorkflowReferenceDefinitionByName(name: string): WorkflowReferenceDefinition;
|
|
231
|
+
declare function buildReferencePickerOneOf(options?: {
|
|
232
|
+
includeNone?: boolean;
|
|
233
|
+
enumerableOnly?: boolean;
|
|
234
|
+
}): JSONSchema7[];
|
|
235
|
+
|
|
236
|
+
declare const BIGCOMMERCE_TASK_NAMES: {
|
|
237
|
+
CreateBlogPost: "BIGCOMMERCE_CREATE_BLOG_POST";
|
|
238
|
+
CreateCustomer: "BIGCOMMERCE_CREATE_CUSTOMER";
|
|
239
|
+
UpdateCustomer: "BIGCOMMERCE_UPDATE_CUSTOMER";
|
|
240
|
+
CreateProduct: "BIGCOMMERCE_CREATE_PRODUCT";
|
|
241
|
+
CreateCustomerAddress: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS";
|
|
242
|
+
GetCustomer: "BIGCOMMERCE_GET_CUSTOMER";
|
|
243
|
+
GetCustomerAddresses: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES";
|
|
244
|
+
GetProducts: "BIGCOMMERCE_GET_PRODUCTS";
|
|
373
245
|
};
|
|
374
|
-
declare const
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
declare const SlackTriggerNames: {
|
|
382
|
-
readonly ChannelNewMessagePosted: "slack-channel_new_message_posted";
|
|
383
|
-
readonly MemberNewMention: "slack-member_new_mention";
|
|
246
|
+
declare const BIGCOMMERCE_TRIGGER_NAMES: {
|
|
247
|
+
CartCreated: "bigcommerce-cart_created";
|
|
248
|
+
CartUpdated: "bigcommerce-cart_updated";
|
|
249
|
+
OrderCreated: "bigcommerce-order_created";
|
|
250
|
+
OrderUpdated: "bigcommerce-order_updated";
|
|
251
|
+
ProductCreated: "bigcommerce-product_created";
|
|
252
|
+
ProductUpdated: "bigcommerce-product_updated";
|
|
384
253
|
};
|
|
385
|
-
declare
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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;
|
|
254
|
+
declare const BIGCOMMERCE_SUBJECTS: {
|
|
255
|
+
readonly BlogPost: "bigcommerce:blog-post";
|
|
256
|
+
readonly Customer: "bigcommerce:customer";
|
|
257
|
+
readonly CustomerAddress: "bigcommerce:customer:address";
|
|
258
|
+
readonly Product: "bigcommerce:product";
|
|
259
|
+
readonly Cart: "bigcommerce:cart";
|
|
260
|
+
readonly Order: "bigcommerce:order";
|
|
406
261
|
};
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
declare const
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
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;
|
|
262
|
+
|
|
263
|
+
declare const bigCommerceBlogPostBody: JSONSchema7;
|
|
264
|
+
declare const bigCommerceProductBody: JSONSchema7;
|
|
265
|
+
declare const bigCommerceCustomerBody: JSONSchema7;
|
|
266
|
+
declare const bigCommerceCustomerAddressBody: {
|
|
267
|
+
readonly customer_id: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly title: "Customer ID";
|
|
270
|
+
};
|
|
271
|
+
readonly first_name: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly title: "First name";
|
|
274
|
+
};
|
|
275
|
+
readonly last_name: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly title: "Last name";
|
|
278
|
+
};
|
|
279
|
+
readonly company: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly title: "Company";
|
|
282
|
+
};
|
|
283
|
+
readonly phone: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly title: "Phone";
|
|
286
|
+
};
|
|
287
|
+
readonly email: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly title: "Email";
|
|
290
|
+
};
|
|
291
|
+
readonly address1: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly title: "Address 1";
|
|
294
|
+
};
|
|
295
|
+
readonly address2: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly title: "Address 2";
|
|
298
|
+
};
|
|
299
|
+
readonly city: {
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
readonly title: "City";
|
|
302
|
+
};
|
|
303
|
+
readonly state_or_province: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly title: "State or province";
|
|
306
|
+
};
|
|
307
|
+
readonly postal_code: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly title: "Postal code";
|
|
310
|
+
};
|
|
311
|
+
readonly country_code: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly title: "Country code";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
declare const bigCommerceCustomerResponse: {
|
|
317
|
+
readonly id: {
|
|
318
|
+
readonly type: "number";
|
|
319
|
+
readonly title: "Customer ID";
|
|
320
|
+
};
|
|
321
|
+
readonly company: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly title: "Company";
|
|
324
|
+
};
|
|
325
|
+
readonly first_name: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly title: "First name";
|
|
328
|
+
};
|
|
329
|
+
readonly last_name: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly title: "Last name";
|
|
332
|
+
};
|
|
333
|
+
readonly email: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly title: "Email";
|
|
336
|
+
};
|
|
337
|
+
readonly phone: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly title: "Phone";
|
|
340
|
+
};
|
|
341
|
+
readonly notes: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly title: "Notes";
|
|
344
|
+
};
|
|
345
|
+
readonly date_created: {
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
readonly title: "Date created";
|
|
348
|
+
};
|
|
349
|
+
readonly date_modified: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly title: "Date modified";
|
|
352
|
+
};
|
|
353
|
+
readonly store_credit: {
|
|
354
|
+
readonly type: "number";
|
|
355
|
+
readonly title: "Store credit";
|
|
356
|
+
};
|
|
357
|
+
readonly registration_ip_address: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly title: "Registration IP address";
|
|
360
|
+
};
|
|
361
|
+
readonly tax_exempt_category: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly title: "Tax exempt category";
|
|
364
|
+
};
|
|
365
|
+
readonly customer_group_id: {
|
|
366
|
+
readonly type: "number";
|
|
367
|
+
readonly title: "Customer group ID";
|
|
368
|
+
};
|
|
369
|
+
readonly addresses: {
|
|
370
|
+
readonly type: "array";
|
|
371
|
+
readonly title: "Addresses";
|
|
372
|
+
readonly items: {
|
|
373
|
+
readonly type: "object";
|
|
374
|
+
readonly properties: {
|
|
375
|
+
readonly id: {
|
|
376
|
+
readonly type: "number";
|
|
377
|
+
readonly title: "Address ID";
|
|
648
378
|
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
name: string;
|
|
653
|
-
specification: {
|
|
654
|
-
input?: JSONSchema7;
|
|
655
|
-
output: JSONSchema7;
|
|
379
|
+
readonly first_name: {
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly title: "First name";
|
|
656
382
|
};
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
name: string;
|
|
661
|
-
specification: {
|
|
662
|
-
input?: JSONSchema7;
|
|
663
|
-
output: JSONSchema7;
|
|
383
|
+
readonly last_name: {
|
|
384
|
+
readonly type: "string";
|
|
385
|
+
readonly title: "Last name";
|
|
664
386
|
};
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
name: string;
|
|
669
|
-
specification: {
|
|
670
|
-
input?: JSONSchema7;
|
|
671
|
-
output: JSONSchema7;
|
|
387
|
+
readonly company: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly title: "Company";
|
|
672
390
|
};
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
name: string;
|
|
677
|
-
specification: {
|
|
678
|
-
input?: JSONSchema7;
|
|
679
|
-
output: JSONSchema7;
|
|
391
|
+
readonly phone: {
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly title: "Phone";
|
|
680
394
|
};
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
name: string;
|
|
685
|
-
specification: {
|
|
686
|
-
input?: JSONSchema7;
|
|
687
|
-
output: JSONSchema7;
|
|
395
|
+
readonly email: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly title: "Email";
|
|
688
398
|
};
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
name: string;
|
|
693
|
-
specification: {
|
|
694
|
-
input?: JSONSchema7;
|
|
695
|
-
output: JSONSchema7;
|
|
399
|
+
readonly address1: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
readonly title: "Address 1";
|
|
696
402
|
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
name: string;
|
|
701
|
-
specification: {
|
|
702
|
-
input?: JSONSchema7;
|
|
703
|
-
output: JSONSchema7;
|
|
403
|
+
readonly address2: {
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
readonly title: "Address 2";
|
|
704
406
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
name: string;
|
|
709
|
-
specification: {
|
|
710
|
-
input?: JSONSchema7;
|
|
711
|
-
output: JSONSchema7;
|
|
407
|
+
readonly city: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
readonly title: "City";
|
|
712
410
|
};
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
name: string;
|
|
717
|
-
specification: {
|
|
718
|
-
input?: JSONSchema7;
|
|
719
|
-
output: JSONSchema7;
|
|
411
|
+
readonly state_or_province: {
|
|
412
|
+
readonly type: "string";
|
|
413
|
+
readonly title: "State or province";
|
|
720
414
|
};
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
name: string;
|
|
725
|
-
specification: {
|
|
726
|
-
input?: JSONSchema7;
|
|
727
|
-
output: JSONSchema7;
|
|
415
|
+
readonly postal_code: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly title: "Postal code";
|
|
728
418
|
};
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
name: string;
|
|
733
|
-
specification: {
|
|
734
|
-
input?: JSONSchema7;
|
|
735
|
-
output: JSONSchema7;
|
|
419
|
+
readonly country_code: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly title: "Country code";
|
|
736
422
|
};
|
|
737
423
|
};
|
|
738
424
|
};
|
|
739
425
|
};
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
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
|
-
};
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
declare const BIGCOMMERCE_PROVIDER: ProviderConfig;
|
|
429
|
+
|
|
430
|
+
declare const BIGCOMMERCE_TASK_TEMPLATES: Record<(typeof BIGCOMMERCE_TASK_NAMES)[keyof typeof BIGCOMMERCE_TASK_NAMES], WorkflowTaskTemplate>;
|
|
431
|
+
declare const BIGCOMMERCE_TASK_CONFIGS: Record<(typeof BIGCOMMERCE_TASK_NAMES)[keyof typeof BIGCOMMERCE_TASK_NAMES], WorkflowTaskConfig>;
|
|
432
|
+
|
|
433
|
+
declare const BIGCOMMERCE_TRIGGER_TEMPLATES: Record<(typeof BIGCOMMERCE_TRIGGER_NAMES)[keyof typeof BIGCOMMERCE_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
434
|
+
declare const BIGCOMMERCE_TRIGGER_CONFIGS: Record<(typeof BIGCOMMERCE_TRIGGER_NAMES)[keyof typeof BIGCOMMERCE_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
435
|
+
|
|
436
|
+
declare const HELPDESK_REFERENCE_NAMES: {
|
|
437
|
+
Ticket: "helpdesk_ticket";
|
|
438
|
+
Tag: "helpdesk_tag";
|
|
439
|
+
Agent: "helpdesk_agent";
|
|
440
|
+
Team: "helpdesk_team";
|
|
441
|
+
CustomField: "helpdesk_custom_field";
|
|
442
|
+
Mailbox: "helpdesk_mailbox";
|
|
443
|
+
Status: "helpdesk_status";
|
|
444
|
+
Priority: "helpdesk_priority";
|
|
445
|
+
CannedResponse: "helpdesk_canned_response";
|
|
446
|
+
};
|
|
447
|
+
declare const HELPDESK_RESOURCE_NAMES: {
|
|
448
|
+
Ticket: "helpdesk_ticket";
|
|
449
|
+
};
|
|
450
|
+
declare const HELPDESK_TASK_NAMES: {
|
|
451
|
+
CreateTicket: "HELPDESK_CREATE_TICKET";
|
|
452
|
+
UpdateTicket: "HELPDESK_UPDATE_TICKET";
|
|
453
|
+
AddFollowersToTicket: "HELPDESK_ADD_FOLLOWERS_TO_TICKET";
|
|
454
|
+
AddTagsToTicket: "HELPDESK_ADD_TAGS_TO_TICKET";
|
|
455
|
+
CreateTransaction: "HELPDESK_CREATE_TRANSACTION";
|
|
456
|
+
FindTicket: "HELPDESK_FIND_TICKET";
|
|
457
|
+
ListTickets: "HELPDESK_LIST_TICKETS";
|
|
458
|
+
SendMessage: "HELPDESK_SEND_MESSAGE";
|
|
459
|
+
SendFollowUp: "HELPDESK_SEND_FOLLOWUP";
|
|
460
|
+
SetAssignment: "HELPDESK_SET_ASSIGNMENT";
|
|
461
|
+
SummarizeTicket: "HELPDESK_SUMMARIZE_TICKET";
|
|
462
|
+
SetCustomField: "HELPDESK_SET_CUSTOM_FIELD";
|
|
463
|
+
RemoveTagsFromTicket: "HELPDESK_REMOVE_TAGS_FROM_TICKET";
|
|
464
|
+
RemoveFollowersFromTicket: "HELPDESK_REMOVE_FOLLOWERS_FROM_TICKET";
|
|
465
|
+
MoveTicketToSpam: "HELPDESK_MOVE_TICKET_TO_SPAM";
|
|
466
|
+
};
|
|
467
|
+
declare const HELPDESK_TRIGGER_NAMES: {
|
|
468
|
+
TicketManual: "text-helpdesk-manual";
|
|
469
|
+
TicketCreated: "text-helpdesk-ticket_created";
|
|
470
|
+
TicketUpdated: "text-helpdesk-ticket_updated";
|
|
471
|
+
TicketStatusChanged: "text-helpdesk-ticket_status_changed";
|
|
472
|
+
TicketPriorityChanged: "text-helpdesk-ticket_priority_changed";
|
|
473
|
+
TicketTagsChanged: "text-helpdesk-ticket_tags_added";
|
|
474
|
+
TicketFollowersChanged: "text-helpdesk-ticket_followers_added";
|
|
475
|
+
TicketAssignmentChanged: "text-helpdesk-ticket_assignment_added";
|
|
476
|
+
TicketCustomFieldsChanged: "text-helpdesk-ticket_custom_fields_changed";
|
|
477
|
+
TicketMessageAdded: "text-helpdesk-ticket_message_added";
|
|
478
|
+
TicketRequesterMessageAdded: "text-helpdesk-ticket_requester_message_added";
|
|
479
|
+
TicketAgentMessageAdded: "text-helpdesk-ticket_agent_message_added";
|
|
480
|
+
TicketAgentPublicMessageAdded: "text-helpdesk-ticket_public_agent_message_added";
|
|
481
|
+
TicketAgentPrivateMessageAdded: "text-helpdesk-ticket_private_agent_message_added";
|
|
482
|
+
};
|
|
483
|
+
declare const HELPDESK_SUBJECTS: {
|
|
484
|
+
readonly Ticket: "text-helpdesk:ticket";
|
|
485
|
+
readonly TicketMessage: "text-helpdesk:ticket:message";
|
|
486
|
+
readonly TicketTransaction: "text-helpdesk:ticket:transaction";
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
declare const helpdeskTicketTagIdsSchema: JSONSchema7;
|
|
490
|
+
declare const helpdeskTicketFollowersSchema: JSONSchema7;
|
|
491
|
+
declare const helpdeskAssignmentSchema: JSONSchema7;
|
|
492
|
+
declare const helpdeskTicketSilo: JSONSchema7;
|
|
493
|
+
declare const helpdeskTicketStatusSchema: JSONSchema7;
|
|
494
|
+
declare const helpdeskTicketPrioritySchema: JSONSchema7;
|
|
495
|
+
declare const helpdeskTicketMessageSchema: JSONSchema7;
|
|
496
|
+
declare const helpdeskTicketEventAuthorSchema: JSONSchema7;
|
|
497
|
+
declare const helpdeskTicketEventSourceSchema: JSONSchema7;
|
|
498
|
+
declare const helpdeskTicketEventStatusChangeSchema: JSONSchema7;
|
|
499
|
+
declare const helpdeskTicketEventSchema: JSONSchema7;
|
|
500
|
+
declare const helpdeskTicketInput: JSONSchema7['properties'];
|
|
501
|
+
declare const helpdeskTicketUpdateInput: JSONSchema7['properties'];
|
|
502
|
+
|
|
503
|
+
declare const HELPDESK_PROVIDER: ProviderConfig;
|
|
504
|
+
|
|
505
|
+
declare const HELPDESK_REFERENCES: Record<(typeof HELPDESK_REFERENCE_NAMES)[keyof typeof HELPDESK_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
506
|
+
|
|
507
|
+
declare const HELPDESK_RESOURCES: Record<(typeof HELPDESK_RESOURCE_NAMES)[keyof typeof HELPDESK_RESOURCE_NAMES], WorkflowResourceDefinition>;
|
|
508
|
+
|
|
509
|
+
declare const HELPDESK_TASK_TEMPLATES: Record<(typeof HELPDESK_TASK_NAMES)[keyof typeof HELPDESK_TASK_NAMES], WorkflowTaskTemplate>;
|
|
510
|
+
declare const HELPDESK_TASKS_CONFIGS: Record<(typeof HELPDESK_TASK_NAMES)[keyof typeof HELPDESK_TASK_NAMES], WorkflowTaskConfig>;
|
|
511
|
+
|
|
512
|
+
declare const HELPDESK_TRIGGER_TEMPLATES: Partial<Record<(typeof HELPDESK_TRIGGER_NAMES)[keyof typeof HELPDESK_TRIGGER_NAMES], WorkflowTriggerTemplate>>;
|
|
513
|
+
declare const HELPDESK_TRIGGER_CONFIGS: Record<(typeof HELPDESK_TRIGGER_NAMES)[keyof typeof HELPDESK_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
514
|
+
|
|
515
|
+
declare const HUBSPOT_REFERENCE_NAMES: {
|
|
516
|
+
Contact: "hubspot_contactId";
|
|
517
|
+
};
|
|
518
|
+
declare const HUBSPOT_TASK_NAMES: {
|
|
519
|
+
CreateContact: "HUBSPOT_CREATE_CONTACT";
|
|
520
|
+
UpdateContact: "HUBSPOT_UPDATE_CONTACT";
|
|
521
|
+
GetContact: "HUBSPOT_GET_CONTACT";
|
|
522
|
+
FindContact: "HUBSPOT_FIND_CONTACT";
|
|
523
|
+
CreateNote: "HUBSPOT_CREATE_NOTE";
|
|
524
|
+
};
|
|
525
|
+
declare const HUBSPOT_TRIGGER_NAMES: {
|
|
526
|
+
ContactCreated: "hubspot-contact_created";
|
|
527
|
+
ContactDeleted: "hubspot-contact_deleted";
|
|
528
|
+
};
|
|
529
|
+
declare const HUBSPOT_SUBJECTS: {
|
|
530
|
+
readonly Contact: "hubspot:contact";
|
|
531
|
+
readonly ContactNote: "hubspot:contact:note";
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
declare const hubspotContactProperties: {
|
|
535
|
+
readonly email: JSONSchema7;
|
|
536
|
+
readonly firstname: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly title: "First name";
|
|
961
539
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
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;
|
|
540
|
+
readonly lastname: {
|
|
541
|
+
readonly type: "string";
|
|
542
|
+
readonly title: "Last name";
|
|
1000
543
|
};
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
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;
|
|
544
|
+
readonly company: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
readonly title: "Company";
|
|
1013
547
|
};
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
schemaVersion: number;
|
|
1026
|
-
restartable: boolean;
|
|
1027
|
-
workflowStatusListenerEnabled: boolean;
|
|
1028
|
-
timeoutPolicy: string;
|
|
1029
|
-
timeoutSeconds: number;
|
|
1030
|
-
ownerEmail: string;
|
|
548
|
+
readonly mobilephone: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly title: "Mobile phone";
|
|
551
|
+
};
|
|
552
|
+
readonly website: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly title: "Website";
|
|
555
|
+
};
|
|
556
|
+
readonly id: {
|
|
557
|
+
readonly type: "string";
|
|
558
|
+
readonly title: "Contact ID";
|
|
1031
559
|
};
|
|
1032
|
-
trigger: {};
|
|
1033
|
-
version: number;
|
|
1034
560
|
};
|
|
1035
|
-
declare const
|
|
561
|
+
declare const hubspotContactCreatedResponse: JSONSchema7;
|
|
562
|
+
declare const hubspotContactDeletedResponse: JSONSchema7;
|
|
563
|
+
declare const hubspotContactLookupQueryParams: JSONSchema7;
|
|
564
|
+
declare const hubspotContactBody: JSONSchema7['properties'];
|
|
565
|
+
|
|
566
|
+
declare const HUBSPOT_PROVIDER: ProviderConfig;
|
|
567
|
+
|
|
568
|
+
declare const HUBSPOT_REFERENCES: Record<(typeof HUBSPOT_REFERENCE_NAMES)[keyof typeof HUBSPOT_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
569
|
+
|
|
570
|
+
declare const HUBSPOT_TASK_TEMPLATES: Record<(typeof HUBSPOT_TASK_NAMES)[keyof typeof HUBSPOT_TASK_NAMES], WorkflowTaskTemplate>;
|
|
571
|
+
declare const HUBSPOT_TASK_CONFIGS: Record<(typeof HUBSPOT_TASK_NAMES)[keyof typeof HUBSPOT_TASK_NAMES], WorkflowTaskConfig>;
|
|
572
|
+
|
|
573
|
+
declare const HUBSPOT_TRIGGER_TEMPLATES: Record<(typeof HUBSPOT_TRIGGER_NAMES)[keyof typeof HUBSPOT_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
574
|
+
declare const HUBSPOT_TRIGGER_CONFIGS: Record<(typeof HUBSPOT_TRIGGER_NAMES)[keyof typeof HUBSPOT_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
575
|
+
|
|
576
|
+
declare const KLAVIYO_REFERENCE_NAMES: {
|
|
577
|
+
List: "klaviyo_list";
|
|
578
|
+
};
|
|
579
|
+
declare const KLAVIYO_TASK_NAMES: {
|
|
580
|
+
GetProfile: "KLAVIYO_GET_PROFILE";
|
|
581
|
+
CreateOrUpdateProfile: "KLAVIYO_CREATE_OR_UPDATE_PROFILE";
|
|
582
|
+
TrackEvent: "KLAVIYO_TRACK_EVENT";
|
|
583
|
+
SubscribeProfile: "KLAVIYO_SUBSCRIBE_PROFILE";
|
|
584
|
+
UnsubscribeProfile: "KLAVIYO_UNSUBSCRIBE_PROFILE";
|
|
585
|
+
};
|
|
586
|
+
declare const KLAVIYO_SUBJECTS: {
|
|
587
|
+
readonly Profile: "klaviyo:profile";
|
|
588
|
+
readonly Event: "klaviyo:event";
|
|
589
|
+
readonly Subscription: "klaviyo:subscription";
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
declare const KLAVIYO_PROVIDER: ProviderConfig;
|
|
593
|
+
|
|
594
|
+
declare const KLAVIYO_REFERENCES: Record<(typeof KLAVIYO_REFERENCE_NAMES)[keyof typeof KLAVIYO_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
595
|
+
|
|
596
|
+
declare const KLAVIYO_TASK_TEMPLATES: Record<(typeof KLAVIYO_TASK_NAMES)[keyof typeof KLAVIYO_TASK_NAMES], WorkflowTaskTemplate>;
|
|
597
|
+
declare const KLAVIYO_TASK_CONFIGS: Record<(typeof KLAVIYO_TASK_NAMES)[keyof typeof KLAVIYO_TASK_NAMES], WorkflowTaskConfig>;
|
|
598
|
+
|
|
599
|
+
declare const LIVECHAT_REFERENCE_NAMES: {
|
|
600
|
+
Chat: "livechat_chat";
|
|
601
|
+
Thread: "livechat_thread";
|
|
602
|
+
Customer: "livechat_customer";
|
|
603
|
+
Tag: "livechat_tag";
|
|
604
|
+
Agent: "livechat_agent";
|
|
605
|
+
Group: "livechat_group";
|
|
606
|
+
CredentialResolver: "livechat_credential_resolver";
|
|
607
|
+
};
|
|
608
|
+
declare const LIVECHAT_RESOURCE_NAMES: {
|
|
609
|
+
Chat: "livechat_chat";
|
|
610
|
+
ChatV1: "livechat_chat_v1";
|
|
611
|
+
};
|
|
612
|
+
declare const LIVECHAT_TASK_NAMES: {
|
|
613
|
+
TransferChat: "LIVECHAT_TRANSFER_CHAT";
|
|
614
|
+
TagChat: "LIVECHAT_TAG_CHAT";
|
|
615
|
+
GetChatTranscript: "LIVECHAT_CHAT_TRANSCRIPT";
|
|
616
|
+
SendMessage: "LIVECHAT_SEND_MESSAGE";
|
|
617
|
+
SuperviseChat: "LIVECHAT_SUPERVISE_CHAT";
|
|
618
|
+
SendChatTranscript: "LIVECHAT_SEND_CHAT_TRANSCRIPT";
|
|
619
|
+
EndChat: "LIVECHAT_END_CHAT";
|
|
620
|
+
GetChat: "LIVECHAT_GET_CHAT";
|
|
621
|
+
GetDailyChatSummary: "LIVECHAT_GET_DAILY_CHAT_SUMMARY";
|
|
622
|
+
GetAgentStatus: "LIVECHAT_GET_AGENT_STATUS";
|
|
623
|
+
GetChatInactivity: "LIVECHAT_GET_CHAT_INACTIVITY";
|
|
624
|
+
ListArchivedChats: "LIVECHAT_LIST_ARCHIVED_CHATS";
|
|
625
|
+
};
|
|
626
|
+
declare const LIVECHAT_TRIGGER_NAMES: {
|
|
627
|
+
ChatManual: "text-livechat-manual";
|
|
628
|
+
ChatStarted: "text-livechat-chat_started";
|
|
629
|
+
ChatRated: "text-livechat-chat_rated";
|
|
630
|
+
ChatMessage: "text-livechat-chat_message";
|
|
631
|
+
ChatEnded: "text-livechat-chat_ended";
|
|
632
|
+
ChatTransferred: "text-livechat-chat_transferred";
|
|
633
|
+
ChatCommented: "text-livechat-chat_commented";
|
|
634
|
+
ChatTagged: "text-livechat-chat_tagged";
|
|
635
|
+
UserAddedToChat: "text-livechat-user_added_to_chat";
|
|
636
|
+
UserRemovedFromChat: "text-livechat-user_removed_from_chat";
|
|
637
|
+
CustomerLeftChat: "text-livechat-customer_left_chat";
|
|
638
|
+
ChatInactivity: "text-livechat-chat_idle";
|
|
639
|
+
ProductCardEvent: "text-livechat-product_card_event";
|
|
640
|
+
};
|
|
641
|
+
declare const LIVECHAT_SUBJECTS: {
|
|
642
|
+
readonly Chat: "text-livechat:chat";
|
|
643
|
+
readonly ChatMessage: "text-livechat:chat:message";
|
|
644
|
+
readonly ChatTranscript: "text-livechat:chat:transcript";
|
|
645
|
+
readonly ChatComment: "text-livechat:chat:comment";
|
|
646
|
+
readonly ChatInactivity: "text-livechat:chat:inactivity";
|
|
647
|
+
readonly ChatRating: "text-livechat:chat:rating";
|
|
648
|
+
readonly Agent: "text-livechat:agent";
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
declare const Queue: JSONSchema7;
|
|
652
|
+
declare const ChatAgent: JSONSchema7;
|
|
653
|
+
declare const ChatAgentV1: JSONSchema7;
|
|
654
|
+
declare const ChatV0: JSONSchema7;
|
|
655
|
+
declare const ChatV1: JSONSchema7;
|
|
656
|
+
|
|
657
|
+
declare const LIVECHAT_PROVIDER: ProviderConfig;
|
|
658
|
+
|
|
659
|
+
declare const LIVECHAT_REFERENCES: Record<(typeof LIVECHAT_REFERENCE_NAMES)[keyof typeof LIVECHAT_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
660
|
+
|
|
661
|
+
declare const LIVECHAT_RESOURCES: Record<(typeof LIVECHAT_RESOURCE_NAMES)[keyof typeof LIVECHAT_RESOURCE_NAMES], WorkflowResourceDefinition>;
|
|
662
|
+
|
|
663
|
+
declare const LIVECHAT_TASK_TEMPLATES: Record<(typeof LIVECHAT_TASK_NAMES)[keyof typeof LIVECHAT_TASK_NAMES], WorkflowTaskTemplate>;
|
|
664
|
+
declare const LIVECHAT_TASK_CONFIGS: Record<(typeof LIVECHAT_TASK_NAMES)[keyof typeof LIVECHAT_TASK_NAMES], WorkflowTaskConfig>;
|
|
665
|
+
|
|
666
|
+
declare const LIVECHAT_TRIGGER_TEMPLATES: Partial<Record<(typeof LIVECHAT_TRIGGER_NAMES)[keyof typeof LIVECHAT_TRIGGER_NAMES], WorkflowTriggerTemplate>>;
|
|
667
|
+
declare const LIVECHAT_TRIGGER_CONFIGS: Record<(typeof LIVECHAT_TRIGGER_NAMES)[keyof typeof LIVECHAT_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
668
|
+
|
|
669
|
+
declare const MAILCHIMP_REFERENCE_NAMES: {
|
|
670
|
+
Audience: "mailchimp_audience";
|
|
671
|
+
Campaign: "mailchimp_campaign";
|
|
672
|
+
};
|
|
673
|
+
declare const MAILCHIMP_TASK_NAMES: {
|
|
674
|
+
AddSubscriber: "MAILCHIMP_ADD_SUBSCRIBER";
|
|
675
|
+
AddCampaign: "MAILCHIMP_ADD_CAMPAIGN";
|
|
676
|
+
SendCampaign: "MAILCHIMP_SEND_CAMPAIGN";
|
|
677
|
+
AddOrUpdateSubscriber: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER";
|
|
678
|
+
UpdateSubscriber: "MAILCHIMP_UPDATE_SUBSCRIBER";
|
|
679
|
+
ArchiveSubscriber: "MAILCHIMP_ARCHIVE_SUBSCRIBER";
|
|
680
|
+
DeleteSubscriber: "MAILCHIMP_DELETE_SUBSCRIBER";
|
|
681
|
+
AddSubscriberTag: "MAILCHIMP_ADD_SUBSCRIBER_TAG";
|
|
682
|
+
AddSubscriberEvent: "MAILCHIMP_ADD_SUBSCRIBER_EVENT";
|
|
683
|
+
AddSubscriberNote: "MAILCHIMP_ADD_SUBSCRIBER_NOTE";
|
|
684
|
+
DeleteSubscriberTag: "MAILCHIMP_DELETE_SUBSCRIBER_TAG";
|
|
685
|
+
GetSubscriberTags: "MAILCHIMP_GET_SUBSCRIBER_TAGS";
|
|
686
|
+
GetSubscriber: "MAILCHIMP_GET_SUBSCRIBER";
|
|
687
|
+
GetSubscribers: "MAILCHIMP_GET_SUBSCRIBERS";
|
|
688
|
+
FindCampaign: "MAILCHIMP_FIND_CAMPAIGN";
|
|
689
|
+
};
|
|
690
|
+
declare const MAILCHIMP_TRIGGER_NAMES: {
|
|
691
|
+
Subscribed: "mailchimp-subscribed";
|
|
692
|
+
Unsubscribed: "mailchimp-unsubscribed";
|
|
693
|
+
};
|
|
694
|
+
declare const MAILCHIMP_SUBJECTS: {
|
|
695
|
+
readonly Campaign: "mailchimp:campaign";
|
|
696
|
+
readonly Subscriber: "mailchimp:subscriber";
|
|
697
|
+
readonly SubscriberEvent: "mailchimp:subscriber:event";
|
|
698
|
+
readonly SubscriberNote: "mailchimp:subscriber:note";
|
|
699
|
+
readonly SubscriberTag: "mailchimp:subscriber:tag";
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
declare const MAILCHIMP_PROVIDER: ProviderConfig;
|
|
703
|
+
|
|
704
|
+
declare const MAILCHIMP_REFERENCES: Record<(typeof MAILCHIMP_REFERENCE_NAMES)[keyof typeof MAILCHIMP_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
705
|
+
|
|
706
|
+
declare const MAILCHIMP_TASK_TEMPLATES: Record<(typeof MAILCHIMP_TASK_NAMES)[keyof typeof MAILCHIMP_TASK_NAMES], WorkflowTaskTemplate>;
|
|
707
|
+
declare const MAILCHIMP_TASK_CONFIGS: Record<(typeof MAILCHIMP_TASK_NAMES)[keyof typeof MAILCHIMP_TASK_NAMES], WorkflowTaskConfig>;
|
|
708
|
+
|
|
709
|
+
declare const MAILCHIMP_TRIGGER_TEMPLATES: Record<(typeof MAILCHIMP_TRIGGER_NAMES)[keyof typeof MAILCHIMP_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
710
|
+
declare const MAILCHIMP_TRIGGER_CONFIGS: Record<(typeof MAILCHIMP_TRIGGER_NAMES)[keyof typeof MAILCHIMP_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
711
|
+
|
|
712
|
+
declare const OPENAI_TASK_NAMES: {
|
|
713
|
+
ExtractOrderRequest: "OPENAI_EXTRACT_ORDER_REQUEST";
|
|
714
|
+
AnalyzeTextSentiment: "OPENAI_ANALYZE_TEXT_SENTIMENT";
|
|
715
|
+
SummarizeText: "OPENAI_SUMMARIZE_TEXT";
|
|
716
|
+
ModerateText: "OPENAI_MODERATE_TEXT";
|
|
717
|
+
CategorizeText: "OPENAI_CATEGORIZE_TEXT";
|
|
718
|
+
};
|
|
719
|
+
declare const OPENAI_SUBJECTS: {
|
|
720
|
+
readonly Sentiment: "openai:sentiment";
|
|
721
|
+
readonly Category: "openai:category";
|
|
722
|
+
readonly Order: "openai:order";
|
|
723
|
+
readonly Moderation: "openai:moderation";
|
|
724
|
+
readonly Summary: "openai:summary";
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
declare const OPENAI_PROVIDER: ProviderConfig;
|
|
728
|
+
|
|
729
|
+
declare const OPENAI_TASK_TEMPLATES: Record<(typeof OPENAI_TASK_NAMES)[keyof typeof OPENAI_TASK_NAMES], WorkflowTaskTemplate>;
|
|
730
|
+
declare const OPENAI_TASK_CONFIGS: Record<(typeof OPENAI_TASK_NAMES)[keyof typeof OPENAI_TASK_NAMES], WorkflowTaskConfig>;
|
|
731
|
+
|
|
732
|
+
declare const SHOPIFY_TASK_NAMES: {
|
|
733
|
+
CreateCustomer: "SHOPIFY_CREATE_CUSTOMER";
|
|
734
|
+
CreateOrder: "SHOPIFY_CREATE_ORDER";
|
|
735
|
+
CreateDraftOrder: "SHOPIFY_CREATE_DRAFT_ORDER";
|
|
736
|
+
CreateProduct: "SHOPIFY_CREATE_PRODUCT";
|
|
737
|
+
CreateProductVariant: "SHOPIFY_CREATE_PRODUCT_VARIANT";
|
|
738
|
+
GetCustomer: "SHOPIFY_GET_CUSTOMER";
|
|
739
|
+
GetCustomerOrders: "SHOPIFY_GET_CUSTOMER_ORDERS";
|
|
740
|
+
GetProduct: "SHOPIFY_GET_PRODUCT";
|
|
741
|
+
GetProductVariant: "SHOPIFY_GET_PRODUCT_VARIANT";
|
|
742
|
+
UpdateInventoryQuantity: "SHOPIFY_UPDATE_INVENTORY_QUANTITY";
|
|
743
|
+
UpdateOrder: "SHOPIFY_UPDATE_ORDER";
|
|
744
|
+
UpdateProduct: "SHOPIFY_UPDATE_PRODUCT";
|
|
745
|
+
UpdateProductVariant: "SHOPIFY_UPDATE_PRODUCT_VARIANT";
|
|
746
|
+
UpdateCustomer: "SHOPIFY_UPDATE_CUSTOMER";
|
|
747
|
+
GetCustomerLastOrder: "SHOPIFY_GET_CUSTOMER_LAST_ORDER";
|
|
748
|
+
};
|
|
749
|
+
declare const SHOPIFY_TRIGGER_NAMES: {
|
|
750
|
+
OrderCreated: "shopify-order_created";
|
|
751
|
+
};
|
|
752
|
+
declare const SHOPIFY_SUBJECTS: {
|
|
753
|
+
readonly Customer: "shopify:customer";
|
|
754
|
+
readonly Order: "shopify:order";
|
|
755
|
+
readonly DraftOrder: "shopify:draft-order";
|
|
756
|
+
readonly Product: "shopify:product";
|
|
757
|
+
readonly ProductVariant: "shopify:product:variant";
|
|
758
|
+
readonly Inventory: "shopify:inventory";
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
declare const shopifyCustomerAddressBody: JSONSchema7["properties"];
|
|
762
|
+
declare const shopifyCustomerBody: JSONSchema7["properties"];
|
|
763
|
+
declare const shopifyOrderBody: JSONSchema7["properties"];
|
|
764
|
+
declare const shopifyProductVariantBody: JSONSchema7["properties"];
|
|
765
|
+
declare const shopifyProductOptionBody: JSONSchema7["properties"];
|
|
766
|
+
declare const shopifyProductImageBody: JSONSchema7["properties"];
|
|
767
|
+
declare const shopifyProductBody: JSONSchema7["properties"];
|
|
768
|
+
declare const shopifyGraphQLAddress: JSONSchema7["properties"];
|
|
769
|
+
declare const shopifyGraphQLOrderBody: JSONSchema7["properties"];
|
|
770
|
+
|
|
771
|
+
declare const SHOPIFY_PROVIDER: ProviderConfig;
|
|
772
|
+
|
|
773
|
+
declare const SHOPIFY_TASK_TEMPLATES: Record<(typeof SHOPIFY_TASK_NAMES)[keyof typeof SHOPIFY_TASK_NAMES], WorkflowTaskTemplate>;
|
|
774
|
+
declare const SHOPIFY_TASK_CONFIGS: Record<(typeof SHOPIFY_TASK_NAMES)[keyof typeof SHOPIFY_TASK_NAMES], WorkflowTaskConfig>;
|
|
775
|
+
|
|
776
|
+
declare const SHOPIFY_TRIGGER_TEMPLATES: Record<(typeof SHOPIFY_TRIGGER_NAMES)[keyof typeof SHOPIFY_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
777
|
+
declare const SHOPIFY_TRIGGER_CONFIGS: Record<(typeof SHOPIFY_TRIGGER_NAMES)[keyof typeof SHOPIFY_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
778
|
+
|
|
779
|
+
declare const SLACK_REFERENCE_NAMES: {
|
|
780
|
+
Channel: "slack_channel_id";
|
|
781
|
+
User: "slack_user_id";
|
|
782
|
+
MessageTimestamp: "slack_message_timestamp";
|
|
783
|
+
Reaction: "slack_reaction";
|
|
784
|
+
};
|
|
785
|
+
declare const SLACK_TASK_NAMES: {
|
|
786
|
+
SendMessage: "SLACK_SEND_MESSAGE";
|
|
787
|
+
SendDirectMessage: "SLACK_SEND_DIRECT_MESSAGE";
|
|
788
|
+
SendEphemeralMessage: "SLACK_SEND_EPHEMERAL_MESSAGE";
|
|
789
|
+
CreateChannel: "SLACK_CREATE_CHANNEL";
|
|
790
|
+
FindUserByEmail: "SLACK_FIND_USER_BY_EMAIL";
|
|
791
|
+
};
|
|
792
|
+
declare const SLACK_TRIGGER_NAMES: {
|
|
793
|
+
ChannelNewMessagePosted: "slack-channel_new_message_posted";
|
|
794
|
+
MemberNewMention: "slack-member_new_mention";
|
|
795
|
+
ReactionAdded: "slack-reaction_added";
|
|
796
|
+
};
|
|
797
|
+
declare const SLACK_SUBJECTS: {
|
|
798
|
+
readonly Channel: "slack:channel";
|
|
799
|
+
readonly User: "slack:user";
|
|
800
|
+
readonly Message: "slack:message";
|
|
801
|
+
readonly Mention: "slack:mention";
|
|
802
|
+
readonly Reaction: "slack:reaction";
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
declare const SLACK_PROVIDER: ProviderConfig;
|
|
806
|
+
|
|
807
|
+
declare const SLACK_REFERENCES: Record<(typeof SLACK_REFERENCE_NAMES)[keyof typeof SLACK_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
808
|
+
|
|
809
|
+
declare const SLACK_TASK_CONFIGS: Record<(typeof SLACK_TASK_NAMES)[keyof typeof SLACK_TASK_NAMES], WorkflowTaskConfig>;
|
|
810
|
+
declare const SLACK_TASK_TEMPLATES: Record<(typeof SLACK_TASK_NAMES)[keyof typeof SLACK_TASK_NAMES], WorkflowTaskTemplate>;
|
|
811
|
+
|
|
812
|
+
declare const SLACK_TRIGGER_TEMPLATES: Record<(typeof SLACK_TRIGGER_NAMES)[keyof typeof SLACK_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
813
|
+
declare const SLACK_TRIGGER_CONFIGS: Record<(typeof SLACK_TRIGGER_NAMES)[keyof typeof SLACK_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
814
|
+
|
|
815
|
+
declare const getLightSpecification: () => LightSpecification;
|
|
816
|
+
declare const getSpecification: () => Specification;
|
|
817
|
+
|
|
818
|
+
declare const SYSTEM_PROVIDER: ProviderConfig;
|
|
819
|
+
|
|
820
|
+
declare const SYSTEM_TASK_NAMES: {
|
|
821
|
+
readonly condition: "SWITCH_IF";
|
|
822
|
+
readonly switchCase: "SWITCH_CASE";
|
|
823
|
+
readonly loop: "DO_WHILE_LOOP";
|
|
824
|
+
readonly script: "INLINE_SCRIPT";
|
|
825
|
+
readonly convert: "JSON_JQ_TRANSFORM_CONVERT";
|
|
826
|
+
readonly construct: "JSON_JQ_TRANSFORM_CONSTRUCT";
|
|
827
|
+
readonly awaitAgent: "await";
|
|
828
|
+
readonly notifyAgent: "notify_ai_agent";
|
|
829
|
+
readonly forEach: "DO_WHILE_FOR_EACH";
|
|
830
|
+
readonly reasoning: "reasoning";
|
|
831
|
+
readonly http: "HTTP";
|
|
832
|
+
readonly switch: "SWITCH";
|
|
833
|
+
readonly forkJoin: "FORK_JOIN";
|
|
834
|
+
readonly terminate: "TERMINATE";
|
|
835
|
+
readonly join: "JOIN";
|
|
836
|
+
readonly wait: "WAIT";
|
|
837
|
+
readonly simple: "SIMPLE";
|
|
838
|
+
readonly doWhile: "DO_WHILE";
|
|
839
|
+
readonly inline: "INLINE";
|
|
840
|
+
readonly transform: "JSON_JQ_TRANSFORM";
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
declare const DO_WHILE_LOOP_EXPRESSION = "(function(){const result=(function(){function toCleanObject(value){switch(typeof value){case 'object':var ret={};for(const key in value){ret[key]=toCleanObject(value[key])} return ret;default:return value}} function toNumber(value){if(typeof value==='number')return value;if(typeof value==='string'){const num=Number(value);return isNaN(num)?0:num} if(typeof value==='boolean')return value?1:0;return 0} function toString(value){if(typeof value==='string')return value;if(value===null||value===undefined)return'';return String(value)} function toBoolean(value){if(typeof value==='boolean')return value;if(typeof value==='string'){const lower=value.toLowerCase();return(lower==='true'||lower==='1'||lower==='yes'||lower==='on')} if(typeof value==='number')return value!==0;return Boolean(value)} function toDate(value){if(value instanceof Date)return value;const date=new Date(value);return isNaN(date.getTime())?new Date(0):date} function objectToArray(obj){if(obj===null||obj===undefined)return[];if(typeof obj!=='object')return[obj];const arr=[];for(const key in obj){if(obj.hasOwnProperty(key)){arr.push(obj[key])}} return arr} function isEmpty(value){if(value===null||value===undefined)return!0;if(typeof value==='string')return value.length===0;if(typeof value==='object'){for(const key in value){if(value.hasOwnProperty(key))return!1} return!0} return!1} const logic=$.logic;const conditions=toCleanObject($.conditions);const ops={g_empty(a){return isEmpty(a)},g_nempty(a){return!isEmpty(a)},n_eq(a,b){return toNumber(a)===toNumber(b)},n_neq(a,b){return toNumber(a)!==toNumber(b)},n_gt(a,b){return toNumber(a)>toNumber(b)},n_gte(a,b){return toNumber(a)>=toNumber(b)},n_lt(a,b){return toNumber(a)<toNumber(b)},n_lte(a,b){return toNumber(a)<=toNumber(b)},n_in(a,b){const num=toNumber(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toNumber(arr[i])===num)return!0} return!1},n_nin(a,b){const num=toNumber(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toNumber(arr[i])===num)return!1} return!0},s_eq(a,b){return toString(a)===toString(b)},s_neq(a,b){return toString(a)!==toString(b)},s_contains(a,b){return toString(a).indexOf(toString(b))!==-1},s_not_contains(a,b){return toString(a).indexOf(toString(b))===-1},s_starts_with(a,b){return toString(a).startsWith(toString(b))},s_ends_with(a,b){return toString(a).endsWith(toString(b))},s_regex(a,b){try{const r=new RegExp(toString(b));return r.test(toString(a))}catch(_){return!1}},s_in(a,b){const str=toString(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toString(arr[i])===str)return!0} return!1},s_nin(a,b){const str=toString(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toString(arr[i])===str)return!1} return!0},s_length_eq(a,b){return toString(a).length===toNumber(b)},s_length_gt(a,b){return toString(a).length>toNumber(b)},s_length_lt(a,b){return toString(a).length<toNumber(b)},dt_eq(a,b){return toDate(a).getTime()===toDate(b).getTime()},dt_neq(a,b){return toDate(a).getTime()!==toDate(b).getTime()},dt_before(a,b){return toDate(a).getTime()<toDate(b).getTime()},dt_after(a,b){return toDate(a).getTime()>toDate(b).getTime()},b_eq(a,b){return toBoolean(a)===toBoolean(b)},b_neq(a,b){return toBoolean(a)!==toBoolean(b)},a_contains(a,b){const arr=objectToArray(a);const searchVal=b;for(let i=0;i<arr.length;i++){if(arr[i]===searchVal)return!0} return!1},a_not_contains(a,b){const arr=objectToArray(a);const searchVal=b;for(let i=0;i<arr.length;i++){if(arr[i]===searchVal)return!1} return!0},a_length_eq(a,b){return objectToArray(a).length===toNumber(b)},a_length_gt(a,b){return objectToArray(a).length>toNumber(b)},a_length_lt(a,b){return objectToArray(a).length<toNumber(b)},a_length_gte(a,b){return objectToArray(a).length>=toNumber(b)},a_length_lte(a,b){return objectToArray(a).length<=toNumber(b)}};const results=Object.keys(conditions).map(function(key){const cond=conditions[key];const operatorFn=ops[cond.operator];return operatorFn?operatorFn(cond.field,cond.value):!1});const passed=logic==='AND'?results.every(function(r){return r}):results.some(function(r){return r});return passed?'TRUE':'FALSE'})();return result==='TRUE'})()";
|
|
844
|
+
|
|
845
|
+
declare const SWITCH_IF_EXPRESSION = "(function(){function toCleanObject(value){switch(typeof value){case 'object':var ret={};for(const key in value){ret[key]=toCleanObject(value[key])} return ret;default:return value}} function toNumber(value){if(typeof value==='number')return value;if(typeof value==='string'){const num=Number(value);return isNaN(num)?0:num} if(typeof value==='boolean')return value?1:0;return 0} function toString(value){if(typeof value==='string')return value;if(value===null||value===undefined)return'';return String(value)} function toBoolean(value){if(typeof value==='boolean')return value;if(typeof value==='string'){const lower=value.toLowerCase();return(lower==='true'||lower==='1'||lower==='yes'||lower==='on')} if(typeof value==='number')return value!==0;return Boolean(value)} function toDate(value){if(value instanceof Date)return value;const date=new Date(value);return isNaN(date.getTime())?new Date(0):date} function objectToArray(obj){if(obj===null||obj===undefined)return[];if(typeof obj!=='object')return[obj];const arr=[];for(const key in obj){if(obj.hasOwnProperty(key)){arr.push(obj[key])}} return arr} function isEmpty(value){if(value===null||value===undefined)return!0;if(typeof value==='string')return value.length===0;if(typeof value==='object'){for(const key in value){if(value.hasOwnProperty(key))return!1} return!0} return!1} const logic=$.logic;const conditions=toCleanObject($.conditions);const ops={g_empty(a){return isEmpty(a)},g_nempty(a){return!isEmpty(a)},n_eq(a,b){return toNumber(a)===toNumber(b)},n_neq(a,b){return toNumber(a)!==toNumber(b)},n_gt(a,b){return toNumber(a)>toNumber(b)},n_gte(a,b){return toNumber(a)>=toNumber(b)},n_lt(a,b){return toNumber(a)<toNumber(b)},n_lte(a,b){return toNumber(a)<=toNumber(b)},n_in(a,b){const num=toNumber(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toNumber(arr[i])===num)return!0} return!1},n_nin(a,b){const num=toNumber(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toNumber(arr[i])===num)return!1} return!0},s_eq(a,b){return toString(a)===toString(b)},s_neq(a,b){return toString(a)!==toString(b)},s_contains(a,b){return toString(a).indexOf(toString(b))!==-1},s_not_contains(a,b){return toString(a).indexOf(toString(b))===-1},s_starts_with(a,b){return toString(a).startsWith(toString(b))},s_ends_with(a,b){return toString(a).endsWith(toString(b))},s_regex(a,b){try{const r=new RegExp(toString(b));return r.test(toString(a))}catch(_){return!1}},s_in(a,b){const str=toString(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toString(arr[i])===str)return!0} return!1},s_nin(a,b){const str=toString(a);const arr=objectToArray(b);for(let i=0;i<arr.length;i++){if(toString(arr[i])===str)return!1} return!0},s_length_eq(a,b){return toString(a).length===toNumber(b)},s_length_gt(a,b){return toString(a).length>toNumber(b)},s_length_lt(a,b){return toString(a).length<toNumber(b)},dt_eq(a,b){return toDate(a).getTime()===toDate(b).getTime()},dt_neq(a,b){return toDate(a).getTime()!==toDate(b).getTime()},dt_before(a,b){return toDate(a).getTime()<toDate(b).getTime()},dt_after(a,b){return toDate(a).getTime()>toDate(b).getTime()},b_eq(a,b){return toBoolean(a)===toBoolean(b)},b_neq(a,b){return toBoolean(a)!==toBoolean(b)},a_contains(a,b){const arr=objectToArray(a);const searchVal=b;for(let i=0;i<arr.length;i++){if(arr[i]===searchVal)return!0} return!1},a_not_contains(a,b){const arr=objectToArray(a);const searchVal=b;for(let i=0;i<arr.length;i++){if(arr[i]===searchVal)return!1} return!0},a_length_eq(a,b){return objectToArray(a).length===toNumber(b)},a_length_gt(a,b){return objectToArray(a).length>toNumber(b)},a_length_lt(a,b){return objectToArray(a).length<toNumber(b)},a_length_gte(a,b){return objectToArray(a).length>=toNumber(b)},a_length_lte(a,b){return objectToArray(a).length<=toNumber(b)}};const results=Object.keys(conditions).map(function(key){const cond=conditions[key];const operatorFn=ops[cond.operator];return operatorFn?operatorFn(cond.field,cond.value):!1});const passed=logic==='AND'?results.every(function(r){return r}):results.some(function(r){return r});return passed?'TRUE':'FALSE'})()";
|
|
846
|
+
|
|
847
|
+
declare const SYSTEM_TASK_TEMPLATES: {
|
|
848
|
+
HTTP: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowHttpTaskCore>;
|
|
849
|
+
FORK_JOIN: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowForkJoinTaskCore>;
|
|
850
|
+
JOIN: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowJoinTaskCore>;
|
|
851
|
+
SWITCH_IF: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowConditionTaskCore>;
|
|
852
|
+
SWITCH_CASE: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowSwitchCaseTaskCore>;
|
|
853
|
+
DO_WHILE_LOOP: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowLoopTaskCore>;
|
|
854
|
+
DO_WHILE_FOR_EACH: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowForEachTaskCore>;
|
|
855
|
+
WAIT: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowWaitTaskCore>;
|
|
856
|
+
TERMINATE: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowTerminateTaskCore>;
|
|
857
|
+
INLINE_SCRIPT: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowScriptTaskCore>;
|
|
858
|
+
JSON_JQ_TRANSFORM_CONVERT: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowConvertTaskCore>;
|
|
859
|
+
JSON_JQ_TRANSFORM_CONSTRUCT: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowConstructTaskCore>;
|
|
860
|
+
await: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowAwaitTaskCore>;
|
|
861
|
+
notify_ai_agent: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowNotifyAiAgentTaskCore>;
|
|
862
|
+
reasoning: WorkflowTaskTemplate<_livechat_developer_studio_api.WorkflowReasoningTaskCore>;
|
|
863
|
+
};
|
|
864
|
+
declare const SYSTEM_TASKS_CONFIGS: {
|
|
865
|
+
HTTP: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowHttpTask>;
|
|
866
|
+
FORK_JOIN: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowForkJoinTask>;
|
|
867
|
+
JOIN: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowJoinTask>;
|
|
868
|
+
SWITCH_IF: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowConditionTask>;
|
|
869
|
+
SWITCH_CASE: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowSwitchCaseTask>;
|
|
870
|
+
WAIT: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowWaitTask>;
|
|
871
|
+
TERMINATE: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowTerminateTask>;
|
|
872
|
+
DO_WHILE_LOOP: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowLoopTask>;
|
|
873
|
+
DO_WHILE_FOR_EACH: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowForEachTask>;
|
|
874
|
+
INLINE_SCRIPT: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowScriptTask>;
|
|
875
|
+
JSON_JQ_TRANSFORM_CONVERT: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowConvertTask>;
|
|
876
|
+
JSON_JQ_TRANSFORM_CONSTRUCT: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowConstructTask>;
|
|
877
|
+
await: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowAwaitTask>;
|
|
878
|
+
notify_ai_agent: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowNotifyAiAgentTask>;
|
|
879
|
+
reasoning: WorkflowTaskConfig<_livechat_developer_studio_api.WorkflowReasoningTask>;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
declare const WorkflowSystemTriggers: {
|
|
883
|
+
Manual: "manual";
|
|
884
|
+
Agent: "ai_agent";
|
|
885
|
+
Scheduled: "scheduled";
|
|
886
|
+
Webhook: "webhook_manual";
|
|
887
|
+
};
|
|
888
|
+
type WorkflowSystemTriggers = (typeof WorkflowSystemTriggers)[keyof typeof WorkflowSystemTriggers];
|
|
889
|
+
declare const SYSTEM_TRIGGER_TEMPLATES: Record<(typeof WorkflowSystemTriggers)[keyof typeof WorkflowSystemTriggers], WorkflowTriggerTemplate>;
|
|
890
|
+
declare const SYSTEM_TRIGGER_NAMES: {
|
|
891
|
+
readonly recurring: "recurring";
|
|
892
|
+
readonly manual: "manual_only";
|
|
893
|
+
readonly agent: "ai_agent";
|
|
894
|
+
readonly webhook: "webhook_manual";
|
|
895
|
+
};
|
|
896
|
+
declare const SYSTEM_TRIGGER_CONFIGS: Record<(typeof WorkflowSystemTriggers)[keyof typeof WorkflowSystemTriggers], WorkflowTriggerConfig>;
|
|
897
|
+
|
|
898
|
+
declare const TEXT_REFERENCE_NAMES: {
|
|
899
|
+
Organization: "text_organization";
|
|
900
|
+
CustomerProperty: "text_customer-property";
|
|
901
|
+
ExternalAccount: "text_external-account";
|
|
902
|
+
ShopifyAccount: "text_shopify-account";
|
|
903
|
+
};
|
|
904
|
+
declare const TEXT_TASK_NAMES: {
|
|
905
|
+
DetectLanguage: "text-DETECT_LANGUAGE";
|
|
906
|
+
ResolveTextAgent: "text-RESOLVE_TEXT_AGENT";
|
|
907
|
+
GetCustomer: "text-GET_CUSTOMER";
|
|
908
|
+
SetCustomerData: "text-SET_CUSTOMER_DATA";
|
|
909
|
+
AddCustomerEvent: "text-ADD_CUSTOMER_EVENT";
|
|
910
|
+
ListCustomers: "text-LIST_CUSTOMERS";
|
|
911
|
+
UpdateCustomer: "text-UPDATE_CUSTOMER";
|
|
912
|
+
BanLivechatCustomer: "text-BAN_LIVECHAT_CUSTOMER";
|
|
913
|
+
SetCustomCustomerProperties: "text-SET_CUSTOM_CUSTOMER_PROPERTIES";
|
|
914
|
+
};
|
|
915
|
+
declare const TEXT_RESOURCE_NAMES: {
|
|
916
|
+
Customer: "text_customer";
|
|
917
|
+
};
|
|
918
|
+
declare const TEXT_TRIGGER_NAMES: {
|
|
919
|
+
CustomerEmailSet: "text-customer_email_set";
|
|
920
|
+
CustomerPropertiesUpdated: "text-customer_properties_values_updated";
|
|
921
|
+
};
|
|
922
|
+
declare const TEXT_SUBJECTS: {
|
|
923
|
+
readonly Customer: "text:customer";
|
|
924
|
+
readonly CustomerEvent: "text:customer:event";
|
|
925
|
+
readonly Agent: "text:agent";
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
declare const CustomerPage: JSONSchema7;
|
|
929
|
+
declare const CustomerGeolocation: JSONSchema7;
|
|
930
|
+
declare const CustomerVisit: JSONSchema7;
|
|
931
|
+
declare const CustomerStatistics: JSONSchema7;
|
|
932
|
+
declare const CustomerTicket: JSONSchema7;
|
|
933
|
+
declare const CustomerOmnichannelFBMessenger: JSONSchema7;
|
|
934
|
+
declare const CustomerOmnichannelTwilio: JSONSchema7;
|
|
935
|
+
declare const CustomerInvitation: JSONSchema7;
|
|
936
|
+
declare const CustomerBasic: JSONSchema7;
|
|
937
|
+
declare const Customer: JSONSchema7;
|
|
938
|
+
|
|
939
|
+
declare const TEXT_PROVIDER: ProviderConfig;
|
|
940
|
+
|
|
941
|
+
declare const TEXT_REFERENCES: Record<(typeof TEXT_REFERENCE_NAMES)[keyof typeof TEXT_REFERENCE_NAMES], WorkflowReferenceDefinition>;
|
|
942
|
+
|
|
943
|
+
declare const TEXT_RESOURCES: Record<(typeof TEXT_RESOURCE_NAMES)[keyof typeof TEXT_RESOURCE_NAMES], WorkflowResourceDefinition>;
|
|
944
|
+
|
|
945
|
+
declare const TEXT_TASK_CONFIGS: Record<(typeof TEXT_TASK_NAMES)[keyof typeof TEXT_TASK_NAMES], WorkflowTaskConfig>;
|
|
946
|
+
declare const TEXT_TASK_TEMPLATES: Record<(typeof TEXT_TASK_NAMES)[keyof typeof TEXT_TASK_NAMES], WorkflowTaskTemplate>;
|
|
947
|
+
|
|
948
|
+
declare const TEXT_TRIGGER_TEMPLATES: Record<(typeof TEXT_TRIGGER_NAMES)[keyof typeof TEXT_TRIGGER_NAMES], WorkflowTriggerTemplate>;
|
|
949
|
+
declare const TEXT_TRIGGER_CONFIGS: Record<(typeof TEXT_TRIGGER_NAMES)[keyof typeof TEXT_TRIGGER_NAMES], WorkflowTriggerConfig>;
|
|
950
|
+
|
|
951
|
+
declare const getWorkflowReferenceDefinitionFromSchema: (schema: JSONSchema7, referenceKey?: string | number) => WorkflowItemSpecificationRef<WorkflowReferenceDefinition> | undefined;
|
|
952
|
+
declare const getWorkflowReferenceDefRef: (reference: string) => string;
|
|
953
|
+
declare const getWorkflowResourceDefRef: (resource: string) => string;
|
|
954
|
+
declare const DEFS_REF_PATTERN: RegExp;
|
|
955
|
+
type SchemaDefinitions = {
|
|
956
|
+
references: Record<string, JSONSchema7>;
|
|
957
|
+
resources: Record<string, JSONSchema7>;
|
|
958
|
+
};
|
|
959
|
+
declare function inlineSchemaRefs(schema: JSONSchema7 | null, definitions: SchemaDefinitions, options?: {
|
|
960
|
+
stripRefs?: boolean;
|
|
961
|
+
}): JSONSchema7 | null;
|
|
962
|
+
|
|
963
|
+
declare const NEW_WORKFLOW: WorkflowDto;
|
|
1036
964
|
|
|
1037
|
-
export {
|
|
965
|
+
export { BIGCOMMERCE_PROVIDER, BIGCOMMERCE_SUBJECTS, BIGCOMMERCE_TASK_CONFIGS, BIGCOMMERCE_TASK_NAMES, BIGCOMMERCE_TASK_TEMPLATES, BIGCOMMERCE_TRIGGER_CONFIGS, BIGCOMMERCE_TRIGGER_NAMES, BIGCOMMERCE_TRIGGER_TEMPLATES, ChatAgent, ChatAgentV1, ChatV0, ChatV1, CredentialConfig, Customer, CustomerBasic, CustomerGeolocation, CustomerInvitation, CustomerOmnichannelFBMessenger, CustomerOmnichannelTwilio, CustomerPage, CustomerStatistics, CustomerTicket, CustomerVisit, DEFAULT_PAGE, DEFS_REF_PATTERN, DO_WHILE_LOOP_EXPRESSION, type DeclarativeReferenceDefinition, type DeclarativeResourceDefinition, DeclarativeWorkflowTaskTemplate, GENERAL_REFERENCES, GENERAL_REFERENCE_NAMES, HELPDESK_PROVIDER, HELPDESK_REFERENCES, HELPDESK_REFERENCE_NAMES, HELPDESK_RESOURCES, HELPDESK_RESOURCE_NAMES, HELPDESK_SUBJECTS, HELPDESK_TASKS_CONFIGS, HELPDESK_TASK_NAMES, HELPDESK_TASK_TEMPLATES, HELPDESK_TRIGGER_CONFIGS, HELPDESK_TRIGGER_NAMES, HELPDESK_TRIGGER_TEMPLATES, HUBSPOT_PROVIDER, HUBSPOT_REFERENCES, HUBSPOT_REFERENCE_NAMES, HUBSPOT_SUBJECTS, HUBSPOT_TASK_CONFIGS, HUBSPOT_TASK_NAMES, HUBSPOT_TASK_TEMPLATES, HUBSPOT_TRIGGER_CONFIGS, HUBSPOT_TRIGGER_NAMES, HUBSPOT_TRIGGER_TEMPLATES, type IntegrationKey, IntegrationNamesToTextProductDomains, KLAVIYO_PROVIDER, KLAVIYO_REFERENCES, KLAVIYO_REFERENCE_NAMES, KLAVIYO_SUBJECTS, KLAVIYO_TASK_CONFIGS, KLAVIYO_TASK_NAMES, KLAVIYO_TASK_TEMPLATES, LIVECHAT_PROVIDER, LIVECHAT_REFERENCES, LIVECHAT_REFERENCE_NAMES, LIVECHAT_RESOURCES, LIVECHAT_RESOURCE_NAMES, LIVECHAT_SUBJECTS, LIVECHAT_TASK_CONFIGS, LIVECHAT_TASK_NAMES, LIVECHAT_TASK_TEMPLATES, LIVECHAT_TRIGGER_CONFIGS, LIVECHAT_TRIGGER_NAMES, LIVECHAT_TRIGGER_TEMPLATES, LightSpecification, MAILCHIMP_PROVIDER, MAILCHIMP_REFERENCES, MAILCHIMP_REFERENCE_NAMES, MAILCHIMP_SUBJECTS, MAILCHIMP_TASK_CONFIGS, MAILCHIMP_TASK_NAMES, MAILCHIMP_TASK_TEMPLATES, MAILCHIMP_TRIGGER_CONFIGS, MAILCHIMP_TRIGGER_NAMES, MAILCHIMP_TRIGGER_TEMPLATES, NEW_WORKFLOW, OPENAI_PROVIDER, OPENAI_SUBJECTS, OPENAI_TASK_CONFIGS, OPENAI_TASK_NAMES, OPENAI_TASK_TEMPLATES, OTHER_TYPES, OTHER_TYPES_DISPLAY, ProviderConfig, Queue, RECORDS_PER_PAGE, SHOPIFY_PROVIDER, SHOPIFY_SUBJECTS, SHOPIFY_TASK_CONFIGS, SHOPIFY_TASK_NAMES, SHOPIFY_TASK_TEMPLATES, SHOPIFY_TRIGGER_CONFIGS, SHOPIFY_TRIGGER_NAMES, SHOPIFY_TRIGGER_TEMPLATES, SLACK_PROVIDER, SLACK_REFERENCES, SLACK_REFERENCE_NAMES, SLACK_SUBJECTS, SLACK_TASK_CONFIGS, SLACK_TASK_NAMES, SLACK_TASK_TEMPLATES, SLACK_TRIGGER_CONFIGS, SLACK_TRIGGER_NAMES, SLACK_TRIGGER_TEMPLATES, SWITCH_IF_EXPRESSION, SYSTEM_PROVIDER, SYSTEM_TASKS_CONFIGS, SYSTEM_TASK_NAMES, SYSTEM_TASK_TEMPLATES, SYSTEM_TRIGGER_CONFIGS, SYSTEM_TRIGGER_NAMES, SYSTEM_TRIGGER_TEMPLATES, type SchemaDefinitions, Specification, TEXTAPP_PRODUCT_NAME, TEXT_PROVIDER, TEXT_REFERENCES, TEXT_REFERENCE_NAMES, TEXT_RESOURCES, TEXT_RESOURCE_NAMES, TEXT_SUBJECTS, TEXT_TASK_CONFIGS, TEXT_TASK_NAMES, TEXT_TASK_TEMPLATES, TEXT_TRIGGER_CONFIGS, TEXT_TRIGGER_NAMES, TEXT_TRIGGER_TEMPLATES, TextProductDomains, WorkflowDomain, WorkflowDomainConfig, WorkflowItemConfig, WorkflowItemCustomization, WorkflowItemMetadata, WorkflowItemSpecification, WorkflowItemSpecificationRef, WorkflowItemSpecifications, WorkflowItemTemplate, WorkflowReferenceDefinition, WorkflowResourceDefinition, WorkflowSystemTriggers, WorkflowTaskConfig, WorkflowTaskTemplate, WorkflowTriggerConfig, WorkflowTriggerTemplate, WorkflowsOutcomingMessages, bigCommerceBlogPostBody, bigCommerceCustomerAddressBody, bigCommerceCustomerBody, bigCommerceCustomerResponse, bigCommerceProductBody, buildDeclarativeElementFromTemplate, buildReferenceFromTemplate, buildReferencePickerOneOf, buildResourceFromTemplate, collectSchemaRefs, getCredentialConfigs, getItemConfigs, getItemTemplates, getLightSpecification, getProviderConfigs, getReferenceConfigs, getResourceConfigs, getSpecification, getWorkflowReferenceDefRef, getWorkflowReferenceDefinitionByName, getWorkflowReferenceDefinitionFromSchema, getWorkflowResourceDefRef, getWorkflowSpecificationItemByReference, helpdeskAssignmentSchema, helpdeskTicketEventAuthorSchema, helpdeskTicketEventSchema, helpdeskTicketEventSourceSchema, helpdeskTicketEventStatusChangeSchema, helpdeskTicketFollowersSchema, helpdeskTicketInput, helpdeskTicketMessageSchema, helpdeskTicketPrioritySchema, helpdeskTicketSilo, helpdeskTicketStatusSchema, helpdeskTicketTagIdsSchema, helpdeskTicketUpdateInput, hubspotContactBody, hubspotContactCreatedResponse, hubspotContactDeletedResponse, hubspotContactLookupQueryParams, hubspotContactProperties, inlineSchemaRefs, isWorkflowDomain, rawItemConfigs, rawItemTemplates, rawProviderConfigs, resolveDeclarativeTaskSelf, shopifyCustomerAddressBody, shopifyCustomerBody, shopifyGraphQLAddress, shopifyGraphQLOrderBody, shopifyOrderBody, shopifyProductBody, shopifyProductImageBody, shopifyProductOptionBody, shopifyProductVariantBody, workflowDomainConfigs, workflowReferences, workflowResources };
|