@redonvn/redai-backend-api-sdk 0.5.24 → 0.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/core/http-client.js +1 -1
  2. package/dist/cjs/core/http-client.js.map +1 -1
  3. package/dist/cjs/generated/dynamic-table/index.js +5 -1
  4. package/dist/cjs/generated/dynamic-table/index.js.map +1 -1
  5. package/dist/cjs/generated/dynamic-table/services/dashboards.service.js +154 -0
  6. package/dist/cjs/generated/dynamic-table/services/dashboards.service.js.map +1 -0
  7. package/dist/cjs/generated/dynamic-table/services/data-table.service.js +9 -0
  8. package/dist/cjs/generated/dynamic-table/services/data-table.service.js.map +1 -1
  9. package/dist/cjs/generated/dynamic-table/services/index.js +5 -1
  10. package/dist/cjs/generated/dynamic-table/services/index.js.map +1 -1
  11. package/dist/cjs/generated/dynamic-table/services/scheduled-hooks.service.js +55 -0
  12. package/dist/cjs/generated/dynamic-table/services/scheduled-hooks.service.js.map +1 -0
  13. package/dist/cjs/generated/dynamic-table/types.js +42 -1
  14. package/dist/cjs/generated/dynamic-table/types.js.map +1 -1
  15. package/dist/cjs/generated/index.js +6 -2
  16. package/dist/cjs/generated/index.js.map +1 -1
  17. package/dist/cjs/generated/shared-types.js.map +1 -1
  18. package/dist/cjs/index.js +2 -0
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/esm/core/http-client.js +1 -1
  21. package/dist/esm/core/http-client.js.map +1 -1
  22. package/dist/esm/generated/dynamic-table/index.d.ts +1 -1
  23. package/dist/esm/generated/dynamic-table/index.d.ts.map +1 -1
  24. package/dist/esm/generated/dynamic-table/index.js +1 -1
  25. package/dist/esm/generated/dynamic-table/index.js.map +1 -1
  26. package/dist/esm/generated/dynamic-table/services/dashboards.service.d.ts +23 -0
  27. package/dist/esm/generated/dynamic-table/services/dashboards.service.d.ts.map +1 -0
  28. package/dist/esm/generated/dynamic-table/services/dashboards.service.js +150 -0
  29. package/dist/esm/generated/dynamic-table/services/dashboards.service.js.map +1 -0
  30. package/dist/esm/generated/dynamic-table/services/data-table.service.d.ts +2 -1
  31. package/dist/esm/generated/dynamic-table/services/data-table.service.d.ts.map +1 -1
  32. package/dist/esm/generated/dynamic-table/services/data-table.service.js +9 -0
  33. package/dist/esm/generated/dynamic-table/services/data-table.service.js.map +1 -1
  34. package/dist/esm/generated/dynamic-table/services/index.d.ts +2 -0
  35. package/dist/esm/generated/dynamic-table/services/index.d.ts.map +1 -1
  36. package/dist/esm/generated/dynamic-table/services/index.js +2 -0
  37. package/dist/esm/generated/dynamic-table/services/index.js.map +1 -1
  38. package/dist/esm/generated/dynamic-table/services/scheduled-hooks.service.d.ts +12 -0
  39. package/dist/esm/generated/dynamic-table/services/scheduled-hooks.service.d.ts.map +1 -0
  40. package/dist/esm/generated/dynamic-table/services/scheduled-hooks.service.js +51 -0
  41. package/dist/esm/generated/dynamic-table/services/scheduled-hooks.service.js.map +1 -0
  42. package/dist/esm/generated/dynamic-table/types.d.ts +421 -1
  43. package/dist/esm/generated/dynamic-table/types.d.ts.map +1 -1
  44. package/dist/esm/generated/dynamic-table/types.js +41 -0
  45. package/dist/esm/generated/dynamic-table/types.js.map +1 -1
  46. package/dist/esm/generated/index.d.ts +2 -2
  47. package/dist/esm/generated/index.d.ts.map +1 -1
  48. package/dist/esm/generated/index.js +1 -1
  49. package/dist/esm/generated/index.js.map +1 -1
  50. package/dist/esm/generated/shared-types.d.ts +2 -0
  51. package/dist/esm/generated/shared-types.d.ts.map +1 -1
  52. package/dist/esm/generated/shared-types.js.map +1 -1
  53. package/dist/esm/index.d.ts +6 -2
  54. package/dist/esm/index.d.ts.map +1 -1
  55. package/dist/esm/index.js +3 -1
  56. package/dist/esm/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { FieldConfig, TableMeta, TableSettings, ViewMeta } from '../shared-types';
2
2
  import { ExternalDataType, FieldType, ModelType, ProviderEnum, ReferentialAction, RelationType, RollupFunction, RowColoringMode, StorageMode, ViewLockType, ViewType } from '../shared-types';
