@redonvn/redai-backend-api-sdk 0.5.40 → 0.5.42

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.
@@ -151,7 +151,7 @@ export type BulkDataListDto = LimitOffsetQueryDto & {
151
151
  applyViewFilters?: JsonValue;
152
152
  };
153
153
  export type BulkGroupDto = BulkDataListDto & {
154
- groupFields?: GroupFieldDto[];
154
+ groupFields?: (GroupFieldDto)[];
155
155
  };
156
156
  export type BUSINESS = unknown;
157
157
  export type BUSINESS_CREATE = unknown;
@@ -177,6 +177,21 @@ export type CalendarWidgetConfig = {
177
177
  export type CANCELLED = unknown;
178
178
  export type CARD = unknown;
179
179
  export type CASCADE = unknown;
180
+ export interface CategoricalChartBucketDto {
181
+ key: string;
182
+ label: string;
183
+ groups: (ChartRuntimeGroupValueDto)[];
184
+ metrics: {
185
+ [key: string]: number | null;
186
+ };
187
+ }
188
+ export interface CategoricalChartRuntimeDto {
189
+ chartType: ChartType;
190
+ family: 'categorical' | 'time-series' | 'radial';
191
+ categories: (string)[];
192
+ buckets: (CategoricalChartBucketDto)[];
193
+ series: (ChartRuntimeSeriesDto)[];
194
+ }
180
195
  export type CENTER = unknown;
181
196
  export type CHAR = unknown;
182
197
  export type CHART = unknown;
@@ -186,6 +201,22 @@ export type ChartAxisSpec = {
186
201
  timeBucket?: 'day' | 'week' | 'month' | 'quarter';
187
202
  label?: string;
188
203
  };
204
+ export interface ChartRuntimeGroupValueDto {
205
+ fieldId: string;
206
+ value?: unknown;
207
+ }
208
+ export interface ChartRuntimePointDto {
209
+ x: string;
210
+ y?: number | null;
211
+ groups: (ChartRuntimeGroupValueDto)[];
212
+ }
213
+ export interface ChartRuntimeSeriesDto {
214
+ key: string;
215
+ label: string;
216
+ renderAs?: 'bar' | 'line' | 'area';
217
+ color?: string | null;
218
+ points: (ChartRuntimePointDto)[];
219
+ }
189
220
  export type ChartSeriesSpec = {
190
221
  label: string;
191
222
  aggregation: WidgetAggregationSpec;
@@ -247,47 +278,51 @@ export type COLLABORATIVE = unknown;
247
278
  export interface ColumnResponseDto {
248
279
  id: string;
249
280
  tableId: string;
250
- workspaceId: string | null;
251
- baseId: string | null;
252
- sourceId: string | null;
281
+ workspaceId?: string | null;
282
+ baseId?: string | null;
283
+ sourceId?: string | null;
253
284
  name: string;
254
285
  keyName: string;
255
- description: string | null;
256
- columnName: string | null;
286
+ description?: string | null;
287
+ columnName?: string | null;
257
288
  type: FieldType;
258
- order: number | null;
259
- isPrimary: boolean | null;
260
- isPrimaryValue: boolean | null;
261
- isRequired: boolean | null;
262
- isUnique: boolean | null;
263
- isAutoIncrement: boolean | null;
264
- isUnsigned: boolean | null;
265
- isSystem: boolean | null;
266
- isReadonly: boolean | null;
267
- isVirtual: boolean | null;
268
- uiDataType: string | null;
269
- dataType: string | null;
270
- numericPrecision: string | null;
271
- numericScale: string | null;
272
- characterLength: string | null;
273
- columnDefault: string | null;
274
- columnType: string | null;
275
- columnComment: string | null;
276
- columnSequenceName: string | null;
277
- dataTypeExtra: string | null;
278
- dataTypeExtraPrecision: string | null;
279
- dataTypeExtraScale: string | null;
280
- autoUpdated: boolean | null;
281
- config: FieldConfig | null;
282
- meta: FieldMeta | null;
283
- validation: string | null;
284
- externalColumnName: string | null;
289
+ order?: number | null;
290
+ isPrimary?: boolean | null;
291
+ isPrimaryValue?: boolean | null;
292
+ isRequired?: boolean | null;
293
+ isUnique?: boolean | null;
294
+ isAutoIncrement?: boolean | null;
295
+ isUnsigned?: boolean | null;
296
+ isSystem?: boolean | null;
297
+ isReadonly?: boolean | null;
298
+ isVirtual?: boolean | null;
299
+ uiDataType?: string | null;
300
+ dataType?: string | null;
301
+ numericPrecision?: string | null;
302
+ numericScale?: string | null;
303
+ characterLength?: string | null;
304
+ columnDefault?: string | null;
305
+ columnType?: string | null;
306
+ columnComment?: string | null;
307
+ columnSequenceName?: string | null;
308
+ dataTypeExtra?: string | null;
309
+ dataTypeExtraPrecision?: string | null;
310
+ dataTypeExtraScale?: string | null;
311
+ autoUpdated?: boolean | null;
312
+ config?: {
313
+ [key: string]: unknown;
314
+ };
315
+ meta?: {
316
+ [key: string]: unknown;
317
+ };
318
+ validation?: string | null;
319
+ externalColumnName?: string | null;
285
320
  externalDataType: ExternalDataType | null;
286
- createdAt: number | null;
287
- updatedAt: number | null;
288
- relationConfig?: RelationConfigResponseDto | null;
289
- lookupConfig?: LookupConfigResponseDto | null;
290
- rollupConfig?: RollupConfigResponseDto | null;
321
+ createdAt?: number | null;
322
+ updatedAt?: number | null;
323
+ relationConfig?: RelationConfigResponseDto;
324
+ lookupConfig?: LookupConfigResponseDto;
325
+ rollupConfig?: RollupConfigResponseDto;
291
326
  inverseFieldId?: string | null;
292
327
  inverseFieldKey?: string | null;
293
328
  inverseFieldName?: string | null;
@@ -353,12 +388,12 @@ export interface CreateSharedBaseDto {
353
388
  }
354
389
  export interface CreateSharedDashboardDto {
355
390
  uuid?: string;
356
- password?: string | null;
391
+ password?: unknown | null;
357
392
  allowCopy?: boolean;
358
393
  allowDownload?: boolean;
359
394
  allowShare?: boolean;
360
395
  showTheme?: boolean;
361
- expiryAt?: string | null;
396
+ expiryAt?: unknown | null;
362
397
  meta?: Record<string, JsonValue>;
363
398
  }
364
399
  export type CreateTableFieldDto = CreateColumnDto & {
@@ -407,6 +442,7 @@ export type DASHBOARD_CREATE = unknown;
407
442
  export type DASHBOARD_DELETE = unknown;
408
443
  export type DASHBOARD_UPDATE = unknown;
409
444
  export type DashboardMeta = {
445
+ icon?: string;
410
446
  theme?: string;
411
447
  layoutVersion?: number;
412
448
  grid?: {
@@ -421,16 +457,18 @@ export type DashboardMeta = {
421
457
  };
422
458
  export interface DashboardResponseDto {
423
459
  id: string;
424
- fkWorkspaceId: string | null;
425
- baseId: string | null;
460
+ fkWorkspaceId?: string | null;
461
+ baseId?: string | null;
426
462
  title: string;
427
- description: string | null;
428
- order: number | null;
463
+ description?: string | null;
464
+ order?: number | null;
429
465
  status: DashboardStatus | null;
430
- meta: DashboardMeta | null;
431
- createdAt: number | null;
432
- updatedAt: number | null;
433
- widgets?: WidgetResponseDto[];
466
+ meta?: {
467
+ [key: string]: unknown;
468
+ };
469
+ createdAt?: number | null;
470
+ updatedAt?: number | null;
471
+ widgets?: (WidgetResponseDto)[];
434
472
  }
435
473
  export declare enum DashboardStatus {
436
474
  ACTIVE = "active",
@@ -581,6 +619,7 @@ export type FAQ = unknown;
581
619
  export type FEMALE = unknown;
582
620
  export type FIELD = unknown;
583
621
  export interface FieldConfig {
622
+ defaultValue?: unknown;
584
623
  options?: {
585
624
  id: string;
586
625
  label: string;
@@ -650,6 +689,19 @@ export type FieldMeta = {
650
689
  pattern?: string;
651
690
  message?: string;
652
691
  };
692
+ syncState?: 'active' | 'stale';
693
+ externalRelationManaged?: boolean;
694
+ externalRelationRole?: 'owner' | 'inverse';
695
+ externalForeignKeyConstraintName?: string;
696
+ externalForeignKeyColumnName?: string;
697
+ externalReferencedSchemaName?: string;
698
+ externalReferencedTableName?: string;
699
+ externalReferencedColumnName?: string;
700
+ relationAutoInverse?: boolean;
701
+ relationInverseOfFieldId?: string;
702
+ relationInverseType?: string;
703
+ relationPrimaryKeyName?: string;
704
+ systemKind?: string;
653
705
  };
654
706
  export interface FieldResponseMapping {
655
707
  jsonPath: string;
@@ -801,16 +853,19 @@ export type FilterLogicalPayload = {
801
853
  export type FilterPayload = FilterConditionPayload | FilterGroupPayload | FilterLogicalPayload;
802
854
  export interface FilterResponseDto {
803
855
  id: string;
804
- viewId: string | null;
805
- parentId: string | null;
806
- fieldId: string | null;
807
- operator: string | null;
808
- value: JsonValue | null;
809
- order: number | null;
810
- isGroup: boolean | null;
811
- createdAt: number | null;
812
- updatedAt: number | null;
813
- children?: FilterResponseDto[];
856
+ viewId?: string | null;
857
+ parentId?: string | null;
858
+ fieldId?: string | null;
859
+ operator?: string | null;
860
+ comparisonSubOp?: string | null;
861
+ value?: {
862
+ [key: string]: unknown;
863
+ };
864
+ order?: number | null;
865
+ isGroup?: boolean | null;
866
+ createdAt?: number | null;
867
+ updatedAt?: number | null;
868
+ children?: FilterResponseDto;
814
869
  }
815
870
  export type FLOAT = unknown;
816
871
  export declare enum FlowNodeType {
@@ -818,6 +873,10 @@ export declare enum FlowNodeType {
818
873
  STEP = "step",
819
874
  END = "end"
820
875
  }
876
+ export interface ForbiddenWidgetRuntimeDto {
877
+ family: 'forbidden';
878
+ message: string;
879
+ }
821
880
  export type FORM = unknown;
822
881
  export type FORM_DATA = unknown;
823
882
  export type FORMATTED_STRING = unknown;
@@ -832,6 +891,17 @@ export type FormViewMeta = ViewMeta & {
832
891
  };
833
892
  export type FRIDAY = unknown;
834
893
  export type FUNNEL = unknown;
894
+ export interface FunnelChartRuntimeDto {
895
+ chartType: 'funnel';
896
+ family: 'funnel';
897
+ steps: (FunnelStepDto)[];
898
+ }
899
+ export interface FunnelStepDto {
900
+ key: string;
901
+ label: string;
902
+ value?: number | null;
903
+ groups: (ChartRuntimeGroupValueDto)[];
904
+ }
835
905
  export type GALLERY = unknown;
836
906
  export type GalleryViewMeta = ViewMeta & {
837
907
  cardSize?: 'small' | 'medium' | 'large';
@@ -897,6 +967,21 @@ export declare enum GridColumnAlign {
897
967
  CENTER = "center",
898
968
  RIGHT = "right"
899
969
  }
970
+ export interface GridEmbedWidgetRuntimeDto {
971
+ family: 'grid-embed';
972
+ widgetType: 'table' | 'list';
973
+ tableId: string;
974
+ viewId?: string | null;
975
+ embedUrl: string;
976
+ visibleFieldIds?: (string)[];
977
+ pageSize?: number | null;
978
+ filters: ({
979
+ [key: string]: unknown;
980
+ })[];
981
+ sorts: ({
982
+ [key: string]: unknown;
983
+ })[];
984
+ }
900
985
  export declare enum GridRowHeight {
901
986
  SHORT = "short",
902
987
  MEDIUM = "medium",
@@ -926,6 +1011,17 @@ export type HDB_BANK = unknown;
926
1011
  export type HEAD = unknown;
927
1012
  export type HEALTHY = unknown;
928
1013
  export type HEATMAP = unknown;
1014
+ export interface HeatmapCellDto {
1015
+ x?: unknown;
1016
+ y?: unknown;
1017
+ value?: number | null;
1018
+ groups: (ChartRuntimeGroupValueDto)[];
1019
+ }
1020
+ export interface HeatmapChartRuntimeDto {
1021
+ chartType: 'heatmap';
1022
+ family: 'heatmap';
1023
+ cells: (HeatmapCellDto)[];
1024
+ }
929
1025
  export type HOOK = unknown;
930
1026
  export type HOURLY = unknown;
931
1027
  export interface HourlyScheduleConfig {
@@ -934,15 +1030,7 @@ export interface HourlyScheduleConfig {
934
1030
  }
935
1031
  export type HSTORE = unknown;
936
1032
  export type HTTP = unknown;
937
- export declare enum HttpMethod {
938
- GET = "GET",
939
- POST = "POST",
940
- PUT = "PUT",
941
- PATCH = "PATCH",
942
- DELETE = "DELETE",
943
- HEAD = "HEAD",
944
- OPTIONS = "OPTIONS"
945
- }
1033
+ export type HttpMethod = 'GET' | 'PATCH' | 'PUT';
946
1034
  export interface HttpUsageConfig {
947
1035
  headers?: Record<string, string>;
948
1036
  params?: Record<string, string>;
@@ -1086,7 +1174,7 @@ export type JsonObject = {
1086
1174
  [key: string]: JsonValue;
1087
1175
  };
1088
1176
  export type JsonPrimitive = string | number | boolean | null;
1089
- export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
1177
+ export type JsonValue = JsonPrimitive | JsonArray | JsonObject;
1090
1178
  export type KANBAN = unknown;
1091
1179
  export type KanbanViewMeta = ViewMeta & {
1092
1180
  laneOrder?: string[];
@@ -1115,6 +1203,7 @@ export type ListWidgetConfig = {
1115
1203
  visibleFieldIds?: string[];
1116
1204
  pageSize?: number;
1117
1205
  };
1206
+ export type LLM_CUSTOM = unknown;
1118
1207
  export type Lo = unknown;
1119
1208
  export type LOCKED = unknown;
1120
1209
  export type LONG_TEXT = unknown;
@@ -1125,8 +1214,8 @@ export interface LookupConfigDto {
1125
1214
  lookupFieldId: string;
1126
1215
  }
1127
1216
  export interface LookupConfigResponseDto {
1128
- relationFieldId: string | null;
1129
- lookupFieldId: string | null;
1217
+ relationFieldId?: string | null;
1218
+ lookupFieldId?: string | null;
1130
1219
  }
1131
1220
  export type LOWERCASE = unknown;
1132
1221
  export type LT = unknown;
@@ -1182,7 +1271,9 @@ export declare enum MergeStrategy {
1182
1271
  REPLACE = "REPLACE",
1183
1272
  MERGE = "MERGE"
1184
1273
  }
1185
- export type Metadata = any;
1274
+ export interface Metadata {
1275
+ [key: string]: JsonValue;
1276
+ }
1186
1277
  export type METRIC = unknown;
1187
1278
  export type MetricWidgetConfig = {
1188
1279
  query: WidgetQuerySpec;
@@ -1193,6 +1284,17 @@ export type MetricWidgetConfig = {
1193
1284
  };
1194
1285
  format?: 'number' | 'currency' | 'percent';
1195
1286
  };
1287
+ export interface MetricWidgetRuntimeDto {
1288
+ family: 'metric';
1289
+ value?: number | null;
1290
+ comparisonValue?: number | null;
1291
+ delta?: number | null;
1292
+ previousValue?: number | null;
1293
+ format: 'number' | 'currency' | 'percent';
1294
+ aggregation: {
1295
+ [key: string]: unknown;
1296
+ };
1297
+ }
1196
1298
  export type MIN = unknown;
1197
1299
  export type MODAL = unknown;
1198
1300
  export type MODELS = unknown;
@@ -1287,7 +1389,7 @@ export type PageInfo = {
1287
1389
  offset: number;
1288
1390
  };
1289
1391
  export interface PaginatedResult<T> {
1290
- items: T[];
1392
+ items: (unknown)[];
1291
1393
  meta: PaginationMeta;
1292
1394
  }
1293
1395
  export type PAGINATION = unknown;
@@ -1348,6 +1450,7 @@ export declare enum ProviderEnum {
1348
1450
  FACEBOOK_PERSONAL = "FACEBOOK_PERSONAL",
1349
1451
  FACEBOOK_ADS = "FACEBOOK_ADS",
1350
1452
  FACEBOOK_BUSINESS = "FACEBOOK_BUSINESS",
1453
+ TIKTOK = "TIKTOK",
1351
1454
  WEBSITE = "WEBSITE",
1352
1455
  ZALO_OA = "ZALO_OA",
1353
1456
  ZALO_PERSONAL = "ZALO_PERSONAL",
@@ -1375,6 +1478,7 @@ export declare enum ProviderEnum {
1375
1478
  SCB_BANK = "SCB_BANK",
1376
1479
  NONE = "NONE",
1377
1480
  CUSTOM = "CUSTOM",
1481
+ LLM_CUSTOM = "LLM_CUSTOM",
1378
1482
  EMAIL_SMTP = "EMAIL_SMTP",
1379
1483
  EMAIL_TWILIO_SENDGRID = "EMAIL_TWILIO_SENDGRID",
1380
1484
  EMAIL_GMAIL = "EMAIL_GMAIL",
@@ -1474,20 +1578,20 @@ export interface RelationConfigDto {
1474
1578
  }
1475
1579
  export interface RelationConfigResponseDto {
1476
1580
  relationType: RelationType;
1477
- relatedTableId: string | null;
1478
- relatedBaseId: string | null;
1479
- relatedSourceId: string | null;
1581
+ relatedTableId?: string | null;
1582
+ relatedBaseId?: string | null;
1583
+ relatedSourceId?: string | null;
1480
1584
  onUpdate: ReferentialAction | null;
1481
1585
  onDelete: ReferentialAction | null;
1482
- isVirtual: boolean | null;
1483
- targetViewId: string | null;
1484
- parentFieldId: string | null;
1485
- childFieldId: string | null;
1486
- mmTableId: string | null;
1487
- mmBaseId: string | null;
1488
- mmSourceId: string | null;
1489
- mmChildFieldId: string | null;
1490
- mmParentFieldId: string | null;
1586
+ isVirtual?: boolean | null;
1587
+ targetViewId?: string | null;
1588
+ parentFieldId?: string | null;
1589
+ childFieldId?: string | null;
1590
+ mmTableId?: string | null;
1591
+ mmBaseId?: string | null;
1592
+ mmSourceId?: string | null;
1593
+ mmChildFieldId?: string | null;
1594
+ mmParentFieldId?: string | null;
1491
1595
  }
1492
1596
  export interface RelationFieldRefDto {
1493
1597
  fieldId?: string;
@@ -1509,8 +1613,8 @@ export interface RollupConfigDto {
1509
1613
  rollupFunction?: RollupFunction | null;
1510
1614
  }
1511
1615
  export interface RollupConfigResponseDto {
1512
- relationFieldId: string | null;
1513
- rollupFieldId: string | null;
1616
+ relationFieldId?: string | null;
1617
+ rollupFieldId?: string | null;
1514
1618
  rollupFunction: RollupFunction | null;
1515
1619
  }
1516
1620
  export declare enum RollupFunction {
@@ -1531,11 +1635,27 @@ export type RUNNING = unknown;
1531
1635
  export type S3_KEY = unknown;
1532
1636
  export type SATURDAY = unknown;
1533
1637
  export type SCATTER = unknown;
1638
+ export interface ScatterChartPointDto {
1639
+ id?: string | null;
1640
+ x?: unknown;
1641
+ y?: unknown;
1642
+ size?: unknown;
1643
+ category?: unknown;
1644
+ breakdown?: unknown;
1645
+ }
1646
+ export interface ScatterChartRuntimeDto {
1647
+ chartType: ChartType;
1648
+ family: 'scatter';
1649
+ points: (ScatterChartPointDto)[];
1650
+ pageInfo?: {
1651
+ [key: string]: unknown;
1652
+ };
1653
+ }
1534
1654
  export type SCB_BANK = unknown;
1535
1655
  export type SEARCH = unknown;
1536
1656
  export type SELECT = unknown;
1537
1657
  export interface SendSharedDashboardEmailDto {
1538
- recipients: string[];
1658
+ recipients: (string)[];
1539
1659
  subject?: string;
1540
1660
  message?: string;
1541
1661
  }
@@ -1573,18 +1693,20 @@ export interface SharedBasesUpdateSharedBaseParams {
1573
1693
  export interface SharedDashboardResponseDto {
1574
1694
  id: string;
1575
1695
  dashboardId: string;
1576
- workspaceId: string | null;
1577
- baseId: string | null;
1696
+ workspaceId?: string | null;
1697
+ baseId?: string | null;
1578
1698
  uuid: string;
1579
- password?: string | null;
1699
+ password?: unknown | null;
1580
1700
  allowCopy: boolean;
1581
1701
  allowDownload: boolean;
1582
1702
  allowShare: boolean;
1583
1703
  showTheme?: boolean | null;
1584
- meta?: Record<string, JsonValue> | null;
1585
- expiryAt?: string | null;
1586
- revokedAt?: string | null;
1587
- sharedUrl?: string | null;
1704
+ meta?: {
1705
+ [key: string]: unknown;
1706
+ };
1707
+ expiryAt?: unknown | null;
1708
+ revokedAt?: unknown | null;
1709
+ sharedUrl?: unknown | null;
1588
1710
  createdAt?: number | null;
1589
1711
  updatedAt?: number | null;
1590
1712
  }
@@ -1632,8 +1754,10 @@ export type SMS_SPEED = unknown;
1632
1754
  export type SMS_TWILIO = unknown;
1633
1755
  export type SMS_VONAGE = unknown;
1634
1756
  export declare enum SortDirection {
1635
- ASC = "ASC",
1636
- DESC = "DESC"
1757
+ ASC = "asc",
1758
+ DESC = "desc",
1759
+ COUNT_ASC = "count-asc",
1760
+ COUNT_DESC = "count-desc"
1637
1761
  }
1638
1762
  export type SOURCE = unknown;
1639
1763
  export type SOURCE_CREATE = unknown;
@@ -1657,9 +1781,13 @@ export type SourceMeta = {
1657
1781
  version?: string;
1658
1782
  driver?: string;
1659
1783
  lastSyncedAt?: number;
1784
+ lastCatalogSyncAt?: number;
1660
1785
  note?: string;
1661
1786
  readOnlySchema?: boolean;
1662
1787
  readOnlyData?: boolean;
1788
+ providerType?: string;
1789
+ catalogNamespaces?: string[];
1790
+ sourceFingerprint?: string;
1663
1791
  };
1664
1792
  export declare enum SourceType {
1665
1793
  POSTGRESQL = "POSTGRESQL",
@@ -1705,30 +1833,39 @@ export type TableMeta = {
1705
1833
  primaryFieldId?: string;
1706
1834
  displayFieldId?: string;
1707
1835
  isTemplate?: boolean;
1836
+ externalObjectType?: 'table' | 'view';
1837
+ externalCatalogName?: string;
1838
+ isReadonly?: boolean;
1839
+ syncState?: 'active' | 'stale';
1840
+ sourceFingerprint?: string;
1708
1841
  };
1709
1842
  export interface TableResponseDto {
1710
1843
  id: string;
1711
1844
  workspaceId: string;
1712
1845
  name: string;
1713
1846
  slug: string;
1714
- description: string | null;
1715
- baseId: string | null;
1716
- sourceId: string | null;
1717
- tableName: string | null;
1847
+ description?: string | null;
1848
+ baseId?: string | null;
1849
+ sourceId?: string | null;
1850
+ tableName?: string | null;
1718
1851
  type: ModelType | null;
1719
1852
  storageMode: StorageMode | null;
1720
- order: number | null;
1721
- meta: TableMeta;
1722
- settings: TableSettings;
1723
- isManyToMany: boolean | null;
1724
- isSynced: boolean | null;
1725
- isDeleted: boolean | null;
1726
- externalSchemaName: string | null;
1727
- externalTableName: string | null;
1853
+ order?: number | null;
1854
+ meta?: {
1855
+ [key: string]: unknown;
1856
+ };
1857
+ settings?: {
1858
+ [key: string]: unknown;
1859
+ };
1860
+ isManyToMany?: boolean | null;
1861
+ isSynced?: boolean | null;
1862
+ isDeleted?: boolean | null;
1863
+ externalSchemaName?: string | null;
1864
+ externalTableName?: string | null;
1728
1865
  createdAt: number;
1729
- updatedAt: number | null;
1730
- fields?: ColumnResponseDto[];
1731
- views?: ViewResponseDto[];
1866
+ updatedAt?: number | null;
1867
+ fields?: (ColumnResponseDto)[];
1868
+ views?: (ViewResponseDto)[];
1732
1869
  }
1733
1870
  export interface TableSettings {
1734
1871
  icon?: string;
@@ -1762,8 +1899,25 @@ export type TEST = unknown;
1762
1899
  export type TEXT = unknown;
1763
1900
  export type TEXTAREA = unknown;
1764
1901
  export type TextWidgetConfig = {
1765
- content: string;
1766
- format: 'plain' | 'markdown';
1902
+ content: JsonValue;
1903
+ format: 'plain' | 'markdown' | 'json';
1904
+ variables?: TextWidgetVariableBinding[];
1905
+ };
1906
+ export interface TextWidgetResolvedVariableDto {
1907
+ key: string;
1908
+ sourceWidgetId: string;
1909
+ displayValue: string;
1910
+ status: 'resolved' | 'missing' | 'forbidden' | 'invalid_source';
1911
+ }
1912
+ export interface TextWidgetRuntimeDto {
1913
+ family: 'text';
1914
+ content?: unknown;
1915
+ format: 'plain' | 'markdown' | 'json';
1916
+ resolvedVariables?: (TextWidgetResolvedVariableDto)[];
1917
+ }
1918
+ export type TextWidgetVariableBinding = {
1919
+ key: string;
1920
+ sourceWidgetId: string;
1767
1921
  };
1768
1922
  export type THURSDAY = unknown;
1769
1923
  export type TIKTOK = unknown;
@@ -1812,6 +1966,18 @@ export declare enum TransformType {
1812
1966
  }
1813
1967
  export type TREE = unknown;
1814
1968
  export type TREEMAP = unknown;
1969
+ export interface TreemapChartRuntimeDto {
1970
+ chartType: 'treemap';
1971
+ family: 'treemap';
1972
+ nodes: (TreemapNodeDto)[];
1973
+ }
1974
+ export interface TreemapNodeDto {
1975
+ key: string;
1976
+ label: string;
1977
+ path: (string)[];
1978
+ parentKey?: string | null;
1979
+ value?: number | null;
1980
+ }
1815
1981
  export type TRIGGER = unknown;
1816
1982
  export type TRIM = unknown;
1817
1983
  export declare enum TrustLevelEnum {
@@ -1827,7 +1993,7 @@ export type UPDATE = unknown;
1827
1993
  export type UPDATED_AT = unknown;
1828
1994
  export interface UpdateSharedBaseDto {
1829
1995
  uuid?: string;
1830
- password?: string | null;
1996
+ password?: unknown | null;
1831
1997
  allowCopy?: boolean;
1832
1998
  allowDownload?: boolean;
1833
1999
  allowShare?: boolean;
@@ -1836,12 +2002,12 @@ export interface UpdateSharedBaseDto {
1836
2002
  }
1837
2003
  export interface UpdateSharedDashboardDto {
1838
2004
  uuid?: string;
1839
- password?: string | null;
2005
+ password?: unknown | null;
1840
2006
  allowCopy?: boolean;
1841
2007
  allowDownload?: boolean;
1842
2008
  allowShare?: boolean;
1843
2009
  showTheme?: boolean;
1844
- expiryAt?: string | null;
2010
+ expiryAt?: unknown | null;
1845
2011
  meta?: Record<string, JsonValue>;
1846
2012
  }
1847
2013
  export type UPPERCASE = unknown;
@@ -1942,25 +2108,27 @@ export type ViewMeta = {
1942
2108
  export interface ViewResponseDto {
1943
2109
  id: string;
1944
2110
  tableId: string;
1945
- workspaceId: string | null;
1946
- baseId: string | null;
1947
- sourceId: string | null;
2111
+ workspaceId?: string | null;
2112
+ baseId?: string | null;
2113
+ sourceId?: string | null;
1948
2114
  name: string;
1949
- description: string | null;
2115
+ description?: string | null;
1950
2116
  type: ViewType;
1951
2117
  show: boolean;
1952
- order: number | null;
2118
+ order?: number | null;
1953
2119
  lockType: ViewLockType | null;
1954
- uuid: string | null;
2120
+ uuid?: string | null;
1955
2121
  showSystemFields: boolean;
1956
- meta: ViewMeta;
2122
+ meta?: {
2123
+ [key: string]: unknown;
2124
+ };
1957
2125
  rowColoringMode: RowColoringMode | null;
1958
- createdBy: number | null;
1959
- ownedBy: number | null;
1960
- customUrlId: string | null;
2126
+ createdBy?: number | null;
2127
+ ownedBy?: number | null;
2128
+ customUrlId?: string | null;
1961
2129
  isDefault: boolean;
1962
2130
  createdAt: number;
1963
- updatedAt: number | null;
2131
+ updatedAt?: number | null;
1964
2132
  }
1965
2133
  export declare enum ViewSortDirection {
1966
2134
  ASC = "asc",
@@ -2003,6 +2171,7 @@ export type WidgetMeta = {
2003
2171
  color?: string;
2004
2172
  refreshIntervalSec?: number;
2005
2173
  lastEditedBy?: string | number;
2174
+ hidden?: boolean;
2006
2175
  };
2007
2176
  export type WidgetQuerySpec = {
2008
2177
  modelId: string;
@@ -2016,90 +2185,62 @@ export type WidgetQuerySpec = {
2016
2185
  };
2017
2186
  export interface WidgetResponseDto {
2018
2187
  id: string;
2019
- fkWorkspaceId: string | null;
2020
- baseId: string | null;
2021
- fkDashboardId: string | null;
2188
+ fkWorkspaceId?: string | null;
2189
+ baseId?: string | null;
2190
+ fkDashboardId?: string | null;
2022
2191
  title: string;
2023
- description: string | null;
2192
+ description?: string | null;
2024
2193
  type: WidgetType;
2025
- config: WidgetConfig | null;
2026
- row: number | null;
2027
- col: number | null;
2028
- sizeX: number | null;
2029
- sizeY: number | null;
2030
- fkModelId: string | null;
2031
- fkViewId: string | null;
2032
- meta: WidgetMeta | null;
2033
- order: number | null;
2034
- createdAt: number | null;
2035
- updatedAt: number | null;
2036
- filters?: FilterResponseDto[];
2194
+ config?: {
2195
+ [key: string]: unknown;
2196
+ };
2197
+ row?: number | null;
2198
+ col?: number | null;
2199
+ sizeX?: number | null;
2200
+ sizeY?: number | null;
2201
+ fkModelId?: string | null;
2202
+ fkViewId?: string | null;
2203
+ meta?: {
2204
+ [key: string]: unknown;
2205
+ };
2206
+ order?: number | null;
2207
+ createdAt?: number | null;
2208
+ updatedAt?: number | null;
2209
+ filters?: (FilterResponseDto)[];
2037
2210
  }
2038
2211
  export interface WidgetRuntimeResolvedQueryResponseDto {
2039
- modelId: string;
2212
+ modelId?: string | null;
2040
2213
  viewId?: string | null;
2041
- filters: Record<string, unknown>[];
2042
- sorts: Array<{
2043
- fieldId: string;
2044
- direction: string;
2045
- }>;
2046
- groupBy?: string[];
2214
+ filters: ({
2215
+ [key: string]: unknown;
2216
+ })[];
2217
+ sorts: ({
2218
+ [key: string]: unknown;
2219
+ })[];
2220
+ groupBy?: (string)[];
2047
2221
  limit?: number | null;
2048
2222
  }
2049
2223
  export interface WidgetRuntimeResponseDto {
2050
2224
  widget: WidgetResponseDto;
2051
2225
  runtimeType: string;
2052
2226
  resolvedQuery: WidgetRuntimeResolvedQueryResponseDto;
2053
- data: Record<string, unknown>;
2227
+ data: CategoricalChartRuntimeDto | ScatterChartRuntimeDto | HeatmapChartRuntimeDto | TreemapChartRuntimeDto | FunnelChartRuntimeDto | MetricWidgetRuntimeDto | TextWidgetRuntimeDto | GridEmbedWidgetRuntimeDto | ForbiddenWidgetRuntimeDto | {
2228
+ [key: string]: unknown;
2229
+ };
2054
2230
  }
2055
2231
  export type WidgetSortSpec = {
2056
2232
  fieldId: string;
2057
2233
  direction: 'asc' | 'desc';
2058
2234
  };
2059
2235
  export declare enum WidgetType {
2060
- TABLE = "TABLE",
2061
- CHART = "CHART",
2062
- CARD = "CARD",
2063
- METRIC = "METRIC",
2064
- GAUGE = "GAUGE",
2065
- PROGRESS = "PROGRESS",
2066
- HEATMAP = "HEATMAP",
2067
- FUNNEL = "FUNNEL",
2068
- PIE_CHART = "PIE_CHART",
2069
- FORM = "FORM",
2070
- INPUT = "INPUT",
2071
- SELECT = "SELECT",
2072
- CHECKBOX_GROUP = "CHECKBOX_GROUP",
2073
- RADIO_GROUP = "RADIO_GROUP",
2074
- DATE_PICKER = "DATE_PICKER",
2075
- SLIDER = "SLIDER",
2076
- TEXT = "TEXT",
2077
- IMAGE = "IMAGE",
2078
- VIDEO = "VIDEO",
2079
- IFRAME = "IFRAME",
2080
- LIST = "LIST",
2081
- TIMELINE = "TIMELINE",
2082
- NOTIFICATION = "NOTIFICATION",
2083
- CONTAINER = "CONTAINER",
2084
- GRID = "GRID",
2085
- TABS = "TABS",
2086
- ACCORDION = "ACCORDION",
2087
- DIVIDER = "DIVIDER",
2088
- SPACER = "SPACER",
2089
- BUTTON = "BUTTON",
2090
- BUTTON_GROUP = "BUTTON_GROUP",
2091
- FILTER = "FILTER",
2092
- SEARCH = "SEARCH",
2093
- PAGINATION = "PAGINATION",
2094
- BREADCRUMB = "BREADCRUMB",
2095
- MENU = "MENU",
2096
- MODAL = "MODAL",
2097
- KPI_GRID = "KPI_GRID",
2098
- COMPARISON = "COMPARISON",
2099
- MAP = "MAP",
2100
- CALENDAR = "CALENDAR",
2101
- TREE = "TREE",
2102
- KANBAN = "KANBAN"
2236
+ CHART = "chart",
2237
+ METRIC = "metric",
2238
+ TEXT = "text",
2239
+ TABLE = "table",
2240
+ LIST = "list",
2241
+ CALENDAR = "calendar",
2242
+ KANBAN = "kanban",
2243
+ MAP = "map"
2103
2244
  }
2104
2245
  export type WORKFLOW = unknown;
2105
2246
  export type WORKFLOW_TRIGGER = unknown;