@marketrix.ai/widget 3.8.606 → 4.0.97
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/src/sdk/contract.d.ts +20 -218
- package/dist/src/sdk/contracts/activityLog.d.ts +48 -314
- package/dist/src/sdk/contracts/common.d.ts +35 -38
- package/dist/src/sdk/contracts/entities.d.ts +78 -101
- package/dist/src/sdk/contracts/widget.d.ts +116 -77
- package/dist/src/sdk/index.d.ts +21 -219
- package/dist/src/services/ChatService.d.ts +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- package/dist/widget.mjs +64 -64
- package/package.json +12 -15
- package/dist/src/sdk/contracts/application.d.ts +0 -542
- package/dist/src/test/setup.d.ts +0 -20
|
@@ -45,7 +45,6 @@ export declare const UserEntitySchema: z.ZodObject<{
|
|
|
45
45
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
48
|
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
49
|
last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
51
50
|
auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -77,8 +76,8 @@ export declare const WorkspaceEntitySchema: z.ZodObject<{
|
|
|
77
76
|
}>;
|
|
78
77
|
ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
79
78
|
external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
-
slack_webhook_configured: z.
|
|
81
|
-
notify_all_members_on_question: z.
|
|
79
|
+
slack_webhook_configured: z.ZodBoolean;
|
|
80
|
+
notify_all_members_on_question: z.ZodBoolean;
|
|
82
81
|
}, z.core.$strip>;
|
|
83
82
|
export type WorkspaceData = z.infer<typeof WorkspaceEntitySchema>;
|
|
84
83
|
export declare const ApplicationEntitySchema: z.ZodObject<{
|
|
@@ -93,9 +92,9 @@ export declare const ApplicationEntitySchema: z.ZodObject<{
|
|
|
93
92
|
website: "website";
|
|
94
93
|
}>;
|
|
95
94
|
url: z.ZodString;
|
|
96
|
-
username: z.
|
|
97
|
-
password: z.
|
|
98
|
-
allowed_domains: z.
|
|
95
|
+
username: z.ZodNullable<z.ZodString>;
|
|
96
|
+
password: z.ZodNullable<z.ZodString>;
|
|
97
|
+
allowed_domains: z.ZodArray<z.ZodString>;
|
|
99
98
|
}, z.core.$strip>;
|
|
100
99
|
export type ApplicationData = z.infer<typeof ApplicationEntitySchema>;
|
|
101
100
|
/** Used for all API responses; password is write-only and never returned to clients. */
|
|
@@ -111,8 +110,8 @@ export declare const ApplicationReadSchema: z.ZodObject<{
|
|
|
111
110
|
name: z.ZodString;
|
|
112
111
|
url: z.ZodString;
|
|
113
112
|
workspace_id: z.ZodNumber;
|
|
114
|
-
username: z.
|
|
115
|
-
allowed_domains: z.
|
|
113
|
+
username: z.ZodNullable<z.ZodString>;
|
|
114
|
+
allowed_domains: z.ZodArray<z.ZodString>;
|
|
116
115
|
}, z.core.$strip>;
|
|
117
116
|
export type ApplicationReadData = z.infer<typeof ApplicationReadSchema>;
|
|
118
117
|
export declare const WidgetChipSchema: z.ZodObject<{
|
|
@@ -261,13 +260,58 @@ export declare const WidgetEntitySchema: z.ZodObject<{
|
|
|
261
260
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
261
|
}, z.core.$strip>;
|
|
263
262
|
export type WidgetData = z.infer<typeof WidgetEntitySchema>;
|
|
263
|
+
export declare const WidgetPublicSchema: z.ZodObject<{
|
|
264
|
+
application_id: z.ZodNumber;
|
|
265
|
+
status: z.ZodEnum<{
|
|
266
|
+
created: "created";
|
|
267
|
+
active: "active";
|
|
268
|
+
suspended: "suspended";
|
|
269
|
+
}>;
|
|
270
|
+
settings: z.ZodObject<{
|
|
271
|
+
widget_enabled: z.ZodBoolean;
|
|
272
|
+
widget_appearance: z.ZodEnum<{
|
|
273
|
+
default: "default";
|
|
274
|
+
hidden: "hidden";
|
|
275
|
+
}>;
|
|
276
|
+
widget_position: z.ZodEnum<{
|
|
277
|
+
bottom_left: "bottom_left";
|
|
278
|
+
bottom_right: "bottom_right";
|
|
279
|
+
top_left: "top_left";
|
|
280
|
+
top_right: "top_right";
|
|
281
|
+
}>;
|
|
282
|
+
widget_header: z.ZodString;
|
|
283
|
+
widget_body: z.ZodString;
|
|
284
|
+
widget_greeting: z.ZodString;
|
|
285
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
286
|
+
widget_recording: z.ZodBoolean;
|
|
287
|
+
widget_feature_tell: z.ZodBoolean;
|
|
288
|
+
widget_feature_show: z.ZodBoolean;
|
|
289
|
+
widget_feature_do: z.ZodBoolean;
|
|
290
|
+
widget_background_color: z.ZodString;
|
|
291
|
+
widget_text_color: z.ZodString;
|
|
292
|
+
widget_border_color: z.ZodString;
|
|
293
|
+
widget_accent_color: z.ZodString;
|
|
294
|
+
widget_secondary_color: z.ZodString;
|
|
295
|
+
widget_border_radius: z.ZodString;
|
|
296
|
+
widget_font_size: z.ZodString;
|
|
297
|
+
widget_width: z.ZodString;
|
|
298
|
+
widget_height: z.ZodString;
|
|
299
|
+
widget_animation_duration: z.ZodString;
|
|
300
|
+
widget_fade_duration: z.ZodString;
|
|
301
|
+
widget_chips: z.ZodArray<z.ZodObject<{
|
|
302
|
+
chip_mode: z.ZodEnum<{
|
|
303
|
+
tell: "tell";
|
|
304
|
+
show: "show";
|
|
305
|
+
do: "do";
|
|
306
|
+
}>;
|
|
307
|
+
chip_text: z.ZodString;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type WidgetPublicData = z.infer<typeof WidgetPublicSchema>;
|
|
264
312
|
export declare const ActivityLogTypeSchema: z.ZodEnum<{
|
|
265
|
-
user_login: "user_login";
|
|
266
|
-
url_visit: "url_visit";
|
|
267
313
|
update_workspace: "update_workspace";
|
|
268
|
-
create_user: "create_user";
|
|
269
314
|
update_user: "update_user";
|
|
270
|
-
delete_user: "delete_user";
|
|
271
315
|
create_application: "create_application";
|
|
272
316
|
update_application: "update_application";
|
|
273
317
|
delete_application: "delete_application";
|
|
@@ -289,22 +333,15 @@ export declare const ActivityLogTypeSchema: z.ZodEnum<{
|
|
|
289
333
|
payment_succeeded: "payment_succeeded";
|
|
290
334
|
payment_failed: "payment_failed";
|
|
291
335
|
widget_question: "widget_question";
|
|
292
|
-
qa_run_started: "qa_run_started";
|
|
293
336
|
start_simulation: "start_simulation";
|
|
294
337
|
create_workflow: "create_workflow";
|
|
295
338
|
update_workflow: "update_workflow";
|
|
296
339
|
delete_workflow: "delete_workflow";
|
|
297
340
|
toggle_workflow: "toggle_workflow";
|
|
298
341
|
slack_command: "slack_command";
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
duplicate_form: "duplicate_form";
|
|
303
|
-
publish_form: "publish_form";
|
|
304
|
-
unpublish_form: "unpublish_form";
|
|
305
|
-
archive_form: "archive_form";
|
|
306
|
-
submit_form_response: "submit_form_response";
|
|
307
|
-
delete_form_response: "delete_form_response";
|
|
342
|
+
publish_survey: "publish_survey";
|
|
343
|
+
unpublish_survey: "unpublish_survey";
|
|
344
|
+
delete_survey_response: "delete_survey_response";
|
|
308
345
|
}>;
|
|
309
346
|
export type ActivityLogType = z.infer<typeof ActivityLogTypeSchema>;
|
|
310
347
|
export declare const ActivityLogMetadataSchema: z.ZodObject<{
|
|
@@ -327,12 +364,8 @@ export declare const ActivityLogEntitySchema: z.ZodObject<{
|
|
|
327
364
|
workspace_id: z.ZodNumber;
|
|
328
365
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
329
366
|
type: z.ZodEnum<{
|
|
330
|
-
user_login: "user_login";
|
|
331
|
-
url_visit: "url_visit";
|
|
332
367
|
update_workspace: "update_workspace";
|
|
333
|
-
create_user: "create_user";
|
|
334
368
|
update_user: "update_user";
|
|
335
|
-
delete_user: "delete_user";
|
|
336
369
|
create_application: "create_application";
|
|
337
370
|
update_application: "update_application";
|
|
338
371
|
delete_application: "delete_application";
|
|
@@ -354,22 +387,15 @@ export declare const ActivityLogEntitySchema: z.ZodObject<{
|
|
|
354
387
|
payment_succeeded: "payment_succeeded";
|
|
355
388
|
payment_failed: "payment_failed";
|
|
356
389
|
widget_question: "widget_question";
|
|
357
|
-
qa_run_started: "qa_run_started";
|
|
358
390
|
start_simulation: "start_simulation";
|
|
359
391
|
create_workflow: "create_workflow";
|
|
360
392
|
update_workflow: "update_workflow";
|
|
361
393
|
delete_workflow: "delete_workflow";
|
|
362
394
|
toggle_workflow: "toggle_workflow";
|
|
363
395
|
slack_command: "slack_command";
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
duplicate_form: "duplicate_form";
|
|
368
|
-
publish_form: "publish_form";
|
|
369
|
-
unpublish_form: "unpublish_form";
|
|
370
|
-
archive_form: "archive_form";
|
|
371
|
-
submit_form_response: "submit_form_response";
|
|
372
|
-
delete_form_response: "delete_form_response";
|
|
396
|
+
publish_survey: "publish_survey";
|
|
397
|
+
unpublish_survey: "unpublish_survey";
|
|
398
|
+
delete_survey_response: "delete_survey_response";
|
|
373
399
|
}>;
|
|
374
400
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
375
401
|
details: z.ZodOptional<z.ZodString>;
|
|
@@ -386,68 +412,19 @@ export declare const ActivityLogEntitySchema: z.ZodObject<{
|
|
|
386
412
|
}, z.core.$loose>>;
|
|
387
413
|
}, z.core.$strip>;
|
|
388
414
|
export type ActivityLogData = z.infer<typeof ActivityLogEntitySchema>;
|
|
389
|
-
export declare const
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
widget_type: z.ZodOptional<z.ZodString>;
|
|
406
|
-
created_by: z.ZodOptional<z.ZodNumber>;
|
|
407
|
-
}, z.core.$loose>>>;
|
|
408
|
-
type: z.ZodEnum<{
|
|
409
|
-
user_login: "user_login";
|
|
410
|
-
url_visit: "url_visit";
|
|
411
|
-
update_workspace: "update_workspace";
|
|
412
|
-
create_user: "create_user";
|
|
413
|
-
update_user: "update_user";
|
|
414
|
-
delete_user: "delete_user";
|
|
415
|
-
create_application: "create_application";
|
|
416
|
-
update_application: "update_application";
|
|
417
|
-
delete_application: "delete_application";
|
|
418
|
-
create_widget: "create_widget";
|
|
419
|
-
update_widget: "update_widget";
|
|
420
|
-
delete_widget: "delete_widget";
|
|
421
|
-
create_knowledge: "create_knowledge";
|
|
422
|
-
update_knowledge: "update_knowledge";
|
|
423
|
-
delete_knowledge: "delete_knowledge";
|
|
424
|
-
request_membership: "request_membership";
|
|
425
|
-
invite_user: "invite_user";
|
|
426
|
-
create_workspace: "create_workspace";
|
|
427
|
-
trial_started: "trial_started";
|
|
428
|
-
trial_ending_soon: "trial_ending_soon";
|
|
429
|
-
trial_ended: "trial_ended";
|
|
430
|
-
subscription_created: "subscription_created";
|
|
431
|
-
subscription_canceled: "subscription_canceled";
|
|
432
|
-
plan_changed: "plan_changed";
|
|
433
|
-
payment_succeeded: "payment_succeeded";
|
|
434
|
-
payment_failed: "payment_failed";
|
|
435
|
-
widget_question: "widget_question";
|
|
436
|
-
qa_run_started: "qa_run_started";
|
|
437
|
-
start_simulation: "start_simulation";
|
|
438
|
-
create_workflow: "create_workflow";
|
|
439
|
-
update_workflow: "update_workflow";
|
|
440
|
-
delete_workflow: "delete_workflow";
|
|
441
|
-
toggle_workflow: "toggle_workflow";
|
|
442
|
-
slack_command: "slack_command";
|
|
443
|
-
create_form: "create_form";
|
|
444
|
-
update_form: "update_form";
|
|
445
|
-
delete_form: "delete_form";
|
|
446
|
-
duplicate_form: "duplicate_form";
|
|
447
|
-
publish_form: "publish_form";
|
|
448
|
-
unpublish_form: "unpublish_form";
|
|
449
|
-
archive_form: "archive_form";
|
|
450
|
-
submit_form_response: "submit_form_response";
|
|
451
|
-
delete_form_response: "delete_form_response";
|
|
452
|
-
}>;
|
|
453
|
-
}, z.core.$strip>;
|
|
415
|
+
export declare const WidgetQuestionLogSchema: z.ZodObject<{
|
|
416
|
+
type: z.ZodLiteral<"widget_question">;
|
|
417
|
+
metadata: z.ZodObject<{
|
|
418
|
+
question: z.ZodString;
|
|
419
|
+
mode: z.ZodEnum<{
|
|
420
|
+
tell: "tell";
|
|
421
|
+
show: "show";
|
|
422
|
+
do: "do";
|
|
423
|
+
}>;
|
|
424
|
+
chat_id: z.ZodString;
|
|
425
|
+
timestamp: z.ZodString;
|
|
426
|
+
marketrix_id: z.ZodString;
|
|
427
|
+
marketrix_key: z.ZodString;
|
|
428
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
}, z.core.$strict>;
|
|
430
|
+
}, z.core.$strict>;
|
|
@@ -1,77 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
-
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
5
|
-
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
6
|
-
slug: z.ZodString;
|
|
7
|
-
type: z.ZodEnum<{
|
|
8
|
-
app: "app";
|
|
9
|
-
website: "website";
|
|
10
|
-
}>;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
url: z.ZodString;
|
|
13
|
-
workspace_id: z.ZodNumber;
|
|
14
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
|
-
widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
19
|
-
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
20
|
-
application_id: z.ZodNumber;
|
|
21
|
-
type: z.ZodEnum<{
|
|
22
|
-
widget: "widget";
|
|
23
|
-
}>;
|
|
24
|
-
settings: z.ZodObject<{
|
|
25
|
-
widget_enabled: z.ZodBoolean;
|
|
26
|
-
widget_appearance: z.ZodEnum<{
|
|
27
|
-
default: "default";
|
|
28
|
-
hidden: "hidden";
|
|
29
|
-
}>;
|
|
30
|
-
widget_position: z.ZodEnum<{
|
|
31
|
-
bottom_left: "bottom_left";
|
|
32
|
-
bottom_right: "bottom_right";
|
|
33
|
-
top_left: "top_left";
|
|
34
|
-
top_right: "top_right";
|
|
35
|
-
}>;
|
|
36
|
-
widget_header: z.ZodString;
|
|
37
|
-
widget_body: z.ZodString;
|
|
38
|
-
widget_greeting: z.ZodString;
|
|
39
|
-
widget_greeting_toast: z.ZodBoolean;
|
|
40
|
-
widget_recording: z.ZodBoolean;
|
|
41
|
-
widget_feature_tell: z.ZodBoolean;
|
|
42
|
-
widget_feature_show: z.ZodBoolean;
|
|
43
|
-
widget_feature_do: z.ZodBoolean;
|
|
44
|
-
widget_background_color: z.ZodString;
|
|
45
|
-
widget_text_color: z.ZodString;
|
|
46
|
-
widget_border_color: z.ZodString;
|
|
47
|
-
widget_accent_color: z.ZodString;
|
|
48
|
-
widget_secondary_color: z.ZodString;
|
|
49
|
-
widget_border_radius: z.ZodString;
|
|
50
|
-
widget_font_size: z.ZodString;
|
|
51
|
-
widget_width: z.ZodString;
|
|
52
|
-
widget_height: z.ZodString;
|
|
53
|
-
widget_animation_duration: z.ZodString;
|
|
54
|
-
widget_fade_duration: z.ZodString;
|
|
55
|
-
widget_chips: z.ZodArray<z.ZodObject<{
|
|
56
|
-
chip_mode: z.ZodEnum<{
|
|
57
|
-
tell: "tell";
|
|
58
|
-
show: "show";
|
|
59
|
-
do: "do";
|
|
60
|
-
}>;
|
|
61
|
-
chip_text: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
status: z.ZodEnum<{
|
|
65
|
-
created: "created";
|
|
66
|
-
active: "active";
|
|
67
|
-
suspended: "suspended";
|
|
68
|
-
}>;
|
|
69
|
-
marketrix_id: z.ZodString;
|
|
70
|
-
marketrix_key: z.ZodString;
|
|
71
|
-
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
}, z.core.$strip>>>;
|
|
73
|
-
}, z.core.$strip>;
|
|
74
|
-
export type ApplicationWithWidgetsData = z.infer<typeof ApplicationWithWidgetsSchema>;
|
|
75
2
|
export declare const WidgetCreateSchema: z.ZodObject<{
|
|
76
3
|
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
77
4
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -375,8 +302,6 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
375
302
|
widget: "widget";
|
|
376
303
|
}>>;
|
|
377
304
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
378
|
-
marketrix_id: z.ZodOptional<z.ZodString>;
|
|
379
|
-
marketrix_key: z.ZodOptional<z.ZodString>;
|
|
380
305
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
381
306
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
382
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -441,6 +366,64 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
441
366
|
limit: z.ZodNumber;
|
|
442
367
|
offset: z.ZodNumber;
|
|
443
368
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
369
|
+
export declare const widgetPublicSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
370
|
+
marketrix_id: z.ZodString;
|
|
371
|
+
marketrix_key: z.ZodString;
|
|
372
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
373
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
items: z.ZodArray<z.ZodObject<{
|
|
376
|
+
application_id: z.ZodNumber;
|
|
377
|
+
status: z.ZodEnum<{
|
|
378
|
+
created: "created";
|
|
379
|
+
active: "active";
|
|
380
|
+
suspended: "suspended";
|
|
381
|
+
}>;
|
|
382
|
+
settings: z.ZodObject<{
|
|
383
|
+
widget_enabled: z.ZodBoolean;
|
|
384
|
+
widget_appearance: z.ZodEnum<{
|
|
385
|
+
default: "default";
|
|
386
|
+
hidden: "hidden";
|
|
387
|
+
}>;
|
|
388
|
+
widget_position: z.ZodEnum<{
|
|
389
|
+
bottom_left: "bottom_left";
|
|
390
|
+
bottom_right: "bottom_right";
|
|
391
|
+
top_left: "top_left";
|
|
392
|
+
top_right: "top_right";
|
|
393
|
+
}>;
|
|
394
|
+
widget_header: z.ZodString;
|
|
395
|
+
widget_body: z.ZodString;
|
|
396
|
+
widget_greeting: z.ZodString;
|
|
397
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
398
|
+
widget_recording: z.ZodBoolean;
|
|
399
|
+
widget_feature_tell: z.ZodBoolean;
|
|
400
|
+
widget_feature_show: z.ZodBoolean;
|
|
401
|
+
widget_feature_do: z.ZodBoolean;
|
|
402
|
+
widget_background_color: z.ZodString;
|
|
403
|
+
widget_text_color: z.ZodString;
|
|
404
|
+
widget_border_color: z.ZodString;
|
|
405
|
+
widget_accent_color: z.ZodString;
|
|
406
|
+
widget_secondary_color: z.ZodString;
|
|
407
|
+
widget_border_radius: z.ZodString;
|
|
408
|
+
widget_font_size: z.ZodString;
|
|
409
|
+
widget_width: z.ZodString;
|
|
410
|
+
widget_height: z.ZodString;
|
|
411
|
+
widget_animation_duration: z.ZodString;
|
|
412
|
+
widget_fade_duration: z.ZodString;
|
|
413
|
+
widget_chips: z.ZodArray<z.ZodObject<{
|
|
414
|
+
chip_mode: z.ZodEnum<{
|
|
415
|
+
tell: "tell";
|
|
416
|
+
show: "show";
|
|
417
|
+
do: "do";
|
|
418
|
+
}>;
|
|
419
|
+
chip_text: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
}, z.core.$strip>>;
|
|
423
|
+
total: z.ZodNumber;
|
|
424
|
+
limit: z.ZodNumber;
|
|
425
|
+
offset: z.ZodNumber;
|
|
426
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
444
427
|
export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
445
428
|
type: z.ZodEnum<{
|
|
446
429
|
widget: "widget";
|
|
@@ -823,8 +806,6 @@ export declare const widgetRoutes: {
|
|
|
823
806
|
widget: "widget";
|
|
824
807
|
}>>;
|
|
825
808
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
826
|
-
marketrix_id: z.ZodOptional<z.ZodString>;
|
|
827
|
-
marketrix_key: z.ZodOptional<z.ZodString>;
|
|
828
809
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
829
810
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
830
811
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -889,6 +870,64 @@ export declare const widgetRoutes: {
|
|
|
889
870
|
limit: z.ZodNumber;
|
|
890
871
|
offset: z.ZodNumber;
|
|
891
872
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
873
|
+
widgetPublicSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
874
|
+
marketrix_id: z.ZodString;
|
|
875
|
+
marketrix_key: z.ZodString;
|
|
876
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
877
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
items: z.ZodArray<z.ZodObject<{
|
|
880
|
+
application_id: z.ZodNumber;
|
|
881
|
+
status: z.ZodEnum<{
|
|
882
|
+
created: "created";
|
|
883
|
+
active: "active";
|
|
884
|
+
suspended: "suspended";
|
|
885
|
+
}>;
|
|
886
|
+
settings: z.ZodObject<{
|
|
887
|
+
widget_enabled: z.ZodBoolean;
|
|
888
|
+
widget_appearance: z.ZodEnum<{
|
|
889
|
+
default: "default";
|
|
890
|
+
hidden: "hidden";
|
|
891
|
+
}>;
|
|
892
|
+
widget_position: z.ZodEnum<{
|
|
893
|
+
bottom_left: "bottom_left";
|
|
894
|
+
bottom_right: "bottom_right";
|
|
895
|
+
top_left: "top_left";
|
|
896
|
+
top_right: "top_right";
|
|
897
|
+
}>;
|
|
898
|
+
widget_header: z.ZodString;
|
|
899
|
+
widget_body: z.ZodString;
|
|
900
|
+
widget_greeting: z.ZodString;
|
|
901
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
902
|
+
widget_recording: z.ZodBoolean;
|
|
903
|
+
widget_feature_tell: z.ZodBoolean;
|
|
904
|
+
widget_feature_show: z.ZodBoolean;
|
|
905
|
+
widget_feature_do: z.ZodBoolean;
|
|
906
|
+
widget_background_color: z.ZodString;
|
|
907
|
+
widget_text_color: z.ZodString;
|
|
908
|
+
widget_border_color: z.ZodString;
|
|
909
|
+
widget_accent_color: z.ZodString;
|
|
910
|
+
widget_secondary_color: z.ZodString;
|
|
911
|
+
widget_border_radius: z.ZodString;
|
|
912
|
+
widget_font_size: z.ZodString;
|
|
913
|
+
widget_width: z.ZodString;
|
|
914
|
+
widget_height: z.ZodString;
|
|
915
|
+
widget_animation_duration: z.ZodString;
|
|
916
|
+
widget_fade_duration: z.ZodString;
|
|
917
|
+
widget_chips: z.ZodArray<z.ZodObject<{
|
|
918
|
+
chip_mode: z.ZodEnum<{
|
|
919
|
+
tell: "tell";
|
|
920
|
+
show: "show";
|
|
921
|
+
do: "do";
|
|
922
|
+
}>;
|
|
923
|
+
chip_text: z.ZodString;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
}, z.core.$strip>>;
|
|
927
|
+
total: z.ZodNumber;
|
|
928
|
+
limit: z.ZodNumber;
|
|
929
|
+
offset: z.ZodNumber;
|
|
930
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
892
931
|
widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
893
932
|
type: z.ZodEnum<{
|
|
894
933
|
widget: "widget";
|