@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,523 @@
1
+ export const data = JSON.stringify([
2
+ {
3
+ definition: {
4
+ id: '029f04e053610110ac9bddeeff7b1294',
5
+ type: 'CONTROLLER',
6
+ },
7
+ dependencies: {},
8
+ elementId: 'record',
9
+ elementLabel: 'Form Controller',
10
+ eventMappings: [
11
+ {
12
+ eventMappingId: 'srp_form_popover_open_requested',
13
+ isConfiguration: false,
14
+ offRowStorageId: null,
15
+ sourceEventApiName: 'sn_now_record_form.CTRL_RECORD#POPOVER_OPEN_REQUESTED',
16
+ sourceEventCorrelationId: null,
17
+ sourceEventDefinition: {
18
+ apiName: 'sn_now_record_form.CTRL_RECORD#POPOVER_OPEN_REQUESTED',
19
+ id: null,
20
+ type: 'UXEVENT',
21
+ },
22
+ sourceEventSysId: null,
23
+ targets: [
24
+ {
25
+ broker: null,
26
+ clientScript: null,
27
+ declarativeAction: null,
28
+ event: {
29
+ apiName: 'sn_uxf.MACROPONENT_POPOVER_OPEN_REQUESTED',
30
+ payload: {
31
+ container: {
32
+ popoverElementId: {
33
+ type: 'JSON_LITERAL',
34
+ value: "[component-id$='reference_info_popover']",
35
+ },
36
+ popoverTargetElementId: {
37
+ binding: {
38
+ address: ['popoverTriggerElement', 'nowId'],
39
+ },
40
+ type: 'EVENT_PAYLOAD_BINDING',
41
+ },
42
+ popoverTriggerElement: {
43
+ binding: {
44
+ address: ['popoverTriggerElement'],
45
+ },
46
+ type: 'EVENT_PAYLOAD_BINDING',
47
+ },
48
+ },
49
+ type: 'MAP_CONTAINER',
50
+ },
51
+ },
52
+ operation: null,
53
+ targetId: 'SrpFormOpenPopover',
54
+ type: 'EVENT',
55
+ },
56
+ ],
57
+ },
58
+ {
59
+ eventMappingId: 'srp_form_global_event_screen_status_changed',
60
+ isConfiguration: false,
61
+ offRowStorageId: null,
62
+ sourceEventApiName: 'sn_now_record_form.CTRL_RECORD#SCREEN_STATUS_CHANGED',
63
+ sourceEventCorrelationId: null,
64
+ sourceEventDefinition: {
65
+ apiName: 'sn_now_record_form.CTRL_RECORD#SCREEN_STATUS_CHANGED',
66
+ id: null,
67
+ type: 'UXEVENT',
68
+ },
69
+ sourceEventSysId: null,
70
+ targets: [
71
+ {
72
+ broker: null,
73
+ clientScript: null,
74
+ conditional: {
75
+ operation: {
76
+ left: {
77
+ binding: {
78
+ address: ['record', 'inputs', 'isMappedToAppShell'],
79
+ },
80
+ type: 'DATA_OUTPUT_BINDING',
81
+ },
82
+ operator: 'EQUAL',
83
+ right: {
84
+ type: 'JSON_LITERAL',
85
+ value: true,
86
+ },
87
+ },
88
+ type: 'BINARY',
89
+ },
90
+ declarativeAction: null,
91
+ event: {
92
+ apiName: 'sn_canvas_core.SCREEN_STATUS_CHANGED',
93
+ payload: {
94
+ container: {
95
+ hasUpdate: {
96
+ binding: {
97
+ address: ['hasUpdate'],
98
+ },
99
+ type: 'EVENT_PAYLOAD_BINDING',
100
+ },
101
+ icon: {
102
+ binding: {
103
+ address: ['icon'],
104
+ },
105
+ type: 'EVENT_PAYLOAD_BINDING',
106
+ },
107
+ isDirty: {
108
+ binding: {
109
+ address: ['isDirty'],
110
+ },
111
+ type: 'EVENT_PAYLOAD_BINDING',
112
+ },
113
+ message: {
114
+ binding: {
115
+ address: ['message'],
116
+ },
117
+ type: 'EVENT_PAYLOAD_BINDING',
118
+ },
119
+ primaryItem: {
120
+ binding: {
121
+ address: ['primaryItem'],
122
+ },
123
+ type: 'EVENT_PAYLOAD_BINDING',
124
+ },
125
+ screenKey: {
126
+ binding: {
127
+ address: ['screenKey'],
128
+ },
129
+ type: 'EVENT_PAYLOAD_BINDING',
130
+ },
131
+ screenParams: {
132
+ binding: {
133
+ address: ['screenParams'],
134
+ },
135
+ type: 'EVENT_PAYLOAD_BINDING',
136
+ },
137
+ secondaryItems: {
138
+ binding: {
139
+ address: ['secondaryItems'],
140
+ },
141
+ type: 'EVENT_PAYLOAD_BINDING',
142
+ },
143
+ status: {
144
+ binding: {
145
+ address: ['status'],
146
+ },
147
+ type: 'EVENT_PAYLOAD_BINDING',
148
+ },
149
+ title: {
150
+ binding: {
151
+ address: ['title'],
152
+ },
153
+ type: 'EVENT_PAYLOAD_BINDING',
154
+ },
155
+ tooltipPreview: {
156
+ binding: {
157
+ address: ['tooltipPreview'],
158
+ },
159
+ type: 'EVENT_PAYLOAD_BINDING',
160
+ },
161
+ },
162
+ type: 'MAP_CONTAINER',
163
+ },
164
+ sysId: 'f71f58643791ec0183da148626eb757d',
165
+ },
166
+ operation: null,
167
+ targetId: 'SrpFormScreenStatusChanged',
168
+ type: 'EVENT',
169
+ },
170
+ ],
171
+ },
172
+ {
173
+ eventMappingId: 'srp_form_update_config_menu_requested',
174
+ isConfiguration: false,
175
+ offRowStorageId: null,
176
+ sourceEventApiName: 'sn_now_record_form.CTRL_RECORD#UPDATE_CONFIGURATION_MENU_REQUESTED',
177
+ sourceEventCorrelationId: null,
178
+ sourceEventDefinition: {
179
+ apiName: 'sn_now_record_form.CTRL_RECORD#UPDATE_CONFIGURATION_MENU_REQUESTED',
180
+ id: null,
181
+ type: 'UXEVENT',
182
+ },
183
+ sourceEventSysId: null,
184
+ targets: [
185
+ {
186
+ broker: null,
187
+ clientScript: null,
188
+ conditional: {
189
+ operation: {
190
+ left: {
191
+ binding: {
192
+ address: ['record', 'inputs', 'isMappedToAppShell'],
193
+ },
194
+ type: 'DATA_OUTPUT_BINDING',
195
+ },
196
+ operator: 'EQUAL',
197
+ right: {
198
+ type: 'JSON_LITERAL',
199
+ value: true,
200
+ },
201
+ },
202
+ type: 'BINARY',
203
+ },
204
+ declarativeAction: null,
205
+ event: {
206
+ apiName: 'polaris_app_shell.CONTENT_ITEMS_SELECTED',
207
+ payload: {
208
+ container: {
209
+ items: {
210
+ binding: {
211
+ address: ['items'],
212
+ },
213
+ type: 'EVENT_PAYLOAD_BINDING',
214
+ },
215
+ options: {
216
+ binding: {
217
+ address: ['options'],
218
+ },
219
+ type: 'EVENT_PAYLOAD_BINDING',
220
+ },
221
+ sysId: {
222
+ binding: {
223
+ address: ['sysId'],
224
+ },
225
+ type: 'EVENT_PAYLOAD_BINDING',
226
+ },
227
+ table: {
228
+ binding: {
229
+ address: ['table'],
230
+ },
231
+ type: 'EVENT_PAYLOAD_BINDING',
232
+ },
233
+ },
234
+ type: 'MAP_CONTAINER',
235
+ },
236
+ },
237
+ operation: null,
238
+ targetId: 'SrpFormContentItemsSelected',
239
+ type: 'EVENT',
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ eventMappingId: 'srp_form_phone_requested',
245
+ isConfiguration: false,
246
+ offRowStorageId: null,
247
+ sourceEventApiName: 'sn_now_record_form.CTRL_RECORD#PHONE_REQUESTED',
248
+ sourceEventCorrelationId: null,
249
+ sourceEventDefinition: {
250
+ apiName: 'sn_now_record_form.CTRL_RECORD#PHONE_REQUESTED',
251
+ id: null,
252
+ type: 'UXEVENT',
253
+ },
254
+ sourceEventSysId: null,
255
+ targets: [
256
+ {
257
+ broker: null,
258
+ clientScript: null,
259
+ conditional: {
260
+ operation: {
261
+ left: {
262
+ binding: {
263
+ address: ['record', 'inputs', 'isMappedToAppShell'],
264
+ },
265
+ type: 'DATA_OUTPUT_BINDING',
266
+ },
267
+ operator: 'EQUAL',
268
+ right: {
269
+ type: 'JSON_LITERAL',
270
+ value: true,
271
+ },
272
+ },
273
+ type: 'BINARY',
274
+ },
275
+ declarativeAction: null,
276
+ event: {
277
+ apiName: 'polaris_app_shell.RECORD#OPEN_CALL',
278
+ payload: {
279
+ container: {
280
+ fields: {
281
+ container: {
282
+ opened: {
283
+ type: 'JSON_LITERAL',
284
+ value: true,
285
+ },
286
+ },
287
+ type: 'MAP_CONTAINER',
288
+ },
289
+ iconSelected: {
290
+ type: 'JSON_LITERAL',
291
+ value: true,
292
+ },
293
+ params: {
294
+ container: {
295
+ number: {
296
+ binding: {
297
+ address: ['phoneNumber'],
298
+ },
299
+ type: 'EVENT_PAYLOAD_BINDING',
300
+ },
301
+ source: {
302
+ type: 'JSON_LITERAL',
303
+ value: 'form_field',
304
+ },
305
+ sysId: {
306
+ binding: {
307
+ address: ['sysid'],
308
+ },
309
+ type: 'EVENT_PAYLOAD_BINDING',
310
+ },
311
+ table: {
312
+ binding: {
313
+ address: ['table'],
314
+ },
315
+ type: 'EVENT_PAYLOAD_BINDING',
316
+ },
317
+ },
318
+ type: 'MAP_CONTAINER',
319
+ },
320
+ route: {
321
+ type: 'JSON_LITERAL',
322
+ value: 'cti',
323
+ },
324
+ },
325
+ type: 'MAP_CONTAINER',
326
+ },
327
+ },
328
+ operation: null,
329
+ targetId: 'SrpFormOpenCall',
330
+ type: 'EVENT',
331
+ },
332
+ ],
333
+ },
334
+ {
335
+ eventMappingId: 'srp_form_set_loading_state',
336
+ isConfiguration: false,
337
+ offRowStorageId: null,
338
+ sourceEventApiName: 'sn_now_record_form.CTRL_RECORD#FORM_LOADING_STATE_CHANGED',
339
+ sourceEventCorrelationId: null,
340
+ sourceEventDefinition: {
341
+ apiName: 'sn_now_record_form.CTRL_RECORD#FORM_LOADING_STATE_CHANGED',
342
+ id: null,
343
+ type: 'UXEVENT',
344
+ },
345
+ sourceEventSysId: null,
346
+ targets: [
347
+ {
348
+ broker: null,
349
+ clientScript: null,
350
+ conditional: {
351
+ operation: {
352
+ left: {
353
+ binding: {
354
+ address: ['record', 'inputs', 'isMappedToAppShell'],
355
+ },
356
+ type: 'DATA_OUTPUT_BINDING',
357
+ },
358
+ operator: 'EQUAL',
359
+ right: {
360
+ type: 'JSON_LITERAL',
361
+ value: true,
362
+ },
363
+ },
364
+ type: 'BINARY',
365
+ },
366
+ declarativeAction: null,
367
+ event: {
368
+ apiName: 'sn_uxf_page.NOW_UXF_PAGE#SET_LOADING_STATE',
369
+ payload: {
370
+ container: {
371
+ label: {
372
+ binding: {
373
+ address: ['label'],
374
+ },
375
+ type: 'EVENT_PAYLOAD_BINDING',
376
+ },
377
+ loading: {
378
+ binding: {
379
+ address: ['loading'],
380
+ },
381
+ type: 'EVENT_PAYLOAD_BINDING',
382
+ },
383
+ },
384
+ type: 'MAP_CONTAINER',
385
+ },
386
+ sysId: '0404f68486f1baab1dc7ef2a27a3de50',
387
+ },
388
+ operation: null,
389
+ targetId: 'SrpformSetLoadingState',
390
+ type: 'EVENT',
391
+ },
392
+ ],
393
+ },
394
+ ],
395
+ inputValues: {
396
+ activityLogs: {
397
+ binding: {
398
+ address: ['activityLogs'],
399
+ category: 'props',
400
+ },
401
+ type: 'CONTEXT_BINDING',
402
+ },
403
+ detailsContext: {
404
+ binding: {
405
+ address: ['activityLogs'],
406
+ category: 'props',
407
+ },
408
+ type: 'CONTEXT_BINDING',
409
+ },
410
+ fields: {
411
+ binding: {
412
+ address: ['fields'],
413
+ category: 'props',
414
+ },
415
+ type: 'CONTEXT_BINDING',
416
+ },
417
+ forcedViewName: {
418
+ binding: {
419
+ address: ['views'],
420
+ category: 'props',
421
+ },
422
+ type: 'CONTEXT_BINDING',
423
+ },
424
+ inputExtraParams: {
425
+ binding: {
426
+ address: ['extraParams'],
427
+ category: 'props',
428
+ },
429
+ type: 'CONTEXT_BINDING',
430
+ },
431
+ inputQuery: {
432
+ binding: {
433
+ address: ['query'],
434
+ category: 'props',
435
+ },
436
+ type: 'CONTEXT_BINDING',
437
+ },
438
+ inputSysId: {
439
+ binding: {
440
+ address: ['sysId'],
441
+ category: 'props',
442
+ },
443
+ type: 'CONTEXT_BINDING',
444
+ },
445
+ inputTable: {
446
+ binding: {
447
+ address: ['table'],
448
+ category: 'props',
449
+ },
450
+ type: 'CONTEXT_BINDING',
451
+ },
452
+ isMappedToAppShell: {
453
+ type: 'JSON_LITERAL',
454
+ value: true,
455
+ },
456
+ screen: {
457
+ binding: {
458
+ address: ['screen'],
459
+ category: 'props',
460
+ },
461
+ type: 'CONTEXT_BINDING',
462
+ },
463
+ shouldSuppressGlobalEvents: {
464
+ type: 'JSON_LITERAL',
465
+ value: true,
466
+ },
467
+ userPrefs: {
468
+ binding: {
469
+ address: ['userPrefs'],
470
+ category: 'props',
471
+ },
472
+ type: 'CONTEXT_BINDING',
473
+ },
474
+ view: {
475
+ binding: {
476
+ address: ['view'],
477
+ category: 'app',
478
+ },
479
+ type: 'CONTEXT_BINDING',
480
+ },
481
+ },
482
+ preset: {
483
+ id: 'c22a5b134fb2351043475c11b1ce0ba8',
484
+ },
485
+ readEvaluationMode: 'EAGER',
486
+ },
487
+ {
488
+ cachePolicy: null,
489
+ definition: {
490
+ id: 'fb4d2bf1771211106c1ee297cd5a99a1',
491
+ type: 'GRAPHQL',
492
+ },
493
+ dependencies: {},
494
+ elementId: 'agent_assist_search_prefetch_1',
495
+ elementLabel: 'Agent Assist Search Prefetch 1',
496
+ eventMappings: [],
497
+ inputValues: {
498
+ formSysID: {
499
+ binding: {
500
+ address: ['sysId'],
501
+ category: 'props',
502
+ },
503
+ type: 'CONTEXT_BINDING',
504
+ },
505
+ formTable: {
506
+ binding: {
507
+ address: ['table'],
508
+ category: 'props',
509
+ },
510
+ type: 'CONTEXT_BINDING',
511
+ },
512
+ hints: {
513
+ type: 'JSON_LITERAL',
514
+ value: 'prefetch',
515
+ },
516
+ tableConfig: {
517
+ type: 'JSON_LITERAL',
518
+ value: 'e15061a4b30303002bf182c136a8dc34',
519
+ },
520
+ },
521
+ readEvaluationMode: 'EAGER',
522
+ },
523
+ ])
@@ -0,0 +1,35 @@
1
+ export const internalEventMappings = JSON.stringify({
2
+ 'sn_uxf_page.NOW_UXF_PAGE#RECORD_LINK_CLICKED': [
3
+ {
4
+ broker: null,
5
+ clientScript: null,
6
+ conditional: null,
7
+ declarativeAction: null,
8
+ event: null,
9
+ operation: {
10
+ dataBrokerId: '029f04e053610110ac9bddeeff7b1294',
11
+ operationName: 'SRP_UI_CTRL#RECORD_LINK_CLICKED',
12
+ parentResourceId: 'record',
13
+ payload: {
14
+ container: {
15
+ sysId: {
16
+ binding: {
17
+ address: ['sys_id'],
18
+ },
19
+ type: 'EVENT_PAYLOAD_BINDING',
20
+ },
21
+ table: {
22
+ binding: {
23
+ address: ['table'],
24
+ },
25
+ type: 'EVENT_PAYLOAD_BINDING',
26
+ },
27
+ },
28
+ type: 'MAP_CONTAINER',
29
+ },
30
+ },
31
+ targetId: 'cliidkiiqywaabbggpddbhhukxtqnnob',
32
+ type: 'DATABROKER_OP',
33
+ },
34
+ ],
35
+ })
@@ -0,0 +1,51 @@
1
+ export const layoutModel = JSON.stringify({
2
+ default: {
3
+ children: null,
4
+ isInline: null,
5
+ items: [
6
+ {
7
+ element_id: 'top_container',
8
+ styles: {
9
+ width: '100%',
10
+ },
11
+ },
12
+ {
13
+ element_id: 'ribbon_container',
14
+ styles: {
15
+ width: '100%',
16
+ },
17
+ },
18
+ {
19
+ element_id: 'warning_messages_container',
20
+ styles: {
21
+ width: '100%',
22
+ },
23
+ },
24
+ {
25
+ element_id: 'resizable_panes',
26
+ styles: {
27
+ flex: 'none',
28
+ 'min-width': '880px',
29
+ width: '100%',
30
+ },
31
+ },
32
+ {
33
+ element_id: 'domain_form_layout',
34
+ styles: {},
35
+ },
36
+ ],
37
+ root: null,
38
+ rules: null,
39
+ styles: {
40
+ display: 'grid',
41
+ 'grid-template-columns': '1fr',
42
+ 'grid-template-rows': 'max-content max-content max-content minmax(0px, 1fr)',
43
+ height: '100%',
44
+ 'overflow-x': 'auto',
45
+ width: '100%',
46
+ },
47
+ templateId: '5832fd4d53c31010e6bcddeeff7b12db',
48
+ type: 'grid',
49
+ },
50
+ version: '3.0.0',
51
+ })