@skmtc/core 0.0.667 → 0.0.669

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.
Files changed (87) hide show
  1. package/esm/context/CoreContext.d.ts +0 -2
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +2 -5
  4. package/esm/context/GenerateContext.d.ts +12 -11
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/GenerateContext.js +31 -38
  7. package/esm/context/RenderContext.d.ts +1 -4
  8. package/esm/context/RenderContext.d.ts.map +1 -1
  9. package/esm/context/RenderContext.js +2 -10
  10. package/esm/context/types.d.ts +0 -2
  11. package/esm/context/types.d.ts.map +1 -1
  12. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  13. package/esm/dsl/model/ModelBase.js +0 -15
  14. package/esm/dsl/model/toModelEntry.d.ts +5 -5
  15. package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
  16. package/esm/dsl/model/toModelEntry.js +2 -2
  17. package/esm/dsl/model/types.d.ts +6 -2
  18. package/esm/dsl/model/types.d.ts.map +1 -1
  19. package/esm/dsl/operation/OperationBase.d.ts +1 -1
  20. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  21. package/esm/dsl/operation/OperationBase.js +0 -16
  22. package/esm/dsl/operation/toOperationEntry.d.ts +5 -5
  23. package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
  24. package/esm/dsl/operation/toOperationEntry.js +2 -2
  25. package/esm/dsl/operation/types.d.ts +6 -2
  26. package/esm/dsl/operation/types.d.ts.map +1 -1
  27. package/esm/mod.d.ts +0 -1
  28. package/esm/mod.d.ts.map +1 -1
  29. package/esm/mod.js +0 -1
  30. package/esm/run/toArtifacts.d.ts.map +1 -1
  31. package/esm/run/toArtifacts.js +1 -8
  32. package/esm/types/DenoJson.d.ts +12 -0
  33. package/esm/types/DenoJson.d.ts.map +1 -1
  34. package/esm/types/DenoJson.js +6 -0
  35. package/esm/types/Manifest.d.ts +5 -14
  36. package/esm/types/Manifest.d.ts.map +1 -1
  37. package/esm/types/Manifest.js +1 -3
  38. package/esm/types/Preview.d.ts +21 -9
  39. package/esm/types/Preview.d.ts.map +1 -1
  40. package/esm/types/Preview.js +9 -5
  41. package/package.json +1 -5
  42. package/script/context/CoreContext.d.ts +0 -2
  43. package/script/context/CoreContext.d.ts.map +1 -1
  44. package/script/context/CoreContext.js +2 -5
  45. package/script/context/GenerateContext.d.ts +12 -11
  46. package/script/context/GenerateContext.d.ts.map +1 -1
  47. package/script/context/GenerateContext.js +34 -39
  48. package/script/context/RenderContext.d.ts +1 -4
  49. package/script/context/RenderContext.d.ts.map +1 -1
  50. package/script/context/RenderContext.js +2 -10
  51. package/script/context/types.d.ts +0 -2
  52. package/script/context/types.d.ts.map +1 -1
  53. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  54. package/script/dsl/model/ModelBase.js +0 -15
  55. package/script/dsl/model/toModelEntry.d.ts +5 -5
  56. package/script/dsl/model/toModelEntry.d.ts.map +1 -1
  57. package/script/dsl/model/toModelEntry.js +2 -2
  58. package/script/dsl/model/types.d.ts +6 -2
  59. package/script/dsl/model/types.d.ts.map +1 -1
  60. package/script/dsl/operation/OperationBase.d.ts +1 -1
  61. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  62. package/script/dsl/operation/OperationBase.js +0 -16
  63. package/script/dsl/operation/toOperationEntry.d.ts +5 -5
  64. package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
  65. package/script/dsl/operation/toOperationEntry.js +2 -2
  66. package/script/dsl/operation/types.d.ts +6 -2
  67. package/script/dsl/operation/types.d.ts.map +1 -1
  68. package/script/mod.d.ts +0 -1
  69. package/script/mod.d.ts.map +1 -1
  70. package/script/mod.js +0 -1
  71. package/script/run/toArtifacts.d.ts.map +1 -1
  72. package/script/run/toArtifacts.js +1 -8
  73. package/script/types/DenoJson.d.ts +12 -0
  74. package/script/types/DenoJson.d.ts.map +1 -1
  75. package/script/types/DenoJson.js +7 -1
  76. package/script/types/Manifest.d.ts +5 -14
  77. package/script/types/Manifest.d.ts.map +1 -1
  78. package/script/types/Manifest.js +1 -3
  79. package/script/types/Preview.d.ts +21 -9
  80. package/script/types/Preview.d.ts.map +1 -1
  81. package/script/types/Preview.js +10 -6
  82. package/esm/types/SchemaOptions.d.ts +0 -58
  83. package/esm/types/SchemaOptions.d.ts.map +0 -1
  84. package/esm/types/SchemaOptions.js +0 -45
  85. package/script/types/SchemaOptions.d.ts +0 -58
  86. package/script/types/SchemaOptions.d.ts.map +0 -1
  87. package/script/types/SchemaOptions.js +0 -71
