@voxgig/sdkgen 4.22.0 → 4.24.0

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 (315) hide show
  1. package/bin/voxgig-sdkgen +18 -2
  2. package/dist/action/doctor.d.ts +1 -1
  3. package/dist/action/doctor.js +12 -10
  4. package/dist/action/doctor.js.map +1 -1
  5. package/dist/action/edition.js +4 -0
  6. package/dist/action/edition.js.map +1 -1
  7. package/dist/action/feature.js +5 -1
  8. package/dist/action/feature.js.map +1 -1
  9. package/dist/action/remove.d.ts +16 -0
  10. package/dist/action/remove.js +345 -0
  11. package/dist/action/remove.js.map +1 -0
  12. package/dist/action/target.js +6 -1
  13. package/dist/action/target.js.map +1 -1
  14. package/dist/cmp/ReadmeTop.js +1 -1
  15. package/dist/cmp/ReadmeTop.js.map +1 -1
  16. package/dist/cmp/ReadmeUnions.js +1 -1
  17. package/dist/cmp/ReadmeUnions.js.map +1 -1
  18. package/dist/cmp/Test.js +1 -1
  19. package/dist/cmp/Test.js.map +1 -1
  20. package/dist/helpers/buildIdNames.d.ts +3 -1
  21. package/dist/helpers/buildIdNames.js +15 -7
  22. package/dist/helpers/buildIdNames.js.map +1 -1
  23. package/dist/helpers/canonSpec.js +2 -2
  24. package/dist/helpers/canonSpec.js.map +1 -1
  25. package/dist/helpers/getMatchEntries.js +2 -2
  26. package/dist/helpers/getMatchEntries.js.map +1 -1
  27. package/dist/helpers/modelNames.js +5 -1
  28. package/dist/helpers/modelNames.js.map +1 -1
  29. package/dist/helpers/opShape.js +33 -33
  30. package/dist/helpers/opShape.js.map +1 -1
  31. package/dist/helpers/pointPath.js +5 -10
  32. package/dist/helpers/pointPath.js.map +1 -1
  33. package/dist/helpers/resolved.js +2 -29
  34. package/dist/helpers/resolved.js.map +1 -1
  35. package/dist/sdkgen.d.ts +2 -2
  36. package/dist/sdkgen.js +5 -3
  37. package/dist/sdkgen.js.map +1 -1
  38. package/dist/tsconfig.tsbuildinfo +1 -1
  39. package/dist/utility.js +15 -7
  40. package/dist/utility.js.map +1 -1
  41. package/package.json +3 -3
  42. package/project/.sdk/src/cmp/c/EntityTypes_c.ts +4 -4
  43. package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +3 -3
  44. package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +3 -3
  45. package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +5 -5
  46. package/project/.sdk/src/cmp/c/Schema_c.ts +1 -1
  47. package/project/.sdk/src/cmp/c/TestDirect_c.ts +12 -12
  48. package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +3 -3
  49. package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +3 -3
  50. package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +5 -5
  51. package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +1 -1
  52. package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +3 -3
  53. package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +3 -3
  54. package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +3 -3
  55. package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +5 -5
  56. package/project/.sdk/src/cmp/cpp/Schema_cpp.ts +1 -1
  57. package/project/.sdk/src/cmp/cpp/TestDirect_cpp.ts +14 -14
  58. package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +51 -50
  59. package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -4
  60. package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +3 -3
  61. package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +3 -3
  62. package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +5 -5
  63. package/project/.sdk/src/cmp/csharp/Schema_csharp.ts +1 -1
  64. package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +30 -30
  65. package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +66 -65
  66. package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +4 -4
  67. package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +3 -3
  68. package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +3 -3
  69. package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +4 -4
  70. package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +1 -1
  71. package/project/.sdk/src/cmp/go/EntityTypes_go.ts +4 -4
  72. package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +3 -3
  73. package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +3 -3
  74. package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +5 -5
  75. package/project/.sdk/src/cmp/go/Schema_go.ts +1 -1
  76. package/project/.sdk/src/cmp/go/TestDirect_go.ts +38 -38
  77. package/project/.sdk/src/cmp/go/TestEntity_go.ts +75 -74
  78. package/project/.sdk/src/cmp/go/utility_go.ts +5 -5
  79. package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -4
  80. package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +3 -3
  81. package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +3 -3
  82. package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +5 -5
  83. package/project/.sdk/src/cmp/java/Schema_java.ts +1 -1
  84. package/project/.sdk/src/cmp/java/TestDirect_java.ts +30 -30
  85. package/project/.sdk/src/cmp/java/TestEntity_java.ts +69 -68
  86. package/project/.sdk/src/cmp/js/EntityTypes_js.ts +5 -5
  87. package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +3 -3
  88. package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +3 -3
  89. package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +5 -5
  90. package/project/.sdk/src/cmp/js/Schema_js.ts +1 -1
  91. package/project/.sdk/src/cmp/js/TestDirect_js.ts +27 -27
  92. package/project/.sdk/src/cmp/js/TestEntity_js.ts +66 -69
  93. package/project/.sdk/src/cmp/js/TestLive_js.ts +3 -3
  94. package/project/.sdk/src/cmp/js/utility_js.ts +5 -5
  95. package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -4
  96. package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +3 -3
  97. package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +3 -3
  98. package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +5 -5
  99. package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +1 -1
  100. package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +30 -30
  101. package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +67 -66
  102. package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +5 -5
  103. package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +3 -3
  104. package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +3 -3
  105. package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +4 -4
  106. package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +5 -5
  107. package/project/.sdk/src/cmp/lua/Schema_lua.ts +1 -1
  108. package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +25 -25
  109. package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +66 -65
  110. package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +3 -3
  111. package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +3 -3
  112. package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +5 -5
  113. package/project/.sdk/src/cmp/ocaml/Schema_ocaml.ts +1 -1
  114. package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +3 -3
  115. package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +3 -3
  116. package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +5 -5
  117. package/project/.sdk/src/cmp/perl/Schema_perl.ts +1 -1
  118. package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +25 -25
  119. package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +60 -59
  120. package/project/.sdk/src/cmp/php/EntityTypes_php.ts +4 -4
  121. package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +3 -3
  122. package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +3 -3
  123. package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +4 -4
  124. package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +5 -5
  125. package/project/.sdk/src/cmp/php/Schema_php.ts +1 -1
  126. package/project/.sdk/src/cmp/php/TestDirect_php.ts +25 -25
  127. package/project/.sdk/src/cmp/php/TestEntity_php.ts +66 -65
  128. package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -4
  129. package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +3 -3
  130. package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +3 -3
  131. package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +5 -5
  132. package/project/.sdk/src/cmp/py/Schema_py.ts +1 -1
  133. package/project/.sdk/src/cmp/py/TestDirect_py.ts +25 -25
  134. package/project/.sdk/src/cmp/py/TestEntity_py.ts +66 -65
  135. package/project/.sdk/src/cmp/py-data/Main_py-data.ts +4 -4
  136. package/project/.sdk/src/cmp/rb/EntityTypes_rb.ts +4 -4
  137. package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +3 -3
  138. package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +3 -3
  139. package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +4 -4
  140. package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +5 -5
  141. package/project/.sdk/src/cmp/rb/Schema_rb.ts +1 -1
  142. package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +25 -25
  143. package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +66 -65
  144. package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +4 -4
  145. package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +3 -3
  146. package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +3 -3
  147. package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +5 -5
  148. package/project/.sdk/src/cmp/rust/Schema_rust.ts +1 -1
  149. package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +18 -18
  150. package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +63 -62
  151. package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -4
  152. package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +3 -3
  153. package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +3 -3
  154. package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +5 -5
  155. package/project/.sdk/src/cmp/scala/Schema_scala.ts +1 -1
  156. package/project/.sdk/src/cmp/scala/TestDirect_scala.ts +14 -14
  157. package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +60 -59
  158. package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +4 -4
  159. package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +3 -3
  160. package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +3 -3
  161. package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +5 -5
  162. package/project/.sdk/src/cmp/swift/Schema_swift.ts +1 -1
  163. package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +5 -5
  164. package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +3 -3
  165. package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +3 -3
  166. package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +1 -1
  167. package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +5 -5
  168. package/project/.sdk/src/cmp/ts/Schema_ts.ts +1 -1
  169. package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +40 -40
  170. package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +72 -75
  171. package/project/.sdk/src/cmp/ts/TestLive_ts.ts +3 -3
  172. package/project/.sdk/src/cmp/ts/utility_ts.ts +5 -5
  173. package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +3 -3
  174. package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +3 -3
  175. package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +5 -5
  176. package/project/.sdk/src/cmp/zig/Schema_zig.ts +1 -1
  177. package/project/.sdk/tm/c/core/context.c +3 -1
  178. package/project/.sdk/tm/c/feature/paging.c +37 -3
  179. package/project/.sdk/tm/c/feature/test.c +71 -31
  180. package/project/.sdk/tm/c/utility/prepare_query.c +2 -1
  181. package/project/.sdk/tm/c/utility/transform_request.c +25 -3
  182. package/project/.sdk/tm/clojure/src/sdk/core.clj +21 -7
  183. package/project/.sdk/tm/clojure/src/sdk/features.clj +74 -22
  184. package/project/.sdk/tm/cpp/core/types.hpp +1 -1
  185. package/project/.sdk/tm/cpp/feature/paging.hpp +36 -3
  186. package/project/.sdk/tm/cpp/feature/test.hpp +58 -19
  187. package/project/.sdk/tm/cpp/utility/pipeline.hpp +16 -4
  188. package/project/.sdk/tm/csharp/core/Context.cs +1 -1
  189. package/project/.sdk/tm/csharp/feature/PagingFeature.cs +58 -4
  190. package/project/.sdk/tm/csharp/feature/TestFeature.cs +23 -25
  191. package/project/.sdk/tm/csharp/utility/Fetcher.cs +19 -12
  192. package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +1 -1
  193. package/project/.sdk/tm/csharp/utility/TransformRequest.cs +23 -3
  194. package/project/.sdk/tm/elixir/lib/projectname/context.ex +1 -1
  195. package/project/.sdk/tm/elixir/lib/projectname/feature/paging.ex +52 -10
  196. package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +58 -22
  197. package/project/.sdk/tm/elixir/lib/projectname/utility.ex +30 -9
  198. package/project/.sdk/tm/go/core/context.go +13 -13
  199. package/project/.sdk/tm/go/feature/paging_feature.go +40 -2
  200. package/project/.sdk/tm/go/feature/test_feature.go +3 -15
  201. package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -0
  202. package/project/.sdk/tm/go/test/feature_test.go +54 -0
  203. package/project/.sdk/tm/go/utility/fetcher.go +41 -20
  204. package/project/.sdk/tm/go/utility/prepare_query.go +1 -1
  205. package/project/.sdk/tm/go/utility/transform_request.go +22 -3
  206. package/project/.sdk/tm/java/core/Context.java +2 -1
  207. package/project/.sdk/tm/java/feature/PagingFeature.java +46 -4
  208. package/project/.sdk/tm/java/feature/TestFeature.java +21 -19
  209. package/project/.sdk/tm/java/test/FeatureCorpusTest.java +3 -0
  210. package/project/.sdk/tm/java/test/FeatureTest.java +42 -0
  211. package/project/.sdk/tm/java/utility/Fetcher.java +36 -28
  212. package/project/.sdk/tm/java/utility/PrepareQuery.java +1 -1
  213. package/project/.sdk/tm/java/utility/TransformRequest.java +18 -3
  214. package/project/.sdk/tm/js/src/Context.js +7 -2
  215. package/project/.sdk/tm/js/src/feature/paging/PagingFeature.js +24 -6
  216. package/project/.sdk/tm/js/src/feature/test/TestFeature.js +7 -5
  217. package/project/.sdk/tm/js/src/utility/PrepareQueryUtility.js +1 -1
  218. package/project/.sdk/tm/js/test/feature/Corpus.test.js +4 -0
  219. package/project/.sdk/tm/js/test/live-entity.js +29 -29
  220. package/project/.sdk/tm/js/test/live-scenarios.js +4 -4
  221. package/project/.sdk/tm/kotlin/core/Context.kt +1 -1
  222. package/project/.sdk/tm/kotlin/feature/PagingFeature.kt +36 -4
  223. package/project/.sdk/tm/kotlin/feature/TestFeature.kt +19 -18
  224. package/project/.sdk/tm/kotlin/utility/Fetcher.kt +33 -24
  225. package/project/.sdk/tm/kotlin/utility/Prepare.kt +1 -1
  226. package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +18 -3
  227. package/project/.sdk/tm/lua/core/context.lua +8 -1
  228. package/project/.sdk/tm/lua/core/control.lua +3 -0
  229. package/project/.sdk/tm/lua/feature/paging_feature.lua +44 -5
  230. package/project/.sdk/tm/lua/feature/test_feature.lua +32 -14
  231. package/project/.sdk/tm/lua/utility/prepare_query.lua +2 -1
  232. package/project/.sdk/tm/lua/utility/transform_request.lua +19 -3
  233. package/project/.sdk/tm/ocaml/sdk_features.ml +78 -25
  234. package/project/.sdk/tm/ocaml/sdk_runtime.ml +23 -8
  235. package/project/.sdk/tm/perl/core/context.pm +2 -1
  236. package/project/.sdk/tm/perl/feature/paging_feature.pm +31 -5
  237. package/project/.sdk/tm/perl/feature/test_feature.pm +52 -20
  238. package/project/.sdk/tm/perl/feature/timeout_feature.pm +17 -13
  239. package/project/.sdk/tm/perl/t/feature_corpus.t +14 -1
  240. package/project/.sdk/tm/perl/utility/fetcher.pm +15 -1
  241. package/project/.sdk/tm/perl/utility/prepare_query.pm +1 -0
  242. package/project/.sdk/tm/perl/utility/transform_request.pm +13 -3
  243. package/project/.sdk/tm/php/core/Context.php +5 -1
  244. package/project/.sdk/tm/php/core/Control.php +5 -0
  245. package/project/.sdk/tm/php/feature/PagingFeature.php +26 -5
  246. package/project/.sdk/tm/php/feature/TestFeature.php +27 -42
  247. package/project/.sdk/tm/php/test/FeatureCorpusTest.php +17 -1
  248. package/project/.sdk/tm/php/test/FeatureTest.php +44 -0
  249. package/project/.sdk/tm/php/utility/Fetcher.php +17 -3
  250. package/project/.sdk/tm/php/utility/PrepareQuery.php +1 -1
  251. package/project/.sdk/tm/php/utility/TransformRequest.php +15 -3
  252. package/project/.sdk/tm/py/pkg/core/context.py +2 -1
  253. package/project/.sdk/tm/py/pkg/feature/paging_feature.py +29 -4
  254. package/project/.sdk/tm/py/pkg/feature/test_feature.py +29 -12
  255. package/project/.sdk/tm/py/pkg/utility/fetcher.py +63 -65
  256. package/project/.sdk/tm/py/pkg/utility/prepare_query.py +2 -1
  257. package/project/.sdk/tm/py/pkg/utility/transform_request.py +11 -3
  258. package/project/.sdk/tm/py/test/test_feature.py +27 -0
  259. package/project/.sdk/tm/py/test/test_feature_corpus.py +11 -1
  260. package/project/.sdk/tm/rb/core/context.rb +1 -1
  261. package/project/.sdk/tm/rb/feature/paging_feature.rb +27 -5
  262. package/project/.sdk/tm/rb/feature/test_feature.rb +39 -11
  263. package/project/.sdk/tm/rb/test/feature_corpus_test.rb +12 -1
  264. package/project/.sdk/tm/rb/test/feature_test.rb +38 -0
  265. package/project/.sdk/tm/rb/utility/fetcher.rb +49 -3
  266. package/project/.sdk/tm/rb/utility/prepare_query.rb +1 -1
  267. package/project/.sdk/tm/rb/utility/transform_request.rb +10 -3
  268. package/project/.sdk/tm/rust/core/context.rs +2 -6
  269. package/project/.sdk/tm/rust/feature/paging.rs +44 -3
  270. package/project/.sdk/tm/rust/feature/secrets.rs +1 -1
  271. package/project/.sdk/tm/rust/feature/test.rs +74 -37
  272. package/project/.sdk/tm/rust/utility/fetcher.rs +41 -14
  273. package/project/.sdk/tm/rust/utility/prepare_query.rs +1 -1
  274. package/project/.sdk/tm/rust/utility/transform_request.rs +31 -5
  275. package/project/.sdk/tm/scala/core/Context.scala +2 -1
  276. package/project/.sdk/tm/scala/feature/PagingFeature.scala +41 -4
  277. package/project/.sdk/tm/scala/feature/TestFeature.scala +21 -18
  278. package/project/.sdk/tm/scala/utility/Fetcher.scala +34 -13
  279. package/project/.sdk/tm/scala/utility/Prepare.scala +1 -1
  280. package/project/.sdk/tm/scala/utility/Transform.scala +19 -3
  281. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +1 -1
  282. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/PagingFeature.swift +31 -4
  283. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +22 -15
  284. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +22 -3
  285. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +1 -1
  286. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +14 -3
  287. package/project/.sdk/tm/ts/src/Context.ts +7 -2
  288. package/project/.sdk/tm/ts/src/feature/paging/PagingFeature.ts +19 -3
  289. package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +3 -0
  290. package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +1 -1
  291. package/project/.sdk/tm/ts/test/feature/Corpus.test.ts +1 -0
  292. package/project/.sdk/tm/ts/test/live-entity.ts +26 -26
  293. package/project/.sdk/tm/ts/test/live-scenarios.ts +3 -3
  294. package/project/.sdk/tm/zig/core/context.zig +1 -1
  295. package/project/.sdk/tm/zig/core/utility.zig +19 -5
  296. package/project/.sdk/tm/zig/feature/paging.zig +34 -4
  297. package/project/.sdk/tm/zig/feature/test.zig +65 -30
  298. package/project/sdkgen-package.json +1 -1
  299. package/src/action/doctor.ts +12 -9
  300. package/src/action/edition.ts +8 -0
  301. package/src/action/feature.ts +7 -1
  302. package/src/action/remove.ts +492 -0
  303. package/src/action/target.ts +8 -1
  304. package/src/cmp/ReadmeTop.ts +1 -1
  305. package/src/cmp/ReadmeUnions.ts +1 -1
  306. package/src/cmp/Test.ts +1 -1
  307. package/src/helpers/buildIdNames.ts +17 -7
  308. package/src/helpers/canonSpec.ts +2 -2
  309. package/src/helpers/getMatchEntries.ts +2 -2
  310. package/src/helpers/modelNames.ts +6 -1
  311. package/src/helpers/opShape.ts +33 -33
  312. package/src/helpers/pointPath.ts +5 -10
  313. package/src/helpers/resolved.ts +3 -14
  314. package/src/sdkgen.ts +3 -1
  315. package/src/utility.ts +16 -7
