@skmtc/core 0.0.537 → 0.0.538
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/esm/types/Manifest.d.ts +83 -0
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Preview.d.ts +88 -0
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +11 -0
- package/package.json +1 -1
- package/script/types/Manifest.d.ts +83 -0
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Preview.d.ts +88 -0
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +12 -1
package/esm/types/Manifest.d.ts
CHANGED
|
@@ -84,6 +84,37 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
84
84
|
exportPath: z.ZodString;
|
|
85
85
|
group: z.ZodString;
|
|
86
86
|
route: z.ZodOptional<z.ZodString>;
|
|
87
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
name: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
schema: {} & {
|
|
93
|
+
[k: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
label: string;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
schema: {} & {
|
|
99
|
+
[k: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
label: string;
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
formatter: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
schema: {} & {
|
|
109
|
+
[k: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
label: string;
|
|
112
|
+
}, {
|
|
113
|
+
schema: {} & {
|
|
114
|
+
[k: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
label: string;
|
|
117
|
+
}>>;
|
|
87
118
|
source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88
119
|
type: z.ZodLiteral<"operation">;
|
|
89
120
|
generatorId: z.ZodString;
|
|
@@ -127,6 +158,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
127
158
|
refName: string;
|
|
128
159
|
};
|
|
129
160
|
route?: string | undefined;
|
|
161
|
+
input?: {
|
|
162
|
+
schema: {} & {
|
|
163
|
+
[k: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
label: string;
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
formatter?: {
|
|
169
|
+
schema: {} & {
|
|
170
|
+
[k: string]: unknown;
|
|
171
|
+
};
|
|
172
|
+
label: string;
|
|
173
|
+
} | undefined;
|
|
130
174
|
}, {
|
|
131
175
|
name: string;
|
|
132
176
|
exportPath: string;
|
|
@@ -142,6 +186,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
142
186
|
refName: string;
|
|
143
187
|
};
|
|
144
188
|
route?: string | undefined;
|
|
189
|
+
input?: {
|
|
190
|
+
schema: {} & {
|
|
191
|
+
[k: string]: unknown;
|
|
192
|
+
};
|
|
193
|
+
label: string;
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
formatter?: {
|
|
197
|
+
schema: {} & {
|
|
198
|
+
[k: string]: unknown;
|
|
199
|
+
};
|
|
200
|
+
label: string;
|
|
201
|
+
} | undefined;
|
|
145
202
|
}>>>;
|
|
146
203
|
pinnable: z.ZodRecord<z.ZodEffects<z.ZodString, GeneratorKey, string>, z.ZodString>;
|
|
147
204
|
results: z.ZodType<ResultsItem, z.ZodTypeDef, ResultsItem>;
|
|
@@ -173,6 +230,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
173
230
|
refName: string;
|
|
174
231
|
};
|
|
175
232
|
route?: string | undefined;
|
|
233
|
+
input?: {
|
|
234
|
+
schema: {} & {
|
|
235
|
+
[k: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
label: string;
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
formatter?: {
|
|
241
|
+
schema: {} & {
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
label: string;
|
|
245
|
+
} | undefined;
|
|
176
246
|
}>>;
|
|
177
247
|
pinnable: Partial<Record<GeneratorKey, string>>;
|
|
178
248
|
results: ResultsItem;
|
|
@@ -205,6 +275,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
205
275
|
refName: string;
|
|
206
276
|
};
|
|
207
277
|
route?: string | undefined;
|
|
278
|
+
input?: {
|
|
279
|
+
schema: {} & {
|
|
280
|
+
[k: string]: unknown;
|
|
281
|
+
};
|
|
282
|
+
label: string;
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
formatter?: {
|
|
286
|
+
schema: {} & {
|
|
287
|
+
[k: string]: unknown;
|
|
288
|
+
};
|
|
289
|
+
label: string;
|
|
290
|
+
} | undefined;
|
|
208
291
|
}>>;
|
|
209
292
|
pinnable: Record<string, string>;
|
|
210
293
|
results: ResultsItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAsC,KAAK,WAAW,EAAE,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC,CAAA"}
|
package/esm/types/Preview.d.ts
CHANGED
|
@@ -7,10 +7,41 @@ export type InputOption = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
};
|
|
10
|
+
export declare const inputOption: z.ZodObject<{
|
|
11
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
schema: {} & {
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
label: string;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
schema: {} & {
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
label: string;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
}>;
|
|
10
27
|
export type FormatterOption = {
|
|
11
28
|
schema: OpenAPIV3.SchemaObject;
|
|
12
29
|
label: string;
|
|
13
30
|
};
|
|
31
|
+
export declare const formatterOption: z.ZodObject<{
|
|
32
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
33
|
+
label: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
schema: {} & {
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
label: string;
|
|
39
|
+
}, {
|
|
40
|
+
schema: {} & {
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
label: string;
|
|
44
|
+
}>;
|
|
14
45
|
export type OperationPreview = {
|
|
15
46
|
type: 'operation';
|
|
16
47
|
generatorId: string;
|
|
@@ -65,6 +96,37 @@ export declare const preview: z.ZodObject<{
|
|
|
65
96
|
exportPath: z.ZodString;
|
|
66
97
|
group: z.ZodString;
|
|
67
98
|
route: z.ZodOptional<z.ZodString>;
|
|
99
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
schema: {} & {
|
|
105
|
+
[k: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
label: string;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
schema: {} & {
|
|
111
|
+
[k: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
label: string;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
}>>;
|
|
116
|
+
formatter: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
schema: {} & {
|
|
121
|
+
[k: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
label: string;
|
|
124
|
+
}, {
|
|
125
|
+
schema: {} & {
|
|
126
|
+
[k: string]: unknown;
|
|
127
|
+
};
|
|
128
|
+
label: string;
|
|
129
|
+
}>>;
|
|
68
130
|
source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
69
131
|
type: z.ZodLiteral<"operation">;
|
|
70
132
|
generatorId: z.ZodString;
|
|
@@ -108,6 +170,19 @@ export declare const preview: z.ZodObject<{
|
|
|
108
170
|
refName: string;
|
|
109
171
|
};
|
|
110
172
|
route?: string | undefined;
|
|
173
|
+
input?: {
|
|
174
|
+
schema: {} & {
|
|
175
|
+
[k: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
label: string;
|
|
178
|
+
name?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
formatter?: {
|
|
181
|
+
schema: {} & {
|
|
182
|
+
[k: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
label: string;
|
|
185
|
+
} | undefined;
|
|
111
186
|
}, {
|
|
112
187
|
name: string;
|
|
113
188
|
exportPath: string;
|
|
@@ -123,5 +198,18 @@ export declare const preview: z.ZodObject<{
|
|
|
123
198
|
refName: string;
|
|
124
199
|
};
|
|
125
200
|
route?: string | undefined;
|
|
201
|
+
input?: {
|
|
202
|
+
schema: {} & {
|
|
203
|
+
[k: string]: unknown;
|
|
204
|
+
};
|
|
205
|
+
label: string;
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
formatter?: {
|
|
209
|
+
schema: {} & {
|
|
210
|
+
[k: string]: unknown;
|
|
211
|
+
};
|
|
212
|
+
label: string;
|
|
213
|
+
} | undefined;
|
|
126
214
|
}>;
|
|
127
215
|
//# sourceMappingURL=Preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,SAAS,CAAC,YAAY,CAAA;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AA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export const inputOption = z.object({
|
|
5
|
+
schema: z.object({}).passthrough(),
|
|
6
|
+
label: z.string(),
|
|
7
|
+
name: z.string().optional()
|
|
8
|
+
});
|
|
9
|
+
export const formatterOption = z.object({
|
|
10
|
+
schema: z.object({}).passthrough(),
|
|
11
|
+
label: z.string()
|
|
12
|
+
});
|
|
4
13
|
export const operationPreview = z.object({
|
|
5
14
|
type: z.literal('operation'),
|
|
6
15
|
generatorId: z.string(),
|
|
@@ -18,6 +27,8 @@ export const preview = z
|
|
|
18
27
|
exportPath: z.string(),
|
|
19
28
|
group: z.string(),
|
|
20
29
|
route: z.string().optional(),
|
|
30
|
+
input: inputOption.optional(),
|
|
31
|
+
formatter: formatterOption.optional(),
|
|
21
32
|
source: z.discriminatedUnion('type', [operationPreview, modelPreview])
|
|
22
33
|
})
|
|
23
34
|
.openapi('Preview');
|
package/package.json
CHANGED
|
@@ -84,6 +84,37 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
84
84
|
exportPath: z.ZodString;
|
|
85
85
|
group: z.ZodString;
|
|
86
86
|
route: z.ZodOptional<z.ZodString>;
|
|
87
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
name: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
schema: {} & {
|
|
93
|
+
[k: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
label: string;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
schema: {} & {
|
|
99
|
+
[k: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
label: string;
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
formatter: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
schema: {} & {
|
|
109
|
+
[k: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
label: string;
|
|
112
|
+
}, {
|
|
113
|
+
schema: {} & {
|
|
114
|
+
[k: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
label: string;
|
|
117
|
+
}>>;
|
|
87
118
|
source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88
119
|
type: z.ZodLiteral<"operation">;
|
|
89
120
|
generatorId: z.ZodString;
|
|
@@ -127,6 +158,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
127
158
|
refName: string;
|
|
128
159
|
};
|
|
129
160
|
route?: string | undefined;
|
|
161
|
+
input?: {
|
|
162
|
+
schema: {} & {
|
|
163
|
+
[k: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
label: string;
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
formatter?: {
|
|
169
|
+
schema: {} & {
|
|
170
|
+
[k: string]: unknown;
|
|
171
|
+
};
|
|
172
|
+
label: string;
|
|
173
|
+
} | undefined;
|
|
130
174
|
}, {
|
|
131
175
|
name: string;
|
|
132
176
|
exportPath: string;
|
|
@@ -142,6 +186,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
142
186
|
refName: string;
|
|
143
187
|
};
|
|
144
188
|
route?: string | undefined;
|
|
189
|
+
input?: {
|
|
190
|
+
schema: {} & {
|
|
191
|
+
[k: string]: unknown;
|
|
192
|
+
};
|
|
193
|
+
label: string;
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
formatter?: {
|
|
197
|
+
schema: {} & {
|
|
198
|
+
[k: string]: unknown;
|
|
199
|
+
};
|
|
200
|
+
label: string;
|
|
201
|
+
} | undefined;
|
|
145
202
|
}>>>;
|
|
146
203
|
pinnable: z.ZodRecord<z.ZodEffects<z.ZodString, GeneratorKey, string>, z.ZodString>;
|
|
147
204
|
results: z.ZodType<ResultsItem, z.ZodTypeDef, ResultsItem>;
|
|
@@ -173,6 +230,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
173
230
|
refName: string;
|
|
174
231
|
};
|
|
175
232
|
route?: string | undefined;
|
|
233
|
+
input?: {
|
|
234
|
+
schema: {} & {
|
|
235
|
+
[k: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
label: string;
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
formatter?: {
|
|
241
|
+
schema: {} & {
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
label: string;
|
|
245
|
+
} | undefined;
|
|
176
246
|
}>>;
|
|
177
247
|
pinnable: Partial<Record<GeneratorKey, string>>;
|
|
178
248
|
results: ResultsItem;
|
|
@@ -205,6 +275,19 @@ export declare const manifestContent: z.ZodObject<{
|
|
|
205
275
|
refName: string;
|
|
206
276
|
};
|
|
207
277
|
route?: string | undefined;
|
|
278
|
+
input?: {
|
|
279
|
+
schema: {} & {
|
|
280
|
+
[k: string]: unknown;
|
|
281
|
+
};
|
|
282
|
+
label: string;
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
formatter?: {
|
|
286
|
+
schema: {} & {
|
|
287
|
+
[k: string]: unknown;
|
|
288
|
+
};
|
|
289
|
+
label: string;
|
|
290
|
+
} | undefined;
|
|
208
291
|
}>>;
|
|
209
292
|
pinnable: Record<string, string>;
|
|
210
293
|
results: ResultsItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC,CAAA"}
|
|
@@ -7,10 +7,41 @@ export type InputOption = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
};
|
|
10
|
+
export declare const inputOption: z.ZodObject<{
|
|
11
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
schema: {} & {
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
label: string;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
schema: {} & {
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
label: string;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
}>;
|
|
10
27
|
export type FormatterOption = {
|
|
11
28
|
schema: OpenAPIV3.SchemaObject;
|
|
12
29
|
label: string;
|
|
13
30
|
};
|
|
31
|
+
export declare const formatterOption: z.ZodObject<{
|
|
32
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
33
|
+
label: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
schema: {} & {
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
label: string;
|
|
39
|
+
}, {
|
|
40
|
+
schema: {} & {
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
label: string;
|
|
44
|
+
}>;
|
|
14
45
|
export type OperationPreview = {
|
|
15
46
|
type: 'operation';
|
|
16
47
|
generatorId: string;
|
|
@@ -65,6 +96,37 @@ export declare const preview: z.ZodObject<{
|
|
|
65
96
|
exportPath: z.ZodString;
|
|
66
97
|
group: z.ZodString;
|
|
67
98
|
route: z.ZodOptional<z.ZodString>;
|
|
99
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
schema: {} & {
|
|
105
|
+
[k: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
label: string;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
schema: {} & {
|
|
111
|
+
[k: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
label: string;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
}>>;
|
|
116
|
+
formatter: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
schema: {} & {
|
|
121
|
+
[k: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
label: string;
|
|
124
|
+
}, {
|
|
125
|
+
schema: {} & {
|
|
126
|
+
[k: string]: unknown;
|
|
127
|
+
};
|
|
128
|
+
label: string;
|
|
129
|
+
}>>;
|
|
68
130
|
source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
69
131
|
type: z.ZodLiteral<"operation">;
|
|
70
132
|
generatorId: z.ZodString;
|
|
@@ -108,6 +170,19 @@ export declare const preview: z.ZodObject<{
|
|
|
108
170
|
refName: string;
|
|
109
171
|
};
|
|
110
172
|
route?: string | undefined;
|
|
173
|
+
input?: {
|
|
174
|
+
schema: {} & {
|
|
175
|
+
[k: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
label: string;
|
|
178
|
+
name?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
formatter?: {
|
|
181
|
+
schema: {} & {
|
|
182
|
+
[k: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
label: string;
|
|
185
|
+
} | undefined;
|
|
111
186
|
}, {
|
|
112
187
|
name: string;
|
|
113
188
|
exportPath: string;
|
|
@@ -123,5 +198,18 @@ export declare const preview: z.ZodObject<{
|
|
|
123
198
|
refName: string;
|
|
124
199
|
};
|
|
125
200
|
route?: string | undefined;
|
|
201
|
+
input?: {
|
|
202
|
+
schema: {} & {
|
|
203
|
+
[k: string]: unknown;
|
|
204
|
+
};
|
|
205
|
+
label: string;
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
formatter?: {
|
|
209
|
+
schema: {} & {
|
|
210
|
+
[k: string]: unknown;
|
|
211
|
+
};
|
|
212
|
+
label: string;
|
|
213
|
+
} | undefined;
|
|
126
214
|
}>;
|
|
127
215
|
//# sourceMappingURL=Preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,SA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@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.preview = exports.modelPreview = exports.operationPreview = void 0;
|
|
3
|
+
exports.preview = exports.modelPreview = exports.operationPreview = exports.formatterOption = exports.inputOption = void 0;
|
|
4
4
|
require("../_dnt.polyfills.js");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const Method_js_1 = require("./Method.js");
|
|
7
|
+
exports.inputOption = zod_1.z.object({
|
|
8
|
+
schema: zod_1.z.object({}).passthrough(),
|
|
9
|
+
label: zod_1.z.string(),
|
|
10
|
+
name: zod_1.z.string().optional()
|
|
11
|
+
});
|
|
12
|
+
exports.formatterOption = zod_1.z.object({
|
|
13
|
+
schema: zod_1.z.object({}).passthrough(),
|
|
14
|
+
label: zod_1.z.string()
|
|
15
|
+
});
|
|
7
16
|
exports.operationPreview = zod_1.z.object({
|
|
8
17
|
type: zod_1.z.literal('operation'),
|
|
9
18
|
generatorId: zod_1.z.string(),
|
|
@@ -21,6 +30,8 @@ exports.preview = zod_1.z
|
|
|
21
30
|
exportPath: zod_1.z.string(),
|
|
22
31
|
group: zod_1.z.string(),
|
|
23
32
|
route: zod_1.z.string().optional(),
|
|
33
|
+
input: exports.inputOption.optional(),
|
|
34
|
+
formatter: exports.formatterOption.optional(),
|
|
24
35
|
source: zod_1.z.discriminatedUnion('type', [exports.operationPreview, exports.modelPreview])
|
|
25
36
|
})
|
|
26
37
|
.openapi('Preview');
|