@servicenow/sdk-build-plugins 3.0.3 → 4.0.1

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 (359) hide show
  1. package/dist/acl-plugin.d.ts +19 -0
  2. package/dist/acl-plugin.js +210 -0
  3. package/dist/acl-plugin.js.map +1 -0
  4. package/dist/application-menu-plugin.d.ts +18 -0
  5. package/dist/application-menu-plugin.js +104 -0
  6. package/dist/application-menu-plugin.js.map +1 -0
  7. package/dist/arrow-function-plugin.d.ts +16 -0
  8. package/dist/arrow-function-plugin.js +107 -0
  9. package/dist/arrow-function-plugin.js.map +1 -0
  10. package/dist/atf/step-configs.d.ts +39 -0
  11. package/dist/atf/step-configs.js +2334 -0
  12. package/dist/atf/step-configs.js.map +1 -0
  13. package/dist/atf/test-plugin.d.ts +4 -0
  14. package/dist/atf/test-plugin.js +600 -0
  15. package/dist/atf/test-plugin.js.map +1 -0
  16. package/dist/basic-syntax-plugin.d.ts +2 -0
  17. package/dist/basic-syntax-plugin.js +636 -0
  18. package/dist/basic-syntax-plugin.js.map +1 -0
  19. package/dist/business-rule-plugin.d.ts +3 -0
  20. package/dist/business-rule-plugin.js +205 -0
  21. package/dist/business-rule-plugin.js.map +1 -0
  22. package/dist/call-expression-plugin.d.ts +2 -0
  23. package/dist/call-expression-plugin.js +175 -0
  24. package/dist/call-expression-plugin.js.map +1 -0
  25. package/dist/client-script-plugin.d.ts +29 -0
  26. package/dist/client-script-plugin.js +164 -0
  27. package/dist/client-script-plugin.js.map +1 -0
  28. package/dist/column/column-helper.d.ts +12 -0
  29. package/dist/column/column-helper.js +84 -0
  30. package/dist/column/column-helper.js.map +1 -0
  31. package/dist/column/column-to-record.d.ts +3 -0
  32. package/dist/column/column-to-record.js +105 -0
  33. package/dist/column/column-to-record.js.map +1 -0
  34. package/dist/column-plugin.d.ts +8 -0
  35. package/dist/column-plugin.js +453 -0
  36. package/dist/column-plugin.js.map +1 -0
  37. package/dist/cross-scope-privilege-plugin.d.ts +15 -0
  38. package/dist/cross-scope-privilege-plugin.js +82 -0
  39. package/dist/cross-scope-privilege-plugin.js.map +1 -0
  40. package/dist/html-import-plugin.d.ts +2 -0
  41. package/dist/html-import-plugin.js +72 -0
  42. package/dist/html-import-plugin.js.map +1 -0
  43. package/dist/index.d.ts +37 -21
  44. package/dist/index.js +40 -45
  45. package/dist/index.js.map +1 -1
  46. package/dist/json-plugin.d.ts +15 -0
  47. package/dist/json-plugin.js +104 -0
  48. package/dist/json-plugin.js.map +1 -0
  49. package/dist/list-plugin.d.ts +2 -0
  50. package/dist/list-plugin.js +191 -0
  51. package/dist/list-plugin.js.map +1 -0
  52. package/dist/now-config-plugin.d.ts +4 -0
  53. package/dist/now-config-plugin.js +154 -0
  54. package/dist/now-config-plugin.js.map +1 -0
  55. package/dist/now-id-plugin.d.ts +11 -0
  56. package/dist/now-id-plugin.js +71 -0
  57. package/dist/now-id-plugin.js.map +1 -0
  58. package/dist/now-include-plugin.d.ts +16 -0
  59. package/dist/now-include-plugin.js +118 -0
  60. package/dist/now-include-plugin.js.map +1 -0
  61. package/dist/now-ref-plugin.d.ts +2 -0
  62. package/dist/now-ref-plugin.js +43 -0
  63. package/dist/now-ref-plugin.js.map +1 -0
  64. package/dist/now-unresolved-plugin.d.ts +2 -0
  65. package/dist/now-unresolved-plugin.js +32 -0
  66. package/dist/now-unresolved-plugin.js.map +1 -0
  67. package/dist/package-json-plugin.d.ts +2 -0
  68. package/dist/package-json-plugin.js +70 -0
  69. package/dist/package-json-plugin.js.map +1 -0
  70. package/dist/property-plugin.d.ts +2 -0
  71. package/dist/property-plugin.js +105 -0
  72. package/dist/property-plugin.js.map +1 -0
  73. package/dist/record-plugin.d.ts +43 -0
  74. package/dist/record-plugin.js +147 -0
  75. package/dist/record-plugin.js.map +1 -0
  76. package/dist/repack/index.d.ts +1 -0
  77. package/dist/repack/index.js +10 -2
  78. package/dist/repack/index.js.map +1 -1
  79. package/dist/repack/lint/Rules.d.ts +1 -1
  80. package/dist/repack/lint/Rules.js +7 -3
  81. package/dist/repack/lint/Rules.js.map +1 -1
  82. package/dist/repack/lint/index.js +1 -1
  83. package/dist/rest-api-plugin.d.ts +2 -0
  84. package/dist/rest-api-plugin.js +469 -0
  85. package/dist/rest-api-plugin.js.map +1 -0
  86. package/dist/role-plugin.d.ts +2 -0
  87. package/dist/role-plugin.js +117 -0
  88. package/dist/role-plugin.js.map +1 -0
  89. package/dist/script-action-plugin.d.ts +2 -0
  90. package/dist/script-action-plugin.js +62 -0
  91. package/dist/script-action-plugin.js.map +1 -0
  92. package/dist/script-include-plugin.d.ts +2 -0
  93. package/dist/script-include-plugin.js +102 -0
  94. package/dist/script-include-plugin.js.map +1 -0
  95. package/dist/server-module-plugin/index.d.ts +14 -0
  96. package/dist/server-module-plugin/index.js +378 -0
  97. package/dist/server-module-plugin/index.js.map +1 -0
  98. package/dist/server-module-plugin/sbom-builder.d.ts +45 -0
  99. package/dist/server-module-plugin/sbom-builder.js +179 -0
  100. package/dist/server-module-plugin/sbom-builder.js.map +1 -0
  101. package/dist/service-portal/angular-provider-plugin.d.ts +2 -0
  102. package/dist/service-portal/angular-provider-plugin.js +78 -0
  103. package/dist/service-portal/angular-provider-plugin.js.map +1 -0
  104. package/dist/service-portal/dependency-plugin.d.ts +2 -0
  105. package/dist/service-portal/dependency-plugin.js +235 -0
  106. package/dist/service-portal/dependency-plugin.js.map +1 -0
  107. package/dist/service-portal/widget-plugin.d.ts +6 -0
  108. package/dist/service-portal/widget-plugin.js +230 -0
  109. package/dist/service-portal/widget-plugin.js.map +1 -0
  110. package/dist/static-content-plugin.d.ts +2 -0
  111. package/dist/static-content-plugin.js +272 -0
  112. package/dist/static-content-plugin.js.map +1 -0
  113. package/dist/table-plugin.d.ts +3 -0
  114. package/dist/table-plugin.js +1324 -0
  115. package/dist/table-plugin.js.map +1 -0
  116. package/dist/ui-action-plugin.d.ts +2 -0
  117. package/dist/ui-action-plugin.js +291 -0
  118. package/dist/ui-action-plugin.js.map +1 -0
  119. package/dist/ui-page-plugin.d.ts +2 -0
  120. package/dist/ui-page-plugin.js +165 -0
  121. package/dist/ui-page-plugin.js.map +1 -0
  122. package/dist/user-preference-plugin.d.ts +15 -0
  123. package/dist/user-preference-plugin.js +63 -0
  124. package/dist/user-preference-plugin.js.map +1 -0
  125. package/dist/utils.d.ts +17 -0
  126. package/dist/utils.js +72 -0
  127. package/dist/utils.js.map +1 -0
  128. package/dist/view-plugin.d.ts +2 -0
  129. package/dist/view-plugin.js +45 -0
  130. package/dist/view-plugin.js.map +1 -0
  131. package/package.json +17 -13
  132. package/src/acl-plugin.ts +256 -0
  133. package/src/application-menu-plugin.ts +109 -0
  134. package/src/arrow-function-plugin.ts +127 -0
  135. package/src/atf/step-configs.ts +2384 -0
  136. package/src/atf/test-plugin.ts +739 -0
  137. package/src/basic-syntax-plugin.ts +729 -0
  138. package/src/business-rule-plugin.ts +266 -0
  139. package/src/call-expression-plugin.ts +202 -0
  140. package/src/client-script-plugin.ts +179 -0
  141. package/src/column/column-helper.ts +119 -0
  142. package/src/column/column-to-record.ts +131 -0
  143. package/src/column-plugin.ts +506 -0
  144. package/src/cross-scope-privilege-plugin.ts +82 -0
  145. package/src/html-import-plugin.ts +79 -0
  146. package/src/index.ts +39 -21
  147. package/src/json-plugin.ts +128 -0
  148. package/src/list-plugin.ts +222 -0
  149. package/src/now-config-plugin.ts +194 -0
  150. package/src/now-id-plugin.ts +78 -0
  151. package/src/now-include-plugin.ts +140 -0
  152. package/src/now-ref-plugin.ts +48 -0
  153. package/src/now-unresolved-plugin.ts +30 -0
  154. package/src/package-json-plugin.ts +87 -0
  155. package/src/property-plugin.ts +118 -0
  156. package/src/record-plugin.ts +171 -0
  157. package/src/repack/index.ts +10 -1
  158. package/src/repack/lint/Rules.ts +5 -4
  159. package/src/repack/lint/index.ts +1 -1
  160. package/src/rest-api-plugin.ts +658 -0
  161. package/src/role-plugin.ts +128 -0
  162. package/src/script-action-plugin.ts +63 -0
  163. package/src/script-include-plugin.ts +110 -0
  164. package/src/server-module-plugin/index.ts +470 -0
  165. package/src/server-module-plugin/sbom-builder.ts +183 -0
  166. package/src/service-portal/angular-provider-plugin.ts +83 -0
  167. package/src/service-portal/dependency-plugin.ts +284 -0
  168. package/src/service-portal/widget-plugin.ts +263 -0
  169. package/src/static-content-plugin.ts +254 -0
  170. package/src/table-plugin.ts +1698 -0
  171. package/src/ui-action-plugin.ts +324 -0
  172. package/src/ui-page-plugin.ts +168 -0
  173. package/src/user-preference-plugin.ts +62 -0
  174. package/src/utils.ts +69 -0
  175. package/src/view-plugin.ts +46 -0
  176. package/dist/AttachmentPlugin.d.ts +0 -254
  177. package/dist/AttachmentPlugin.js +0 -220
  178. package/dist/AttachmentPlugin.js.map +0 -1
  179. package/dist/BusinessRulePlugin.d.ts +0 -30
  180. package/dist/BusinessRulePlugin.js +0 -149
  181. package/dist/BusinessRulePlugin.js.map +0 -1
  182. package/dist/CrossScopePrivilegePlugin.d.ts +0 -35
  183. package/dist/CrossScopePrivilegePlugin.js +0 -80
  184. package/dist/CrossScopePrivilegePlugin.js.map +0 -1
  185. package/dist/DefaultPlugin.d.ts +0 -86
  186. package/dist/DefaultPlugin.js +0 -226
  187. package/dist/DefaultPlugin.js.map +0 -1
  188. package/dist/HtmlTemplatePlugin.d.ts +0 -21
  189. package/dist/HtmlTemplatePlugin.js +0 -29
  190. package/dist/HtmlTemplatePlugin.js.map +0 -1
  191. package/dist/IdPlugin.d.ts +0 -28
  192. package/dist/IdPlugin.js +0 -68
  193. package/dist/IdPlugin.js.map +0 -1
  194. package/dist/IncludePlugin.d.ts +0 -34
  195. package/dist/IncludePlugin.js +0 -155
  196. package/dist/IncludePlugin.js.map +0 -1
  197. package/dist/JsonPlugin.d.ts +0 -28
  198. package/dist/JsonPlugin.js +0 -69
  199. package/dist/JsonPlugin.js.map +0 -1
  200. package/dist/ListPlugin.d.ts +0 -93
  201. package/dist/ListPlugin.js +0 -456
  202. package/dist/ListPlugin.js.map +0 -1
  203. package/dist/NowConfigPlugin.d.ts +0 -45
  204. package/dist/NowConfigPlugin.js +0 -64
  205. package/dist/NowConfigPlugin.js.map +0 -1
  206. package/dist/PackageJsonPlugin.d.ts +0 -34
  207. package/dist/PackageJsonPlugin.js +0 -63
  208. package/dist/PackageJsonPlugin.js.map +0 -1
  209. package/dist/PropertyPlugin.d.ts +0 -51
  210. package/dist/PropertyPlugin.js +0 -181
  211. package/dist/PropertyPlugin.js.map +0 -1
  212. package/dist/ScriptTemplatePlugin.d.ts +0 -13
  213. package/dist/ScriptTemplatePlugin.js +0 -55
  214. package/dist/ScriptTemplatePlugin.js.map +0 -1
  215. package/dist/ServerModulePlugin.d.ts +0 -75
  216. package/dist/ServerModulePlugin.js +0 -368
  217. package/dist/ServerModulePlugin.js.map +0 -1
  218. package/dist/UserPreferencePlugin.d.ts +0 -19
  219. package/dist/UserPreferencePlugin.js +0 -32
  220. package/dist/UserPreferencePlugin.js.map +0 -1
  221. package/dist/aclAndRole/AclPlugin.d.ts +0 -82
  222. package/dist/aclAndRole/AclPlugin.js +0 -262
  223. package/dist/aclAndRole/AclPlugin.js.map +0 -1
  224. package/dist/aclAndRole/RolePlugin.d.ts +0 -66
  225. package/dist/aclAndRole/RolePlugin.js +0 -179
  226. package/dist/aclAndRole/RolePlugin.js.map +0 -1
  227. package/dist/aclAndRole/Util.d.ts +0 -3
  228. package/dist/aclAndRole/Util.js +0 -90
  229. package/dist/aclAndRole/Util.js.map +0 -1
  230. package/dist/app/ApplicationMenuPlugin.d.ts +0 -34
  231. package/dist/app/ApplicationMenuPlugin.js +0 -112
  232. package/dist/app/ApplicationMenuPlugin.js.map +0 -1
  233. package/dist/db/ColumnPlugins.d.ts +0 -750
  234. package/dist/db/ColumnPlugins.js +0 -114
  235. package/dist/db/ColumnPlugins.js.map +0 -1
  236. package/dist/db/DBUtils.d.ts +0 -2
  237. package/dist/db/DBUtils.js +0 -27
  238. package/dist/db/DBUtils.js.map +0 -1
  239. package/dist/db/DocumentationPlugin.d.ts +0 -67
  240. package/dist/db/DocumentationPlugin.js +0 -258
  241. package/dist/db/DocumentationPlugin.js.map +0 -1
  242. package/dist/db/LicensingPlugin.d.ts +0 -60
  243. package/dist/db/LicensingPlugin.js +0 -117
  244. package/dist/db/LicensingPlugin.js.map +0 -1
  245. package/dist/db/RecordPlugin.d.ts +0 -133
  246. package/dist/db/RecordPlugin.js +0 -337
  247. package/dist/db/RecordPlugin.js.map +0 -1
  248. package/dist/db/TablePlugin.d.ts +0 -231
  249. package/dist/db/TablePlugin.js +0 -1630
  250. package/dist/db/TablePlugin.js.map +0 -1
  251. package/dist/db/index.d.ts +0 -6
  252. package/dist/db/index.js +0 -32
  253. package/dist/db/index.js.map +0 -1
  254. package/dist/scriptedRESTAPI/RESTDeserializationUtils.d.ts +0 -10
  255. package/dist/scriptedRESTAPI/RESTDeserializationUtils.js +0 -373
  256. package/dist/scriptedRESTAPI/RESTDeserializationUtils.js.map +0 -1
  257. package/dist/scriptedRESTAPI/RESTSerializationUtils.d.ts +0 -13
  258. package/dist/scriptedRESTAPI/RESTSerializationUtils.js +0 -177
  259. package/dist/scriptedRESTAPI/RESTSerializationUtils.js.map +0 -1
  260. package/dist/scriptedRESTAPI/RestApiPlugin.d.ts +0 -81
  261. package/dist/scriptedRESTAPI/RestApiPlugin.js +0 -345
  262. package/dist/scriptedRESTAPI/RestApiPlugin.js.map +0 -1
  263. package/dist/scriptedRESTAPI/RestSchemaUtils.d.ts +0 -190
  264. package/dist/scriptedRESTAPI/RestSchemaUtils.js +0 -53
  265. package/dist/scriptedRESTAPI/RestSchemaUtils.js.map +0 -1
  266. package/dist/scriptedRESTAPI/RestUtils.d.ts +0 -69
  267. package/dist/scriptedRESTAPI/RestUtils.js +0 -497
  268. package/dist/scriptedRESTAPI/RestUtils.js.map +0 -1
  269. package/dist/scripts/ClientScriptPlugin.d.ts +0 -64
  270. package/dist/scripts/ClientScriptPlugin.js +0 -170
  271. package/dist/scripts/ClientScriptPlugin.js.map +0 -1
  272. package/dist/scripts/scriptUtils.d.ts +0 -1
  273. package/dist/scripts/scriptUtils.js +0 -9
  274. package/dist/scripts/scriptUtils.js.map +0 -1
  275. package/dist/uxf/ExperiencePlugin.d.ts +0 -45
  276. package/dist/uxf/ExperiencePlugin.js +0 -61
  277. package/dist/uxf/ExperiencePlugin.js.map +0 -1
  278. package/dist/uxf/RoutesPlugin.d.ts +0 -29
  279. package/dist/uxf/RoutesPlugin.js +0 -181
  280. package/dist/uxf/RoutesPlugin.js.map +0 -1
  281. package/dist/uxf/UxfFormulaParser/cleanUxValue.d.ts +0 -4
  282. package/dist/uxf/UxfFormulaParser/cleanUxValue.js +0 -65
  283. package/dist/uxf/UxfFormulaParser/cleanUxValue.js.map +0 -1
  284. package/dist/uxf/UxfFormulaParser/grammerParser/api.d.ts +0 -189
  285. package/dist/uxf/UxfFormulaParser/grammerParser/api.js +0 -158
  286. package/dist/uxf/UxfFormulaParser/grammerParser/api.js.map +0 -1
  287. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.d.ts +0 -13
  288. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +0 -604
  289. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js.map +0 -1
  290. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.d.ts +0 -12
  291. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js +0 -551
  292. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js.map +0 -1
  293. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.d.ts +0 -31
  294. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +0 -64
  295. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js.map +0 -1
  296. package/dist/uxf/UxfFormulaParser/index.d.ts +0 -3
  297. package/dist/uxf/UxfFormulaParser/index.js +0 -11
  298. package/dist/uxf/UxfFormulaParser/index.js.map +0 -1
  299. package/dist/uxf/UxfFormulaParser/parser.d.ts +0 -8
  300. package/dist/uxf/UxfFormulaParser/parser.js +0 -87
  301. package/dist/uxf/UxfFormulaParser/parser.js.map +0 -1
  302. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.d.ts +0 -8
  303. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js +0 -17
  304. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js.map +0 -1
  305. package/dist/uxf/constants.d.ts +0 -2
  306. package/dist/uxf/constants.js +0 -8
  307. package/dist/uxf/constants.js.map +0 -1
  308. package/dist/uxf/index.d.ts +0 -2
  309. package/dist/uxf/index.js +0 -11
  310. package/dist/uxf/index.js.map +0 -1
  311. package/dist/uxf/tectonicIdGenerator.d.ts +0 -12
  312. package/dist/uxf/tectonicIdGenerator.js +0 -79
  313. package/dist/uxf/tectonicIdGenerator.js.map +0 -1
  314. package/src/AttachmentPlugin.ts +0 -268
  315. package/src/BusinessRulePlugin.ts +0 -238
  316. package/src/CrossScopePrivilegePlugin.ts +0 -115
  317. package/src/DefaultPlugin.ts +0 -288
  318. package/src/HtmlTemplatePlugin.ts +0 -31
  319. package/src/IdPlugin.ts +0 -74
  320. package/src/IncludePlugin.ts +0 -206
  321. package/src/JsonPlugin.ts +0 -76
  322. package/src/ListPlugin.ts +0 -570
  323. package/src/NowConfigPlugin.ts +0 -69
  324. package/src/PackageJsonPlugin.ts +0 -68
  325. package/src/PropertyPlugin.ts +0 -237
  326. package/src/ScriptTemplatePlugin.ts +0 -53
  327. package/src/ServerModulePlugin.ts +0 -480
  328. package/src/UserPreferencePlugin.ts +0 -45
  329. package/src/aclAndRole/AclPlugin.ts +0 -420
  330. package/src/aclAndRole/RolePlugin.ts +0 -254
  331. package/src/aclAndRole/Util.ts +0 -113
  332. package/src/app/ApplicationMenuPlugin.ts +0 -165
  333. package/src/db/ColumnPlugins.ts +0 -114
  334. package/src/db/DBUtils.ts +0 -36
  335. package/src/db/DocumentationPlugin.ts +0 -316
  336. package/src/db/LicensingPlugin.ts +0 -138
  337. package/src/db/RecordPlugin.ts +0 -459
  338. package/src/db/TablePlugin.ts +0 -2072
  339. package/src/db/index.ts +0 -6
  340. package/src/scriptedRESTAPI/RESTDeserializationUtils.ts +0 -419
  341. package/src/scriptedRESTAPI/RESTSerializationUtils.ts +0 -228
  342. package/src/scriptedRESTAPI/RestApiPlugin.ts +0 -469
  343. package/src/scriptedRESTAPI/RestSchemaUtils.ts +0 -72
  344. package/src/scriptedRESTAPI/RestUtils.ts +0 -569
  345. package/src/scripts/ClientScriptPlugin.ts +0 -257
  346. package/src/scripts/scriptUtils.ts +0 -5
  347. package/src/uxf/ExperiencePlugin.ts +0 -67
  348. package/src/uxf/RoutesPlugin.ts +0 -211
  349. package/src/uxf/UxfFormulaParser/cleanUxValue.ts +0 -73
  350. package/src/uxf/UxfFormulaParser/grammerParser/api.js +0 -166
  351. package/src/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +0 -606
  352. package/src/uxf/UxfFormulaParser/grammerParser/grammarParser.js +0 -551
  353. package/src/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +0 -65
  354. package/src/uxf/UxfFormulaParser/index.ts +0 -4
  355. package/src/uxf/UxfFormulaParser/parser.ts +0 -64
  356. package/src/uxf/UxfFormulaParser/utils/getErrorMsg.ts +0 -13
  357. package/src/uxf/constants.ts +0 -4
  358. package/src/uxf/index.ts +0 -2
  359. package/src/uxf/tectonicIdGenerator.ts +0 -78
