@appsemble/utils 0.33.5 → 0.33.9

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,26 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const AppMemberPropertiesPatchActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type', 'sub'],
7
- properties: {
8
- type: {
9
- enum: ['app.member.properties.patch'],
10
- description: `Allows the app member to patch the properties of another app member account.
11
-
12
- Does nothing if the app member isn’t logged in.`,
13
- },
14
- sub: {
15
- $ref: '#/components/schemas/RemapperDefinition',
16
- description: 'The new full name name of the app member.',
17
- },
18
- properties: {
19
- $ref: '#/components/schemas/RemapperDefinition',
20
- description: `The updated custom properties for the app member.
21
-
22
- Values will be validated based on \`members.properties\`, if defined in the app definition.`,
23
- },
24
- },
25
- });
26
- //# sourceMappingURL=AppMemberPropertiesPatchActionDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const AppMemberPropertyDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,49 +0,0 @@
1
- export const AppMemberPropertyDefinition = {
2
- anyOf: [
3
- {
4
- type: 'object',
5
- description: 'Definition for an app member custom property.',
6
- required: ['schema'],
7
- additionalProperties: false,
8
- properties: {
9
- schema: {
10
- anyOf: [
11
- { $ref: '#/components/schemas/JSONSchemaInteger' },
12
- { $ref: '#/components/schemas/JSONSchemaArray' },
13
- ],
14
- },
15
- reference: {
16
- type: 'object',
17
- additionalProperties: false,
18
- description: 'The object for the reference to another resource',
19
- properties: {
20
- resource: {
21
- type: 'string',
22
- description: 'The resource referenced by this app member property.',
23
- },
24
- },
25
- },
26
- },
27
- },
28
- {
29
- type: 'object',
30
- description: 'Definition for an app member property.',
31
- required: ['schema'],
32
- additionalProperties: false,
33
- properties: {
34
- schema: {
35
- anyOf: [
36
- { $ref: '#/components/schemas/JSONSchemaInteger' },
37
- { $ref: '#/components/schemas/JSONSchemaArray' },
38
- { $ref: '#/components/schemas/JSONSchemaString' },
39
- { $ref: '#/components/schemas/JSONSchemaNumber' },
40
- { $ref: '#/components/schemas/JSONSchemaEnum' },
41
- { $ref: '#/components/schemas/JSONSchemaBoolean' },
42
- { $ref: '#/components/schemas/JSONSchemaObject' },
43
- ],
44
- },
45
- },
46
- },
47
- ],
48
- };
49
- //# sourceMappingURL=AppMemberPropertyDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const AppMemberQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,24 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const AppMemberQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type'],
7
- properties: {
8
- type: {
9
- enum: ['app.member.query'],
10
- description: `Allows the currently logged in app member to fetch a list of app members by their roles.
11
-
12
- Does nothing if the app member isn’t logged in.`,
13
- },
14
- roles: {
15
- $ref: '#/components/schemas/RemapperDefinition',
16
- description: 'The roles of the app members that would be fetched.',
17
- },
18
- query: {
19
- $ref: '#/components/schemas/RemapperDefinition',
20
- description: 'Additional filters to fetch members based on properties and other fields',
21
- },
22
- },
23
- });
24
- //# sourceMappingURL=AppMemberQueryActionDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const AppMemberRegisterActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,43 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const AppMemberRegisterActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type', 'email', 'password'],
7
- properties: {
8
- type: {
9
- enum: ['app.member.register'],
10
- description: `Allows the app member to register using an email address and a password.
11
-
12
- Does nothing if the app member is already logged in.`,
13
- },
14
- password: {
15
- $ref: '#/components/schemas/RemapperDefinition',
16
- description: 'The password to log in with.',
17
- },
18
- email: {
19
- $ref: '#/components/schemas/RemapperDefinition',
20
- description: 'The email to log in with.',
21
- },
22
- name: {
23
- $ref: '#/components/schemas/RemapperDefinition',
24
- description: 'The full name of the app member.',
25
- },
26
- picture: {
27
- $ref: '#/components/schemas/RemapperDefinition',
28
- description: 'The image to use for the profile picture of the app member.',
29
- },
30
- properties: {
31
- $ref: '#/components/schemas/RemapperDefinition',
32
- description: `The custom properties for the app member.
33
-
34
- Values will be validated based on \`members.properties\`, if defined in the app definition.`,
35
- },
36
- login: {
37
- type: 'boolean',
38
- description: 'Whether to login after registering.',
39
- default: true,
40
- },
41
- },
42
- });
43
- //# sourceMappingURL=AppMemberRegisterActionDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const AppMemberRoleUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,27 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const AppMemberRoleUpdateActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type', 'sub'],
7
- properties: {
8
- type: {
9
- enum: ['app.member.role.update'],
10
- description: `Allows the app member to update the role of another app member account.
11
-
12
- Does nothing if the app member isn’t logged in.`,
13
- },
14
- sub: {
15
- $ref: '#/components/schemas/RemapperDefinition',
16
- description: 'The id of the app member.',
17
- },
18
- role: {
19
- $ref: '#/components/schemas/RemapperDefinition',
20
- description: `The updated role of the app member.
21
-
22
- The role must exist in the roles property of the app's security definition or in the predefined app roles in the system -
23
- \`Member\`, \`MembersManager\`, \`GroupMembersManager\`, \`GroupsManager\`, \`ResourcesManager\` and \`Owner\``,
24
- },
25
- },
26
- });
27
- //# sourceMappingURL=AppMemberRoleUpdateActionDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const AppMembersDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,17 +0,0 @@
1
- export const AppMembersDefinition = {
2
- type: 'object',
3
- description: 'Definition for app member properties.',
4
- required: [],
5
- additionalProperties: false,
6
- properties: {
7
- properties: {
8
- type: 'object',
9
- description: 'The properties object configuring app members',
10
- additionalProperties: {
11
- description: 'A single app member property definition.',
12
- $ref: '#/components/schemas/AppMemberPropertyDefinition',
13
- },
14
- },
15
- },
16
- };
17
- //# sourceMappingURL=AppMembersDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const ArrayRemapperDefinition: OpenAPIV3.ArraySchemaObject;
@@ -1,22 +0,0 @@
1
- export const ArrayRemapperDefinition = {
2
- type: 'array',
3
- description: `If a remapper is an array, it represents a chain of remappers.
4
-
5
- Each item represents a remapper which is called with the result of the remapper before it.
6
-
7
- If an array is nested, it will be flattened. This allows you to create reusable remappers and
8
- reference them using YAML anchors.
9
- `,
10
- minItems: 1,
11
- items: {
12
- anyOf: [
13
- {
14
- $ref: '#/components/schemas/ObjectRemapperDefinition',
15
- },
16
- {
17
- $ref: '#/components/schemas/ArrayRemapperDefinition',
18
- },
19
- ],
20
- },
21
- };
22
- //# sourceMappingURL=ArrayRemapperDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const BaseActionDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,10 +0,0 @@
1
- export const BaseActionDefinition = {
2
- type: 'object',
3
- properties: {
4
- remapBefore: {},
5
- remapAfter: {},
6
- onSuccess: {},
7
- onError: {},
8
- },
9
- };
10
- //# sourceMappingURL=BaseActionDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const BaseJSONSchema: OpenAPIV3.NonArraySchemaObject;
@@ -1,24 +0,0 @@
1
- export const BaseJSONSchema = {
2
- type: 'object',
3
- properties: {
4
- title: {
5
- type: 'string',
6
- minLength: 1,
7
- maxLength: 50,
8
- description: `A short title of the instance.
9
-
10
- This is used in various places inside Appsemble Studio.
11
- `,
12
- },
13
- description: {
14
- type: 'string',
15
- minLength: 1,
16
- maxLength: 5000,
17
- description: `A description of the instance.
18
-
19
- This is used in various places inside Appsemble Studio.
20
- `,
21
- },
22
- },
23
- };
24
- //# sourceMappingURL=BaseJSONSchema.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const BasePageDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,92 +0,0 @@
1
- export const BasePageDefinition = {
2
- type: 'object',
3
- additionalProperties: false,
4
- required: ['name'],
5
- properties: {
6
- name: {
7
- type: 'string',
8
- maxLength: 50,
9
- description: `The name of an app.
10
-
11
- This field is always required and must be unique within the app, meaning that it is not possible to
12
- have two pages with the same name. The name of the page is displayed at the *app bar* of each page as well as in the side navigational menu.
13
-
14
- > **Note**: The URL used to navigate to pages is determined by this property.
15
- `,
16
- },
17
- hideName: {
18
- type: 'boolean',
19
- description: 'Whether or not the page name should be displayed in the *app bar*.',
20
- },
21
- navTitle: {
22
- $ref: '#/components/schemas/RemapperDefinition',
23
- description: `The name of the page when displayed in the navigation menu.
24
-
25
- Context property \`name\` can be used to access the name of the page.
26
- `,
27
- },
28
- hideNavTitle: {
29
- type: 'boolean',
30
- description: `Whether or not the page should be displayed in navigational menus.
31
-
32
- By default all pages without parameters are added to navigational menus. Set to \`true\` to hide the
33
- page from menus.
34
- `,
35
- default: false,
36
- },
37
- navigation: {
38
- $ref: '#/components/schemas/AppLayoutDefinition/properties/navigation',
39
- description: `The type of navigation displayed on the page.
40
-
41
- This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
42
- App navigation are not set.
43
-
44
- Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
45
- menu. Set to \`hidden\` to display no navigational menus at all.
46
- `,
47
- },
48
- icon: {
49
- type: 'string',
50
- description: `An optional icon from the fontawesome icon set
51
-
52
- This will be displayed in the navigation menu.
53
- `,
54
- },
55
- parameters: {
56
- type: 'array',
57
- description: `Page parameters can be used for linking to a page that should display a single resource.
58
-
59
- This defined as a list of strings representing the properties to pass through. More often than not
60
- passing \`id\` through is sufficient, depending on the block.
61
- `,
62
- items: {
63
- type: 'string',
64
- minLength: 1,
65
- maxLength: 30,
66
- },
67
- },
68
- roles: {
69
- type: 'array',
70
- description: `The list of roles that are allowed to view this page.
71
-
72
- If the user doesn’t have any of the roles in the list the page will be unavailable to them. An empty
73
- list can be used to specify that users need to log in but do not need a specific role.
74
-
75
- Users trying to visit a page without having the correct roles will be redirected to the first page
76
- that they are allowed to view. If there aren’t any accessible pages, the user will be logged out and
77
- instructed to contact the app owner to get permissions.
78
- `,
79
- items: {
80
- type: 'string',
81
- },
82
- },
83
- theme: {
84
- $ref: '#/components/schemas/Theme',
85
- },
86
- badgeCount: {
87
- $ref: '#/components/schemas/RemapperDefinition',
88
- description: 'A Remapper that resolves to a number to be visibile in the side-menu.',
89
- },
90
- },
91
- };
92
- //# sourceMappingURL=BasePageDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const BlockDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,94 +0,0 @@
1
- import { partialNormalized, semver } from '../../../constants/index.js';
2
- export const BlockDefinition = {
3
- type: 'object',
4
- description: 'A block that is displayed on a page.',
5
- required: ['type', 'version'],
6
- additionalProperties: false,
7
- properties: {
8
- theme: {
9
- $ref: '#/components/schemas/Theme',
10
- },
11
- type: {
12
- type: 'string',
13
- pattern: `^(@${partialNormalized.source}/)?${partialNormalized.source}$`,
14
- description: `The type of the block.
15
-
16
- A block type follows the format \`@organization/name\`. If the organization is _appsemble_, it may
17
- be omitted.
18
-
19
- Some examples:
20
-
21
- - \`form\`
22
- - \`@amsterdam/splash\`
23
- `,
24
- },
25
- version: {
26
- type: 'string',
27
- pattern: semver.source,
28
- description: `The version of the block to use.
29
-
30
- Since blocks may change over time, a version must be specified in order to ensure that the block
31
- will remain the same until it is manually updated.
32
- `,
33
- },
34
- layout: {
35
- description: `An override of the block’s default layout.
36
-
37
- \`float\` sets the block position to float on the page and does not collide with other blocks.
38
- Layout float can be combined with the \`position\` property to place the block on the desired location.
39
- \`grow\` adds space between blocks so the page is filled.
40
- \`static\` on the contrary, does not add extra space between blocks.
41
- `,
42
- enum: ['float', 'grow', 'static'],
43
- },
44
- hide: {
45
- $ref: '#/components/schemas/RemapperDefinition',
46
- description: 'Whether to render the block or not',
47
- },
48
- header: {
49
- $ref: '#/components/schemas/RemapperDefinition',
50
- description: 'An optional header to render above the block.',
51
- },
52
- roles: {
53
- type: 'array',
54
- description: `The list of roles that are allowed to view this block.
55
-
56
- If a user does not have the right role, the block is not rendered.
57
- `,
58
- items: {
59
- type: 'string',
60
- },
61
- },
62
- position: {
63
- description: 'For floating blocks this property defines where the block should float.',
64
- default: 'bottom right',
65
- enum: [
66
- 'top left',
67
- 'top',
68
- 'top right',
69
- 'left',
70
- 'right',
71
- 'bottom left',
72
- 'bottom',
73
- 'bottom right',
74
- ],
75
- },
76
- parameters: {
77
- type: 'object',
78
- description: `A free form mapping of named parameters.
79
-
80
- The exact meaning of the parameters depends on the block type.
81
- `,
82
- additionalProperties: true,
83
- },
84
- actions: {
85
- type: 'object',
86
- description: 'A mapping of actions that can be fired by the block to action handlers.',
87
- additionalProperties: {
88
- $ref: '#/components/schemas/ActionDefinition',
89
- },
90
- },
91
- events: { $ref: '#/components/schemas/EventsDefinition' },
92
- },
93
- };
94
- //# sourceMappingURL=BlockDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const ConditionActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,30 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const ConditionActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type', 'if'],
7
- properties: {
8
- type: {
9
- enum: ['condition'],
10
- description: 'Run another action if a certain contition is met.',
11
- },
12
- if: {
13
- $ref: '#/components/schemas/RemapperDefinition',
14
- description: `A remapper to determine the condition to check.
15
-
16
- If this yields a truthy value, the \`then\` action is called. Otherwise the \`else\` action is
17
- called.
18
- `,
19
- },
20
- then: {
21
- description: 'This action is called if the `if` remapper yields a truthy value.',
22
- $ref: '#/components/schemas/ActionDefinition',
23
- },
24
- else: {
25
- description: 'This action is called if the `if` remapper yields a falsy value.',
26
- $ref: '#/components/schemas/ActionDefinition',
27
- },
28
- },
29
- });
30
- //# sourceMappingURL=ConditionActionDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const ContainerDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,52 +0,0 @@
1
- export const ContainerDefinition = {
2
- type: 'object',
3
- additionalProperties: false,
4
- description: 'An object describing a companion container',
5
- required: ['name', 'image', 'port'],
6
- properties: {
7
- name: {
8
- type: 'string',
9
- description: 'Alias used to reference the container',
10
- },
11
- image: {
12
- type: 'string',
13
- description: 'Name of the image used for the container',
14
- },
15
- port: {
16
- type: 'number',
17
- description: 'Port used by the image provided',
18
- },
19
- resources: {
20
- type: 'object',
21
- additionalProperties: true,
22
- description: 'Maximum amount of resources the container can use. Deafult: 1 CPU and 512Mi memory',
23
- },
24
- env: {
25
- type: 'array',
26
- description: 'Environment variables that will be used within the container',
27
- items: {
28
- type: 'object',
29
- additionalProperties: false,
30
- description: 'Each item is an environment variable. `useValueFromSecret` property determines whether the value is taken literally or from and existing secret',
31
- required: ['name', 'value'],
32
- properties: {
33
- name: { type: 'string', description: 'Name of the environment variable' },
34
- useValueFromSecret: {
35
- type: 'boolean',
36
- description: 'If set to true, will retrieve the value from the Kubernetes secret, the value property will refer to the secret key. If false, will take the value literally',
37
- },
38
- value: {
39
- type: 'string',
40
- description: "The value of the environment variable. If `useValueFromSecret` is true, this property will refer to the Kubernetes secret's key",
41
- },
42
- },
43
- },
44
- },
45
- metadata: {
46
- type: 'object',
47
- additionalProperties: true,
48
- description: 'Metadata including labels and annotations to be added to the container',
49
- },
50
- },
51
- };
52
- //# sourceMappingURL=ContainerDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const ContainerPageDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,56 +0,0 @@
1
- import { BasePageDefinition } from './BasePageDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const ContainerPageDefinition = extendJSONSchema(BasePageDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- description: `Groups pages together under a collapsible parent page. Following is an example of
7
- how this can be used:
8
- \`\`\`yaml
9
- pages:
10
- - name: Page 1
11
- type: container
12
- pages:
13
- - name: Contained page 1
14
- blocks:
15
- - type: action-button
16
- version: 0.29.8
17
- parameters:
18
- icon: git-alt
19
- actions:
20
- onClick:
21
- type: link
22
- to: Contained page 2
23
- - name: Contained page 2
24
- blocks:
25
- - type: action-button
26
- version: 0.29.8
27
- parameters:
28
- icon: git-alt
29
- actions:
30
- onClick:
31
- type: link
32
- to: Contained page 1
33
- \`\`\`
34
- `,
35
- required: ['type', 'pages'],
36
- properties: {
37
- type: {
38
- enum: ['container'],
39
- },
40
- pages: {
41
- type: 'array',
42
- minItems: 1,
43
- description: 'The pages of the app.',
44
- items: {
45
- anyOf: [
46
- { $ref: '#/components/schemas/PageDefinition' },
47
- { $ref: '#/components/schemas/TabsPageDefinition' },
48
- { $ref: '#/components/schemas/FlowPageDefinition' },
49
- { $ref: '#/components/schemas/LoopPageDefinition' },
50
- { $ref: '#/components/schemas/ContainerPageDefinition' },
51
- ],
52
- },
53
- },
54
- },
55
- });
56
- //# sourceMappingURL=ContainerPageDefinition.js.map
@@ -1 +0,0 @@
1
- export declare const ControllerActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,18 +0,0 @@
1
- import { BaseActionDefinition } from './BaseActionDefinition.js';
2
- import { extendJSONSchema } from './utils.js';
3
- export const ControllerActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
- type: 'object',
5
- additionalProperties: false,
6
- required: ['type', 'handler'],
7
- properties: {
8
- type: {
9
- enum: ['controller'],
10
- description: 'Use the controller to handle the action.',
11
- },
12
- handler: {
13
- type: 'string',
14
- description: 'The name of the function in the controller that will handle the action',
15
- },
16
- },
17
- });
18
- //# sourceMappingURL=ControllerActionDefinition.js.map
@@ -1,2 +0,0 @@
1
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const ControllerDefinition: OpenAPIV3.NonArraySchemaObject;