typia 7.0.0-dev.20241022 → 7.0.0-dev.20241022-3

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 (182) hide show
  1. package/lib/internal/{$httpFormdataReadArray.js → $httpFormDataReadArray.js} +1 -1
  2. package/lib/internal/$httpFormDataReadArray.js.map +1 -0
  3. package/lib/programmers/RandomProgrammer.js +10 -19
  4. package/lib/programmers/RandomProgrammer.js.map +1 -1
  5. package/lib/programmers/internal/json_schema_alias.d.ts +7 -0
  6. package/lib/programmers/internal/{application_v31_alias.js → json_schema_alias.js} +12 -15
  7. package/lib/programmers/internal/json_schema_alias.js.map +1 -0
  8. package/lib/programmers/internal/json_schema_array.d.ts +6 -0
  9. package/lib/programmers/internal/{application_array.js → json_schema_array.js} +13 -10
  10. package/lib/programmers/internal/json_schema_array.js.map +1 -0
  11. package/lib/programmers/internal/json_schema_bigint.d.ts +3 -0
  12. package/lib/programmers/internal/json_schema_bigint.js +14 -0
  13. package/lib/programmers/internal/json_schema_bigint.js.map +1 -0
  14. package/lib/programmers/internal/json_schema_boolean.d.ts +3 -0
  15. package/lib/programmers/internal/json_schema_boolean.js +14 -0
  16. package/lib/programmers/internal/json_schema_boolean.js.map +1 -0
  17. package/lib/programmers/internal/json_schema_constant.d.ts +3 -0
  18. package/lib/programmers/internal/json_schema_constant.js +25 -0
  19. package/lib/programmers/internal/json_schema_constant.js.map +1 -0
  20. package/lib/programmers/internal/json_schema_description.d.ts +5 -0
  21. package/lib/programmers/internal/{application_description.js → json_schema_description.js} +4 -4
  22. package/lib/programmers/internal/{application_description.js.map → json_schema_description.js.map} +1 -1
  23. package/lib/programmers/internal/json_schema_discriminator.d.ts +3 -0
  24. package/lib/programmers/internal/{application_union_discriminator.js → json_schema_discriminator.js} +4 -4
  25. package/lib/programmers/internal/json_schema_discriminator.js.map +1 -0
  26. package/lib/programmers/internal/{application_escaped.js → json_schema_escaped.js} +18 -21
  27. package/lib/programmers/internal/json_schema_escaped.js.map +1 -0
  28. package/lib/programmers/internal/json_schema_native.d.ts +6 -0
  29. package/lib/programmers/internal/{application_v31_native.js → json_schema_native.js} +7 -10
  30. package/lib/programmers/internal/json_schema_native.js.map +1 -0
  31. package/lib/programmers/internal/json_schema_number.d.ts +3 -0
  32. package/lib/programmers/internal/json_schema_number.js +14 -0
  33. package/lib/programmers/internal/json_schema_number.js.map +1 -0
  34. package/lib/programmers/internal/{application_v31_object.js → json_schema_object.js} +14 -14
  35. package/lib/programmers/internal/json_schema_object.js.map +1 -0
  36. package/lib/programmers/internal/json_schema_plugin.d.ts +6 -0
  37. package/lib/programmers/internal/{application_plugin.js → json_schema_plugin.js} +4 -7
  38. package/lib/programmers/internal/json_schema_plugin.js.map +1 -0
  39. package/lib/programmers/internal/json_schema_station.d.ts +8 -0
  40. package/lib/programmers/internal/{application_v31_schema.js → json_schema_station.js} +42 -67
  41. package/lib/programmers/internal/json_schema_station.js.map +1 -0
  42. package/lib/programmers/internal/json_schema_string.d.ts +3 -0
  43. package/lib/programmers/internal/json_schema_string.js +14 -0
  44. package/lib/programmers/internal/json_schema_string.js.map +1 -0
  45. package/lib/programmers/internal/json_schema_template.d.ts +3 -0
  46. package/lib/programmers/internal/{application_templates.js → json_schema_template.js} +34 -12
  47. package/lib/programmers/internal/json_schema_template.js.map +1 -0
  48. package/lib/programmers/internal/json_schema_title.d.ts +5 -0
  49. package/lib/programmers/internal/{application_title.js → json_schema_title.js} +4 -4
  50. package/lib/programmers/internal/{application_title.js.map → json_schema_title.js.map} +1 -1
  51. package/lib/programmers/internal/json_schema_tuple.d.ts +6 -0
  52. package/lib/programmers/internal/json_schema_tuple.js +32 -0
  53. package/lib/programmers/internal/json_schema_tuple.js.map +1 -0
  54. package/lib/programmers/json/JsonApplicationProgrammer.js +4 -1
  55. package/lib/programmers/json/JsonApplicationProgrammer.js.map +1 -1
  56. package/lib/programmers/json/JsonSchemasProgrammer.d.ts +4 -1
  57. package/lib/programmers/json/JsonSchemasProgrammer.js +14 -26
  58. package/lib/programmers/json/JsonSchemasProgrammer.js.map +1 -1
  59. package/lib/programmers/llm/LlmSchemaProgrammer.js +12 -5
  60. package/lib/programmers/llm/LlmSchemaProgrammer.js.map +1 -1
  61. package/lib/transformers/features/json/JsonSchemasTransformer.js +4 -1
  62. package/lib/transformers/features/json/JsonSchemasTransformer.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/programmers/RandomProgrammer.ts +10 -18
  65. package/src/programmers/internal/{application_v31_alias.ts → json_schema_alias.ts} +9 -12
  66. package/src/programmers/internal/json_schema_array.ts +41 -0
  67. package/src/programmers/internal/json_schema_bigint.ts +15 -0
  68. package/src/programmers/internal/json_schema_boolean.ts +15 -0
  69. package/src/programmers/internal/{application_v31_constant.ts → json_schema_constant.ts} +7 -10
  70. package/src/programmers/internal/{application_description.ts → json_schema_description.ts} +12 -12
  71. package/src/programmers/internal/{application_union_discriminator.ts → json_schema_discriminator.ts} +1 -1
  72. package/src/programmers/internal/{llm_schema_escaped.ts → json_schema_escaped.ts} +25 -27
  73. package/src/programmers/internal/{application_v31_native.ts → json_schema_native.ts} +4 -7
  74. package/src/programmers/internal/json_schema_number.ts +15 -0
  75. package/src/programmers/internal/{application_v31_object.ts → json_schema_object.ts} +13 -13
  76. package/src/programmers/internal/{application_plugin.ts → json_schema_plugin.ts} +3 -4
  77. package/src/programmers/internal/json_schema_station.ts +182 -0
  78. package/src/programmers/internal/json_schema_string.ts +15 -0
  79. package/src/programmers/internal/{application_templates.ts → json_schema_template.ts} +11 -20
  80. package/src/programmers/internal/{application_title.ts → json_schema_title.ts} +20 -20
  81. package/src/programmers/internal/json_schema_tuple.ts +35 -0
  82. package/src/programmers/json/JsonApplicationProgrammer.ts +5 -4
  83. package/src/programmers/json/JsonSchemasProgrammer.ts +23 -26
  84. package/src/programmers/llm/LlmApplicationProgrammer.ts +1 -1
  85. package/src/programmers/llm/LlmSchemaProgrammer.ts +16 -6
  86. package/src/transformers/features/json/JsonSchemasTransformer.ts +4 -2
  87. package/lib/internal/$httpFormdataReadArray.js.map +0 -1
  88. package/lib/programmers/internal/application_array.js.map +0 -1
  89. package/lib/programmers/internal/application_bigint.js +0 -17
  90. package/lib/programmers/internal/application_bigint.js.map +0 -1
  91. package/lib/programmers/internal/application_boolean.d.ts +0 -1
  92. package/lib/programmers/internal/application_boolean.js +0 -17
  93. package/lib/programmers/internal/application_boolean.js.map +0 -1
  94. package/lib/programmers/internal/application_description.d.ts +0 -5
  95. package/lib/programmers/internal/application_escaped.d.ts +0 -1
  96. package/lib/programmers/internal/application_escaped.js.map +0 -1
  97. package/lib/programmers/internal/application_number.d.ts +0 -1
  98. package/lib/programmers/internal/application_number.js +0 -17
  99. package/lib/programmers/internal/application_number.js.map +0 -1
  100. package/lib/programmers/internal/application_plugin.d.ts +0 -1
  101. package/lib/programmers/internal/application_plugin.js.map +0 -1
  102. package/lib/programmers/internal/application_string.d.ts +0 -1
  103. package/lib/programmers/internal/application_string.js +0 -17
  104. package/lib/programmers/internal/application_string.js.map +0 -1
  105. package/lib/programmers/internal/application_templates.d.ts +0 -1
  106. package/lib/programmers/internal/application_templates.js.map +0 -1
  107. package/lib/programmers/internal/application_title.d.ts +0 -5
  108. package/lib/programmers/internal/application_union_discriminator.d.ts +0 -3
  109. package/lib/programmers/internal/application_union_discriminator.js.map +0 -1
  110. package/lib/programmers/internal/application_v30_alias.d.ts +0 -1
  111. package/lib/programmers/internal/application_v30_alias.js +0 -55
  112. package/lib/programmers/internal/application_v30_alias.js.map +0 -1
  113. package/lib/programmers/internal/application_v30_constant.d.ts +0 -1
  114. package/lib/programmers/internal/application_v30_constant.js +0 -13
  115. package/lib/programmers/internal/application_v30_constant.js.map +0 -1
  116. package/lib/programmers/internal/application_v30_native.d.ts +0 -1
  117. package/lib/programmers/internal/application_v30_native.js +0 -37
  118. package/lib/programmers/internal/application_v30_native.js.map +0 -1
  119. package/lib/programmers/internal/application_v30_object.d.ts +0 -1
  120. package/lib/programmers/internal/application_v30_object.js +0 -171
  121. package/lib/programmers/internal/application_v30_object.js.map +0 -1
  122. package/lib/programmers/internal/application_v30_schema.d.ts +0 -1
  123. package/lib/programmers/internal/application_v30_schema.js +0 -281
  124. package/lib/programmers/internal/application_v30_schema.js.map +0 -1
  125. package/lib/programmers/internal/application_v30_tuple.d.ts +0 -1
  126. package/lib/programmers/internal/application_v30_tuple.js +0 -34
  127. package/lib/programmers/internal/application_v30_tuple.js.map +0 -1
  128. package/lib/programmers/internal/application_v31_alias.d.ts +0 -1
  129. package/lib/programmers/internal/application_v31_alias.js.map +0 -1
  130. package/lib/programmers/internal/application_v31_constant.d.ts +0 -1
  131. package/lib/programmers/internal/application_v31_constant.js +0 -28
  132. package/lib/programmers/internal/application_v31_constant.js.map +0 -1
  133. package/lib/programmers/internal/application_v31_native.d.ts +0 -1
  134. package/lib/programmers/internal/application_v31_native.js.map +0 -1
  135. package/lib/programmers/internal/application_v31_object.d.ts +0 -1
  136. package/lib/programmers/internal/application_v31_object.js.map +0 -1
  137. package/lib/programmers/internal/application_v31_schema.d.ts +0 -1
  138. package/lib/programmers/internal/application_v31_schema.js.map +0 -1
  139. package/lib/programmers/internal/application_v31_tuple.d.ts +0 -1
  140. package/lib/programmers/internal/application_v31_tuple.js +0 -20
  141. package/lib/programmers/internal/application_v31_tuple.js.map +0 -1
  142. package/lib/programmers/internal/llm_schema_array.d.ts +0 -1
  143. package/lib/programmers/internal/llm_schema_array.js +0 -23
  144. package/lib/programmers/internal/llm_schema_array.js.map +0 -1
  145. package/lib/programmers/internal/llm_schema_escaped.d.ts +0 -1
  146. package/lib/programmers/internal/llm_schema_escaped.js +0 -74
  147. package/lib/programmers/internal/llm_schema_escaped.js.map +0 -1
  148. package/lib/programmers/internal/llm_schema_native.d.ts +0 -1
  149. package/lib/programmers/internal/llm_schema_native.js +0 -19
  150. package/lib/programmers/internal/llm_schema_native.js.map +0 -1
  151. package/lib/programmers/internal/llm_schema_object.d.ts +0 -1
  152. package/lib/programmers/internal/llm_schema_object.js +0 -141
  153. package/lib/programmers/internal/llm_schema_object.js.map +0 -1
  154. package/lib/programmers/internal/llm_schema_station.d.ts +0 -1
  155. package/lib/programmers/internal/llm_schema_station.js +0 -241
  156. package/lib/programmers/internal/llm_schema_station.js.map +0 -1
  157. package/lib/programmers/internal/llm_schema_tuple.d.ts +0 -1
  158. package/lib/programmers/internal/llm_schema_tuple.js +0 -33
  159. package/lib/programmers/internal/llm_schema_tuple.js.map +0 -1
  160. package/src/programmers/internal/application_array.ts +0 -56
  161. package/src/programmers/internal/application_bigint.ts +0 -25
  162. package/src/programmers/internal/application_boolean.ts +0 -25
  163. package/src/programmers/internal/application_escaped.ts +0 -96
  164. package/src/programmers/internal/application_number.ts +0 -25
  165. package/src/programmers/internal/application_string.ts +0 -25
  166. package/src/programmers/internal/application_v30_alias.ts +0 -65
  167. package/src/programmers/internal/application_v30_constant.ts +0 -18
  168. package/src/programmers/internal/application_v30_native.ts +0 -39
  169. package/src/programmers/internal/application_v30_object.ts +0 -180
  170. package/src/programmers/internal/application_v30_schema.ts +0 -217
  171. package/src/programmers/internal/application_v30_tuple.ts +0 -33
  172. package/src/programmers/internal/application_v31_schema.ts +0 -212
  173. package/src/programmers/internal/application_v31_tuple.ts +0 -22
  174. package/src/programmers/internal/llm_schema_array.ts +0 -22
  175. package/src/programmers/internal/llm_schema_native.ts +0 -17
  176. package/src/programmers/internal/llm_schema_object.ts +0 -135
  177. package/src/programmers/internal/llm_schema_station.ts +0 -188
  178. package/src/programmers/internal/llm_schema_tuple.ts +0 -31
  179. /package/lib/internal/{$httpFormdataReadArray.d.ts → $httpFormDataReadArray.d.ts} +0 -0
  180. /package/lib/programmers/internal/{application_array.d.ts → json_schema_escaped.d.ts} +0 -0
  181. /package/lib/programmers/internal/{application_bigint.d.ts → json_schema_object.d.ts} +0 -0
  182. /package/src/internal/{$httpFormdataReadArray.ts → $httpFormDataReadArray.ts} +0 -0
