@servicenow/sdk-build-plugins 4.2.0 → 4.4.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 (349) hide show
  1. package/dist/acl-plugin.js +11 -0
  2. package/dist/acl-plugin.js.map +1 -1
  3. package/dist/applicability-plugin.d.ts +2 -0
  4. package/dist/applicability-plugin.js +72 -0
  5. package/dist/applicability-plugin.js.map +1 -0
  6. package/dist/atf/test-plugin.js +5 -2
  7. package/dist/atf/test-plugin.js.map +1 -1
  8. package/dist/basic-syntax-plugin.js +7 -1
  9. package/dist/basic-syntax-plugin.js.map +1 -1
  10. package/dist/business-rule-plugin.js +1 -0
  11. package/dist/business-rule-plugin.js.map +1 -1
  12. package/dist/call-expression-plugin.js +1 -107
  13. package/dist/call-expression-plugin.js.map +1 -1
  14. package/dist/column/column-to-record.d.ts +10 -3
  15. package/dist/column/column-to-record.js +44 -7
  16. package/dist/column/column-to-record.js.map +1 -1
  17. package/dist/column-plugin.d.ts +3 -1
  18. package/dist/column-plugin.js +12 -12
  19. package/dist/column-plugin.js.map +1 -1
  20. package/dist/dashboard/dashboard-component-property-defaults.d.ts +152 -0
  21. package/dist/dashboard/dashboard-component-property-defaults.js +264 -0
  22. package/dist/dashboard/dashboard-component-property-defaults.js.map +1 -0
  23. package/dist/dashboard/dashboard-component-resolver.d.ts +13 -0
  24. package/dist/dashboard/dashboard-component-resolver.js +69 -0
  25. package/dist/dashboard/dashboard-component-resolver.js.map +1 -0
  26. package/dist/dashboard/dashboard-plugin.d.ts +12 -0
  27. package/dist/dashboard/dashboard-plugin.js +397 -0
  28. package/dist/dashboard/dashboard-plugin.js.map +1 -0
  29. package/dist/data-plugin.d.ts +3 -0
  30. package/dist/data-plugin.js +61 -113
  31. package/dist/data-plugin.js.map +1 -1
  32. package/dist/email-notification-plugin.d.ts +2 -0
  33. package/dist/email-notification-plugin.js +541 -0
  34. package/dist/email-notification-plugin.js.map +1 -0
  35. package/dist/flow/constants/flow-plugin-constants.d.ts +58 -0
  36. package/dist/flow/constants/flow-plugin-constants.js +70 -0
  37. package/dist/flow/constants/flow-plugin-constants.js.map +1 -0
  38. package/dist/flow/flow-logic/flow-logic-constants.d.ts +38 -0
  39. package/dist/flow/flow-logic/flow-logic-constants.js +118 -0
  40. package/dist/flow/flow-logic/flow-logic-constants.js.map +1 -0
  41. package/dist/flow/flow-logic/flow-logic-diagnostics.d.ts +19 -0
  42. package/dist/flow/flow-logic/flow-logic-diagnostics.js +503 -0
  43. package/dist/flow/flow-logic/flow-logic-diagnostics.js.map +1 -0
  44. package/dist/flow/flow-logic/flow-logic-plugin-helpers.d.ts +62 -0
  45. package/dist/flow/flow-logic/flow-logic-plugin-helpers.js +2092 -0
  46. package/dist/flow/flow-logic/flow-logic-plugin-helpers.js.map +1 -0
  47. package/dist/flow/flow-logic/flow-logic-plugin.d.ts +52 -0
  48. package/dist/flow/flow-logic/flow-logic-plugin.js +283 -0
  49. package/dist/flow/flow-logic/flow-logic-plugin.js.map +1 -0
  50. package/dist/flow/flow-logic/flow-logic-shapes.d.ts +104 -0
  51. package/dist/flow/flow-logic/flow-logic-shapes.js +201 -0
  52. package/dist/flow/flow-logic/flow-logic-shapes.js.map +1 -0
  53. package/dist/flow/plugins/approval-rules-plugin.d.ts +2 -0
  54. package/dist/flow/plugins/approval-rules-plugin.js +49 -0
  55. package/dist/flow/plugins/approval-rules-plugin.js.map +1 -0
  56. package/dist/flow/plugins/flow-action-definition-plugin.d.ts +2 -0
  57. package/dist/flow/plugins/flow-action-definition-plugin.js +286 -0
  58. package/dist/flow/plugins/flow-action-definition-plugin.js.map +1 -0
  59. package/dist/flow/plugins/flow-data-pill-plugin.d.ts +9 -0
  60. package/dist/flow/plugins/flow-data-pill-plugin.js +212 -0
  61. package/dist/flow/plugins/flow-data-pill-plugin.js.map +1 -0
  62. package/dist/flow/plugins/flow-definition-plugin.d.ts +2 -0
  63. package/dist/flow/plugins/flow-definition-plugin.js +1668 -0
  64. package/dist/flow/plugins/flow-definition-plugin.js.map +1 -0
  65. package/dist/flow/plugins/flow-diagnostics-plugin.d.ts +26 -0
  66. package/dist/flow/plugins/flow-diagnostics-plugin.js +217 -0
  67. package/dist/flow/plugins/flow-diagnostics-plugin.js.map +1 -0
  68. package/dist/flow/plugins/flow-instance-plugin.d.ts +12 -0
  69. package/dist/flow/plugins/flow-instance-plugin.js +1205 -0
  70. package/dist/flow/plugins/flow-instance-plugin.js.map +1 -0
  71. package/dist/flow/plugins/flow-trigger-instance-plugin.d.ts +2 -0
  72. package/dist/flow/plugins/flow-trigger-instance-plugin.js +338 -0
  73. package/dist/flow/plugins/flow-trigger-instance-plugin.js.map +1 -0
  74. package/dist/flow/plugins/inline-script-plugin.d.ts +39 -0
  75. package/dist/flow/plugins/inline-script-plugin.js +80 -0
  76. package/dist/flow/plugins/inline-script-plugin.js.map +1 -0
  77. package/dist/flow/plugins/step-definition-plugin.d.ts +5 -0
  78. package/dist/flow/plugins/step-definition-plugin.js +71 -0
  79. package/dist/flow/plugins/step-definition-plugin.js.map +1 -0
  80. package/dist/flow/plugins/step-instance-plugin.d.ts +31 -0
  81. package/dist/flow/plugins/step-instance-plugin.js +339 -0
  82. package/dist/flow/plugins/step-instance-plugin.js.map +1 -0
  83. package/dist/flow/plugins/trigger-plugin.d.ts +2 -0
  84. package/dist/flow/plugins/trigger-plugin.js +96 -0
  85. package/dist/flow/plugins/trigger-plugin.js.map +1 -0
  86. package/dist/flow/plugins/wfa-datapill-plugin.d.ts +15 -0
  87. package/dist/flow/plugins/wfa-datapill-plugin.js +178 -0
  88. package/dist/flow/plugins/wfa-datapill-plugin.js.map +1 -0
  89. package/dist/flow/utils/approval-rules-processor.d.ts +13 -0
  90. package/dist/flow/utils/approval-rules-processor.js +267 -0
  91. package/dist/flow/utils/approval-rules-processor.js.map +1 -0
  92. package/dist/flow/utils/built-in-complex-objects.d.ts +19 -0
  93. package/dist/flow/utils/built-in-complex-objects.js +62 -0
  94. package/dist/flow/utils/built-in-complex-objects.js.map +1 -0
  95. package/dist/flow/utils/complex-object-resolver.d.ts +8 -0
  96. package/dist/flow/utils/complex-object-resolver.js +614 -0
  97. package/dist/flow/utils/complex-object-resolver.js.map +1 -0
  98. package/dist/flow/utils/complex-objects.d.ts +36 -0
  99. package/dist/flow/utils/complex-objects.js +481 -0
  100. package/dist/flow/utils/complex-objects.js.map +1 -0
  101. package/dist/flow/utils/data-pill-shapes.d.ts +58 -0
  102. package/dist/flow/utils/data-pill-shapes.js +135 -0
  103. package/dist/flow/utils/data-pill-shapes.js.map +1 -0
  104. package/dist/flow/utils/datapill-transformer.d.ts +110 -0
  105. package/dist/flow/utils/datapill-transformer.js +503 -0
  106. package/dist/flow/utils/datapill-transformer.js.map +1 -0
  107. package/dist/flow/utils/flow-constants.d.ts +72 -0
  108. package/dist/flow/utils/flow-constants.js +230 -0
  109. package/dist/flow/utils/flow-constants.js.map +1 -0
  110. package/dist/flow/utils/flow-io-to-record.d.ts +44 -0
  111. package/dist/flow/utils/flow-io-to-record.js +409 -0
  112. package/dist/flow/utils/flow-io-to-record.js.map +1 -0
  113. package/dist/flow/utils/flow-shapes.d.ts +161 -0
  114. package/dist/flow/utils/flow-shapes.js +255 -0
  115. package/dist/flow/utils/flow-shapes.js.map +1 -0
  116. package/dist/flow/utils/flow-to-xml.d.ts +16 -0
  117. package/dist/flow/utils/flow-to-xml.js +237 -0
  118. package/dist/flow/utils/flow-to-xml.js.map +1 -0
  119. package/dist/flow/utils/flow-variable-processor.d.ts +51 -0
  120. package/dist/flow/utils/flow-variable-processor.js +69 -0
  121. package/dist/flow/utils/flow-variable-processor.js.map +1 -0
  122. package/dist/flow/utils/label-cache-parser.d.ts +7 -0
  123. package/dist/flow/utils/label-cache-parser.js +24 -0
  124. package/dist/flow/utils/label-cache-parser.js.map +1 -0
  125. package/dist/flow/utils/label-cache-processor.d.ts +119 -0
  126. package/dist/flow/utils/label-cache-processor.js +719 -0
  127. package/dist/flow/utils/label-cache-processor.js.map +1 -0
  128. package/dist/flow/utils/pill-string-parser.d.ts +88 -0
  129. package/dist/flow/utils/pill-string-parser.js +306 -0
  130. package/dist/flow/utils/pill-string-parser.js.map +1 -0
  131. package/dist/flow/utils/schema-to-flow-object.d.ts +22 -0
  132. package/dist/flow/utils/schema-to-flow-object.js +318 -0
  133. package/dist/flow/utils/schema-to-flow-object.js.map +1 -0
  134. package/dist/flow/utils/service-catalog.d.ts +47 -0
  135. package/dist/flow/utils/service-catalog.js +137 -0
  136. package/dist/flow/utils/service-catalog.js.map +1 -0
  137. package/dist/flow/utils/utils.d.ts +117 -0
  138. package/dist/flow/utils/utils.js +345 -0
  139. package/dist/flow/utils/utils.js.map +1 -0
  140. package/dist/index.d.ts +20 -1
  141. package/dist/index.js +21 -1
  142. package/dist/index.js.map +1 -1
  143. package/dist/list-plugin.js +1 -1
  144. package/dist/list-plugin.js.map +1 -1
  145. package/dist/now-attach-plugin.d.ts +1 -0
  146. package/dist/now-attach-plugin.js +10 -10
  147. package/dist/now-attach-plugin.js.map +1 -1
  148. package/dist/now-ref-plugin.js +1 -1
  149. package/dist/now-ref-plugin.js.map +1 -1
  150. package/dist/record-plugin.d.ts +29 -0
  151. package/dist/record-plugin.js +66 -7
  152. package/dist/record-plugin.js.map +1 -1
  153. package/dist/repack/index.d.ts +2 -0
  154. package/dist/repack/index.js +8 -0
  155. package/dist/repack/index.js.map +1 -1
  156. package/dist/rest-api-plugin.js +54 -44
  157. package/dist/rest-api-plugin.js.map +1 -1
  158. package/dist/server-module-plugin/index.d.ts +10 -0
  159. package/dist/server-module-plugin/index.js +83 -59
  160. package/dist/server-module-plugin/index.js.map +1 -1
  161. package/dist/service-catalog/catalog-clientscript-plugin.d.ts +2 -0
  162. package/dist/service-catalog/catalog-clientscript-plugin.js +117 -0
  163. package/dist/service-catalog/catalog-clientscript-plugin.js.map +1 -0
  164. package/dist/service-catalog/catalog-item-plugin.d.ts +2 -0
  165. package/dist/service-catalog/catalog-item-plugin.js +115 -0
  166. package/dist/service-catalog/catalog-item-plugin.js.map +1 -0
  167. package/dist/service-catalog/catalog-ui-policy-plugin.d.ts +2 -0
  168. package/dist/service-catalog/catalog-ui-policy-plugin.js +266 -0
  169. package/dist/service-catalog/catalog-ui-policy-plugin.js.map +1 -0
  170. package/dist/service-catalog/index.d.ts +5 -0
  171. package/dist/service-catalog/index.js +22 -0
  172. package/dist/service-catalog/index.js.map +1 -0
  173. package/dist/service-catalog/record-to-shape.d.ts +6 -0
  174. package/dist/service-catalog/record-to-shape.js +93 -0
  175. package/dist/service-catalog/record-to-shape.js.map +1 -0
  176. package/dist/service-catalog/sc-record-producer-plugin.d.ts +2 -0
  177. package/dist/service-catalog/sc-record-producer-plugin.js +140 -0
  178. package/dist/service-catalog/sc-record-producer-plugin.js.map +1 -0
  179. package/dist/service-catalog/service-catalog-base.d.ts +311 -0
  180. package/dist/service-catalog/service-catalog-base.js +542 -0
  181. package/dist/service-catalog/service-catalog-base.js.map +1 -0
  182. package/dist/service-catalog/service-catalog-diagnostics.d.ts +45 -0
  183. package/dist/service-catalog/service-catalog-diagnostics.js +172 -0
  184. package/dist/service-catalog/service-catalog-diagnostics.js.map +1 -0
  185. package/dist/service-catalog/shape-to-record.d.ts +8 -0
  186. package/dist/service-catalog/shape-to-record.js +235 -0
  187. package/dist/service-catalog/shape-to-record.js.map +1 -0
  188. package/dist/service-catalog/utils.d.ts +323 -0
  189. package/dist/service-catalog/utils.js +1216 -0
  190. package/dist/service-catalog/utils.js.map +1 -0
  191. package/dist/service-catalog/variable-helper.d.ts +43 -0
  192. package/dist/service-catalog/variable-helper.js +92 -0
  193. package/dist/service-catalog/variable-helper.js.map +1 -0
  194. package/dist/service-catalog/variable-set-plugin.d.ts +2 -0
  195. package/dist/service-catalog/variable-set-plugin.js +175 -0
  196. package/dist/service-catalog/variable-set-plugin.js.map +1 -0
  197. package/dist/service-catalog/variables-transform.d.ts +139 -0
  198. package/dist/service-catalog/variables-transform.js +403 -0
  199. package/dist/service-catalog/variables-transform.js.map +1 -0
  200. package/dist/sla/sla-validators.d.ts +61 -0
  201. package/dist/sla/sla-validators.js +224 -0
  202. package/dist/sla/sla-validators.js.map +1 -0
  203. package/dist/sla-plugin.d.ts +5 -0
  204. package/dist/sla-plugin.js +280 -0
  205. package/dist/sla-plugin.js.map +1 -0
  206. package/dist/static-content-plugin.js +25 -2
  207. package/dist/static-content-plugin.js.map +1 -1
  208. package/dist/table-plugin.js +32 -15
  209. package/dist/table-plugin.js.map +1 -1
  210. package/dist/ui-page-plugin.js +832 -19
  211. package/dist/ui-page-plugin.js.map +1 -1
  212. package/dist/ui-policy-plugin.js +5 -7
  213. package/dist/ui-policy-plugin.js.map +1 -1
  214. package/dist/utils.d.ts +10 -1
  215. package/dist/utils.js +16 -0
  216. package/dist/utils.js.map +1 -1
  217. package/dist/ux-list-menu-config-plugin.d.ts +2 -0
  218. package/dist/ux-list-menu-config-plugin.js +292 -0
  219. package/dist/ux-list-menu-config-plugin.js.map +1 -0
  220. package/dist/workspace-plugin/chrome-tab.d.ts +2 -0
  221. package/dist/workspace-plugin/chrome-tab.js +46 -0
  222. package/dist/workspace-plugin/chrome-tab.js.map +1 -0
  223. package/dist/workspace-plugin/constants.d.ts +52 -0
  224. package/dist/workspace-plugin/constants.js +56 -0
  225. package/dist/workspace-plugin/constants.js.map +1 -0
  226. package/dist/workspace-plugin/fluent-utils.d.ts +9 -0
  227. package/dist/workspace-plugin/fluent-utils.js +60 -0
  228. package/dist/workspace-plugin/fluent-utils.js.map +1 -0
  229. package/dist/workspace-plugin/page.d.ts +8 -0
  230. package/dist/workspace-plugin/page.js +108 -0
  231. package/dist/workspace-plugin/page.js.map +1 -0
  232. package/dist/workspace-plugin/screen.d.ts +1 -0
  233. package/dist/workspace-plugin/screen.js +38 -0
  234. package/dist/workspace-plugin/screen.js.map +1 -0
  235. package/dist/workspace-plugin/templates/index.d.ts +10 -0
  236. package/dist/workspace-plugin/templates/index.js +20 -0
  237. package/dist/workspace-plugin/templates/index.js.map +1 -0
  238. package/dist/workspace-plugin/templates/record-page-composition.d.ts +1 -0
  239. package/dist/workspace-plugin/templates/record-page-composition.js +4043 -0
  240. package/dist/workspace-plugin/templates/record-page-composition.js.map +1 -0
  241. package/dist/workspace-plugin/templates/record-page-data.d.ts +1 -0
  242. package/dist/workspace-plugin/templates/record-page-data.js +527 -0
  243. package/dist/workspace-plugin/templates/record-page-data.js.map +1 -0
  244. package/dist/workspace-plugin/templates/record-page-interalEventMappings.d.ts +1 -0
  245. package/dist/workspace-plugin/templates/record-page-interalEventMappings.js +39 -0
  246. package/dist/workspace-plugin/templates/record-page-interalEventMappings.js.map +1 -0
  247. package/dist/workspace-plugin/templates/record-page-layoutModel.d.ts +1 -0
  248. package/dist/workspace-plugin/templates/record-page-layoutModel.js +55 -0
  249. package/dist/workspace-plugin/templates/record-page-layoutModel.js.map +1 -0
  250. package/dist/workspace-plugin/templates/record-page-properties.d.ts +1 -0
  251. package/dist/workspace-plugin/templates/record-page-properties.js +135 -0
  252. package/dist/workspace-plugin/templates/record-page-properties.js.map +1 -0
  253. package/dist/workspace-plugin/templates/record-page.d.ts +3 -0
  254. package/dist/workspace-plugin/templates/record-page.js +8 -0
  255. package/dist/workspace-plugin/templates/record-page.js.map +1 -0
  256. package/dist/workspace-plugin.d.ts +2 -0
  257. package/dist/workspace-plugin.js +453 -0
  258. package/dist/workspace-plugin.js.map +1 -0
  259. package/package.json +10 -12
  260. package/src/acl-plugin.ts +16 -1
  261. package/src/applicability-plugin.ts +82 -0
  262. package/src/atf/test-plugin.ts +6 -3
  263. package/src/basic-syntax-plugin.ts +10 -1
  264. package/src/business-rule-plugin.ts +2 -1
  265. package/src/call-expression-plugin.ts +2 -130
  266. package/src/column/column-to-record.ts +54 -8
  267. package/src/column-plugin.ts +29 -13
  268. package/src/dashboard/dashboard-component-property-defaults.ts +277 -0
  269. package/src/dashboard/dashboard-component-resolver.ts +69 -0
  270. package/src/dashboard/dashboard-plugin.ts +450 -0
  271. package/src/data-plugin.ts +67 -139
  272. package/src/email-notification-plugin.ts +850 -0
  273. package/src/flow/constants/flow-plugin-constants.ts +79 -0
  274. package/src/flow/flow-logic/flow-logic-constants.ts +120 -0
  275. package/src/flow/flow-logic/flow-logic-diagnostics.ts +591 -0
  276. package/src/flow/flow-logic/flow-logic-plugin-helpers.ts +2550 -0
  277. package/src/flow/flow-logic/flow-logic-plugin.ts +337 -0
  278. package/src/flow/flow-logic/flow-logic-shapes.ts +215 -0
  279. package/src/flow/plugins/approval-rules-plugin.ts +48 -0
  280. package/src/flow/plugins/flow-action-definition-plugin.ts +295 -0
  281. package/src/flow/plugins/flow-data-pill-plugin.ts +258 -0
  282. package/src/flow/plugins/flow-definition-plugin.ts +2173 -0
  283. package/src/flow/plugins/flow-diagnostics-plugin.ts +280 -0
  284. package/src/flow/plugins/flow-instance-plugin.ts +1499 -0
  285. package/src/flow/plugins/flow-trigger-instance-plugin.ts +444 -0
  286. package/src/flow/plugins/inline-script-plugin.ts +83 -0
  287. package/src/flow/plugins/step-definition-plugin.ts +67 -0
  288. package/src/flow/plugins/step-instance-plugin.ts +431 -0
  289. package/src/flow/plugins/trigger-plugin.ts +95 -0
  290. package/src/flow/plugins/wfa-datapill-plugin.ts +213 -0
  291. package/src/flow/utils/approval-rules-processor.ts +298 -0
  292. package/src/flow/utils/built-in-complex-objects.ts +81 -0
  293. package/src/flow/utils/complex-object-resolver.ts +875 -0
  294. package/src/flow/utils/complex-objects.ts +656 -0
  295. package/src/flow/utils/data-pill-shapes.ts +165 -0
  296. package/src/flow/utils/datapill-transformer.ts +632 -0
  297. package/src/flow/utils/flow-constants.ts +285 -0
  298. package/src/flow/utils/flow-io-to-record.ts +533 -0
  299. package/src/flow/utils/flow-shapes.ts +296 -0
  300. package/src/flow/utils/flow-to-xml.ts +318 -0
  301. package/src/flow/utils/flow-variable-processor.ts +100 -0
  302. package/src/flow/utils/label-cache-parser.ts +37 -0
  303. package/src/flow/utils/label-cache-processor.ts +870 -0
  304. package/src/flow/utils/pill-string-parser.ts +375 -0
  305. package/src/flow/utils/schema-to-flow-object.ts +385 -0
  306. package/src/flow/utils/service-catalog.ts +174 -0
  307. package/src/flow/utils/utils.ts +395 -0
  308. package/src/index.ts +20 -1
  309. package/src/list-plugin.ts +1 -1
  310. package/src/now-attach-plugin.ts +14 -11
  311. package/src/now-ref-plugin.ts +1 -1
  312. package/src/record-plugin.ts +76 -11
  313. package/src/repack/index.ts +14 -0
  314. package/src/rest-api-plugin.ts +62 -50
  315. package/src/server-module-plugin/index.ts +112 -86
  316. package/src/service-catalog/catalog-clientscript-plugin.ts +140 -0
  317. package/src/service-catalog/catalog-item-plugin.ts +162 -0
  318. package/src/service-catalog/catalog-ui-policy-plugin.ts +324 -0
  319. package/src/service-catalog/index.ts +5 -0
  320. package/src/service-catalog/record-to-shape.ts +109 -0
  321. package/src/service-catalog/sc-record-producer-plugin.ts +201 -0
  322. package/src/service-catalog/service-catalog-base.ts +600 -0
  323. package/src/service-catalog/service-catalog-diagnostics.ts +254 -0
  324. package/src/service-catalog/shape-to-record.ts +279 -0
  325. package/src/service-catalog/utils.ts +1455 -0
  326. package/src/service-catalog/variable-helper.ts +135 -0
  327. package/src/service-catalog/variable-set-plugin.ts +197 -0
  328. package/src/service-catalog/variables-transform.ts +438 -0
  329. package/src/sla/sla-validators.ts +331 -0
  330. package/src/sla-plugin.ts +358 -0
  331. package/src/static-content-plugin.ts +25 -2
  332. package/src/table-plugin.ts +49 -16
  333. package/src/ui-page-plugin.ts +1063 -20
  334. package/src/ui-policy-plugin.ts +5 -9
  335. package/src/utils.ts +24 -1
  336. package/src/ux-list-menu-config-plugin.ts +312 -0
  337. package/src/workspace-plugin/chrome-tab.ts +44 -0
  338. package/src/workspace-plugin/constants.ts +53 -0
  339. package/src/workspace-plugin/fluent-utils.ts +60 -0
  340. package/src/workspace-plugin/page.ts +139 -0
  341. package/src/workspace-plugin/screen.ts +34 -0
  342. package/src/workspace-plugin/templates/index.ts +17 -0
  343. package/src/workspace-plugin/templates/record-page-composition.ts +4051 -0
  344. package/src/workspace-plugin/templates/record-page-data.ts +523 -0
  345. package/src/workspace-plugin/templates/record-page-interalEventMappings.ts +35 -0
  346. package/src/workspace-plugin/templates/record-page-layoutModel.ts +51 -0
  347. package/src/workspace-plugin/templates/record-page-properties.ts +131 -0
  348. package/src/workspace-plugin/templates/record-page.ts +6 -0
  349. package/src/workspace-plugin.ts +574 -0