@@ -0,0 +1,2384 @@
1
+ import type { ATFType, StandardStepValues } from '@servicenow/sdk-core/runtime/app'
2
+
3
+ export type ATFVariableInfo = {
4
+ field: string
5
+ inputVariableId: string
6
+ type: string
7
+ order: number
8
+ default?: any
9
+ mandatory?: boolean
10
+ }
11
+
12
+ export type Category = keyof ATFType
13
+
14
+ type FunctionParameters<F> = F extends (inputs: infer P) => any
15
+ ? P extends object
16
+ ? Exclude<keyof P, keyof StandardStepValues>
17
+ : never
18
+ : never
19
+
20
+ type ToRecordStepMetadata = {
21
+ [C in keyof ATFType]: {
22
+ [FunctionName in keyof ATFType[C]]: {
23
+ name: string
24
+ stepConfigId: string
25
+ variables: {
26
+ [K in FunctionParameters<ATFType[C][FunctionName]>]: ATFVariableInfo
27
+ }
28
+ defaultTimeout?: string
29
+ }
30
+ }
31
+ }
32
+
33
+ export const ToRecordStepConfigs: ToRecordStepMetadata = {
34
+ applicationNavigator: {
35
+ applicationMenuVisibility: {
36
+ name: 'Application Menu Visibility',
37
+ stepConfigId: '6228cf753752030064a52f3c8e41f1a8',
38
+ variables: {
39
+ notVisible: {
40
+ field: 'not_visible_applications',
41
+ order: 400,
42
+ inputVariableId: '1b52683573220300c79260bdfaf6a763',
43
+ type: 'glide_list',
44
+ },
45
+ assertVisible: {
46
+ field: 'visible_assert_type',
47
+ order: 100,
48
+ inputVariableId: '746a8fb53752030064a52f3c8e41f14c',
49
+ type: 'choice',
50
+ default: 'at_least_applications_visible',
51
+ },
52
+ assertNotVisible: {
53
+ field: 'not_visible_assert_type',
54
+ order: 300,
55
+ inputVariableId: 'abc1e03573220300c79260bdfaf6a7f0',
56
+ type: 'choice',
57
+ default: 'at_least_applications_not_visible',
58
+ },
59
+ navigator: {
60
+ field: 'navigator',
61
+ order: 50,
62
+ inputVariableId: 'e26225ab73f22010ac1560bdfaf6a7e0',
63
+ type: 'choice',
64
+ default: 'ui15',
65
+ },
66
+ visible: {
67
+ field: 'visible_applications',
68
+ order: 200,
69
+ inputVariableId: 'e9994bb53752030064a52f3c8e41f1a9',
70
+ type: 'glide_list',
71
+ },
72
+ },
73
+ },
74
+ navigateToModule: {
75
+ name: 'Navigate to Module',
76
+ stepConfigId: 'c832fc4073720300c79260bdfaf6a7a0',
77
+ variables: {
78
+ module: {
79
+ field: 'module',
80
+ order: 100,
81
+ inputVariableId: 'b6d2b40c73720300c79260bdfaf6a786',
82
+ type: 'reference',
83
+ },
84
+ },
85
+ },
86
+ moduleVisibility: {
87
+ name: 'Module Visibility',
88
+ stepConfigId: 'f7cfc1973702030064a52f3c8e41f1d3',
89
+ variables: {
90
+ visibleModules: {
91
+ field: 'visible_modules',
92
+ order: 200,
93
+ inputVariableId: '4a3319d73702030064a52f3c8e41f1a9',
94
+ type: 'glide_list',
95
+ },
96
+ assertNotVisible: {
97
+ field: 'not_visible_assert_type',
98
+ order: 300,
99
+ inputVariableId: '8570e0e33756030064a52f3c8e41f16c',
100
+ type: 'choice',
101
+ default: 'at_least_modules_not_visible',
102
+ },
103
+ assertVisible: {
104
+ field: 'visible_assert_type',
105
+ order: 100,
106
+ inputVariableId: '90749dd73702030064a52f3c8e41f12d',
107
+ type: 'choice',
108
+ default: 'at_least_modules_visible',
109
+ },
110
+ notVisibleModules: {
111
+ field: 'not_visible_modules',
112
+ order: 400,
113
+ inputVariableId: '932d14a33756030064a52f3c8e41f120',
114
+ type: 'glide_list',
115
+ },
116
+ navigator: {
117
+ field: 'navigator',
118
+ order: 50,
119
+ inputVariableId: 'b4e438ae73322010ac1560bdfaf6a7a2',
120
+ type: 'choice',
121
+ default: 'ui15',
122
+ },
123
+ },
124
+ },
125
+ },
126
+ email: {
127
+ validateOutboundEmailGeneratedByFlow: {
128
+ name: 'Validate Outbound Email Generated by Flow',
129
+ stepConfigId: '0d09dae4c3033300eaac11fe81d3ae1a',
130
+ variables: {
131
+ conditions: {
132
+ field: 'conditions',
133
+ order: 100,
134
+ inputVariableId: '5b6d7bf8c3033300eaac11fe81d3ae4a',
135
+ type: 'conditions',
136
+ default: 'stateANYTHING^recipientsANYTHING^user_idANYTHING^subjectANYTHING^bodyANYTHING^EQ',
137
+ },
138
+ sourceFlow: {
139
+ field: 'source_flow',
140
+ order: 100,
141
+ inputVariableId: '822fb73cc3033300eaac11fe81d3ae34',
142
+ type: 'reference',
143
+ mandatory: true,
144
+ },
145
+ table: {
146
+ field: 'table_name',
147
+ order: 100,
148
+ inputVariableId: 'bd5df7f8c3033300eaac11fe81d3aef1',
149
+ type: 'table_name',
150
+ default: 'sys_email',
151
+ },
152
+ },
153
+ defaultTimeout: '1970-01-01 00:00:30',
154
+ },
155
+ generateRandomString: {
156
+ name: 'Generate Random String',
157
+ stepConfigId: '263313e4c3123300eaac11fe81d3aef9',
158
+ variables: {
159
+ length: {
160
+ field: 'length',
161
+ order: 100,
162
+ inputVariableId: '594393e4c3123300eaac11fe81d3aef0',
163
+ type: 'integer',
164
+ default: 10,
165
+ },
166
+ },
167
+ },
168
+ validateOutboundEmail: {
169
+ name: 'Validate Outbound Email',
170
+ stepConfigId: '32911152c3833300eaac11fe81d3ae82',
171
+ variables: {
172
+ conditions: {
173
+ field: 'conditions',
174
+ order: 100,
175
+ inputVariableId: '7d821952c3833300eaac11fe81d3ae2e',
176
+ type: 'conditions',
177
+ default:
178
+ 'stateANYTHING^recipientsANYTHING^user_idANYTHING^subjectANYTHING^bodyANYTHING^headersANYTHING^EQ',
179
+ mandatory: true,
180
+ },
181
+ table: {
182
+ field: 'table_name',
183
+ order: 100,
184
+ inputVariableId: '80625552c3833300eaac11fe81d3aedc',
185
+ type: 'table_name',
186
+ default: 'sys_email',
187
+ },
188
+ },
189
+ defaultTimeout: '1970-01-01 00:00:30',
190
+ },
191
+ validateOutboundEmailGeneratedByNotification: {
192
+ name: 'Validate Outbound Email Generated by Notification',
193
+ stepConfigId: 'a5600fa0c3033300eaac11fe81d3ae6a',
194
+ variables: {
195
+ table: {
196
+ field: 'table_name',
197
+ order: 100,
198
+ inputVariableId: '13a08fa0c3033300eaac11fe81d3aecf',
199
+ type: 'table_name',
200
+ default: 'sys_email',
201
+ },
202
+ sourceNotification: {
203
+ field: 'source_notification',
204
+ order: 100,
205
+ inputVariableId: '92c42ff0c3033300eaac11fe81d3aec0',
206
+ type: 'reference',
207
+ mandatory: true,
208
+ },
209
+ conditions: {
210
+ field: 'conditions',
211
+ order: 100,
212
+ inputVariableId: 'd30577f4c3033300eaac11fe81d3ae3e',
213
+ type: 'conditions',
214
+ default: 'stateANYTHING^recipientsANYTHING^user_idANYTHING^subjectANYTHING^bodyANYTHING^EQ',
215
+ },
216
+ },
217
+ defaultTimeout: '1970-01-01 00:00:30',
218
+ },
219
+ generateInboundReplyEmail: {
220
+ name: 'Generate Inbound Reply Email',
221
+ stepConfigId: 'b4549a71c3623300eaac11fe81d3ae15',
222
+ variables: {
223
+ targetRecord: {
224
+ field: 'target_record',
225
+ order: 100,
226
+ inputVariableId: '70c7df8ac3223300eaac11fe81d3aef2',
227
+ type: 'document_id',
228
+ mandatory: true,
229
+ },
230
+ subject: {
231
+ field: 'subject',
232
+ order: 100,
233
+ inputVariableId: '991516b1c3623300eaac11fe81d3aefa',
234
+ type: 'string',
235
+ },
236
+ body: {
237
+ field: 'body',
238
+ order: 100,
239
+ inputVariableId: 'a12596b1c3623300eaac11fe81d3ae1f',
240
+ type: 'string',
241
+ },
242
+ targetTable: {
243
+ field: 'target_table',
244
+ order: 100,
245
+ inputVariableId: 'b7948756c3323300eaac11fe81d3ae2d',
246
+ type: 'table_name',
247
+ mandatory: true,
248
+ },
249
+ from: {
250
+ field: 'from',
251
+ order: 100,
252
+ inputVariableId: 'cc05d2b1c3623300eaac11fe81d3aeda',
253
+ type: 'string',
254
+ },
255
+ to: {
256
+ field: 'to',
257
+ order: 100,
258
+ inputVariableId: 'e274d271c3623300eaac11fe81d3aebe',
259
+ type: 'string',
260
+ mandatory: true,
261
+ },
262
+ },
263
+ },
264
+ generateInboundEmail: {
265
+ name: 'Generate Inbound Email',
266
+ stepConfigId: 'e0e6f84ac3523300eaac11fe81d3ae03',
267
+ variables: {
268
+ from: {
269
+ field: 'from',
270
+ order: 100,
271
+ inputVariableId: '41a99fe1c3323300eaac11fe81d3ae7d',
272
+ type: 'string',
273
+ },
274
+ to: {
275
+ field: 'to',
276
+ order: 100,
277
+ inputVariableId: '61991fe1c3323300eaac11fe81d3aef1',
278
+ type: 'string',
279
+ mandatory: true,
280
+ },
281
+ subject: {
282
+ field: 'subject',
283
+ order: 100,
284
+ inputVariableId: '63a9dfe1c3323300eaac11fe81d3ae70',
285
+ type: 'string',
286
+ },
287
+ body: {
288
+ field: 'body',
289
+ order: 100,
290
+ inputVariableId: '85899be1c3323300eaac11fe81d3aea1',
291
+ type: 'string',
292
+ },
293
+ },
294
+ },
295
+ },
296
+ form: {
297
+ openNewForm: {
298
+ name: 'Open a New Form',
299
+ stepConfigId: '05317cd10b10220050192f15d6673af8',
300
+ variables: {
301
+ view: {
302
+ field: 'view',
303
+ order: 200,
304
+ inputVariableId: '27d4e1c25320220002c6435723dc3486',
305
+ type: 'string',
306
+ },
307
+ recordPath: {
308
+ field: 'record_path',
309
+ order: 100,
310
+ inputVariableId: '3a662f60a3023110571967d1361e6134',
311
+ type: 'string',
312
+ default: 'record',
313
+ },
314
+ formUI: {
315
+ field: 'form_ui',
316
+ order: 50,
317
+ inputVariableId: '6f2a59a4e7133300b5646ea8c2f6a975',
318
+ type: 'choice',
319
+ default: 'standard_ui',
320
+ },
321
+ table: {
322
+ field: 'table',
323
+ order: 100,
324
+ inputVariableId: 'bb84ed825320220002c6435723dc3400',
325
+ type: 'table_name',
326
+ mandatory: true,
327
+ },
328
+ },
329
+ },
330
+ clickUIAction: {
331
+ name: 'Click a UI Action',
332
+ stepConfigId: '0f4a128297202200abe4bb7503ac4af0',
333
+ variables: {
334
+ actionType: {
335
+ field: 'action_type',
336
+ order: 150,
337
+ inputVariableId: '334ea2f153212110248dddeeff7b1255',
338
+ type: 'choice',
339
+ default: 'ui_action',
340
+ },
341
+ table: {
342
+ field: 'table',
343
+ order: 100,
344
+ inputVariableId: '3eee292353e0220002c6435723dc343c',
345
+ type: 'table_name',
346
+ mandatory: true,
347
+ },
348
+ declarativeAction: {
349
+ field: 'declarative_action',
350
+ order: 400,
351
+ inputVariableId: '51547e3953212110248dddeeff7b126b',
352
+ type: 'reference',
353
+ },
354
+ formUI: {
355
+ field: 'form_ui',
356
+ order: 50,
357
+ inputVariableId: '535cb5ab53233300f06fddeeff7b1247',
358
+ type: 'choice',
359
+ default: 'standard_ui',
360
+ },
361
+ assert: {
362
+ field: 'assert_type',
363
+ order: 500,
364
+ inputVariableId: '7600f16353e0220002c6435723dc34d5',
365
+ type: 'choice',
366
+ },
367
+ uiAction: {
368
+ field: 'ui_action',
369
+ order: 400,
370
+ inputVariableId: '7c5f6d2353e0220002c6435723dc34f6',
371
+ type: 'reference',
372
+ },
373
+ },
374
+ defaultTimeout: '1970-01-01 00:00:05',
375
+ },
376
+ fieldValueValidation: {
377
+ name: 'Field Values Validation',
378
+ stepConfigId: '1b97cd31872022008182c9ded0e3ece5',
379
+ variables: {
380
+ conditions: {
381
+ field: 'conditions',
382
+ order: 200,
383
+ inputVariableId: '4aa838f25320220002c6435723dc34e1',
384
+ type: 'conditions',
385
+ mandatory: true,
386
+ },
387
+ table: {
388
+ field: 'table',
389
+ order: 100,
390
+ inputVariableId: 'a0e13cc35320220002c6435723dc3467',
391
+ type: 'table_name',
392
+ mandatory: true,
393
+ },
394
+ formUI: {
395
+ field: 'form_ui',
396
+ order: 50,
397
+ inputVariableId: 'c83b5337e7633300e12127d8d2f6a98b',
398
+ type: 'choice',
399
+ default: 'standard_ui',
400
+ },
401
+ },
402
+ defaultTimeout: '1970-01-01 00:00:05',
403
+ },
404
+ fieldStateValidation: {
405
+ name: 'Field State Validation',
406
+ stepConfigId: '1dfece935332120028bc29cac2dc3478',
407
+ variables: {
408
+ visible: {
409
+ field: 'visible',
410
+ order: 200,
411
+ inputVariableId: '0cd9df135320220002c6435723dc3426',
412
+ type: 'field_list',
413
+ },
414
+ readOnly: {
415
+ field: 'read_only',
416
+ order: 300,
417
+ inputVariableId: '592a17535320220002c6435723dc34d7',
418
+ type: 'field_list',
419
+ },
420
+ mandatory: {
421
+ field: 'mandatory',
422
+ order: 400,
423
+ inputVariableId: '6e5a1b535320220002c6435723dc3498',
424
+ type: 'field_list',
425
+ },
426
+ notMandatory: {
427
+ field: 'not_mandatory',
428
+ order: 410,
429
+ inputVariableId: '787a9b535320220002c6435723dc3455',
430
+ type: 'field_list',
431
+ },
432
+ table: {
433
+ field: 'table',
434
+ order: 100,
435
+ inputVariableId: '80f953535320220002c6435723dc340f',
436
+ type: 'table_name',
437
+ mandatory: true,
438
+ },
439
+ formUI: {
440
+ field: 'form_ui',
441
+ order: 50,
442
+ inputVariableId: 'b1fefcde73633300b19898b8caf6a7af',
443
+ type: 'choice',
444
+ default: 'standard_ui',
445
+ },
446
+ notReadOnly: {
447
+ field: 'not_read_only',
448
+ order: 310,
449
+ inputVariableId: 'e63a97535320220002c6435723dc34b8',
450
+ type: 'field_list',
451
+ },
452
+ notVisible: {
453
+ field: 'not_visible',
454
+ order: 210,
455
+ inputVariableId: 'e81ad3535320220002c6435723dc340c',
456
+ type: 'field_list',
457
+ },
458
+ },
459
+ defaultTimeout: '1970-01-01 00:00:05',
460
+ },
461
+ clickModalButton: {
462
+ name: 'Click Modal Button',
463
+ stepConfigId: '22aed143dfe0220062fe6c7a4df2639d',
464
+ variables: {
465
+ assert: {
466
+ field: 'assert_type',
467
+ order: 100,
468
+ inputVariableId: '22cf38c26721130091d005225685ef81',
469
+ type: 'choice',
470
+ },
471
+ assertTimeout: {
472
+ field: 'assertion_timeout',
473
+ order: 100,
474
+ inputVariableId: '6354395e6761130091d005225685ef4e',
475
+ type: 'glide_duration',
476
+ default: '00:00:05',
477
+ },
478
+ uiPage: {
479
+ field: 'ui_page',
480
+ order: 100,
481
+ inputVariableId: '6fe5aad0c3302200f25d174292d3aeba',
482
+ type: 'reference',
483
+ },
484
+ button: {
485
+ field: 'button',
486
+ order: 200,
487
+ inputVariableId: 'a325ae60c3302200f25d174292d3aebf',
488
+ type: 'string',
489
+ },
490
+ values: {
491
+ field: 'modal_values',
492
+ order: 250,
493
+ inputVariableId: 'd7c942e753a33300ac15ddeeff7b128e',
494
+ type: 'simple_name_values',
495
+ },
496
+ action: {
497
+ field: 'modal_action',
498
+ order: 300,
499
+ inputVariableId: 'e5a3e12353633300ac15ddeeff7b125c',
500
+ type: 'choice',
501
+ default: 'confirm',
502
+ },
503
+ formUI: {
504
+ field: 'form_ui',
505
+ order: 50,
506
+ inputVariableId: 'e9b1cdde53233300ac15ddeeff7b12c2',
507
+ type: 'choice',
508
+ default: 'standard_ui',
509
+ },
510
+ },
511
+ defaultTimeout: '1970-01-01 00:00:05',
512
+ },
513
+ clickDeclarativeAction: {
514
+ name: 'Click a Declarative Action',
515
+ stepConfigId: '49e34cbe433131106580a9bb1cb8f25c',
516
+ variables: {
517
+ assert: {
518
+ field: 'assert_type',
519
+ order: 400,
520
+ inputVariableId: '7cd44032437131106580a9bb1cb8f283',
521
+ type: 'choice',
522
+ },
523
+ table: {
524
+ field: 'table',
525
+ order: 200,
526
+ inputVariableId: 'bc1400fe433131106580a9bb1cb8f2d9',
527
+ type: 'table_name',
528
+ mandatory: true,
529
+ },
530
+ formUI: {
531
+ field: 'form_ui',
532
+ order: 100,
533
+ inputVariableId: 'eb5dd0b6433131106580a9bb1cb8f2c8',
534
+ type: 'choice',
535
+ },
536
+ declarativeAction: {
537
+ field: 'declarative_action',
538
+ order: 300,
539
+ inputVariableId: 'f27484fe433131106580a9bb1cb8f273',
540
+ type: 'reference',
541
+ mandatory: true,
542
+ },
543
+ },
544
+ },
545
+ openExistingRecord: {
546
+ name: 'Open an Existing Record',
547
+ stepConfigId: '5f2e0e535332120028bc29cac2dc34d3',
548
+ variables: {
549
+ formUI: {
550
+ field: 'form_ui',
551
+ order: 50,
552
+ inputVariableId: '17d732a9c7a333005e5c45b881c26007',
553
+ type: 'choice',
554
+ default: 'standard_ui',
555
+ },
556
+ view: {
557
+ field: 'view',
558
+ order: 300,
559
+ inputVariableId: '6e55da4e53a0220002c6435723dc34a0',
560
+ type: 'string',
561
+ },
562
+ recordPath: {
563
+ field: 'record_path',
564
+ order: 100,
565
+ inputVariableId: '74d6e7a0a3023110571967d1361e616b',
566
+ type: 'string',
567
+ default: 'record',
568
+ },
569
+ recordId: {
570
+ field: 'record_id',
571
+ order: 200,
572
+ inputVariableId: 'ad351a4e53a0220002c6435723dc34f0',
573
+ type: 'document_id',
574
+ mandatory: true,
575
+ },
576
+ table: {
577
+ field: 'table',
578
+ order: 100,
579
+ inputVariableId: 'b124164e53a0220002c6435723dc34c5',
580
+ type: 'table_name',
581
+ mandatory: true,
582
+ },
583
+ selectedTabIndex: {
584
+ field: 'selected_tab_index',
585
+ order: 400,
586
+ inputVariableId: 'c2eb56e853422110248dddeeff7b1261',
587
+ type: 'integer',
588
+ default: 1,
589
+ },
590
+ },
591
+ },
592
+ addAttachmentsToForm: {
593
+ name: 'Add Attachments to Form',
594
+ stepConfigId: '6932ee40b760330044026848ee11a960',
595
+ variables: {},
596
+ },
597
+ submitForm: {
598
+ name: 'Submit a Form',
599
+ stepConfigId: 'be8e0a935332120028bc29cac2dc34e4',
600
+ variables: {
601
+ formUI: {
602
+ field: 'form_ui',
603
+ order: 50,
604
+ inputVariableId: 'ae8b91c9ffa333008d3f5d9ad53bf1ba',
605
+ type: 'choice',
606
+ default: 'standard_ui',
607
+ },
608
+ assert: {
609
+ field: 'assert_type',
610
+ order: 100,
611
+ inputVariableId: 'c796d40497302200abe4bb7503ac4ad8',
612
+ type: 'choice',
613
+ },
614
+ },
615
+ defaultTimeout: '1970-01-01 00:00:05',
616
+ },
617
+ declarativeActionVisibility: {
618
+ name: 'Declarative Action Visibility',
619
+ stepConfigId: 'c52ed987437131106580a9bb1cb8f2b8',
620
+ variables: {
621
+ formUI: {
622
+ field: 'form_ui',
623
+ order: 50,
624
+ inputVariableId: '2a3e91c7437131106580a9bb1cb8f283',
625
+ type: 'choice',
626
+ default: 'standard_ui',
627
+ },
628
+ visible: {
629
+ field: 'visible',
630
+ order: 200,
631
+ inputVariableId: '692ed987437131106580a9bb1cb8f2bc',
632
+ type: 'glide_list',
633
+ },
634
+ notVisible: {
635
+ field: 'not_visible',
636
+ order: 300,
637
+ inputVariableId: 'c03e51c7437131106580a9bb1cb8f2bd',
638
+ type: 'glide_list',
639
+ },
640
+ table: {
641
+ field: 'table',
642
+ order: 100,
643
+ inputVariableId: 'd13e91c7437131106580a9bb1cb8f22d',
644
+ type: 'table_name',
645
+ mandatory: true,
646
+ },
647
+ },
648
+ },
649
+ uiActionVisibility: {
650
+ name: 'UI Action Visibility',
651
+ stepConfigId: 'd8fdf5e10b1022009cfdc71437673adc',
652
+ variables: {
653
+ visible: {
654
+ field: 'visible',
655
+ order: 200,
656
+ inputVariableId: '56e6bee65320220002c6435723dc34b9',
657
+ type: 'glide_list',
658
+ },
659
+ notVisible: {
660
+ field: 'not_visible',
661
+ order: 300,
662
+ inputVariableId: '6619c7aa5320220002c6435723dc34e2',
663
+ type: 'glide_list',
664
+ },
665
+ table: {
666
+ field: 'table',
667
+ order: 100,
668
+ inputVariableId: 'ba62b4075320220002c6435723dc34b9',
669
+ type: 'table_name',
670
+ mandatory: true,
671
+ },
672
+ formUI: {
673
+ field: 'form_ui',
674
+ order: 50,
675
+ inputVariableId: 'bc43e004c76733005e5c45b881c26046',
676
+ type: 'choice',
677
+ default: 'standard_ui',
678
+ },
679
+ },
680
+ defaultTimeout: '1970-01-01 00:00:05',
681
+ },
682
+ setFieldValue: {
683
+ name: 'Set Field Values',
684
+ stepConfigId: 'fcae4a935332120028bc29cac2dc340e',
685
+ variables: {
686
+ table: {
687
+ field: 'table',
688
+ order: 100,
689
+ inputVariableId: '424ca6465320220002c6435723dc34b5',
690
+ type: 'table_name',
691
+ mandatory: true,
692
+ },
693
+ formUI: {
694
+ field: 'form_ui',
695
+ order: 50,
696
+ inputVariableId: '946f3c1a0f23330072e6452bc4767eda',
697
+ type: 'choice',
698
+ default: 'standard_ui',
699
+ },
700
+ fieldValues: {
701
+ field: 'field_values',
702
+ order: 100,
703
+ inputVariableId: 'b3dba2465320220002c6435723dc34f0',
704
+ type: 'template_value',
705
+ mandatory: true,
706
+ },
707
+ },
708
+ },
709
+ },
710
+ reporting: {
711
+ reportVisibility: {
712
+ name: 'Report Visibility',
713
+ stepConfigId: 'e6b32c570b10230083332dc3b6673a14',
714
+ variables: {
715
+ report: {
716
+ field: 'report_id',
717
+ order: 100,
718
+ inputVariableId: '6f5d6cd30b10230083332dc3b6673a78',
719
+ type: 'reference',
720
+ mandatory: true,
721
+ },
722
+ assert: {
723
+ field: 'assert_type',
724
+ order: 200,
725
+ inputVariableId: 'ebcd20170b10230083332dc3b6673aa5',
726
+ type: 'choice',
727
+ default: 'can_view_report',
728
+ mandatory: true,
729
+ },
730
+ },
731
+ },
732
+ },
733
+ responsiveDashboard: {
734
+ responsiveDashboardVisibility: {
735
+ name: 'Responsive Dashboard Visibility',
736
+ stepConfigId: '60a41086b31023003e5362ff86a8dc28',
737
+ variables: {
738
+ dashboard: {
739
+ field: 'dashboard_id',
740
+ order: 100,
741
+ inputVariableId: '27f558c6b31023003e5362ff86a8dc5b',
742
+ type: 'reference',
743
+ mandatory: true,
744
+ },
745
+ assert: {
746
+ field: 'assert_type',
747
+ order: 200,
748
+ inputVariableId: '4bb8c906b31023003e5362ff86a8dc9f',
749
+ type: 'choice',
750
+ default: 'dashboard_is_visible',
751
+ mandatory: true,
752
+ },
753
+ },
754
+ },
755
+ responsiveDashboardSharing: {
756
+ name: 'Responsive Dashboard Sharing',
757
+ stepConfigId: 'd4df4ce30b13130083332dc3b6673a29',
758
+ variables: {
759
+ dashboard: {
760
+ field: 'dashboard_id',
761
+ order: 100,
762
+ inputVariableId: '1e6094270b13130083332dc3b6673a42',
763
+ type: 'reference',
764
+ mandatory: true,
765
+ },
766
+ assert: {
767
+ field: 'assert_type',
768
+ order: 200,
769
+ inputVariableId: '4a23d0670b13130083332dc3b6673adb',
770
+ type: 'choice',
771
+ default: 'can_share_dashboard',
772
+ mandatory: true,
773
+ },
774
+ },
775
+ },
776
+ },
777
+ rest: {
778
+ assertStatusCode: {
779
+ name: 'Assert Status Code',
780
+ stepConfigId: '2f4fa7309f132200ef4afa7dc67fcf0f',
781
+ variables: {
782
+ operation: {
783
+ field: 'response_operation',
784
+ order: 100,
785
+ inputVariableId: '1d94cb1f3b8032000774229c93efc419',
786
+ type: 'choice',
787
+ default: 'equals',
788
+ },
789
+ statusCode: {
790
+ field: 'status_code',
791
+ order: 110,
792
+ inputVariableId: '9f5f67709f132200ef4afa7dc67fcf94',
793
+ type: 'integer',
794
+ mandatory: true,
795
+ },
796
+ },
797
+ },
798
+ assertStatusCodeName: {
799
+ name: 'Assert Status Code Name',
800
+ stepConfigId: '49213f709f132200ef4afa7dc67fcfd0',
801
+ variables: {
802
+ codeName: {
803
+ field: 'code_name',
804
+ order: 110,
805
+ inputVariableId: '6a61b3b09f132200ef4afa7dc67fcf36',
806
+ type: 'string',
807
+ },
808
+ operation: {
809
+ field: 'response_operation',
810
+ order: 100,
811
+ inputVariableId: '813133b09f132200ef4afa7dc67fcf6b',
812
+ type: 'choice',
813
+ default: 'contains',
814
+ },
815
+ },
816
+ },
817
+ assertXMLResponsePayloadElement: {
818
+ name: 'Assert XML Response Payload Element',
819
+ stepConfigId: '7b403b079f132200ef4afa7dc67fcf8c',
820
+ variables: {
821
+ operation: {
822
+ field: 'response_operation',
823
+ order: 110,
824
+ inputVariableId: '588e23959f232200ef4afa7dc67fcfd4',
825
+ type: 'choice',
826
+ default: 'exists',
827
+ },
828
+ elementPath: {
829
+ field: 'element_name',
830
+ order: 100,
831
+ inputVariableId: '9afdef559f232200ef4afa7dc67fcf6a',
832
+ type: 'string',
833
+ mandatory: true,
834
+ },
835
+ elementValue: {
836
+ field: 'element_value',
837
+ order: 120,
838
+ inputVariableId: 'd9dfab959f232200ef4afa7dc67fcf2c',
839
+ type: 'string',
840
+ },
841
+ },
842
+ },
843
+ assertResponseTime: {
844
+ name: 'Assert Response Time',
845
+ stepConfigId: '8afa37419f132200ef4afa7dc67fcf7f',
846
+ variables: {
847
+ operation: {
848
+ field: 'response_operation',
849
+ order: 100,
850
+ inputVariableId: '480b3b819f132200ef4afa7dc67fcf33',
851
+ type: 'choice',
852
+ default: 'less_than',
853
+ },
854
+ responseTime: {
855
+ field: 'response_time',
856
+ order: 110,
857
+ inputVariableId: 'ddab3f819f132200ef4afa7dc67fcf2b',
858
+ type: 'integer',
859
+ mandatory: true,
860
+ },
861
+ },
862
+ },
863
+ assertJsonResponsePayloadElement: {
864
+ name: 'Assert JSON Response Payload Element',
865
+ stepConfigId: 'afc114199f132200ef4afa7dc67fcf64',
866
+ variables: {
867
+ operation: {
868
+ field: 'response_operation',
869
+ order: 110,
870
+ inputVariableId: '2db298199f132200ef4afa7dc67fcfbc',
871
+ type: 'choice',
872
+ default: 'exists',
873
+ },
874
+ elementName: {
875
+ field: 'element_name',
876
+ order: 100,
877
+ inputVariableId: '5a9258199f132200ef4afa7dc67fcfb4',
878
+ type: 'string',
879
+ mandatory: true,
880
+ },
881
+ elementValue: {
882
+ field: 'element_value',
883
+ order: 120,
884
+ inputVariableId: '7b139c199f132200ef4afa7dc67fcfb3',
885
+ type: 'string',
886
+ },
887
+ },
888
+ },
889
+ assertResponseHeader: {
890
+ name: 'Assert Response Header',
891
+ stepConfigId: 'ccd64c519f132200ef4afa7dc67fcf6a',
892
+ variables: {
893
+ headerValue: {
894
+ field: 'header_value',
895
+ order: 120,
896
+ inputVariableId: '19280c919f132200ef4afa7dc67fcf16',
897
+ type: 'string',
898
+ },
899
+ operation: {
900
+ field: 'response_operation',
901
+ order: 110,
902
+ inputVariableId: '416784919f132200ef4afa7dc67fcff4',
903
+ type: 'choice',
904
+ default: 'exists',
905
+ },
906
+ headerName: {
907
+ field: 'header_name',
908
+ order: 100,
909
+ inputVariableId: 'cd4744919f132200ef4afa7dc67fcf6e',
910
+ type: 'string',
911
+ mandatory: true,
912
+ },
913
+ },
914
+ },
915
+ assertResponsePayload: {
916
+ name: 'Assert Response Payload',
917
+ stepConfigId: 'd53e40d59f132200ef4afa7dc67fcfc7',
918
+ variables: {
919
+ operation: {
920
+ field: 'response_operation',
921
+ order: 100,
922
+ inputVariableId: 'ccae44d59f132200ef4afa7dc67fcf1e',
923
+ type: 'choice',
924
+ default: 'contains',
925
+ },
926
+ responseBody: {
927
+ field: 'response_body',
928
+ order: 110,
929
+ inputVariableId: 'f0eec4d59f132200ef4afa7dc67fcf6d',
930
+ type: 'string',
931
+ },
932
+ },
933
+ },
934
+ sendRestRequest: {
935
+ name: 'Send REST Request - Inbound',
936
+ stepConfigId: 'e00571a10b3222000b7da95e93673a8f',
937
+ variables: {
938
+ basicAuthentication: {
939
+ field: 'basic_auth',
940
+ order: 100,
941
+ inputVariableId: '020a6af09fd32200ef4afa7dc67fcfec',
942
+ type: 'reference',
943
+ },
944
+ path: {
945
+ field: 'end_point',
946
+ order: 2,
947
+ inputVariableId: '50bff9250b3222000b7da95e93673a9b',
948
+ type: 'string',
949
+ mandatory: true,
950
+ },
951
+ queryParameters: {
952
+ field: 'query_params',
953
+ order: 3,
954
+ inputVariableId: '58408e250b3222000b7da95e93673a5c',
955
+ type: 'simple_name_values',
956
+ },
957
+ method: {
958
+ field: 'http_method',
959
+ order: 1,
960
+ inputVariableId: '59877da10b3222000b7da95e93673a56',
961
+ type: 'choice',
962
+ default: 'get',
963
+ mandatory: true,
964
+ },
965
+ auth: {
966
+ field: 'auth_type',
967
+ order: 100,
968
+ inputVariableId: '6cdd0ab543010210b6f9a0246bb8f2f2',
969
+ type: 'choice',
970
+ default: 'basic',
971
+ },
972
+ body: {
973
+ field: 'request_body',
974
+ order: 5,
975
+ inputVariableId: '81e042650b3222000b7da95e93673aa2',
976
+ type: 'string',
977
+ },
978
+ mutualAuth: {
979
+ field: 'mutual_auth',
980
+ order: 100,
981
+ inputVariableId: '89ad06b543010210b6f9a0246bb8f2d7',
982
+ type: 'reference',
983
+ },
984
+ headers: {
985
+ field: 'headers',
986
+ order: 4,
987
+ inputVariableId: 'cec002650b3222000b7da95e93673aae',
988
+ type: 'simple_name_values',
989
+ },
990
+ },
991
+ },
992
+ assertResponseJSONPayloadIsValid: {
993
+ name: 'Assert Response JSON Payload Is Valid',
994
+ stepConfigId: 'f100f7079f132200ef4afa7dc67fcf42',
995
+ variables: {},
996
+ },
997
+ assertResponseXMLPayloadIsWellFormed: {
998
+ name: 'Assert Response XML Payload Is Well-Formed',
999
+ stepConfigId: 'f530dcd59f132200ef4afa7dc67fcf03',
1000
+ variables: {},
1001
+ },
1002
+ },
1003
+ server: {
1004
+ impersonate: {
1005
+ name: 'Impersonate',
1006
+ stepConfigId: '071ee5b253331200040729cac2dc348d',
1007
+ variables: {
1008
+ user: {
1009
+ field: 'user',
1010
+ order: 100,
1011
+ inputVariableId: '586e2c4253e0220002c6435723dc3415',
1012
+ type: 'reference',
1013
+ mandatory: true,
1014
+ },
1015
+ },
1016
+ },
1017
+ recordInsert: {
1018
+ name: 'Record Insert',
1019
+ stepConfigId: '14872288df60220062fe6c7a4df26319',
1020
+ variables: {
1021
+ table: {
1022
+ field: 'table',
1023
+ order: 200,
1024
+ inputVariableId: '90144b535320220002c6435723dc3488',
1025
+ type: 'table_name',
1026
+ mandatory: true,
1027
+ },
1028
+ assert: {
1029
+ field: 'assert_type',
1030
+ order: 100,
1031
+ inputVariableId: '9024a37f671003007ba405225685efe5',
1032
+ type: 'choice',
1033
+ default: 'record_successfully_inserted',
1034
+ },
1035
+ fieldValues: {
1036
+ field: 'field_values',
1037
+ order: 400,
1038
+ inputVariableId: 'dd54cf535320220002c6435723dc34fd',
1039
+ type: 'template_value',
1040
+ mandatory: true,
1041
+ },
1042
+ enforceSecurity: {
1043
+ field: 'enforce_security',
1044
+ order: 100,
1045
+ inputVariableId: 'e6e3c7535320220002c6435723dc3496',
1046
+ type: 'boolean',
1047
+ default: true,
1048
+ },
1049
+ },
1050
+ },
1051
+ recordUpdate: {
1052
+ name: 'Record Update',
1053
+ stepConfigId: '17a72288df60220062fe6c7a4df26397',
1054
+ variables: {
1055
+ assert: {
1056
+ field: 'assert_type',
1057
+ order: 100,
1058
+ inputVariableId: '334b7bb7675003007ba405225685ef72',
1059
+ type: 'choice',
1060
+ default: 'record_successfully_updated',
1061
+ },
1062
+ enforceSecurity: {
1063
+ field: 'enforce_security',
1064
+ order: 100,
1065
+ inputVariableId: '46dbcb535320220002c6435723dc3409',
1066
+ type: 'boolean',
1067
+ default: true,
1068
+ },
1069
+ recordId: {
1070
+ field: 'record_id',
1071
+ order: 300,
1072
+ inputVariableId: '501c8f535320220002c6435723dc34da',
1073
+ type: 'document_id',
1074
+ mandatory: true,
1075
+ },
1076
+ table: {
1077
+ field: 'table',
1078
+ order: 200,
1079
+ inputVariableId: '53fb0f535320220002c6435723dc34ec',
1080
+ type: 'table_name',
1081
+ mandatory: true,
1082
+ },
1083
+ fieldValues: {
1084
+ field: 'field_values',
1085
+ order: 400,
1086
+ inputVariableId: 'bc4c43935320220002c6435723dc34a2',
1087
+ type: 'template_value',
1088
+ mandatory: true,
1089
+ },
1090
+ },
1091
+ },
1092
+ recordValidation: {
1093
+ name: 'Record Validation',
1094
+ stepConfigId: '1f39a288df60220062fe6c7a4df2639d',
1095
+ variables: {
1096
+ recordId: {
1097
+ field: 'record_id',
1098
+ order: 200,
1099
+ inputVariableId: '52ed1e5b5360220002c6435723dc3421',
1100
+ type: 'document_id',
1101
+ mandatory: true,
1102
+ },
1103
+ assert: {
1104
+ field: 'assert_type',
1105
+ order: 100,
1106
+ inputVariableId: '67400008676003007ba405225685efa4',
1107
+ type: 'choice',
1108
+ default: 'record_validated',
1109
+ },
1110
+ table: {
1111
+ field: 'table',
1112
+ order: 100,
1113
+ inputVariableId: '6aad5a575360220002c6435723dc34b0',
1114
+ type: 'table_name',
1115
+ mandatory: true,
1116
+ },
1117
+ enforceSecurity: {
1118
+ field: 'enforce_security',
1119
+ order: 10,
1120
+ inputVariableId: 'cbddfa135320220002c6435723dc3415',
1121
+ type: 'boolean',
1122
+ default: true,
1123
+ },
1124
+ fieldValues: {
1125
+ field: 'field_values',
1126
+ order: 300,
1127
+ inputVariableId: 'ff6e125353a0220002c6435723dc3442',
1128
+ type: 'conditions',
1129
+ },
1130
+ },
1131
+ defaultTimeout: '1970-01-01 00:00:05',
1132
+ },
1133
+ setOutputVariables: {
1134
+ name: 'Set Output Variables',
1135
+ stepConfigId: '26302752a33012100df567d1361e61ef',
1136
+ variables: {},
1137
+ },
1138
+ recordQuery: {
1139
+ name: 'Record Query',
1140
+ stepConfigId: '2d82e3c7531400109e02ddeeff7b12a7',
1141
+ variables: {
1142
+ enforceSecurity: {
1143
+ field: 'enforce_security',
1144
+ order: 100,
1145
+ inputVariableId: '02fb0027531000109e02ddeeff7b120b',
1146
+ type: 'boolean',
1147
+ },
1148
+ table: {
1149
+ field: 'table',
1150
+ order: 300,
1151
+ inputVariableId: '78b8d86b531000109e02ddeeff7b12f3',
1152
+ type: 'table_name',
1153
+ mandatory: true,
1154
+ },
1155
+ fieldValues: {
1156
+ field: 'field_values',
1157
+ order: 400,
1158
+ inputVariableId: '915990ab531000109e02ddeeff7b12f8',
1159
+ type: 'conditions',
1160
+ mandatory: true,
1161
+ },
1162
+ assert: {
1163
+ field: 'assert_type',
1164
+ order: 200,
1165
+ inputVariableId: 'b86c0427531000109e02ddeeff7b1227',
1166
+ type: 'choice',
1167
+ default: 'records_match_query',
1168
+ },
1169
+ },
1170
+ defaultTimeout: '1970-01-01 00:00:05',
1171
+ },
1172
+ runServerSideScript: {
1173
+ name: 'Run Server Side Script',
1174
+ stepConfigId: '41de4a935332120028bc29cac2dc349a',
1175
+ variables: {
1176
+ jasmineVersion: {
1177
+ field: 'jasmine_version',
1178
+ order: 100,
1179
+ inputVariableId: '42f2564b73031300440211d8faf6a777',
1180
+ type: 'choice',
1181
+ default: '3.1',
1182
+ mandatory: true,
1183
+ },
1184
+ script: {
1185
+ field: 'script',
1186
+ order: 200,
1187
+ inputVariableId: '989d9e235324220002c6435723dc3484',
1188
+ type: 'script',
1189
+ default: `// You can use this step to execute a variety of server-side javascript tests including
1190
+ // jasmine tests and custom assertions
1191
+ //
1192
+ //
1193
+ // Pass or fail a step: Override the step outcome to pass or fail. This is ignored
1194
+ // by jasmine tests
1195
+ //
1196
+ // - Return true from the main function body to pass the step
1197
+ // - Return false from the main function body to fail the step
1198
+ //
1199
+ //
1200
+ // outputs: Pre-defined Step config Output variables to set on this step during
1201
+ // execution that are available to later steps
1202
+ //
1203
+ // steps(SYS_ID): A function to retrieve Output variable data from a step that executed
1204
+ // earlier in the test. The desired step's sys_id is required
1205
+ //
1206
+ // params: The current test run data set's parameter data including both
1207
+ // exclusive and shared parameters
1208
+ //
1209
+ // Example:
1210
+ //
1211
+ // // Test step 1 - add data
1212
+ // var gr = new GlideRecord('sc_task');
1213
+ // // If parameterized testing is enabled, parameters are stored in the params object
1214
+ // gr.setValue('short_description', params.u_my_short_description)
1215
+ // gr.setValue('caller', params.u_my_user.manager)
1216
+ // // this sample step's Step config has Output variables named table and record_id
1217
+ // outputs.table = 'sc_task';
1218
+ // outputs.record_id = gr.insert();
1219
+ //
1220
+ // // Test step 2 - access added data and validate
1221
+ // // check that the record exists (or that business logic changed it)
1222
+ // var gr = new GlideRecord("sc_task");
1223
+ // gr.get(steps(PREVIOUS_STEP_SYS_ID).record_id);
1224
+ // assertEqual({name: "task gr exists", shouldbe: true, value: gr.isValidRecord()});
1225
+ //
1226
+ //
1227
+ // stepResult.setOutputMessage: Log a message to step results after step executes.
1228
+ // Can only be called once or will overwrite previous
1229
+ // message
1230
+ //
1231
+ // Example:
1232
+ //
1233
+ // var gr = new GlideRecord('sc_task');
1234
+ // gr.setValue('short_description', 'verify task can be inserted');
1235
+ // var grSysId = gr.insert();
1236
+ // var justCreatedGR = new GlideRecord('sc_task');
1237
+ // if (justCreatedGR.get(grSysId)) {
1238
+ // stepResult.setOutputMessage("Successfully inserted task record");
1239
+ // return true; // pass the step
1240
+ // } else {
1241
+ // stepResult.setOutputMessage("Failed to insert task record");
1242
+ // return false; // fail the step
1243
+ // }
1244
+ //
1245
+ //
1246
+ // Note: describe is only supported in Global scope.
1247
+ // Use 'describe' to create a suite of test scripts and 'it' to define test expectations
1248
+ //
1249
+ // Example jasmine test:
1250
+ //
1251
+ // describe('my suite of script tests', function() {
1252
+ // it('should meet expectations', function() {
1253
+ // expect(true).not.toBe(false);
1254
+ // });
1255
+ // });
1256
+ // // make sure to uncomment jasmine.getEnv().execute(); outside the function body
1257
+ //
1258
+ //
1259
+ // assertEqual: A function used to compare that assertion.shouldbe == assertion.value;
1260
+ // in case of failure it throws an Error and logs that the assertion by
1261
+ // name has failed
1262
+ //
1263
+ // Example:
1264
+ //
1265
+ // var testAssertion = {
1266
+ // name: "my test assertion",
1267
+ // shouldbe: "expected value"
1268
+ // value: "actual value",
1269
+ // };
1270
+ // assertEqual(testAssertion); // throws Error, logs message to test step output
1271
+ //
1272
+ (function(outputs, steps, params, stepResult, assertEqual) {
1273
+ // add test script here
1274
+
1275
+ })(outputs, steps, params, stepResult, assertEqual);
1276
+ // uncomment the next line to execute this script as a jasmine test
1277
+ //jasmine.getEnv().execute();
1278
+ `,
1279
+ },
1280
+ },
1281
+ },
1282
+ addAttachmentsToExistingRecord: {
1283
+ name: 'Add Attachments to Existing Record',
1284
+ stepConfigId: '52c6cdb3b710330044026848ee11a91d',
1285
+ variables: {
1286
+ recordId: {
1287
+ field: 'record_id',
1288
+ order: 200,
1289
+ inputVariableId: '96f2dd0673203300440211d8faf6a77c',
1290
+ type: 'document_id',
1291
+ mandatory: true,
1292
+ },
1293
+ table: {
1294
+ field: 'table',
1295
+ order: 200,
1296
+ inputVariableId: 'dd184137b710330044026848ee11a96b',
1297
+ type: 'table_name',
1298
+ mandatory: true,
1299
+ },
1300
+ },
1301
+ },
1302
+ log: {
1303
+ name: 'Log',
1304
+ stepConfigId: '58ab71985f30220012b44adb7f46661e',
1305
+ variables: {
1306
+ log: {
1307
+ field: 'log',
1308
+ order: 100,
1309
+ inputVariableId: '523c79985f30220012b44adb7f46663a',
1310
+ type: 'string',
1311
+ },
1312
+ },
1313
+ },
1314
+ replayRequestItem: {
1315
+ name: 'Replay Request Item',
1316
+ stepConfigId: '7f49ec32532022008aaec57906dc3473',
1317
+ variables: {
1318
+ request_item: {
1319
+ field: 'request_item',
1320
+ order: 100,
1321
+ inputVariableId: '7ed0d66f53e0220002c6435723dc3441',
1322
+ type: 'reference',
1323
+ },
1324
+ },
1325
+ },
1326
+ recordDelete: {
1327
+ name: 'Record Delete',
1328
+ stepConfigId: '8df72288df60220062fe6c7a4df2636d',
1329
+ variables: {
1330
+ table: {
1331
+ field: 'table',
1332
+ order: 200,
1333
+ inputVariableId: '3d6d8b935320220002c6435723dc349c',
1334
+ type: 'table_name',
1335
+ mandatory: true,
1336
+ },
1337
+ recordId: {
1338
+ field: 'record_id',
1339
+ order: 300,
1340
+ inputVariableId: '8f7d0f935320220002c6435723dc3471',
1341
+ type: 'document_id',
1342
+ mandatory: true,
1343
+ },
1344
+ assert: {
1345
+ field: 'assert_type',
1346
+ order: 100,
1347
+ inputVariableId: 'c7e483f3671003007ba405225685effb',
1348
+ type: 'choice',
1349
+ default: 'record_successfully_deleted',
1350
+ },
1351
+ enforceSecurity: {
1352
+ field: 'enforce_security',
1353
+ order: 100,
1354
+ inputVariableId: 'd13d0b935320220002c6435723dc34c8',
1355
+ type: 'boolean',
1356
+ default: true,
1357
+ },
1358
+ },
1359
+ },
1360
+ searchForCatalogItem: {
1361
+ name: 'Search for a Catalog Item',
1362
+ stepConfigId: '96103fdfc3e0320076173b0ac3d3ae57',
1363
+ variables: {
1364
+ assertItem: {
1365
+ field: 'assert_item',
1366
+ order: 400,
1367
+ inputVariableId: '0ddfbbd3c324320076173b0ac3d3ae07',
1368
+ type: 'reference',
1369
+ mandatory: true,
1370
+ },
1371
+ searchInPortal: {
1372
+ field: 'search_in_portal',
1373
+ order: 100,
1374
+ inputVariableId: '16bb323787221300bcbf480688cb0bce',
1375
+ type: 'boolean',
1376
+ },
1377
+ catalog: {
1378
+ field: 'catalog',
1379
+ order: 200,
1380
+ inputVariableId: '45623b13c324320076173b0ac3d3aefc',
1381
+ type: 'reference',
1382
+ },
1383
+ searchTerm: {
1384
+ field: 'search_term',
1385
+ order: 100,
1386
+ inputVariableId: '4f32f713c324320076173b0ac3d3ae7e',
1387
+ type: 'string',
1388
+ mandatory: true,
1389
+ },
1390
+ category: {
1391
+ field: 'category',
1392
+ order: 300,
1393
+ inputVariableId: '82233f13c324320076173b0ac3d3aef7',
1394
+ type: 'reference',
1395
+ },
1396
+ assert: {
1397
+ field: 'assert_type',
1398
+ order: 500,
1399
+ inputVariableId: 'a588587787a91300e0ef0cf888cb0b01',
1400
+ type: 'choice',
1401
+ default: 'assert_item_present',
1402
+ },
1403
+ },
1404
+ },
1405
+ checkoutShoppingCart: {
1406
+ name: 'Checkout Shopping Cart',
1407
+ stepConfigId: '9a351369536303000a51ddeeff7b125b',
1408
+ variables: {
1409
+ deliveryAddress: {
1410
+ field: 'delivery_address',
1411
+ order: 300,
1412
+ inputVariableId: '4bd3647953a303000a51ddeeff7b126a',
1413
+ type: 'string',
1414
+ },
1415
+ specialInstructions: {
1416
+ field: 'special_instructions',
1417
+ order: 400,
1418
+ inputVariableId: '6573647953a303000a51ddeeff7b120b',
1419
+ type: 'string',
1420
+ },
1421
+ assert: {
1422
+ field: 'assert_type',
1423
+ order: 100,
1424
+ inputVariableId: '9c661769536303000a51ddeeff7b12d0',
1425
+ type: 'choice',
1426
+ default: 'checkout_successfull',
1427
+ mandatory: true,
1428
+ },
1429
+ requestedFor: {
1430
+ field: 'requested_for',
1431
+ order: 200,
1432
+ inputVariableId: 'f4d2607953a303000a51ddeeff7b1263',
1433
+ type: 'reference',
1434
+ },
1435
+ },
1436
+ },
1437
+ createUser: {
1438
+ name: 'Create a User',
1439
+ stepConfigId: 'd9bc5f21ff6033008d3f5d9ad53bf12d',
1440
+ variables: {
1441
+ fieldValues: {
1442
+ field: 'field_values',
1443
+ order: 100,
1444
+ inputVariableId: '1778a7480f20101091d0f00c97767e03',
1445
+ type: 'template_value',
1446
+ },
1447
+ firstName: {
1448
+ field: 'first_name',
1449
+ order: 100,
1450
+ inputVariableId: '1985e0ceff2433008d3f5d9ad53bf1ba',
1451
+ type: 'string',
1452
+ },
1453
+ lastName: {
1454
+ field: 'last_name',
1455
+ order: 100,
1456
+ inputVariableId: '6f69fc4aff6433008d3f5d9ad53bf18c',
1457
+ type: 'string',
1458
+ },
1459
+ roles: {
1460
+ field: 'roles',
1461
+ order: 100,
1462
+ inputVariableId: '8c07aba5ff6033008d3f5d9ad53bf13b',
1463
+ type: 'glide_list',
1464
+ },
1465
+ impersonate: {
1466
+ field: 'impersonate',
1467
+ order: 100,
1468
+ inputVariableId: '98c44875ffa033008d3f5d9ad53bf1fa',
1469
+ type: 'boolean',
1470
+ default: true,
1471
+ },
1472
+ groups: {
1473
+ field: 'groups',
1474
+ order: 100,
1475
+ inputVariableId: 'b27b2b29ff6033008d3f5d9ad53bf164',
1476
+ type: 'glide_list',
1477
+ },
1478
+ table: {
1479
+ field: 'table',
1480
+ order: 100,
1481
+ inputVariableId: 'ff06ab840f20101091d0f00c97767e6d',
1482
+ type: 'table_name',
1483
+ default: 'sys_user',
1484
+ },
1485
+ },
1486
+ },
1487
+ },
1488
+ catalog: {
1489
+ openCatalogItem: {
1490
+ name: 'Open a Catalog Item',
1491
+ stepConfigId: '2516c0e1c332220076173b0ac3d3ae39',
1492
+ variables: {
1493
+ catalogItem: {
1494
+ field: 'catalog_item',
1495
+ order: 100,
1496
+ inputVariableId: 'b0d64ce1c332220076173b0ac3d3ae95',
1497
+ type: 'reference',
1498
+ mandatory: true,
1499
+ },
1500
+ },
1501
+ },
1502
+ setVariableValue: {
1503
+ name: 'Set Variable Values',
1504
+ stepConfigId: '323ca6e1c3b2220076173b0ac3d3aec1',
1505
+ variables: {
1506
+ variableValues: {
1507
+ field: 'variable_values',
1508
+ order: 200,
1509
+ inputVariableId: '346eea25c3b2220076173b0ac3d3ae8b',
1510
+ type: 'variable_template_value',
1511
+ },
1512
+ catalogItem: {
1513
+ field: 'catalog_item',
1514
+ order: 100,
1515
+ inputVariableId: '571e6a25c3b2220076173b0ac3d3ae46',
1516
+ type: 'reference',
1517
+ mandatory: true,
1518
+ },
1519
+ },
1520
+ },
1521
+ variableStateValidation: {
1522
+ name: 'Variable State Validation',
1523
+ stepConfigId: '33f637e8c3ba220076173b0ac3d3aee1',
1524
+ variables: {
1525
+ notVisible: {
1526
+ field: 'not_visible',
1527
+ order: 300,
1528
+ inputVariableId: '32e8ffe8c3ba220076173b0ac3d3ae6e',
1529
+ type: 'slushbucket',
1530
+ },
1531
+ mandatory: {
1532
+ field: 'mandatory',
1533
+ order: 600,
1534
+ inputVariableId: '5149372cc3ba220076173b0ac3d3ae98',
1535
+ type: 'slushbucket',
1536
+ },
1537
+ visible: {
1538
+ field: 'visible',
1539
+ order: 200,
1540
+ inputVariableId: 'a7987fe8c3ba220076173b0ac3d3ae1d',
1541
+ type: 'slushbucket',
1542
+ },
1543
+ notMandatory: {
1544
+ field: 'not_mandatory',
1545
+ order: 700,
1546
+ inputVariableId: 'ab59772cc3ba220076173b0ac3d3ae9c',
1547
+ type: 'slushbucket',
1548
+ },
1549
+ catalogItem: {
1550
+ field: 'catalog_item',
1551
+ order: 100,
1552
+ inputVariableId: 'ae58fbe8c3ba220076173b0ac3d3aeac',
1553
+ type: 'reference',
1554
+ mandatory: true,
1555
+ },
1556
+ readOnly: {
1557
+ field: 'read_only',
1558
+ order: 400,
1559
+ inputVariableId: 'd829b32cc3ba220076173b0ac3d3aea1',
1560
+ type: 'slushbucket',
1561
+ },
1562
+ notReadOnly: {
1563
+ field: 'not_read_only',
1564
+ order: 500,
1565
+ inputVariableId: 'e439f32cc3ba220076173b0ac3d3ae90',
1566
+ type: 'slushbucket',
1567
+ },
1568
+ },
1569
+ },
1570
+ addItemToShoppingCart: {
1571
+ name: 'Add Item to Shopping Cart',
1572
+ stepConfigId: '550270f2c310320076173b0ac3d3aeec',
1573
+ variables: {
1574
+ assert: {
1575
+ field: 'assert_type',
1576
+ order: 100,
1577
+ inputVariableId: '939234f2c310320076173b0ac3d3ae14',
1578
+ type: 'choice',
1579
+ default: 'form_submitted_to_server',
1580
+ mandatory: true,
1581
+ },
1582
+ },
1583
+ },
1584
+ validateVariableValue: {
1585
+ name: 'Validate Variable Values',
1586
+ stepConfigId: '5a36c681c37e220076173b0ac3d3aecf',
1587
+ variables: {
1588
+ catalogConditions: {
1589
+ field: 'catalog_conditions',
1590
+ order: 200,
1591
+ inputVariableId: '8a682649c37e220076173b0ac3d3ae47',
1592
+ type: 'variable_conditions',
1593
+ },
1594
+ catalogItem: {
1595
+ field: 'catalog_item',
1596
+ order: 100,
1597
+ inputVariableId: 'b46842c1c37e220076173b0ac3d3aebc',
1598
+ type: 'reference',
1599
+ mandatory: true,
1600
+ },
1601
+ },
1602
+ },
1603
+ validatePriceAndRecurringPrice: {
1604
+ name: 'Validate Price and Recurring Price',
1605
+ stepConfigId: '70a083b0c323220076173b0ac3d3aee8',
1606
+ variables: {
1607
+ recurringPrice: {
1608
+ field: 'recurring_price',
1609
+ order: 200,
1610
+ inputVariableId: '0aae0520c390320076173b0ac3d3ae3a',
1611
+ type: 'string',
1612
+ },
1613
+ frequency: {
1614
+ field: 'recurring_frequency',
1615
+ order: 300,
1616
+ inputVariableId: '7011ccb1c333220076173b0ac3d3aef3',
1617
+ type: 'choice',
1618
+ },
1619
+ price: {
1620
+ field: 'price',
1621
+ order: 100,
1622
+ inputVariableId: 'f49ec120c390320076173b0ac3d3ae10',
1623
+ type: 'string',
1624
+ },
1625
+ },
1626
+ },
1627
+ openRecordProducer: {
1628
+ name: 'Open a Record Producer',
1629
+ stepConfigId: '77409f72c300320076173b0ac3d3ae19',
1630
+ variables: {
1631
+ catalogItem: {
1632
+ field: 'catalog_item',
1633
+ order: 100,
1634
+ inputVariableId: 'a9145b43c300320076173b0ac3d3ae0e',
1635
+ type: 'reference',
1636
+ mandatory: true,
1637
+ },
1638
+ },
1639
+ },
1640
+ orderCatalogItem: {
1641
+ name: 'Order Catalog Item',
1642
+ stepConfigId: 'c930b4b2c310320076173b0ac3d3aeec',
1643
+ variables: {
1644
+ assert: {
1645
+ field: 'assert_type',
1646
+ order: 100,
1647
+ inputVariableId: '17513cb2c310320076173b0ac3d3ae64',
1648
+ type: 'choice',
1649
+ default: 'form_submitted_to_server',
1650
+ mandatory: true,
1651
+ },
1652
+ },
1653
+ },
1654
+ setCatalogItemQuantity: {
1655
+ name: 'Set Catalog Item Quantity',
1656
+ stepConfigId: 'd5d9e7e7c3d7220076173b0ac3d3ae0b',
1657
+ variables: {
1658
+ quantity: {
1659
+ field: 'quantity',
1660
+ order: 100,
1661
+ inputVariableId: '3c267f6bc3d7220076173b0ac3d3ae56',
1662
+ type: 'choice',
1663
+ default: '1',
1664
+ mandatory: true,
1665
+ },
1666
+ },
1667
+ },
1668
+ submitRecordProducer: {
1669
+ name: 'Submit Record Producer',
1670
+ stepConfigId: 'ed59d8e5c332220076173b0ac3d3ae6a',
1671
+ variables: {
1672
+ assert: {
1673
+ field: 'assert_type',
1674
+ order: 200,
1675
+ inputVariableId: 'ffaf5469c332220076173b0ac3d3aea9',
1676
+ type: 'choice',
1677
+ default: 'form_submitted_to_server',
1678
+ mandatory: true,
1679
+ },
1680
+ },
1681
+ },
1682
+ },
1683
+ catalog_SP: {
1684
+ addItemtoShoppingCart: {
1685
+ name: 'Add Item to Shopping Cart (SP)',
1686
+ stepConfigId: '00696ee073330300688e0d573cf6a71a',
1687
+ variables: {
1688
+ assert: {
1689
+ field: 'assert_type',
1690
+ order: 100,
1691
+ inputVariableId: '25abf57873730300688e0d573cf6a7af',
1692
+ type: 'choice',
1693
+ default: 'form_submitted_to_server',
1694
+ mandatory: true,
1695
+ },
1696
+ },
1697
+ },
1698
+ validatePriceAndRecurringPrice: {
1699
+ name: 'Validate Price and Recurring Price (SP)',
1700
+ stepConfigId: '095c4877732b03008e6b0d573cf6a717',
1701
+ variables: {
1702
+ frequency: {
1703
+ field: 'recurring_frequency',
1704
+ order: 300,
1705
+ inputVariableId: '6ccd00b7732b03008e6b0d573cf6a7ba',
1706
+ type: 'choice',
1707
+ },
1708
+ recurringPrice: {
1709
+ field: 'recurring_price',
1710
+ order: 200,
1711
+ inputVariableId: '7a9dcc77732b03008e6b0d573cf6a786',
1712
+ type: 'string',
1713
+ },
1714
+ price: {
1715
+ field: 'price',
1716
+ order: 100,
1717
+ inputVariableId: '935d4c77732b03008e6b0d573cf6a748',
1718
+ type: 'string',
1719
+ },
1720
+ },
1721
+ },
1722
+ navigatewithinOrderGuide: {
1723
+ name: 'Navigate within Order Guide (SP)',
1724
+ stepConfigId: '0ae5f9f2739713008e6b0d573cf6a718',
1725
+ variables: {
1726
+ guideStep: {
1727
+ field: 'guide_step',
1728
+ order: 200,
1729
+ inputVariableId: '812616fa739713008e6b0d573cf6a7b6',
1730
+ type: 'choice',
1731
+ default: '1',
1732
+ mandatory: true,
1733
+ },
1734
+ assert: {
1735
+ field: 'assert_type',
1736
+ order: 300,
1737
+ inputVariableId: 'b935deba739713008e6b0d573cf6a71b',
1738
+ type: 'choice',
1739
+ default: 'navigate_success',
1740
+ mandatory: true,
1741
+ },
1742
+ },
1743
+ },
1744
+ reviewOrderGuideSummary: {
1745
+ name: 'Review Order Guide Summary (SP)',
1746
+ stepConfigId: '1df5d27073a71300688e0d573cf6a751',
1747
+ variables: {
1748
+ price: {
1749
+ field: 'price',
1750
+ order: 200,
1751
+ inputVariableId: '4f84767c736b1300688e0d573cf6a70c',
1752
+ type: 'string',
1753
+ },
1754
+ items: {
1755
+ field: 'catalog_items',
1756
+ order: 100,
1757
+ inputVariableId: 'a196d6f873a71300688e0d573cf6a761',
1758
+ type: 'glide_list',
1759
+ mandatory: true,
1760
+ },
1761
+ },
1762
+ },
1763
+ variableStateValidation: {
1764
+ name: 'Variable State Validation (SP)',
1765
+ stepConfigId: '1ebb17799f1303002528d4b4232e70c0',
1766
+ variables: {
1767
+ catalogItem: {
1768
+ field: 'catalog_item',
1769
+ order: 100,
1770
+ inputVariableId: '00eb17799f1303002528d4b4232e70fe',
1771
+ type: 'reference',
1772
+ mandatory: true,
1773
+ },
1774
+ notVisible: {
1775
+ field: 'not_visible',
1776
+ order: 300,
1777
+ inputVariableId: '080e93b99f1303002528d4b4232e706d',
1778
+ type: 'slushbucket',
1779
+ },
1780
+ notReadOnly: {
1781
+ field: 'not_read_only',
1782
+ order: 500,
1783
+ inputVariableId: '41ae57b99f1303002528d4b4232e7076',
1784
+ type: 'slushbucket',
1785
+ },
1786
+ readOnly: {
1787
+ field: 'read_only',
1788
+ order: 400,
1789
+ inputVariableId: '516e57b99f1303002528d4b4232e700b',
1790
+ type: 'slushbucket',
1791
+ },
1792
+ mandatory: {
1793
+ field: 'mandatory',
1794
+ order: 600,
1795
+ inputVariableId: 'b3be97b99f1303002528d4b4232e70ce',
1796
+ type: 'slushbucket',
1797
+ },
1798
+ notMandatory: {
1799
+ field: 'not_mandatory',
1800
+ order: 700,
1801
+ inputVariableId: 'b4de97b99f1303002528d4b4232e7077',
1802
+ type: 'slushbucket',
1803
+ },
1804
+ variableSet: {
1805
+ field: 'variable_set',
1806
+ order: 150,
1807
+ inputVariableId: 'd92b4dd673142300688e0d573cf6a7c3',
1808
+ type: 'reference',
1809
+ },
1810
+ visible: {
1811
+ field: 'visible',
1812
+ order: 200,
1813
+ inputVariableId: 'fe5d9f799f1303002528d4b4232e70d7',
1814
+ type: 'slushbucket',
1815
+ },
1816
+ },
1817
+ },
1818
+ reviewIteminOrderGuide: {
1819
+ name: 'Review Item in Order Guide (SP)',
1820
+ stepConfigId: '2098710873631300688e0d573cf6a7d7',
1821
+ variables: {
1822
+ included: {
1823
+ field: 'included',
1824
+ order: 200,
1825
+ inputVariableId: 'aa3a45a873e31300688e0d573cf6a784',
1826
+ type: 'boolean',
1827
+ default: true,
1828
+ },
1829
+ item: {
1830
+ field: 'catalog_item',
1831
+ order: 100,
1832
+ inputVariableId: 'ff05052873e31300688e0d573cf6a7ed',
1833
+ type: 'reference',
1834
+ mandatory: true,
1835
+ },
1836
+ },
1837
+ },
1838
+ validateVariableValue: {
1839
+ name: 'Validate Variable Values (SP)',
1840
+ stepConfigId: '2c8882759f1303002528d4b4232e708a',
1841
+ variables: {
1842
+ catalogItem: {
1843
+ field: 'catalog_item',
1844
+ order: 100,
1845
+ inputVariableId: '9b5b4e759f1303002528d4b4232e7026',
1846
+ type: 'reference',
1847
+ mandatory: true,
1848
+ },
1849
+ variableValues: {
1850
+ field: 'catalog_conditions',
1851
+ order: 200,
1852
+ inputVariableId: 'e0cc42b59f1303002528d4b4232e70f9',
1853
+ type: 'variable_conditions',
1854
+ },
1855
+ variableSet: {
1856
+ field: 'variable_set',
1857
+ order: 150,
1858
+ inputVariableId: 'f2fac9d673142300688e0d573cf6a7e0',
1859
+ type: 'reference',
1860
+ },
1861
+ },
1862
+ },
1863
+ setVariableValue: {
1864
+ name: 'Set Variable Values (SP)',
1865
+ stepConfigId: '2e4229b48703030070870cf888cb0b5c',
1866
+ variables: {
1867
+ variableSet: {
1868
+ field: 'variable_set',
1869
+ order: 150,
1870
+ inputVariableId: '2fba49d673142300688e0d573cf6a748',
1871
+ type: 'reference',
1872
+ },
1873
+ variableValues: {
1874
+ field: 'variable_values',
1875
+ order: 200,
1876
+ inputVariableId: '3f3525f48703030070870cf888cb0b37',
1877
+ type: 'variable_template_value',
1878
+ },
1879
+ catalogItem: {
1880
+ field: 'catalog_item',
1881
+ order: 100,
1882
+ inputVariableId: 'd164adb48703030070870cf888cb0b30',
1883
+ type: 'reference',
1884
+ mandatory: true,
1885
+ },
1886
+ },
1887
+ },
1888
+ addOrderGuidetoShoppingCart: {
1889
+ name: 'Add Order Guide to Shopping Cart (SP)',
1890
+ stepConfigId: '559099f287131300b179480688cb0b1a',
1891
+ variables: {
1892
+ assert: {
1893
+ field: 'assert_type',
1894
+ order: 100,
1895
+ inputVariableId: 'd482697a87131300b179480688cb0b65',
1896
+ type: 'choice',
1897
+ default: 'form_submitted_to_server',
1898
+ mandatory: true,
1899
+ },
1900
+ },
1901
+ },
1902
+ setCatalogItemQuantity: {
1903
+ name: 'Set Catalog Item Quantity (SP)',
1904
+ stepConfigId: '697ce2d87323030076860d573cf6a708',
1905
+ variables: {
1906
+ quantity: {
1907
+ field: 'quantity',
1908
+ order: 100,
1909
+ inputVariableId: 'c73fe21c7323030076860d573cf6a736',
1910
+ type: 'choice',
1911
+ default: '1',
1912
+ mandatory: true,
1913
+ },
1914
+ },
1915
+ },
1916
+ submitOrderGuide: {
1917
+ name: 'Submit an Order Guide (SP)',
1918
+ stepConfigId: '6ad01e9387131300b179480688cb0b8f',
1919
+ variables: {
1920
+ assert: {
1921
+ field: 'assert_type',
1922
+ order: 100,
1923
+ inputVariableId: '5befded787131300b179480688cb0bf4',
1924
+ type: 'choice',
1925
+ default: 'form_submitted_to_server',
1926
+ mandatory: true,
1927
+ },
1928
+ },
1929
+ },
1930
+ openRecordProducer: {
1931
+ name: 'Open a Record Producer (SP)',
1932
+ stepConfigId: '775638f29f3203002899d4b4232e70e5',
1933
+ variables: {
1934
+ portal: {
1935
+ field: 'portal_id',
1936
+ order: 100,
1937
+ inputVariableId: '37a7bcf29f3203002899d4b4232e7090',
1938
+ type: 'reference',
1939
+ default: '81b75d3147032100ba13a5554ee4902b',
1940
+ mandatory: true,
1941
+ },
1942
+ queryParameters: {
1943
+ field: 'query_params',
1944
+ order: 400,
1945
+ inputVariableId: '5258f0369f3203002899d4b4232e704a',
1946
+ type: 'simple_name_values',
1947
+ },
1948
+ page: {
1949
+ field: 'page_id',
1950
+ order: 200,
1951
+ inputVariableId: '908942839f3203002899d4b4232e7016',
1952
+ type: 'reference',
1953
+ default: '9f12251147132100ba13a5554ee490f4',
1954
+ mandatory: true,
1955
+ },
1956
+ recordProducer: {
1957
+ field: 'catalog_item',
1958
+ order: 300,
1959
+ inputVariableId: 'de1c3dbc8703030070870cf888cb0b68',
1960
+ type: 'reference',
1961
+ mandatory: true,
1962
+ },
1963
+ },
1964
+ },
1965
+ submitRecordProducer: {
1966
+ name: 'Submit Record Producer (SP)',
1967
+ stepConfigId: '7c69d2788743030070870cf888cb0b5f',
1968
+ variables: {
1969
+ assert: {
1970
+ field: 'assert_type',
1971
+ order: 100,
1972
+ inputVariableId: '3c2ad2788743030070870cf888cb0b0c',
1973
+ type: 'choice',
1974
+ default: 'form_submitted_to_server',
1975
+ mandatory: true,
1976
+ },
1977
+ },
1978
+ },
1979
+ openOrderGuide: {
1980
+ name: 'Open an Order Guide (SP)',
1981
+ stepConfigId: 'aced8452731b13008e6b0d573cf6a783',
1982
+ variables: {
1983
+ portal: {
1984
+ field: 'portal_id',
1985
+ order: 100,
1986
+ inputVariableId: '1a6e4896731b13008e6b0d573cf6a78f',
1987
+ type: 'reference',
1988
+ default: '81b75d3147032100ba13a5554ee4902b',
1989
+ mandatory: true,
1990
+ },
1991
+ queryParameters: {
1992
+ field: 'query_params',
1993
+ order: 400,
1994
+ inputVariableId: 'a410505a731b13008e6b0d573cf6a71c',
1995
+ type: 'simple_name_values',
1996
+ },
1997
+ orderGuide: {
1998
+ field: 'catalog_item',
1999
+ order: 300,
2000
+ inputVariableId: 'ab1de4ae73d313008e6b0d573cf6a76b',
2001
+ type: 'reference',
2002
+ mandatory: true,
2003
+ },
2004
+ page: {
2005
+ field: 'page_id',
2006
+ order: 200,
2007
+ inputVariableId: 'b7be4cd6731b13008e6b0d573cf6a746',
2008
+ type: 'reference',
2009
+ default: 'sc_cat_item_guide',
2010
+ mandatory: true,
2011
+ },
2012
+ },
2013
+ },
2014
+ saveCurrentRowOfMultiRowVariableSet: {
2015
+ name: 'Save current row of multi-row variable set (SP)',
2016
+ stepConfigId: 'adf6884273902300688e0d573cf6a72a',
2017
+ variables: {
2018
+ assert: {
2019
+ field: 'assert_type',
2020
+ order: 100,
2021
+ inputVariableId: '7f15580673902300688e0d573cf6a795',
2022
+ type: 'choice',
2023
+ default: 'form_submitted_to_server',
2024
+ mandatory: true,
2025
+ },
2026
+ },
2027
+ },
2028
+ orderCatalogItem: {
2029
+ name: 'Order a Catalog Item (SP)',
2030
+ stepConfigId: 'c0fede515f23030076861f9f2f7313db',
2031
+ variables: {
2032
+ assert: {
2033
+ field: 'assert_type',
2034
+ order: 100,
2035
+ inputVariableId: 'b27f92915f23030076861f9f2f731356',
2036
+ type: 'choice',
2037
+ default: 'form_submitted_to_server',
2038
+ mandatory: true,
2039
+ },
2040
+ },
2041
+ },
2042
+ addRowToMultiRowVariableSet: {
2043
+ name: 'Add row to multi-row variable set (SP)',
2044
+ stepConfigId: 'c7d557d673002300688e0d573cf6a74f',
2045
+ variables: {
2046
+ catalogItem: {
2047
+ field: 'catalog_item',
2048
+ order: 100,
2049
+ inputVariableId: '20594c3673802300688e0d573cf6a722',
2050
+ type: 'reference',
2051
+ mandatory: true,
2052
+ },
2053
+ variableSet: {
2054
+ field: 'variable_set',
2055
+ order: 200,
2056
+ inputVariableId: 'c6f9407673802300688e0d573cf6a789',
2057
+ type: 'reference',
2058
+ mandatory: true,
2059
+ },
2060
+ },
2061
+ },
2062
+ validateOrderGuideItem: {
2063
+ name: 'Validate Order Guide Items (SP)',
2064
+ stepConfigId: 'd7c0d0ef5f9b1300688e1f9f2f7313b7',
2065
+ variables: {
2066
+ items: {
2067
+ field: 'catalog_items',
2068
+ order: 100,
2069
+ inputVariableId: '7e6350235fdb1300688e1f9f2f7313e9',
2070
+ type: 'glide_list',
2071
+ mandatory: true,
2072
+ },
2073
+ },
2074
+ },
2075
+ openCatalogItem: {
2076
+ name: 'Open a Catalog Item (SP)',
2077
+ stepConfigId: 'e81f02dc73e703008e6b0d573cf6a76f',
2078
+ variables: {
2079
+ portal: {
2080
+ field: 'portal_id',
2081
+ order: 100,
2082
+ inputVariableId: '3731d6dc73e703008e6b0d573cf6a788',
2083
+ type: 'reference',
2084
+ default: '81b75d3147032100ba13a5554ee4902b',
2085
+ mandatory: true,
2086
+ },
2087
+ queryParameters: {
2088
+ field: 'query_params',
2089
+ order: 150,
2090
+ inputVariableId: '3a6e5fb15f1013001f1e1f9f2f7313e3',
2091
+ type: 'simple_name_values',
2092
+ },
2093
+ page: {
2094
+ field: 'page_id',
2095
+ order: 110,
2096
+ inputVariableId: '83d1dadc73e703008e6b0d573cf6a779',
2097
+ type: 'reference',
2098
+ default: 'sc_cat_item',
2099
+ mandatory: true,
2100
+ },
2101
+ catalogItem: {
2102
+ field: 'catalog_item',
2103
+ order: 120,
2104
+ inputVariableId: 'ac615adc73e703008e6b0d573cf6a702',
2105
+ type: 'reference',
2106
+ mandatory: true,
2107
+ },
2108
+ },
2109
+ },
2110
+ },
2111
+ form_SP: {
2112
+ uiActionVisibilityValidation: {
2113
+ name: 'UI Action Visibility Validation (SP)',
2114
+ stepConfigId: '02b5128223230300ab65ff5e17bf658e',
2115
+ variables: {
2116
+ notVisible: {
2117
+ field: 'not_visible',
2118
+ order: 300,
2119
+ inputVariableId: '1f1c920623230300ab65ff5e17bf6504',
2120
+ type: 'glide_list',
2121
+ },
2122
+ visible: {
2123
+ field: 'visible',
2124
+ order: 200,
2125
+ inputVariableId: '7acbdec223230300ab65ff5e17bf65ea',
2126
+ type: 'glide_list',
2127
+ },
2128
+ table: {
2129
+ field: 'table',
2130
+ order: 100,
2131
+ inputVariableId: 'cd5b1ec223230300ab65ff5e17bf65c9',
2132
+ type: 'table_name',
2133
+ mandatory: true,
2134
+ },
2135
+ },
2136
+ },
2137
+ addAttachmentsToForm: {
2138
+ name: 'Add Attachments to Form (SP)',
2139
+ stepConfigId: '5415748677120010e46abe41a910616a',
2140
+ variables: {},
2141
+ },
2142
+ clickUIAction: {
2143
+ name: 'Click a UI Action (SP)',
2144
+ stepConfigId: '86ec986123630300ab65ff5e17bf65a5',
2145
+ variables: {
2146
+ table: {
2147
+ field: 'table',
2148
+ order: 100,
2149
+ inputVariableId: '535064a123630300ab65ff5e17bf65d3',
2150
+ type: 'table_name',
2151
+ mandatory: true,
2152
+ },
2153
+ uiAction: {
2154
+ field: 'ui_action',
2155
+ order: 200,
2156
+ inputVariableId: 'd670a4a123630300ab65ff5e17bf65f4',
2157
+ type: 'reference',
2158
+ mandatory: true,
2159
+ },
2160
+ assert: {
2161
+ field: 'assert_type',
2162
+ order: 300,
2163
+ inputVariableId: 'dee0e8a123630300ab65ff5e17bf657d',
2164
+ type: 'choice',
2165
+ },
2166
+ },
2167
+ },
2168
+ fieldStateValidation: {
2169
+ name: 'Field State Validation (SP)',
2170
+ stepConfigId: 'af1e769223220300ab65ff5e17bf6580',
2171
+ variables: {
2172
+ readOnly: {
2173
+ field: 'read_only',
2174
+ order: 300,
2175
+ inputVariableId: '5208475623220300ab65ff5e17bf6516',
2176
+ type: 'field_list',
2177
+ },
2178
+ notReadOnly: {
2179
+ field: 'not_read_only',
2180
+ order: 310,
2181
+ inputVariableId: '5f48c75623220300ab65ff5e17bf6541',
2182
+ type: 'field_list',
2183
+ },
2184
+ table: {
2185
+ field: 'table',
2186
+ order: 100,
2187
+ inputVariableId: '7e53031623220300ab65ff5e17bf6558',
2188
+ type: 'table_name',
2189
+ mandatory: true,
2190
+ },
2191
+ visible: {
2192
+ field: 'visible',
2193
+ order: 200,
2194
+ inputVariableId: '87260f1623220300ab65ff5e17bf65d1',
2195
+ type: 'field_list',
2196
+ },
2197
+ mandatory: {
2198
+ field: 'mandatory',
2199
+ order: 400,
2200
+ inputVariableId: '9b980b5623220300ab65ff5e17bf6542',
2201
+ type: 'field_list',
2202
+ },
2203
+ notVisible: {
2204
+ field: 'not_visible',
2205
+ order: 210,
2206
+ inputVariableId: 'cfa7835623220300ab65ff5e17bf6587',
2207
+ type: 'field_list',
2208
+ },
2209
+ notMandatory: {
2210
+ field: 'not_mandatory',
2211
+ order: 410,
2212
+ inputVariableId: 'f2e84b5623220300ab65ff5e17bf656d',
2213
+ type: 'field_list',
2214
+ },
2215
+ },
2216
+ },
2217
+ setFieldValue: {
2218
+ name: 'Set Field Values (SP)',
2219
+ stepConfigId: 'ba49e51de7420300b2888f49c2f6a93c',
2220
+ variables: {
2221
+ fieldValues: {
2222
+ field: 'field_values',
2223
+ order: 200,
2224
+ inputVariableId: '5c297551e7020300b2888f49c2f6a933',
2225
+ type: 'template_value',
2226
+ mandatory: true,
2227
+ },
2228
+ table: {
2229
+ field: 'table',
2230
+ order: 100,
2231
+ inputVariableId: 'adf8f511e7020300b2888f49c2f6a9f3',
2232
+ type: 'table_name',
2233
+ mandatory: true,
2234
+ },
2235
+ },
2236
+ },
2237
+ openNewForm: {
2238
+ name: 'Open a Form (SP)',
2239
+ stepConfigId: 'ca58a941e7020300b2888f49c2f6a95e',
2240
+ variables: {
2241
+ paramID: {
2242
+ field: 'param_sys_id',
2243
+ order: 400,
2244
+ inputVariableId: '38a5351b23101300ab65ff5e17bf65fa',
2245
+ type: 'string',
2246
+ },
2247
+ portal: {
2248
+ field: 'portal_id',
2249
+ order: 100,
2250
+ inputVariableId: '5d5a2181e7020300b2888f49c2f6a9dc',
2251
+ type: 'reference',
2252
+ default: '81b75d3147032100ba13a5554ee4902b',
2253
+ mandatory: true,
2254
+ },
2255
+ page: {
2256
+ field: 'page_id',
2257
+ order: 200,
2258
+ inputVariableId: '757a6181e7020300b2888f49c2f6a9f7',
2259
+ type: 'reference',
2260
+ default: 'form',
2261
+ mandatory: true,
2262
+ },
2263
+ view: {
2264
+ field: 'param_view',
2265
+ order: 500,
2266
+ inputVariableId: 'a266791b23101300ab65ff5e17bf654b',
2267
+ type: 'string',
2268
+ },
2269
+ queryParameters: {
2270
+ field: 'query_params',
2271
+ order: 600,
2272
+ inputVariableId: 'a38ae181e7020300b2888f49c2f6a92e',
2273
+ type: 'simple_name_values',
2274
+ },
2275
+ table: {
2276
+ field: 'table',
2277
+ order: 300,
2278
+ inputVariableId: 'ee6aa11723101300ab65ff5e17bf65db',
2279
+ type: 'table_name',
2280
+ mandatory: true,
2281
+ },
2282
+ },
2283
+ },
2284
+ fieldValueValidation: {
2285
+ name: 'Field Values Validation (SP)',
2286
+ stepConfigId: 'd72d0556e7020300b2888f49c2f6a916',
2287
+ variables: {
2288
+ table: {
2289
+ field: 'table',
2290
+ order: 100,
2291
+ inputVariableId: '819f0596e7020300b2888f49c2f6a9c7',
2292
+ type: 'table_name',
2293
+ mandatory: true,
2294
+ },
2295
+ conditions: {
2296
+ field: 'conditions',
2297
+ order: 200,
2298
+ inputVariableId: '88cf4596e7020300b2888f49c2f6a992',
2299
+ type: 'conditions',
2300
+ mandatory: true,
2301
+ },
2302
+ },
2303
+ },
2304
+ submitForm: {
2305
+ name: 'Submit a Form (SP)',
2306
+ stepConfigId: 'f410c93423220300ab65ff5e17bf651e',
2307
+ variables: {
2308
+ assert: {
2309
+ field: 'assert_type',
2310
+ order: 100,
2311
+ inputVariableId: '14874d1523320300ab65ff5e17bf650e',
2312
+ type: 'choice',
2313
+ },
2314
+ },
2315
+ },
2316
+ // Note: this step config is actually part of the Custom UI
2317
+ // category, but was added here in the v1 release of this plugin.
2318
+ openServicePortalPage: {
2319
+ name: 'Open Service Portal Page',
2320
+ stepConfigId: 'fc7e65d577332300e46abe41a9106106',
2321
+ variables: {
2322
+ portal: {
2323
+ field: 'portal_id',
2324
+ order: 100,
2325
+ inputVariableId: '5a7e65d577332300e46abe41a91061cb',
2326
+ type: 'reference',
2327
+ },
2328
+ queryParameters: {
2329
+ field: 'query_params',
2330
+ order: 300,
2331
+ inputVariableId: '839e29d577332300e46abe41a9106134',
2332
+ type: 'simple_name_values',
2333
+ },
2334
+ page: {
2335
+ field: 'page_id',
2336
+ order: 200,
2337
+ inputVariableId: 'ca8ea5d577332300e46abe41a91061b6',
2338
+ type: 'reference',
2339
+ },
2340
+ },
2341
+ },
2342
+ },
2343
+ }
2344
+ export type ToShapeStepMetadata = Record<
2345
+ string,
2346
+ {
2347
+ name: string
2348
+ stepConfig: string
2349
+ callName: string
2350
+ fun: string
2351
+ variables: Record<
2352
+ string,
2353
+ {
2354
+ name: string
2355
+ field: string
2356
+ type: string
2357
+ mandatory: boolean
2358
+ default?: any
2359
+ }
2360
+ >
2361
+ }
2362
+ >
2363
+ // This object is like ToRecordStepConfigs, but optimized for Record -> Fluent conversion
2364
+ // where we have various sys_ids, but need the Fluent names for them.
2365
+ export const ToShapeStepConfigs: ToShapeStepMetadata = Object.entries(ToRecordStepConfigs)
2366
+ .flatMap(([category, funConfig]) =>
2367
+ Object.entries(funConfig).map(([fun, config]) => ({
2368
+ ...config,
2369
+ fun,
2370
+ callName: `${category}.${fun}`,
2371
+ variables: Object.entries(config.variables)
2372
+ .map(([name, definition]) => ({
2373
+ [definition.inputVariableId]: {
2374
+ name,
2375
+ type: definition.type,
2376
+ field: definition.field,
2377
+ default: definition.default,
2378
+ mandatory: !!definition.mandatory,
2379
+ },
2380
+ }))
2381
+ .reduce((acc, v) => ({ ...acc, ...v }), {}),
2382
+ }))
2383
+ )
2384
+ .reduce((acc, entry) => ({ ...acc, [entry.stepConfigId]: entry }), {})