3
- export type { ACB_BANK, ACTION, ACTIVE, AGENT_DESKTOP_SDK_EXE, AGRIBANK_BANK, AHAMOVE, AI, ALIBABA_CODING_PLAN, ANTHROPIC, API_TOKEN_CREATE, API_TOKEN_DELETE, API_TOKEN_UPDATE, ApiResponseDto, ARCHIVED, ARRAY, ASC, ATTACHMENT, AUTONUMBER, AVG, AVG_DISTINCT, AZURE_AI, BARCODE, BASE, BELONGS_TO, BIDV_BANK, BIGINT, BIGSERIAL, BINARY, BIT, BLOB, BOOLEAN, BUTTON, BYTEA, CALENDAR, CALENDAR_CREATE, CALENDAR_DELETE, CALENDAR_UPDATE, CASCADE, CENTER, CHAR, CIDR, CLOUD_AWS_S3, CLOUD_AZURE_BLOB, CLOUD_BACKBLAZE_B2, CLOUD_CLOUDFLARE_R2, CLOUD_GOOGLE_CLOUD_STORAGE, CLOUD_MINIO, CLOUD_WASABI, COLLABORATIVE, ColumnResponseDto, COMMENT_CREATE, COMMENT_DELETE, COMMENT_UPDATE, COMPLETED, COUNT, COUNT_DISTINCT, CREATE, CREATED_BY, CREATED_TIME, CURRENCY, CUSTOM, DASHBOARD, DASHBOARD_CREATE, DASHBOARD_DELETE, DASHBOARD_UPDATE, DATA_CREATE, DATA_DELETE, DATA_EXPORT, DATA_IMPORT, DATA_UPDATE, DATABASE_MARIADB, DATABASE_MONGODB, DATABASE_MSSQL, DATABASE_MYSQL, DATABASE_ORACLE, DATABASE_POSTGRESQL, DATABASE_REDIS, DATABASE_SQLITE, DATE, DATETIME, DATETIME2, DECIMAL, DEEPSEEK, DEFAULT, DELETE, DESC, DISABLED, DOCUMENT, DOUBLE, DURATION, EAV, EMAIL, EMAIL_GMAIL, EMAIL_OUTLOOK, EMAIL_SMTP, EMAIL_TWILIO_SENDGRID, ENUM, ExternalSyncConfig, FACEBOOK_ADS, FACEBOOK_BUSINESS, FACEBOOK_PAGE, FACEBOOK_PERSONAL, FAILED, FieldConfig, FieldMeta, FILTER, FLOAT, FORM, FORMULA, GALLERY, GEOGRAPHY, GEOMETRY, GET, GETFLY_CRM, GHN, GHTK, GOOGLE_ADS, GOOGLE_AI_STUDIO, GOOGLE_CALENDAR, GOOGLE_CLOUD_PROJECT, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GRID, HAS_MANY, HDB_BANK, HSTORE, IMAGE, INET, INT, INTEGER, INTEGRATION_CREATE, INTEGRATION_DELETE, INTEGRATION_UPDATE, INTERVAL, JSON, JSONB, KANBAN, KL_BANK, LINK_TO_ANOTHER_RECORD, LINKS, LOCKED, LONG_TEXT, LONGTEXT, LOOKUP, LookupConfigResponseDto, MACADDR, MANY_TO_MANY, MAP, MAX, MB_BANK, MEDIUMINT, MEDIUMTEXT, MIN, MODIFIED_BY, MODIFIED_TIME, MONEY, MULTI_SELECT, NCHAR, NO, NO_ACTION, NONE, NULL, NUMBER, NUMERIC, NVARCHAR, OBJECT_ID, OCB_BANK, ONE_TO_ONE, OPENAI, OPENAI_OAUTH, OPENROUTER, ORDER, PATCH, PENDING, PERCENT, PERMISSION_CREATE, PERMISSION_DELETE, PERMISSION_UPDATE, PERPLEXITY_AI, PERSONAL, PHONE, PHYSICAL, POINT, POST, PROJECT_CREATE, PROJECT_DELETE, PROJECT_UPDATE, PROXY, PUT, QR_CODE, RATING, READ, REAL, REDAI, REDAI_EXTENSION, REDAI_LLM, RELATION, RelationConfigResponseDto, RESTRICT, ROLLUP, RollupConfigResponseDto, SCB_BANK, SELECT, SERIAL, SET, SET_DEFAULT, SET_NULL, SHB_BANK, SMALLDATETIME, SMALLINT, SMALLMONEY, SMS_ESMS, SMS_ESMS_ADVERTISING, SMS_ESMS_CUSTOMER_CARE, SMS_ESMS_VIBER, SMS_FPT, SMS_SPEED, SMS_TWILIO, SMS_VONAGE, SOURCE_CREATE, SOURCE_DELETE, SOURCE_UPDATE, STB_BANK, SUM, SUM_DISTINCT, T, TABLE, TABLE_CREATE, TABLE_DELETE, TABLE_UPDATE, TableMeta, TableResponseDto, TableSettings, TCB_BANK, TELEGRAM, TELEGRAM_BOT, TEST, TEXT, TIME, TIMESTAMP, TIMESTAMPTZ, TINYINT, TINYTEXT, TPB_BANK, UNIQUEIDENTIFIER, UPDATE, URL, USER, UUID, VARBINARY, VARCHAR, VCB_BANK, VIB_BANK, VIEW, VIEW_CREATE, VIEW_DELETE, VIEW_UPDATE, ViewMeta, ViewResponseDto, VPB_BANK, VTB_BANK, WEBSITE, WORKFLOW, XAI, XML, YEAR, ZALO_BOT, ZALO_OA, ZALO_PERSONAL } from '../shared-types';
3
+ export type { ACB_BANK, ACTION, ACTIVE, AGENT_DESKTOP_SDK_EXE, AGRIBANK_BANK, AHAMOVE, AI, ALIBABA_CODING_PLAN, ANTHROPIC, API_TOKEN_CREATE, API_TOKEN_DELETE, API_TOKEN_UPDATE, ApiResponseDto, ARCHIVED, ARRAY, ASC, ATTACHMENT, AUTONUMBER, AVG, AVG_DISTINCT, AZURE_AI, BARCODE, BASE, BELONGS_TO, BIDV_BANK, BIGINT, BIGSERIAL, BINARY, BIT, BLOB, BOOLEAN, BUTTON, BYTEA, CALENDAR, CALENDAR_CREATE, CALENDAR_DELETE, CALENDAR_UPDATE, CASCADE, CENTER, CHAR, CIDR, CLOUD_AWS_S3, CLOUD_AZURE_BLOB, CLOUD_BACKBLAZE_B2, CLOUD_CLOUDFLARE_R2, CLOUD_GOOGLE_CLOUD_STORAGE, CLOUD_MINIO, CLOUD_WASABI, COLLABORATIVE, ColumnResponseDto, COMMENT_CREATE, COMMENT_DELETE, COMMENT_UPDATE, COMPLETED, COUNT, COUNT_DISTINCT, CREATE, CREATED_BY, CREATED_TIME, CURRENCY, CUSTOM, DASHBOARD, DASHBOARD_CREATE, DASHBOARD_DELETE, DASHBOARD_UPDATE, DATA_CREATE, DATA_DELETE, DATA_EXPORT, DATA_IMPORT, DATA_UPDATE, DATABASE_MARIADB, DATABASE_MONGODB, DATABASE_MSSQL, DATABASE_MYSQL, DATABASE_ORACLE, DATABASE_POSTGRESQL, DATABASE_REDIS, DATABASE_SQLITE, DATE, DATETIME, DATETIME2, DECIMAL, DEEPSEEK, DEFAULT, DELETE, DESC, DISABLED, DOCUMENT, DOUBLE, DRAFT, DURATION, EAV, EMAIL, EMAIL_GMAIL, EMAIL_OUTLOOK, EMAIL_SMTP, EMAIL_TWILIO_SENDGRID, ENUM, ExternalSyncConfig, FACEBOOK_ADS, FACEBOOK_BUSINESS, FACEBOOK_PAGE, FACEBOOK_PERSONAL, FAILED, FieldConfig, FieldMeta, FILTER, FLOAT, FORM, FORMULA, GALLERY, GEOGRAPHY, GEOMETRY, GET, GETFLY_CRM, GHN, GHTK, GOOGLE_ADS, GOOGLE_AI_STUDIO, GOOGLE_CALENDAR, GOOGLE_CLOUD_PROJECT, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GRID, HAS_MANY, HDB_BANK, HSTORE, IMAGE, INACTIVE, INET, INT, INTEGER, INTEGRATION_CREATE, INTEGRATION_DELETE, INTEGRATION_UPDATE, INTERVAL, JSON, JSONB, KANBAN, KL_BANK, LINK_TO_ANOTHER_RECORD, LINKS, LOCKED, LONG_TEXT, LONGTEXT, LOOKUP, LookupConfigResponseDto, MACADDR, MANY_TO_MANY, MAP, MAX, MB_BANK, MEDIUMINT, MEDIUMTEXT, MIN, MODIFIED_BY, MODIFIED_TIME, MONEY, MULTI_SELECT, NCHAR, NO, NO_ACTION, NONE, NULL, NUMBER, NUMERIC, NVARCHAR, OBJECT_ID, OCB_BANK, ONE_TO_ONE, OPENAI, OPENAI_OAUTH, OPENROUTER, ORDER, PATCH, PENDING, PERCENT, PERMISSION_CREATE, PERMISSION_DELETE, PERMISSION_UPDATE, PERPLEXITY_AI, PERSONAL, PHONE, PHYSICAL, POINT, POST, PROJECT_CREATE, PROJECT_DELETE, PROJECT_UPDATE, PROXY, PUT, QR_CODE, RATING, READ, REAL, REDAI, REDAI_EXTENSION, REDAI_LLM, RELATION, RelationConfigResponseDto, RESTRICT, ROLLUP, RollupConfigResponseDto, SCB_BANK, SELECT, SERIAL, SET, SET_DEFAULT, SET_NULL, SHB_BANK, SMALLDATETIME, SMALLINT, SMALLMONEY, SMS_ESMS, SMS_ESMS_ADVERTISING, SMS_ESMS_CUSTOMER_CARE, SMS_ESMS_VIBER, SMS_FPT, SMS_SPEED, SMS_TWILIO, SMS_VONAGE, SOURCE_CREATE, SOURCE_DELETE, SOURCE_UPDATE, STB_BANK, SUM, SUM_DISTINCT, T, TABLE, TABLE_CREATE, TABLE_DELETE, TABLE_UPDATE, TableMeta, TableResponseDto, TableSettings, TCB_BANK, TELEGRAM, TELEGRAM_BOT, TEST, TEXT, TIME, TIMESTAMP, TIMESTAMPTZ, TINYINT, TINYTEXT, TPB_BANK, UNIQUEIDENTIFIER, UPDATE, URL, USER, UUID, VARBINARY, VARCHAR, VCB_BANK, VIB_BANK, VIEW, VIEW_CREATE, VIEW_DELETE, VIEW_UPDATE, ViewMeta, ViewResponseDto, VPB_BANK, VTB_BANK, WEBSITE, WORKFLOW, XAI, XML, YEAR, ZALO_BOT, ZALO_OA, ZALO_PERSONAL } from '../shared-types';
4
4
  export { ExternalDataType, FieldType, ModelType, ProviderEnum, ReferentialAction, RelationType, RollupFunction, RowColoringMode, StorageMode, ViewLockType, ViewType } from '../shared-types';
