@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,43 +1,65 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { def } from '#src/schema/creator/index.js';
|
|
3
3
|
export declare const createModelGraphqlSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
|
-
objectType: z.
|
|
5
|
-
enabled: z.
|
|
6
|
-
fields: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
7
|
-
localRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
8
|
-
foreignRelations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many"
|
|
4
|
+
objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
6
|
+
fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
7
|
+
localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
8
|
+
foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
enabled
|
|
11
|
-
fields
|
|
10
|
+
enabled?: boolean | undefined;
|
|
11
|
+
fields?: string[] | undefined;
|
|
12
12
|
localRelations?: string[] | undefined;
|
|
13
13
|
foreignRelations?: string[] | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
fields: string[];
|
|
16
15
|
enabled?: boolean | undefined;
|
|
16
|
+
fields?: string[] | undefined;
|
|
17
|
+
localRelations?: string[] | undefined;
|
|
18
|
+
foreignRelations?: string[] | undefined;
|
|
19
|
+
}>>, {
|
|
20
|
+
enabled?: boolean | undefined;
|
|
21
|
+
fields?: string[] | undefined;
|
|
17
22
|
localRelations?: string[] | undefined;
|
|
18
23
|
foreignRelations?: string[] | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
} | undefined, {
|
|
25
|
+
enabled?: boolean | undefined;
|
|
26
|
+
fields?: string[] | undefined;
|
|
27
|
+
localRelations?: string[] | undefined;
|
|
28
|
+
foreignRelations?: string[] | undefined;
|
|
29
|
+
} | undefined>;
|
|
30
|
+
queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
31
|
+
get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
32
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
33
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
24
34
|
}, "strip", z.ZodTypeAny, {
|
|
25
35
|
enabled?: boolean | undefined;
|
|
26
36
|
roles?: string[] | undefined;
|
|
27
37
|
}, {
|
|
28
38
|
enabled?: boolean | undefined;
|
|
29
39
|
roles?: string[] | undefined;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
}>>, {
|
|
41
|
+
enabled?: boolean | undefined;
|
|
42
|
+
roles?: string[] | undefined;
|
|
43
|
+
} | undefined, {
|
|
44
|
+
enabled?: boolean | undefined;
|
|
45
|
+
roles?: string[] | undefined;
|
|
46
|
+
} | undefined>;
|
|
47
|
+
list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
48
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
49
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
34
50
|
}, "strip", z.ZodTypeAny, {
|
|
35
51
|
enabled?: boolean | undefined;
|
|
36
52
|
roles?: string[] | undefined;
|
|
37
53
|
}, {
|
|
38
54
|
enabled?: boolean | undefined;
|
|
39
55
|
roles?: string[] | undefined;
|
|
40
|
-
}
|
|
56
|
+
}>>, {
|
|
57
|
+
enabled?: boolean | undefined;
|
|
58
|
+
roles?: string[] | undefined;
|
|
59
|
+
} | undefined, {
|
|
60
|
+
enabled?: boolean | undefined;
|
|
61
|
+
roles?: string[] | undefined;
|
|
62
|
+
} | undefined>;
|
|
41
63
|
}, "strip", z.ZodTypeAny, {
|
|
42
64
|
get?: {
|
|
43
65
|
enabled?: boolean | undefined;
|
|
@@ -56,51 +78,87 @@ export declare const createModelGraphqlSchema: (context: import("#src/schema/cre
|
|
|
56
78
|
enabled?: boolean | undefined;
|
|
57
79
|
roles?: string[] | undefined;
|
|
58
80
|
} | undefined;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
81
|
+
}>>, {
|
|
82
|
+
get?: {
|
|
83
|
+
enabled?: boolean | undefined;
|
|
84
|
+
roles?: string[] | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
list?: {
|
|
87
|
+
enabled?: boolean | undefined;
|
|
88
|
+
roles?: string[] | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
} | undefined, {
|
|
91
|
+
get?: {
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
roles?: string[] | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
list?: {
|
|
96
|
+
enabled?: boolean | undefined;
|
|
97
|
+
roles?: string[] | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
} | undefined>;
|
|
100
|
+
mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
101
|
+
create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
102
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
103
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
64
104
|
}, "strip", z.ZodTypeAny, {
|
|
65
105
|
enabled?: boolean | undefined;
|
|
66
106
|
roles?: string[] | undefined;
|
|
67
107
|
}, {
|
|
68
108
|
enabled?: boolean | undefined;
|
|
69
109
|
roles?: string[] | undefined;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
110
|
+
}>>, {
|
|
111
|
+
enabled?: boolean | undefined;
|
|
112
|
+
roles?: string[] | undefined;
|
|
113
|
+
} | undefined, {
|
|
114
|
+
enabled?: boolean | undefined;
|
|
115
|
+
roles?: string[] | undefined;
|
|
116
|
+
} | undefined>;
|
|
117
|
+
update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
118
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
119
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
74
120
|
}, "strip", z.ZodTypeAny, {
|
|
75
121
|
enabled?: boolean | undefined;
|
|
76
122
|
roles?: string[] | undefined;
|
|
77
123
|
}, {
|
|
78
124
|
enabled?: boolean | undefined;
|
|
79
125
|
roles?: string[] | undefined;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
126
|
+
}>>, {
|
|
127
|
+
enabled?: boolean | undefined;
|
|
128
|
+
roles?: string[] | undefined;
|
|
129
|
+
} | undefined, {
|
|
130
|
+
enabled?: boolean | undefined;
|
|
131
|
+
roles?: string[] | undefined;
|
|
132
|
+
} | undefined>;
|
|
133
|
+
delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
134
|
+
enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
135
|
+
roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
|
|
84
136
|
}, "strip", z.ZodTypeAny, {
|
|
85
137
|
enabled?: boolean | undefined;
|
|
86
138
|
roles?: string[] | undefined;
|
|
87
139
|
}, {
|
|
88
140
|
enabled?: boolean | undefined;
|
|
89
141
|
roles?: string[] | undefined;
|
|
90
|
-
}
|
|
142
|
+
}>>, {
|
|
143
|
+
enabled?: boolean | undefined;
|
|
144
|
+
roles?: string[] | undefined;
|
|
145
|
+
} | undefined, {
|
|
146
|
+
enabled?: boolean | undefined;
|
|
147
|
+
roles?: string[] | undefined;
|
|
148
|
+
} | undefined>;
|
|
91
149
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
delete
|
|
150
|
+
delete?: {
|
|
93
151
|
enabled?: boolean | undefined;
|
|
94
152
|
roles?: string[] | undefined;
|
|
95
|
-
};
|
|
96
|
-
create
|
|
153
|
+
} | undefined;
|
|
154
|
+
create?: {
|
|
97
155
|
enabled?: boolean | undefined;
|
|
98
156
|
roles?: string[] | undefined;
|
|
99
|
-
};
|
|
100
|
-
update
|
|
157
|
+
} | undefined;
|
|
158
|
+
update?: {
|
|
101
159
|
enabled?: boolean | undefined;
|
|
102
160
|
roles?: string[] | undefined;
|
|
103
|
-
};
|
|
161
|
+
} | undefined;
|
|
104
162
|
}, {
|
|
105
163
|
delete?: {
|
|
106
164
|
enabled?: boolean | undefined;
|
|
@@ -114,15 +172,41 @@ export declare const createModelGraphqlSchema: (context: import("#src/schema/cre
|
|
|
114
172
|
enabled?: boolean | undefined;
|
|
115
173
|
roles?: string[] | undefined;
|
|
116
174
|
} | undefined;
|
|
117
|
-
}
|
|
175
|
+
}>>, {
|
|
176
|
+
delete?: {
|
|
177
|
+
enabled?: boolean | undefined;
|
|
178
|
+
roles?: string[] | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
create?: {
|
|
181
|
+
enabled?: boolean | undefined;
|
|
182
|
+
roles?: string[] | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
update?: {
|
|
185
|
+
enabled?: boolean | undefined;
|
|
186
|
+
roles?: string[] | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
} | undefined, {
|
|
189
|
+
delete?: {
|
|
190
|
+
enabled?: boolean | undefined;
|
|
191
|
+
roles?: string[] | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
create?: {
|
|
194
|
+
enabled?: boolean | undefined;
|
|
195
|
+
roles?: string[] | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
update?: {
|
|
198
|
+
enabled?: boolean | undefined;
|
|
199
|
+
roles?: string[] | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
} | undefined>;
|
|
118
202
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
objectType
|
|
120
|
-
enabled
|
|
121
|
-
fields
|
|
203
|
+
objectType?: {
|
|
204
|
+
enabled?: boolean | undefined;
|
|
205
|
+
fields?: string[] | undefined;
|
|
122
206
|
localRelations?: string[] | undefined;
|
|
123
207
|
foreignRelations?: string[] | undefined;
|
|
124
|
-
};
|
|
125
|
-
queries
|
|
208
|
+
} | undefined;
|
|
209
|
+
queries?: {
|
|
126
210
|
get?: {
|
|
127
211
|
enabled?: boolean | undefined;
|
|
128
212
|
roles?: string[] | undefined;
|
|
@@ -131,25 +215,25 @@ export declare const createModelGraphqlSchema: (context: import("#src/schema/cre
|
|
|
131
215
|
enabled?: boolean | undefined;
|
|
132
216
|
roles?: string[] | undefined;
|
|
133
217
|
} | undefined;
|
|
134
|
-
};
|
|
135
|
-
mutations
|
|
136
|
-
delete
|
|
218
|
+
} | undefined;
|
|
219
|
+
mutations?: {
|
|
220
|
+
delete?: {
|
|
137
221
|
enabled?: boolean | undefined;
|
|
138
222
|
roles?: string[] | undefined;
|
|
139
|
-
};
|
|
140
|
-
create
|
|
223
|
+
} | undefined;
|
|
224
|
+
create?: {
|
|
141
225
|
enabled?: boolean | undefined;
|
|
142
226
|
roles?: string[] | undefined;
|
|
143
|
-
};
|
|
144
|
-
update
|
|
227
|
+
} | undefined;
|
|
228
|
+
update?: {
|
|
145
229
|
enabled?: boolean | undefined;
|
|
146
230
|
roles?: string[] | undefined;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
231
|
+
} | undefined;
|
|
232
|
+
} | undefined;
|
|
149
233
|
}, {
|
|
150
234
|
objectType?: {
|
|
151
|
-
fields: string[];
|
|
152
235
|
enabled?: boolean | undefined;
|
|
236
|
+
fields?: string[] | undefined;
|
|
153
237
|
localRelations?: string[] | undefined;
|
|
154
238
|
foreignRelations?: string[] | undefined;
|
|
155
239
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/schema/models/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/schema/models/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AAuBxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoFpC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,WAAW,CAClD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -2,95 +2,52 @@ import { z } from 'zod';
|
|
|
2
2
|
import { definitionSchema } from '#src/schema/creator/schema-creator.js';
|
|
3
3
|
import { authRoleEntityType } from '../auth/index.js';
|
|
4
4
|
import { modelForeignRelationEntityType, modelLocalRelationEntityType, modelScalarFieldEntityType, } from './types.js';
|
|
5
|
-
const createRoleArray = definitionSchema((ctx) => z
|
|
6
|
-
.array(ctx.withRef({
|
|
5
|
+
const createRoleArray = definitionSchema((ctx) => ctx.withDefault(z.array(ctx.withRef({
|
|
7
6
|
type: authRoleEntityType,
|
|
8
7
|
onDelete: 'DELETE',
|
|
9
|
-
}))
|
|
10
|
-
.optional());
|
|
8
|
+
})), []));
|
|
11
9
|
export const createModelGraphqlSchema = definitionSchema((ctx) => z.object({
|
|
12
|
-
objectType: z
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
fields: z.array(ctx.withRef({
|
|
10
|
+
objectType: ctx.withDefault(z.object({
|
|
11
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
12
|
+
fields: ctx.withDefault(z.array(ctx.withRef({
|
|
16
13
|
type: modelScalarFieldEntityType,
|
|
17
14
|
onDelete: 'DELETE',
|
|
18
15
|
parentPath: { context: 'model' },
|
|
19
|
-
})),
|
|
20
|
-
localRelations: z
|
|
21
|
-
.array(ctx.withRef({
|
|
16
|
+
})), []),
|
|
17
|
+
localRelations: ctx.withDefault(z.array(ctx.withRef({
|
|
22
18
|
type: modelLocalRelationEntityType,
|
|
23
19
|
onDelete: 'DELETE',
|
|
24
20
|
parentPath: { context: 'model' },
|
|
25
|
-
}))
|
|
26
|
-
|
|
27
|
-
foreignRelations: z
|
|
28
|
-
.array(ctx.withRef({
|
|
21
|
+
})), []),
|
|
22
|
+
foreignRelations: ctx.withDefault(z.array(ctx.withRef({
|
|
29
23
|
type: modelForeignRelationEntityType,
|
|
30
24
|
onDelete: 'DELETE',
|
|
31
25
|
parentPath: { context: 'model' },
|
|
32
|
-
}))
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
fields: [],
|
|
38
|
-
}),
|
|
39
|
-
queries: z
|
|
40
|
-
.object({
|
|
41
|
-
get: z
|
|
42
|
-
.object({
|
|
43
|
-
enabled: z.boolean().optional(),
|
|
26
|
+
})), []),
|
|
27
|
+
}), {}),
|
|
28
|
+
queries: ctx.withDefault(z.object({
|
|
29
|
+
get: ctx.withDefault(z.object({
|
|
30
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
44
31
|
roles: createRoleArray(ctx),
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.object({
|
|
49
|
-
enabled: z.boolean().optional(),
|
|
32
|
+
}), {}),
|
|
33
|
+
list: ctx.withDefault(z.object({
|
|
34
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
50
35
|
roles: createRoleArray(ctx),
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
enabled: false,
|
|
57
|
-
roles: [],
|
|
58
|
-
},
|
|
59
|
-
list: {
|
|
60
|
-
enabled: false,
|
|
61
|
-
roles: [],
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
mutations: z
|
|
65
|
-
.object({
|
|
66
|
-
create: z
|
|
67
|
-
.object({
|
|
68
|
-
enabled: z.boolean().optional(),
|
|
36
|
+
}), {}),
|
|
37
|
+
}), {}),
|
|
38
|
+
mutations: ctx.withDefault(z.object({
|
|
39
|
+
create: ctx.withDefault(z.object({
|
|
40
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
69
41
|
roles: createRoleArray(ctx),
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
enabled: false,
|
|
73
|
-
roles: [],
|
|
74
|
-
}),
|
|
75
|
-
update: z
|
|
76
|
-
.object({
|
|
77
|
-
enabled: z.boolean().optional(),
|
|
42
|
+
}), {}),
|
|
43
|
+
update: ctx.withDefault(z.object({
|
|
44
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
78
45
|
roles: createRoleArray(ctx),
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
enabled: false,
|
|
82
|
-
roles: [],
|
|
83
|
-
}),
|
|
84
|
-
delete: z
|
|
85
|
-
.object({
|
|
86
|
-
enabled: z.boolean().optional(),
|
|
46
|
+
}), {}),
|
|
47
|
+
delete: ctx.withDefault(z.object({
|
|
48
|
+
enabled: ctx.withDefault(z.boolean(), false),
|
|
87
49
|
roles: createRoleArray(ctx),
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
enabled: false,
|
|
91
|
-
roles: [],
|
|
92
|
-
}),
|
|
93
|
-
})
|
|
94
|
-
.default({}),
|
|
50
|
+
}), {}),
|
|
51
|
+
}), {}),
|
|
95
52
|
}));
|
|
96
53
|
//# sourceMappingURL=graphql.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/schema/models/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,YAAY,CAAC;AAEpB,MAAM,eAAe,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE,CAC/C,CAAC
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","s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