@@ -0,0 +1,182 @@
1
+ import { OpenApi } from "@samchon/openapi";
2
+
3
+ import { Metadata } from "../../schemas/metadata/Metadata";
4
+ import { MetadataAtomic } from "../../schemas/metadata/MetadataAtomic";
5
+ import { MetadataNative } from "../../schemas/metadata/MetadataNative";
6
+
7
+ import { AtomicPredicator } from "../helpers/AtomicPredicator";
8
+ import { json_schema_alias } from "./json_schema_alias";
9
+ import { json_schema_array } from "./json_schema_array";
10
+ import { json_schema_bigint } from "./json_schema_bigint";
11
+ import { json_schema_boolean } from "./json_schema_boolean";
12
+ import { json_schema_constant } from "./json_schema_constant";
13
+ import { json_schema_discriminator } from "./json_schema_discriminator";
14
+ import { json_schema_escaped } from "./json_schema_escaped";
15
+ import { json_schema_native } from "./json_schema_native";
16
+ import { json_schema_number } from "./json_schema_number";
17
+ import { json_schema_object } from "./json_schema_object";
18
+ import { json_schema_string } from "./json_schema_string";
19
+ import { json_schema_templates } from "./json_schema_template";
20
+ import { json_schema_tuple } from "./json_schema_tuple";
21
+
22
+ export const json_schema_station = <BlockNever extends boolean>(props: {
23
+ blockNever: BlockNever;
24
+ components: OpenApi.IComponents;
25
+ attribute: OpenApi.IJsonSchema.__IAttribute;
26
+ metadata: Metadata;
27
+ }): BlockNever extends true
28
+ ? OpenApi.IJsonSchema | null
29
+ : OpenApi.IJsonSchema => {
30
+ if (props.metadata.any === true)
31
+ return {
32
+ ...props.attribute,
33
+ type: undefined,
34
+ };
35
+
36
+ //----
37
+ // GATHER UNION SCHEMAS
38
+ //----
39
+ const union: OpenApi.IJsonSchema[] = [];
40
+ const insert = (schema: OpenApi.IJsonSchema) => union.push(schema);
41
+
42
+ // NULLABLE
43
+ if (props.metadata.nullable === true)
44
+ insert({
45
+ type: "null",
46
+ });
47
+
48
+ // toJSON() METHOD
49
+ if (props.metadata.escaped !== null)
50
+ json_schema_escaped({
51
+ components: props.components,
52
+ escaped: props.metadata.escaped,
53
+ }).forEach(insert);
54
+
55
+ // ATOMIC TYPES
56
+ if (
57
+ props.metadata.templates.length &&
58
+ AtomicPredicator.template(props.metadata)
59
+ )
60
+ json_schema_templates(props.metadata).forEach(insert);
61
+ for (const constant of props.metadata.constants)
62
+ if (
63
+ AtomicPredicator.constant({
64
+ metadata: props.metadata,
65
+ name: constant.type,
66
+ }) === false
67
+ )
68
+ continue;
69
+ else json_schema_constant(constant).forEach(insert);
70
+ for (const a of props.metadata.atomics)
71
+ if (a.type === "boolean") json_schema_boolean(a).forEach(insert);
72
+ else if (a.type === "bigint") json_schema_bigint(a).forEach(insert);
73
+ else if (a.type === "number") json_schema_number(a).forEach(insert);
74
+ else if (a.type === "string") json_schema_string(a).forEach(insert);
75
+
76
+ // ARRAY
77
+ for (const array of props.metadata.arrays)
78
+ json_schema_array({
79
+ components: props.components,
80
+ array,
81
+ }).forEach(insert);
82
+
83
+ // TUPLE
84
+ for (const tuple of props.metadata.tuples)
85
+ insert(
86
+ json_schema_tuple({
87
+ components: props.components,
88
+ tuple,
89
+ }),
90
+ );
91
+
92
+ // NATIVES
93
+ for (const native of props.metadata.natives)
94
+ if (AtomicPredicator.native(native.name)) {
95
+ const type: string = native.name.toLowerCase();
96
+ if (props.metadata.atomics.some((a) => a.type === type)) continue;
97
+ else if (type === "boolean")
98
+ json_schema_boolean(
99
+ MetadataAtomic.create({
100
+ type: "boolean",
101
+ tags: [],
102
+ }),
103
+ ).map(insert);
104
+ else if (type === "bigint")
105
+ json_schema_bigint(
106
+ MetadataAtomic.create({
107
+ type: "bigint",
108
+ tags: [],
109
+ }),
110
+ ).map(insert);
111
+ else if (type === "number")
112
+ json_schema_number(
113
+ MetadataAtomic.create({
114
+ type: "number",
115
+ tags: [],
116
+ }),
117
+ ).map(insert);
118
+ else if (type === "string")
119
+ json_schema_string(
120
+ MetadataAtomic.create({
121
+ type: "string",
122
+ tags: [],
123
+ }),
124
+ ).map(insert);
125
+ } else
126
+ json_schema_native({
127
+ components: props.components,
128
+ native,
129
+ }).forEach(insert);
130
+ if (props.metadata.sets.length)
131
+ json_schema_native({
132
+ native: MetadataNative.create({
133
+ name: "Set",
134
+ tags: [],
135
+ }),
136
+ components: props.components,
137
+ }).forEach(insert);
138
+ if (props.metadata.maps.length)
139
+ json_schema_native({
140
+ native: MetadataNative.create({
141
+ name: "Map",
142
+ tags: [],
143
+ }),
144
+ components: props.components,
145
+ }).forEach(insert);
146
+
147
+ // OBJECT
148
+ for (const object of props.metadata.objects)
149
+ json_schema_object({
150
+ components: props.components,
151
+ object,
152
+ }).forEach(insert);
153
+
154
+ // ALIASES
155
+ for (const alias of props.metadata.aliases)
156
+ json_schema_alias({
157
+ alias,
158
+ blockNever: props.blockNever,
159
+ components: props.components,
160
+ }).forEach(insert);
161
+
162
+ //----
163
+ // RETURNS
164
+ //----
165
+ if (union.length === 0 && props.blockNever === true) return null!;
166
+ const schema: OpenApi.IJsonSchema =
167
+ union.length === 0
168
+ ? { type: undefined }
169
+ : union.length === 1
170
+ ? union[0]!
171
+ : {
172
+ oneOf: union,
173
+ discriminator: json_schema_discriminator(props.metadata),
174
+ };
175
+ return {
176
+ ...schema,
177
+ ...props.attribute,
178
+ title: props.attribute.title ?? schema.title,
179
+ description: props.attribute.description ?? schema.description,
180
+ deprecated: props.attribute.deprecated ?? schema.deprecated,
181
+ };
182
+ };
@@ -0,0 +1,15 @@
1
+ import { OpenApi } from "@samchon/openapi";
2
+
3
+ import { MetadataAtomic } from "../../schemas/metadata/MetadataAtomic";
4
+
5
+ import { json_schema_plugin } from "./json_schema_plugin";
6
+
7
+ export const json_schema_string = (
8
+ atomic: MetadataAtomic,
9
+ ): OpenApi.IJsonSchema[] =>
10
+ json_schema_plugin({
11
+ schema: {
12
+ type: "string",
13
+ } satisfies OpenApi.IJsonSchema,
14
+ tags: atomic.tags,
15
+ });
@@ -1,26 +1,23 @@
1
- import { OpenApi, OpenApiV3 } from "@samchon/openapi";
1
+ import { OpenApi } from "@samchon/openapi";
2
2
 
