@skmtc/core 0.0.592 → 0.0.594

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.
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,CAAC,cAAc,GAAG,SAAS,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAC9F,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,qGASnB,aAAa;;;CAuBf,CAAA"}
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,CAAC,cAAc,GAAG,SAAS,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAC9F,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,qGASnB,aAAa;;;CA8Bf,CAAA"}
@@ -2,7 +2,7 @@ import * as dntShim from "../_dnt.shims.js";
2
2
  import { CoreContext } from '../context/CoreContext.js';
3
3
  export const transform = ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }) => {
4
4
  const context = new CoreContext({ spanId, logsPath });
5
- const { artifacts, files, previews, results } = context.transform({
5
+ const { artifacts, files, previews, schemaOptions, results } = context.transform({
6
6
  settings,
7
7
  toGeneratorConfigMap,
8
8
  prettier,
@@ -11,6 +11,13 @@ export const transform = ({ traceId, spanId, documentObject, settings, prettier,
11
11
  const manifest = {
12
12
  files,
13
13
  previews,
14
+ schemaOptions: schemaOptions.map(schemaOption => ({
15
+ ...schemaOption,
16
+ matchBy: {
17
+ schema: schemaOption.matchBy.schema.toJsonSchema({ resolve: true }),
18
+ name: schemaOption.matchBy.name
19
+ }
20
+ })),
14
21
  traceId,
15
22
  spanId,
16
23
  results,
@@ -2,6 +2,7 @@ import "../_dnt.polyfills.js";
2
2
  import { z } from '@hono/zod-openapi';
3
3
  import { type ResultsItem } from './Results.js';
4
4
  import { type Preview } from './Preview.js';
5
+ import { type SerializedSchemaOption } from './SchemaOptions.js';
5
6
  export type ManifestEntry = {
6
7
  lines: number;
7
8
  characters: number;
@@ -44,6 +45,7 @@ export type ManifestContent = {
44
45
  results: ResultsItem;
45
46
  startAt: number;
46
47
  endAt: number;
48
+ schemaOptions: SerializedSchemaOption[];
47
49
  };
48
50
  export declare const manifestContent: z.ZodObject<{
49
51
  deploymentId: z.ZodString;
@@ -171,6 +173,37 @@ export declare const manifestContent: z.ZodObject<{
171
173
  results: z.ZodType<ResultsItem, z.ZodTypeDef, ResultsItem>;
172
174
  startAt: z.ZodNumber;
173
175
  endAt: z.ZodNumber;
176
+ schemaOptions: z.ZodArray<z.ZodObject<{
177
+ type: z.ZodEnum<["input", "formatter"]>;
178
+ name: z.ZodString;
179
+ exportPath: z.ZodString;
180
+ matchBy: z.ZodObject<{
181
+ schema: z.ZodType<import("./SchemaOptions.js").SerializedSchema, z.ZodTypeDef, import("./SchemaOptions.js").SerializedSchema>;
182
+ name: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ schema: import("./SchemaOptions.js").SerializedSchema;
185
+ name?: string | undefined;
186
+ }, {
187
+ schema: import("./SchemaOptions.js").SerializedSchema;
188
+ name?: string | undefined;
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ name: string;
192
+ type: "input" | "formatter";
193
+ exportPath: string;
194
+ matchBy: {
195
+ schema: import("./SchemaOptions.js").SerializedSchema;
196
+ name?: string | undefined;
197
+ };
198
+ }, {
199
+ name: string;
200
+ type: "input" | "formatter";
201
+ exportPath: string;
202
+ matchBy: {
203
+ schema: import("./SchemaOptions.js").SerializedSchema;
204
+ name?: string | undefined;
205
+ };
206
+ }>, "many">;
174
207
  }, "strip", z.ZodTypeAny, {
175
208
  deploymentId: string;
176
209
  traceId: string;
@@ -208,6 +241,15 @@ export declare const manifestContent: z.ZodObject<{
208
241
  results: ResultsItem;
209
242
  startAt: number;
210
243
  endAt: number;
244
+ schemaOptions: {
245
+ name: string;
246
+ type: "input" | "formatter";
247
+ exportPath: string;
248
+ matchBy: {
249
+ schema: import("./SchemaOptions.js").SerializedSchema;
250
+ name?: string | undefined;
251
+ };
252
+ }[];
211
253
  region?: string | undefined;
212
254
  }, {
213
255
  deploymentId: string;
@@ -246,6 +288,15 @@ export declare const manifestContent: z.ZodObject<{
246
288
  results: ResultsItem;
247
289
  startAt: number;
248
290
  endAt: number;
291
+ schemaOptions: {
292
+ name: string;
293
+ type: "input" | "formatter";
294
+ exportPath: string;
295
+ matchBy: {
296
+ schema: import("./SchemaOptions.js").SerializedSchema;
297
+ name?: string | undefined;
298
+ };
299
+ }[];
249
300
  region?: string | undefined;
250
301
  }>;
251
302
  //# sourceMappingURL=Manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAsC,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AACnF,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;EAMC,CAAA;AAE3B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;EAKC,CAAA;AACzB,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAC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AE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,sBAAsB,EAAE,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC,CAAA"}
@@ -2,6 +2,7 @@ import "../_dnt.polyfills.js";
2
2
  import { z } from '@hono/zod-openapi';
3
3
  import { resultsItem, resultsItemJsonSchema } from './Results.js';
4
4
  import { preview } from './Preview.js';
5
+ import { serializedSchemaOption } from './SchemaOptions.js';
5
6
  export const manifestEntry = z
6
7
  .object({
7
8
  lines: z.number(),
@@ -25,6 +26,7 @@ export const manifestContent = z
25
26
  previews: z.record(z.record(preview)),
26
27
  results: resultsItem.openapi('ResultsItem', resultsItemJsonSchema),
27
28
  startAt: z.number(),
28
- endAt: z.number()
29
+ endAt: z.number(),
30
+ schemaOptions: z.array(serializedSchemaOption)
29
31
  })
30
32
  .openapi('ManifestContent');
@@ -41,4 +41,62 @@ export declare const schemaOption: z.ZodObject<{
41
41
  name?: string | undefined;
42
42
  };
43
43
  }>;
44
+ export declare const serializedSchema: z.ZodType<SerializedSchema>;
45
+ export type SerializedSchema = {
46
+ type: 'object';
47
+ properties?: Record<string, SerializedSchema>;
48
+ } | {
49
+ type: 'string';
50
+ } | {
51
+ type: 'number';
52
+ } | {
53
+ type: 'boolean';
54
+ } | {
55
+ type: 'array';
56
+ items: SerializedSchema;
57
+ } | {
58
+ type: 'integer';
59
+ } | {
60
+ type: 'boolean';
61
+ };
62
+ export declare const serializedSchemaOption: z.ZodObject<{
63
+ type: z.ZodEnum<["input", "formatter"]>;
64
+ name: z.ZodString;
65
+ exportPath: z.ZodString;
66
+ matchBy: z.ZodObject<{
67
+ schema: z.ZodType<SerializedSchema, z.ZodTypeDef, SerializedSchema>;
68
+ name: z.ZodOptional<z.ZodString>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ schema: SerializedSchema;
71
+ name?: string | undefined;
72
+ }, {
73
+ schema: SerializedSchema;
74
+ name?: string | undefined;
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ name: string;
78
+ type: "input" | "formatter";
79
+ exportPath: string;
80
+ matchBy: {
81
+ schema: SerializedSchema;
82
+ name?: string | undefined;
83
+ };
84
+ }, {
85
+ name: string;
86
+ type: "input" | "formatter";
87
+ exportPath: string;
88
+ matchBy: {
89
+ schema: SerializedSchema;
90
+ name?: string | undefined;
91
+ };
92
+ }>;
93
+ export type SerializedSchemaOption = {
94
+ type: 'input' | 'formatter';
95
+ name: string;
96
+ exportPath: string;
97
+ matchBy: {
98
+ schema: SerializedSchema;
99
+ name?: string;
100
+ };
101
+ };
44
102
  //# sourceMappingURL=SchemaOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaOptions.d.ts","sourceRoot":"","sources":["../../src/types/SchemaOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,GAAG,WAAW,CAAA;IAC3B,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,CAAA;CAChB,CAAA;AAEL,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,OAAO,GAAG,WAAW,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE;QACP,MAAM,EAAE,gBAAgB,CAAA;QACxB,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA"}
@@ -9,3 +9,37 @@ export const schemaOption = z.object({
9
9
  }),
10
10
  exportPath: z.string()
11
11
  });
12
+ export const serializedSchema = z.union([
13
+ z.object({
14
+ type: z.literal('object'),
15
+ properties: z.lazy(() => z.record(serializedSchema)).optional()
16
+ }),
17
+ z.object({
18
+ type: z.literal('string')
19
+ }),
20
+ z.object({
21
+ type: z.literal('number')
22
+ }),
23
+ z.object({
24
+ type: z.literal('boolean')
25
+ }),
26
+ z.object({
27
+ type: z.literal('array'),
28
+ items: z.lazy(() => serializedSchema)
29
+ }),
30
+ z.object({
31
+ type: z.literal('integer')
32
+ }),
33
+ z.object({
34
+ type: z.literal('integer')
35
+ })
36
+ ]);
37
+ export const serializedSchemaOption = z.object({
38
+ type: z.enum(['input', 'formatter']),
39
+ name: z.string(),
40
+ exportPath: z.string(),
41
+ matchBy: z.object({
42
+ schema: serializedSchema,
43
+ name: z.string().optional()
44
+ })
45
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.592",
3
+ "version": "0.0.594",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAA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MAAM,CAAA;IACjB,oBAAoB,EAAE,CAAC,cAAc,GAAG,SAAS,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAC9F,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,qGASnB,aAAa;;;CA8Bf,CAAA"}
@@ -28,7 +28,7 @@ const dntShim = __importStar(require("../_dnt.shims.js"));
28
28
  const CoreContext_js_1 = require("../context/CoreContext.js");
29
29
  const transform = ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }) => {
30
30
  const context = new CoreContext_js_1.CoreContext({ spanId, logsPath });
31
- const { artifacts, files, previews, results } = context.transform({
31
+ const { artifacts, files, previews, schemaOptions, results } = context.transform({
32
32
  settings,
33
33
  toGeneratorConfigMap,
34
34
  prettier,
@@ -37,6 +37,13 @@ const transform = ({ traceId, spanId, documentObject, settings, prettier, toGene
37
37
  const manifest = {
38
38
  files,
39
39
  previews,
40
+ schemaOptions: schemaOptions.map(schemaOption => ({
41
+ ...schemaOption,
42
+ matchBy: {
43
+ schema: schemaOption.matchBy.schema.toJsonSchema({ resolve: true }),
44
+ name: schemaOption.matchBy.name
45
+ }
46
+ })),
40
47
  traceId,
41
48
  spanId,
42
49
  results,
@@ -2,6 +2,7 @@ import "../_dnt.polyfills.js";
2
2
  import { z } from '@hono/zod-openapi';
3
3
  import { type ResultsItem } from './Results.js';
4
4
  import { type Preview } from './Preview.js';
5
+ import { type SerializedSchemaOption } from './SchemaOptions.js';
5
6
  export type ManifestEntry = {
6
7
  lines: number;
7
8
  characters: number;
@@ -44,6 +45,7 @@ export type ManifestContent = {
44
45
  results: ResultsItem;
45
46
  startAt: number;
46
47
  endAt: number;
48
+ schemaOptions: SerializedSchemaOption[];
47
49
  };
48
50
  export declare const manifestContent: z.ZodObject<{
49
51
  deploymentId: z.ZodString;
@@ -171,6 +173,37 @@ export declare const manifestContent: z.ZodObject<{
171
173
  results: z.ZodType<ResultsItem, z.ZodTypeDef, ResultsItem>;
172
174
  startAt: z.ZodNumber;
173
175
  endAt: z.ZodNumber;
176
+ schemaOptions: z.ZodArray<z.ZodObject<{
177
+ type: z.ZodEnum<["input", "formatter"]>;
178
+ name: z.ZodString;
179
+ exportPath: z.ZodString;
180
+ matchBy: z.ZodObject<{
181
+ schema: z.ZodType<import("./SchemaOptions.js").SerializedSchema, z.ZodTypeDef, import("./SchemaOptions.js").SerializedSchema>;
182
+ name: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ schema: import("./SchemaOptions.js").SerializedSchema;
185
+ name?: string | undefined;
186
+ }, {
187
+ schema: import("./SchemaOptions.js").SerializedSchema;
188
+ name?: string | undefined;
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ name: string;
192
+ type: "input" | "formatter";
193
+ exportPath: string;
194
+ matchBy: {
195
+ schema: import("./SchemaOptions.js").SerializedSchema;
196
+ name?: string | undefined;
197
+ };
198
+ }, {
199
+ name: string;
200
+ type: "input" | "formatter";
201
+ exportPath: string;
202
+ matchBy: {
203
+ schema: import("./SchemaOptions.js").SerializedSchema;
204
+ name?: string | undefined;
205
+ };
206
+ }>, "many">;
174
207
  }, "strip", z.ZodTypeAny, {
175
208
  deploymentId: string;
176
209
  traceId: string;
@@ -208,6 +241,15 @@ export declare const manifestContent: z.ZodObject<{
208
241
  results: ResultsItem;
209
242
  startAt: number;
210
243
  endAt: number;
244
+ schemaOptions: {
245
+ name: string;
246
+ type: "input" | "formatter";
247
+ exportPath: string;
248
+ matchBy: {
249
+ schema: import("./SchemaOptions.js").SerializedSchema;
250
+ name?: string | undefined;
251
+ };
252
+ }[];
211
253
  region?: string | undefined;
212
254
  }, {
213
255
  deploymentId: string;
@@ -246,6 +288,15 @@ export declare const manifestContent: z.ZodObject<{
246
288
  results: ResultsItem;
247
289
  startAt: number;
248
290
  endAt: number;
291
+ schemaOptions: {
292
+ name: string;
293
+ type: "input" | "formatter";
294
+ exportPath: string;
295
+ matchBy: {
296
+ schema: import("./SchemaOptions.js").SerializedSchema;
297
+ name?: string | undefined;
298
+ };
299
+ }[];
249
300
  region?: string | undefined;
250
301
  }>;
251
302
  //# sourceMappingURL=Manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAsC,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AACnF,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;EAMC,CAAA;AAE3B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;EAKC,CAAA;AACzB,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAA;IACb,aAAa,EAAE,sBAAsB,EAAE,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC,CAAA"}
@@ -5,6 +5,7 @@ require("../_dnt.polyfills.js");
5
5
  const zod_openapi_1 = require("@hono/zod-openapi");
6
6
  const Results_js_1 = require("./Results.js");
7
7
  const Preview_js_1 = require("./Preview.js");
8
+ const SchemaOptions_js_1 = require("./SchemaOptions.js");
8
9
  exports.manifestEntry = zod_openapi_1.z
9
10
  .object({
10
11
  lines: zod_openapi_1.z.number(),
@@ -28,6 +29,7 @@ exports.manifestContent = zod_openapi_1.z
28
29
  previews: zod_openapi_1.z.record(zod_openapi_1.z.record(Preview_js_1.preview)),
29
30
  results: Results_js_1.resultsItem.openapi('ResultsItem', Results_js_1.resultsItemJsonSchema),
30
31
  startAt: zod_openapi_1.z.number(),
31
- endAt: zod_openapi_1.z.number()
32
+ endAt: zod_openapi_1.z.number(),
33
+ schemaOptions: zod_openapi_1.z.array(SchemaOptions_js_1.serializedSchemaOption)
32
34
  })
33
35
  .openapi('ManifestContent');
@@ -41,4 +41,62 @@ export declare const schemaOption: z.ZodObject<{
41
41
  name?: string | undefined;
42
42
  };
43
43
  }>;
44
+ export declare const serializedSchema: z.ZodType<SerializedSchema>;
45
+ export type SerializedSchema = {
46
+ type: 'object';
47
+ properties?: Record<string, SerializedSchema>;
48
+ } | {
49
+ type: 'string';
50
+ } | {
51
+ type: 'number';
52
+ } | {
53
+ type: 'boolean';
54
+ } | {
55
+ type: 'array';
56
+ items: SerializedSchema;
57
+ } | {
58
+ type: 'integer';
59
+ } | {
60
+ type: 'boolean';
61
+ };
62
+ export declare const serializedSchemaOption: z.ZodObject<{
63
+ type: z.ZodEnum<["input", "formatter"]>;
64
+ name: z.ZodString;
65
+ exportPath: z.ZodString;
66
+ matchBy: z.ZodObject<{
67
+ schema: z.ZodType<SerializedSchema, z.ZodTypeDef, SerializedSchema>;
68
+ name: z.ZodOptional<z.ZodString>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ schema: SerializedSchema;
71
+ name?: string | undefined;
72
+ }, {
73
+ schema: SerializedSchema;
74
+ name?: string | undefined;
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ name: string;
78
+ type: "input" | "formatter";
79
+ exportPath: string;
80
+ matchBy: {
81
+ schema: SerializedSchema;
82
+ name?: string | undefined;
83
+ };
84
+ }, {
85
+ name: string;
86
+ type: "input" | "formatter";
87
+ exportPath: string;
88
+ matchBy: {
89
+ schema: SerializedSchema;
90
+ name?: string | undefined;
91
+ };
92
+ }>;
93
+ export type SerializedSchemaOption = {
94
+ type: 'input' | 'formatter';
95
+ name: string;
96
+ exportPath: string;
97
+ matchBy: {
98
+ schema: SerializedSchema;
99
+ name?: string;
100
+ };
101
+ };
44
102
  //# sourceMappingURL=SchemaOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaOptions.d.ts","sourceRoot":"","sources":["../../src/types/SchemaOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,GAAG,WAAW,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,CAAA;QACjB,IAAI,CAAC,EAAE,MAAM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MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,OAAO,GAAG,WAAW,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE;QACP,MAAM,EAAE,gBAAgB,CAAA;QACxB,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.schemaOption = void 0;
3
+ exports.serializedSchemaOption = exports.serializedSchema = exports.schemaOption = void 0;
4
4
  require("../_dnt.polyfills.js");
5
5
  const zod_openapi_1 = require("@hono/zod-openapi");
6
6
  exports.schemaOption = zod_openapi_1.z.object({
@@ -12,3 +12,37 @@ exports.schemaOption = zod_openapi_1.z.object({
12
12
  }),
13
13
  exportPath: zod_openapi_1.z.string()
14
14
  });
15
+ exports.serializedSchema = zod_openapi_1.z.union([
16
+ zod_openapi_1.z.object({
17
+ type: zod_openapi_1.z.literal('object'),
18
+ properties: zod_openapi_1.z.lazy(() => zod_openapi_1.z.record(exports.serializedSchema)).optional()
19
+ }),
20
+ zod_openapi_1.z.object({
21
+ type: zod_openapi_1.z.literal('string')
22
+ }),
23
+ zod_openapi_1.z.object({
24
+ type: zod_openapi_1.z.literal('number')
25
+ }),
26
+ zod_openapi_1.z.object({
27
+ type: zod_openapi_1.z.literal('boolean')
28
+ }),
29
+ zod_openapi_1.z.object({
30
+ type: zod_openapi_1.z.literal('array'),
31
+ items: zod_openapi_1.z.lazy(() => exports.serializedSchema)
32
+ }),
33
+ zod_openapi_1.z.object({
34
+ type: zod_openapi_1.z.literal('integer')
35
+ }),
36
+ zod_openapi_1.z.object({
37
+ type: zod_openapi_1.z.literal('integer')
38
+ })
39
+ ]);
40
+ exports.serializedSchemaOption = zod_openapi_1.z.object({
41
+ type: zod_openapi_1.z.enum(['input', 'formatter']),
42
+ name: zod_openapi_1.z.string(),
43
+ exportPath: zod_openapi_1.z.string(),
44
+ matchBy: zod_openapi_1.z.object({
45
+ schema: exports.serializedSchema,
46
+ name: zod_openapi_1.z.string().optional()
47
+ })
48
+ });