@@ -1,3 +1,4 @@
1
+ import { flowSteps } from '@voxgig/sdkgen'
1
2
 
2
3
  import {
3
4
  KIT,
@@ -75,16 +76,16 @@ const TestEntity = cmp(function TestEntity(props: any) {
75
76
  const idnamesStr = idnames.map(n => `Value::str("${n}")`).join(', ')
76
77
 
77
78
  // All update data entries for alias generation.
78
- const allSteps = Object.values(basicflow.step) as any[]
79
- const updateStep = allSteps.find((s: any) => s.op === 'update')
80
- const updateData = updateStep?.data
81
- ? Object.entries(updateStep.data).filter(([k]: any) => k !== 'id' && !k.endsWith('$'))
79
+ const allSteps = Object.values(flowSteps(basicflow)) as any[]
80
+ const updateStep = allSteps.find((s: any) => s.o === 'update')
81
+ const updateData = updateStep?.d
82
+ ? Object.entries(updateStep.d).filter(([k]: any) => k !== 'id' && !k.endsWith('$'))
82
83
  : []
83
84
  const aliases = updateData.map(([k, v]: any) => [k, v])
84
85
 
85
86
  const genCtx: GenCtx = { model, entity, rustcrate, flow: basicflow, PROJUPPER }
86
87
 
87
- const opNames = Array.from(new Set(allSteps.map((s: any) => s.op).filter(Boolean)))
88
+ const opNames = Array.from(new Set(allSteps.map((s: any) => s.o).filter(Boolean)))
88
89
  const opsList = opNames.map(o => `"${o}"`).join(', ')
89
90
 
90
91
  // Same hazard as the csharp target: an entity whose basic flow has no ops
@@ -140,7 +141,7 @@ fn ${evar}_entity_instance() {
140
141
  // The stream test drives the list op; only emit it when the entity has a
141
142
  // list op (a create/load-only entity has no list endpoint, so
142
143
  // stream("list") panics with point_no_points).
143
- const flowHasList = allSteps.some((s: any) => 'list' === s.op)
144
+ const flowHasList = allSteps.some((s: any) => 'list' === s.o)
144
145
  if (flowHasList) {
145
146
  Content(`
146
147
  #[test]
@@ -198,7 +199,7 @@ ${skipBlock} // The basic flow consumes synthetic IDs from the fixture. In li
198
199
  ${allSteps.length > 0 ? ' let client = setup.client.clone();\n' : ''}`)
199
200
 
200
201
  // No create step: bootstrap entity data from existing fixture data.
201
- const flowHasCreate = allSteps.some((s: any) => s.op === 'create')
202
+ const flowHasCreate = allSteps.some((s: any) => s.o === 'create')
202
203
  if (!flowHasCreate) {
203
204
  const preambleVar = rustVarName(entity.name + '_ref01')
204
205
  Content(`
@@ -213,8 +214,8 @@ ${allSteps.length > 0 ? ' let client = setup.client.clone();\n' : ''}`)
213
214
  }
214
215
 
215
216
  // Model-driven step iteration.
216
- each(basicflow.step, (step: any, index: any) => {
217
- const opgen: OpGen = GENERATE_OP[step.op]
217
+ each(flowSteps(basicflow), (step: any, index: any) => {
218
+ const opgen: OpGen = GENERATE_OP[step.o]
218
219
  if (opgen) {
219
220
  opgen(genCtx, step, index)
220
221
  Content('\n')
@@ -343,13 +344,13 @@ ${allSteps.length > 0 ? ' let client = setup.client.clone();\n' : ''}`)
343
344
 
344
345
  const generateCreate: OpGen = (ctx, step, index) => {
345
346
  const { entity, flow } = ctx
346
- const ref = step.input.ref ?? entity.name + '_ref01'
347
- const entvar = rustVarName(step.input.entvar ?? ref + '_ent')
348
- const datavar = rustVarName(step.input.datavar ?? (ref + '_data' + (step.input.suffix ?? '')))
347
+ const ref = step.i.ref ?? entity.name + '_ref01'
348
+ const entvar = rustVarName(step.i.entvar ?? ref + '_ent')
349
+ const datavar = rustVarName(step.i.datavar ?? (ref + '_data' + (step.i.suffix ?? '')))
349
350
 
350
- const priorSteps = Object.values(flow.step).slice(0, Number(index)) as any[]
351
+ const priorSteps = Object.values(flowSteps(flow)).slice(0, Number(index)) as any[]
351
352
  const needsEnt = !priorSteps.some((s: any) =>
352
- ['create', 'list', 'load', 'update', 'remove'].includes(s.op))
353
+ ['create', 'list', 'load', 'update', 'remove'].includes(s.o))
353
354
 
354
355
  Content(` // CREATE
355
356
  `)
@@ -393,14 +394,14 @@ const generateCreate: OpGen = (ctx, step, index) => {
393
394
 
394
395
  const generateList: OpGen = (ctx, step, index) => {
395
396
  const { entity, flow } = ctx
396
- const ref = step.input.ref ?? entity.name + '_ref01'
397
- const entvar = rustVarName(step.input.entvar ?? ref + '_ent')
398
- const matchvar = rustVarName(step.input.matchvar ?? (ref + '_match' + (step.input.suffix ?? '')))
399
- const listvar = rustVarName(step.input.listvar ?? (ref + '_list' + (step.input.suffix ?? '')))
397
+ const ref = step.i.ref ?? entity.name + '_ref01'
398
+ const entvar = rustVarName(step.i.entvar ?? ref + '_ent')
399
+ const matchvar = rustVarName(step.i.matchvar ?? (ref + '_match' + (step.i.suffix ?? '')))
400
+ const listvar = rustVarName(step.i.listvar ?? (ref + '_list' + (step.i.suffix ?? '')))
400
401
 
401
- const priorSteps = Object.values(flow.step).slice(0, Number(index)) as any[]
402
+ const priorSteps = Object.values(flowSteps(flow)).slice(0, Number(index)) as any[]
402
403
  const needsEnt = !priorSteps.some((s: any) =>
403
- ['create', 'list', 'load', 'update', 'remove'].includes(s.op))
404
+ ['create', 'list', 'load', 'update', 'remove'].includes(s.o))
404
405
 
405
406
  Content(` // LIST
406
407
  `)
@@ -432,13 +433,13 @@ const generateList: OpGen = (ctx, step, index) => {
432
433
  let ${listvar} = ja(${listvar}.iter().map(|e| e.data(None)).collect::<Vec<Value>>());
433
434
  `)
434
435
 
435
- // Validators from step.valid.
436
- const allSteps = Object.values(flow.step) as any[]
437
- if (step.valid) {
438
- for (const validator of (step as any).valid) {
436
+ // Validators from step.v.
437
+ const allSteps = Object.values(flowSteps(flow)) as any[]
438
+ if (step.v) {
439
+ for (const validator of (step as any).v) {
439
440
  const validRef = validator.def?.ref
440
- const hasRefData = validRef && allSteps.some((s: any) => 'create' === s.op &&
441
- ((s.input.ref ?? entity.name + '_ref01') === validRef))
441
+ const hasRefData = validRef && allSteps.some((s: any) => 'create' === s.o &&
442
+ ((s.i.ref ?? entity.name + '_ref01') === validRef))
442
443
 
443
444
  if ('ItemExists' === validator.apply && hasRefData) {
444
445
  const refDataVar = rustVarName(validRef + '_data')
@@ -472,16 +473,16 @@ const generateList: OpGen = (ctx, step, index) => {
472
473
 
473
474
  const generateUpdate: OpGen = (ctx, step, index) => {
474
475
  const { entity, flow } = ctx
475
- const ref = step.input.ref ?? entity.name + '_ref01'
476
- const entvar = rustVarName(step.input.entvar ?? ref + '_ent')
477
- const datavar = rustVarName(step.input.datavar ?? (ref + '_data' + (step.input.suffix ?? '')))
478
- const resdatavar = rustVarName(step.input.resdatavar ?? (ref + '_resdata' + (step.input.suffix ?? '')))
479
- const markdefvar = rustVarName(step.input.markdefvar ?? (ref + '_markdef' + (step.input.suffix ?? '')))
480
- const srcdatavar = rustVarName(step.input.srcdatavar ?? (ref + '_data' + (step.input.suffix ?? '')))
481
-
482
- const priorSteps = Object.values(flow.step).slice(0, Number(index)) as any[]
476
+ const ref = step.i.ref ?? entity.name + '_ref01'
477
+ const entvar = rustVarName(step.i.entvar ?? ref + '_ent')
478
+ const datavar = rustVarName(step.i.datavar ?? (ref + '_data' + (step.i.suffix ?? '')))
479
+ const resdatavar = rustVarName(step.i.resdatavar ?? (ref + '_resdata' + (step.i.suffix ?? '')))
480
+ const markdefvar = rustVarName(step.i.markdefvar ?? (ref + '_markdef' + (step.i.suffix ?? '')))
481
+ const srcdatavar = rustVarName(step.i.srcdatavar ?? (ref + '_data' + (step.i.suffix ?? '')))
482
+
483
+ const priorSteps = Object.values(flowSteps(flow)).slice(0, Number(index)) as any[]
483
484
  const needsEnt = !priorSteps.some((s: any) =>
484
- ['create', 'list', 'load', 'update', 'remove'].includes(s.op))
485
+ ['create', 'list', 'load', 'update', 'remove'].includes(s.o))
485
486
 
486
487
  const hasEntIdU = null != entity.id
487
488
 
@@ -498,9 +499,9 @@ const generateUpdate: OpGen = (ctx, step, index) => {
498
499
  `)
499
500
  }
500
501
 
501
- // Data entries from step.data.
502
- if (step.data) {
503
- const dataEntries = Object.entries(step.data).filter(([k]: any) => k !== 'id' && !k.endsWith('$'))
502
+ // Data entries from step.d.
503
+ if (step.d) {
504
+ const dataEntries = Object.entries(step.d).filter(([k]: any) => k !== 'id' && !k.endsWith('$'))
504
505
  for (const [key] of dataEntries) {
505
506
  Content(` setp(&${datavar}_up, "${key}", getp(&setup.idmap, "${key}"));
506
507
  `)
@@ -508,10 +509,10 @@ const generateUpdate: OpGen = (ctx, step, index) => {
508
509
  }
509
510
 
510
511
  // TextFieldMark spec.
511
- if (step.spec) {
512
- for (const spec of (step as any).spec) {
513
- if ('TextFieldMark' === spec.apply && null != step.input.textfield) {
514
- const fieldname = step.input.textfield
512
+ if (step.s) {
513
+ for (const spec of (step as any).s) {
514
+ if ('TextFieldMark' === spec.apply && null != step.i.textfield) {
515
+ const fieldname = step.i.textfield
515
516
  const fieldvalue = spec.def?.mark ?? `Mark01-${ref}`
516
517
  Content(`
517
518
  let ${markdefvar}_name = "${fieldname}";
@@ -546,9 +547,9 @@ const generateUpdate: OpGen = (ctx, step, index) => {
546
547
  }
547
548
 
548
549
  // Assert TextFieldMark.
549
- if (step.spec) {
550
- for (const spec of (step as any).spec) {
551
- if ('TextFieldMark' === spec.apply && null != step.input.textfield) {
550
+ if (step.s) {
551
+ for (const spec of (step as any).s) {
552
+ if ('TextFieldMark' === spec.apply && null != step.i.textfield) {
552
553
  Content(` assert_eq!(
553
554
  getp(&${resdatavar}, ${markdefvar}_name),
554
555
  Value::str(${markdefvar}_value.clone()),
@@ -564,24 +565,24 @@ const generateUpdate: OpGen = (ctx, step, index) => {
564
565
 
565
566
  const generateLoad: OpGen = (ctx, step, index) => {
566
567
  const { entity, flow } = ctx
567
- const ref = step.input.ref ?? entity.name + '_ref01'
568
- const entvar = rustVarName(step.input.entvar ?? ref + '_ent')
569
- const matchvar = rustVarName(step.input.matchvar ?? (ref + '_match' + (step.input.suffix ?? '')))
570
- const datavar = rustVarName(step.input.datavar ?? (ref + '_data' + (step.input.suffix ?? '')))
571
- const srcdatavar = rustVarName(step.input.srcdatavar ?? (ref + '_data' + (step.input.suffix ?? '')))
568
+ const ref = step.i.ref ?? entity.name + '_ref01'
569
+ const entvar = rustVarName(step.i.entvar ?? ref + '_ent')
570
+ const matchvar = rustVarName(step.i.matchvar ?? (ref + '_match' + (step.i.suffix ?? '')))
571
+ const datavar = rustVarName(step.i.datavar ?? (ref + '_data' + (step.i.suffix ?? '')))
572
+ const srcdatavar = rustVarName(step.i.srcdatavar ?? (ref + '_data' + (step.i.suffix ?? '')))
572
573
 
573
- const priorSteps = Object.values(flow.step).slice(0, Number(index)) as any[]
574
+ const priorSteps = Object.values(flowSteps(flow)).slice(0, Number(index)) as any[]
574
575
  const hasEntVar = priorSteps.some((s: any) =>
575
- ['create', 'list', 'load', 'update', 'remove'].includes(s.op))
576
+ ['create', 'list', 'load', 'update', 'remove'].includes(s.o))
576
577
 
577
578
  // Was srcdatavar declared by a prior create step or the preamble?
578
- const flowHasCreate = Object.values(flow.step).some((s: any) => (s as any).op === 'create')
579
+ const flowHasCreate = Object.values(flowSteps(flow)).some((s: any) => (s as any).o === 'create')
579
580
  const preambleRef = entity.name + '_ref01'
580
581
  const hasSrcData = (!flowHasCreate && srcdatavar === rustVarName(preambleRef + '_data')) ||
581
582
  priorSteps.some((s: any) => {
582
- if ('create' === s.op) {
583
- const priorRef = s.input.ref ?? entity.name + '_ref01'
584
- const priorDatvar = rustVarName(s.input.datavar ?? (priorRef + '_data' + (s.input.suffix ?? '')))
583
+ if ('create' === s.o) {
584
+ const priorRef = s.i.ref ?? entity.name + '_ref01'
585
+ const priorDatvar = rustVarName(s.i.datavar ?? (priorRef + '_data' + (s.i.suffix ?? '')))
585
586
  return priorDatvar === srcdatavar
586
587
  }
587
588
  return false
@@ -638,14 +639,14 @@ const generateLoad: OpGen = (ctx, step, index) => {
638
639
 
639
640
  const generateRemove: OpGen = (ctx, step, index) => {
640
641
  const { entity, flow } = ctx
641
- const ref = step.input.ref ?? entity.name + '_ref01'
642
- const entvar = rustVarName(step.input.entvar ?? ref + '_ent')
643
- const matchvar = rustVarName(step.input.matchvar ?? (ref + '_match' + (step.input.suffix ?? '')))
644
- const srcdatavar = rustVarName(step.input.srcdatavar ?? (ref + '_data'))
642
+ const ref = step.i.ref ?? entity.name + '_ref01'
643
+ const entvar = rustVarName(step.i.entvar ?? ref + '_ent')
644
+ const matchvar = rustVarName(step.i.matchvar ?? (ref + '_match' + (step.i.suffix ?? '')))
645
+ const srcdatavar = rustVarName(step.i.srcdatavar ?? (ref + '_data'))
645
646
 
646
- const priorSteps = Object.values(flow.step).slice(0, Number(index)) as any[]
647
+ const priorSteps = Object.values(flowSteps(flow)).slice(0, Number(index)) as any[]
647
648
  const needsEnt = !priorSteps.some((s: any) =>
648
- ['create', 'list', 'load', 'update', 'remove'].includes(s.op))
649
+ ['create', 'list', 'load', 'update', 'remove'].includes(s.o))
649
650
 
650
651
  Content(` // REMOVE
651
652
  `)
@@ -101,8 +101,8 @@ const EntityTypes = cmp(function EntityTypes(props: any) {
101
101
 
102
102
  // Typed reference models for the ${model.const.Name} SDK.
103
103
  //
104
- // GENERATED from the API model: main.${KIT}.entity.<e>.fields[] and per-op
105
- // params (op.<name>.points[].args.params[]). Field/param types come from the
104
+ // GENERATED from the API model: main.${KIT}.entity.<e>.fields{} and per-op
105
+ // params (op.<name>.points[].g.params[]). Field/param types come from the
106
106
  // canonical type sentinels (source of truth: @voxgig/apidef VALID_CANON). Do
107
107
  // not edit by hand.
108
108
  //
@@ -120,10 +120,10 @@ object ${model.const.Name}Types {
120
120
  entityList.forEach((ent: any) => {
121
121
  const Name = ent.Name
122
122
  const fields = (ent.fields ? each(ent.fields) : [])
123
- .filter((f: any) => f.active !== false)
123
+ .filter((f: any) => f.a !== false)
124
124
 
125
125
  emitCaseClass(Name, fields.map((f: any) => ({
126
- name: f.name, type: f.type,
126
+ name: f.n, type: f.t,
127
127
  })), log)
128
128
 
129
129
  const ops = ent.op || {}
@@ -54,7 +54,7 @@ const ReadmeEntity = cmp(function ReadmeEntity(props: any) {
54
54
 
55
55
  publishedEntities.map((entity: any) => {
56
56
  const opnames = Object.keys(entity.op || {})
57
- const fields = entity.fields || []
57
+ const fields = Object.values(entity.fields || {})
58
58
  // Model-driven id key: null when this entity has no id-like field.
59
59
  const idF = entityIdField(entity)
60
60
  // Sanitise the local variable name — a camelCased Scala keyword gets a
@@ -103,8 +103,8 @@ const ReadmeEntity = cmp(function ReadmeEntity(props: any) {
103
103
  `)
104
104
 
105
105
  each(fields, (field: any) => {
106
- const desc = field.short || ''
107
- Content(`| \`${field.name}\` | \`${canonToType(field.type, target.name)}\` | ${desc} |
106
+ const desc = field.sh || ''
107
+ Content(`| \`${field.n}\` | \`${canonToType(field.t, target.name)}\` | ${desc} |
108
108
  `)
109
109
  })
110
110
 
@@ -116,13 +116,13 @@ On error, \`ok\` is \`false\` and \`err\` contains the error value.
116
116
 
117
117
  `)
118
118
  each(entityList, (ent: any) => {
119
- const fields = ent.fields || []
119
+ const fields = Object.values(ent.fields || {})
120
120
  const opnames = Object.keys(ent.op || {})
121
121
  const ops = ent.op || {}
122
122
  const points = each(ops).map((op: any) =>
123
123
  op.points ? each(op.points) : []
124
124
  ).flat()
125
- const path = points.length > 0 ? (points[0] as any).orig || '' : ''
125
+ const path = points.length > 0 ? (points[0] as any).o || '' : ''
126
126
 
127
127
  Content(`#### ${ent.Name}
128
128
 
@@ -130,7 +130,7 @@ On error, \`ok\` is \`false\` and \`err\` contains the error value.
130
130
  | --- | --- |
131
131
  `)
132
132
  each(fields, (field: any) => {
133
- Content(`| \`${field.name}\` | ${field.short || ''} |
133
+ Content(`| \`${field.n}\` | ${field.sh || ''} |
134
134
  `)
135
135
  })
136
136
 
@@ -170,7 +170,7 @@ Prepare a fetch definition without sending. Returns the \`fetchdef\` and raises
170
170
  // Entity reference sections
171
171
  publishedEntities.map((ent: any) => {
172
172
  const opnames = Object.keys(ent.op || {})
173
- const fields = ent.fields || []
173
+ const fields = Object.values(ent.fields || {})
174
174
  // Model-driven id key: null when this entity has no id-like field.
175
175
  const idF = entityIdField(ent)
176
176
  // Sanitise the local variable name — scalaVarName guards Scala keywords.
@@ -205,9 +205,9 @@ val ${eVar} = client.${accessor}(null)
205
205
  | --- | --- | --- | --- |
206
206
  `)
207
207
  each(fields, (field: any) => {
208
- const req = field.req ? 'Yes' : 'No'
209
- const desc = field.short || ''
210
- Content(`| \`${field.name}\` | \`${canonToType(field.type, target.name)}\` | ${req} | ${desc} |
208
+ const req = field.r ? 'Yes' : 'No'
209
+ const desc = field.sh || ''
210
+ Content(`| \`${field.n}\` | \`${canonToType(field.t, target.name)}\` | ${req} | ${desc} |
211
211
  `)
212
212
  })
213
213
 
@@ -232,7 +232,7 @@ val ${eVar} = client.${accessor}(null)
232
232
  if (fop.active === false) return '-'
233
233
  return 'Yes'
234
234
  })
235
- Content(`| \`${field.name}\` | ${cols.join(' | ')} |
235
+ Content(`| \`${field.n}\` | ${cols.join(' | ')} |
236
236
  `)
237
237
  })
238
238
 
@@ -41,7 +41,7 @@ import ${scalapackage}.utility.Json
41
41
  // ${model.const.Name} ${target.Name} SDK: generated schemas. Do not edit.
42
42
  //
43
43
  // Generated from the model: \`main.kit.optspec\` and each feature's
44
- // \`config.options\` for the option spec; entity \`fields[].type\` for the
44
+ // \`config.options\` for the option spec; entity \`fields{}.type\` for the
45
45
  // entity specs.
46
46
  object Schema {
47
47
 
@@ -29,10 +29,10 @@ function normalizePathParams(
29
29
  const snaked = snakify(rawName)
30
30
  const depluralized = depluralize(snaked)
31
31
  const param = params.find((p: any) =>
32
- p.name === snaked || p.name === depluralized) ||
32
+ p.n === snaked || p.n === depluralized) ||
33
33
  params.find((p: any) =>
34
- p.orig === snaked || p.orig === depluralized)
35
- if (param) return '{' + param.name + '}'
34
+ p.or === snaked || p.or === depluralized)
35
+ if (param) return '{' + param.n + '}'
36
36
 
37
37
  if (rename) {
38
38
  for (const [origCamel, renamedTo] of Object.entries(rename)) {
@@ -40,10 +40,10 @@ function normalizePathParams(
40
40
  const origSnaked = snakify(origCamel)
41
41
  const origDepluralized = depluralize(origSnaked)
42
42
  const renamedParam = params.find(
43
- (p: any) => p.orig === origSnaked || p.name === origSnaked ||
44
- p.orig === origDepluralized || p.name === origDepluralized
43
+ (p: any) => p.or === origSnaked || p.n === origSnaked ||
44
+ p.or === origDepluralized || p.n === origDepluralized
45
45
  )
46
- if (renamedParam) return '{' + renamedParam.name + '}'
46
+ if (renamedParam) return '{' + renamedParam.n + '}'
47
47
  }
48
48
  }
49
49
  }
@@ -80,9 +80,9 @@ const TestDirect = cmp(function TestDirect(props: any) {
80
80
  // Load point info.
81
81
  const loadPoint = loadOp?.points?.[0]
82
82
  const loadPath = loadPoint
83
- ? normalizePathParams(pointParts(loadPoint), loadPoint?.args?.params || [], loadPoint?.rename?.param)
83
+ ? normalizePathParams(pointParts(loadPoint), loadPoint?.g?.params || [], loadPoint?.r?.param)
84
84
  : ''
85
- const allLoadParams = loadPoint?.args?.params || []
85
+ const allLoadParams = loadPoint?.g?.params || []
86
86
  // Only path params that actually appear in the URL template drive the
87
87
  // direct-test path-param setup and URL-substitution asserts.
88
88
  const _pathPlaceholders = new Set<string>()
@@ -91,7 +91,7 @@ const TestDirect = cmp(function TestDirect(props: any) {
91
91
  _pathPlaceholders.add(part.slice(1, -1))
92
92
  }
93
93
  }
94
- const _renameMap = (loadPoint?.rename?.param || {}) as Record<string, string>
94
+ const _renameMap = (loadPoint?.r?.param || {}) as Record<string, string>
95
95
  const _renamedPlaceholders = new Set<string>()
96
96
  for (const ph of _pathPlaceholders) {
97
97
  _renamedPlaceholders.add(ph)
@@ -100,14 +100,14 @@ const TestDirect = cmp(function TestDirect(props: any) {
100
100
  }
101
101
  }
102
102
  const loadParams = allLoadParams.filter((p: any) =>
103
- _renamedPlaceholders.has(p.name) || _renamedPlaceholders.has(p.orig))
103
+ _renamedPlaceholders.has(p.n) || _renamedPlaceholders.has(p.or))
104
104
 
105
105
  // List point info.
106
106
  const listPoint = listOp?.points?.[0]
107
107
  const listPath = listPoint
108
- ? normalizePathParams(pointParts(listPoint), listPoint?.args?.params || [], listPoint?.rename?.param)
108
+ ? normalizePathParams(pointParts(listPoint), listPoint?.g?.params || [], listPoint?.r?.param)
109
109
  : ''
110
- const listParams = listPoint?.args?.params || []
110
+ const listParams = listPoint?.g?.params || []
111
111
 
112
112
  File({ name: EntityName + 'DirectTest.' + target.ext }, () => {
113
113
 
@@ -158,7 +158,7 @@ object ${EntityName}DirectTest {
158
158
  val params = new LinkedHashMap[String, Object]()
159
159
  `)
160
160
  listParams.forEach((p: any, i: number) => {
161
- Content(` params.put("${p.name}", "direct0${i + 1}")
161
+ Content(` params.put("${p.n}", "direct0${i + 1}")
162
162
  `)
163
163
  })
164
164
  Content(` val result = client.direct(SdkTestSupport.om(
@@ -195,7 +195,7 @@ object ${EntityName}DirectTest {
195
195
  val params = new LinkedHashMap[String, Object]()
196
196
  `)
197
197
  loadParams.forEach((p: any, i: number) => {
198
- Content(` params.put("${p.name}", "direct0${i + 1}")
198
+ Content(` params.put("${p.n}", "direct0${i + 1}")
199
199
  `)
200
200
  })
201
201
  Content(` val result = client.direct(SdkTestSupport.om(