@baseplate-dev/project-builder-lib 0.2.2 → 0.2.3
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/definition/project-definition-container.d.ts.map +1 -1
- package/dist/definition/project-definition-container.js +6 -2
- package/dist/definition/project-definition-container.js.map +1 -1
- package/dist/plugins/metadata/types.d.ts +8 -0
- package/dist/plugins/metadata/types.d.ts.map +1 -1
- package/dist/plugins/metadata/types.js +6 -0
- package/dist/plugins/metadata/types.js.map +1 -1
- package/dist/references/extract-definition-refs.d.ts.map +1 -1
- package/dist/references/extract-definition-refs.js +8 -0
- package/dist/references/extract-definition-refs.js.map +1 -1
- package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +13 -0
- package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -0
- package/dist/schema/creator/extend-parser-context-with-defaults.js +52 -0
- package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -0
- package/dist/schema/creator/schema-creator.d.ts.map +1 -1
- package/dist/schema/creator/schema-creator.js +2 -0
- package/dist/schema/creator/schema-creator.js.map +1 -1
- package/dist/schema/creator/types.d.ts +22 -0
- package/dist/schema/creator/types.d.ts.map +1 -1
- package/dist/schema/models/graphql.d.ts +138 -54
- package/dist/schema/models/graphql.d.ts.map +1 -1
- package/dist/schema/models/graphql.js +30 -73
- package/dist/schema/models/graphql.js.map +1 -1
- package/dist/schema/models/index.d.ts +321 -153
- package/dist/schema/models/index.d.ts.map +1 -1
- package/dist/schema/project-definition.d.ts +183 -99
- package/dist/schema/project-definition.d.ts.map +1 -1
- package/dist/tools/model-merger/model-merger.d.ts +9 -8
- package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
- package/dist/tools/model-merger/model-merger.js +8 -4
- package/dist/tools/model-merger/model-merger.js.map +1 -1
- package/package.json +6 -6
|
@@ -778,43 +778,65 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
778
778
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
779
779
|
}>>;
|
|
780
780
|
graphql: z.ZodOptional<z.ZodObject<{
|
|
781
|
-
objectType: z.
|
|
782
|
-
enabled: z.
|
|
783
|
-
fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
784
|
-
localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
785
|
-
foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
781
|
+
objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
782
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
783
|
+
fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
784
|
+
localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
785
|
+
foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
786
786
|
}, "strip", z.ZodTypeAny, {
|
|
787
|
-
enabled
|
|
788
|
-
fields
|
|
787
|
+
enabled?: boolean | undefined;
|
|
788
|
+
fields?: string[] | undefined;
|
|
789
789
|
localRelations?: string[] | undefined;
|
|
790
790
|
foreignRelations?: string[] | undefined;
|
|
791
791
|
}, {
|
|
792
|
-
fields: string[];
|
|
793
792
|
enabled?: boolean | undefined;
|
|
793
|
+
fields?: string[] | undefined;
|
|
794
|
+
localRelations?: string[] | undefined;
|
|
795
|
+
foreignRelations?: string[] | undefined;
|
|
796
|
+
}>>, {
|
|
797
|
+
enabled?: boolean | undefined;
|
|
798
|
+
fields?: string[] | undefined;
|
|
794
799
|
localRelations?: string[] | undefined;
|
|
795
800
|
foreignRelations?: string[] | undefined;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
+
} | undefined, {
|
|
802
|
+
enabled?: boolean | undefined;
|
|
803
|
+
fields?: string[] | undefined;
|
|
804
|
+
localRelations?: string[] | undefined;
|
|
805
|
+
foreignRelations?: string[] | undefined;
|
|
806
|
+
} | undefined>;
|
|
807
|
+
queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
808
|
+
get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
809
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
810
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
801
811
|
}, "strip", z.ZodTypeAny, {
|
|
802
812
|
enabled?: boolean | undefined;
|
|
803
813
|
roles?: string[] | undefined;
|
|
804
814
|
}, {
|
|
805
815
|
enabled?: boolean | undefined;
|
|
806
816
|
roles?: string[] | undefined;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
817
|
+
}>>, {
|
|
818
|
+
enabled?: boolean | undefined;
|
|
819
|
+
roles?: string[] | undefined;
|
|
820
|
+
} | undefined, {
|
|
821
|
+
enabled?: boolean | undefined;
|
|
822
|
+
roles?: string[] | undefined;
|
|
823
|
+
} | undefined>;
|
|
824
|
+
list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
825
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
826
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
811
827
|
}, "strip", z.ZodTypeAny, {
|
|
812
828
|
enabled?: boolean | undefined;
|
|
813
829
|
roles?: string[] | undefined;
|
|
814
830
|
}, {
|
|
815
831
|
enabled?: boolean | undefined;
|
|
816
832
|
roles?: string[] | undefined;
|
|
817
|
-
}
|
|
833
|
+
}>>, {
|
|
834
|
+
enabled?: boolean | undefined;
|
|
835
|
+
roles?: string[] | undefined;
|
|
836
|
+
} | undefined, {
|
|
837
|
+
enabled?: boolean | undefined;
|
|
838
|
+
roles?: string[] | undefined;
|
|
839
|
+
} | undefined>;
|
|
818
840
|
}, "strip", z.ZodTypeAny, {
|
|
819
841
|
get?: {
|
|
820
842
|
enabled?: boolean | undefined;
|
|
@@ -833,51 +855,87 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
833
855
|
enabled?: boolean | undefined;
|
|
834
856
|
roles?: string[] | undefined;
|
|
835
857
|
} | undefined;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
858
|
+
}>>, {
|
|
859
|
+
get?: {
|
|
860
|
+
enabled?: boolean | undefined;
|
|
861
|
+
roles?: string[] | undefined;
|
|
862
|
+
} | undefined;
|
|
863
|
+
list?: {
|
|
864
|
+
enabled?: boolean | undefined;
|
|
865
|
+
roles?: string[] | undefined;
|
|
866
|
+
} | undefined;
|
|
867
|
+
} | undefined, {
|
|
868
|
+
get?: {
|
|
869
|
+
enabled?: boolean | undefined;
|
|
870
|
+
roles?: string[] | undefined;
|
|
871
|
+
} | undefined;
|
|
872
|
+
list?: {
|
|
873
|
+
enabled?: boolean | undefined;
|
|
874
|
+
roles?: string[] | undefined;
|
|
875
|
+
} | undefined;
|
|
876
|
+
} | undefined>;
|
|
877
|
+
mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
878
|
+
create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
879
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
880
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
841
881
|
}, "strip", z.ZodTypeAny, {
|
|
842
882
|
enabled?: boolean | undefined;
|
|
843
883
|
roles?: string[] | undefined;
|
|
844
884
|
}, {
|
|
845
885
|
enabled?: boolean | undefined;
|
|
846
886
|
roles?: string[] | undefined;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
887
|
+
}>>, {
|
|
888
|
+
enabled?: boolean | undefined;
|
|
889
|
+
roles?: string[] | undefined;
|
|
890
|
+
} | undefined, {
|
|
891
|
+
enabled?: boolean | undefined;
|
|
892
|
+
roles?: string[] | undefined;
|
|
893
|
+
} | undefined>;
|
|
894
|
+
update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
895
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
896
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
851
897
|
}, "strip", z.ZodTypeAny, {
|
|
852
898
|
enabled?: boolean | undefined;
|
|
853
899
|
roles?: string[] | undefined;
|
|
854
900
|
}, {
|
|
855
901
|
enabled?: boolean | undefined;
|
|
856
902
|
roles?: string[] | undefined;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
903
|
+
}>>, {
|
|
904
|
+
enabled?: boolean | undefined;
|
|
905
|
+
roles?: string[] | undefined;
|
|
906
|
+
} | undefined, {
|
|
907
|
+
enabled?: boolean | undefined;
|
|
908
|
+
roles?: string[] | undefined;
|
|
909
|
+
} | undefined>;
|
|
910
|
+
delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
911
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
912
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
861
913
|
}, "strip", z.ZodTypeAny, {
|
|
862
914
|
enabled?: boolean | undefined;
|
|
863
915
|
roles?: string[] | undefined;
|
|
864
916
|
}, {
|
|
865
917
|
enabled?: boolean | undefined;
|
|
866
918
|
roles?: string[] | undefined;
|
|
867
|
-
}
|
|
919
|
+
}>>, {
|
|
920
|
+
enabled?: boolean | undefined;
|
|
921
|
+
roles?: string[] | undefined;
|
|
922
|
+
} | undefined, {
|
|
923
|
+
enabled?: boolean | undefined;
|
|
924
|
+
roles?: string[] | undefined;
|
|
925
|
+
} | undefined>;
|
|
868
926
|
}, "strip", z.ZodTypeAny, {
|
|
869
|
-
delete
|
|
927
|
+
delete?: {
|
|
870
928
|
enabled?: boolean | undefined;
|
|
871
929
|
roles?: string[] | undefined;
|
|
872
|
-
};
|
|
873
|
-
create
|
|
930
|
+
} | undefined;
|
|
931
|
+
create?: {
|
|
874
932
|
enabled?: boolean | undefined;
|
|
875
933
|
roles?: string[] | undefined;
|
|
876
|
-
};
|
|
877
|
-
update
|
|
934
|
+
} | undefined;
|
|
935
|
+
update?: {
|
|
878
936
|
enabled?: boolean | undefined;
|
|
879
937
|
roles?: string[] | undefined;
|
|
880
|
-
};
|
|
938
|
+
} | undefined;
|
|
881
939
|
}, {
|
|
882
940
|
delete?: {
|
|
883
941
|
enabled?: boolean | undefined;
|
|
@@ -891,15 +949,41 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
891
949
|
enabled?: boolean | undefined;
|
|
892
950
|
roles?: string[] | undefined;
|
|
893
951
|
} | undefined;
|
|
894
|
-
}
|
|
952
|
+
}>>, {
|
|
953
|
+
delete?: {
|
|
954
|
+
enabled?: boolean | undefined;
|
|
955
|
+
roles?: string[] | undefined;
|
|
956
|
+
} | undefined;
|
|
957
|
+
create?: {
|
|
958
|
+
enabled?: boolean | undefined;
|
|
959
|
+
roles?: string[] | undefined;
|
|
960
|
+
} | undefined;
|
|
961
|
+
update?: {
|
|
962
|
+
enabled?: boolean | undefined;
|
|
963
|
+
roles?: string[] | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
} | undefined, {
|
|
966
|
+
delete?: {
|
|
967
|
+
enabled?: boolean | undefined;
|
|
968
|
+
roles?: string[] | undefined;
|
|
969
|
+
} | undefined;
|
|
970
|
+
create?: {
|
|
971
|
+
enabled?: boolean | undefined;
|
|
972
|
+
roles?: string[] | undefined;
|
|
973
|
+
} | undefined;
|
|
974
|
+
update?: {
|
|
975
|
+
enabled?: boolean | undefined;
|
|
976
|
+
roles?: string[] | undefined;
|
|
977
|
+
} | undefined;
|
|
978
|
+
} | undefined>;
|
|
895
979
|
}, "strip", z.ZodTypeAny, {
|
|
896
|
-
objectType
|
|
897
|
-
enabled
|
|
898
|
-
fields
|
|
980
|
+
objectType?: {
|
|
981
|
+
enabled?: boolean | undefined;
|
|
982
|
+
fields?: string[] | undefined;
|
|
899
983
|
localRelations?: string[] | undefined;
|
|
900
984
|
foreignRelations?: string[] | undefined;
|
|
901
|
-
};
|
|
902
|
-
queries
|
|
985
|
+
} | undefined;
|
|
986
|
+
queries?: {
|
|
903
987
|
get?: {
|
|
904
988
|
enabled?: boolean | undefined;
|
|
905
989
|
roles?: string[] | undefined;
|
|
@@ -908,25 +992,25 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
908
992
|
enabled?: boolean | undefined;
|
|
909
993
|
roles?: string[] | undefined;
|
|
910
994
|
} | undefined;
|
|
911
|
-
};
|
|
912
|
-
mutations
|
|
913
|
-
delete
|
|
995
|
+
} | undefined;
|
|
996
|
+
mutations?: {
|
|
997
|
+
delete?: {
|
|
914
998
|
enabled?: boolean | undefined;
|
|
915
999
|
roles?: string[] | undefined;
|
|
916
|
-
};
|
|
917
|
-
create
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
create?: {
|
|
918
1002
|
enabled?: boolean | undefined;
|
|
919
1003
|
roles?: string[] | undefined;
|
|
920
|
-
};
|
|
921
|
-
update
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
update?: {
|
|
922
1006
|
enabled?: boolean | undefined;
|
|
923
1007
|
roles?: string[] | undefined;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
1008
|
+
} | undefined;
|
|
1009
|
+
} | undefined;
|
|
926
1010
|
}, {
|
|
927
1011
|
objectType?: {
|
|
928
|
-
fields: string[];
|
|
929
1012
|
enabled?: boolean | undefined;
|
|
1013
|
+
fields?: string[] | undefined;
|
|
930
1014
|
localRelations?: string[] | undefined;
|
|
931
1015
|
foreignRelations?: string[] | undefined;
|
|
932
1016
|
} | undefined;
|
|
@@ -1015,13 +1099,13 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
1015
1099
|
}[];
|
|
1016
1100
|
};
|
|
1017
1101
|
graphql?: {
|
|
1018
|
-
objectType
|
|
1019
|
-
enabled
|
|
1020
|
-
fields
|
|
1102
|
+
objectType?: {
|
|
1103
|
+
enabled?: boolean | undefined;
|
|
1104
|
+
fields?: string[] | undefined;
|
|
1021
1105
|
localRelations?: string[] | undefined;
|
|
1022
1106
|
foreignRelations?: string[] | undefined;
|
|
1023
|
-
};
|
|
1024
|
-
queries
|
|
1107
|
+
} | undefined;
|
|
1108
|
+
queries?: {
|
|
1025
1109
|
get?: {
|
|
1026
1110
|
enabled?: boolean | undefined;
|
|
1027
1111
|
roles?: string[] | undefined;
|
|
@@ -1030,21 +1114,21 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
1030
1114
|
enabled?: boolean | undefined;
|
|
1031
1115
|
roles?: string[] | undefined;
|
|
1032
1116
|
} | undefined;
|
|
1033
|
-
};
|
|
1034
|
-
mutations
|
|
1035
|
-
delete
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
mutations?: {
|
|
1119
|
+
delete?: {
|
|
1036
1120
|
enabled?: boolean | undefined;
|
|
1037
1121
|
roles?: string[] | undefined;
|
|
1038
|
-
};
|
|
1039
|
-
create
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
create?: {
|
|
1040
1124
|
enabled?: boolean | undefined;
|
|
1041
1125
|
roles?: string[] | undefined;
|
|
1042
|
-
};
|
|
1043
|
-
update
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
update?: {
|
|
1044
1128
|
enabled?: boolean | undefined;
|
|
1045
1129
|
roles?: string[] | undefined;
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1130
|
+
} | undefined;
|
|
1131
|
+
} | undefined;
|
|
1048
1132
|
} | undefined;
|
|
1049
1133
|
}, {
|
|
1050
1134
|
name: string;
|
|
@@ -1107,8 +1191,8 @@ export declare const createModelBaseSchema: (context: import("#src/schema/creato
|
|
|
1107
1191
|
} | undefined;
|
|
1108
1192
|
graphql?: {
|
|
1109
1193
|
objectType?: {
|
|
1110
|
-
fields: string[];
|
|
1111
1194
|
enabled?: boolean | undefined;
|
|
1195
|
+
fields?: string[] | undefined;
|
|
1112
1196
|
localRelations?: string[] | undefined;
|
|
1113
1197
|
foreignRelations?: string[] | undefined;
|
|
1114
1198
|
} | undefined;
|
|
@@ -1560,43 +1644,65 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1560
1644
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
1561
1645
|
}>>;
|
|
1562
1646
|
graphql: z.ZodOptional<z.ZodObject<{
|
|
1563
|
-
objectType: z.
|
|
1564
|
-
enabled: z.
|
|
1565
|
-
fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1566
|
-
localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
1567
|
-
foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
1647
|
+
objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1648
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1649
|
+
fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1650
|
+
localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1651
|
+
foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1568
1652
|
}, "strip", z.ZodTypeAny, {
|
|
1569
|
-
enabled
|
|
1570
|
-
fields
|
|
1653
|
+
enabled?: boolean | undefined;
|
|
1654
|
+
fields?: string[] | undefined;
|
|
1571
1655
|
localRelations?: string[] | undefined;
|
|
1572
1656
|
foreignRelations?: string[] | undefined;
|
|
1573
1657
|
}, {
|
|
1574
|
-
fields: string[];
|
|
1575
1658
|
enabled?: boolean | undefined;
|
|
1659
|
+
fields?: string[] | undefined;
|
|
1576
1660
|
localRelations?: string[] | undefined;
|
|
1577
1661
|
foreignRelations?: string[] | undefined;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1662
|
+
}>>, {
|
|
1663
|
+
enabled?: boolean | undefined;
|
|
1664
|
+
fields?: string[] | undefined;
|
|
1665
|
+
localRelations?: string[] | undefined;
|
|
1666
|
+
foreignRelations?: string[] | undefined;
|
|
1667
|
+
} | undefined, {
|
|
1668
|
+
enabled?: boolean | undefined;
|
|
1669
|
+
fields?: string[] | undefined;
|
|
1670
|
+
localRelations?: string[] | undefined;
|
|
1671
|
+
foreignRelations?: string[] | undefined;
|
|
1672
|
+
} | undefined>;
|
|
1673
|
+
queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1674
|
+
get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1675
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1676
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1583
1677
|
}, "strip", z.ZodTypeAny, {
|
|
1584
1678
|
enabled?: boolean | undefined;
|
|
1585
1679
|
roles?: string[] | undefined;
|
|
1586
1680
|
}, {
|
|
1587
1681
|
enabled?: boolean | undefined;
|
|
1588
1682
|
roles?: string[] | undefined;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1683
|
+
}>>, {
|
|
1684
|
+
enabled?: boolean | undefined;
|
|
1685
|
+
roles?: string[] | undefined;
|
|
1686
|
+
} | undefined, {
|
|
1687
|
+
enabled?: boolean | undefined;
|
|
1688
|
+
roles?: string[] | undefined;
|
|
1689
|
+
} | undefined>;
|
|
1690
|
+
list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1691
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1692
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1593
1693
|
}, "strip", z.ZodTypeAny, {
|
|
1594
1694
|
enabled?: boolean | undefined;
|
|
1595
1695
|
roles?: string[] | undefined;
|
|
1596
1696
|
}, {
|
|
1597
1697
|
enabled?: boolean | undefined;
|
|
1598
1698
|
roles?: string[] | undefined;
|
|
1599
|
-
}
|
|
1699
|
+
}>>, {
|
|
1700
|
+
enabled?: boolean | undefined;
|
|
1701
|
+
roles?: string[] | undefined;
|
|
1702
|
+
} | undefined, {
|
|
1703
|
+
enabled?: boolean | undefined;
|
|
1704
|
+
roles?: string[] | undefined;
|
|
1705
|
+
} | undefined>;
|
|
1600
1706
|
}, "strip", z.ZodTypeAny, {
|
|
1601
1707
|
get?: {
|
|
1602
1708
|
enabled?: boolean | undefined;
|
|
@@ -1615,51 +1721,87 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1615
1721
|
enabled?: boolean | undefined;
|
|
1616
1722
|
roles?: string[] | undefined;
|
|
1617
1723
|
} | undefined;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1724
|
+
}>>, {
|
|
1725
|
+
get?: {
|
|
1726
|
+
enabled?: boolean | undefined;
|
|
1727
|
+
roles?: string[] | undefined;
|
|
1728
|
+
} | undefined;
|
|
1729
|
+
list?: {
|
|
1730
|
+
enabled?: boolean | undefined;
|
|
1731
|
+
roles?: string[] | undefined;
|
|
1732
|
+
} | undefined;
|
|
1733
|
+
} | undefined, {
|
|
1734
|
+
get?: {
|
|
1735
|
+
enabled?: boolean | undefined;
|
|
1736
|
+
roles?: string[] | undefined;
|
|
1737
|
+
} | undefined;
|
|
1738
|
+
list?: {
|
|
1739
|
+
enabled?: boolean | undefined;
|
|
1740
|
+
roles?: string[] | undefined;
|
|
1741
|
+
} | undefined;
|
|
1742
|
+
} | undefined>;
|
|
1743
|
+
mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1744
|
+
create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1745
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1746
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1623
1747
|
}, "strip", z.ZodTypeAny, {
|
|
1624
1748
|
enabled?: boolean | undefined;
|
|
1625
1749
|
roles?: string[] | undefined;
|
|
1626
1750
|
}, {
|
|
1627
1751
|
enabled?: boolean | undefined;
|
|
1628
1752
|
roles?: string[] | undefined;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1753
|
+
}>>, {
|
|
1754
|
+
enabled?: boolean | undefined;
|
|
1755
|
+
roles?: string[] | undefined;
|
|
1756
|
+
} | undefined, {
|
|
1757
|
+
enabled?: boolean | undefined;
|
|
1758
|
+
roles?: string[] | undefined;
|
|
1759
|
+
} | undefined>;
|
|
1760
|
+
update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1761
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1762
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1633
1763
|
}, "strip", z.ZodTypeAny, {
|
|
1634
1764
|
enabled?: boolean | undefined;
|
|
1635
1765
|
roles?: string[] | undefined;
|
|
1636
1766
|
}, {
|
|
1637
1767
|
enabled?: boolean | undefined;
|
|
1638
1768
|
roles?: string[] | undefined;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1769
|
+
}>>, {
|
|
1770
|
+
enabled?: boolean | undefined;
|
|
1771
|
+
roles?: string[] | undefined;
|
|
1772
|
+
} | undefined, {
|
|
1773
|
+
enabled?: boolean | undefined;
|
|
1774
|
+
roles?: string[] | undefined;
|
|
1775
|
+
} | undefined>;
|
|
1776
|
+
delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1777
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
1778
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
1643
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1644
1780
|
enabled?: boolean | undefined;
|
|
1645
1781
|
roles?: string[] | undefined;
|
|
1646
1782
|
}, {
|
|
1647
1783
|
enabled?: boolean | undefined;
|
|
1648
1784
|
roles?: string[] | undefined;
|
|
1649
|
-
}
|
|
1785
|
+
}>>, {
|
|
1786
|
+
enabled?: boolean | undefined;
|
|
1787
|
+
roles?: string[] | undefined;
|
|
1788
|
+
} | undefined, {
|
|
1789
|
+
enabled?: boolean | undefined;
|
|
1790
|
+
roles?: string[] | undefined;
|
|
1791
|
+
} | undefined>;
|
|
1650
1792
|
}, "strip", z.ZodTypeAny, {
|
|
1651
|
-
delete
|
|
1793
|
+
delete?: {
|
|
1652
1794
|
enabled?: boolean | undefined;
|
|
1653
1795
|
roles?: string[] | undefined;
|
|
1654
|
-
};
|
|
1655
|
-
create
|
|
1796
|
+
} | undefined;
|
|
1797
|
+
create?: {
|
|
1656
1798
|
enabled?: boolean | undefined;
|
|
1657
1799
|
roles?: string[] | undefined;
|
|
1658
|
-
};
|
|
1659
|
-
update
|
|
1800
|
+
} | undefined;
|
|
1801
|
+
update?: {
|
|
1660
1802
|
enabled?: boolean | undefined;
|
|
1661
1803
|
roles?: string[] | undefined;
|
|
1662
|
-
};
|
|
1804
|
+
} | undefined;
|
|
1663
1805
|
}, {
|
|
1664
1806
|
delete?: {
|
|
1665
1807
|
enabled?: boolean | undefined;
|
|
@@ -1673,15 +1815,41 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1673
1815
|
enabled?: boolean | undefined;
|
|
1674
1816
|
roles?: string[] | undefined;
|
|
1675
1817
|
} | undefined;
|
|
1676
|
-
}
|
|
1818
|
+
}>>, {
|
|
1819
|
+
delete?: {
|
|
1820
|
+
enabled?: boolean | undefined;
|
|
1821
|
+
roles?: string[] | undefined;
|
|
1822
|
+
} | undefined;
|
|
1823
|
+
create?: {
|
|
1824
|
+
enabled?: boolean | undefined;
|
|
1825
|
+
roles?: string[] | undefined;
|
|
1826
|
+
} | undefined;
|
|
1827
|
+
update?: {
|
|
1828
|
+
enabled?: boolean | undefined;
|
|
1829
|
+
roles?: string[] | undefined;
|
|
1830
|
+
} | undefined;
|
|
1831
|
+
} | undefined, {
|
|
1832
|
+
delete?: {
|
|
1833
|
+
enabled?: boolean | undefined;
|
|
1834
|
+
roles?: string[] | undefined;
|
|
1835
|
+
} | undefined;
|
|
1836
|
+
create?: {
|
|
1837
|
+
enabled?: boolean | undefined;
|
|
1838
|
+
roles?: string[] | undefined;
|
|
1839
|
+
} | undefined;
|
|
1840
|
+
update?: {
|
|
1841
|
+
enabled?: boolean | undefined;
|
|
1842
|
+
roles?: string[] | undefined;
|
|
1843
|
+
} | undefined;
|
|
1844
|
+
} | undefined>;
|
|
1677
1845
|
}, "strip", z.ZodTypeAny, {
|
|
1678
|
-
objectType
|
|
1679
|
-
enabled
|
|
1680
|
-
fields
|
|
1846
|
+
objectType?: {
|
|
1847
|
+
enabled?: boolean | undefined;
|
|
1848
|
+
fields?: string[] | undefined;
|
|
1681
1849
|
localRelations?: string[] | undefined;
|
|
1682
1850
|
foreignRelations?: string[] | undefined;
|
|
1683
|
-
};
|
|
1684
|
-
queries
|
|
1851
|
+
} | undefined;
|
|
1852
|
+
queries?: {
|
|
1685
1853
|
get?: {
|
|
1686
1854
|
enabled?: boolean | undefined;
|
|
1687
1855
|
roles?: string[] | undefined;
|
|
@@ -1690,25 +1858,25 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1690
1858
|
enabled?: boolean | undefined;
|
|
1691
1859
|
roles?: string[] | undefined;
|
|
1692
1860
|
} | undefined;
|
|
1693
|
-
};
|
|
1694
|
-
mutations
|
|
1695
|
-
delete
|
|
1861
|
+
} | undefined;
|
|
1862
|
+
mutations?: {
|
|
1863
|
+
delete?: {
|
|
1696
1864
|
enabled?: boolean | undefined;
|
|
1697
1865
|
roles?: string[] | undefined;
|
|
1698
|
-
};
|
|
1699
|
-
create
|
|
1866
|
+
} | undefined;
|
|
1867
|
+
create?: {
|
|
1700
1868
|
enabled?: boolean | undefined;
|
|
1701
1869
|
roles?: string[] | undefined;
|
|
1702
|
-
};
|
|
1703
|
-
update
|
|
1870
|
+
} | undefined;
|
|
1871
|
+
update?: {
|
|
1704
1872
|
enabled?: boolean | undefined;
|
|
1705
1873
|
roles?: string[] | undefined;
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1874
|
+
} | undefined;
|
|
1875
|
+
} | undefined;
|
|
1708
1876
|
}, {
|
|
1709
1877
|
objectType?: {
|
|
1710
|
-
fields: string[];
|
|
1711
1878
|
enabled?: boolean | undefined;
|
|
1879
|
+
fields?: string[] | undefined;
|
|
1712
1880
|
localRelations?: string[] | undefined;
|
|
1713
1881
|
foreignRelations?: string[] | undefined;
|
|
1714
1882
|
} | undefined;
|
|
@@ -1797,13 +1965,13 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1797
1965
|
}[];
|
|
1798
1966
|
};
|
|
1799
1967
|
graphql?: {
|
|
1800
|
-
objectType
|
|
1801
|
-
enabled
|
|
1802
|
-
fields
|
|
1968
|
+
objectType?: {
|
|
1969
|
+
enabled?: boolean | undefined;
|
|
1970
|
+
fields?: string[] | undefined;
|
|
1803
1971
|
localRelations?: string[] | undefined;
|
|
1804
1972
|
foreignRelations?: string[] | undefined;
|
|
1805
|
-
};
|
|
1806
|
-
queries
|
|
1973
|
+
} | undefined;
|
|
1974
|
+
queries?: {
|
|
1807
1975
|
get?: {
|
|
1808
1976
|
enabled?: boolean | undefined;
|
|
1809
1977
|
roles?: string[] | undefined;
|
|
@@ -1812,21 +1980,21 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1812
1980
|
enabled?: boolean | undefined;
|
|
1813
1981
|
roles?: string[] | undefined;
|
|
1814
1982
|
} | undefined;
|
|
1815
|
-
};
|
|
1816
|
-
mutations
|
|
1817
|
-
delete
|
|
1983
|
+
} | undefined;
|
|
1984
|
+
mutations?: {
|
|
1985
|
+
delete?: {
|
|
1818
1986
|
enabled?: boolean | undefined;
|
|
1819
1987
|
roles?: string[] | undefined;
|
|
1820
|
-
};
|
|
1821
|
-
create
|
|
1988
|
+
} | undefined;
|
|
1989
|
+
create?: {
|
|
1822
1990
|
enabled?: boolean | undefined;
|
|
1823
1991
|
roles?: string[] | undefined;
|
|
1824
|
-
};
|
|
1825
|
-
update
|
|
1992
|
+
} | undefined;
|
|
1993
|
+
update?: {
|
|
1826
1994
|
enabled?: boolean | undefined;
|
|
1827
1995
|
roles?: string[] | undefined;
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1996
|
+
} | undefined;
|
|
1997
|
+
} | undefined;
|
|
1830
1998
|
} | undefined;
|
|
1831
1999
|
}, {
|
|
1832
2000
|
name: string;
|
|
@@ -1889,8 +2057,8 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1889
2057
|
} | undefined;
|
|
1890
2058
|
graphql?: {
|
|
1891
2059
|
objectType?: {
|
|
1892
|
-
fields: string[];
|
|
1893
2060
|
enabled?: boolean | undefined;
|
|
2061
|
+
fields?: string[] | undefined;
|
|
1894
2062
|
localRelations?: string[] | undefined;
|
|
1895
2063
|
foreignRelations?: string[] | undefined;
|
|
1896
2064
|
} | undefined;
|
|
@@ -1979,13 +2147,13 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1979
2147
|
}[];
|
|
1980
2148
|
};
|
|
1981
2149
|
graphql?: {
|
|
1982
|
-
objectType
|
|
1983
|
-
enabled
|
|
1984
|
-
fields
|
|
2150
|
+
objectType?: {
|
|
2151
|
+
enabled?: boolean | undefined;
|
|
2152
|
+
fields?: string[] | undefined;
|
|
1985
2153
|
localRelations?: string[] | undefined;
|
|
1986
2154
|
foreignRelations?: string[] | undefined;
|
|
1987
|
-
};
|
|
1988
|
-
queries
|
|
2155
|
+
} | undefined;
|
|
2156
|
+
queries?: {
|
|
1989
2157
|
get?: {
|
|
1990
2158
|
enabled?: boolean | undefined;
|
|
1991
2159
|
roles?: string[] | undefined;
|
|
@@ -1994,21 +2162,21 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
1994
2162
|
enabled?: boolean | undefined;
|
|
1995
2163
|
roles?: string[] | undefined;
|
|
1996
2164
|
} | undefined;
|
|
1997
|
-
};
|
|
1998
|
-
mutations
|
|
1999
|
-
delete
|
|
2165
|
+
} | undefined;
|
|
2166
|
+
mutations?: {
|
|
2167
|
+
delete?: {
|
|
2000
2168
|
enabled?: boolean | undefined;
|
|
2001
2169
|
roles?: string[] | undefined;
|
|
2002
|
-
};
|
|
2003
|
-
create
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
create?: {
|
|
2004
2172
|
enabled?: boolean | undefined;
|
|
2005
2173
|
roles?: string[] | undefined;
|
|
2006
|
-
};
|
|
2007
|
-
update
|
|
2174
|
+
} | undefined;
|
|
2175
|
+
update?: {
|
|
2008
2176
|
enabled?: boolean | undefined;
|
|
2009
2177
|
roles?: string[] | undefined;
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2178
|
+
} | undefined;
|
|
2179
|
+
} | undefined;
|
|
2012
2180
|
} | undefined;
|
|
2013
2181
|
}, {
|
|
2014
2182
|
name: string;
|
|
@@ -2071,8 +2239,8 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
2071
2239
|
} | undefined;
|
|
2072
2240
|
graphql?: {
|
|
2073
2241
|
objectType?: {
|
|
2074
|
-
fields: string[];
|
|
2075
2242
|
enabled?: boolean | undefined;
|
|
2243
|
+
fields?: string[] | undefined;
|
|
2076
2244
|
localRelations?: string[] | undefined;
|
|
2077
2245
|
foreignRelations?: string[] | undefined;
|
|
2078
2246
|
} | undefined;
|