@redonvn/redai-backend-api-sdk 0.5.40 → 0.5.43
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.
- package/dist/cjs/generated/dynamic-table/types.js +14 -96
- package/dist/cjs/generated/dynamic-table/types.js.map +1 -1
- package/dist/cjs/generated/index.js +2 -3
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/shared-types.js +16 -56
- package/dist/cjs/generated/shared-types.js.map +1 -1
- package/dist/esm/generated/dynamic-table/types.d.ts +479 -658
- package/dist/esm/generated/dynamic-table/types.d.ts.map +1 -1
- package/dist/esm/generated/dynamic-table/types.js +13 -96
- package/dist/esm/generated/dynamic-table/types.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/shared-types.d.ts +358 -195
- package/dist/esm/generated/shared-types.d.ts.map +1 -1
- package/dist/esm/generated/shared-types.js +15 -55
- package/dist/esm/generated/shared-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
251
|
-
baseId
|
|
252
|
-
sourceId
|
|
281
|
+
workspaceId?: string | null;
|
|
282
|
+
baseId?: string | null;
|
|
283
|
+
sourceId?: string | null;
|
|
253
284
|
name: string;
|
|
254
285
|
keyName: string;
|
|
255
|
-
description
|
|
256
|
-
columnName
|
|
286
|
+
description?: string | null;
|
|
287
|
+
columnName?: string | null;
|
|
257
288
|
type: FieldType;
|
|
258
|
-
order
|
|
259
|
-
isPrimary
|
|
260
|
-
isPrimaryValue
|
|
261
|
-
isRequired
|
|
262
|
-
isUnique
|
|
263
|
-
isAutoIncrement
|
|
264
|
-
isUnsigned
|
|
265
|
-
isSystem
|
|
266
|
-
isReadonly
|
|
267
|
-
isVirtual
|
|
268
|
-
uiDataType
|
|
269
|
-
dataType
|
|
270
|
-
numericPrecision
|
|
271
|
-
numericScale
|
|
272
|
-
characterLength
|
|
273
|
-
columnDefault
|
|
274
|
-
columnType
|
|
275
|
-
columnComment
|
|
276
|
-
columnSequenceName
|
|
277
|
-
dataTypeExtra
|
|
278
|
-
dataTypeExtraPrecision
|
|
279
|
-
dataTypeExtraScale
|
|
280
|
-
autoUpdated
|
|
281
|
-
config
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
|
287
|
-
updatedAt
|
|
288
|
-
relationConfig?: RelationConfigResponseDto
|
|
289
|
-
lookupConfig?: LookupConfigResponseDto
|
|
290
|
-
rollupConfig?: RollupConfigResponseDto
|
|
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?:
|
|
391
|
+
password?: unknown | null;
|
|
357
392
|
allowCopy?: boolean;
|
|
358
393
|
allowDownload?: boolean;
|
|
359
394
|
allowShare?: boolean;
|
|
360
395
|
showTheme?: boolean;
|
|
361
|
-
expiryAt?:
|
|
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
|
|
425
|
-
baseId
|
|
460
|
+
fkWorkspaceId?: string | null;
|
|
461
|
+
baseId?: string | null;
|
|
426
462
|
title: string;
|
|
427
|
-
description
|
|
428
|
-
order
|
|
463
|
+
description?: string | null;
|
|
464
|
+
order?: number | null;
|
|
429
465
|
status: DashboardStatus | null;
|
|
430
|
-
meta
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
|
805
|
-
parentId
|
|
806
|
-
fieldId
|
|
807
|
-
operator
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
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
|
|
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 |
|
|
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
|
|
1129
|
-
lookupFieldId
|
|
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
|
|
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:
|
|
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",
|
|
@@ -1448,6 +1552,27 @@ export type RecordListQueryDto = LimitOffsetQueryDto & {
|
|
|
1448
1552
|
export type REDAI = unknown;
|
|
1449
1553
|
export type REDAI_EXTENSION = unknown;
|
|
1450
1554
|
export type REDAI_LLM = unknown;
|
|
1555
|
+
export type REDAI_VIEW = unknown;
|
|
1556
|
+
export type RedaiViewWidgetConfig = {
|
|
1557
|
+
viewType?: ViewType;
|
|
1558
|
+
};
|
|
1559
|
+
export interface RedaiViewWidgetRuntimeDto {
|
|
1560
|
+
family: 'redai-view';
|
|
1561
|
+
widgetType: 'redai_view';
|
|
1562
|
+
tableId: string;
|
|
1563
|
+
viewId: string;
|
|
1564
|
+
viewType: ViewType;
|
|
1565
|
+
title?: string;
|
|
1566
|
+
visibleFieldIds?: (string)[];
|
|
1567
|
+
pageSize?: number | null;
|
|
1568
|
+
filters: ({
|
|
1569
|
+
[key: string]: unknown;
|
|
1570
|
+
})[];
|
|
1571
|
+
sorts: ({
|
|
1572
|
+
[key: string]: unknown;
|
|
1573
|
+
})[];
|
|
1574
|
+
dashboardEmbed: true;
|
|
1575
|
+
}
|
|
1451
1576
|
export declare enum ReferentialAction {
|
|
1452
1577
|
NO_ACTION = "NO ACTION",
|
|
1453
1578
|
CASCADE = "CASCADE",
|
|
@@ -1474,20 +1599,20 @@ export interface RelationConfigDto {
|
|
|
1474
1599
|
}
|
|
1475
1600
|
export interface RelationConfigResponseDto {
|
|
1476
1601
|
relationType: RelationType;
|
|
1477
|
-
relatedTableId
|
|
1478
|
-
relatedBaseId
|
|
1479
|
-
relatedSourceId
|
|
1602
|
+
relatedTableId?: string | null;
|
|
1603
|
+
relatedBaseId?: string | null;
|
|
1604
|
+
relatedSourceId?: string | null;
|
|
1480
1605
|
onUpdate: ReferentialAction | null;
|
|
1481
1606
|
onDelete: ReferentialAction | null;
|
|
1482
|
-
isVirtual
|
|
1483
|
-
targetViewId
|
|
1484
|
-
parentFieldId
|
|
1485
|
-
childFieldId
|
|
1486
|
-
mmTableId
|
|
1487
|
-
mmBaseId
|
|
1488
|
-
mmSourceId
|
|
1489
|
-
mmChildFieldId
|
|
1490
|
-
mmParentFieldId
|
|
1607
|
+
isVirtual?: boolean | null;
|
|
1608
|
+
targetViewId?: string | null;
|
|
1609
|
+
parentFieldId?: string | null;
|
|
1610
|
+
childFieldId?: string | null;
|
|
1611
|
+
mmTableId?: string | null;
|
|
1612
|
+
mmBaseId?: string | null;
|
|
1613
|
+
mmSourceId?: string | null;
|
|
1614
|
+
mmChildFieldId?: string | null;
|
|
1615
|
+
mmParentFieldId?: string | null;
|
|
1491
1616
|
}
|
|
1492
1617
|
export interface RelationFieldRefDto {
|
|
1493
1618
|
fieldId?: string;
|
|
@@ -1509,8 +1634,8 @@ export interface RollupConfigDto {
|
|
|
1509
1634
|
rollupFunction?: RollupFunction | null;
|
|
1510
1635
|
}
|
|
1511
1636
|
export interface RollupConfigResponseDto {
|
|
1512
|
-
relationFieldId
|
|
1513
|
-
rollupFieldId
|
|
1637
|
+
relationFieldId?: string | null;
|
|
1638
|
+
rollupFieldId?: string | null;
|
|
1514
1639
|
rollupFunction: RollupFunction | null;
|
|
1515
1640
|
}
|
|
1516
1641
|
export declare enum RollupFunction {
|
|
@@ -1531,11 +1656,27 @@ export type RUNNING = unknown;
|
|
|
1531
1656
|
export type S3_KEY = unknown;
|
|
1532
1657
|
export type SATURDAY = unknown;
|
|
1533
1658
|
export type SCATTER = unknown;
|
|
1659
|
+
export interface ScatterChartPointDto {
|
|
1660
|
+
id?: string | null;
|
|
1661
|
+
x?: unknown;
|
|
1662
|
+
y?: unknown;
|
|
1663
|
+
size?: unknown;
|
|
1664
|
+
category?: unknown;
|
|
1665
|
+
breakdown?: unknown;
|
|
1666
|
+
}
|
|
1667
|
+
export interface ScatterChartRuntimeDto {
|
|
1668
|
+
chartType: ChartType;
|
|
1669
|
+
family: 'scatter';
|
|
1670
|
+
points: (ScatterChartPointDto)[];
|
|
1671
|
+
pageInfo?: {
|
|
1672
|
+
[key: string]: unknown;
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1534
1675
|
export type SCB_BANK = unknown;
|
|
1535
1676
|
export type SEARCH = unknown;
|
|
1536
1677
|
export type SELECT = unknown;
|
|
1537
1678
|
export interface SendSharedDashboardEmailDto {
|
|
1538
|
-
recipients: string[];
|
|
1679
|
+
recipients: (string)[];
|
|
1539
1680
|
subject?: string;
|
|
1540
1681
|
message?: string;
|
|
1541
1682
|
}
|
|
@@ -1573,18 +1714,20 @@ export interface SharedBasesUpdateSharedBaseParams {
|
|
|
1573
1714
|
export interface SharedDashboardResponseDto {
|
|
1574
1715
|
id: string;
|
|
1575
1716
|
dashboardId: string;
|
|
1576
|
-
workspaceId
|
|
1577
|
-
baseId
|
|
1717
|
+
workspaceId?: string | null;
|
|
1718
|
+
baseId?: string | null;
|
|
1578
1719
|
uuid: string;
|
|
1579
|
-
password?:
|
|
1720
|
+
password?: unknown | null;
|
|
1580
1721
|
allowCopy: boolean;
|
|
1581
1722
|
allowDownload: boolean;
|
|
1582
1723
|
allowShare: boolean;
|
|
1583
1724
|
showTheme?: boolean | null;
|
|
1584
|
-
meta?:
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1725
|
+
meta?: {
|
|
1726
|
+
[key: string]: unknown;
|
|
1727
|
+
};
|
|
1728
|
+
expiryAt?: unknown | null;
|
|
1729
|
+
revokedAt?: unknown | null;
|
|
1730
|
+
sharedUrl?: unknown | null;
|
|
1588
1731
|
createdAt?: number | null;
|
|
1589
1732
|
updatedAt?: number | null;
|
|
1590
1733
|
}
|
|
@@ -1632,8 +1775,10 @@ export type SMS_SPEED = unknown;
|
|
|
1632
1775
|
export type SMS_TWILIO = unknown;
|
|
1633
1776
|
export type SMS_VONAGE = unknown;
|
|
1634
1777
|
export declare enum SortDirection {
|
|
1635
|
-
ASC = "
|
|
1636
|
-
DESC = "
|
|
1778
|
+
ASC = "asc",
|
|
1779
|
+
DESC = "desc",
|
|
1780
|
+
COUNT_ASC = "count-asc",
|
|
1781
|
+
COUNT_DESC = "count-desc"
|
|
1637
1782
|
}
|
|
1638
1783
|
export type SOURCE = unknown;
|
|
1639
1784
|
export type SOURCE_CREATE = unknown;
|
|
@@ -1657,9 +1802,13 @@ export type SourceMeta = {
|
|
|
1657
1802
|
version?: string;
|
|
1658
1803
|
driver?: string;
|
|
1659
1804
|
lastSyncedAt?: number;
|
|
1805
|
+
lastCatalogSyncAt?: number;
|
|
1660
1806
|
note?: string;
|
|
1661
1807
|
readOnlySchema?: boolean;
|
|
1662
1808
|
readOnlyData?: boolean;
|
|
1809
|
+
providerType?: string;
|
|
1810
|
+
catalogNamespaces?: string[];
|
|
1811
|
+
sourceFingerprint?: string;
|
|
1663
1812
|
};
|
|
1664
1813
|
export declare enum SourceType {
|
|
1665
1814
|
POSTGRESQL = "POSTGRESQL",
|
|
@@ -1705,30 +1854,39 @@ export type TableMeta = {
|
|
|
1705
1854
|
primaryFieldId?: string;
|
|
1706
1855
|
displayFieldId?: string;
|
|
1707
1856
|
isTemplate?: boolean;
|
|
1857
|
+
externalObjectType?: 'table' | 'view';
|
|
1858
|
+
externalCatalogName?: string;
|
|
1859
|
+
isReadonly?: boolean;
|
|
1860
|
+
syncState?: 'active' | 'stale';
|
|
1861
|
+
sourceFingerprint?: string;
|
|
1708
1862
|
};
|
|
1709
1863
|
export interface TableResponseDto {
|
|
1710
1864
|
id: string;
|
|
1711
1865
|
workspaceId: string;
|
|
1712
1866
|
name: string;
|
|
1713
1867
|
slug: string;
|
|
1714
|
-
description
|
|
1715
|
-
baseId
|
|
1716
|
-
sourceId
|
|
1717
|
-
tableName
|
|
1868
|
+
description?: string | null;
|
|
1869
|
+
baseId?: string | null;
|
|
1870
|
+
sourceId?: string | null;
|
|
1871
|
+
tableName?: string | null;
|
|
1718
1872
|
type: ModelType | null;
|
|
1719
1873
|
storageMode: StorageMode | null;
|
|
1720
|
-
order
|
|
1721
|
-
meta
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1874
|
+
order?: number | null;
|
|
1875
|
+
meta?: {
|
|
1876
|
+
[key: string]: unknown;
|
|
1877
|
+
};
|
|
1878
|
+
settings?: {
|
|
1879
|
+
[key: string]: unknown;
|
|
1880
|
+
};
|
|
1881
|
+
isManyToMany?: boolean | null;
|
|
1882
|
+
isSynced?: boolean | null;
|
|
1883
|
+
isDeleted?: boolean | null;
|
|
1884
|
+
externalSchemaName?: string | null;
|
|
1885
|
+
externalTableName?: string | null;
|
|
1728
1886
|
createdAt: number;
|
|
1729
|
-
updatedAt
|
|
1730
|
-
fields?: ColumnResponseDto[];
|
|
1731
|
-
views?: ViewResponseDto[];
|
|
1887
|
+
updatedAt?: number | null;
|
|
1888
|
+
fields?: (ColumnResponseDto)[];
|
|
1889
|
+
views?: (ViewResponseDto)[];
|
|
1732
1890
|
}
|
|
1733
1891
|
export interface TableSettings {
|
|
1734
1892
|
icon?: string;
|
|
@@ -1762,8 +1920,25 @@ export type TEST = unknown;
|
|
|
1762
1920
|
export type TEXT = unknown;
|
|
1763
1921
|
export type TEXTAREA = unknown;
|
|
1764
1922
|
export type TextWidgetConfig = {
|
|
1765
|
-
content:
|
|
1766
|
-
format: 'plain' | 'markdown';
|
|
1923
|
+
content: JsonValue;
|
|
1924
|
+
format: 'plain' | 'markdown' | 'json';
|
|
1925
|
+
variables?: TextWidgetVariableBinding[];
|
|
1926
|
+
};
|
|
1927
|
+
export interface TextWidgetResolvedVariableDto {
|
|
1928
|
+
key: string;
|
|
1929
|
+
sourceWidgetId: string;
|
|
1930
|
+
displayValue: string;
|
|
1931
|
+
status: 'resolved' | 'missing' | 'forbidden' | 'invalid_source';
|
|
1932
|
+
}
|
|
1933
|
+
export interface TextWidgetRuntimeDto {
|
|
1934
|
+
family: 'text';
|
|
1935
|
+
content?: unknown;
|
|
1936
|
+
format: 'plain' | 'markdown' | 'json';
|
|
1937
|
+
resolvedVariables?: (TextWidgetResolvedVariableDto)[];
|
|
1938
|
+
}
|
|
1939
|
+
export type TextWidgetVariableBinding = {
|
|
1940
|
+
key: string;
|
|
1941
|
+
sourceWidgetId: string;
|
|
1767
1942
|
};
|
|
1768
1943
|
export type THURSDAY = unknown;
|
|
1769
1944
|
export type TIKTOK = unknown;
|
|
@@ -1812,6 +1987,18 @@ export declare enum TransformType {
|
|
|
1812
1987
|
}
|
|
1813
1988
|
export type TREE = unknown;
|
|
1814
1989
|
export type TREEMAP = unknown;
|
|
1990
|
+
export interface TreemapChartRuntimeDto {
|
|
1991
|
+
chartType: 'treemap';
|
|
1992
|
+
family: 'treemap';
|
|
1993
|
+
nodes: (TreemapNodeDto)[];
|
|
1994
|
+
}
|
|
1995
|
+
export interface TreemapNodeDto {
|
|
1996
|
+
key: string;
|
|
1997
|
+
label: string;
|
|
1998
|
+
path: (string)[];
|
|
1999
|
+
parentKey?: string | null;
|
|
2000
|
+
value?: number | null;
|
|
2001
|
+
}
|
|
1815
2002
|
export type TRIGGER = unknown;
|
|
1816
2003
|
export type TRIM = unknown;
|
|
1817
2004
|
export declare enum TrustLevelEnum {
|
|
@@ -1827,7 +2014,7 @@ export type UPDATE = unknown;
|
|
|
1827
2014
|
export type UPDATED_AT = unknown;
|
|
1828
2015
|
export interface UpdateSharedBaseDto {
|
|
1829
2016
|
uuid?: string;
|
|
1830
|
-
password?:
|
|
2017
|
+
password?: unknown | null;
|
|
1831
2018
|
allowCopy?: boolean;
|
|
1832
2019
|
allowDownload?: boolean;
|
|
1833
2020
|
allowShare?: boolean;
|
|
@@ -1836,12 +2023,12 @@ export interface UpdateSharedBaseDto {
|
|
|
1836
2023
|
}
|
|
1837
2024
|
export interface UpdateSharedDashboardDto {
|
|
1838
2025
|
uuid?: string;
|
|
1839
|
-
password?:
|
|
2026
|
+
password?: unknown | null;
|
|
1840
2027
|
allowCopy?: boolean;
|
|
1841
2028
|
allowDownload?: boolean;
|
|
1842
2029
|
allowShare?: boolean;
|
|
1843
2030
|
showTheme?: boolean;
|
|
1844
|
-
expiryAt?:
|
|
2031
|
+
expiryAt?: unknown | null;
|
|
1845
2032
|
meta?: Record<string, JsonValue>;
|
|
1846
2033
|
}
|
|
1847
2034
|
export type UPPERCASE = unknown;
|
|
@@ -1942,25 +2129,27 @@ export type ViewMeta = {
|
|
|
1942
2129
|
export interface ViewResponseDto {
|
|
1943
2130
|
id: string;
|
|
1944
2131
|
tableId: string;
|
|
1945
|
-
workspaceId
|
|
1946
|
-
baseId
|
|
1947
|
-
sourceId
|
|
2132
|
+
workspaceId?: string | null;
|
|
2133
|
+
baseId?: string | null;
|
|
2134
|
+
sourceId?: string | null;
|
|
1948
2135
|
name: string;
|
|
1949
|
-
description
|
|
2136
|
+
description?: string | null;
|
|
1950
2137
|
type: ViewType;
|
|
1951
2138
|
show: boolean;
|
|
1952
|
-
order
|
|
2139
|
+
order?: number | null;
|
|
1953
2140
|
lockType: ViewLockType | null;
|
|
1954
|
-
uuid
|
|
2141
|
+
uuid?: string | null;
|
|
1955
2142
|
showSystemFields: boolean;
|
|
1956
|
-
meta
|
|
2143
|
+
meta?: {
|
|
2144
|
+
[key: string]: unknown;
|
|
2145
|
+
};
|
|
1957
2146
|
rowColoringMode: RowColoringMode | null;
|
|
1958
|
-
createdBy
|
|
1959
|
-
ownedBy
|
|
1960
|
-
customUrlId
|
|
2147
|
+
createdBy?: number | null;
|
|
2148
|
+
ownedBy?: number | null;
|
|
2149
|
+
customUrlId?: string | null;
|
|
1961
2150
|
isDefault: boolean;
|
|
1962
2151
|
createdAt: number;
|
|
1963
|
-
updatedAt
|
|
2152
|
+
updatedAt?: number | null;
|
|
1964
2153
|
}
|
|
1965
2154
|
export declare enum ViewSortDirection {
|
|
1966
2155
|
ASC = "asc",
|
|
@@ -1995,7 +2184,7 @@ export type WidgetAggregationSpec = {
|
|
|
1995
2184
|
fieldId?: string;
|
|
1996
2185
|
distinct?: boolean;
|
|
1997
2186
|
};
|
|
1998
|
-
export type WidgetConfig = ChartWidgetConfig | MetricWidgetConfig | TextWidgetConfig | TableWidgetConfig | ListWidgetConfig | CalendarWidgetConfig | KanbanWidgetConfig | MapWidgetConfig;
|
|
2187
|
+
export type WidgetConfig = ChartWidgetConfig | MetricWidgetConfig | RedaiViewWidgetConfig | TextWidgetConfig | TableWidgetConfig | ListWidgetConfig | CalendarWidgetConfig | KanbanWidgetConfig | MapWidgetConfig;
|
|
1999
2188
|
export type WidgetDatePreset = 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'this_month' | 'last_month' | 'this_quarter' | 'this_year';
|
|
2000
2189
|
export type WidgetFilter = FilterPayload | FilterPayload[];
|
|
2001
2190
|
export type WidgetMeta = {
|
|
@@ -2003,6 +2192,7 @@ export type WidgetMeta = {
|
|
|
2003
2192
|
color?: string;
|
|
2004
2193
|
refreshIntervalSec?: number;
|
|
2005
2194
|
lastEditedBy?: string | number;
|
|
2195
|
+
hidden?: boolean;
|
|
2006
2196
|
};
|
|
2007
2197
|
export type WidgetQuerySpec = {
|
|
2008
2198
|
modelId: string;
|
|
@@ -2016,90 +2206,63 @@ export type WidgetQuerySpec = {
|
|
|
2016
2206
|
};
|
|
2017
2207
|
export interface WidgetResponseDto {
|
|
2018
2208
|
id: string;
|
|
2019
|
-
fkWorkspaceId
|
|
2020
|
-
baseId
|
|
2021
|
-
fkDashboardId
|
|
2209
|
+
fkWorkspaceId?: string | null;
|
|
2210
|
+
baseId?: string | null;
|
|
2211
|
+
fkDashboardId?: string | null;
|
|
2022
2212
|
title: string;
|
|
2023
|
-
description
|
|
2213
|
+
description?: string | null;
|
|
2024
2214
|
type: WidgetType;
|
|
2025
|
-
config
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2215
|
+
config?: {
|
|
2216
|
+
[key: string]: unknown;
|
|
2217
|
+
};
|
|
2218
|
+
row?: number | null;
|
|
2219
|
+
col?: number | null;
|
|
2220
|
+
sizeX?: number | null;
|
|
2221
|
+
sizeY?: number | null;
|
|
2222
|
+
fkModelId?: string | null;
|
|
2223
|
+
fkViewId?: string | null;
|
|
2224
|
+
meta?: {
|
|
2225
|
+
[key: string]: unknown;
|
|
2226
|
+
};
|
|
2227
|
+
order?: number | null;
|
|
2228
|
+
createdAt?: number | null;
|
|
2229
|
+
updatedAt?: number | null;
|
|
2230
|
+
filters?: (FilterResponseDto)[];
|
|
2037
2231
|
}
|
|
2038
2232
|
export interface WidgetRuntimeResolvedQueryResponseDto {
|
|
2039
|
-
modelId
|
|
2233
|
+
modelId?: string | null;
|
|
2040
2234
|
viewId?: string | null;
|
|
2041
|
-
filters:
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2235
|
+
filters: ({
|
|
2236
|
+
[key: string]: unknown;
|
|
2237
|
+
})[];
|
|
2238
|
+
sorts: ({
|
|
2239
|
+
[key: string]: unknown;
|
|
2240
|
+
})[];
|
|
2241
|
+
groupBy?: (string)[];
|
|
2047
2242
|
limit?: number | null;
|
|
2048
2243
|
}
|
|
2049
2244
|
export interface WidgetRuntimeResponseDto {
|
|
2050
2245
|
widget: WidgetResponseDto;
|
|
2051
2246
|
runtimeType: string;
|
|
2052
2247
|
resolvedQuery: WidgetRuntimeResolvedQueryResponseDto;
|
|
2053
|
-
data:
|
|
2248
|
+
data: CategoricalChartRuntimeDto | ScatterChartRuntimeDto | HeatmapChartRuntimeDto | TreemapChartRuntimeDto | FunnelChartRuntimeDto | MetricWidgetRuntimeDto | TextWidgetRuntimeDto | GridEmbedWidgetRuntimeDto | RedaiViewWidgetRuntimeDto | ForbiddenWidgetRuntimeDto | {
|
|
2249
|
+
[key: string]: unknown;
|
|
2250
|
+
};
|
|
2054
2251
|
}
|
|
2055
2252
|
export type WidgetSortSpec = {
|
|
2056
2253
|
fieldId: string;
|
|
2057
2254
|
direction: 'asc' | 'desc';
|
|
2058
2255
|
};
|
|
2059
2256
|
export declare enum WidgetType {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
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"
|
|
2257
|
+
CHART = "chart",
|
|
2258
|
+
METRIC = "metric",
|
|
2259
|
+
REDAI_VIEW = "redai_view",
|
|
2260
|
+
TEXT = "text",
|
|
2261
|
+
TABLE = "table",
|
|
2262
|
+
LIST = "list",
|
|
2263
|
+
CALENDAR = "calendar",
|
|
2264
|
+
KANBAN = "kanban",
|
|
2265
|
+
MAP = "map"
|
|
2103
2266
|
}
|
|
2104
2267
|
export type WORKFLOW = unknown;
|
|
2105
2268
|
export type WORKFLOW_TRIGGER = unknown;
|