Browse Source

Merge pull request #7792 from nocodb/chore/sync-main-to-dev

Chore/sync main to dev
pull/7795/head
Pranav C 9 months ago committed by GitHub
parent
commit
1b734b671c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-lib-gui/package.json
  2. 2
      packages/nocodb-sdk/package.json
  3. 304
      packages/nocodb-sdk/src/lib/Api.ts
  4. 6
      packages/nocodb/package.json
  5. 16
      pnpm-lock.yaml

2
packages/nc-lib-gui/package.json

@ -1,6 +1,6 @@
{ {
"name": "nc-lib-gui", "name": "nc-lib-gui",
"version": "0.204.2", "version": "0.204.4",
"description": "NocoDB GUI", "description": "NocoDB GUI",
"author": { "author": {
"name": "NocoDB", "name": "NocoDB",

2
packages/nocodb-sdk/package.json

@ -1,6 +1,6 @@
{ {
"name": "nocodb-sdk", "name": "nocodb-sdk",
"version": "0.204.2", "version": "0.204.4",
"description": "NocoDB SDK", "description": "NocoDB SDK",
"main": "build/main/index.js", "main": "build/main/index.js",
"typings": "build/main/index.d.ts", "typings": "build/main/index.d.ts",

304
packages/nocodb-sdk/src/lib/Api.ts

@ -89,6 +89,26 @@ export interface AttachmentReqType {
fileName?: string; fileName?: string;
} }
/**
* Model for Attachment Response
*/
export type AttachmentResType = {
/** The mimetype of the attachment */
mimetype?: string;
/** The attachment stored path */
path?: string;
/** The size of the attachment */
size?: number;
/** The title of the attachment used in UI */
title?: string;
/** The attachment stored url */
url?: string;
/** Attachment signedPath will allow to access attachment directly */
signedPath?: string;
/** Attachment signedUrl will allow to access attachment directly */
signedUrl?: string;
} | null;
/** /**
* Model for File Request * Model for File Request
*/ */
@ -826,8 +846,8 @@ export interface FollowerType {
export interface FormType { export interface FormType {
/** Unique ID */ /** Unique ID */
id?: IdType; id?: IdType;
/** Banner Image URL. Not in use currently. */ /** Banner Image URL */
banner_image_url?: TextOrNullType; banner_image_url?: AttachmentResType;
/** Form Columns */ /** Form Columns */
columns?: FormColumnType[]; columns?: FormColumnType[];
/** Email to sned after form is submitted */ /** Email to sned after form is submitted */
@ -852,8 +872,8 @@ export interface FormType {
* @example collaborative * @example collaborative
*/ */
lock_type?: 'collaborative' | 'locked' | 'personal'; lock_type?: 'collaborative' | 'locked' | 'personal';
/** Logo URL. Not in use currently. */ /** Logo URL */
logo_url?: TextOrNullType; logo_url?: AttachmentResType;
/** Meta Info for this view */ /** Meta Info for this view */
meta?: MetaType; meta?: MetaType;
/** The numbers of seconds to redirect after form submission */ /** The numbers of seconds to redirect after form submission */
@ -882,8 +902,8 @@ export interface FormType {
* Model for Form Update Request * Model for Form Update Request
*/ */
export interface FormUpdateReqType { export interface FormUpdateReqType {
/** Banner Image URL. Not in use currently. */ /** Banner Image URL */
banner_image_url?: StringOrNullType; banner_image_url?: AttachmentReqType | null;
/** Email to sned after form is submitted */ /** Email to sned after form is submitted */
email?: StringOrNullType; email?: StringOrNullType;
/** /**
@ -891,8 +911,8 @@ export interface FormUpdateReqType {
* @example My Form * @example My Form
*/ */
heading?: string; heading?: string;
/** Logo URL. Not in use currently. */ /** Logo URL */
logo_url?: StringOrNullType; logo_url?: AttachmentReqType | null;
/** Meta Info for this view */ /** Meta Info for this view */
meta?: MetaType; meta?: MetaType;
/** The numbers of seconds to redirect after form submission */ /** The numbers of seconds to redirect after form submission */
@ -8634,49 +8654,6 @@ export class Api<
...params, ...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]: <ERROR MESSAGE> *\
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]: <ERROR MESSAGE> */
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 * @description Get the table view rows grouped by the given query
* *
@ -8937,7 +8914,192 @@ export class Api<
...params, ...params,
}), }),
}; };
dbCalendarViewRow = {
/**
* @description List all rows in Calendar View of a Table
*
* @tags DB Calendar View Row
* @name List
* @summary List rows in Calendar View of a Table
* @request GET:/api/v1/db/calendar-data/{orgs}/{baseName}/{tableName}/views/{viewName}
*/
list: (
orgs: string,
baseName: string,
tableName: string,
viewName: string,
query: {
from_date: string;
to_date: string;
fields?: any[];
sort?: any[];
where?: string;
/** Query params for nested data */
nested?: any;
offset?: number;
},
params: RequestParams = {}
) =>
this.request<any, any>({
path: `/api/v1/db/calendar-data/${orgs}/${baseName}/${tableName}/views/${viewName}`,
method: 'GET',
query: query,
...params,
}),
/**
* @description List all rows in Calendar View of a Table
*
* @tags DB Calendar View Row
* @name PublicDataCalendarRowList
* @summary List rows in Calendar View of a Table
* @request GET:/api/v1/db/public/calendar-view/{sharedViewUuid}
*/
publicDataCalendarRowList: (
sharedViewUuid: string,
query: {
from_date: string;
to_date: string;
fields?: any[];
sort?: any[];
where?: string;
/** Query params for nested data */
nested?: any;
offset?: number;
},
params: RequestParams = {}
) =>
this.request<any, any>({
path: `/api/v1/db/public/calendar-view/${sharedViewUuid}`,
method: 'GET',
query: query,
...params,
}),
};
api = {
/**
* No description
*
* @name ResponsesApi
* @request RESPONSES:/api/v1/db/calendar-data/{orgs}/{baseName}/{tableName}/views/{viewName}
*/
responsesApi: (
orgs: string,
baseName: string,
tableName: string,
viewName: string,
params: RequestParams = {}
) =>
this.request<any, any>({
path: `/api/v1/db/calendar-data/${orgs}/${baseName}/${tableName}/views/${viewName}`,
method: 'RESPONSES',
...params,
}),
/**
* No description
*
* @name ResponsesApi2
* @request RESPONSES:/api/v1/db/public/calendar-view/{sharedViewUuid}
* @originalName responsesApi
* @duplicate
*/
responsesApi2: (sharedViewUuid: string, params: RequestParams = {}) =>
this.request<any, any>({
path: `/api/v1/db/public/calendar-view/${sharedViewUuid}`,
method: 'RESPONSES',
...params,
}),
};
dbCalendarViewRowCount = {
/**
* @description Get the count of table view rows grouped by the dates
*
* @tags DB Calendar View Row Count
* @name DbCalendarViewRowCount
* @summary Count of Records in Dates in Calendar View
* @request GET:/api/v1/db/calendar-data/{orgs}/{baseName}/{tableName}/views/{viewName}/countByDate/
* @response `200` `any` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg: string,
}`
*/
dbCalendarViewRowCount: (
orgs: string,
baseName: string,
tableName: string,
viewName: string,
query: {
from_date: string;
to_date: string;
sort?: any[];
where?: string;
/** @min 1 */
limit?: number;
/** @min 0 */
offset?: number;
},
params: RequestParams = {}
) =>
this.request<
any,
{
/** @example BadRequest [Error]: <ERROR MESSAGE> */
msg: string;
}
>({
path: `/api/v1/db/calendar-data/${orgs}/${baseName}/${tableName}/views/${viewName}/countByDate/`,
method: 'GET',
query: query,
format: 'json',
...params,
}),
};
public = { public = {
/**
* No description
*
* @tags Public
* @name DataCalendarRowCount
* @summary Count of Records in Dates in Calendar View
* @request GET:/api/v1/db/public/calendar-view/{sharedViewUuid}/countByDate
* @response `200` `any` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg: string,
}`
*/
dataCalendarRowCount: (
sharedViewUuid: string,
query: {
from_date: string;
to_date: string;
sort?: any[];
where?: string;
/** @min 1 */
limit?: number;
/** @min 0 */
offset?: number;
},
params: RequestParams = {}
) =>
this.request<
any,
{
/** @example BadRequest [Error]: <ERROR MESSAGE> */
msg: string;
}
>({
path: `/api/v1/db/public/calendar-view/${sharedViewUuid}/countByDate`,
method: 'GET',
query: query,
format: 'json',
...params,
}),
/** /**
* @description List Shared View Grouped Data * @description List Shared View Grouped Data
* *
@ -9015,46 +9177,6 @@ export class Api<
...params, ...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]: <ERROR MESSAGE> *\
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]: <ERROR MESSAGE> */
msg: string;
}
>({
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/countByDate`,
method: 'GET',
query: query,
format: 'json',
...params,
}),
/** /**
* @description List all shared view rows * @description List all shared view rows
* *

6
packages/nocodb/package.json

@ -1,6 +1,6 @@
{ {
"name": "nocodb", "name": "nocodb",
"version": "0.204.2", "version": "0.204.4",
"description": "NocoDB Backend", "description": "NocoDB Backend",
"main": "dist/bundle.js", "main": "dist/bundle.js",
"author": { "author": {
@ -132,7 +132,7 @@
"mysql2": "^3.9.2", "mysql2": "^3.9.2",
"nanoid": "^3.3.7", "nanoid": "^3.3.7",
"nc-help": "0.3.1", "nc-help": "0.3.1",
"nc-lib-gui": "0.204.3", "nc-lib-gui": "0.204.4",
"nc-plugin": "^0.1.3", "nc-plugin": "^0.1.3",
"ncp": "^2.0.0", "ncp": "^2.0.0",
"nestjs-kafka": "^1.0.6", "nestjs-kafka": "^1.0.6",
@ -229,4 +229,4 @@
"coverageDirectory": "../coverage", "coverageDirectory": "../coverage",
"testEnvironment": "node" "testEnvironment": "node"
} }
} }

16
pnpm-lock.yaml

@ -677,8 +677,8 @@ importers:
specifier: 0.3.1 specifier: 0.3.1
version: 0.3.1(asn1.js@5.4.1)(debug@4.3.4)(knex@2.4.2) version: 0.3.1(asn1.js@5.4.1)(debug@4.3.4)(knex@2.4.2)
nc-lib-gui: nc-lib-gui:
specifier: 0.204.3 specifier: 0.204.4
version: 0.204.3 version: 0.204.4
nc-plugin: nc-plugin:
specifier: ^0.1.3 specifier: ^0.1.3
version: 0.1.3 version: 0.1.3
@ -892,7 +892,7 @@ importers:
version: 6.3.4 version: 6.3.4
ts-jest: ts-jest:
specifier: 29.1.2 specifier: 29.1.2
version: 29.1.2(@babel/core@7.23.9)(jest@29.7.0)(typescript@5.3.2) version: 29.1.2(@babel/core@7.23.7)(jest@29.7.0)(typescript@5.3.2)
ts-loader: ts-loader:
specifier: ^9.5.1 specifier: ^9.5.1
version: 9.5.1(typescript@5.3.2)(webpack@5.90.3) version: 9.5.1(typescript@5.3.2)(webpack@5.90.3)
@ -962,7 +962,7 @@ importers:
version: 5.0.5 version: 5.0.5
ts-jest: ts-jest:
specifier: ^29.1.2 specifier: ^29.1.2
version: 29.1.2(@babel/core@7.23.9)(jest@29.7.0)(typescript@5.3.2) version: 29.1.2(@babel/core@7.23.7)(jest@29.7.0)(typescript@5.3.2)
tsc-alias: tsc-alias:
specifier: ^1.8.8 specifier: ^1.8.8
version: 1.8.8 version: 1.8.8
@ -20415,8 +20415,8 @@ packages:
- supports-color - supports-color
dev: false dev: false
/nc-lib-gui@0.204.3: /nc-lib-gui@0.204.4:
resolution: {integrity: sha512-riTvYiri4vVSuOvZpq3ROWlMXdtI0Rxw7GeKN96kgflMiwIqqfK9E3Q7ppBakLAXe01PA0k5X/m5qc5CykD+rA==} resolution: {integrity: sha512-zLTGOpx3s9bPOa5AxHxDflfYdo08OaiYCvgvLnT9+XZSBDw+xCt/HBcvOQQ8TjjNYbg3KISdEkNDeiIt33pLNA==}
dependencies: dependencies:
express: 4.18.3 express: 4.18.3
transitivePeerDependencies: transitivePeerDependencies:
@ -25218,7 +25218,7 @@ packages:
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
dev: false dev: false
/ts-jest@29.1.2(@babel/core@7.23.9)(jest@29.7.0)(typescript@5.3.2): /ts-jest@29.1.2(@babel/core@7.23.7)(jest@29.7.0)(typescript@5.3.2):
resolution: {integrity: sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==} resolution: {integrity: sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==}
engines: {node: ^16.10.0 || ^18.0.0 || >=20.0.0} engines: {node: ^16.10.0 || ^18.0.0 || >=20.0.0}
hasBin: true hasBin: true
@ -25239,7 +25239,7 @@ packages:
esbuild: esbuild:
optional: true optional: true
dependencies: dependencies:
'@babel/core': 7.23.9 '@babel/core': 7.23.7
bs-logger: 0.2.6 bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0 fast-json-stable-stringify: 2.1.0
jest: 29.7.0(@types/node@20.11.24)(ts-node@10.9.2) jest: 29.7.0(@types/node@20.11.24)(ts-node@10.9.2)

Loading…
Cancel
Save