Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore: bootstrap

Ramesh Mane3b3757f4dc1a
diff --git a/packages/noco-integrations/pnpm-lock.yaml b/packages/noco-integrations/pnpm-lock.yaml
index 1cf2a049a1..d992becb16 100644
--- a/packages/noco-integrations/pnpm-lock.yaml
+++ b/packages/noco-integrations/pnpm-lock.yaml
@@ -1861,6 +1861,10 @@ packages:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+ resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
+ hasBin: true
+
resolution: {integrity: sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==}
engines: {node: '>= 0.10'}
@@ -3513,6 +3517,7 @@ snapshots:
nc-jsep-plugin-template: 1.7.5([email protected])
nc-jsep-plugin-ternary: 1.7.5([email protected])
rfdc: 1.4.1
+ uuid: 11.1.0
validator: 13.15.0
transitivePeerDependencies:
- '@vue/composition-api'
@@ -3969,6 +3974,8 @@ snapshots:
dependencies:
punycode: 2.3.1
+
diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts
index cbe544a73f..c8646199ac 100644
--- a/packages/nocodb-sdk/src/lib/Api.ts
+++ b/packages/nocodb-sdk/src/lib/Api.ts
@@ -12545,6 +12545,49 @@ export class Api<
...params,
}),
+ /**
+ * @description Read bulk aggregated data from a given table with provided filters
+ *
+ * @tags Public
+ * @name DataTableBulkAggregate
+ * @summary Read Shared View Bulk Aggregated Data
+ * @request POST:/api/v2/public/shared-view/{sharedViewUuid}/bulk/aggregate
+ * @response `200` `object` OK
+ * @response `400` `{
+ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
+ msg: string,
+
+}`
+ */
+ dataTableBulkAggregate: (
+ sharedViewUuid: string,
+ data: object[],
+ query?: {
+ /** Extra filtering */
+ where?: string;
+ /** Used for multiple filter queries */
+ filterArrJson?: string;
+ /** List of fields to be aggregated */
+ aggregation?: object[];
+ },
+ params: RequestParams = {}
+ ) =>
+ this.request<
+ object,
+ {
+ /** @example BadRequest [Error]: <ERROR MESSAGE> */
+ msg: string;
+ }
+ >({
+ path: `/api/v2/public/shared-view/${sharedViewUuid}/bulk/aggregate`,
+ method: 'POST',
+ query: query,
+ body: data,
+ type: ContentType.Json,
+ format: 'json',
+ ...params,
+ }),
+
/**
* @description Download attachment from a shared view
*
@@ -13367,6 +13410,52 @@ export class Api<
...params,
}),
};
+ dbDataTableBulkAggregate = {
+ /**
+ * @description Read bulk aggregated data from a given table with given filters
+ *
+ * @tags DB Data Table Bulk Aggregate
+ * @name DbDataTableBulkAggregate
+ * @summary Read Bulk Aggregated Data
+ * @request POST:/api/v2/tables/{tableId}/bulk/aggregate
+ * @response `200` `object` OK
+ * @response `400` `{
+ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
+ msg: string,
+
+}`
+ */
+ dbDataTableBulkAggregate: (
+ tableId: string,
+ query: {
+ /** View ID is required */
+ viewId: string;
+ /** List of fields to be aggregated */
+ aggregation?: object[];
+ /** Extra filtering */
+ where?: string;
+ /** Used for multiple filter queries */
+ filterArrJson?: string;
+ },
+ data: object[],
+ params: RequestParams = {}
+ ) =>
+ this.request<
+ object,
+ {
+ /** @example BadRequest [Error]: <ERROR MESSAGE> */
+ msg: string;
+ }
+ >({
+ path: `/api/v2/tables/${tableId}/bulk/aggregate`,
+ method: 'POST',
+ query: query,
+ body: data,
+ type: ContentType.Json,
+ format: 'json',
+ ...params,
+ }),
+ };
utils = {
/**
* @description List all comments