@authhero/adapter-interfaces 0.105.0 → 0.108.0
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/README.md +112 -0
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +1027 -52
- package/dist/adapter-interfaces.mjs +423 -365
- package/package.json +1 -1
|
@@ -10063,7 +10063,11 @@ export type FormControl = z.infer<typeof formControlSchema>;
|
|
|
10063
10063
|
export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type", [
|
|
10064
10064
|
z.ZodObject<{
|
|
10065
10065
|
id: z.ZodString;
|
|
10066
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10067
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10068
|
+
} & {
|
|
10066
10069
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10070
|
+
} & {
|
|
10067
10071
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
10068
10072
|
config: z.ZodObject<{
|
|
10069
10073
|
content: z.ZodString;
|
|
@@ -10072,8 +10076,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10072
10076
|
}, {
|
|
10073
10077
|
content: string;
|
|
10074
10078
|
}>;
|
|
10075
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10076
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10077
10079
|
}, "strip", z.ZodTypeAny, {
|
|
10078
10080
|
type: "RICH_TEXT";
|
|
10079
10081
|
id: string;
|
|
@@ -10093,9 +10095,15 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10093
10095
|
order?: number | undefined;
|
|
10094
10096
|
visible?: boolean | undefined;
|
|
10095
10097
|
}>,
|
|
10096
|
-
z.ZodObject<{
|
|
10098
|
+
z.ZodObject<Omit<{
|
|
10097
10099
|
id: z.ZodString;
|
|
10100
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10101
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10102
|
+
} & {
|
|
10098
10103
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10104
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10105
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10106
|
+
}, "sensitive"> & {
|
|
10099
10107
|
type: z.ZodLiteral<"LEGAL">;
|
|
10100
10108
|
config: z.ZodObject<{
|
|
10101
10109
|
text: z.ZodString;
|
|
@@ -10107,9 +10115,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10107
10115
|
text: string;
|
|
10108
10116
|
html?: boolean | undefined;
|
|
10109
10117
|
}>;
|
|
10110
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10111
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10112
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10113
10118
|
}, "strip", z.ZodTypeAny, {
|
|
10114
10119
|
type: "LEGAL";
|
|
10115
10120
|
id: string;
|
|
@@ -10135,7 +10140,13 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10135
10140
|
}>,
|
|
10136
10141
|
z.ZodObject<{
|
|
10137
10142
|
id: z.ZodString;
|
|
10143
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10144
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10145
|
+
} & {
|
|
10138
10146
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10147
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10148
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10149
|
+
} & {
|
|
10139
10150
|
type: z.ZodLiteral<"TEXT">;
|
|
10140
10151
|
config: z.ZodObject<{
|
|
10141
10152
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -10147,10 +10158,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10147
10158
|
placeholder?: string | undefined;
|
|
10148
10159
|
multiline?: boolean | undefined;
|
|
10149
10160
|
}>;
|
|
10150
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10151
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10152
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10153
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10154
10161
|
}, "strip", z.ZodTypeAny, {
|
|
10155
10162
|
type: "TEXT";
|
|
10156
10163
|
id: string;
|
|
@@ -10178,7 +10185,11 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10178
10185
|
}>,
|
|
10179
10186
|
z.ZodObject<{
|
|
10180
10187
|
id: z.ZodString;
|
|
10188
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10189
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10190
|
+
} & {
|
|
10181
10191
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10192
|
+
} & {
|
|
10182
10193
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
10183
10194
|
config: z.ZodObject<{
|
|
10184
10195
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -10187,8 +10198,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10187
10198
|
}, {
|
|
10188
10199
|
text?: string | undefined;
|
|
10189
10200
|
}>;
|
|
10190
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10191
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10192
10201
|
}, "strip", z.ZodTypeAny, {
|
|
10193
10202
|
type: "NEXT_BUTTON";
|
|
10194
10203
|
id: string;
|
|
@@ -10207,6 +10216,141 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10207
10216
|
category?: "BLOCK" | undefined;
|
|
10208
10217
|
order?: number | undefined;
|
|
10209
10218
|
visible?: boolean | undefined;
|
|
10219
|
+
}>,
|
|
10220
|
+
z.ZodObject<{
|
|
10221
|
+
id: z.ZodString;
|
|
10222
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10223
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10224
|
+
} & {
|
|
10225
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10226
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10227
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10228
|
+
} & {
|
|
10229
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
10230
|
+
config: z.ZodObject<{
|
|
10231
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10232
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10233
|
+
}, "strip", z.ZodTypeAny, {
|
|
10234
|
+
label?: string | undefined;
|
|
10235
|
+
placeholder?: string | undefined;
|
|
10236
|
+
}, {
|
|
10237
|
+
label?: string | undefined;
|
|
10238
|
+
placeholder?: string | undefined;
|
|
10239
|
+
}>;
|
|
10240
|
+
}, "strip", z.ZodTypeAny, {
|
|
10241
|
+
type: "EMAIL";
|
|
10242
|
+
id: string;
|
|
10243
|
+
config: {
|
|
10244
|
+
label?: string | undefined;
|
|
10245
|
+
placeholder?: string | undefined;
|
|
10246
|
+
};
|
|
10247
|
+
visible: boolean;
|
|
10248
|
+
required?: boolean | undefined;
|
|
10249
|
+
category?: "FIELD" | undefined;
|
|
10250
|
+
sensitive?: boolean | undefined;
|
|
10251
|
+
order?: number | undefined;
|
|
10252
|
+
}, {
|
|
10253
|
+
type: "EMAIL";
|
|
10254
|
+
id: string;
|
|
10255
|
+
config: {
|
|
10256
|
+
label?: string | undefined;
|
|
10257
|
+
placeholder?: string | undefined;
|
|
10258
|
+
};
|
|
10259
|
+
required?: boolean | undefined;
|
|
10260
|
+
category?: "FIELD" | undefined;
|
|
10261
|
+
sensitive?: boolean | undefined;
|
|
10262
|
+
order?: number | undefined;
|
|
10263
|
+
visible?: boolean | undefined;
|
|
10264
|
+
}>,
|
|
10265
|
+
z.ZodObject<{
|
|
10266
|
+
id: z.ZodString;
|
|
10267
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10268
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10269
|
+
} & {
|
|
10270
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10271
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10272
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10273
|
+
} & {
|
|
10274
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
10275
|
+
config: z.ZodObject<{
|
|
10276
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10277
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10278
|
+
}, "strip", z.ZodTypeAny, {
|
|
10279
|
+
label?: string | undefined;
|
|
10280
|
+
placeholder?: string | undefined;
|
|
10281
|
+
}, {
|
|
10282
|
+
label?: string | undefined;
|
|
10283
|
+
placeholder?: string | undefined;
|
|
10284
|
+
}>;
|
|
10285
|
+
}, "strip", z.ZodTypeAny, {
|
|
10286
|
+
type: "NUMBER";
|
|
10287
|
+
id: string;
|
|
10288
|
+
config: {
|
|
10289
|
+
label?: string | undefined;
|
|
10290
|
+
placeholder?: string | undefined;
|
|
10291
|
+
};
|
|
10292
|
+
visible: boolean;
|
|
10293
|
+
required?: boolean | undefined;
|
|
10294
|
+
category?: "FIELD" | undefined;
|
|
10295
|
+
sensitive?: boolean | undefined;
|
|
10296
|
+
order?: number | undefined;
|
|
10297
|
+
}, {
|
|
10298
|
+
type: "NUMBER";
|
|
10299
|
+
id: string;
|
|
10300
|
+
config: {
|
|
10301
|
+
label?: string | undefined;
|
|
10302
|
+
placeholder?: string | undefined;
|
|
10303
|
+
};
|
|
10304
|
+
required?: boolean | undefined;
|
|
10305
|
+
category?: "FIELD" | undefined;
|
|
10306
|
+
sensitive?: boolean | undefined;
|
|
10307
|
+
order?: number | undefined;
|
|
10308
|
+
visible?: boolean | undefined;
|
|
10309
|
+
}>,
|
|
10310
|
+
z.ZodObject<{
|
|
10311
|
+
id: z.ZodString;
|
|
10312
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10313
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10314
|
+
} & {
|
|
10315
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10316
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10317
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10318
|
+
} & {
|
|
10319
|
+
type: z.ZodLiteral<"PHONE">;
|
|
10320
|
+
config: z.ZodObject<{
|
|
10321
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10322
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10323
|
+
}, "strip", z.ZodTypeAny, {
|
|
10324
|
+
label?: string | undefined;
|
|
10325
|
+
placeholder?: string | undefined;
|
|
10326
|
+
}, {
|
|
10327
|
+
label?: string | undefined;
|
|
10328
|
+
placeholder?: string | undefined;
|
|
10329
|
+
}>;
|
|
10330
|
+
}, "strip", z.ZodTypeAny, {
|
|
10331
|
+
type: "PHONE";
|
|
10332
|
+
id: string;
|
|
10333
|
+
config: {
|
|
10334
|
+
label?: string | undefined;
|
|
10335
|
+
placeholder?: string | undefined;
|
|
10336
|
+
};
|
|
10337
|
+
visible: boolean;
|
|
10338
|
+
required?: boolean | undefined;
|
|
10339
|
+
category?: "FIELD" | undefined;
|
|
10340
|
+
sensitive?: boolean | undefined;
|
|
10341
|
+
order?: number | undefined;
|
|
10342
|
+
}, {
|
|
10343
|
+
type: "PHONE";
|
|
10344
|
+
id: string;
|
|
10345
|
+
config: {
|
|
10346
|
+
label?: string | undefined;
|
|
10347
|
+
placeholder?: string | undefined;
|
|
10348
|
+
};
|
|
10349
|
+
required?: boolean | undefined;
|
|
10350
|
+
category?: "FIELD" | undefined;
|
|
10351
|
+
sensitive?: boolean | undefined;
|
|
10352
|
+
order?: number | undefined;
|
|
10353
|
+
visible?: boolean | undefined;
|
|
10210
10354
|
}>
|
|
10211
10355
|
]>;
|
|
10212
10356
|
export type FormNodeComponent = z.infer<typeof formNodeComponentDefinition>;
|
|
@@ -10388,7 +10532,11 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10388
10532
|
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
10389
10533
|
z.ZodObject<{
|
|
10390
10534
|
id: z.ZodString;
|
|
10535
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10536
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10537
|
+
} & {
|
|
10391
10538
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10539
|
+
} & {
|
|
10392
10540
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
10393
10541
|
config: z.ZodObject<{
|
|
10394
10542
|
content: z.ZodString;
|
|
@@ -10397,8 +10545,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10397
10545
|
}, {
|
|
10398
10546
|
content: string;
|
|
10399
10547
|
}>;
|
|
10400
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10401
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10402
10548
|
}, "strip", z.ZodTypeAny, {
|
|
10403
10549
|
type: "RICH_TEXT";
|
|
10404
10550
|
id: string;
|
|
@@ -10418,9 +10564,15 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10418
10564
|
order?: number | undefined;
|
|
10419
10565
|
visible?: boolean | undefined;
|
|
10420
10566
|
}>,
|
|
10421
|
-
z.ZodObject<{
|
|
10567
|
+
z.ZodObject<Omit<{
|
|
10422
10568
|
id: z.ZodString;
|
|
10569
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10570
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10571
|
+
} & {
|
|
10423
10572
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10573
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10574
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10575
|
+
}, "sensitive"> & {
|
|
10424
10576
|
type: z.ZodLiteral<"LEGAL">;
|
|
10425
10577
|
config: z.ZodObject<{
|
|
10426
10578
|
text: z.ZodString;
|
|
@@ -10432,9 +10584,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10432
10584
|
text: string;
|
|
10433
10585
|
html?: boolean | undefined;
|
|
10434
10586
|
}>;
|
|
10435
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10436
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10437
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10438
10587
|
}, "strip", z.ZodTypeAny, {
|
|
10439
10588
|
type: "LEGAL";
|
|
10440
10589
|
id: string;
|
|
@@ -10460,7 +10609,13 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10460
10609
|
}>,
|
|
10461
10610
|
z.ZodObject<{
|
|
10462
10611
|
id: z.ZodString;
|
|
10612
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10613
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10614
|
+
} & {
|
|
10463
10615
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10616
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10617
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10618
|
+
} & {
|
|
10464
10619
|
type: z.ZodLiteral<"TEXT">;
|
|
10465
10620
|
config: z.ZodObject<{
|
|
10466
10621
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -10472,10 +10627,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10472
10627
|
placeholder?: string | undefined;
|
|
10473
10628
|
multiline?: boolean | undefined;
|
|
10474
10629
|
}>;
|
|
10475
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10476
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10477
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10478
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10479
10630
|
}, "strip", z.ZodTypeAny, {
|
|
10480
10631
|
type: "TEXT";
|
|
10481
10632
|
id: string;
|
|
@@ -10503,7 +10654,11 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10503
10654
|
}>,
|
|
10504
10655
|
z.ZodObject<{
|
|
10505
10656
|
id: z.ZodString;
|
|
10657
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10658
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10659
|
+
} & {
|
|
10506
10660
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10661
|
+
} & {
|
|
10507
10662
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
10508
10663
|
config: z.ZodObject<{
|
|
10509
10664
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -10512,8 +10667,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10512
10667
|
}, {
|
|
10513
10668
|
text?: string | undefined;
|
|
10514
10669
|
}>;
|
|
10515
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10516
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10517
10670
|
}, "strip", z.ZodTypeAny, {
|
|
10518
10671
|
type: "NEXT_BUTTON";
|
|
10519
10672
|
id: string;
|
|
@@ -10532,6 +10685,141 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10532
10685
|
category?: "BLOCK" | undefined;
|
|
10533
10686
|
order?: number | undefined;
|
|
10534
10687
|
visible?: boolean | undefined;
|
|
10688
|
+
}>,
|
|
10689
|
+
z.ZodObject<{
|
|
10690
|
+
id: z.ZodString;
|
|
10691
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10692
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10693
|
+
} & {
|
|
10694
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10695
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10696
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10697
|
+
} & {
|
|
10698
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
10699
|
+
config: z.ZodObject<{
|
|
10700
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10701
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10702
|
+
}, "strip", z.ZodTypeAny, {
|
|
10703
|
+
label?: string | undefined;
|
|
10704
|
+
placeholder?: string | undefined;
|
|
10705
|
+
}, {
|
|
10706
|
+
label?: string | undefined;
|
|
10707
|
+
placeholder?: string | undefined;
|
|
10708
|
+
}>;
|
|
10709
|
+
}, "strip", z.ZodTypeAny, {
|
|
10710
|
+
type: "EMAIL";
|
|
10711
|
+
id: string;
|
|
10712
|
+
config: {
|
|
10713
|
+
label?: string | undefined;
|
|
10714
|
+
placeholder?: string | undefined;
|
|
10715
|
+
};
|
|
10716
|
+
visible: boolean;
|
|
10717
|
+
required?: boolean | undefined;
|
|
10718
|
+
category?: "FIELD" | undefined;
|
|
10719
|
+
sensitive?: boolean | undefined;
|
|
10720
|
+
order?: number | undefined;
|
|
10721
|
+
}, {
|
|
10722
|
+
type: "EMAIL";
|
|
10723
|
+
id: string;
|
|
10724
|
+
config: {
|
|
10725
|
+
label?: string | undefined;
|
|
10726
|
+
placeholder?: string | undefined;
|
|
10727
|
+
};
|
|
10728
|
+
required?: boolean | undefined;
|
|
10729
|
+
category?: "FIELD" | undefined;
|
|
10730
|
+
sensitive?: boolean | undefined;
|
|
10731
|
+
order?: number | undefined;
|
|
10732
|
+
visible?: boolean | undefined;
|
|
10733
|
+
}>,
|
|
10734
|
+
z.ZodObject<{
|
|
10735
|
+
id: z.ZodString;
|
|
10736
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10737
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10738
|
+
} & {
|
|
10739
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10740
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10741
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10742
|
+
} & {
|
|
10743
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
10744
|
+
config: z.ZodObject<{
|
|
10745
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10746
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10747
|
+
}, "strip", z.ZodTypeAny, {
|
|
10748
|
+
label?: string | undefined;
|
|
10749
|
+
placeholder?: string | undefined;
|
|
10750
|
+
}, {
|
|
10751
|
+
label?: string | undefined;
|
|
10752
|
+
placeholder?: string | undefined;
|
|
10753
|
+
}>;
|
|
10754
|
+
}, "strip", z.ZodTypeAny, {
|
|
10755
|
+
type: "NUMBER";
|
|
10756
|
+
id: string;
|
|
10757
|
+
config: {
|
|
10758
|
+
label?: string | undefined;
|
|
10759
|
+
placeholder?: string | undefined;
|
|
10760
|
+
};
|
|
10761
|
+
visible: boolean;
|
|
10762
|
+
required?: boolean | undefined;
|
|
10763
|
+
category?: "FIELD" | undefined;
|
|
10764
|
+
sensitive?: boolean | undefined;
|
|
10765
|
+
order?: number | undefined;
|
|
10766
|
+
}, {
|
|
10767
|
+
type: "NUMBER";
|
|
10768
|
+
id: string;
|
|
10769
|
+
config: {
|
|
10770
|
+
label?: string | undefined;
|
|
10771
|
+
placeholder?: string | undefined;
|
|
10772
|
+
};
|
|
10773
|
+
required?: boolean | undefined;
|
|
10774
|
+
category?: "FIELD" | undefined;
|
|
10775
|
+
sensitive?: boolean | undefined;
|
|
10776
|
+
order?: number | undefined;
|
|
10777
|
+
visible?: boolean | undefined;
|
|
10778
|
+
}>,
|
|
10779
|
+
z.ZodObject<{
|
|
10780
|
+
id: z.ZodString;
|
|
10781
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10782
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10783
|
+
} & {
|
|
10784
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10785
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10786
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10787
|
+
} & {
|
|
10788
|
+
type: z.ZodLiteral<"PHONE">;
|
|
10789
|
+
config: z.ZodObject<{
|
|
10790
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10791
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10792
|
+
}, "strip", z.ZodTypeAny, {
|
|
10793
|
+
label?: string | undefined;
|
|
10794
|
+
placeholder?: string | undefined;
|
|
10795
|
+
}, {
|
|
10796
|
+
label?: string | undefined;
|
|
10797
|
+
placeholder?: string | undefined;
|
|
10798
|
+
}>;
|
|
10799
|
+
}, "strip", z.ZodTypeAny, {
|
|
10800
|
+
type: "PHONE";
|
|
10801
|
+
id: string;
|
|
10802
|
+
config: {
|
|
10803
|
+
label?: string | undefined;
|
|
10804
|
+
placeholder?: string | undefined;
|
|
10805
|
+
};
|
|
10806
|
+
visible: boolean;
|
|
10807
|
+
required?: boolean | undefined;
|
|
10808
|
+
category?: "FIELD" | undefined;
|
|
10809
|
+
sensitive?: boolean | undefined;
|
|
10810
|
+
order?: number | undefined;
|
|
10811
|
+
}, {
|
|
10812
|
+
type: "PHONE";
|
|
10813
|
+
id: string;
|
|
10814
|
+
config: {
|
|
10815
|
+
label?: string | undefined;
|
|
10816
|
+
placeholder?: string | undefined;
|
|
10817
|
+
};
|
|
10818
|
+
required?: boolean | undefined;
|
|
10819
|
+
category?: "FIELD" | undefined;
|
|
10820
|
+
sensitive?: boolean | undefined;
|
|
10821
|
+
order?: number | undefined;
|
|
10822
|
+
visible?: boolean | undefined;
|
|
10535
10823
|
}>
|
|
10536
10824
|
]>, "many">;
|
|
10537
10825
|
next_node: z.ZodOptional<z.ZodString>;
|
|
@@ -10577,6 +10865,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10577
10865
|
visible: boolean;
|
|
10578
10866
|
category?: "BLOCK" | undefined;
|
|
10579
10867
|
order?: number | undefined;
|
|
10868
|
+
} | {
|
|
10869
|
+
type: "EMAIL";
|
|
10870
|
+
id: string;
|
|
10871
|
+
config: {
|
|
10872
|
+
label?: string | undefined;
|
|
10873
|
+
placeholder?: string | undefined;
|
|
10874
|
+
};
|
|
10875
|
+
visible: boolean;
|
|
10876
|
+
required?: boolean | undefined;
|
|
10877
|
+
category?: "FIELD" | undefined;
|
|
10878
|
+
sensitive?: boolean | undefined;
|
|
10879
|
+
order?: number | undefined;
|
|
10880
|
+
} | {
|
|
10881
|
+
type: "NUMBER";
|
|
10882
|
+
id: string;
|
|
10883
|
+
config: {
|
|
10884
|
+
label?: string | undefined;
|
|
10885
|
+
placeholder?: string | undefined;
|
|
10886
|
+
};
|
|
10887
|
+
visible: boolean;
|
|
10888
|
+
required?: boolean | undefined;
|
|
10889
|
+
category?: "FIELD" | undefined;
|
|
10890
|
+
sensitive?: boolean | undefined;
|
|
10891
|
+
order?: number | undefined;
|
|
10892
|
+
} | {
|
|
10893
|
+
type: "PHONE";
|
|
10894
|
+
id: string;
|
|
10895
|
+
config: {
|
|
10896
|
+
label?: string | undefined;
|
|
10897
|
+
placeholder?: string | undefined;
|
|
10898
|
+
};
|
|
10899
|
+
visible: boolean;
|
|
10900
|
+
required?: boolean | undefined;
|
|
10901
|
+
category?: "FIELD" | undefined;
|
|
10902
|
+
sensitive?: boolean | undefined;
|
|
10903
|
+
order?: number | undefined;
|
|
10580
10904
|
})[];
|
|
10581
10905
|
next_node?: string | undefined;
|
|
10582
10906
|
}, {
|
|
@@ -10621,6 +10945,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10621
10945
|
category?: "BLOCK" | undefined;
|
|
10622
10946
|
order?: number | undefined;
|
|
10623
10947
|
visible?: boolean | undefined;
|
|
10948
|
+
} | {
|
|
10949
|
+
type: "EMAIL";
|
|
10950
|
+
id: string;
|
|
10951
|
+
config: {
|
|
10952
|
+
label?: string | undefined;
|
|
10953
|
+
placeholder?: string | undefined;
|
|
10954
|
+
};
|
|
10955
|
+
required?: boolean | undefined;
|
|
10956
|
+
category?: "FIELD" | undefined;
|
|
10957
|
+
sensitive?: boolean | undefined;
|
|
10958
|
+
order?: number | undefined;
|
|
10959
|
+
visible?: boolean | undefined;
|
|
10960
|
+
} | {
|
|
10961
|
+
type: "NUMBER";
|
|
10962
|
+
id: string;
|
|
10963
|
+
config: {
|
|
10964
|
+
label?: string | undefined;
|
|
10965
|
+
placeholder?: string | undefined;
|
|
10966
|
+
};
|
|
10967
|
+
required?: boolean | undefined;
|
|
10968
|
+
category?: "FIELD" | undefined;
|
|
10969
|
+
sensitive?: boolean | undefined;
|
|
10970
|
+
order?: number | undefined;
|
|
10971
|
+
visible?: boolean | undefined;
|
|
10972
|
+
} | {
|
|
10973
|
+
type: "PHONE";
|
|
10974
|
+
id: string;
|
|
10975
|
+
config: {
|
|
10976
|
+
label?: string | undefined;
|
|
10977
|
+
placeholder?: string | undefined;
|
|
10978
|
+
};
|
|
10979
|
+
required?: boolean | undefined;
|
|
10980
|
+
category?: "FIELD" | undefined;
|
|
10981
|
+
sensitive?: boolean | undefined;
|
|
10982
|
+
order?: number | undefined;
|
|
10983
|
+
visible?: boolean | undefined;
|
|
10624
10984
|
})[];
|
|
10625
10985
|
next_node?: string | undefined;
|
|
10626
10986
|
}>;
|
|
@@ -10649,11 +11009,44 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10649
11009
|
category?: "FIELD" | undefined;
|
|
10650
11010
|
order?: number | undefined;
|
|
10651
11011
|
} | {
|
|
10652
|
-
type: "TEXT";
|
|
11012
|
+
type: "TEXT";
|
|
11013
|
+
id: string;
|
|
11014
|
+
config: {
|
|
11015
|
+
placeholder?: string | undefined;
|
|
11016
|
+
multiline?: boolean | undefined;
|
|
11017
|
+
};
|
|
11018
|
+
visible: boolean;
|
|
11019
|
+
required?: boolean | undefined;
|
|
11020
|
+
category?: "FIELD" | undefined;
|
|
11021
|
+
sensitive?: boolean | undefined;
|
|
11022
|
+
order?: number | undefined;
|
|
11023
|
+
} | {
|
|
11024
|
+
type: "NEXT_BUTTON";
|
|
11025
|
+
id: string;
|
|
11026
|
+
config: {
|
|
11027
|
+
text?: string | undefined;
|
|
11028
|
+
};
|
|
11029
|
+
visible: boolean;
|
|
11030
|
+
category?: "BLOCK" | undefined;
|
|
11031
|
+
order?: number | undefined;
|
|
11032
|
+
} | {
|
|
11033
|
+
type: "EMAIL";
|
|
11034
|
+
id: string;
|
|
11035
|
+
config: {
|
|
11036
|
+
label?: string | undefined;
|
|
11037
|
+
placeholder?: string | undefined;
|
|
11038
|
+
};
|
|
11039
|
+
visible: boolean;
|
|
11040
|
+
required?: boolean | undefined;
|
|
11041
|
+
category?: "FIELD" | undefined;
|
|
11042
|
+
sensitive?: boolean | undefined;
|
|
11043
|
+
order?: number | undefined;
|
|
11044
|
+
} | {
|
|
11045
|
+
type: "NUMBER";
|
|
10653
11046
|
id: string;
|
|
10654
11047
|
config: {
|
|
11048
|
+
label?: string | undefined;
|
|
10655
11049
|
placeholder?: string | undefined;
|
|
10656
|
-
multiline?: boolean | undefined;
|
|
10657
11050
|
};
|
|
10658
11051
|
visible: boolean;
|
|
10659
11052
|
required?: boolean | undefined;
|
|
@@ -10661,13 +11054,16 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10661
11054
|
sensitive?: boolean | undefined;
|
|
10662
11055
|
order?: number | undefined;
|
|
10663
11056
|
} | {
|
|
10664
|
-
type: "
|
|
11057
|
+
type: "PHONE";
|
|
10665
11058
|
id: string;
|
|
10666
11059
|
config: {
|
|
10667
|
-
|
|
11060
|
+
label?: string | undefined;
|
|
11061
|
+
placeholder?: string | undefined;
|
|
10668
11062
|
};
|
|
10669
11063
|
visible: boolean;
|
|
10670
|
-
|
|
11064
|
+
required?: boolean | undefined;
|
|
11065
|
+
category?: "FIELD" | undefined;
|
|
11066
|
+
sensitive?: boolean | undefined;
|
|
10671
11067
|
order?: number | undefined;
|
|
10672
11068
|
})[];
|
|
10673
11069
|
next_node?: string | undefined;
|
|
@@ -10722,6 +11118,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10722
11118
|
category?: "BLOCK" | undefined;
|
|
10723
11119
|
order?: number | undefined;
|
|
10724
11120
|
visible?: boolean | undefined;
|
|
11121
|
+
} | {
|
|
11122
|
+
type: "EMAIL";
|
|
11123
|
+
id: string;
|
|
11124
|
+
config: {
|
|
11125
|
+
label?: string | undefined;
|
|
11126
|
+
placeholder?: string | undefined;
|
|
11127
|
+
};
|
|
11128
|
+
required?: boolean | undefined;
|
|
11129
|
+
category?: "FIELD" | undefined;
|
|
11130
|
+
sensitive?: boolean | undefined;
|
|
11131
|
+
order?: number | undefined;
|
|
11132
|
+
visible?: boolean | undefined;
|
|
11133
|
+
} | {
|
|
11134
|
+
type: "NUMBER";
|
|
11135
|
+
id: string;
|
|
11136
|
+
config: {
|
|
11137
|
+
label?: string | undefined;
|
|
11138
|
+
placeholder?: string | undefined;
|
|
11139
|
+
};
|
|
11140
|
+
required?: boolean | undefined;
|
|
11141
|
+
category?: "FIELD" | undefined;
|
|
11142
|
+
sensitive?: boolean | undefined;
|
|
11143
|
+
order?: number | undefined;
|
|
11144
|
+
visible?: boolean | undefined;
|
|
11145
|
+
} | {
|
|
11146
|
+
type: "PHONE";
|
|
11147
|
+
id: string;
|
|
11148
|
+
config: {
|
|
11149
|
+
label?: string | undefined;
|
|
11150
|
+
placeholder?: string | undefined;
|
|
11151
|
+
};
|
|
11152
|
+
required?: boolean | undefined;
|
|
11153
|
+
category?: "FIELD" | undefined;
|
|
11154
|
+
sensitive?: boolean | undefined;
|
|
11155
|
+
order?: number | undefined;
|
|
11156
|
+
visible?: boolean | undefined;
|
|
10725
11157
|
})[];
|
|
10726
11158
|
next_node?: string | undefined;
|
|
10727
11159
|
};
|
|
@@ -10932,6 +11364,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10932
11364
|
visible: boolean;
|
|
10933
11365
|
category?: "BLOCK" | undefined;
|
|
10934
11366
|
order?: number | undefined;
|
|
11367
|
+
} | {
|
|
11368
|
+
type: "EMAIL";
|
|
11369
|
+
id: string;
|
|
11370
|
+
config: {
|
|
11371
|
+
label?: string | undefined;
|
|
11372
|
+
placeholder?: string | undefined;
|
|
11373
|
+
};
|
|
11374
|
+
visible: boolean;
|
|
11375
|
+
required?: boolean | undefined;
|
|
11376
|
+
category?: "FIELD" | undefined;
|
|
11377
|
+
sensitive?: boolean | undefined;
|
|
11378
|
+
order?: number | undefined;
|
|
11379
|
+
} | {
|
|
11380
|
+
type: "NUMBER";
|
|
11381
|
+
id: string;
|
|
11382
|
+
config: {
|
|
11383
|
+
label?: string | undefined;
|
|
11384
|
+
placeholder?: string | undefined;
|
|
11385
|
+
};
|
|
11386
|
+
visible: boolean;
|
|
11387
|
+
required?: boolean | undefined;
|
|
11388
|
+
category?: "FIELD" | undefined;
|
|
11389
|
+
sensitive?: boolean | undefined;
|
|
11390
|
+
order?: number | undefined;
|
|
11391
|
+
} | {
|
|
11392
|
+
type: "PHONE";
|
|
11393
|
+
id: string;
|
|
11394
|
+
config: {
|
|
11395
|
+
label?: string | undefined;
|
|
11396
|
+
placeholder?: string | undefined;
|
|
11397
|
+
};
|
|
11398
|
+
visible: boolean;
|
|
11399
|
+
required?: boolean | undefined;
|
|
11400
|
+
category?: "FIELD" | undefined;
|
|
11401
|
+
sensitive?: boolean | undefined;
|
|
11402
|
+
order?: number | undefined;
|
|
10935
11403
|
})[];
|
|
10936
11404
|
next_node?: string | undefined;
|
|
10937
11405
|
};
|
|
@@ -11054,6 +11522,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
11054
11522
|
category?: "BLOCK" | undefined;
|
|
11055
11523
|
order?: number | undefined;
|
|
11056
11524
|
visible?: boolean | undefined;
|
|
11525
|
+
} | {
|
|
11526
|
+
type: "EMAIL";
|
|
11527
|
+
id: string;
|
|
11528
|
+
config: {
|
|
11529
|
+
label?: string | undefined;
|
|
11530
|
+
placeholder?: string | undefined;
|
|
11531
|
+
};
|
|
11532
|
+
required?: boolean | undefined;
|
|
11533
|
+
category?: "FIELD" | undefined;
|
|
11534
|
+
sensitive?: boolean | undefined;
|
|
11535
|
+
order?: number | undefined;
|
|
11536
|
+
visible?: boolean | undefined;
|
|
11537
|
+
} | {
|
|
11538
|
+
type: "NUMBER";
|
|
11539
|
+
id: string;
|
|
11540
|
+
config: {
|
|
11541
|
+
label?: string | undefined;
|
|
11542
|
+
placeholder?: string | undefined;
|
|
11543
|
+
};
|
|
11544
|
+
required?: boolean | undefined;
|
|
11545
|
+
category?: "FIELD" | undefined;
|
|
11546
|
+
sensitive?: boolean | undefined;
|
|
11547
|
+
order?: number | undefined;
|
|
11548
|
+
visible?: boolean | undefined;
|
|
11549
|
+
} | {
|
|
11550
|
+
type: "PHONE";
|
|
11551
|
+
id: string;
|
|
11552
|
+
config: {
|
|
11553
|
+
label?: string | undefined;
|
|
11554
|
+
placeholder?: string | undefined;
|
|
11555
|
+
};
|
|
11556
|
+
required?: boolean | undefined;
|
|
11557
|
+
category?: "FIELD" | undefined;
|
|
11558
|
+
sensitive?: boolean | undefined;
|
|
11559
|
+
order?: number | undefined;
|
|
11560
|
+
visible?: boolean | undefined;
|
|
11057
11561
|
})[];
|
|
11058
11562
|
next_node?: string | undefined;
|
|
11059
11563
|
};
|
|
@@ -11263,7 +11767,11 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11263
11767
|
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
11264
11768
|
z.ZodObject<{
|
|
11265
11769
|
id: z.ZodString;
|
|
11770
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11771
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11772
|
+
} & {
|
|
11266
11773
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
11774
|
+
} & {
|
|
11267
11775
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
11268
11776
|
config: z.ZodObject<{
|
|
11269
11777
|
content: z.ZodString;
|
|
@@ -11272,8 +11780,6 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11272
11780
|
}, {
|
|
11273
11781
|
content: string;
|
|
11274
11782
|
}>;
|
|
11275
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11276
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11277
11783
|
}, "strip", z.ZodTypeAny, {
|
|
11278
11784
|
type: "RICH_TEXT";
|
|
11279
11785
|
id: string;
|
|
@@ -11293,9 +11799,15 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11293
11799
|
order?: number | undefined;
|
|
11294
11800
|
visible?: boolean | undefined;
|
|
11295
11801
|
}>,
|
|
11296
|
-
z.ZodObject<{
|
|
11802
|
+
z.ZodObject<Omit<{
|
|
11297
11803
|
id: z.ZodString;
|
|
11804
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11805
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11806
|
+
} & {
|
|
11298
11807
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11808
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11809
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11810
|
+
}, "sensitive"> & {
|
|
11299
11811
|
type: z.ZodLiteral<"LEGAL">;
|
|
11300
11812
|
config: z.ZodObject<{
|
|
11301
11813
|
text: z.ZodString;
|
|
@@ -11307,9 +11819,6 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11307
11819
|
text: string;
|
|
11308
11820
|
html?: boolean | undefined;
|
|
11309
11821
|
}>;
|
|
11310
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
11311
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11312
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11313
11822
|
}, "strip", z.ZodTypeAny, {
|
|
11314
11823
|
type: "LEGAL";
|
|
11315
11824
|
id: string;
|
|
@@ -11335,7 +11844,13 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11335
11844
|
}>,
|
|
11336
11845
|
z.ZodObject<{
|
|
11337
11846
|
id: z.ZodString;
|
|
11847
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11848
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11849
|
+
} & {
|
|
11338
11850
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11851
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11852
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11853
|
+
} & {
|
|
11339
11854
|
type: z.ZodLiteral<"TEXT">;
|
|
11340
11855
|
config: z.ZodObject<{
|
|
11341
11856
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -11347,10 +11862,6 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11347
11862
|
placeholder?: string | undefined;
|
|
11348
11863
|
multiline?: boolean | undefined;
|
|
11349
11864
|
}>;
|
|
11350
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
11351
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11352
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11353
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11354
11865
|
}, "strip", z.ZodTypeAny, {
|
|
11355
11866
|
type: "TEXT";
|
|
11356
11867
|
id: string;
|
|
@@ -11378,33 +11889,170 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11378
11889
|
}>,
|
|
11379
11890
|
z.ZodObject<{
|
|
11380
11891
|
id: z.ZodString;
|
|
11381
|
-
|
|
11382
|
-
|
|
11892
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11893
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11894
|
+
} & {
|
|
11895
|
+
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
11896
|
+
} & {
|
|
11897
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
11898
|
+
config: z.ZodObject<{
|
|
11899
|
+
text: z.ZodOptional<z.ZodString>;
|
|
11900
|
+
}, "strip", z.ZodTypeAny, {
|
|
11901
|
+
text?: string | undefined;
|
|
11902
|
+
}, {
|
|
11903
|
+
text?: string | undefined;
|
|
11904
|
+
}>;
|
|
11905
|
+
}, "strip", z.ZodTypeAny, {
|
|
11906
|
+
type: "NEXT_BUTTON";
|
|
11907
|
+
id: string;
|
|
11908
|
+
config: {
|
|
11909
|
+
text?: string | undefined;
|
|
11910
|
+
};
|
|
11911
|
+
visible: boolean;
|
|
11912
|
+
category?: "BLOCK" | undefined;
|
|
11913
|
+
order?: number | undefined;
|
|
11914
|
+
}, {
|
|
11915
|
+
type: "NEXT_BUTTON";
|
|
11916
|
+
id: string;
|
|
11917
|
+
config: {
|
|
11918
|
+
text?: string | undefined;
|
|
11919
|
+
};
|
|
11920
|
+
category?: "BLOCK" | undefined;
|
|
11921
|
+
order?: number | undefined;
|
|
11922
|
+
visible?: boolean | undefined;
|
|
11923
|
+
}>,
|
|
11924
|
+
z.ZodObject<{
|
|
11925
|
+
id: z.ZodString;
|
|
11926
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11927
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11928
|
+
} & {
|
|
11929
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11930
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11931
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11932
|
+
} & {
|
|
11933
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
11934
|
+
config: z.ZodObject<{
|
|
11935
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11936
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11937
|
+
}, "strip", z.ZodTypeAny, {
|
|
11938
|
+
label?: string | undefined;
|
|
11939
|
+
placeholder?: string | undefined;
|
|
11940
|
+
}, {
|
|
11941
|
+
label?: string | undefined;
|
|
11942
|
+
placeholder?: string | undefined;
|
|
11943
|
+
}>;
|
|
11944
|
+
}, "strip", z.ZodTypeAny, {
|
|
11945
|
+
type: "EMAIL";
|
|
11946
|
+
id: string;
|
|
11947
|
+
config: {
|
|
11948
|
+
label?: string | undefined;
|
|
11949
|
+
placeholder?: string | undefined;
|
|
11950
|
+
};
|
|
11951
|
+
visible: boolean;
|
|
11952
|
+
required?: boolean | undefined;
|
|
11953
|
+
category?: "FIELD" | undefined;
|
|
11954
|
+
sensitive?: boolean | undefined;
|
|
11955
|
+
order?: number | undefined;
|
|
11956
|
+
}, {
|
|
11957
|
+
type: "EMAIL";
|
|
11958
|
+
id: string;
|
|
11959
|
+
config: {
|
|
11960
|
+
label?: string | undefined;
|
|
11961
|
+
placeholder?: string | undefined;
|
|
11962
|
+
};
|
|
11963
|
+
required?: boolean | undefined;
|
|
11964
|
+
category?: "FIELD" | undefined;
|
|
11965
|
+
sensitive?: boolean | undefined;
|
|
11966
|
+
order?: number | undefined;
|
|
11967
|
+
visible?: boolean | undefined;
|
|
11968
|
+
}>,
|
|
11969
|
+
z.ZodObject<{
|
|
11970
|
+
id: z.ZodString;
|
|
11971
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11972
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11973
|
+
} & {
|
|
11974
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11975
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11976
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11977
|
+
} & {
|
|
11978
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
11979
|
+
config: z.ZodObject<{
|
|
11980
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11981
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11982
|
+
}, "strip", z.ZodTypeAny, {
|
|
11983
|
+
label?: string | undefined;
|
|
11984
|
+
placeholder?: string | undefined;
|
|
11985
|
+
}, {
|
|
11986
|
+
label?: string | undefined;
|
|
11987
|
+
placeholder?: string | undefined;
|
|
11988
|
+
}>;
|
|
11989
|
+
}, "strip", z.ZodTypeAny, {
|
|
11990
|
+
type: "NUMBER";
|
|
11991
|
+
id: string;
|
|
11992
|
+
config: {
|
|
11993
|
+
label?: string | undefined;
|
|
11994
|
+
placeholder?: string | undefined;
|
|
11995
|
+
};
|
|
11996
|
+
visible: boolean;
|
|
11997
|
+
required?: boolean | undefined;
|
|
11998
|
+
category?: "FIELD" | undefined;
|
|
11999
|
+
sensitive?: boolean | undefined;
|
|
12000
|
+
order?: number | undefined;
|
|
12001
|
+
}, {
|
|
12002
|
+
type: "NUMBER";
|
|
12003
|
+
id: string;
|
|
12004
|
+
config: {
|
|
12005
|
+
label?: string | undefined;
|
|
12006
|
+
placeholder?: string | undefined;
|
|
12007
|
+
};
|
|
12008
|
+
required?: boolean | undefined;
|
|
12009
|
+
category?: "FIELD" | undefined;
|
|
12010
|
+
sensitive?: boolean | undefined;
|
|
12011
|
+
order?: number | undefined;
|
|
12012
|
+
visible?: boolean | undefined;
|
|
12013
|
+
}>,
|
|
12014
|
+
z.ZodObject<{
|
|
12015
|
+
id: z.ZodString;
|
|
12016
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
12017
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12018
|
+
} & {
|
|
12019
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
12020
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
12021
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
12022
|
+
} & {
|
|
12023
|
+
type: z.ZodLiteral<"PHONE">;
|
|
11383
12024
|
config: z.ZodObject<{
|
|
11384
|
-
|
|
12025
|
+
label: z.ZodOptional<z.ZodString>;
|
|
12026
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11385
12027
|
}, "strip", z.ZodTypeAny, {
|
|
11386
|
-
|
|
12028
|
+
label?: string | undefined;
|
|
12029
|
+
placeholder?: string | undefined;
|
|
11387
12030
|
}, {
|
|
11388
|
-
|
|
12031
|
+
label?: string | undefined;
|
|
12032
|
+
placeholder?: string | undefined;
|
|
11389
12033
|
}>;
|
|
11390
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11391
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11392
12034
|
}, "strip", z.ZodTypeAny, {
|
|
11393
|
-
type: "
|
|
12035
|
+
type: "PHONE";
|
|
11394
12036
|
id: string;
|
|
11395
12037
|
config: {
|
|
11396
|
-
|
|
12038
|
+
label?: string | undefined;
|
|
12039
|
+
placeholder?: string | undefined;
|
|
11397
12040
|
};
|
|
11398
12041
|
visible: boolean;
|
|
11399
|
-
|
|
12042
|
+
required?: boolean | undefined;
|
|
12043
|
+
category?: "FIELD" | undefined;
|
|
12044
|
+
sensitive?: boolean | undefined;
|
|
11400
12045
|
order?: number | undefined;
|
|
11401
12046
|
}, {
|
|
11402
|
-
type: "
|
|
12047
|
+
type: "PHONE";
|
|
11403
12048
|
id: string;
|
|
11404
12049
|
config: {
|
|
11405
|
-
|
|
12050
|
+
label?: string | undefined;
|
|
12051
|
+
placeholder?: string | undefined;
|
|
11406
12052
|
};
|
|
11407
|
-
|
|
12053
|
+
required?: boolean | undefined;
|
|
12054
|
+
category?: "FIELD" | undefined;
|
|
12055
|
+
sensitive?: boolean | undefined;
|
|
11408
12056
|
order?: number | undefined;
|
|
11409
12057
|
visible?: boolean | undefined;
|
|
11410
12058
|
}>
|
|
@@ -11452,6 +12100,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11452
12100
|
visible: boolean;
|
|
11453
12101
|
category?: "BLOCK" | undefined;
|
|
11454
12102
|
order?: number | undefined;
|
|
12103
|
+
} | {
|
|
12104
|
+
type: "EMAIL";
|
|
12105
|
+
id: string;
|
|
12106
|
+
config: {
|
|
12107
|
+
label?: string | undefined;
|
|
12108
|
+
placeholder?: string | undefined;
|
|
12109
|
+
};
|
|
12110
|
+
visible: boolean;
|
|
12111
|
+
required?: boolean | undefined;
|
|
12112
|
+
category?: "FIELD" | undefined;
|
|
12113
|
+
sensitive?: boolean | undefined;
|
|
12114
|
+
order?: number | undefined;
|
|
12115
|
+
} | {
|
|
12116
|
+
type: "NUMBER";
|
|
12117
|
+
id: string;
|
|
12118
|
+
config: {
|
|
12119
|
+
label?: string | undefined;
|
|
12120
|
+
placeholder?: string | undefined;
|
|
12121
|
+
};
|
|
12122
|
+
visible: boolean;
|
|
12123
|
+
required?: boolean | undefined;
|
|
12124
|
+
category?: "FIELD" | undefined;
|
|
12125
|
+
sensitive?: boolean | undefined;
|
|
12126
|
+
order?: number | undefined;
|
|
12127
|
+
} | {
|
|
12128
|
+
type: "PHONE";
|
|
12129
|
+
id: string;
|
|
12130
|
+
config: {
|
|
12131
|
+
label?: string | undefined;
|
|
12132
|
+
placeholder?: string | undefined;
|
|
12133
|
+
};
|
|
12134
|
+
visible: boolean;
|
|
12135
|
+
required?: boolean | undefined;
|
|
12136
|
+
category?: "FIELD" | undefined;
|
|
12137
|
+
sensitive?: boolean | undefined;
|
|
12138
|
+
order?: number | undefined;
|
|
11455
12139
|
})[];
|
|
11456
12140
|
next_node?: string | undefined;
|
|
11457
12141
|
}, {
|
|
@@ -11496,6 +12180,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11496
12180
|
category?: "BLOCK" | undefined;
|
|
11497
12181
|
order?: number | undefined;
|
|
11498
12182
|
visible?: boolean | undefined;
|
|
12183
|
+
} | {
|
|
12184
|
+
type: "EMAIL";
|
|
12185
|
+
id: string;
|
|
12186
|
+
config: {
|
|
12187
|
+
label?: string | undefined;
|
|
12188
|
+
placeholder?: string | undefined;
|
|
12189
|
+
};
|
|
12190
|
+
required?: boolean | undefined;
|
|
12191
|
+
category?: "FIELD" | undefined;
|
|
12192
|
+
sensitive?: boolean | undefined;
|
|
12193
|
+
order?: number | undefined;
|
|
12194
|
+
visible?: boolean | undefined;
|
|
12195
|
+
} | {
|
|
12196
|
+
type: "NUMBER";
|
|
12197
|
+
id: string;
|
|
12198
|
+
config: {
|
|
12199
|
+
label?: string | undefined;
|
|
12200
|
+
placeholder?: string | undefined;
|
|
12201
|
+
};
|
|
12202
|
+
required?: boolean | undefined;
|
|
12203
|
+
category?: "FIELD" | undefined;
|
|
12204
|
+
sensitive?: boolean | undefined;
|
|
12205
|
+
order?: number | undefined;
|
|
12206
|
+
visible?: boolean | undefined;
|
|
12207
|
+
} | {
|
|
12208
|
+
type: "PHONE";
|
|
12209
|
+
id: string;
|
|
12210
|
+
config: {
|
|
12211
|
+
label?: string | undefined;
|
|
12212
|
+
placeholder?: string | undefined;
|
|
12213
|
+
};
|
|
12214
|
+
required?: boolean | undefined;
|
|
12215
|
+
category?: "FIELD" | undefined;
|
|
12216
|
+
sensitive?: boolean | undefined;
|
|
12217
|
+
order?: number | undefined;
|
|
12218
|
+
visible?: boolean | undefined;
|
|
11499
12219
|
})[];
|
|
11500
12220
|
next_node?: string | undefined;
|
|
11501
12221
|
}>;
|
|
@@ -11544,6 +12264,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11544
12264
|
visible: boolean;
|
|
11545
12265
|
category?: "BLOCK" | undefined;
|
|
11546
12266
|
order?: number | undefined;
|
|
12267
|
+
} | {
|
|
12268
|
+
type: "EMAIL";
|
|
12269
|
+
id: string;
|
|
12270
|
+
config: {
|
|
12271
|
+
label?: string | undefined;
|
|
12272
|
+
placeholder?: string | undefined;
|
|
12273
|
+
};
|
|
12274
|
+
visible: boolean;
|
|
12275
|
+
required?: boolean | undefined;
|
|
12276
|
+
category?: "FIELD" | undefined;
|
|
12277
|
+
sensitive?: boolean | undefined;
|
|
12278
|
+
order?: number | undefined;
|
|
12279
|
+
} | {
|
|
12280
|
+
type: "NUMBER";
|
|
12281
|
+
id: string;
|
|
12282
|
+
config: {
|
|
12283
|
+
label?: string | undefined;
|
|
12284
|
+
placeholder?: string | undefined;
|
|
12285
|
+
};
|
|
12286
|
+
visible: boolean;
|
|
12287
|
+
required?: boolean | undefined;
|
|
12288
|
+
category?: "FIELD" | undefined;
|
|
12289
|
+
sensitive?: boolean | undefined;
|
|
12290
|
+
order?: number | undefined;
|
|
12291
|
+
} | {
|
|
12292
|
+
type: "PHONE";
|
|
12293
|
+
id: string;
|
|
12294
|
+
config: {
|
|
12295
|
+
label?: string | undefined;
|
|
12296
|
+
placeholder?: string | undefined;
|
|
12297
|
+
};
|
|
12298
|
+
visible: boolean;
|
|
12299
|
+
required?: boolean | undefined;
|
|
12300
|
+
category?: "FIELD" | undefined;
|
|
12301
|
+
sensitive?: boolean | undefined;
|
|
12302
|
+
order?: number | undefined;
|
|
11547
12303
|
})[];
|
|
11548
12304
|
next_node?: string | undefined;
|
|
11549
12305
|
};
|
|
@@ -11597,6 +12353,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11597
12353
|
category?: "BLOCK" | undefined;
|
|
11598
12354
|
order?: number | undefined;
|
|
11599
12355
|
visible?: boolean | undefined;
|
|
12356
|
+
} | {
|
|
12357
|
+
type: "EMAIL";
|
|
12358
|
+
id: string;
|
|
12359
|
+
config: {
|
|
12360
|
+
label?: string | undefined;
|
|
12361
|
+
placeholder?: string | undefined;
|
|
12362
|
+
};
|
|
12363
|
+
required?: boolean | undefined;
|
|
12364
|
+
category?: "FIELD" | undefined;
|
|
12365
|
+
sensitive?: boolean | undefined;
|
|
12366
|
+
order?: number | undefined;
|
|
12367
|
+
visible?: boolean | undefined;
|
|
12368
|
+
} | {
|
|
12369
|
+
type: "NUMBER";
|
|
12370
|
+
id: string;
|
|
12371
|
+
config: {
|
|
12372
|
+
label?: string | undefined;
|
|
12373
|
+
placeholder?: string | undefined;
|
|
12374
|
+
};
|
|
12375
|
+
required?: boolean | undefined;
|
|
12376
|
+
category?: "FIELD" | undefined;
|
|
12377
|
+
sensitive?: boolean | undefined;
|
|
12378
|
+
order?: number | undefined;
|
|
12379
|
+
visible?: boolean | undefined;
|
|
12380
|
+
} | {
|
|
12381
|
+
type: "PHONE";
|
|
12382
|
+
id: string;
|
|
12383
|
+
config: {
|
|
12384
|
+
label?: string | undefined;
|
|
12385
|
+
placeholder?: string | undefined;
|
|
12386
|
+
};
|
|
12387
|
+
required?: boolean | undefined;
|
|
12388
|
+
category?: "FIELD" | undefined;
|
|
12389
|
+
sensitive?: boolean | undefined;
|
|
12390
|
+
order?: number | undefined;
|
|
12391
|
+
visible?: boolean | undefined;
|
|
11600
12392
|
})[];
|
|
11601
12393
|
next_node?: string | undefined;
|
|
11602
12394
|
};
|
|
@@ -11812,6 +12604,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11812
12604
|
visible: boolean;
|
|
11813
12605
|
category?: "BLOCK" | undefined;
|
|
11814
12606
|
order?: number | undefined;
|
|
12607
|
+
} | {
|
|
12608
|
+
type: "EMAIL";
|
|
12609
|
+
id: string;
|
|
12610
|
+
config: {
|
|
12611
|
+
label?: string | undefined;
|
|
12612
|
+
placeholder?: string | undefined;
|
|
12613
|
+
};
|
|
12614
|
+
visible: boolean;
|
|
12615
|
+
required?: boolean | undefined;
|
|
12616
|
+
category?: "FIELD" | undefined;
|
|
12617
|
+
sensitive?: boolean | undefined;
|
|
12618
|
+
order?: number | undefined;
|
|
12619
|
+
} | {
|
|
12620
|
+
type: "NUMBER";
|
|
12621
|
+
id: string;
|
|
12622
|
+
config: {
|
|
12623
|
+
label?: string | undefined;
|
|
12624
|
+
placeholder?: string | undefined;
|
|
12625
|
+
};
|
|
12626
|
+
visible: boolean;
|
|
12627
|
+
required?: boolean | undefined;
|
|
12628
|
+
category?: "FIELD" | undefined;
|
|
12629
|
+
sensitive?: boolean | undefined;
|
|
12630
|
+
order?: number | undefined;
|
|
12631
|
+
} | {
|
|
12632
|
+
type: "PHONE";
|
|
12633
|
+
id: string;
|
|
12634
|
+
config: {
|
|
12635
|
+
label?: string | undefined;
|
|
12636
|
+
placeholder?: string | undefined;
|
|
12637
|
+
};
|
|
12638
|
+
visible: boolean;
|
|
12639
|
+
required?: boolean | undefined;
|
|
12640
|
+
category?: "FIELD" | undefined;
|
|
12641
|
+
sensitive?: boolean | undefined;
|
|
12642
|
+
order?: number | undefined;
|
|
11815
12643
|
})[];
|
|
11816
12644
|
next_node?: string | undefined;
|
|
11817
12645
|
};
|
|
@@ -11937,6 +12765,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11937
12765
|
category?: "BLOCK" | undefined;
|
|
11938
12766
|
order?: number | undefined;
|
|
11939
12767
|
visible?: boolean | undefined;
|
|
12768
|
+
} | {
|
|
12769
|
+
type: "EMAIL";
|
|
12770
|
+
id: string;
|
|
12771
|
+
config: {
|
|
12772
|
+
label?: string | undefined;
|
|
12773
|
+
placeholder?: string | undefined;
|
|
12774
|
+
};
|
|
12775
|
+
required?: boolean | undefined;
|
|
12776
|
+
category?: "FIELD" | undefined;
|
|
12777
|
+
sensitive?: boolean | undefined;
|
|
12778
|
+
order?: number | undefined;
|
|
12779
|
+
visible?: boolean | undefined;
|
|
12780
|
+
} | {
|
|
12781
|
+
type: "NUMBER";
|
|
12782
|
+
id: string;
|
|
12783
|
+
config: {
|
|
12784
|
+
label?: string | undefined;
|
|
12785
|
+
placeholder?: string | undefined;
|
|
12786
|
+
};
|
|
12787
|
+
required?: boolean | undefined;
|
|
12788
|
+
category?: "FIELD" | undefined;
|
|
12789
|
+
sensitive?: boolean | undefined;
|
|
12790
|
+
order?: number | undefined;
|
|
12791
|
+
visible?: boolean | undefined;
|
|
12792
|
+
} | {
|
|
12793
|
+
type: "PHONE";
|
|
12794
|
+
id: string;
|
|
12795
|
+
config: {
|
|
12796
|
+
label?: string | undefined;
|
|
12797
|
+
placeholder?: string | undefined;
|
|
12798
|
+
};
|
|
12799
|
+
required?: boolean | undefined;
|
|
12800
|
+
category?: "FIELD" | undefined;
|
|
12801
|
+
sensitive?: boolean | undefined;
|
|
12802
|
+
order?: number | undefined;
|
|
12803
|
+
visible?: boolean | undefined;
|
|
11940
12804
|
})[];
|
|
11941
12805
|
next_node?: string | undefined;
|
|
11942
12806
|
};
|
|
@@ -17174,6 +18038,117 @@ export declare function parseUserId(user_id: string): {
|
|
|
17174
18038
|
connection: string;
|
|
17175
18039
|
id: string;
|
|
17176
18040
|
};
|
|
18041
|
+
/**
|
|
18042
|
+
* Configuration for a secondary adapter in passthrough mode.
|
|
18043
|
+
*/
|
|
18044
|
+
export interface SecondaryAdapterConfig<T> {
|
|
18045
|
+
/**
|
|
18046
|
+
* The secondary adapter to sync writes to.
|
|
18047
|
+
* Can be a partial implementation - only implemented methods will be called.
|
|
18048
|
+
*/
|
|
18049
|
+
adapter: Partial<T>;
|
|
18050
|
+
/**
|
|
18051
|
+
* If true, wait for the secondary write to complete before returning.
|
|
18052
|
+
* Default: false (fire-and-forget)
|
|
18053
|
+
*/
|
|
18054
|
+
blocking?: boolean;
|
|
18055
|
+
/**
|
|
18056
|
+
* Called when a secondary write fails.
|
|
18057
|
+
* @param error - The error that occurred
|
|
18058
|
+
* @param method - The method name that failed
|
|
18059
|
+
* @param args - The arguments passed to the method
|
|
18060
|
+
*/
|
|
18061
|
+
onError?: (error: Error, method: string, args: unknown[]) => void;
|
|
18062
|
+
}
|
|
18063
|
+
/**
|
|
18064
|
+
* Configuration for creating a passthrough adapter that syncs writes to multiple destinations.
|
|
18065
|
+
*
|
|
18066
|
+
* @template T - The adapter interface type (e.g., LogsDataAdapter, UsersDataAdapter)
|
|
18067
|
+
*/
|
|
18068
|
+
export interface PassthroughConfig<T> {
|
|
18069
|
+
/**
|
|
18070
|
+
* Primary adapter - all reads come from here, writes go here first.
|
|
18071
|
+
*/
|
|
18072
|
+
primary: T;
|
|
18073
|
+
/**
|
|
18074
|
+
* Secondary adapters to sync writes to.
|
|
18075
|
+
*/
|
|
18076
|
+
secondaries: SecondaryAdapterConfig<T>[];
|
|
18077
|
+
/**
|
|
18078
|
+
* Methods that should be synced to secondaries.
|
|
18079
|
+
* Default: ["create", "update", "remove", "delete", "set"]
|
|
18080
|
+
*/
|
|
18081
|
+
syncMethods?: string[];
|
|
18082
|
+
}
|
|
18083
|
+
/**
|
|
18084
|
+
* Creates a passthrough adapter that syncs write operations to multiple destinations.
|
|
18085
|
+
*
|
|
18086
|
+
* Reads always come from the primary adapter.
|
|
18087
|
+
* Writes go to the primary first, then are synced to all secondaries.
|
|
18088
|
+
*
|
|
18089
|
+
* @example Logs adapter with database primary and Analytics Engine secondary
|
|
18090
|
+
* ```typescript
|
|
18091
|
+
* import { createPassthroughAdapter } from "@authhero/adapter-interfaces";
|
|
18092
|
+
*
|
|
18093
|
+
* const logsAdapter = createPassthroughAdapter({
|
|
18094
|
+
* primary: databaseLogsAdapter,
|
|
18095
|
+
* secondaries: [
|
|
18096
|
+
* {
|
|
18097
|
+
* adapter: analyticsEngineAdapter,
|
|
18098
|
+
* onError: (err) => console.error("Analytics sync failed:", err),
|
|
18099
|
+
* },
|
|
18100
|
+
* ],
|
|
18101
|
+
* });
|
|
18102
|
+
* ```
|
|
18103
|
+
*
|
|
18104
|
+
* @example Cache adapter with multiple backends
|
|
18105
|
+
* ```typescript
|
|
18106
|
+
* const cacheAdapter = createPassthroughAdapter({
|
|
18107
|
+
* primary: redisCacheAdapter,
|
|
18108
|
+
* secondaries: [
|
|
18109
|
+
* { adapter: memcachedAdapter, blocking: true },
|
|
18110
|
+
* { adapter: localCacheAdapter },
|
|
18111
|
+
* ],
|
|
18112
|
+
* syncMethods: ["set", "delete"],
|
|
18113
|
+
* });
|
|
18114
|
+
* ```
|
|
18115
|
+
*
|
|
18116
|
+
* @example Users adapter with search index sync
|
|
18117
|
+
* ```typescript
|
|
18118
|
+
* const usersAdapter = createPassthroughAdapter({
|
|
18119
|
+
* primary: databaseUsersAdapter,
|
|
18120
|
+
* secondaries: [
|
|
18121
|
+
* {
|
|
18122
|
+
* adapter: elasticsearchAdapter,
|
|
18123
|
+
* blocking: true, // Wait for search index to update
|
|
18124
|
+
* },
|
|
18125
|
+
* ],
|
|
18126
|
+
* });
|
|
18127
|
+
* ```
|
|
18128
|
+
*/
|
|
18129
|
+
export declare function createPassthroughAdapter<T extends object>(config: PassthroughConfig<T>): T;
|
|
18130
|
+
/**
|
|
18131
|
+
* Creates a write-only adapter that only implements specific methods.
|
|
18132
|
+
* Useful for creating secondary adapters that only need to handle synced writes.
|
|
18133
|
+
*
|
|
18134
|
+
* @example
|
|
18135
|
+
* ```typescript
|
|
18136
|
+
* const webhookNotifier = createWriteOnlyAdapter<LogsDataAdapter>({
|
|
18137
|
+
* create: async (tenantId, log) => {
|
|
18138
|
+
* await fetch("https://webhook.example.com/logs", {
|
|
18139
|
+
* method: "POST",
|
|
18140
|
+
* body: JSON.stringify({ tenantId, log }),
|
|
18141
|
+
* });
|
|
18142
|
+
* },
|
|
18143
|
+
* });
|
|
18144
|
+
*
|
|
18145
|
+
* const logsAdapter = createPassthroughAdapter({
|
|
18146
|
+
* primary: databaseLogsAdapter,
|
|
18147
|
+
* secondaries: [{ adapter: webhookNotifier }],
|
|
18148
|
+
* });
|
|
18149
|
+
* ```
|
|
18150
|
+
*/
|
|
18151
|
+
export declare function createWriteOnlyAdapter<T>(implementation: Partial<T>): Partial<T>;
|
|
17177
18152
|
export interface CacheItem<T = any> {
|
|
17178
18153
|
value: T;
|
|
17179
18154
|
expiresAt?: Date;
|