@jmruthers/pace-core 0.6.11 → 0.6.12

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 (533) hide show
  1. package/dist/{DataTable-EFYP2QLE.js → DataTable-AQAHSFLM.js} +7 -6
  2. package/dist/{api-BZR2CYXL.js → api-6OQXYT67.js} +2 -1
  3. package/dist/{chunk-L5LFKKLJ.js → chunk-2GBDPPUC.js} +1 -1
  4. package/dist/{chunk-J2KQK6DG.js → chunk-AP5FG7W4.js} +2 -2
  5. package/dist/{chunk-UZNAFKGW.js → chunk-GHCUP64P.js} +1 -21
  6. package/dist/{chunk-V7FTM2LU.js → chunk-H6RTU4DZ.js} +37 -19
  7. package/dist/{chunk-KJXRL3XE.js → chunk-HQTYP6BX.js} +79 -45
  8. package/dist/{chunk-YFTFFJIV.js → chunk-M7QE7XOA.js} +3 -3
  9. package/dist/{chunk-YYTWKVHO.js → chunk-MVVWZ7JV.js} +25 -30
  10. package/dist/{chunk-PCSHBLPB.js → chunk-NJ7FGQWB.js} +5 -5
  11. package/dist/{chunk-WY6Y7KC3.js → chunk-QWIG36BZ.js} +3 -3
  12. package/dist/{chunk-4R3T5ENU.js → chunk-S57OLCLO.js} +9 -6
  13. package/dist/chunk-VFLR5K2H.js +23 -0
  14. package/dist/{chunk-2OEVOGGR.js → chunk-Y2LWSLLB.js} +41 -25
  15. package/dist/{chunk-7A6IMHH2.js → chunk-YFGNMB67.js} +75 -6
  16. package/dist/components.d.ts +3 -3
  17. package/dist/components.js +13 -12
  18. package/dist/{functions-DH45k8ec.d.ts → functions-hF5ImHCr.d.ts} +1 -1
  19. package/dist/hooks.js +8 -7
  20. package/dist/index.d.ts +5 -5
  21. package/dist/index.js +17 -16
  22. package/dist/providers.js +3 -2
  23. package/dist/rbac/index.d.ts +10 -10
  24. package/dist/rbac/index.js +9 -8
  25. package/dist/{types-BE2sEHKd.d.ts → types-Besvoyzb.d.ts} +1 -1
  26. package/dist/{types-CvOPXWWZ.d.ts → types-CGHrxfqc.d.ts} +3 -0
  27. package/dist/types.d.ts +2 -2
  28. package/dist/{usePublicPageContext-B91dGYW1.d.ts → usePublicPageContext-BQrHf95t.d.ts} +1 -1
  29. package/dist/utils.js +4 -3
  30. package/docs/api/@jmruthers/namespaces/DialogPortal/README.md +14 -0
  31. package/docs/api/@jmruthers/namespaces/DialogPortal/variables/displayName.md +11 -0
  32. package/docs/api/README.md +6 -2
  33. package/docs/api/_media/README.md +186 -0
  34. package/docs/api/classes/ColumnFactory.md +225 -0
  35. package/docs/api/classes/Logger.md +246 -0
  36. package/docs/api/classes/RBACAuditManager.md +299 -0
  37. package/docs/api/classes/RBACCache.md +389 -0
  38. package/docs/api/classes/RBACEngine.md +181 -0
  39. package/docs/api/classes/SecureSupabaseClient.md +168 -0
  40. package/docs/api/classes/StorageUtils.md +324 -0
  41. package/docs/api/enumerations/FileCategory.md +137 -0
  42. package/docs/api/enumerations/LogLevel.md +43 -0
  43. package/docs/api/enumerations/RBACErrorCode.md +169 -0
  44. package/docs/api/enumerations/RPCFunction.md +89 -0
  45. package/docs/api/functions/AccessDenied.md +30 -0
  46. package/docs/api/functions/AppSwitcher.md +21 -0
  47. package/docs/api/functions/Badge.md +42 -0
  48. package/docs/api/functions/ContextSelector.md +43 -0
  49. package/docs/api/functions/DataTable.md +36 -0
  50. package/docs/api/functions/DatePickerWithTimezone.md +28 -0
  51. package/docs/api/functions/DialogBody.md +24 -0
  52. package/docs/api/functions/DialogFooter.md +24 -0
  53. package/docs/api/functions/DialogHeader.md +24 -0
  54. package/docs/api/functions/ErrorBoundaryProvider.md +28 -0
  55. package/docs/api/functions/EventServiceProvider.md +28 -0
  56. package/docs/api/functions/FileDisplay.md +25 -0
  57. package/docs/api/functions/FileUpload.md +21 -0
  58. package/docs/api/functions/Form.md +50 -0
  59. package/docs/api/functions/FormField.md +102 -0
  60. package/docs/api/functions/Header.md +21 -0
  61. package/docs/api/functions/InactivityServiceProvider.md +28 -0
  62. package/docs/api/functions/InactivityWarningModal.md +21 -0
  63. package/docs/api/functions/Input.md +49 -0
  64. package/docs/api/functions/NavigationGuard.md +31 -0
  65. package/docs/api/functions/OrganisationServiceProvider.md +28 -0
  66. package/docs/api/functions/PaceAppLayout.md +169 -0
  67. package/docs/api/functions/PasswordChangeForm.md +21 -0
  68. package/docs/api/functions/ProtectedRoute.md +37 -0
  69. package/docs/api/functions/PublicPageFooter.md +21 -0
  70. package/docs/api/functions/PublicPageHeader.md +21 -0
  71. package/docs/api/functions/PublicPageLayout.md +33 -0
  72. package/docs/api/functions/PublicPageProvider.md +30 -0
  73. package/docs/api/functions/Textarea.md +49 -0
  74. package/docs/api/functions/Toaster.md +34 -0
  75. package/docs/api/functions/UnifiedAuthProvider.md +28 -0
  76. package/docs/api/functions/applyPalette.md +33 -0
  77. package/docs/api/functions/archiveFile.md +47 -0
  78. package/docs/api/functions/average.md +63 -0
  79. package/docs/api/functions/buildAppUrl.md +46 -0
  80. package/docs/api/functions/clearInFlightRequests.md +17 -0
  81. package/docs/api/functions/clearPalette.md +18 -0
  82. package/docs/api/functions/clearPublicEventCache.md +18 -0
  83. package/docs/api/functions/clearPublicFileDisplayCache.md +18 -0
  84. package/docs/api/functions/clearPublicLogoCache.md +18 -0
  85. package/docs/api/functions/cn.md +21 -0
  86. package/docs/api/functions/count.md +56 -0
  87. package/docs/api/functions/createAuditManager.md +45 -0
  88. package/docs/api/functions/createBaseClient.md +75 -0
  89. package/docs/api/functions/createLogger.md +95 -0
  90. package/docs/api/functions/createRBACConfig.md +21 -0
  91. package/docs/api/functions/createRBACEngine.md +33 -0
  92. package/docs/api/functions/createRBACExpressMiddleware.md +84 -0
  93. package/docs/api/functions/createRBACMiddleware.md +88 -0
  94. package/docs/api/functions/createSecureClient.md +80 -0
  95. package/docs/api/functions/createSecureDataAccess.md +39 -0
  96. package/docs/api/functions/deleteFile.md +33 -0
  97. package/docs/api/functions/disablePerformanceMonitoring.md +17 -0
  98. package/docs/api/functions/downloadFile.md +33 -0
  99. package/docs/api/functions/emitAuditEvent.md +27 -0
  100. package/docs/api/functions/enablePerformanceMonitoring.md +17 -0
  101. package/docs/api/functions/err.md +23 -0
  102. package/docs/api/functions/exportToCSV.md +56 -0
  103. package/docs/api/functions/exportToCSVWithTableRows.md +46 -0
  104. package/docs/api/functions/extractEventCodeFromPath.md +24 -0
  105. package/docs/api/functions/extractFileMetadata.md +33 -0
  106. package/docs/api/functions/formatCompactNumber.md +27 -0
  107. package/docs/api/functions/formatCurrency.md +31 -0
  108. package/docs/api/functions/formatDate.md +23 -0
  109. package/docs/api/functions/formatDateTime.md +24 -0
  110. package/docs/api/functions/formatFileSize.md +23 -0
  111. package/docs/api/functions/formatInTimeZone.md +46 -0
  112. package/docs/api/functions/formatNumber.md +31 -0
  113. package/docs/api/functions/formatPercent.md +64 -0
  114. package/docs/api/functions/formatTime.md +24 -0
  115. package/docs/api/functions/formatTimeInTimeZone.md +40 -0
  116. package/docs/api/functions/fromSupabaseClient.md +49 -0
  117. package/docs/api/functions/fromZonedTime.md +41 -0
  118. package/docs/api/functions/generateCSVContent.md +55 -0
  119. package/docs/api/functions/generateFilePath.md +29 -0
  120. package/docs/api/functions/generateFileUrlsBatch.md +33 -0
  121. package/docs/api/functions/generatePublicRoutePath.md +27 -0
  122. package/docs/api/functions/generateUniqueFileName.md +24 -0
  123. package/docs/api/functions/getAccessLevel.md +48 -0
  124. package/docs/api/functions/getAllAppPorts.md +19 -0
  125. package/docs/api/functions/getAllStylePaths.md +15 -0
  126. package/docs/api/functions/getAppConfig.md +17 -0
  127. package/docs/api/functions/getAppPort.md +34 -0
  128. package/docs/api/functions/getBucketName.md +27 -0
  129. package/docs/api/functions/getCurrentAppId.md +17 -0
  130. package/docs/api/functions/getCurrentAppName.md +17 -0
  131. package/docs/api/functions/getFileSizeLimit.md +23 -0
  132. package/docs/api/functions/getGlobalAuditManager.md +19 -0
  133. package/docs/api/functions/getInFlightRequestCount.md +19 -0
  134. package/docs/api/functions/getPerformanceMetrics.md +17 -0
  135. package/docs/api/functions/getPerformanceSummary.md +17 -0
  136. package/docs/api/functions/getPermissionMap.md +52 -0
  137. package/docs/api/functions/getPublicEventCacheStats.md +25 -0
  138. package/docs/api/functions/getPublicFileDisplayCacheStats.md +25 -0
  139. package/docs/api/functions/getPublicLogoCacheStats.md +25 -0
  140. package/docs/api/functions/getPublicUrl.md +39 -0
  141. package/docs/api/functions/getRBACConfig.md +15 -0
  142. package/docs/api/functions/getRBACLogger.md +15 -0
  143. package/docs/api/functions/getRoleContext.md +31 -0
  144. package/docs/api/functions/getSignedUrl.md +34 -0
  145. package/docs/api/functions/getStylePath.md +21 -0
  146. package/docs/api/functions/getTimeZoneDifference.md +40 -0
  147. package/docs/api/functions/getTimezoneAbbreviation.md +40 -0
  148. package/docs/api/functions/getUserTimeZone.md +26 -0
  149. package/docs/api/functions/hasAllPermissions.md +41 -0
  150. package/docs/api/functions/hasAnyPermission.md +41 -0
  151. package/docs/api/functions/isDebugMode.md +15 -0
  152. package/docs/api/functions/isDevelopmentMode.md +15 -0
  153. package/docs/api/functions/isErr.md +29 -0
  154. package/docs/api/functions/isOk.md +29 -0
  155. package/docs/api/functions/isPerformanceMonitoringEnabled.md +17 -0
  156. package/docs/api/functions/isPermitted.md +58 -0
  157. package/docs/api/functions/isPermittedCached.md +36 -0
  158. package/docs/api/functions/isRBACInitialized.md +19 -0
  159. package/docs/api/functions/isSecureClient.md +38 -0
  160. package/docs/api/functions/isValidPermission.md +27 -0
  161. package/docs/api/functions/listFiles.md +29 -0
  162. package/docs/api/functions/max.md +63 -0
  163. package/docs/api/functions/min.md +63 -0
  164. package/docs/api/functions/ok.md +29 -0
  165. package/docs/api/functions/parseAndNormalizeEventColours.md +105 -0
  166. package/docs/api/functions/recordAuditEvent.md +23 -0
  167. package/docs/api/functions/recordPermissionCheck.md +31 -0
  168. package/docs/api/functions/resetPerformanceMetrics.md +17 -0
  169. package/docs/api/functions/resolveAppContext.md +27 -0
  170. package/docs/api/functions/roundToNearestMinutes.md +41 -0
  171. package/docs/api/functions/sanitizeFormData.md +49 -0
  172. package/docs/api/functions/sanitizeHtml.md +39 -0
  173. package/docs/api/functions/sanitizeUserInput.md +27 -0
  174. package/docs/api/functions/setAppConfig.md +23 -0
  175. package/docs/api/functions/setGlobalAuditManager.md +25 -0
  176. package/docs/api/functions/setupRBAC.md +31 -0
  177. package/docs/api/functions/sum.md +63 -0
  178. package/docs/api/functions/toZonedTime.md +41 -0
  179. package/docs/api/functions/uploadFile.md +32 -0
  180. package/docs/api/functions/useAccessLevel.md +71 -0
  181. package/docs/api/functions/useAccessibleApps.md +55 -0
  182. package/docs/api/functions/useAppConfig.md +20 -0
  183. package/docs/api/functions/useAuthService.md +15 -0
  184. package/docs/api/functions/useCan.md +99 -0
  185. package/docs/api/functions/useEventService.md +15 -0
  186. package/docs/api/functions/useEventTheme.md +26 -0
  187. package/docs/api/functions/useEvents.md +45 -0
  188. package/docs/api/functions/useFileReference.md +264 -0
  189. package/docs/api/functions/useFileReferenceById.md +63 -0
  190. package/docs/api/functions/useFileReferenceForRecord.md +129 -0
  191. package/docs/api/functions/useFilesByCategory.md +80 -0
  192. package/docs/api/functions/useFormDialog.md +62 -0
  193. package/docs/api/functions/useInactivityService.md +15 -0
  194. package/docs/api/functions/useInactivityTracker.md +21 -0
  195. package/docs/api/functions/useIsPublicPage.md +19 -0
  196. package/docs/api/functions/useMultiplePermissions.md +88 -0
  197. package/docs/api/functions/useOptionalEvents.md +31 -0
  198. package/docs/api/functions/useOrganisationPermissions.md +27 -0
  199. package/docs/api/functions/useOrganisationSecurity.md +15 -0
  200. package/docs/api/functions/useOrganisationService.md +15 -0
  201. package/docs/api/functions/useOrganisations.md +48 -0
  202. package/docs/api/functions/usePermissions.md +130 -0
  203. package/docs/api/functions/usePublicEvent.md +36 -0
  204. package/docs/api/functions/usePublicEventCode.md +32 -0
  205. package/docs/api/functions/usePublicEventLogo.md +48 -0
  206. package/docs/api/functions/usePublicFileDisplay.md +54 -0
  207. package/docs/api/functions/usePublicPageContext.md +19 -0
  208. package/docs/api/functions/usePublicRouteParams.md +31 -0
  209. package/docs/api/functions/useRBAC.md +21 -0
  210. package/docs/api/functions/useResolvedScope.md +46 -0
  211. package/docs/api/functions/useResourcePermissions.md +25 -0
  212. package/docs/api/functions/useRoleManagement.md +121 -0
  213. package/docs/api/functions/useSecureSupabase.md +51 -0
  214. package/docs/api/functions/useSessionRestoration.md +15 -0
  215. package/docs/api/functions/useSessionTracking.md +62 -0
  216. package/docs/api/functions/useToast.md +83 -0
  217. package/docs/api/functions/useUnifiedAuth.md +24 -0
  218. package/docs/api/functions/useZodForm.md +27 -0
  219. package/docs/api/functions/validateFileSize.md +31 -0
  220. package/docs/api/functions/warnIfInsecureClient.md +40 -0
  221. package/docs/api/functions/withAccessLevelGuard.md +67 -0
  222. package/docs/api/functions/withPermissionGuard.md +73 -0
  223. package/docs/api/functions/withRoleGuard.md +86 -0
  224. package/docs/api/globals.md +502 -0
  225. package/docs/api/interfaces/AccessDeniedProps.md +87 -0
  226. package/docs/api/interfaces/AccessibleApp.md +41 -0
  227. package/docs/api/interfaces/AddressFieldProps.md +195 -0
  228. package/docs/api/interfaces/AddressFieldRef.md +67 -0
  229. package/docs/api/interfaces/AggregateConfig.md +35 -0
  230. package/docs/api/interfaces/AppSwitcherProps.md +51 -0
  231. package/docs/api/interfaces/AuthSessionData.md +27 -0
  232. package/docs/api/interfaces/AutocompleteOptions.md +61 -0
  233. package/docs/api/interfaces/AvatarProps.md +97 -0
  234. package/docs/api/interfaces/BadgeProps.md +30 -0
  235. package/docs/api/interfaces/BuildAppUrlOptions.md +41 -0
  236. package/docs/api/interfaces/ButtonProps.md +46 -0
  237. package/docs/api/interfaces/CalendarProps.md +60 -0
  238. package/docs/api/interfaces/CardProps.md +56 -0
  239. package/docs/api/interfaces/ColorPalette.md +13 -0
  240. package/docs/api/interfaces/ColorShade.md +58 -0
  241. package/docs/api/interfaces/ContextSelectorProps.md +131 -0
  242. package/docs/api/interfaces/DataRecord.md +16 -0
  243. package/docs/api/interfaces/DataTableAction.md +198 -0
  244. package/docs/api/interfaces/DataTableColumn.md +422 -0
  245. package/docs/api/interfaces/DataTableProps.md +511 -0
  246. package/docs/api/interfaces/DataTableToolbarButton.md +75 -0
  247. package/docs/api/interfaces/DatePickerWithTimezoneProps.md +75 -0
  248. package/docs/api/interfaces/DialogBodyProps.md +55 -0
  249. package/docs/api/interfaces/DialogCloseProps.md +25 -0
  250. package/docs/api/interfaces/DialogContentProps.md +160 -0
  251. package/docs/api/interfaces/DialogFooterProps.md +25 -0
  252. package/docs/api/interfaces/DialogHeaderProps.md +25 -0
  253. package/docs/api/interfaces/DialogPortalProps.md +19 -0
  254. package/docs/api/interfaces/DialogProps.md +53 -0
  255. package/docs/api/interfaces/DialogTriggerProps.md +53 -0
  256. package/docs/api/interfaces/EmptyStateConfig.md +55 -0
  257. package/docs/api/interfaces/ErrorBoundaryProps.md +131 -0
  258. package/docs/api/interfaces/ErrorBoundaryProviderProps.md +31 -0
  259. package/docs/api/interfaces/ErrorBoundaryState.md +61 -0
  260. package/docs/api/interfaces/EventAppRoleData.md +54 -0
  261. package/docs/api/interfaces/ExportColumn.md +69 -0
  262. package/docs/api/interfaces/ExportOptions.md +109 -0
  263. package/docs/api/interfaces/FileDisplayProps.md +192 -0
  264. package/docs/api/interfaces/FileMetadata.md +97 -0
  265. package/docs/api/interfaces/FileReference.md +89 -0
  266. package/docs/api/interfaces/FileSizeLimits.md +13 -0
  267. package/docs/api/interfaces/FileUploadOptions.md +107 -0
  268. package/docs/api/interfaces/FooterProps.md +37 -0
  269. package/docs/api/interfaces/FormFieldProps.md +171 -0
  270. package/docs/api/interfaces/FormProps.md +93 -0
  271. package/docs/api/interfaces/GrantEventAppRoleParams.md +97 -0
  272. package/docs/api/interfaces/ImportSummary.md +49 -0
  273. package/docs/api/interfaces/InactivityWarningModalProps.md +87 -0
  274. package/docs/api/interfaces/InputProps.md +46 -0
  275. package/docs/api/interfaces/InvalidScopeError.md +37 -0
  276. package/docs/api/interfaces/LabelProps.md +85 -0
  277. package/docs/api/interfaces/LoggerConfig.md +51 -0
  278. package/docs/api/interfaces/LoginFormProps.md +146 -0
  279. package/docs/api/interfaces/MissingUserContextError.md +37 -0
  280. package/docs/api/interfaces/NavigationGuardProps.md +109 -0
  281. package/docs/api/interfaces/NavigationItem.md +91 -0
  282. package/docs/api/interfaces/NavigationMenuProps.md +169 -0
  283. package/docs/api/interfaces/Organisation.md +105 -0
  284. package/docs/api/interfaces/OrganisationContextRequiredError.md +37 -0
  285. package/docs/api/interfaces/OrganisationMembership.md +105 -0
  286. package/docs/api/interfaces/OrganisationSecurityError.md +49 -0
  287. package/docs/api/interfaces/PaceAppLayoutPermissionConfig.md +127 -0
  288. package/docs/api/interfaces/PaceAppLayoutRouteConfigItem.md +91 -0
  289. package/docs/api/interfaces/PaceAppLayoutRoutingConfig.md +79 -0
  290. package/docs/api/interfaces/PaceLoginPageProps.md +41 -0
  291. package/docs/api/interfaces/PagePermissionGuardProps.md +143 -0
  292. package/docs/api/interfaces/PaletteData.md +33 -0
  293. package/docs/api/interfaces/ParsedAddress.md +91 -0
  294. package/docs/api/interfaces/PermissionDeniedError.md +37 -0
  295. package/docs/api/interfaces/ProgressProps.md +35 -0
  296. package/docs/api/interfaces/ProtectedRouteProps.md +67 -0
  297. package/docs/api/interfaces/PublicPageFooterProps.md +97 -0
  298. package/docs/api/interfaces/PublicPageHeaderProps.md +99 -0
  299. package/docs/api/interfaces/PublicPageLayoutProps.md +153 -0
  300. package/docs/api/interfaces/RBACAccessValidateParams.md +41 -0
  301. package/docs/api/interfaces/RBACAccessValidateResult.md +33 -0
  302. package/docs/api/interfaces/RBACAuditLogParams.md +65 -0
  303. package/docs/api/interfaces/RBACAuditLogResult.md +41 -0
  304. package/docs/api/interfaces/RBACContext.md +41 -0
  305. package/docs/api/interfaces/RBACError.md +37 -0
  306. package/docs/api/interfaces/RBACLogger.md +97 -0
  307. package/docs/api/interfaces/RBACNotInitializedError.md +37 -0
  308. package/docs/api/interfaces/RBACPageAccessCheckParams.md +57 -0
  309. package/docs/api/interfaces/RBACPerformanceMetrics.md +109 -0
  310. package/docs/api/interfaces/RBACPermissionCheckParams.md +57 -0
  311. package/docs/api/interfaces/RBACPermissionCheckResult.md +41 -0
  312. package/docs/api/interfaces/RBACPermissionsGetParams.md +49 -0
  313. package/docs/api/interfaces/RBACPermissionsGetResult.md +49 -0
  314. package/docs/api/interfaces/RBACResult.md +47 -0
  315. package/docs/api/interfaces/RBACRoleGrantParams.md +49 -0
  316. package/docs/api/interfaces/RBACRoleGrantResult.md +41 -0
  317. package/docs/api/interfaces/RBACRoleRevokeParams.md +49 -0
  318. package/docs/api/interfaces/RBACRoleRevokeResult.md +41 -0
  319. package/docs/api/interfaces/RBACRoleValidateParams.md +41 -0
  320. package/docs/api/interfaces/RBACRoleValidateResult.md +49 -0
  321. package/docs/api/interfaces/RBACRolesListParams.md +41 -0
  322. package/docs/api/interfaces/RBACRolesListResult.md +57 -0
  323. package/docs/api/interfaces/RBACSessionTrackParams.md +57 -0
  324. package/docs/api/interfaces/RBACSessionTrackResult.md +41 -0
  325. package/docs/api/interfaces/ResourcePermissions.md +119 -0
  326. package/docs/api/interfaces/RevokeEventAppRoleParams.md +81 -0
  327. package/docs/api/interfaces/RoleManagementResult.md +41 -0
  328. package/docs/api/interfaces/SessionRestorationLoaderProps.md +29 -0
  329. package/docs/api/interfaces/StorageConfig.md +33 -0
  330. package/docs/api/interfaces/StorageFileInfo.md +57 -0
  331. package/docs/api/interfaces/StorageFileMetadata.md +113 -0
  332. package/docs/api/interfaces/StorageListOptions.md +79 -0
  333. package/docs/api/interfaces/StorageListResult.md +33 -0
  334. package/docs/api/interfaces/StorageUploadOptions.md +81 -0
  335. package/docs/api/interfaces/StorageUploadResult.md +49 -0
  336. package/docs/api/interfaces/StorageUploadSuccess.md +35 -0
  337. package/docs/api/interfaces/StorageUrlOptions.md +49 -0
  338. package/docs/api/interfaces/StyleImport.md +17 -0
  339. package/docs/api/interfaces/SwitchProps.md +30 -0
  340. package/docs/api/interfaces/TabsContentProps.md +13 -0
  341. package/docs/api/interfaces/TabsListProps.md +13 -0
  342. package/docs/api/interfaces/TabsProps.md +13 -0
  343. package/docs/api/interfaces/TabsTriggerProps.md +41 -0
  344. package/docs/api/interfaces/TextareaProps.md +43 -0
  345. package/docs/api/interfaces/ToastActionElement.md +16 -0
  346. package/docs/api/interfaces/ToastProps.md +13 -0
  347. package/docs/api/interfaces/UnifiedAuthProviderProps.md +129 -0
  348. package/docs/api/interfaces/UseAccessibleAppsReturn.md +55 -0
  349. package/docs/api/interfaces/UseFormDialogOptions.md +49 -0
  350. package/docs/api/interfaces/UseFormDialogReturn.md +95 -0
  351. package/docs/api/interfaces/UseInactivityTrackerOptions.md +103 -0
  352. package/docs/api/interfaces/UseInactivityTrackerReturn.md +91 -0
  353. package/docs/api/interfaces/UsePublicEventLogoOptions.md +69 -0
  354. package/docs/api/interfaces/UsePublicEventLogoReturn.md +66 -0
  355. package/docs/api/interfaces/UsePublicEventOptions.md +29 -0
  356. package/docs/api/interfaces/UsePublicEventReturn.md +56 -0
  357. package/docs/api/interfaces/UsePublicFileDisplayOptions.md +39 -0
  358. package/docs/api/interfaces/UsePublicFileDisplayReturn.md +96 -0
  359. package/docs/api/interfaces/UsePublicRouteParamsReturn.md +76 -0
  360. package/docs/api/interfaces/UseResolvedScopeOptions.md +49 -0
  361. package/docs/api/interfaces/UseResolvedScopeReturn.md +39 -0
  362. package/docs/api/interfaces/UseResourcePermissionsOptions.md +29 -0
  363. package/docs/api/interfaces/UserEventAccess.md +92 -0
  364. package/docs/api/interfaces/UserMenuProps.md +69 -0
  365. package/docs/api/interfaces/UserProfile.md +49 -0
  366. package/docs/api/type-aliases/AccessLevel.md +11 -0
  367. package/docs/api/type-aliases/AccessLevelContext.md +14 -0
  368. package/docs/api/type-aliases/AllPermissions.md +11 -0
  369. package/docs/api/type-aliases/ApiError.md +37 -0
  370. package/docs/api/type-aliases/ApiResult.md +19 -0
  371. package/docs/api/type-aliases/AuditEventType.md +11 -0
  372. package/docs/api/type-aliases/BadgeVariant.md +18 -0
  373. package/docs/api/type-aliases/DataTableFeatureConfig.md +14 -0
  374. package/docs/api/type-aliases/DialogSize.md +13 -0
  375. package/docs/api/type-aliases/EventAppRole.md +11 -0
  376. package/docs/api/type-aliases/FileUploadProps.md +15 -0
  377. package/docs/api/type-aliases/GetRowId.md +33 -0
  378. package/docs/api/type-aliases/GlobalErrorHandler.md +35 -0
  379. package/docs/api/type-aliases/GlobalRole.md +11 -0
  380. package/docs/api/type-aliases/ImportHandlerResult.md +13 -0
  381. package/docs/api/type-aliases/NavigationMode.md +13 -0
  382. package/docs/api/type-aliases/Operation.md +11 -0
  383. package/docs/api/type-aliases/OrganisationContextType.md +13 -0
  384. package/docs/api/type-aliases/OrganisationRole.md +11 -0
  385. package/docs/api/type-aliases/PaceAppLayoutProps.md +14 -0
  386. package/docs/api/type-aliases/Permission.md +11 -0
  387. package/docs/api/type-aliases/PermissionCheck.md +46 -0
  388. package/docs/api/type-aliases/PermissionMap.md +11 -0
  389. package/docs/api/type-aliases/PermissionSource.md +13 -0
  390. package/docs/api/type-aliases/RBACConfig.md +13 -0
  391. package/docs/api/type-aliases/RBACFunctionResponse.md +57 -0
  392. package/docs/api/type-aliases/Scope.md +41 -0
  393. package/docs/api/type-aliases/SessionType.md +11 -0
  394. package/docs/api/type-aliases/UUID.md +11 -0
  395. package/docs/api/type-aliases/UnifiedAuthContextType.md +13 -0
  396. package/docs/api/type-aliases/UseFileReferenceForRecordReturn.md +161 -0
  397. package/docs/api/type-aliases/UseFileReferenceOptions.md +35 -0
  398. package/docs/api/type-aliases/UseFileReferenceReturn.md +13 -0
  399. package/docs/api/variables/ALL_PERMISSIONS.md +281 -0
  400. package/docs/api/variables/APP_PATH_MAPPING.md +14 -0
  401. package/docs/api/variables/AddressField.md +41 -0
  402. package/docs/api/variables/Alert.md +11 -0
  403. package/docs/api/variables/AlertDescription.md +11 -0
  404. package/docs/api/variables/AlertTitle.md +11 -0
  405. package/docs/api/variables/Avatar.md +13 -0
  406. package/docs/api/variables/Button.md +31 -0
  407. package/docs/api/variables/CACHE_PATTERNS.md +89 -0
  408. package/docs/api/variables/Calendar.md +74 -0
  409. package/docs/api/variables/Card.md +11 -0
  410. package/docs/api/variables/CardActions.md +11 -0
  411. package/docs/api/variables/CardContent.md +11 -0
  412. package/docs/api/variables/CardDescription.md +11 -0
  413. package/docs/api/variables/CardFooter.md +11 -0
  414. package/docs/api/variables/CardHeader.md +11 -0
  415. package/docs/api/variables/CardTitle.md +11 -0
  416. package/docs/api/variables/Checkbox.md +11 -0
  417. package/docs/api/variables/DEFAULT_APP_PORT_MAP.md +14 -0
  418. package/docs/api/variables/DEFAULT_FILE_SIZE_LIMIT.md +13 -0
  419. package/docs/api/variables/Dialog.md +14 -0
  420. package/docs/api/variables/DialogClose.md +14 -0
  421. package/docs/api/variables/DialogContent.md +28 -0
  422. package/docs/api/variables/DialogDescription.md +14 -0
  423. package/docs/api/variables/DialogPortal.md +14 -0
  424. package/docs/api/variables/DialogTitle.md +14 -0
  425. package/docs/api/variables/DialogTrigger.md +14 -0
  426. package/docs/api/variables/EVENT_APP_PERMISSIONS.md +109 -0
  427. package/docs/api/variables/ErrorBoundary.md +15 -0
  428. package/docs/api/variables/FILE_SIZE_LIMITS.md +13 -0
  429. package/docs/api/variables/Footer.md +11 -0
  430. package/docs/api/variables/GLOBAL_PERMISSIONS.md +29 -0
  431. package/docs/api/variables/Label.md +34 -0
  432. package/docs/api/variables/LoadingSpinner.md +28 -0
  433. package/docs/api/variables/LoginForm.md +34 -0
  434. package/docs/api/variables/NavigationMenu.md +203 -0
  435. package/docs/api/variables/ORGANISATION_PERMISSIONS.md +89 -0
  436. package/docs/api/variables/PAGE_PERMISSIONS.md +93 -0
  437. package/docs/api/variables/PaceLoginPage.md +40 -0
  438. package/docs/api/variables/PagePermissionGuard.md +11 -0
  439. package/docs/api/variables/Progress.md +32 -0
  440. package/docs/api/variables/SECURE_CLIENT_SYMBOL.md +14 -0
  441. package/docs/api/variables/STORAGE_CONFIG.md +13 -0
  442. package/docs/api/variables/Select.md +26 -0
  443. package/docs/api/variables/SelectContent.md +26 -0
  444. package/docs/api/variables/SelectGroup.md +26 -0
  445. package/docs/api/variables/SelectItem.md +26 -0
  446. package/docs/api/variables/SelectLabel.md +26 -0
  447. package/docs/api/variables/SelectSeparator.md +26 -0
  448. package/docs/api/variables/SelectTrigger.md +26 -0
  449. package/docs/api/variables/SelectValue.md +26 -0
  450. package/docs/api/variables/SessionRestorationLoader.md +11 -0
  451. package/docs/api/variables/Switch.md +23 -0
  452. package/docs/api/variables/Table.md +35 -0
  453. package/docs/api/variables/TableBody.md +11 -0
  454. package/docs/api/variables/TableCaption.md +11 -0
  455. package/docs/api/variables/TableCell.md +11 -0
  456. package/docs/api/variables/TableFooter.md +11 -0
  457. package/docs/api/variables/TableHead.md +11 -0
  458. package/docs/api/variables/TableHeader.md +11 -0
  459. package/docs/api/variables/TableRow.md +11 -0
  460. package/docs/api/variables/Tabs.md +25 -0
  461. package/docs/api/variables/TabsContent.md +24 -0
  462. package/docs/api/variables/TabsList.md +25 -0
  463. package/docs/api/variables/TabsTrigger.md +34 -0
  464. package/docs/api/variables/Toast.md +36 -0
  465. package/docs/api/variables/ToastAction.md +32 -0
  466. package/docs/api/variables/ToastClose.md +32 -0
  467. package/docs/api/variables/ToastDescription.md +32 -0
  468. package/docs/api/variables/ToastProvider.md +11 -0
  469. package/docs/api/variables/ToastTitle.md +32 -0
  470. package/docs/api/variables/ToastViewport.md +26 -0
  471. package/docs/api/variables/Tooltip.md +34 -0
  472. package/docs/api/variables/TooltipContent.md +34 -0
  473. package/docs/api/variables/TooltipProvider.md +11 -0
  474. package/docs/api/variables/TooltipRoot.md +11 -0
  475. package/docs/api/variables/TooltipTrigger.md +11 -0
  476. package/docs/api/variables/UserMenu.md +11 -0
  477. package/docs/api/variables/emailSchema.md +13 -0
  478. package/docs/api/variables/logger.md +203 -0
  479. package/docs/api/variables/nameSchema.md +13 -0
  480. package/docs/api/variables/passwordSchema.md +13 -0
  481. package/docs/api/variables/phoneSchema.md +13 -0
  482. package/docs/api/variables/rbacCache.md +16 -0
  483. package/docs/api/variables/styleConfig.md +25 -0
  484. package/docs/api/variables/urlSchema.md +13 -0
  485. package/docs/api-reference/hooks.md +2 -0
  486. package/docs/implementation-guides/data-tables.md +8 -0
  487. package/docs/rbac/getting-started.md +7 -0
  488. package/docs/rbac/troubleshooting.md +5 -1
  489. package/package.json +3 -3
  490. package/src/components/DataTable/hooks/useDataTableEffectiveActions.ts +29 -19
  491. package/src/components/DataTable/hooks/useDataTableScope.test.ts +5 -13
  492. package/src/components/DataTable/hooks/useDataTableScope.ts +16 -14
  493. package/src/components/Dialog/useDialogLifecycle.test.ts +4 -1
  494. package/src/components/FileDisplay/useFileDisplay.unit.test.ts +12 -8
  495. package/src/components/PaceAppLayout/PaceAppLayout.edge-cases.test.tsx +33 -9
  496. package/src/components/PaceAppLayout/useFilteredNavItems.ts +22 -7
  497. package/src/components/PaceAppLayout/usePaceAppLayoutConfig.ts +44 -23
  498. package/src/components/PaceAppLayout/usePaceAppLayoutPermissions.ts +1 -1
  499. package/src/components/PaceAppLayout/usePaceAppLayoutScope.ts +6 -4
  500. package/src/components/PaceAppLayout/useRoleBasedRouteAccess.ts +2 -2
  501. package/src/hooks/useAppConfig.unit.test.ts +74 -66
  502. package/src/hooks/useComponentPerformance.unit.test.tsx +6 -4
  503. package/src/hooks/useFileUrl.unit.test.ts +1 -3
  504. package/src/hooks/useInactivityTracker.unit.test.ts +6 -2
  505. package/src/hooks/usePerformanceMonitor.unit.test.ts +6 -16
  506. package/src/hooks/usePublicEvent.simple.test.ts +32 -47
  507. package/src/hooks/usePublicEvent.test.ts +9 -15
  508. package/src/providers/services/AuthServiceProvider.test.tsx +10 -5
  509. package/src/providers/services/EventServiceProvider.test.tsx +8 -3
  510. package/src/providers/services/InactivityServiceProvider.test.tsx +8 -3
  511. package/src/providers/services/OrganisationServiceProvider.test.tsx +8 -3
  512. package/src/rbac/README.md +7 -5
  513. package/src/rbac/api.test.ts +113 -56
  514. package/src/rbac/api.ts +80 -10
  515. package/src/rbac/components/NavigationGuard.tsx +2 -1
  516. package/src/rbac/components/PagePermissionGuard.test.tsx +23 -10
  517. package/src/rbac/engine.ts +23 -1
  518. package/src/rbac/hooks/permissions/runPermissionCheck.ts +18 -4
  519. package/src/rbac/hooks/permissions/useCan.test.ts +59 -20
  520. package/src/rbac/hooks/permissions/useCan.ts +7 -3
  521. package/src/rbac/hooks/permissions/useMultiplePermissions.ts +18 -9
  522. package/src/rbac/hooks/useCan.test.ts +2 -3
  523. package/src/rbac/hooks/usePageGuardScope.ts +6 -4
  524. package/src/rbac/hooks/usePagePermissionCheck.ts +4 -4
  525. package/src/rbac/hooks/useResolvedScope.ts +16 -10
  526. package/src/rbac/hooks/useResourcePermissions.test.ts +48 -58
  527. package/src/rbac/hooks/useResourcePermissions.ts +11 -20
  528. package/src/rbac/types.ts +3 -0
  529. package/src/services/AuthService.edge-cases.test.ts +2 -2
  530. package/src/services/EventService.ts +9 -4
  531. package/src/utils/file-reference/file-reference.test.ts +25 -14
  532. package/src/utils/supabase/createBaseClient.test.ts +30 -13
  533. package/docs/api/modules.md +0 -10028
