From 1516bb29b210c6a528b7db1bb883a38e2d843506 Mon Sep 17 00:00:00 2001 From: pranavxc Date: Fri, 23 Feb 2024 08:01:15 +0000 Subject: [PATCH 1/2] [create-pull-request] automated change Signed-off-by: GitHub --- packages/nc-gui/components.d.ts | 2 - packages/nc-gui/package.json | 2 +- packages/nc-lib-gui/package.json | 2 +- packages/nocodb-sdk/package.json | 4 +- packages/nocodb-sdk/pnpm-lock.yaml | 207 ++++++++++----------- packages/nocodb-sdk/src/lib/Api.ts | 284 ++++++++++++++++++++++++++++- packages/nocodb/package.json | 8 +- pnpm-lock.yaml | 12 +- 8 files changed, 401 insertions(+), 120 deletions(-) diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index cab4de9348..0b40fd5fd3 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -88,12 +88,10 @@ declare module 'vue' { MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] MaterialSymbolsChevronRightRounded: typeof import('~icons/material-symbols/chevron-right-rounded')['default'] MaterialSymbolsCloseRounded: typeof import('~icons/material-symbols/close-rounded')['default'] - MaterialSymbolsDarkModeOutline: typeof import('~icons/material-symbols/dark-mode-outline')['default'] MaterialSymbolsDeleteOutlineRounded: typeof import('~icons/material-symbols/delete-outline-rounded')['default'] MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default'] MaterialSymbolsKeyboardArrowDownRounded: typeof import('~icons/material-symbols/keyboard-arrow-down-rounded')['default'] MaterialSymbolsKeyboardReturn: typeof import('~icons/material-symbols/keyboard-return')['default'] - MaterialSymbolsLightModeOutline: typeof import('~icons/material-symbols/light-mode-outline')['default'] MaterialSymbolsLockOutline: typeof import('~icons/material-symbols/lock-outline')['default'] MaterialSymbolsPublic: typeof import('~icons/material-symbols/public')['default'] MaterialSymbolsRocketLaunchOutline: typeof import('~icons/material-symbols/rocket-launch-outline')['default'] diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json index a90bc96af6..05a64302d0 100644 --- a/packages/nc-gui/package.json +++ b/packages/nc-gui/package.json @@ -73,7 +73,7 @@ "marked": "^4.3.0", "monaco-editor": "^0.45.0", "monaco-sql-languages": "^0.11.0", - "nocodb-sdk": "workspace:^", + "nocodb-sdk": "0.204.1", "papaparse": "^5.4.1", "parse-github-url": "^1.0.2", "pinia": "^2.1.7", diff --git a/packages/nc-lib-gui/package.json b/packages/nc-lib-gui/package.json index 8e16cb2324..9cf08d9908 100644 --- a/packages/nc-lib-gui/package.json +++ b/packages/nc-lib-gui/package.json @@ -1,6 +1,6 @@ { "name": "nc-lib-gui", - "version": "0.204.0", + "version": "0.204.1", "description": "NocoDB GUI", "author": { "name": "NocoDB", diff --git a/packages/nocodb-sdk/package.json b/packages/nocodb-sdk/package.json index 2132294983..dd934148ae 100644 --- a/packages/nocodb-sdk/package.json +++ b/packages/nocodb-sdk/package.json @@ -1,6 +1,6 @@ { "name": "nocodb-sdk", - "version": "0.204.0", + "version": "0.204.1", "description": "NocoDB SDK", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -73,4 +73,4 @@ "prettier": { "singleQuote": true } -} +} \ No newline at end of file diff --git a/packages/nocodb-sdk/pnpm-lock.yaml b/packages/nocodb-sdk/pnpm-lock.yaml index ff8379d9ad..0d168d2a66 100644 --- a/packages/nocodb-sdk/pnpm-lock.yaml +++ b/packages/nocodb-sdk/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: axios: - specifier: ^1.6.5 - version: 1.6.5 + specifier: ^1.6.7 + version: 1.6.7 dayjs: specifier: ^1.11.10 version: 1.11.10 @@ -17,35 +17,35 @@ dependencies: devDependencies: '@types/jest': - specifier: ^29.5.11 - version: 29.5.11 + specifier: ^29.5.12 + version: 29.5.12 '@typescript-eslint/eslint-plugin': - specifier: ^6.14.0 - version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.54.0)(typescript@5.3.3) + specifier: ^6.20.0 + version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/parser': - specifier: ^6.14.0 - version: 6.14.0(eslint@8.54.0)(typescript@5.3.3) + specifier: ^6.20.0 + version: 6.21.0(eslint@8.56.0)(typescript@5.3.3) cspell: specifier: ^4.2.8 version: 4.2.8 eslint: - specifier: ^8.54.0 - version: 8.54.0 + specifier: ^8.56.0 + version: 8.56.0 eslint-config-prettier: specifier: ^8.10.0 - version: 8.10.0(eslint@8.54.0) + version: 8.10.0(eslint@8.56.0) eslint-plugin-eslint-comments: specifier: ^3.2.0 - version: 3.2.0(eslint@8.54.0) + version: 3.2.0(eslint@8.56.0) eslint-plugin-functional: specifier: ^5.0.8 - version: 5.0.8(eslint@8.54.0)(typescript@5.3.3) + version: 5.0.8(eslint@8.56.0)(typescript@5.3.3) eslint-plugin-import: specifier: ^2.29.1 - version: 2.29.1(@typescript-eslint/parser@6.14.0)(eslint@8.54.0) + version: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.56.0) eslint-plugin-prettier: specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.10.0)(eslint@8.54.0)(prettier@2.8.8) + version: 4.2.1(eslint-config-prettier@8.10.0)(eslint@8.56.0)(prettier@2.8.8) npm-run-all: specifier: ^4.1.5 version: 4.1.5 @@ -56,8 +56,8 @@ devDependencies: specifier: ^5.0.5 version: 5.0.5 ts-jest: - specifier: ^29.1.1 - version: 29.1.1(@babel/core@7.23.6)(jest@29.7.0)(typescript@5.3.3) + specifier: ^29.1.2 + version: 29.1.2(@babel/core@7.23.6)(jest@29.7.0)(typescript@5.3.3) tsc-alias: specifier: ^1.8.8 version: 1.8.8 @@ -541,13 +541,13 @@ packages: resolution: {integrity: sha512-yIuGeeZtQA2gqpGefGjZqBl8iGJpIYWz0QzDqsscNi2qfSnLsbjM0RkRbTehM8y9gGGe7xfgUP5adxceJa5Krg==} dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.54.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.56.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.54.0 + eslint: 8.56.0 eslint-visitor-keys: 3.4.3 dev: true @@ -556,8 +556,8 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.1.3: - resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==} + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 @@ -573,8 +573,8 @@ packages: - supports-color dev: true - /@eslint/js@8.54.0: - resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==} + /@eslint/js@8.56.0: + resolution: {integrity: sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -965,8 +965,8 @@ packages: '@types/istanbul-lib-report': 3.0.3 dev: true - /@types/jest@29.5.11: - resolution: {integrity: sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==} + /@types/jest@29.5.12: + resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} dependencies: expect: 29.7.0 pretty-format: 29.7.0 @@ -1004,8 +1004,8 @@ packages: '@types/yargs-parser': 21.0.3 dev: true - /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.54.0)(typescript@5.3.3): - resolution: {integrity: sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==} + /@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1016,13 +1016,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.14.0(eslint@8.54.0)(typescript@5.3.3) - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/type-utils': 6.14.0(eslint@8.54.0)(typescript@5.3.3) - '@typescript-eslint/utils': 6.14.0(eslint@8.54.0)(typescript@5.3.3) - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/scope-manager': 6.21.0 + '@typescript-eslint/type-utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 - eslint: 8.54.0 + eslint: 8.56.0 graphemer: 1.4.0 ignore: 5.3.0 natural-compare: 1.4.0 @@ -1033,8 +1033,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.14.0(eslint@8.54.0)(typescript@5.3.3): - resolution: {integrity: sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==} + /@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1043,12 +1043,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/scope-manager': 6.21.0 + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 - eslint: 8.54.0 + eslint: 8.56.0 typescript: 5.3.3 transitivePeerDependencies: - supports-color @@ -1062,15 +1062,15 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.14.0: - resolution: {integrity: sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==} + /@typescript-eslint/scope-manager@6.21.0: + resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/visitor-keys': 6.21.0 dev: true - /@typescript-eslint/type-utils@5.62.0(eslint@8.54.0)(typescript@5.3.3): + /@typescript-eslint/type-utils@5.62.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1081,17 +1081,17 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.3.3) - '@typescript-eslint/utils': 5.62.0(eslint@8.54.0)(typescript@5.3.3) + '@typescript-eslint/utils': 5.62.0(eslint@8.56.0)(typescript@5.3.3) debug: 4.3.4 - eslint: 8.54.0 + eslint: 8.56.0 tsutils: 3.21.0(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/type-utils@6.14.0(eslint@8.54.0)(typescript@5.3.3): - resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} + /@typescript-eslint/type-utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1100,10 +1100,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) - '@typescript-eslint/utils': 6.14.0(eslint@8.54.0)(typescript@5.3.3) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) debug: 4.3.4 - eslint: 8.54.0 + eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: @@ -1115,8 +1115,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.14.0: - resolution: {integrity: sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==} + /@typescript-eslint/types@6.21.0: + resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1141,8 +1141,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.14.0(typescript@5.3.3): - resolution: {integrity: sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==} + /@typescript-eslint/typescript-estree@6.21.0(typescript@5.3.3): + resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1150,11 +1150,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 + minimatch: 9.0.3 semver: 7.5.4 ts-api-utils: 1.0.3(typescript@5.3.3) typescript: 5.3.3 @@ -1162,19 +1163,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.62.0(eslint@8.54.0)(typescript@5.3.3): + /@typescript-eslint/utils@5.62.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} 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.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.3.3) - eslint: 8.54.0 + eslint: 8.56.0 eslint-scope: 5.1.1 semver: 7.5.4 transitivePeerDependencies: @@ -1182,19 +1183,19 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.14.0(eslint@8.54.0)(typescript@5.3.3): - resolution: {integrity: sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==} + /@typescript-eslint/utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) - eslint: 8.54.0 + '@typescript-eslint/scope-manager': 6.21.0 + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -1209,11 +1210,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.14.0: - resolution: {integrity: sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==} + /@typescript-eslint/visitor-keys@6.21.0: + resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/types': 6.21.0 eslint-visitor-keys: 3.4.3 dev: true @@ -1388,8 +1389,8 @@ packages: engines: {node: '>= 0.4'} dev: true - /axios@1.6.5: - resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==} + /axios@1.6.7: + resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==} dependencies: follow-redirects: 1.15.4 form-data: 4.0.0 @@ -2056,13 +2057,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@8.10.0(eslint@8.54.0): + /eslint-config-prettier@8.10.0(eslint@8.56.0): resolution: {integrity: sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.54.0 + eslint: 8.56.0 dev: true /eslint-import-resolver-node@0.3.9: @@ -2075,7 +2076,7 @@ packages: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.14.0)(eslint-import-resolver-node@0.3.9)(eslint@8.54.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -2096,26 +2097,26 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.14.0(eslint@8.54.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.3.3) debug: 3.2.7 - eslint: 8.54.0 + eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-eslint-comments@3.2.0(eslint@8.54.0): + /eslint-plugin-eslint-comments@3.2.0(eslint@8.56.0): resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==} engines: {node: '>=6.5.0'} peerDependencies: eslint: '>=4.19.1' dependencies: escape-string-regexp: 1.0.5 - eslint: 8.54.0 + eslint: 8.56.0 ignore: 5.3.0 dev: true - /eslint-plugin-functional@5.0.8(eslint@8.54.0)(typescript@5.3.3): + /eslint-plugin-functional@5.0.8(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-rXC5THzqqSXUrbTBG+dLLYn10Af0C9Df+N4TT3onPrOz+kgInshLJdRAvEcV+8HHNsZyDrNLcgWh5jzVaAnleQ==} engines: {node: '>=16.10.0'} peerDependencies: @@ -2125,19 +2126,19 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/type-utils': 5.62.0(eslint@8.54.0)(typescript@5.3.3) - '@typescript-eslint/utils': 5.62.0(eslint@8.54.0)(typescript@5.3.3) + '@typescript-eslint/type-utils': 5.62.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 5.62.0(eslint@8.56.0)(typescript@5.3.3) deepmerge-ts: 5.1.0 escape-string-regexp: 4.0.0 - eslint: 8.54.0 - is-immutable-type: 1.2.9(eslint@8.54.0)(typescript@5.3.3) + eslint: 8.56.0 + is-immutable-type: 1.2.9(eslint@8.56.0)(typescript@5.3.3) semver: 7.5.4 typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.14.0)(eslint@8.54.0): + /eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.56.0): resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==} engines: {node: '>=4'} peerDependencies: @@ -2147,16 +2148,16 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.14.0(eslint@8.54.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.3.3) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 array.prototype.flatmap: 1.3.2 debug: 3.2.7 doctrine: 2.1.0 - eslint: 8.54.0 + eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.14.0)(eslint-import-resolver-node@0.3.9)(eslint@8.54.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0) hasown: 2.0.0 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -2172,7 +2173,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.10.0)(eslint@8.54.0)(prettier@2.8.8): + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.10.0)(eslint@8.56.0)(prettier@2.8.8): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2183,8 +2184,8 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.54.0 - eslint-config-prettier: 8.10.0(eslint@8.54.0) + eslint: 8.56.0 + eslint-config-prettier: 8.10.0(eslint@8.56.0) prettier: 2.8.8 prettier-linter-helpers: 1.0.0 dev: true @@ -2210,15 +2211,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.54.0: - resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} + /eslint@8.56.0: + resolution: {integrity: sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint-community/regexpp': 4.10.0 - '@eslint/eslintrc': 2.1.3 - '@eslint/js': 8.54.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.56.0 '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -2816,14 +2817,14 @@ packages: is-extglob: 2.1.1 dev: true - /is-immutable-type@1.2.9(eslint@8.54.0)(typescript@5.3.3): + /is-immutable-type@1.2.9(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-DDx04RjLpGNT4vtF49vGW5CECP6lAx8SL2keq99ogIxwLvJPBvgThdhb43ED5uYO4nq0kZ51tMj7VdCCQgdZ5Q==} peerDependencies: eslint: '*' typescript: '>=4.7.4' dependencies: - '@typescript-eslint/type-utils': 5.62.0(eslint@8.54.0)(typescript@5.3.3) - eslint: 8.54.0 + '@typescript-eslint/type-utils': 5.62.0(eslint@8.56.0)(typescript@5.3.3) + eslint: 8.56.0 typescript: 5.3.3 transitivePeerDependencies: - supports-color @@ -4385,9 +4386,9 @@ packages: typescript: 5.3.3 dev: true - /ts-jest@29.1.1(@babel/core@7.23.6)(jest@29.7.0)(typescript@5.3.3): - resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /ts-jest@29.1.2(@babel/core@7.23.6)(jest@29.7.0)(typescript@5.3.3): + resolution: {integrity: sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==} + engines: {node: ^16.10.0 || ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@babel/core': '>=7.0.0-beta.0 <8' diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 4c3a7b9561..c96dd082f8 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -1509,6 +1509,92 @@ export interface KanbanUpdateReqType { meta?: MetaType; } +/** + * Model for Calendar + */ +export interface CalendarType { + /** Unique ID */ + id?: IdType; + /** View ID */ + fk_view_id?: IdType; + /** Cover Image Column ID */ + fk_cover_image_col_id?: StringOrNullType; + /** Calendar Columns */ + columns?: CalendarColumnType[]; + /** Calendar Date Range */ + calendar_range?: CalendarRangeType[]; + /** Meta Info for Kanban */ + meta?: MetaType; + /** + * Kanban Title + * @example My Kanban + */ + title?: string; +} + +/** + * Model for Calendar Column + */ +export interface CalendarColumnType { + /** Unique ID */ + id?: IdType; + /** Foreign Key to Column */ + fk_column_id?: IdType; + /** Foreign Key to View */ + fk_view_id?: IdType; + /** + * Baes ID + * + */ + source_id?: IdType; + /** Base ID */ + base_id?: IdType; + /** Base ID */ + title?: string; + /** Is this column shown? */ + show?: BoolType; + /** Is this column shown as bold? */ + bold?: BoolType; + /** Is this column shown as italic? */ + italic?: BoolType; + /** Is this column shown underlines? */ + underline?: BoolType; + /** + * Column Order + * @example 1 + */ + order?: number; +} + +/** + * Model for Calendar Date Range + */ +export interface CalendarRangeType { + /** Foreign Key to Column */ + fk_from_column_id?: IdType; + /** Foreign Key to View */ + fk_view_id?: StringOrNullType; + /** Base ID */ + label?: string; +} + +/** + * Model for Calendar Update Request + */ +export interface CalendarUpdateReqType { + /** Foreign Key to Cover Image Column */ + fk_cover_image_col_id?: StringOrNullType; + /** + * Calendar Title + * @example Calendar 01 + */ + title?: string; + /** Calendar Columns */ + calendar_range?: CalendarRangeType[]; + /** Meta Info */ + meta?: MetaType; +} + /** * Model for Kanban Request */ @@ -2326,6 +2412,12 @@ export interface SortReqType { */ export type TextOrNullType = string | null; +/** + * Model for CalendarRangeOrNull + * @example [{"id":"kvc_2skkg5mi1eb37f","fk_from_column_id":"cl_hzos4ghyncqi4k","fk_to_column_id":"cl_hzos4ghyncqi4k","fk_view_id":"vw_wqs4zheuo5lgdy","label":"string"}] + */ +export type CalendarRangeOrNullType = null | CalendarRangeType[]; + /** * Model for StringOrNull */ @@ -2516,7 +2608,8 @@ export interface ViewType { | GridType | KanbanType | MapType - | (FormType & GalleryType & GridType & KanbanType & MapType); + | CalendarType + | (FormType & GalleryType & GridType & KanbanType & MapType & CalendarType); } /** @@ -2546,6 +2639,8 @@ export interface ViewCreateReqType { fk_grp_col_id?: StringOrNullType; /** Foreign Key to Geo Data Column. Used in creating Map View. */ fk_geo_data_col_id?: StringOrNullType; + /** Calendar Range or Null */ + calendar_range?: CalendarRangeOrNullType; } /** @@ -6818,6 +6913,102 @@ export class Api< format: 'json', ...params, }), + + /** + * @description Create a new Calendar View + * + * @tags DB View + * @name CalendarCreate + * @summary Create Calendar View + * @request POST:/api/v1/db/meta/tables/{tableId}/calendars + * @response `200` `ViewType` OK + * @response `400` `{ + \** @example BadRequest [Error]: *\ + msg: string, + +}` + */ + calendarCreate: ( + tableId: IdType, + data: ViewCreateReqType, + params: RequestParams = {} + ) => + this.request< + ViewType, + { + /** @example BadRequest [Error]: */ + msg: string; + } + >({ + path: `/api/v1/db/meta/tables/${tableId}/calendars`, + method: 'POST', + body: data, + type: ContentType.Json, + format: 'json', + ...params, + }), + + /** + * @description Update the Calendar View data with Calendar ID + * + * @tags DB View + * @name CalendarUpdate + * @summary Update Calendar View + * @request PATCH:/api/v1/db/meta/calendars/{calendarViewId} + * @response `200` `number` OK + * @response `400` `{ + \** @example BadRequest [Error]: *\ + msg: string, + +}` + */ + calendarUpdate: ( + calendarViewId: string, + data: CalendarUpdateReqType, + params: RequestParams = {} + ) => + this.request< + number, + { + /** @example BadRequest [Error]: */ + msg: string; + } + >({ + path: `/api/v1/db/meta/calendars/${calendarViewId}`, + method: 'PATCH', + body: data, + type: ContentType.Json, + format: 'json', + ...params, + }), + + /** + * @description Get the Calendar View data by Calendar ID + * + * @tags DB View + * @name CalendarRead + * @summary Get Calendar View + * @request GET:/api/v1/db/meta/calendars/{calendarViewId} + * @response `200` `CalendarType` OK + * @response `400` `{ + \** @example BadRequest [Error]: *\ + msg: string, + +}` + */ + calendarRead: (calendarViewId: string, params: RequestParams = {}) => + this.request< + CalendarType, + { + /** @example BadRequest [Error]: */ + msg: string; + } + >({ + path: `/api/v1/db/meta/calendars/${calendarViewId}`, + method: 'GET', + format: 'json', + ...params, + }), }; dbViewShare = { /** @@ -8443,6 +8634,49 @@ export class Api< ...params, }), + /** + * @description Get the count of table view rows grouped by the dates + * + * @tags DB View Row + * @name CalendarCount + * @summary Count of Records in Dates in Calendar View + * @request GET:/api/v1/db/data/{orgs}/{baseName}/{tableName}/views/{viewName}/countByDate/ + * @response `200` `any` OK + * @response `400` `{ + \** @example BadRequest [Error]: *\ + msg: string, + +}` + */ + calendarCount: ( + orgs: string, + baseName: string, + tableName: string, + viewName: string, + query?: { + sort?: any[]; + where?: string; + /** @min 1 */ + limit?: number; + /** @min 0 */ + offset?: number; + }, + params: RequestParams = {} + ) => + this.request< + any, + { + /** @example BadRequest [Error]: */ + msg: string; + } + >({ + path: `/api/v1/db/data/${orgs}/${baseName}/${tableName}/views/${viewName}/countByDate/`, + method: 'GET', + query: query, + format: 'json', + ...params, + }), + /** * @description Get the table view rows grouped by the given query * @@ -8781,6 +9015,46 @@ export class Api< ...params, }), + /** + * No description + * + * @tags Public + * @name CalendarCount + * @summary Count of Records in Dates in Calendar View + * @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/countByDate + * @response `200` `any` OK + * @response `400` `{ + \** @example BadRequest [Error]: *\ + msg: string, + +}` + */ + calendarCount: ( + sharedViewUuid: string, + query?: { + sort?: any[]; + where?: string; + /** @min 1 */ + limit?: number; + /** @min 0 */ + offset?: number; + }, + params: RequestParams = {} + ) => + this.request< + any, + { + /** @example BadRequest [Error]: */ + msg: string; + } + >({ + path: `/api/v1/db/public/shared-view/${sharedViewUuid}/countByDate`, + method: 'GET', + query: query, + format: 'json', + ...params, + }), + /** * @description List all shared view rows * @@ -9778,6 +10052,8 @@ export class Api< galleryCount?: number, \** Kanban Count *\ kanbanCount?: number, + \** Calendar Count *\ + calendarCount?: number, \** Total View Count *\ total?: number, \** Shared Form Count *\ @@ -9788,6 +10064,8 @@ export class Api< sharedGalleryCount?: number, \** Shared Kanban Count *\ sharedKanbanCount?: number, + \** Shared Calendar Count *\ + sharedCalendarCount?: number, \** Shared Total View Count *\ sharedTotal?: number, \** Shared Locked View Count *\ @@ -9843,6 +10121,8 @@ export class Api< galleryCount?: number; /** Kanban Count */ kanbanCount?: number; + /** Calendar Count */ + calendarCount?: number; /** Total View Count */ total?: number; /** Shared Form Count */ @@ -9853,6 +10133,8 @@ export class Api< sharedGalleryCount?: number; /** Shared Kanban Count */ sharedKanbanCount?: number; + /** Shared Calendar Count */ + sharedCalendarCount?: number; /** Shared Total View Count */ sharedTotal?: number; /** Shared Locked View Count */ diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json index 9144867758..f63506d4a1 100644 --- a/packages/nocodb/package.json +++ b/packages/nocodb/package.json @@ -1,6 +1,6 @@ { "name": "nocodb", - "version": "0.204.0", + "version": "0.204.1", "description": "NocoDB Backend", "main": "dist/bundle.js", "author": { @@ -132,12 +132,12 @@ "mysql2": "^3.9.1", "nanoid": "^3.3.7", "nc-help": "0.3.1", - "nc-lib-gui": "0.204.0", + "nc-lib-gui": "0.204.1", "nc-plugin": "^0.1.3", "ncp": "^2.0.0", "nestjs-kafka": "^1.0.6", "nestjs-throttler-storage-redis": "^0.4.1", - "nocodb-sdk": "workspace:^", + "nocodb-sdk": "0.204.1", "nodemailer": "^6.9.8", "object-hash": "^3.0.0", "object-sizeof": "^2.6.4", @@ -229,4 +229,4 @@ "coverageDirectory": "../coverage", "testEnvironment": "node" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5ecc5c3de..eefb789db1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,7 +139,7 @@ importers: specifier: ^0.11.0 version: 0.11.0 nocodb-sdk: - specifier: workspace:^ + specifier: 0.204.1 version: link:../nocodb-sdk papaparse: specifier: ^5.4.1 @@ -671,8 +671,8 @@ importers: specifier: 0.3.1 version: 0.3.1(asn1.js@5.4.1)(debug@4.3.4)(knex@2.4.2) nc-lib-gui: - specifier: 0.204.0 - version: 0.204.0 + specifier: 0.204.1 + version: 0.204.1 nc-plugin: specifier: ^0.1.3 version: 0.1.3 @@ -686,7 +686,7 @@ importers: specifier: ^0.4.1 version: 0.4.1(@nestjs/common@10.3.2)(@nestjs/core@10.3.2)(@nestjs/throttler@5.1.2)(ioredis@5.3.2)(reflect-metadata@0.2.1) nocodb-sdk: - specifier: workspace:^ + specifier: 0.204.1 version: link:../nocodb-sdk nodemailer: specifier: ^6.9.8 @@ -20348,8 +20348,8 @@ packages: - supports-color dev: false - /nc-lib-gui@0.204.0: - resolution: {integrity: sha512-NVkgdBp1DlJ2mXhTS9SHHIa3BMYf2+qlVRRXlC0yZem2auqpMHqyRkSe/ReVMxpfE2zw/ciTEWqhEnL24ya6lw==} + /nc-lib-gui@0.204.1: + resolution: {integrity: sha512-8Nyfg1o0K/QunDQLO1Io8bZjW0vB66yqUTAPBF7qN2Kjcyv12MaInfi9oLqJnZs7DORdTP0v3YFeKoQJfn5AjA==} dependencies: express: 4.18.2 transitivePeerDependencies: From a123b062320e4735b02a7eff680cad1e64e6c767 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 23 Feb 2024 15:02:34 +0530 Subject: [PATCH 2/2] chore: update sdk path --- packages/nc-gui/package.json | 2 +- packages/nocodb/package.json | 2 +- pnpm-lock.yaml | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json index 05a64302d0..a90bc96af6 100644 --- a/packages/nc-gui/package.json +++ b/packages/nc-gui/package.json @@ -73,7 +73,7 @@ "marked": "^4.3.0", "monaco-editor": "^0.45.0", "monaco-sql-languages": "^0.11.0", - "nocodb-sdk": "0.204.1", + "nocodb-sdk": "workspace:^", "papaparse": "^5.4.1", "parse-github-url": "^1.0.2", "pinia": "^2.1.7", diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json index f63506d4a1..8819fbab54 100644 --- a/packages/nocodb/package.json +++ b/packages/nocodb/package.json @@ -137,7 +137,7 @@ "ncp": "^2.0.0", "nestjs-kafka": "^1.0.6", "nestjs-throttler-storage-redis": "^0.4.1", - "nocodb-sdk": "0.204.1", + "nocodb-sdk": "workspace:^", "nodemailer": "^6.9.8", "object-hash": "^3.0.0", "object-sizeof": "^2.6.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eefb789db1..3431e0166a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,7 +139,7 @@ importers: specifier: ^0.11.0 version: 0.11.0 nocodb-sdk: - specifier: 0.204.1 + specifier: workspace:^ version: link:../nocodb-sdk papaparse: specifier: ^5.4.1 @@ -686,7 +686,7 @@ importers: specifier: ^0.4.1 version: 0.4.1(@nestjs/common@10.3.2)(@nestjs/core@10.3.2)(@nestjs/throttler@5.1.2)(ioredis@5.3.2)(reflect-metadata@0.2.1) nocodb-sdk: - specifier: 0.204.1 + specifier: workspace:^ version: link:../nocodb-sdk nodemailer: specifier: ^6.9.8 @@ -24227,6 +24227,9 @@ packages: /sqlite3@5.1.6: resolution: {integrity: sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==} requiresBuild: true + peerDependenciesMeta: + node-gyp: + optional: true dependencies: '@mapbox/node-pre-gyp': 1.0.11 node-addon-api: 4.3.0 @@ -24241,6 +24244,9 @@ packages: /sqlite3@5.1.7: resolution: {integrity: sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==} requiresBuild: true + peerDependenciesMeta: + node-gyp: + optional: true dependencies: bindings: 1.5.0 node-addon-api: 7.0.0