@headless-lms/server 0.2.0 → 0.3.0
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.
- package/dist/_virtual/_rolldown/runtime.js +5 -0
- package/dist/app/community-mail.d.ts +26 -0
- package/dist/app/community-mail.js +96 -0
- package/dist/app/community-mail.js.map +1 -0
- package/dist/app/container.d.ts +18 -14
- package/dist/app/container.js +136 -43
- package/dist/app/container.js.map +1 -1
- package/dist/app/mcp-endpoints.d.ts +13 -0
- package/dist/app/mcp-endpoints.js +25 -0
- package/dist/app/mcp-endpoints.js.map +1 -0
- package/dist/http/config.d.ts +2 -1
- package/dist/http/errors.d.ts +14 -0
- package/dist/http/errors.js +147 -0
- package/dist/http/errors.js.map +1 -0
- package/dist/http/mcp/catalogue.d.ts +37 -0
- package/dist/http/mcp/catalogue.js +69 -0
- package/dist/http/mcp/catalogue.js.map +1 -0
- package/dist/http/mcp/challenge.d.ts +7 -0
- package/dist/http/mcp/challenge.js +35 -0
- package/dist/http/mcp/challenge.js.map +1 -0
- package/dist/http/mcp/input-schema.d.ts +7 -0
- package/dist/http/mcp/input-schema.js +28 -0
- package/dist/http/mcp/input-schema.js.map +1 -0
- package/dist/http/mcp/route.d.ts +8 -0
- package/dist/http/mcp/route.js +75 -0
- package/dist/http/mcp/route.js.map +1 -0
- package/dist/http/mcp/server.d.ts +8 -0
- package/dist/http/mcp/server.js +31 -0
- package/dist/http/mcp/server.js.map +1 -0
- package/dist/http/mcp/test-support.d.ts +55 -0
- package/dist/http/mcp/test-support.js +151 -0
- package/dist/http/mcp/test-support.js.map +1 -0
- package/dist/http/mcp/tool.d.ts +48 -0
- package/dist/http/mcp/tool.js +58 -0
- package/dist/http/mcp/tool.js.map +1 -0
- package/dist/http/mcp/tools/automations.d.ts +6 -0
- package/dist/http/mcp/tools/automations.js +120 -0
- package/dist/http/mcp/tools/automations.js.map +1 -0
- package/dist/http/mcp/tools/catalog.d.ts +6 -0
- package/dist/http/mcp/tools/catalog.js +200 -0
- package/dist/http/mcp/tools/catalog.js.map +1 -0
- package/dist/http/mcp/tools/comments.d.ts +6 -0
- package/dist/http/mcp/tools/comments.js +70 -0
- package/dist/http/mcp/tools/comments.js.map +1 -0
- package/dist/http/mcp/tools/communities.d.ts +6 -0
- package/dist/http/mcp/tools/communities.js +175 -0
- package/dist/http/mcp/tools/communities.js.map +1 -0
- package/dist/http/mcp/tools/community-members.d.ts +6 -0
- package/dist/http/mcp/tools/community-members.js +89 -0
- package/dist/http/mcp/tools/community-members.js.map +1 -0
- package/dist/http/mcp/tools/community-moderation.d.ts +6 -0
- package/dist/http/mcp/tools/community-moderation.js +144 -0
- package/dist/http/mcp/tools/community-moderation.js.map +1 -0
- package/dist/http/mcp/tools/courses.d.ts +6 -0
- package/dist/http/mcp/tools/courses.js +121 -0
- package/dist/http/mcp/tools/courses.js.map +1 -0
- package/dist/http/mcp/tools/index.d.ts +6 -0
- package/dist/http/mcp/tools/index.js +23 -0
- package/dist/http/mcp/tools/index.js.map +1 -0
- package/dist/http/mcp/tools/people.d.ts +6 -0
- package/dist/http/mcp/tools/people.js +145 -0
- package/dist/http/mcp/tools/people.js.map +1 -0
- package/dist/http/plugins/auth.js +13 -5
- package/dist/http/plugins/auth.js.map +1 -1
- package/dist/http/plugins/error-handler.d.ts +2 -1
- package/dist/http/plugins/error-handler.js +49 -65
- package/dist/http/plugins/error-handler.js.map +1 -1
- package/dist/http/plugins/openapi.js +49 -2
- package/dist/http/plugins/openapi.js.map +1 -1
- package/dist/http/routes/access.d.ts +7 -0
- package/dist/http/routes/access.js +140 -0
- package/dist/http/routes/access.js.map +1 -0
- package/dist/http/routes/activities.js +68 -23
- package/dist/http/routes/activities.js.map +1 -1
- package/dist/http/routes/assets.js +60 -55
- package/dist/http/routes/assets.js.map +1 -1
- package/dist/http/routes/automations.js +44 -24
- package/dist/http/routes/automations.js.map +1 -1
- package/dist/http/routes/bundles.js +29 -18
- package/dist/http/routes/bundles.js.map +1 -1
- package/dist/http/routes/communities.d.ts +7 -0
- package/dist/http/routes/communities.js +462 -0
- package/dist/http/routes/communities.js.map +1 -0
- package/dist/http/routes/community-moderation.d.ts +7 -0
- package/dist/http/routes/community-moderation.js +425 -0
- package/dist/http/routes/community-moderation.js.map +1 -0
- package/dist/http/routes/course-analytics.js +9 -7
- package/dist/http/routes/course-analytics.js.map +1 -1
- package/dist/http/routes/courses.js +30 -15
- package/dist/http/routes/courses.js.map +1 -1
- package/dist/http/routes/dashboard.js +15 -6
- package/dist/http/routes/dashboard.js.map +1 -1
- package/dist/http/routes/discussion.js +34 -26
- package/dist/http/routes/discussion.js.map +1 -1
- package/dist/http/routes/downloads.js +48 -30
- package/dist/http/routes/downloads.js.map +1 -1
- package/dist/http/routes/entitlements.js +16 -7
- package/dist/http/routes/entitlements.js.map +1 -1
- package/dist/http/routes/integrations.js +38 -41
- package/dist/http/routes/integrations.js.map +1 -1
- package/dist/http/routes/member/actor.d.ts +14 -0
- package/dist/http/routes/member/actor.js +11 -0
- package/dist/http/routes/member/actor.js.map +1 -0
- package/dist/http/routes/member/assets.d.ts +7 -0
- package/dist/http/routes/member/assets.js +79 -0
- package/dist/http/routes/member/assets.js.map +1 -0
- package/dist/http/routes/member/chats.d.ts +7 -0
- package/dist/http/routes/member/chats.js +456 -0
- package/dist/http/routes/member/chats.js.map +1 -0
- package/dist/http/routes/member/comments.d.ts +7 -0
- package/dist/http/routes/member/comments.js +187 -0
- package/dist/http/routes/member/comments.js.map +1 -0
- package/dist/http/routes/member/community.d.ts +7 -0
- package/dist/http/routes/member/community.js +288 -0
- package/dist/http/routes/member/community.js.map +1 -0
- package/dist/http/routes/member/courses.d.ts +7 -0
- package/dist/http/routes/member/courses.js +101 -0
- package/dist/http/routes/member/courses.js.map +1 -0
- package/dist/http/routes/member/downloads.d.ts +7 -0
- package/dist/http/routes/member/downloads.js +56 -0
- package/dist/http/routes/member/downloads.js.map +1 -0
- package/dist/http/routes/member/files.d.ts +7 -0
- package/dist/http/routes/member/files.js +184 -0
- package/dist/http/routes/member/files.js.map +1 -0
- package/dist/http/routes/member/index.d.ts +7 -0
- package/dist/http/routes/member/index.js +31 -0
- package/dist/http/routes/member/index.js.map +1 -0
- package/dist/http/routes/member/notifications.d.ts +7 -0
- package/dist/http/routes/member/notifications.js +101 -0
- package/dist/http/routes/member/notifications.js.map +1 -0
- package/dist/http/routes/member/org.d.ts +7 -0
- package/dist/http/routes/member/org.js +56 -0
- package/dist/http/routes/member/org.js.map +1 -0
- package/dist/http/routes/member/posts.d.ts +7 -0
- package/dist/http/routes/member/posts.js +612 -0
- package/dist/http/routes/member/posts.js.map +1 -0
- package/dist/http/routes/member/profile.d.ts +7 -0
- package/dist/http/routes/member/profile.js +48 -0
- package/dist/http/routes/member/profile.js.map +1 -0
- package/dist/http/routes/member/progress.d.ts +7 -0
- package/dist/http/routes/member/progress.js +60 -0
- package/dist/http/routes/member/progress.js.map +1 -0
- package/dist/http/routes/organizations.js +49 -24
- package/dist/http/routes/organizations.js.map +1 -1
- package/dist/http/routes/students.js +32 -47
- package/dist/http/routes/students.js.map +1 -1
- package/dist/http/routes/webhooks.js +26 -18
- package/dist/http/routes/webhooks.js.map +1 -1
- package/dist/http/routes.js +8 -2
- package/dist/http/routes.js.map +1 -1
- package/dist/http/schemas/access.d.ts +146 -0
- package/dist/http/schemas/access.js +36 -0
- package/dist/http/schemas/access.js.map +1 -0
- package/dist/http/schemas/activities.d.ts +3 -1
- package/dist/http/schemas/activities.js +4 -4
- package/dist/http/schemas/activities.js.map +1 -1
- package/dist/http/schemas/assets.d.ts +73 -74
- package/dist/http/schemas/assets.js +23 -13
- package/dist/http/schemas/assets.js.map +1 -1
- package/dist/http/schemas/automations.d.ts +10 -0
- package/dist/http/schemas/bundles.js +6 -6
- package/dist/http/schemas/bundles.js.map +1 -1
- package/dist/http/schemas/chats.d.ts +386 -0
- package/dist/http/schemas/chats.js +58 -0
- package/dist/http/schemas/chats.js.map +1 -0
- package/dist/http/schemas/community.d.ts +537 -0
- package/dist/http/schemas/community.js +129 -0
- package/dist/http/schemas/community.js.map +1 -0
- package/dist/http/schemas/content.d.ts +4 -2
- package/dist/http/schemas/content.js +11 -8
- package/dist/http/schemas/content.js.map +1 -1
- package/dist/http/schemas/discussion.d.ts +76 -14
- package/dist/http/schemas/discussion.js +12 -11
- package/dist/http/schemas/discussion.js.map +1 -1
- package/dist/http/schemas/downloads.d.ts +11 -5
- package/dist/http/schemas/downloads.js +14 -11
- package/dist/http/schemas/downloads.js.map +1 -1
- package/dist/http/schemas/entitlements.d.ts +6 -6
- package/dist/http/schemas/entitlements.js +6 -6
- package/dist/http/schemas/entitlements.js.map +1 -1
- package/dist/http/schemas/files.d.ts +45 -0
- package/dist/http/schemas/files.js +25 -0
- package/dist/http/schemas/files.js.map +1 -0
- package/dist/http/schemas/index.d.ts +15 -8
- package/dist/http/schemas/index.js +15 -8
- package/dist/http/schemas/integrations.d.ts +2 -2
- package/dist/http/schemas/invites.d.ts +4 -0
- package/dist/http/schemas/invites.js +1 -0
- package/dist/http/schemas/invites.js.map +1 -1
- package/dist/http/schemas/{learn.d.ts → member.d.ts} +31 -18
- package/dist/http/schemas/{learn.js → member.js} +17 -13
- package/dist/http/schemas/member.js.map +1 -0
- package/dist/http/schemas/members.d.ts +39 -6
- package/dist/http/schemas/members.js +17 -3
- package/dist/http/schemas/members.js.map +1 -1
- package/dist/http/schemas/notifications.d.ts +227 -0
- package/dist/http/schemas/notifications.js +44 -0
- package/dist/http/schemas/notifications.js.map +1 -0
- package/dist/http/schemas/posts.d.ts +316 -0
- package/dist/http/schemas/posts.js +47 -0
- package/dist/http/schemas/posts.js.map +1 -0
- package/dist/http/schemas/profile.d.ts +23 -0
- package/dist/http/schemas/profile.js +15 -0
- package/dist/http/schemas/profile.js.map +1 -0
- package/dist/http/schemas/shared.d.ts +25 -1
- package/dist/http/schemas/shared.js +19 -2
- package/dist/http/schemas/shared.js.map +1 -1
- package/dist/http/schemas/students.d.ts +4 -10
- package/dist/http/schemas/students.js +1 -7
- package/dist/http/schemas/students.js.map +1 -1
- package/dist/http/scope.d.ts +2 -1
- package/dist/http/scope.js +20 -4
- package/dist/http/scope.js.map +1 -1
- package/dist/http/server.js +6 -1
- package/dist/http/server.js.map +1 -1
- package/dist/http/web-bridge.d.ts +1 -1
- package/dist/http/web-bridge.js +2 -2
- package/dist/http/web-bridge.js.map +1 -1
- package/dist/http/well-known.d.ts +7 -0
- package/dist/http/well-known.js +22 -0
- package/dist/http/well-known.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js +1267 -0
- package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js +814 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js +43 -0
- package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js +527 -0
- package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/utils.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js +1737 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js +137 -0
- package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js +1222 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js +91 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js +113 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js +449 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js +163 -0
- package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3187 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +24 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js.map +1 -0
- package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js +82 -0
- package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
- package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js +8 -0
- package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +83 -0
- package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +9 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js +51 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js.map +1 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js +48 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js.map +1 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/vi.DgezovHB.js +2426 -0
- package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/vi.DgezovHB.js.map +1 -0
- package/dist/packages/server/package.js +6 -0
- package/dist/packages/server/package.js.map +1 -0
- package/package.json +9 -7
- package/dist/app/notifications.d.ts +0 -7
- package/dist/app/notifications.js +0 -26
- package/dist/app/notifications.js.map +0 -1
- package/dist/http/routes/learn/assets.d.ts +0 -8
- package/dist/http/routes/learn/assets.js +0 -32
- package/dist/http/routes/learn/assets.js.map +0 -1
- package/dist/http/routes/learn/comments.d.ts +0 -7
- package/dist/http/routes/learn/comments.js +0 -175
- package/dist/http/routes/learn/comments.js.map +0 -1
- package/dist/http/routes/learn/courses.d.ts +0 -7
- package/dist/http/routes/learn/courses.js +0 -98
- package/dist/http/routes/learn/courses.js.map +0 -1
- package/dist/http/routes/learn/downloads.d.ts +0 -7
- package/dist/http/routes/learn/downloads.js +0 -76
- package/dist/http/routes/learn/downloads.js.map +0 -1
- package/dist/http/routes/learn/index.d.ts +0 -7
- package/dist/http/routes/learn/index.js +0 -19
- package/dist/http/routes/learn/index.js.map +0 -1
- package/dist/http/routes/learn/org.d.ts +0 -7
- package/dist/http/routes/learn/org.js +0 -50
- package/dist/http/routes/learn/org.js.map +0 -1
- package/dist/http/routes/learn/progress.d.ts +0 -7
- package/dist/http/routes/learn/progress.js +0 -63
- package/dist/http/routes/learn/progress.js.map +0 -1
- package/dist/http/schemas/learn.js.map +0 -1
- package/dist/package.js +0 -6
- package/dist/package.js.map +0 -1
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/http/schemas/community.d.ts
|
|
3
|
+
declare const Community: z.ZodObject<{
|
|
4
|
+
orgId: z.ZodString;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
type: z.ZodLiteral<"community">;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<{
|
|
11
|
+
draft: "draft";
|
|
12
|
+
published: "published";
|
|
13
|
+
}>;
|
|
14
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
settings: z.ZodObject<{
|
|
16
|
+
dm: z.ZodObject<{
|
|
17
|
+
enabled: z.ZodBoolean;
|
|
18
|
+
memberToMember: z.ZodBoolean;
|
|
19
|
+
memberToStaff: z.ZodBoolean;
|
|
20
|
+
staffToAnyone: z.ZodBoolean;
|
|
21
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
22
|
+
groupChats: z.ZodBoolean;
|
|
23
|
+
groupSize: z.ZodNumber;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
27
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
28
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
declare const CommunitiesQuery: z.ZodObject<{
|
|
31
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
32
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
33
|
+
search: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
35
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
draft: "draft";
|
|
37
|
+
published: "published";
|
|
38
|
+
}>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const CommunitiesPage: z.ZodObject<{
|
|
41
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
42
|
+
orgId: z.ZodString;
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
type: z.ZodLiteral<"community">;
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
slug: z.ZodString;
|
|
47
|
+
description: z.ZodString;
|
|
48
|
+
status: z.ZodEnum<{
|
|
49
|
+
draft: "draft";
|
|
50
|
+
published: "published";
|
|
51
|
+
}>;
|
|
52
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
settings: z.ZodObject<{
|
|
54
|
+
dm: z.ZodObject<{
|
|
55
|
+
enabled: z.ZodBoolean;
|
|
56
|
+
memberToMember: z.ZodBoolean;
|
|
57
|
+
memberToStaff: z.ZodBoolean;
|
|
58
|
+
staffToAnyone: z.ZodBoolean;
|
|
59
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
60
|
+
groupChats: z.ZodBoolean;
|
|
61
|
+
groupSize: z.ZodNumber;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
65
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
66
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
total: z.ZodNumber;
|
|
69
|
+
page: z.ZodNumber;
|
|
70
|
+
pageSize: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
declare const CreateCommunity: z.ZodObject<{
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
declare const UpdateCommunity: z.ZodObject<{
|
|
77
|
+
title: z.ZodOptional<z.ZodString>;
|
|
78
|
+
description: z.ZodOptional<z.ZodString>;
|
|
79
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
draft: "draft";
|
|
81
|
+
published: "published";
|
|
82
|
+
}>>;
|
|
83
|
+
thumbnailAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
declare const PatchDmSettings: z.ZodObject<{
|
|
86
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
memberToMember: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
memberToStaff: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
staffToAnyone: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
firstMessageIsRequest: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
groupChats: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
groupSize: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
declare const DmSettings: z.ZodObject<{
|
|
95
|
+
enabled: z.ZodBoolean;
|
|
96
|
+
memberToMember: z.ZodBoolean;
|
|
97
|
+
memberToStaff: z.ZodBoolean;
|
|
98
|
+
staffToAnyone: z.ZodBoolean;
|
|
99
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
100
|
+
groupChats: z.ZodBoolean;
|
|
101
|
+
groupSize: z.ZodNumber;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
declare const SpaceDetail: z.ZodObject<{
|
|
104
|
+
orgId: z.ZodString;
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
communityId: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
description: z.ZodString;
|
|
109
|
+
seq: z.ZodNumber;
|
|
110
|
+
accessRule: z.ZodEnum<{
|
|
111
|
+
all_members: "all_members";
|
|
112
|
+
by_request: "by_request";
|
|
113
|
+
by_invite: "by_invite";
|
|
114
|
+
}>;
|
|
115
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
settings: z.ZodObject<{
|
|
117
|
+
comments: z.ZodBoolean;
|
|
118
|
+
reactions: z.ZodBoolean;
|
|
119
|
+
requireReview: z.ZodBoolean;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
122
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
123
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
124
|
+
orgId: z.ZodString;
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
spaceId: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
seq: z.ZodNumber;
|
|
129
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
130
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
links: z.ZodArray<z.ZodObject<{
|
|
133
|
+
orgId: z.ZodString;
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
spaceId: z.ZodString;
|
|
136
|
+
contentId: z.ZodString;
|
|
137
|
+
seq: z.ZodNumber;
|
|
138
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
139
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
declare const SpaceMember: z.ZodObject<{
|
|
143
|
+
orgId: z.ZodString;
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
communityId: z.ZodString;
|
|
146
|
+
spaceId: z.ZodString;
|
|
147
|
+
orgUserId: z.ZodString;
|
|
148
|
+
status: z.ZodEnum<{
|
|
149
|
+
requested: "requested";
|
|
150
|
+
invited: "invited";
|
|
151
|
+
active: "active";
|
|
152
|
+
revoked: "revoked";
|
|
153
|
+
}>;
|
|
154
|
+
source: z.ZodEnum<{
|
|
155
|
+
request: "request";
|
|
156
|
+
invite: "invite";
|
|
157
|
+
manual: "manual";
|
|
158
|
+
}>;
|
|
159
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
160
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
declare const SpaceMembersPage: z.ZodObject<{
|
|
163
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
164
|
+
orgId: z.ZodString;
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
communityId: z.ZodString;
|
|
167
|
+
spaceId: z.ZodString;
|
|
168
|
+
orgUserId: z.ZodString;
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
requested: "requested";
|
|
171
|
+
invited: "invited";
|
|
172
|
+
active: "active";
|
|
173
|
+
revoked: "revoked";
|
|
174
|
+
}>;
|
|
175
|
+
source: z.ZodEnum<{
|
|
176
|
+
request: "request";
|
|
177
|
+
invite: "invite";
|
|
178
|
+
manual: "manual";
|
|
179
|
+
}>;
|
|
180
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
181
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
182
|
+
}, z.core.$strict>>;
|
|
183
|
+
total: z.ZodNumber;
|
|
184
|
+
page: z.ZodNumber;
|
|
185
|
+
pageSize: z.ZodNumber;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
declare const CreateSpace: z.ZodObject<{
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
all_members: "all_members";
|
|
192
|
+
by_request: "by_request";
|
|
193
|
+
by_invite: "by_invite";
|
|
194
|
+
}>>;
|
|
195
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
196
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
declare const UpdateSpace: z.ZodObject<{
|
|
203
|
+
name: z.ZodOptional<z.ZodString>;
|
|
204
|
+
description: z.ZodOptional<z.ZodString>;
|
|
205
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
all_members: "all_members";
|
|
207
|
+
by_request: "by_request";
|
|
208
|
+
by_invite: "by_invite";
|
|
209
|
+
}>>;
|
|
210
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
211
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
declare const SetSpaceTopics: z.ZodObject<{
|
|
218
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
219
|
+
id: z.ZodOptional<z.ZodString>;
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
}, z.core.$strict>>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
declare const OrderedIds: z.ZodObject<{
|
|
224
|
+
ids: z.ZodArray<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>;
|
|
226
|
+
declare const SpaceLinkBody: z.ZodObject<{
|
|
227
|
+
contentId: z.ZodString;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
declare const CommunityIdParam: z.ZodObject<{
|
|
230
|
+
communityId: z.ZodString;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
declare const CommunitySpaceParam: z.ZodObject<{
|
|
233
|
+
communityId: z.ZodString;
|
|
234
|
+
spaceId: z.ZodString;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
declare const SpaceLinkParam: z.ZodObject<{
|
|
237
|
+
communityId: z.ZodString;
|
|
238
|
+
spaceId: z.ZodString;
|
|
239
|
+
linkId: z.ZodString;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
declare const SpaceMemberParam: z.ZodObject<{
|
|
242
|
+
communityId: z.ZodString;
|
|
243
|
+
spaceId: z.ZodString;
|
|
244
|
+
orgUserId: z.ZodString;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
declare const CommunityPostParam: z.ZodObject<{
|
|
247
|
+
communityId: z.ZodString;
|
|
248
|
+
postId: z.ZodString;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
declare const CommunityCommentParam: z.ZodObject<{
|
|
251
|
+
communityId: z.ZodString;
|
|
252
|
+
commentId: z.ZodString;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
declare const CommunityMessageParam: z.ZodObject<{
|
|
255
|
+
communityId: z.ZodString;
|
|
256
|
+
messageId: z.ZodString;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
declare const CommunityChatParam: z.ZodObject<{
|
|
259
|
+
communityId: z.ZodString;
|
|
260
|
+
chatId: z.ZodString;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
declare const CommunityMember: z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
265
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
266
|
+
email: z.ZodString;
|
|
267
|
+
image: z.ZodNullable<z.ZodString>;
|
|
268
|
+
role: z.ZodEnum<{
|
|
269
|
+
owner: "owner";
|
|
270
|
+
admin: "admin";
|
|
271
|
+
instructor: "instructor";
|
|
272
|
+
moderator: "moderator";
|
|
273
|
+
student: "student";
|
|
274
|
+
}>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
declare const CommunityMembersQuery: z.ZodObject<{
|
|
277
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
278
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
279
|
+
search: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
declare const CommunityMembersPage: z.ZodObject<{
|
|
282
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
283
|
+
id: z.ZodString;
|
|
284
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
285
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
286
|
+
email: z.ZodString;
|
|
287
|
+
image: z.ZodNullable<z.ZodString>;
|
|
288
|
+
role: z.ZodEnum<{
|
|
289
|
+
owner: "owner";
|
|
290
|
+
admin: "admin";
|
|
291
|
+
instructor: "instructor";
|
|
292
|
+
moderator: "moderator";
|
|
293
|
+
student: "student";
|
|
294
|
+
}>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
total: z.ZodNumber;
|
|
297
|
+
page: z.ZodNumber;
|
|
298
|
+
pageSize: z.ZodNumber;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
declare const DirectoryEntry: z.ZodObject<{
|
|
301
|
+
orgUserId: z.ZodString;
|
|
302
|
+
role: z.ZodString;
|
|
303
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
304
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
305
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
306
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
307
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
declare const DirectoryQuery: z.ZodObject<{
|
|
310
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
311
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
312
|
+
search: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
declare const DirectoryPage: z.ZodObject<{
|
|
315
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
316
|
+
orgUserId: z.ZodString;
|
|
317
|
+
role: z.ZodString;
|
|
318
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
319
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
320
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
321
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
322
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
total: z.ZodNumber;
|
|
325
|
+
page: z.ZodNumber;
|
|
326
|
+
pageSize: z.ZodNumber;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
declare const LockedCommunitySpace: z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
name: z.ZodString;
|
|
331
|
+
memberCount: z.ZodNumber;
|
|
332
|
+
accessRule: z.ZodEnum<{
|
|
333
|
+
all_members: "all_members";
|
|
334
|
+
by_request: "by_request";
|
|
335
|
+
by_invite: "by_invite";
|
|
336
|
+
}>;
|
|
337
|
+
standing: z.ZodEnum<{
|
|
338
|
+
open: "open";
|
|
339
|
+
member: "member";
|
|
340
|
+
requested: "requested";
|
|
341
|
+
invited: "invited";
|
|
342
|
+
full: "full";
|
|
343
|
+
none: "none";
|
|
344
|
+
}>;
|
|
345
|
+
locked: z.ZodLiteral<true>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
declare const OpenCommunitySpace: z.ZodObject<{
|
|
348
|
+
id: z.ZodString;
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
memberCount: z.ZodNumber;
|
|
351
|
+
accessRule: z.ZodEnum<{
|
|
352
|
+
all_members: "all_members";
|
|
353
|
+
by_request: "by_request";
|
|
354
|
+
by_invite: "by_invite";
|
|
355
|
+
}>;
|
|
356
|
+
standing: z.ZodEnum<{
|
|
357
|
+
open: "open";
|
|
358
|
+
member: "member";
|
|
359
|
+
requested: "requested";
|
|
360
|
+
invited: "invited";
|
|
361
|
+
full: "full";
|
|
362
|
+
none: "none";
|
|
363
|
+
}>;
|
|
364
|
+
locked: z.ZodLiteral<false>;
|
|
365
|
+
description: z.ZodNullable<z.ZodString>;
|
|
366
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
367
|
+
settings: z.ZodObject<{
|
|
368
|
+
comments: z.ZodBoolean;
|
|
369
|
+
reactions: z.ZodBoolean;
|
|
370
|
+
requireReview: z.ZodBoolean;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
links: z.ZodArray<z.ZodObject<{
|
|
377
|
+
id: z.ZodString;
|
|
378
|
+
contentId: z.ZodString;
|
|
379
|
+
type: z.ZodEnum<{
|
|
380
|
+
community: "community";
|
|
381
|
+
course: "course";
|
|
382
|
+
download: "download";
|
|
383
|
+
}>;
|
|
384
|
+
title: z.ZodString;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
declare const CommunityHomeSpace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
name: z.ZodString;
|
|
390
|
+
memberCount: z.ZodNumber;
|
|
391
|
+
accessRule: z.ZodEnum<{
|
|
392
|
+
all_members: "all_members";
|
|
393
|
+
by_request: "by_request";
|
|
394
|
+
by_invite: "by_invite";
|
|
395
|
+
}>;
|
|
396
|
+
standing: z.ZodEnum<{
|
|
397
|
+
open: "open";
|
|
398
|
+
member: "member";
|
|
399
|
+
requested: "requested";
|
|
400
|
+
invited: "invited";
|
|
401
|
+
full: "full";
|
|
402
|
+
none: "none";
|
|
403
|
+
}>;
|
|
404
|
+
locked: z.ZodLiteral<true>;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
memberCount: z.ZodNumber;
|
|
409
|
+
accessRule: z.ZodEnum<{
|
|
410
|
+
all_members: "all_members";
|
|
411
|
+
by_request: "by_request";
|
|
412
|
+
by_invite: "by_invite";
|
|
413
|
+
}>;
|
|
414
|
+
standing: z.ZodEnum<{
|
|
415
|
+
open: "open";
|
|
416
|
+
member: "member";
|
|
417
|
+
requested: "requested";
|
|
418
|
+
invited: "invited";
|
|
419
|
+
full: "full";
|
|
420
|
+
none: "none";
|
|
421
|
+
}>;
|
|
422
|
+
locked: z.ZodLiteral<false>;
|
|
423
|
+
description: z.ZodNullable<z.ZodString>;
|
|
424
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
425
|
+
settings: z.ZodObject<{
|
|
426
|
+
comments: z.ZodBoolean;
|
|
427
|
+
reactions: z.ZodBoolean;
|
|
428
|
+
requireReview: z.ZodBoolean;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
431
|
+
id: z.ZodString;
|
|
432
|
+
name: z.ZodString;
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
|
+
links: z.ZodArray<z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
contentId: z.ZodString;
|
|
437
|
+
type: z.ZodEnum<{
|
|
438
|
+
community: "community";
|
|
439
|
+
course: "course";
|
|
440
|
+
download: "download";
|
|
441
|
+
}>;
|
|
442
|
+
title: z.ZodString;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
}, z.core.$strip>], "locked">;
|
|
445
|
+
declare const CommunityHome: z.ZodObject<{
|
|
446
|
+
communityId: z.ZodString;
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
description: z.ZodString;
|
|
449
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
450
|
+
dm: z.ZodObject<{
|
|
451
|
+
enabled: z.ZodBoolean;
|
|
452
|
+
memberToMember: z.ZodBoolean;
|
|
453
|
+
memberToStaff: z.ZodBoolean;
|
|
454
|
+
staffToAnyone: z.ZodBoolean;
|
|
455
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
456
|
+
groupChats: z.ZodBoolean;
|
|
457
|
+
groupSize: z.ZodNumber;
|
|
458
|
+
}, z.core.$strict>;
|
|
459
|
+
spaces: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
name: z.ZodString;
|
|
462
|
+
memberCount: z.ZodNumber;
|
|
463
|
+
accessRule: z.ZodEnum<{
|
|
464
|
+
all_members: "all_members";
|
|
465
|
+
by_request: "by_request";
|
|
466
|
+
by_invite: "by_invite";
|
|
467
|
+
}>;
|
|
468
|
+
standing: z.ZodEnum<{
|
|
469
|
+
open: "open";
|
|
470
|
+
member: "member";
|
|
471
|
+
requested: "requested";
|
|
472
|
+
invited: "invited";
|
|
473
|
+
full: "full";
|
|
474
|
+
none: "none";
|
|
475
|
+
}>;
|
|
476
|
+
locked: z.ZodLiteral<true>;
|
|
477
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
478
|
+
id: z.ZodString;
|
|
479
|
+
name: z.ZodString;
|
|
480
|
+
memberCount: z.ZodNumber;
|
|
481
|
+
accessRule: z.ZodEnum<{
|
|
482
|
+
all_members: "all_members";
|
|
483
|
+
by_request: "by_request";
|
|
484
|
+
by_invite: "by_invite";
|
|
485
|
+
}>;
|
|
486
|
+
standing: z.ZodEnum<{
|
|
487
|
+
open: "open";
|
|
488
|
+
member: "member";
|
|
489
|
+
requested: "requested";
|
|
490
|
+
invited: "invited";
|
|
491
|
+
full: "full";
|
|
492
|
+
none: "none";
|
|
493
|
+
}>;
|
|
494
|
+
locked: z.ZodLiteral<false>;
|
|
495
|
+
description: z.ZodNullable<z.ZodString>;
|
|
496
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
497
|
+
settings: z.ZodObject<{
|
|
498
|
+
comments: z.ZodBoolean;
|
|
499
|
+
reactions: z.ZodBoolean;
|
|
500
|
+
requireReview: z.ZodBoolean;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
503
|
+
id: z.ZodString;
|
|
504
|
+
name: z.ZodString;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
links: z.ZodArray<z.ZodObject<{
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
contentId: z.ZodString;
|
|
509
|
+
type: z.ZodEnum<{
|
|
510
|
+
community: "community";
|
|
511
|
+
course: "course";
|
|
512
|
+
download: "download";
|
|
513
|
+
}>;
|
|
514
|
+
title: z.ZodString;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
}, z.core.$strip>], "locked">>;
|
|
517
|
+
}, z.core.$strip>;
|
|
518
|
+
declare const CommunityAnalytics: z.ZodObject<{
|
|
519
|
+
memberCount: z.ZodNumber;
|
|
520
|
+
activeMembers: z.ZodNumber;
|
|
521
|
+
postsPerSpace: z.ZodArray<z.ZodObject<{
|
|
522
|
+
spaceId: z.ZodString;
|
|
523
|
+
count: z.ZodNumber;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
commentsPerPost: z.ZodArray<z.ZodObject<{
|
|
526
|
+
postId: z.ZodString;
|
|
527
|
+
count: z.ZodNumber;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
messagesSent: z.ZodNumber;
|
|
530
|
+
flagsRaised: z.ZodNumber;
|
|
531
|
+
flagsResolved: z.ZodNumber;
|
|
532
|
+
grantsLapsed: z.ZodNumber;
|
|
533
|
+
grantsRenewed: z.ZodNumber;
|
|
534
|
+
}, z.core.$strip>;
|
|
535
|
+
//#endregion
|
|
536
|
+
export { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace };
|
|
537
|
+
//# sourceMappingURL=community.d.ts.map
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ListQuery, OrgUserProfileSchema, PageQuery, paginated } from "./shared.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { communityStatusSchema, communityViewSchema, createCommunityInputSchema, createSpaceInputSchema, dmSettingsSchema, idSchema, patchDmSettingsInputSchema, roleSchema, setSpaceTopicsInputSchema, spaceDetailSchema, spaceMemberSchema, updateCommunityInputSchema, updateSpaceInputSchema } from "@headless-lms/core/schemas";
|
|
4
|
+
//#region src/http/schemas/community.ts
|
|
5
|
+
const Community = communityViewSchema;
|
|
6
|
+
const CommunitiesQuery = ListQuery.extend({ status: communityStatusSchema.optional() });
|
|
7
|
+
const CommunitiesPage = paginated(Community);
|
|
8
|
+
const CreateCommunity = createCommunityInputSchema;
|
|
9
|
+
const UpdateCommunity = updateCommunityInputSchema;
|
|
10
|
+
const PatchDmSettings = patchDmSettingsInputSchema;
|
|
11
|
+
const DmSettings = dmSettingsSchema;
|
|
12
|
+
const SpaceDetail = spaceDetailSchema;
|
|
13
|
+
const SpaceMember = spaceMemberSchema;
|
|
14
|
+
const SpaceMembersPage = paginated(SpaceMember);
|
|
15
|
+
const CreateSpace = createSpaceInputSchema;
|
|
16
|
+
const UpdateSpace = updateSpaceInputSchema;
|
|
17
|
+
const SetSpaceTopics = setSpaceTopicsInputSchema;
|
|
18
|
+
const OrderedIds = z.object({ ids: z.array(idSchema).min(1).max(200).describe("Every id in the collection, once each, in the new order") }).strict();
|
|
19
|
+
const SpaceLinkBody = z.object({ contentId: idSchema.describe("The course, download or community to link") }).strict();
|
|
20
|
+
const CommunityIdParam = z.object({ communityId: z.string() });
|
|
21
|
+
const CommunitySpaceParam = z.object({
|
|
22
|
+
communityId: z.string(),
|
|
23
|
+
spaceId: z.string()
|
|
24
|
+
});
|
|
25
|
+
const SpaceLinkParam = CommunitySpaceParam.extend({ linkId: z.string() });
|
|
26
|
+
const SpaceMemberParam = CommunitySpaceParam.extend({ orgUserId: z.string() });
|
|
27
|
+
const CommunityPostParam = z.object({
|
|
28
|
+
communityId: z.string(),
|
|
29
|
+
postId: z.string()
|
|
30
|
+
});
|
|
31
|
+
const CommunityCommentParam = z.object({
|
|
32
|
+
communityId: z.string(),
|
|
33
|
+
commentId: z.string()
|
|
34
|
+
});
|
|
35
|
+
const CommunityMessageParam = z.object({
|
|
36
|
+
communityId: z.string(),
|
|
37
|
+
messageId: z.string()
|
|
38
|
+
});
|
|
39
|
+
const CommunityChatParam = z.object({
|
|
40
|
+
communityId: z.string(),
|
|
41
|
+
chatId: z.string()
|
|
42
|
+
});
|
|
43
|
+
const CommunityMember = OrgUserProfileSchema.extend({ role: roleSchema });
|
|
44
|
+
const CommunityMembersQuery = PageQuery.extend({ search: z.string().trim().optional() });
|
|
45
|
+
const CommunityMembersPage = paginated(CommunityMember);
|
|
46
|
+
const DirectoryEntry = z.object({
|
|
47
|
+
orgUserId: z.string(),
|
|
48
|
+
role: z.string(),
|
|
49
|
+
displayName: z.string().nullable(),
|
|
50
|
+
headline: z.string().nullable(),
|
|
51
|
+
bio: z.string().nullable(),
|
|
52
|
+
imageAssetId: z.string().nullable(),
|
|
53
|
+
imageUrl: z.string().nullable()
|
|
54
|
+
});
|
|
55
|
+
const DirectoryQuery = PageQuery.extend({ search: z.string().trim().max(100).optional().describe("Matches part of a display name") });
|
|
56
|
+
const DirectoryPage = paginated(DirectoryEntry);
|
|
57
|
+
const CommunityHomeSpaceBase = z.object({
|
|
58
|
+
id: z.string(),
|
|
59
|
+
name: z.string(),
|
|
60
|
+
memberCount: z.number().int().describe("Active space members"),
|
|
61
|
+
accessRule: z.enum([
|
|
62
|
+
"all_members",
|
|
63
|
+
"by_request",
|
|
64
|
+
"by_invite"
|
|
65
|
+
]),
|
|
66
|
+
standing: z.enum([
|
|
67
|
+
"open",
|
|
68
|
+
"member",
|
|
69
|
+
"requested",
|
|
70
|
+
"invited",
|
|
71
|
+
"full",
|
|
72
|
+
"none"
|
|
73
|
+
]).describe("Where the viewer stands with this space, and so which action it offers. `open`: the viewer can open it without joining (an all-members space, or staff). `member`: the viewer belongs to it. `requested`: the viewer asked to join and awaits a decision. `invited`: the viewer may accept or refuse an invitation. `full`: it is at capacity. `none`: none of these; ask to join a `by_request` space, or wait for an invitation to a `by_invite` one.")
|
|
74
|
+
});
|
|
75
|
+
const LockedCommunitySpace = CommunityHomeSpaceBase.extend({ locked: z.literal(true).describe("The viewer cannot open this space. Only enough to request a place, accept an invite or contact staff is served; never its description, topics, links or settings") });
|
|
76
|
+
const OpenCommunitySpace = CommunityHomeSpaceBase.extend({
|
|
77
|
+
locked: z.literal(false).describe("The viewer can open this space and read its feed"),
|
|
78
|
+
description: z.string().nullable(),
|
|
79
|
+
capacity: z.number().int().nullable(),
|
|
80
|
+
settings: z.object({
|
|
81
|
+
comments: z.boolean(),
|
|
82
|
+
reactions: z.boolean(),
|
|
83
|
+
requireReview: z.boolean()
|
|
84
|
+
}),
|
|
85
|
+
topics: z.array(z.object({
|
|
86
|
+
id: z.string(),
|
|
87
|
+
name: z.string()
|
|
88
|
+
})),
|
|
89
|
+
links: z.array(z.object({
|
|
90
|
+
id: z.string(),
|
|
91
|
+
contentId: z.string(),
|
|
92
|
+
type: z.enum([
|
|
93
|
+
"course",
|
|
94
|
+
"download",
|
|
95
|
+
"community"
|
|
96
|
+
]),
|
|
97
|
+
title: z.string()
|
|
98
|
+
})).describe("Linked content that is published; staff also see unpublished targets")
|
|
99
|
+
});
|
|
100
|
+
const CommunityHomeSpace = z.discriminatedUnion("locked", [LockedCommunitySpace, OpenCommunitySpace]).describe("A space as the viewer sees it. A by-invite space the viewer is not invited to or a member of is never served");
|
|
101
|
+
const CommunityHome = z.object({
|
|
102
|
+
communityId: z.string(),
|
|
103
|
+
title: z.string(),
|
|
104
|
+
description: z.string(),
|
|
105
|
+
thumbnailUrl: z.string().nullable(),
|
|
106
|
+
dm: dmSettingsSchema,
|
|
107
|
+
spaces: z.array(CommunityHomeSpace)
|
|
108
|
+
});
|
|
109
|
+
const CommunityAnalytics = z.object({
|
|
110
|
+
memberCount: z.number().int(),
|
|
111
|
+
activeMembers: z.number().int(),
|
|
112
|
+
postsPerSpace: z.array(z.object({
|
|
113
|
+
spaceId: z.string(),
|
|
114
|
+
count: z.number().int()
|
|
115
|
+
})),
|
|
116
|
+
commentsPerPost: z.array(z.object({
|
|
117
|
+
postId: z.string(),
|
|
118
|
+
count: z.number().int()
|
|
119
|
+
})),
|
|
120
|
+
messagesSent: z.number().int(),
|
|
121
|
+
flagsRaised: z.number().int(),
|
|
122
|
+
flagsResolved: z.number().int(),
|
|
123
|
+
grantsLapsed: z.number().int(),
|
|
124
|
+
grantsRenewed: z.number().int()
|
|
125
|
+
});
|
|
126
|
+
//#endregion
|
|
127
|
+
export { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace };
|
|
128
|
+
|
|
129
|
+
//# sourceMappingURL=community.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"community.js","names":[],"sources":["../../../src/http/schemas/community.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n communityStatusSchema,\n roleSchema,\n communityViewSchema,\n createCommunityInputSchema,\n createSpaceInputSchema,\n dmSettingsSchema,\n idSchema,\n patchDmSettingsInputSchema,\n setSpaceTopicsInputSchema,\n spaceDetailSchema,\n spaceMemberSchema,\n updateCommunityInputSchema,\n updateSpaceInputSchema,\n} from '@headless-lms/core/schemas';\nimport type {\n CommunityAnalytics as DomainCommunityAnalytics,\n CommunityMember as DomainCommunityMember,\n} from '@headless-lms/core/reporting/admin';\nimport type {\n CommunityHome as DomainCommunityHome,\n CommunityHomeSpace as DomainCommunityHomeSpace,\n DirectoryEntry as DomainDirectoryEntry,\n} from '@headless-lms/core/reporting/member';\nimport { ListQuery, OrgUserProfileSchema, PageQuery, paginated, type Matches } from './shared.js';\n\nexport const Community = communityViewSchema;\nexport const CommunitiesQuery = ListQuery.extend({\n status: communityStatusSchema.optional(),\n});\nexport const CommunitiesPage = paginated(Community);\nexport const CreateCommunity = createCommunityInputSchema;\nexport const UpdateCommunity = updateCommunityInputSchema;\nexport const PatchDmSettings = patchDmSettingsInputSchema;\nexport const DmSettings = dmSettingsSchema;\nexport const SpaceDetail = spaceDetailSchema;\nexport const SpaceMember = spaceMemberSchema;\nexport const SpaceMembersPage = paginated(SpaceMember);\nexport const CreateSpace = createSpaceInputSchema;\nexport const UpdateSpace = updateSpaceInputSchema;\nexport const SetSpaceTopics = setSpaceTopicsInputSchema;\nexport const OrderedIds = z\n .object({\n ids: z\n .array(idSchema)\n .min(1)\n .max(200)\n .describe('Every id in the collection, once each, in the new order'),\n })\n .strict();\nexport const SpaceLinkBody = z\n .object({ contentId: idSchema.describe('The course, download or community to link') })\n .strict();\n\nexport const CommunityIdParam = z.object({ communityId: z.string() });\nexport const CommunitySpaceParam = z.object({ communityId: z.string(), spaceId: z.string() });\nexport const SpaceLinkParam = CommunitySpaceParam.extend({ linkId: z.string() });\nexport const SpaceMemberParam = CommunitySpaceParam.extend({ orgUserId: z.string() });\nexport const CommunityPostParam = z.object({ communityId: z.string(), postId: z.string() });\nexport const CommunityCommentParam = z.object({ communityId: z.string(), commentId: z.string() });\nexport const CommunityMessageParam = z.object({ communityId: z.string(), messageId: z.string() });\nexport const CommunityChatParam = z.object({ communityId: z.string(), chatId: z.string() });\n\nexport const CommunityMember = OrgUserProfileSchema.extend({ role: roleSchema });\ntype _CommunityMemberMatches = Matches<DomainCommunityMember, z.infer<typeof CommunityMember>> &\n Matches<z.infer<typeof CommunityMember>, DomainCommunityMember>;\nexport const CommunityMembersQuery = PageQuery.extend({ search: z.string().trim().optional() });\nexport const CommunityMembersPage = paginated(CommunityMember);\n\nexport const DirectoryEntry = z.object({\n orgUserId: z.string(),\n role: z.string(),\n displayName: z.string().nullable(),\n headline: z.string().nullable(),\n bio: z.string().nullable(),\n imageAssetId: z.string().nullable(),\n imageUrl: z.string().nullable(),\n});\ntype _DirectoryMatches = Matches<\n Omit<DomainDirectoryEntry, 'userId'>,\n z.infer<typeof DirectoryEntry>\n> &\n Matches<z.infer<typeof DirectoryEntry>, Omit<DomainDirectoryEntry, 'userId'>>;\nexport const DirectoryQuery = PageQuery.extend({\n search: z.string().trim().max(100).optional().describe('Matches part of a display name'),\n});\nexport const DirectoryPage = paginated(DirectoryEntry);\n\nconst CommunityHomeSpaceBase = z.object({\n id: z.string(),\n name: z.string(),\n memberCount: z.number().int().describe('Active space members'),\n accessRule: z.enum(['all_members', 'by_request', 'by_invite']),\n standing: z\n .enum(['open', 'member', 'requested', 'invited', 'full', 'none'])\n .describe(\n 'Where the viewer stands with this space, and so which action it offers. `open`: the viewer can open it without joining (an all-members space, or staff). `member`: the viewer belongs to it. `requested`: the viewer asked to join and awaits a decision. `invited`: the viewer may accept or refuse an invitation. `full`: it is at capacity. `none`: none of these; ask to join a `by_request` space, or wait for an invitation to a `by_invite` one.',\n ),\n});\n\nexport const LockedCommunitySpace = CommunityHomeSpaceBase.extend({\n locked: z\n .literal(true)\n .describe(\n 'The viewer cannot open this space. Only enough to request a place, accept an invite or contact staff is served; never its description, topics, links or settings',\n ),\n});\n\nexport const OpenCommunitySpace = CommunityHomeSpaceBase.extend({\n locked: z.literal(false).describe('The viewer can open this space and read its feed'),\n description: z.string().nullable(),\n capacity: z.number().int().nullable(),\n settings: z.object({\n comments: z.boolean(),\n reactions: z.boolean(),\n requireReview: z.boolean(),\n }),\n topics: z.array(z.object({ id: z.string(), name: z.string() })),\n links: z\n .array(\n z.object({\n id: z.string(),\n contentId: z.string(),\n type: z.enum(['course', 'download', 'community']),\n title: z.string(),\n }),\n )\n .describe('Linked content that is published; staff also see unpublished targets'),\n});\n\nexport const CommunityHomeSpace = z\n .discriminatedUnion('locked', [LockedCommunitySpace, OpenCommunitySpace])\n .describe(\n 'A space as the viewer sees it. A by-invite space the viewer is not invited to or a member of is never served',\n );\ntype _HomeSpaceMatches = Matches<DomainCommunityHomeSpace, z.infer<typeof CommunityHomeSpace>> &\n Matches<z.infer<typeof CommunityHomeSpace>, DomainCommunityHomeSpace>;\n\nexport const CommunityHome = z.object({\n communityId: z.string(),\n title: z.string(),\n description: z.string(),\n thumbnailUrl: z.string().nullable(),\n dm: dmSettingsSchema,\n spaces: z.array(CommunityHomeSpace),\n});\ntype _HomeMatches = Matches<DomainCommunityHome, z.infer<typeof CommunityHome>> &\n Matches<z.infer<typeof CommunityHome>, DomainCommunityHome>;\n\nexport const CommunityAnalytics = z.object({\n memberCount: z.number().int(),\n activeMembers: z.number().int(),\n postsPerSpace: z.array(z.object({ spaceId: z.string(), count: z.number().int() })),\n commentsPerPost: z.array(z.object({ postId: z.string(), count: z.number().int() })),\n messagesSent: z.number().int(),\n flagsRaised: z.number().int(),\n flagsResolved: z.number().int(),\n grantsLapsed: z.number().int(),\n grantsRenewed: z.number().int(),\n});\ntype _AnalyticsMatches = Matches<DomainCommunityAnalytics, z.infer<typeof CommunityAnalytics>> &\n Matches<z.infer<typeof CommunityAnalytics>, DomainCommunityAnalytics>;\n"],"mappings":"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"}
|