@@ -0,0 +1,36 @@
1
+ import { type ObjectShape, type Diagnostics } from '@servicenow/sdk-build-core';
2
+ /**
3
+ * Generate schema object from FlowObject or FlowArray structure
4
+ * @param objectConfig - The config of the FlowObject or FlowArray {fields/elementType, mandatory, label}
5
+ * @param complexObjectId - The ID of the complex object
6
+ * @param objectName - The name of the object
7
+ * @param actionId - The ID of the action
8
+ * @param order - The order of the object
9
+ * @param isArray - Whether this is a FlowArray type
10
+ * @param diagnostics - Diagnostics instance for error reporting
11
+ * @param isFlowVariable - Whether this is a flow variable (allows ReferenceColumn)
12
+ * @returns The generated schema object
13
+ */
14
+ export declare function generateSchemaFromObject(objectConfig: ObjectShape, complexObjectId: string, objectName: string, actionId: string, order: number, isArray: boolean | undefined, diagnostics: Diagnostics, isFlowVariable?: boolean): Record<string, any>;
15
+ /**
16
+ * Generate variable schema object for FlowObject or FlowArray types
17
+ * @param schemaObject - The schema object
18
+ * @param complexObjectId - The ID of the complex object
19
+ * @param isArray - Whether this is a FlowArray type
20
+ * @returns The generated variable schema object
21
+ */
22
+ export declare function generateVariableSchemaObject(schemaObject: Record<string, unknown>, complexObjectId: string, isArray?: boolean): Record<string, unknown>;
23
+ /**
24
+ * Get the attributes for a complex object
25
+ * @param schemaObject - The schema object
26
+ * @param complexObjectId - The ID of the complex object
27
+ * @param isArray - Whether this is a FlowArray type
28
+ * @returns The attributes for the complex object
29
+ */
30
+ export declare function getComplexObjectAttributes(schemaObject: Record<string, any>, complexObjectId: string, isArray: boolean): Record<string, string>;
31
+ /**
32
+ * Converts the output of getComplexObjectAttributes to a comma-separated string in the format key1=value1,key2=value2
33
+ * @param attributes - The attributes object returned by getComplexObjectAttributes
34
+ * @returns A comma-separated string of key-value pairs
35
+ */
36
+ export declare function formatComplexObjectAttributes(attributes: globalThis.Record<string, string | boolean>): string;
@@ -0,0 +1,481 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateSchemaFromObject = generateSchemaFromObject;
4
+ exports.generateVariableSchemaObject = generateVariableSchemaObject;
5
+ exports.getComplexObjectAttributes = getComplexObjectAttributes;
6
+ exports.formatComplexObjectAttributes = formatComplexObjectAttributes;
7
+ // biome-ignore-all lint/suspicious/noExplicitAny: This file builds dynamic complex object schemas
8
+ const sdk_build_core_1 = require("@servicenow/sdk-build-core");
9
+ const column_helper_1 = require("../../column/column-helper");
10
+ const flow_constants_1 = require("./flow-constants");
11
+ const ALLOWED_ARRAY_TYPES = ['String', 'Integer', 'Boolean', 'Date', 'Reference'];
12
+ const ALLOWED_OBJECT_TYPES = ['Choice', 'String', 'Integer', 'Boolean', 'Date', 'Reference'];
13
+ /**
14
+ * Maps column types to their corresponding schema types
15
+ */
16
+ const COLUMN_TYPE_TO_SCHEMA_TYPE = {
17
+ string: 'String',
18
+ object: 'Object',
19
+ integer: 'Integer',
20
+ decimal: 'Decimal',
21
+ number: 'Number',
22
+ boolean: 'Boolean',
23
+ glide_date_time: 'Date',
24
+ choice: 'Choice',
25
+ 'array.string': 'String',
26
+ 'array.integer': 'Integer',
27
+ 'array.object': 'Object',
28
+ 'array.boolean': 'Boolean',
29
+ 'array.datetime': 'Date',
30
+ reference: 'Reference',
31
+ };
32
+ /**
33
+ * Maps ServiceNow column types to their array UI type equivalents
34
+ * For example: 'glide_date_time' -> 'datetime' (for use in 'array.datetime')
35
+ */
36
+ const COLUMN_TYPE_TO_ARRAY_UI_TYPE = {
37
+ glide_date_time: 'datetime',
38
+ string: 'string',
39
+ integer: 'integer',
40
+ boolean: 'boolean',
41
+ reference: 'reference',
42
+ };
43
+ // Maps API column types -> schema types (defaults to 'String')
44
+ const mapApiToSchema = (api) => COLUMN_TYPE_TO_SCHEMA_TYPE[column_helper_1.COLUMN_API_TO_TYPE[api]] ?? 'String'; //TODO.. probably throw if the value doesn't exist
45
+ /**
46
+ * Default max_length for fields inside FlowArray elements.
47
+ * These fields need higher max_length to accommodate larger data structures.
48
+ */
49
+ const MAX_LENGTH_ARRAY_ELEMENT = 65000;
50
+ /**
51
+ * Default max_length for regular fields (not inside FlowArray elements).
52
+ */
53
+ const MAX_LENGTH_REGULAR_FIELD = 0;
54
+ const buildFieldFacet = ({ type, config, field, order, choiceOption = '', columnApiType, isArrayElement = false, }) => {
55
+ const result = {};
56
+ // Map schema types to their uiTypeLabel
57
+ const uiTypeLabel = type === 'Boolean' ? 'True/False' : type === 'Date' && columnApiType === 'DateTimeColumn' ? 'Date/Time' : type;
58
+ // Use the column API type to determine the correct uiType
59
+ const uiType = columnApiType ? column_helper_1.COLUMN_API_TO_TYPE[columnApiType] || type.toLowerCase() : type.toLowerCase();
60
+ const additionalProperties = {};
61
+ // Handle reference columns - extract reference table
62
+ if (uiType === 'reference') {
63
+ const referenceTable = config.get('referenceTable')?.ifString()?.getValue();
64
+ if (referenceTable) {
65
+ additionalProperties['reference'] = referenceTable;
66
+ }
67
+ }
68
+ // Fields inside FlowArray elements should have higher default max_length
69
+ const defaultMaxLength = isArrayElement ? MAX_LENGTH_ARRAY_ELEMENT : MAX_LENGTH_REGULAR_FIELD;
70
+ result['SimpleMapFacet'] = JSON.stringify({
71
+ uiTypeLabel,
72
+ read_only: 'false',
73
+ uiType,
74
+ choiceOption,
75
+ default_value: String(config.get('default')?.ifDefined()?.getValue() ?? ''),
76
+ hint: config.get('hint')?.ifString()?.getValue() ?? '',
77
+ label: config.get('label')?.ifString()?.getValue() ?? field,
78
+ mandatory: String(config.get('mandatory')?.ifBoolean()?.getValue() ?? false),
79
+ order: `${order + 1}`,
80
+ max_length: String(config.get('maxLength')?.ifDefined()?.getValue() ?? defaultMaxLength),
81
+ ...additionalProperties,
82
+ });
83
+ if (type === 'Choice') {
84
+ const choices = config.get('choices')?.ifDefined()?.asObject();
85
+ if (!choices) {
86
+ return result;
87
+ }
88
+ result['SimpleChoiceFacet'] = JSON.stringify({
89
+ complex_choice_map_key$: {},
90
+ choice_map_key$: choices.keys().reduce((acc, key, i) => {
91
+ const choiceValue = choices.get(key);
92
+ let choiceLabel = '';
93
+ let order = i + 1;
94
+ if (choiceValue.isString()) {
95
+ choiceLabel = choiceValue.getValue();
96
+ }
97
+ else {
98
+ choiceLabel = choiceValue.asObject().get('label')?.ifString()?.getValue() ?? key;
99
+ order = choiceValue.asObject().get('sequence')?.ifNumber()?.getValue() ?? i + 1;
100
+ }
101
+ acc[choiceLabel] = JSON.stringify({ label: choiceLabel, value: key, order });
102
+ return acc;
103
+ }, {}),
104
+ });
105
+ }
106
+ return result;
107
+ };
108
+ const buildArrayFieldFacet = ({ type, config, element, field, order, choiceOption = '', actionId, columnApiType, }) => {
109
+ const label = config.get('label')?.ifString()?.getValue() ?? field;
110
+ const childName = config?.get('childName')?.ifString()?.getValue() || `${field}_child0`;
111
+ const childLabel = element.get('label')?.ifString()?.getValue() ?? field;
112
+ // Determine the correct uiType for arrays
113
+ // For DateTimeColumn: columnApiType='DateTimeColumn' -> columnType='glide_date_time' -> arrayUiType='datetime'
114
+ let arrayUiType = type.toLowerCase();
115
+ if (columnApiType) {
116
+ const columnType = column_helper_1.COLUMN_API_TO_TYPE[columnApiType];
117
+ if (columnType && COLUMN_TYPE_TO_ARRAY_UI_TYPE[columnType]) {
118
+ arrayUiType = COLUMN_TYPE_TO_ARRAY_UI_TYPE[columnType];
119
+ }
120
+ else if (columnType) {
121
+ arrayUiType = columnType;
122
+ }
123
+ }
124
+ return {
125
+ SimpleMapFacet: JSON.stringify({
126
+ max_rows: null,
127
+ child_hint: '',
128
+ child_maxsize: '',
129
+ child_name: childName || `${field}_child0`,
130
+ child_label: childLabel || `${label}_child0`,
131
+ child_type_label: type,
132
+ child_type: arrayUiType,
133
+ child_defaultValue: '',
134
+ child_uiUniqueId: `${actionId}-${field}-child0`,
135
+ uiUniqueId: `${actionId}-${field}`,
136
+ uiTypeLabel: `Array.${type}`,
137
+ read_only: 'false',
138
+ uiType: `array.${arrayUiType}`,
139
+ choiceOption,
140
+ default_value: type === 'Boolean' ? 'false' : '',
141
+ hint: config.get('hint')?.ifString()?.getValue() ?? '',
142
+ label: label,
143
+ mandatory: String(config.get('mandatory')?.ifBoolean()?.getValue() ?? false),
144
+ order: `${order + 1}`,
145
+ max_length: String(config.get('maxLength')?.ifNumber()?.getValue() ?? 65000),
146
+ }),
147
+ };
148
+ };
149
+ // ---------- Type facet ----------
150
+ const buildTypeFacet = (complexObjectId, actionId, objectName, label, mandatory, order) => ({
151
+ //TODO: These fields exist in what FD generates but it is not clear that they are actually all required
152
+ SimpleMapFacet: JSON.stringify({
153
+ sourceId: '',
154
+ choiceOption: '',
155
+ default_value: '',
156
+ label: label || objectName,
157
+ mandatory: String(mandatory),
158
+ uiUniqueId: `${actionId}-${objectName}`, //this is windsurf generated slop but it might be good enough?
159
+ uiTypeLabel: 'Object',
160
+ co_type_name: complexObjectId,
161
+ read_only: 'false',
162
+ hint: null,
163
+ uiType: 'object',
164
+ order: `${order}`,
165
+ max_length: '65000', //TODO max length on complex objects is not enforced but this exists in what FD currently generates, check to see if we can clean it up and remove it
166
+ }),
167
+ });
168
+ // Build type facet for array types
169
+ const buildArrayTypeFacet = ({ complexObjectId, actionId, objectName, parentConfig, childConfig, order, elementType, child, columnApiType, }) => {
170
+ const label = parentConfig.get('label').ifString()?.getValue() || objectName;
171
+ const hint = parentConfig.get('hint').ifString()?.getValue() || '';
172
+ const mandatory = parentConfig.get('mandatory').ifBoolean()?.getValue() || false;
173
+ const maxRows = parentConfig.get('maxRows').ifNumber()?.getValue() || '';
174
+ const childLabel = childConfig.get('label').ifString()?.getValue() || `${objectName.toLowerCase()}_child0_label`;
175
+ const childMaxLength = childConfig.get('maxLength').ifNumber()?.getValue() || 0;
176
+ const childHint = childConfig.get('hint').ifString()?.getValue() || '';
177
+ const childDefaultValue = childConfig.get('default')?.ifDefined()?.getValue() || '';
178
+ const choiceOption = childConfig.get('dropdown')?.ifDefined()?.ifString()?.getValue() || '';
179
+ // Determine the correct uiType for arrays
180
+ // For DateTimeColumn: columnApiType='DateTimeColumn' -> columnType='glide_date_time' -> arrayUiType='datetime'
181
+ let arrayUiType = elementType.toLowerCase();
182
+ if (columnApiType) {
183
+ const columnType = column_helper_1.COLUMN_API_TO_TYPE[columnApiType];
184
+ if (columnType && COLUMN_TYPE_TO_ARRAY_UI_TYPE[columnType]) {
185
+ arrayUiType = COLUMN_TYPE_TO_ARRAY_UI_TYPE[columnType];
186
+ }
187
+ else if (columnType) {
188
+ arrayUiType = columnType;
189
+ }
190
+ }
191
+ return {
192
+ SimpleMapFacet: JSON.stringify({
193
+ sourceId: '',
194
+ max_rows: String(maxRows),
195
+ choiceOption: choiceOption,
196
+ default_value: '',
197
+ label: label || objectName,
198
+ child_hint: childHint,
199
+ child_maxsize: String(childMaxLength),
200
+ mandatory: String(mandatory),
201
+ child_name: child,
202
+ uiUniqueId: `${actionId}-${objectName}`,
203
+ uiTypeLabel: `Array.${elementType}`,
204
+ co_type_name: complexObjectId,
205
+ child_label: childLabel,
206
+ child_type_label: elementType,
207
+ read_only: 'false',
208
+ sourceUiUniqueId: '',
209
+ sourceType: '',
210
+ hint: hint,
211
+ uiType: `array.${arrayUiType}`,
212
+ child_defaultValue: String(childDefaultValue),
213
+ child_type: arrayUiType,
214
+ order: `${order}`,
215
+ max_length: '65000',
216
+ child_uiUniqueId: `${actionId}-${objectName}-child`,
217
+ }),
218
+ };
219
+ };
220
+ function validateReferenceColumnUsage(fieldType, isFlowVariable, diagnostics, source) {
221
+ if (fieldType === 'ReferenceColumn' && !isFlowVariable) {
222
+ diagnostics.error(source, 'Reference type fields are not allowed inside FlowObject or FlowArray structures when used in subflow or action inputs or outputs.');
223
+ }
224
+ }
225
+ /**
226
+ * Create the resulting co schema for the fields of a complex object. This will recurse when
227
+ * a nested object is found.
228
+ */
229
+ function createSchemaForFields(fields, actionId, diagnostics, isFlowVariable = false, isArrayElement = false) {
230
+ const resultSchema = {};
231
+ fields.entries().forEach(([fieldName, fieldValue], order) => {
232
+ const fieldCallExpr = fieldValue.as(sdk_build_core_1.CallExpressionShape);
233
+ const fieldConfig = fieldCallExpr.getArgument(0)?.asObject();
234
+ const fieldType = fieldCallExpr.getCallee();
235
+ validateReferenceColumnUsage(fieldType, isFlowVariable, diagnostics, fieldCallExpr);
236
+ if (fieldType === 'FlowObject') {
237
+ const nestedFields = fieldConfig?.get('fields')?.asObject();
238
+ if (nestedFields) {
239
+ resultSchema[fieldName] = createSchemaForFields(nestedFields, actionId, diagnostics, isFlowVariable, isArrayElement);
240
+ }
241
+ resultSchema[`${fieldName}.$field_facets`] = buildFieldFacet({
242
+ type: 'Object',
243
+ config: fieldConfig,
244
+ field: fieldName,
245
+ order,
246
+ isArrayElement,
247
+ });
248
+ return;
249
+ }
250
+ else if (fieldType === 'FlowArray') {
251
+ // Handle FlowArray type
252
+ const elementType = fieldConfig?.get('elementType')?.as(sdk_build_core_1.CallExpressionShape);
253
+ const elementConfig = elementType?.getArgument(0)?.asObject();
254
+ const elementCallee = elementType?.getCallee();
255
+ let elementTypeString = 'Any'; // Default to 'Any' if we can't determine
256
+ if (elementCallee === 'FlowObject') {
257
+ const nestedFields = elementConfig?.get('fields')?.asObject();
258
+ if (nestedFields) {
259
+ elementTypeString = 'Object';
260
+ // Create schema for nested FlowObject fields
261
+ // For nested FlowArrays with FlowObject elements, wrap in array with fieldName as key
262
+ // Mark nested fields as array elements for proper max_length defaults
263
+ const nestedSchema = createSchemaForFields(nestedFields, actionId, diagnostics, isFlowVariable, true);
264
+ resultSchema[fieldName] = [
265
+ {
266
+ [fieldName]: nestedSchema,
267
+ },
268
+ ];
269
+ resultSchema[`${fieldName}.$field_facets`] = buildArrayFieldFacet({
270
+ type: elementTypeString,
271
+ config: fieldConfig,
272
+ element: elementConfig,
273
+ field: fieldName,
274
+ order,
275
+ actionId,
276
+ });
277
+ return;
278
+ }
279
+ }
280
+ else if (elementCallee) {
281
+ // For primitive types, map to appropriate schema type
282
+ elementTypeString = mapApiToSchema(elementCallee);
283
+ }
284
+ // For primitive arrays, always use "Any" in schema (ServiceNow requirement)
285
+ resultSchema[fieldName] = ['Any'];
286
+ resultSchema[`${fieldName}.$field_facets`] = buildArrayFieldFacet({
287
+ type: elementTypeString,
288
+ config: fieldConfig,
289
+ element: elementConfig,
290
+ field: fieldName,
291
+ order,
292
+ actionId,
293
+ columnApiType: elementCallee, // Pass the column API type for correct uiType generation
294
+ });
295
+ return;
296
+ }
297
+ else {
298
+ //basic field type
299
+ const schemaType = mapApiToSchema(fieldType);
300
+ resultSchema[fieldName] = schemaType === 'Choice' ? 'String' : schemaType;
301
+ validateObjectElementType(fieldCallExpr, schemaType, diagnostics);
302
+ if (schemaType === 'Choice') {
303
+ const isDynamic = fieldConfig.get('dynamicValueDefinitions')?.isDefined();
304
+ if (isDynamic) {
305
+ diagnostics.error(fieldConfig, 'Dynamic value definitions are not supported');
306
+ }
307
+ }
308
+ resultSchema[`${fieldName}.$field_facets`] = buildFieldFacet({
309
+ type: schemaType,
310
+ config: fieldConfig,
311
+ field: fieldName,
312
+ order,
313
+ columnApiType: fieldType,
314
+ isArrayElement,
315
+ });
316
+ }
317
+ });
318
+ return resultSchema;
319
+ }
320
+ /**
321
+ * Generate schema object from FlowObject or FlowArray structure
322
+ * @param objectConfig - The config of the FlowObject or FlowArray {fields/elementType, mandatory, label}
323
+ * @param complexObjectId - The ID of the complex object
324
+ * @param objectName - The name of the object
325
+ * @param actionId - The ID of the action
326
+ * @param order - The order of the object
327
+ * @param isArray - Whether this is a FlowArray type
328
+ * @param diagnostics - Diagnostics instance for error reporting
329
+ * @param isFlowVariable - Whether this is a flow variable (allows ReferenceColumn)
330
+ * @returns The generated schema object
331
+ */
332
+ function generateSchemaFromObject(objectConfig, complexObjectId, objectName, actionId, order, isArray = false, diagnostics, isFlowVariable = false) {
333
+ const rootKey = `FlowDesigner:${complexObjectId}`;
334
+ const result = {};
335
+ if (isArray) {
336
+ // Handle FlowArray type
337
+ const elementShape = objectConfig.get('elementType')?.as(sdk_build_core_1.CallExpressionShape);
338
+ const elementCallee = elementShape?.getCallee();
339
+ validateReferenceColumnUsage(elementCallee, isFlowVariable, diagnostics, elementShape);
340
+ let collectionField = 'String'; // Default
341
+ let elementTypeString = 'String'; // Default
342
+ const child = objectConfig.get('childName').ifString()?.getValue() || `${objectName.toLowerCase()}_child0`;
343
+ const config = elementShape.getArgument(0).asObject();
344
+ if (elementCallee === 'FlowObject') {
345
+ const schema = createSchemaForFields(config.get('fields').asObject('fields property should be object shaped'), actionId, diagnostics, isFlowVariable);
346
+ collectionField = { [child]: schema };
347
+ elementTypeString = 'Object';
348
+ }
349
+ else if (elementCallee) {
350
+ collectionField = mapApiToSchema(elementCallee);
351
+ elementTypeString = collectionField;
352
+ // Validate the array element type
353
+ validateArrayElementType(elementShape, elementTypeString, diagnostics);
354
+ }
355
+ // Attach the array type facets
356
+ const typeFacets = buildArrayTypeFacet({
357
+ complexObjectId,
358
+ actionId,
359
+ objectName,
360
+ parentConfig: objectConfig,
361
+ childConfig: config,
362
+ order,
363
+ elementType: elementTypeString,
364
+ child,
365
+ columnApiType: elementCallee, // Pass the column API type for correct uiType generation
366
+ });
367
+ // Create array schema structure
368
+ result[rootKey] = {
369
+ $COCollectionField: [collectionField],
370
+ '$COCollectionField.$field_facets': {
371
+ SimpleMapFacet: JSON.stringify({
372
+ 'up-shift-collection-level': 'true',
373
+ }),
374
+ },
375
+ '$COCollectionField.$type_facets': typeFacets,
376
+ };
377
+ result[`${rootKey}.$type_facets`] = typeFacets;
378
+ }
379
+ else {
380
+ // Handle FlowObject type (original behavior)
381
+ result[rootKey] = createSchemaForFields(objectConfig.get('fields').asObject('fields property should be object shaped'), actionId, diagnostics, isFlowVariable);
382
+ const label = objectConfig.get('label').ifString()?.getValue() || objectName;
383
+ const mandatory = objectConfig.get('mandatory').ifBoolean()?.getValue() || false;
384
+ // Attach the type facets for the root object
385
+ result[`${rootKey}.$type_facets`] = buildTypeFacet(complexObjectId, actionId, objectName, label, mandatory, order);
386
+ }
387
+ return result;
388
+ }
389
+ /**
390
+ * Generate variable schema object for FlowObject or FlowArray types
391
+ * @param schemaObject - The schema object
392
+ * @param complexObjectId - The ID of the complex object
393
+ * @param isArray - Whether this is a FlowArray type
394
+ * @returns The generated variable schema object
395
+ */
396
+ function generateVariableSchemaObject(schemaObject, complexObjectId, isArray = false) {
397
+ const result = {};
398
+ result['version'] = '1.0';
399
+ if (isArray) {
400
+ // Handle FlowArray type
401
+ result['complexObject'] = {
402
+ name$: complexObjectId,
403
+ $COCollectionField: [],
404
+ };
405
+ }
406
+ else {
407
+ // Handle FlowObject type
408
+ // Extract the object fields from the schema and convert to the required format
409
+ const rootKey = `FlowDesigner:${complexObjectId}`;
410
+ const schemaFields = (schemaObject[rootKey] || {});
411
+ const objectFields = {};
412
+ // Process each field in the schema, excluding special fields like $field_facets
413
+ Object.keys(schemaFields).forEach((key) => {
414
+ if (!key.includes('$')) {
415
+ objectFields[key] = {
416
+ $cv: {
417
+ $c: `java.lang.${schemaFields[key]}`,
418
+ $v: '',
419
+ },
420
+ };
421
+ }
422
+ });
423
+ result['complexObject'] = objectFields;
424
+ }
425
+ result['complexObjectSchema'] = schemaObject;
426
+ result['serializationFormat'] = 'JSON';
427
+ return result;
428
+ }
429
+ /**
430
+ * Get the attributes for a complex object
431
+ * @param schemaObject - The schema object
432
+ * @param complexObjectId - The ID of the complex object
433
+ * @param isArray - Whether this is a FlowArray type
434
+ * @returns The attributes for the complex object
435
+ */
436
+ function getComplexObjectAttributes(schemaObject, complexObjectId, isArray) {
437
+ const typeFacets = JSON.parse(schemaObject[`FlowDesigner:${complexObjectId}.$type_facets`]?.['SimpleMapFacet'] ?? '{}');
438
+ let result = {
439
+ co_type_name: typeFacets.co_type_name,
440
+ element_mapping_provider: flow_constants_1.ELEMENT_MAPPING_PROVIDER,
441
+ uiType: typeFacets.uiType,
442
+ uiTypeLabel: typeFacets.uiTypeLabel,
443
+ uiUniqueId: typeFacets.uiUniqueId,
444
+ };
445
+ if (isArray) {
446
+ result = {
447
+ ...result,
448
+ child_maxsize: typeFacets.child_maxsize,
449
+ child_hint: typeFacets.child_hint,
450
+ child_label: typeFacets.child_label,
451
+ child_name: typeFacets.child_name,
452
+ child_type: typeFacets.child_type,
453
+ child_type_label: typeFacets.child_type_label,
454
+ child_uiUniqueId: typeFacets.child_uiUniqueId,
455
+ max_rows: typeFacets.max_rows,
456
+ child_defaultValue: typeFacets.child_defaultValue,
457
+ };
458
+ }
459
+ return result;
460
+ }
461
+ /**
462
+ * Converts the output of getComplexObjectAttributes to a comma-separated string in the format key1=value1,key2=value2
463
+ * @param attributes - The attributes object returned by getComplexObjectAttributes
464
+ * @returns A comma-separated string of key-value pairs
465
+ */
466
+ function formatComplexObjectAttributes(attributes) {
467
+ return Object.entries(attributes)
468
+ .map(([key, value]) => `${key}=${value}`)
469
+ .join(',');
470
+ }
471
+ function validateArrayElementType(elementType, elementTypeString, diagnostics) {
472
+ if (!ALLOWED_ARRAY_TYPES.includes(elementTypeString)) {
473
+ diagnostics.error(elementType, 'Invalid array element type');
474
+ }
475
+ }
476
+ function validateObjectElementType(elementType, elementTypeString, diagnostics) {
477
+ if (!ALLOWED_OBJECT_TYPES.includes(elementTypeString)) {
478
+ diagnostics.error(elementType, 'Invalid array element type');
479
+ }
480
+ }
481
+ //# sourceMappingURL=complex-objects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complex-objects.js","sourceRoot":"","sources":["../../../src/flow/utils/complex-objects.ts"],"names":[],"mappings":";;AA6bA,4DAwFC;AASD,oEAwCC;AASD,gEAiCC;AAOD,sEAIC;AA3nBD,kGAAkG;AAClG,+DAAoG;AAEpG,8DAA+D;AAC/D,qDAA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jB,CAAC;AAED;;;;GAIG;AACH,SAAgB,6BAA6B,CAAC,UAAuD;IACjG,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;SAC5B,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;SACxC,IAAI,CAAC,GAAG,CAAC,CAAA;AAClB,CAAC;AAED,SAAS,wBAAwB,CAC7B,WAAgC,EAChC,iBAAyB,EACzB,WAAwB;IAExB,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACnD,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,4BAA4B,CAAC,CAAA;IAChE,CAAC;AACL,CAAC;AAED,SAAS,yBAAyB,CAC9B,WAAgC,EAChC,iBAAyB,EACzB,WAAwB;IAExB,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACpD,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,4BAA4B,CAAC,CAAA;IAChE,CAAC;AACL,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { ArrayShape, IdentifierShape, PropertyAccessShape, type Source, TemplateExpressionShape } from '@servicenow/sdk-build-core';
2
+ export declare class PillShape extends PropertyAccessShape {
3
+ private uiId;
4
+ private readonly path;
5
+ private type;
6
+ private parentTableName;
7
+ private columnName;
8
+ private reference;
9
+ constructor({ source, uiId, path, type }: {
10
+ source: Source;
11
+ uiId: string;
12
+ path: string;
13
+ type?: string;
14
+ });
15
+ setType(type: string): void;
16
+ getType(): string | undefined;
17
+ setParentTableName(parentTableName: string): void;
18
+ getParentTableName(): string | undefined;
19
+ setColumnName(columnName: string): void;
20
+ getColumnName(): string | undefined;
21
+ setReference(reference: string): void;
22
+ getReference(): string | undefined;
23
+ setRootIdentifier(arg0: string): void;
24
+ getRootIdentifier(): string;
25
+ getValue(): string;
26
+ }
27
+ export declare class PillTemplateShape extends TemplateExpressionShape {
28
+ private readonly parts;
29
+ constructor({ source, parts }: {
30
+ source: Source;
31
+ parts: unknown[];
32
+ });
33
+ getParts(): ArrayShape;
34
+ getValue(): string;
35
+ }
36
+ export declare class ForEachItemShape extends IdentifierShape {
37
+ private uiId;
38
+ private readonly path;
39
+ private type;
40
+ private parentTableName;
41
+ private columnName;
42
+ private reference;
43
+ constructor({ source, uiId, path }: {
44
+ source: Source;
45
+ uiId: string;
46
+ path: string;
47
+ });
48
+ setType(type: string): void;
49
+ getType(): string | undefined;
50
+ setParentTableName(parentTableName: string): void;
51
+ getParentTableName(): string | undefined;
52
+ setColumnName(columnName: string): void;
53
+ getColumnName(): string | undefined;
54
+ setReference(reference: string): void;
55
+ getReference(): string | undefined;
56
+ getRootIdentifier(): string;
57
+ getValue(): string;
58
+ }