monorise 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/dist/base/index.d.ts +254 -0
  2. package/dist/base/index.js +44 -0
  3. package/dist/base/index.js.map +1 -0
  4. package/dist/cli/cli.d.ts +1 -0
  5. package/dist/cli/cli.js +461 -0
  6. package/dist/cli/cli.js.map +1 -0
  7. package/dist/core/index.d.ts +4767 -0
  8. package/dist/core/index.js +7941 -0
  9. package/dist/core/index.js.map +1 -0
  10. package/dist/index.d.ts +11 -0
  11. package/dist/index.js +11 -0
  12. package/dist/react/actions/app.action.d.ts +46 -0
  13. package/dist/react/actions/app.action.d.ts.map +1 -0
  14. package/dist/react/actions/auth.action.d.ts +24 -0
  15. package/dist/react/actions/auth.action.d.ts.map +1 -0
  16. package/dist/react/actions/config.action.d.ts +10 -0
  17. package/dist/react/actions/config.action.d.ts.map +1 -0
  18. package/dist/react/actions/core.action.d.ts +219 -0
  19. package/dist/react/actions/core.action.d.ts.map +1 -0
  20. package/dist/react/index.d.ts +1093 -0
  21. package/dist/react/index.d.ts.map +1 -0
  22. package/dist/react/index.js +2344 -0
  23. package/dist/react/index.js.map +1 -0
  24. package/dist/react/lib/api.d.ts +38 -0
  25. package/dist/react/lib/api.d.ts.map +1 -0
  26. package/dist/react/lib/constant.d.ts +2 -0
  27. package/dist/react/lib/constant.d.ts.map +1 -0
  28. package/dist/react/lib/entity.d.ts +10 -0
  29. package/dist/react/lib/entity.d.ts.map +1 -0
  30. package/dist/react/lib/utils.d.ts +10 -0
  31. package/dist/react/lib/utils.d.ts.map +1 -0
  32. package/dist/react/services/auth.service.d.ts +21 -0
  33. package/dist/react/services/auth.service.d.ts.map +1 -0
  34. package/dist/react/services/core.service.d.ts +76 -0
  35. package/dist/react/services/core.service.d.ts.map +1 -0
  36. package/dist/react/services/filestore.service.d.ts +22 -0
  37. package/dist/react/services/filestore.service.d.ts.map +1 -0
  38. package/dist/react/store/monorise.store.d.ts +169 -0
  39. package/dist/react/store/monorise.store.d.ts.map +1 -0
  40. package/dist/react/tsup.config.d.ts +3 -0
  41. package/dist/react/tsup.config.d.ts.map +1 -0
  42. package/dist/react/types/api.type.d.ts +30 -0
  43. package/dist/react/types/api.type.d.ts.map +1 -0
  44. package/dist/react/types/axios.type.d.ts +13 -0
  45. package/dist/react/types/axios.type.d.ts.map +1 -0
  46. package/dist/react/types/monorise.type.d.ts +8 -0
  47. package/dist/react/types/monorise.type.d.ts.map +1 -0
  48. package/dist/react/types/mutual.type.d.ts +21 -0
  49. package/dist/react/types/mutual.type.d.ts.map +1 -0
  50. package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
  51. package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
  52. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
  53. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
  54. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
  55. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
  56. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
  57. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
  58. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
  59. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
  60. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
  61. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
  62. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
  63. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
  64. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
  65. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
  66. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
  67. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
  68. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
  69. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
  70. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
  71. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
  72. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
  73. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
  74. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
  75. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
  76. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
  77. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
  78. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
  79. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
  80. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
  81. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
  82. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
  83. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
  84. package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
  85. package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
  86. package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
  87. package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
  88. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
  89. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
  90. package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
  91. package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
  92. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
  93. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
  94. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
  95. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
  96. package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
  97. package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
  98. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
  99. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
  100. package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
  101. package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
  102. package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
  103. package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
  104. package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
  105. package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
  106. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
  107. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
  108. package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
  109. package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
  110. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
  111. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
  112. package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
  113. package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
  114. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
  115. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
  116. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
  117. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
  118. package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
  119. package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
  120. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
  121. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
  122. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
  123. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
  124. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
  125. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
  126. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
  127. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
  128. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
  129. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
  130. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
  131. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
  132. package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
  133. package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
  134. package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
  135. package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
  136. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
  137. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
  138. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
  139. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
  140. package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
  141. package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
  142. package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
  143. package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
  144. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
  145. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
  146. package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
  147. package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
  148. package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
  149. package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
  150. package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
  151. package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
  152. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
  153. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
  154. package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
  155. package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
  156. package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
  157. package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
  158. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
  159. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
  160. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
  161. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
  162. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
  163. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
  164. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
  165. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
  166. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
  167. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
  168. package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
  169. package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
  170. package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
  171. package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
  172. package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
  173. package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
  174. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
  175. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
  176. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
  177. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
  178. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
  179. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
  180. package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
  181. package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
  182. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
  183. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
  184. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
  185. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
  186. package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
  187. package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
  188. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
  189. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
  190. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
  191. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
  192. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
  193. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
  194. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
  195. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
  196. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
  197. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
  198. package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
  199. package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
  200. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
  201. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
  202. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
  203. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
  204. package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
  205. package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
  206. package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
  207. package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
  208. package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
  209. package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
  210. package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
  211. package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
  212. package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
  213. package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
  214. package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
  215. package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
  216. package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
  217. package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
  218. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
  219. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
  220. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
  221. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
  222. package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
  223. package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
  224. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
  225. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
  226. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
  227. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
  228. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
  229. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
  230. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
  231. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
  232. package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
  233. package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
  234. package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
  235. package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
  236. package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
  237. package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
  238. package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
  239. package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
  240. package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
  241. package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
  242. package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
  243. package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
  244. package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
  245. package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
  246. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
  247. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
  248. package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
  249. package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
  250. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
  251. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
  252. package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
  253. package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
  254. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
  255. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
  256. package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
  257. package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
  258. package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
  259. package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
  260. package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
  261. package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
  262. package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
  263. package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
  264. package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
  265. package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
  266. package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
  267. package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
  268. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
  269. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
  270. package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
  271. package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
  272. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
  273. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
  274. package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
  275. package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
  276. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
  277. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
  278. package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
  279. package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
  280. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
  281. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
  282. package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
  283. package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
  284. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
  285. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
  286. package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
  287. package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
  288. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
  289. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
  290. package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
  291. package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
  292. package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
  293. package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
  294. package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
  295. package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
  296. package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
  297. package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
  298. package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
  299. package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
  300. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
  301. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
  302. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
  303. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
  304. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
  305. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
  306. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
  307. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
  308. package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
  309. package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
  310. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
  311. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
  312. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
  313. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
  314. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
  315. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
  316. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
  317. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
  318. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
  319. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
  320. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
  321. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
  322. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
  323. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
  324. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
  325. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
  326. package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
  327. package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
  328. package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
  329. package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
  330. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
  331. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
  332. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
  333. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
  334. package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
  335. package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
  336. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
  337. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
  338. package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
  339. package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
  340. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
  341. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
  342. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
  343. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
  344. package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
  345. package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
  346. package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
  347. package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
  348. package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
  349. package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
  350. package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
  351. package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
  352. package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
  353. package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
  354. package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
  355. package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
  356. package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
  357. package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
  358. package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
  359. package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
  360. package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
  361. package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
  362. package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
  363. package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
  364. package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
  365. package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
  366. package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
  367. package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
  368. package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
  369. package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
  370. package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
  371. package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
  372. package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
  373. package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
  374. package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
  375. package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
  376. package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
  377. package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
  378. package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
  379. package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
  380. package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
  381. package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
  382. package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
  383. package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
  384. package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
  385. package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
  386. package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
  387. package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
  388. package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
  389. package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
  390. package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
  391. package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
  392. package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
  393. package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
  394. package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
  395. package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
  396. package/dist/sst/components/dashboard.d.ts +2 -0
  397. package/dist/sst/components/dashboard.d.ts.map +1 -0
  398. package/dist/sst/components/monorise-core.d.ts +18 -0
  399. package/dist/sst/components/monorise-core.d.ts.map +1 -0
  400. package/dist/sst/components/q-function.d.ts +17 -0
  401. package/dist/sst/components/q-function.d.ts.map +1 -0
  402. package/dist/sst/components/single-table.d.ts +14 -0
  403. package/dist/sst/components/single-table.d.ts.map +1 -0
  404. package/dist/sst/constants/event.d.ts +73 -0
  405. package/dist/sst/constants/event.d.ts.map +1 -0
  406. package/dist/sst/constants/table.d.ts +3 -0
  407. package/dist/sst/constants/table.d.ts.map +1 -0
  408. package/dist/sst/index.d.ts +11 -0
  409. package/dist/sst/index.d.ts.map +1 -0
  410. package/dist/sst/index.js +609 -0
  411. package/dist/sst/index.js.map +1 -0
  412. package/dist/sst/sst.config.d.ts +3 -0
  413. package/dist/sst/sst.config.d.ts.map +1 -0
  414. package/dist/sst/tsup.config.d.ts +3 -0
  415. package/dist/sst/tsup.config.d.ts.map +1 -0
  416. package/package.json +83 -0
