@velastack/patterns 0.0.35 → 0.0.36
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/chunks/{collections-DRN-8nW0.js → collections-DcCZ0dam.js} +73 -5
- package/dist/chunks/collections-DcCZ0dam.js.map +1 -0
- package/dist/chunks/env-DfA_NCKk.js +67 -0
- package/dist/chunks/env-DfA_NCKk.js.map +1 -0
- package/dist/chunks/{env.preview-BZwjhgoi.js → env.preview-7Cc9KCgc.js} +1 -1
- package/dist/chunks/{env.preview-BZwjhgoi.js.map → env.preview-7Cc9KCgc.js.map} +1 -1
- package/dist/chunks/{env.runtime-BEdollKV.js → env.runtime-l1ssTZog.js} +1 -1
- package/dist/chunks/{env.runtime-BEdollKV.js.map → env.runtime-l1ssTZog.js.map} +1 -1
- package/dist/chunks/{generate.runtime-Caqa5ndO.js → generate.runtime-BB0XISiq.js} +4 -3
- package/dist/chunks/{generate.runtime-Caqa5ndO.js.map → generate.runtime-BB0XISiq.js.map} +1 -1
- package/dist/chunks/generate.runtime-Bag8x62P.js +37 -0
- package/dist/chunks/generate.runtime-Bag8x62P.js.map +1 -0
- package/dist/chunks/generate.runtime-Bu5bO86n.js +60 -0
- package/dist/chunks/generate.runtime-Bu5bO86n.js.map +1 -0
- package/dist/chunks/{generate.runtime-DTZ1PeDS.js → generate.runtime-CKouBODu.js} +27 -26
- package/dist/chunks/{generate.runtime-DTZ1PeDS.js.map → generate.runtime-CKouBODu.js.map} +1 -1
- package/dist/chunks/{generate.runtime-D7ksYerH.js → generate.runtime-CS55berV.js} +7 -6
- package/dist/chunks/{generate.runtime-D7ksYerH.js.map → generate.runtime-CS55berV.js.map} +1 -1
- package/dist/chunks/generate.runtime-CVsBIZm4.js +37 -0
- package/dist/chunks/generate.runtime-CVsBIZm4.js.map +1 -0
- package/dist/chunks/{generate.runtime--31y_UK2.js → generate.runtime-Cy56Ypws.js} +27 -26
- package/dist/chunks/{generate.runtime--31y_UK2.js.map → generate.runtime-Cy56Ypws.js.map} +1 -1
- package/dist/chunks/generate.runtime-D3H_yNZA.js +210 -0
- package/dist/chunks/generate.runtime-D3H_yNZA.js.map +1 -0
- package/dist/chunks/generate.runtime-D8DxU99S.js +93 -0
- package/dist/chunks/generate.runtime-D8DxU99S.js.map +1 -0
- package/dist/chunks/generate.runtime-DPbHzukR.js +116 -0
- package/dist/chunks/generate.runtime-DPbHzukR.js.map +1 -0
- package/dist/chunks/{generate.runtime-BVss5za4.js → generate.runtime-DV9S4KW_.js} +106 -131
- package/dist/chunks/generate.runtime-DV9S4KW_.js.map +1 -0
- package/dist/chunks/generate.runtime-GmszNklA.js +56 -0
- package/dist/chunks/generate.runtime-GmszNklA.js.map +1 -0
- package/dist/chunks/generate.runtime-NdlYevoh.js +65 -0
- package/dist/chunks/generate.runtime-NdlYevoh.js.map +1 -0
- package/dist/chunks/{generate.runtime-Cbq2649r.js → generate.runtime-eYyscad0.js} +29 -28
- package/dist/chunks/{generate.runtime-Cbq2649r.js.map → generate.runtime-eYyscad0.js.map} +1 -1
- package/dist/chunks/{generate.runtime-CZKIdbEC.js → generate.runtime-mPNuFTCh.js} +54 -53
- package/dist/chunks/{generate.runtime-CZKIdbEC.js.map → generate.runtime-mPNuFTCh.js.map} +1 -1
- package/dist/chunks/hooks.server-CPVyj3rv.js +75 -0
- package/dist/chunks/hooks.server-CPVyj3rv.js.map +1 -0
- package/dist/chunks/{modify-file-DT_1_kvI.js → modify-file-Bi-4GRwL.js} +2 -2
- package/dist/chunks/{modify-file-DT_1_kvI.js.map → modify-file-Bi-4GRwL.js.map} +1 -1
- package/dist/chunks/{modify-svelte-config-remote-CFsA9Mom.js → modify-svelte-config-remote-B-jnjYqs.js} +1 -1
- package/dist/chunks/{modify-svelte-config-remote-CFsA9Mom.js.map → modify-svelte-config-remote-B-jnjYqs.js.map} +1 -1
- package/dist/chunks/{pocketbase-iFJBbNJu.js → pocketbase-CT78tKFG.js} +1 -1
- package/dist/chunks/{pocketbase-iFJBbNJu.js.map → pocketbase-CT78tKFG.js.map} +1 -1
- package/dist/chunks/shared-D9iYuKxV.js +27 -0
- package/dist/chunks/shared-D9iYuKxV.js.map +1 -0
- package/dist/chunks/{ts-morph-helpers-C0HeJDjR.js → ts-morph-helpers-B0oxeDUU.js} +47 -3
- package/dist/chunks/ts-morph-helpers-B0oxeDUU.js.map +1 -0
- package/dist/chunks/{util-C064WO8o.js → util-CLl3VxaE.js} +4 -3
- package/dist/chunks/util-CLl3VxaE.js.map +1 -0
- package/dist/chunks/{write-result-CqSY1Bww.js → write-result-CRq0kUvL.js} +12 -7
- package/dist/chunks/{write-result-CqSY1Bww.js.map → write-result-CRq0kUvL.js.map} +1 -1
- package/dist/index.d.ts +912 -209
- package/dist/index.js +1868 -871
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/collections-DRN-8nW0.js.map +0 -1
- package/dist/chunks/generate.runtime-BVss5za4.js.map +0 -1
- package/dist/chunks/ts-morph-helpers-C0HeJDjR.js.map +0 -1
- package/dist/chunks/util-C064WO8o.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -316,6 +316,33 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n" |
|
|
|
316
316
|
tests: number;
|
|
317
317
|
baseline: "velastack";
|
|
318
318
|
generate: generate_11;
|
|
319
|
+
} | {
|
|
320
|
+
version: string;
|
|
321
|
+
slug: "enable-content-negotiation";
|
|
322
|
+
source: string;
|
|
323
|
+
docs: string;
|
|
324
|
+
plan: "open";
|
|
325
|
+
title: string;
|
|
326
|
+
summary: string;
|
|
327
|
+
requires: {
|
|
328
|
+
auth: false;
|
|
329
|
+
api: false;
|
|
330
|
+
apiKeys: false;
|
|
331
|
+
i18n: false;
|
|
332
|
+
teams: false;
|
|
333
|
+
payments: false;
|
|
334
|
+
};
|
|
335
|
+
category: "api";
|
|
336
|
+
tags: string[];
|
|
337
|
+
command: {
|
|
338
|
+
raw: string;
|
|
339
|
+
base: string;
|
|
340
|
+
argv: never[];
|
|
341
|
+
};
|
|
342
|
+
examples: never[];
|
|
343
|
+
tests: number;
|
|
344
|
+
baseline: "velastack";
|
|
345
|
+
generate: generate_12;
|
|
319
346
|
} | {
|
|
320
347
|
version: string;
|
|
321
348
|
slug: "enable-i18n";
|
|
@@ -332,7 +359,819 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n" |
|
|
|
332
359
|
teams: false;
|
|
333
360
|
payments: false;
|
|
334
361
|
};
|
|
335
|
-
category: "i18n";
|
|
362
|
+
category: "i18n";
|
|
363
|
+
tags: string[];
|
|
364
|
+
command: {
|
|
365
|
+
raw: string;
|
|
366
|
+
base: string;
|
|
367
|
+
argv: never[];
|
|
368
|
+
};
|
|
369
|
+
examples: never[];
|
|
370
|
+
tests: number;
|
|
371
|
+
baseline: "velastack";
|
|
372
|
+
generate: generate_13;
|
|
373
|
+
} | {
|
|
374
|
+
version: string;
|
|
375
|
+
slug: "enable-payments";
|
|
376
|
+
source: string;
|
|
377
|
+
docs: string;
|
|
378
|
+
plan: "pro";
|
|
379
|
+
title: string;
|
|
380
|
+
summary: string;
|
|
381
|
+
requires: {
|
|
382
|
+
auth: false;
|
|
383
|
+
api: false;
|
|
384
|
+
apiKeys: false;
|
|
385
|
+
i18n: false;
|
|
386
|
+
teams: false;
|
|
387
|
+
payments: false;
|
|
388
|
+
};
|
|
389
|
+
category: "payments";
|
|
390
|
+
tags: string[];
|
|
391
|
+
command: {
|
|
392
|
+
raw: string;
|
|
393
|
+
base: string;
|
|
394
|
+
argv: never[];
|
|
395
|
+
};
|
|
396
|
+
examples: never[];
|
|
397
|
+
tests: number;
|
|
398
|
+
baseline: "velastack";
|
|
399
|
+
generate: generate_14;
|
|
400
|
+
} | {
|
|
401
|
+
version: string;
|
|
402
|
+
slug: "enable-teams";
|
|
403
|
+
source: string;
|
|
404
|
+
docs: string;
|
|
405
|
+
plan: "pro";
|
|
406
|
+
title: string;
|
|
407
|
+
summary: string;
|
|
408
|
+
requires: {
|
|
409
|
+
auth: true;
|
|
410
|
+
api: false;
|
|
411
|
+
apiKeys: false;
|
|
412
|
+
i18n: false;
|
|
413
|
+
teams: false;
|
|
414
|
+
payments: false;
|
|
415
|
+
};
|
|
416
|
+
category: "auth";
|
|
417
|
+
tags: string[];
|
|
418
|
+
command: {
|
|
419
|
+
raw: string;
|
|
420
|
+
base: string;
|
|
421
|
+
argv: never[];
|
|
422
|
+
};
|
|
423
|
+
examples: never[];
|
|
424
|
+
tests: number;
|
|
425
|
+
baseline: "velastack";
|
|
426
|
+
generate: generate_15;
|
|
427
|
+
} | {
|
|
428
|
+
version: string;
|
|
429
|
+
slug: "destroy-schema";
|
|
430
|
+
source: string;
|
|
431
|
+
docs: string;
|
|
432
|
+
plan: "open";
|
|
433
|
+
title: string;
|
|
434
|
+
summary: string;
|
|
435
|
+
requires: {
|
|
436
|
+
auth: false;
|
|
437
|
+
api: false;
|
|
438
|
+
apiKeys: false;
|
|
439
|
+
i18n: false;
|
|
440
|
+
teams: false;
|
|
441
|
+
payments: false;
|
|
442
|
+
};
|
|
443
|
+
category: "generators";
|
|
444
|
+
tags: string[];
|
|
445
|
+
command: {
|
|
446
|
+
raw: string;
|
|
447
|
+
base: string;
|
|
448
|
+
argv: string[];
|
|
449
|
+
};
|
|
450
|
+
examples: {
|
|
451
|
+
command: string;
|
|
452
|
+
description: string;
|
|
453
|
+
}[];
|
|
454
|
+
tests: number;
|
|
455
|
+
baseline: "velastack";
|
|
456
|
+
generate: generate_16;
|
|
457
|
+
} | {
|
|
458
|
+
version: string;
|
|
459
|
+
slug: "destroy-form";
|
|
460
|
+
source: string;
|
|
461
|
+
docs: string;
|
|
462
|
+
plan: "open";
|
|
463
|
+
title: string;
|
|
464
|
+
summary: string;
|
|
465
|
+
requires: {
|
|
466
|
+
auth: false;
|
|
467
|
+
api: false;
|
|
468
|
+
apiKeys: false;
|
|
469
|
+
i18n: false;
|
|
470
|
+
teams: false;
|
|
471
|
+
payments: false;
|
|
472
|
+
};
|
|
473
|
+
category: "generators";
|
|
474
|
+
tags: string[];
|
|
475
|
+
command: {
|
|
476
|
+
raw: string;
|
|
477
|
+
base: string;
|
|
478
|
+
argv: string[];
|
|
479
|
+
};
|
|
480
|
+
examples: {
|
|
481
|
+
command: string;
|
|
482
|
+
description: string;
|
|
483
|
+
}[];
|
|
484
|
+
tests: number;
|
|
485
|
+
baseline: "velastack";
|
|
486
|
+
generate: generate_17;
|
|
487
|
+
} | {
|
|
488
|
+
version: string;
|
|
489
|
+
slug: "destroy-resource";
|
|
490
|
+
source: string;
|
|
491
|
+
docs: string;
|
|
492
|
+
plan: "open";
|
|
493
|
+
title: string;
|
|
494
|
+
summary: string;
|
|
495
|
+
requires: {
|
|
496
|
+
auth: false;
|
|
497
|
+
api: false;
|
|
498
|
+
apiKeys: false;
|
|
499
|
+
i18n: false;
|
|
500
|
+
teams: false;
|
|
501
|
+
payments: false;
|
|
502
|
+
};
|
|
503
|
+
category: "generators";
|
|
504
|
+
tags: string[];
|
|
505
|
+
command: {
|
|
506
|
+
raw: string;
|
|
507
|
+
base: string;
|
|
508
|
+
argv: string[];
|
|
509
|
+
};
|
|
510
|
+
examples: {
|
|
511
|
+
command: string;
|
|
512
|
+
description: string;
|
|
513
|
+
}[];
|
|
514
|
+
tests: number;
|
|
515
|
+
baseline: "velastack";
|
|
516
|
+
generate: generate_18;
|
|
517
|
+
} | {
|
|
518
|
+
version: string;
|
|
519
|
+
slug: "destroy-scaffold";
|
|
520
|
+
source: string;
|
|
521
|
+
docs: string;
|
|
522
|
+
plan: "open";
|
|
523
|
+
title: string;
|
|
524
|
+
summary: string;
|
|
525
|
+
requires: {
|
|
526
|
+
auth: false;
|
|
527
|
+
api: false;
|
|
528
|
+
apiKeys: false;
|
|
529
|
+
i18n: false;
|
|
530
|
+
teams: false;
|
|
531
|
+
payments: false;
|
|
532
|
+
};
|
|
533
|
+
category: "generators";
|
|
534
|
+
tags: string[];
|
|
535
|
+
command: {
|
|
536
|
+
raw: string;
|
|
537
|
+
base: string;
|
|
538
|
+
argv: string[];
|
|
539
|
+
};
|
|
540
|
+
examples: {
|
|
541
|
+
command: string;
|
|
542
|
+
description: string;
|
|
543
|
+
}[];
|
|
544
|
+
tests: number;
|
|
545
|
+
baseline: "velastack";
|
|
546
|
+
generate: generate_19;
|
|
547
|
+
} | {
|
|
548
|
+
version: string;
|
|
549
|
+
slug: "disable-api";
|
|
550
|
+
source: string;
|
|
551
|
+
docs: string;
|
|
552
|
+
plan: "open";
|
|
553
|
+
title: string;
|
|
554
|
+
summary: string;
|
|
555
|
+
requires: {
|
|
556
|
+
auth: false;
|
|
557
|
+
api: true;
|
|
558
|
+
apiKeys: false;
|
|
559
|
+
i18n: false;
|
|
560
|
+
teams: false;
|
|
561
|
+
payments: false;
|
|
562
|
+
};
|
|
563
|
+
category: "api";
|
|
564
|
+
tags: string[];
|
|
565
|
+
command: {
|
|
566
|
+
raw: string;
|
|
567
|
+
base: string;
|
|
568
|
+
argv: never[];
|
|
569
|
+
};
|
|
570
|
+
examples: never[];
|
|
571
|
+
tests: number;
|
|
572
|
+
baseline: "velastack";
|
|
573
|
+
generate: generate_20;
|
|
574
|
+
} | {
|
|
575
|
+
version: string;
|
|
576
|
+
slug: "disable-api-keys";
|
|
577
|
+
source: string;
|
|
578
|
+
docs: string;
|
|
579
|
+
plan: "open";
|
|
580
|
+
title: string;
|
|
581
|
+
summary: string;
|
|
582
|
+
requires: {
|
|
583
|
+
auth: true;
|
|
584
|
+
api: true;
|
|
585
|
+
apiKeys: true;
|
|
586
|
+
i18n: false;
|
|
587
|
+
teams: false;
|
|
588
|
+
payments: false;
|
|
589
|
+
};
|
|
590
|
+
category: "api";
|
|
591
|
+
tags: string[];
|
|
592
|
+
command: {
|
|
593
|
+
raw: string;
|
|
594
|
+
base: string;
|
|
595
|
+
argv: never[];
|
|
596
|
+
};
|
|
597
|
+
examples: never[];
|
|
598
|
+
tests: number;
|
|
599
|
+
baseline: "velastack";
|
|
600
|
+
generate: generate_21;
|
|
601
|
+
} | {
|
|
602
|
+
version: string;
|
|
603
|
+
slug: "disable-auth";
|
|
604
|
+
source: string;
|
|
605
|
+
docs: string;
|
|
606
|
+
plan: "open";
|
|
607
|
+
title: string;
|
|
608
|
+
summary: string;
|
|
609
|
+
requires: {
|
|
610
|
+
auth: true;
|
|
611
|
+
api: false;
|
|
612
|
+
apiKeys: false;
|
|
613
|
+
i18n: false;
|
|
614
|
+
teams: false;
|
|
615
|
+
payments: false;
|
|
616
|
+
};
|
|
617
|
+
category: "auth";
|
|
618
|
+
tags: string[];
|
|
619
|
+
command: {
|
|
620
|
+
raw: string;
|
|
621
|
+
base: string;
|
|
622
|
+
argv: never[];
|
|
623
|
+
};
|
|
624
|
+
examples: never[];
|
|
625
|
+
tests: number;
|
|
626
|
+
baseline: "velastack-auth";
|
|
627
|
+
generate: generate_22;
|
|
628
|
+
} | {
|
|
629
|
+
version: string;
|
|
630
|
+
slug: "disable-auth-remote";
|
|
631
|
+
source: string;
|
|
632
|
+
docs: string;
|
|
633
|
+
plan: "open";
|
|
634
|
+
title: string;
|
|
635
|
+
summary: string;
|
|
636
|
+
requires: {
|
|
637
|
+
auth: true;
|
|
638
|
+
api: false;
|
|
639
|
+
apiKeys: false;
|
|
640
|
+
i18n: false;
|
|
641
|
+
teams: false;
|
|
642
|
+
payments: false;
|
|
643
|
+
};
|
|
644
|
+
category: "auth";
|
|
645
|
+
tags: string[];
|
|
646
|
+
command: {
|
|
647
|
+
raw: string;
|
|
648
|
+
base: string;
|
|
649
|
+
argv: never[];
|
|
650
|
+
};
|
|
651
|
+
examples: never[];
|
|
652
|
+
tests: number;
|
|
653
|
+
baseline: "velastack";
|
|
654
|
+
generate: generate_23;
|
|
655
|
+
} | {
|
|
656
|
+
version: string;
|
|
657
|
+
slug: "disable-i18n";
|
|
658
|
+
source: string;
|
|
659
|
+
docs: string;
|
|
660
|
+
plan: "open";
|
|
661
|
+
title: string;
|
|
662
|
+
summary: string;
|
|
663
|
+
requires: {
|
|
664
|
+
auth: false;
|
|
665
|
+
api: false;
|
|
666
|
+
apiKeys: false;
|
|
667
|
+
i18n: true;
|
|
668
|
+
teams: false;
|
|
669
|
+
payments: false;
|
|
670
|
+
};
|
|
671
|
+
category: "i18n";
|
|
672
|
+
tags: string[];
|
|
673
|
+
command: {
|
|
674
|
+
raw: string;
|
|
675
|
+
base: string;
|
|
676
|
+
argv: never[];
|
|
677
|
+
};
|
|
678
|
+
examples: never[];
|
|
679
|
+
tests: number;
|
|
680
|
+
baseline: "velastack";
|
|
681
|
+
generate: generate_24;
|
|
682
|
+
} | {
|
|
683
|
+
version: string;
|
|
684
|
+
slug: "disable-teams";
|
|
685
|
+
source: string;
|
|
686
|
+
docs: string;
|
|
687
|
+
plan: "pro";
|
|
688
|
+
title: string;
|
|
689
|
+
summary: string;
|
|
690
|
+
requires: {
|
|
691
|
+
auth: true;
|
|
692
|
+
api: false;
|
|
693
|
+
apiKeys: false;
|
|
694
|
+
i18n: false;
|
|
695
|
+
teams: true;
|
|
696
|
+
payments: false;
|
|
697
|
+
};
|
|
698
|
+
category: "auth";
|
|
699
|
+
tags: string[];
|
|
700
|
+
command: {
|
|
701
|
+
raw: string;
|
|
702
|
+
base: string;
|
|
703
|
+
argv: never[];
|
|
704
|
+
};
|
|
705
|
+
examples: never[];
|
|
706
|
+
tests: number;
|
|
707
|
+
baseline: "velastack-auth";
|
|
708
|
+
generate: generate_25;
|
|
709
|
+
} | {
|
|
710
|
+
version: string;
|
|
711
|
+
slug: "disable-payments";
|
|
712
|
+
source: string;
|
|
713
|
+
docs: string;
|
|
714
|
+
plan: "pro";
|
|
715
|
+
title: string;
|
|
716
|
+
summary: string;
|
|
717
|
+
requires: {
|
|
718
|
+
auth: false;
|
|
719
|
+
api: false;
|
|
720
|
+
apiKeys: false;
|
|
721
|
+
i18n: false;
|
|
722
|
+
teams: false;
|
|
723
|
+
payments: true;
|
|
724
|
+
};
|
|
725
|
+
category: "payments";
|
|
726
|
+
tags: string[];
|
|
727
|
+
command: {
|
|
728
|
+
raw: string;
|
|
729
|
+
base: string;
|
|
730
|
+
argv: never[];
|
|
731
|
+
};
|
|
732
|
+
examples: never[];
|
|
733
|
+
tests: number;
|
|
734
|
+
baseline: "velastack";
|
|
735
|
+
generate: generate_26;
|
|
736
|
+
})[]>;
|
|
737
|
+
|
|
738
|
+
export declare const bySlug: Record<Slug, PatternEntry>;
|
|
739
|
+
|
|
740
|
+
export declare type Category = PatternEntry["category"];
|
|
741
|
+
|
|
742
|
+
declare interface CollectionDropSpec {
|
|
743
|
+
name: string;
|
|
744
|
+
exists: boolean;
|
|
745
|
+
rowCount: number;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
declare interface CollectionFieldsPatch {
|
|
749
|
+
collectionName: string;
|
|
750
|
+
changes: FieldChange[];
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
declare interface CollectionFieldSpec {
|
|
754
|
+
name: string;
|
|
755
|
+
type: string;
|
|
756
|
+
required?: boolean;
|
|
757
|
+
/** PocketBase collection id for relation fields (runtime). Preview may use the related collection name as a readable stand-in. */
|
|
758
|
+
collectionId?: string;
|
|
759
|
+
maxSelect?: number;
|
|
760
|
+
minSelect?: number;
|
|
761
|
+
values?: string[];
|
|
762
|
+
onCreate?: boolean;
|
|
763
|
+
onUpdate?: boolean;
|
|
764
|
+
primaryKey?: boolean;
|
|
765
|
+
cascadeDelete?: boolean;
|
|
766
|
+
pattern?: string;
|
|
767
|
+
min?: number;
|
|
768
|
+
max?: number;
|
|
769
|
+
autogeneratePattern?: string;
|
|
770
|
+
exceptDomains?: null;
|
|
771
|
+
onlyDomains?: null;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
declare interface CollectionSpec {
|
|
775
|
+
name: string;
|
|
776
|
+
type: "base" | "auth" | "view";
|
|
777
|
+
listRule?: string | null;
|
|
778
|
+
viewRule?: string | null;
|
|
779
|
+
createRule?: string | null;
|
|
780
|
+
updateRule?: string | null;
|
|
781
|
+
deleteRule?: string | null;
|
|
782
|
+
fields: CollectionFieldSpec[];
|
|
783
|
+
/** View collection SQL (PocketBase). */
|
|
784
|
+
viewQuery?: string;
|
|
785
|
+
indexes?: string[];
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
declare type Component = string;
|
|
789
|
+
|
|
790
|
+
declare interface Features {
|
|
791
|
+
auth: boolean;
|
|
792
|
+
api: boolean;
|
|
793
|
+
apiKeys: boolean;
|
|
794
|
+
i18n: boolean;
|
|
795
|
+
teams: boolean;
|
|
796
|
+
payments: boolean;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare type FieldChange = {
|
|
800
|
+
op: "add";
|
|
801
|
+
field: CollectionFieldSpec;
|
|
802
|
+
} | {
|
|
803
|
+
op: "remove";
|
|
804
|
+
fieldName: string;
|
|
805
|
+
} | {
|
|
806
|
+
op: "rename";
|
|
807
|
+
from: string;
|
|
808
|
+
to: string;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
declare interface File_2 {
|
|
812
|
+
path: string;
|
|
813
|
+
language: string;
|
|
814
|
+
content: string;
|
|
815
|
+
status: FileStatus;
|
|
816
|
+
message?: string;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare type FileStatus = "success" | "failed" | "not-found";
|
|
820
|
+
|
|
821
|
+
declare function generate(options: Options): Promise<Result>;
|
|
822
|
+
|
|
823
|
+
declare function generate_10(options: Options): Promise<Result>;
|
|
824
|
+
|
|
825
|
+
declare function generate_11(options: Options): Promise<Result>;
|
|
826
|
+
|
|
827
|
+
declare function generate_12(options: Options): Promise<Result>;
|
|
828
|
+
|
|
829
|
+
declare function generate_13(options: Options): Promise<Result>;
|
|
830
|
+
|
|
831
|
+
declare function generate_14(options: Options): Promise<Result>;
|
|
832
|
+
|
|
833
|
+
declare function generate_15(options: Options): Promise<Result>;
|
|
834
|
+
|
|
835
|
+
declare function generate_16(options: Options): Promise<Result>;
|
|
836
|
+
|
|
837
|
+
declare function generate_17(options: Options): Promise<Result>;
|
|
838
|
+
|
|
839
|
+
declare function generate_18(options: Options): Promise<Result>;
|
|
840
|
+
|
|
841
|
+
declare function generate_19(options: Options): Promise<Result>;
|
|
842
|
+
|
|
843
|
+
declare function generate_2(options: Options): Promise<Result>;
|
|
844
|
+
|
|
845
|
+
declare function generate_20(options: Options): Promise<Result>;
|
|
846
|
+
|
|
847
|
+
declare function generate_21(options: Options): Promise<Result>;
|
|
848
|
+
|
|
849
|
+
declare function generate_22(options: Options): Promise<Result>;
|
|
850
|
+
|
|
851
|
+
declare function generate_23(options: Options): Promise<Result>;
|
|
852
|
+
|
|
853
|
+
declare function generate_24(options: Options): Promise<Result>;
|
|
854
|
+
|
|
855
|
+
declare function generate_25(options: Options): Promise<Result>;
|
|
856
|
+
|
|
857
|
+
declare function generate_26(options: Options): Promise<Result>;
|
|
858
|
+
|
|
859
|
+
declare function generate_3(options: Options): Promise<Result>;
|
|
860
|
+
|
|
861
|
+
declare function generate_4(options: Options): Promise<Result>;
|
|
862
|
+
|
|
863
|
+
declare function generate_5(options: Options): Promise<Result>;
|
|
864
|
+
|
|
865
|
+
declare function generate_6(options: Options): Promise<Result>;
|
|
866
|
+
|
|
867
|
+
declare function generate_7(options: Options): Promise<Result>;
|
|
868
|
+
|
|
869
|
+
declare function generate_8(options: Options): Promise<Result>;
|
|
870
|
+
|
|
871
|
+
declare function generate_9(options: Options): Promise<Result>;
|
|
872
|
+
|
|
873
|
+
export declare class InvalidArgumentError extends Error {
|
|
874
|
+
constructor(message: string);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
declare interface Logger {
|
|
878
|
+
info: (message: string) => void;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
declare interface Options {
|
|
882
|
+
argv: string[];
|
|
883
|
+
env: "runtime" | "preview";
|
|
884
|
+
root: string;
|
|
885
|
+
features: Features;
|
|
886
|
+
input: Record<string, any>;
|
|
887
|
+
logger?: Logger;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
declare type Package = string;
|
|
891
|
+
|
|
892
|
+
declare type PatternEntry = (typeof patterns)[number];
|
|
893
|
+
|
|
894
|
+
export declare const patterns: ({
|
|
895
|
+
version: string;
|
|
896
|
+
slug: "generate-form";
|
|
897
|
+
source: string;
|
|
898
|
+
docs: string;
|
|
899
|
+
plan: "open";
|
|
900
|
+
title: string;
|
|
901
|
+
summary: string;
|
|
902
|
+
requires: {
|
|
903
|
+
auth: false;
|
|
904
|
+
api: false;
|
|
905
|
+
apiKeys: false;
|
|
906
|
+
i18n: false;
|
|
907
|
+
teams: false;
|
|
908
|
+
payments: false;
|
|
909
|
+
};
|
|
910
|
+
category: "generators";
|
|
911
|
+
tags: string[];
|
|
912
|
+
command: {
|
|
913
|
+
raw: string;
|
|
914
|
+
base: string;
|
|
915
|
+
argv: string[];
|
|
916
|
+
};
|
|
917
|
+
examples: {
|
|
918
|
+
command: string;
|
|
919
|
+
description: string;
|
|
920
|
+
}[];
|
|
921
|
+
tests: number;
|
|
922
|
+
baseline: "velastack";
|
|
923
|
+
generate: generate;
|
|
924
|
+
} | {
|
|
925
|
+
version: string;
|
|
926
|
+
slug: "generate-form-remote";
|
|
927
|
+
source: string;
|
|
928
|
+
docs: string;
|
|
929
|
+
plan: "open";
|
|
930
|
+
title: string;
|
|
931
|
+
summary: string;
|
|
932
|
+
requires: {
|
|
933
|
+
auth: false;
|
|
934
|
+
api: false;
|
|
935
|
+
apiKeys: false;
|
|
936
|
+
i18n: false;
|
|
937
|
+
teams: false;
|
|
938
|
+
payments: false;
|
|
939
|
+
};
|
|
940
|
+
category: "generators";
|
|
941
|
+
tags: string[];
|
|
942
|
+
command: {
|
|
943
|
+
raw: string;
|
|
944
|
+
base: string;
|
|
945
|
+
argv: string[];
|
|
946
|
+
};
|
|
947
|
+
examples: {
|
|
948
|
+
command: string;
|
|
949
|
+
description: string;
|
|
950
|
+
}[];
|
|
951
|
+
tests: number;
|
|
952
|
+
baseline: "velastack";
|
|
953
|
+
generate: generate_2;
|
|
954
|
+
} | {
|
|
955
|
+
version: string;
|
|
956
|
+
slug: "generate-migration";
|
|
957
|
+
source: string;
|
|
958
|
+
docs: string;
|
|
959
|
+
plan: "open";
|
|
960
|
+
title: string;
|
|
961
|
+
summary: string;
|
|
962
|
+
requires: {
|
|
963
|
+
auth: false;
|
|
964
|
+
api: false;
|
|
965
|
+
apiKeys: false;
|
|
966
|
+
i18n: false;
|
|
967
|
+
teams: false;
|
|
968
|
+
payments: false;
|
|
969
|
+
};
|
|
970
|
+
category: "generators";
|
|
971
|
+
tags: string[];
|
|
972
|
+
command: {
|
|
973
|
+
raw: string;
|
|
974
|
+
base: string;
|
|
975
|
+
argv: string[];
|
|
976
|
+
};
|
|
977
|
+
examples: {
|
|
978
|
+
command: string;
|
|
979
|
+
description: string;
|
|
980
|
+
}[];
|
|
981
|
+
tests: number;
|
|
982
|
+
baseline: "velastack";
|
|
983
|
+
generate: generate_3;
|
|
984
|
+
} | {
|
|
985
|
+
version: string;
|
|
986
|
+
slug: "generate-schema";
|
|
987
|
+
source: string;
|
|
988
|
+
docs: string;
|
|
989
|
+
plan: "open";
|
|
990
|
+
title: string;
|
|
991
|
+
summary: string;
|
|
992
|
+
requires: {
|
|
993
|
+
auth: false;
|
|
994
|
+
api: false;
|
|
995
|
+
apiKeys: false;
|
|
996
|
+
i18n: false;
|
|
997
|
+
teams: false;
|
|
998
|
+
payments: false;
|
|
999
|
+
};
|
|
1000
|
+
category: "generators";
|
|
1001
|
+
tags: string[];
|
|
1002
|
+
command: {
|
|
1003
|
+
raw: string;
|
|
1004
|
+
base: string;
|
|
1005
|
+
argv: string[];
|
|
1006
|
+
};
|
|
1007
|
+
examples: {
|
|
1008
|
+
command: string;
|
|
1009
|
+
description: string;
|
|
1010
|
+
}[];
|
|
1011
|
+
tests: number;
|
|
1012
|
+
baseline: "velastack";
|
|
1013
|
+
generate: generate_4;
|
|
1014
|
+
} | {
|
|
1015
|
+
version: string;
|
|
1016
|
+
slug: "generate-resource";
|
|
1017
|
+
source: string;
|
|
1018
|
+
docs: string;
|
|
1019
|
+
plan: "open";
|
|
1020
|
+
title: string;
|
|
1021
|
+
summary: string;
|
|
1022
|
+
requires: {
|
|
1023
|
+
auth: false;
|
|
1024
|
+
api: false;
|
|
1025
|
+
apiKeys: false;
|
|
1026
|
+
i18n: false;
|
|
1027
|
+
teams: false;
|
|
1028
|
+
payments: false;
|
|
1029
|
+
};
|
|
1030
|
+
category: "generators";
|
|
1031
|
+
tags: string[];
|
|
1032
|
+
command: {
|
|
1033
|
+
raw: string;
|
|
1034
|
+
base: string;
|
|
1035
|
+
argv: string[];
|
|
1036
|
+
};
|
|
1037
|
+
examples: {
|
|
1038
|
+
command: string;
|
|
1039
|
+
description: string;
|
|
1040
|
+
}[];
|
|
1041
|
+
tests: number;
|
|
1042
|
+
baseline: "velastack";
|
|
1043
|
+
generate: generate_5;
|
|
1044
|
+
} | {
|
|
1045
|
+
version: string;
|
|
1046
|
+
slug: "generate-scaffold";
|
|
1047
|
+
source: string;
|
|
1048
|
+
docs: string;
|
|
1049
|
+
plan: "open";
|
|
1050
|
+
title: string;
|
|
1051
|
+
summary: string;
|
|
1052
|
+
requires: {
|
|
1053
|
+
auth: false;
|
|
1054
|
+
api: false;
|
|
1055
|
+
apiKeys: false;
|
|
1056
|
+
i18n: false;
|
|
1057
|
+
teams: false;
|
|
1058
|
+
payments: false;
|
|
1059
|
+
};
|
|
1060
|
+
category: "generators";
|
|
1061
|
+
tags: string[];
|
|
1062
|
+
command: {
|
|
1063
|
+
raw: string;
|
|
1064
|
+
base: string;
|
|
1065
|
+
argv: string[];
|
|
1066
|
+
};
|
|
1067
|
+
examples: {
|
|
1068
|
+
command: string;
|
|
1069
|
+
description: string;
|
|
1070
|
+
}[];
|
|
1071
|
+
tests: number;
|
|
1072
|
+
baseline: "velastack";
|
|
1073
|
+
generate: generate_6;
|
|
1074
|
+
} | {
|
|
1075
|
+
version: string;
|
|
1076
|
+
slug: "generate-scaffold-remote";
|
|
1077
|
+
source: string;
|
|
1078
|
+
docs: string;
|
|
1079
|
+
plan: "open";
|
|
1080
|
+
title: string;
|
|
1081
|
+
summary: string;
|
|
1082
|
+
requires: {
|
|
1083
|
+
auth: false;
|
|
1084
|
+
api: false;
|
|
1085
|
+
apiKeys: false;
|
|
1086
|
+
i18n: false;
|
|
1087
|
+
teams: false;
|
|
1088
|
+
payments: false;
|
|
1089
|
+
};
|
|
1090
|
+
category: "generators";
|
|
1091
|
+
tags: string[];
|
|
1092
|
+
command: {
|
|
1093
|
+
raw: string;
|
|
1094
|
+
base: string;
|
|
1095
|
+
argv: string[];
|
|
1096
|
+
};
|
|
1097
|
+
examples: {
|
|
1098
|
+
command: string;
|
|
1099
|
+
description: string;
|
|
1100
|
+
}[];
|
|
1101
|
+
tests: number;
|
|
1102
|
+
baseline: "velastack";
|
|
1103
|
+
generate: generate_7;
|
|
1104
|
+
} | {
|
|
1105
|
+
version: string;
|
|
1106
|
+
slug: "enable-auth";
|
|
1107
|
+
source: string;
|
|
1108
|
+
docs: string;
|
|
1109
|
+
plan: "open";
|
|
1110
|
+
title: string;
|
|
1111
|
+
summary: string;
|
|
1112
|
+
requires: {
|
|
1113
|
+
auth: false;
|
|
1114
|
+
api: false;
|
|
1115
|
+
apiKeys: false;
|
|
1116
|
+
i18n: false;
|
|
1117
|
+
teams: false;
|
|
1118
|
+
payments: false;
|
|
1119
|
+
};
|
|
1120
|
+
category: "auth";
|
|
1121
|
+
tags: string[];
|
|
1122
|
+
command: {
|
|
1123
|
+
raw: string;
|
|
1124
|
+
base: string;
|
|
1125
|
+
argv: never[];
|
|
1126
|
+
};
|
|
1127
|
+
examples: never[];
|
|
1128
|
+
tests: number;
|
|
1129
|
+
baseline: "velastack";
|
|
1130
|
+
generate: generate_8;
|
|
1131
|
+
} | {
|
|
1132
|
+
version: string;
|
|
1133
|
+
slug: "enable-auth-remote";
|
|
1134
|
+
source: string;
|
|
1135
|
+
docs: string;
|
|
1136
|
+
plan: "open";
|
|
1137
|
+
title: string;
|
|
1138
|
+
summary: string;
|
|
1139
|
+
requires: {
|
|
1140
|
+
auth: false;
|
|
1141
|
+
api: false;
|
|
1142
|
+
apiKeys: false;
|
|
1143
|
+
i18n: false;
|
|
1144
|
+
teams: false;
|
|
1145
|
+
payments: false;
|
|
1146
|
+
};
|
|
1147
|
+
category: "auth";
|
|
1148
|
+
tags: string[];
|
|
1149
|
+
command: {
|
|
1150
|
+
raw: string;
|
|
1151
|
+
base: string;
|
|
1152
|
+
argv: never[];
|
|
1153
|
+
};
|
|
1154
|
+
examples: never[];
|
|
1155
|
+
tests: number;
|
|
1156
|
+
baseline: "velastack";
|
|
1157
|
+
generate: generate_9;
|
|
1158
|
+
} | {
|
|
1159
|
+
version: string;
|
|
1160
|
+
slug: "enable-api";
|
|
1161
|
+
source: string;
|
|
1162
|
+
docs: string;
|
|
1163
|
+
plan: "open";
|
|
1164
|
+
title: string;
|
|
1165
|
+
summary: string;
|
|
1166
|
+
requires: {
|
|
1167
|
+
auth: false;
|
|
1168
|
+
api: false;
|
|
1169
|
+
apiKeys: false;
|
|
1170
|
+
i18n: false;
|
|
1171
|
+
teams: false;
|
|
1172
|
+
payments: false;
|
|
1173
|
+
};
|
|
1174
|
+
category: "api";
|
|
336
1175
|
tags: string[];
|
|
337
1176
|
command: {
|
|
338
1177
|
raw: string;
|
|
@@ -342,24 +1181,24 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n" |
|
|
|
342
1181
|
examples: never[];
|
|
343
1182
|
tests: number;
|
|
344
1183
|
baseline: "velastack";
|
|
345
|
-
generate:
|
|
1184
|
+
generate: generate_10;
|
|
346
1185
|
} | {
|
|
347
1186
|
version: string;
|
|
348
|
-
slug: "enable-
|
|
1187
|
+
slug: "enable-api-keys";
|
|
349
1188
|
source: string;
|
|
350
1189
|
docs: string;
|
|
351
|
-
plan: "
|
|
1190
|
+
plan: "open";
|
|
352
1191
|
title: string;
|
|
353
1192
|
summary: string;
|
|
354
1193
|
requires: {
|
|
355
|
-
auth:
|
|
356
|
-
api:
|
|
1194
|
+
auth: true;
|
|
1195
|
+
api: true;
|
|
357
1196
|
apiKeys: false;
|
|
358
1197
|
i18n: false;
|
|
359
1198
|
teams: false;
|
|
360
1199
|
payments: false;
|
|
361
1200
|
};
|
|
362
|
-
category: "
|
|
1201
|
+
category: "api";
|
|
363
1202
|
tags: string[];
|
|
364
1203
|
command: {
|
|
365
1204
|
raw: string;
|
|
@@ -369,24 +1208,24 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n" |
|
|
|
369
1208
|
examples: never[];
|
|
370
1209
|
tests: number;
|
|
371
1210
|
baseline: "velastack";
|
|
372
|
-
generate:
|
|
1211
|
+
generate: generate_11;
|
|
373
1212
|
} | {
|
|
374
1213
|
version: string;
|
|
375
|
-
slug: "enable-
|
|
1214
|
+
slug: "enable-content-negotiation";
|
|
376
1215
|
source: string;
|
|
377
1216
|
docs: string;
|
|
378
|
-
plan: "
|
|
1217
|
+
plan: "open";
|
|
379
1218
|
title: string;
|
|
380
1219
|
summary: string;
|
|
381
1220
|
requires: {
|
|
382
|
-
auth:
|
|
1221
|
+
auth: false;
|
|
383
1222
|
api: false;
|
|
384
1223
|
apiKeys: false;
|
|
385
1224
|
i18n: false;
|
|
386
1225
|
teams: false;
|
|
387
1226
|
payments: false;
|
|
388
1227
|
};
|
|
389
|
-
category: "
|
|
1228
|
+
category: "api";
|
|
390
1229
|
tags: string[];
|
|
391
1230
|
command: {
|
|
392
1231
|
raw: string;
|
|
@@ -396,138 +1235,10 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n" |
|
|
|
396
1235
|
examples: never[];
|
|
397
1236
|
tests: number;
|
|
398
1237
|
baseline: "velastack";
|
|
399
|
-
generate:
|
|
400
|
-
})[]>;
|
|
401
|
-
|
|
402
|
-
export declare const bySlug: Record<Slug, PatternEntry>;
|
|
403
|
-
|
|
404
|
-
export declare type Category = PatternEntry["category"];
|
|
405
|
-
|
|
406
|
-
declare interface CollectionFieldsPatch {
|
|
407
|
-
collectionName: string;
|
|
408
|
-
changes: FieldChange[];
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
declare interface CollectionFieldSpec {
|
|
412
|
-
name: string;
|
|
413
|
-
type: string;
|
|
414
|
-
required?: boolean;
|
|
415
|
-
/** PocketBase collection id for relation fields (runtime). Preview may use the related collection name as a readable stand-in. */
|
|
416
|
-
collectionId?: string;
|
|
417
|
-
maxSelect?: number;
|
|
418
|
-
minSelect?: number;
|
|
419
|
-
values?: string[];
|
|
420
|
-
onCreate?: boolean;
|
|
421
|
-
onUpdate?: boolean;
|
|
422
|
-
primaryKey?: boolean;
|
|
423
|
-
cascadeDelete?: boolean;
|
|
424
|
-
pattern?: string;
|
|
425
|
-
min?: number;
|
|
426
|
-
max?: number;
|
|
427
|
-
autogeneratePattern?: string;
|
|
428
|
-
exceptDomains?: null;
|
|
429
|
-
onlyDomains?: null;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
declare interface CollectionSpec {
|
|
433
|
-
name: string;
|
|
434
|
-
type: "base" | "auth" | "view";
|
|
435
|
-
listRule?: string | null;
|
|
436
|
-
viewRule?: string | null;
|
|
437
|
-
createRule?: string | null;
|
|
438
|
-
updateRule?: string | null;
|
|
439
|
-
deleteRule?: string | null;
|
|
440
|
-
fields: CollectionFieldSpec[];
|
|
441
|
-
/** View collection SQL (PocketBase). */
|
|
442
|
-
viewQuery?: string;
|
|
443
|
-
indexes?: string[];
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
declare type Component = string;
|
|
447
|
-
|
|
448
|
-
declare interface Features {
|
|
449
|
-
auth: boolean;
|
|
450
|
-
api: boolean;
|
|
451
|
-
apiKeys: boolean;
|
|
452
|
-
i18n: boolean;
|
|
453
|
-
teams: boolean;
|
|
454
|
-
payments: boolean;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
declare type FieldChange = {
|
|
458
|
-
op: "add";
|
|
459
|
-
field: CollectionFieldSpec;
|
|
460
|
-
} | {
|
|
461
|
-
op: "remove";
|
|
462
|
-
fieldName: string;
|
|
1238
|
+
generate: generate_12;
|
|
463
1239
|
} | {
|
|
464
|
-
op: "rename";
|
|
465
|
-
from: string;
|
|
466
|
-
to: string;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
declare interface File_2 {
|
|
470
|
-
path: string;
|
|
471
|
-
language: string;
|
|
472
|
-
content: string;
|
|
473
|
-
status: FileStatus;
|
|
474
|
-
message?: string;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
declare type FileStatus = "success" | "failed" | "not-found";
|
|
478
|
-
|
|
479
|
-
declare function generate(options: Options): Promise<Result>;
|
|
480
|
-
|
|
481
|
-
declare function generate_10(options: Options): Promise<Result>;
|
|
482
|
-
|
|
483
|
-
declare function generate_11(options: Options): Promise<Result>;
|
|
484
|
-
|
|
485
|
-
declare function generate_12(options: Options): Promise<Result>;
|
|
486
|
-
|
|
487
|
-
declare function generate_13(options: Options): Promise<Result>;
|
|
488
|
-
|
|
489
|
-
declare function generate_14(options: Options): Promise<Result>;
|
|
490
|
-
|
|
491
|
-
declare function generate_2(options: Options): Promise<Result>;
|
|
492
|
-
|
|
493
|
-
declare function generate_3(options: Options): Promise<Result>;
|
|
494
|
-
|
|
495
|
-
declare function generate_4(options: Options): Promise<Result>;
|
|
496
|
-
|
|
497
|
-
declare function generate_5(options: Options): Promise<Result>;
|
|
498
|
-
|
|
499
|
-
declare function generate_6(options: Options): Promise<Result>;
|
|
500
|
-
|
|
501
|
-
declare function generate_7(options: Options): Promise<Result>;
|
|
502
|
-
|
|
503
|
-
declare function generate_8(options: Options): Promise<Result>;
|
|
504
|
-
|
|
505
|
-
declare function generate_9(options: Options): Promise<Result>;
|
|
506
|
-
|
|
507
|
-
export declare class InvalidArgumentError extends Error {
|
|
508
|
-
constructor(message: string);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
declare interface Logger {
|
|
512
|
-
info: (message: string) => void;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
declare interface Options {
|
|
516
|
-
argv: string[];
|
|
517
|
-
env: "runtime" | "preview";
|
|
518
|
-
root: string;
|
|
519
|
-
features: Features;
|
|
520
|
-
input: Record<string, any>;
|
|
521
|
-
logger?: Logger;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
declare type Package = string;
|
|
525
|
-
|
|
526
|
-
declare type PatternEntry = (typeof patterns)[number];
|
|
527
|
-
|
|
528
|
-
export declare const patterns: ({
|
|
529
1240
|
version: string;
|
|
530
|
-
slug: "
|
|
1241
|
+
slug: "enable-i18n";
|
|
531
1242
|
source: string;
|
|
532
1243
|
docs: string;
|
|
533
1244
|
plan: "open";
|
|
@@ -541,26 +1252,23 @@ export declare const patterns: ({
|
|
|
541
1252
|
teams: false;
|
|
542
1253
|
payments: false;
|
|
543
1254
|
};
|
|
544
|
-
category: "
|
|
1255
|
+
category: "i18n";
|
|
545
1256
|
tags: string[];
|
|
546
1257
|
command: {
|
|
547
1258
|
raw: string;
|
|
548
1259
|
base: string;
|
|
549
|
-
argv:
|
|
1260
|
+
argv: never[];
|
|
550
1261
|
};
|
|
551
|
-
examples:
|
|
552
|
-
command: string;
|
|
553
|
-
description: string;
|
|
554
|
-
}[];
|
|
1262
|
+
examples: never[];
|
|
555
1263
|
tests: number;
|
|
556
1264
|
baseline: "velastack";
|
|
557
|
-
generate:
|
|
1265
|
+
generate: generate_13;
|
|
558
1266
|
} | {
|
|
559
1267
|
version: string;
|
|
560
|
-
slug: "
|
|
1268
|
+
slug: "enable-payments";
|
|
561
1269
|
source: string;
|
|
562
1270
|
docs: string;
|
|
563
|
-
plan: "
|
|
1271
|
+
plan: "pro";
|
|
564
1272
|
title: string;
|
|
565
1273
|
summary: string;
|
|
566
1274
|
requires: {
|
|
@@ -571,53 +1279,47 @@ export declare const patterns: ({
|
|
|
571
1279
|
teams: false;
|
|
572
1280
|
payments: false;
|
|
573
1281
|
};
|
|
574
|
-
category: "
|
|
1282
|
+
category: "payments";
|
|
575
1283
|
tags: string[];
|
|
576
1284
|
command: {
|
|
577
1285
|
raw: string;
|
|
578
1286
|
base: string;
|
|
579
|
-
argv:
|
|
1287
|
+
argv: never[];
|
|
580
1288
|
};
|
|
581
|
-
examples:
|
|
582
|
-
command: string;
|
|
583
|
-
description: string;
|
|
584
|
-
}[];
|
|
1289
|
+
examples: never[];
|
|
585
1290
|
tests: number;
|
|
586
1291
|
baseline: "velastack";
|
|
587
|
-
generate:
|
|
1292
|
+
generate: generate_14;
|
|
588
1293
|
} | {
|
|
589
1294
|
version: string;
|
|
590
|
-
slug: "
|
|
1295
|
+
slug: "enable-teams";
|
|
591
1296
|
source: string;
|
|
592
1297
|
docs: string;
|
|
593
|
-
plan: "
|
|
1298
|
+
plan: "pro";
|
|
594
1299
|
title: string;
|
|
595
1300
|
summary: string;
|
|
596
1301
|
requires: {
|
|
597
|
-
auth:
|
|
1302
|
+
auth: true;
|
|
598
1303
|
api: false;
|
|
599
1304
|
apiKeys: false;
|
|
600
1305
|
i18n: false;
|
|
601
1306
|
teams: false;
|
|
602
1307
|
payments: false;
|
|
603
1308
|
};
|
|
604
|
-
category: "
|
|
1309
|
+
category: "auth";
|
|
605
1310
|
tags: string[];
|
|
606
1311
|
command: {
|
|
607
1312
|
raw: string;
|
|
608
1313
|
base: string;
|
|
609
|
-
argv:
|
|
1314
|
+
argv: never[];
|
|
610
1315
|
};
|
|
611
|
-
examples:
|
|
612
|
-
command: string;
|
|
613
|
-
description: string;
|
|
614
|
-
}[];
|
|
1316
|
+
examples: never[];
|
|
615
1317
|
tests: number;
|
|
616
1318
|
baseline: "velastack";
|
|
617
|
-
generate:
|
|
1319
|
+
generate: generate_15;
|
|
618
1320
|
} | {
|
|
619
1321
|
version: string;
|
|
620
|
-
slug: "
|
|
1322
|
+
slug: "destroy-schema";
|
|
621
1323
|
source: string;
|
|
622
1324
|
docs: string;
|
|
623
1325
|
plan: "open";
|
|
@@ -644,10 +1346,10 @@ export declare const patterns: ({
|
|
|
644
1346
|
}[];
|
|
645
1347
|
tests: number;
|
|
646
1348
|
baseline: "velastack";
|
|
647
|
-
generate:
|
|
1349
|
+
generate: generate_16;
|
|
648
1350
|
} | {
|
|
649
1351
|
version: string;
|
|
650
|
-
slug: "
|
|
1352
|
+
slug: "destroy-form";
|
|
651
1353
|
source: string;
|
|
652
1354
|
docs: string;
|
|
653
1355
|
plan: "open";
|
|
@@ -674,10 +1376,10 @@ export declare const patterns: ({
|
|
|
674
1376
|
}[];
|
|
675
1377
|
tests: number;
|
|
676
1378
|
baseline: "velastack";
|
|
677
|
-
generate:
|
|
1379
|
+
generate: generate_17;
|
|
678
1380
|
} | {
|
|
679
1381
|
version: string;
|
|
680
|
-
slug: "
|
|
1382
|
+
slug: "destroy-resource";
|
|
681
1383
|
source: string;
|
|
682
1384
|
docs: string;
|
|
683
1385
|
plan: "open";
|
|
@@ -704,10 +1406,10 @@ export declare const patterns: ({
|
|
|
704
1406
|
}[];
|
|
705
1407
|
tests: number;
|
|
706
1408
|
baseline: "velastack";
|
|
707
|
-
generate:
|
|
1409
|
+
generate: generate_18;
|
|
708
1410
|
} | {
|
|
709
1411
|
version: string;
|
|
710
|
-
slug: "
|
|
1412
|
+
slug: "destroy-scaffold";
|
|
711
1413
|
source: string;
|
|
712
1414
|
docs: string;
|
|
713
1415
|
plan: "open";
|
|
@@ -734,10 +1436,10 @@ export declare const patterns: ({
|
|
|
734
1436
|
}[];
|
|
735
1437
|
tests: number;
|
|
736
1438
|
baseline: "velastack";
|
|
737
|
-
generate:
|
|
1439
|
+
generate: generate_19;
|
|
738
1440
|
} | {
|
|
739
1441
|
version: string;
|
|
740
|
-
slug: "
|
|
1442
|
+
slug: "disable-api";
|
|
741
1443
|
source: string;
|
|
742
1444
|
docs: string;
|
|
743
1445
|
plan: "open";
|
|
@@ -745,13 +1447,13 @@ export declare const patterns: ({
|
|
|
745
1447
|
summary: string;
|
|
746
1448
|
requires: {
|
|
747
1449
|
auth: false;
|
|
748
|
-
api:
|
|
1450
|
+
api: true;
|
|
749
1451
|
apiKeys: false;
|
|
750
1452
|
i18n: false;
|
|
751
1453
|
teams: false;
|
|
752
1454
|
payments: false;
|
|
753
1455
|
};
|
|
754
|
-
category: "
|
|
1456
|
+
category: "api";
|
|
755
1457
|
tags: string[];
|
|
756
1458
|
command: {
|
|
757
1459
|
raw: string;
|
|
@@ -761,24 +1463,24 @@ export declare const patterns: ({
|
|
|
761
1463
|
examples: never[];
|
|
762
1464
|
tests: number;
|
|
763
1465
|
baseline: "velastack";
|
|
764
|
-
generate:
|
|
1466
|
+
generate: generate_20;
|
|
765
1467
|
} | {
|
|
766
1468
|
version: string;
|
|
767
|
-
slug: "
|
|
1469
|
+
slug: "disable-api-keys";
|
|
768
1470
|
source: string;
|
|
769
1471
|
docs: string;
|
|
770
1472
|
plan: "open";
|
|
771
1473
|
title: string;
|
|
772
1474
|
summary: string;
|
|
773
1475
|
requires: {
|
|
774
|
-
auth:
|
|
775
|
-
api:
|
|
776
|
-
apiKeys:
|
|
1476
|
+
auth: true;
|
|
1477
|
+
api: true;
|
|
1478
|
+
apiKeys: true;
|
|
777
1479
|
i18n: false;
|
|
778
1480
|
teams: false;
|
|
779
1481
|
payments: false;
|
|
780
1482
|
};
|
|
781
|
-
category: "
|
|
1483
|
+
category: "api";
|
|
782
1484
|
tags: string[];
|
|
783
1485
|
command: {
|
|
784
1486
|
raw: string;
|
|
@@ -788,24 +1490,24 @@ export declare const patterns: ({
|
|
|
788
1490
|
examples: never[];
|
|
789
1491
|
tests: number;
|
|
790
1492
|
baseline: "velastack";
|
|
791
|
-
generate:
|
|
1493
|
+
generate: generate_21;
|
|
792
1494
|
} | {
|
|
793
1495
|
version: string;
|
|
794
|
-
slug: "
|
|
1496
|
+
slug: "disable-auth";
|
|
795
1497
|
source: string;
|
|
796
1498
|
docs: string;
|
|
797
1499
|
plan: "open";
|
|
798
1500
|
title: string;
|
|
799
1501
|
summary: string;
|
|
800
1502
|
requires: {
|
|
801
|
-
auth:
|
|
1503
|
+
auth: true;
|
|
802
1504
|
api: false;
|
|
803
1505
|
apiKeys: false;
|
|
804
1506
|
i18n: false;
|
|
805
1507
|
teams: false;
|
|
806
1508
|
payments: false;
|
|
807
1509
|
};
|
|
808
|
-
category: "
|
|
1510
|
+
category: "auth";
|
|
809
1511
|
tags: string[];
|
|
810
1512
|
command: {
|
|
811
1513
|
raw: string;
|
|
@@ -814,11 +1516,11 @@ export declare const patterns: ({
|
|
|
814
1516
|
};
|
|
815
1517
|
examples: never[];
|
|
816
1518
|
tests: number;
|
|
817
|
-
baseline: "velastack";
|
|
818
|
-
generate:
|
|
1519
|
+
baseline: "velastack-auth";
|
|
1520
|
+
generate: generate_22;
|
|
819
1521
|
} | {
|
|
820
1522
|
version: string;
|
|
821
|
-
slug: "
|
|
1523
|
+
slug: "disable-auth-remote";
|
|
822
1524
|
source: string;
|
|
823
1525
|
docs: string;
|
|
824
1526
|
plan: "open";
|
|
@@ -826,13 +1528,13 @@ export declare const patterns: ({
|
|
|
826
1528
|
summary: string;
|
|
827
1529
|
requires: {
|
|
828
1530
|
auth: true;
|
|
829
|
-
api:
|
|
1531
|
+
api: false;
|
|
830
1532
|
apiKeys: false;
|
|
831
1533
|
i18n: false;
|
|
832
1534
|
teams: false;
|
|
833
1535
|
payments: false;
|
|
834
1536
|
};
|
|
835
|
-
category: "
|
|
1537
|
+
category: "auth";
|
|
836
1538
|
tags: string[];
|
|
837
1539
|
command: {
|
|
838
1540
|
raw: string;
|
|
@@ -842,10 +1544,10 @@ export declare const patterns: ({
|
|
|
842
1544
|
examples: never[];
|
|
843
1545
|
tests: number;
|
|
844
1546
|
baseline: "velastack";
|
|
845
|
-
generate:
|
|
1547
|
+
generate: generate_23;
|
|
846
1548
|
} | {
|
|
847
1549
|
version: string;
|
|
848
|
-
slug: "
|
|
1550
|
+
slug: "disable-i18n";
|
|
849
1551
|
source: string;
|
|
850
1552
|
docs: string;
|
|
851
1553
|
plan: "open";
|
|
@@ -855,7 +1557,7 @@ export declare const patterns: ({
|
|
|
855
1557
|
auth: false;
|
|
856
1558
|
api: false;
|
|
857
1559
|
apiKeys: false;
|
|
858
|
-
i18n:
|
|
1560
|
+
i18n: true;
|
|
859
1561
|
teams: false;
|
|
860
1562
|
payments: false;
|
|
861
1563
|
};
|
|
@@ -869,24 +1571,24 @@ export declare const patterns: ({
|
|
|
869
1571
|
examples: never[];
|
|
870
1572
|
tests: number;
|
|
871
1573
|
baseline: "velastack";
|
|
872
|
-
generate:
|
|
1574
|
+
generate: generate_24;
|
|
873
1575
|
} | {
|
|
874
1576
|
version: string;
|
|
875
|
-
slug: "
|
|
1577
|
+
slug: "disable-teams";
|
|
876
1578
|
source: string;
|
|
877
1579
|
docs: string;
|
|
878
1580
|
plan: "pro";
|
|
879
1581
|
title: string;
|
|
880
1582
|
summary: string;
|
|
881
1583
|
requires: {
|
|
882
|
-
auth:
|
|
1584
|
+
auth: true;
|
|
883
1585
|
api: false;
|
|
884
1586
|
apiKeys: false;
|
|
885
1587
|
i18n: false;
|
|
886
|
-
teams:
|
|
1588
|
+
teams: true;
|
|
887
1589
|
payments: false;
|
|
888
1590
|
};
|
|
889
|
-
category: "
|
|
1591
|
+
category: "auth";
|
|
890
1592
|
tags: string[];
|
|
891
1593
|
command: {
|
|
892
1594
|
raw: string;
|
|
@@ -895,25 +1597,25 @@ export declare const patterns: ({
|
|
|
895
1597
|
};
|
|
896
1598
|
examples: never[];
|
|
897
1599
|
tests: number;
|
|
898
|
-
baseline: "velastack";
|
|
899
|
-
generate:
|
|
1600
|
+
baseline: "velastack-auth";
|
|
1601
|
+
generate: generate_25;
|
|
900
1602
|
} | {
|
|
901
1603
|
version: string;
|
|
902
|
-
slug: "
|
|
1604
|
+
slug: "disable-payments";
|
|
903
1605
|
source: string;
|
|
904
1606
|
docs: string;
|
|
905
1607
|
plan: "pro";
|
|
906
1608
|
title: string;
|
|
907
1609
|
summary: string;
|
|
908
1610
|
requires: {
|
|
909
|
-
auth:
|
|
1611
|
+
auth: false;
|
|
910
1612
|
api: false;
|
|
911
1613
|
apiKeys: false;
|
|
912
1614
|
i18n: false;
|
|
913
1615
|
teams: false;
|
|
914
|
-
payments:
|
|
1616
|
+
payments: true;
|
|
915
1617
|
};
|
|
916
|
-
category: "
|
|
1618
|
+
category: "payments";
|
|
917
1619
|
tags: string[];
|
|
918
1620
|
command: {
|
|
919
1621
|
raw: string;
|
|
@@ -923,7 +1625,7 @@ export declare const patterns: ({
|
|
|
923
1625
|
examples: never[];
|
|
924
1626
|
tests: number;
|
|
925
1627
|
baseline: "velastack";
|
|
926
|
-
generate:
|
|
1628
|
+
generate: generate_26;
|
|
927
1629
|
})[];
|
|
928
1630
|
|
|
929
1631
|
declare interface Result {
|
|
@@ -934,6 +1636,7 @@ declare interface Result {
|
|
|
934
1636
|
packages: Package[];
|
|
935
1637
|
collections: CollectionSpec[];
|
|
936
1638
|
collectionPatches: CollectionFieldsPatch[];
|
|
1639
|
+
collectionDrops: CollectionDropSpec[];
|
|
937
1640
|
}
|
|
938
1641
|
|
|
939
1642
|
export declare type Slug = PatternEntry["slug"];
|