5
5
  export interface AcceptWorkspaceInviteDto {
6
6
  token: string;
@@ -273,6 +273,9 @@ export declare enum BaseStatus {
273
273
  ACTIVE = "active",
274
274
  ARCHIVED = "archived"
275
275
  }
276
+ export type BulkAggregateDto = BulkDataListDto & {
277
+ aggregations?: JsonValue;
278
+ };
276
279
  export interface BulkColumnDeleteDto {
277
280
  id: string;
278
281
  }
@@ -342,6 +345,73 @@ export interface CalendarViewResponseDto {
342
345
  createdAt: number;
343
346
  updatedAt: number | null;
344
347
  }
348
+ export type CalendarWidgetConfig = {
349
+ query: WidgetQuerySpec;
350
+ dateFieldId: string;
351
+ };
352
+ export type ChartAxisSpec = {
353
+ categoryFieldId?: string;
354
+ valueFieldId?: string;
355
+ timeBucket?: 'day' | 'week' | 'month' | 'quarter';
356
+ label?: string;
357
+ };
358
+ export type ChartSeriesSpec = {
359
+ label: string;
360
+ aggregation: WidgetAggregationSpec;
361
+ fieldId?: string;
362
+ color?: string;
363
+ renderAs?: 'bar' | 'line' | 'area';
364
+ stackGroup?: string;
365
+ xFieldId?: string;
366
+ yFieldId?: string;
367
+ sizeFieldId?: string;
368
+ };
369
+ export declare enum ChartType {
370
+ BAR = "bar",
371
+ STACKED_BAR = "stacked_bar",
372
+ LINE = "line",
373
+ AREA = "area",
374
+ STACKED_AREA = "stacked_area",
375
+ PIE = "pie",
376
+ DONUT = "donut",
377
+ RADAR = "radar",
378
+ SCATTER = "scatter",
379
+ BUBBLE = "bubble",
380
+ FUNNEL = "funnel",
381
+ HEATMAP = "heatmap",
382
+ COMBO = "combo",
383
+ POLAR_AREA = "polar_area",
384
+ TREEMAP = "treemap"
385
+ }
386
+ export interface ChartTypeInfoDto {
387
+ type: ChartType;
388
+ label: string;
389
+ supportsMultipleSeries: boolean;
390
+ supportsGrouping: boolean;
391
+ supportsTimeBucket: boolean;
392
+ supportsTwoDimensions: boolean;
393
+ supportsBubbleSize: boolean;
394
+ supportsMixedSeries: boolean;
395
+ supportsStacking: boolean;
396
+ }
397
+ export type ChartWidgetConfig = {
398
+ chartType: ChartType;
399
+ query: WidgetQuerySpec;
400
+ dimensionFieldId?: string;
401
+ breakdownFieldId?: string;
402
+ sizeFieldId?: string;
403
+ maxPoints?: number;
404
+ xAxis?: ChartAxisSpec;
405
+ yAxis?: ChartAxisSpec;
406
+ series: ChartSeriesSpec[];
407
+ stacked?: boolean;
408
+ showLegend?: boolean;
409
+ showDataLabels?: boolean;
410
+ showGrid?: boolean;
411
+ showTooltip?: boolean;
412
+ showSecondaryAxis?: boolean;
413
+ seriesLayout?: 'grouped' | 'stacked' | 'percent';
414
+ };
345
415
  export interface CommandPaletteSearchQueryDto {
346
416
  q: string;
347
417
  limit?: number;
@@ -447,6 +517,13 @@ export interface CreateCommentDto {
447
517
  export interface CreateCommentReactionDto {
448
518
  reaction: string;
449
519
  }
520
+ export interface CreateDashboardDto {
521
+ title: string;
522
+ description?: string | null;
523
+ order?: number | null;
524
+ status?: DashboardStatus | null;
525
+ meta?: DashboardMeta | null;
526
+ }
450
527
  export type CreateFormViewDto = CreateViewDto & {
451
528
  heading?: string | null;
452
529
  subheading?: string | null;
@@ -486,17 +563,22 @@ export interface CreateHookDto {
486
563
  triggerFields?: string[];
487
564
  }
488
565
  export interface CreateHookFullDto {
566
+ kind?: HookFullRequestKind;
489
567
  mode?: HookFullMutationMode;
490
568
  hookId?: string;
491
569
  hook: CreateHookDto;
492
570
  filters?: HookFilterTreeNodeDto[];
571
+ scheduledHook?: CreateScheduledHookInlineDto;
493
572
  }
494
573
  export interface CreateHookFullResponseDto {
574
+ kind: HookFullRequestKind;
495
575
  hook: HookResponseDto;
496
576
  filters: FilterResponseDto[];
577
+ scheduledHook?: ScheduledHookResponseDto;
497
578
  summary: {
498
579
  triggerFieldCount: number;
499
580
  filterNodeCount: number;
581
+ scheduledHookCreated: boolean;
500
582
  };
501
583
  }
502
584
  export type CreateKanbanViewDto = CreateViewDto & {
@@ -535,6 +617,23 @@ export interface CreateRowColorConditionDto {
535
617
  backgroundColor?: string | null;
536
618
  order?: number | null;
537
619
  }
620
+ export interface CreateScheduledHookDto {
621
+ name: string;
622
+ description?: string;
623
+ hookId: string;
624
+ datetimeFieldId: string;
625
+ active?: boolean;
626
+ timeZone?: string;
627
+ meta?: Record<string, unknown>;
628
+ }
629
+ export interface CreateScheduledHookInlineDto {
630
+ name: string;
631
+ description?: string;
632
+ datetimeFieldId: string;
633
+ active?: boolean;
634
+ timeZone?: string;
635
+ meta?: Record<string, unknown>;
636
+ }
538
637
  export interface CreateSourceDto {
539
638
  alias?: string | null;
540
639
  type: SourceType;
@@ -631,6 +730,20 @@ export interface CreateViewSortDto {
631
730
  order?: number | null;
632
731
  pushToTop?: boolean;
633
732
  }
733
+ export interface CreateWidgetDto {
734
+ title: string;
735
+ description?: string | null;
736
+ type: WidgetType;
737
+ fkModelId?: string | null;
738
+ fkViewId?: string | null;
739
+ config?: WidgetConfig | null;
740
+ meta?: WidgetMeta | null;
741
+ row?: number | null;
742
+ col?: number | null;
743
+ sizeX?: number | null;
744
+ sizeY?: number | null;
745
+ order?: number | null;
746
+ }
634
747
  export interface CreateWorkspaceDto {
635
748
  name: string;
636
749
  slug: string;
@@ -645,6 +758,42 @@ export interface CreateWorkspaceNotificationEmailChannelDto {
645
758
  isActive?: boolean;
646
759
  isDefault?: boolean;
647
760
  }
761
+ export type DashboardMeta = {
762
+ theme?: string;
763
+ layoutVersion?: number;
764
+ grid?: {
765
+ columns?: number;
766
+ rowHeight?: number;
767
+ margin?: number;
768
+ };
769
+ background?: {
770
+ color?: string;
771
+ imageUrl?: string;
772
+ };
773
+ };
774
+ export interface DashboardResponseDto {
775
+ id: string;
776
+ fkWorkspaceId: string | null;
777
+ baseId: string | null;
778
+ title: string;
779
+ description: string | null;
780
+ order: number | null;
781
+ status: DashboardStatus | null;
782
+ meta: DashboardMeta | null;
783
+ createdAt: number | null;
784
+ updatedAt: number | null;
785
+ widgets?: WidgetResponseDto[];
786
+ }
787
+ export interface DashboardRuntimeResponseDto {
788
+ dashboard: DashboardResponseDto;
789
+ widgets: WidgetRuntimeResponseDto[];
790
+ }
791
+ export declare enum DashboardStatus {
792
+ ACTIVE = "active",
793
+ INACTIVE = "inactive",
794
+ DRAFT = "draft",
795
+ ARCHIVED = "archived"
796
+ }
648
797
  export interface DuplicateBaseDto {
649
798
  title?: string;
650
799
  }
@@ -895,6 +1044,10 @@ export declare enum HookFullMutationMode {
895
1044
  CREATE = "create",
896
1045
  UPDATE = "update"
897
1046
  }
1047
+ export declare enum HookFullRequestKind {
1048
+ WEBHOOK = "webhook",
1049
+ SCHEDULED_HOOK = "scheduled_hook"
1050
+ }
898
1051
  export declare enum HookHttpMethod {
899
1052
  GET = "GET",
900
1053
  POST = "POST",
@@ -935,6 +1088,7 @@ export declare enum HookOperation {
935
1088
  }
936
1089
  export interface HookResponseDto {
937
1090
  id: string;
1091
+ kind: HookFullRequestKind;
938
1092
  workspaceId?: string | null;
939
1093
  baseId?: string | null;
940
1094
  sourceId?: string | null;
@@ -959,6 +1113,7 @@ export interface HookResponseDto {
959
1113
  active?: boolean | null;
960
1114
  version?: HookVersion | null;
961
1115
  triggerFields: string[];
1116
+ scheduledHook?: ScheduledHookResponseDto | null;
962
1117
  createdAt?: number | null;
963
1118
  updatedAt?: number | null;
964
1119
  }
@@ -1074,6 +1229,10 @@ export interface KanbanViewResponseDto {
1074
1229
  createdAt: number;
1075
1230
  updatedAt: number | null;
1076
1231
  }
1232
+ export type KanbanWidgetConfig = {
1233
+ query: WidgetQuerySpec;
1234
+ groupFieldId: string;
1235
+ };
1077
1236
  export interface LimitOffsetQueryDto {
1078
1237
  limit?: number;
1079
1238
  offset?: number;
@@ -1107,6 +1266,11 @@ export interface ListCommentsQueryDto {
1107
1266
  fkModelId: string;
1108
1267
  rowId: string;
1109
1268
  }
1269
+ export interface ListDashboardsQueryDto {
1270
+ baseId?: string;
1271
+ status?: DashboardStatus;
1272
+ includeWidgets?: boolean;
1273
+ }
1110
1274
  export type ListHookLogsQueryDto = PaginationQueryDto & {
1111
1275
  status?: HookLogStatus;
1112
1276
  event?: AppEvents;
@@ -1145,6 +1309,11 @@ export interface ListViewsQueryDto {
1145
1309
  includeConfig?: boolean;
1146
1310
  includeColumns?: boolean;
1147
1311
  }
1312
+ export type ListWidgetConfig = {
1313
+ query: WidgetQuerySpec;
1314
+ visibleFieldIds?: string[];
1315
+ pageSize?: number;
1316
+ };
1148
1317
  export type ListWorkspaceInvitesQueryDto = PaginationQueryDto & {
1149
1318
  status?: WorkspaceInviteStatus;
1150
1319
  };
@@ -1201,11 +1370,26 @@ export interface MapViewResponseDto {
1201
1370
  createdAt: number;
1202
1371
  updatedAt: number | null;
1203
1372
  }
1373
+ export type MapWidgetConfig = {
1374
+ query: WidgetQuerySpec;
1375
+ latitudeFieldId?: string;
1376
+ longitudeFieldId?: string;
1377
+ geoFieldId?: string;
1378
+ };
1204
1379
  export declare enum MembershipScope {
1205
1380
  WORKSPACE = "workspace",
1206
1381
  BASE = "base",
1207
1382
  TEAM = "team"
1208
1383
  }
1384
+ export type MetricWidgetConfig = {
1385
+ query: WidgetQuerySpec;
1386
+ aggregation: WidgetAggregationSpec;
1387
+ comparison?: {
1388
+ mode: 'previous_period' | 'fixed_target';
1389
+ value?: number;
1390
+ };
1391
+ format?: 'number' | 'currency' | 'percent';
1392
+ };
1209
1393
  export interface PagedResponse<T> {
1210
1394
  list: T[];
1211
1395
  pageInfo: PageInfo;
@@ -1353,6 +1537,13 @@ export interface ReorderColumnItemDto {
1353
1537
  export interface ReorderColumnsDto {
1354
1538
  items: ReorderColumnItemDto[];
1355
1539
  }
1540
+ export interface ReorderDashboardItemDto {
1541
+ dashboardId: string;
1542
+ order: number;
1543
+ }
1544
+ export interface ReorderDashboardsDto {
1545
+ items: ReorderDashboardItemDto[];
1546
+ }
1356
1547
  export interface ReorderTableItemDto {
1357
1548
  tableId: string;
1358
1549
  order: number;
@@ -1363,6 +1554,16 @@ export interface ReorderTablesDto {
1363
1554
  export interface ReorderViewSortsDto {
1364
1555
  sortIds: string[];
1365
1556
  }
1557
+ export interface ReorderWidgetItemDto {
1558
+ widgetId: string;
1559
+ order: number;
1560
+ }
1561
+ export interface ReorderWidgetsDto {
1562
+ items: ReorderWidgetItemDto[];
1563
+ }
1564
+ export interface ReplaceWidgetFiltersDto {
1565
+ filters: WidgetFilterNodeDto[];
1566
+ }
1366
1567
  export interface RequestJoinByInviteLinkDto {
1367
1568
  token: string;
1368
1569
  }
@@ -1393,6 +1594,27 @@ export interface RowColorConfigResponseDto {
1393
1594
  mode: RowColoringMode | null;
1394
1595
  conditions: RowColorConditionResponseDto[];
1395
1596
  }
1597
+ export interface ScheduledHookResponseDto {
1598
+ id: string;
1599
+ workspaceId: string | null;
1600
+ baseId: string | null;
1601
+ tableId: string | null;
1602
+ hookId: string | null;
1603
+ datetimeFieldId: string | null;
1604
+ name: string;
1605
+ description?: string | null;
1606
+ type?: string | null;
1607
+ timeZone?: string | null;
1608
+ trigger?: string | null;
1609
+ meta?: Record<string, unknown> | null;
1610
+ active?: boolean | null;
1611
+ lastExecutedAt?: Date | null;
1612
+ nextExecutionAt?: Date | null;
1613
+ hookTitle?: string | null;
1614
+ datetimeFieldName?: string | null;
1615
+ createdAt?: number | null;
1616
+ updatedAt?: number | null;
1617
+ }
1396
1618
  export interface SecureAttachmentTokenDto {
1397
1619
  ttlSeconds?: number;
1398
1620
  }
@@ -1491,6 +1713,11 @@ export interface TableRefDto {
1491
1713
  tableId?: string;
1492
1714
  tableClientKey?: string;
1493
1715
  }
1716
+ export type TableWidgetConfig = {
1717
+ query: WidgetQuerySpec;
1718
+ visibleFieldIds?: string[];
1719
+ pageSize?: number;
1720
+ };
1494
1721
  export interface TestHookDto {
1495
1722
  hook: CreateHookDto;
1496
1723
  rowId?: string;
@@ -1500,6 +1727,10 @@ export interface TestWorkspaceNotificationEmailChannelDto {
1500
1727
  recipientEmail: string;
1501
1728
  subject?: string;
1502
1729
  }
1730
+ export type TextWidgetConfig = {
1731
+ content: string;
1732
+ format: 'plain' | 'markdown';
1733
+ };
1503
1734
  export type TokenPermissions = {
1504
1735
  actions?: PermissionAction[];
1505
1736
  scopes?: string[];
@@ -1527,6 +1758,7 @@ export type UpdateCalendarViewDto = Partial<CalendarViewConfigDto>;
1527
1758
  export interface UpdateCommentDto {
1528
1759
  commentText: string;
1529
1760
  }
1761
+ export type UpdateDashboardDto = CreateDashboardDto;
1530
1762
  export type UpdateFormViewDto = Partial<FormViewConfigDto>;
1531
1763
  export type UpdateGalleryViewDto = Partial<GalleryViewConfigDto>;
1532
1764
  export type UpdateGridViewDto = Partial<GridViewConfigDto>;
@@ -1542,6 +1774,7 @@ export type UpdateRowColorConditionDto = Partial<CreateRowColorConditionDto>;
1542
1774
  export interface UpdateRowColorModeDto {
1543
1775
  rowColoringMode: RowColoringMode;
1544
1776
  }
1777
+ export type UpdateScheduledHookDto = Partial<CreateScheduledHookDto>;
1545
1778
  export type UpdateSourceDto = Partial<CreateSourceDto>;
1546
1779
  export interface UpdateTableDto {
1547
1780
  name?: string;
@@ -1566,6 +1799,13 @@ export type UpdateViewColumnItemDto = UpdateViewColumnDto & {
1566
1799
  export type UpdateViewDto = Partial<CreateViewDto>;
1567
1800
  export type UpdateViewFilterDto = Partial<CreateViewFilterDto>;
1568
1801
  export type UpdateViewSortDto = Partial<CreateViewSortDto>;
1802
+ export type UpdateWidgetDto = CreateWidgetDto;
1803
+ export interface UpdateWidgetLayoutDto {
1804
+ row?: number | null;
1805
+ col?: number | null;
1806
+ sizeX?: number | null;
1807
+ sizeY?: number | null;
1808
+ }
1569
1809
  export type UpdateWorkspaceDto = Partial<CreateWorkspaceDto>;
1570
1810
  export interface UpdateWorkspaceInviteLinkSettingsDto {
1571
1811
  allowJoinViaInviteLink?: boolean;
@@ -1628,6 +1868,93 @@ export interface WarmupCacheDto {
1628
1868
  tableIds?: string[];
1629
1869
  ttlSeconds?: number;
1630
1870
  }
1871
+ export type WidgetAggregationFunction = 'count' | 'sum' | 'avg' | 'min' | 'max';
1872
+ export type WidgetAggregationSpec = {
1873
+ function: WidgetAggregationFunction;
1874
+ fieldId?: string;
1875
+ distinct?: boolean;
1876
+ };
1877
+ export type WidgetConfig = ChartWidgetConfig | MetricWidgetConfig | TextWidgetConfig | TableWidgetConfig | ListWidgetConfig | CalendarWidgetConfig | KanbanWidgetConfig | MapWidgetConfig;
1878
+ export type WidgetDatePreset = 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'this_month' | 'last_month' | 'this_quarter' | 'this_year';
1879
+ export type WidgetFilter = FilterPayload | FilterPayload[];
1880
+ export interface WidgetFilterNodeDto {
1881
+ fieldId?: string | null;
1882
+ comparisonOp?: FilterComparisonOp | null;
1883
+ comparisonSubOp?: FilterComparisonSubOp | null;
1884
+ value?: unknown;
1885
+ isGroup?: boolean;
1886
+ logicalOp?: FilterLogicalOp | null;
1887
+ order?: number | null;
1888
+ children?: WidgetFilterNodeDto[];
1889
+ }
1890
+ export type WidgetMeta = {
1891
+ icon?: string;
1892
+ color?: string;
1893
+ refreshIntervalSec?: number;
1894
+ lastEditedBy?: string | number;
1895
+ };
1896
+ export type WidgetQuerySpec = {
1897
+ modelId: string;
1898
+ viewId?: string;
1899
+ filters?: WidgetFilter;
1900
+ groupBy?: string[];
1901
+ sorts?: WidgetSortSpec[];
1902
+ limit?: number;
1903
+ dateRangeFieldId?: string;
1904
+ datePreset?: WidgetDatePreset;
1905
+ };
1906
+ export interface WidgetResponseDto {
1907
+ id: string;
1908
+ fkWorkspaceId: string | null;
1909
+ baseId: string | null;
1910
+ fkDashboardId: string | null;
1911
+ title: string;
1912
+ description: string | null;
1913
+ type: WidgetType;
1914
+ config: WidgetConfig | null;
1915
+ row: number | null;
1916
+ col: number | null;
1917
+ sizeX: number | null;
1918
+ sizeY: number | null;
1919
+ fkModelId: string | null;
1920
+ fkViewId: string | null;
1921
+ meta: WidgetMeta | null;
1922
+ order: number | null;
1923
+ createdAt: number | null;
1924
+ updatedAt: number | null;
1925
+ filters?: FilterResponseDto[];
1926
+ }
1927
+ export interface WidgetRuntimeResolvedQueryResponseDto {
1928
+ modelId: string;
1929
+ viewId?: string | null;
1930
+ filters: Record<string, unknown>[];
1931
+ sorts: Array<{
1932
+ fieldId: string;
1933
+ direction: string;
1934
+ }>;
1935
+ groupBy?: string[];
1936
+ limit?: number | null;
1937
+ }
1938
+ export interface WidgetRuntimeResponseDto {
1939
+ widget: WidgetResponseDto;
1940
+ runtimeType: string;
1941
+ resolvedQuery: WidgetRuntimeResolvedQueryResponseDto;
1942
+ data: Record<string, unknown>;
1943
+ }
1944
+ export type WidgetSortSpec = {
1945
+ fieldId: string;
1946
+ direction: 'asc' | 'desc';
1947
+ };
1948
+ export declare enum WidgetType {
1949
+ CHART = "chart",
1950
+ METRIC = "metric",
1951
+ TEXT = "text",
1952
+ TABLE = "table",
1953
+ LIST = "list",
1954
+ CALENDAR = "calendar",
1955
+ KANBAN = "kanban",
1956
+ MAP = "map"
1957
+ }
1631
1958
  export interface WorkspaceInviteLinkPreviewResponseDto {
1632
1959
  workspaceId: string;
1633
1960
  workspaceName: string;
@@ -1816,13 +2143,17 @@ export type ANY_OF = unknown;
1816
2143
  export type APIS_CREATED = unknown;
1817
2144
  export type APPEND = unknown;
1818
2145
  export type APPROVED = unknown;
2146
+ export type AREA = unknown;
1819
2147
  export type ATTACHMENT_UPLOAD = unknown;
2148
+ export type BAR = unknown;
1820
2149
  export type BASE_DUPLICATE_COMPLETE = unknown;
1821
2150
  export type BASE_DUPLICATE_FAIL = unknown;
1822
2151
  export type BASE_DUPLICATE_START = unknown;
1823
2152
  export type BETWEEN = unknown;
1824
2153
  export type BLANK = unknown;
2154
+ export type BUBBLE = unknown;
1825
2155
  export type CANCELED = unknown;
2156
+ export type CHART = unknown;
1826
2157
  export type CHECKED = unknown;
1827
2158
  export type COLUMN_CREATE = unknown;
1828
2159
  export type COLUMN_DELETE = unknown;
@@ -1830,6 +2161,7 @@ export type COLUMN_DUPLICATE_COMPLETE = unknown;
1830
2161
  export type COLUMN_DUPLICATE_FAIL = unknown;
1831
2162
  export type COLUMN_DUPLICATE_START = unknown;
1832
2163
  export type COLUMN_UPDATE = unknown;
2164
+ export type COMBO = unknown;
1833
2165
  export type COUNT_ASC = unknown;
1834
2166
  export type COUNT_DESC = unknown;
1835
2167
  export type CSV = unknown;
@@ -1839,6 +2171,7 @@ export type DASHBOARD_DUPLICATE_START = unknown;
1839
2171
  export type DAYS_AGO = unknown;
1840
2172
  export type DAYS_FROM_NOW = unknown;
1841
2173
  export type DEV = unknown;
2174
+ export type DONUT = unknown;
1842
2175
  export type EMPTY = unknown;
1843
2176
  export type EQ = unknown;
1844
2177
  export type EXACT_DATE = unknown;
@@ -1856,6 +2189,7 @@ export type FORM_CREATE = unknown;
1856
2189
  export type FORM_DELETE = unknown;
1857
2190
  export type FORM_DUPLICATE = unknown;
1858
2191
  export type FORM_UPDATE = unknown;
2192
+ export type FUNNEL = unknown;
1859
2193
  export type GALLERY_CREATE = unknown;
1860
2194
  export type GALLERY_DELETE = unknown;
1861
2195
  export type GALLERY_DUPLICATE = unknown;
@@ -1870,6 +2204,7 @@ export type GROUP_BY_EQ = unknown;
1870
2204
  export type GROUP_BY_NULL = unknown;
1871
2205
  export type GT = unknown;
1872
2206
  export type GTE = unknown;
2207
+ export type HEATMAP = unknown;
1873
2208
  export type IMAGE_UPLOAD = unknown;
1874
2209
  export type IS = unknown;
1875
2210
  export type IS_NOT = unknown;
@@ -1881,6 +2216,8 @@ export type KANBAN_UPDATE = unknown;
1881
2216
  export type KNOWLEDGE_FILE = unknown;
1882
2217
  export type LEFT = unknown;
1883
2218
  export type LIKE = unknown;
2219
+ export type LINE = unknown;
2220
+ export type LIST = unknown;
1884
2221
  export type LT = unknown;
1885
2222
  export type LTE = unknown;
1886
2223
  export type MAP_CREATE = unknown;
@@ -1891,6 +2228,7 @@ export type MARIADB = unknown;
1891
2228
  export type MEDIA = unknown;
1892
2229
  export type MEDIUM = unknown;
1893
2230
  export type META_DIFF_SYNC = unknown;
2231
+ export type METRIC = unknown;
1894
2232
  export type MONGODB = unknown;
1895
2233
  export type MSSQL = unknown;
1896
2234
  export type MYSQL = unknown;
@@ -1924,9 +2262,11 @@ export type PAST_MONTH = unknown;
1924
2262
  export type PAST_NUMBER_OF_DAYS = unknown;
1925
2263
  export type PAST_WEEK = unknown;
1926
2264
  export type PAST_YEAR = unknown;
2265
+ export type PIE = unknown;
1927
2266
  export type PLUGIN_INSTALL = unknown;
1928
2267
  export type PLUGIN_TEST = unknown;
1929
2268
  export type PLUGIN_UNINSTALL = unknown;
2269
+ export type POLAR_AREA = unknown;
1930
2270
  export type POSTGRESQL = unknown;
1931
2271
  export type PROD = unknown;
1932
2272
  export type PROJECT_CLONE = unknown;
@@ -1934,6 +2274,7 @@ export type PROJECT_INVITE = unknown;
1934
2274
  export type PROJECT_USER_DELETE = unknown;
1935
2275
  export type PROJECT_USER_RESEND_INVITE = unknown;
1936
2276
  export type PROJECT_USER_UPDATE = unknown;
2277
+ export type RADAR = unknown;
1937
2278
  export type REJECTED = unknown;
1938
2279
  export type RELATION_CREATE = unknown;
1939
2280
  export type RELATION_DELETE = unknown;
@@ -1941,6 +2282,8 @@ export type REVOKED = unknown;
1941
2282
  export type RIGHT = unknown;
1942
2283
  export type ROW_USER_MENTION = unknown;
1943
2284
  export type RUNNING = unknown;
2285
+ export type SCATTER = unknown;
2286
+ export type SCHEDULED_HOOK = unknown;
1944
2287
  export type SCRIPT = unknown;
1945
2288
  export type SCRIPT_CREATE = unknown;
1946
2289
  export type SCRIPT_DELETE = unknown;
@@ -1963,6 +2306,8 @@ export type SORT_CREATE = unknown;
1963
2306
  export type SORT_DELETE = unknown;
1964
2307
  export type SORT_UPDATE = unknown;
1965
2308
  export type SQLITE = unknown;
2309
+ export type STACKED_AREA = unknown;
2310
+ export type STACKED_BAR = unknown;
1966
2311
  export type STAGING = unknown;
1967
2312
  export type SUCCESS = unknown;
1968
2313
  export type SYNC_SOURCE_CREATE = unknown;
@@ -1975,6 +2320,7 @@ export type TALL = unknown;
1975
2320
  export type TEAM = unknown;
1976
2321
  export type TODAY = unknown;
1977
2322
  export type TOMORROW = unknown;
2323
+ export type TREEMAP = unknown;
1978
2324
  export type UI_ACL = unknown;
1979
2325
  export type UI_ACL_UPDATE = unknown;
1980
2326
  export type USER_DELETE = unknown;
@@ -2216,6 +2562,59 @@ export interface CommentsUpdateCommentParams {
2216
2562
  commentId: string;
2217
2563
  body: UpdateCommentDto;
2218
2564
  }
2565
+ export interface DashboardsCreateDashboardParams {
2566
+ body: CreateDashboardDto;
2567
+ }
2568
+ export interface DashboardsCreateWidgetParams {
2569
+ dashboardId: string;
2570
+ body: CreateWidgetDto;
2571
+ }
2572
+ export interface DashboardsDeleteDashboardParams {
2573
+ dashboardId: string;
2574
+ }
2575
+ export interface DashboardsDeleteWidgetParams {
2576
+ widgetId: string;
2577
+ }
2578
+ export interface DashboardsGetDashboardRuntimeParams {
2579
+ dashboardId: string;
2580
+ }
2581
+ export interface DashboardsGetWidgetFiltersParams {
2582
+ widgetId: string;
2583
+ }
2584
+ export interface DashboardsGetWidgetRuntimeParams {
2585
+ widgetId: string;
2586
+ }
2587
+ export interface DashboardsListChartTypesParams {
2588
+ _?: never;
2589
+ }
2590
+ export interface DashboardsListDashboardsParams {
2591
+ query?: ListDashboardsQueryDto;
2592
+ }
2593
+ export interface DashboardsListWidgetsParams {
2594
+ dashboardId: string;
2595
+ }
2596
+ export interface DashboardsReorderDashboardsParams {
2597
+ body: ReorderDashboardsDto;
2598
+ }
2599
+ export interface DashboardsReorderWidgetsParams {
2600
+ body: ReorderWidgetsDto;
2601
+ }
2602
+ export interface DashboardsReplaceWidgetFiltersParams {
2603
+ widgetId: string;
2604
+ body: ReplaceWidgetFiltersDto;
2605
+ }
2606
+ export interface DashboardsUpdateDashboardParams {
2607
+ dashboardId: string;
2608
+ body: UpdateDashboardDto;
2609
+ }
2610
+ export interface DashboardsUpdateWidgetLayoutParams {
2611
+ widgetId: string;
2612
+ body: UpdateWidgetLayoutDto;
2613
+ }
2614
+ export interface DashboardsUpdateWidgetParams {
2615
+ widgetId: string;
2616
+ body: UpdateWidgetDto;
2617
+ }
2219
2618
  export interface DataExportsStartExportParams {
2220
2619
  tableId: string;
2221
2620
  body: StartExportDto;
@@ -2242,6 +2641,10 @@ export interface DataTableAggregateRecordsParams {
2242
2641
  tableId: string;
2243
2642
  query?: RecordAggregateQueryDto;
2244
2643
  }
2644
+ export interface DataTableBulkAggregateRecordsParams {
2645
+ tableId: string;
2646
+ body: BulkAggregateDto;
2647
+ }
2245
2648
  export interface DataTableBulkDataListParams {
2246
2649
  tableId: string;
2247
2650
  body: BulkDataListDto;
@@ -2549,6 +2952,23 @@ export interface RowColorUpdateRowColorModeParams {
2549
2952
  viewId: string;
2550
2953
  body: UpdateRowColorModeDto;
2551
2954
  }
2955
+ export interface ScheduledHooksCreateScheduledHookParams {
2956
+ tableId: string;
2957
+ body: CreateScheduledHookDto;
2958
+ }
2959
+ export interface ScheduledHooksDeleteScheduledHookParams {
2960
+ scriptId: string;
2961
+ }
2962
+ export interface ScheduledHooksGetScheduledHookParams {
2963
+ scriptId: string;
2964
+ }
2965
+ export interface ScheduledHooksListScheduledHooksParams {
2966
+ tableId: string;
2967
+ }
2968
+ export interface ScheduledHooksUpdateScheduledHookParams {
2969
+ scriptId: string;
2970
+ body: UpdateScheduledHookDto;
2971
+ }
2552
2972
  export interface SortsCreateSortParams {
2553
2973
  viewId: string;
2554
2974
  body: CreateViewSortDto;