@@ -0,0 +1,1093 @@
1
+ import type { Entity, MonoriseEntityConfig } from '@monorise/base';
2
+ import type { AxiosResponse } from 'axios';
3
+ import { getEntityRequestKey, getMutualRequestKey, getTagRequestKey, getUniqueFieldRequestKey } from './lib/utils';
4
+ import { Mutual, MutualData, MutualDataMapping, MutualDataWithIndex } from './types/mutual.type';
5
+ type Options<T extends Record<string, React.ComponentType<any>>> = {
6
+ authBaseUrl?: string;
7
+ filestoreBaseUrl?: string;
8
+ entityBaseUrl?: string;
9
+ mutualBaseUrl?: string;
10
+ tagBaseUrl?: string;
11
+ modals?: T;
12
+ entityConfig: Record<Entity, MonoriseEntityConfig>;
13
+ onApiSuccess?: <T>(response: AxiosResponse<T>, feedbackSuccess: ((data: AxiosResponse<T>['data']) => React.ReactNode) | string | boolean) => void;
14
+ };
15
+ declare const Monorise: {
16
+ listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<{
17
+ error: Error & {
18
+ originalError?: unknown;
19
+ };
20
+ } | undefined>;
21
+ createEntity: <T extends Entity>(entityType: T, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
22
+ data: import("@monorise/base").CreatedEntity<T>;
23
+ error?: undefined;
24
+ } | {
25
+ error: Error & {
26
+ originalError?: unknown;
27
+ };
28
+ data?: undefined;
29
+ }>;
30
+ upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
31
+ data: import("@monorise/base").CreatedEntity<T>;
32
+ error?: undefined;
33
+ } | {
34
+ error: Error & {
35
+ originalError?: unknown;
36
+ };
37
+ data?: undefined;
38
+ }>;
39
+ getEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
40
+ data?: import("@monorise/base").CreatedEntity<T>;
41
+ error?: import("./types/api.type").ApplicationRequestError | (Error & {
42
+ originalError?: unknown;
43
+ });
44
+ }>;
45
+ editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<{
46
+ data: import("@monorise/base").CreatedEntity<T>;
47
+ error?: undefined;
48
+ } | {
49
+ error: Error & {
50
+ originalError?: unknown;
51
+ };
52
+ data?: undefined;
53
+ }>;
54
+ deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
55
+ data: {
56
+ entityId: string;
57
+ };
58
+ error?: undefined;
59
+ } | {
60
+ error: Error & {
61
+ originalError?: unknown;
62
+ };
63
+ data?: undefined;
64
+ }>;
65
+ getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
66
+ defaultMutualData?: Record<string, any>;
67
+ }) => Promise<{
68
+ error: import("./types/api.type").ApplicationRequestError;
69
+ data?: undefined;
70
+ } | {
71
+ data: Mutual<B, T>;
72
+ error?: undefined;
73
+ } | {
74
+ error: Error & {
75
+ originalError?: unknown;
76
+ };
77
+ data?: undefined;
78
+ }>;
79
+ updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("@monorise/base").DraftEntity<T>>) => Promise<void>;
80
+ createMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
81
+ data: Mutual<B, T>;
82
+ error?: undefined;
83
+ } | {
84
+ error: Error & {
85
+ originalError?: unknown;
86
+ };
87
+ data?: undefined;
88
+ }>;
89
+ createLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data: import("@monorise/base").EntitySchemaMap[T] | Record<string, any>) => Promise<void>;
90
+ upsertLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data?: import("@monorise/base").EntitySchemaMap[T] | Record<string, any>) => Promise<void>;
91
+ editMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
92
+ data: Mutual<B, T>;
93
+ error?: undefined;
94
+ } | {
95
+ error: Error & {
96
+ originalError?: unknown;
97
+ };
98
+ data?: undefined;
99
+ }>;
100
+ deleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId?: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
101
+ data: any;
102
+ error?: undefined;
103
+ } | {
104
+ error: Error & {
105
+ originalError?: unknown;
106
+ };
107
+ data?: undefined;
108
+ }>;
109
+ deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void;
110
+ useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
111
+ entity: import("@monorise/base").CreatedEntity<T> | undefined;
112
+ isLoading: boolean;
113
+ error?: import("./types/api.type").ApplicationRequestError;
114
+ requestKey: string;
115
+ isFirstFetched?: boolean;
116
+ refetch: () => Promise<import("@monorise/base").CreatedEntity<T> | undefined>;
117
+ };
118
+ useEntityByUniqueField: <T extends Entity>(entityType: T, fieldName: string, value?: string, opts?: import("./services/core.service").CommonOptions) => {
119
+ entity: import("@monorise/base").CreatedEntity<T> | undefined;
120
+ isLoading: boolean;
121
+ error?: import("./types/api.type").ApplicationRequestError;
122
+ requestKey: string;
123
+ isFirstFetched?: boolean;
124
+ refetch: () => Promise<import("@monorise/base").CreatedEntity<T> | undefined>;
125
+ };
126
+ useEntities: <T extends Entity>(entityType: T, params?: {
127
+ skRange?: {
128
+ start: string;
129
+ end: string;
130
+ };
131
+ all?: boolean;
132
+ }, opts?: import("./services/core.service").CommonOptions & {
133
+ searchInterval?: number;
134
+ }) => {
135
+ isLoading: boolean;
136
+ entities?: import("@monorise/base").CreatedEntity<T>[];
137
+ entitiesMap: Map<string, import("@monorise/base").CreatedEntity<T>>;
138
+ error?: import("./types/api.type").ApplicationRequestError;
139
+ requestKey: string;
140
+ searchField: {
141
+ value: string;
142
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
143
+ };
144
+ lastKey?: string;
145
+ isFirstFetched?: boolean;
146
+ listMore: () => void;
147
+ refetch: () => void;
148
+ };
149
+ useMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byId: string | null, id: string, opts?: import("./services/core.service").CommonOptions & {
150
+ defaultMutualData?: Record<string, any>;
151
+ }) => {
152
+ mutual?: Mutual<B, T>;
153
+ isLoading: boolean;
154
+ error?: import("./types/api.type").ApplicationRequestError;
155
+ requestKey: string;
156
+ };
157
+ useMutuals: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byId?: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => {
158
+ mutuals: Mutual<B, T>[];
159
+ mutualsMap: Map<string, Mutual<B, T>>;
160
+ isLoading: boolean;
161
+ requestKey: string;
162
+ error?: import("./types/api.type").ApplicationRequestError;
163
+ isFirstFetched?: boolean;
164
+ lastKey?: string;
165
+ listMore?: () => void;
166
+ };
167
+ useTaggedEntities: <T extends Entity>(entityType: T, tagName: string, opts?: import("./services/core.service").CommonOptions & {
168
+ params?: import("./services/core.service").ListEntitiesByTagParams;
169
+ }) => {
170
+ entities: import("@monorise/base").CreatedEntity<T>[];
171
+ entitiesMap: Map<string, import("@monorise/base").CreatedEntity<T>>;
172
+ isLoading: boolean;
173
+ requestKey: string;
174
+ error: import("./types/api.type").ApplicationRequestError | undefined;
175
+ isFirstFetched: boolean;
176
+ lastKey: string;
177
+ refetch: () => Promise<{
178
+ error: import("./types/api.type").ApplicationRequestError;
179
+ data?: undefined;
180
+ } | {
181
+ data: {
182
+ entities: import("@monorise/base").CreatedEntity<Entity>[];
183
+ lastKey: null;
184
+ };
185
+ error?: undefined;
186
+ } | {
187
+ data: {
188
+ entities: import("@monorise/base").CreatedEntity<T>[];
189
+ lastKey: string;
190
+ };
191
+ error?: undefined;
192
+ } | {
193
+ error: Error & {
194
+ originalError?: unknown;
195
+ };
196
+ data?: undefined;
197
+ } | undefined>;
198
+ listMore: () => Promise<{
199
+ error: import("./types/api.type").ApplicationRequestError;
200
+ data?: undefined;
201
+ } | {
202
+ data: {
203
+ entities: import("@monorise/base").CreatedEntity<Entity>[];
204
+ lastKey: null;
205
+ };
206
+ error?: undefined;
207
+ } | {
208
+ data: {
209
+ entities: import("@monorise/base").CreatedEntity<T>[];
210
+ lastKey: string;
211
+ };
212
+ error?: undefined;
213
+ } | {
214
+ error: Error & {
215
+ originalError?: unknown;
216
+ };
217
+ data?: undefined;
218
+ } | undefined>;
219
+ };
220
+ useEntityState: <T extends Entity>(entityType: T) => Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>[T];
221
+ updateLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, data?: Partial<import("@monorise/base").DraftEntity<T>>, params?: import("./services/core.service").ListEntitiesByTagParams) => void;
222
+ deleteLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, params?: import("./services/core.service").ListEntitiesByTagParams) => void;
223
+ requestLogin: (entityType: Entity, payload: {
224
+ email: string;
225
+ }) => Promise<any>;
226
+ useProfile: <T extends Record<string, unknown>>() => T & {
227
+ displayName: string;
228
+ email: string;
229
+ accountId: string;
230
+ impersonatorId?: string;
231
+ };
232
+ getProfile: () => Promise<void>;
233
+ useIsUnauthorized: () => {
234
+ isUnauthorized: boolean;
235
+ isLoading: boolean;
236
+ };
237
+ setIsUnauthorized: (isUnauthorized: boolean) => void;
238
+ logout: () => void;
239
+ startLoading: <T>({ requestKey, isInterruptive, message, request, }: {
240
+ requestKey: string;
241
+ isInterruptive?: boolean;
242
+ message?: string | boolean;
243
+ request: Promise<T>;
244
+ }) => void;
245
+ endLoading: ({ requestKey, isInterruptive }: {
246
+ requestKey: string;
247
+ isInterruptive?: boolean;
248
+ }) => void;
249
+ setError: ({ requestKey, error }: {
250
+ requestKey: string;
251
+ error: import("./types/api.type").ApplicationRequestError;
252
+ }) => void;
253
+ getError: (requestKey: string) => import("./types/api.type").ApplicationRequestError | undefined;
254
+ clearError: (requestKey: string) => void;
255
+ openModal: (modal: {
256
+ name: string;
257
+ context?: unknown;
258
+ }) => void;
259
+ closeModal: () => void;
260
+ checkIsLoading: (requestKey?: string) => boolean;
261
+ useLoadStore: (requestKey?: string) => boolean;
262
+ useInterruptiveLoadStore: () => {
263
+ isLoading: boolean;
264
+ message: string;
265
+ };
266
+ useErrorStore: (requestKey: string) => import("./types/api.type").ApplicationRequestError | undefined;
267
+ useModalStore: () => {
268
+ name: string | null;
269
+ context?: unknown;
270
+ };
271
+ setOptions: (opts: {
272
+ modals?: Record<string, React.ComponentType<unknown>>;
273
+ }) => void;
274
+ setConfig: (config: Record<Entity, MonoriseEntityConfig>) => void;
275
+ getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>;
276
+ useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>;
277
+ config: <T extends Record<string, React.ComponentType<any>>>(opts: Options<T>) => void;
278
+ store: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<{
279
+ app: {
280
+ ongoingRequests: Map<string, Promise<unknown>>;
281
+ loadStack: Map<string, number>;
282
+ intLoadStack: Map<string, number>;
283
+ loadingMessage: string;
284
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
285
+ modal: {
286
+ name: string | null;
287
+ context?: unknown;
288
+ };
289
+ };
290
+ config: Record<Entity, MonoriseEntityConfig>;
291
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
292
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
293
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
294
+ auth: {
295
+ isUnauthorized: boolean;
296
+ profile: {
297
+ displayName: string;
298
+ email: string;
299
+ accountId: string;
300
+ };
301
+ isLoading: boolean;
302
+ };
303
+ }>, "setState"> & {
304
+ setState<A extends string | {
305
+ type: string;
306
+ }>(partial: {
307
+ app: {
308
+ ongoingRequests: Map<string, Promise<unknown>>;
309
+ loadStack: Map<string, number>;
310
+ intLoadStack: Map<string, number>;
311
+ loadingMessage: string;
312
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
313
+ modal: {
314
+ name: string | null;
315
+ context?: unknown;
316
+ };
317
+ };
318
+ config: Record<Entity, MonoriseEntityConfig>;
319
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
320
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
321
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
322
+ auth: {
323
+ isUnauthorized: boolean;
324
+ profile: {
325
+ displayName: string;
326
+ email: string;
327
+ accountId: string;
328
+ };
329
+ isLoading: boolean;
330
+ };
331
+ } | Partial<{
332
+ app: {
333
+ ongoingRequests: Map<string, Promise<unknown>>;
334
+ loadStack: Map<string, number>;
335
+ intLoadStack: Map<string, number>;
336
+ loadingMessage: string;
337
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
338
+ modal: {
339
+ name: string | null;
340
+ context?: unknown;
341
+ };
342
+ };
343
+ config: Record<Entity, MonoriseEntityConfig>;
344
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
345
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
346
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
347
+ auth: {
348
+ isUnauthorized: boolean;
349
+ profile: {
350
+ displayName: string;
351
+ email: string;
352
+ accountId: string;
353
+ };
354
+ isLoading: boolean;
355
+ };
356
+ }> | ((state: {
357
+ app: {
358
+ ongoingRequests: Map<string, Promise<unknown>>;
359
+ loadStack: Map<string, number>;
360
+ intLoadStack: Map<string, number>;
361
+ loadingMessage: string;
362
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
363
+ modal: {
364
+ name: string | null;
365
+ context?: unknown;
366
+ };
367
+ };
368
+ config: Record<Entity, MonoriseEntityConfig>;
369
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
370
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
371
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
372
+ auth: {
373
+ isUnauthorized: boolean;
374
+ profile: {
375
+ displayName: string;
376
+ email: string;
377
+ accountId: string;
378
+ };
379
+ isLoading: boolean;
380
+ };
381
+ }) => {
382
+ app: {
383
+ ongoingRequests: Map<string, Promise<unknown>>;
384
+ loadStack: Map<string, number>;
385
+ intLoadStack: Map<string, number>;
386
+ loadingMessage: string;
387
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
388
+ modal: {
389
+ name: string | null;
390
+ context?: unknown;
391
+ };
392
+ };
393
+ config: Record<Entity, MonoriseEntityConfig>;
394
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
395
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
396
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
397
+ auth: {
398
+ isUnauthorized: boolean;
399
+ profile: {
400
+ displayName: string;
401
+ email: string;
402
+ accountId: string;
403
+ };
404
+ isLoading: boolean;
405
+ };
406
+ } | Partial<{
407
+ app: {
408
+ ongoingRequests: Map<string, Promise<unknown>>;
409
+ loadStack: Map<string, number>;
410
+ intLoadStack: Map<string, number>;
411
+ loadingMessage: string;
412
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
413
+ modal: {
414
+ name: string | null;
415
+ context?: unknown;
416
+ };
417
+ };
418
+ config: Record<Entity, MonoriseEntityConfig>;
419
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
420
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
421
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
422
+ auth: {
423
+ isUnauthorized: boolean;
424
+ profile: {
425
+ displayName: string;
426
+ email: string;
427
+ accountId: string;
428
+ };
429
+ isLoading: boolean;
430
+ };
431
+ }>), replace?: boolean | undefined, action?: A | undefined): void;
432
+ }>;
433
+ axios: {
434
+ post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
435
+ requestKey: string;
436
+ isInterruptive?: boolean;
437
+ feedback?: {
438
+ loading?: string | boolean;
439
+ success?: ((data: any) => string) | string | boolean;
440
+ failure?: string | boolean;
441
+ };
442
+ }) => Promise<R>;
443
+ put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
444
+ requestKey: string;
445
+ isInterruptive?: boolean;
446
+ feedback?: {
447
+ loading?: string | boolean;
448
+ success?: ((data: any) => string) | string | boolean;
449
+ failure?: string | boolean;
450
+ };
451
+ }) => Promise<R>;
452
+ patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
453
+ requestKey: string;
454
+ isInterruptive?: boolean;
455
+ feedback?: {
456
+ loading?: string | boolean;
457
+ success?: ((data: any) => string) | string | boolean;
458
+ failure?: string | boolean;
459
+ };
460
+ }) => Promise<R>;
461
+ delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
462
+ requestKey: string;
463
+ isInterruptive?: boolean;
464
+ feedback?: {
465
+ loading?: string | boolean;
466
+ success?: ((data: any) => string) | string | boolean;
467
+ failure?: string | boolean;
468
+ };
469
+ }) => Promise<R>;
470
+ get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
471
+ requestKey: string;
472
+ isInterruptive?: boolean;
473
+ feedback?: {
474
+ loading?: string | boolean;
475
+ success?: ((data: any) => string) | string | boolean;
476
+ failure?: string | boolean;
477
+ };
478
+ }) => Promise<R>;
479
+ create(config?: import("axios").CreateAxiosDefaults): import("axios").AxiosInstance;
480
+ defaults: Omit<import("axios").AxiosDefaults, "headers"> & {
481
+ headers: import("axios").HeadersDefaults & {
482
+ [key: string]: import("axios").AxiosHeaderValue;
483
+ };
484
+ };
485
+ interceptors: {
486
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
487
+ response: import("axios").AxiosInterceptorManager<AxiosResponse>;
488
+ };
489
+ };
490
+ authService: {
491
+ requestLoginMagicLink: (entityType: Entity, payload: {
492
+ email: string;
493
+ }) => Promise<AxiosResponse<any, any>>;
494
+ getSessionProfile: <T extends Record<string, unknown>>() => Promise<AxiosResponse<T & {
495
+ displayName: string;
496
+ email: string;
497
+ accountId: string;
498
+ }, any>>;
499
+ logout: () => Promise<AxiosResponse<any, any>>;
500
+ setOptions: (opts: {
501
+ apiBaseUrl?: string;
502
+ }) => void;
503
+ };
504
+ filestoreService: {
505
+ uploadFile: ({ file, scope, directory, name, disableLoading, onProgress, }: {
506
+ file: File;
507
+ scope: string;
508
+ directory: string;
509
+ name: string;
510
+ disableLoading?: boolean;
511
+ onProgress?: (progress: number) => void;
512
+ }) => Promise<AxiosResponse<any, any>>;
513
+ deleteFiles: (keys: string[]) => Promise<any>;
514
+ uploadVideo: ({ file, scope, directory, name, }: {
515
+ file: File;
516
+ scope: string;
517
+ directory: string;
518
+ name: string;
519
+ disableLoading?: boolean;
520
+ onProgress?: (progress: number) => void;
521
+ }) => Promise<any>;
522
+ uploadAudio: ({ file, scope, directory, name, }: {
523
+ file: File;
524
+ scope: string;
525
+ directory: string;
526
+ name: string;
527
+ disableLoading?: boolean;
528
+ onProgress?: (progress: number) => void;
529
+ }) => Promise<any>;
530
+ getJobStatus: (id: string) => Promise<any>;
531
+ setOptions: (opts: {
532
+ apiBaseUrl?: string;
533
+ }) => void;
534
+ };
535
+ coreService: {
536
+ makeEntityService: <T extends Entity>(entityType: T) => {
537
+ listEntities: (payload: {
538
+ limit?: number;
539
+ lastKey?: string;
540
+ start?: string;
541
+ end?: string;
542
+ }, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
543
+ data: import("@monorise/base").CreatedEntity<T>[];
544
+ lastKey?: string;
545
+ totalCount: number;
546
+ }, any>>;
547
+ searchEntities: (query: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
548
+ data: import("@monorise/base").CreatedEntity<T>[];
549
+ }, any>>;
550
+ listEntitiesByTag: (tagName: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
551
+ entities: import("@monorise/base").CreatedEntity<T>[];
552
+ lastKey: string;
553
+ }, any>>;
554
+ getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
555
+ getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
556
+ createEntity: (values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
557
+ upsertEntity: (id: string, values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
558
+ editEntity: (id: string, values: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
559
+ updateEntity: (id: string, values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
560
+ deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
561
+ };
562
+ makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
563
+ listEntitiesByEntity: (byEntityId: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => Promise<AxiosResponse<{
564
+ entities: Mutual<B, T>[];
565
+ lastKey: string;
566
+ }, any>>;
567
+ getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any>>;
568
+ createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
569
+ editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
570
+ deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
571
+ };
572
+ setOptions: (opts: {
573
+ entityApiBaseUrl?: string;
574
+ mutualApiBaseUrl?: string;
575
+ tagApiBaseUrl?: string;
576
+ }) => void;
577
+ };
578
+ };
579
+ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<{
580
+ app: {
581
+ ongoingRequests: Map<string, Promise<unknown>>;
582
+ loadStack: Map<string, number>;
583
+ intLoadStack: Map<string, number>;
584
+ loadingMessage: string;
585
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
586
+ modal: {
587
+ name: string | null;
588
+ context?: unknown;
589
+ };
590
+ };
591
+ config: Record<Entity, MonoriseEntityConfig>;
592
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
593
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
594
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
595
+ auth: {
596
+ isUnauthorized: boolean;
597
+ profile: {
598
+ displayName: string;
599
+ email: string;
600
+ accountId: string;
601
+ };
602
+ isLoading: boolean;
603
+ };
604
+ }>, "setState"> & {
605
+ setState<A extends string | {
606
+ type: string;
607
+ }>(partial: {
608
+ app: {
609
+ ongoingRequests: Map<string, Promise<unknown>>;
610
+ loadStack: Map<string, number>;
611
+ intLoadStack: Map<string, number>;
612
+ loadingMessage: string;
613
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
614
+ modal: {
615
+ name: string | null;
616
+ context?: unknown;
617
+ };
618
+ };
619
+ config: Record<Entity, MonoriseEntityConfig>;
620
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
621
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
622
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
623
+ auth: {
624
+ isUnauthorized: boolean;
625
+ profile: {
626
+ displayName: string;
627
+ email: string;
628
+ accountId: string;
629
+ };
630
+ isLoading: boolean;
631
+ };
632
+ } | Partial<{
633
+ app: {
634
+ ongoingRequests: Map<string, Promise<unknown>>;
635
+ loadStack: Map<string, number>;
636
+ intLoadStack: Map<string, number>;
637
+ loadingMessage: string;
638
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
639
+ modal: {
640
+ name: string | null;
641
+ context?: unknown;
642
+ };
643
+ };
644
+ config: Record<Entity, MonoriseEntityConfig>;
645
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
646
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
647
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
648
+ auth: {
649
+ isUnauthorized: boolean;
650
+ profile: {
651
+ displayName: string;
652
+ email: string;
653
+ accountId: string;
654
+ };
655
+ isLoading: boolean;
656
+ };
657
+ }> | ((state: {
658
+ app: {
659
+ ongoingRequests: Map<string, Promise<unknown>>;
660
+ loadStack: Map<string, number>;
661
+ intLoadStack: Map<string, number>;
662
+ loadingMessage: string;
663
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
664
+ modal: {
665
+ name: string | null;
666
+ context?: unknown;
667
+ };
668
+ };
669
+ config: Record<Entity, MonoriseEntityConfig>;
670
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
671
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
672
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
673
+ auth: {
674
+ isUnauthorized: boolean;
675
+ profile: {
676
+ displayName: string;
677
+ email: string;
678
+ accountId: string;
679
+ };
680
+ isLoading: boolean;
681
+ };
682
+ }) => {
683
+ app: {
684
+ ongoingRequests: Map<string, Promise<unknown>>;
685
+ loadStack: Map<string, number>;
686
+ intLoadStack: Map<string, number>;
687
+ loadingMessage: string;
688
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
689
+ modal: {
690
+ name: string | null;
691
+ context?: unknown;
692
+ };
693
+ };
694
+ config: Record<Entity, MonoriseEntityConfig>;
695
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
696
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
697
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
698
+ auth: {
699
+ isUnauthorized: boolean;
700
+ profile: {
701
+ displayName: string;
702
+ email: string;
703
+ accountId: string;
704
+ };
705
+ isLoading: boolean;
706
+ };
707
+ } | Partial<{
708
+ app: {
709
+ ongoingRequests: Map<string, Promise<unknown>>;
710
+ loadStack: Map<string, number>;
711
+ intLoadStack: Map<string, number>;
712
+ loadingMessage: string;
713
+ errorStack: Map<string, import("./types/api.type").ApplicationRequestError>;
714
+ modal: {
715
+ name: string | null;
716
+ context?: unknown;
717
+ };
718
+ };
719
+ config: Record<Entity, MonoriseEntityConfig>;
720
+ entity: Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
721
+ mutual: Record<string, import("./types/monorise.type").CommonStore<Mutual>>;
722
+ tag: Record<string, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>;
723
+ auth: {
724
+ isUnauthorized: boolean;
725
+ profile: {
726
+ displayName: string;
727
+ email: string;
728
+ accountId: string;
729
+ };
730
+ isLoading: boolean;
731
+ };
732
+ }>), replace?: boolean | undefined, action?: A | undefined): void;
733
+ }>, axios: {
734
+ post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
735
+ requestKey: string;
736
+ isInterruptive?: boolean;
737
+ feedback?: {
738
+ loading?: string | boolean;
739
+ success?: ((data: any) => string) | string | boolean;
740
+ failure?: string | boolean;
741
+ };
742
+ }) => Promise<R>;
743
+ put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
744
+ requestKey: string;
745
+ isInterruptive?: boolean;
746
+ feedback?: {
747
+ loading?: string | boolean;
748
+ success?: ((data: any) => string) | string | boolean;
749
+ failure?: string | boolean;
750
+ };
751
+ }) => Promise<R>;
752
+ patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
753
+ requestKey: string;
754
+ isInterruptive?: boolean;
755
+ feedback?: {
756
+ loading?: string | boolean;
757
+ success?: ((data: any) => string) | string | boolean;
758
+ failure?: string | boolean;
759
+ };
760
+ }) => Promise<R>;
761
+ delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
762
+ requestKey: string;
763
+ isInterruptive?: boolean;
764
+ feedback?: {
765
+ loading?: string | boolean;
766
+ success?: ((data: any) => string) | string | boolean;
767
+ failure?: string | boolean;
768
+ };
769
+ }) => Promise<R>;
770
+ get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
771
+ requestKey: string;
772
+ isInterruptive?: boolean;
773
+ feedback?: {
774
+ loading?: string | boolean;
775
+ success?: ((data: any) => string) | string | boolean;
776
+ failure?: string | boolean;
777
+ };
778
+ }) => Promise<R>;
779
+ create(config?: import("axios").CreateAxiosDefaults): import("axios").AxiosInstance;
780
+ defaults: Omit<import("axios").AxiosDefaults, "headers"> & {
781
+ headers: import("axios").HeadersDefaults & {
782
+ [key: string]: import("axios").AxiosHeaderValue;
783
+ };
784
+ };
785
+ interceptors: {
786
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
787
+ response: import("axios").AxiosInterceptorManager<AxiosResponse>;
788
+ };
789
+ }, authService: {
790
+ requestLoginMagicLink: (entityType: Entity, payload: {
791
+ email: string;
792
+ }) => Promise<AxiosResponse<any, any>>;
793
+ getSessionProfile: <T extends Record<string, unknown>>() => Promise<AxiosResponse<T & {
794
+ displayName: string;
795
+ email: string;
796
+ accountId: string;
797
+ }, any>>;
798
+ logout: () => Promise<AxiosResponse<any, any>>;
799
+ setOptions: (opts: {
800
+ apiBaseUrl?: string;
801
+ }) => void;
802
+ }, filestoreService: {
803
+ uploadFile: ({ file, scope, directory, name, disableLoading, onProgress, }: {
804
+ file: File;
805
+ scope: string;
806
+ directory: string;
807
+ name: string;
808
+ disableLoading?: boolean;
809
+ onProgress?: (progress: number) => void;
810
+ }) => Promise<AxiosResponse<any, any>>;
811
+ deleteFiles: (keys: string[]) => Promise<any>;
812
+ uploadVideo: ({ file, scope, directory, name, }: {
813
+ file: File;
814
+ scope: string;
815
+ directory: string;
816
+ name: string;
817
+ disableLoading?: boolean;
818
+ onProgress?: (progress: number) => void;
819
+ }) => Promise<any>;
820
+ uploadAudio: ({ file, scope, directory, name, }: {
821
+ file: File;
822
+ scope: string;
823
+ directory: string;
824
+ name: string;
825
+ disableLoading?: boolean;
826
+ onProgress?: (progress: number) => void;
827
+ }) => Promise<any>;
828
+ getJobStatus: (id: string) => Promise<any>;
829
+ setOptions: (opts: {
830
+ apiBaseUrl?: string;
831
+ }) => void;
832
+ }, coreService: {
833
+ makeEntityService: <T extends Entity>(entityType: T) => {
834
+ listEntities: (payload: {
835
+ limit?: number;
836
+ lastKey?: string;
837
+ start?: string;
838
+ end?: string;
839
+ }, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
840
+ data: import("@monorise/base").CreatedEntity<T>[];
841
+ lastKey?: string;
842
+ totalCount: number;
843
+ }, any>>;
844
+ searchEntities: (query: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
845
+ data: import("@monorise/base").CreatedEntity<T>[];
846
+ }, any>>;
847
+ listEntitiesByTag: (tagName: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
848
+ entities: import("@monorise/base").CreatedEntity<T>[];
849
+ lastKey: string;
850
+ }, any>>;
851
+ getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
852
+ getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
853
+ createEntity: (values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
854
+ upsertEntity: (id: string, values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
855
+ editEntity: (id: string, values: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
856
+ updateEntity: (id: string, values: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("@monorise/base").CreatedEntity<T>, any>>;
857
+ deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
858
+ };
859
+ makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
860
+ listEntitiesByEntity: (byEntityId: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => Promise<AxiosResponse<{
861
+ entities: Mutual<B, T>[];
862
+ lastKey: string;
863
+ }, any>>;
864
+ getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any>>;
865
+ createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
866
+ editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
867
+ deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
868
+ };
869
+ setOptions: (opts: {
870
+ entityApiBaseUrl?: string;
871
+ mutualApiBaseUrl?: string;
872
+ tagApiBaseUrl?: string;
873
+ }) => void;
874
+ }, setConfig: (config: Record<Entity, MonoriseEntityConfig>) => void, getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>, useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>, startLoading: <T>({ requestKey, isInterruptive, message, request, }: {
875
+ requestKey: string;
876
+ isInterruptive?: boolean;
877
+ message?: string | boolean;
878
+ request: Promise<T>;
879
+ }) => void, endLoading: ({ requestKey, isInterruptive }: {
880
+ requestKey: string;
881
+ isInterruptive?: boolean;
882
+ }) => void, setError: ({ requestKey, error }: {
883
+ requestKey: string;
884
+ error: import("./types/api.type").ApplicationRequestError;
885
+ }) => void, getError: (requestKey: string) => import("./types/api.type").ApplicationRequestError | undefined, clearError: (requestKey: string) => void, openModal: (modal: {
886
+ name: string;
887
+ context?: unknown;
888
+ }) => void, closeModal: () => void, useLoadStore: (requestKey?: string) => boolean, useInterruptiveLoadStore: () => {
889
+ isLoading: boolean;
890
+ message: string;
891
+ }, useErrorStore: (requestKey: string) => import("./types/api.type").ApplicationRequestError | undefined, useModalStore: () => {
892
+ name: string | null;
893
+ context?: unknown;
894
+ }, requestLogin: (entityType: Entity, payload: {
895
+ email: string;
896
+ }) => Promise<any>, useProfile: <T extends Record<string, unknown>>() => T & {
897
+ displayName: string;
898
+ email: string;
899
+ accountId: string;
900
+ impersonatorId?: string;
901
+ }, getProfile: () => Promise<void>, useIsUnauthorized: () => {
902
+ isUnauthorized: boolean;
903
+ isLoading: boolean;
904
+ }, setIsUnauthorized: (isUnauthorized: boolean) => void, logout: () => void, listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<{
905
+ error: Error & {
906
+ originalError?: unknown;
907
+ };
908
+ } | undefined>, createEntity: <T extends Entity>(entityType: T, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
909
+ data: import("@monorise/base").CreatedEntity<T>;
910
+ error?: undefined;
911
+ } | {
912
+ error: Error & {
913
+ originalError?: unknown;
914
+ };
915
+ data?: undefined;
916
+ }>, upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
917
+ data: import("@monorise/base").CreatedEntity<T>;
918
+ error?: undefined;
919
+ } | {
920
+ error: Error & {
921
+ originalError?: unknown;
922
+ };
923
+ data?: undefined;
924
+ }>, editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<{
925
+ data: import("@monorise/base").CreatedEntity<T>;
926
+ error?: undefined;
927
+ } | {
928
+ error: Error & {
929
+ originalError?: unknown;
930
+ };
931
+ data?: undefined;
932
+ }>, updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("@monorise/base").DraftEntity<T>>) => Promise<void>, deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
933
+ data: {
934
+ entityId: string;
935
+ };
936
+ error?: undefined;
937
+ } | {
938
+ error: Error & {
939
+ originalError?: unknown;
940
+ };
941
+ data?: undefined;
942
+ }>, getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
943
+ defaultMutualData?: Record<string, any>;
944
+ }) => Promise<{
945
+ error: import("./types/api.type").ApplicationRequestError;
946
+ data?: undefined;
947
+ } | {
948
+ data: Mutual<B, T>;
949
+ error?: undefined;
950
+ } | {
951
+ error: Error & {
952
+ originalError?: unknown;
953
+ };
954
+ data?: undefined;
955
+ }>, createMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
956
+ data: Mutual<B, T>;
957
+ error?: undefined;
958
+ } | {
959
+ error: Error & {
960
+ originalError?: unknown;
961
+ };
962
+ data?: undefined;
963
+ }>, createLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data: import("@monorise/base").EntitySchemaMap[T] | Record<string, any>) => Promise<void>, upsertLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data?: import("@monorise/base").EntitySchemaMap[T] | Record<string, any>) => Promise<void>, editMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
964
+ data: Mutual<B, T>;
965
+ error?: undefined;
966
+ } | {
967
+ error: Error & {
968
+ originalError?: unknown;
969
+ };
970
+ data?: undefined;
971
+ }>, deleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId?: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
972
+ data: any;
973
+ error?: undefined;
974
+ } | {
975
+ error: Error & {
976
+ originalError?: unknown;
977
+ };
978
+ data?: undefined;
979
+ }>, deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void, useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
980
+ entity: import("@monorise/base").CreatedEntity<T> | undefined;
981
+ isLoading: boolean;
982
+ error?: import("./types/api.type").ApplicationRequestError;
983
+ requestKey: string;
984
+ isFirstFetched?: boolean;
985
+ refetch: () => Promise<import("@monorise/base").CreatedEntity<T> | undefined>;
986
+ }, useEntityByUniqueField: <T extends Entity>(entityType: T, fieldName: string, value?: string, opts?: import("./services/core.service").CommonOptions) => {
987
+ entity: import("@monorise/base").CreatedEntity<T> | undefined;
988
+ isLoading: boolean;
989
+ error?: import("./types/api.type").ApplicationRequestError;
990
+ requestKey: string;
991
+ isFirstFetched?: boolean;
992
+ refetch: () => Promise<import("@monorise/base").CreatedEntity<T> | undefined>;
993
+ }, useEntities: <T extends Entity>(entityType: T, params?: {
994
+ skRange?: {
995
+ start: string;
996
+ end: string;
997
+ };
998
+ all?: boolean;
999
+ }, opts?: import("./services/core.service").CommonOptions & {
1000
+ searchInterval?: number;
1001
+ }) => {
1002
+ isLoading: boolean;
1003
+ entities?: import("@monorise/base").CreatedEntity<T>[];
1004
+ entitiesMap: Map<string, import("@monorise/base").CreatedEntity<T>>;
1005
+ error?: import("./types/api.type").ApplicationRequestError;
1006
+ requestKey: string;
1007
+ searchField: {
1008
+ value: string;
1009
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
1010
+ };
1011
+ lastKey?: string;
1012
+ isFirstFetched?: boolean;
1013
+ listMore: () => void;
1014
+ refetch: () => void;
1015
+ }, useMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byId: string | null, id: string, opts?: import("./services/core.service").CommonOptions & {
1016
+ defaultMutualData?: Record<string, any>;
1017
+ }) => {
1018
+ mutual?: Mutual<B, T>;
1019
+ isLoading: boolean;
1020
+ error?: import("./types/api.type").ApplicationRequestError;
1021
+ requestKey: string;
1022
+ }, useMutuals: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byId?: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => {
1023
+ mutuals: Mutual<B, T>[];
1024
+ mutualsMap: Map<string, Mutual<B, T>>;
1025
+ isLoading: boolean;
1026
+ requestKey: string;
1027
+ error?: import("./types/api.type").ApplicationRequestError;
1028
+ isFirstFetched?: boolean;
1029
+ lastKey?: string;
1030
+ listMore?: () => void;
1031
+ }, useTaggedEntities: <T extends Entity>(entityType: T, tagName: string, opts?: import("./services/core.service").CommonOptions & {
1032
+ params?: import("./services/core.service").ListEntitiesByTagParams;
1033
+ }) => {
1034
+ entities: import("@monorise/base").CreatedEntity<T>[];
1035
+ entitiesMap: Map<string, import("@monorise/base").CreatedEntity<T>>;
1036
+ isLoading: boolean;
1037
+ requestKey: string;
1038
+ error: import("./types/api.type").ApplicationRequestError | undefined;
1039
+ isFirstFetched: boolean;
1040
+ lastKey: string;
1041
+ refetch: () => Promise<{
1042
+ error: import("./types/api.type").ApplicationRequestError;
1043
+ data?: undefined;
1044
+ } | {
1045
+ data: {
1046
+ entities: import("@monorise/base").CreatedEntity<Entity>[];
1047
+ lastKey: null;
1048
+ };
1049
+ error?: undefined;
1050
+ } | {
1051
+ data: {
1052
+ entities: import("@monorise/base").CreatedEntity<T>[];
1053
+ lastKey: string;
1054
+ };
1055
+ error?: undefined;
1056
+ } | {
1057
+ error: Error & {
1058
+ originalError?: unknown;
1059
+ };
1060
+ data?: undefined;
1061
+ } | undefined>;
1062
+ listMore: () => Promise<{
1063
+ error: import("./types/api.type").ApplicationRequestError;
1064
+ data?: undefined;
1065
+ } | {
1066
+ data: {
1067
+ entities: import("@monorise/base").CreatedEntity<Entity>[];
1068
+ lastKey: null;
1069
+ };
1070
+ error?: undefined;
1071
+ } | {
1072
+ data: {
1073
+ entities: import("@monorise/base").CreatedEntity<T>[];
1074
+ lastKey: string;
1075
+ };
1076
+ error?: undefined;
1077
+ } | {
1078
+ error: Error & {
1079
+ originalError?: unknown;
1080
+ };
1081
+ data?: undefined;
1082
+ } | undefined>;
1083
+ }, useEntityState: <T extends Entity>(entityType: T) => Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>[T], getEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
1084
+ data?: import("@monorise/base").CreatedEntity<T>;
1085
+ error?: import("./types/api.type").ApplicationRequestError | (Error & {
1086
+ originalError?: unknown;
1087
+ });
1088
+ }>, updateLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, data?: Partial<import("@monorise/base").DraftEntity<T>>, params?: import("./services/core.service").ListEntitiesByTagParams) => void, deleteLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, params?: import("./services/core.service").ListEntitiesByTagParams) => void;
1089
+ export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, createLocalMutual, upsertLocalMutual, editMutual, deleteMutual, deleteLocalMutual, useEntity, useEntityByUniqueField, useEntities, useMutual, useMutuals, useTaggedEntities, useEntityState, getEntityRequestKey, getMutualRequestKey, getTagRequestKey, getUniqueFieldRequestKey, getEntity, updateLocalTaggedEntity, deleteLocalTaggedEntity, };
1090
+ export default Monorise;
1091
+ export { MutualDataWithIndex, MutualDataMapping, MutualData, Mutual };
1092
+ export type { CreatedEntity, DraftEntity, Entity, EntitySchemaMap, } from '@monorise/base';
1093
+ //# sourceMappingURL=index.d.ts.map