@appsemble/utils 0.33.5 → 0.33.7

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 (339) hide show
  1. package/README.md +3 -3
  2. package/api/components/schemas/App.js +5 -1
  3. package/api/components/schemas/BlockVersion.js +6 -1
  4. package/api/components/schemas/index.d.ts +0 -118
  5. package/api/components/schemas/index.js +0 -118
  6. package/api/paths/appTemplates.js +12 -3
  7. package/appMessages.d.ts +2 -2
  8. package/appMessages.js +1 -1
  9. package/authorization.d.ts +1 -11
  10. package/authorization.js +1 -163
  11. package/constants/index.d.ts +0 -2
  12. package/constants/index.js +0 -2
  13. package/formatRequestAction.d.ts +1 -1
  14. package/index.d.ts +2 -14
  15. package/index.js +2 -14
  16. package/miscellaneous.d.ts +5 -13
  17. package/miscellaneous.js +6 -33
  18. package/package.json +3 -2
  19. package/theme.d.ts +1 -1
  20. package/theme.js +1 -1
  21. package/types.d.ts +1 -1
  22. package/validateAppMessages.d.ts +2 -1
  23. package/validateAppMessages.js +2 -2
  24. package/allActions.d.ts +0 -3
  25. package/allActions.js +0 -11
  26. package/api/components/schemas/ActionDefinition.d.ts +0 -2
  27. package/api/components/schemas/ActionDefinition.js +0 -95
  28. package/api/components/schemas/AnalyticsActionDefinition.d.ts +0 -1
  29. package/api/components/schemas/AnalyticsActionDefinition.js +0 -25
  30. package/api/components/schemas/AppDefinition.d.ts +0 -2
  31. package/api/components/schemas/AppDefinition.js +0 -126
  32. package/api/components/schemas/AppLayoutDefinition.d.ts +0 -2
  33. package/api/components/schemas/AppLayoutDefinition.js +0 -46
  34. package/api/components/schemas/AppMemberCurrentPatchActionDefinition.d.ts +0 -1
  35. package/api/components/schemas/AppMemberCurrentPatchActionDefinition.js +0 -30
  36. package/api/components/schemas/AppMemberDeleteActionDefinition.d.ts +0 -1
  37. package/api/components/schemas/AppMemberDeleteActionDefinition.js +0 -20
  38. package/api/components/schemas/AppMemberInviteActionDefinition.d.ts +0 -1
  39. package/api/components/schemas/AppMemberInviteActionDefinition.js +0 -24
  40. package/api/components/schemas/AppMemberLoginActionDefinition.d.ts +0 -1
  41. package/api/components/schemas/AppMemberLoginActionDefinition.js +0 -24
  42. package/api/components/schemas/AppMemberLogoutActionDefinition.d.ts +0 -1
  43. package/api/components/schemas/AppMemberLogoutActionDefinition.js +0 -14
  44. package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.d.ts +0 -1
  45. package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.js +0 -26
  46. package/api/components/schemas/AppMemberPropertyDefinition.d.ts +0 -2
  47. package/api/components/schemas/AppMemberPropertyDefinition.js +0 -49
  48. package/api/components/schemas/AppMemberQueryActionDefinition.d.ts +0 -1
  49. package/api/components/schemas/AppMemberQueryActionDefinition.js +0 -24
  50. package/api/components/schemas/AppMemberRegisterActionDefinition.d.ts +0 -1
  51. package/api/components/schemas/AppMemberRegisterActionDefinition.js +0 -43
  52. package/api/components/schemas/AppMemberRoleUpdateActionDefinition.d.ts +0 -1
  53. package/api/components/schemas/AppMemberRoleUpdateActionDefinition.js +0 -27
  54. package/api/components/schemas/AppMembersDefinition.d.ts +0 -2
  55. package/api/components/schemas/AppMembersDefinition.js +0 -17
  56. package/api/components/schemas/ArrayRemapperDefinition.d.ts +0 -2
  57. package/api/components/schemas/ArrayRemapperDefinition.js +0 -22
  58. package/api/components/schemas/BaseActionDefinition.d.ts +0 -2
  59. package/api/components/schemas/BaseActionDefinition.js +0 -10
  60. package/api/components/schemas/BaseJSONSchema.d.ts +0 -2
  61. package/api/components/schemas/BaseJSONSchema.js +0 -24
  62. package/api/components/schemas/BasePageDefinition.d.ts +0 -2
  63. package/api/components/schemas/BasePageDefinition.js +0 -92
  64. package/api/components/schemas/BlockDefinition.d.ts +0 -2
  65. package/api/components/schemas/BlockDefinition.js +0 -94
  66. package/api/components/schemas/ConditionActionDefinition.d.ts +0 -1
  67. package/api/components/schemas/ConditionActionDefinition.js +0 -30
  68. package/api/components/schemas/ContainerDefinition.d.ts +0 -2
  69. package/api/components/schemas/ContainerDefinition.js +0 -52
  70. package/api/components/schemas/ContainerPageDefinition.d.ts +0 -1
  71. package/api/components/schemas/ContainerPageDefinition.js +0 -56
  72. package/api/components/schemas/ControllerActionDefinition.d.ts +0 -1
  73. package/api/components/schemas/ControllerActionDefinition.js +0 -18
  74. package/api/components/schemas/ControllerDefinition.d.ts +0 -2
  75. package/api/components/schemas/ControllerDefinition.js +0 -17
  76. package/api/components/schemas/CronDefinition.d.ts +0 -2
  77. package/api/components/schemas/CronDefinition.js +0 -20
  78. package/api/components/schemas/CsvParseActionDefinition.d.ts +0 -1
  79. package/api/components/schemas/CsvParseActionDefinition.js +0 -22
  80. package/api/components/schemas/CustomFontDefinition.d.ts +0 -2
  81. package/api/components/schemas/CustomFontDefinition.js +0 -20
  82. package/api/components/schemas/DialogActionDefinition.d.ts +0 -1
  83. package/api/components/schemas/DialogActionDefinition.js +0 -40
  84. package/api/components/schemas/DialogErrorActionDefinition.d.ts +0 -1
  85. package/api/components/schemas/DialogErrorActionDefinition.js +0 -17
  86. package/api/components/schemas/DialogOkActionDefinition.d.ts +0 -1
  87. package/api/components/schemas/DialogOkActionDefinition.js +0 -17
  88. package/api/components/schemas/DownloadActionDefinition.d.ts +0 -1
  89. package/api/components/schemas/DownloadActionDefinition.js +0 -19
  90. package/api/components/schemas/EachActionDefinition.d.ts +0 -1
  91. package/api/components/schemas/EachActionDefinition.js +0 -26
  92. package/api/components/schemas/EmailActionDefinition.d.ts +0 -1
  93. package/api/components/schemas/EmailActionDefinition.js +0 -54
  94. package/api/components/schemas/EventActionDefinition.d.ts +0 -1
  95. package/api/components/schemas/EventActionDefinition.js +0 -27
  96. package/api/components/schemas/EventsDefinition.d.ts +0 -2
  97. package/api/components/schemas/EventsDefinition.js +0 -29
  98. package/api/components/schemas/FilterParametersDefinition.d.ts +0 -2
  99. package/api/components/schemas/FilterParametersDefinition.js +0 -15
  100. package/api/components/schemas/FlowBackActionDefinition.d.ts +0 -1
  101. package/api/components/schemas/FlowBackActionDefinition.js +0 -16
  102. package/api/components/schemas/FlowCancelActionDefinition.d.ts +0 -1
  103. package/api/components/schemas/FlowCancelActionDefinition.js +0 -14
  104. package/api/components/schemas/FlowFinishActionDefinition.d.ts +0 -1
  105. package/api/components/schemas/FlowFinishActionDefinition.js +0 -16
  106. package/api/components/schemas/FlowNextActionDefinition.d.ts +0 -1
  107. package/api/components/schemas/FlowNextActionDefinition.js +0 -17
  108. package/api/components/schemas/FlowPageActionsDefinition.d.ts +0 -2
  109. package/api/components/schemas/FlowPageActionsDefinition.js +0 -23
  110. package/api/components/schemas/FlowPageDefinition.d.ts +0 -1
  111. package/api/components/schemas/FlowPageDefinition.js +0 -37
  112. package/api/components/schemas/FlowToActionDefinition.d.ts +0 -1
  113. package/api/components/schemas/FlowToActionDefinition.js +0 -21
  114. package/api/components/schemas/GoogleFontDefinition.d.ts +0 -2
  115. package/api/components/schemas/GoogleFontDefinition.js +0 -22
  116. package/api/components/schemas/GroupMemberDeleteActionDefinition.d.ts +0 -1
  117. package/api/components/schemas/GroupMemberDeleteActionDefinition.js +0 -18
  118. package/api/components/schemas/GroupMemberInviteActionDefinition.d.ts +0 -1
  119. package/api/components/schemas/GroupMemberInviteActionDefinition.js +0 -26
  120. package/api/components/schemas/GroupMemberQueryActionDefinition.d.ts +0 -1
  121. package/api/components/schemas/GroupMemberQueryActionDefinition.js +0 -18
  122. package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.d.ts +0 -1
  123. package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.js +0 -22
  124. package/api/components/schemas/GroupQueryActionDefinition.d.ts +0 -1
  125. package/api/components/schemas/GroupQueryActionDefinition.js +0 -14
  126. package/api/components/schemas/JSONPointer.d.ts +0 -1
  127. package/api/components/schemas/JSONPointer.js +0 -20
  128. package/api/components/schemas/JSONSchema.d.ts +0 -2
  129. package/api/components/schemas/JSONSchema.js +0 -20
  130. package/api/components/schemas/JSONSchemaAnyOf.d.ts +0 -1
  131. package/api/components/schemas/JSONSchemaAnyOf.js +0 -26
  132. package/api/components/schemas/JSONSchemaArray.d.ts +0 -1
  133. package/api/components/schemas/JSONSchemaArray.js +0 -47
  134. package/api/components/schemas/JSONSchemaBoolean.d.ts +0 -1
  135. package/api/components/schemas/JSONSchemaBoolean.js +0 -37
  136. package/api/components/schemas/JSONSchemaConst.d.ts +0 -1
  137. package/api/components/schemas/JSONSchemaConst.js +0 -16
  138. package/api/components/schemas/JSONSchemaEnum.d.ts +0 -1
  139. package/api/components/schemas/JSONSchemaEnum.js +0 -36
  140. package/api/components/schemas/JSONSchemaInteger.d.ts +0 -1
  141. package/api/components/schemas/JSONSchemaInteger.js +0 -55
  142. package/api/components/schemas/JSONSchemaMultiType.d.ts +0 -1
  143. package/api/components/schemas/JSONSchemaMultiType.js +0 -48
  144. package/api/components/schemas/JSONSchemaNot.d.ts +0 -1
  145. package/api/components/schemas/JSONSchemaNot.js +0 -23
  146. package/api/components/schemas/JSONSchemaNull.d.ts +0 -1
  147. package/api/components/schemas/JSONSchemaNull.js +0 -16
  148. package/api/components/schemas/JSONSchemaNumber.d.ts +0 -1
  149. package/api/components/schemas/JSONSchemaNumber.js +0 -63
  150. package/api/components/schemas/JSONSchemaObject.d.ts +0 -1
  151. package/api/components/schemas/JSONSchemaObject.js +0 -74
  152. package/api/components/schemas/JSONSchemaOneOf.d.ts +0 -1
  153. package/api/components/schemas/JSONSchemaOneOf.js +0 -24
  154. package/api/components/schemas/JSONSchemaRemapper.d.ts +0 -1
  155. package/api/components/schemas/JSONSchemaRemapper.js +0 -19
  156. package/api/components/schemas/JSONSchemaRoot.d.ts +0 -1
  157. package/api/components/schemas/JSONSchemaRoot.js +0 -21
  158. package/api/components/schemas/JSONSchemaString.d.ts +0 -1
  159. package/api/components/schemas/JSONSchemaString.js +0 -107
  160. package/api/components/schemas/LinkActionDefinition.d.ts +0 -1
  161. package/api/components/schemas/LinkActionDefinition.js +0 -29
  162. package/api/components/schemas/LinkBackActionDefinition.d.ts +0 -1
  163. package/api/components/schemas/LinkBackActionDefinition.js +0 -14
  164. package/api/components/schemas/LinkNextActionDefinition.d.ts +0 -1
  165. package/api/components/schemas/LinkNextActionDefinition.js +0 -14
  166. package/api/components/schemas/LogActionDefinition.d.ts +0 -1
  167. package/api/components/schemas/LogActionDefinition.js +0 -22
  168. package/api/components/schemas/LoopPageActionsDefinition.d.ts +0 -2
  169. package/api/components/schemas/LoopPageActionsDefinition.js +0 -24
  170. package/api/components/schemas/LoopPageDefinition.d.ts +0 -1
  171. package/api/components/schemas/LoopPageDefinition.js +0 -32
  172. package/api/components/schemas/MatchActionDefinition.d.ts +0 -1
  173. package/api/components/schemas/MatchActionDefinition.js +0 -35
  174. package/api/components/schemas/MessageActionDefinition.d.ts +0 -1
  175. package/api/components/schemas/MessageActionDefinition.js +0 -40
  176. package/api/components/schemas/NoopActionDefinition.d.ts +0 -1
  177. package/api/components/schemas/NoopActionDefinition.js +0 -17
  178. package/api/components/schemas/NotificationHookDataDefinition.d.ts +0 -2
  179. package/api/components/schemas/NotificationHookDataDefinition.js +0 -24
  180. package/api/components/schemas/NotificationHookDefinition.d.ts +0 -2
  181. package/api/components/schemas/NotificationHookDefinition.js +0 -32
  182. package/api/components/schemas/NotifyActionDefinition.d.ts +0 -1
  183. package/api/components/schemas/NotifyActionDefinition.js +0 -32
  184. package/api/components/schemas/ObjectRemapperDefinition.d.ts +0 -2
  185. package/api/components/schemas/ObjectRemapperDefinition.js +0 -17
  186. package/api/components/schemas/PageActionsDefinition.d.ts +0 -2
  187. package/api/components/schemas/PageActionsDefinition.js +0 -12
  188. package/api/components/schemas/PageDefinition.d.ts +0 -1
  189. package/api/components/schemas/PageDefinition.js +0 -26
  190. package/api/components/schemas/RemapperDefinition.d.ts +0 -2
  191. package/api/components/schemas/RemapperDefinition.js +0 -27
  192. package/api/components/schemas/RequestActionDefinition.d.ts +0 -1
  193. package/api/components/schemas/RequestActionDefinition.js +0 -75
  194. package/api/components/schemas/ResourceCountActionDefinition.d.ts +0 -1
  195. package/api/components/schemas/ResourceCountActionDefinition.js +0 -22
  196. package/api/components/schemas/ResourceCreateActionDefinition.d.ts +0 -1
  197. package/api/components/schemas/ResourceCreateActionDefinition.js +0 -18
  198. package/api/components/schemas/ResourceDefinition.d.ts +0 -2
  199. package/api/components/schemas/ResourceDefinition.js +0 -263
  200. package/api/components/schemas/ResourceDeleteActionDefinition.d.ts +0 -1
  201. package/api/components/schemas/ResourceDeleteActionDefinition.js +0 -18
  202. package/api/components/schemas/ResourceDeleteAllActionDefinition.d.ts +0 -1
  203. package/api/components/schemas/ResourceDeleteAllActionDefinition.js +0 -21
  204. package/api/components/schemas/ResourceDeleteBulkActionDefinition.d.ts +0 -1
  205. package/api/components/schemas/ResourceDeleteBulkActionDefinition.js +0 -18
  206. package/api/components/schemas/ResourceGetActionDefinition.d.ts +0 -1
  207. package/api/components/schemas/ResourceGetActionDefinition.js +0 -25
  208. package/api/components/schemas/ResourceHistoryDefinition.d.ts +0 -2
  209. package/api/components/schemas/ResourceHistoryDefinition.js +0 -14
  210. package/api/components/schemas/ResourceHistoryGetActionDefinition.d.ts +0 -1
  211. package/api/components/schemas/ResourceHistoryGetActionDefinition.js +0 -18
  212. package/api/components/schemas/ResourceHooksDefinition.d.ts +0 -2
  213. package/api/components/schemas/ResourceHooksDefinition.js +0 -10
  214. package/api/components/schemas/ResourcePatchActionDefinition.d.ts +0 -1
  215. package/api/components/schemas/ResourcePatchActionDefinition.js +0 -21
  216. package/api/components/schemas/ResourceQueryActionDefinition.d.ts +0 -1
  217. package/api/components/schemas/ResourceQueryActionDefinition.js +0 -26
  218. package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.d.ts +0 -1
  219. package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.js +0 -23
  220. package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.d.ts +0 -1
  221. package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.js +0 -23
  222. package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.d.ts +0 -1
  223. package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.js +0 -23
  224. package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.d.ts +0 -1
  225. package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.js +0 -23
  226. package/api/components/schemas/ResourceUpdateActionDefinition.d.ts +0 -1
  227. package/api/components/schemas/ResourceUpdateActionDefinition.js +0 -18
  228. package/api/components/schemas/ResourceUpdatePositionsActionDefinition.d.ts +0 -1
  229. package/api/components/schemas/ResourceUpdatePositionsActionDefinition.js +0 -21
  230. package/api/components/schemas/ResourceViewDefinition.d.ts +0 -2
  231. package/api/components/schemas/ResourceViewDefinition.js +0 -24
  232. package/api/components/schemas/SecurityCronDefinition.d.ts +0 -2
  233. package/api/components/schemas/SecurityCronDefinition.js +0 -26
  234. package/api/components/schemas/SecurityDefaultDefinition.d.ts +0 -2
  235. package/api/components/schemas/SecurityDefaultDefinition.js +0 -34
  236. package/api/components/schemas/SecurityDefinition.d.ts +0 -2
  237. package/api/components/schemas/SecurityDefinition.js +0 -17
  238. package/api/components/schemas/SecurityGuestDefinition.d.ts +0 -2
  239. package/api/components/schemas/SecurityGuestDefinition.js +0 -26
  240. package/api/components/schemas/SecurityRoleDefinition.d.ts +0 -2
  241. package/api/components/schemas/SecurityRoleDefinition.js +0 -35
  242. package/api/components/schemas/ShareActionDefinition.d.ts +0 -1
  243. package/api/components/schemas/ShareActionDefinition.js +0 -30
  244. package/api/components/schemas/StaticActionDefinition.d.ts +0 -1
  245. package/api/components/schemas/StaticActionDefinition.js +0 -20
  246. package/api/components/schemas/StorageAppendActionDefinition.d.ts +0 -1
  247. package/api/components/schemas/StorageAppendActionDefinition.js +0 -43
  248. package/api/components/schemas/StorageDeleteActionDefinition.d.ts +0 -1
  249. package/api/components/schemas/StorageDeleteActionDefinition.js +0 -31
  250. package/api/components/schemas/StorageReadActionDefinition.d.ts +0 -1
  251. package/api/components/schemas/StorageReadActionDefinition.js +0 -32
  252. package/api/components/schemas/StorageSubtractActionDefinition.d.ts +0 -1
  253. package/api/components/schemas/StorageSubtractActionDefinition.js +0 -35
  254. package/api/components/schemas/StorageUpdateActionDefinition.d.ts +0 -1
  255. package/api/components/schemas/StorageUpdateActionDefinition.js +0 -46
  256. package/api/components/schemas/StorageWriteActionDefinition.d.ts +0 -1
  257. package/api/components/schemas/StorageWriteActionDefinition.js +0 -46
  258. package/api/components/schemas/SubPage.d.ts +0 -2
  259. package/api/components/schemas/SubPage.js +0 -36
  260. package/api/components/schemas/TabsPageDefinition.d.ts +0 -1
  261. package/api/components/schemas/TabsPageDefinition.js +0 -46
  262. package/api/components/schemas/Theme.d.ts +0 -2
  263. package/api/components/schemas/Theme.js +0 -80
  264. package/api/components/schemas/ThrowActionDefinition.d.ts +0 -1
  265. package/api/components/schemas/ThrowActionDefinition.js +0 -17
  266. package/api/components/schemas/WebhookDefinition.d.ts +0 -2
  267. package/api/components/schemas/WebhookDefinition.js +0 -17
  268. package/api/components/schemas/utils.d.ts +0 -13
  269. package/api/components/schemas/utils.js +0 -34
  270. package/appMembers.d.ts +0 -1
  271. package/appMembers.js +0 -9
  272. package/blockUtils.d.ts +0 -31
  273. package/blockUtils.js +0 -65
  274. package/constants/baseTheme.d.ts +0 -2
  275. package/constants/baseTheme.js +0 -16
  276. package/constants/fonts.d.ts +0 -6
  277. package/constants/fonts.js +0 -1607
  278. package/examples.d.ts +0 -23
  279. package/examples.js +0 -975
  280. package/findPageByName.d.ts +0 -2
  281. package/findPageByName.js +0 -15
  282. package/has.d.ts +0 -8
  283. package/has.js +0 -11
  284. package/ics.d.ts +0 -3
  285. package/ics.js +0 -41
  286. package/iterApp.d.ts +0 -64
  287. package/iterApp.js +0 -150
  288. package/jsonschema.d.ts +0 -54
  289. package/jsonschema.js +0 -185
  290. package/reference-schemas/actions/appMember.d.ts +0 -2
  291. package/reference-schemas/actions/appMember.js +0 -21
  292. package/reference-schemas/actions/flow.d.ts +0 -2
  293. package/reference-schemas/actions/flow.js +0 -13
  294. package/reference-schemas/actions/group.d.ts +0 -2
  295. package/reference-schemas/actions/group.js +0 -13
  296. package/reference-schemas/actions/index.d.ts +0 -7
  297. package/reference-schemas/actions/index.js +0 -8
  298. package/reference-schemas/actions/link.d.ts +0 -2
  299. package/reference-schemas/actions/link.js +0 -9
  300. package/reference-schemas/actions/miscellaneous.d.ts +0 -2
  301. package/reference-schemas/actions/miscellaneous.js +0 -43
  302. package/reference-schemas/actions/resources.d.ts +0 -2
  303. package/reference-schemas/actions/resources.js +0 -19
  304. package/reference-schemas/actions/storage.d.ts +0 -2
  305. package/reference-schemas/actions/storage.js +0 -15
  306. package/reference-schemas/remappers/arrays.d.ts +0 -2
  307. package/reference-schemas/remappers/arrays.js +0 -297
  308. package/reference-schemas/remappers/conditionals.d.ts +0 -2
  309. package/reference-schemas/remappers/conditionals.js +0 -167
  310. package/reference-schemas/remappers/config.d.ts +0 -2
  311. package/reference-schemas/remappers/config.js +0 -13
  312. package/reference-schemas/remappers/data.d.ts +0 -2
  313. package/reference-schemas/remappers/data.js +0 -394
  314. package/reference-schemas/remappers/dates.d.ts +0 -2
  315. package/reference-schemas/remappers/dates.js +0 -94
  316. package/reference-schemas/remappers/history.d.ts +0 -2
  317. package/reference-schemas/remappers/history.js +0 -246
  318. package/reference-schemas/remappers/index.d.ts +0 -12
  319. package/reference-schemas/remappers/index.js +0 -13
  320. package/reference-schemas/remappers/numbers.d.ts +0 -2
  321. package/reference-schemas/remappers/numbers.js +0 -30
  322. package/reference-schemas/remappers/objects.d.ts +0 -2
  323. package/reference-schemas/remappers/objects.js +0 -127
  324. package/reference-schemas/remappers/odata.d.ts +0 -2
  325. package/reference-schemas/remappers/odata.js +0 -95
  326. package/reference-schemas/remappers/randoms.d.ts +0 -2
  327. package/reference-schemas/remappers/randoms.js +0 -82
  328. package/reference-schemas/remappers/strings.d.ts +0 -2
  329. package/reference-schemas/remappers/strings.js +0 -93
  330. package/reference-schemas/remappers/unsorted.d.ts +0 -2
  331. package/reference-schemas/remappers/unsorted.js +0 -276
  332. package/remap.d.ts +0 -74
  333. package/remap.js +0 -692
  334. package/serverActions.d.ts +0 -2
  335. package/serverActions.js +0 -21
  336. package/string.d.ts +0 -23
  337. package/string.js +0 -30
  338. package/validation.d.ts +0 -25
  339. package/validation.js +0 -1231
