@baseplate-dev/project-builder-lib 0.2.2 → 0.2.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/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/plugins/migrations/run-migrations.d.ts.map +1 -1
- package/dist/plugins/migrations/run-migrations.js +1 -1
- package/dist/plugins/migrations/run-migrations.js.map +1 -1
- package/dist/plugins/spec/config-spec.d.ts +10 -1
- package/dist/plugins/spec/config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/config-spec.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AAqBxD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ExC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,WAAW,CAClD,OAAO,4BAA4B,CACpC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,UAAU,CACtD,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,uEAMtB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,WAAW,CACpD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,UAAU,CACxD,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyB7C,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -2948,43 +2948,65 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
2948
2948
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
2949
2949
|
}>>;
|
|
2950
2950
|
graphql: z.ZodOptional<z.ZodObject<{
|
|
2951
|
-
objectType: z.
|
|
2952
|
-
enabled: z.
|
|
2953
|
-
fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2954
|
-
localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
2955
|
-
foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
2951
|
+
objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
2952
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
2953
|
+
fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
2954
|
+
localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
2955
|
+
foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
2956
2956
|
}, "strip", z.ZodTypeAny, {
|
|
2957
|
-
enabled
|
|
2958
|
-
fields
|
|
2957
|
+
enabled?: boolean | undefined;
|
|
2958
|
+
fields?: string[] | undefined;
|
|
2959
2959
|
localRelations?: string[] | undefined;
|
|
2960
2960
|
foreignRelations?: string[] | undefined;
|
|
2961
2961
|
}, {
|
|
2962
|
-
fields: string[];
|
|
2963
2962
|
enabled?: boolean | undefined;
|
|
2963
|
+
fields?: string[] | undefined;
|
|
2964
2964
|
localRelations?: string[] | undefined;
|
|
2965
2965
|
foreignRelations?: string[] | undefined;
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2966
|
+
}>>, {
|
|
2967
|
+
enabled?: boolean | undefined;
|
|
2968
|
+
fields?: string[] | undefined;
|
|
2969
|
+
localRelations?: string[] | undefined;
|
|
2970
|
+
foreignRelations?: string[] | undefined;
|
|
2971
|
+
} | undefined, {
|
|
2972
|
+
enabled?: boolean | undefined;
|
|
2973
|
+
fields?: string[] | undefined;
|
|
2974
|
+
localRelations?: string[] | undefined;
|
|
2975
|
+
foreignRelations?: string[] | undefined;
|
|
2976
|
+
} | undefined>;
|
|
2977
|
+
queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
2978
|
+
get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
2979
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
2980
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
2971
2981
|
}, "strip", z.ZodTypeAny, {
|
|
2972
2982
|
enabled?: boolean | undefined;
|
|
2973
2983
|
roles?: string[] | undefined;
|
|
2974
2984
|
}, {
|
|
2975
2985
|
enabled?: boolean | undefined;
|
|
2976
2986
|
roles?: string[] | undefined;
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2987
|
+
}>>, {
|
|
2988
|
+
enabled?: boolean | undefined;
|
|
2989
|
+
roles?: string[] | undefined;
|
|
2990
|
+
} | undefined, {
|
|
2991
|
+
enabled?: boolean | undefined;
|
|
2992
|
+
roles?: string[] | undefined;
|
|
2993
|
+
} | undefined>;
|
|
2994
|
+
list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
2995
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
2996
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
2981
2997
|
}, "strip", z.ZodTypeAny, {
|
|
2982
2998
|
enabled?: boolean | undefined;
|
|
2983
2999
|
roles?: string[] | undefined;
|
|
2984
3000
|
}, {
|
|
2985
3001
|
enabled?: boolean | undefined;
|
|
2986
3002
|
roles?: string[] | undefined;
|
|
2987
|
-
}
|
|
3003
|
+
}>>, {
|
|
3004
|
+
enabled?: boolean | undefined;
|
|
3005
|
+
roles?: string[] | undefined;
|
|
3006
|
+
} | undefined, {
|
|
3007
|
+
enabled?: boolean | undefined;
|
|
3008
|
+
roles?: string[] | undefined;
|
|
3009
|
+
} | undefined>;
|
|
2988
3010
|
}, "strip", z.ZodTypeAny, {
|
|
2989
3011
|
get?: {
|
|
2990
3012
|
enabled?: boolean | undefined;
|
|
@@ -3003,51 +3025,87 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3003
3025
|
enabled?: boolean | undefined;
|
|
3004
3026
|
roles?: string[] | undefined;
|
|
3005
3027
|
} | undefined;
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3028
|
+
}>>, {
|
|
3029
|
+
get?: {
|
|
3030
|
+
enabled?: boolean | undefined;
|
|
3031
|
+
roles?: string[] | undefined;
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
list?: {
|
|
3034
|
+
enabled?: boolean | undefined;
|
|
3035
|
+
roles?: string[] | undefined;
|
|
3036
|
+
} | undefined;
|
|
3037
|
+
} | undefined, {
|
|
3038
|
+
get?: {
|
|
3039
|
+
enabled?: boolean | undefined;
|
|
3040
|
+
roles?: string[] | undefined;
|
|
3041
|
+
} | undefined;
|
|
3042
|
+
list?: {
|
|
3043
|
+
enabled?: boolean | undefined;
|
|
3044
|
+
roles?: string[] | undefined;
|
|
3045
|
+
} | undefined;
|
|
3046
|
+
} | undefined>;
|
|
3047
|
+
mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
3048
|
+
create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
3049
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
3050
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
3011
3051
|
}, "strip", z.ZodTypeAny, {
|
|
3012
3052
|
enabled?: boolean | undefined;
|
|
3013
3053
|
roles?: string[] | undefined;
|
|
3014
3054
|
}, {
|
|
3015
3055
|
enabled?: boolean | undefined;
|
|
3016
3056
|
roles?: string[] | undefined;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3057
|
+
}>>, {
|
|
3058
|
+
enabled?: boolean | undefined;
|
|
3059
|
+
roles?: string[] | undefined;
|
|
3060
|
+
} | undefined, {
|
|
3061
|
+
enabled?: boolean | undefined;
|
|
3062
|
+
roles?: string[] | undefined;
|
|
3063
|
+
} | undefined>;
|
|
3064
|
+
update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
3065
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
3066
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
3021
3067
|
}, "strip", z.ZodTypeAny, {
|
|
3022
3068
|
enabled?: boolean | undefined;
|
|
3023
3069
|
roles?: string[] | undefined;
|
|
3024
3070
|
}, {
|
|
3025
3071
|
enabled?: boolean | undefined;
|
|
3026
3072
|
roles?: string[] | undefined;
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3073
|
+
}>>, {
|
|
3074
|
+
enabled?: boolean | undefined;
|
|
3075
|
+
roles?: string[] | undefined;
|
|
3076
|
+
} | undefined, {
|
|
3077
|
+
enabled?: boolean | undefined;
|
|
3078
|
+
roles?: string[] | undefined;
|
|
3079
|
+
} | undefined>;
|
|
3080
|
+
delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
3081
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
3082
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
3031
3083
|
}, "strip", z.ZodTypeAny, {
|
|
3032
3084
|
enabled?: boolean | undefined;
|
|
3033
3085
|
roles?: string[] | undefined;
|
|
3034
3086
|
}, {
|
|
3035
3087
|
enabled?: boolean | undefined;
|
|
3036
3088
|
roles?: string[] | undefined;
|
|
3037
|
-
}
|
|
3089
|
+
}>>, {
|
|
3090
|
+
enabled?: boolean | undefined;
|
|
3091
|
+
roles?: string[] | undefined;
|
|
3092
|
+
} | undefined, {
|
|
3093
|
+
enabled?: boolean | undefined;
|
|
3094
|
+
roles?: string[] | undefined;
|
|
3095
|
+
} | undefined>;
|
|
3038
3096
|
}, "strip", z.ZodTypeAny, {
|
|
3039
|
-
delete
|
|
3097
|
+
delete?: {
|
|
3040
3098
|
enabled?: boolean | undefined;
|
|
3041
3099
|
roles?: string[] | undefined;
|
|
3042
|
-
};
|
|
3043
|
-
create
|
|
3100
|
+
} | undefined;
|
|
3101
|
+
create?: {
|
|
3044
3102
|
enabled?: boolean | undefined;
|
|
3045
3103
|
roles?: string[] | undefined;
|
|
3046
|
-
};
|
|
3047
|
-
update
|
|
3104
|
+
} | undefined;
|
|
3105
|
+
update?: {
|
|
3048
3106
|
enabled?: boolean | undefined;
|
|
3049
3107
|
roles?: string[] | undefined;
|
|
3050
|
-
};
|
|
3108
|
+
} | undefined;
|
|
3051
3109
|
}, {
|
|
3052
3110
|
delete?: {
|
|
3053
3111
|
enabled?: boolean | undefined;
|
|
@@ -3061,15 +3119,41 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3061
3119
|
enabled?: boolean | undefined;
|
|
3062
3120
|
roles?: string[] | undefined;
|
|
3063
3121
|
} | undefined;
|
|
3064
|
-
}
|
|
3122
|
+
}>>, {
|
|
3123
|
+
delete?: {
|
|
3124
|
+
enabled?: boolean | undefined;
|
|
3125
|
+
roles?: string[] | undefined;
|
|
3126
|
+
} | undefined;
|
|
3127
|
+
create?: {
|
|
3128
|
+
enabled?: boolean | undefined;
|
|
3129
|
+
roles?: string[] | undefined;
|
|
3130
|
+
} | undefined;
|
|
3131
|
+
update?: {
|
|
3132
|
+
enabled?: boolean | undefined;
|
|
3133
|
+
roles?: string[] | undefined;
|
|
3134
|
+
} | undefined;
|
|
3135
|
+
} | undefined, {
|
|
3136
|
+
delete?: {
|
|
3137
|
+
enabled?: boolean | undefined;
|
|
3138
|
+
roles?: string[] | undefined;
|
|
3139
|
+
} | undefined;
|
|
3140
|
+
create?: {
|
|
3141
|
+
enabled?: boolean | undefined;
|
|
3142
|
+
roles?: string[] | undefined;
|
|
3143
|
+
} | undefined;
|
|
3144
|
+
update?: {
|
|
3145
|
+
enabled?: boolean | undefined;
|
|
3146
|
+
roles?: string[] | undefined;
|
|
3147
|
+
} | undefined;
|
|
3148
|
+
} | undefined>;
|
|
3065
3149
|
}, "strip", z.ZodTypeAny, {
|
|
3066
|
-
objectType
|
|
3067
|
-
enabled
|
|
3068
|
-
fields
|
|
3150
|
+
objectType?: {
|
|
3151
|
+
enabled?: boolean | undefined;
|
|
3152
|
+
fields?: string[] | undefined;
|
|
3069
3153
|
localRelations?: string[] | undefined;
|
|
3070
3154
|
foreignRelations?: string[] | undefined;
|
|
3071
|
-
};
|
|
3072
|
-
queries
|
|
3155
|
+
} | undefined;
|
|
3156
|
+
queries?: {
|
|
3073
3157
|
get?: {
|
|
3074
3158
|
enabled?: boolean | undefined;
|
|
3075
3159
|
roles?: string[] | undefined;
|
|
@@ -3078,25 +3162,25 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3078
3162
|
enabled?: boolean | undefined;
|
|
3079
3163
|
roles?: string[] | undefined;
|
|
3080
3164
|
} | undefined;
|
|
3081
|
-
};
|
|
3082
|
-
mutations
|
|
3083
|
-
delete
|
|
3165
|
+
} | undefined;
|
|
3166
|
+
mutations?: {
|
|
3167
|
+
delete?: {
|
|
3084
3168
|
enabled?: boolean | undefined;
|
|
3085
3169
|
roles?: string[] | undefined;
|
|
3086
|
-
};
|
|
3087
|
-
create
|
|
3170
|
+
} | undefined;
|
|
3171
|
+
create?: {
|
|
3088
3172
|
enabled?: boolean | undefined;
|
|
3089
3173
|
roles?: string[] | undefined;
|
|
3090
|
-
};
|
|
3091
|
-
update
|
|
3174
|
+
} | undefined;
|
|
3175
|
+
update?: {
|
|
3092
3176
|
enabled?: boolean | undefined;
|
|
3093
3177
|
roles?: string[] | undefined;
|
|
3094
|
-
};
|
|
3095
|
-
};
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
} | undefined;
|
|
3096
3180
|
}, {
|
|
3097
3181
|
objectType?: {
|
|
3098
|
-
fields: string[];
|
|
3099
3182
|
enabled?: boolean | undefined;
|
|
3183
|
+
fields?: string[] | undefined;
|
|
3100
3184
|
localRelations?: string[] | undefined;
|
|
3101
3185
|
foreignRelations?: string[] | undefined;
|
|
3102
3186
|
} | undefined;
|
|
@@ -3185,13 +3269,13 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3185
3269
|
}[];
|
|
3186
3270
|
};
|
|
3187
3271
|
graphql?: {
|
|
3188
|
-
objectType
|
|
3189
|
-
enabled
|
|
3190
|
-
fields
|
|
3272
|
+
objectType?: {
|
|
3273
|
+
enabled?: boolean | undefined;
|
|
3274
|
+
fields?: string[] | undefined;
|
|
3191
3275
|
localRelations?: string[] | undefined;
|
|
3192
3276
|
foreignRelations?: string[] | undefined;
|
|
3193
|
-
};
|
|
3194
|
-
queries
|
|
3277
|
+
} | undefined;
|
|
3278
|
+
queries?: {
|
|
3195
3279
|
get?: {
|
|
3196
3280
|
enabled?: boolean | undefined;
|
|
3197
3281
|
roles?: string[] | undefined;
|
|
@@ -3200,21 +3284,21 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3200
3284
|
enabled?: boolean | undefined;
|
|
3201
3285
|
roles?: string[] | undefined;
|
|
3202
3286
|
} | undefined;
|
|
3203
|
-
};
|
|
3204
|
-
mutations
|
|
3205
|
-
delete
|
|
3287
|
+
} | undefined;
|
|
3288
|
+
mutations?: {
|
|
3289
|
+
delete?: {
|
|
3206
3290
|
enabled?: boolean | undefined;
|
|
3207
3291
|
roles?: string[] | undefined;
|
|
3208
|
-
};
|
|
3209
|
-
create
|
|
3292
|
+
} | undefined;
|
|
3293
|
+
create?: {
|
|
3210
3294
|
enabled?: boolean | undefined;
|
|
3211
3295
|
roles?: string[] | undefined;
|
|
3212
|
-
};
|
|
3213
|
-
update
|
|
3296
|
+
} | undefined;
|
|
3297
|
+
update?: {
|
|
3214
3298
|
enabled?: boolean | undefined;
|
|
3215
3299
|
roles?: string[] | undefined;
|
|
3216
|
-
};
|
|
3217
|
-
};
|
|
3300
|
+
} | undefined;
|
|
3301
|
+
} | undefined;
|
|
3218
3302
|
} | undefined;
|
|
3219
3303
|
}, {
|
|
3220
3304
|
name: string;
|
|
@@ -3277,8 +3361,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3277
3361
|
} | undefined;
|
|
3278
3362
|
graphql?: {
|
|
3279
3363
|
objectType?: {
|
|
3280
|
-
fields: string[];
|
|
3281
3364
|
enabled?: boolean | undefined;
|
|
3365
|
+
fields?: string[] | undefined;
|
|
3282
3366
|
localRelations?: string[] | undefined;
|
|
3283
3367
|
foreignRelations?: string[] | undefined;
|
|
3284
3368
|
} | undefined;
|
|
@@ -3367,13 +3451,13 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3367
3451
|
}[];
|
|
3368
3452
|
};
|
|
3369
3453
|
graphql?: {
|
|
3370
|
-
objectType
|
|
3371
|
-
enabled
|
|
3372
|
-
fields
|
|
3454
|
+
objectType?: {
|
|
3455
|
+
enabled?: boolean | undefined;
|
|
3456
|
+
fields?: string[] | undefined;
|
|
3373
3457
|
localRelations?: string[] | undefined;
|
|
3374
3458
|
foreignRelations?: string[] | undefined;
|
|
3375
|
-
};
|
|
3376
|
-
queries
|
|
3459
|
+
} | undefined;
|
|
3460
|
+
queries?: {
|
|
3377
3461
|
get?: {
|
|
3378
3462
|
enabled?: boolean | undefined;
|
|
3379
3463
|
roles?: string[] | undefined;
|
|
@@ -3382,21 +3466,21 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3382
3466
|
enabled?: boolean | undefined;
|
|
3383
3467
|
roles?: string[] | undefined;
|
|
3384
3468
|
} | undefined;
|
|
3385
|
-
};
|
|
3386
|
-
mutations
|
|
3387
|
-
delete
|
|
3469
|
+
} | undefined;
|
|
3470
|
+
mutations?: {
|
|
3471
|
+
delete?: {
|
|
3388
3472
|
enabled?: boolean | undefined;
|
|
3389
3473
|
roles?: string[] | undefined;
|
|
3390
|
-
};
|
|
3391
|
-
create
|
|
3474
|
+
} | undefined;
|
|
3475
|
+
create?: {
|
|
3392
3476
|
enabled?: boolean | undefined;
|
|
3393
3477
|
roles?: string[] | undefined;
|
|
3394
|
-
};
|
|
3395
|
-
update
|
|
3478
|
+
} | undefined;
|
|
3479
|
+
update?: {
|
|
3396
3480
|
enabled?: boolean | undefined;
|
|
3397
3481
|
roles?: string[] | undefined;
|
|
3398
|
-
};
|
|
3399
|
-
};
|
|
3482
|
+
} | undefined;
|
|
3483
|
+
} | undefined;
|
|
3400
3484
|
} | undefined;
|
|
3401
3485
|
}, {
|
|
3402
3486
|
name: string;
|
|
@@ -3459,8 +3543,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3459
3543
|
} | undefined;
|
|
3460
3544
|
graphql?: {
|
|
3461
3545
|
objectType?: {
|
|
3462
|
-
fields: string[];
|
|
3463
3546
|
enabled?: boolean | undefined;
|
|
3547
|
+
fields?: string[] | undefined;
|
|
3464
3548
|
localRelations?: string[] | undefined;
|
|
3465
3549
|
foreignRelations?: string[] | undefined;
|
|
3466
3550
|
} | undefined;
|
|
@@ -3967,13 +4051,13 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3967
4051
|
}[];
|
|
3968
4052
|
};
|
|
3969
4053
|
graphql?: {
|
|
3970
|
-
objectType
|
|
3971
|
-
enabled
|
|
3972
|
-
fields
|
|
4054
|
+
objectType?: {
|
|
4055
|
+
enabled?: boolean | undefined;
|
|
4056
|
+
fields?: string[] | undefined;
|
|
3973
4057
|
localRelations?: string[] | undefined;
|
|
3974
4058
|
foreignRelations?: string[] | undefined;
|
|
3975
|
-
};
|
|
3976
|
-
queries
|
|
4059
|
+
} | undefined;
|
|
4060
|
+
queries?: {
|
|
3977
4061
|
get?: {
|
|
3978
4062
|
enabled?: boolean | undefined;
|
|
3979
4063
|
roles?: string[] | undefined;
|
|
@@ -3982,21 +4066,21 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
3982
4066
|
enabled?: boolean | undefined;
|
|
3983
4067
|
roles?: string[] | undefined;
|
|
3984
4068
|
} | undefined;
|
|
3985
|
-
};
|
|
3986
|
-
mutations
|
|
3987
|
-
delete
|
|
4069
|
+
} | undefined;
|
|
4070
|
+
mutations?: {
|
|
4071
|
+
delete?: {
|
|
3988
4072
|
enabled?: boolean | undefined;
|
|
3989
4073
|
roles?: string[] | undefined;
|
|
3990
|
-
};
|
|
3991
|
-
create
|
|
4074
|
+
} | undefined;
|
|
4075
|
+
create?: {
|
|
3992
4076
|
enabled?: boolean | undefined;
|
|
3993
4077
|
roles?: string[] | undefined;
|
|
3994
|
-
};
|
|
3995
|
-
update
|
|
4078
|
+
} | undefined;
|
|
4079
|
+
update?: {
|
|
3996
4080
|
enabled?: boolean | undefined;
|
|
3997
4081
|
roles?: string[] | undefined;
|
|
3998
|
-
};
|
|
3999
|
-
};
|
|
4082
|
+
} | undefined;
|
|
4083
|
+
} | undefined;
|
|
4000
4084
|
} | undefined;
|
|
4001
4085
|
}[];
|
|
4002
4086
|
isInitialized: boolean;
|
|
@@ -4255,8 +4339,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
|
|
|
4255
4339
|
} | undefined;
|
|
4256
4340
|
graphql?: {
|
|
4257
4341
|
objectType?: {
|
|
4258
|
-
fields: string[];
|
|
4259
4342
|
enabled?: boolean | undefined;
|
|
4343
|
+
fields?: string[] | undefined;
|
|
4260
4344
|
localRelations?: string[] | undefined;
|
|
4261
4345
|
foreignRelations?: string[] | undefined;
|
|
4262
4346
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-definition.d.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;;;;;;;;;;EAYzC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,UAAU,CACjD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,WAAW,CAC7C,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,WAAW,CACnD,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -206,8 +206,8 @@ export declare const modelMergerDefinitionDiffConfig: Partial<{
|
|
|
206
206
|
readonly name: string;
|
|
207
207
|
diff(current: Pick<{
|
|
208
208
|
objectType?: {
|
|
209
|
-
fields: string[];
|
|
210
209
|
enabled?: boolean | undefined;
|
|
210
|
+
fields?: string[] | undefined;
|
|
211
211
|
localRelations?: string[] | undefined;
|
|
212
212
|
foreignRelations?: string[] | undefined;
|
|
213
213
|
} | undefined;
|
|
@@ -237,8 +237,8 @@ export declare const modelMergerDefinitionDiffConfig: Partial<{
|
|
|
237
237
|
} | undefined;
|
|
238
238
|
}, "objectType">, desired: Pick<{
|
|
239
239
|
objectType?: {
|
|
240
|
-
fields: string[];
|
|
241
240
|
enabled?: boolean | undefined;
|
|
241
|
+
fields?: string[] | undefined;
|
|
242
242
|
localRelations?: string[] | undefined;
|
|
243
243
|
foreignRelations?: string[] | undefined;
|
|
244
244
|
} | undefined;
|
|
@@ -269,8 +269,8 @@ export declare const modelMergerDefinitionDiffConfig: Partial<{
|
|
|
269
269
|
}, "objectType">): import("#src/utils/definition-diff/definition-diff.js").DefinitionDiffOperation[];
|
|
270
270
|
apply(current: Pick<{
|
|
271
271
|
objectType?: {
|
|
272
|
-
fields: string[];
|
|
273
272
|
enabled?: boolean | undefined;
|
|
273
|
+
fields?: string[] | undefined;
|
|
274
274
|
localRelations?: string[] | undefined;
|
|
275
275
|
foreignRelations?: string[] | undefined;
|
|
276
276
|
} | undefined;
|
|
@@ -300,8 +300,8 @@ export declare const modelMergerDefinitionDiffConfig: Partial<{
|
|
|
300
300
|
} | undefined;
|
|
301
301
|
}, "objectType">, diff: import("#src/utils/definition-diff/definition-diff.js").DefinitionDiffOperation[]): Pick<{
|
|
302
302
|
objectType?: {
|
|
303
|
-
fields: string[];
|
|
304
303
|
enabled?: boolean | undefined;
|
|
304
|
+
fields?: string[] | undefined;
|
|
305
305
|
localRelations?: string[] | undefined;
|
|
306
306
|
foreignRelations?: string[] | undefined;
|
|
307
307
|
} | undefined;
|
|
@@ -479,24 +479,24 @@ export declare const modelMergerDefinitionDiffConfig: Partial<{
|
|
|
479
479
|
"graphql.objectType": {
|
|
480
480
|
readonly name: string;
|
|
481
481
|
diff(current: {
|
|
482
|
-
fields: string[];
|
|
483
482
|
enabled?: boolean | undefined;
|
|
483
|
+
fields?: string[] | undefined;
|
|
484
484
|
localRelations?: string[] | undefined;
|
|
485
485
|
foreignRelations?: string[] | undefined;
|
|
486
486
|
}, desired: {
|
|
487
|
-
fields: string[];
|
|
488
487
|
enabled?: boolean | undefined;
|
|
488
|
+
fields?: string[] | undefined;
|
|
489
489
|
localRelations?: string[] | undefined;
|
|
490
490
|
foreignRelations?: string[] | undefined;
|
|
491
491
|
}): import("#src/utils/definition-diff/definition-diff.js").DefinitionDiffOperation[];
|
|
492
492
|
apply(current: {
|
|
493
|
-
fields: string[];
|
|
494
493
|
enabled?: boolean | undefined;
|
|
494
|
+
fields?: string[] | undefined;
|
|
495
495
|
localRelations?: string[] | undefined;
|
|
496
496
|
foreignRelations?: string[] | undefined;
|
|
497
497
|
}, diff: import("#src/utils/definition-diff/definition-diff.js").DefinitionDiffOperation[]): {
|
|
498
|
-
fields: string[];
|
|
499
498
|
enabled?: boolean | undefined;
|
|
499
|
+
fields?: string[] | undefined;
|
|
500
500
|
localRelations?: string[] | undefined;
|
|
501
501
|
foreignRelations?: string[] | undefined;
|
|
502
502
|
};
|
|
@@ -551,6 +551,7 @@ interface ModelMergerOptions {
|
|
|
551
551
|
* @returns A diff output or undefined if there are no differences.
|
|
552
552
|
*/
|
|
553
553
|
export declare function createModelMergerResult(current: ModelConfigInput | undefined, desired: ModelMergerModelInput, definitionContainer: ProjectDefinitionContainer, { siblingModels }?: ModelMergerOptions): ModelMergerModelDiffResult | undefined;
|
|
554
|
+
export declare function doesModelMergerResultsHaveChanges(results: Record<keyof ModelMergerModelsInput, ModelMergerModelDiffResult | undefined>): boolean;
|
|
554
555
|
/**
|
|
555
556
|
* Creates a model merger result for a set of models.
|
|
556
557
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-merger.d.ts","sourceRoot":"","sources":["../../../src/tools/model-merger/model-merger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EAEV,gBAAgB,EAChB,iBAAiB,EACjB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAmB1F,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,2BAA2B,EAC3B,IAAI,CACL,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,WAAW,CACrD,6BAA6B,EAC7B,IAAI,GAAG,WAAW,CACnB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,WAAW,CACxD,gCAAgC,EAChC,IAAI,CACL,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CACV,gBAAgB,CAAC,OAAO,CAAC,EACzB;QACE,MAAM,EAAE,2BAA2B,EAAE,CAAC;QACtC,SAAS,CAAC,EAAE,6BAA6B,EAAE,CAAC;QAC5C,iBAAiB,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AE,kBAAuB,GAC9C,0BAA0B,GAAG,SAAS,CA2BxC;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,MAAM,CACb,MAAM,sBAAsB,EAC5B,0BAA0B,GAAG,SAAS,CACvC,GACA,OAAO,CAET;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,sBAAsB,EACvE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,EAC5C,OAAO,EAAE,CAAC,EACV,mBAAmB,EAAE,0BAA0B,EAC/C,EAAE,aAAkB,EAAE,GAAE,kBAAuB,GAC9C,MAAM,CAAC,MAAM,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC,CAazD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,+BAA+B,EACrC,mBAAmB,EAAE,0BAA0B,EAC/C,aAAa,GAAE,gBAAgB,EAAO,GACrC,gBAAgB,CA2ElB;AAED,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,iBAAiB,EAC9B,MAAM,EAAE,0BAA0B,EAClC,mBAAmB,EAAE,0BAA0B,EAC/C,EAAE,aAAkB,EAAE,GAAE,kBAAuB,GAC9C,MAAM,CAqBR;AAED,wBAAgB,gCAAgC,CAC9C,CAAC,SAAS,sBAAsB,EAEhC,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,EAC5C,OAAO,EAAE,CAAC,EACV,mBAAmB,EAAE,0BAA0B,EAC/C,EAAE,aAAkB,EAAE,GAAE,kBAAuB,GAC9C,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAiBzB"}
|
|
@@ -68,9 +68,10 @@ function serializeModelMergerModelInput(input, definitionContainer, siblingModel
|
|
|
68
68
|
...input.graphql,
|
|
69
69
|
objectType: {
|
|
70
70
|
...input.graphql?.objectType,
|
|
71
|
-
fields: input.graphql?.objectType?.fields
|
|
72
|
-
localRelations: input.graphql?.objectType?.localRelations?.map(relationNameFromId)
|
|
73
|
-
|
|
71
|
+
fields: input.graphql?.objectType?.fields?.map(fieldNameFromId) ?? [],
|
|
72
|
+
localRelations: input.graphql?.objectType?.localRelations?.map(relationNameFromId) ??
|
|
73
|
+
[],
|
|
74
|
+
foreignRelations: input.graphql?.objectType?.foreignRelations?.map(relationNameFromId) ?? [],
|
|
74
75
|
},
|
|
75
76
|
},
|
|
76
77
|
};
|
|
@@ -150,7 +151,7 @@ function deserializeModelMergerModelInput(input, resolveForeignFieldRef, resolve
|
|
|
150
151
|
...inputWithIds.graphql,
|
|
151
152
|
objectType: {
|
|
152
153
|
...inputWithIds.graphql?.objectType,
|
|
153
|
-
fields: inputWithIds.graphql?.objectType?.fields
|
|
154
|
+
fields: inputWithIds.graphql?.objectType?.fields?.map((fieldRef) => resolveLocalFieldName(fieldRef)) ?? [],
|
|
154
155
|
localRelations: inputWithIds.graphql?.objectType?.localRelations?.map((relationRef) => resolveLocalRelationName(relationRef)) ?? [],
|
|
155
156
|
foreignRelations: inputWithIds.graphql?.objectType?.foreignRelations?.map((relationRef) => resolveForeignRelationRef(relationRef)) ?? [],
|
|
156
157
|
},
|
|
@@ -200,6 +201,9 @@ export function createModelMergerResult(current, desired, definitionContainer, {
|
|
|
200
201
|
changes: diff,
|
|
201
202
|
};
|
|
202
203
|
}
|
|
204
|
+
export function doesModelMergerResultsHaveChanges(results) {
|
|
205
|
+
return Object.values(results).some((result) => result?.changes);
|
|
206
|
+
}
|
|
203
207
|
/**
|
|
204
208
|
* Creates a model merger result for a set of models.
|
|
205
209
|
*
|