@@ -10,4 +10,16 @@ export type RootDenoJson = {
10
10
  exports?: Record<string, string>;
11
11
  workspace?: string[];
12
12
  };
13
+ export declare const packageDenoJson: v.LooseObjectSchema<{
14
+ readonly name: v.StringSchema<undefined>;
15
+ readonly version: v.StringSchema<undefined>;
16
+ readonly imports: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
17
+ readonly exports: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, v.StringSchema<undefined>], undefined>;
18
+ }, undefined>;
19
+ export type PackageDenoJson = {
20
+ name: string;
21
+ version: string;
22
+ imports?: Record<string, string>;
23
+ exports: Record<string, string> | string;
24
+ };
13
25
  //# sourceMappingURL=DenoJson.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DenoJson.d.ts","sourceRoot":"","sources":["../../src/types/DenoJson.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY;;;;aAIvB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
1
+ {"version":3,"file":"DenoJson.d.ts","sourceRoot":"","sources":["../../src/types/DenoJson.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY;;;;aAIvB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe;;;;;aAK1B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;CACzC,CAAA"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.rootDenoJson = void 0;
26
+ exports.packageDenoJson = exports.rootDenoJson = void 0;
27
27
  require("../_dnt.polyfills.js");
28
28
  const v = __importStar(require("valibot"));
29
29
  exports.rootDenoJson = v.looseObject({
@@ -31,3 +31,9 @@ exports.rootDenoJson = v.looseObject({
31
31
  exports: v.optional(v.record(v.string(), v.string())),
32
32
  workspace: v.optional(v.array(v.string()))
33
33
  });
34
+ exports.packageDenoJson = v.looseObject({
35
+ name: v.string(),
36
+ version: v.string(),
37
+ imports: v.optional(v.record(v.string(), v.string())),
38
+ exports: v.union([v.record(v.string(), v.string()), v.string()])
39
+ });
@@ -1,7 +1,6 @@
1
1
  import "../_dnt.polyfills.js";
2
2
  import { type ResultsItem } from './Results.js';
3
3
  import { type Preview } from './Preview.js';
4
- import { type SerializedSchemaOption } from './SchemaOptions.js';
5
4
  import * as v from 'valibot';
6
5
  export type ManifestEntry = {
7
6
  lines: number;
@@ -31,7 +30,6 @@ export type ManifestContent = {
31
30
  results: ResultsItem;
32
31
  startAt: number;
33
32
  endAt: number;
34
- schemaOptions: SerializedSchemaOption[];
35
33
  };
36
34
  export declare const manifestContent: v.ObjectSchema<{
37
35
  readonly deploymentId: v.StringSchema<undefined>;
@@ -44,9 +42,11 @@ export declare const manifestContent: v.ObjectSchema<{
44
42
  readonly destinationPath: v.StringSchema<undefined>;
45
43
  }, undefined>, undefined>;
46
44
  readonly previews: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
47
- readonly name: v.StringSchema<undefined>;
48
- readonly exportPath: v.StringSchema<undefined>;
49
- readonly group: v.StringSchema<undefined>;
45
+ readonly module: v.ObjectSchema<{
46
+ readonly name: v.StringSchema<undefined>;
47
+ readonly exportPath: v.StringSchema<undefined>;
48
+ readonly group: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
49
+ }, undefined>;
50
50
  readonly source: v.VariantSchema<"type", [v.ObjectSchema<{
51
51
  readonly type: v.LiteralSchema<"operation", undefined>;
52
52
  readonly generatorId: v.StringSchema<undefined>;
@@ -61,14 +61,5 @@ export declare const manifestContent: v.ObjectSchema<{
61
61
  readonly results: v.GenericSchema<ResultsItem>;
62
62
  readonly startAt: v.NumberSchema<undefined>;
63
63
  readonly endAt: v.NumberSchema<undefined>;
64
- readonly schemaOptions: v.ArraySchema<v.ObjectSchema<{
65
- readonly type: v.UnionSchema<[v.LiteralSchema<"input", undefined>, v.LiteralSchema<"formatter", undefined>], undefined>;
66
- readonly name: v.StringSchema<undefined>;
67
- readonly exportPath: v.StringSchema<undefined>;
68
- readonly matchBy: v.ObjectSchema<{
69
- readonly schema: v.GenericSchema<import("./SchemaOptions.js").SerializedSchema>;
70
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
71
- }, undefined>;
72
- }, undefined>, undefined>;
73
64
  }, undefined>;
74
65
  //# 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,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACxF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,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;;;;aAIxB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW;;;aAGtB,CAAA;AAEF,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;IACb,aAAa,EAAE,sBAAsB,EAAE,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAW1B,CAAA"}
1
+ {"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,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;;;;aAIxB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW;;;aAGtB,CAAA;AAEF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAU1B,CAAA"}
@@ -27,7 +27,6 @@ exports.manifestContent = exports.previewItem = exports.manifestEntry = void 0;
27
27
  require("../_dnt.polyfills.js");
28
28
  const Results_js_1 = require("./Results.js");
29
29
  const Preview_js_1 = require("./Preview.js");
30
- const SchemaOptions_js_1 = require("./SchemaOptions.js");
31
30
  const v = __importStar(require("valibot"));
32
31
  exports.manifestEntry = v.object({
33
32
  lines: v.number(),
@@ -47,6 +46,5 @@ exports.manifestContent = v.object({
47
46
  previews: v.record(v.string(), v.record(v.string(), Preview_js_1.preview)),
48
47
  results: Results_js_1.resultsItem,
49
48
  startAt: v.number(),
50
- endAt: v.number(),
51
- schemaOptions: v.array(SchemaOptions_js_1.serializedSchemaOption)
49
+ endAt: v.number()
52
50
  });
@@ -1,38 +1,50 @@
1
1
  import "../_dnt.polyfills.js";
2
2
  import { type Method } from './Method.js';
3
3
  import * as v from 'valibot';
4
- export type OperationPreview = {
4
+ export type OperationSource = {
5
5
  type: 'operation';
6
6
  generatorId: string;
7
7
  operationPath: string;
8
8
  operationMethod: Method;
9
9
  };
10
- export type ModelPreview = {
10
+ export type ModelSource = {
11
11
  type: 'model';
12
12
  generatorId: string;
13
13
  refName: string;
14
14
  };
15
- export type Preview = {
15
+ export type PreviewGroup = 'forms' | 'tables' | 'inputs';
16
+ export type PreviewModule = {
16
17
  name: string;
17
18
  exportPath: string;
18
- group: string;
19
- source: OperationPreview | ModelPreview;
19
+ group: PreviewGroup;
20
+ };
21
+ export type Preview = {
22
+ module: PreviewModule;
23
+ source: OperationSource | ModelSource;
20
24
  };
21
- export declare const operationPreview: v.ObjectSchema<{
25
+ export declare const operationSource: v.ObjectSchema<{
22
26
  readonly type: v.LiteralSchema<"operation", undefined>;
23
27
  readonly generatorId: v.StringSchema<undefined>;
24
28
  readonly operationPath: v.StringSchema<undefined>;
25
29
  readonly operationMethod: v.UnionSchema<[v.LiteralSchema<"get", undefined>, v.LiteralSchema<"put", undefined>, v.LiteralSchema<"post", undefined>, v.LiteralSchema<"delete", undefined>, v.LiteralSchema<"options", undefined>, v.LiteralSchema<"head", undefined>, v.LiteralSchema<"patch", undefined>], undefined>;
26
30
  }, undefined>;
27
- export declare const modelPreview: v.ObjectSchema<{
31
+ export declare const modelSource: v.ObjectSchema<{
28
32
  readonly type: v.LiteralSchema<"model", undefined>;
29
33
  readonly generatorId: v.StringSchema<undefined>;
30
34
  readonly refName: v.StringSchema<undefined>;
31
35
  }, undefined>;
32
- export declare const preview: v.ObjectSchema<{
36
+ export declare const previewGroup: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
37
+ export declare const previewModule: v.ObjectSchema<{
33
38
  readonly name: v.StringSchema<undefined>;
34
39
  readonly exportPath: v.StringSchema<undefined>;
35
- readonly group: v.StringSchema<undefined>;
40
+ readonly group: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
41
+ }, undefined>;
42
+ export declare const preview: v.ObjectSchema<{
43
+ readonly module: v.ObjectSchema<{
44
+ readonly name: v.StringSchema<undefined>;
45
+ readonly exportPath: v.StringSchema<undefined>;
46
+ readonly group: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
47
+ }, undefined>;
36
48
  readonly source: v.VariantSchema<"type", [v.ObjectSchema<{
37
49
  readonly type: v.LiteralSchema<"operation", undefined>;
38
50
  readonly generatorId: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;aAK3B,CAAA;AAEF,eAAO,MAAM,YAAY;;;;aAIvB,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;aAKlB,CAAA"}
1
+ {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,eAAe,GAAG,WAAW,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;aAK1B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;aAItB,CAAA;AAEF,eAAO,MAAM,YAAY,4DAA4C,CAAA;AAErE,eAAO,MAAM,aAAa;;;;aAIxB,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;aAGlB,CAAA"}
@@ -23,24 +23,28 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.preview = exports.modelPreview = exports.operationPreview = void 0;
26
+ exports.preview = exports.previewModule = exports.previewGroup = exports.modelSource = exports.operationSource = void 0;
27
27
  require("../_dnt.polyfills.js");
28
28
  const Method_js_1 = require("./Method.js");
29
29
  const v = __importStar(require("valibot"));
30
- exports.operationPreview = v.object({
30
+ exports.operationSource = v.object({
31
31
  type: v.literal('operation'),
32
32
  generatorId: v.string(),
33
33
  operationPath: v.string(),
34
34
  operationMethod: Method_js_1.method
35
35
  });
36
- exports.modelPreview = v.object({
36
+ exports.modelSource = v.object({
37
37
  type: v.literal('model'),
38
38
  generatorId: v.string(),
39
39
  refName: v.string()
40
40
  });
41
- exports.preview = v.object({
41
+ exports.previewGroup = v.picklist(['forms', 'tables', 'inputs']);
42
+ exports.previewModule = v.object({
42
43
  name: v.string(),
43
44
  exportPath: v.string(),
44
- group: v.string(),
45
- source: v.variant('type', [exports.operationPreview, exports.modelPreview])
45
+ group: exports.previewGroup
46
+ });
47
+ exports.preview = v.object({
48
+ module: exports.previewModule,
49
+ source: v.variant('type', [exports.operationSource, exports.modelSource])
46
50
  });
@@ -1,58 +0,0 @@
1
- import "../_dnt.polyfills.js";
2
- import type { OasSchema } from '../oas/schema/Schema.js';
3
- import * as v from 'valibot';
4
- export type SchemaOption = {
5
- type: 'input' | 'formatter';
6
- name: string;
7
- matchBy: {
8
- schema: OasSchema;
9
- name?: string;
10
- };
11
- exportPath: string;
12
- };
13
- export declare const schemaOption: v.ObjectSchema<{
14
- readonly type: v.UnionSchema<[v.LiteralSchema<"input", undefined>, v.LiteralSchema<"formatter", undefined>], undefined>;
15
- readonly name: v.StringSchema<undefined>;
16
- readonly matchBy: v.ObjectSchema<{
17
- readonly schema: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
18
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
- }, undefined>;
20
- readonly exportPath: v.StringSchema<undefined>;
21
- }, undefined>;
22
- export declare const serializedSchema: v.GenericSchema<SerializedSchema>;
23
- export type SerializedSchema = {
24
- type: 'object';
25
- properties?: Record<string, SerializedSchema>;
26
- } | {
27
- type: 'string';
28
- } | {
29
- type: 'number';
30
- } | {
31
- type: 'boolean';
32
- } | {
33
- type: 'array';
34
- items: SerializedSchema;
35
- } | {
36
- type: 'integer';
37
- } | {
38
- type: 'boolean';
39
- };
40
- export declare const serializedSchemaOption: v.ObjectSchema<{
41
- readonly type: v.UnionSchema<[v.LiteralSchema<"input", undefined>, v.LiteralSchema<"formatter", undefined>], undefined>;
42
- readonly name: v.StringSchema<undefined>;
43
- readonly exportPath: v.StringSchema<undefined>;
44
- readonly matchBy: v.ObjectSchema<{
45
- readonly schema: v.GenericSchema<SerializedSchema>;
46
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
- }, undefined>;
48
- }, undefined>;
49
- export type SerializedSchemaOption = {
50
- type: 'input' | 'formatter';
51
- name: string;
52
- exportPath: string;
53
- matchBy: {
54
- schema: SerializedSchema;
55
- name?: string;
56
- };
57
- };
58
- //# sourceMappingURL=SchemaOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaOptions.d.ts","sourceRoot":"","sources":["../../src/types/SchemaOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,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,CAAA;KACd,CAAA;IACD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;aAQvB,CAAA;AAEF,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,gBAAgB,CA6B7D,CAAA;AAEF,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAC9C,GACD;IACE,IAAI,EAAE,QAAQ,CAAA;CACf,GACD;IACE,IAAI,EAAE,QAAQ,CAAA;CACf,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,GACD;IACE,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,gBAAgB,CAAA;CACxB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAEL,eAAO,MAAM,sBAAsB;;;;;;;;aAQjC,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"}
@@ -1,45 +0,0 @@
1
- import "../_dnt.polyfills.js";
2
- import * as v from 'valibot';
3
- export const schemaOption = v.object({
4
- type: v.union([v.literal('input'), v.literal('formatter')]),
5
- name: v.string(),
6
- matchBy: v.object({
7
- schema: v.record(v.string(), v.unknown()),
8
- name: v.optional(v.string())
9
- }),
10
- exportPath: v.string()
11
- });
12
- export const serializedSchema = v.union([
13
- v.object({
14
- type: v.literal('object'),
15
- properties: v.optional(v.record(v.string(), v.lazy(() => serializedSchema)))
16
- }),
17
- v.object({
18
- type: v.literal('string')
19
- }),
20
- v.object({
21
- type: v.literal('number')
22
- }),
23
- v.object({
24
- type: v.literal('boolean')
25
- }),
26
- v.object({
27
- type: v.literal('array'),
28
- items: v.lazy(() => serializedSchema)
29
- }),
30
- v.object({
31
- type: v.literal('integer')
32
- }),
33
- v.object({
34
- type: v.literal('integer')
35
- })
36
- ]);
37
- export const serializedSchemaOption = v.object({
38
- type: v.union([v.literal('input'), v.literal('formatter')]),
39
- name: v.string(),
40
- exportPath: v.string(),
41
- matchBy: v.object({
42
- schema: serializedSchema,
43
- name: v.optional(v.string())
44
- })
45
- });
@@ -1,58 +0,0 @@
1
- import "../_dnt.polyfills.js";
2
- import type { OasSchema } from '../oas/schema/Schema.js';
3
- import * as v from 'valibot';
4
- export type SchemaOption = {
5
- type: 'input' | 'formatter';
6
- name: string;
7
- matchBy: {
8
- schema: OasSchema;
9
- name?: string;
10
- };
11
- exportPath: string;
12
- };
13
- export declare const schemaOption: v.ObjectSchema<{
14
- readonly type: v.UnionSchema<[v.LiteralSchema<"input", undefined>, v.LiteralSchema<"formatter", undefined>], undefined>;
15
- readonly name: v.StringSchema<undefined>;
16
- readonly matchBy: v.ObjectSchema<{
17
- readonly schema: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
18
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
- }, undefined>;
20
- readonly exportPath: v.StringSchema<undefined>;
21
- }, undefined>;
22
- export declare const serializedSchema: v.GenericSchema<SerializedSchema>;
23
- export type SerializedSchema = {
24
- type: 'object';
25
- properties?: Record<string, SerializedSchema>;
26
- } | {
27
- type: 'string';
28
- } | {
29
- type: 'number';
30
- } | {
31
- type: 'boolean';
32
- } | {
33
- type: 'array';
34
- items: SerializedSchema;
35
- } | {
36
- type: 'integer';
37
- } | {
38
- type: 'boolean';
39
- };
40
- export declare const serializedSchemaOption: v.ObjectSchema<{
41
- readonly type: v.UnionSchema<[v.LiteralSchema<"input", undefined>, v.LiteralSchema<"formatter", undefined>], undefined>;
42
- readonly name: v.StringSchema<undefined>;
43
- readonly exportPath: v.StringSchema<undefined>;
44
- readonly matchBy: v.ObjectSchema<{
45
- readonly schema: v.GenericSchema<SerializedSchema>;
46
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
- }, undefined>;
48
- }, undefined>;
49
- export type SerializedSchemaOption = {
50
- type: 'input' | 'formatter';
51
- name: string;
52
- exportPath: string;
53
- matchBy: {
54
- schema: SerializedSchema;
55
- name?: string;
56
- };
57
- };
58
- //# sourceMappingURL=SchemaOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaOptions.d.ts","sourceRoot":"","sources":["../../src/types/SchemaOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,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,CAAA;KACd,CAAA;IACD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;aAQvB,CAAA;AAEF,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,gBAAgB,CA6B7D,CAAA;AAEF,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAC9C,GACD;IACE,IAAI,EAAE,QAAQ,CAAA;CACf,GACD;IACE,IAAI,EAAE,QAAQ,CAAA;CACf,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,GACD;IACE,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,gBAAgB,CAAA;CACxB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAEL,eAAO,MAAM,sBAAsB;;;;;;;;aAQjC,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"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.serializedSchemaOption = exports.serializedSchema = exports.schemaOption = void 0;
27
- require("../_dnt.polyfills.js");
28
- const v = __importStar(require("valibot"));
29
- exports.schemaOption = v.object({
30
- type: v.union([v.literal('input'), v.literal('formatter')]),
31
- name: v.string(),
32
- matchBy: v.object({
33
- schema: v.record(v.string(), v.unknown()),
34
- name: v.optional(v.string())
35
- }),
36
- exportPath: v.string()
37
- });
38
- exports.serializedSchema = v.union([
39
- v.object({
40
- type: v.literal('object'),
41
- properties: v.optional(v.record(v.string(), v.lazy(() => exports.serializedSchema)))
42
- }),
43
- v.object({
44
- type: v.literal('string')
45
- }),
46
- v.object({
47
- type: v.literal('number')
48
- }),
49
- v.object({
50
- type: v.literal('boolean')
51
- }),
52
- v.object({
53
- type: v.literal('array'),
54
- items: v.lazy(() => exports.serializedSchema)
55
- }),
56
- v.object({
57
- type: v.literal('integer')
58
- }),
59
- v.object({
60
- type: v.literal('integer')
61
- })
62
- ]);
63
- exports.serializedSchemaOption = v.object({
64
- type: v.union([v.literal('input'), v.literal('formatter')]),
65
- name: v.string(),
66
- exportPath: v.string(),
67
- matchBy: v.object({
68
- schema: exports.serializedSchema,
69
- name: v.optional(v.string())
70
- })
71
- });