lucy-cli 2.0.0-beta.1 → 2.0.0-beta.11
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/.cursorignore +4 -0
- package/.wix/debug.log +10 -0
- package/README.md +117 -102
- package/dist/args.js +41 -1
- package/dist/args.js.map +1 -1
- package/dist/commands/exec.d.ts +2 -2
- package/dist/commands/exec.js +15 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/home.d.ts +2 -2
- package/dist/commands/home.js +25 -2
- package/dist/commands/home.js.map +1 -1
- package/dist/commands/install.d.ts +1 -0
- package/dist/commands/install.js +29 -16
- package/dist/commands/install.js.map +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.js +1 -8
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/init/blocks.d.ts +1 -1
- package/dist/init/blocks.js +2 -2
- package/dist/init/cargo.d.ts +1 -1
- package/dist/init/cargo.js +2 -2
- package/dist/init/expo.d.ts +1 -1
- package/dist/init/expo.js +2 -2
- package/dist/init/index.d.ts +1 -2
- package/dist/init/index.js +10 -1
- package/dist/init/index.js.map +1 -1
- package/dist/init/monorepo.d.ts +1 -1
- package/dist/init/monorepo.js +2 -2
- package/dist/init/tauri.d.ts +1 -1
- package/dist/init/tauri.js +2 -2
- package/dist/init/velo.d.ts +1 -1
- package/dist/init/velo.js +3 -2
- package/dist/init/velo.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/lucy.d.ts +2 -2
- package/dist/schemas/lucy.js +1 -1
- package/dist/schemas/lucy.js.map +1 -1
- package/dist/tasks/Gulpfile.js +3 -3
- package/dist/tasks/Gulpfile.js.map +1 -1
- package/dist/tasks/gulp/checks.js +12 -11
- package/dist/tasks/gulp/checks.js.map +1 -1
- package/dist/tasks/gulp/watchers.js +3 -3
- package/dist/tasks/gulp/watchers.js.map +1 -1
- package/dist/tasks/index.d.ts +1 -1
- package/files/templates/Default[B]/files/.cursorignore +4 -0
- package/files/templates/Default[C]/files/.cursorignore +4 -0
- package/files/templates/Default[E]/files/.cursorignore +4 -0
- package/files/templates/Default[E]/files/app.config.ts +69 -0
- package/files/templates/{expo[D] → Default[E]}/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/{expo[D] → Default[E]}/files/scripts/reset-project.ts +0 -0
- package/files/templates/Default[M]/files/.cursorignore +4 -0
- package/files/templates/Default[T]/files/.cursorignore +4 -0
- package/files/templates/expo verse[E]/files/.nvmrc +1 -0
- package/files/templates/expo verse[E]/files/.prettierignore +23 -0
- package/files/templates/expo verse[E]/files/.prettierrc.js +16 -0
- package/files/templates/expo verse[E]/files/.stylelintrc.json +8 -0
- package/files/templates/expo verse[E]/files/.vscode/extensions.json +10 -0
- package/files/templates/expo verse[E]/files/.vscode/launch.json +54 -0
- package/files/templates/expo verse[E]/files/.vscode/settings.json +30 -0
- package/files/templates/expo verse[E]/files/.vscode/tasks.json +0 -0
- package/files/templates/expo verse[E]/files/.yarnrc +1 -0
- package/files/templates/expo verse[E]/files/.yarnrc.yml +8 -0
- package/files/templates/expo verse[E]/files/App.tsx +63 -0
- package/files/templates/expo verse[E]/files/DEBUGGING.md +126 -0
- package/files/templates/expo verse[E]/files/README.md +45 -0
- package/files/templates/expo verse[E]/files/android/app/build.gradle +177 -0
- package/files/templates/expo verse[E]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[E]/files/android/app/proguard-rules.pro +14 -0
- package/files/templates/expo verse[E]/files/android/app/src/debug/AndroidManifest.xml +7 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/AndroidManifest.xml +33 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/colors.xml +6 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/strings.xml +7 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/styles.xml +12 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values-night/colors.xml +3 -0
- package/files/templates/expo verse[E]/files/android/build.gradle +37 -0
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/files/templates/expo verse[E]/files/android/gradle.properties +59 -0
- package/files/templates/expo verse[E]/files/android/gradlew +251 -0
- package/files/templates/expo verse[E]/files/android/gradlew.bat +94 -0
- package/files/templates/expo verse[E]/files/android/settings.gradle +39 -0
- package/files/templates/expo verse[E]/files/app.config.ts +77 -0
- package/files/templates/expo verse[E]/files/assets/data/de.csv +949 -0
- package/files/templates/expo verse[E]/files/assets/data/en.csv +949 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[E]/files/babel.config.js +10 -0
- package/files/templates/expo verse[E]/files/components/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/MainScreen.tsx +299 -0
- package/files/templates/expo verse[E]/files/components/Share.tsx +132 -0
- package/files/templates/expo verse[E]/files/components/ui/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/ui/dev.tsx +48 -0
- package/files/templates/expo verse[E]/files/constants/config.ts +30 -0
- package/files/templates/expo verse[E]/files/constants/theme.ts +18 -0
- package/files/templates/expo verse[E]/files/data/de.csv +219 -0
- package/files/templates/expo verse[E]/files/data/en.csv +219 -0
- package/files/templates/expo verse[E]/files/data/version.json +4 -0
- package/files/templates/expo verse[E]/files/eas.json +47 -0
- package/files/templates/expo verse[E]/files/eslint.config.mjs +185 -0
- package/files/templates/expo verse[E]/files/global.css +47 -0
- package/files/templates/expo verse[E]/files/hooks/useColorScheme.ts +17 -0
- package/files/templates/expo verse[E]/files/index.ts +28 -0
- package/files/templates/expo verse[E]/files/lib/content.ts +31 -0
- package/files/templates/expo verse[E]/files/lib/data.ts +180 -0
- package/files/templates/expo verse[E]/files/lib/helper.ts +54 -0
- package/files/templates/expo verse[E]/files/lib/index.ts +21 -0
- package/files/templates/expo verse[E]/files/lib/state.ts +128 -0
- package/files/templates/expo verse[E]/files/lib/storage.ts +17 -0
- package/files/templates/expo verse[E]/files/lib/taskManager/index.ts +38 -0
- package/files/templates/expo verse[E]/files/lib/taskManager/loadData.ts +14 -0
- package/files/templates/expo verse[E]/files/lib/utils/index.ts +11 -0
- package/files/templates/expo verse[E]/files/lib/utils/polyfills.ts +29 -0
- package/files/templates/expo verse[E]/files/lib/utils/screenshot.ts +77 -0
- package/files/templates/expo verse[E]/files/lucy.json +8 -0
- package/files/templates/expo verse[E]/files/metro.config.js +81 -0
- package/files/templates/expo verse[E]/files/models/index.ts +28 -0
- package/files/templates/expo verse[E]/files/nativewind-env.d.ts +1 -0
- package/files/templates/expo verse[E]/files/package.json +102 -0
- package/files/templates/expo verse[E]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo verse[E]/files/scripts/convert-verses.ts +309 -0
- package/files/templates/expo verse[E]/files/scripts/move-artifacts.ts +83 -0
- package/files/templates/expo verse[E]/files/scripts/reset-project.ts +116 -0
- package/files/templates/expo verse[E]/files/tailwind.config.js +63 -0
- package/files/templates/expo verse[E]/files/tsconfig.json +45 -0
- package/files/templates/expo verse[E]/files/types/index.ts +4 -0
- package/files/templates/expo verse[E]/files/types/reset.d.ts +1 -0
- package/files/templates/expo verse[E]/lucy.json +86 -0
- package/files/templates/velo[D]/files/.cursorignore +4 -0
- package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
- package/files/templates/velo[D]/files/local.tsconfig.json +6 -5
- package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
- package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
- package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
- package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
- package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
- package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
- package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
- package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
- package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
- package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -0
- package/files/templates/velo[D]/lucy.json +36 -26
- package/lucy +4 -0
- package/lucy.jpg +0 -0
- package/mitarbeiter-login.html +188 -0
- package/old/index.ts +0 -0
- package/package.json +15 -14
- package/pnpm-workspace.yaml +6 -0
- package/src/args.ts +41 -1
- package/src/commands/exec.ts +22 -18
- package/src/commands/home.ts +36 -2
- package/src/commands/install.ts +41 -21
- package/src/helpers.ts +1 -9
- package/src/index.ts +4 -2
- package/src/init/blocks.ts +2 -2
- package/src/init/cargo.ts +2 -2
- package/src/init/expo.ts +2 -2
- package/src/init/index.ts +10 -2
- package/src/init/monorepo.ts +2 -2
- package/src/init/tauri.ts +2 -2
- package/src/init/velo.ts +4 -3
- package/src/schemas/index.ts +2 -0
- package/src/schemas/lucy.ts +1 -1
- package/src/tasks/Gulpfile.ts +3 -3
- package/src/tasks/gulp/checks.ts +15 -14
- package/src/tasks/gulp/watchers.ts +3 -3
- /package/files/templates/{block[D] → Default[B]}/files/.stylelintrc.js +0 -0
- /package/files/templates/{block[D] → Default[B]}/lucy.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/.env +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/Cargo.toml +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/Makefile.toml +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/build/main.rs +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/beta.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/ci.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/default.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/development.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/produktion.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/config/stage.json +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/locales/todo.yml +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/files/public/index.html +0 -0
- /package/files/templates/{cargo[D] → Default[C]}/lucy.json +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.nvmrc +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.prettierignore +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.prettierrc.js +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.stylelintrc.js +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.yarnrc +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/.yarnrc.yml +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/README.md +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/assets/images/adaptive-icon.png +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/assets/images/favicon.png +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/assets/images/icon.png +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/assets/images/splash-icon.png +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/babel.config.js +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/components/.gitkeep +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/components/ui/.gitkeep +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/constants/theme.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/eas.json +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/eslint.config.mjs +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/global.css +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/hooks/useColorScheme.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/index.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/data.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/utils/index.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/utils/polyfills.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/client.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/error.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/index.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/metro.config.js +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/nativewind-env.d.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/pnpm-workspace.yaml +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/tailwind.config.js +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/tsconfig.json +0 -0
- /package/files/templates/{expo[D] → Default[E]}/files/types/reset.d.ts +0 -0
- /package/files/templates/{expo[D] → Default[E]}/lucy.json +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.editorconfig +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.nvmrc +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.prettierignore +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.prettierrc.json +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.stylelintrc.js +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.yarnrc +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/.yarnrc.yml +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/README.md +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/currents.config.ts +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/nx.json +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/pnpm-workspace.yaml +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/tsconfig.json +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/typedoc.json +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/files/vitest.config.ts +0 -0
- /package/files/templates/{monorepo[D] → Default[M]}/lucy.json +0 -0
- /package/files/templates/{tauri[D] → Default[T]}/lucy.json +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { satisfies } from 'effect/Function';
|
|
2
|
+
import { baseNotification, commonBase, } from 'public/lib/i18n/en';
|
|
3
|
+
import { NotificationTranslation } from 'public/lib/models/common/translator.model';
|
|
4
|
+
|
|
5
|
+
import { Common, Notification } from './default';
|
|
6
|
+
|
|
7
|
+
const common: Common = {
|
|
8
|
+
...commonBase,
|
|
9
|
+
mail_newsletter: {
|
|
10
|
+
subject: 'Welcome to the Newsletter',
|
|
11
|
+
body: `Welcome to the newsletter of the Integral Academy Switzerland. We are delighted that you have signed up for our newsletter.{{- br}}
|
|
12
|
+
You will soon receive an email with a confirmation link. Please click on the link to confirm your subscription.{{- br}}
|
|
13
|
+
As a thank you, you will receive a link to the exclusive download of our poster "Stages of the Self".
|
|
14
|
+
`,
|
|
15
|
+
title: 'Welcome to the Newsletter',
|
|
16
|
+
},
|
|
17
|
+
closed: 'Closed',
|
|
18
|
+
monFri: 'Mon. - Fri.',
|
|
19
|
+
all: 'All',
|
|
20
|
+
sat: 'Sat.',
|
|
21
|
+
sun: 'Sun.',
|
|
22
|
+
mon: 'Mon.',
|
|
23
|
+
tue: 'Tue.',
|
|
24
|
+
wed: 'Wed.',
|
|
25
|
+
thu: 'Thu.',
|
|
26
|
+
fri: 'Fri.',
|
|
27
|
+
validationErrors: {
|
|
28
|
+
required: 'This field is required!',
|
|
29
|
+
email: 'Please enter a valid email address!',
|
|
30
|
+
phone: 'Please enter a valid phone number!',
|
|
31
|
+
name: 'Please enter a valid name with at least 2 characters!',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// const notification: NotificationTranslationSchema = {
|
|
36
|
+
const notification: Notification = satisfies<NotificationTranslation>()({
|
|
37
|
+
...baseNotification,
|
|
38
|
+
shop_calender_date_reset: {
|
|
39
|
+
title: 'Date reset!',
|
|
40
|
+
message: 'The selected store is closed for {{date}}. Please choose a new date.',
|
|
41
|
+
},
|
|
42
|
+
shop_added_to_cart: {
|
|
43
|
+
title: 'Product successfully added to the cart!',
|
|
44
|
+
message: 'Enjoy your further shopping!',
|
|
45
|
+
},
|
|
46
|
+
shop_added_to_cart_failed: {
|
|
47
|
+
title: 'Product could not be added to the cart!',
|
|
48
|
+
message: 'Please try again later.',
|
|
49
|
+
},
|
|
50
|
+
shop_deleted_from_cart_failed: {
|
|
51
|
+
title: 'Product could not be removed from the cart!',
|
|
52
|
+
message: 'Please try again later.',
|
|
53
|
+
},
|
|
54
|
+
shop_deleted_from_cart: {
|
|
55
|
+
title: 'Product successfully removed from the cart!',
|
|
56
|
+
message: 'Enjoy your further shopping!',
|
|
57
|
+
},
|
|
58
|
+
shop_no_product_found: {
|
|
59
|
+
title: 'No product found!',
|
|
60
|
+
message: 'No product matches your search.',
|
|
61
|
+
},
|
|
62
|
+
shop_load_cart_error: {
|
|
63
|
+
title: "We couldn't load your cart!",
|
|
64
|
+
message: 'Please try again later. <br /> {{error}}',
|
|
65
|
+
},
|
|
66
|
+
shop_nothing_to_add: {
|
|
67
|
+
title: "We couldn't add any product!",
|
|
68
|
+
message: 'Please try again later.',
|
|
69
|
+
},
|
|
70
|
+
shop_payment_error: {
|
|
71
|
+
title: 'Payment failed!',
|
|
72
|
+
message: "We couldn't complete the payment process. Please try again later. <br /> <b>Status:</b> {{status}}",
|
|
73
|
+
},
|
|
74
|
+
shop_order_creation_error: {
|
|
75
|
+
title: "We couldn't complete the order!",
|
|
76
|
+
message: "The payment has been received, but we couldn't complete the order. Please contact us.<br /> <strong>Transaction ID</strong>: {{transactionId}} <br /> <strong>Cart ID</strong>: {{cartId}} <br /> <strong>Error: </strong>{{error}}",
|
|
77
|
+
},
|
|
78
|
+
shop_terms_not_accepted: {
|
|
79
|
+
title: 'You must accept the terms and conditions!',
|
|
80
|
+
message: 'Please accept the terms and conditions to continue.',
|
|
81
|
+
},
|
|
82
|
+
shop_no_checkout: {
|
|
83
|
+
title: "We couldn't find any order!",
|
|
84
|
+
message: 'Please try again later.',
|
|
85
|
+
},
|
|
86
|
+
shop_no_propper_address: {
|
|
87
|
+
title: 'No store selected!',
|
|
88
|
+
message: 'No store has been selected. Please choose a <a href="/store-and-date-picker">store</a>.',
|
|
89
|
+
},
|
|
90
|
+
date_not_available: {
|
|
91
|
+
title: 'The selected pickup date is not valid!',
|
|
92
|
+
message: 'The selected pickup date {{date}} is not valid. Please choose another date.',
|
|
93
|
+
},
|
|
94
|
+
cart_validation_error: {
|
|
95
|
+
title: 'Invalid product details!',
|
|
96
|
+
message: 'Product details for {{article}} are invalid.',
|
|
97
|
+
},
|
|
98
|
+
cart_min_order_value: {
|
|
99
|
+
title: 'Minimal order value not reached!',
|
|
100
|
+
message: 'The minimal order value is {{minOrderValue}}.00 CHF.',
|
|
101
|
+
},
|
|
102
|
+
shop_cart_invalid: {
|
|
103
|
+
title: 'The cart is invalid!',
|
|
104
|
+
message: 'Please try again later.',
|
|
105
|
+
},
|
|
106
|
+
shop_validation_error: {
|
|
107
|
+
title: 'The cart contains invalid products!',
|
|
108
|
+
message: '<b>{{article}} is invalid:</b><br />- {{- validationErrors}}',
|
|
109
|
+
},
|
|
110
|
+
shop_payment_failed: {
|
|
111
|
+
title: 'Redirecting to the shopping cart!',
|
|
112
|
+
message: 'In 2 minutes you will be redirected to the shopping cart. <a href="/warenkorb">Go to the shopping cart</a>',
|
|
113
|
+
}
|
|
114
|
+
} as const);
|
|
115
|
+
|
|
116
|
+
export { common, notification };
|
|
117
|
+
export default { common, notification };
|
package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { wixItemBaseSchema } from 'public/lib/models/wix/common/collection.model';
|
|
3
|
+
|
|
4
|
+
import { organizationSchema } from './organization.model';
|
|
5
|
+
|
|
6
|
+
export const memberRolesSchema = Schema.Struct({
|
|
7
|
+
key: Schema.String,
|
|
8
|
+
account: Schema.String,
|
|
9
|
+
roles: Schema.Array(Schema.String),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const memberRolesWithOrgSchema = Schema.Struct({
|
|
13
|
+
...wixItemBaseSchema.fields,
|
|
14
|
+
key: Schema.String,
|
|
15
|
+
account: Schema.String,
|
|
16
|
+
roles: Schema.Array(Schema.String),
|
|
17
|
+
organizations_members: organizationSchema,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export const memberRolesWithOrgCollectionSchema = Schema.mutable(Schema.Array(memberRolesWithOrgSchema));
|
package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { wixItemBaseSchema } from 'public/lib/models/wix/common/collection.model';
|
|
3
|
+
import { addressSchema, mediaGallerySchema } from 'public/lib/models/wix/common/common.model';
|
|
4
|
+
|
|
5
|
+
import { subscriptionsSchema } from './subscriptions.model';
|
|
6
|
+
|
|
7
|
+
export const organizationBaseSchema = Schema.Struct({
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
description: Schema.String,
|
|
10
|
+
location: addressSchema,
|
|
11
|
+
phone: Schema.optional(Schema.String),
|
|
12
|
+
website: Schema.optional(Schema.String),
|
|
13
|
+
logo: Schema.String,
|
|
14
|
+
media_gallery: mediaGallerySchema,
|
|
15
|
+
subscription: subscriptionsSchema,
|
|
16
|
+
slug: Schema.optional(Schema.String),
|
|
17
|
+
usage: Schema.String,
|
|
18
|
+
validated: Schema.Boolean,
|
|
19
|
+
email: Schema.String,
|
|
20
|
+
watch: Schema.Boolean,
|
|
21
|
+
flagged: Schema.Boolean,
|
|
22
|
+
threshold: Schema.Number,
|
|
23
|
+
stage: Schema.String,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// export class OrganizationSchema extends Schema.Class<OrganizationSchema>('OrganizationSchema')(
|
|
28
|
+
// {
|
|
29
|
+
// ...wixItemBaseSchema.fields,
|
|
30
|
+
// ...organizationBaseSchema.fields,
|
|
31
|
+
// }
|
|
32
|
+
// ) {}
|
|
33
|
+
export const organizationSchema = Schema.Struct({
|
|
34
|
+
...wixItemBaseSchema.fields,
|
|
35
|
+
...organizationBaseSchema.fields,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const organizationsItemsSchema = Schema.Array(organizationSchema);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { satisfies } from 'effect/Function';
|
|
2
|
+
import { Schema } from 'effect/index';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the base schema for a feature literal.
|
|
6
|
+
*/
|
|
7
|
+
export const futuresSchema = Schema.Literal('create_event', 'create_organization');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Defines the base schema for a single subscription plan.
|
|
11
|
+
*/
|
|
12
|
+
export const planSchema = Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
name: Schema.String,
|
|
15
|
+
order: Schema.Number,
|
|
16
|
+
features: Schema.Array(futuresSchema),
|
|
17
|
+
limits: Schema.Struct({
|
|
18
|
+
organizations: Schema.Number,
|
|
19
|
+
events: Schema.Number,
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A derived TypeScript type for a Plan, for convenience.
|
|
25
|
+
*/
|
|
26
|
+
export type Plan = Schema.Schema.Type<typeof planSchema>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The static list of all available subscription plans.
|
|
30
|
+
* This data is typed and validated against the planSchema at build time.
|
|
31
|
+
* By keeping this in a separate file, we prevent circular dependencies.
|
|
32
|
+
*/
|
|
33
|
+
export const availablePlans = satisfies<Plan[]>()([
|
|
34
|
+
{
|
|
35
|
+
id: '00000000-0000-0000-0000-000000000000',
|
|
36
|
+
name: 'free',
|
|
37
|
+
order: 0,
|
|
38
|
+
features: [ 'create_event', 'create_organization' ],
|
|
39
|
+
limits: {
|
|
40
|
+
organizations: 2,
|
|
41
|
+
events: 1
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: '26b02e36-6d07-41d8-ae49-8241756b4270',
|
|
46
|
+
name: '1 Jahr kostenlos',
|
|
47
|
+
order: 1,
|
|
48
|
+
features: ['create_event', 'create_organization'],
|
|
49
|
+
limits: {
|
|
50
|
+
organizations: 2,
|
|
51
|
+
events: 1
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'a86edd6d-8d7e-468d-b763-838674cff834',
|
|
56
|
+
name: 'Einsteiger',
|
|
57
|
+
order: 2,
|
|
58
|
+
features: ['create_event', 'create_organization'],
|
|
59
|
+
limits: {
|
|
60
|
+
organizations: 2,
|
|
61
|
+
events: 1
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: '9c6b158e-2689-45c0-95a3-8c0e596a69ce',
|
|
66
|
+
name: 'Hobby',
|
|
67
|
+
order: 3,
|
|
68
|
+
features: [],
|
|
69
|
+
limits: {
|
|
70
|
+
organizations: 2,
|
|
71
|
+
events: 1
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'c7de837b-7463-4508-a89c-d7deec3fc9fd',
|
|
76
|
+
name: 'Teilzeit',
|
|
77
|
+
order: 4,
|
|
78
|
+
features: ['create_event', 'create_organization'],
|
|
79
|
+
limits: {
|
|
80
|
+
organizations: 2,
|
|
81
|
+
events: 1
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'c1e48401-1126-4834-be26-6fd5df9d5ffe',
|
|
86
|
+
name: 'Vollzeit',
|
|
87
|
+
order: 5,
|
|
88
|
+
features: ['create_event', 'create_organization'],
|
|
89
|
+
limits: {
|
|
90
|
+
organizations: 2,
|
|
91
|
+
events: 1
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
] as const);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { wixItemBaseSchema } from 'public/lib/models/wix/common/collection.model';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const stageBaseSchema = Schema.Struct({
|
|
6
|
+
name: Schema.String,
|
|
7
|
+
description: Schema.String,
|
|
8
|
+
color: Schema.String,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const stageSchema = Schema.Struct({
|
|
12
|
+
...wixItemBaseSchema.fields,
|
|
13
|
+
...stageBaseSchema.fields,
|
|
14
|
+
});
|
package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { satisfies } from 'effect/Function';
|
|
2
|
+
import { Schema } from 'effect/index';
|
|
3
|
+
|
|
4
|
+
export const futuresSchema = Schema.Literal('create_event', 'create_organization');
|
|
5
|
+
export const planSchema = Schema.Struct({
|
|
6
|
+
id: Schema.String,
|
|
7
|
+
name: Schema.String,
|
|
8
|
+
order: Schema.Number,
|
|
9
|
+
features: Schema.Array(futuresSchema),
|
|
10
|
+
limits: Schema.Struct({
|
|
11
|
+
organizations: Schema.Number,
|
|
12
|
+
events: Schema.Number,
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const availablePlans = satisfies<typeof planSchema.Type[]>()([
|
|
17
|
+
{
|
|
18
|
+
id: '00000000-0000-0000-0000-000000000000',
|
|
19
|
+
name: 'free',
|
|
20
|
+
order: 0,
|
|
21
|
+
features: [ 'create_event', 'create_organization' ],
|
|
22
|
+
limits: {
|
|
23
|
+
organizations: 2,
|
|
24
|
+
events: 1
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: '26b02e36-6d07-41d8-ae49-8241756b4270',
|
|
29
|
+
name: '1 Jahr kostenlos',
|
|
30
|
+
order: 1,
|
|
31
|
+
features: ['create_event', 'create_organization'],
|
|
32
|
+
limits: {
|
|
33
|
+
organizations: 2,
|
|
34
|
+
events: 1
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'a86edd6d-8d7e-468d-b763-838674cff834',
|
|
39
|
+
name: 'Einsteiger',
|
|
40
|
+
order: 2,
|
|
41
|
+
features: ['create_event', 'create_organization'],
|
|
42
|
+
limits: {
|
|
43
|
+
organizations: 2,
|
|
44
|
+
events: 1
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: '9c6b158e-2689-45c0-95a3-8c0e596a69ce',
|
|
49
|
+
name: 'Hobby',
|
|
50
|
+
order: 3,
|
|
51
|
+
features: [],
|
|
52
|
+
limits: {
|
|
53
|
+
organizations: 2,
|
|
54
|
+
events: 1
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'c7de837b-7463-4508-a89c-d7deec3fc9fd',
|
|
59
|
+
name: 'Teilzeit',
|
|
60
|
+
order: 4,
|
|
61
|
+
features: ['create_event', 'create_organization'],
|
|
62
|
+
limits: {
|
|
63
|
+
organizations: 2,
|
|
64
|
+
events: 1
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 'c1e48401-1126-4834-be26-6fd5df9d5ffe',
|
|
69
|
+
name: 'Vollzeit',
|
|
70
|
+
order: 5,
|
|
71
|
+
features: ['create_event', 'create_organization'],
|
|
72
|
+
limits: {
|
|
73
|
+
organizations: 2,
|
|
74
|
+
events: 1
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
] as const);
|
|
78
|
+
export const subscriptionsSchema = Schema.Literal(...availablePlans.map(plan => plan.id));
|
|
79
|
+
|
|
80
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { wixItemBaseSchema } from 'public/lib/models/wix/common/collection.model';
|
|
3
|
+
|
|
4
|
+
export const tagBaseSchema = Schema.Struct({
|
|
5
|
+
name: Schema.String,
|
|
6
|
+
description: Schema.String,
|
|
7
|
+
image: Schema.String,
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const tagSchema = Schema.Struct({
|
|
11
|
+
...wixItemBaseSchema.fields,
|
|
12
|
+
...tagBaseSchema.fields,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export const tagsSchema = Schema.Array(tagSchema);
|
package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { wixItemBaseSchema } from 'public/lib/models/wix/common/collection.model';
|
|
3
|
+
|
|
4
|
+
export const translationBaseSchema = Schema.Struct({
|
|
5
|
+
key: Schema.String,
|
|
6
|
+
language: Schema.String,
|
|
7
|
+
text: Schema.optional(Schema.String),
|
|
8
|
+
rich_text: Schema.optional(Schema.String),
|
|
9
|
+
rich_content: Schema.optional(Schema.String),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const translationSchema = Schema.Struct({
|
|
13
|
+
...wixItemBaseSchema.fields,
|
|
14
|
+
...translationBaseSchema.fields,
|
|
15
|
+
});
|
|
16
|
+
export const translationsSchema = Schema.Array(translationSchema);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { jwtBaseSchema } from 'public/lib/models/dto/jwt.mode';
|
|
3
|
+
|
|
4
|
+
import { Roles } from '../../config';
|
|
5
|
+
import { availablePlans, planSchema } from '../collections/subscriptions.model';
|
|
6
|
+
|
|
7
|
+
export const subscriptionSchema = Schema.Union(planSchema);
|
|
8
|
+
export type Subscription = typeof subscriptionSchema.Type;
|
|
9
|
+
export const organizationDetails = Schema.Struct({
|
|
10
|
+
organizationId: Schema.String,
|
|
11
|
+
organizationSlug: Schema.optional(Schema.String),
|
|
12
|
+
organizationSubscriptionId: Schema.Literal(...availablePlans.map(plan => plan.id)),
|
|
13
|
+
roles: Schema.mutable(Schema.Array(Schema.Enums(Roles))),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const rolesByOrgCollectionSchema = Schema.Struct({
|
|
17
|
+
user: Schema.Struct({
|
|
18
|
+
id: Schema.String,
|
|
19
|
+
subscription: Schema.NullOr(subscriptionSchema),
|
|
20
|
+
}),
|
|
21
|
+
organizations: Schema.Array(organizationDetails),
|
|
22
|
+
isSuperAdmin: Schema.Boolean,
|
|
23
|
+
});
|
|
24
|
+
export type AuthzData = typeof rolesByOrgCollectionSchema.Type;
|
|
25
|
+
|
|
26
|
+
export const jwtSchema = Schema.Struct({
|
|
27
|
+
...jwtBaseSchema.fields,
|
|
28
|
+
...rolesByOrgCollectionSchema.fields,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//Schema.optional(Schema.Union(...availablePlans.map(plan => Schema.Literal(typeof plan))))
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Schema } from 'effect/index';
|
|
2
|
+
import { createResponseDTOSchema } from 'public/lib/dto/response.dto';
|
|
3
|
+
import { createRequestDTOSchema } from 'public/lib/dto/shared/request.dto';
|
|
4
|
+
import { ResponseDTO } from 'public/lib/models/dto/response.model';
|
|
5
|
+
import { multireferenceSchema } from 'public/lib/models/wix/common/common.model';
|
|
6
|
+
import { organizationSchema } from 'public/models/collections/organization.model';
|
|
7
|
+
|
|
8
|
+
import { stageSchema } from '../collections/stage.model';
|
|
9
|
+
import { tagSchema } from '../collections/tag.model';
|
|
10
|
+
|
|
11
|
+
export const organizationFullSchema = Schema.Struct({
|
|
12
|
+
...organizationSchema.fields,
|
|
13
|
+
tags: multireferenceSchema(tagSchema),
|
|
14
|
+
stage: stageSchema, // Assuming stage is a string, adjust if it's different
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// export type GetOrganizationDTO = ResponseDTO<typeof organizationFullSchema.Type | undefined>;
|
|
18
|
+
// export const getOrganizationDTOSchema = createResponseDTOSchema(organizationFullSchema);
|
|
19
|
+
// export type GetSingleOrganizationDTO = ResponseDTO<typeof organizationFullSchema.Type>;
|
|
20
|
+
// export const requestOrganizationDTOSchema = createRequestDTOSchema(Schema.String);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
|
|
3
|
+
export const userSchema = Schema.Struct({
|
|
4
|
+
label: Schema.String,
|
|
5
|
+
value: Schema.String,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export const userListSchema = Schema.mutable(Schema.Array(userSchema));
|
|
9
|
+
|
|
10
|
+
export const responseSchema = Schema.Struct({
|
|
11
|
+
status: Schema.String,
|
|
12
|
+
message: Schema.String,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export type UserList = typeof userListSchema.Type;
|
|
17
|
+
|
|
18
|
+
export type Response = typeof responseSchema.Type;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { tablesBaseSchema, valuesBaseSchema } from 'public/lib/models/store/local';
|
|
2
|
+
|
|
3
|
+
export const tablesSchema = {
|
|
4
|
+
// pets: { species: { type: 'string' }, age: { type: 'number' }, puppie: { type: 'boolean' } },
|
|
5
|
+
...tablesBaseSchema,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export const valuesSchema = {
|
|
9
|
+
...valuesBaseSchema,
|
|
10
|
+
} as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { tablesBaseSchema, valuesBaseSchema } from 'public/lib/models/store/memory';
|
|
2
|
+
|
|
3
|
+
export const tablesSchema = {
|
|
4
|
+
// pets: { species: { type: 'string' } },
|
|
5
|
+
...tablesBaseSchema,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export const valuesSchema = {
|
|
9
|
+
...valuesBaseSchema,
|
|
10
|
+
} as const;
|