3
3
  import { IMetadataTypeTag } from "../../schemas/metadata/IMetadataTypeTag";
4
4
  import { Metadata } from "../../schemas/metadata/Metadata";
5
5
  import { MetadataTemplate } from "../../schemas/metadata/MetadataTemplate";
6
6
 
7
- import { application_plugin } from "./application_plugin";
7
+ import { json_schema_plugin } from "./json_schema_plugin";
8
8
  import { metadata_to_pattern } from "./metadata_to_pattern";
9
9
 
10
- /**
11
- * @internal
12
- */
13
- export const application_templates = <Version extends "3.0" | "3.1">(
14
- meta: Metadata,
15
- ): Schema<Version>[] => {
16
- const pureTemplates: MetadataTemplate[] = meta.templates.filter(
10
+ export const json_schema_templates = (
11
+ metadata: Metadata,
12
+ ): OpenApi.IJsonSchema[] => {
13
+ const pureTemplates: MetadataTemplate[] = metadata.templates.filter(
17
14
  (t) => isPure(t.tags ?? []) === true,
18
15
  );
19
- const taggedTemplates: MetadataTemplate[] = meta.templates.filter(
16
+ const taggedTemplates: MetadataTemplate[] = metadata.templates.filter(
20
17
  (t) => isPure(t.tags ?? []) === false,
21
18
  );
22
19
 
23
- const output: Schema<Version>[] = [];
20
+ const output: OpenApi.IJsonSchema[] = [];
24
21
  if (pureTemplates.length)
25
22
  output.push({
26
23
  type: "string",
@@ -34,7 +31,7 @@ export const application_templates = <Version extends "3.0" | "3.1">(
34
31
  });
35
32
  for (const tpl of taggedTemplates)
36
33
  output.push(
37
- application_plugin({
34
+ ...json_schema_plugin({
38
35
  schema: {
39
36
  type: "string",
40
37
  pattern: metadata_to_pattern({
@@ -46,19 +43,13 @@ export const application_templates = <Version extends "3.0" | "3.1">(
46
43
  }),
47
44
  },
48
45
  tags: tpl.tags ?? [],
49
- }) as any,
46
+ }),
50
47
  );
51
48
  return output;
52
49
  };
53
50
 
54
51
  const isPure = (matrix: IMetadataTypeTag[][]) =>
55
52
  matrix.every((tags) => filter(tags).length === 0);
53
+
56
54
  const filter = (tags: IMetadataTypeTag[]) =>
57
55
  tags.filter((t) => t.schema !== undefined);
58
-
59
- /**
60
- * @internal
61
- */
62
- type Schema<Version extends "3.0" | "3.1"> = Version extends "3.0"
63
- ? OpenApiV3.IJsonSchema.IString
64
- : OpenApi.IJsonSchema.IString;
@@ -1,20 +1,20 @@
1
- import { CommentFactory } from "../../factories/CommentFactory";
2
-
3
- import { IJsDocTagInfo } from "../../module";
4
-
5
- export const application_title = (schema: {
6
- description?: string | null | undefined;
7
- jsDocTags?: IJsDocTagInfo[] | undefined;
8
- }): string | undefined => {
9
- const info: IJsDocTagInfo | undefined = schema.jsDocTags?.find(
10
- (tag) => tag.name === "title",
11
- );
12
- if (info?.text?.length) return CommentFactory.merge(info.text);
13
- else if (!schema.description?.length) return undefined;
14
-
15
- const index: number = schema.description.indexOf("\n");
16
- const top: string = (
17
- index === -1 ? schema.description : schema.description.substring(0, index)
18
- ).trim();
19
- return top.endsWith(".") ? top.substring(0, top.length - 1) : undefined;
20
- };
1
+ import { CommentFactory } from "../../factories/CommentFactory";
2
+
3
+ import { IJsDocTagInfo } from "../../schemas/metadata/IJsDocTagInfo";
4
+
5
+ export const json_schema_title = (schema: {
6
+ description?: string | null | undefined;
7
+ jsDocTags?: IJsDocTagInfo[] | undefined;
8
+ }): string | undefined => {
9
+ const info: IJsDocTagInfo | undefined = schema.jsDocTags?.find(
10
+ (tag) => tag.name === "title",
11
+ );
12
+ if (info?.text?.length) return CommentFactory.merge(info.text);
13
+ else if (!schema.description?.length) return undefined;
14
+
15
+ const index: number = schema.description.indexOf("\n");
16
+ const top: string = (
17
+ index === -1 ? schema.description : schema.description.substring(0, index)
18
+ ).trim();
19
+ return top.endsWith(".") ? top.substring(0, top.length - 1) : undefined;
20
+ };
@@ -0,0 +1,35 @@
1
+ import { OpenApi } from "@samchon/openapi";
2
+
3
+ import { Metadata } from "../../schemas/metadata/Metadata";
4
+ import { MetadataTuple } from "../../schemas/metadata/MetadataTuple";
5
+
6
+ import { json_schema_station } from "./json_schema_station";
7
+
8
+ export const json_schema_tuple = (props: {
9
+ components: OpenApi.IComponents;
10
+ tuple: MetadataTuple;
11
+ }): OpenApi.IJsonSchema.ITuple => {
12
+ const tail: Metadata | null = props.tuple.type.elements.at(-1)?.rest ?? null;
13
+ const prefixItems: Metadata[] = props.tuple.type.isRest()
14
+ ? props.tuple.type.elements.slice(0, -1)
15
+ : props.tuple.type.elements;
16
+ return {
17
+ type: "array",
18
+ prefixItems: prefixItems.map((metadata) =>
19
+ json_schema_station({
20
+ blockNever: false,
21
+ components: props.components,
22
+ metadata,
23
+ attribute: {},
24
+ }),
25
+ ),
26
+ additionalItems: tail
27
+ ? json_schema_station({
28
+ blockNever: false,
29
+ components: props.components,
30
+ metadata: tail,
31
+ attribute: {},
32
+ })
33
+ : false,
34
+ };
35
+ };
@@ -1,11 +1,11 @@
1
1
  import { MetadataFactory } from "../../factories/MetadataFactory";
2
2
 
3
3
  import { IJsonApplication } from "../../schemas/json/IJsonApplication";
4
+ import { IJsDocTagInfo } from "../../schemas/metadata/IJsDocTagInfo";
4
5
  import { Metadata } from "../../schemas/metadata/Metadata";
5
6
  import { MetadataFunction } from "../../schemas/metadata/MetadataFunction";
6
7
  import { MetadataObjectType } from "../../schemas/metadata/MetadataObjectType";
7
8
 
8
- import { IJsDocTagInfo } from "../../module";
9
9
  import { JsonSchemasProgrammer } from "./JsonSchemasProgrammer";
10
10
 
11
11
  export namespace JsonApplicationProgrammer {
@@ -107,9 +107,10 @@ export namespace JsonApplicationProgrammer {
107
107
  collect,
108
108
  }),
109
109
  );
110
- const { components, schemas } = JsonSchemasProgrammer.write(props.version)(
111
- definitions,
112
- );
110
+ const { components, schemas } = JsonSchemasProgrammer.write({
111
+ version: props.version,
112
+ metadatas: definitions,
113
+ });
113
114
  schemas.forEach((s, i) =>
114
115
  setters[i]?.(s as IJsonApplication.Schema<Version>),
115
116
  );
@@ -1,4 +1,5 @@
1
- import { OpenApi, OpenApiV3 } from "@samchon/openapi";
1
+ import { OpenApi } from "@samchon/openapi";
2
+ import { OpenApiV3Downgrader } from "@samchon/openapi/lib/converters/OpenApiV3Downgrader";
2
3
 
3
4
  import { IJsonSchemaCollection } from "../../schemas/json/IJsonSchemaCollection";
4
5
  import { Metadata } from "../../schemas/metadata/Metadata";
@@ -6,8 +7,7 @@ import { Metadata } from "../../schemas/metadata/Metadata";
6
7
  import { TransformerError } from "../../transformers/TransformerError";
7
8
 
8
9
  import { AtomicPredicator } from "../helpers/AtomicPredicator";
9
- import { application_v30_schema } from "../internal/application_v30_schema";
10
- import { application_v31_schema } from "../internal/application_v31_schema";
10
+ import { json_schema_station } from "../internal/json_schema_station";
11
11
 
12
12
  export namespace JsonSchemasProgrammer {
13
13
  export const validate = (metadata: Metadata): string[] => {
@@ -39,39 +39,36 @@ export namespace JsonSchemasProgrammer {
39
39
  return output;
40
40
  };
41
41
 
42
- export const write = <Version extends "3.0" | "3.1">(version: Version) =>
43
- version === "3.0" ? v30 : v31;
42
+ export const write = <Version extends "3.0" | "3.1">(props: {
43
+ version: Version;
44
+ metadatas: Array<Metadata>;
45
+ }): IJsonSchemaCollection<Version> =>
46
+ props.version === "3.0"
47
+ ? (writeV3_0(props.metadatas) as IJsonSchemaCollection<Version>)
48
+ : (writeV3_1(props.metadatas) as IJsonSchemaCollection<Version>);
44
49
 
45
- const v30 = (medadataList: Array<Metadata>): IJsonSchemaCollection<"3.0"> => {
46
- const components: OpenApiV3.IComponents = {};
47
- const generator = (metadata: Metadata): OpenApiV3.IJsonSchema | null =>
48
- application_v30_schema({
49
- blockNever: true,
50
- components,
51
- attribute: {},
52
- metadata,
53
- });
50
+ const writeV3_0 = (
51
+ medadataList: Array<Metadata>,
52
+ ): IJsonSchemaCollection<"3.0"> => {
53
+ const collection: IJsonSchemaCollection<"3.1"> = writeV3_1(medadataList);
54
+ const asset: OpenApiV3Downgrader.IComponentsCollection =
55
+ OpenApiV3Downgrader.downgradeComponents(collection.components);
56
+ const caster = OpenApiV3Downgrader.downgradeSchema(asset);
54
57
  return {
55
58
  version: "3.0",
56
- components,
57
- schemas: medadataList.map((meta, i) => {
58
- const schema: OpenApiV3.IJsonSchema | null = generator(meta);
59
- if (schema === null)
60
- throw new TransformerError({
61
- code: "typia.json.application",
62
- message: `invalid type on argument - (${meta.getName()}, ${i})`,
63
- });
64
- return schema;
65
- }),
59
+ components: asset.downgraded,
60
+ schemas: collection.schemas.map(caster),
66
61
  };
67
62
  };
68
63
 
69
- const v31 = (metadataList: Array<Metadata>): IJsonSchemaCollection<"3.1"> => {
64
+ const writeV3_1 = (
65
+ metadataList: Array<Metadata>,
66
+ ): IJsonSchemaCollection<"3.1"> => {
70
67
  const components: OpenApi.IComponents = {
71
68
  schemas: {},
72
69
  };
73
70
  const generator = (metadata: Metadata): OpenApi.IJsonSchema | null =>
74
- application_v31_schema({
71
+ json_schema_station({
75
72
  blockNever: true,
76
73
  components,
77
74
  attribute: {},
@@ -3,11 +3,11 @@ import { ILlmFunction } from "@samchon/openapi/lib/structures/ILlmFunction";
3
3
 
4
4
  import { MetadataFactory } from "../../factories/MetadataFactory";
5
5
 
6
+ import { IJsDocTagInfo } from "../../schemas/metadata/IJsDocTagInfo";
6
7
  import { Metadata } from "../../schemas/metadata/Metadata";
7
8
  import { MetadataFunction } from "../../schemas/metadata/MetadataFunction";
8
9
  import { MetadataObjectType } from "../../schemas/metadata/MetadataObjectType";
9
10
 
10
- import { IJsDocTagInfo } from "../../module";
11
11
  import { LlmSchemaProgrammer } from "./LlmSchemaProgrammer";
12
12
 
13
13
  export namespace LlmApplicationProgrammer {
@@ -1,9 +1,11 @@
1
1
  import { ILlmSchema } from "@samchon/openapi";
2
+ import { HttpLlmConverter } from "@samchon/openapi/lib/converters/HttpLlmConverter";
2
3
 
4
+ import { IJsonSchemaCollection } from "../../schemas/json/IJsonSchemaCollection";
3
5
  import { Metadata } from "../../schemas/metadata/Metadata";
4
6
 
5
7
  import { AtomicPredicator } from "../helpers/AtomicPredicator";
6
- import { llm_schema_station } from "../internal/llm_schema_station";
8
+ import { JsonSchemasProgrammer } from "../json/JsonSchemasProgrammer";
7
9
 
8
10
  export namespace LlmSchemaProgrammer {
9
11
  export const validate = (metadata: Metadata): string[] => {
@@ -42,10 +44,18 @@ export namespace LlmSchemaProgrammer {
42
44
  return output;
43
45
  };
44
46
 
45
- export const write = (metadata: Metadata): ILlmSchema =>
46
- llm_schema_station({
47
- metadata,
48
- blockNever: true,
49
- attribute: {},
47
+ export const write = (metadata: Metadata): ILlmSchema => {
48
+ const collection: IJsonSchemaCollection<"3.1"> =
49
+ JsonSchemasProgrammer.write({
50
+ version: "3.1",
51
+ metadatas: [metadata],
52
+ });
53
+ const schema: ILlmSchema | null = HttpLlmConverter.schema({
54
+ components: collection.components,
55
+ schema: collection.schemas[0]!,
50
56
  });
57
+ if (schema === null)
58
+ throw new Error("Failed to convert JSON schema to LLM schema.");
59
+ return schema;
60
+ };
51
61
  }
@@ -89,8 +89,10 @@ export namespace JsonSchemasTransformer {
89
89
  });
90
90
 
91
91
  // APPLICATION
92
- const app: IJsonSchemaCollection<any> =
93
- JsonSchemasProgrammer.write(version)(metadatas);
92
+ const app: IJsonSchemaCollection<any> = JsonSchemasProgrammer.write({
93
+ version,
94
+ metadatas,
95
+ });
94
96
  return LiteralFactory.write(app);
95
97
  };
96
98
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"$httpFormdataReadArray.js","sourceRoot":"","sources":["../../src/internal/$httpFormdataReadArray.ts"],"names":[],"mappings":";;;AAAO,IAAM,sBAAsB,GAAG,UACpC,KAAY,EACZ,WAA6B,IAC1B,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,EAApC,CAAoC,CAAC;AAH7B,QAAA,sBAAsB,0BAGO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_array.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_array.ts"],"names":[],"mappings":";;;AAKA,2DAA0D;AAE1D;;GAEG;AACI,IAAM,iBAAiB,GAAG,UAAgC,KAMhE;;;IACC,IAAM,OAAO,GAAG;QACd,OAAA,IAAA,uCAAkB,EAAuB;YACvC,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;aACvB;YACzB,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI;SACvB,CAAC;IANF,CAME,CAAC;IACL,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QACxC,IAAM,GAAG,GAAG,cAAM,OAAA,CAAC,EAAE,IAAI,QAAA,EAAE,CAAC,EAAV,CAAU,CAAC;QAC7B,IAAM,MAAI,GAAW,+BAAwB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC;QACrE,IAAI,CAAA,MAAA,KAAK,CAAC,UAAU,CAAC,OAAO,0CAAG,MAAI,CAAC,MAAK,SAAS;YAAE,OAAO,GAAG,EAAE,CAAC;QAEjE,YAAA,KAAK,CAAC,UAAU,EAAC,OAAO,uCAAP,OAAO,GAAK,EAAE,EAAC;QAChC,YAAA,KAAK,CAAC,UAAU,CAAC,OAAO,EAAC,MAAI,wCAAJ,MAAI,IAAM,EAAE,EAAC;QAEtC,IAAM,KAAK,GAA2B,OAAO,EAAE,CAAC;QAChD,MAAM,CAAC,MAAM,CACX,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,MAAI,CAAE,EAC/B,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,OAAA,EAAE,CAC1C,CAAC;QACF,OAAO,GAAG,EAAE,CAAC;IACf,CAAC;IACD,OAAO,OAAO,EAAE,CAAC;AACnB,CAAC,CAAC;AA/BW,QAAA,iBAAiB,qBA+B5B"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.application_bigint = void 0;
4
- var application_plugin_1 = require("./application_plugin");
5
- /**
6
- * @internal
7
- */
8
- var application_bigint = function (atomic) {
9
- return (0, application_plugin_1.application_plugin)({
10
- schema: {
11
- type: "integer",
12
- },
13
- tags: atomic.tags,
14
- });
15
- };
16
- exports.application_bigint = application_bigint;
17
- //# sourceMappingURL=application_bigint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_bigint.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_bigint.ts"],"names":[],"mappings":";;;AAIA,2DAA0D;AAE1D;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAChC,MAAsB;IAEtB,OAAA,IAAA,uCAAkB,EAAC;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SACU;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AALF,CAKE,CAAC;AARQ,QAAA,kBAAkB,sBAQ1B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.application_boolean = void 0;
4
- var application_plugin_1 = require("./application_plugin");
5
- /**
6
- * @internal
7
- */
8
- var application_boolean = function (atomic) {
9
- return (0, application_plugin_1.application_plugin)({
10
- schema: {
11
- type: "boolean",
12
- },
13
- tags: atomic.tags,
14
- });
15
- };
16
- exports.application_boolean = application_boolean;
17
- //# sourceMappingURL=application_boolean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_boolean.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_boolean.ts"],"names":[],"mappings":";;;AAIA,2DAA0D;AAE1D;;GAEG;AACI,IAAM,mBAAmB,GAAG,UACjC,MAAsB;IAEtB,OAAA,IAAA,uCAAkB,EAAC;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SACU;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AALF,CAKE,CAAC;AARQ,QAAA,mBAAmB,uBAQ3B"}
@@ -1,5 +0,0 @@
1
- import { IJsDocTagInfo } from "../../module";
2
- export declare const application_description: (props: {
3
- description?: string | null | undefined;
4
- jsDocTags?: IJsDocTagInfo[];
5
- }) => string | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_escaped.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_escaped.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACI,IAAM,mBAAmB,GAAG,UAAgC,KAGlE;IACC,IAAM,MAAM,GAA2B,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9E,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAE/B,IACE,OAAO,CAAC;QACN,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ;KACjC,CAAC,EACF,CAAC;QACD,IAAM,MAAM,GAAsC,SAAS,CAAC,MAAM,CAAC;YACjE,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;gBACjB,CAAC,CAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAA2B;gBACzD,CAAC,CAAC,SAAS,CAAC;QAChB,IACE,MAAM,KAAK,SAAS;YACpB,MAAM,CAAC,MAAM,KAAK,MAAM;YACxB,MAAM,CAAC,MAAM,KAAK,WAAW;YAE7B,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC;IAChC,CAAC;IACD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAE,MAAM,CAAC,KAA2B,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5E,CAAC,CAAC;AA1BW,QAAA,mBAAmB,uBA0B9B;AAEF;;GAEG;AACH,IAAM,SAAS,GAAG,UAChB,MAAuB;IAEvB,OAAC,MAAgC,CAAC,IAAI,KAAK,QAAQ;AAAnD,CAAmD,CAAC;AAEtD;;GAEG;AACH,IAAM,SAAS,GAAG,UAChB,MAAuB;IAEvB,OAAA,KAAK,CAAC,OAAO,CAAE,MAA+B,CAAC,KAAK,CAAC;AAArD,CAAqD,CAAC;AAExD;;GAEG;AACH,IAAM,OAAO,GAAG,UAAC,KAGhB;IACC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IACpD,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAElC,OAAO,CACL,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,IAAI,KAAK,MAAM,EAAtB,CAAsB,CAAC;QAC/D,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,UAAC,KAAK;YAC/B,OAAA,OAAO,CAAC;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;aAC3B,CAAC;QAHF,CAGE,CACH;QACD,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,UAAC,KAAK;YAC/B,OAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,CAAC;gBACzB,OAAA,OAAO,CAAC;oBACN,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,QAAQ,EAAE,CAAC;iBACZ,CAAC;YAHF,CAGE,CACH;QALD,CAKC,CACF;QACD,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,KAAK;YAChC,OAAA,OAAO,CAAC;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;aAC3B,CAAC;QAHF,CAGE,CACH,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.application_number = void 0;
4
- var application_plugin_1 = require("./application_plugin");
5
- /**
6
- * @internal
7
- */
8
- var application_number = function (atomic) {
9
- return (0, application_plugin_1.application_plugin)({
10
- schema: {
11
- type: "number",
12
- },
13
- tags: atomic.tags,
14
- });
15
- };
16
- exports.application_number = application_number;
17
- //# sourceMappingURL=application_number.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_number.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_number.ts"],"names":[],"mappings":";;;AAIA,2DAA0D;AAE1D;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAChC,MAAsB;IAEtB,OAAA,IAAA,uCAAkB,EAAC;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACW;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AALF,CAKE,CAAC;AARQ,QAAA,kBAAkB,sBAQ1B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_plugin.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAAwB,KAGzD;IACC,IAAM,OAAO,GAAyB,KAAK,CAAC,IAAI;SAC7C,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,GAAG,CAAC,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,KAAK,SAAS,EAAtB,CAAsB,CAAC,EAAzC,CAAyC,CAAC;SACvD,MAAM,CAAC,UAAC,GAAG,IAAK,OAAA,GAAG,CAAC,MAAM,KAAK,CAAC,EAAhB,CAAgB,CAAC,CAAC;IACrC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,OAAO,CAAC,GAAG,CAAC,UAAC,GAAG;;QACrB,IAAM,IAAI,gBAAgB,KAAK,CAAC,MAAM,CAAE,CAAC;;YACzC,KAAkB,IAAA,QAAA,SAAA,GAAG,CAAA,wBAAA;gBAAhB,IAAM,GAAG,gBAAA;gBAAS,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;aAAA;;;;;;;;;QACvD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.application_string = void 0;
4
- var application_plugin_1 = require("./application_plugin");
5
- /**
6
- * @internal
7
- */
8
- var application_string = function (atomic) {
9
- return (0, application_plugin_1.application_plugin)({
10
- schema: {
11
- type: "string",
12
- },
13
- tags: atomic.tags,
14
- });
15
- };
16
- exports.application_string = application_string;
17
- //# sourceMappingURL=application_string.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_string.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_string.ts"],"names":[],"mappings":";;;AAIA,2DAA0D;AAE1D;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAChC,MAAsB;IAEtB,OAAA,IAAA,uCAAkB,EAAC;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACW;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AALF,CAKE,CAAC;AARQ,QAAA,kBAAkB,sBAQ1B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"application_templates.js","sourceRoot":"","sources":["../../../src/programmers/internal/application_templates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4DAA2D;AAG3D,2DAA0D;AAC1D,6DAA4D;AAE5D;;GAEG;AACI,IAAM,qBAAqB,GAAG,UACnC,IAAc;;;IAEd,IAAM,aAAa,GAAuB,IAAI,CAAC,SAAS,CAAC,MAAM,CAC7D,UAAC,CAAC,YAAK,OAAA,MAAM,CAAC,MAAA,CAAC,CAAC,IAAI,mCAAI,EAAE,CAAC,KAAK,IAAI,CAAA,EAAA,CACrC,CAAC;IACF,IAAM,eAAe,GAAuB,IAAI,CAAC,SAAS,CAAC,MAAM,CAC/D,UAAC,CAAC,YAAK,OAAA,MAAM,CAAC,MAAA,CAAC,CAAC,IAAI,mCAAI,EAAE,CAAC,KAAK,KAAK,CAAA,EAAA,CACtC,CAAC;IAEF,IAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,IAAI,aAAa,CAAC,MAAM;QACtB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAA,yCAAmB,EAAC;gBAC3B,GAAG,EAAE,IAAI;gBACT,QAAQ,EAAE,mBAAQ,CAAC,MAAM,uBACpB,mBAAQ,CAAC,UAAU,EAAE,KACxB,SAAS,EAAE,aAAa,IACxB;aACH,CAAC;SACH,CAAC,CAAC;;QACL,KAAkB,IAAA,oBAAA,SAAA,eAAe,CAAA,gDAAA;YAA5B,IAAM,GAAG,4BAAA;YACZ,MAAM,CAAC,IAAI,CACT,IAAA,uCAAkB,EAAC;gBACjB,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,IAAA,yCAAmB,EAAC;wBAC3B,GAAG,EAAE,KAAK;wBACV,QAAQ,EAAE,mBAAQ,CAAC,MAAM,uBACpB,mBAAQ,CAAC,UAAU,EAAE,KACxB,SAAS,EAAE,CAAC,GAAG,CAAC,IAChB;qBACH,CAAC;iBACH;gBACD,IAAI,EAAE,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE;aACrB,CAAQ,CACV,CAAC;SAAA;;;;;;;;;IACJ,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAvCW,QAAA,qBAAqB,yBAuChC;AAEF,IAAM,MAAM,GAAG,UAAC,MAA4B;IAC1C,OAAA,MAAM,CAAC,KAAK,CAAC,UAAC,IAAI,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAzB,CAAyB,CAAC;AAAjD,CAAiD,CAAC;AACpD,IAAM,MAAM,GAAG,UAAC,IAAwB;IACtC,OAAA,IAAI,CAAC,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,KAAK,SAAS,EAAtB,CAAsB,CAAC;AAA1C,CAA0C,CAAC"}