@@ -1,246 +0,0 @@
1
- export const historyRemappers = {
2
- 'from.history': {
3
- type: 'object',
4
- required: ['index', 'props'],
5
- description: `Creates a new object based on the specified properties in the given history index. This can be very
6
- useful when you want to combine two sources of data together. It’s also cleaner than separately
7
- using \`object.from\` together with \`history\`.
8
-
9
- In the following example, you can see why this might be handy. Let’s say you get the details about a
10
- concert from a source like an action or a block. You have this information and then you want to get
11
- some additional data like the attendees of the concert. With \`from.history\` you can combine the
12
- older data like the name and date, and add the new \`attendees\` data. The result will be an object
13
- with this combined data.
14
-
15
- History index 1:
16
-
17
- \`\`\`json
18
- {
19
- "name": "Rolling stones at Amsterdam Arena",
20
- "artist": "Rolling Stones",
21
- "location": "Amsterdam Arena",
22
- "date": "07-07-2022",
23
- "price": 120
24
- }
25
- \`\`\`
26
-
27
- Input:
28
-
29
- \`\`\`json
30
- [ .. ]
31
- \`\`\`
32
-
33
- \`\`\`yaml
34
- object.from:
35
- concertDetails:
36
- from.history:
37
- index: 1
38
- props:
39
- name: { prop: name }
40
- date: { prop: date }
41
- attendees: { root: null }
42
- \`\`\`
43
-
44
- Result:
45
-
46
- \`\`\`json
47
- {
48
- "concertDetails": {
49
- "attendees": [ .. ],
50
- "date": "07-07-2022",
51
- "name": "Rolling stones at Amsterdam Arena"
52
- }
53
- }
54
- \`\`\`
55
- `,
56
- additionalProperties: false,
57
- properties: {
58
- index: {
59
- type: 'integer',
60
- description: `The index of the history stack item to assign.
61
-
62
- 0 is the index of the first item in the history stack.
63
- `,
64
- },
65
- props: {
66
- description: 'Predefined mapper keys to choose what properties to apply.',
67
- additionalProperties: {
68
- $ref: '#/components/schemas/RemapperDefinition',
69
- },
70
- },
71
- },
72
- },
73
- 'assign.history': {
74
- type: 'object',
75
- required: ['index', 'props'],
76
- description: `Assigns properties from the specified history stack index to an existing object.
77
- Similarly to the \`from.history\` remapper, this allows you to get a property from a place in the
78
- history and give it to a new object. The only difference here is that you are not creating an
79
- entirely new object, but you are taking an existing object and assigning new values to it.
80
-
81
- So, we can take the example from \`from.history\` and flip it.
82
-
83
- History index 1:
84
-
85
- \`\`\`json
86
- {
87
- "peopleAmount": 3000
88
- }
89
- \`\`\`
90
-
91
- Input:
92
-
93
- \`\`\`json
94
- {
95
- "name": "Rolling stones at Amsterdam Arena",
96
- "artist": "Rolling Stones",
97
- "location": "Amsterdam Arena",
98
- "date": "07-07-2022",
99
- "price": 120
100
- }
101
- \`\`\`
102
-
103
- \`\`\`yaml
104
- object.from:
105
- concertDetails:
106
- assign.history:
107
- index: 1
108
- props:
109
- attendees: { prop: peopleAmount }
110
- \`\`\`
111
-
112
- Result:
113
-
114
- \`\`\`json
115
- {
116
- "concertDetails": {
117
- "name": "Rolling stones at Amsterdam Arena",
118
- "artist": "Rolling Stones",
119
- "location": "Amsterdam Arena",
120
- "date": "07-07-2022",
121
- "price": 120,
122
- "attendees": 3000
123
- }
124
- }
125
- \`\`\`
126
- `,
127
- additionalProperties: false,
128
- properties: {
129
- index: {
130
- type: 'integer',
131
- description: `The index of the history stack item to assign.
132
-
133
- 0 is the index of the first item in the history stack.
134
- `,
135
- },
136
- props: {
137
- description: 'Predefined mapper keys to choose what properties to assign.',
138
- additionalProperties: {
139
- $ref: '#/components/schemas/RemapperDefinition',
140
- },
141
- },
142
- },
143
- },
144
- 'omit.history': {
145
- type: 'object',
146
- required: ['index', 'keys'],
147
- description: `Assigns properties from the specified history stack index to the current value and excludes the
148
- given properties.
149
-
150
- Similarly to the other history remappers, this gives you the data from a certain point in the
151
- history stack and allows you to modify it before adding to the current value. This one, however,
152
- allows you to take the complete specified history data and omit certain values.
153
-
154
- This remapper can be extremely helpful for re-using data you got before in the history stack while
155
- filtering certain properties.
156
-
157
- For example, let’s say you have the information for a concert but don’t want normal users to see
158
- sensitive data about it. Using \`omit.history\` you can take this concert data but exclude the
159
- sensitive parts.
160
-
161
- History index 1:
162
-
163
- \`\`\`json
164
- {
165
- "name": "Rolling stones at Amsterdam Arena",
166
- "artist": "Rolling Stones",
167
- "location": "Amsterdam Arena",
168
- "date": "07-07-2022",
169
- "bandPasswords": [ .. ],
170
- "bankDetailsAttendees": [ .. ]
171
- }
172
- \`\`\`
173
-
174
- Input:
175
-
176
- \`\`\`json
177
- [ .. ]
178
- \`\`\`
179
-
180
- \`\`\`yaml
181
- object.from:
182
- concertDetails:
183
- omit.history:
184
- index: 1
185
- keys:
186
- - bandPasswords
187
- - bankDetailsAttendees
188
- \`\`\`
189
-
190
- Result:
191
-
192
- \`\`\`json
193
- {
194
- "concertDetails": {
195
- "name": "Rolling stones at Amsterdam Arena",
196
- "artist": "Rolling Stones",
197
- "location": "Amsterdam Arena",
198
- "date": "07-07-2022",
199
- "attendees": [ .. ]
200
- }
201
- }
202
- \`\`\`
203
- `,
204
- additionalProperties: false,
205
- properties: {
206
- index: {
207
- type: 'integer',
208
- description: `The index of the history stack item to assign.
209
-
210
- 0 is the index of the first item in the history stack.
211
- `,
212
- },
213
- keys: {
214
- description: `Exclude properties from the history stack item, based on the given object keys.
215
-
216
- Nested properties can be excluded using arrays of keys.
217
-
218
- For example:
219
- \`\`\`yaml
220
- omit.history:
221
- index: 0
222
- keys:
223
- - foo # Excludes the property foo
224
- - - bar # Excludes the property baz inside of bar
225
- - baz
226
- \`\`\`
227
- `,
228
- type: 'array',
229
- items: {
230
- minItems: 1,
231
- anyOf: [
232
- { type: 'string' },
233
- {
234
- type: 'array',
235
- minItems: 2,
236
- items: {
237
- type: 'string',
238
- },
239
- },
240
- ],
241
- },
242
- },
243
- },
244
- },
245
- };
246
- //# sourceMappingURL=history.js.map
@@ -1,12 +0,0 @@
1
- export * from './arrays.js';
2
- export * from './conditionals.js';
3
- export * from './data.js';
4
- export * from './dates.js';
5
- export * from './history.js';
6
- export * from './objects.js';
7
- export * from './randoms.js';
8
- export * from './strings.js';
9
- export * from './unsorted.js';
10
- export * from './config.js';
11
- export * from './numbers.js';
12
- export * from './odata.js';
@@ -1,13 +0,0 @@
1
- export * from './arrays.js';
2
- export * from './conditionals.js';
3
- export * from './data.js';
4
- export * from './dates.js';
5
- export * from './history.js';
6
- export * from './objects.js';
7
- export * from './randoms.js';
8
- export * from './strings.js';
9
- export * from './unsorted.js';
10
- export * from './config.js';
11
- export * from './numbers.js';
12
- export * from './odata.js';
13
- //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const numberRemappers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;
@@ -1,30 +0,0 @@
1
- import { schemaExample } from '../../examples.js';
2
- export const numberRemappers = {
3
- 'number.parse': {
4
- anyOf: [
5
- { enum: [null] },
6
- { type: 'string' },
7
- { $ref: '#/components/schemas/ArrayRemapperDefinition' },
8
- { $ref: '#/components/schemas/ObjectRemapperDefinition' },
9
- ],
10
- description: `Convert a string into a number.
11
-
12
- If there is no remapper passed and the input can be converted, this will return the converted input.
13
-
14
- If there is no remapper passed and the input is null, this will return 0.
15
-
16
- If there is no remapper passed and the input cannot be converted, this will return the input.
17
-
18
- If there is a remapper passed and the remapped value can be converted, this will return the converted remapped value.
19
-
20
- If there is a remapper passed and the remapped value is null, this will return 0.
21
-
22
- If there is a remapper passed and the remapped value cannot be converted, this will return the remapped value.
23
-
24
- For example:
25
-
26
- ${schemaExample('number.parse')}
27
- `,
28
- },
29
- };
30
- //# sourceMappingURL=numbers.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const objectRemappers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;
@@ -1,127 +0,0 @@
1
- import { schemaExample } from '../../examples.js';
2
- export const objectRemappers = {
3
- 'object.assign': {
4
- additionalProperties: {
5
- $ref: '#/components/schemas/RemapperDefinition',
6
- },
7
- description: `
8
-
9
- Let’s say you have an existing object that you want to add an additional value on top of. For this
10
- you can use the \`object.assign\` remapper. The remapper takes an existing object and allows the user
11
- to assign their own value on top of that.
12
-
13
- ${schemaExample('object.assign')}
14
-
15
- `,
16
- },
17
- 'object.from': {
18
- additionalProperties: {
19
- $ref: '#/components/schemas/RemapperDefinition',
20
- },
21
- description: `
22
-
23
- With this remapper you can create an entirely new object based on input values and other remappers.
24
- \`object.from\` itself accepts remapper functions as its input which allows you to chain multiple
25
- remappers together to make complex objects.
26
-
27
- As a base, the remapper looks like this:
28
-
29
- ${schemaExample('object.from', { exclude: ['input'] })}
30
-
31
- Most of the time you won’t create an object just to store one value. Luckily, this is where the
32
- chaining of remappers comes in. You can create an object that contains an \`object.from\` remapper
33
- which then allows more inputs:
34
-
35
- \`\`\`yaml
36
- object.from:
37
- username: Chris Taub
38
- email: example@hotmail.com
39
- addresses:
40
- object.from:
41
- work:
42
- object.from:
43
- city: Eindhoven
44
- address: Nachtegaallaan 15
45
- home:
46
- object.from:
47
- city: Amsterdam
48
- address: Amstel 1
49
- \`\`\`
50
-
51
- \`\`\`json
52
- {
53
- "username": "Chris Taub",
54
- "email": "example@hotmail.com",
55
- "addresses": {
56
- "work": {
57
- "city": "Eindhoven",
58
- "address": "Nachtegaallaan 15"
59
- },
60
- "home": {
61
- "city": "Amsterdam",
62
- "address": "Amstel 1"
63
- }
64
- }
65
- }
66
- \`\`\`
67
-
68
- `,
69
- },
70
- 'object.omit': {
71
- type: 'array',
72
- items: {
73
- minItems: 1,
74
- anyOf: [
75
- { type: 'string' },
76
- {
77
- type: 'array',
78
- minItems: 2,
79
- items: {
80
- type: 'string',
81
- },
82
- },
83
- ],
84
- },
85
- description: `
86
-
87
- In contrary to the previous remapper, what if you have an object from which you want to remove a
88
- value? Then you can use \`object.omit\`. The remapper can remove properties from an existing object
89
- based on the given object keys. This includes nested properties.
90
-
91
- ${schemaExample('object.omit', { input: 'pretty', result: 'pretty' })}
92
- `,
93
- },
94
- 'object.compare': {
95
- type: 'array',
96
- items: {
97
- minItems: 2,
98
- maxItems: 2,
99
- $ref: '#/components/schemas/RemapperDefinition',
100
- },
101
- description: `
102
-
103
- This remapper allows you to compare two objects and get differences in their key-value pairs like in the following example:
104
-
105
- ${schemaExample('object.compare', { input: 'pretty', result: 'pretty' })}
106
- `,
107
- },
108
- 'object.explode': {
109
- type: 'string',
110
- description: `
111
-
112
- Takes an object with an array property and transforms it into an array of objects.
113
-
114
- Each object in the resulting array contains all the entries of the original object
115
- plus all the entries of the corresponding array item from the array property.
116
-
117
- If one of the items in the array contains a key, which exists in the original object
118
- it will overwrite the original key.
119
-
120
- Nested arrays or objects are not exploded.
121
-
122
- Example:
123
- ${schemaExample('object.explode', { input: 'pretty', result: 'pretty' })}
124
- `,
125
- },
126
- };
127
- //# sourceMappingURL=objects.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const odataRemappers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;
@@ -1,95 +0,0 @@
1
- import { schemaExample } from '../../examples.js';
2
- export const odataRemappers = {
3
- 'filter.from': {
4
- additionalProperties: {
5
- $ref: '#/components/schemas/FilterParametersDefinition',
6
- },
7
- description: `
8
-
9
- With this remapper you can generate an OData filter, ready to be passed to the \`$filter\` key in
10
- resource queries.
11
-
12
- The different comparator options are as follows:
13
-
14
- - eq - Equal to
15
- - ne - Not equal to
16
- - lt - Less than
17
- - gt - Greater than
18
- - le - Less than or equal to
19
- - ge - Greater than or equal to
20
-
21
- The most common types of values are \`String\`, \`Number\`, \`Boolean\` and \`Date\`. If you need a more specific
22
- type, please refer to [the OData spec](https://www.odata.org/documentation/odata-version-2-0/overview/).
23
-
24
- As a base, the remapper looks like this:
25
-
26
- ${schemaExample('filter.from')}
27
-
28
- Here is an example of how you can use the remapper in an app definition:
29
-
30
- \`\`\`yaml
31
- type: resource.query
32
- resource: myResource
33
- query:
34
- object.from:
35
- $filter:
36
- filter.from:
37
- name:
38
- type: String
39
- comparator: ne
40
- value: { prop: exclude }
41
- age:
42
- type: Int64
43
- comparator: lt
44
- value: 10
45
- birthday:
46
- type: Date
47
- comparator: ge
48
- value: '2000-01-01'
49
- job:
50
- type: String
51
- comparator: eq
52
- value: null
53
- employed:
54
- type: Boolean
55
- comparator: eq
56
- value: false
57
- special:
58
- type: String
59
- comparator: eq
60
- value: "Special character's test"
61
- \`\`\`
62
- `,
63
- },
64
- 'order.from': {
65
- additionalProperties: {
66
- enum: ['asc', 'desc'],
67
- },
68
- description: `
69
-
70
- With this remapper you can generate an OData order, ready to be passed to the \`$orderby\` key in
71
- resource queries.
72
-
73
- The different order options are as follows:
74
-
75
- - asc - Ascending
76
- - desc - Descending
77
-
78
- ${schemaExample('order.from', { exclude: ['input'] })}
79
-
80
- Here is an example of how you can use the remapper in an app definition:
81
-
82
- \`\`\`yaml
83
- type: resource.query
84
- resource: myResource
85
- query:
86
- object.from:
87
- $orderby:
88
- order.from:
89
- name: asc
90
- age: desc
91
- \`\`\`
92
- `,
93
- },
94
- };
95
- //# sourceMappingURL=odata.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const randomRemappers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;
@@ -1,82 +0,0 @@
1
- export const randomRemappers = {
2
- 'random.choice': {
3
- enum: [null],
4
- description: `Pick and return a random entry from an array. If the input is not an array, the input is returned as-is.
5
- For example:
6
-
7
- If you input the following array:
8
- \`\`\`json
9
- [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
10
- \`\`\`
11
-
12
- \`\`\`yaml
13
- random.choice: null
14
- \`\`\`
15
-
16
- The result could return any one of these numbers.
17
-
18
- You can also combine different data types in this array and have it work in the same way. If mixed in
19
- strings, the result could be either one of the provided numbers or one of the provided strings.
20
-
21
- \`\`\`json
22
- [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "Peter", "Patrick", "Michael", "Harry"]
23
- \`\`\`
24
- `,
25
- },
26
- 'random.integer': {
27
- type: 'array',
28
- maxItems: 2,
29
- minItems: 2,
30
- items: {
31
- type: 'integer',
32
- },
33
- description: `Pick and return a random integer between the provided lowest and highest values.
34
- For example:
35
- \`\`\`yaml
36
- random.integer:
37
- - 0
38
- - 1000
39
- \`\`\`
40
-
41
- Returns a random integer between 0 and 1000.
42
- `,
43
- },
44
- 'random.float': {
45
- type: 'array',
46
- maxItems: 2,
47
- minItems: 2,
48
- items: {
49
- type: 'number',
50
- },
51
- description: `Pick and return a random float value between the provided lowest and highest values.
52
- For example:
53
- \`\`\`yaml
54
- random.float:
55
- - 0
56
- - 1
57
- \`\`\`
58
-
59
- Returns a random float value between 0 and 1.
60
- `,
61
- },
62
- 'random.string': {
63
- type: 'object',
64
- required: ['choice', 'length'],
65
- additionalProperties: false,
66
- properties: {
67
- choice: { type: 'string', minLength: 1 },
68
- length: { type: 'integer', minimum: 1 },
69
- },
70
- description: `Pick and return a random string from a given length using characters from a given input string defined in \`choice\`.
71
- For example:
72
- \`\`\`yaml
73
- random.string:
74
- choice: abcdefghijklmnopqrstuvwxyz0123456789
75
- length: 6
76
- \`\`\`
77
-
78
- Returns a randomized string that is 6 characters long and consists of any characters in the \`choice\` field, like: \`g8ajss9\`.
79
- `,
80
- },
81
- };
82
- //# sourceMappingURL=randoms.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const stringRemappers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;