@@ -0,0 +1,40 @@
1
+ [**@jmruthers/pace-core v0.6.12**](../README.md)
2
+
3
+ ***
4
+
5
+ [@jmruthers/pace-core](../globals.md) / warnIfInsecureClient
6
+
7
+ # Function: warnIfInsecureClient()
8
+
9
+ > **warnIfInsecureClient**(`client`, `context?`): `void`
10
+
11
+ Defined in: [rbac/utils/clientSecurity.ts:57](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/utils/clientSecurity.ts#L57)
12
+
13
+ Warn about insecure client usage in development
14
+
15
+ ## Parameters
16
+
17
+ ### client
18
+
19
+ The client being used
20
+
21
+ `SupabaseClient`\<`Database`, `"public"`, `"public"`, \{ `Tables`: \{ `base_application`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `person_id`: `string`; `status`: `string`; `status_updated_at`: `string` \| `null`; `status_updated_by`: `string` \| `null`; `submitted_at`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `person_id`: `string`; `status?`: `string`; `status_updated_at?`: `string` \| `null`; `status_updated_by?`: `string` \| `null`; `submitted_at?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `person_id?`: `string`; `status?`: `string`; `status_updated_at?`: `string` \| `null`; `status_updated_by?`: `string` \| `null`; `submitted_at?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"base_application_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_application_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_application_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"base_application_person_id_fkey"`; `columns`: \[`"person_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `base_report_template`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string`; `description`: `string` \| `null`; `event_id`: `string`; `filters`: `Json`; `id`: `string`; `is_private`: `boolean`; `name`: `string`; `organisation_id`: `string`; `selected_fields`: `Json`; `updated_at`: `string`; \}; `Insert`: \{ `created_at?`: `string`; `created_by`: `string`; `description?`: `string` \| `null`; `event_id`: `string`; `filters?`: `Json`; `id?`: `string`; `is_private?`: `boolean`; `name`: `string`; `organisation_id`: `string`; `selected_fields?`: `Json`; `updated_at?`: `string`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string`; `description?`: `string` \| `null`; `event_id?`: `string`; `filters?`: `Json`; `id?`: `string`; `is_private?`: `boolean`; `name?`: `string`; `organisation_id?`: `string`; `selected_fields?`: `Json`; `updated_at?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"base_report_template_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_report_template_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_report_template_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `base_unit_role_types`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `role_title`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `role_title`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `role_title?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"base_unit_role_types_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_unit_role_types_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_unit_role_types_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `base_unit_roles`: \{ `Row`: \{ `application_id`: `string`; `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `role_type_id`: `string`; `unit_id`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `application_id`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `role_type_id`: `string`; `unit_id`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `application_id?`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `role_type_id?`: `string`; `unit_id?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"base_unit_roles_application_id_fkey"`; `columns`: \[`"application_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"base_application"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"base_unit_roles_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_unit_roles_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_unit_roles_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"base_unit_roles_role_type_id_fkey"`; `columns`: \[`"role_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"base_unit_role_types"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"base_unit_roles_unit_id_fkey"`; `columns`: \[`"unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"base_units"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `base_units`: \{ `Row`: \{ `contingent`: `string` \| `null`; `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `parent_unit_id`: `string` \| `null`; `subcamp`: `string` \| `null`; `unit_name`: `string`; `unit_number`: `number`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `contingent?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `parent_unit_id?`: `string` \| `null`; `subcamp?`: `string` \| `null`; `unit_name`: `string`; `unit_number`: `number`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `contingent?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `parent_unit_id?`: `string` \| `null`; `subcamp?`: `string` \| `null`; `unit_name?`: `string`; `unit_number?`: `number`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"base_units_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_units_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"base_units_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"base_units_parent_unit_id_fkey"`; `columns`: \[`"parent_unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"base_units"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_delivery`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `delivery_address`: `string` \| `null`; `delivery_date`: `string`; `delivery_event_id`: `string`; `delivery_id`: `string`; `delivery_notes`: `string` \| `null`; `delivery_supplier_id`: `string`; `delivery_unitcollectiondate`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `delivery_address?`: `string` \| `null`; `delivery_date`: `string`; `delivery_event_id`: `string`; `delivery_id`: `string`; `delivery_notes?`: `string` \| `null`; `delivery_supplier_id`: `string`; `delivery_unitcollectiondate`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `delivery_address?`: `string` \| `null`; `delivery_date?`: `string`; `delivery_event_id?`: `string`; `delivery_id?`: `string`; `delivery_notes?`: `string` \| `null`; `delivery_supplier_id?`: `string`; `delivery_unitcollectiondate?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_delivery_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"delivery_delivery_event_id_fkey"`; `columns`: \[`"delivery_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"delivery_delivery_event_id_fkey"`; `columns`: \[`"delivery_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"delivery_delivery_supplier_id_fkey"`; `columns`: \[`"delivery_supplier_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_supplier"`; `referencedColumns`: \[`"supplier_id"`\]; \}\]; \}; `cake_diettype`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `diettype_code`: `string`; `diettype_description`: `string` \| `null`; `diettype_id`: `string`; `diettype_name`: `string`; `is_active`: `boolean` \| `null`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diettype_code`: `string`; `diettype_description?`: `string` \| `null`; `diettype_id`: `string`; `diettype_name`: `string`; `is_active?`: `boolean` \| `null`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diettype_code?`: `string`; `diettype_description?`: `string` \| `null`; `diettype_id?`: `string`; `diettype_name?`: `string`; `is_active?`: `boolean` \| `null`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_diettype_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_diner`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `diner_adult`: `number` \| `null`; `diner_diettype_id`: `string`; `diner_id`: `string`; `diner_unit_id`: `string`; `diner_youth`: `number` \| `null`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diner_adult?`: `number` \| `null`; `diner_diettype_id`: `string`; `diner_id`: `string`; `diner_unit_id`: `string`; `diner_youth?`: `number` \| `null`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diner_adult?`: `number` \| `null`; `diner_diettype_id?`: `string`; `diner_id?`: `string`; `diner_unit_id?`: `string`; `diner_youth?`: `number` \| `null`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_diner_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"diner_diner_diettype_id_fkey"`; `columns`: \[`"diner_diettype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_diettype"`; `referencedColumns`: \[`"diettype_id"`\]; \}, \{ `foreignKeyName`: `"diner_diner_unit_id_fkey"`; `columns`: \[`"diner_unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_unit"`; `referencedColumns`: \[`"unit_id"`\]; \}\]; \}; `cake_dish`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `dish_code`: `string`; `dish_description`: `string` \| `null`; `dish_dietnote`: `string` \| `null`; `dish_equipment`: `string` \| `null`; `dish_event_id`: `string`; `dish_id`: `string`; `dish_mealtype_id`: `string`; `dish_name`: `string`; `dish_prep`: `string` \| `null`; `dish_step1`: `string` \| `null`; `dish_step2`: `string` \| `null`; `dish_step3`: `string` \| `null`; `dish_step4`: `string` \| `null`; `dish_step5`: `string` \| `null`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `dish_code`: `string`; `dish_description?`: `string` \| `null`; `dish_dietnote?`: `string` \| `null`; `dish_equipment?`: `string` \| `null`; `dish_event_id`: `string`; `dish_id`: `string`; `dish_mealtype_id`: `string`; `dish_name`: `string`; `dish_prep?`: `string` \| `null`; `dish_step1?`: `string` \| `null`; `dish_step2?`: `string` \| `null`; `dish_step3?`: `string` \| `null`; `dish_step4?`: `string` \| `null`; `dish_step5?`: `string` \| `null`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `dish_code?`: `string`; `dish_description?`: `string` \| `null`; `dish_dietnote?`: `string` \| `null`; `dish_equipment?`: `string` \| `null`; `dish_event_id?`: `string`; `dish_id?`: `string`; `dish_mealtype_id?`: `string`; `dish_name?`: `string`; `dish_prep?`: `string` \| `null`; `dish_step1?`: `string` \| `null`; `dish_step2?`: `string` \| `null`; `dish_step3?`: `string` \| `null`; `dish_step4?`: `string` \| `null`; `dish_step5?`: `string` \| `null`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_dish_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_event_id_fkey"`; `columns`: \[`"dish_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_event_id_fkey"`; `columns`: \[`"dish_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_mealtype_id_fkey"`; `columns`: \[`"dish_mealtype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_mealtype"`; `referencedColumns`: \[`"mealtype_id"`\]; \}\]; \}; `cake_item`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `item_brand`: `string` \| `null`; `item_bulkdistribution`: `boolean`; `item_diet_dairyfree`: `boolean` \| `null`; `item_diet_diabetic`: `boolean` \| `null`; `item_diet_eggfree`: `boolean` \| `null`; `item_diet_glutenfree`: `boolean` \| `null`; `item_diet_halal`: `boolean` \| `null`; `item_diet_kosher`: `boolean` \| `null`; `item_diet_lactosefree`: `boolean` \| `null`; `item_diet_lowfodmap`: `boolean` \| `null`; `item_diet_lowfructose`: `boolean` \| `null`; `item_diet_porkfree`: `boolean` \| `null`; `item_diet_redmeatfree`: `boolean` \| `null`; `item_diet_vegan`: `boolean` \| `null`; `item_diet_vegetarian`: `boolean` \| `null`; `item_distribution`: `string` \| `null`; `item_id`: `string`; `item_ingredients`: `string` \| `null`; `item_logistics`: `number`; `item_name`: `string`; `item_packageunit`: `string`; `item_producturl`: `string` \| `null`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `item_brand?`: `string` \| `null`; `item_bulkdistribution?`: `boolean`; `item_diet_dairyfree?`: `boolean` \| `null`; `item_diet_diabetic?`: `boolean` \| `null`; `item_diet_eggfree?`: `boolean` \| `null`; `item_diet_glutenfree?`: `boolean` \| `null`; `item_diet_halal?`: `boolean` \| `null`; `item_diet_kosher?`: `boolean` \| `null`; `item_diet_lactosefree?`: `boolean` \| `null`; `item_diet_lowfodmap?`: `boolean` \| `null`; `item_diet_lowfructose?`: `boolean` \| `null`; `item_diet_porkfree?`: `boolean` \| `null`; `item_diet_redmeatfree?`: `boolean` \| `null`; `item_diet_vegan?`: `boolean` \| `null`; `item_diet_vegetarian?`: `boolean` \| `null`; `item_distribution?`: `string` \| `null`; `item_id`: `string`; `item_ingredients?`: `string` \| `null`; `item_logistics`: `number`; `item_name`: `string`; `item_packageunit`: `string`; `item_producturl?`: `string` \| `null`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `item_brand?`: `string` \| `null`; `item_bulkdistribution?`: `boolean`; `item_diet_dairyfree?`: `boolean` \| `null`; `item_diet_diabetic?`: `boolean` \| `null`; `item_diet_eggfree?`: `boolean` \| `null`; `item_diet_glutenfree?`: `boolean` \| `null`; `item_diet_halal?`: `boolean` \| `null`; `item_diet_kosher?`: `boolean` \| `null`; `item_diet_lactosefree?`: `boolean` \| `null`; `item_diet_lowfodmap?`: `boolean` \| `null`; `item_diet_lowfructose?`: `boolean` \| `null`; `item_diet_porkfree?`: `boolean` \| `null`; `item_diet_redmeatfree?`: `boolean` \| `null`; `item_diet_vegan?`: `boolean` \| `null`; `item_diet_vegetarian?`: `boolean` \| `null`; `item_distribution?`: `string` \| `null`; `item_id?`: `string`; `item_ingredients?`: `string` \| `null`; `item_logistics?`: `number`; `item_name?`: `string`; `item_packageunit?`: `string`; `item_producturl?`: `string` \| `null`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_item_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"fk_item_logistics"`; `columns`: \[`"item_logistics"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_logistics"`; `referencedColumns`: \[`"logistics_id"`\]; \}\]; \}; `cake_logistics`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `logistics_code`: `string`; `logistics_id`: `number`; `logistics_name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `logistics_code`: `string`; `logistics_id`: `number`; `logistics_name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `logistics_code?`: `string`; `logistics_id?`: `number`; `logistics_name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_logistics_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_meal`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `meal_code`: `string`; `meal_collectiondate`: `string`; `meal_date`: `string`; `meal_event_id`: `string`; `meal_id`: `string`; `meal_mealtype_id`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `meal_code`: `string`; `meal_collectiondate`: `string`; `meal_date`: `string`; `meal_event_id`: `string`; `meal_id`: `string`; `meal_mealtype_id`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `meal_code?`: `string`; `meal_collectiondate?`: `string`; `meal_date?`: `string`; `meal_event_id?`: `string`; `meal_id?`: `string`; `meal_mealtype_id?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_meal_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"meal_meal_event_id_fkey"`; `columns`: \[`"meal_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"meal_meal_event_id_fkey"`; `columns`: \[`"meal_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"meal_meal_mealtype_id_fkey"`; `columns`: \[`"meal_mealtype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_mealtype"`; `referencedColumns`: \[`"mealtype_id"`\]; \}\]; \}; `cake_mealplan`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `mealplan_dish_id`: `string`; `mealplan_dish_multiplier`: `number` \| `null`; `mealplan_id`: `string`; `mealplan_meal_id`: `string`; `mealplan_unit_id`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `mealplan_dish_id`: `string`; `mealplan_dish_multiplier?`: `number` \| `null`; `mealplan_id`: `string`; `mealplan_meal_id`: `string`; `mealplan_unit_id`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `mealplan_dish_id?`: `string`; `mealplan_dish_multiplier?`: `number` \| `null`; `mealplan_id?`: `string`; `mealplan_meal_id?`: `string`; `mealplan_unit_id?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_mealplan_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"mealplan_mealplan_dish_id_fkey"`; `columns`: \[`"mealplan_dish_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_dish"`; `referencedColumns`: \[`"dish_id"`\]; \}, \{ `foreignKeyName`: `"mealplan_mealplan_dish_id_fkey"`; `columns`: \[`"mealplan_dish_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"dish_id"`\]; \}, \{ `foreignKeyName`: `"mealplan_mealplan_meal_id_fkey"`; `columns`: \[`"mealplan_meal_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_meal"`; `referencedColumns`: \[`"meal_id"`\]; \}, \{ `foreignKeyName`: `"mealplan_mealplan_unit_id_fkey"`; `columns`: \[`"mealplan_unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_unit"`; `referencedColumns`: \[`"unit_id"`\]; \}\]; \}; `cake_mealtype`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `mealtype_id`: `string`; `mealtype_name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `mealtype_id`: `string`; `mealtype_name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `mealtype_id?`: `string`; `mealtype_name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_mealtype_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_order_receiving`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `ctn_qty_received`: `number` \| `null`; `delivery_date`: `string`; `id`: `string`; `item_id`: `string`; `organisation_id`: `string`; `package_size`: `number`; `package_type`: `string`; `pkg_qty_received`: `number` \| `null`; `supplier_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `ctn_qty_received?`: `number` \| `null`; `delivery_date`: `string`; `id?`: `string`; `item_id`: `string`; `organisation_id`: `string`; `package_size`: `number`; `package_type`: `string`; `pkg_qty_received?`: `number` \| `null`; `supplier_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `ctn_qty_received?`: `number` \| `null`; `delivery_date?`: `string`; `id?`: `string`; `item_id?`: `string`; `organisation_id?`: `string`; `package_size?`: `number`; `package_type?`: `string`; `pkg_qty_received?`: `number` \| `null`; `supplier_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_order_receiving_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_package`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `organisation_id`: `string`; `package_ctnpkgs`: `number` \| `null`; `package_id`: `string`; `package_itemid`: `string`; `package_palletctns`: `number` \| `null`; `package_size`: `number`; `package_type`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id`: `string`; `package_ctnpkgs?`: `number` \| `null`; `package_id`: `string`; `package_itemid`: `string`; `package_palletctns?`: `number` \| `null`; `package_size`: `number`; `package_type`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id?`: `string`; `package_ctnpkgs?`: `number` \| `null`; `package_id?`: `string`; `package_itemid?`: `string`; `package_palletctns?`: `number` \| `null`; `package_size?`: `number`; `package_type?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_package_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"package_package_itemid_fkey"`; `columns`: \[`"package_itemid"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_item"`; `referencedColumns`: \[`"item_id"`\]; \}\]; \}; `cake_recipe`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `organisation_id`: `string`; `recipe_diettype_id`: `string`; `recipe_dish_id`: `string`; `recipe_id`: `string`; `recipe_item_id`: `string`; `recipe_qtypp`: `number`; `recipe_uptake`: `number`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id`: `string`; `recipe_diettype_id`: `string`; `recipe_dish_id`: `string`; `recipe_id`: `string`; `recipe_item_id`: `string`; `recipe_qtypp`: `number`; `recipe_uptake`: `number`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id?`: `string`; `recipe_diettype_id?`: `string`; `recipe_dish_id?`: `string`; `recipe_id?`: `string`; `recipe_item_id?`: `string`; `recipe_qtypp?`: `number`; `recipe_uptake?`: `number`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_recipe_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"recipe_dish_id_fkey"`; `columns`: \[`"recipe_dish_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_dish"`; `referencedColumns`: \[`"dish_id"`\]; \}, \{ `foreignKeyName`: `"recipe_dish_id_fkey"`; `columns`: \[`"recipe_dish_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"dish_id"`\]; \}, \{ `foreignKeyName`: `"recipe_recipe_diettype_id_fkey"`; `columns`: \[`"recipe_diettype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_diettype"`; `referencedColumns`: \[`"diettype_id"`\]; \}, \{ `foreignKeyName`: `"recipe_recipe_item_id_fkey"`; `columns`: \[`"recipe_item_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_item"`; `referencedColumns`: \[`"item_id"`\]; \}\]; \}; `cake_supplier`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `organisation_id`: `string`; `supplier_contactemail`: `string` \| `null`; `supplier_contactname`: `string` \| `null`; `supplier_contactnumber`: `string` \| `null`; `supplier_id`: `string`; `supplier_name`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id`: `string`; `supplier_contactemail?`: `string` \| `null`; `supplier_contactname?`: `string` \| `null`; `supplier_contactnumber?`: `string` \| `null`; `supplier_id`: `string`; `supplier_name`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id?`: `string`; `supplier_contactemail?`: `string` \| `null`; `supplier_contactname?`: `string` \| `null`; `supplier_contactnumber?`: `string` \| `null`; `supplier_id?`: `string`; `supplier_name?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_supplier_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `cake_supply`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `organisation_id`: `string`; `supply_code`: `string` \| `null`; `supply_cost`: `number` \| `null`; `supply_event_id`: `string`; `supply_id`: `string`; `supply_packageid`: `string`; `supply_supplier_id`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id`: `string`; `supply_code?`: `string` \| `null`; `supply_cost?`: `number` \| `null`; `supply_event_id`: `string`; `supply_id`: `string`; `supply_packageid`: `string`; `supply_supplier_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id?`: `string`; `supply_code?`: `string` \| `null`; `supply_cost?`: `number` \| `null`; `supply_event_id?`: `string`; `supply_id?`: `string`; `supply_packageid?`: `string`; `supply_supplier_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_supply_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"supply_supply_event_id_fkey"`; `columns`: \[`"supply_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"supply_supply_event_id_fkey"`; `columns`: \[`"supply_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"supply_supply_packageid_fkey"`; `columns`: \[`"supply_packageid"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_package"`; `referencedColumns`: \[`"package_id"`\]; \}, \{ `foreignKeyName`: `"supply_supply_supplier_id_fkey"`; `columns`: \[`"supply_supplier_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_supplier"`; `referencedColumns`: \[`"supplier_id"`\]; \}\]; \}; `cake_unit`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `organisation_id`: `string`; `unit_contingent`: `string` \| `null`; `unit_event_id`: `string`; `unit_id`: `string`; `unit_name`: `string` \| `null`; `unit_number`: `number`; `unit_subcamp`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id`: `string`; `unit_contingent?`: `string` \| `null`; `unit_event_id`: `string`; `unit_id`: `string`; `unit_name?`: `string` \| `null`; `unit_number`: `number`; `unit_subcamp?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `organisation_id?`: `string`; `unit_contingent?`: `string` \| `null`; `unit_event_id?`: `string`; `unit_id?`: `string`; `unit_name?`: `string` \| `null`; `unit_number?`: `number`; `unit_subcamp?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_unit_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"unit_unit_event_id_fkey"`; `columns`: \[`"unit_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"unit_unit_event_id_fkey"`; `columns`: \[`"unit_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}\]; \}; `core_address`: \{ `Row`: \{ `country`: `string` \| `null`; `created_at`: `string`; `full_address`: `string` \| `null`; `id`: `string`; `lat`: `number` \| `null`; `lng`: `number` \| `null`; `organisation_id`: `string` \| `null`; `place_id`: `string`; `postcode`: `string` \| `null`; `route`: `string` \| `null`; `state`: `string` \| `null`; `street_number`: `string` \| `null`; `suburb`: `string` \| `null`; \}; `Insert`: \{ `country?`: `string` \| `null`; `created_at?`: `string`; `full_address?`: `string` \| `null`; `id?`: `string`; `lat?`: `number` \| `null`; `lng?`: `number` \| `null`; `organisation_id?`: `string` \| `null`; `place_id`: `string`; `postcode?`: `string` \| `null`; `route?`: `string` \| `null`; `state?`: `string` \| `null`; `street_number?`: `string` \| `null`; `suburb?`: `string` \| `null`; \}; `Update`: \{ `country?`: `string` \| `null`; `created_at?`: `string`; `full_address?`: `string` \| `null`; `id?`: `string`; `lat?`: `number` \| `null`; `lng?`: `number` \| `null`; `organisation_id?`: `string` \| `null`; `place_id?`: `string`; `postcode?`: `string` \| `null`; `route?`: `string` \| `null`; `state?`: `string` \| `null`; `street_number?`: `string` \| `null`; `suburb?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_address_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_consent`: \{ `Row`: \{ `consent_type_id`: `number`; `created_at`: `string` \| `null`; `date_given`: `string` \| `null`; `date_revoked`: `string` \| `null`; `given`: `boolean`; `id`: `string`; `member_id`: `string`; `notes`: `string` \| `null`; `recorded_by`: `string` \| `null`; `updated_at`: `string` \| `null`; \}; `Insert`: \{ `consent_type_id`: `number`; `created_at?`: `string` \| `null`; `date_given?`: `string` \| `null`; `date_revoked?`: `string` \| `null`; `given`: `boolean`; `id?`: `string`; `member_id`: `string`; `notes?`: `string` \| `null`; `recorded_by?`: `string` \| `null`; `updated_at?`: `string` \| `null`; \}; `Update`: \{ `consent_type_id?`: `number`; `created_at?`: `string` \| `null`; `date_given?`: `string` \| `null`; `date_revoked?`: `string` \| `null`; `given?`: `boolean`; `id?`: `string`; `member_id?`: `string`; `notes?`: `string` \| `null`; `recorded_by?`: `string` \| `null`; `updated_at?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"consents_consent_type_id_fkey"`; `columns`: \[`"consent_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_consent_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"consents_member_id_fkey1"`; `columns`: \[`"member_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_member"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_consent_type`: \{ `Row`: \{ `active`: `boolean` \| `null`; `category`: `string` \| `null`; `created_at`: `string` \| `null`; `description`: `string` \| `null`; `id`: `number`; `key`: `string`; `label`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; \}; `Insert`: \{ `active?`: `boolean` \| `null`; `category?`: `string` \| `null`; `created_at?`: `string` \| `null`; `description?`: `string` \| `null`; `id?`: `number`; `key`: `string`; `label`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; \}; `Update`: \{ `active?`: `boolean` \| `null`; `category?`: `string` \| `null`; `created_at?`: `string` \| `null`; `description?`: `string` \| `null`; `id?`: `number`; `key?`: `string`; `label?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_consent_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_contact`: \{ `Row`: \{ `contact_person_id`: `string` \| `null`; `contact_type_id`: `number` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `string`; `permission_type`: `string` \| `null`; `person_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `user_id`: `string`; \}; `Insert`: \{ `contact_person_id?`: `string` \| `null`; `contact_type_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `string`; `permission_type?`: `string` \| `null`; `person_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id`: `string`; \}; `Update`: \{ `contact_person_id?`: `string` \| `null`; `contact_type_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `string`; `permission_type?`: `string` \| `null`; `person_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"core_contact_contact_person_id_fkey"`; `columns`: \[`"contact_person_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"core_contact_contact_type_id_fkey"`; `columns`: \[`"contact_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_contact_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"core_contact_person_id_fkey"`; `columns`: \[`"person_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_contact_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `name`: `string`; `organisation_id`: `string` \| `null`; `sort_order`: `number` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name`: `string`; `organisation_id?`: `string` \| `null`; `sort_order?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name?`: `string`; `organisation_id?`: `string` \| `null`; `sort_order?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `core_event_app_access`: \{ `Row`: \{ `app_id`: `string`; `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `app_id`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `app_id?`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"event_app_access_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"event_app_access_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"event_app_access_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_events`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `event_billing`: `string` \| `null`; `event_catering_email`: `string` \| `null`; `event_code`: `string` \| `null`; `event_colours`: `Json`; `event_date`: `string` \| `null`; `event_days`: `number` \| `null`; `event_email`: `string` \| `null`; `event_id`: `string`; `event_name`: `string`; `event_news`: `string` \| `null`; `event_participants`: `number` \| `null`; `event_rounddown`: `number` \| `null`; `event_typicalunit`: `number` \| `null`; `event_venue`: `string` \| `null`; `event_youthmultiplier`: `number` \| `null`; `is_visible`: `boolean` \| `null`; `organisation_id`: `string` \| `null`; `public_readable`: `boolean`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_billing?`: `string` \| `null`; `event_catering_email?`: `string` \| `null`; `event_code?`: `string` \| `null`; `event_colours?`: `Json`; `event_date?`: `string` \| `null`; `event_days?`: `number` \| `null`; `event_email?`: `string` \| `null`; `event_id`: `string`; `event_name`: `string`; `event_news?`: `string` \| `null`; `event_participants?`: `number` \| `null`; `event_rounddown?`: `number` \| `null`; `event_typicalunit?`: `number` \| `null`; `event_venue?`: `string` \| `null`; `event_youthmultiplier?`: `number` \| `null`; `is_visible?`: `boolean` \| `null`; `organisation_id?`: `string` \| `null`; `public_readable?`: `boolean`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_billing?`: `string` \| `null`; `event_catering_email?`: `string` \| `null`; `event_code?`: `string` \| `null`; `event_colours?`: `Json`; `event_date?`: `string` \| `null`; `event_days?`: `number` \| `null`; `event_email?`: `string` \| `null`; `event_id?`: `string`; `event_name?`: `string`; `event_news?`: `string` \| `null`; `event_participants?`: `number` \| `null`; `event_rounddown?`: `number` \| `null`; `event_typicalunit?`: `number` \| `null`; `event_venue?`: `string` \| `null`; `event_youthmultiplier?`: `number` \| `null`; `is_visible?`: `boolean` \| `null`; `organisation_id?`: `string` \| `null`; `public_readable?`: `boolean`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"event_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_field_list`: \{ `Row`: \{ `base_form_availability`: `boolean` \| `null`; `field_description`: `string` \| `null`; `field_name`: `string`; `field_type`: `string`; `friendly_field_name`: `string` \| `null`; `pump_merge_availability`: `boolean` \| `null`; `report_availability`: `boolean` \| `null`; `table_name`: `string`; \}; `Insert`: \{ `base_form_availability?`: `boolean` \| `null`; `field_description?`: `string` \| `null`; `field_name`: `string`; `field_type`: `string`; `friendly_field_name?`: `string` \| `null`; `pump_merge_availability?`: `boolean` \| `null`; `report_availability?`: `boolean` \| `null`; `table_name`: `string`; \}; `Update`: \{ `base_form_availability?`: `boolean` \| `null`; `field_description?`: `string` \| `null`; `field_name?`: `string`; `field_type?`: `string`; `friendly_field_name?`: `string` \| `null`; `pump_merge_availability?`: `boolean` \| `null`; `report_availability?`: `boolean` \| `null`; `table_name?`: `string`; \}; `Relationships`: \[\]; \}; `core_file_references`: \{ `Row`: \{ `app_id`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `file_metadata`: `Json`; `file_path`: `string`; `id`: `string`; `is_public`: `boolean` \| `null`; `organisation_id`: `string` \| `null`; `record_id`: `string`; `table_name`: `string`; `updated_at`: `string` \| `null`; \}; `Insert`: \{ `app_id`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `file_metadata?`: `Json`; `file_path`: `string`; `id?`: `string`; `is_public?`: `boolean` \| `null`; `organisation_id?`: `string` \| `null`; `record_id`: `string`; `table_name`: `string`; `updated_at?`: `string` \| `null`; \}; `Update`: \{ `app_id?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `file_metadata?`: `Json`; `file_path?`: `string`; `id?`: `string`; `is_public?`: `boolean` \| `null`; `organisation_id?`: `string` \| `null`; `record_id?`: `string`; `table_name?`: `string`; `updated_at?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"file_references_app_id_fkey"`; `columns`: \[`"app_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_apps"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"file_references_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_form_context_types`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `display_name`: `string`; `id`: `string`; `is_active`: `boolean` \| `null`; `is_singleton`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_singleton?`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name?`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_singleton?`: `boolean` \| `null`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"form_contexts_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_form_field_config`: \{ `Row`: \{ `admin_notes`: `string` \| `null`; `category`: `string` \| `null`; `column_name`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `display_order`: `number` \| `null`; `id`: `string`; `is_enabled`: `boolean` \| `null`; `organisation_id`: `string`; `sensitivity_level`: `string` \| `null`; `table_name`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `admin_notes?`: `string` \| `null`; `category?`: `string` \| `null`; `column_name`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `display_order?`: `number` \| `null`; `id?`: `string`; `is_enabled?`: `boolean` \| `null`; `organisation_id`: `string`; `sensitivity_level?`: `string` \| `null`; `table_name`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `admin_notes?`: `string` \| `null`; `category?`: `string` \| `null`; `column_name?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `display_order?`: `number` \| `null`; `id?`: `string`; `is_enabled?`: `boolean` \| `null`; `organisation_id?`: `string`; `sensitivity_level?`: `string` \| `null`; `table_name?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"form_field_config_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_form_fields`: \{ `Row`: \{ `column_name`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `display_options`: `Json`; `field_description`: `string` \| `null`; `field_label`: `string` \| `null`; `form_id`: `string`; `id`: `string`; `is_active`: `boolean` \| `null`; `is_required`: `boolean` \| `null`; `organisation_id`: `string`; `sort_order`: `number`; `table_name`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `validation_rules`: `Json`; \}; `Insert`: \{ `column_name`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `display_options?`: `Json`; `field_description?`: `string` \| `null`; `field_label?`: `string` \| `null`; `form_id`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_required?`: `boolean` \| `null`; `organisation_id`: `string`; `sort_order`: `number`; `table_name`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `validation_rules?`: `Json`; \}; `Update`: \{ `column_name?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `display_options?`: `Json`; `field_description?`: `string` \| `null`; `field_label?`: `string` \| `null`; `form_id?`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_required?`: `boolean` \| `null`; `organisation_id?`: `string`; `sort_order?`: `number`; `table_name?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `validation_rules?`: `Json`; \}; `Relationships`: \[\{ `foreignKeyName`: `"form_fields_form_id_fkey"`; `columns`: \[`"form_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_forms"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"form_fields_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_form_response_values`: \{ `Row`: \{ `column_name`: `string`; `created_at`: `string` \| `null`; `form_field_id`: `string`; `id`: `string`; `organisation_id`: `string`; `response_id`: `string`; `table_name`: `string`; `updated_at`: `string` \| `null`; `value_json`: `Json`; `value_text`: `string` \| `null`; \}; `Insert`: \{ `column_name`: `string`; `created_at?`: `string` \| `null`; `form_field_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `response_id`: `string`; `table_name`: `string`; `updated_at?`: `string` \| `null`; `value_json?`: `Json`; `value_text?`: `string` \| `null`; \}; `Update`: \{ `column_name?`: `string`; `created_at?`: `string` \| `null`; `form_field_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `response_id?`: `string`; `table_name?`: `string`; `updated_at?`: `string` \| `null`; `value_json?`: `Json`; `value_text?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_form_response_values_organisation_id"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"form_response_values_form_field_id_fkey"`; `columns`: \[`"form_field_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_form_fields"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"form_response_values_response_id_fkey"`; `columns`: \[`"response_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_form_responses"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_form_responses`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `form_id`: `string`; `id`: `string`; `metadata`: `Json`; `organisation_id`: `string`; `respondent_id`: `string` \| `null`; `status`: `string` \| `null`; `submitted_at`: `string` \| `null`; `target_record_id`: `string` \| `null`; `target_table`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `form_id`: `string`; `id?`: `string`; `metadata?`: `Json`; `organisation_id`: `string`; `respondent_id?`: `string` \| `null`; `status?`: `string` \| `null`; `submitted_at?`: `string` \| `null`; `target_record_id?`: `string` \| `null`; `target_table?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `form_id?`: `string`; `id?`: `string`; `metadata?`: `Json`; `organisation_id?`: `string`; `respondent_id?`: `string` \| `null`; `status?`: `string` \| `null`; `submitted_at?`: `string` \| `null`; `target_record_id?`: `string` \| `null`; `target_table?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_form_responses_organisation_id"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"form_responses_form_id_fkey"`; `columns`: \[`"form_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_forms"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_forms`: \{ `Row`: \{ `closes_at`: `string` \| `null`; `confirmation_message`: `string` \| `null`; `context_id`: `string` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `event_id`: `string` \| `null`; `id`: `string`; `is_active`: `boolean` \| `null`; `is_required`: `boolean`; `max_submissions`: `number` \| `null`; `name`: `string`; `opens_at`: `string` \| `null`; `organisation_id`: `string`; `require_additional_contacts_confirmation`: `boolean` \| `null`; `require_medical_profile_confirmation`: `boolean` \| `null`; `require_member_profile_confirmation`: `boolean` \| `null`; `slug`: `string`; `sort_order`: `number` \| `null`; `status`: `"draft"` \| `"published"` \| `"closed"`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `closes_at?`: `string` \| `null`; `confirmation_message?`: `string` \| `null`; `context_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_id?`: `string` \| `null`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_required?`: `boolean`; `max_submissions?`: `number` \| `null`; `name`: `string`; `opens_at?`: `string` \| `null`; `organisation_id`: `string`; `require_additional_contacts_confirmation?`: `boolean` \| `null`; `require_medical_profile_confirmation?`: `boolean` \| `null`; `require_member_profile_confirmation?`: `boolean` \| `null`; `slug`: `string`; `sort_order?`: `number` \| `null`; `status?`: `"draft"` \| `"published"` \| `"closed"`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `closes_at?`: `string` \| `null`; `confirmation_message?`: `string` \| `null`; `context_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_id?`: `string` \| `null`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `is_required?`: `boolean`; `max_submissions?`: `number` \| `null`; `name?`: `string`; `opens_at?`: `string` \| `null`; `organisation_id?`: `string`; `require_additional_contacts_confirmation?`: `boolean` \| `null`; `require_medical_profile_confirmation?`: `boolean` \| `null`; `require_member_profile_confirmation?`: `boolean` \| `null`; `slug?`: `string`; `sort_order?`: `number` \| `null`; `status?`: `"draft"` \| `"published"` \| `"closed"`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_forms_organisation_id"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"forms_context_type_id_fkey"`; `columns`: \[`"context_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_form_context_types"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_gender_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_gender_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_identification`: \{ `Row`: \{ `created_at`: `string` \| `null`; `document_number`: `string` \| `null`; `expiry_date`: `string` \| `null`; `id`: `string`; `identification_type_id`: `number` \| `null`; `issue_city`: `string` \| `null`; `issue_country`: `string` \| `null`; `issue_date`: `string` \| `null`; `issue_state`: `string` \| `null`; `member_id`: `string`; `updated_at`: `string` \| `null`; `verified`: `boolean` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `document_number?`: `string` \| `null`; `expiry_date?`: `string` \| `null`; `id?`: `string`; `identification_type_id?`: `number` \| `null`; `issue_city?`: `string` \| `null`; `issue_country?`: `string` \| `null`; `issue_date?`: `string` \| `null`; `issue_state?`: `string` \| `null`; `member_id`: `string`; `updated_at?`: `string` \| `null`; `verified?`: `boolean` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `document_number?`: `string` \| `null`; `expiry_date?`: `string` \| `null`; `id?`: `string`; `identification_type_id?`: `number` \| `null`; `issue_city?`: `string` \| `null`; `issue_country?`: `string` \| `null`; `issue_date?`: `string` \| `null`; `issue_state?`: `string` \| `null`; `member_id?`: `string`; `updated_at?`: `string` \| `null`; `verified?`: `boolean` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_pace_identification_type_id"`; `columns`: \[`"identification_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_identification_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_identification_member_id_fkey"`; `columns`: \[`"member_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_member"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_identification_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `id`: `number`; `is_active`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `sort_order`: `number` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `id?`: `undefined`; `is_active?`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `sort_order?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `id?`: `undefined`; `is_active?`: `boolean` \| `null`; `name?`: `string`; `organisation_id?`: `string`; `sort_order?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_identification_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_member`: \{ `Row`: \{ `address_id`: `string` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `date_of_birth`: `string` \| `null`; `deleted_at`: `string` \| `null`; `gender_id`: `number` \| `null`; `id`: `string`; `membership_number`: `string` \| `null`; `membership_status`: `"Provisional"` \| `"Cancelled"` \| `"Active"` \| `"Suspended"` \| `"Resigned"` \| `null`; `membership_type_id`: `number` \| `null`; `person_id`: `string` \| `null`; `postal_address`: `string` \| `null`; `pronoun_id`: `number` \| `null`; `residential_address`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `address_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `date_of_birth?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `gender_id?`: `number` \| `null`; `id?`: `string`; `membership_number?`: `string` \| `null`; `membership_status?`: `"Provisional"` \| `"Cancelled"` \| `"Active"` \| `"Suspended"` \| `"Resigned"` \| `null`; `membership_type_id?`: `number` \| `null`; `person_id?`: `string` \| `null`; `postal_address?`: `string` \| `null`; `pronoun_id?`: `number` \| `null`; `residential_address?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `address_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `date_of_birth?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `gender_id?`: `number` \| `null`; `id?`: `string`; `membership_number?`: `string` \| `null`; `membership_status?`: `"Provisional"` \| `"Cancelled"` \| `"Active"` \| `"Suspended"` \| `"Resigned"` \| `null`; `membership_type_id?`: `number` \| `null`; `person_id?`: `string` \| `null`; `postal_address?`: `string` \| `null`; `pronoun_id?`: `number` \| `null`; `residential_address?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_member_address_id_fkey"`; `columns`: \[`"address_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_address"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_member_person_id_fkey"`; `columns`: \[`"person_id"`\]; `isOneToOne`: `true`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_members_gender_id_fkey"`; `columns`: \[`"gender_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_gender_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_members_membership_type_id_fkey"`; `columns`: \[`"membership_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_membership_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_members_pronoun_id_fkey"`; `columns`: \[`"pronoun_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_pronoun_type"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_member_role`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `deleted_at`: `string` \| `null`; `end_date`: `string` \| `null`; `id`: `string`; `member_id`: `string` \| `null`; `organisation_id`: `string`; `role_id`: `number` \| `null`; `start_date`: `string`; `unit_id`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `end_date?`: `string` \| `null`; `id?`: `string`; `member_id?`: `string` \| `null`; `organisation_id`: `string`; `role_id?`: `number` \| `null`; `start_date`: `string`; `unit_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `end_date?`: `string` \| `null`; `id?`: `string`; `member_id?`: `string` \| `null`; `organisation_id?`: `string`; `role_id?`: `number` \| `null`; `start_date?`: `string`; `unit_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_member_role_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_member_roles_member_id_fkey"`; `columns`: \[`"member_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_member"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_member_roles_role_id_fkey"`; `columns`: \[`"role_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_role_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"team_member_roles_unit_id_fkey"`; `columns`: \[`"unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"team_unit"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_membership_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `is_active`: `boolean` \| `null`; `max_age`: `number` \| `null`; `min_age`: `number` \| `null`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `max_age?`: `number` \| `null`; `min_age?`: `number` \| `null`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `max_age?`: `number` \| `null`; `min_age?`: `number` \| `null`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_membership_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_merchandise`: \{ `Row`: \{ `category`: `string` \| `null`; `color`: `string` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `event_id`: `string` \| `null`; `id`: `string`; `name`: `string` \| `null`; `organisation_id`: `string`; `person_id`: `string` \| `null`; `price`: `number` \| `null`; `size`: `string` \| `null`; `sku`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `category?`: `string` \| `null`; `color?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_id?`: `string` \| `null`; `id?`: `string`; `name?`: `string` \| `null`; `organisation_id`: `string`; `person_id?`: `string` \| `null`; `price?`: `number` \| `null`; `size?`: `string` \| `null`; `sku?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `category?`: `string` \| `null`; `color?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `event_id?`: `string` \| `null`; `id?`: `string`; `name?`: `string` \| `null`; `organisation_id?`: `string`; `person_id?`: `string` \| `null`; `price?`: `number` \| `null`; `size?`: `string` \| `null`; `sku?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_merchandise_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"pace_merchandise_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"pace_merchandise_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"pace_merchandise_person_id_fkey"`; `columns`: \[`"person_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_organisation_app_access`: \{ `Row`: \{ `app_id`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `string`; `is_enabled`: `boolean` \| `null`; `organisation_id`: `string`; `settings`: `Json`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `app_id`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `string`; `is_enabled?`: `boolean` \| `null`; `organisation_id`: `string`; `settings?`: `Json`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `app_id?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `string`; `is_enabled?`: `boolean` \| `null`; `organisation_id?`: `string`; `settings?`: `Json`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"organisation_app_access_app_id_fkey"`; `columns`: \[`"app_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_apps"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"organisation_app_access_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_organisation_audit_log`: \{ `Row`: \{ `action`: `string`; `created_at`: `string`; `entity_id`: `string` \| `null`; `entity_type`: `string`; `id`: `string`; `ip_address`: `unknown`; `new_values`: `Json`; `old_values`: `Json`; `organisation_id`: `string`; `user_agent`: `string` \| `null`; `user_id`: `string` \| `null`; \}; `Insert`: \{ `action`: `string`; `created_at?`: `string`; `entity_id?`: `string` \| `null`; `entity_type`: `string`; `id?`: `string`; `ip_address?`: `unknown`; `new_values?`: `Json`; `old_values?`: `Json`; `organisation_id`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Update`: \{ `action?`: `string`; `created_at?`: `string`; `entity_id?`: `string` \| `null`; `entity_type?`: `string`; `id?`: `string`; `ip_address?`: `unknown`; `new_values?`: `Json`; `old_values?`: `Json`; `organisation_id?`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"organisation_audit_log_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_organisations`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `display_name`: `string`; `id`: `string`; `is_active`: `boolean` \| `null`; `name`: `string`; `parent_id`: `string` \| `null`; `settings`: `Json`; `subscription_tier`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `name`: `string`; `parent_id?`: `string` \| `null`; `settings?`: `Json`; `subscription_tier?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name?`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `name?`: `string`; `parent_id?`: `string` \| `null`; `settings?`: `Json`; `subscription_tier?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"organisations_parent_id_fkey"`; `columns`: \[`"parent_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_person`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `deleted_at`: `string` \| `null`; `email`: `string` \| `null`; `first_name`: `string`; `id`: `string`; `last_name`: `string`; `middle_name`: `string` \| `null`; `preferred_name`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `user_id`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `email?`: `string` \| `null`; `first_name`: `string`; `id?`: `string`; `last_name`: `string`; `middle_name?`: `string` \| `null`; `preferred_name?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `email?`: `string` \| `null`; `first_name?`: `string`; `id?`: `string`; `last_name?`: `string`; `middle_name?`: `string` \| `null`; `preferred_name?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `core_phone`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `deleted_at`: `string` \| `null`; `id`: `string`; `organisation_id`: `string` \| `null`; `person_id`: `string` \| `null`; `phone_number`: `string`; `phone_type_id`: `number` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string` \| `null`; `person_id?`: `string` \| `null`; `phone_number`: `string`; `phone_type_id?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string` \| `null`; `person_id?`: `string` \| `null`; `phone_number?`: `string`; `phone_type_id?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_pace_phone_organisation_id"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"team_phones_contact_id_fkey"`; `columns`: \[`"person_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_person"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"team_phones_phone_type_id_fkey"`; `columns`: \[`"phone_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_phone_type"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_phone_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_phone_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_pronoun_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_pronoun_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_qualification`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `credential_id`: `string` \| `null`; `expiry_date`: `string` \| `null`; `id`: `string`; `institution`: `string` \| `null`; `issued_date`: `string` \| `null`; `member_id`: `string`; `title`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `verified`: `boolean` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `credential_id?`: `string` \| `null`; `expiry_date?`: `string` \| `null`; `id?`: `string`; `institution?`: `string` \| `null`; `issued_date?`: `string` \| `null`; `member_id`: `string`; `title`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `verified?`: `boolean` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `credential_id?`: `string` \| `null`; `expiry_date?`: `string` \| `null`; `id?`: `string`; `institution?`: `string` \| `null`; `issued_date?`: `string` \| `null`; `member_id?`: `string`; `title?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `verified?`: `boolean` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_qualification_member_id_fkey"`; `columns`: \[`"member_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_member"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_role_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `name?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pace_role_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_access_log`: \{ `Row`: \{ `access_type`: `string`; `accessed_at`: `string`; `accessed_by`: `string`; `id`: `number`; `ip_address`: `unknown`; `justification`: `string` \| `null`; `organisation_id`: `string`; `profile_id`: `number` \| `null`; `record_id`: `number` \| `null`; `table_name`: `string`; `user_agent`: `string` \| `null`; \}; `Insert`: \{ `access_type`: `string`; `accessed_at?`: `string`; `accessed_by`: `string`; `id?`: `number`; `ip_address?`: `unknown`; `justification?`: `string` \| `null`; `organisation_id`: `string`; `profile_id?`: `number` \| `null`; `record_id?`: `number` \| `null`; `table_name`: `string`; `user_agent?`: `string` \| `null`; \}; `Update`: \{ `access_type?`: `string`; `accessed_at?`: `string`; `accessed_by?`: `string`; `id?`: `number`; `ip_address?`: `unknown`; `justification?`: `string` \| `null`; `organisation_id?`: `string`; `profile_id?`: `number` \| `null`; `record_id?`: `number` \| `null`; `table_name?`: `string`; `user_agent?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_medi_access_log_organisation_id"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"medi_access_log_profile_id_fkey"`; `columns`: \[`"profile_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_profile"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_action_plan`: \{ `Row`: \{ `condition_id`: `number` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `date_received`: `string`; `description`: `string`; `expiry_date`: `string` \| `null`; `file_reference_id`: `string` \| `null`; `id`: `number`; `is_current`: `boolean` \| `null`; `reviewed_by`: `string` \| `null`; `reviewed_date`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `condition_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `date_received`: `string`; `description`: `string`; `expiry_date?`: `string` \| `null`; `file_reference_id?`: `string` \| `null`; `id?`: `number`; `is_current?`: `boolean` \| `null`; `reviewed_by?`: `string` \| `null`; `reviewed_date?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `condition_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `date_received?`: `string`; `description?`: `string`; `expiry_date?`: `string` \| `null`; `file_reference_id?`: `string` \| `null`; `id?`: `number`; `is_current?`: `boolean` \| `null`; `reviewed_by?`: `string` \| `null`; `reviewed_date?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_action_plan_condition_id_fkey"`; `columns`: \[`"condition_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_condition"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"medi_action_plan_file_reference_id_fkey"`; `columns`: \[`"file_reference_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_file_references"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_condition`: \{ `Row`: \{ `aid`: `string` \| `null`; `alert_description`: `string` \| `null`; `condition_type_id`: `number` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `custom_name`: `string` \| `null`; `data_classification`: `string` \| `null`; `diagnosed_by`: `string` \| `null`; `diagnosed_date`: `string` \| `null`; `emergency_protocol`: `string` \| `null`; `id`: `number`; `is_active`: `boolean` \| `null`; `last_episode_date`: `string` \| `null`; `management_plan`: `string` \| `null`; `medical_alert`: `boolean` \| `null`; `medication`: `string` \| `null`; `name`: `string` \| `null`; `notes`: `string` \| `null`; `profile_id`: `number` \| `null`; `reaction`: `string` \| `null`; `severity`: `"Low"` \| `"Medium"` \| `"High"` \| `null`; `treatment`: `string` \| `null`; `triggers`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `aid?`: `string` \| `null`; `alert_description?`: `string` \| `null`; `condition_type_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `custom_name?`: `string` \| `null`; `data_classification?`: `string` \| `null`; `diagnosed_by?`: `string` \| `null`; `diagnosed_date?`: `string` \| `null`; `emergency_protocol?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `last_episode_date?`: `string` \| `null`; `management_plan?`: `string` \| `null`; `medical_alert?`: `boolean` \| `null`; `medication?`: `string` \| `null`; `name?`: `string` \| `null`; `notes?`: `string` \| `null`; `profile_id?`: `number` \| `null`; `reaction?`: `string` \| `null`; `severity?`: `"Low"` \| `"Medium"` \| `"High"` \| `null`; `treatment?`: `string` \| `null`; `triggers?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `aid?`: `string` \| `null`; `alert_description?`: `string` \| `null`; `condition_type_id?`: `number` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `custom_name?`: `string` \| `null`; `data_classification?`: `string` \| `null`; `diagnosed_by?`: `string` \| `null`; `diagnosed_date?`: `string` \| `null`; `emergency_protocol?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `last_episode_date?`: `string` \| `null`; `management_plan?`: `string` \| `null`; `medical_alert?`: `boolean` \| `null`; `medication?`: `string` \| `null`; `name?`: `string` \| `null`; `notes?`: `string` \| `null`; `profile_id?`: `number` \| `null`; `reaction?`: `string` \| `null`; `severity?`: `"Low"` \| `"Medium"` \| `"High"` \| `null`; `treatment?`: `string` \| `null`; `triggers?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_conditions_condition_type_id_fkey"`; `columns`: \[`"condition_type_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_condition_type"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"medi_conditions_profile_id_fkey"`; `columns`: \[`"profile_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_profile"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_condition_type`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `id`: `number`; `is_active`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `parent_id`: `number` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `name`: `string`; `organisation_id`: `string`; `parent_id?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `id?`: `number`; `is_active?`: `boolean` \| `null`; `name?`: `string`; `organisation_id?`: `string`; `parent_id?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_condition_type_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"medi_condition_types_parent_id_fkey"`; `columns`: \[`"parent_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_condition_type"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_diet`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `diettype_id`: `string` \| `null`; `id`: `number`; `notes`: `string` \| `null`; `other_description`: `string` \| `null`; `profile_id`: `number` \| `null`; `severity`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diettype_id?`: `string` \| `null`; `id?`: `number`; `notes?`: `string` \| `null`; `other_description?`: `string` \| `null`; `profile_id?`: `number` \| `null`; `severity?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `diettype_id?`: `string` \| `null`; `id?`: `number`; `notes?`: `string` \| `null`; `other_description?`: `string` \| `null`; `profile_id?`: `number` \| `null`; `severity?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_diet_diettype_id_fkey"`; `columns`: \[`"diettype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_diettype"`; `referencedColumns`: \[`"diettype_id"`\]; \}, \{ `foreignKeyName`: `"medi_diet_profile_id_fkey"`; `columns`: \[`"profile_id"`\]; `isOneToOne`: `true`; `referencedRelation`: `"medi_profile"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_profile`: \{ `Row`: \{ `access_count`: `number` \| `null`; `carer_name`: `string` \| `null`; `consent_date`: `string` \| `null`; `consent_given`: `boolean` \| `null`; `consent_withdrawn_date`: `string` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `data_classification`: `string` \| `null`; `data_retention_until`: `string` \| `null`; `dietary_comments`: `string` \| `null`; `has_carer`: `boolean` \| `null`; `has_dietary_requirements`: `boolean` \| `null`; `health_care_card_expiry`: `string` \| `null`; `health_care_card_number`: `string` \| `null`; `health_fund_name`: `string` \| `null`; `health_fund_number`: `string` \| `null`; `health_satisfactory`: `boolean` \| `null`; `id`: `number`; `is_fully_immunised`: `boolean` \| `null`; `last_accessed_at`: `string` \| `null`; `last_accessed_by`: `string` \| `null`; `last_tetanus_date`: `string` \| `null`; `medicare_expiry`: `string` \| `null`; `medicare_number`: `string` \| `null`; `member_id`: `string` \| `null`; `menu_selection`: `string` \| `null`; `requires_support`: `boolean` \| `null`; `support_details`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `access_count?`: `number` \| `null`; `carer_name?`: `string` \| `null`; `consent_date?`: `string` \| `null`; `consent_given?`: `boolean` \| `null`; `consent_withdrawn_date?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `data_classification?`: `string` \| `null`; `data_retention_until?`: `string` \| `null`; `dietary_comments?`: `string` \| `null`; `has_carer?`: `boolean` \| `null`; `has_dietary_requirements?`: `boolean` \| `null`; `health_care_card_expiry?`: `string` \| `null`; `health_care_card_number?`: `string` \| `null`; `health_fund_name?`: `string` \| `null`; `health_fund_number?`: `string` \| `null`; `health_satisfactory?`: `boolean` \| `null`; `id?`: `number`; `is_fully_immunised?`: `boolean` \| `null`; `last_accessed_at?`: `string` \| `null`; `last_accessed_by?`: `string` \| `null`; `last_tetanus_date?`: `string` \| `null`; `medicare_expiry?`: `string` \| `null`; `medicare_number?`: `string` \| `null`; `member_id?`: `string` \| `null`; `menu_selection?`: `string` \| `null`; `requires_support?`: `boolean` \| `null`; `support_details?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `access_count?`: `number` \| `null`; `carer_name?`: `string` \| `null`; `consent_date?`: `string` \| `null`; `consent_given?`: `boolean` \| `null`; `consent_withdrawn_date?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `data_classification?`: `string` \| `null`; `data_retention_until?`: `string` \| `null`; `dietary_comments?`: `string` \| `null`; `has_carer?`: `boolean` \| `null`; `has_dietary_requirements?`: `boolean` \| `null`; `health_care_card_expiry?`: `string` \| `null`; `health_care_card_number?`: `string` \| `null`; `health_fund_name?`: `string` \| `null`; `health_fund_number?`: `string` \| `null`; `health_satisfactory?`: `boolean` \| `null`; `id?`: `number`; `is_fully_immunised?`: `boolean` \| `null`; `last_accessed_at?`: `string` \| `null`; `last_accessed_by?`: `string` \| `null`; `last_tetanus_date?`: `string` \| `null`; `medicare_expiry?`: `string` \| `null`; `medicare_number?`: `string` \| `null`; `member_id?`: `string` \| `null`; `menu_selection?`: `string` \| `null`; `requires_support?`: `boolean` \| `null`; `support_details?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_profile_member_id_fkey"`; `columns`: \[`"member_id"`\]; `isOneToOne`: `true`; `referencedRelation`: `"core_member"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `medi_profile_versions`: \{ `Row`: \{ `change_reason`: `string` \| `null`; `created_at`: `string`; `created_by`: `string`; `data_snapshot`: `Json`; `id`: `number`; `profile_id`: `number` \| `null`; `version_number`: `number`; \}; `Insert`: \{ `change_reason?`: `string` \| `null`; `created_at?`: `string`; `created_by`: `string`; `data_snapshot`: `Json`; `id?`: `number`; `profile_id?`: `number` \| `null`; `version_number`: `number`; \}; `Update`: \{ `change_reason?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string`; `data_snapshot?`: `Json`; `id?`: `number`; `profile_id?`: `number` \| `null`; `version_number?`: `number`; \}; `Relationships`: \[\{ `foreignKeyName`: `"medi_profile_versions_profile_id_fkey"`; `columns`: \[`"profile_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"medi_profile"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_action_log`: \{ `Row`: \{ `action`: `string`; `amount_minor`: `number` \| `null`; `created_at`: `string`; `gateway_ref`: `string` \| `null`; `id`: `string`; `invoice_id`: `string`; `meta`: `Json`; `reason`: `string` \| `null`; \}; `Insert`: \{ `action`: `string`; `amount_minor?`: `number` \| `null`; `created_at?`: `string`; `gateway_ref?`: `string` \| `null`; `id?`: `string`; `invoice_id`: `string`; `meta?`: `Json`; `reason?`: `string` \| `null`; \}; `Update`: \{ `action?`: `string`; `amount_minor?`: `number` \| `null`; `created_at?`: `string`; `gateway_ref?`: `string` \| `null`; `id?`: `string`; `invoice_id?`: `string`; `meta?`: `Json`; `reason?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"mint_action_log_invoice_id_fkey"`; `columns`: \[`"invoice_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_invoice"`; `referencedColumns`: \[`"invoice_id"`\]; \}\]; \}; `mint_audit_log`: \{ `Row`: \{ `created_at`: `string`; `details`: `Json`; `event_type`: `string`; `id`: `string`; `ip_address`: `string` \| `null`; `organisation_id`: `string`; `record_id`: `string`; `table_name`: `string`; `user_agent`: `string` \| `null`; `user_id`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `details?`: `Json`; `event_type`: `string`; `id?`: `string`; `ip_address?`: `string` \| `null`; `organisation_id?`: `string`; `record_id`: `string`; `table_name`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `details?`: `Json`; `event_type?`: `string`; `id?`: `string`; `ip_address?`: `string` \| `null`; `organisation_id?`: `string`; `record_id?`: `string`; `table_name?`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `mint_budget_variables`: \{ `Row`: \{ `code`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `label`: `string`; `unit`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `value`: `number`; \}; `Insert`: \{ `code`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `label`: `string`; `unit?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `value`: `number`; \}; `Update`: \{ `code?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `label?`: `string`; `unit?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `value?`: `number`; \}; `Relationships`: \[\{ `foreignKeyName`: `"mint_budget_variables_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"mint_budget_variables_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}\]; \}; `mint_budgets`: \{ `Row`: \{ `calculated_total`: `number` \| `null`; `code`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `deleted_at`: `string` \| `null`; `event_id`: `string`; `fixed_amount`: `number` \| `null`; `id`: `string`; `label`: `string`; `notes`: `string` \| `null`; `parent_id`: `string` \| `null`; `responsible_user_id`: `string` \| `null`; `type`: `string`; `unit_amount`: `number` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `variable_id`: `string` \| `null`; \}; `Insert`: \{ `calculated_total?`: `number` \| `null`; `code`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `event_id`: `string`; `fixed_amount?`: `number` \| `null`; `id?`: `string`; `label`: `string`; `notes?`: `string` \| `null`; `parent_id?`: `string` \| `null`; `responsible_user_id?`: `string` \| `null`; `type`: `string`; `unit_amount?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `variable_id?`: `string` \| `null`; \}; `Update`: \{ `calculated_total?`: `number` \| `null`; `code?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `event_id?`: `string`; `fixed_amount?`: `number` \| `null`; `id?`: `string`; `label?`: `string`; `notes?`: `string` \| `null`; `parent_id?`: `string` \| `null`; `responsible_user_id?`: `string` \| `null`; `type?`: `string`; `unit_amount?`: `number` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `variable_id?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"mint_budgets_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"mint_budgets_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"mint_budgets_parent_id_fkey"`; `columns`: \[`"parent_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_budgets"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"mint_budgets_variable_id_fkey"`; `columns`: \[`"variable_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_budget_variables"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_credit_balance`: \{ `Row`: \{ `amount`: `number`; `created_at`: `string`; `created_by`: `string` \| `null`; `credit_id`: `string`; `expires_at`: `string` \| `null`; `invoice_id`: `string` \| `null`; `is_used`: `boolean`; `member_id`: `string`; `organisation_id`: `string`; `reason`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `used_at`: `string` \| `null`; \}; `Insert`: \{ `amount`: `number`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `credit_id?`: `string`; `expires_at?`: `string` \| `null`; `invoice_id?`: `string` \| `null`; `is_used?`: `boolean`; `member_id`: `string`; `organisation_id`: `string`; `reason`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `used_at?`: `string` \| `null`; \}; `Update`: \{ `amount?`: `number`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `credit_id?`: `string`; `expires_at?`: `string` \| `null`; `invoice_id?`: `string` \| `null`; `is_used?`: `boolean`; `member_id?`: `string`; `organisation_id?`: `string`; `reason?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `used_at?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"credit_balance_invoice_id_fkey"`; `columns`: \[`"invoice_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_invoice"`; `referencedColumns`: \[`"invoice_id"`\]; \}, \{ `foreignKeyName`: `"credit_balance_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_dd_mandate_log`: \{ `Row`: \{ `created_at`: `string`; `event`: `string`; `id`: `string`; `payload`: `Json`; `payment_method_id`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `event`: `string`; `id?`: `string`; `payload?`: `Json`; `payment_method_id?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `event?`: `string`; `id?`: `string`; `payload?`: `Json`; `payment_method_id?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"mint_dd_mandate_log_payment_method_id_fkey"`; `columns`: \[`"payment_method_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_payment_method"`; `referencedColumns`: \[`"payment_method_id"`\]; \}\]; \}; `mint_idempotency`: \{ `Row`: \{ `first_request_at`: `string`; `id`: `string`; `idempotency_key`: `string`; `last_response`: `Json`; `scope`: `string`; `status`: `string`; \}; `Insert`: \{ `first_request_at?`: `string`; `id?`: `string`; `idempotency_key`: `string`; `last_response?`: `Json`; `scope?`: `string`; `status`: `string`; \}; `Update`: \{ `first_request_at?`: `string`; `id?`: `string`; `idempotency_key?`: `string`; `last_response?`: `Json`; `scope?`: `string`; `status?`: `string`; \}; `Relationships`: \[\]; \}; `mint_invoice`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `greenpay_transaction_id`: `string` \| `null`; `invoice_id`: `string`; `issued_at`: `string`; `member_id`: `string`; `organisation_id`: `string`; `paid_at`: `string` \| `null`; `source_app`: `string`; `source_origin`: `string` \| `null`; `status`: `string`; `total_amount`: `number`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `greenpay_transaction_id?`: `string` \| `null`; `invoice_id?`: `string`; `issued_at?`: `string`; `member_id`: `string`; `organisation_id`: `string`; `paid_at?`: `string` \| `null`; `source_app`: `string`; `source_origin?`: `string` \| `null`; `status`: `string`; `total_amount`: `number`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `greenpay_transaction_id?`: `string` \| `null`; `invoice_id?`: `string`; `issued_at?`: `string`; `member_id?`: `string`; `organisation_id?`: `string`; `paid_at?`: `string` \| `null`; `source_app?`: `string`; `source_origin?`: `string` \| `null`; `status?`: `string`; `total_amount?`: `number`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"invoice_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_line_item`: \{ `Row`: \{ `amount`: `number`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `description`: `string`; `fulfilled_at`: `string` \| `null`; `fulfillment_status`: `string` \| `null`; `invoice_id`: `string`; `item_type`: `string`; `line_item_id`: `string`; `org_id`: `string` \| `null`; `organisation_id`: `string`; `proration_info`: `Json`; `source_app`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `amount`: `number`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description`: `string`; `fulfilled_at?`: `string` \| `null`; `fulfillment_status?`: `string` \| `null`; `invoice_id`: `string`; `item_type`: `string`; `line_item_id?`: `string`; `org_id?`: `string` \| `null`; `organisation_id`: `string`; `proration_info?`: `Json`; `source_app`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `amount?`: `number`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `description?`: `string`; `fulfilled_at?`: `string` \| `null`; `fulfillment_status?`: `string` \| `null`; `invoice_id?`: `string`; `item_type?`: `string`; `line_item_id?`: `string`; `org_id?`: `string` \| `null`; `organisation_id?`: `string`; `proration_info?`: `Json`; `source_app?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"line_item_invoice_id_fkey"`; `columns`: \[`"invoice_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_invoice"`; `referencedColumns`: \[`"invoice_id"`\]; \}, \{ `foreignKeyName`: `"line_item_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_mit_consent_log`: \{ `Row`: \{ `consent_text`: `string` \| `null`; `created_at`: `string`; `id`: `string`; `invoice_id`: `string` \| `null`; `ip`: `unknown`; `member_id`: `string`; `payment_method_id`: `string` \| `null`; `terms_version`: `string` \| `null`; `ua`: `string` \| `null`; \}; `Insert`: \{ `consent_text?`: `string` \| `null`; `created_at?`: `string`; `id?`: `string`; `invoice_id?`: `string` \| `null`; `ip?`: `unknown`; `member_id`: `string`; `payment_method_id?`: `string` \| `null`; `terms_version?`: `string` \| `null`; `ua?`: `string` \| `null`; \}; `Update`: \{ `consent_text?`: `string` \| `null`; `created_at?`: `string`; `id?`: `string`; `invoice_id?`: `string` \| `null`; `ip?`: `unknown`; `member_id?`: `string`; `payment_method_id?`: `string` \| `null`; `terms_version?`: `string` \| `null`; `ua?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"mint_mit_consent_log_payment_method_id_fkey"`; `columns`: \[`"payment_method_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"mint_payment_method"`; `referencedColumns`: \[`"payment_method_id"`\]; \}\]; \}; `mint_payment_method`: \{ `Row`: \{ `bank_account_bsb`: `string` \| `null`; `bank_account_last4`: `string` \| `null`; `bank_account_name`: `string` \| `null`; `brand`: `string` \| `null`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `dd_mandate_id`: `string` \| `null`; `dd_mandate_status`: `"active"` \| `"pending"` \| `"revoked"` \| `"failed"` \| `null`; `expires_at`: `string` \| `null`; `greenpay_token`: `string`; `is_default`: `boolean`; `last_four_digits`: `string`; `member_id`: `string`; `method_type`: `string`; `mit_consent`: `boolean`; `mit_consent_at`: `string` \| `null`; `mit_consent_ip`: `unknown`; `mit_consent_terms_version`: `string` \| `null`; `mit_consent_text`: `string` \| `null`; `mit_consent_ua`: `string` \| `null`; `mit_initial_cit_at`: `string` \| `null`; `mit_initial_cit_txn_id`: `string` \| `null`; `organisation_id`: `string`; `payment_method_id`: `string`; `type`: `"card"` \| `"bank"`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `validation_status`: `string`; \}; `Insert`: \{ `bank_account_bsb?`: `string` \| `null`; `bank_account_last4?`: `string` \| `null`; `bank_account_name?`: `string` \| `null`; `brand?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `dd_mandate_id?`: `string` \| `null`; `dd_mandate_status?`: `"active"` \| `"pending"` \| `"revoked"` \| `"failed"` \| `null`; `expires_at?`: `string` \| `null`; `greenpay_token`: `string`; `is_default?`: `boolean`; `last_four_digits`: `string`; `member_id`: `string`; `method_type`: `string`; `mit_consent?`: `boolean`; `mit_consent_at?`: `string` \| `null`; `mit_consent_ip?`: `unknown`; `mit_consent_terms_version?`: `string` \| `null`; `mit_consent_text?`: `string` \| `null`; `mit_consent_ua?`: `string` \| `null`; `mit_initial_cit_at?`: `string` \| `null`; `mit_initial_cit_txn_id?`: `string` \| `null`; `organisation_id`: `string`; `payment_method_id?`: `string`; `type?`: `"card"` \| `"bank"`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `validation_status?`: `string`; \}; `Update`: \{ `bank_account_bsb?`: `string` \| `null`; `bank_account_last4?`: `string` \| `null`; `bank_account_name?`: `string` \| `null`; `brand?`: `string` \| `null`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `dd_mandate_id?`: `string` \| `null`; `dd_mandate_status?`: `"active"` \| `"pending"` \| `"revoked"` \| `"failed"` \| `null`; `expires_at?`: `string` \| `null`; `greenpay_token?`: `string`; `is_default?`: `boolean`; `last_four_digits?`: `string`; `member_id?`: `string`; `method_type?`: `string`; `mit_consent?`: `boolean`; `mit_consent_at?`: `string` \| `null`; `mit_consent_ip?`: `unknown`; `mit_consent_terms_version?`: `string` \| `null`; `mit_consent_text?`: `string` \| `null`; `mit_consent_ua?`: `string` \| `null`; `mit_initial_cit_at?`: `string` \| `null`; `mit_initial_cit_txn_id?`: `string` \| `null`; `organisation_id?`: `string`; `payment_method_id?`: `string`; `type?`: `"card"` \| `"bank"`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `validation_status?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"payment_method_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `mint_security_log`: \{ `Row`: \{ `action`: `string`; `created_at`: `string` \| `null`; `details`: `Json`; `id`: `string`; `ip_address`: `string` \| `null`; `record_id`: `string` \| `null`; `table_name`: `string` \| `null`; `user_agent`: `string` \| `null`; `user_id`: `string` \| `null`; \}; `Insert`: \{ `action`: `string`; `created_at?`: `string` \| `null`; `details?`: `Json`; `id?`: `string`; `ip_address?`: `string` \| `null`; `record_id?`: `string` \| `null`; `table_name?`: `string` \| `null`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Update`: \{ `action?`: `string`; `created_at?`: `string` \| `null`; `details?`: `Json`; `id?`: `string`; `ip_address?`: `string` \| `null`; `record_id?`: `string` \| `null`; `table_name?`: `string` \| `null`; `user_agent?`: `string` \| `null`; `user_id?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `mint_webhook_log`: \{ `Row`: \{ `created_at`: `string` \| `null`; `event_type`: `string`; `headers`: `Json`; `invoice_id`: `string` \| `null`; `organisation_id`: `string`; `payload`: `Json`; `processed_at`: `string` \| `null`; `processing_error`: `string` \| `null`; `source`: `string`; `status`: `string`; `transaction_id`: `string` \| `null`; `updated_at`: `string` \| `null`; `webhook_log_id`: `string`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `event_type`: `string`; `headers?`: `Json`; `invoice_id?`: `string` \| `null`; `organisation_id`: `string`; `payload`: `Json`; `processed_at?`: `string` \| `null`; `processing_error?`: `string` \| `null`; `source?`: `string`; `status`: `string`; `transaction_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `webhook_log_id?`: `string`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `event_type?`: `string`; `headers?`: `Json`; `invoice_id?`: `string` \| `null`; `organisation_id?`: `string`; `payload?`: `Json`; `processed_at?`: `string` \| `null`; `processing_error?`: `string` \| `null`; `source?`: `string`; `status?`: `string`; `transaction_id?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `webhook_log_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"webhook_log_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `pump_comms_log`: \{ `Row`: \{ `body`: `string`; `clicks`: `number` \| `null`; `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string` \| `null`; `from_address`: `string` \| `null`; `id`: `string`; `opens`: `number` \| `null`; `organisation_id`: `string`; `recipients`: `Json`; `reply_to_address`: `string` \| `null`; `response_metadata`: `Json`; `scheduled_at`: `string` \| `null`; `sender_id`: `string`; `sent_at`: `string` \| `null`; `status`: `string`; `subject`: `string` \| `null`; `template_slug`: `string` \| `null`; `type`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `body`: `string`; `clicks?`: `number` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string` \| `null`; `from_address?`: `string` \| `null`; `id?`: `string`; `opens?`: `number` \| `null`; `organisation_id`: `string`; `recipients`: `Json`; `reply_to_address?`: `string` \| `null`; `response_metadata?`: `Json`; `scheduled_at?`: `string` \| `null`; `sender_id`: `string`; `sent_at?`: `string` \| `null`; `status?`: `string`; `subject?`: `string` \| `null`; `template_slug?`: `string` \| `null`; `type`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `body?`: `string`; `clicks?`: `number` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string` \| `null`; `from_address?`: `string` \| `null`; `id?`: `string`; `opens?`: `number` \| `null`; `organisation_id?`: `string`; `recipients?`: `Json`; `reply_to_address?`: `string` \| `null`; `response_metadata?`: `Json`; `scheduled_at?`: `string` \| `null`; `sender_id?`: `string`; `sent_at?`: `string` \| `null`; `status?`: `string`; `subject?`: `string` \| `null`; `template_slug?`: `string` \| `null`; `type?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `pump_comms_template`: \{ `Row`: \{ `body`: `string`; `created_at`: `string`; `created_by`: `string`; `id`: `string`; `organisation_id`: `string`; `slug`: `string`; `subject`: `string` \| `null`; `type`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `body`: `string`; `created_at?`: `string`; `created_by`: `string`; `id?`: `string`; `organisation_id`: `string`; `slug`: `string`; `subject?`: `string` \| `null`; `type`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `body?`: `string`; `created_at?`: `string`; `created_by?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `slug?`: `string`; `subject?`: `string` \| `null`; `type?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `pump_org_settings`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string` \| `null`; `default_from_address`: `string` \| `null`; `default_reply_to_address`: `string` \| `null`; `email_footer_html`: `string` \| `null`; `email_header_html`: `string` \| `null`; `id`: `string`; `organisation_id`: `string`; `sms_from_number`: `string` \| `null`; `sms_messaging_service_sid`: `string` \| `null`; `sms_opt_out_footer`: `string` \| `null`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `default_from_address?`: `string` \| `null`; `default_reply_to_address?`: `string` \| `null`; `email_footer_html?`: `string` \| `null`; `email_header_html?`: `string` \| `null`; `id?`: `string`; `organisation_id`: `string`; `sms_from_number?`: `string` \| `null`; `sms_messaging_service_sid?`: `string` \| `null`; `sms_opt_out_footer?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `default_from_address?`: `string` \| `null`; `default_reply_to_address?`: `string` \| `null`; `email_footer_html?`: `string` \| `null`; `email_header_html?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string`; `sms_from_number?`: `string` \| `null`; `sms_messaging_service_sid?`: `string` \| `null`; `sms_opt_out_footer?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `pump_scheduled_jobs`: \{ `Row`: \{ `attempts`: `number` \| `null`; `comms_log_id`: `string`; `created_at`: `string`; `id`: `string`; `last_error`: `string` \| `null`; `scheduled_for`: `string`; `status`: `string`; `updated_at`: `string`; \}; `Insert`: \{ `attempts?`: `number` \| `null`; `comms_log_id`: `string`; `created_at?`: `string`; `id?`: `string`; `last_error?`: `string` \| `null`; `scheduled_for`: `string`; `status?`: `string`; `updated_at?`: `string`; \}; `Update`: \{ `attempts?`: `number` \| `null`; `comms_log_id?`: `string`; `created_at?`: `string`; `id?`: `string`; `last_error?`: `string` \| `null`; `scheduled_for?`: `string`; `status?`: `string`; `updated_at?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"pump_scheduled_jobs_comms_log_id_fkey"`; `columns`: \[`"comms_log_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"pump_comms_log"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_app_pages`: \{ `Row`: \{ `app_id`: `string`; `created_at`: `string`; `created_by`: `string` \| `null`; `id`: `string`; `page_description`: `string` \| `null`; `page_name`: `string`; `scope_type`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `app_id`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `id?`: `string`; `page_description?`: `string` \| `null`; `page_name`: `string`; `scope_type?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `app_id?`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `id?`: `string`; `page_description?`: `string` \| `null`; `page_name?`: `string`; `scope_type?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_app_pages_app_id"`; `columns`: \[`"app_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_apps"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_apps`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string` \| `null`; `description`: `string` \| `null`; `display_name`: `string`; `id`: `string`; `is_active`: `boolean` \| `null`; `name`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `name`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name?`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `name?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `rbac_audit_events`: \{ `Row`: \{ `app_id`: `string` \| `null`; `bypass`: `boolean` \| `null`; `created_at`: `string` \| `null`; `decision`: `boolean` \| `null`; `duration_ms`: `number` \| `null`; `event_id`: `string` \| `null`; `event_type`: `string`; `id`: `string`; `metadata`: `Json`; `organisation_id`: `string`; `page_id`: `string` \| `null`; `permission`: `string` \| `null`; `source`: `string` \| `null`; `user_id`: `string`; \}; `Insert`: \{ `app_id?`: `string` \| `null`; `bypass?`: `boolean` \| `null`; `created_at?`: `string` \| `null`; `decision?`: `boolean` \| `null`; `duration_ms?`: `number` \| `null`; `event_id?`: `string` \| `null`; `event_type`: `string`; `id?`: `string`; `metadata?`: `Json`; `organisation_id`: `string`; `page_id?`: `string` \| `null`; `permission?`: `string` \| `null`; `source?`: `string` \| `null`; `user_id`: `string`; \}; `Update`: \{ `app_id?`: `string` \| `null`; `bypass?`: `boolean` \| `null`; `created_at?`: `string` \| `null`; `decision?`: `boolean` \| `null`; `duration_ms?`: `number` \| `null`; `event_id?`: `string` \| `null`; `event_type?`: `string`; `id?`: `string`; `metadata?`: `Json`; `organisation_id?`: `string`; `page_id?`: `string` \| `null`; `permission?`: `string` \| `null`; `source?`: `string` \| `null`; `user_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_audit_events_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_event_app_roles`: \{ `Row`: \{ `app_id`: `string`; `event_id`: `string`; `granted_at`: `string` \| `null`; `granted_by`: `string` \| `null`; `id`: `string`; `organisation_id`: `string`; `role`: `"viewer"` \| `"participant"` \| `"planner"` \| `"event_admin"`; `status`: `string`; `user_id`: `string`; `valid_from`: `string` \| `null`; `valid_to`: `string` \| `null`; \}; `Insert`: \{ `app_id`: `string`; `event_id`: `string`; `granted_at?`: `string` \| `null`; `granted_by?`: `string` \| `null`; `id?`: `string`; `organisation_id`: `string`; `role`: `"viewer"` \| `"participant"` \| `"planner"` \| `"event_admin"`; `status?`: `string`; `user_id`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Update`: \{ `app_id?`: `string`; `event_id?`: `string`; `granted_at?`: `string` \| `null`; `granted_by?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string`; `role?`: `"viewer"` \| `"participant"` \| `"planner"` \| `"event_admin"`; `status?`: `string`; `user_id?`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_rbac_event_app_roles_app_id"`; `columns`: \[`"app_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_apps"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_event_app_roles_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_event_app_roles_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_event_app_roles_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_global_roles`: \{ `Row`: \{ `granted_at`: `string` \| `null`; `granted_by`: `string` \| `null`; `id`: `string`; `organisation_id`: `string`; `role`: `"super_admin"`; `user_id`: `string`; `valid_from`: `string` \| `null`; `valid_to`: `string` \| `null`; \}; `Insert`: \{ `granted_at?`: `string` \| `null`; `granted_by?`: `string` \| `null`; `id?`: `string`; `organisation_id`: `string`; `role`: `"super_admin"`; `user_id`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Update`: \{ `granted_at?`: `string` \| `null`; `granted_by?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string`; `role?`: `"super_admin"`; `user_id?`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_global_roles_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_organisation_roles`: \{ `Row`: \{ `created_at`: `string`; `granted_at`: `string`; `granted_by`: `string` \| `null`; `id`: `string`; `notes`: `string` \| `null`; `organisation_id`: `string`; `revoked_at`: `string` \| `null`; `revoked_by`: `string` \| `null`; `role`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"`; `status`: `string`; `updated_at`: `string`; `user_id`: `string`; `valid_from`: `string` \| `null`; `valid_to`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `granted_at?`: `string`; `granted_by?`: `string` \| `null`; `id?`: `string`; `notes?`: `string` \| `null`; `organisation_id`: `string`; `revoked_at?`: `string` \| `null`; `revoked_by?`: `string` \| `null`; `role`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"`; `status?`: `string`; `updated_at?`: `string`; `user_id`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `granted_at?`: `string`; `granted_by?`: `string` \| `null`; `id?`: `string`; `notes?`: `string` \| `null`; `organisation_id?`: `string`; `revoked_at?`: `string` \| `null`; `revoked_by?`: `string` \| `null`; `role?`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"`; `status?`: `string`; `updated_at?`: `string`; `user_id?`: `string`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_organisation_roles_new_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_organisation_roles_user_profiles_fkey"`; `columns`: \[`"user_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_page_permissions`: \{ `Row`: \{ `allowed`: `boolean`; `app_page_id`: `string`; `created_at`: `string` \| `null`; `id`: `string`; `operation`: `string`; `organisation_id`: `string` \| `null`; `role_name`: `string`; `updated_at`: `string` \| `null`; \}; `Insert`: \{ `allowed?`: `boolean`; `app_page_id`: `string`; `created_at?`: `string` \| `null`; `id?`: `string`; `operation`: `string`; `organisation_id?`: `string` \| `null`; `role_name`: `string`; `updated_at?`: `string` \| `null`; \}; `Update`: \{ `allowed?`: `boolean`; `app_page_id?`: `string`; `created_at?`: `string` \| `null`; `id?`: `string`; `operation?`: `string`; `organisation_id?`: `string` \| `null`; `role_name?`: `string`; `updated_at?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_rbac_page_permissions_app_page_id"`; `columns`: \[`"app_page_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_app_pages"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_page_permissions_app_page_id_fkey"`; `columns`: \[`"app_page_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_app_pages"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_page_permissions_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_policy_audit`: \{ `Row`: \{ `action`: `string`; `changed_at`: `string` \| `null`; `changed_by`: `string` \| `null`; `error_message`: `string` \| `null`; `id`: `string`; `new_policy_sql`: `string` \| `null`; `old_policy_sql`: `string` \| `null`; `operation`: `string`; `policy_name`: `string`; `success`: `boolean`; `table_name`: `string`; \}; `Insert`: \{ `action`: `string`; `changed_at?`: `string` \| `null`; `changed_by?`: `string` \| `null`; `error_message?`: `string` \| `null`; `id?`: `string`; `new_policy_sql?`: `string` \| `null`; `old_policy_sql?`: `string` \| `null`; `operation`: `string`; `policy_name`: `string`; `success?`: `boolean`; `table_name`: `string`; \}; `Update`: \{ `action?`: `string`; `changed_at?`: `string` \| `null`; `changed_by?`: `string` \| `null`; `error_message?`: `string` \| `null`; `id?`: `string`; `new_policy_sql?`: `string` \| `null`; `old_policy_sql?`: `string` \| `null`; `operation?`: `string`; `policy_name?`: `string`; `success?`: `boolean`; `table_name?`: `string`; \}; `Relationships`: \[\]; \}; `rbac_policy_configs`: \{ `Row`: \{ `app_name`: `string`; `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `event_column`: `string` \| `null`; `id`: `string`; `is_active`: `boolean`; `operations`: `string`[]; `organisation_column`: `string`; `page_name`: `string`; `table_name`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `app_name?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_column?`: `string` \| `null`; `id?`: `string`; `is_active?`: `boolean`; `operations?`: `string`[]; `organisation_column?`: `string`; `page_name`: `string`; `table_name`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `app_name?`: `string`; `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `event_column?`: `string` \| `null`; `id?`: `string`; `is_active?`: `boolean`; `operations?`: `string`[]; `organisation_column?`: `string`; `page_name?`: `string`; `table_name?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\]; \}; `rbac_user_login_history`: \{ `Row`: \{ `app_id`: `string` \| `null`; `email`: `string`; `event_id`: `string` \| `null`; `id`: `string`; `ip_address`: `string` \| `null`; `login_timestamp`: `string`; `organisation_id`: `string`; `session_id`: `string`; `user_agent`: `string` \| `null`; `user_id`: `string`; \}; `Insert`: \{ `app_id?`: `string` \| `null`; `email`: `string`; `event_id?`: `string` \| `null`; `id?`: `string`; `ip_address?`: `string` \| `null`; `login_timestamp?`: `string`; `organisation_id`: `string`; `session_id`: `string`; `user_agent?`: `string` \| `null`; `user_id`: `string`; \}; `Update`: \{ `app_id?`: `string` \| `null`; `email?`: `string`; `event_id?`: `string` \| `null`; `id?`: `string`; `ip_address?`: `string` \| `null`; `login_timestamp?`: `string`; `organisation_id?`: `string`; `session_id?`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_user_login_history_event"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_user_login_history_event"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_user_login_history_user_profiles"`; `columns`: \[`"user_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_user_profiles`: \{ `Row`: \{ `created_at`: `string`; `email`: `string`; `full_name`: `string` \| `null`; `id`: `string`; `organisation_id`: `string` \| `null`; `updated_at`: `string`; \}; `Insert`: \{ `created_at?`: `string`; `email`: `string`; `full_name?`: `string` \| `null`; `id`: `string`; `organisation_id?`: `string` \| `null`; `updated_at?`: `string`; \}; `Update`: \{ `created_at?`: `string`; `email?`: `string`; `full_name?`: `string` \| `null`; `id?`: `string`; `organisation_id?`: `string` \| `null`; `updated_at?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_user_profiles_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_user_sessions`: \{ `Row`: \{ `app_id`: `string` \| `null`; `created_at`: `string` \| `null`; `device_fingerprint`: `string` \| `null`; `event_id`: `string` \| `null`; `expires_at`: `string` \| `null`; `id`: `string`; `ip_address`: `unknown`; `is_valid`: `boolean` \| `null`; `metadata`: `Json`; `organisation_id`: `string`; `session_type`: `string`; `user_agent`: `string` \| `null`; `user_id`: `string`; \}; `Insert`: \{ `app_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `device_fingerprint?`: `string` \| `null`; `event_id?`: `string` \| `null`; `expires_at?`: `string` \| `null`; `id?`: `string`; `ip_address?`: `unknown`; `is_valid?`: `boolean` \| `null`; `metadata?`: `Json`; `organisation_id`: `string`; `session_type`: `string`; `user_agent?`: `string` \| `null`; `user_id`: `string`; \}; `Update`: \{ `app_id?`: `string` \| `null`; `created_at?`: `string` \| `null`; `device_fingerprint?`: `string` \| `null`; `event_id?`: `string` \| `null`; `expires_at?`: `string` \| `null`; `id?`: `string`; `ip_address?`: `unknown`; `is_valid?`: `boolean` \| `null`; `metadata?`: `Json`; `organisation_id?`: `string`; `session_type?`: `string`; `user_agent?`: `string` \| `null`; `user_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_user_sessions_app_id_fkey"`; `columns`: \[`"app_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_apps"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_sessions_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_sessions_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_sessions_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `rbac_user_units`: \{ `Row`: \{ `assigned_at`: `string` \| `null`; `assigned_by`: `string` \| `null`; `created_at`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `is_active`: `boolean` \| `null`; `unit_id`: `string`; `updated_at`: `string` \| `null`; `user_id`: `string`; \}; `Insert`: \{ `assigned_at?`: `string` \| `null`; `assigned_by?`: `string` \| `null`; `created_at?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `unit_id`: `string`; `updated_at?`: `string` \| `null`; `user_id`: `string`; \}; `Update`: \{ `assigned_at?`: `string` \| `null`; `assigned_by?`: `string` \| `null`; `created_at?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `is_active?`: `boolean` \| `null`; `unit_id?`: `string`; `updated_at?`: `string` \| `null`; `user_id?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_user_units_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_units_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_units_unit_id_fkey"`; `columns`: \[`"unit_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_unit"`; `referencedColumns`: \[`"unit_id"`\]; \}, \{ `foreignKeyName`: `"rbac_user_units_user_id_fkey"`; `columns`: \[`"user_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `team_unit`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `deleted_at`: `string` \| `null`; `id`: `string`; `name`: `string`; `organisation_id`: `string`; `parent_id`: `string` \| `null`; `type`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `id?`: `string`; `name`: `string`; `organisation_id`: `string`; `parent_id?`: `string` \| `null`; `type`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `deleted_at?`: `string` \| `null`; `id?`: `string`; `name?`: `string`; `organisation_id?`: `string`; `parent_id?`: `string` \| `null`; `type?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"team_organizational_units_parent_id_fkey"`; `columns`: \[`"parent_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"team_unit"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"team_unit_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_accommodation`: \{ `Row`: \{ `booking_reference`: `string` \| `null`; `check_in_time`: `string`; `check_out_time`: `string`; `created_at`: `string`; `created_by`: `string` \| `null`; `currency`: `string` \| `null`; `event_id`: `string`; `group_cost`: `number` \| `null`; `id`: `string`; `individual_cost`: `number` \| `null`; `location_coords`: `Json`; `location_display_name`: `string` \| `null`; `location_place_id`: `string` \| `null`; `location_short_address`: `string` \| `null`; `location_timezone`: `string` \| `null`; `name`: `string`; `notes`: `string` \| `null`; `organisation_id`: `string`; `status`: `string` \| `null`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `booking_reference?`: `string` \| `null`; `check_in_time`: `string`; `check_out_time`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `event_id`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `location_coords?`: `Json`; `location_display_name?`: `string` \| `null`; `location_place_id?`: `string` \| `null`; `location_short_address?`: `string` \| `null`; `location_timezone?`: `string` \| `null`; `name`: `string`; `notes?`: `string` \| `null`; `organisation_id`: `string`; `status?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `booking_reference?`: `string` \| `null`; `check_in_time?`: `string`; `check_out_time?`: `string`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `event_id?`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `location_coords?`: `Json`; `location_display_name?`: `string` \| `null`; `location_place_id?`: `string` \| `null`; `location_short_address?`: `string` \| `null`; `location_timezone?`: `string` \| `null`; `name?`: `string`; `notes?`: `string` \| `null`; `organisation_id?`: `string`; `status?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_accommodation_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_accommodation_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_accommodation_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_activity`: \{ `Row`: \{ `booking_reference`: `string` \| `null`; `created_at`: `string`; `created_by`: `string` \| `null`; `currency`: `string` \| `null`; `event_id`: `string`; `finish_location_coords`: `Json`; `finish_location_display_name`: `string` \| `null`; `finish_location_place_id`: `string` \| `null`; `finish_location_short_address`: `string` \| `null`; `finish_location_timezone`: `string` \| `null`; `finish_time`: `string`; `group_cost`: `number` \| `null`; `id`: `string`; `individual_cost`: `number` \| `null`; `name`: `string`; `notes`: `string` \| `null`; `organisation_id`: `string`; `start_location_coords`: `Json`; `start_location_display_name`: `string` \| `null`; `start_location_place_id`: `string` \| `null`; `start_location_short_address`: `string` \| `null`; `start_location_timezone`: `string` \| `null`; `start_time`: `string`; `status`: `string` \| `null`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `booking_reference?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `event_id`: `string`; `finish_location_coords?`: `Json`; `finish_location_display_name?`: `string` \| `null`; `finish_location_place_id?`: `string` \| `null`; `finish_location_short_address?`: `string` \| `null`; `finish_location_timezone?`: `string` \| `null`; `finish_time`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `name`: `string`; `notes?`: `string` \| `null`; `organisation_id`: `string`; `start_location_coords?`: `Json`; `start_location_display_name?`: `string` \| `null`; `start_location_place_id?`: `string` \| `null`; `start_location_short_address?`: `string` \| `null`; `start_location_timezone?`: `string` \| `null`; `start_time`: `string`; `status?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `booking_reference?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `event_id?`: `string`; `finish_location_coords?`: `Json`; `finish_location_display_name?`: `string` \| `null`; `finish_location_place_id?`: `string` \| `null`; `finish_location_short_address?`: `string` \| `null`; `finish_location_timezone?`: `string` \| `null`; `finish_time?`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `name?`: `string`; `notes?`: `string` \| `null`; `organisation_id?`: `string`; `start_location_coords?`: `Json`; `start_location_display_name?`: `string` \| `null`; `start_location_place_id?`: `string` \| `null`; `start_location_short_address?`: `string` \| `null`; `start_location_timezone?`: `string` \| `null`; `start_time?`: `string`; `status?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_activity_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_activity_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_activity_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_activity_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_activity_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_contacts`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string` \| `null`; `email_address`: `string` \| `null`; `event_id`: `string`; `first_name`: `string`; `id`: `string`; `organisation_id`: `string`; `phone_number`: `string` \| `null`; `role`: `string` \| `null`; `surname`: `string`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `email_address?`: `string` \| `null`; `event_id`: `string`; `first_name`: `string`; `id?`: `string`; `organisation_id`: `string`; `phone_number?`: `string` \| `null`; `role?`: `string` \| `null`; `surname`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string` \| `null`; `email_address?`: `string` \| `null`; `event_id?`: `string`; `first_name?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `phone_number?`: `string` \| `null`; `role?`: `string` \| `null`; `surname?`: `string`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_contacts_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_contacts_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_contacts_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_currency_rates`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `currency_code`: `string`; `event_id`: `string`; `exchange_rate`: `number`; `id`: `string`; `organisation_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `currency_code`: `string`; `event_id`: `string`; `exchange_rate`: `number`; `id?`: `string`; `organisation_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `currency_code?`: `string`; `event_id?`: `string`; `exchange_rate?`: `number`; `id?`: `string`; `organisation_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_currency_rates_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_currency_rates_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_currency_rates_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_currency_rates_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_currency_rates_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_journal_images`: \{ `Row`: \{ `created_at`: `string`; `created_by`: `string`; `id`: `string`; `organisation_id`: `string`; `post_id`: `string`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string`; `created_by`: `string`; `id?`: `string`; `organisation_id`: `string`; `post_id`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string`; `created_by?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `post_id?`: `string`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_journal_images_created_by"`; `columns`: \[`"created_by"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_journal_images_updated_by"`; `columns`: \[`"updated_by"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"trac_journal_images_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"trac_journal_images_post_id_fkey"`; `columns`: \[`"post_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"trac_journal_posts"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_journal_posts`: \{ `Row`: \{ `content`: `string`; `created_at`: `string`; `created_by`: `string`; `event_id`: `string`; `id`: `string`; `organisation_id`: `string`; `status`: `"draft"` \| `"published"`; `title`: `string`; `updated_at`: `string`; `updated_by`: `string`; \}; `Insert`: \{ `content`: `string`; `created_at?`: `string`; `created_by`: `string`; `event_id`: `string`; `id?`: `string`; `organisation_id`: `string`; `status?`: `"draft"` \| `"published"`; `title`: `string`; `updated_at?`: `string`; `updated_by`: `string`; \}; `Update`: \{ `content?`: `string`; `created_at?`: `string`; `created_by?`: `string`; `event_id?`: `string`; `id?`: `string`; `organisation_id?`: `string`; `status?`: `"draft"` \| `"published"`; `title?`: `string`; `updated_at?`: `string`; `updated_by?`: `string`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_journal_posts_created_by"`; `columns`: \[`"created_by"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_journal_posts_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_journal_posts_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_journal_posts_updated_by"`; `columns`: \[`"updated_by"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"trac_journal_posts_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_location_cache`: \{ `Row`: \{ `city`: `string` \| `null`; `coordinates`: `Json`; `country`: `string` \| `null`; `description`: `string` \| `null`; `display_name`: `string` \| `null`; `last_updated`: `string` \| `null`; `organisation_id`: `string`; `place_id`: `string`; `short_address`: `string` \| `null`; `timezoneid`: `string` \| `null`; \}; `Insert`: \{ `city?`: `string` \| `null`; `coordinates?`: `Json`; `country?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name?`: `string` \| `null`; `last_updated?`: `string` \| `null`; `organisation_id`: `string`; `place_id`: `string`; `short_address?`: `string` \| `null`; `timezoneid?`: `string` \| `null`; \}; `Update`: \{ `city?`: `string` \| `null`; `coordinates?`: `Json`; `country?`: `string` \| `null`; `description?`: `string` \| `null`; `display_name?`: `string` \| `null`; `last_updated?`: `string` \| `null`; `organisation_id?`: `string`; `place_id?`: `string`; `short_address?`: `string` \| `null`; `timezoneid?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"trac_location_cache_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_risks`: \{ `Row`: \{ `comment`: `string` \| `null`; `consequence_after`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `consequence_before`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `control`: `string` \| `null`; `created_at`: `string`; `created_by`: `string` \| `null`; `event_id`: `string`; `id`: `string`; `impact_after`: `number`; `impact_before`: `number`; `likelihood_after`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `likelihood_before`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `organisation_id`: `string`; `response`: `string` \| `null`; `responsible_contact_id`: `string` \| `null`; `risk`: `string`; `status`: `"Planned"` \| `"In progress"` \| `"Complete"`; `type`: `"Transport"` \| `"Accommodation"` \| `"Activity"` \| `"Financial"` \| `"Medical/Welfare"` \| `"Operational"`; `updated_at`: `string`; `updated_by`: `string` \| `null`; `when`: `"Prior"` \| `"During"`; \}; `Insert`: \{ `comment?`: `string` \| `null`; `consequence_after`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `consequence_before`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `control?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id`: `string`; `id?`: `string`; `impact_after`: `number`; `impact_before`: `number`; `likelihood_after`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `likelihood_before`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `organisation_id`: `string`; `response?`: `string` \| `null`; `responsible_contact_id?`: `string` \| `null`; `risk`: `string`; `status?`: `"Planned"` \| `"In progress"` \| `"Complete"`; `type`: `"Transport"` \| `"Accommodation"` \| `"Activity"` \| `"Financial"` \| `"Medical/Welfare"` \| `"Operational"`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; `when`: `"Prior"` \| `"During"`; \}; `Update`: \{ `comment?`: `string` \| `null`; `consequence_after?`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `consequence_before?`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `control?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `event_id?`: `string`; `id?`: `string`; `impact_after?`: `number`; `impact_before?`: `number`; `likelihood_after?`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `likelihood_before?`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `organisation_id?`: `string`; `response?`: `string` \| `null`; `responsible_contact_id?`: `string` \| `null`; `risk?`: `string`; `status?`: `"Planned"` \| `"In progress"` \| `"Complete"`; `type?`: `"Transport"` \| `"Accommodation"` \| `"Activity"` \| `"Financial"` \| `"Medical/Welfare"` \| `"Operational"`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; `when?`: `"Prior"` \| `"During"`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_risks_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_risks_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_risks_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"trac_risks_responsible_contact_id_fkey"`; `columns`: \[`"responsible_contact_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"trac_contacts"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `trac_transport`: \{ `Row`: \{ `arrival_coords`: `Json`; `arrival_display_name`: `string` \| `null`; `arrival_place_id`: `string` \| `null`; `arrival_short_address`: `string` \| `null`; `arrival_time`: `string`; `arrival_timezone`: `string` \| `null`; `booking_reference`: `string` \| `null`; `created_at`: `string`; `created_by`: `string` \| `null`; `currency`: `string` \| `null`; `departure_coords`: `Json`; `departure_display_name`: `string` \| `null`; `departure_place_id`: `string` \| `null`; `departure_short_address`: `string` \| `null`; `departure_time`: `string`; `departure_timezone`: `string` \| `null`; `event_id`: `string`; `group_cost`: `number` \| `null`; `id`: `string`; `individual_cost`: `number` \| `null`; `mode`: `string`; `notes`: `string` \| `null`; `organisation_id`: `string`; `status`: `string` \| `null`; `transport_number`: `string` \| `null`; `updated_at`: `string`; `updated_by`: `string` \| `null`; \}; `Insert`: \{ `arrival_coords?`: `Json`; `arrival_display_name?`: `string` \| `null`; `arrival_place_id?`: `string` \| `null`; `arrival_short_address?`: `string` \| `null`; `arrival_time`: `string`; `arrival_timezone?`: `string` \| `null`; `booking_reference?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `departure_coords?`: `Json`; `departure_display_name?`: `string` \| `null`; `departure_place_id?`: `string` \| `null`; `departure_short_address?`: `string` \| `null`; `departure_time`: `string`; `departure_timezone?`: `string` \| `null`; `event_id`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `mode`: `string`; `notes?`: `string` \| `null`; `organisation_id`: `string`; `status?`: `string` \| `null`; `transport_number?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Update`: \{ `arrival_coords?`: `Json`; `arrival_display_name?`: `string` \| `null`; `arrival_place_id?`: `string` \| `null`; `arrival_short_address?`: `string` \| `null`; `arrival_time?`: `string`; `arrival_timezone?`: `string` \| `null`; `booking_reference?`: `string` \| `null`; `created_at?`: `string`; `created_by?`: `string` \| `null`; `currency?`: `string` \| `null`; `departure_coords?`: `Json`; `departure_display_name?`: `string` \| `null`; `departure_place_id?`: `string` \| `null`; `departure_short_address?`: `string` \| `null`; `departure_time?`: `string`; `departure_timezone?`: `string` \| `null`; `event_id?`: `string`; `group_cost?`: `number` \| `null`; `id?`: `string`; `individual_cost?`: `number` \| `null`; `mode?`: `string`; `notes?`: `string` \| `null`; `organisation_id?`: `string`; `status?`: `string` \| `null`; `transport_number?`: `string` \| `null`; `updated_at?`: `string`; `updated_by?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"fk_trac_transport_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"fk_trac_transport_event_id"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_transport_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_transport_event_id_fkey"`; `columns`: \[`"event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"trac_transport_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; \}; `Views`: \{ `cake_public_recipe_details`: \{ `Row`: \{ `dish_code`: `string` \| `null`; `dish_description`: `string` \| `null`; `dish_dietnote`: `string` \| `null`; `dish_equipment`: `string` \| `null`; `dish_event_id`: `string` \| `null`; `dish_id`: `string` \| `null`; `dish_mealtype_id`: `string` \| `null`; `dish_name`: `string` \| `null`; `dish_organisation_id`: `string` \| `null`; `dish_prep`: `string` \| `null`; `dish_step1`: `string` \| `null`; `dish_step2`: `string` \| `null`; `dish_step3`: `string` \| `null`; `dish_step4`: `string` \| `null`; `dish_step5`: `string` \| `null`; `event_code`: `string` \| `null`; `event_id`: `string` \| `null`; `event_name`: `string` \| `null`; `mealtype_name`: `string` \| `null`; `organisation_id`: `string` \| `null`; `recipe_id`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"cake_dish_organisation_id_fkey"`; `columns`: \[`"dish_organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_event_id_fkey"`; `columns`: \[`"dish_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_public_recipe_details"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_event_id_fkey"`; `columns`: \[`"dish_event_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_events"`; `referencedColumns`: \[`"event_id"`\]; \}, \{ `foreignKeyName`: `"dish_dish_mealtype_id_fkey"`; `columns`: \[`"dish_mealtype_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"cake_mealtype"`; `referencedColumns`: \[`"mealtype_id"`\]; \}, \{ `foreignKeyName`: `"event_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; `core_organisation_memberships`: \{ `Row`: \{ `created_at`: `string` \| `null`; `created_by`: `string` \| `null`; `granted_at`: `string` \| `null`; `id`: `string` \| `null`; `is_primary`: `boolean` \| `null`; `joined_at`: `string` \| `null`; `notes`: `string` \| `null`; `organisation_id`: `string` \| `null`; `revoked_at`: `string` \| `null`; `role`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"` \| `null`; `status`: `string` \| `null`; `updated_at`: `string` \| `null`; `updated_by`: `string` \| `null`; `user_id`: `string` \| `null`; `valid_from`: `string` \| `null`; `valid_to`: `string` \| `null`; \}; `Insert`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `granted_at?`: `string` \| `null`; `id?`: `string` \| `null`; `is_primary?`: `undefined`; `joined_at?`: `string` \| `null`; `notes?`: `string` \| `null`; `organisation_id?`: `string` \| `null`; `revoked_at?`: `string` \| `null`; `role?`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"` \| `null`; `status?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id?`: `string` \| `null`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Update`: \{ `created_at?`: `string` \| `null`; `created_by?`: `string` \| `null`; `granted_at?`: `string` \| `null`; `id?`: `string` \| `null`; `is_primary?`: `undefined`; `joined_at?`: `string` \| `null`; `notes?`: `string` \| `null`; `organisation_id?`: `string` \| `null`; `revoked_at?`: `string` \| `null`; `role?`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"` \| `null`; `status?`: `string` \| `null`; `updated_at?`: `string` \| `null`; `updated_by?`: `string` \| `null`; `user_id?`: `string` \| `null`; `valid_from?`: `string` \| `null`; `valid_to?`: `string` \| `null`; \}; `Relationships`: \[\{ `foreignKeyName`: `"rbac_organisation_roles_new_organisation_id_fkey"`; `columns`: \[`"organisation_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"core_organisations"`; `referencedColumns`: \[`"id"`\]; \}, \{ `foreignKeyName`: `"rbac_organisation_roles_user_profiles_fkey"`; `columns`: \[`"user_id"`\]; `isOneToOne`: `false`; `referencedRelation`: `"rbac_user_profiles"`; `referencedColumns`: \[`"id"`\]; \}\]; \}; \}; `Functions`: \{ `add_geo_columns_to_transport_tables`: \{ `Args`: `never`; `Returns`: `undefined`; \}; `app_base_application_create`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_person_id`: `string`; `p_status?`: `string`; `p_submitted_at?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `string`; \}; `app_cake_delivery_upsert`: \{ `Args`: \{ `p_collection_date`: `string`; `p_delivery_address?`: `string`; `p_delivery_date`: `string`; `p_delivery_id?`: `string`; `p_delivery_notes?`: `string`; `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_supplier_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_diner_create`: \{ `Args`: \{ `p_diner_adult?`: `number`; `p_diner_diettype_id`: `string`; `p_diner_unit_id`: `string`; `p_diner_youth?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_diner_delete`: \{ `Args`: \{ `p_diner_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_diner_update`: \{ `Args`: \{ `p_diner_adult?`: `number`; `p_diner_diettype_id?`: `string`; `p_diner_id`: `string`; `p_diner_youth?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_dish_create`: \{ `Args`: \{ `p_dish_code`: `string`; `p_dish_description?`: `string`; `p_dish_dietnote?`: `string`; `p_dish_equipment?`: `string`; `p_dish_event_id`: `string`; `p_dish_mealtype_id`: `string`; `p_dish_name`: `string`; `p_dish_prep?`: `string`; `p_dish_step1?`: `string`; `p_dish_step2?`: `string`; `p_dish_step3?`: `string`; `p_dish_step4?`: `string`; `p_dish_step5?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_dish_delete`: \{ `Args`: \{ `p_dish_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_dish_update`: \{ `Args`: \{ `p_dish_code?`: `string`; `p_dish_description?`: `string`; `p_dish_dietnote?`: `string`; `p_dish_equipment?`: `string`; `p_dish_id`: `string`; `p_dish_mealtype_id?`: `string`; `p_dish_name?`: `string`; `p_dish_prep?`: `string`; `p_dish_step1?`: `string`; `p_dish_step2?`: `string`; `p_dish_step3?`: `string`; `p_dish_step4?`: `string`; `p_dish_step5?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_item_create`: \{ `Args`: \{ `p_event_id?`: `string`; `p_item_brand?`: `string`; `p_item_bulkdistribution?`: `boolean`; `p_item_diet_dairyfree?`: `boolean`; `p_item_diet_diabetic?`: `boolean`; `p_item_diet_eggfree?`: `boolean`; `p_item_diet_glutenfree?`: `boolean`; `p_item_diet_halal?`: `boolean`; `p_item_diet_kosher?`: `boolean`; `p_item_diet_lactosefree?`: `boolean`; `p_item_diet_lowfodmap?`: `boolean`; `p_item_diet_lowfructose?`: `boolean`; `p_item_diet_porkfree?`: `boolean`; `p_item_diet_redmeatfree?`: `boolean`; `p_item_diet_vegan?`: `boolean`; `p_item_diet_vegetarian?`: `boolean`; `p_item_distribution?`: `string`; `p_item_ingredients?`: `string`; `p_item_logistics?`: `number`; `p_item_name`: `string`; `p_item_packageunit?`: `string`; `p_item_producturl?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \} \| \{ `Args`: \{ `p_event_id?`: `string`; `p_item_brand?`: `string`; `p_item_diet_dairyfree?`: `boolean`; `p_item_diet_diabetic?`: `boolean`; `p_item_diet_eggfree?`: `boolean`; `p_item_diet_glutenfree?`: `boolean`; `p_item_diet_halal?`: `boolean`; `p_item_diet_kosher?`: `boolean`; `p_item_diet_lactosefree?`: `boolean`; `p_item_diet_lowfodmap?`: `boolean`; `p_item_diet_lowfructose?`: `boolean`; `p_item_diet_porkfree?`: `boolean`; `p_item_diet_redmeatfree?`: `boolean`; `p_item_diet_vegan?`: `boolean`; `p_item_diet_vegetarian?`: `boolean`; `p_item_distribution?`: `string`; `p_item_ingredients?`: `string`; `p_item_logistics?`: `number`; `p_item_name`: `string`; `p_item_packageunit?`: `string`; `p_item_producturl?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_item_delete`: \{ `Args`: \{ `p_current_event_id`: `string`; `p_item_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_item_update`: \{ `Args`: \{ `p_item_brand?`: `string`; `p_item_bulkdistribution?`: `boolean`; `p_item_diet_dairyfree?`: `boolean`; `p_item_diet_diabetic?`: `boolean`; `p_item_diet_eggfree?`: `boolean`; `p_item_diet_glutenfree?`: `boolean`; `p_item_diet_halal?`: `boolean`; `p_item_diet_kosher?`: `boolean`; `p_item_diet_lactosefree?`: `boolean`; `p_item_diet_lowfodmap?`: `boolean`; `p_item_diet_lowfructose?`: `boolean`; `p_item_diet_porkfree?`: `boolean`; `p_item_diet_redmeatfree?`: `boolean`; `p_item_diet_vegan?`: `boolean`; `p_item_diet_vegetarian?`: `boolean`; `p_item_distribution?`: `string`; `p_item_id`: `string`; `p_item_ingredients?`: `string`; `p_item_logistics?`: `number`; `p_item_name?`: `string`; `p_item_packageunit?`: `string`; `p_item_producturl?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \} \| \{ `Args`: \{ `p_item_brand?`: `string`; `p_item_diet_dairyfree?`: `boolean`; `p_item_diet_diabetic?`: `boolean`; `p_item_diet_eggfree?`: `boolean`; `p_item_diet_glutenfree?`: `boolean`; `p_item_diet_halal?`: `boolean`; `p_item_diet_kosher?`: `boolean`; `p_item_diet_lactosefree?`: `boolean`; `p_item_diet_lowfodmap?`: `boolean`; `p_item_diet_lowfructose?`: `boolean`; `p_item_diet_porkfree?`: `boolean`; `p_item_diet_redmeatfree?`: `boolean`; `p_item_diet_vegan?`: `boolean`; `p_item_diet_vegetarian?`: `boolean`; `p_item_distribution?`: `string`; `p_item_id`: `string`; `p_item_ingredients?`: `string`; `p_item_logistics?`: `number`; `p_item_name?`: `string`; `p_item_packageunit?`: `string`; `p_item_producturl?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_meal_create`: \{ `Args`: \{ `p_meal_code`: `string`; `p_meal_collectiondate?`: `string`; `p_meal_date`: `string`; `p_meal_event_id`: `string`; `p_meal_mealtype_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_meal_delete`: \{ `Args`: \{ `p_meal_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_meal_update`: \{ `Args`: \{ `p_meal_code?`: `string`; `p_meal_collectiondate?`: `string`; `p_meal_date?`: `string`; `p_meal_id`: `string`; `p_meal_mealtype_id?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_mealplan_bulk_delete`: \{ `Args`: \{ `p_unit_id`: `string`; `p_organisation_id`: `string`; `p_event_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_diners_bulk_import`: \{ `Args`: \{ `p_diners_data`: `Json`; `p_organisation_id`: `string`; `p_event_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_mealplans_bulk_import`: \{ `Args`: \{ `p_mealplans_data`: `Json`; `p_organisation_id`: `string`; `p_event_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_mealplan_create`: \{ `Args`: \{ `p_mealplan_dish_id`: `string`; `p_mealplan_dish_multiplier?`: `number`; `p_mealplan_meal_id`: `string`; `p_mealplan_unit_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_mealplan_delete`: \{ `Args`: \{ `p_mealplan_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_mealplan_update`: \{ `Args`: \{ `p_mealplan_dish_id?`: `string`; `p_mealplan_dish_multiplier?`: `number`; `p_mealplan_id`: `string`; `p_mealplan_meal_id?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_meals_bulk_import`: \{ `Args`: \{ `p_meals_data`: `Json`; `p_organisation_id`: `string`; `p_event_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_order_receiving_create`: \{ `Args`: \{ `p_ctn_qty_received?`: `number`; `p_delivery_date`: `string`; `p_item_id`: `string`; `p_organisation_id`: `string`; `p_package_size`: `number`; `p_package_type`: `string`; `p_pkg_qty_received?`: `number`; `p_supplier_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_order_receiving_delete`: \{ `Args`: \{ `p_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_order_receiving_update`: \{ `Args`: \{ `p_ctn_qty_received?`: `number`; `p_delivery_date?`: `string`; `p_id`: `string`; `p_item_id?`: `string`; `p_organisation_id?`: `string`; `p_package_size?`: `number`; `p_package_type?`: `string`; `p_pkg_qty_received?`: `number`; `p_supplier_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_order_receiving_upsert`: \{ `Args`: \{ `p_ctn_qty_received?`: `number`; `p_delivery_date`: `string`; `p_id?`: `string`; `p_item_id`: `string`; `p_organisation_id`: `string`; `p_package_size`: `number`; `p_package_type`: `string`; `p_pkg_qty_received?`: `number`; `p_supplier_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_package_create`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_package_ctnpkgs?`: `number`; `p_package_itemid`: `string`; `p_package_palletctns?`: `number`; `p_package_size`: `number`; `p_package_type?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_package_delete`: \{ `Args`: \{ `p_current_event_id`: `string`; `p_organisation_id?`: `string`; `p_package_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_package_update`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_package_ctnpkgs?`: `number`; `p_package_id`: `string`; `p_package_itemid?`: `string`; `p_package_palletctns?`: `number`; `p_package_size?`: `number`; `p_package_type?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_recipe_create`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_recipe_diettype_id`: `string`; `p_recipe_dish_id`: `string`; `p_recipe_item_id`: `string`; `p_recipe_qtypp`: `number`; `p_recipe_uptake`: `number`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_recipe_delete`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_recipe_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_recipe_update`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_recipe_diettype_id?`: `string`; `p_recipe_id`: `string`; `p_recipe_item_id?`: `string`; `p_recipe_qtypp?`: `number`; `p_recipe_uptake?`: `number`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supplier_create`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_supplier_contactemail?`: `string`; `p_supplier_contactname?`: `string`; `p_supplier_contactnumber?`: `string`; `p_supplier_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supplier_delete`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_supplier_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supplier_update`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_supplier_contactemail?`: `string`; `p_supplier_contactname?`: `string`; `p_supplier_contactnumber?`: `string`; `p_supplier_id`: `string`; `p_supplier_name?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supply_create`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_package_id`: `string`; `p_supplier_id?`: `string`; `p_supply_code?`: `string`; `p_supply_cost?`: `number`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supply_delete`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_supply_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_supply_update`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_package_id?`: `string`; `p_supplier_id?`: `string`; `p_supply_code?`: `string`; `p_supply_cost?`: `number`; `p_supply_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_unit_create`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_unit_contingent?`: `string`; `p_unit_event_id`: `string`; `p_unit_name?`: `string`; `p_unit_number`: `number`; `p_unit_subcamp?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_unit_delete`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_unit_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_unit_update`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_unit_contingent?`: `string`; `p_unit_id`: `string`; `p_unit_name?`: `string`; `p_unit_number?`: `number`; `p_unit_subcamp?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_cake_units_bulk_import`: \{ `Args`: \{ `p_units_data`: `Json`; `p_organisation_id`: `string`; `p_event_id?`: `string`; \}; `Returns`: `object`[]; \}; `app_medi_profile_update`: \{ `Args`: \{ `p_carer_name?`: `string`; `p_consent_date?`: `string`; `p_consent_given?`: `boolean`; `p_dietary_comments?`: `string`; `p_has_carer?`: `boolean`; `p_has_dietary_requirements?`: `boolean`; `p_health_care_card_expiry?`: `string`; `p_health_care_card_number?`: `string`; `p_health_fund_name?`: `string`; `p_health_fund_number?`: `string`; `p_health_satisfactory?`: `boolean`; `p_is_fully_immunised?`: `boolean`; `p_last_tetanus_date?`: `string`; `p_medicare_expiry?`: `string`; `p_medicare_number?`: `string`; `p_menu_selection?`: `string`; `p_profile_id`: `number`; `p_requires_support?`: `boolean`; `p_support_details?`: `string`; \}; `Returns`: `object`[]; \}; `app_name`: \{ `Args`: `never`; `Returns`: `string`; \}; `app_pace_contact_create`: \{ `Args`: \{ `p_contact_type_id`: `number`; `p_email?`: `string`; `p_expires_at?`: `string`; `p_first_name`: `string`; `p_last_name`: `string`; `p_member_id`: `string`; `p_permission_type?`: `string`; `p_phone_number?`: `string`; `p_phone_type_id?`: `number`; \}; `Returns`: `object`[]; \}; `app_pace_contact_delete`: \{ `Args`: \{ `p_contact_id`: `string`; \}; `Returns`: `object`[]; \}; `app_pace_contact_update`: \{ `Args`: \{ `p_contact_id`: `string`; `p_contact_type_id?`: `number`; `p_email?`: `string`; `p_expires_at?`: `string`; `p_first_name?`: `string`; `p_last_name?`: `string`; `p_permission_type?`: `string`; `p_phone_number?`: `string`; `p_phone_type_id?`: `number`; \}; `Returns`: `object`[]; \}; `app_pace_member_update`: \{ `Args`: \{ `p_date_of_birth?`: `string`; `p_gender_id?`: `number`; `p_member_id`: `string`; `p_membership_number?`: `string`; `p_membership_status?`: `string`; `p_membership_type_id?`: `number`; `p_postal_address?`: `string`; `p_pronoun_id?`: `number`; `p_residential_address?`: `string`; \}; `Returns`: `object`[]; \}; `app_pace_person_update`: \{ `Args`: \{ `p_email?`: `string`; `p_first_name?`: `string`; `p_last_name?`: `string`; `p_middle_name?`: `string`; `p_person_id`: `string`; `p_preferred_name?`: `string`; \}; `Returns`: `object`[]; \}; `app_seed_portal_page_permissions`: \{ `Args`: \{ `p_target_organisation_id`: `string`; `p_template_organisation_id?`: `string`; \}; `Returns`: `number`; \}; `audit_rpc_function_table_names`: \{ `Args`: `never`; `Returns`: `object`[]; \}; `check_public_event_access`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `boolean`; \}; `check_public_event_visible`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `boolean`; \}; `check_query_performance`: \{ `Args`: \{ `p_query`: `string`; \}; `Returns`: `object`[]; \}; `check_rbac_permission_with_context`: \{ `Args`: \{ `p_app_id?`: `string`; `p_event_id?`: `string`; `p_organisation_id`: `string`; `p_page_name`: `string`; `p_permission`: `string`; \}; `Returns`: `boolean`; \}; `check_user_address_access`: \{ `Args`: \{ `p_address_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_application_access`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_access_medi_log`: \{ `Args`: \{ `p_accessed_by`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_access_own_global_roles`: \{ `Args`: \{ `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_access_profile`: \{ `Args`: \{ `p_profile_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_access_profile_by_id`: \{ `Args`: \{ `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_manage_organisation`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_can_view_organisation`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_event_access`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_event_app_role_access`: \{ `Args`: \{ `p_event_id`: `string`; `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_has_report_access_for_person`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_invoice_access`: \{ `Args`: \{ `p_invoice_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_is_event_creator`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_is_org_admin`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_is_pace_member_by_email`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_medi_action_plan_access`: \{ `Args`: \{ `p_condition_id`: `number`; \}; `Returns`: `boolean`; \} \| \{ `Args`: \{ `p_condition_id`: `number`; `p_organisation_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_medi_action_plan_file_access`: \{ `Args`: \{ `p_record_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_medi_profile_access`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_medi_profile_access_via_profile_id`: \{ `Args`: \{ `p_profile_id`: `number`; \}; `Returns`: `boolean`; \}; `check_user_member_access`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_organisation_access`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_owns_pace_person_file`: \{ `Args`: \{ `p_record_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_owns_record`: \{ `Args`: \{ `p_record_id`: `string`; `p_table_name`: `string`; \}; `Returns`: `boolean`; \}; `check_user_pace_contact_access`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_pace_member_access`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_pace_member_access_via_member_id`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_pace_person_access`: \{ `Args`: \{ `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_pace_phone_access`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_person_access_via_member_roles`: \{ `Args`: \{ `p_person_id`: `string`; \}; `Returns`: `boolean`; \}; `check_user_profile_access`: \{ `Args`: \{ `p_profile_id`: `string`; \}; `Returns`: `boolean`; \}; `cleanup_expired_user_sessions`: \{ `Args`: \{ `p_retention_days?`: `number`; \}; `Returns`: `object`[]; \}; `cleanup_orphaned_file_references`: \{ `Args`: `never`; `Returns`: `number`; \}; `data_app_resolve`: \{ `Args`: \{ `p_app_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_deliveries_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_diettypes_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_diner_details`: \{ `Args`: \{ `p_diner_id`: `string`; `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_diners_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_unit_ids?`: `string`[]; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_dish_details`: \{ `Args`: \{ `p_dish_id`: `string`; `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_dishes_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_distribution_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_item_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_item_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_item_usage_check`: \{ `Args`: \{ `p_current_event_id`: `string`; `p_item_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_items_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \} \| \{ `Args`: \{ `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_meal_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_meal_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_mealplan_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_mealplan_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_mealplans_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_unit_ids`: `string`[]; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_meals_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_mealtypes_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_order_receiving_get`: \{ `Args`: \{ `p_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_order_receiving_list`: \{ `Args`: \{ `p_delivery_date?`: `string`; `p_item_id?`: `string`; `p_organisation_id`: `string`; `p_supplier_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_orders_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_package_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_package_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_package_usage_check`: \{ `Args`: \{ `p_current_event_id`: `string`; `p_organisation_id?`: `string`; `p_package_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_packages_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_item_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_recipe_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_recipe_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_recipes_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_supplier_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_supplier_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_suppliers_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_supplies_list`: \{ `Args`: \{ `p_event_id?`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_package_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_supply_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_supply_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_event_items_supply_stats`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_unit_details`: \{ `Args`: \{ `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_unit_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_cake_units_list`: \{ `Args`: \{ `p_event_id`: `string`; `p_limit?`: `number`; `p_offset?`: `number`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_event_get_by_code`: \{ `Args`: \{ `p_event_code`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_file_reference_by_category_list`: \{ `Args`: \{ `p_category`: `string`; `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_file_reference_count_get`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `number`; \}; `data_file_reference_create`: \{ `Args`: \{ `p_app_id`: `string`; `p_event_id?`: `string`; `p_file_metadata?`: `Json`; `p_file_path`: `string`; `p_is_public?`: `boolean`; `p_organisation_id?`: `string`; `p_page_context?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `string`; \}; `data_file_reference_delete`: \{ `Args`: \{ `p_delete_file?`: `boolean`; `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `boolean`; \}; `data_file_reference_get`: \{ `Args`: \{ `p_file_reference_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_file_reference_list`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_file_reference_signed_url_get`: \{ `Args`: \{ `p_expires_in?`: `number`; `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `string`; \}; `data_file_reference_url_get`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; `p_user_id?`: `string`; \}; `Returns`: `string`; \}; `data_medi_profile_get`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `object`[]; \}; `data_pace_contact_get`: \{ `Args`: \{ `p_contact_id`: `string`; \}; `Returns`: `object`[]; \}; `data_pace_contacts_list`: \{ `Args`: \{ `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_pace_linked_profiles_list`: \{ `Args`: \{ `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_pace_member_access_get`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `string`; \}; `data_pace_member_contacts_list`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `object`[]; \}; `data_pace_member_profile_get`: \{ `Args`: \{ `p_member_id`: `string`; \}; `Returns`: `object`[]; \}; `data_rbac_apps_list`: \{ `Args`: \{ `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_user_events_get`: \{ `Args`: \{ `p_app_name?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_user_organisation_roles_get`: \{ `Args`: \{ `p_organisation_id?`: `string`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `data_user_organisations_get`: \{ `Args`: \{ `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `data_user_unit_get`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `debug_auth_context`: \{ `Args`: `never`; `Returns`: `Json`; \}; `delete_event_app_access`: \{ `Args`: \{ `p_app_id`: `string`; `p_event_id`: `string`; `p_organisation_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `boolean`; \}; `generate_rls_performance_report`: \{ `Args`: `never`; `Returns`: `object`[]; \}; `get_active_organisations`: \{ `Args`: `never`; `Returns`: `object`[]; \}; `get_app_config`: \{ `Args`: \{ `app_id`: `string`; \}; `Returns`: `Json`; \}; `get_app_id`: \{ `Args`: \{ `p_app_name`: `string`; \}; `Returns`: `string`; \}; `get_current_organisation_context`: \{ `Args`: `never`; `Returns`: `string`; \}; `get_effective_user_id`: \{ `Args`: `never`; `Returns`: `string`; \}; `get_event_organisation_id`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `string`; \}; `get_file_url_for_record`: \{ `Args`: \{ `p_organisation_id`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; \}; `Returns`: `string`; \}; `get_files_to_migrate_to_public`: \{ `Args`: `never`; `Returns`: `object`[]; \}; `get_form_event_id`: \{ `Args`: \{ `p_form_id`: `string`; \}; `Returns`: `string`; \}; `get_form_response_event_id`: \{ `Args`: \{ `p_response_id`: `string`; \}; `Returns`: `string`; \}; `get_medi_conditions`: \{ `Args`: \{ `p_profile_id`: `number`; \}; `Returns`: `object`[]; \}; `get_medi_items`: \{ `Args`: \{ `p_profile_id`: `number`; \}; `Returns`: `object`[]; \}; `get_organisation_context`: \{ `Args`: `never`; `Returns`: `string`; \}; `get_organisation_members`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `object`[]; \}; `get_page_scope_type`: \{ `Args`: \{ `p_page_id`: `string`; \}; `Returns`: `string`; \}; `get_public_event_by_code`: \{ `Args`: \{ `event_code_param`: `string`; \}; `Returns`: `object`[]; \}; `get_unit_event_id`: \{ `Args`: \{ `p_unit_id`: `string`; \}; `Returns`: `string`; \}; `get_user_id_from_jwt`: \{ `Args`: `never`; `Returns`: `string`; \}; `get_user_member_ids`: \{ `Args`: \{ `p_user_id`: `string`; \}; `Returns`: `string`[]; \}; `has_files`: \{ `Args`: \{ `p_organisation_id`: `string`; `p_record_id`: `string`; `p_table_name`: `string`; \}; `Returns`: `boolean`; \}; `insert_event_app_access`: \{ `Args`: \{ `p_app_id`: `string`; `p_created_by?`: `string`; `p_event_id`: `string`; `p_organisation_id`: `string`; `p_updated_by?`: `string`; \}; `Returns`: `string`; \}; `insert_journal_image`: \{ `Args`: \{ `p_created_by`: `string`; `p_file_name`: `string`; `p_file_path`: `string`; `p_post_id`: `string`; \}; `Returns`: `undefined`; \}; `is_authenticated_user`: \{ `Args`: `never`; `Returns`: `boolean`; \}; `is_event_visible`: \{ `Args`: \{ `p_event_id`: `string`; \}; `Returns`: `boolean`; \}; `is_form_published_and_visible`: \{ `Args`: \{ `p_form_id`: `string`; \}; `Returns`: `boolean`; \}; `is_person_owned_by_user`: \{ `Args`: \{ `p_person_id`: `string`; `p_user_id?`: `string`; \}; `Returns`: `boolean`; \}; `is_service_role`: \{ `Args`: `never`; `Returns`: `boolean`; \}; `is_super_admin`: \{ `Args`: \{ `p_user_id?`: `string`; \}; `Returns`: `boolean`; \}; `is_user_super_admin`: \{ `Args`: `never`; `Returns`: `boolean`; \}; `populate_location_descriptions`: \{ `Args`: `never`; `Returns`: `undefined`; \}; `populate_location_display_names`: \{ `Args`: `never`; `Returns`: `undefined`; \}; `rbac_audit_log`: \{ `Args`: \{ `p_event_type`: `string`; `p_ip_address?`: `unknown`; `p_metadata?`: `Json`; `p_organisation_id?`: `string`; `p_permission?`: `string`; `p_user_agent?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \} \| \{ `Args`: \{ `p_event_data?`: `Json`; `p_event_type`: `string`; `p_resource_id`: `string`; `p_resource_type`: `string`; `p_user_id`: `string`; \}; `Returns`: `string`; \}; `rbac_check_distribution_or_page_permission`: \{ `Args`: \{ `p_event_id`: `string`; `p_organisation_id`: `string`; `p_page_name`: `string`; `p_permission_pattern`: `string`; \}; `Returns`: `boolean`; \}; `rbac_check_permission_simplified`: \{ `Args`: \{ `p_app_id?`: `string`; `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_page_id?`: `string`; `p_permission`: `string`; `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `rbac_check_rls_status`: \{ `Args`: `never`; `Returns`: `object`[]; \}; `rbac_detect_concurrent_sessions`: \{ `Args`: \{ `p_device_fingerprint?`: `string`; `p_timeout_seconds?`: `number`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `rbac_enforce_session_timeout`: \{ `Args`: \{ `p_timeout_minutes?`: `number`; \}; `Returns`: `object`[]; \}; `rbac_generate_device_fingerprint`: \{ `Args`: `never`; `Returns`: `string`; \}; `rbac_invalidate_other_sessions`: \{ `Args`: \{ `p_current_device_fingerprint`: `string`; `p_user_id`: `string`; \}; `Returns`: `number`; \}; `rbac_permissions_get`: \{ `Args`: \{ `p_app_id?`: `string`; `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_page_id?`: `string`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `rbac_role_grant`: \{ `Args`: \{ `p_context_id?`: `string`; `p_granted_by?`: `string`; `p_role_name`: `string`; `p_role_type`: `string`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `rbac_role_revoke`: \{ `Args`: \{ `p_context_id?`: `string`; `p_revoked_by?`: `string`; `p_role_name`: `string`; `p_role_type`: `string`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `rbac_role_validate`: \{ `Args`: \{ `p_context_id?`: `string`; `p_role_name`: `string`; `p_role_type`: `string`; `p_user_id`: `string`; \}; `Returns`: `object`[]; \}; `rbac_roles_list`: \{ `Args`: \{ `p_app_id?`: `string`; `p_event_id?`: `string`; `p_organisation_id?`: `string`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `rbac_session_track`: \{ `Args`: \{ `p_app_id?`: `string`; `p_device_fingerprint?`: `string`; `p_event_id?`: `string`; `p_ip_address?`: `string`; `p_session_type?`: `string`; `p_user_agent?`: `string`; `p_user_id`: `string`; \}; `Returns`: `string`; \}; `rbac_super_admin_check`: \{ `Args`: \{ `p_user_id`: `string`; \}; `Returns`: `boolean`; \}; `safe_get_user_id_for_rls`: \{ `Args`: `never`; `Returns`: `string`; \}; `secure_query`: \{ `Args`: \{ `p_organisation_id`: `string`; `p_select_columns`: `string`; `p_table_name`: `string`; `p_user_id`: `string`; \}; `Returns`: `Json`; \}; `set_app_organisation_id`: \{ `Args`: \{ `p_organisation_id`: `string`; \}; `Returns`: `undefined`; \}; `set_organisation_context`: \{ `Args`: \{ `org_id`: `string`; \}; `Returns`: `undefined`; \}; `storage_check_medi_action_plan_path`: \{ `Args`: \{ `p_path`: `string`; \}; `Returns`: `boolean`; \}; `storage_check_org_scoped_path`: \{ `Args`: \{ `p_path`: `string`; \}; `Returns`: `boolean`; \}; `storage_check_user_scoped_path`: \{ `Args`: \{ `p_path`: `string`; \}; `Returns`: `boolean`; \}; `sys_audit_cleanup`: \{ `Args`: \{ `p_days_to_keep?`: `number`; `p_user_id?`: `string`; \}; `Returns`: `object`[]; \}; `validate_base_question_options`: \{ `Args`: \{ `options`: `Json`; `question_type`: `string`; \}; `Returns`: `boolean`; \}; `validate_organisation_access`: \{ `Args`: \{ `org_id`: `string`; \}; `Returns`: `boolean`; \}; `verify_greenpay_signature`: \{ `Args`: \{ `payload`: `string`; `signature`: `string`; \}; `Returns`: `boolean`; \}; `verify_webhook_signature`: \{ `Args`: \{ `payload`: `string`; `secret`: `string`; `signature`: `string`; \}; `Returns`: `boolean`; \}; \}; `Enums`: \{ `access_level`: `"viewer"` \| `"participant"` \| `"planner"` \| `"super"`; `crud_operation`: `"read"` \| `"create"` \| `"update"` \| `"delete"`; `dd_mandate_status`: `"active"` \| `"pending"` \| `"revoked"` \| `"failed"`; `form_status`: `"draft"` \| `"published"` \| `"closed"`; `journal_post_status`: `"draft"` \| `"published"`; `organisation_role`: `"org_admin"` \| `"member"` \| `"admin"` \| `"super_admin"` \| `"moderator"`; `pace_membership_status`: `"Provisional"` \| `"Cancelled"` \| `"Active"` \| `"Suspended"` \| `"Resigned"`; `payment_method_type`: `"card"` \| `"bank"`; `rating`: `"Low"` \| `"Medium"` \| `"High"`; `rbac_event_app_role`: `"viewer"` \| `"participant"` \| `"planner"` \| `"event_admin"`; `rbac_global_role`: `"super_admin"`; `rbac_organisation_role`: `"org_admin"` \| `"leader"` \| `"member"` \| `"supporter"`; `risk_consequence`: `"Insignificant"` \| `"Minor"` \| `"Significant"` \| `"Major"` \| `"Severe"`; `risk_likelihood`: `"Rare"` \| `"Unlikely"` \| `"Possible"` \| `"Likely"` \| `"Almost certain"`; `risk_status`: `"Planned"` \| `"In progress"` \| `"Complete"`; `risk_type`: `"Transport"` \| `"Accommodation"` \| `"Activity"` \| `"Financial"` \| `"Medical/Welfare"` \| `"Operational"`; `risk_when`: `"Prior"` \| `"During"`; \}; `CompositeTypes`: \{ \}; \}, \{ `PostgrestVersion`: `"13.0.5"`; \}\> | `null` | `undefined`
22
+
23
+ ### context?
24
+
25
+ `string`
26
+
27
+ Context about where the client is being used (for better error messages)
28
+
29
+ ## Returns
30
+
31
+ `void`
32
+
33
+ ## Example
34
+
35
+ ```tsx
36
+ import { warnIfInsecureClient } from '@jmruthers/pace-core/rbac/utils/clientSecurity';
37
+
38
+ const supabase = createClient(...); // Wrong!
39
+ warnIfInsecureClient(supabase, 'MyComponent');
40
+ ```
@@ -0,0 +1,67 @@
1
+ [**@jmruthers/pace-core v0.6.12**](../README.md)
2
+
3
+ ***
4
+
5
+ [@jmruthers/pace-core](../globals.md) / withAccessLevelGuard
6
+
7
+ # Function: withAccessLevelGuard()
8
+
9
+ > **withAccessLevelGuard**\<`T`, `R`\>(`minLevel`, `handler`): (...`args`) => `Promise`\<`R`\>
10
+
11
+ Defined in: [rbac/adapters.tsx:116](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/adapters.tsx#L116)
12
+
13
+ Access Level Guard for Server Handlers
14
+
15
+ Wraps a server handler with access level checking.
16
+
17
+ ## Type Parameters
18
+
19
+ ### T
20
+
21
+ `T` *extends* readonly \[`ServerRequest`, `unknown`\]
22
+
23
+ ### R
24
+
25
+ `R`
26
+
27
+ ## Parameters
28
+
29
+ ### minLevel
30
+
31
+ Minimum access level required
32
+
33
+ `"viewer"` | `"participant"` | `"planner"` | `"admin"` | `"super"`
34
+
35
+ ### handler
36
+
37
+ (...`args`) => `Promise`\<`R`\>
38
+
39
+ Handler function to wrap
40
+
41
+ ## Returns
42
+
43
+ Wrapped handler function
44
+
45
+ > (...`args`): `Promise`\<`R`\>
46
+
47
+ ### Parameters
48
+
49
+ #### args
50
+
51
+ ...`T`
52
+
53
+ ### Returns
54
+
55
+ `Promise`\<`R`\>
56
+
57
+ ## Example
58
+
59
+ ```typescript
60
+ const adminHandler = withAccessLevelGuard(
61
+ 'admin',
62
+ async (req, res) => {
63
+ // Admin-only logic here
64
+ res.json({ success: true });
65
+ }
66
+ );
67
+ ```