@sudajs/cli 0.10.2 → 0.10.4
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/index.d.ts +187 -71
- package/dist/index.js +86 -20
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/templates/theme/AGENTS.md +7 -0
package/dist/index.d.ts
CHANGED
|
@@ -175,42 +175,60 @@ declare const updateContactFormInputSchema: z.ZodObject<{
|
|
|
175
175
|
placeholder?: string | undefined;
|
|
176
176
|
required?: boolean | undefined;
|
|
177
177
|
}[]>>;
|
|
178
|
-
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
179
179
|
id: z.ZodString;
|
|
180
|
-
type: z.
|
|
180
|
+
type: z.ZodLiteral<"email">;
|
|
181
181
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
182
182
|
label: z.ZodString;
|
|
183
|
-
recipients: z.
|
|
184
|
-
url: z.ZodOptional<z.ZodString>;
|
|
183
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
185
184
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
type: "email"
|
|
185
|
+
type: "email";
|
|
187
186
|
label: string;
|
|
188
187
|
id: string;
|
|
189
188
|
enabled: boolean;
|
|
190
189
|
recipients: string[];
|
|
191
|
-
url?: string | undefined;
|
|
192
190
|
}, {
|
|
193
|
-
type: "email"
|
|
191
|
+
type: "email";
|
|
194
192
|
label: string;
|
|
195
193
|
id: string;
|
|
194
|
+
recipients: string[];
|
|
196
195
|
enabled?: boolean | undefined;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
}>, z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
type: z.ZodEnum<["slack", "wecom", "feishu", "dingtalk"]>;
|
|
199
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
label: z.ZodString;
|
|
201
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
204
|
+
label: string;
|
|
205
|
+
id: string;
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
webhookUrl?: string | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
210
|
+
label: string;
|
|
211
|
+
id: string;
|
|
212
|
+
enabled?: boolean | undefined;
|
|
213
|
+
webhookUrl?: string | undefined;
|
|
214
|
+
}>]>, "many">>;
|
|
200
215
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
201
216
|
id: z.ZodString;
|
|
202
217
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
203
218
|
label: z.ZodString;
|
|
219
|
+
event: z.ZodDefault<z.ZodLiteral<"contact.submitted">>;
|
|
204
220
|
url: z.ZodOptional<z.ZodString>;
|
|
205
221
|
}, "strip", z.ZodTypeAny, {
|
|
206
222
|
label: string;
|
|
207
223
|
id: string;
|
|
208
224
|
enabled: boolean;
|
|
225
|
+
event: "contact.submitted";
|
|
209
226
|
url?: string | undefined;
|
|
210
227
|
}, {
|
|
211
228
|
label: string;
|
|
212
229
|
id: string;
|
|
213
230
|
enabled?: boolean | undefined;
|
|
231
|
+
event?: "contact.submitted" | undefined;
|
|
214
232
|
url?: string | undefined;
|
|
215
233
|
}>, "many">>;
|
|
216
234
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -235,18 +253,24 @@ declare const updateContactFormInputSchema: z.ZodObject<{
|
|
|
235
253
|
required: boolean;
|
|
236
254
|
placeholder?: string | undefined;
|
|
237
255
|
}[] | undefined;
|
|
238
|
-
notifications?: {
|
|
239
|
-
type: "email"
|
|
256
|
+
notifications?: ({
|
|
257
|
+
type: "email";
|
|
240
258
|
label: string;
|
|
241
259
|
id: string;
|
|
242
260
|
enabled: boolean;
|
|
243
261
|
recipients: string[];
|
|
244
|
-
|
|
245
|
-
|
|
262
|
+
} | {
|
|
263
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
264
|
+
label: string;
|
|
265
|
+
id: string;
|
|
266
|
+
enabled: boolean;
|
|
267
|
+
webhookUrl?: string | undefined;
|
|
268
|
+
})[] | undefined;
|
|
246
269
|
webhooks?: {
|
|
247
270
|
label: string;
|
|
248
271
|
id: string;
|
|
249
272
|
enabled: boolean;
|
|
273
|
+
event: "contact.submitted";
|
|
250
274
|
url?: string | undefined;
|
|
251
275
|
}[] | undefined;
|
|
252
276
|
confirm?: boolean | undefined;
|
|
@@ -271,18 +295,24 @@ declare const updateContactFormInputSchema: z.ZodObject<{
|
|
|
271
295
|
placeholder?: string | undefined;
|
|
272
296
|
required?: boolean | undefined;
|
|
273
297
|
}[] | undefined;
|
|
274
|
-
notifications?: {
|
|
275
|
-
type: "email"
|
|
298
|
+
notifications?: ({
|
|
299
|
+
type: "email";
|
|
276
300
|
label: string;
|
|
277
301
|
id: string;
|
|
302
|
+
recipients: string[];
|
|
278
303
|
enabled?: boolean | undefined;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
304
|
+
} | {
|
|
305
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
306
|
+
label: string;
|
|
307
|
+
id: string;
|
|
308
|
+
enabled?: boolean | undefined;
|
|
309
|
+
webhookUrl?: string | undefined;
|
|
310
|
+
})[] | undefined;
|
|
282
311
|
webhooks?: {
|
|
283
312
|
label: string;
|
|
284
313
|
id: string;
|
|
285
314
|
enabled?: boolean | undefined;
|
|
315
|
+
event?: "contact.submitted" | undefined;
|
|
286
316
|
url?: string | undefined;
|
|
287
317
|
}[] | undefined;
|
|
288
318
|
confirm?: boolean | undefined;
|
|
@@ -380,42 +410,60 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
380
410
|
placeholder?: string | undefined;
|
|
381
411
|
required?: boolean | undefined;
|
|
382
412
|
}[]>>;
|
|
383
|
-
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
384
414
|
id: z.ZodString;
|
|
385
|
-
type: z.
|
|
415
|
+
type: z.ZodLiteral<"email">;
|
|
386
416
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
387
417
|
label: z.ZodString;
|
|
388
|
-
recipients: z.
|
|
389
|
-
url: z.ZodOptional<z.ZodString>;
|
|
418
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
390
419
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
type: "email"
|
|
420
|
+
type: "email";
|
|
392
421
|
label: string;
|
|
393
422
|
id: string;
|
|
394
423
|
enabled: boolean;
|
|
395
424
|
recipients: string[];
|
|
396
|
-
url?: string | undefined;
|
|
397
425
|
}, {
|
|
398
|
-
type: "email"
|
|
426
|
+
type: "email";
|
|
399
427
|
label: string;
|
|
400
428
|
id: string;
|
|
429
|
+
recipients: string[];
|
|
401
430
|
enabled?: boolean | undefined;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
431
|
+
}>, z.ZodObject<{
|
|
432
|
+
id: z.ZodString;
|
|
433
|
+
type: z.ZodEnum<["slack", "wecom", "feishu", "dingtalk"]>;
|
|
434
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
435
|
+
label: z.ZodString;
|
|
436
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
439
|
+
label: string;
|
|
440
|
+
id: string;
|
|
441
|
+
enabled: boolean;
|
|
442
|
+
webhookUrl?: string | undefined;
|
|
443
|
+
}, {
|
|
444
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
445
|
+
label: string;
|
|
446
|
+
id: string;
|
|
447
|
+
enabled?: boolean | undefined;
|
|
448
|
+
webhookUrl?: string | undefined;
|
|
449
|
+
}>]>, "many">>;
|
|
405
450
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
451
|
id: z.ZodString;
|
|
407
452
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
408
453
|
label: z.ZodString;
|
|
454
|
+
event: z.ZodDefault<z.ZodLiteral<"contact.submitted">>;
|
|
409
455
|
url: z.ZodOptional<z.ZodString>;
|
|
410
456
|
}, "strip", z.ZodTypeAny, {
|
|
411
457
|
label: string;
|
|
412
458
|
id: string;
|
|
413
459
|
enabled: boolean;
|
|
460
|
+
event: "contact.submitted";
|
|
414
461
|
url?: string | undefined;
|
|
415
462
|
}, {
|
|
416
463
|
label: string;
|
|
417
464
|
id: string;
|
|
418
465
|
enabled?: boolean | undefined;
|
|
466
|
+
event?: "contact.submitted" | undefined;
|
|
419
467
|
url?: string | undefined;
|
|
420
468
|
}>, "many">>;
|
|
421
469
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -440,18 +488,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
440
488
|
required: boolean;
|
|
441
489
|
placeholder?: string | undefined;
|
|
442
490
|
}[] | undefined;
|
|
443
|
-
notifications?: {
|
|
444
|
-
type: "email"
|
|
491
|
+
notifications?: ({
|
|
492
|
+
type: "email";
|
|
445
493
|
label: string;
|
|
446
494
|
id: string;
|
|
447
495
|
enabled: boolean;
|
|
448
496
|
recipients: string[];
|
|
449
|
-
|
|
450
|
-
|
|
497
|
+
} | {
|
|
498
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
499
|
+
label: string;
|
|
500
|
+
id: string;
|
|
501
|
+
enabled: boolean;
|
|
502
|
+
webhookUrl?: string | undefined;
|
|
503
|
+
})[] | undefined;
|
|
451
504
|
webhooks?: {
|
|
452
505
|
label: string;
|
|
453
506
|
id: string;
|
|
454
507
|
enabled: boolean;
|
|
508
|
+
event: "contact.submitted";
|
|
455
509
|
url?: string | undefined;
|
|
456
510
|
}[] | undefined;
|
|
457
511
|
}, {
|
|
@@ -475,18 +529,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
475
529
|
placeholder?: string | undefined;
|
|
476
530
|
required?: boolean | undefined;
|
|
477
531
|
}[] | undefined;
|
|
478
|
-
notifications?: {
|
|
479
|
-
type: "email"
|
|
532
|
+
notifications?: ({
|
|
533
|
+
type: "email";
|
|
480
534
|
label: string;
|
|
481
535
|
id: string;
|
|
536
|
+
recipients: string[];
|
|
482
537
|
enabled?: boolean | undefined;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
538
|
+
} | {
|
|
539
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
540
|
+
label: string;
|
|
541
|
+
id: string;
|
|
542
|
+
enabled?: boolean | undefined;
|
|
543
|
+
webhookUrl?: string | undefined;
|
|
544
|
+
})[] | undefined;
|
|
486
545
|
webhooks?: {
|
|
487
546
|
label: string;
|
|
488
547
|
id: string;
|
|
489
548
|
enabled?: boolean | undefined;
|
|
549
|
+
event?: "contact.submitted" | undefined;
|
|
490
550
|
url?: string | undefined;
|
|
491
551
|
}[] | undefined;
|
|
492
552
|
}>;
|
|
@@ -515,18 +575,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
515
575
|
required: boolean;
|
|
516
576
|
placeholder?: string | undefined;
|
|
517
577
|
}[] | undefined;
|
|
518
|
-
notifications?: {
|
|
519
|
-
type: "email"
|
|
578
|
+
notifications?: ({
|
|
579
|
+
type: "email";
|
|
520
580
|
label: string;
|
|
521
581
|
id: string;
|
|
522
582
|
enabled: boolean;
|
|
523
583
|
recipients: string[];
|
|
524
|
-
|
|
525
|
-
|
|
584
|
+
} | {
|
|
585
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
586
|
+
label: string;
|
|
587
|
+
id: string;
|
|
588
|
+
enabled: boolean;
|
|
589
|
+
webhookUrl?: string | undefined;
|
|
590
|
+
})[] | undefined;
|
|
526
591
|
webhooks?: {
|
|
527
592
|
label: string;
|
|
528
593
|
id: string;
|
|
529
594
|
enabled: boolean;
|
|
595
|
+
event: "contact.submitted";
|
|
530
596
|
url?: string | undefined;
|
|
531
597
|
}[] | undefined;
|
|
532
598
|
};
|
|
@@ -555,18 +621,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
555
621
|
placeholder?: string | undefined;
|
|
556
622
|
required?: boolean | undefined;
|
|
557
623
|
}[] | undefined;
|
|
558
|
-
notifications?: {
|
|
559
|
-
type: "email"
|
|
624
|
+
notifications?: ({
|
|
625
|
+
type: "email";
|
|
560
626
|
label: string;
|
|
561
627
|
id: string;
|
|
628
|
+
recipients: string[];
|
|
562
629
|
enabled?: boolean | undefined;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
630
|
+
} | {
|
|
631
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
632
|
+
label: string;
|
|
633
|
+
id: string;
|
|
634
|
+
enabled?: boolean | undefined;
|
|
635
|
+
webhookUrl?: string | undefined;
|
|
636
|
+
})[] | undefined;
|
|
566
637
|
webhooks?: {
|
|
567
638
|
label: string;
|
|
568
639
|
id: string;
|
|
569
640
|
enabled?: boolean | undefined;
|
|
641
|
+
event?: "contact.submitted" | undefined;
|
|
570
642
|
url?: string | undefined;
|
|
571
643
|
}[] | undefined;
|
|
572
644
|
};
|
|
@@ -633,42 +705,60 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
633
705
|
placeholder?: string | undefined;
|
|
634
706
|
required?: boolean | undefined;
|
|
635
707
|
}>, "many">;
|
|
636
|
-
notifications: z.ZodArray<z.ZodObject<{
|
|
708
|
+
notifications: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
637
709
|
id: z.ZodString;
|
|
638
|
-
type: z.
|
|
710
|
+
type: z.ZodLiteral<"email">;
|
|
639
711
|
enabled: z.ZodBoolean;
|
|
640
712
|
label: z.ZodString;
|
|
641
713
|
recipients: z.ZodArray<z.ZodString, "many">;
|
|
642
|
-
urlMasked: z.ZodNullable<z.ZodString>;
|
|
643
714
|
}, "strip", z.ZodTypeAny, {
|
|
644
|
-
type: "email"
|
|
715
|
+
type: "email";
|
|
645
716
|
label: string;
|
|
646
717
|
id: string;
|
|
647
718
|
enabled: boolean;
|
|
648
719
|
recipients: string[];
|
|
649
|
-
urlMasked: string | null;
|
|
650
720
|
}, {
|
|
651
|
-
type: "email"
|
|
721
|
+
type: "email";
|
|
652
722
|
label: string;
|
|
653
723
|
id: string;
|
|
654
724
|
enabled: boolean;
|
|
655
725
|
recipients: string[];
|
|
656
|
-
|
|
657
|
-
|
|
726
|
+
}>, z.ZodObject<{
|
|
727
|
+
id: z.ZodString;
|
|
728
|
+
type: z.ZodEnum<["slack", "wecom", "feishu", "dingtalk"]>;
|
|
729
|
+
enabled: z.ZodBoolean;
|
|
730
|
+
label: z.ZodString;
|
|
731
|
+
webhookUrlMasked: z.ZodNullable<z.ZodString>;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
734
|
+
label: string;
|
|
735
|
+
id: string;
|
|
736
|
+
enabled: boolean;
|
|
737
|
+
webhookUrlMasked: string | null;
|
|
738
|
+
}, {
|
|
739
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
740
|
+
label: string;
|
|
741
|
+
id: string;
|
|
742
|
+
enabled: boolean;
|
|
743
|
+
webhookUrlMasked: string | null;
|
|
744
|
+
}>]>, "many">;
|
|
658
745
|
webhooks: z.ZodArray<z.ZodObject<{
|
|
659
746
|
id: z.ZodString;
|
|
660
747
|
enabled: z.ZodBoolean;
|
|
661
748
|
label: z.ZodString;
|
|
749
|
+
event: z.ZodLiteral<"contact.submitted">;
|
|
662
750
|
urlMasked: z.ZodNullable<z.ZodString>;
|
|
663
751
|
}, "strip", z.ZodTypeAny, {
|
|
664
752
|
label: string;
|
|
665
753
|
id: string;
|
|
666
754
|
enabled: boolean;
|
|
755
|
+
event: "contact.submitted";
|
|
667
756
|
urlMasked: string | null;
|
|
668
757
|
}, {
|
|
669
758
|
label: string;
|
|
670
759
|
id: string;
|
|
671
760
|
enabled: boolean;
|
|
761
|
+
event: "contact.submitted";
|
|
672
762
|
urlMasked: string | null;
|
|
673
763
|
}>, "many">;
|
|
674
764
|
limits: z.ZodObject<{
|
|
@@ -714,18 +804,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
714
804
|
required: boolean;
|
|
715
805
|
placeholder?: string | undefined;
|
|
716
806
|
}[];
|
|
717
|
-
notifications: {
|
|
718
|
-
type: "email"
|
|
807
|
+
notifications: ({
|
|
808
|
+
type: "email";
|
|
719
809
|
label: string;
|
|
720
810
|
id: string;
|
|
721
811
|
enabled: boolean;
|
|
722
812
|
recipients: string[];
|
|
723
|
-
|
|
724
|
-
|
|
813
|
+
} | {
|
|
814
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
815
|
+
label: string;
|
|
816
|
+
id: string;
|
|
817
|
+
enabled: boolean;
|
|
818
|
+
webhookUrlMasked: string | null;
|
|
819
|
+
})[];
|
|
725
820
|
webhooks: {
|
|
726
821
|
label: string;
|
|
727
822
|
id: string;
|
|
728
823
|
enabled: boolean;
|
|
824
|
+
event: "contact.submitted";
|
|
729
825
|
urlMasked: string | null;
|
|
730
826
|
}[];
|
|
731
827
|
limits: {
|
|
@@ -757,18 +853,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
757
853
|
placeholder?: string | undefined;
|
|
758
854
|
required?: boolean | undefined;
|
|
759
855
|
}[];
|
|
760
|
-
notifications: {
|
|
761
|
-
type: "email"
|
|
856
|
+
notifications: ({
|
|
857
|
+
type: "email";
|
|
762
858
|
label: string;
|
|
763
859
|
id: string;
|
|
764
860
|
enabled: boolean;
|
|
765
861
|
recipients: string[];
|
|
766
|
-
|
|
767
|
-
|
|
862
|
+
} | {
|
|
863
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
864
|
+
label: string;
|
|
865
|
+
id: string;
|
|
866
|
+
enabled: boolean;
|
|
867
|
+
webhookUrlMasked: string | null;
|
|
868
|
+
})[];
|
|
768
869
|
webhooks: {
|
|
769
870
|
label: string;
|
|
770
871
|
id: string;
|
|
771
872
|
enabled: boolean;
|
|
873
|
+
event: "contact.submitted";
|
|
772
874
|
urlMasked: string | null;
|
|
773
875
|
}[];
|
|
774
876
|
limits: {
|
|
@@ -804,18 +906,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
804
906
|
required: boolean;
|
|
805
907
|
placeholder?: string | undefined;
|
|
806
908
|
}[];
|
|
807
|
-
notifications: {
|
|
808
|
-
type: "email"
|
|
909
|
+
notifications: ({
|
|
910
|
+
type: "email";
|
|
809
911
|
label: string;
|
|
810
912
|
id: string;
|
|
811
913
|
enabled: boolean;
|
|
812
914
|
recipients: string[];
|
|
813
|
-
|
|
814
|
-
|
|
915
|
+
} | {
|
|
916
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
917
|
+
label: string;
|
|
918
|
+
id: string;
|
|
919
|
+
enabled: boolean;
|
|
920
|
+
webhookUrlMasked: string | null;
|
|
921
|
+
})[];
|
|
815
922
|
webhooks: {
|
|
816
923
|
label: string;
|
|
817
924
|
id: string;
|
|
818
925
|
enabled: boolean;
|
|
926
|
+
event: "contact.submitted";
|
|
819
927
|
urlMasked: string | null;
|
|
820
928
|
}[];
|
|
821
929
|
limits: {
|
|
@@ -851,18 +959,24 @@ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [
|
|
|
851
959
|
placeholder?: string | undefined;
|
|
852
960
|
required?: boolean | undefined;
|
|
853
961
|
}[];
|
|
854
|
-
notifications: {
|
|
855
|
-
type: "email"
|
|
962
|
+
notifications: ({
|
|
963
|
+
type: "email";
|
|
856
964
|
label: string;
|
|
857
965
|
id: string;
|
|
858
966
|
enabled: boolean;
|
|
859
967
|
recipients: string[];
|
|
860
|
-
|
|
861
|
-
|
|
968
|
+
} | {
|
|
969
|
+
type: "slack" | "wecom" | "feishu" | "dingtalk";
|
|
970
|
+
label: string;
|
|
971
|
+
id: string;
|
|
972
|
+
enabled: boolean;
|
|
973
|
+
webhookUrlMasked: string | null;
|
|
974
|
+
})[];
|
|
862
975
|
webhooks: {
|
|
863
976
|
label: string;
|
|
864
977
|
id: string;
|
|
865
978
|
enabled: boolean;
|
|
979
|
+
event: "contact.submitted";
|
|
866
980
|
urlMasked: string | null;
|
|
867
981
|
}[];
|
|
868
982
|
limits: {
|
|
@@ -898,6 +1012,7 @@ declare const __testUtils: {
|
|
|
898
1012
|
performConfirmedPageOperation: typeof performConfirmedPageOperation;
|
|
899
1013
|
performUpdateContactForm: typeof performUpdateContactForm;
|
|
900
1014
|
renderDevStarterPageHtml: typeof renderDevStarterPageHtml;
|
|
1015
|
+
resolveDevStarterSlug: typeof resolveDevStarterSlug;
|
|
901
1016
|
resolveScreenshotOptions: typeof resolveScreenshotOptions;
|
|
902
1017
|
slugifyThemeName: typeof slugifyThemeName;
|
|
903
1018
|
validateThemeKey: typeof validateThemeKey;
|
|
@@ -907,6 +1022,7 @@ declare const __testUtils: {
|
|
|
907
1022
|
updateRemotePageDraft: typeof updateRemotePageDraft;
|
|
908
1023
|
};
|
|
909
1024
|
declare function watchTheme(root: string, port: number): Promise<void>;
|
|
1025
|
+
declare function resolveDevStarterSlug(pathname: string): string | null | undefined;
|
|
910
1026
|
/**
|
|
911
1027
|
* Theme-project-scoped renderer bundle. We deliberately resolve `react`,
|
|
912
1028
|
* `react-dom/server` and `@sudajs/theme-engine/server` through the theme
|