@resistdesign/voltra 3.0.0-alpha.4 → 3.0.0-alpha.41

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 (219) hide show
  1. package/README.md +379 -14
  2. package/api/DBX/DBXAsserts.d.ts +95 -0
  3. package/api/DBX/DBXRequest.d.ts +5 -0
  4. package/api/DBX/DBXRuntime.d.ts +5 -0
  5. package/api/DBX/DBXScenarioConfig.d.ts +9 -0
  6. package/api/DBX/DBXSeed.d.ts +124 -0
  7. package/api/DBX/DBXTypes.d.ts +176 -0
  8. package/api/DBX/index.d.ts +8 -0
  9. package/api/DataAccessControl.d.ts +220 -0
  10. package/api/Indexing/API.d.ts +224 -0
  11. package/api/Indexing/Cursor.d.ts +101 -0
  12. package/api/Indexing/Handler/Config.d.ts +39 -0
  13. package/api/Indexing/Handler.d.ts +166 -0
  14. package/api/Indexing/Trace.d.ts +54 -0
  15. package/api/Indexing/Types.d.ts +204 -0
  16. package/api/Indexing/ddb/AwsSdkV3Adapter.d.ts +8 -0
  17. package/api/Indexing/ddb/Types.d.ts +209 -0
  18. package/api/Indexing/docId.d.ts +27 -0
  19. package/api/Indexing/exact/ExactDdb.d.ts +58 -0
  20. package/api/Indexing/exact/ExactIndex.d.ts +90 -0
  21. package/api/Indexing/exact/ExactS3.d.ts +41 -0
  22. package/api/Indexing/fieldQualification.d.ts +12 -0
  23. package/api/Indexing/fulltext/FullTextDdbBackend.d.ts +212 -0
  24. package/api/Indexing/fulltext/FullTextMemoryBackend.d.ts +93 -0
  25. package/api/Indexing/fulltext/Schema.d.ts +164 -0
  26. package/api/Indexing/hashUniversal.d.ts +13 -0
  27. package/api/Indexing/index.d.ts +45 -0
  28. package/api/Indexing/lossy/LossyDdb.d.ts +43 -0
  29. package/api/Indexing/lossy/LossyIndex.d.ts +72 -0
  30. package/api/Indexing/lossy/LossyS3.d.ts +40 -0
  31. package/api/Indexing/rel/Cursor.d.ts +25 -0
  32. package/api/Indexing/rel/Handlers.d.ts +144 -0
  33. package/api/Indexing/rel/RelationalDdb.d.ts +169 -0
  34. package/api/Indexing/rel/RelationalInMemoryBackend.d.ts +38 -0
  35. package/api/Indexing/rel/Types.d.ts +69 -0
  36. package/api/Indexing/structured/Cursor.d.ts +26 -0
  37. package/api/Indexing/structured/Handlers.d.ts +128 -0
  38. package/api/Indexing/structured/SearchStructured.d.ts +44 -0
  39. package/api/Indexing/structured/StructuredDdb.d.ts +184 -0
  40. package/api/Indexing/structured/StructuredDdbBackend.d.ts +112 -0
  41. package/api/Indexing/structured/StructuredInMemoryBackend.d.ts +40 -0
  42. package/api/Indexing/structured/StructuredInMemoryIndex.d.ts +61 -0
  43. package/api/Indexing/structured/StructuredStringLike.d.ts +54 -0
  44. package/api/Indexing/structured/StructuredWriter.d.ts +74 -0
  45. package/api/Indexing/structured/Types.d.ts +126 -0
  46. package/api/Indexing/structured/index.d.ts +9 -0
  47. package/api/Indexing/tokenize.d.ts +31 -0
  48. package/api/ORM/DACUtils.d.ts +270 -0
  49. package/api/ORM/ListItemUtils.d.ts +40 -0
  50. package/api/ORM/ORMRouteMap.d.ts +55 -0
  51. package/api/ORM/TypeInfoORMService.d.ts +740 -0
  52. package/api/ORM/drivers/DynamoDBDataItemDBDriver/ConfigTypes.d.ts +229 -0
  53. package/api/ORM/drivers/DynamoDBDataItemDBDriver.d.ts +89 -0
  54. package/api/ORM/drivers/InMemoryDataItemDBDriver/ConfigTypes.d.ts +4 -0
  55. package/api/ORM/drivers/InMemoryDataItemDBDriver.d.ts +55 -0
  56. package/api/ORM/drivers/InMemoryFileItemDBDriver/ConfigTypes.d.ts +13 -0
  57. package/api/ORM/drivers/InMemoryFileItemDBDriver.d.ts +98 -0
  58. package/api/ORM/drivers/InMemoryItemRelationshipDBDriver.d.ts +16 -0
  59. package/api/ORM/drivers/IndexingRelationshipDriver.d.ts +123 -0
  60. package/api/ORM/drivers/S3FileItemDBDriver/ConfigTypes.d.ts +322 -0
  61. package/api/ORM/drivers/S3FileItemDBDriver/S3FileDriver.d.ts +118 -0
  62. package/api/ORM/drivers/S3FileItemDBDriver.d.ts +71 -0
  63. package/api/ORM/drivers/common/SupportedTypeInfoORMDBDrivers.d.ts +36 -0
  64. package/api/ORM/drivers/common/Types.d.ts +197 -0
  65. package/api/ORM/drivers/common/index.d.ts +2 -0
  66. package/api/ORM/drivers/index.d.ts +8 -0
  67. package/api/ORM/index.d.ts +9 -0
  68. package/api/ORM/indexing/criteriaToStructuredWhere.d.ts +22 -0
  69. package/api/Router/AWS.d.ts +80 -0
  70. package/api/Router/Auth.d.ts +14 -0
  71. package/api/Router/CORS.d.ts +66 -0
  72. package/api/Router/Types.d.ts +138 -0
  73. package/api/Router/index.d.ts +89 -0
  74. package/api/index.d.ts +72 -6
  75. package/api/index.js +3291 -1954
  76. package/app/forms/Engine.d.ts +23 -0
  77. package/app/forms/UI.d.ts +83 -0
  78. package/app/forms/core/createAutoField.d.ts +43 -0
  79. package/app/forms/core/createFormRenderer.d.ts +25 -0
  80. package/app/forms/core/getFieldKind.d.ts +14 -0
  81. package/app/forms/core/index.d.ts +11 -0
  82. package/app/forms/core/mergeSuites.d.ts +23 -0
  83. package/app/forms/core/resolveSuite.d.ts +15 -0
  84. package/app/forms/core/types.d.ts +180 -0
  85. package/app/forms/index.d.ts +9 -0
  86. package/app/forms/types.d.ts +137 -0
  87. package/app/helpers/styled.d.ts +3 -0
  88. package/app/index.d.ts +102 -5
  89. package/app/index.js +98 -327
  90. package/app/utils/ApplicationState.d.ts +167 -0
  91. package/app/utils/ApplicationStateLoader.d.ts +86 -0
  92. package/app/utils/Controller.d.ts +10 -0
  93. package/app/utils/Debug.d.ts +14 -0
  94. package/app/utils/EasyLayout.d.ts +89 -0
  95. package/app/utils/History.d.ts +165 -0
  96. package/app/utils/Route.d.ts +173 -0
  97. package/app/utils/RouteHistory.d.ts +27 -0
  98. package/app/utils/Service.d.ts +45 -0
  99. package/app/utils/TypeInfoORMAPIUtils.d.ts +94 -0
  100. package/app/utils/TypeInfoORMClient.d.ts +103 -0
  101. package/app/utils/UniversalRouteAdapter.d.ts +73 -0
  102. package/app/utils/easy-layout/computeAreaBounds.d.ts +5 -0
  103. package/app/utils/easy-layout/computeTracks.d.ts +16 -0
  104. package/app/utils/easy-layout/index.d.ts +5 -0
  105. package/app/utils/easy-layout/parseTemplate.d.ts +12 -0
  106. package/app/utils/easy-layout/types.d.ts +52 -0
  107. package/app/utils/easy-layout/validateAreas.d.ts +5 -0
  108. package/app/utils/index.d.ts +24 -0
  109. package/build/TypeMapping.d.ts +17 -0
  110. package/build/TypeParsing.d.ts +10 -0
  111. package/build/index.d.ts +15 -0
  112. package/build/index.js +569 -0
  113. package/chunk-2MOLWZMQ.js +71 -0
  114. package/chunk-7AMEFPPP.js +78 -0
  115. package/chunk-ATO2455Q.js +258 -0
  116. package/chunk-DT6WWJUI.js +1185 -0
  117. package/chunk-I2KLQ2HA.js +19 -0
  118. package/chunk-TJFTWPXQ.js +39 -0
  119. package/chunk-WNFRDIBW.js +121 -0
  120. package/chunk-YCTVEW2I.js +546 -0
  121. package/common/CommandLine/collectRequiredEnvironmentVariables.d.ts +9 -0
  122. package/common/CommandLine/index.d.ts +6 -0
  123. package/common/HelperTypes.d.ts +9 -0
  124. package/common/IdGeneration/getSimpleId.d.ts +8 -0
  125. package/common/IdGeneration/index.d.ts +1 -0
  126. package/common/ItemRelationshipInfoTypes.d.ts +64 -0
  127. package/common/ItemRelationships/ItemRelationshipValidation.d.ts +21 -0
  128. package/common/ItemRelationships/index.d.ts +2 -0
  129. package/common/Logging/Utils.d.ts +10 -0
  130. package/common/Logging/index.d.ts +1 -0
  131. package/common/Routing.d.ts +81 -0
  132. package/common/SearchTypes.d.ts +227 -0
  133. package/common/SearchUtils.d.ts +55 -0
  134. package/common/SearchValidation.d.ts +27 -0
  135. package/common/StringTransformers.d.ts +28 -0
  136. package/common/Testing/CLI.d.ts +6 -0
  137. package/common/Testing/Types.d.ts +216 -0
  138. package/common/Testing/Utils.d.ts +112 -0
  139. package/common/Testing/index.d.ts +8 -0
  140. package/common/TypeInfoDataItemUtils.d.ts +39 -0
  141. package/{Types-C7XjUjoF.d.ts → common/TypeInfoORM/Types.d.ts} +117 -15
  142. package/common/TypeInfoORM/index.d.ts +3 -0
  143. package/common/TypeParsing/Constants.d.ts +4 -0
  144. package/common/TypeParsing/ParsingUtils/Constants.d.ts +8 -0
  145. package/common/TypeParsing/ParsingUtils/checkType.d.ts +14 -0
  146. package/common/TypeParsing/ParsingUtils/checkUnionType.d.ts +12 -0
  147. package/common/TypeParsing/ParsingUtils/extractCommentTags.d.ts +8 -0
  148. package/common/TypeParsing/ParsingUtils/extractLiteralValues.d.ts +12 -0
  149. package/common/TypeParsing/ParsingUtils/extractTypeDetails.d.ts +14 -0
  150. package/common/TypeParsing/ParsingUtils/getPrimaryFieldForTypeInfo.d.ts +18 -0
  151. package/common/TypeParsing/ParsingUtils/getTypeInfo.d.ts +9 -0
  152. package/common/TypeParsing/ParsingUtils/getTypeInfoField.d.ts +9 -0
  153. package/common/TypeParsing/ParsingUtils/getTypeInfoFromAliasType.d.ts +11 -0
  154. package/common/TypeParsing/ParsingUtils/getTypeInfoFromFieldFilter.d.ts +12 -0
  155. package/common/TypeParsing/ParsingUtils/getTypeInfoFromTypeAlias.d.ts +11 -0
  156. package/common/TypeParsing/ParsingUtils/getTypeKeyword.d.ts +9 -0
  157. package/common/TypeParsing/ParsingUtils/getUnionOrIntersectionTypeInfo.d.ts +11 -0
  158. package/common/TypeParsing/ParsingUtils/getUnionOrLiteralStringValues.d.ts +8 -0
  159. package/common/TypeParsing/TypeInfo.d.ts +222 -0
  160. package/common/TypeParsing/Utils.d.ts +47 -0
  161. package/common/TypeParsing/Validation.d.ts +327 -0
  162. package/common/TypeParsing/index.d.ts +8 -0
  163. package/common/index.d.ts +40 -4
  164. package/common/index.js +25 -1737
  165. package/{index-BkFZlfit.d.ts → iac/SimpleCFT.d.ts} +5 -25
  166. package/iac/index.d.ts +40 -2
  167. package/iac/index.js +2 -1661
  168. package/iac/packs/auth.d.ts +131 -0
  169. package/iac/packs/build/utils.d.ts +289 -0
  170. package/iac/packs/build.d.ts +92 -0
  171. package/iac/packs/cdn.d.ts +33 -0
  172. package/iac/packs/cloud-function.d.ts +67 -0
  173. package/iac/packs/database.d.ts +32 -0
  174. package/iac/packs/dns.d.ts +34 -0
  175. package/iac/packs/file-storage.d.ts +46 -0
  176. package/iac/packs/gateway.d.ts +82 -0
  177. package/iac/packs/index.d.ts +60 -1
  178. package/iac/packs/index.js +391 -594
  179. package/iac/packs/repo.d.ts +28 -0
  180. package/iac/packs/ssl-certificate.d.ts +28 -0
  181. package/iac/types/Constants.d.ts +24 -0
  182. package/{index-DcvJOZ_c.d.ts → iac/types/IaCTypes.d.ts} +23 -1018
  183. package/iac/types/Renderers.d.ts +96 -0
  184. package/iac/types/Types.d.ts +131 -0
  185. package/iac/types/Utils.d.ts +9 -0
  186. package/iac/types/generate.d.ts +1 -0
  187. package/iac/utils/index.d.ts +87 -0
  188. package/iac/utils/patch-utils.d.ts +66 -0
  189. package/iac-packs/index.d.ts +6 -0
  190. package/native/forms/UI.d.ts +73 -0
  191. package/native/forms/createNativeFormRenderer.d.ts +21 -0
  192. package/native/forms/index.d.ts +25 -0
  193. package/native/forms/primitives/index.d.ts +38 -0
  194. package/native/forms/suite.d.ts +15 -0
  195. package/native/index.d.ts +19 -0
  196. package/native/index.js +748 -0
  197. package/native/testing/react-native.d.ts +46 -0
  198. package/native/utils/EasyLayout.d.ts +88 -0
  199. package/native/utils/History.d.ts +102 -0
  200. package/native/utils/Route.d.ts +80 -0
  201. package/native/utils/index.d.ts +20 -0
  202. package/package.json +54 -21
  203. package/web/forms/UI.d.ts +74 -0
  204. package/web/forms/createWebFormRenderer.d.ts +21 -0
  205. package/web/forms/index.d.ts +9 -0
  206. package/web/forms/primitives/index.d.ts +21 -0
  207. package/web/forms/suite.d.ts +15 -0
  208. package/web/index.d.ts +15 -0
  209. package/web/index.js +668 -0
  210. package/web/utils/EasyLayout.d.ts +47 -0
  211. package/web/utils/Route.d.ts +16 -0
  212. package/web/utils/index.d.ts +7 -0
  213. package/SearchTypes-DjN6YQzE.d.ts +0 -577
  214. package/Validation-CFP59oIP.d.ts +0 -226
  215. package/index-C3-iD9Mh.d.ts +0 -690
  216. package/index-DZ2BB4iX.d.ts +0 -5357
  217. package/index-IokxSNxm.d.ts +0 -745
  218. package/index.d.ts +0 -13
  219. package/index.js +0 -10973
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Render helpers that convert CloudFormation spec nodes into TypeScript types.
3
+ */
4
+ import { AttributeType, IDocumentable, NamespaceStructure, PropertyDescriptor, PropertyType, ResourceType } from "./Types";
5
+ /**
6
+ * Render a primitive CloudFormation type to a TypeScript type string.
7
+ *
8
+ * @param primitiveType - CloudFormation primitive type name.
9
+ * @returns Rendered TypeScript type string.
10
+ */
11
+ export declare const renderPrimitiveType: (primitiveType: string) => string;
12
+ /**
13
+ * Render a property type from an attribute descriptor.
14
+ *
15
+ * @param path - Namespace path segments.
16
+ * @param attribute - Attribute type descriptor.
17
+ * @returns Rendered TypeScript type string.
18
+ */
19
+ export declare const renderPropertyType: (path: string[], { PrimitiveType, Type, PrimitiveItemType, ItemType }: AttributeType) => string;
20
+ /**
21
+ * Render a property name with optionality.
22
+ *
23
+ * @param propertyName - Property name from the spec.
24
+ * @param descriptor - Property descriptor or attribute type.
25
+ * @returns Rendered property name string.
26
+ */
27
+ export declare const renderPropertyName: (propertyName: string, descriptor: PropertyDescriptor | AttributeType) => string;
28
+ /**
29
+ * Render a JSDoc comment block from a documentable descriptor.
30
+ *
31
+ * @param descriptor - Documentable spec node.
32
+ * @returns Comment block string or empty string.
33
+ */
34
+ export declare const renderCommentBlock: ({ UpdateType, DuplicatesAllowed, Documentation, }: IDocumentable) => string;
35
+ /**
36
+ * Render a property line for a type.
37
+ *
38
+ * @param path - Namespace path segments.
39
+ * @param propertyName - Property name.
40
+ * @param propertyDescriptor - Property descriptor or attribute type.
41
+ * @returns Rendered property line.
42
+ */
43
+ export declare const renderProperty: (path: string[], propertyName: string, propertyDescriptor: PropertyDescriptor | AttributeType) => string;
44
+ /**
45
+ * Render a type alias with a fully formed body.
46
+ *
47
+ * @param commentBlock - Optional comment block.
48
+ * @param typeName - Type name.
49
+ * @param fullBody - Type body string.
50
+ * @returns Rendered type alias string.
51
+ */
52
+ export declare const renderTypeWithFullBody: (commentBlock: string, typeName: string, fullBody: string) => string;
53
+ /**
54
+ * Render a type body with property definitions.
55
+ *
56
+ * @param path - Namespace path segments.
57
+ * @param properties - Properties to render.
58
+ * @returns Rendered type body string.
59
+ */
60
+ export declare const renderTypePropertiesBody: (path: string[], properties: Record<string, PropertyDescriptor | AttributeType>) => string;
61
+ /**
62
+ * Render a type alias from a property map.
63
+ *
64
+ * @param path - Namespace path segments.
65
+ * @param typeName - Type name.
66
+ * @param properties - Property definitions.
67
+ * @param commentBlock - Optional comment block.
68
+ * @returns Rendered type alias string.
69
+ */
70
+ export declare const renderTypeWithProperties: (path: string[], typeName: string, properties: Record<string, AttributeType>, commentBlock?: string) => string;
71
+ /**
72
+ * Render a type alias from a property type.
73
+ *
74
+ * @param path - Namespace path segments.
75
+ * @param typeName - Type name.
76
+ * @param propertyType - Property type descriptor.
77
+ * @returns Rendered type alias string.
78
+ */
79
+ export declare const renderTypeFromPropertyType: (path: string[], typeName: string, propertyType: PropertyType) => string;
80
+ /**
81
+ * Render a type alias for a resource type.
82
+ *
83
+ * @param path - Namespace path segments.
84
+ * @param typeName - Type name.
85
+ * @param resourceType - Resource type descriptor.
86
+ * @returns Rendered type alias string.
87
+ */
88
+ export declare const renderTypeFromResourceType: (path: string[], typeName: string, resourceType: ResourceType) => string;
89
+ /**
90
+ * Render a namespace structure into TypeScript type output.
91
+ *
92
+ * @param structure - Namespace structure to render.
93
+ * @param namespaceName - Optional namespace name.
94
+ * @returns Rendered namespace string.
95
+ */
96
+ export declare const renderNamespaceStructure: ({ path, includes, propertyTypes, resourceTypes, namespaces, }: NamespaceStructure, namespaceName?: string) => string;
@@ -0,0 +1,131 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Core types used by the IaC type generator. The generated outputs live in
5
+ * `src/iac/types/IaCTypes.ts` and `src/iac/types/CloudFormationResourceSpecification.ts`
6
+ * and should not be edited by hand. Regenerate them via `yarn iac:types:gen`.
7
+ */
8
+ export interface IDocumentable {
9
+ /**
10
+ * Update type description from the spec.
11
+ */
12
+ UpdateType?: string;
13
+ /**
14
+ * Whether duplicates are allowed.
15
+ */
16
+ DuplicatesAllowed?: boolean;
17
+ /**
18
+ * Documentation URL for the spec entry.
19
+ */
20
+ Documentation?: string;
21
+ }
22
+ /**
23
+ * Attribute type descriptor from the CloudFormation spec.
24
+ */
25
+ export type AttributeType = {
26
+ /**
27
+ * Primitive type name, when applicable.
28
+ */
29
+ PrimitiveType?: string;
30
+ /**
31
+ * Container or complex type name.
32
+ */
33
+ Type?: string;
34
+ /**
35
+ * Item type for container types.
36
+ */
37
+ ItemType?: string;
38
+ /**
39
+ * Primitive item type for container types.
40
+ */
41
+ PrimitiveItemType?: string;
42
+ /**
43
+ * Whether duplicate items are allowed.
44
+ */
45
+ DuplicatesAllowed?: boolean;
46
+ };
47
+ /**
48
+ * Property descriptor including documentation and attribute details.
49
+ */
50
+ export type PropertyDescriptor = IDocumentable & AttributeType & {
51
+ /**
52
+ * Whether the property is required.
53
+ */
54
+ Required?: boolean;
55
+ };
56
+ /**
57
+ * Property type with nested properties.
58
+ */
59
+ export type PropertyType = PropertyDescriptor & {
60
+ /**
61
+ * Child properties for object types.
62
+ */
63
+ Properties?: Record<string, PropertyDescriptor>;
64
+ };
65
+ /**
66
+ * Resource type descriptor from the CloudFormation spec.
67
+ */
68
+ export type ResourceType = {
69
+ /**
70
+ * CloudFormation resource type name.
71
+ */
72
+ Type?: string;
73
+ /**
74
+ * Documentation URL for the resource type.
75
+ */
76
+ Documentation?: string;
77
+ /**
78
+ * Whether additional properties are allowed.
79
+ */
80
+ AdditionalProperties?: boolean;
81
+ /**
82
+ * Resource properties map.
83
+ */
84
+ Properties?: Record<string, PropertyDescriptor>;
85
+ /**
86
+ * Resource attributes map.
87
+ */
88
+ Attributes?: Record<string, AttributeType>;
89
+ };
90
+ /**
91
+ * Full CloudFormation resource specification payload.
92
+ */
93
+ export type CloudFormationResourceSpecification = {
94
+ /**
95
+ * Map of property types keyed by name.
96
+ */
97
+ PropertyTypes: Record<string, PropertyType>;
98
+ /**
99
+ * Map of resource types keyed by name.
100
+ */
101
+ ResourceTypes: Record<string, ResourceType>;
102
+ /**
103
+ * Specification version string.
104
+ */
105
+ ResourceSpecificationVersion: `${number}.${number}.${number}`;
106
+ };
107
+ /**
108
+ * Namespace structure produced by the type generator.
109
+ */
110
+ export type NamespaceStructure = {
111
+ /**
112
+ * Namespace path segments.
113
+ */
114
+ path: string[];
115
+ /**
116
+ * TypeScript include strings for the namespace.
117
+ */
118
+ includes?: string[];
119
+ /**
120
+ * Property types contained in the namespace.
121
+ */
122
+ propertyTypes?: Record<string, PropertyType>;
123
+ /**
124
+ * Resource types contained in the namespace.
125
+ */
126
+ resourceTypes?: Record<string, ResourceType>;
127
+ /**
128
+ * Nested namespaces.
129
+ */
130
+ namespaces?: Record<string, NamespaceStructure>;
131
+ };
@@ -0,0 +1,9 @@
1
+ import { CloudFormationResourceSpecification, NamespaceStructure } from "./Types";
2
+ /**
3
+ * Build a namespace structure from the CloudFormation specification.
4
+ *
5
+ * @param specification - CloudFormation resource specification.
6
+ * @param baseStructure - Base namespace structure to extend.
7
+ * @returns Fully built namespace structure.
8
+ */
9
+ export declare const getNamespaceStructure: (specification: CloudFormationResourceSpecification, baseStructure: NamespaceStructure) => NamespaceStructure;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * IaC utility helpers for patching templates, creating resource packs, and
5
+ * defining parameter groups.
6
+ */
7
+ import { CloudFormationParameter, CloudFormationTemplate } from "../types/IaCTypes";
8
+ export * from "./patch-utils";
9
+ /**
10
+ * Stack parameter definition with display metadata.
11
+ */
12
+ export type ParameterInfo = {
13
+ /**
14
+ * Parameter id used in the template.
15
+ */
16
+ ParameterId: string;
17
+ /**
18
+ * CloudFormation parameter definition.
19
+ */
20
+ Parameter: CloudFormationParameter;
21
+ /**
22
+ * Display label for the parameter.
23
+ */
24
+ Label: string;
25
+ /**
26
+ * Optional parameter group label.
27
+ */
28
+ Group?: string;
29
+ };
30
+ /**
31
+ * Add a stack parameter including its descriptive info and an optional parameter group.
32
+ *
33
+ * @param parameterInfo - Parameter metadata and definition.
34
+ * @param template - Template to update.
35
+ * @returns Updated CloudFormation template.
36
+ */
37
+ export declare const addParameter: (parameterInfo: ParameterInfo, template: CloudFormationTemplate) => CloudFormationTemplate;
38
+ /**
39
+ * Add multiple stack parameters with info and groups.
40
+ *
41
+ * @param parameters - Parameter definitions to add.
42
+ * @param template - Template to update.
43
+ * @returns Updated CloudFormation template.
44
+ */
45
+ export declare const addParameters: (parameters: ParameterInfo[], template: CloudFormationTemplate) => CloudFormationTemplate;
46
+ /**
47
+ * A function used to apply a pack to a stack template.
48
+ *
49
+ * @typeParam ParamsType - Pack parameter type.
50
+ * @param params - Pack configuration.
51
+ * @param template - Template to update.
52
+ * @returns Updated CloudFormation template.
53
+ */
54
+ export type ResourcePackApplier<ParamsType> = (params: ParamsType, template: CloudFormationTemplate) => CloudFormationTemplate;
55
+ /**
56
+ * Apply a patch to a stack template.
57
+ *
58
+ * @param patch - Partial template patch.
59
+ * @param template - Template to update.
60
+ * @returns Updated CloudFormation template.
61
+ */
62
+ export declare const patchTemplate: (patch: Partial<CloudFormationTemplate>, template: CloudFormationTemplate) => CloudFormationTemplate;
63
+ /**
64
+ * Create a custom resource pack that can use configuration input to patch a stack with convenient resources, parameters, etc.
65
+ *
66
+ * @typeParam ParamsType - Pack parameter type.
67
+ * @param creator - Pack creator that returns a template patch.
68
+ * @returns Resource pack applier.
69
+ */
70
+ export declare const createResourcePack: <ParamsType>(creator: (params: ParamsType) => Partial<CloudFormationTemplate>) => ResourcePackApplier<ParamsType>;
71
+ /**
72
+ * Grouped parameter definitions for CloudFormation interfaces.
73
+ */
74
+ export type ParameterGroup = {
75
+ /**
76
+ * Group label.
77
+ */
78
+ Label: string;
79
+ /**
80
+ * Map of parameter ids to parameter definitions.
81
+ */
82
+ Parameters: {
83
+ [parameterId: string]: {
84
+ Label: string;
85
+ } & CloudFormationParameter;
86
+ };
87
+ };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Deep merge helpers used by IaC packs to patch CloudFormation templates.
5
+ */
6
+ /**
7
+ * Merge strategy for patching values.
8
+ */
9
+ export type MergeStrategy = "transpose" | "accumulate" | "accumulate-unique" | "accumulate-unique-by" | "replace";
10
+ /**
11
+ * Descriptor defining how a value path should be merged.
12
+ */
13
+ export type MergeStrategyDescriptor = {
14
+ strategy: MergeStrategy;
15
+ } | {
16
+ strategy: "accumulate-unique-by";
17
+ data: string | ((value: any) => string);
18
+ };
19
+ /**
20
+ * Encoded value path string.
21
+ */
22
+ export type ValuePathString = string;
23
+ /**
24
+ * Value path segments.
25
+ */
26
+ export type ValuePathArray = (string | number)[];
27
+ /**
28
+ * Map of value path strings to merge strategy descriptors.
29
+ */
30
+ export type MergeStrategyMap = Record<ValuePathString, MergeStrategyDescriptor>;
31
+ /**
32
+ * Default merge strategy for patching.
33
+ */
34
+ export declare const DEFAULT_MERGE_STRATEGY: MergeStrategy;
35
+ /**
36
+ * Convert a value path array into a path string.
37
+ *
38
+ * @param valuePathArray - Value path segments.
39
+ * @returns Encoded value path string.
40
+ */
41
+ export declare const getValuePathString: (valuePathArray?: ValuePathArray) => string;
42
+ /**
43
+ * Convert a value path string into path segments.
44
+ *
45
+ * @param valuePathString - Encoded value path string.
46
+ * @returns Decoded value path segments.
47
+ */
48
+ export declare const getValuePathArray: (valuePathString?: ValuePathString) => string[];
49
+ /**
50
+ * Check whether a value is constructed by a specific constructor.
51
+ *
52
+ * @param value - Value to inspect.
53
+ * @param constructorReference - Constructor to compare against.
54
+ * @returns Whether the value matches the constructor.
55
+ */
56
+ export declare const isConstructedFrom: (value: any, constructorReference: Function) => boolean;
57
+ /**
58
+ * Merge two values using path-based merge strategies.
59
+ *
60
+ * @param valuePathArray - Path to the value being merged.
61
+ * @param existingValue - Existing value in the template.
62
+ * @param newValue - New value to merge in.
63
+ * @param mergeStrategyMap - Merge strategy overrides.
64
+ * @returns Merged value.
65
+ */
66
+ export declare const mergeValues: (valuePathArray: ValuePathArray | undefined, existingValue: any, newValue: any, mergeStrategyMap?: MergeStrategyMap) => any;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Import from `@resistdesign/voltra/iac/packs`.
5
+ */
6
+ export * from '../iac/packs';
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Native AutoForm wrappers backed by the default native renderer.
5
+ */
6
+ import { type FC } from "react";
7
+ import type { AutoFieldProps, CustomValidatorMap, CustomTypeActionPayload, FormController, FormValues, RelationActionPayload, TranslateValidationErrorCode } from "../../app/forms/types";
8
+ import type { TypeInfo, TypeOperation } from "../../common/TypeParsing/TypeInfo";
9
+ /**
10
+ * Render a form field based on TypeInfo metadata.
11
+ *
12
+ * @category Forms
13
+ *
14
+ * @param props - AutoField props describing the field and handlers.
15
+ * @returns Rendered field UI.
16
+ */
17
+ export declare const AutoField: FC<AutoFieldProps>;
18
+ /**
19
+ * Props for the AutoFormView component.
20
+ */
21
+ export interface AutoFormViewProps {
22
+ /** Prepared controller that supplies field state. */
23
+ controller: FormController;
24
+ /** Submit handler invoked with validated form values. */
25
+ onSubmit: (values: FormValues) => void;
26
+ /** Disable the submit button when true. */
27
+ submitDisabled?: boolean;
28
+ /** Optional relation action handler for reference fields. */
29
+ onRelationAction?: (payload: RelationActionPayload) => void;
30
+ /** Optional custom type action handler. */
31
+ onCustomTypeAction?: (payload: CustomTypeActionPayload) => void;
32
+ /** Optional translator for validation error descriptors. */
33
+ translateValidationErrorCode?: TranslateValidationErrorCode;
34
+ }
35
+ /**
36
+ * Render a native form UI from a prepared form controller.
37
+ *
38
+ * @param props - View props including controller and callbacks.
39
+ * @returns Rendered form view.
40
+ */
41
+ export declare const AutoFormView: FC<AutoFormViewProps>;
42
+ /**
43
+ * Props for the AutoForm component.
44
+ */
45
+ export interface AutoFormProps {
46
+ /** Type metadata used to build the form. */
47
+ typeInfo: TypeInfo;
48
+ /** Submit handler invoked with validated form values. */
49
+ onSubmit: (values: FormValues) => void;
50
+ /** Optional initial values applied before defaults. */
51
+ initialValues?: FormValues;
52
+ /** Optional change handler invoked when values update. */
53
+ onValuesChange?: (values: FormValues) => void;
54
+ /** Optional relation action handler for reference fields. */
55
+ onRelationAction?: (payload: RelationActionPayload) => void;
56
+ /** Optional custom type action handler. */
57
+ onCustomTypeAction?: (payload: CustomTypeActionPayload) => void;
58
+ /** Optional operation override for field state. */
59
+ operation?: TypeOperation;
60
+ /** Disable the submit button when true. */
61
+ submitDisabled?: boolean;
62
+ /** Optional translator for validation error descriptors. */
63
+ translateValidationErrorCode?: TranslateValidationErrorCode;
64
+ /** Optional custom validators keyed by field name. */
65
+ customValidatorMap?: CustomValidatorMap;
66
+ }
67
+ /**
68
+ * Build a controller from type metadata and render a native auto form.
69
+ *
70
+ * @param props - Auto form props including type info and callbacks.
71
+ * @returns Rendered native form.
72
+ */
73
+ export declare const AutoForm: FC<AutoFormProps>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Convenience factory for native form renderers.
5
+ */
6
+ import type { ReactElement } from "react";
7
+ import type { ComponentSuite } from "../../app/forms/core/types";
8
+ /**
9
+ * Create a native form renderer using the default native suite.
10
+ *
11
+ * @category Forms
12
+ *
13
+ * @param options - Optional suite overrides.
14
+ * @returns Native form renderers.
15
+ */
16
+ export declare const createNativeFormRenderer: (options?: {
17
+ suite?: ComponentSuite<ReactElement>;
18
+ }) => {
19
+ AutoField: import("react").FC<import("../../app").AutoFieldInput>;
20
+ suite: import("../../app").ResolvedSuite<ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
21
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Native form rendering exports.
5
+ */
6
+ /**
7
+ * @category native
8
+ * @group Forms
9
+ */
10
+ export * from "./suite";
11
+ /**
12
+ * @category native
13
+ * @group Forms
14
+ */
15
+ export * from "./UI";
16
+ /**
17
+ * @category native
18
+ * @group Forms
19
+ */
20
+ export * from "./primitives";
21
+ /**
22
+ * @category native
23
+ * @group Forms
24
+ */
25
+ export * from "./createNativeFormRenderer";
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * React Native primitives for the form generation system.
5
+ */
6
+ import { Text, View } from "react-native";
7
+ /**
8
+ * Wrapper for grouped field content.
9
+ */
10
+ export declare const FieldWrapper: (props: {
11
+ children?: React.ReactNode;
12
+ }) => import("react").CElement<import("react-native").ViewProps, View>;
13
+ /**
14
+ * Inline error message renderer.
15
+ */
16
+ export declare const ErrorMessage: ({ children }: {
17
+ children: React.ReactNode;
18
+ }) => import("react").CElement<import("react-native").TextProps, Text>;
19
+ /**
20
+ * Container for array field items.
21
+ */
22
+ export declare const ArrayContainer: (props: {
23
+ children?: React.ReactNode;
24
+ }) => import("react").CElement<import("react-native").ViewProps, View>;
25
+ /**
26
+ * Wrapper for an individual array item row.
27
+ */
28
+ export declare const ArrayItemWrapper: (props: {
29
+ children?: React.ReactNode;
30
+ }) => import("react").CElement<import("react-native").ViewProps, View>;
31
+ /**
32
+ * Minimal button primitive.
33
+ */
34
+ export declare const Button: ({ children, disabled, onPress, }: {
35
+ children?: React.ReactNode;
36
+ disabled?: boolean;
37
+ onPress?: () => void;
38
+ }) => import("react").FunctionComponentElement<import("react-native").PressableProps & import("react").RefAttributes<View>>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Default native component suite for form rendering.
5
+ */
6
+ import type { ReactElement } from "react";
7
+ import type { ComponentSuite } from "../../app/forms/core";
8
+ /**
9
+ * Default native suite for form rendering.
10
+ */
11
+ export declare const nativeSuite: ComponentSuite<ReactElement>;
12
+ /**
13
+ * AutoField renderer backed by the default native suite.
14
+ */
15
+ export declare const nativeAutoField: import("react").FC<import("../../app").AutoFieldInput>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @packageDocumentation
3
+ *
4
+ * Native entrypoint exports.
5
+ *
6
+ * AGENT NOTE:
7
+ * In this native barrel, direct imports from `react-native` are expected and
8
+ * correct. Do not replace them with runtime import/require indirection hacks.
9
+ */
10
+ /**
11
+ * @category native
12
+ * @group Forms
13
+ */
14
+ export * from "./forms";
15
+ /**
16
+ * @category native
17
+ * @group Layout and Navigation
18
+ */
19
+ export * from "./utils";