@inploi/plugin-chatbot 7.0.0 → 7.0.2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-a14b193c.cjs");require("@inploi/sdk");exports.chatbotPlugin=e.chatbotPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-4cbee407.cjs");require("@inploi/sdk");exports.chatbotPlugin=e.chatbotPlugin;
@@ -1,4 +1,4 @@
1
- import { Y as a } from "./index-20ae56ee.js";
1
+ import { Y as a } from "./index-803e84b9.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  a as chatbotPlugin
package/dist/rpc.d.ts CHANGED
@@ -11,61 +11,63 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
11
11
  version: number;
12
12
  build: number;
13
13
  nodes: ({
14
+ type: "text";
15
+ id: string;
14
16
  data: {
15
17
  text: string;
16
18
  };
17
- type: "text";
18
- id: string;
19
19
  isHead?: boolean | undefined;
20
20
  nextId?: string | undefined;
21
21
  } | {
22
+ type: "end-flow";
23
+ id: string;
22
24
  data: {
23
25
  systemMessage: string;
24
26
  };
25
- type: "end-flow";
26
- id: string;
27
27
  isHead?: boolean | undefined;
28
28
  nextId?: string | undefined;
29
29
  } | {
30
+ type: "integration-application-submit";
31
+ id: string;
30
32
  data: {
31
33
  integrationId: string;
32
34
  skipConfirmation: boolean;
33
35
  submitLabel: string;
34
- submitKeys: ("all" | string[]) & ("all" | string[] | undefined);
36
+ submitKeys: "all" | string[];
35
37
  key?: string | undefined;
36
38
  };
37
- type: "integration-application-submit";
38
- id: string;
39
39
  isHead?: boolean | undefined;
40
40
  nextId?: string | undefined;
41
41
  } | {
42
+ type: "integration-workflow-get";
43
+ id: string;
42
44
  data: {
43
45
  integrationId: string;
44
46
  };
45
- type: "integration-workflow-get";
46
- id: string;
47
47
  isHead?: boolean | undefined;
48
48
  nextId?: string | undefined;
49
49
  } | {
50
+ type: "link";
51
+ id: string;
50
52
  data: {
51
53
  href: string;
52
54
  cta: string;
53
55
  };
54
- type: "link";
55
- id: string;
56
56
  isHead?: boolean | undefined;
57
57
  nextId?: string | undefined;
58
58
  } | {
59
+ type: "image";
60
+ id: string;
59
61
  data: {
60
62
  url: string;
61
63
  width: number;
62
64
  height: number;
63
65
  };
64
- type: "image";
65
- id: string;
66
66
  isHead?: boolean | undefined;
67
67
  nextId?: string | undefined;
68
68
  } | {
69
+ type: "question-boolean";
70
+ id: string;
69
71
  data: {
70
72
  key: string;
71
73
  question: string;
@@ -73,11 +75,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
73
75
  falseLabel: string;
74
76
  optional: boolean;
75
77
  };
76
- type: "question-boolean";
77
- id: string;
78
78
  isHead?: boolean | undefined;
79
79
  nextId?: string | undefined;
80
80
  } | {
81
+ type: "question-text";
82
+ id: string;
81
83
  data: {
82
84
  key: string;
83
85
  question: string;
@@ -87,11 +89,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
87
89
  maxChars?: number | undefined;
88
90
  minChars?: number | undefined;
89
91
  };
90
- type: "question-text";
91
- id: string;
92
92
  isHead?: boolean | undefined;
93
93
  nextId?: string | undefined;
94
94
  } | {
95
+ type: "question-number";
96
+ id: string;
95
97
  data: {
96
98
  key: string;
97
99
  question: string;
@@ -101,11 +103,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
101
103
  min?: number | undefined;
102
104
  max?: number | undefined;
103
105
  };
104
- type: "question-number";
105
- id: string;
106
106
  isHead?: boolean | undefined;
107
107
  nextId?: string | undefined;
108
108
  } | {
109
+ type: "question-phone";
110
+ id: string;
109
111
  data: {
110
112
  key: string;
111
113
  question: string;
@@ -114,11 +116,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
114
116
  minChars: number;
115
117
  defaultCountryCode: string;
116
118
  };
117
- type: "question-phone";
118
- id: string;
119
119
  isHead?: boolean | undefined;
120
120
  nextId?: string | undefined;
121
121
  } | {
122
+ type: "question-enum";
123
+ id: string;
122
124
  data: {
123
125
  options: {
124
126
  value: string;
@@ -129,11 +131,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
129
131
  maxSelected: number;
130
132
  minSelected: number;
131
133
  };
132
- type: "question-enum";
133
- id: string;
134
134
  isHead?: boolean | undefined;
135
135
  nextId?: string | undefined;
136
136
  } | {
137
+ type: "question-file";
138
+ id: string;
137
139
  data: {
138
140
  key: string;
139
141
  question: string;
@@ -142,11 +144,11 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
142
144
  multiple?: boolean | undefined;
143
145
  maxSizeKb?: number | undefined;
144
146
  };
145
- type: "question-file";
146
- id: string;
147
147
  isHead?: boolean | undefined;
148
148
  nextId?: string | undefined;
149
149
  } | {
150
+ type: "question-address";
151
+ id: string;
150
152
  data: {
151
153
  keys: {
152
154
  line1: string | null;
@@ -162,23 +164,12 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
162
164
  optional: boolean;
163
165
  placeholder?: string | undefined;
164
166
  };
165
- type: "question-address";
166
- id: string;
167
167
  isHead?: boolean | undefined;
168
168
  nextId?: string | undefined;
169
169
  } | {
170
- data: ({
171
- compareKey: string;
172
- compareValue: string;
173
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
174
- } | {
175
- combinator: "and" | "or";
176
- conditions: {
177
- compareKey: string;
178
- compareValue: string;
179
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
180
- }[];
181
- }) & ({
170
+ type: "if-block";
171
+ id: string;
172
+ data: {
182
173
  compareKey: string;
183
174
  compareValue: string;
184
175
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
@@ -189,49 +180,47 @@ export declare const flowByJobIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET
189
180
  compareValue: string;
190
181
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
191
182
  }[];
192
- } | undefined);
193
- type: "if-block";
194
- id: string;
183
+ };
195
184
  isHead?: boolean | undefined;
196
185
  nextId?: string | undefined;
197
186
  branchId?: string | undefined;
198
187
  } | {
188
+ type: "jump";
189
+ id: string;
199
190
  data: {
200
191
  targetId: string;
201
192
  };
202
- type: "jump";
203
- id: string;
204
193
  isHead?: boolean | undefined;
205
194
  nextId?: string | undefined;
206
195
  } | {
196
+ type: "add-submission";
197
+ id: string;
207
198
  data: {
208
199
  value: string;
209
200
  key: string;
210
201
  };
211
- type: "add-submission";
212
- id: string;
213
202
  isHead?: boolean | undefined;
214
203
  nextId?: string | undefined;
215
204
  } | {
205
+ type: "identify";
206
+ id: string;
216
207
  data: {
217
208
  key: string;
209
+ email?: string | undefined;
218
210
  firstName?: string | undefined;
219
211
  lastName?: string | undefined;
220
212
  phoneNumber?: string | undefined;
221
- email?: string | undefined;
222
213
  customTraits?: {
223
214
  value: string;
224
215
  key: string;
225
216
  }[] | undefined;
226
217
  };
227
- type: "identify";
228
- id: string;
229
218
  isHead?: boolean | undefined;
230
219
  nextId?: string | undefined;
231
220
  } | {
232
- data: {};
233
221
  type: "feedback";
234
222
  id: string;
223
+ data: {};
235
224
  isHead?: boolean | undefined;
236
225
  nextId?: string | undefined;
237
226
  })[];
@@ -261,61 +250,63 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
261
250
  version: number;
262
251
  build: number;
263
252
  nodes: ({
253
+ type: "text";
254
+ id: string;
264
255
  data: {
265
256
  text: string;
266
257
  };
267
- type: "text";
268
- id: string;
269
258
  isHead?: boolean | undefined;
270
259
  nextId?: string | undefined;
271
260
  } | {
261
+ type: "end-flow";
262
+ id: string;
272
263
  data: {
273
264
  systemMessage: string;
274
265
  };
275
- type: "end-flow";
276
- id: string;
277
266
  isHead?: boolean | undefined;
278
267
  nextId?: string | undefined;
279
268
  } | {
269
+ type: "integration-application-submit";
270
+ id: string;
280
271
  data: {
281
272
  integrationId: string;
282
273
  skipConfirmation: boolean;
283
274
  submitLabel: string;
284
- submitKeys: ("all" | string[]) & ("all" | string[] | undefined);
275
+ submitKeys: "all" | string[];
285
276
  key?: string | undefined;
286
277
  };
287
- type: "integration-application-submit";
288
- id: string;
289
278
  isHead?: boolean | undefined;
290
279
  nextId?: string | undefined;
291
280
  } | {
281
+ type: "integration-workflow-get";
282
+ id: string;
292
283
  data: {
293
284
  integrationId: string;
294
285
  };
295
- type: "integration-workflow-get";
296
- id: string;
297
286
  isHead?: boolean | undefined;
298
287
  nextId?: string | undefined;
299
288
  } | {
289
+ type: "link";
290
+ id: string;
300
291
  data: {
301
292
  href: string;
302
293
  cta: string;
303
294
  };
304
- type: "link";
305
- id: string;
306
295
  isHead?: boolean | undefined;
307
296
  nextId?: string | undefined;
308
297
  } | {
298
+ type: "image";
299
+ id: string;
309
300
  data: {
310
301
  url: string;
311
302
  width: number;
312
303
  height: number;
313
304
  };
314
- type: "image";
315
- id: string;
316
305
  isHead?: boolean | undefined;
317
306
  nextId?: string | undefined;
318
307
  } | {
308
+ type: "question-boolean";
309
+ id: string;
319
310
  data: {
320
311
  key: string;
321
312
  question: string;
@@ -323,11 +314,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
323
314
  falseLabel: string;
324
315
  optional: boolean;
325
316
  };
326
- type: "question-boolean";
327
- id: string;
328
317
  isHead?: boolean | undefined;
329
318
  nextId?: string | undefined;
330
319
  } | {
320
+ type: "question-text";
321
+ id: string;
331
322
  data: {
332
323
  key: string;
333
324
  question: string;
@@ -337,11 +328,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
337
328
  maxChars?: number | undefined;
338
329
  minChars?: number | undefined;
339
330
  };
340
- type: "question-text";
341
- id: string;
342
331
  isHead?: boolean | undefined;
343
332
  nextId?: string | undefined;
344
333
  } | {
334
+ type: "question-number";
335
+ id: string;
345
336
  data: {
346
337
  key: string;
347
338
  question: string;
@@ -351,11 +342,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
351
342
  min?: number | undefined;
352
343
  max?: number | undefined;
353
344
  };
354
- type: "question-number";
355
- id: string;
356
345
  isHead?: boolean | undefined;
357
346
  nextId?: string | undefined;
358
347
  } | {
348
+ type: "question-phone";
349
+ id: string;
359
350
  data: {
360
351
  key: string;
361
352
  question: string;
@@ -364,11 +355,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
364
355
  minChars: number;
365
356
  defaultCountryCode: string;
366
357
  };
367
- type: "question-phone";
368
- id: string;
369
358
  isHead?: boolean | undefined;
370
359
  nextId?: string | undefined;
371
360
  } | {
361
+ type: "question-enum";
362
+ id: string;
372
363
  data: {
373
364
  options: {
374
365
  value: string;
@@ -379,11 +370,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
379
370
  maxSelected: number;
380
371
  minSelected: number;
381
372
  };
382
- type: "question-enum";
383
- id: string;
384
373
  isHead?: boolean | undefined;
385
374
  nextId?: string | undefined;
386
375
  } | {
376
+ type: "question-file";
377
+ id: string;
387
378
  data: {
388
379
  key: string;
389
380
  question: string;
@@ -392,11 +383,11 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
392
383
  multiple?: boolean | undefined;
393
384
  maxSizeKb?: number | undefined;
394
385
  };
395
- type: "question-file";
396
- id: string;
397
386
  isHead?: boolean | undefined;
398
387
  nextId?: string | undefined;
399
388
  } | {
389
+ type: "question-address";
390
+ id: string;
400
391
  data: {
401
392
  keys: {
402
393
  line1: string | null;
@@ -412,23 +403,12 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
412
403
  optional: boolean;
413
404
  placeholder?: string | undefined;
414
405
  };
415
- type: "question-address";
416
- id: string;
417
406
  isHead?: boolean | undefined;
418
407
  nextId?: string | undefined;
419
408
  } | {
420
- data: ({
421
- compareKey: string;
422
- compareValue: string;
423
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
424
- } | {
425
- combinator: "and" | "or";
426
- conditions: {
427
- compareKey: string;
428
- compareValue: string;
429
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
430
- }[];
431
- }) & ({
409
+ type: "if-block";
410
+ id: string;
411
+ data: {
432
412
  compareKey: string;
433
413
  compareValue: string;
434
414
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
@@ -439,49 +419,47 @@ export declare const flowByIdEndpoint: import('@inploi/sdk').RpcEndpoint<"GET",
439
419
  compareValue: string;
440
420
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
441
421
  }[];
442
- } | undefined);
443
- type: "if-block";
444
- id: string;
422
+ };
445
423
  isHead?: boolean | undefined;
446
424
  nextId?: string | undefined;
447
425
  branchId?: string | undefined;
448
426
  } | {
427
+ type: "jump";
428
+ id: string;
449
429
  data: {
450
430
  targetId: string;
451
431
  };
452
- type: "jump";
453
- id: string;
454
432
  isHead?: boolean | undefined;
455
433
  nextId?: string | undefined;
456
434
  } | {
435
+ type: "add-submission";
436
+ id: string;
457
437
  data: {
458
438
  value: string;
459
439
  key: string;
460
440
  };
461
- type: "add-submission";
462
- id: string;
463
441
  isHead?: boolean | undefined;
464
442
  nextId?: string | undefined;
465
443
  } | {
444
+ type: "identify";
445
+ id: string;
466
446
  data: {
467
447
  key: string;
448
+ email?: string | undefined;
468
449
  firstName?: string | undefined;
469
450
  lastName?: string | undefined;
470
451
  phoneNumber?: string | undefined;
471
- email?: string | undefined;
472
452
  customTraits?: {
473
453
  value: string;
474
454
  key: string;
475
455
  }[] | undefined;
476
456
  };
477
- type: "identify";
478
- id: string;
479
457
  isHead?: boolean | undefined;
480
458
  nextId?: string | undefined;
481
459
  } | {
482
- data: {};
483
460
  type: "feedback";
484
461
  id: string;
462
+ data: {};
485
463
  isHead?: boolean | undefined;
486
464
  nextId?: string | undefined;
487
465
  })[];