From 935108341944499aaa60784df64ed02185a10b6b Mon Sep 17 00:00:00 2001 From: nichenqin Date: Fri, 19 May 2023 21:41:20 +0800 Subject: [PATCH 01/18] chore: upgrade dependencies --- apps/backend/package.json | 8 +- apps/frontend/package.json | 8 +- package.json | 2 +- packages/core/package.json | 2 +- packages/database/sqlite/package.json | 4 +- packages/i18n/package.json | 2 +- pnpm-lock.yaml | 344 +++++++++++++------------- 7 files changed, 185 insertions(+), 185 deletions(-) diff --git a/apps/backend/package.json b/apps/backend/package.json index 58be9483c..5b0271074 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -9,7 +9,7 @@ "@nestjs/common": "^9.4.1", "@nestjs/config": "^2.3.2", "@nestjs/core": "^9.4.1", - "@nestjs/cqrs": "^9.0.3", + "@nestjs/cqrs": "^9.0.4", "@nestjs/jwt": "^10.0.3", "@nestjs/passport": "^9.0.3", "@nestjs/platform-express": "^9.4.1", @@ -28,7 +28,7 @@ "compression": "^1.7.4", "cookie-parser": "^1.4.6", "helmet": "^7.0.0", - "i18next": "^22.4.15", + "i18next": "^22.5.0", "i18next-http-middleware": "^3.3.0", "joi": "^17.9.2", "nestjs-cls": "^3.3.1", @@ -49,14 +49,14 @@ "@nestjs/schematics": "^9.2.0", "@nestjs/testing": "^9.4.1", "@swc/cli": "^0.1.62", - "@swc/core": "^1.3.58", + "@swc/core": "^1.3.59", "@types/bcrypt": "^5.0.0", "@types/compression": "^1.7.2", "@types/cookie-parser": "^1.4.3", "@types/express": "^4.17.17", "@types/jest": "^29.5.1", "@types/multer": "^1.4.7", - "@types/node": "^20.2.0", + "@types/node": "^20.2.1", "@types/passport": "^1.0.12", "@types/passport-jwt": "^3.0.8", "@types/passport-local": "^1.0.35", diff --git a/apps/frontend/package.json b/apps/frontend/package.json index dca2d76fd..04165a086 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -47,11 +47,11 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-svelte3": "^4.0.0", "flowbite": "^1.6.5", - "flowbite-svelte": "^0.35.4", + "flowbite-svelte": "^0.36.2", "htm": "^3.1.1", - "i18next": "^22.4.15", + "i18next": "^22.5.0", "i18next-browser-languagedetector": "^7.0.1", - "i18next-http-backend": "^2.2.0", + "i18next-http-backend": "^2.2.1", "js-cookie": "^3.0.5", "keycode": "^2.2.1", "lodash-es": "^4.17.21", @@ -75,7 +75,7 @@ "sveltekit-superforms": "^0.8.6", "tailwindcss": "^3.3.2", "trpc-svelte-query": "^0.0.2", - "tslib": "^2.5.1", + "tslib": "^2.5.2", "type-fest": "^3.10.0", "typescript": "^5.0.4", "vite": "^4.3.8", diff --git a/package.json b/package.json index e41129d60..4895957a9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "devDependencies": { "@commitlint/cli": "^17.6.3", "@commitlint/config-conventional": "^17.6.3", - "@types/node": "^20.2.0", + "@types/node": "^20.2.1", "@undb/eslint-config": "^0.0.0", "commitizen": "^4.3.0", "cz-conventional-changelog": "^3.3.0", diff --git a/packages/core/package.json b/packages/core/package.json index c8a9b8490..de5c67068 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,7 +19,7 @@ "@types/lodash": "^4.14.194", "@types/lodash-es": "^4.17.7", "@types/mime-types": "^2.1.1", - "i18next": "^22.4.15", + "i18next": "^22.5.0", "rimraf": "^5.0.1", "t": "^0.5.1", "tsconfig": "^0.0.0", diff --git a/packages/database/sqlite/package.json b/packages/database/sqlite/package.json index a9a285ec7..3b31e7efa 100644 --- a/packages/database/sqlite/package.json +++ b/packages/database/sqlite/package.json @@ -18,12 +18,12 @@ "devDependencies": { "@mikro-orm/cli": "^5.7.7", "@mikro-orm/reflection": "^5.7.7", - "@swc/core": "^1.3.58", + "@swc/core": "^1.3.59", "@types/lodash-es": "^4.17.7", "rimraf": "^5.0.1", "ts-node": "^10.9.1", "tsconfig": "^0.0.0", - "tslib": "^2.5.1", + "tslib": "^2.5.2", "tsup": "^6.7.0", "type-fest": "^3.10.0", "typescript": "^5.0.4", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index d75701bd4..5eea5effd 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -5,7 +5,7 @@ "author": "", "devDependencies": { "@types/uuid": "^9.0.1", - "i18next": "^22.4.15", + "i18next": "^22.5.0", "rimraf": "^5.0.1", "tsconfig": "^0.0.0", "tsup": "^6.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6e977191..8775e10ff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^17.6.3 version: 17.6.3 '@types/node': - specifier: ^20.2.0 - version: 20.2.0 + specifier: ^20.2.1 + version: 20.2.1 '@undb/eslint-config': specifier: ^0.0.0 version: link:packages/eslint-config @@ -72,8 +72,8 @@ importers: specifier: ^9.4.1 version: 9.4.1(@nestjs/common@9.4.1)(@nestjs/platform-express@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/cqrs': - specifier: ^9.0.3 - version: 9.0.3(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1) + specifier: ^9.0.4 + version: 9.0.4(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/jwt': specifier: ^10.0.3 version: 10.0.3(@nestjs/common@9.4.1) @@ -129,8 +129,8 @@ importers: specifier: ^7.0.0 version: 7.0.0 i18next: - specifier: ^22.4.15 - version: 22.4.15 + specifier: ^22.5.0 + version: 22.5.0 i18next-http-middleware: specifier: ^3.3.0 version: 3.3.0 @@ -176,7 +176,7 @@ importers: devDependencies: '@nestjs/cli': specifier: ^9.5.0 - version: 9.5.0(@swc/core@1.3.58) + version: 9.5.0(@swc/core@1.3.59) '@nestjs/schematics': specifier: ^9.2.0 version: 9.2.0(chokidar@3.5.3)(typescript@4.9.5) @@ -185,10 +185,10 @@ importers: version: 9.4.1(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(@nestjs/platform-express@9.4.1) '@swc/cli': specifier: ^0.1.62 - version: 0.1.62(@swc/core@1.3.58) + version: 0.1.62(@swc/core@1.3.59) '@swc/core': - specifier: ^1.3.58 - version: 1.3.58 + specifier: ^1.3.59 + version: 1.3.59 '@types/bcrypt': specifier: ^5.0.0 version: 5.0.0 @@ -208,8 +208,8 @@ importers: specifier: ^1.4.7 version: 1.4.7 '@types/node': - specifier: ^20.2.0 - version: 20.2.0 + specifier: ^20.2.1 + version: 20.2.1 '@types/passport': specifier: ^1.0.12 version: 1.0.12 @@ -239,7 +239,7 @@ importers: version: 4.18.2 jest: specifier: ^29.5.0 - version: 29.5.0(@types/node@20.2.0)(ts-node@10.9.1) + version: 29.5.0(@types/node@20.2.1)(ts-node@10.9.1) nodemon: specifier: ^2.0.22 version: 2.0.22 @@ -257,7 +257,7 @@ importers: version: 9.4.2(typescript@5.0.4)(webpack@5.82.1) ts-node: specifier: ^10.9.1 - version: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + version: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) tsconfig: specifier: ^0.0.0 version: link:../../packages/tsconfig @@ -373,20 +373,20 @@ importers: specifier: ^1.6.5 version: 1.6.5 flowbite-svelte: - specifier: ^0.35.4 - version: 0.35.4(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1) + specifier: ^0.36.2 + version: 0.36.2(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1) htm: specifier: ^3.1.1 version: 3.1.1 i18next: - specifier: ^22.4.15 - version: 22.4.15 + specifier: ^22.5.0 + version: 22.5.0 i18next-browser-languagedetector: specifier: ^7.0.1 version: 7.0.1 i18next-http-backend: - specifier: ^2.2.0 - version: 2.2.0 + specifier: ^2.2.1 + version: 2.2.1 js-cookie: specifier: ^3.0.5 version: 3.0.5 @@ -431,7 +431,7 @@ importers: version: 5.1.1 svelte-i18next: specifier: ^2.0.0 - version: 2.0.0(i18next@22.4.15)(svelte@3.59.1) + version: 2.0.0(i18next@22.5.0)(svelte@3.59.1) svelte-popperjs: specifier: ^1.3.2 version: 1.3.2(@popperjs/core@2.11.7)(svelte@3.59.1) @@ -457,8 +457,8 @@ importers: specifier: ^0.0.2 version: 0.0.2(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1) tslib: - specifier: ^2.5.1 - version: 2.5.1 + specifier: ^2.5.2 + version: 2.5.2 type-fest: specifier: ^3.10.0 version: 3.10.0(typescript@5.0.4) @@ -467,7 +467,7 @@ importers: version: 5.0.4 vite: specifier: ^4.3.8 - version: 4.3.8(@types/node@20.2.0) + version: 4.3.8(@types/node@20.2.1) vitest: specifier: ^0.31.1 version: 0.31.1 @@ -506,7 +506,7 @@ importers: version: 3.21.4 zod-i18n-map: specifier: ^2.12.0 - version: 2.12.0(i18next@22.4.15)(zod@3.21.4) + version: 2.12.0(i18next@22.5.0)(zod@3.21.4) devDependencies: '@types/lodash': specifier: ^4.14.194 @@ -518,8 +518,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 i18next: - specifier: ^22.4.15 - version: 22.4.15 + specifier: ^22.5.0 + version: 22.5.0 rimraf: specifier: ^5.0.1 version: 5.0.1 @@ -531,7 +531,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) type-fest: specifier: ^3.10.0 version: 3.10.0(typescript@5.0.4) @@ -568,7 +568,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -619,8 +619,8 @@ importers: specifier: ^5.7.7 version: 5.7.7(@mikro-orm/core@5.7.7) '@swc/core': - specifier: ^1.3.58 - version: 1.3.58 + specifier: ^1.3.59 + version: 1.3.59 '@types/lodash-es': specifier: ^4.17.7 version: 4.17.7 @@ -629,16 +629,16 @@ importers: version: 5.0.1 ts-node: specifier: ^10.9.1 - version: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + version: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) tsconfig: specifier: ^0.0.0 version: link:../../tsconfig tslib: - specifier: ^2.5.1 - version: 2.5.1 + specifier: ^2.5.2 + version: 2.5.2 tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) type-fest: specifier: ^3.10.0 version: 3.10.0(typescript@5.0.4) @@ -684,7 +684,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -727,14 +727,14 @@ importers: dependencies: zod-i18n-map: specifier: ^2.12.0 - version: 2.12.0(i18next@22.4.15)(zod@3.21.4) + version: 2.12.0(i18next@22.5.0)(zod@3.21.4) devDependencies: '@types/uuid': specifier: ^9.0.1 version: 9.0.1 i18next: - specifier: ^22.4.15 - version: 22.4.15 + specifier: ^22.5.0 + version: 22.5.0 rimraf: specifier: ^5.0.1 version: 5.0.1 @@ -743,7 +743,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -777,7 +777,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4) + version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -1399,15 +1399,15 @@ packages: '@commitlint/execute-rule': 17.4.0 '@commitlint/resolve-extends': 17.4.4 '@commitlint/types': 17.4.4 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 cosmiconfig: 8.1.3 - cosmiconfig-typescript-loader: 4.3.0(@types/node@20.2.0)(cosmiconfig@8.1.3)(ts-node@10.9.1)(typescript@5.0.4) + cosmiconfig-typescript-loader: 4.3.0(@types/node@20.2.1)(cosmiconfig@8.1.3)(ts-node@10.9.1)(typescript@5.0.4) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + ts-node: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) typescript: 5.0.4 transitivePeerDependencies: - '@swc/core' @@ -1851,7 +1851,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 jest-message-util: 29.5.0 jest-util: 29.5.0 @@ -1872,14 +1872,14 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.8.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.5.0(@types/node@20.2.0)(ts-node@10.9.1) + jest-config: 29.5.0(@types/node@20.2.1)(ts-node@10.9.1) jest-haste-map: 29.5.0 jest-message-util: 29.5.0 jest-regex-util: 29.4.3 @@ -1906,7 +1906,7 @@ packages: dependencies: '@jest/fake-timers': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 jest-mock: 29.5.0 dev: true @@ -1933,7 +1933,7 @@ packages: dependencies: '@jest/types': 29.5.0 '@sinonjs/fake-timers': 10.0.2 - '@types/node': 20.2.0 + '@types/node': 20.2.1 jest-message-util: 29.5.0 jest-mock: 29.5.0 jest-util: 29.5.0 @@ -1966,7 +1966,7 @@ packages: '@jest/transform': 29.5.0 '@jest/types': 29.5.0 '@jridgewell/trace-mapping': 0.3.18 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 @@ -2054,7 +2054,7 @@ packages: '@jest/schemas': 29.4.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.2.0 + '@types/node': 20.2.1 '@types/yargs': 17.0.24 chalk: 4.1.2 dev: true @@ -2396,7 +2396,7 @@ packages: os-filter-obj: 2.0.0 dev: true - /@nestjs/cli@9.5.0(@swc/core@1.3.58): + /@nestjs/cli@9.5.0(@swc/core@1.3.59): resolution: {integrity: sha512-Z7q+3vNsQSG2d2r2Hl/OOj5EpfjVx3OfnJ9+KuAsOdw1sKLm7+Zc6KbhMFTd/eIvfx82ww3Nk72xdmfPYCulWA==} engines: {node: '>= 12.9.0'} hasBin: true @@ -2421,7 +2421,7 @@ packages: tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.0.1 typescript: 4.9.5 - webpack: 5.82.1(@swc/core@1.3.58) + webpack: 5.82.1(@swc/core@1.3.59) webpack-node-externals: 3.0.0 transitivePeerDependencies: - '@swc/core' @@ -2501,8 +2501,8 @@ packages: transitivePeerDependencies: - encoding - /@nestjs/cqrs@9.0.3(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1): - resolution: {integrity: sha512-hmbrqf51BVdgmnnxErnLVXfPNTEqr4Hz8DyLa9dKLIW3BuOyI5RDwJ/9sKbJ47UDBhumC5nQlNK9qk27mhqHfw==} + /@nestjs/cqrs@9.0.4(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1): + resolution: {integrity: sha512-nWDF+xs4jqs6OjxFg/wVSd0NiIV9+EFCJrJNTo4VRWe78CcAaitbp56CBspUh4gKyfkci95i+EhHdEqRXKFptg==} peerDependencies: '@nestjs/common': ^9.0.0 '@nestjs/core': ^9.0.0 @@ -2809,7 +2809,7 @@ packages: open: 8.4.2 picocolors: 1.0.0 tiny-glob: 0.2.9 - tslib: 2.5.1 + tslib: 2.5.2 dev: true /@playwright/test@1.33.0: @@ -2817,7 +2817,7 @@ packages: engines: {node: '>=14'} hasBin: true dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 playwright-core: 1.33.0 optionalDependencies: fsevents: 2.3.2 @@ -2946,7 +2946,7 @@ packages: svelte: 3.59.1 tiny-glob: 0.2.9 undici: 5.22.0 - vite: 4.3.8(@types/node@20.2.0) + vite: 4.3.8(@types/node@20.2.1) transitivePeerDependencies: - supports-color dev: true @@ -2964,13 +2964,13 @@ packages: magic-string: 0.30.0 svelte: 3.59.1 svelte-hmr: 0.15.1(svelte@3.59.1) - vite: 4.3.8(@types/node@20.2.0) + vite: 4.3.8(@types/node@20.2.1) vitefu: 0.2.4(vite@4.3.8) transitivePeerDependencies: - supports-color dev: true - /@swc/cli@0.1.62(@swc/core@1.3.58): + /@swc/cli@0.1.62(@swc/core@1.3.59): resolution: {integrity: sha512-kOFLjKY3XH1DWLfXL1/B5MizeNorHR8wHKEi92S/Zi9Md/AK17KSqR8MgyRJ6C1fhKHvbBCl8wboyKAFXStkYw==} engines: {node: '>= 12.13'} hasBin: true @@ -2982,7 +2982,7 @@ packages: optional: true dependencies: '@mole-inc/bin-wrapper': 8.0.1 - '@swc/core': 1.3.58 + '@swc/core': 1.3.59 commander: 7.2.0 fast-glob: 3.2.12 semver: 7.5.0 @@ -2990,8 +2990,8 @@ packages: source-map: 0.7.4 dev: true - /@swc/core-darwin-arm64@1.3.58: - resolution: {integrity: sha512-NwX9768gcM4HjBEE+2VCMB+h/5bwNDF4DngOTJa9w02l3AwGZXWE66X4ulJQ3Oxv8EAz1nzWb8lbi3XT+WCtmQ==} + /@swc/core-darwin-arm64@1.3.59: + resolution: {integrity: sha512-AnqWFBgEKHP0jb4iZqx7eVQT9/rX45+DE4Ox7GpwCahUKxxrsDLyXzKhwLwQuAjUvtu5JcSB77szKpPGDM49fQ==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] @@ -2999,8 +2999,8 @@ packages: dev: true optional: true - /@swc/core-darwin-x64@1.3.58: - resolution: {integrity: sha512-XUdKXRIu8S7N5kmrtd0Nxf3uPIgZhQbgVHPhkvYH+Qwb+uXsdltKPiRwhvLI9M0yF3fvIrKtGJ8qUJdH5ih4zw==} + /@swc/core-darwin-x64@1.3.59: + resolution: {integrity: sha512-iqDs+yii9mOsmpJez82SEi4d4prWDRlapHxKnDVJ0x1AqRo41vIq8t3fujrvCHYU5VQgOYGh4ooXQpaP2H3B2A==} engines: {node: '>=10'} cpu: [x64] os: [darwin] @@ -3008,8 +3008,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm-gnueabihf@1.3.58: - resolution: {integrity: sha512-9M3/5RzjCXnz94a1kxb+0eBzqyZkxzeYTMmvcjIJSy7MVvWNuy0wHuh+x96X/6197g40P9LkzAiZ7q0DvxSPQQ==} + /@swc/core-linux-arm-gnueabihf@1.3.59: + resolution: {integrity: sha512-PB0PP+SgkCSd/kYmltnPiGv42cOSaih1OjXCEjxvNwUFEmWqluW6uGdWaNiR1LoYMxhcHZTc336jL2+O3l6p0Q==} engines: {node: '>=10'} cpu: [arm] os: [linux] @@ -3017,8 +3017,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm64-gnu@1.3.58: - resolution: {integrity: sha512-hRjJIJdnYUAZlUi9ACCrsfS/hSFP4MmZRaUVOlQOif578Rw4kQlxsxFd1Rh1bhzUCid0KyZOyCvRzHSD/2ONgw==} + /@swc/core-linux-arm64-gnu@1.3.59: + resolution: {integrity: sha512-Ol/JPszWZ+OZ44FOdJe35TfJ1ckG4pYaisZJ4E7PzfwfVe2ygX85C5WWR4e5L0Y1zFvzpcI7gdyC2wzcXk4Cig==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -3026,8 +3026,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm64-musl@1.3.58: - resolution: {integrity: sha512-3wrqZbRhbTKtxcQebMAMGKtyypL6BQU0OwqzAk4dBIgm9GaH45xu7sH2OekfHMp3vuj4uWuere+tYtr9HU7xcQ==} + /@swc/core-linux-arm64-musl@1.3.59: + resolution: {integrity: sha512-PtTTtGbj9GiY5gJdoSFL2A0vL6BRaS1haAhp6g3hZvLDkTTg+rJURmzwBMMjaQlnGC62x/lLf6MoszHG/05//Q==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -3035,8 +3035,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-gnu@1.3.58: - resolution: {integrity: sha512-yOI5ucB+8g+gtp4L2AydPBThobZ2I3WR/dU2T+x2DFIE5Qpe/fqt6HPTFb02qmvqvOw36TLT45pRwAe4cY5LAw==} + /@swc/core-linux-x64-gnu@1.3.59: + resolution: {integrity: sha512-XBW9AGi0YsIN76IfesnDSBn/5sjR69J75KUNte8sH6seYlHJ0/kblqUMbUcfr0CiGoJadbzAZeKZZmfN7EsHpg==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -3044,8 +3044,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-musl@1.3.58: - resolution: {integrity: sha512-xPwxgPLxSWXsK9Yf792SsUmLKISdShAI9o/Kk6jjv0r7PRBS25hZ5FyOjAb/rMbAzDcmyGKHevKc3TMUPSMjwg==} + /@swc/core-linux-x64-musl@1.3.59: + resolution: {integrity: sha512-Cy5E939SdWPQ34cg6UABNO0RyEe0FuWqzZ/GLKtK11Ir4fjttVlucZiY59uQNyUVUc8T2qE0VBFCyD/zYGuHtg==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -3053,8 +3053,8 @@ packages: dev: true optional: true - /@swc/core-win32-arm64-msvc@1.3.58: - resolution: {integrity: sha512-HW61trwkYGiaFprc+fJay6IKJ3scdquSdJaXsyumGF+jc/5kokQzNfY+JH6RWpk0/8zHnUWI4e+iNGuMYxYGeA==} + /@swc/core-win32-arm64-msvc@1.3.59: + resolution: {integrity: sha512-z5ZJxizRvRoSAaevRIi3YjQh74OFWEIhonSDWNdqDL7RbjEivcatYcG7OikH6s+rtPhOcwNm3PbGV2Prcgh/gg==} engines: {node: '>=10'} cpu: [arm64] os: [win32] @@ -3062,8 +3062,8 @@ packages: dev: true optional: true - /@swc/core-win32-ia32-msvc@1.3.58: - resolution: {integrity: sha512-nODSJgHCY8GU6qHR9ieoxshaFD5GYGrPen/6VUvQkGwnV/yMI2Yvecgd1vLSUV4v67ZruPhIkP9OJruD+Juwhg==} + /@swc/core-win32-ia32-msvc@1.3.59: + resolution: {integrity: sha512-vxpsn+hrKAhi5YusQfB/JXUJJVX40rIRE/L49ilBEqdbH8Khkoego6AD+2vWqTdJcUHo1WiAIAEZ0rTsjyorLQ==} engines: {node: '>=10'} cpu: [ia32] os: [win32] @@ -3071,8 +3071,8 @@ packages: dev: true optional: true - /@swc/core-win32-x64-msvc@1.3.58: - resolution: {integrity: sha512-If/uQ3MW6Pdtah2FHhfBY2xBdBXBJzOusXpFQAkwNbaxnrJgpqIIxpYphwsJMDQp6ooSS3U90YizW7mJNxb6UA==} + /@swc/core-win32-x64-msvc@1.3.59: + resolution: {integrity: sha512-Ris/cJbURylcLwqz4RZUUBCEGsuaIHOJsvf69W5pGKHKBryVoOTNhBKpo3Km2hoAi5qFQ/ou0trAT4hBsVPZvQ==} engines: {node: '>=10'} cpu: [x64] os: [win32] @@ -3080,8 +3080,8 @@ packages: dev: true optional: true - /@swc/core@1.3.58: - resolution: {integrity: sha512-tSDcHXMBQIo2ohQ/0ryZnUA+0mBrVhe49+cR+QsFru+XEhCok1BLqdE6cZ2a+sgZ1I+Dmw8aTxYm8Ox64PSKPQ==} + /@swc/core@1.3.59: + resolution: {integrity: sha512-ZBw31zd2E5SXiodwGvjQdx5ZC90b2uyX/i2LeMMs8LKfXD86pfOfQac+JVrnyEKDhASXj9icgsF9NXBhaMr3Kw==} engines: {node: '>=10'} requiresBuild: true peerDependencies: @@ -3090,16 +3090,16 @@ packages: '@swc/helpers': optional: true optionalDependencies: - '@swc/core-darwin-arm64': 1.3.58 - '@swc/core-darwin-x64': 1.3.58 - '@swc/core-linux-arm-gnueabihf': 1.3.58 - '@swc/core-linux-arm64-gnu': 1.3.58 - '@swc/core-linux-arm64-musl': 1.3.58 - '@swc/core-linux-x64-gnu': 1.3.58 - '@swc/core-linux-x64-musl': 1.3.58 - '@swc/core-win32-arm64-msvc': 1.3.58 - '@swc/core-win32-ia32-msvc': 1.3.58 - '@swc/core-win32-x64-msvc': 1.3.58 + '@swc/core-darwin-arm64': 1.3.59 + '@swc/core-darwin-x64': 1.3.59 + '@swc/core-linux-arm-gnueabihf': 1.3.59 + '@swc/core-linux-arm64-gnu': 1.3.59 + '@swc/core-linux-arm64-musl': 1.3.59 + '@swc/core-linux-x64-gnu': 1.3.59 + '@swc/core-linux-x64-musl': 1.3.59 + '@swc/core-win32-arm64-msvc': 1.3.59 + '@swc/core-win32-ia32-msvc': 1.3.59 + '@swc/core-win32-x64-msvc': 1.3.59 dev: true /@szmarczak/http-timer@4.0.6: @@ -3234,14 +3234,14 @@ packages: /@types/bcrypt@5.0.0: resolution: {integrity: sha512-agtcFKaruL8TmcvqbndlqHPSJgsolhf/qPWchFlgnW1gECTN/nKbFcoFnvKAQRFfKbh+BO6A3SWdJu9t+xF3Lw==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/body-parser@1.19.2: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/cacheable-request@6.0.3: @@ -3249,7 +3249,7 @@ packages: dependencies: '@types/http-cache-semantics': 4.0.1 '@types/keyv': 3.1.4 - '@types/node': 20.2.0 + '@types/node': 20.2.1 '@types/responselike': 1.0.0 dev: true @@ -3272,7 +3272,7 @@ packages: /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/cookie-parser@1.4.3: @@ -3310,7 +3310,7 @@ packages: /@types/express-serve-static-core@4.17.34: resolution: {integrity: sha512-fvr49XlCGoUj2Pp730AItckfjat4WNb0lb3kfrLWffd+RLeoGAMsq7UOy04PAPtoL01uKwcp6u8nhzpgpDYr3w==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -3329,13 +3329,13 @@ packages: resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==} dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/http-cache-semantics@4.0.1: @@ -3380,25 +3380,25 @@ packages: /@types/jsonfile@6.1.1: resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/jsonwebtoken@9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: false /@types/jsonwebtoken@9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/lodash-es@4.17.7: @@ -3437,8 +3437,8 @@ packages: resolution: {integrity: sha512-IeB32oIV4oGArLrd7znD2rkHQ6EDCM+2Sr76dJnrHwv9OHBTTM6nuDLK9bmikXzPa0ZlWMWtRGo/Uw4mrzQedA==} dev: true - /@types/node@20.2.0: - resolution: {integrity: sha512-3iD2jaCCziTx04uudpJKwe39QxXgSUnpxXSvRQjRvHPxFQfmfP4NXIm/NURVeNlTCc+ru4WqjYGTmpXrW9uMlw==} + /@types/node@20.2.1: + resolution: {integrity: sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg==} /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -3504,7 +3504,7 @@ packages: /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/semver@7.3.13: @@ -3515,14 +3515,14 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/serve-static@1.15.1: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/stack-utils@2.0.1: @@ -3533,7 +3533,7 @@ packages: resolution: {integrity: sha512-FFK/rRjNy24U6J1BvQkaNWu2ohOIF/kxRQXRsbT141YQODcOcZjzlcc4DGdI2SkTa0rhmF+X14zu6ICjCGIg+w==} dependencies: '@types/cookiejar': 2.1.2 - '@types/node': 20.2.0 + '@types/node': 20.2.1 dev: true /@types/supertest@2.0.12: @@ -5043,7 +5043,7 @@ packages: object-assign: 4.1.1 vary: 1.1.2 - /cosmiconfig-typescript-loader@4.3.0(@types/node@20.2.0)(cosmiconfig@8.1.3)(ts-node@10.9.1)(typescript@5.0.4): + /cosmiconfig-typescript-loader@4.3.0(@types/node@20.2.1)(cosmiconfig@8.1.3)(ts-node@10.9.1)(typescript@5.0.4): resolution: {integrity: sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==} engines: {node: '>=12', npm: '>=6'} peerDependencies: @@ -5052,9 +5052,9 @@ packages: ts-node: '>=10' typescript: '>=3' dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 cosmiconfig: 8.1.3 - ts-node: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + ts-node: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) typescript: 5.0.4 dev: true @@ -5083,10 +5083,10 @@ packages: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} dev: true - /cross-fetch@3.1.5: - resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} + /cross-fetch@3.1.6: + resolution: {integrity: sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==} dependencies: - node-fetch: 2.6.7 + node-fetch: 2.6.11 transitivePeerDependencies: - encoding dev: true @@ -6224,8 +6224,8 @@ packages: /flatted@3.2.7: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} - /flowbite-svelte@0.35.4(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1): - resolution: {integrity: sha512-HEkk4jAKcgY5Xco3OUQ913Xg0GxugDb8+8FytKxT0cJj5Ka1W0fPVFr9IAllzbpYALdmWNcNnGO/KWU6Mlw4IA==} + /flowbite-svelte@0.36.2(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1): + resolution: {integrity: sha512-WnD+ukU5p2saxsjoS50gz/bNKD/QsHBmd9EGMycEKF0MsqAvDoEUaFXMsoxNYNQTwyTeCPTmsNdj0CVKKk0yfA==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} peerDependencies: '@popperjs/core': ^2.11.6 @@ -6284,7 +6284,7 @@ packages: semver: 7.5.0 tapable: 2.2.1 typescript: 4.9.5 - webpack: 5.82.1(@swc/core@1.3.58) + webpack: 5.82.1(@swc/core@1.3.59) dev: true /form-data@4.0.0: @@ -6863,10 +6863,10 @@ packages: '@babel/runtime': 7.21.0 dev: true - /i18next-http-backend@2.2.0: - resolution: {integrity: sha512-Z4sM7R6tzdLknSPER9GisEBxKPg5FkI07UrQniuroZmS15PHQrcCPLyuGKj8SS68tf+O2aEDYSUnmy1TZqZSbw==} + /i18next-http-backend@2.2.1: + resolution: {integrity: sha512-ZXIdn/8NJIBJ0X4hzXfc3STYxKrCKh1fYjji9HPyIpEJfvTvy8/ZlTl8RuTizzCPj2ZcWrfaecyOMKs6bQ7u5A==} dependencies: - cross-fetch: 3.1.5 + cross-fetch: 3.1.6 transitivePeerDependencies: - encoding dev: true @@ -6875,8 +6875,8 @@ packages: resolution: {integrity: sha512-WX6uqxNwXccdNm/md5VJ+Q47DF2gjqLvygvgNzb2tCJWPM86FCi2LIvKco70EttlpV9IkfkCVNVF07/56EsSEw==} dev: false - /i18next@22.4.15: - resolution: {integrity: sha512-yYudtbFrrmWKLEhl6jvKUYyYunj4bTBCe2qIUYAxbXoPusY7YmdwPvOE6fx6UIfWvmlbCWDItr7wIs8KEBZ5Zg==} + /i18next@22.5.0: + resolution: {integrity: sha512-sqWuJFj+wJAKQP2qBQ+b7STzxZNUmnSxrehBCCj9vDOW9RDYPfqCaK1Hbh2frNYQuPziz6O2CGoJPwtzY3vAYA==} dependencies: '@babel/runtime': 7.21.0 @@ -7303,7 +7303,7 @@ packages: '@jest/expect': 29.5.0 '@jest/test-result': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 @@ -7323,7 +7323,7 @@ packages: - supports-color dev: true - /jest-cli@29.5.0(@types/node@20.2.0)(ts-node@10.9.1): + /jest-cli@29.5.0(@types/node@20.2.1)(ts-node@10.9.1): resolution: {integrity: sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7340,7 +7340,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.5.0(@types/node@20.2.0)(ts-node@10.9.1) + jest-config: 29.5.0(@types/node@20.2.1)(ts-node@10.9.1) jest-util: 29.5.0 jest-validate: 29.5.0 prompts: 2.4.2 @@ -7351,7 +7351,7 @@ packages: - ts-node dev: true - /jest-config@29.5.0(@types/node@20.2.0)(ts-node@10.9.1): + /jest-config@29.5.0(@types/node@20.2.1)(ts-node@10.9.1): resolution: {integrity: sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -7366,7 +7366,7 @@ packages: '@babel/core': 7.21.4 '@jest/test-sequencer': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 babel-jest: 29.5.0(@babel/core@7.21.4) chalk: 4.1.2 ci-info: 3.8.0 @@ -7386,7 +7386,7 @@ packages: pretty-format: 29.5.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + ts-node: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) transitivePeerDependencies: - supports-color dev: true @@ -7426,7 +7426,7 @@ packages: '@jest/environment': 29.5.0 '@jest/fake-timers': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 jest-mock: 29.5.0 jest-util: 29.5.0 dev: true @@ -7442,7 +7442,7 @@ packages: dependencies: '@jest/types': 29.5.0 '@types/graceful-fs': 4.1.6 - '@types/node': 20.2.0 + '@types/node': 20.2.1 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -7493,7 +7493,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 jest-util: 29.5.0 dev: true @@ -7548,7 +7548,7 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -7579,7 +7579,7 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 @@ -7634,7 +7634,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -7659,7 +7659,7 @@ packages: dependencies: '@jest/test-result': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 20.2.0 + '@types/node': 20.2.1 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -7671,7 +7671,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true @@ -7680,13 +7680,13 @@ packages: resolution: {integrity: sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 jest-util: 29.5.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.5.0(@types/node@20.2.0)(ts-node@10.9.1): + /jest@29.5.0(@types/node@20.2.1)(ts-node@10.9.1): resolution: {integrity: sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7699,7 +7699,7 @@ packages: '@jest/core': 29.5.0(ts-node@10.9.1) '@jest/types': 29.5.0 import-local: 3.1.0 - jest-cli: 29.5.0(@types/node@20.2.0)(ts-node@10.9.1) + jest-cli: 29.5.0(@types/node@20.2.1)(ts-node@10.9.1) transitivePeerDependencies: - '@types/node' - supports-color @@ -8657,8 +8657,8 @@ packages: lodash: 4.17.21 dev: true - /node-fetch@2.6.7: - resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + /node-fetch@2.6.11: + resolution: {integrity: sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -9475,7 +9475,7 @@ packages: optional: true dependencies: lilconfig: 2.1.0 - ts-node: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + ts-node: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) yaml: 1.10.2 dev: true @@ -9493,7 +9493,7 @@ packages: dependencies: lilconfig: 2.1.0 postcss: 8.4.23 - ts-node: 10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4) + ts-node: 10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4) yaml: 2.2.2 dev: true @@ -10767,13 +10767,13 @@ packages: svelte: 3.59.1 dev: true - /svelte-i18next@2.0.0(i18next@22.4.15)(svelte@3.59.1): + /svelte-i18next@2.0.0(i18next@22.5.0)(svelte@3.59.1): resolution: {integrity: sha512-Y03grFPNI+9fkAx5fgrz9SJY5/tAEBJ512YVP2GN+6nAPNvkY4cgowpUG1KFZzBBthy3FygluBw3jBvhGs6kWQ==} peerDependencies: i18next: '*' svelte: '*' dependencies: - i18next: 22.4.15 + i18next: 22.5.0 svelte: 3.59.1 dev: true @@ -10879,7 +10879,7 @@ packages: engines: {node: ^14.18.0 || >=16.0.0} dependencies: '@pkgr/utils': 2.3.1 - tslib: 2.5.1 + tslib: 2.5.2 dev: true /t@0.5.1: @@ -10973,7 +10973,7 @@ packages: - supports-color dev: true - /terser-webpack-plugin@5.3.7(@swc/core@1.3.58)(webpack@5.82.1): + /terser-webpack-plugin@5.3.7(@swc/core@1.3.59)(webpack@5.82.1): resolution: {integrity: sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -10990,12 +10990,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.18 - '@swc/core': 1.3.58 + '@swc/core': 1.3.59 jest-worker: 27.5.1 schema-utils: 3.1.2 serialize-javascript: 6.0.1 terser: 5.17.1 - webpack: 5.82.1(@swc/core@1.3.58) + webpack: 5.82.1(@swc/core@1.3.59) dev: true /terser@5.17.1: @@ -11208,7 +11208,7 @@ packages: '@babel/core': 7.21.4 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.5.0(@types/node@20.2.0)(ts-node@10.9.1) + jest: 29.5.0(@types/node@20.2.1)(ts-node@10.9.1) jest-util: 29.5.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -11230,7 +11230,7 @@ packages: micromatch: 4.0.5 semver: 7.5.0 typescript: 5.0.4 - webpack: 5.82.1(@swc/core@1.3.58) + webpack: 5.82.1(@swc/core@1.3.59) dev: true /ts-mixer@6.0.3: @@ -11244,7 +11244,7 @@ packages: code-block-writer: 12.0.0 dev: true - /ts-node@10.9.1(@swc/core@1.3.58)(@types/node@20.2.0)(typescript@5.0.4): + /ts-node@10.9.1(@swc/core@1.3.59)(@types/node@20.2.1)(typescript@5.0.4): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -11259,12 +11259,12 @@ packages: optional: true dependencies: '@cspotcode/source-map-support': 0.8.1 - '@swc/core': 1.3.58 + '@swc/core': 1.3.59 '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 20.2.0 + '@types/node': 20.2.1 acorn: 8.8.2 acorn-walk: 8.2.0 arg: 4.1.3 @@ -11310,11 +11310,11 @@ packages: /tslib@2.5.0: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} - /tslib@2.5.1: - resolution: {integrity: sha512-KaI6gPil5m9vF7DKaoXxx1ia9fxS4qG5YveErRRVknPDXXriu5M8h48YRjB6h5ZUOKuAKlSJYb0GaDe8I39fRw==} + /tslib@2.5.2: + resolution: {integrity: sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==} dev: true - /tsup@6.7.0(@swc/core@1.3.58)(ts-node@10.9.1)(typescript@5.0.4): + /tsup@6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4): resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==} engines: {node: '>=14.18'} hasBin: true @@ -11330,7 +11330,7 @@ packages: typescript: optional: true dependencies: - '@swc/core': 1.3.58 + '@swc/core': 1.3.59 bundle-require: 4.0.1(esbuild@0.17.18) cac: 6.7.14 chokidar: 3.5.3 @@ -11661,7 +11661,7 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - /vite-node@0.31.1(@types/node@20.2.0): + /vite-node@0.31.1(@types/node@20.2.1): resolution: {integrity: sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -11671,7 +11671,7 @@ packages: mlly: 1.2.0 pathe: 1.1.0 picocolors: 1.0.0 - vite: 4.3.8(@types/node@20.2.0) + vite: 4.3.8(@types/node@20.2.1) transitivePeerDependencies: - '@types/node' - less @@ -11682,7 +11682,7 @@ packages: - terser dev: true - /vite@4.3.8(@types/node@20.2.0): + /vite@4.3.8(@types/node@20.2.1): resolution: {integrity: sha512-uYB8PwN7hbMrf4j1xzGDk/lqjsZvCDbt/JC5dyfxc19Pg8kRm14LinK/uq+HSLNswZEoKmweGdtpbnxRtrAXiQ==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -11707,7 +11707,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.2.0 + '@types/node': 20.2.1 esbuild: 0.17.18 postcss: 8.4.23 rollup: 3.21.0 @@ -11723,7 +11723,7 @@ packages: vite: optional: true dependencies: - vite: 4.3.8(@types/node@20.2.0) + vite: 4.3.8(@types/node@20.2.1) dev: true /vitest-mock-extended@1.1.3(typescript@5.0.4)(vitest@0.31.1): @@ -11770,7 +11770,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.2.0 + '@types/node': 20.2.1 '@vitest/expect': 0.31.1 '@vitest/runner': 0.31.1 '@vitest/snapshot': 0.31.1 @@ -11790,8 +11790,8 @@ packages: strip-literal: 1.0.1 tinybench: 2.5.0 tinypool: 0.5.0 - vite: 4.3.8(@types/node@20.2.0) - vite-node: 0.31.1(@types/node@20.2.0) + vite: 4.3.8(@types/node@20.2.1) + vite-node: 0.31.1(@types/node@20.2.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -11848,7 +11848,7 @@ packages: engines: {node: '>=10.13.0'} dev: true - /webpack@5.82.1(@swc/core@1.3.58): + /webpack@5.82.1(@swc/core@1.3.59): resolution: {integrity: sha512-C6uiGQJ+Gt4RyHXXYt+v9f+SN1v83x68URwgxNQ98cvH8kxiuywWGP4XeNZ1paOzZ63aY3cTciCEQJNFUljlLw==} engines: {node: '>=10.13.0'} hasBin: true @@ -11879,7 +11879,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.1.2 tapable: 2.2.1 - terser-webpack-plugin: 5.3.7(@swc/core@1.3.58)(webpack@5.82.1) + terser-webpack-plugin: 5.3.7(@swc/core@1.3.59)(webpack@5.82.1) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: @@ -12081,13 +12081,13 @@ packages: engines: {node: '>=12.20'} dev: true - /zod-i18n-map@2.12.0(i18next@22.4.15)(zod@3.21.4): + /zod-i18n-map@2.12.0(i18next@22.5.0)(zod@3.21.4): resolution: {integrity: sha512-4aunzajW4wa978KdoqaPQeGqEiOHCfOQ36gVTd5lHE8XXx+te/PlqSWIjD0Q3N1fsH+yg3eiNBK0LwgFEQ1DPw==} peerDependencies: i18next: '>=21.3.0' zod: '>=3.17.0' dependencies: - i18next: 22.4.15 + i18next: 22.5.0 zod: 3.21.4 dev: false From 35a49f92d87653740f9e8245703ff3cb44fc9d6c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 19 May 2023 21:29:16 +0000 Subject: [PATCH 02/18] chore(deps): update dependency trpc-svelte-query to v1 --- apps/frontend/package.json | 2 +- pnpm-lock.yaml | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 04165a086..cd6f29aa3 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -74,7 +74,7 @@ "svelte-tiny-virtual-list": "^2.0.5", "sveltekit-superforms": "^0.8.6", "tailwindcss": "^3.3.2", - "trpc-svelte-query": "^0.0.2", + "trpc-svelte-query": "^1.0.0", "tslib": "^2.5.2", "type-fest": "^3.10.0", "typescript": "^5.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8775e10ff..b00761844 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -454,8 +454,8 @@ importers: specifier: ^3.3.2 version: 3.3.2(ts-node@10.9.1) trpc-svelte-query: - specifier: ^0.0.2 - version: 0.0.2(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1) + specifier: ^1.0.0 + version: 1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1) tslib: specifier: ^2.5.2 version: 2.5.2 @@ -11157,14 +11157,16 @@ packages: escape-string-regexp: 5.0.0 dev: true - /trpc-svelte-query@0.0.2(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1): - resolution: {integrity: sha512-YMMZQJqG1O5AQVIBFS/eTkumpAjBineC3ao6P90GptySssc8FMMEJ1N5Z87HxSwMQsp3IWUY3UhEvnv4yUBOsA==} + /trpc-svelte-query@1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1): + resolution: {integrity: sha512-9+0n5jJp+a4XTqzPSErvEKBneAAdL45wheADjHCs5DdayICb378dWilqsdbcYKp03g3s1nQpFqTOeFDAqT2GJA==} peerDependencies: - '@tanstack/svelte-query': ^4.3.8 - '@trpc/client': ^10.8.0 - '@trpc/server': ^10.8.0 + '@sveltejs/kit': ^1.16.3 + '@tanstack/svelte-query': ^4.29.7 + '@trpc/client': ^10.26.0 + '@trpc/server': ^10.26.0 svelte: ^3.55.1 dependencies: + '@sveltejs/kit': 1.18.0(svelte@3.59.1)(vite@4.3.8) '@tanstack/svelte-query': 4.29.7(svelte@3.59.1) '@trpc/client': 10.26.0(@trpc/server@10.26.0) '@trpc/server': 10.26.0 From 5a54d8d1526ee70d89cbc0d559b8c7c454c6fea4 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 20 May 2023 10:47:18 +0800 Subject: [PATCH 03/18] fix: fix duplicate view should duplicate widge --- .../src/table/view/dashboard/dashboard.vo.ts | 6 +++++ .../src/table/view/dashboard/widge.type.ts | 4 ++-- .../core/src/table/view/dashboard/widge.vo.ts | 16 +++++++++++++ packages/core/src/table/view/view.vo.ts | 1 + .../virsualization/chart.virsualization.ts | 23 ++++++++++++++++--- .../virsualization/number.virsualization.ts | 16 +++++++++++++ .../table/virsualization/virsualization.vo.ts | 1 + packages/database/sqlite/src/entity/view.ts | 12 ++++++++++ .../src/entity/virsualization.factory.ts | 17 ++++++++++++++ .../sqlite/src/entity/virsualization.ts | 2 +- 10 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 packages/database/sqlite/src/entity/virsualization.factory.ts diff --git a/packages/core/src/table/view/dashboard/dashboard.vo.ts b/packages/core/src/table/view/dashboard/dashboard.vo.ts index 298bc5e15..c5d8af39b 100644 --- a/packages/core/src/table/view/dashboard/dashboard.vo.ts +++ b/packages/core/src/table/view/dashboard/dashboard.vo.ts @@ -16,4 +16,10 @@ export class Dashboard extends ValueObject { widges: input.widges.map((widge) => Widge.create(widge)), }) } + + public toJSON() { + return { + widges: this.widges.map((widge) => widge.duplicate().toJSON()), + } + } } diff --git a/packages/core/src/table/view/dashboard/widge.type.ts b/packages/core/src/table/view/dashboard/widge.type.ts index 9ec287f06..36ec3c1d9 100644 --- a/packages/core/src/table/view/dashboard/widge.type.ts +++ b/packages/core/src/table/view/dashboard/widge.type.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import type { VirsualizationVO } from '../../virsualization/index.js' +import type { ChartVirsualization, NumberVirsualization } from '../../virsualization/index.js' import { virsualizationSchema } from '../../virsualization/index.js' import { layoutSchema } from './layout.type.js' import type { LayoutVO } from './layout.vo.js' @@ -17,5 +17,5 @@ export type IWidgeSchema = z.infer export type IWidge = { id: WidgeID layout: LayoutVO - virsualization?: VirsualizationVO + virsualization?: NumberVirsualization | ChartVirsualization } diff --git a/packages/core/src/table/view/dashboard/widge.vo.ts b/packages/core/src/table/view/dashboard/widge.vo.ts index 3c73c50f6..6a7dbe8ad 100644 --- a/packages/core/src/table/view/dashboard/widge.vo.ts +++ b/packages/core/src/table/view/dashboard/widge.vo.ts @@ -1,5 +1,6 @@ import { ValueObject } from '@undb/domain' import { VirsualizationFactory } from '../../virsualization/virsualization.factory.js' +import type { ICreateVirsualizationSchema } from '../../virsualization/virsualization.type.js' import { LayoutVO } from './layout.vo.js' import { WidgeID } from './widge-id.vo.js' import type { ICreateWidgeSchema } from './widge.schema.js' @@ -32,4 +33,19 @@ export class Widge extends ValueObject { virsualization, }) } + + public toJSON() { + return { + id: this.props.id.value, + layout: this.props.layout.toJSON(), + virsualization: this.virsualization?.toJSON(), + } + } + + public duplicate() { + return Widge.create({ + layout: this.layout.toJSON(), + virsualization: this.virsualization?.duplicate().toJSON() as ICreateVirsualizationSchema, + }) + } } diff --git a/packages/core/src/table/view/view.vo.ts b/packages/core/src/table/view/view.vo.ts index 541c5a3d8..d98b311d9 100644 --- a/packages/core/src/table/view/view.vo.ts +++ b/packages/core/src/table/view/view.vo.ts @@ -404,6 +404,7 @@ export class ViewVO extends ValueObject { kanban: this.kanban?.into()?.toJSON(), calendar: this.calendar?.into()?.toJSON(), tree: this.treeView?.into()?.toJSON(), + dashboard: this.dashboard?.into()?.toJSON(), displayType: this.displayType, filter: this.filter?.toJSON(), fieldOptions: this.fieldOptions.toJSON(), diff --git a/packages/core/src/table/virsualization/chart.virsualization.ts b/packages/core/src/table/virsualization/chart.virsualization.ts index 6a7eb02cc..4d0cb4d42 100644 --- a/packages/core/src/table/virsualization/chart.virsualization.ts +++ b/packages/core/src/table/virsualization/chart.virsualization.ts @@ -1,5 +1,6 @@ import { z } from 'zod' import { FieldId, fieldIdSchema } from '../field/index.js' +import { VirsualizationID } from './virsualization-id.vo.js' import { baseCreateVirsualizationSchema, baseUpdateVirsualizationSchema, @@ -48,7 +49,8 @@ export const chartVirsualization = z export type IChartVirsualizationSchema = z.infer export type IChartVirsualization = IVirsualization & { - charType: z.infer + type: 'chart' + chartType: z.infer fieldId?: FieldId chartAggregateFunction?: IChartAggregateFunction } @@ -61,7 +63,7 @@ export class ChartVirsualization extends VirsualizationVO } public get chartType() { - return this.props.charType + return this.props.chartType } public get chartAggregateFunction() { @@ -72,13 +74,28 @@ export class ChartVirsualization extends VirsualizationVO return new ChartVirsualization({ ...super.create(input), type: 'chart', - charType: input.chartType, + chartType: input.chartType, fieldId: input.fieldId ? FieldId.fromString(input.fieldId) : undefined, chartAggregateFunction: input.chartAggregateFunction, }) } + duplicate(): ChartVirsualization { + return new ChartVirsualization({ ...this.props, id: VirsualizationID.create() }) + } + accept(v: IVirsualizationVisitor): void { v.chart(this) } + + public toJSON() { + return { + id: this.id.value, + name: this.name.value, + type: 'chart', + fieldId: this.fieldId?.value, + chartAggregateFunction: this.chartAggregateFunction, + chartType: this.chartType, + } as const + } } diff --git a/packages/core/src/table/virsualization/number.virsualization.ts b/packages/core/src/table/virsualization/number.virsualization.ts index caca82ad2..c110e0ee8 100644 --- a/packages/core/src/table/virsualization/number.virsualization.ts +++ b/packages/core/src/table/virsualization/number.virsualization.ts @@ -1,5 +1,6 @@ import { z } from 'zod' import { FieldId, fieldIdSchema } from '../field/index.js' +import { VirsualizationID } from './virsualization-id.vo.js' import { baseCreateVirsualizationSchema, baseUpdateVirsualizationSchema, @@ -43,6 +44,7 @@ export const numberVirsualization = z export type INumberVirsualizationSchema = z.infer export type INumberVirsualization = IVirsualization & { + type: 'number' fieldId?: FieldId numberAggregateFunction?: INumberAggregateFunction } @@ -67,7 +69,21 @@ export class NumberVirsualization extends VirsualizationVO abstract accept(v: IVirsualizationVisitor): void } diff --git a/packages/database/sqlite/src/entity/view.ts b/packages/database/sqlite/src/entity/view.ts index 76096be4a..8b071d9c5 100644 --- a/packages/database/sqlite/src/entity/view.ts +++ b/packages/database/sqlite/src/entity/view.ts @@ -28,6 +28,7 @@ import { } from '@undb/core' import { BaseEntity } from './base.js' import { Table } from './table.js' +import { VirsualizationFactory } from './virsualization.factory.js' import { Widge } from './widge.js' @Embeddable() @@ -138,6 +139,17 @@ export class View extends BaseEntity { if (view.calendar.isSome()) { this.calendar = new Calendar(view.calendar.unwrap()) } + if (view.dashboard.isSome()) { + const dashboard = view.dashboard.unwrap() + for (const widge of dashboard.widges) { + const widgeEntity = new Widge(this, widge) + + widgeEntity.virsualization = widge.virsualization + ? VirsualizationFactory.create(table, widge.virsualization) + : undefined + this.widges.add(widgeEntity) + } + } this.filter = view.filter?.value this.fieldOptions = view.fieldOptions.toObject().into() if (view.fieldsOrder) { diff --git a/packages/database/sqlite/src/entity/virsualization.factory.ts b/packages/database/sqlite/src/entity/virsualization.factory.ts new file mode 100644 index 000000000..e91a613b7 --- /dev/null +++ b/packages/database/sqlite/src/entity/virsualization.factory.ts @@ -0,0 +1,17 @@ +import type { + ChartVirsualization as CoreChartVirsualization, + NumberVirsualization as CoreNumberVirsualization, +} from '@undb/core' +import type { Table } from './table.js' +import { ChartVirsualization, NumberVirsualization } from './virsualization.js' + +export class VirsualizationFactory { + static create(table: Table, v: CoreNumberVirsualization | CoreChartVirsualization) { + switch (v.type) { + case 'number': + return new NumberVirsualization(table, v as CoreNumberVirsualization) + case 'chart': + return new ChartVirsualization(table, v as CoreChartVirsualization) + } + } +} diff --git a/packages/database/sqlite/src/entity/virsualization.ts b/packages/database/sqlite/src/entity/virsualization.ts index 485d59228..73ef469d5 100644 --- a/packages/database/sqlite/src/entity/virsualization.ts +++ b/packages/database/sqlite/src/entity/virsualization.ts @@ -40,7 +40,7 @@ export abstract class Virsualization extends BaseEntity { table: Rel abstract toQuery(): IVirsualizationSchema - abstract toDomain(): VirsualizationVO + abstract toDomain(): CoreNumberVirsualization | CoreChartVirsualization } @Entity({ discriminatorValue: 'number' }) From 3ee2e190604351b378ad025697d9733f4d1a5dd2 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 20 May 2023 12:06:48 +0800 Subject: [PATCH 04/18] fix(core): display controlled value --- packages/core/src/table/record/record.schema.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/src/table/record/record.schema.ts b/packages/core/src/table/record/record.schema.ts index 77fc18593..4fbff07f8 100644 --- a/packages/core/src/table/record/record.schema.ts +++ b/packages/core/src/table/record/record.schema.ts @@ -46,7 +46,6 @@ export const createMutateRecordValuesSchema = ( const shape: ZodRawShape = {} for (const field of fields) { - if (field.controlled) continue const fieldSchema = field.valueSchema as ZodDefault const nested = fieldSchema shape[field.id.value] = defaultValues ? nested.default(defaultValues[field.id.value]) : nested.optional() From a924d2bc1249fe97cc2e450ddae7f6b32c5b87ef Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 20 May 2023 12:12:18 +0800 Subject: [PATCH 05/18] fix: fix get aggregate number throw error --- packages/database/sqlite/src/entity/field.ts | 18 +++++++-------- .../record/record-sqlite.query-model.ts | 2 +- .../record-sqlite.reference-query-visitor.ts | 22 +++++++++---------- .../record/record-sqlite.repository.ts | 2 +- .../repository/table/table-sqlite.mapper.ts | 12 +++++----- .../underlying-table-sqlite.manager.ts | 2 +- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/database/sqlite/src/entity/field.ts b/packages/database/sqlite/src/entity/field.ts index 64cd300e7..e27f66112 100644 --- a/packages/database/sqlite/src/entity/field.ts +++ b/packages/database/sqlite/src/entity/field.ts @@ -574,7 +574,7 @@ export class SelectField extends Field { description: this.description, required: !!this.required, display: !!this.display, - options: this.options.getItems().map((o) => ({ + options: this.options.getItems(false).map((o) => ({ key: o.key, name: o.name, color: { @@ -593,7 +593,7 @@ export class SelectField extends Field { description: this.description, required: !!this.required, display: !!this.display, - options: this.options.getItems().map((o) => ({ + options: this.options.getItems(false).map((o) => ({ key: o.key, name: o.name, color: { @@ -641,10 +641,10 @@ export class ReferenceField extends Field { return [] } - let displayFields = this.displayFields.getItems() + let displayFields = this.displayFields.getItems(false) if (!displayFields.length) { if (!this.foreignTable?.fields?.isInitialized()) return [] - displayFields = this.foreignTable?.fields?.getItems().filter((f) => f.display) ?? [] + displayFields = this.foreignTable?.fields?.getItems(false).filter((f) => f.display) ?? [] } return displayFields @@ -736,9 +736,9 @@ export class TreeField extends Field { lookupFields = new Collection(this) get foreignDisplayFields() { - let displayFields = this.displayFields.getItems() + let displayFields = this.displayFields.getItems(false) if (!displayFields.length) { - displayFields = this.table.fields.getItems().filter((f) => f.display) + displayFields = this.table.fields.getItems(false).filter((f) => f.display) } return displayFields @@ -788,9 +788,9 @@ export class ParentField extends Field { lookupFields = new Collection(this) get foreignDisplayFields() { - let displayFields = this.displayFields.getItems() + let displayFields = this.displayFields.getItems(false) if (!displayFields.length) { - displayFields = this.table.fields.getItems().filter((f) => f.display) + displayFields = this.table.fields.getItems(false).filter((f) => f.display) } return displayFields @@ -948,7 +948,7 @@ export class LookupField extends Field { displayFields = new Collection(this) get foreignDisplayFields() { - const displayFieleds = this.displayFields.getItems() + const displayFieleds = this.displayFields.getItems(false) if (!displayFieleds.length) { return this.lookupReferenceField.foreignDisplayFields } diff --git a/packages/database/sqlite/src/repository/record/record-sqlite.query-model.ts b/packages/database/sqlite/src/repository/record/record-sqlite.query-model.ts index 1736993f7..81b6d76b7 100644 --- a/packages/database/sqlite/src/repository/record/record-sqlite.query-model.ts +++ b/packages/database/sqlite/src/repository/record/record-sqlite.query-model.ts @@ -38,7 +38,7 @@ export class RecordSqliteQueryModel implements IRecordQueryModel { if (!field.foreignTable?.fields.isInitialized()) { await field.foreignTable?.fields.init() } - const displayFields = field.displayFields.getItems() ?? [] + const displayFields = field.displayFields.getItems(false) ?? [] for (const f of displayFields) { if (f instanceof SelectField) { await f.options.init() diff --git a/packages/database/sqlite/src/repository/record/record-sqlite.reference-query-visitor.ts b/packages/database/sqlite/src/repository/record/record-sqlite.reference-query-visitor.ts index 0ac26072f..71ef6e706 100644 --- a/packages/database/sqlite/src/repository/record/record-sqlite.reference-query-visitor.ts +++ b/packages/database/sqlite/src/repository/record/record-sqlite.reference-query-visitor.ts @@ -58,7 +58,7 @@ export class RecordSqliteReferenceQueryVisitor extends AbstractReferenceFieldVis #mustGetColumn(field: CoreField) { const fieldId = field.id.value - const columns = this.tableEntity.fields.getItems() + const columns = this.tableEntity.fields.getItems(false) const column = columns.find((c) => c.id === fieldId) if (!column) throw new Error('missing undelying column') @@ -229,10 +229,10 @@ export class RecordSqliteReferenceQueryVisitor extends AbstractReferenceFieldVis return } - const countFields = column.countFields.getItems().map((f) => f.toDomain()) - const sumFields = column.sumFields.getItems() - const lookupFields = column.lookupFields.getItems() - const averageFields = column.averageFields.getItems() + const countFields = column.countFields.getItems(false).map((f) => f.toDomain()) + const sumFields = column.sumFields.getItems(false) + const lookupFields = column.lookupFields.getItems(false) + const averageFields = column.averageFields.getItems(false) const displayFields = column.foreignDisplayFields .concat(lookupFields.flatMap((c) => c.foreignDisplayFields)) .concat(sumFields.map((c) => c.sumAggregateField)) @@ -299,12 +299,12 @@ export class RecordSqliteReferenceQueryVisitor extends AbstractReferenceFieldVis const { knex } = this const column = this.#mustGetColumn(field) as TreeField - const countFields = column.countFields.getItems().map((f) => f.toDomain()) - const sumFields = column.sumFields.getItems() - const averageFields = column.averageFields.getItems() - const lookupFields = column.lookupFields.getItems() + const countFields = column.countFields.getItems(false).map((f) => f.toDomain()) + const sumFields = column.sumFields.getItems(false) + const averageFields = column.averageFields.getItems(false) + const lookupFields = column.lookupFields.getItems(false) const displayFields = column.foreignDisplayFields - .concat(lookupFields.flatMap((c) => c.displayFields.getItems())) + .concat(lookupFields.flatMap((c) => c.displayFields.getItems(false))) .concat(sumFields.map((c) => c.sumAggregateField)) .concat(averageFields.map((c) => c.averageAggregateField)) const displayColumns = uniqBy(displayFields, (f) => f.id).map((field) => field.toDomain()) @@ -368,7 +368,7 @@ export class RecordSqliteReferenceQueryVisitor extends AbstractReferenceFieldVis } const { knex } = this const column = this.#mustGetColumn(field) as ParentField - const lookupFields = column.lookupFields.getItems() + const lookupFields = column.lookupFields.getItems(false) const displayFields = column.foreignDisplayFields.concat(lookupFields.flatMap((f) => f.foreignDisplayFields)) const displayColumns = uniqBy(displayFields, (f) => f.id).map((field) => field.toDomain()) const foreignTableId = field.foreignTableId.unwrapOr(this.table.id.value) diff --git a/packages/database/sqlite/src/repository/record/record-sqlite.repository.ts b/packages/database/sqlite/src/repository/record/record-sqlite.repository.ts index 06152bd52..ed8d11311 100644 --- a/packages/database/sqlite/src/repository/record/record-sqlite.repository.ts +++ b/packages/database/sqlite/src/repository/record/record-sqlite.repository.ts @@ -88,7 +88,7 @@ export class RecordSqliteRepository implements IRecordRepository { private async _populateTable(table: Table) { for (const field of table.fields) { if (field instanceof ReferenceField) { - const displayFields = field.displayFields.getItems() + const displayFields = field.displayFields.getItems(false) for (const f of displayFields) { if (f instanceof SelectField) { await f.options.init() diff --git a/packages/database/sqlite/src/repository/table/table-sqlite.mapper.ts b/packages/database/sqlite/src/repository/table/table-sqlite.mapper.ts index fc4c474a1..25c2d0659 100644 --- a/packages/database/sqlite/src/repository/table/table-sqlite.mapper.ts +++ b/packages/database/sqlite/src/repository/table/table-sqlite.mapper.ts @@ -9,9 +9,9 @@ export class TableSqliteMapper { id: entity.id, name: entity.name, emoji: entity.emoji, - schema: entity.fields.getItems().map((field) => field.toQuery()), + schema: entity.fields.getItems(false).map((field) => field.toQuery()), viewsOrder: entity.viewsOrder, - views: entity.views.getItems().map( + views: entity.views.getItems(false).map( (view) => ({ id: view.id, @@ -28,7 +28,7 @@ export class TableSqliteMapper { pinnedFields: view.pinnedFields, rowHeight: view.rowHeight, dashboard: { - widges: view.widges.isInitialized() ? view.widges.getItems().map((widge) => widge.toQuery()) : [], + widges: view.widges.isInitialized() ? view.widges.getItems(false).map((widge) => widge.toQuery()) : [], }, } as IQueryView), ), @@ -42,7 +42,7 @@ export class TableSqliteMapper { schema: [], emoji: entity.emoji, views: entity.views.isInitialized() - ? (entity.views.getItems().map((view) => ({ + ? (entity.views.getItems(false).map((view) => ({ id: view.id, name: view.name, displayType: view.displayType, @@ -57,13 +57,13 @@ export class TableSqliteMapper { pinnedFields: view.pinnedFields, rowHeight: view.rowHeight, dashboard: { - widges: view.widges.isInitialized() ? view.widges.getItems().map((widge) => widge.toQuery()) : [], + widges: view.widges.isInitialized() ? view.widges.getItems(false).map((widge) => widge.toQuery()) : [], }, })) as ICreateViewsSchema) : [], viewsOrder: entity.viewsOrder, }).map((table) => { - table.schema = new TableSchema(entity.fields.getItems().map((field) => field.toDomain())) + table.schema = new TableSchema(entity.fields.getItems(false).map((field) => field.toDomain())) return table }) } diff --git a/packages/database/sqlite/src/underlying-table/underlying-table-sqlite.manager.ts b/packages/database/sqlite/src/underlying-table/underlying-table-sqlite.manager.ts index c3074c67d..a5306af5f 100644 --- a/packages/database/sqlite/src/underlying-table/underlying-table-sqlite.manager.ts +++ b/packages/database/sqlite/src/underlying-table/underlying-table-sqlite.manager.ts @@ -36,7 +36,7 @@ export class UnderlyingTableSqliteManager extends BaseEntityManager implements I } async deleteRecord(table: TableEntity, id: string): Promise { - const referenceFields = table.referencedBy.getItems().map((f) => f.toDomain()) + const referenceFields = table.referencedBy.getItems(false).map((f) => f.toDomain()) for (const referenceField of referenceFields) { const visitor = new RecordSqliteReferenceDeleteVisitor(this.em, table, id) referenceField.accept(visitor) From 08a63765b78b11736e6bed08a527974f164dd70a Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 20 May 2023 12:25:35 +0800 Subject: [PATCH 06/18] chore: add feature request template --- .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yaml | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yaml diff --git a/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yaml b/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yaml new file mode 100644 index 000000000..3c64ab531 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yaml @@ -0,0 +1,28 @@ +name: Feature request +description: Suggest a feature to improve undb +title: '[feature]: ' +labels: [feature] +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to request a feature for undb + - type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue related to this feature request already exists + options: + - label: I have searched the existing issues + required: true + - type: textarea + attributes: + label: Summary + description: One paragraph description of the feature + validations: + required: true + - type: textarea + attributes: + label: Why should this be worked on? + description: A concise description of the problems or use cases for this feature request + validations: + required: true From 5f381b62af99daf475670c9848044525a3836101 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 20 May 2023 15:44:13 +0800 Subject: [PATCH 07/18] feat(frontend): implement move view --- apps/frontend/package.json | 2 + apps/frontend/src/lib/table/TableIndex.svelte | 2 +- .../src/lib/table/TableViewTabItem.svelte | 4 +- .../src/lib/table/TableViewsTab.svelte | 46 +++++++++++++++++-- packages/core/src/table/table.ts | 7 ++- .../core/src/table/view/views-order.vo.ts | 5 ++ pnpm-lock.yaml | 14 ++++++ 7 files changed, 73 insertions(+), 7 deletions(-) diff --git a/apps/frontend/package.json b/apps/frontend/package.json index cd6f29aa3..cc78f0ad8 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -33,6 +33,7 @@ "@types/js-cookie": "^3.0.3", "@types/lodash-es": "^4.17.7", "@types/nprogress": "^0.2.0", + "@types/sortablejs": "^1.15.1", "@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/parser": "^5.59.6", "@undb/core": "^0.0.0", @@ -61,6 +62,7 @@ "postcss-load-config": "^4.0.1", "prettier": "^2.8.8", "prettier-plugin-svelte": "^2.10.0", + "sortablejs": "^1.15.0", "svelte": "^3.59.1", "svelte-chartjs": "^3.1.2", "svelte-check": "^3.3.2", diff --git a/apps/frontend/src/lib/table/TableIndex.svelte b/apps/frontend/src/lib/table/TableIndex.svelte index 7cea678e3..56e0cc175 100644 --- a/apps/frontend/src/lib/table/TableIndex.svelte +++ b/apps/frontend/src/lib/table/TableIndex.svelte @@ -1,6 +1,6 @@ -
  • +
  • + diff --git a/apps/frontend/src/lib/table/TableViewsTab.svelte b/apps/frontend/src/lib/table/TableViewsTab.svelte index 0ee5b4810..37f6e0b51 100644 --- a/apps/frontend/src/lib/table/TableViewsTab.svelte +++ b/apps/frontend/src/lib/table/TableViewsTab.svelte @@ -4,17 +4,57 @@ import TableViewTabItem from './TableViewTabItem.svelte' import { t } from '$lib/i18n' import { createViewModal } from '$lib/store/modal' + import Sortable from 'sortablejs' + import { onMount } from 'svelte' + import type { SortableEvent } from 'sortablejs' + import { trpc } from '$lib/trpc/client' + import { invalidate } from '$app/navigation' const table = getTable() const currentView = getView() - $: views = $table.views.views ?? [] + $: views = $table.orderedViews + + let el: HTMLUListElement + + const moveView = trpc().table.view.move.mutation({ + async onSuccess() { + // await invalidate(`table:${$table.id.value}`) + }, + }) + + const onEnd = (event: SortableEvent) => { + const { oldIndex, newIndex } = event + if (oldIndex !== undefined && newIndex !== undefined) { + const from = views[oldIndex]?.id.value + const to = views[newIndex]?.id.value + if (from && to && from !== to) { + $moveView.mutate({ + tableId: $table.id.value, + from, + to, + }) + } + } + } + + onMount(async () => { + Sortable.create(el, { + animation: 200, + direction: 'horizontal', + onEnd, + }) + }) + + $: console.log(el)
    -
      +
        {#each views as view} - +
      • + +
      • {/each}
    - - {$t('Create New View')} + + {#each items as item} + + + $createView.mutate({ + tableId: $table.id.value, + view: { + name: $t('view n', { n: views.length + 1 }), + displayType: item.value, + }, + })} + > +
    + + {$t(item.value)} +
    +
    +
    + {/each} +
    diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.ts index 6d0438b9f..7fcd7496b 100644 --- a/packages/i18n/src/index.ts +++ b/packages/i18n/src/index.ts @@ -114,6 +114,7 @@ export const config: InitOptions = { 'shortcut R': 'Use shortcut {{ shortcut }} to create record in table.', 'Create New Record': 'Create New Record', Views: 'Views', + 'view n': 'view {{n}}', Field: 'Field', Filter: 'Filter', 'Field Name': 'Field Name', @@ -373,6 +374,7 @@ export const config: InitOptions = { '使用快捷键 {{shortcut}} 在表格内创建记录。', 'Create New Record': '创建新记录', Views: '视图', + 'view n': '视图 {{n}}', Field: '列', Filter: '筛选', Sort: '排序', From e1d4a7053c31f2ab0b2c04764c8a67dd00d74c23 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sun, 21 May 2023 17:17:27 +0800 Subject: [PATCH 14/18] fix(frontend): remove create view modal --- apps/frontend/src/lib/store/modal.ts | 3 - .../src/lib/table/TableViewTabItem.svelte | 6 +- apps/frontend/src/lib/view/CreateView.svelte | 64 ------------------- .../t/[tableId]/[[viewId]]/+page.svelte | 2 - 4 files changed, 5 insertions(+), 70 deletions(-) delete mode 100644 apps/frontend/src/lib/view/CreateView.svelte diff --git a/apps/frontend/src/lib/store/modal.ts b/apps/frontend/src/lib/store/modal.ts index 294256bf7..7354e9ee7 100644 --- a/apps/frontend/src/lib/store/modal.ts +++ b/apps/frontend/src/lib/store/modal.ts @@ -60,9 +60,6 @@ export const updateFieldModal = createModal(UPDATE_FIELD) const VIRSUALIZATION_DETAIL = Symbol('VIRSUALIZATION_DETAIL') export const virsualizationModal = createModal(VIRSUALIZATION_DETAIL) -const CREATE_VIEW = Symbol('CREATE_VIEW') -export const createViewModal = createModal(CREATE_VIEW) - const CONFIG_VIEW = Symbol('CONFIG_VIEW') export const configViewModal = createModal(CONFIG_VIEW) diff --git a/apps/frontend/src/lib/table/TableViewTabItem.svelte b/apps/frontend/src/lib/table/TableViewTabItem.svelte index 89937a313..a49dcf6da 100644 --- a/apps/frontend/src/lib/table/TableViewTabItem.svelte +++ b/apps/frontend/src/lib/table/TableViewTabItem.svelte @@ -84,7 +84,11 @@ } -
    +
    (updating = !updating)} +> - import { ButtonGroup, Input, Modal, Toast } from 'flowbite-svelte' - import ViewTypeSelector from './ViewTypeSelector.svelte' - import type { Validation } from 'sveltekit-superforms/index' - import type { createViewSchema } from '@undb/core' - import { superForm } from 'sveltekit-superforms/client' - import { trpc } from '$lib/trpc/client' - import { getTable } from '$lib/store/table' - import { goto, invalidate } from '$app/navigation' - import { tick } from 'svelte' - import { slide } from 'svelte/transition' - import { t } from '$lib/i18n' - import { createViewModal } from '$lib/store/modal' - - const table = getTable() - - export let data: Validation - - const createView = trpc().table.view.create.mutation({ - async onSuccess(data, variables, context) { - await invalidate(`table:${$table.id.value}`) - await tick() - goto(`/t/${$table.id.value}/${$table.viewsOrder.last}`) - createViewModal.close() - }, - }) - const superFrm = superForm(data, { - id: 'createView', - SPA: true, - applyAction: false, - resetForm: true, - dataType: 'json', - taintedMessage: null, - async onUpdate(event) { - $createView.mutate({ tableId: $table.id.value, view: event.form.data }) - }, - }) - - const { form, enhance } = superFrm - - - -
    - - - - - -
    - -{#if $createView.error} - - - - {$createView.error.message} - - -{/if} diff --git a/apps/frontend/src/routes/(authed)/t/[tableId]/[[viewId]]/+page.svelte b/apps/frontend/src/routes/(authed)/t/[tableId]/[[viewId]]/+page.svelte index b53c38142..ba3f16123 100644 --- a/apps/frontend/src/routes/(authed)/t/[tableId]/[[viewId]]/+page.svelte +++ b/apps/frontend/src/routes/(authed)/t/[tableId]/[[viewId]]/+page.svelte @@ -8,7 +8,6 @@ import UpdateField from '$lib/field/UpdateField.svelte' import UpdateRecord from '$lib/record/UpdateRecord.svelte' import CreateOption from '$lib/option/CreateOption.svelte' - import CreateView from '$lib/view/CreateView.svelte' import ViewConfigModal from '$lib/view/ViewConfigModal.svelte' import UpdateTable from '$lib/table/UpdateTable.svelte' import { createRecordModal, createTableModal } from '$lib/store/modal' @@ -43,7 +42,6 @@ {#key $table} {/key} - From 03ca3f074243d0b4071788750a16fc9a7570af58 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sun, 21 May 2023 18:26:47 +0800 Subject: [PATCH 15/18] chore: upgrade dependencies --- apps/backend/package.json | 4 +- apps/frontend/package.json | 14 +- packages/core/package.json | 2 +- packages/database/sqlite/package.json | 2 +- packages/eslint-config/package.json | 2 +- packages/trpc/package.json | 2 +- pnpm-lock.yaml | 241 +++++++++++++------------- 7 files changed, 131 insertions(+), 136 deletions(-) diff --git a/apps/backend/package.json b/apps/backend/package.json index 5b0271074..c5ab62c69 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -15,7 +15,7 @@ "@nestjs/platform-express": "^9.4.1", "@nestjs/serve-static": "^3.0.1", "@nestjs/terminus": "^9.2.2", - "@trpc/server": "^10.26.0", + "@trpc/server": "^10.27.1", "@undb/core": "^0.0.0", "@undb/cqrs": "^0.0.0", "@undb/domain": "^0.0.0", @@ -63,7 +63,7 @@ "@types/supertest": "^2.0.12", "@types/uuid": "^9.0.1", "@undb/eslint-config": "^0.0.0", - "eslint": "^8.40.0", + "eslint": "^8.41.0", "esm": "^3.2.25", "express": "^4.18.2", "jest": "^29.5.0", diff --git a/apps/frontend/package.json b/apps/frontend/package.json index cc78f0ad8..0e24cb69a 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -17,7 +17,7 @@ "@event-calendar/day-grid": "^1.1.1", "@event-calendar/interaction": "^1.1.1", "@event-calendar/time-grid": "^1.1.1", - "@playwright/test": "^1.33.0", + "@playwright/test": "^1.34.0", "@popperjs/core": "^2.11.7", "@revolist/revogrid": "^3.6.5", "@revolist/svelte-datagrid": "^3.2.16", @@ -25,11 +25,11 @@ "@sveltejs/adapter-auto": "^2.1.0", "@sveltejs/adapter-static": "^2.0.2", "@sveltejs/kit": "^1.18.0", - "@tabler/icons-webfont": "^2.19.0", + "@tabler/icons-webfont": "^2.20.0", "@tailwindcss/forms": "^0.5.3", "@tanstack/svelte-query": "^4.29.7", - "@trpc/client": "^10.26.0", - "@trpc/server": "^10.26.0", + "@trpc/client": "^10.27.1", + "@trpc/server": "^10.27.1", "@types/js-cookie": "^3.0.3", "@types/lodash-es": "^4.17.7", "@types/nprogress": "^0.2.0", @@ -44,11 +44,11 @@ "classnames": "^2.3.2", "date-fns": "^2.30.0", "delay": "^5.0.0", - "eslint": "^8.40.0", + "eslint": "^8.41.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-svelte3": "^4.0.0", "flowbite": "^1.6.5", - "flowbite-svelte": "^0.36.2", + "flowbite-svelte": "^0.36.4", "htm": "^3.1.1", "i18next": "^22.5.0", "i18next-browser-languagedetector": "^7.0.1", @@ -78,7 +78,7 @@ "tailwindcss": "^3.3.2", "trpc-svelte-query": "^1.0.0", "tslib": "^2.5.2", - "type-fest": "^3.10.0", + "type-fest": "^3.11.0", "typescript": "^5.0.4", "vite": "^4.3.8", "vitest": "^0.31.1", diff --git a/packages/core/package.json b/packages/core/package.json index de5c67068..72880566d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -24,7 +24,7 @@ "t": "^0.5.1", "tsconfig": "^0.0.0", "tsup": "^6.7.0", - "type-fest": "^3.10.0", + "type-fest": "^3.11.0", "typescript": "^5.0.4", "vitest": "^0.31.1", "vitest-mock-extended": "^1.1.3" diff --git a/packages/database/sqlite/package.json b/packages/database/sqlite/package.json index 3b31e7efa..e2d0a07fe 100644 --- a/packages/database/sqlite/package.json +++ b/packages/database/sqlite/package.json @@ -25,7 +25,7 @@ "tsconfig": "^0.0.0", "tslib": "^2.5.2", "tsup": "^6.7.0", - "type-fest": "^3.10.0", + "type-fest": "^3.11.0", "typescript": "^5.0.4", "vitest": "^0.31.1", "vitest-mock-extended": "^1.1.3" diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index da49cb58d..3694c9452 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -2,7 +2,7 @@ "name": "@undb/eslint-config", "version": "0.0.0", "dependencies": { - "eslint": "^8.40.0", + "eslint": "^8.41.0", "eslint-config-prettier": "^8.8.0", "eslint-config-turbo": "^1.9.8", "eslint-plugin-react": "^7.32.2" diff --git a/packages/trpc/package.json b/packages/trpc/package.json index 6f80522af..2108c8c85 100644 --- a/packages/trpc/package.json +++ b/packages/trpc/package.json @@ -3,7 +3,7 @@ "description": "", "version": "0.0.0", "dependencies": { - "@trpc/server": "^10.26.0", + "@trpc/server": "^10.27.1", "@undb/core": "^0.0.0", "@undb/cqrs": "^0.0.0", "@undb/domain": "^0.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9835672d..f126a8b85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -90,8 +90,8 @@ importers: specifier: ^9.2.2 version: 9.2.2(@mikro-orm/core@5.7.7)(@mikro-orm/nestjs@5.1.8)(@nestjs/common@9.4.1)(@nestjs/core@9.4.1)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@trpc/server': - specifier: ^10.26.0 - version: 10.26.0 + specifier: ^10.27.1 + version: 10.27.1 '@undb/core': specifier: ^0.0.0 version: link:../../packages/core @@ -229,8 +229,8 @@ importers: specifier: ^0.0.0 version: link:../../packages/eslint-config eslint: - specifier: ^8.40.0 - version: 8.40.0 + specifier: ^8.41.0 + version: 8.41.0 esm: specifier: ^3.2.25 version: 3.2.25 @@ -283,8 +283,8 @@ importers: specifier: ^1.1.1 version: 1.1.1 '@playwright/test': - specifier: ^1.33.0 - version: 1.33.0 + specifier: ^1.34.0 + version: 1.34.0 '@popperjs/core': specifier: ^2.11.7 version: 2.11.7 @@ -307,8 +307,8 @@ importers: specifier: ^1.18.0 version: 1.18.0(svelte@3.59.1)(vite@4.3.8) '@tabler/icons-webfont': - specifier: ^2.19.0 - version: 2.19.0 + specifier: ^2.20.0 + version: 2.20.0 '@tailwindcss/forms': specifier: ^0.5.3 version: 0.5.3(tailwindcss@3.3.2) @@ -316,11 +316,11 @@ importers: specifier: ^4.29.7 version: 4.29.7(svelte@3.59.1) '@trpc/client': - specifier: ^10.26.0 - version: 10.26.0(@trpc/server@10.26.0) + specifier: ^10.27.1 + version: 10.27.1(@trpc/server@10.27.1) '@trpc/server': - specifier: ^10.26.0 - version: 10.26.0 + specifier: ^10.27.1 + version: 10.27.1 '@types/js-cookie': specifier: ^3.0.3 version: 3.0.3 @@ -335,10 +335,10 @@ importers: version: 1.15.1 '@typescript-eslint/eslint-plugin': specifier: ^5.59.6 - version: 5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.40.0)(typescript@5.0.4) + version: 5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.41.0)(typescript@5.0.4) '@typescript-eslint/parser': specifier: ^5.59.6 - version: 5.59.6(eslint@8.40.0)(typescript@5.0.4) + version: 5.59.6(eslint@8.41.0)(typescript@5.0.4) '@undb/core': specifier: ^0.0.0 version: link:../../packages/core @@ -364,20 +364,20 @@ importers: specifier: ^5.0.0 version: 5.0.0 eslint: - specifier: ^8.40.0 - version: 8.40.0 + specifier: ^8.41.0 + version: 8.41.0 eslint-config-prettier: specifier: ^8.8.0 - version: 8.8.0(eslint@8.40.0) + version: 8.8.0(eslint@8.41.0) eslint-plugin-svelte3: specifier: ^4.0.0 - version: 4.0.0(eslint@8.40.0)(svelte@3.59.1) + version: 4.0.0(eslint@8.41.0)(svelte@3.59.1) flowbite: specifier: ^1.6.5 version: 1.6.5 flowbite-svelte: - specifier: ^0.36.2 - version: 0.36.2(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1) + specifier: ^0.36.4 + version: 0.36.4(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1) htm: specifier: ^3.1.1 version: 3.1.1 @@ -461,13 +461,13 @@ importers: version: 3.3.2(ts-node@10.9.1) trpc-svelte-query: specifier: ^1.0.0 - version: 1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1) + version: 1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.27.1)(@trpc/server@10.27.1)(svelte@3.59.1) tslib: specifier: ^2.5.2 version: 2.5.2 type-fest: - specifier: ^3.10.0 - version: 3.10.0(typescript@5.0.4) + specifier: ^3.11.0 + version: 3.11.0 typescript: specifier: ^5.0.4 version: 5.0.4 @@ -539,8 +539,8 @@ importers: specifier: ^6.7.0 version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) type-fest: - specifier: ^3.10.0 - version: 3.10.0(typescript@5.0.4) + specifier: ^3.11.0 + version: 3.11.0 typescript: specifier: ^5.0.4 version: 5.0.4 @@ -646,8 +646,8 @@ importers: specifier: ^6.7.0 version: 6.7.0(@swc/core@1.3.59)(ts-node@10.9.1)(typescript@5.0.4) type-fest: - specifier: ^3.10.0 - version: 3.10.0(typescript@5.0.4) + specifier: ^3.11.0 + version: 3.11.0 typescript: specifier: ^5.0.4 version: 5.0.4 @@ -701,27 +701,27 @@ importers: packages/eslint-config: dependencies: eslint: - specifier: ^8.40.0 - version: 8.40.0 + specifier: ^8.41.0 + version: 8.41.0 eslint-config-prettier: specifier: ^8.8.0 - version: 8.8.0(eslint@8.40.0) + version: 8.8.0(eslint@8.41.0) eslint-config-turbo: specifier: ^1.9.8 - version: 1.9.8(eslint@8.40.0) + version: 1.9.8(eslint@8.41.0) eslint-plugin-react: specifier: ^7.32.2 - version: 7.32.2(eslint@8.40.0) + version: 7.32.2(eslint@8.41.0) devDependencies: '@typescript-eslint/eslint-plugin': specifier: ^5.59.6 - version: 5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.40.0)(typescript@5.0.4) + version: 5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.41.0)(typescript@5.0.4) '@typescript-eslint/parser': specifier: ^5.59.6 - version: 5.59.6(eslint@8.40.0)(typescript@5.0.4) + version: 5.59.6(eslint@8.41.0)(typescript@5.0.4) eslint-import-resolver-typescript: specifier: ^3.5.5 - version: 3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.40.0) + version: 3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.41.0) eslint-plugin-tsdoc: specifier: ^0.2.17 version: 0.2.17 @@ -760,8 +760,8 @@ importers: packages/trpc: dependencies: '@trpc/server': - specifier: ^10.26.0 - version: 10.26.0 + specifier: ^10.27.1 + version: 10.27.1 '@undb/core': specifier: ^0.0.0 version: link:../core @@ -1494,14 +1494,14 @@ packages: '@jridgewell/trace-mapping': 0.3.9 dev: true - /@docsearch/css@3.3.4: - resolution: {integrity: sha512-vDwCDoVXDgopw/hvr0zEADew2wWaGP8Qq0Bxhgii1Ewz2t4fQeyJwIRN/mWADeLFYPVkpz8TpEbxya/i6Tm0WA==} + /@docsearch/css@3.3.5: + resolution: {integrity: sha512-NaXVp3I8LdmJ54fn038KHgG7HmbIzZlKS2FkVf6mKcW5bYMJovkx4947joQyZk5yubxOZ+ddHSh79y39Aevufg==} dev: true - /@docsearch/js@3.3.4(@algolia/client-search@4.17.0): - resolution: {integrity: sha512-Xd2saBziXJ1UuVpcDz94zAFEFAM6ap993agh0za2e3LDZLhaW993b1f9gyUL4e1CZLsR076tztG2un2gVncvpA==} + /@docsearch/js@3.3.5(@algolia/client-search@4.17.0): + resolution: {integrity: sha512-nZi074OCryZnzva2LNcbQkwBJIND6cvuFI4s1FIe6Ygf6n9g6B/IYUULXNx05rpoCZ+KEoEt3taROpsHBliuSw==} dependencies: - '@docsearch/react': 3.3.4(@algolia/client-search@4.17.0) + '@docsearch/react': 3.3.5(@algolia/client-search@4.17.0) preact: 10.13.2 transitivePeerDependencies: - '@algolia/client-search' @@ -1510,8 +1510,8 @@ packages: - react-dom dev: true - /@docsearch/react@3.3.4(@algolia/client-search@4.17.0): - resolution: {integrity: sha512-aeOf1WC5zMzBEi2SI6WWznOmIo9rnpN4p7a3zHXxowVciqlI4HsZGtOR9nFOufLeolv7HibwLlaM0oyUqJxasw==} + /@docsearch/react@3.3.5(@algolia/client-search@4.17.0): + resolution: {integrity: sha512-Zuxf4z5PZ9eIQkVCNu76v1H+KAztKItNn3rLzZa7kpBS+++TgNARITnZeUS7C1DKoAhJZFr6T/H+Lvc6h/iiYg==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' react: '>= 16.8.0 < 19.0.0' @@ -1526,7 +1526,7 @@ packages: dependencies: '@algolia/autocomplete-core': 1.8.2 '@algolia/autocomplete-preset-algolia': 1.8.2(@algolia/client-search@4.17.0)(algoliasearch@4.17.0) - '@docsearch/css': 3.3.4 + '@docsearch/css': 3.3.5 algoliasearch: 4.17.0 transitivePeerDependencies: - '@algolia/client-search' @@ -1730,13 +1730,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.40.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.41.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.40.0 + eslint: 8.41.0 eslint-visitor-keys: 3.4.1 /@eslint-community/regexpp@4.5.0: @@ -1759,8 +1759,8 @@ packages: transitivePeerDependencies: - supports-color - /@eslint/js@8.40.0: - resolution: {integrity: sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==} + /@eslint/js@8.41.0: + resolution: {integrity: sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} /@event-calendar/common@1.1.1: @@ -2818,13 +2818,13 @@ packages: tslib: 2.5.2 dev: true - /@playwright/test@1.33.0: - resolution: {integrity: sha512-YunBa2mE7Hq4CfPkGzQRK916a4tuZoVx/EpLjeWlTVOnD4S2+fdaQZE0LJkbfhN5FTSKNLdcl7MoT5XB37bTkg==} + /@playwright/test@1.34.0: + resolution: {integrity: sha512-GIALJVODOIrMflLV54H3Cow635OfrTwOu24ZTDyKC66uchtFX2NcCRq83cLdakMjZKYK78lODNLQSYBj2OgaTw==} engines: {node: '>=14'} hasBin: true dependencies: '@types/node': 20.2.1 - playwright-core: 1.33.0 + playwright-core: 1.34.0 optionalDependencies: fsevents: 2.3.2 dev: true @@ -3115,14 +3115,14 @@ packages: defer-to-connect: 2.0.1 dev: true - /@tabler/icons-webfont@2.19.0: - resolution: {integrity: sha512-ZpGTmkJq8Cn5qw1QrzmPOI1/5RndfWJyTRwOgQhIpMkIwzDMNaTePZFHTGxM6X6+Pg85WSk6WNWKqMjN6zxUAw==} + /@tabler/icons-webfont@2.20.0: + resolution: {integrity: sha512-c/gjAOhetwVbTBkd5H/Y/OvdRj9kk0dK3U3p+8wlkrHg/tQooU1GlMA+/vxoCmARhVJNDbBXBiBviwGuFGJ+sA==} dependencies: - '@tabler/icons': 2.19.0 + '@tabler/icons': 2.20.0 dev: true - /@tabler/icons@2.19.0: - resolution: {integrity: sha512-3bqWTxFOFkrld+hx0nDSgwGWPrP2NeB9ySCAqWjXMN0hwewXYnNPpDKkOYtDfUDRtB+iiR/0FyW+kki6tu6qkQ==} + /@tabler/icons@2.20.0: + resolution: {integrity: sha512-BsUEJoqREs8bqcrf5HfJBq6/rDvsRI3h+T+0X1o7i8LBHonsH0iAngcyL0I82YKoSy9NiVDvM3LV63zDP0nPYQ==} dev: true /@tailwindcss/forms@0.5.3(tailwindcss@3.3.2): @@ -3156,16 +3156,16 @@ packages: engines: {node: '>= 10'} dev: true - /@trpc/client@10.26.0(@trpc/server@10.26.0): - resolution: {integrity: sha512-ojHxQFIE97rBEGPK8p1ijbzo0T1IdEBoJ9fFSgWWL9FMuEEA/DNQ9s0uuiOrDKhCCdTFT1unfRharoJhB2/O2w==} + /@trpc/client@10.27.1(@trpc/server@10.27.1): + resolution: {integrity: sha512-e9Syj6F41OHDSUg3JvT67fgoD22UbxPzYgp9Bno13NFpyeJc6vkXRlAgDc8ZuouqUPQuouJWll/I90CsuxEqvA==} peerDependencies: - '@trpc/server': 10.26.0 + '@trpc/server': 10.27.1 dependencies: - '@trpc/server': 10.26.0 + '@trpc/server': 10.27.1 dev: true - /@trpc/server@10.26.0: - resolution: {integrity: sha512-+Wt0NFAeflVSNiUnHIDNN3C8jP7XIRmYrcgJ6IsAnm0lK4p/FkpCpeu1aig5qxrgZx30PHNDLZ/3FttVSEW2aQ==} + /@trpc/server@10.27.1: + resolution: {integrity: sha512-oMTNpei0+CAet0BuDdBE9cup0SseJAOlWRhWhcTAU05rETsJnzCA5DfNkf+aP3XiAM8rMJfrTfC0Z3aeADhHaA==} /@ts-morph/common@0.19.0: resolution: {integrity: sha512-Unz/WHmd4pGax91rdIKWi51wnVUW11QttMEPpBiBgIewnc9UQIX7UDLxr5vRlqeByXCwhkF6VabSsI0raWcyAQ==} @@ -3573,7 +3573,7 @@ packages: '@types/yargs-parser': 21.0.0 dev: true - /@typescript-eslint/eslint-plugin@5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.40.0)(typescript@5.0.4): + /@typescript-eslint/eslint-plugin@5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.41.0)(typescript@5.0.4): resolution: {integrity: sha512-sXtOgJNEuRU5RLwPUb1jxtToZbgvq3M6FPpY4QENxoOggK+UpTxUBpj6tD8+Qh2g46Pi9We87E+eHnUw8YcGsw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -3585,12 +3585,12 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.5.0 - '@typescript-eslint/parser': 5.59.6(eslint@8.40.0)(typescript@5.0.4) + '@typescript-eslint/parser': 5.59.6(eslint@8.41.0)(typescript@5.0.4) '@typescript-eslint/scope-manager': 5.59.6 - '@typescript-eslint/type-utils': 5.59.6(eslint@8.40.0)(typescript@5.0.4) - '@typescript-eslint/utils': 5.59.6(eslint@8.40.0)(typescript@5.0.4) + '@typescript-eslint/type-utils': 5.59.6(eslint@8.41.0)(typescript@5.0.4) + '@typescript-eslint/utils': 5.59.6(eslint@8.41.0)(typescript@5.0.4) debug: 4.3.4 - eslint: 8.40.0 + eslint: 8.41.0 grapheme-splitter: 1.0.4 ignore: 5.2.4 natural-compare-lite: 1.4.0 @@ -3601,7 +3601,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@5.59.6(eslint@8.40.0)(typescript@5.0.4): + /@typescript-eslint/parser@5.59.6(eslint@8.41.0)(typescript@5.0.4): resolution: {integrity: sha512-7pCa6al03Pv1yf/dUg/s1pXz/yGMUBAw5EeWqNTFiSueKvRNonze3hma3lhdsOrQcaOXhbk5gKu2Fludiho9VA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -3615,7 +3615,7 @@ packages: '@typescript-eslint/types': 5.59.6 '@typescript-eslint/typescript-estree': 5.59.6(typescript@5.0.4) debug: 4.3.4 - eslint: 8.40.0 + eslint: 8.41.0 typescript: 5.0.4 transitivePeerDependencies: - supports-color @@ -3629,7 +3629,7 @@ packages: '@typescript-eslint/visitor-keys': 5.59.6 dev: true - /@typescript-eslint/type-utils@5.59.6(eslint@8.40.0)(typescript@5.0.4): + /@typescript-eslint/type-utils@5.59.6(eslint@8.41.0)(typescript@5.0.4): resolution: {integrity: sha512-A4tms2Mp5yNvLDlySF+kAThV9VTBPCvGf0Rp8nl/eoDX9Okun8byTKoj3fJ52IJitjWOk0fKPNQhXEB++eNozQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -3640,9 +3640,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.59.6(typescript@5.0.4) - '@typescript-eslint/utils': 5.59.6(eslint@8.40.0)(typescript@5.0.4) + '@typescript-eslint/utils': 5.59.6(eslint@8.41.0)(typescript@5.0.4) debug: 4.3.4 - eslint: 8.40.0 + eslint: 8.41.0 tsutils: 3.21.0(typescript@5.0.4) typescript: 5.0.4 transitivePeerDependencies: @@ -3675,19 +3675,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.59.6(eslint@8.40.0)(typescript@5.0.4): + /@typescript-eslint/utils@5.59.6(eslint@8.41.0)(typescript@5.0.4): resolution: {integrity: sha512-vzaaD6EXbTS29cVH0JjXBdzMt6VBlv+hE31XktDRMX1j3462wZCJa7VzO2AxXEXcIl8GQqZPcOPuW/Z1tZVogg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.40.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.41.0) '@types/json-schema': 7.0.11 '@types/semver': 7.3.13 '@typescript-eslint/scope-manager': 5.59.6 '@typescript-eslint/types': 5.59.6 '@typescript-eslint/typescript-estree': 5.59.6(typescript@5.0.4) - eslint: 8.40.0 + eslint: 8.41.0 eslint-scope: 5.1.1 semver: 7.5.0 transitivePeerDependencies: @@ -5606,21 +5606,21 @@ packages: engines: {node: '>=12'} dev: true - /eslint-config-prettier@8.8.0(eslint@8.40.0): + /eslint-config-prettier@8.8.0(eslint@8.41.0): resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.40.0 + eslint: 8.41.0 - /eslint-config-turbo@1.9.8(eslint@8.40.0): + /eslint-config-turbo@1.9.8(eslint@8.41.0): resolution: {integrity: sha512-EaZ3EbWXo7bcnwRKZsV+ckcF5Cjdri9wRBXZd5j49E7mJ3EEPvGw70h77kWeeunu+jM3mxxfy8olmo1Udr7gvQ==} peerDependencies: eslint: '>6.6.0' dependencies: - eslint: 8.40.0 - eslint-plugin-turbo: 1.9.8(eslint@8.40.0) + eslint: 8.41.0 + eslint-plugin-turbo: 1.9.8(eslint@8.41.0) dev: false /eslint-import-resolver-node@0.3.7: @@ -5633,7 +5633,7 @@ packages: - supports-color dev: true - /eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.40.0): + /eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.41.0): resolution: {integrity: sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -5642,9 +5642,9 @@ packages: dependencies: debug: 4.3.4 enhanced-resolve: 5.13.0 - eslint: 8.40.0 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0) - eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0) + eslint: 8.41.0 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.41.0) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-typescript@3.5.5)(eslint@8.41.0) get-tsconfig: 4.5.0 globby: 13.1.4 is-core-module: 2.12.0 @@ -5657,7 +5657,7 @@ packages: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.41.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -5678,16 +5678,16 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.59.6(eslint@8.40.0)(typescript@5.0.4) + '@typescript-eslint/parser': 5.59.6(eslint@8.41.0)(typescript@5.0.4) debug: 3.2.7(supports-color@5.5.0) - eslint: 8.40.0 + eslint: 8.41.0 eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.40.0) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.59.6)(eslint-plugin-import@2.27.5)(eslint@8.41.0) transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0): + /eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-typescript@3.5.5)(eslint@8.41.0): resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==} engines: {node: '>=4'} peerDependencies: @@ -5697,15 +5697,15 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.59.6(eslint@8.40.0)(typescript@5.0.4) + '@typescript-eslint/parser': 5.59.6(eslint@8.41.0)(typescript@5.0.4) array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 debug: 3.2.7(supports-color@5.5.0) doctrine: 2.1.0 - eslint: 8.40.0 + eslint: 8.41.0 eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.6)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.41.0) has: 1.0.3 is-core-module: 2.12.0 is-glob: 4.0.3 @@ -5720,7 +5720,7 @@ packages: - supports-color dev: true - /eslint-plugin-react@7.32.2(eslint@8.40.0): + /eslint-plugin-react@7.32.2(eslint@8.41.0): resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} engines: {node: '>=4'} peerDependencies: @@ -5730,7 +5730,7 @@ packages: array.prototype.flatmap: 1.3.1 array.prototype.tosorted: 1.1.1 doctrine: 2.1.0 - eslint: 8.40.0 + eslint: 8.41.0 estraverse: 5.3.0 jsx-ast-utils: 3.3.3 minimatch: 3.1.2 @@ -5744,13 +5744,13 @@ packages: string.prototype.matchall: 4.0.8 dev: false - /eslint-plugin-svelte3@4.0.0(eslint@8.40.0)(svelte@3.59.1): + /eslint-plugin-svelte3@4.0.0(eslint@8.41.0)(svelte@3.59.1): resolution: {integrity: sha512-OIx9lgaNzD02+MDFNLw0GEUbuovNcglg+wnd/UY0fbZmlQSz7GlQiQ1f+yX0XvC07XPcDOnFcichqI3xCwp71g==} peerDependencies: eslint: '>=8.0.0' svelte: ^3.2.0 dependencies: - eslint: 8.40.0 + eslint: 8.41.0 svelte: 3.59.1 dev: true @@ -5761,12 +5761,12 @@ packages: '@microsoft/tsdoc-config': 0.16.2 dev: true - /eslint-plugin-turbo@1.9.8(eslint@8.40.0): + /eslint-plugin-turbo@1.9.8(eslint@8.41.0): resolution: {integrity: sha512-Alvv3zCkILFfwEJ2aiuUjzYFqZ12qX+2F14ahNOhC9BDwgGZkEh1w19TB2gOPMLeNx2+iBVAU9L+1FTBSOOAJA==} peerDependencies: eslint: '>6.6.0' dependencies: - eslint: 8.40.0 + eslint: 8.41.0 dev: false /eslint-scope@5.1.1: @@ -5788,15 +5788,15 @@ packages: resolution: {integrity: sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - /eslint@8.40.0: - resolution: {integrity: sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==} + /eslint@8.41.0: + resolution: {integrity: sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.40.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.41.0) '@eslint-community/regexpp': 4.5.0 '@eslint/eslintrc': 2.0.3 - '@eslint/js': 8.40.0 + '@eslint/js': 8.41.0 '@humanwhocodes/config-array': 0.11.8 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -5816,13 +5816,12 @@ packages: find-up: 5.0.0 glob-parent: 6.0.2 globals: 13.20.0 - grapheme-splitter: 1.0.4 + graphemer: 1.4.0 ignore: 5.2.4 import-fresh: 3.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 - js-sdsl: 4.4.0 js-yaml: 4.1.0 json-stable-stringify-without-jsonify: 1.0.1 levn: 0.4.1 @@ -6234,8 +6233,8 @@ packages: /flatted@3.2.7: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} - /flowbite-svelte@0.36.2(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1): - resolution: {integrity: sha512-WnD+ukU5p2saxsjoS50gz/bNKD/QsHBmd9EGMycEKF0MsqAvDoEUaFXMsoxNYNQTwyTeCPTmsNdj0CVKKk0yfA==} + /flowbite-svelte@0.36.4(@algolia/client-search@4.17.0)(@popperjs/core@2.11.7)(classnames@2.3.2)(flowbite@1.6.5)(svelte@3.59.1): + resolution: {integrity: sha512-dONmZUlTJwOp3I4x1vhT3MFhxnwXRtcV0HDrXON57D5T1Fbf7EZ15tRy1ttVM+yGhRFm+JVBCByq+MLgq+WSpw==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} peerDependencies: '@popperjs/core': ^2.11.6 @@ -6243,7 +6242,7 @@ packages: flowbite: ^1.6.3 svelte: ^3.55.1 dependencies: - '@docsearch/js': 3.3.4(@algolia/client-search@4.17.0) + '@docsearch/js': 3.3.5(@algolia/client-search@4.17.0) '@popperjs/core': 2.11.7 classnames: 2.3.2 flowbite: 1.6.5 @@ -6702,6 +6701,10 @@ packages: /grapheme-splitter@1.0.4: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + dev: true + + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} /hard-rejection@2.1.0: resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} @@ -7744,9 +7747,6 @@ packages: engines: {node: '>=14'} dev: true - /js-sdsl@4.4.0: - resolution: {integrity: sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==} - /js-string-escape@1.0.1: resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} engines: {node: '>= 0.8'} @@ -9435,10 +9435,9 @@ packages: engines: {node: '>=10'} dev: true - /playwright-core@1.33.0: - resolution: {integrity: sha512-aizyPE1Cj62vAECdph1iaMILpT0WUDCq3E6rW6I+dleSbBoGbktvJtzS6VHkZ4DKNEOG9qJpiom/ZxO+S15LAw==} + /playwright-core@1.34.0: + resolution: {integrity: sha512-fMUY1+iR6kYbJF/EsOOqzBA99ZHXbw9sYPNjwA4X/oV0hVF/1aGlWYBGPVUEqxBkGANDKMziYoOdKGU5DIP5Gg==} engines: {node: '>=14'} - hasBin: true dev: true /pluralize@8.0.0: @@ -11171,7 +11170,7 @@ packages: escape-string-regexp: 5.0.0 dev: true - /trpc-svelte-query@1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.26.0)(@trpc/server@10.26.0)(svelte@3.59.1): + /trpc-svelte-query@1.0.0(@sveltejs/kit@1.18.0)(@tanstack/svelte-query@4.29.7)(@trpc/client@10.27.1)(@trpc/server@10.27.1)(svelte@3.59.1): resolution: {integrity: sha512-9+0n5jJp+a4XTqzPSErvEKBneAAdL45wheADjHCs5DdayICb378dWilqsdbcYKp03g3s1nQpFqTOeFDAqT2GJA==} peerDependencies: '@sveltejs/kit': ^1.16.3 @@ -11182,8 +11181,8 @@ packages: dependencies: '@sveltejs/kit': 1.18.0(svelte@3.59.1)(vite@4.3.8) '@tanstack/svelte-query': 4.29.7(svelte@3.59.1) - '@trpc/client': 10.26.0(@trpc/server@10.26.0) - '@trpc/server': 10.26.0 + '@trpc/client': 10.27.1(@trpc/server@10.27.1) + '@trpc/server': 10.27.1 esm-env: 1.0.0 svelte: 3.59.1 dev: true @@ -11492,13 +11491,9 @@ packages: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} - /type-fest@3.10.0(typescript@5.0.4): - resolution: {integrity: sha512-hmAPf1datm+gt3c2mvu0sJyhFy6lTkIGf0GzyaZWxRLnabQfPUqg6tF95RPg6sLxKI7nFLGdFxBcf2/7+GXI+A==} + /type-fest@3.11.0: + resolution: {integrity: sha512-JaPw5U9ixP0XcpUbQoVSbxSDcK/K4nww20C3kjm9yE6cDRRhptU28AH60VWf9ltXmCrIfIbtt9J+2OUk2Uqiaw==} engines: {node: '>=14.16'} - peerDependencies: - typescript: '>=4.7.0' - dependencies: - typescript: 5.0.4 dev: true /type-is@1.6.18: From f4d34df20ceee649fb538ecf53966f0458acddda Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sun, 21 May 2023 20:58:09 +0800 Subject: [PATCH 16/18] chore: seed data --- apps/backend/src/app.module.ts | 21 +- apps/backend/src/configs/env.validate.ts | 1 + apps/backend/src/configs/sqlite.config.ts | 1 + data/data.sql | 330 ++++++++++++++++++++++ render.yaml | 2 + 5 files changed, 350 insertions(+), 5 deletions(-) create mode 100644 data/data.sql diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index 97e7f22ca..1a87991f4 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -2,10 +2,11 @@ import { MikroORM } from '@mikro-orm/core' import { MikroOrmModule } from '@mikro-orm/nestjs' import type { OnModuleInit } from '@nestjs/common' import { Module } from '@nestjs/common' -import { ConfigType } from '@nestjs/config' +import type { ConfigType } from '@nestjs/config' import { ServeStaticModule } from '@nestjs/serve-static' -import { createConfig } from '@undb/sqlite' +import { EntityManager, createConfig } from '@undb/sqlite' import { Request } from 'express' +import { existsSync } from 'fs' import { ClsModule } from 'nestjs-cls' import { LoggerModule } from 'nestjs-pino' import path from 'path' @@ -14,7 +15,7 @@ import { AttachmentModule } from './attachment/attachment.module.js' import { AuthModule } from './auth/auth.module.js' import { BaseConfigService } from './configs/base-config.service.js' import { ConfigModule } from './configs/config.module.js' -import { sqliteConfig } from './configs/sqlite.config.js' +import { InjectSqliteConfig, sqliteConfig } from './configs/sqlite.config.js' import { HealthModule } from './health/health.module.js' import { I18nModule } from './i18n/i18n.module.js' import { modules } from './modules/index.js' @@ -56,10 +57,20 @@ import { TrpcModule } from './trpc/trpc.module.js' ], }) export class AppModule implements OnModuleInit { - constructor(private readonly orm: MikroORM, private readonly userService: UserService) {} + constructor( + private readonly orm: MikroORM, + private readonly userService: UserService, + @InjectSqliteConfig() private readonly config: ConfigType, + ) {} async onModuleInit() { - await this.orm.getMigrator().up() + const em = this.orm.em as EntityManager + const data = path.join(this.config.data!, 'undb.db') + if (this.config.seed && !existsSync(data)) { + await em.getConnection().loadFile(path.resolve(process.cwd(), '../../data/data.sql')).catch(console.error) + } else { + await this.orm.getMigrator().up() + } await this.userService.createAdmin() } } diff --git a/apps/backend/src/configs/env.validate.ts b/apps/backend/src/configs/env.validate.ts index a05cf46f7..63fe9964d 100644 --- a/apps/backend/src/configs/env.validate.ts +++ b/apps/backend/src/configs/env.validate.ts @@ -7,6 +7,7 @@ export const configSchema = Joi.object({ PORT: Joi.number().default(4000), // databse UNDB_DATABASE_SQLITE_DATA: Joi.string().default(path.resolve(process.cwd(), '../../.undb/data')), + UNDB_SEED: Joi.string().equal('true').optional(), // storage object UNDB_OBJECT_STORAGE_PROVIDER: Joi.string().valid('local').default('local'), UNDB_OBJECT_STORAGE_LOCAL_PATH: Joi.when('UNDB_OBJECT_STORAGE_PROVIDER', { diff --git a/apps/backend/src/configs/sqlite.config.ts b/apps/backend/src/configs/sqlite.config.ts index 4d0c8377d..4ccfc6b31 100644 --- a/apps/backend/src/configs/sqlite.config.ts +++ b/apps/backend/src/configs/sqlite.config.ts @@ -5,4 +5,5 @@ export const InjectSqliteConfig = () => Inject(sqliteConfig.KEY) export const sqliteConfig = registerAs('sqlite', () => ({ data: process.env.UNDB_DATABASE_SQLITE_DATA, + seed: process.env.UNDB_SEED === 'true', })) diff --git a/data/data.sql b/data/data.sql new file mode 100644 index 000000000..fdbdfc19c --- /dev/null +++ b/data/data.sql @@ -0,0 +1,330 @@ +PRAGMA foreign_keys=OFF; +BEGIN TRANSACTION; +CREATE TABLE `mikro_orm_migrations` (`id` integer not null primary key autoincrement, `name` varchar(255), `executed_at` datetime default CURRENT_TIMESTAMP); +INSERT INTO mikro_orm_migrations VALUES(1,'Migration20230507094448','2023-05-20 09:46:34'); +INSERT INTO mikro_orm_migrations VALUES(2,'Migration20230511142430','2023-05-20 09:46:34'); +INSERT INTO mikro_orm_migrations VALUES(3,'Migration20230518040812','2023-05-21 12:43:16'); +INSERT INTO mikro_orm_migrations VALUES(4,'Migration20230521024441','2023-05-21 12:43:16'); +CREATE TABLE `undb_table` (`id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `name` text not null, `emoji` text not null, `views_order` text null, primary key (`id`)); +INSERT INTO undb_table VALUES('tbl4undb0lh',1684577267430,1684577267430,NULL,'Deal Tracker','1f44d','viwnxi5l3qi'); +INSERT INTO undb_table VALUES('tblramxgp7z',1684577324093,1684577324093,NULL,'Contacts','1f44d','viw1f88x075'); +INSERT INTO undb_table VALUES('tblwqjcq0x8',1684597096588,1684597096588,NULL,'Company','1f44d','viw70p8od12'); +INSERT INTO undb_table VALUES('tbl4ezqb49a',1684599288325,1684599288325,NULL,'Title','1f44d','viw9p12yoag'); +INSERT INTO undb_table VALUES('tbl2za35hbg',1684655636180,1684655636180,NULL,'Employee onboarding','1f44d','viw3qge14qx'); +INSERT INTO undb_table VALUES('tblruubokdc',1684655754437,1684655754437,NULL,'Employees','1f44d','viw2j74tv49'); +CREATE TABLE `undb_field` (`id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `table_id` text null, `name` text not null, `description` text null, `system` integer not null default false, `required` integer not null default false, `display` integer not null default false, `type` text not null, `format` text null, `foreign_table_id` text null, `symmetric_reference_field_id` text null, `is_owner` integer null default false, `parent_field_id` text null, `tree_field_id` text null, `max` integer null, `count_reference_field_id` text null, `lookup_reference_field_id` text null, `sum_reference_field_id` text null, `sum_aggregate_field_id` text null, `average_reference_field_id` text null, `average_aggregate_field_id` text null, `time_format` text null, constraint `undb_field_table_id_foreign` foreign key(`table_id`) references `undb_table`(`id`) on delete cascade on update cascade, constraint `undb_field_foreign_table_id_foreign` foreign key(`foreign_table_id`) references `undb_table`(`id`) on delete set null on update cascade, constraint `undb_field_symmetric_reference_field_id_foreign` foreign key(`symmetric_reference_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_count_reference_field_id_foreign` foreign key(`count_reference_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_lookup_reference_field_id_foreign` foreign key(`lookup_reference_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_sum_reference_field_id_foreign` foreign key(`sum_reference_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_sum_aggregate_field_id_foreign` foreign key(`sum_aggregate_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_average_reference_field_id_foreign` foreign key(`average_reference_field_id`) references `undb_field`(`id`) on delete set null on update cascade, constraint `undb_field_average_aggregate_field_id_foreign` foreign key(`average_aggregate_field_id`) references `undb_field`(`id`) on delete set null on update cascade, primary key (`id`)); +INSERT INTO undb_field VALUES('fldopx87187',1684577267430,1684577267466,NULL,'tbl4undb0lh','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld7m4e9dbz',1684577267430,1684577267466,NULL,'tbl4undb0lh','Deal','deal name ',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld4sf2mdr8',1684577267430,1684577267466,NULL,'tbl4undb0lh','Stage',NULL,0,1,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld7vd9ir75',1684577267431,1684577267466,NULL,'tbl4undb0lh','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldx5w2pcft',1684577267431,1684577267466,NULL,'tbl4undb0lh','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld8ql20jlm',1684577267431,1684577267466,NULL,'tbl4undb0lh','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldxq7kp4eu',1684577267431,1684577267466,NULL,'tbl4undb0lh','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldtefbcm18',1684577290100,1684577290126,NULL,'tbl4undb0lh','Owner',NULL,0,0,0,'collaborator',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('flderd3a3rc',1684577324093,1684577324122,NULL,'tblramxgp7z','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldel2i4v7v',1684577324094,1684577324122,NULL,'tblramxgp7z','Contact','contact name',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldconkpc7g',1684577324094,1684577324122,NULL,'tblramxgp7z','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld7smzf5np',1684577324094,1684577324122,NULL,'tblramxgp7z','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldelspnzaq',1684577324094,1684577324122,NULL,'tblramxgp7z','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldpkr0phjz',1684577324094,1684577324122,NULL,'tblramxgp7z','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld5vld4clt',1684577348149,1684577348170,NULL,'tbl4undb0lh','Contacts',NULL,0,0,0,'reference',NULL,'tblramxgp7z','fldmz9qd18u',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldmz9qd18u',1684577348168,1684577348168,NULL,'tblramxgp7z','Deal Tracker',NULL,0,0,0,'reference',NULL,'tbl4undb0lh','fld5vld4clt',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldghc0rw09',1684580952905,1684580952931,NULL,'tbl4undb0lh','Priority',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldjyupbqlm',1684581148218,1684581148242,NULL,'tbl4undb0lh','Deal Length',NULL,0,0,0,'date-range','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld0f8xaf8q',1684581180852,1684581204035,NULL,'tbl4undb0lh','Deal Value','$',0,0,0,'number',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldqpn61v8h',1684581231068,1684581231093,NULL,'tbl4undb0lh','Close Date',NULL,0,0,0,'date','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld2u4gkap9',1684581247030,1684581247050,NULL,'tbl4undb0lh','Deal Creation Date',NULL,0,0,0,'date','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldcamelfi7',1684581555250,1684581555278,NULL,'tblramxgp7z','Type',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldqojjbrau',1684596981406,1684596981427,NULL,'tblramxgp7z','Email',NULL,0,0,0,'email',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldovc5s8pe',1684596988567,1684597112361,1684597112360,'tblramxgp7z','Company',NULL,0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldpq4mvj6c',1684597040388,1684597040413,NULL,'tblramxgp7z','Phone','phone number',0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldzfu3x1ft',1684597096588,1684597096613,NULL,'tblwqjcq0x8','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldo4mvc3bq',1684597096588,1684597096613,NULL,'tblwqjcq0x8','Company','company name',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldozbddvfk',1684597096588,1684597096613,NULL,'tblwqjcq0x8','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldapuzxp1y',1684597096588,1684597096613,NULL,'tblwqjcq0x8','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldurfpiosy',1684597096588,1684597096613,NULL,'tblwqjcq0x8','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld2mh42tvf',1684597096588,1684597096613,NULL,'tblwqjcq0x8','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldrlmpebtz',1684597104042,1684599262104,1684599262103,'tblwqjcq0x8','Title','',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldtgvzjaoj',1684597172260,1684597172278,NULL,'tblramxgp7z','Company',NULL,0,0,0,'reference',NULL,'tblwqjcq0x8','fldrjp6v8xl',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldrjp6v8xl',1684597172276,1684597172276,NULL,'tblwqjcq0x8','Contacts',NULL,0,0,0,'reference',NULL,'tblramxgp7z','fldtgvzjaoj',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldn8qkrzwi',1684597224553,1684599359046,1684599359046,'tblramxgp7z','Title',NULL,0,0,0,'lookup',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'fldtgvzjaoj',NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldgbowxfbc',1684597247673,1684597247694,NULL,'tblramxgp7z','Comments',NULL,0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld6pd0v553',1684599118649,1684599200681,1684599200680,'tblwqjcq0x8','Title Name',NULL,0,0,0,'tree',NULL,NULL,NULL,NULL,'fld5kzdse27',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld5kzdse27',1684599118651,1684599204842,1684599204842,'tblwqjcq0x8','Company Name','',0,0,0,'parent',NULL,NULL,NULL,NULL,NULL,'fld6pd0v553',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldnpyc4w0l',1684599288325,1684599288343,NULL,'tbl4ezqb49a','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldvpb5tbbc',1684599288325,1684599288343,NULL,'tbl4ezqb49a','Title','Title Name',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldyaf9zrt8',1684599288325,1684599288343,NULL,'tbl4ezqb49a','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld29n86hi3',1684599288325,1684599288343,NULL,'tbl4ezqb49a','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldka6qo796',1684599288325,1684599288343,NULL,'tbl4ezqb49a','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldtn1k1f67',1684599288325,1684599288343,NULL,'tbl4ezqb49a','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldlosp8skm',1684599347668,1684599347668,NULL,'tblwqjcq0x8','Title',NULL,0,0,0,'reference',NULL,'tbl4ezqb49a',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldamnv8ghw',1684599441815,1684599500838,NULL,'tblwqjcq0x8','Title Name','',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld7a5vkk4j',1684599517049,1684599517074,NULL,'tblramxgp7z','Title',NULL,0,0,0,'lookup',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'fldtgvzjaoj',NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldo6wz3szd',1684655636180,1684655636217,NULL,'tbl2za35hbg','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldskwotpjg',1684655636180,1684655636217,NULL,'tbl2za35hbg','Employee','employee name',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldr3t33atc',1684655636181,1684655636217,NULL,'tbl2za35hbg','Status',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldd55dsm2m',1684655636181,1684655636217,NULL,'tbl2za35hbg','HR responsible',NULL,0,0,0,'collaborator',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldxx0cyu8w',1684655636182,1684655636217,NULL,'tbl2za35hbg','Email',NULL,0,0,0,'email',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldqjxpupfu',1684655636183,1684655636217,NULL,'tbl2za35hbg','Phone','phone number',0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld19njyj50',1684655636183,1684655636217,NULL,'tbl2za35hbg','Position',NULL,0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld67w65koz',1684655636183,1684655636217,NULL,'tbl2za35hbg','Department',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld92yn7hcf',1684655636183,1684655636217,NULL,'tbl2za35hbg','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldyxr4fgcj',1684655636183,1684655636217,NULL,'tbl2za35hbg','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld52ryjekr',1684655636183,1684655636217,NULL,'tbl2za35hbg','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldwbr3sb09',1684655636183,1684655636217,NULL,'tbl2za35hbg','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldh65rro60',1684655754437,1684655754459,NULL,'tblruubokdc','id',NULL,1,0,0,'id',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldhrrqqlqh',1684655754437,1684657570979,NULL,'tblruubokdc','Employee','',0,0,0,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld0gmmj29q',1684655754437,1684657565944,NULL,'tblruubokdc','Title','',0,0,1,'string',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldjrqmbjni',1684655754437,1684655754459,NULL,'tblruubokdc','createdAt',NULL,1,0,0,'created-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldgt1q5u09',1684655754437,1684655754459,NULL,'tblruubokdc','createdBy',NULL,1,0,0,'created-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld462h34dx',1684655754437,1684655754459,NULL,'tblruubokdc','updatedAt',NULL,1,0,0,'updated-at','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldzpxkf4wc',1684655754437,1684655754460,NULL,'tblruubokdc','updatedBy',NULL,1,0,0,'updated-by',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldfpeufgq3',1684657625780,1684657625780,NULL,'tbl2za35hbg','Reporting manager',NULL,0,0,0,'reference',NULL,'tblruubokdc',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldui7hrx2t',1684657651403,1684657651422,NULL,'tbl2za35hbg','Date of joining',NULL,0,0,0,'date','yyyy-MM-dd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld38j2aoqw',1684657728406,1684657728431,NULL,'tbl2za35hbg','Physical workplace',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldmjxybwnt',1684657850773,1684657850796,NULL,'tbl2za35hbg','Software workplace',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldntjvterl',1684657896209,1684657896229,NULL,'tbl2za35hbg','Send welcome email',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldu3ll00ho',1684657920293,1684657920317,NULL,'tbl2za35hbg','Company email','company email',0,0,0,'email',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldy60tdkfr',1684657974107,1684657974134,NULL,'tbl2za35hbg','Onboarding meeting with HR',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld4a04leij',1684658017413,1684658017434,NULL,'tbl2za35hbg','schedule training sessions',NULL,0,0,0,'select',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldng2e0uhl',1684658032532,1684658032552,NULL,'tbl2za35hbg','Responsible to the onboarding',NULL,0,0,0,'collaborator',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fldkd8gvemb',1684658052725,1684658052737,NULL,'tbl2za35hbg','Performance 1st week',NULL,0,0,0,'rating',NULL,NULL,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO undb_field VALUES('fld5pgga2xx',1684658067684,1684658067702,NULL,'tbl2za35hbg','Performance 1st month',NULL,0,0,0,'rating',NULL,NULL,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +CREATE TABLE `undb_option` (`key` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `field_id` text null, `name` text not null, `color_name` text not null, `color_shade` integer not null, constraint `undb_option_field_id_foreign` foreign key(`field_id`) references `undb_field`(`id`) on delete cascade on update cascade, primary key (`key`)); +INSERT INTO undb_option VALUES('optuo8m1',1684577267430,1684577267430,NULL,'fld4sf2mdr8','New','gray',5); +INSERT INTO undb_option VALUES('optapz93',1684577267430,1684577267430,NULL,'fld4sf2mdr8','Discovery','blue',5); +INSERT INTO undb_option VALUES('opteh974',1684577267430,1684577267430,NULL,'fld4sf2mdr8','Proposal','emerald',5); +INSERT INTO undb_option VALUES('opts4t4w',1684577267430,1684577267430,NULL,'fld4sf2mdr8','Negotiation','violet',5); +INSERT INTO undb_option VALUES('optdczmv',1684577267430,1684577267430,NULL,'fld4sf2mdr8','Won','lime',5); +INSERT INTO undb_option VALUES('optygwq0',1684577267430,1684577267430,NULL,'fld4sf2mdr8','Lost','red',5); +INSERT INTO undb_option VALUES('optua38g',1684580952905,1684580952905,NULL,'fldghc0rw09','Hight','rose',5); +INSERT INTO undb_option VALUES('opty4o0z',1684580952905,1684580952905,NULL,'fldghc0rw09','Medium','yellow',5); +INSERT INTO undb_option VALUES('opt68d8z',1684580952905,1684580952905,NULL,'fldghc0rw09','Low','green',5); +INSERT INTO undb_option VALUES('opt88amk',1684581555250,1684581555250,NULL,'fldcamelfi7','Customer','indigo',5); +INSERT INTO undb_option VALUES('opt0ucwc',1684581555250,1684581555250,NULL,'fldcamelfi7','Qualified Lead','emerald',5); +INSERT INTO undb_option VALUES('opthjypi',1684581555250,1684581555250,NULL,'fldcamelfi7','Partner','amber',5); +INSERT INTO undb_option VALUES('optqutxq',1684581555250,1684581555250,NULL,'fldcamelfi7','Vendor','blue',5); +INSERT INTO undb_option VALUES('optsgc8w',1684655636181,1684655636181,NULL,'fldr3t33atc','Pre Arrival','neutral',5); +INSERT INTO undb_option VALUES('opt8ef1v',1684655636181,1684655636181,NULL,'fldr3t33atc','First Day','rose',5); +INSERT INTO undb_option VALUES('optjsdp6',1684655636181,1684655636181,NULL,'fldr3t33atc','First Week','violet',5); +INSERT INTO undb_option VALUES('optgin1z',1684655636181,1684655636181,NULL,'fldr3t33atc','First Month','blue',5); +INSERT INTO undb_option VALUES('optlottl',1684655636181,1684655636181,NULL,'fldr3t33atc','Onboarded','emerald',5); +INSERT INTO undb_option VALUES('optpg4ya',1684655636183,1684655636183,NULL,'fld67w65koz','Design','orange',5); +INSERT INTO undb_option VALUES('optjehd9',1684655636183,1684655636183,NULL,'fld67w65koz','IT','yellow',5); +INSERT INTO undb_option VALUES('optk8vx1',1684655636183,1684655636183,NULL,'fld67w65koz','Security','fuchsia',5); +INSERT INTO undb_option VALUES('opts4ao9',1684655636183,1684655636183,NULL,'fld67w65koz','Customer Support','emerald',5); +INSERT INTO undb_option VALUES('opt8h6fl',1684655636183,1684655636183,NULL,'fld67w65koz','Marketing','red',5); +INSERT INTO undb_option VALUES('optz0o9e',1684655636183,1684655636183,NULL,'fld67w65koz','HR','rose',5); +INSERT INTO undb_option VALUES('opt0g9hh',1684655636183,1684655636183,NULL,'fld67w65koz','Partners','violet',5); +INSERT INTO undb_option VALUES('optake1d',1684655636183,1684655636183,NULL,'fld67w65koz','R&D','sky',5); +INSERT INTO undb_option VALUES('optrhqo9',1684655636183,1684655636183,NULL,'fld67w65koz','Sales','blue',5); +INSERT INTO undb_option VALUES('opth45w2',1684655636183,1684655636183,NULL,'fld67w65koz','Operation','pink',5); +INSERT INTO undb_option VALUES('opt44dfp',1684655636183,1684655636183,NULL,'fld67w65koz','Finance','green',5); +INSERT INTO undb_option VALUES('optuieaz',1684655636183,1684655636183,NULL,'fld67w65koz','Mobile','amber',5); +INSERT INTO undb_option VALUES('optmelkt',1684655636183,1684655636183,NULL,'fld67w65koz',' ','neutral',5); +INSERT INTO undb_option VALUES('opt4lu2m',1684657728406,1684657728406,NULL,'fld38j2aoqw','Done','emerald',5); +INSERT INTO undb_option VALUES('optks9w7',1684657728406,1684657728406,NULL,'fld38j2aoqw','Working on it','orange',5); +INSERT INTO undb_option VALUES('optcarg3',1684657728406,1684657728406,NULL,'fld38j2aoqw','Stuck','rose',5); +INSERT INTO undb_option VALUES('opttmurc',1684657728406,1684657728406,NULL,'fld38j2aoqw',' ','slate',5); +INSERT INTO undb_option VALUES('optlhx0u',1684657850773,1684657850773,NULL,'fldmjxybwnt','Done ','emerald',5); +INSERT INTO undb_option VALUES('opt4ra5l',1684657850773,1684657850773,NULL,'fldmjxybwnt','Working on it','orange',5); +INSERT INTO undb_option VALUES('opt4la7z',1684657850773,1684657850773,NULL,'fldmjxybwnt','stuck','rose',5); +INSERT INTO undb_option VALUES('optqqamc',1684657850773,1684657850773,NULL,'fldmjxybwnt',' ','slate',5); +INSERT INTO undb_option VALUES('opt0cxih',1684657896209,1684657896209,NULL,'fldntjvterl','Done','emerald',5); +INSERT INTO undb_option VALUES('opt6moby',1684657896209,1684657896209,NULL,'fldntjvterl','Working on it','orange',5); +INSERT INTO undb_option VALUES('optrxxd8',1684657896209,1684657896209,NULL,'fldntjvterl','Stuck','rose',5); +INSERT INTO undb_option VALUES('opt27124',1684657896209,1684657896209,NULL,'fldntjvterl',' ','slate',5); +INSERT INTO undb_option VALUES('optap9r0',1684657974107,1684657974107,NULL,'fldy60tdkfr','Done','emerald',5); +INSERT INTO undb_option VALUES('optz8twl',1684657974107,1684657974107,NULL,'fldy60tdkfr','Working on it','orange',5); +INSERT INTO undb_option VALUES('optr48gc',1684657974107,1684657974107,NULL,'fldy60tdkfr','Stuck','rose',5); +INSERT INTO undb_option VALUES('optybpi2',1684657974107,1684657974107,NULL,'fldy60tdkfr',' ','slate',5); +INSERT INTO undb_option VALUES('optuqbtr',1684658017413,1684658017413,NULL,'fld4a04leij','Done','emerald',5); +INSERT INTO undb_option VALUES('optzq9lr',1684658017413,1684658017413,NULL,'fld4a04leij','Working on it','orange',5); +INSERT INTO undb_option VALUES('optukskn',1684658017413,1684658017413,NULL,'fld4a04leij','Stuck','rose',5); +INSERT INTO undb_option VALUES('optsij84',1684658017413,1684658017413,NULL,'fld4a04leij',' ','slate',5); +CREATE TABLE `undb_attachment` (`id` text not null, `record_id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `table_id` text not null, `mime_type` text not null, `name` text not null, `size` integer not null, `token` text not null, `url` text not null, `extension` text not null, constraint `undb_attachment_table_id_foreign` foreign key(`table_id`) references `undb_table`(`id`) on update cascade, primary key (`id`, `record_id`)); +CREATE TABLE `undb_field_display_fields` (`field_1_id` text not null, `field_2_id` text not null, constraint `undb_field_display_fields_field_1_id_foreign` foreign key(`field_1_id`) references `undb_field`(`id`) on delete cascade on update cascade, constraint `undb_field_display_fields_field_2_id_foreign` foreign key(`field_2_id`) references `undb_field`(`id`) on delete cascade on update cascade, primary key (`field_1_id`, `field_2_id`)); +INSERT INTO undb_field_display_fields VALUES('fld5vld4clt','fldel2i4v7v'); +INSERT INTO undb_field_display_fields VALUES('fldn8qkrzwi','fldrlmpebtz'); +INSERT INTO undb_field_display_fields VALUES('fld6pd0v553','fldrlmpebtz'); +INSERT INTO undb_field_display_fields VALUES('fld5kzdse27','fldrlmpebtz'); +INSERT INTO undb_field_display_fields VALUES('fld5kzdse27','fldo4mvc3bq'); +INSERT INTO undb_field_display_fields VALUES('fldlosp8skm','fldvpb5tbbc'); +INSERT INTO undb_field_display_fields VALUES('fld7a5vkk4j','fldamnv8ghw'); +INSERT INTO undb_field_display_fields VALUES('fldfpeufgq3','fld0gmmj29q'); +CREATE TABLE `undb_user` (`id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `avatar` text null, `username` text not null, `email` text not null, `password` text not null, `color` text not null default 'blue', primary key (`id`)); +INSERT INTO undb_user VALUES('usrzvhv8srb',1684576050811,1684576050811,NULL,NULL,'wanshufen','wanshufen@gmail.com','$2b$10$WWb61jyIP.k2diCCHVwcWOAm5xigGGu8sV5/NZpqB.9X5rme/v68u','blue'); +CREATE TABLE `undb_virsualization` (`id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `name` text not null, `type` text not null, `table_id` text null, `number_aggregate_function` text null, `field_id` text null, `chart_aggregate_function` text null, `chart_type` text null, constraint `undb_virsualization_table_id_foreign` foreign key(`table_id`) references `undb_table`(`id`) on delete cascade on update cascade, primary key (`id`)); +INSERT INTO undb_virsualization VALUES('vir5353gfgf',1684661009070,1684661009070,NULL,'柱状图','chart','tbl2za35hbg',NULL,'fldr3t33atc','count','bar'); +INSERT INTO undb_virsualization VALUES('virc6ae7eok',1684661041511,1684661041511,NULL,'计数','number','tbl2za35hbg',NULL,NULL,NULL,NULL); +INSERT INTO undb_virsualization VALUES('vir4qvwxtmp',1684661047519,1684661054377,NULL,'柱状图','chart','tbl2za35hbg',NULL,'fld67w65koz','count','bar'); +INSERT INTO undb_virsualization VALUES('vir585o7pkz',1684661061383,1684661068653,NULL,'柱状图','chart','tbl2za35hbg',NULL,'fld67w65koz','count','bar'); +CREATE TABLE `undb_widge` (`id` text not null, `created_at` datetime not null, `updated_at` datetime not null, `deleted_at` datetime null, `layout` json not null, `view_id` text not null, `virsualization_id` text null, constraint `undb_widge_view_id_foreign` foreign key(`view_id`) references `undb_view`(`id`) on update cascade, constraint `undb_widge_virsualization_id_foreign` foreign key(`virsualization_id`) references `undb_virsualization`(`id`) on delete set null on update cascade, primary key (`id`)); +INSERT INTO undb_widge VALUES('wid2c1qxm9o',1684661009070,1684661085400,NULL,'{"x":0,"y":0,"h":4,"w":6}','viw3qge14qx','vir5353gfgf'); +INSERT INTO undb_widge VALUES('wide8odhgnl',1684661041511,1684661045009,1684661045009,'{"x":6,"y":0,"h":2,"w":6}','viw3qge14qx','virc6ae7eok'); +INSERT INTO undb_widge VALUES('widue819e88',1684661047519,1684661085400,NULL,'{"x":6,"y":0,"h":4,"w":6}','viw3qge14qx','vir4qvwxtmp'); +INSERT INTO undb_widge VALUES('widtbx3szzn',1684661061383,1684661085371,1684661085370,'{"x":12,"y":0,"h":4,"w":6}','viw3qge14qx','vir585o7pkz'); +CREATE TABLE IF NOT EXISTS "undb_view" (`id` text NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime NULL, `table_id` text NULL, `name` text NOT NULL, `show_system_fields` integer NOT NULL DEFAULT false, `display_type` text check (`display_type` in ('kanban', 'calendar', 'grid', 'tree', 'dashboard')) NOT NULL CHECK (`display_type` in('kanban' , 'calendar' , 'grid' , 'tree' , 'dashboard')), `sorts` json NULL, `kanban_field_id` text NULL, `calendar_field_id` text NULL, `tree_field_id` text NULL, `filter` json NULL, `field_options` json NULL, `fields_order` text NULL, `pinned_fields` json NULL, `row_height` text NULL CHECK (`row_height` in('short' , 'medium' , 'tall')), CONSTRAINT `undb_view_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `undb_table` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY (`id`)); +INSERT INTO undb_view VALUES('viwnxi5l3qi',1684577267431,1684673367674,NULL,'tbl4undb0lh','Deal Tracker',0,'grid',NULL,'fld4sf2mdr8','fldjyupbqlm',NULL,NULL,NULL,'fldopx87187,fld7m4e9dbz,fld4sf2mdr8,fld7vd9ir75,fldx5w2pcft,fld8ql20jlm,fldxq7kp4eu,fldtefbcm18,fld5vld4clt,fldghc0rw09,fldjyupbqlm,fld0f8xaf8q,fldqpn61v8h,fld2u4gkap9','{"left":["fld7m4e9dbz"],"right":[]}','short'); +INSERT INTO undb_view VALUES('viw1f88x075',1684577324094,1684599542886,NULL,'tblramxgp7z','Contacts',0,'grid',NULL,NULL,NULL,NULL,NULL,NULL,'flderd3a3rc,fldel2i4v7v,fldconkpc7g,fld7smzf5np,fldelspnzaq,fldpkr0phjz,fldmz9qd18u,fldcamelfi7,fld7a5vkk4j,fldqojjbrau,fldpq4mvj6c,fldtgvzjaoj,fldgbowxfbc','{"left":["fldel2i4v7v"],"right":[]}','short'); +INSERT INTO undb_view VALUES('viw70p8od12',1684597096588,1684599441818,NULL,'tblwqjcq0x8','Company',0,'grid',NULL,NULL,NULL,NULL,NULL,NULL,'fldzfu3x1ft,fldo4mvc3bq,fldozbddvfk,fldapuzxp1y,fldurfpiosy,fld2mh42tvf,fldrjp6v8xl,fldlosp8skm,fldamnv8ghw',NULL,'short'); +INSERT INTO undb_view VALUES('viw9p12yoag',1684599288325,1684599288325,NULL,'tbl4ezqb49a','Title',0,'grid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'short'); +INSERT INTO undb_view VALUES('viw3qge14qx',1684655636183,1684673381078,NULL,'tbl2za35hbg','Employee onboarding',0,'grid',NULL,'fldr3t33atc','fldui7hrx2t',NULL,NULL,NULL,'fldo6wz3szd,fldskwotpjg,fldr3t33atc,fldd55dsm2m,fldxx0cyu8w,fldqjxpupfu,fld19njyj50,fld67w65koz,fld92yn7hcf,fldyxr4fgcj,fld52ryjekr,fldwbr3sb09,fldfpeufgq3,fldui7hrx2t,fld38j2aoqw,fldmjxybwnt,fldntjvterl,fldu3ll00ho,fldy60tdkfr,fld4a04leij,fldng2e0uhl,fldkd8gvemb,fld5pgga2xx','{"left":["fldskwotpjg"],"right":[]}','short'); +INSERT INTO undb_view VALUES('viw2j74tv49',1684655754437,1684655754437,NULL,'tblruubokdc','Employees',0,'grid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'short'); +CREATE TABLE `tbl4undb0lh` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fld7m4e9dbz` varchar(255), `fld4sf2mdr8` varchar(255), `fldghc0rw09` varchar(255), `fldjyupbqlm_from` datetime, `fldjyupbqlm_to` datetime, `fld0f8xaf8q` float, `fldqpn61v8h` datetime, `fld2u4gkap9` datetime); +INSERT INTO tbl4undb0lh VALUES(1,'recf03f2mz9','2023-05-20 16:07:55','usrzvhv8srb','2023-05-20 16:21:29','usrzvhv8srb',NULL,NULL,'Deal Name 1','optapz93','opty4o0z','2023-05-17T00:00:00.000Z','2023-06-30T00:00:00.000Z',10000.0,NULL,'2023-05-17T00:00:00.000Z'); +INSERT INTO tbl4undb0lh VALUES(2,'recjpd9hcvj','2023-05-20 16:21:05','usrzvhv8srb','2023-05-20 16:21:05','usrzvhv8srb',NULL,NULL,'Deal Name 2','opts4t4w','optua38g','2023-05-04T00:00:00.000Z','2023-07-27T00:00:00.000Z',26000.0,NULL,'2023-05-04T00:00:00.000Z'); +INSERT INTO tbl4undb0lh VALUES(3,'rec1mp03meb','2023-05-20 16:22:31','usrzvhv8srb','2023-05-20 16:22:31','usrzvhv8srb',NULL,NULL,'Deal Name 3','optdczmv','opt68d8z','2023-01-06T00:00:00.000Z','2023-05-12T00:00:00.000Z',37000.0,'2023-05-12T00:00:00.000Z','2023-01-06T00:00:00.000Z'); +INSERT INTO tbl4undb0lh VALUES(4,'rec4cxfpnno','2023-05-20 16:23:26','usrzvhv8srb','2023-05-20 16:23:44','usrzvhv8srb',NULL,NULL,'Deal Name 4','optuo8m1','optua38g','2023-05-30T00:00:00.000Z','2024-01-31T00:00:00.000Z',100000.0,NULL,'2023-05-19T00:00:00.000Z'); +CREATE TABLE `fldtefbcm18_collaborator` (`user_id` varchar(255) not null, `record_id` varchar(255) not null, foreign key(`user_id`) references `undb_user`(`id`), foreign key(`record_id`) references `tbl4undb0lh`(`id`), primary key (`record_id`, `user_id`)); +CREATE TABLE `tblramxgp7z` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fldel2i4v7v` varchar(255), `fldcamelfi7` varchar(255), `fldqojjbrau` varchar(255), `fldovc5s8pe` varchar(255), `fldpq4mvj6c` varchar(255), `fldgbowxfbc` varchar(255)); +INSERT INTO tblramxgp7z VALUES(1,'recqymnue1f','2023-05-20 16:09:42','usrzvhv8srb','2023-05-20 16:27:29','usrzvhv8srb',NULL,NULL,'Ambrose','opt88amk','Ambrose@email.com',NULL,'18765679998',''); +INSERT INTO tblramxgp7z VALUES(2,'recth047g3f','2023-05-20 16:09:53','usrzvhv8srb','2023-05-20 16:28:16','usrzvhv8srb',NULL,NULL,'Vincent','opt0ucwc','Vincent@email.com',NULL,'13987467822',''); +INSERT INTO tblramxgp7z VALUES(3,'rechywfw24h','2023-05-20 16:10:05','usrzvhv8srb','2023-05-20 17:16:34','usrzvhv8srb',NULL,NULL,'James','optqutxq','James@email.com',NULL,'17866547899',''); +INSERT INTO tblramxgp7z VALUES(4,'recqjdtn4wj','2023-05-20 16:10:31','usrzvhv8srb','2023-05-20 17:17:35','usrzvhv8srb',NULL,NULL,'Bertran','opt88amk','Bertran@email.com',NULL,'13336457899',''); +CREATE TABLE `fld5vld4clt_tblramxgp7z_adjacency_list` (`to_id` varchar(255) not null, `from_id` varchar(255) not null, foreign key(`to_id`) references `tblramxgp7z`(`id`), foreign key(`from_id`) references `tbl4undb0lh`(`id`), primary key (`to_id`, `from_id`)); +INSERT INTO fld5vld4clt_tblramxgp7z_adjacency_list VALUES('recqymnue1f','recf03f2mz9'); +INSERT INTO fld5vld4clt_tblramxgp7z_adjacency_list VALUES('recth047g3f','recjpd9hcvj'); +INSERT INTO fld5vld4clt_tblramxgp7z_adjacency_list VALUES('rechywfw24h','rec1mp03meb'); +INSERT INTO fld5vld4clt_tblramxgp7z_adjacency_list VALUES('recqjdtn4wj','rec4cxfpnno'); +CREATE TABLE `tblwqjcq0x8` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fldo4mvc3bq` varchar(255), `fldrlmpebtz` varchar(255), `fldamnv8ghw` varchar(255)); +INSERT INTO tblwqjcq0x8 VALUES(1,'rec16l53qwc','2023-05-20 16:10:44','usrzvhv8srb','2023-05-20 16:25:06','usrzvhv8srb',NULL,NULL,'Company Name 1','CEO','CEO'); +INSERT INTO tblwqjcq0x8 VALUES(2,'recwth68evr','2023-05-20 16:11:03','usrzvhv8srb','2023-05-20 17:21:07','usrzvhv8srb',NULL,NULL,'Company Name 2','COO','COO'); +INSERT INTO tblwqjcq0x8 VALUES(3,'rec4gj4ju56','2023-05-20 16:13:45','usrzvhv8srb','2023-05-20 17:21:21','usrzvhv8srb',NULL,NULL,'Company Name 3','CPO','CPO'); +CREATE TABLE `fldtgvzjaoj_tblwqjcq0x8_adjacency_list` (`to_id` varchar(255) not null, `from_id` varchar(255) not null, foreign key(`to_id`) references `tblwqjcq0x8`(`id`), foreign key(`from_id`) references `tblramxgp7z`(`id`), primary key (`to_id`, `from_id`)); +INSERT INTO fldtgvzjaoj_tblwqjcq0x8_adjacency_list VALUES('rec16l53qwc','recqymnue1f'); +INSERT INTO fldtgvzjaoj_tblwqjcq0x8_adjacency_list VALUES('recwth68evr','recth047g3f'); +INSERT INTO fldtgvzjaoj_tblwqjcq0x8_adjacency_list VALUES('rec4gj4ju56','rechywfw24h'); +INSERT INTO fldtgvzjaoj_tblwqjcq0x8_adjacency_list VALUES('rec4gj4ju56','recqjdtn4wj'); +CREATE TABLE `fld6pd0v553_tblwqjcq0x8_closure_table` (`child_id` varchar(255) not null, `parent_id` varchar(255) not null, `depth` integer not null default '0', foreign key(`child_id`) references `tblwqjcq0x8`(`id`) on delete CASCADE, foreign key(`parent_id`) references `tblwqjcq0x8`(`id`) on delete CASCADE, primary key (`child_id`, `parent_id`)); +INSERT INTO fld6pd0v553_tblwqjcq0x8_closure_table VALUES('rec16l53qwc','rec16l53qwc',0); +INSERT INTO fld6pd0v553_tblwqjcq0x8_closure_table VALUES('recwth68evr','recwth68evr',0); +CREATE TABLE `tbl4ezqb49a` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fldvpb5tbbc` varchar(255)); +INSERT INTO tbl4ezqb49a VALUES(1,'rec2qr07yes','2023-05-20 16:14:59','usrzvhv8srb','2023-05-20 16:14:59','usrzvhv8srb',NULL,NULL,'CEO'); +INSERT INTO tbl4ezqb49a VALUES(2,'rec65i96nud','2023-05-20 16:15:04','usrzvhv8srb','2023-05-20 16:15:04','usrzvhv8srb',NULL,NULL,'COO'); +INSERT INTO tbl4ezqb49a VALUES(3,'reca1g9gntv','2023-05-20 16:15:12','usrzvhv8srb','2023-05-20 16:15:12','usrzvhv8srb',NULL,NULL,'CFO'); +INSERT INTO tbl4ezqb49a VALUES(4,'rec6vxgt0pa','2023-05-20 16:15:17','usrzvhv8srb','2023-05-20 16:15:17','usrzvhv8srb',NULL,NULL,'CPO'); +CREATE TABLE `fldlosp8skm_tbl4ezqb49a_adjacency_list` (`to_id` varchar(255) not null, `from_id` varchar(255) not null, foreign key(`to_id`) references `tbl4ezqb49a`(`id`), foreign key(`from_id`) references `tblwqjcq0x8`(`id`), primary key (`to_id`, `from_id`)); +INSERT INTO fldlosp8skm_tbl4ezqb49a_adjacency_list VALUES('rec2qr07yes','rec16l53qwc'); +INSERT INTO fldlosp8skm_tbl4ezqb49a_adjacency_list VALUES('rec65i96nud','recwth68evr'); +INSERT INTO fldlosp8skm_tbl4ezqb49a_adjacency_list VALUES('rec6vxgt0pa','rec4gj4ju56'); +CREATE TABLE `tbl2za35hbg` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fldskwotpjg` varchar(255), `fldr3t33atc` varchar(255), `fldxx0cyu8w` varchar(255), `fldqjxpupfu` varchar(255), `fld19njyj50` varchar(255), `fld67w65koz` varchar(255), `fldui7hrx2t` datetime, `fld38j2aoqw` varchar(255), `fldmjxybwnt` varchar(255), `fldntjvterl` varchar(255), `fldu3ll00ho` varchar(255), `fldy60tdkfr` varchar(255), `fld4a04leij` varchar(255), `fldkd8gvemb` float, `fld5pgga2xx` float); +INSERT INTO tbl2za35hbg VALUES(1,'rec6tm3pudz','2023-05-21 08:57:05','usrzvhv8srb','2023-05-21 09:15:32','usrzvhv8srb',NULL,NULL,'Employee 1','optsgc8w','Employee1@email.com','18976548765','Product marketing','opt8h6fl','2023-07-01T00:00:00.000Z','opttmurc','optqqamc','opt27124','','optybpi2','optsij84',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(2,'rec4totdobf','2023-05-21 08:58:39','usrzvhv8srb','2023-05-21 09:15:25','usrzvhv8srb',NULL,NULL,'Employee 2','optsgc8w','Employee2@email.com','17887655643','Accountant','opt44dfp','2023-08-04T00:00:00.000Z','opttmurc','optqqamc','opt27124','','optybpi2','optsij84',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(3,'reclt43wagf','2023-05-21 08:58:57','usrzvhv8srb','2023-05-21 09:01:59','usrzvhv8srb',NULL,NULL,'Employee 3','opt8ef1v','Employee3@email.com','18765983622','Customer support','opts4ao9','2023-04-12T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optybpi2','optsij84',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(4,'recbgbz1xcz','2023-05-21 08:59:02','usrzvhv8srb','2023-05-21 09:03:39','usrzvhv8srb',NULL,NULL,'Employee 4','optgin1z','Employee4@email.com','19090909876','Accountant','opt44dfp','2023-04-01T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optybpi2','optsij84',3.0,5.0); +INSERT INTO tbl2za35hbg VALUES(5,'rec6zbygjkn','2023-05-21 08:59:07','usrzvhv8srb','2023-05-21 09:05:13','usrzvhv8srb',NULL,NULL,'Employee 5','opt8ef1v','Employee5@email.com','18790654342','Product marketing','opt8h6fl','2023-05-22T00:00:00.000Z','opt4lu2m','optlhx0u','opt27124','','optap9r0','optsij84',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(6,'rec7qr912bx','2023-05-21 08:59:12','usrzvhv8srb','2023-05-21 09:06:43','usrzvhv8srb',NULL,NULL,'Employee 6','optjsdp6','employee6@email.com','15647872653','Product marketing','opt8h6fl','2023-05-15T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optz8twl','optukskn',0.0,2.0); +INSERT INTO tbl2za35hbg VALUES(7,'recv2huajbe','2023-05-21 08:59:17','usrzvhv8srb','2023-05-21 09:08:24','usrzvhv8srb',NULL,NULL,'Employee 7','optsgc8w','employee7@email.com','','Software developer','optjehd9','2023-05-31T00:00:00.000Z','opttmurc','optqqamc','opt6moby','','optybpi2','optsij84',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(8,'recus5nov9q','2023-05-21 08:59:22','usrzvhv8srb','2023-05-21 09:09:32','usrzvhv8srb',NULL,NULL,'Employee 8','optgin1z','employee8@email.com','19823456786','UI ','optpg4ya','2023-04-10T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optzq9lr',0.0,0.0); +INSERT INTO tbl2za35hbg VALUES(9,'rechqk7yzm5','2023-05-21 08:59:28','usrzvhv8srb','2023-05-21 09:10:58','usrzvhv8srb',NULL,NULL,'Employee 9','optlottl','employee9@email.com','12345436765','CTO','opt0g9hh','2023-03-15T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',5.0,5.0); +INSERT INTO tbl2za35hbg VALUES(10,'rec794hljl2','2023-05-21 08:59:40','usrzvhv8srb','2023-05-21 09:12:10','usrzvhv8srb',NULL,NULL,'Employee 10','optlottl','employee9@email.com','19654372655','CPO','opt0g9hh','2023-02-22T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',2.0,2.0); +INSERT INTO tbl2za35hbg VALUES(11,'rec8rft252j','2023-05-21 08:59:45','usrzvhv8srb','2023-05-21 09:13:46','usrzvhv8srb',NULL,NULL,'Employee 11','optlottl','employee11@email.com','15467678989','frontend developer','optjehd9','2022-12-08T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',4.0,2.0); +INSERT INTO tbl2za35hbg VALUES(12,'rec6fc5uqah','2023-05-21 08:59:52','usrzvhv8srb','2023-05-21 09:14:56','usrzvhv8srb',NULL,NULL,'Employee 12','optsgc8w','employee12@email.com','12345678976','UX','optpg4ya','2023-05-23T00:00:00.000Z','optks9w7','opt4ra5l','opt6moby','','optybpi2','optsij84',3.0,5.0); +INSERT INTO tbl2za35hbg VALUES(13,'rech888ljz8','2023-05-21 08:59:57','usrzvhv8srb','2023-05-21 09:16:42','usrzvhv8srb',NULL,NULL,'Employee 13','optlottl','Employee13@email.com','16666666666','Security','optk8vx1','2021-06-15T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',3.0,1.0); +INSERT INTO tbl2za35hbg VALUES(14,'rec7hkzhrq6','2023-05-21 09:00:03','usrzvhv8srb','2023-05-21 09:17:48','usrzvhv8srb',NULL,NULL,'Employee 14','opt8ef1v','Employee14@email.com','15555555555','Backend developer','optjehd9','2023-05-19T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optz8twl','optukskn',5.0,5.0); +INSERT INTO tbl2za35hbg VALUES(15,'rec5w6qead5','2023-05-21 09:00:07','usrzvhv8srb','2023-05-21 09:20:45','usrzvhv8srb',NULL,NULL,'Employee 15','optjsdp6','Employee15@email.com','17777777777','Sales','optrhqo9','2023-05-12T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optz8twl','optukskn',3.0,5.0); +INSERT INTO tbl2za35hbg VALUES(16,'rechsnajzjc','2023-05-21 09:00:17','usrzvhv8srb','2023-05-21 09:21:45','usrzvhv8srb',NULL,NULL,'Employee 16','optgin1z','Employee16@email.com','16677778888','IOS','optuieaz','2023-04-06T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',3.0,5.0); +INSERT INTO tbl2za35hbg VALUES(17,'recy6sdnb04','2023-05-21 09:00:23','usrzvhv8srb','2023-05-21 09:22:36','usrzvhv8srb',NULL,NULL,'Employee 17','optlottl','Employee17@email.com','15454546767','Sales','optrhqo9','2023-03-09T00:00:00.000Z','opt4lu2m','optlhx0u','opt0cxih','','optap9r0','optuqbtr',5.0,5.0); +CREATE TABLE `fldd55dsm2m_collaborator` (`user_id` varchar(255) not null, `record_id` varchar(255) not null, foreign key(`user_id`) references `undb_user`(`id`), foreign key(`record_id`) references `tbl2za35hbg`(`id`), primary key (`record_id`, `user_id`)); +CREATE TABLE `tblruubokdc` (`auto_increment` integer not null primary key autoincrement, `id` varchar(255) not null, `created_at` datetime not null default CURRENT_TIMESTAMP, `created_by` varchar(255) not null, `updated_at` datetime not null default CURRENT_TIMESTAMP, `updated_by` varchar(255) not null, `deleted_at` datetime null, `deleted_by` varchar(255), `fldhrrqqlqh` varchar(255), `fld0gmmj29q` varchar(255)); +INSERT INTO tblruubokdc VALUES(1,'recm1kabi9l','2023-05-21 08:54:22','usrzvhv8srb','2023-05-21 08:54:22','usrzvhv8srb',NULL,NULL,'Vincent','manager 1'); +INSERT INTO tblruubokdc VALUES(2,'recjh3moqxr','2023-05-21 08:54:46','usrzvhv8srb','2023-05-21 08:54:46','usrzvhv8srb',NULL,NULL,'Jason','manager 2'); +CREATE TABLE `fldfpeufgq3_tblruubokdc_adjacency_list` (`to_id` varchar(255) not null, `from_id` varchar(255) not null, foreign key(`to_id`) references `tblruubokdc`(`id`), foreign key(`from_id`) references `tbl2za35hbg`(`id`), primary key (`to_id`, `from_id`)); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec6tm3pudz'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recjh3moqxr','rec4totdobf'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recjh3moqxr','recbgbz1xcz'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec6zbygjkn'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec7qr912bx'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','recv2huajbe'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','recus5nov9q'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recjh3moqxr','rechqk7yzm5'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec8rft252j'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recjh3moqxr','rec6fc5uqah'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recjh3moqxr','rech888ljz8'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec7hkzhrq6'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rec5w6qead5'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','rechsnajzjc'); +INSERT INTO fldfpeufgq3_tblruubokdc_adjacency_list VALUES('recm1kabi9l','recy6sdnb04'); +CREATE TABLE `fldng2e0uhl_collaborator` (`user_id` varchar(255) not null, `record_id` varchar(255) not null, foreign key(`user_id`) references `undb_user`(`id`), foreign key(`record_id`) references `tbl2za35hbg`(`id`), primary key (`record_id`, `user_id`)); +DELETE FROM sqlite_sequence; +INSERT INTO sqlite_sequence VALUES('mikro_orm_migrations',4); +INSERT INTO sqlite_sequence VALUES('tbl4undb0lh',4); +INSERT INTO sqlite_sequence VALUES('tblramxgp7z',4); +INSERT INTO sqlite_sequence VALUES('tblwqjcq0x8',3); +INSERT INTO sqlite_sequence VALUES('tbl4ezqb49a',4); +INSERT INTO sqlite_sequence VALUES('tblruubokdc',2); +INSERT INTO sqlite_sequence VALUES('tbl2za35hbg',17); +CREATE INDEX `undb_table_deleted_at_index` on `undb_table` (`deleted_at`); +CREATE INDEX `undb_field_deleted_at_index` on `undb_field` (`deleted_at`); +CREATE INDEX `undb_field_table_id_index` on `undb_field` (`table_id`); +CREATE INDEX `undb_field_type_index` on `undb_field` (`type`); +CREATE INDEX `undb_field_foreign_table_id_index` on `undb_field` (`foreign_table_id`); +CREATE UNIQUE INDEX `undb_field_symmetric_reference_field_id_unique` on `undb_field` (`symmetric_reference_field_id`); +CREATE INDEX `undb_field_count_reference_field_id_index` on `undb_field` (`count_reference_field_id`); +CREATE INDEX `undb_field_lookup_reference_field_id_index` on `undb_field` (`lookup_reference_field_id`); +CREATE INDEX `undb_field_sum_reference_field_id_index` on `undb_field` (`sum_reference_field_id`); +CREATE INDEX `undb_field_sum_aggregate_field_id_index` on `undb_field` (`sum_aggregate_field_id`); +CREATE INDEX `undb_field_average_reference_field_id_index` on `undb_field` (`average_reference_field_id`); +CREATE INDEX `undb_field_average_aggregate_field_id_index` on `undb_field` (`average_aggregate_field_id`); +CREATE INDEX `undb_option_deleted_at_index` on `undb_option` (`deleted_at`); +CREATE INDEX `undb_option_field_id_index` on `undb_option` (`field_id`); +CREATE INDEX `undb_attachment_deleted_at_index` on `undb_attachment` (`deleted_at`); +CREATE INDEX `undb_attachment_table_id_index` on `undb_attachment` (`table_id`); +CREATE INDEX `undb_attachment_mime_type_index` on `undb_attachment` (`mime_type`); +CREATE INDEX `undb_attachment_name_index` on `undb_attachment` (`name`); +CREATE INDEX `undb_attachment_size_index` on `undb_attachment` (`size`); +CREATE INDEX `undb_attachment_extension_index` on `undb_attachment` (`extension`); +CREATE INDEX `undb_field_display_fields_field_1_id_index` on `undb_field_display_fields` (`field_1_id`); +CREATE INDEX `undb_field_display_fields_field_2_id_index` on `undb_field_display_fields` (`field_2_id`); +CREATE INDEX `undb_user_deleted_at_index` on `undb_user` (`deleted_at`); +CREATE INDEX `undb_user_username_index` on `undb_user` (`username`); +CREATE INDEX `undb_user_email_index` on `undb_user` (`email`); +CREATE UNIQUE INDEX `undb_user_email_unique` on `undb_user` (`email`); +CREATE INDEX `undb_virsualization_deleted_at_index` on `undb_virsualization` (`deleted_at`); +CREATE INDEX `undb_virsualization_type_index` on `undb_virsualization` (`type`); +CREATE INDEX `undb_virsualization_table_id_index` on `undb_virsualization` (`table_id`); +CREATE INDEX `undb_widge_deleted_at_index` on `undb_widge` (`deleted_at`); +CREATE INDEX `undb_widge_view_id_index` on `undb_widge` (`view_id`); +CREATE UNIQUE INDEX `undb_widge_virsualization_id_unique` on `undb_widge` (`virsualization_id`); +CREATE INDEX `undb_view_deleted_at_index` on `undb_view` (`deleted_at`); +CREATE INDEX `undb_view_table_id_index` on `undb_view` (`table_id`); +CREATE TRIGGER update_at_update_tbl4undb0lh AFTER UPDATE ON `tbl4undb0lh` + BEGIN + update `tbl4undb0lh` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tbl4undb0lh_id_unique` on `tbl4undb0lh` (`id`) + ; +CREATE TRIGGER update_at_update_tblramxgp7z AFTER UPDATE ON `tblramxgp7z` + BEGIN + update `tblramxgp7z` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tblramxgp7z_id_unique` on `tblramxgp7z` (`id`) + ; +CREATE TRIGGER update_at_update_tblwqjcq0x8 AFTER UPDATE ON `tblwqjcq0x8` + BEGIN + update `tblwqjcq0x8` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tblwqjcq0x8_id_unique` on `tblwqjcq0x8` (`id`) + ; +CREATE INDEX `fld6pd0v553_tblwqjcq0x8_closure_table_depth_index` on `fld6pd0v553_tblwqjcq0x8_closure_table` (`depth`) + ; +CREATE TRIGGER update_at_update_tbl4ezqb49a AFTER UPDATE ON `tbl4ezqb49a` + BEGIN + update `tbl4ezqb49a` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tbl4ezqb49a_id_unique` on `tbl4ezqb49a` (`id`) + ; +CREATE TRIGGER update_at_update_tbl2za35hbg AFTER UPDATE ON `tbl2za35hbg` + BEGIN + update `tbl2za35hbg` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tbl2za35hbg_id_unique` on `tbl2za35hbg` (`id`) + ; +CREATE TRIGGER update_at_update_tblruubokdc AFTER UPDATE ON `tblruubokdc` + BEGIN + update `tblruubokdc` SET updated_at = datetime('now') WHERE id = NEW.id; + END; +CREATE UNIQUE INDEX `tblruubokdc_id_unique` on `tblruubokdc` (`id`) + ; +COMMIT; diff --git a/render.yaml b/render.yaml index ce99ddcf6..997aa9aa4 100644 --- a/render.yaml +++ b/render.yaml @@ -19,5 +19,7 @@ services: value: 'true' - key: PUBLIC_UNDB_ANALYTICS_DOMAIN value: demo.undb.xyz + - key: UNDB_SEED + value: true domains: - demo.undb.xyz From 91ee1d4a7ebe1e4da30256df5564faf3b5f2f93b Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sun, 21 May 2023 21:08:44 +0800 Subject: [PATCH 17/18] fix(docker): fix docker arg --- Dockerfile | 2 ++ apps/backend/src/app.module.ts | 4 +--- render.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19123b800..f2e1c394a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN pnpm install -r --offline ARG PUBLIC_UNDB_ANALYTICS_DOMAIN ARG PUBLIC_UNDB_ADMIN_EMAIL ARG PUBLIC_UNDB_ADMIN_PASSWORD +ARG UNDB_SEED ENV NODE_ENV production RUN pnpm run build --filter=backend --filter=frontend @@ -52,6 +53,7 @@ COPY --from=installer /undb/apps/backend ./apps/backend COPY --from=installer /undb/apps/frontend/build ./out COPY --from=builder /usr/local/bin/litestream /usr/local/bin/litestream COPY scripts/start.mjs ./scripts/start.mjs +COPY data/data.sql /data/data.sql COPY litestream/etc/litestream.yml /etc/litestream.yml diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index 1a87991f4..d2c1056dd 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -6,7 +6,6 @@ import type { ConfigType } from '@nestjs/config' import { ServeStaticModule } from '@nestjs/serve-static' import { EntityManager, createConfig } from '@undb/sqlite' import { Request } from 'express' -import { existsSync } from 'fs' import { ClsModule } from 'nestjs-cls' import { LoggerModule } from 'nestjs-pino' import path from 'path' @@ -65,8 +64,7 @@ export class AppModule implements OnModuleInit { async onModuleInit() { const em = this.orm.em as EntityManager - const data = path.join(this.config.data!, 'undb.db') - if (this.config.seed && !existsSync(data)) { + if (this.config.seed) { await em.getConnection().loadFile(path.resolve(process.cwd(), '../../data/data.sql')).catch(console.error) } else { await this.orm.getMigrator().up() diff --git a/render.yaml b/render.yaml index 997aa9aa4..1d79c4e6a 100644 --- a/render.yaml +++ b/render.yaml @@ -20,6 +20,6 @@ services: - key: PUBLIC_UNDB_ANALYTICS_DOMAIN value: demo.undb.xyz - key: UNDB_SEED - value: true + value: 'true' domains: - demo.undb.xyz From fe53fa9612ebbc2fbed6aa283fabbab94666ad3f Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Sun, 21 May 2023 14:21:56 +0000 Subject: [PATCH 18/18] Prepare release v0.4.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4895957a9..3f31d48e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "undb", - "version": "0.4.3", + "version": "0.4.5", "devDependencies": { "@commitlint/cli": "^17.6.3", "@commitlint/config-conventional": "^17.6.3",