@redonvn/redai-backend-api-sdk 0.5.53 → 0.5.55

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 (31) hide show
  1. package/dist/cjs/generated/ask-ai/types.js +0 -2
  2. package/dist/cjs/generated/ask-ai/types.js.map +1 -1
  3. package/dist/cjs/generated/dynamic-table/services/dashboards.service.js +180 -0
  4. package/dist/cjs/generated/dynamic-table/services/dashboards.service.js.map +1 -1
  5. package/dist/cjs/generated/dynamic-table/types.js +14 -2
  6. package/dist/cjs/generated/dynamic-table/types.js.map +1 -1
  7. package/dist/cjs/generated/index.js +29 -30
  8. package/dist/cjs/generated/index.js.map +1 -1
  9. package/dist/cjs/generated/shared-types.js.map +1 -1
  10. package/dist/esm/generated/ask-ai/types.d.ts +15 -7
  11. package/dist/esm/generated/ask-ai/types.d.ts.map +1 -1
  12. package/dist/esm/generated/ask-ai/types.js +0 -2
  13. package/dist/esm/generated/ask-ai/types.js.map +1 -1
  14. package/dist/esm/generated/dynamic-table/services/dashboards.service.d.ts +21 -1
  15. package/dist/esm/generated/dynamic-table/services/dashboards.service.d.ts.map +1 -1
  16. package/dist/esm/generated/dynamic-table/services/dashboards.service.js +180 -0
  17. package/dist/esm/generated/dynamic-table/services/dashboards.service.js.map +1 -1
  18. package/dist/esm/generated/dynamic-table/types.d.ts +203 -21
  19. package/dist/esm/generated/dynamic-table/types.d.ts.map +1 -1
  20. package/dist/esm/generated/dynamic-table/types.js +14 -1
  21. package/dist/esm/generated/dynamic-table/types.js.map +1 -1
  22. package/dist/esm/generated/index.d.ts +2 -3
  23. package/dist/esm/generated/index.d.ts.map +1 -1
  24. package/dist/esm/generated/index.js +1 -2
  25. package/dist/esm/generated/index.js.map +1 -1
  26. package/dist/esm/generated/shared-types.d.ts +288 -41
  27. package/dist/esm/generated/shared-types.d.ts.map +1 -1
  28. package/dist/esm/generated/shared-types.js.map +1 -1
  29. package/dist/esm/index.d.ts +1 -1
  30. package/dist/esm/index.d.ts.map +1 -1
  31. package/package.json +1 -1
@@ -2,8 +2,7 @@
2
2
  export * from './types.js';
3
3
  export * from './services/index.js';
4
4
  export { AskAiDynamicTableTextWidgetMode, AskAiType, ConditionType, ExternalTemplateType, ResourceType, SegmentFieldOperator, SegmentTargetType, TagCategory } from './ask-ai/types.js';
5
- export { AppEvents, AttachmentSourceType, ExportFormatEnum, ExternalCatalogObjectTypeDto, HookEnvironment, HookFullMutationMode, HookFullRequestKind, HookHttpMethod, HookLogStatus, HookOperation, HookSource, HookType, HookVersion, ImportFileFormat, ImportMode, JobStatus, MembershipScope, PERMISSION_RESOURCE_TYPES, PERMISSION_SUBJECT_TYPES, WorkspaceInviteLinkStatus, WorkspaceInviteStatus, WorkspaceJoinRequestStatus } from './dynamic-table/types.js';
6
- export { WidgetType } from './dynamic-table-public/types.js';
5
+ export { AppEvents, AttachmentSourceType, ExportFormatEnum, ExternalCatalogObjectTypeDto, HookEnvironment, HookFullMutationMode, HookFullRequestKind, HookHttpMethod, HookLogStatus, HookOperation, HookSource, HookType, HookVersion, ImportFileFormat, ImportMode, JobStatus, MembershipScope, PERMISSION_RESOURCE_TYPES, PERMISSION_SUBJECT_TYPES, WidgetType, WorkspaceInviteLinkStatus, WorkspaceInviteStatus, WorkspaceJoinRequestStatus } from './dynamic-table/types.js';
7
6
  export { BankAccountSortBy, BankCode, BankhubLinkTokenPurpose, BeneficiaryType, CompanyStatus, DisplayMode, EmailProviderType, FacebookPageSortBy, GmailSystemLabel, GoogleAdsAccountStatus, IntegrationStatus, MediaOperationEnum, ProviderLlmEnum, ProviderShipmentType, ProxyProtocolDto, ProxyStatusDto, SideMode, VERTEX_AI_LOCATIONS, ZaloBotMessageType, ZaloBotStatus, ZaloPersonalIntegrationStatus } from './integration/types.js';
8
7
  export { WorkspaceAuthScopeType, WorkspaceCapabilityAction, WorkspaceCapabilityDomain, WorkspaceScopeCapability } from './workspace/types.js';
9
8
  export * as askAi from './ask-ai/index.js';
@@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AAK,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
@@ -1,3 +1,101 @@
1
+ type AuthClientCtor = abstract new (...args: any) => any;
2
+ type PeerCertificate = unknown;
3
+ type HttpsAgentOptions = unknown;
4
+ type HttpAgentOptions = unknown;
5
+ interface Duplex {
6
+ }
7
+ interface Writable {
8
+ end(...args: any[]): any;
9
+ }
10
+ interface Readable {
11
+ }
12
+ interface Transform {
13
+ }
14
+ interface EventEmitter {
15
+ }
16
+ declare const defaultErrorRedactor: (...args: any[]) => unknown;
17
+ declare namespace r {
18
+ interface Response {
19
+ }
20
+ interface CoreOptions {
21
+ }
22
+ interface Options {
23
+ }
24
+ interface Request {
25
+ }
26
+ }
27
+ declare namespace Auth {
28
+ interface OAuth2Client {
29
+ }
30
+ }
31
+ declare namespace gax {
32
+ interface GrpcClientOptions {
33
+ }
34
+ type ClientStub = unknown;
35
+ namespace grpc {
36
+ type ChannelCredentials = unknown;
37
+ }
38
+ }
39
+ declare namespace grpc {
40
+ interface Client {
41
+ }
42
+ type status = number;
43
+ interface Metadata {
44
+ }
45
+ interface ServiceError extends Error {
46
+ }
47
+ }
48
+ declare namespace protobuf {
49
+ interface Root {
50
+ }
51
+ }
52
+ declare namespace google {
53
+ namespace api {
54
+ interface IHttpRule {
55
+ }
56
+ }
57
+ namespace pubsub {
58
+ namespace v1 {
59
+ interface IPubsubMessage {
60
+ }
61
+ interface ISnapshot {
62
+ }
63
+ interface ITopic {
64
+ }
65
+ interface IPublishResponse {
66
+ }
67
+ namespace StreamingPullResponse {
68
+ interface ISubscriptionProperties {
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ declare namespace tracing {
75
+ interface Span {
76
+ }
77
+ interface MessageWithAttributes {
78
+ attributes?: Record<string, string>;
79
+ }
80
+ }
81
+ declare namespace defer {
82
+ interface DeferredPromise<T> extends Promise<T> {
83
+ }
84
+ }
85
+ declare const Bucket: {
86
+ prototype: unknown;
87
+ };
88
+ declare const Channel: {
89
+ prototype: unknown;
90
+ };
91
+ declare const HmacKey: {
92
+ prototype: unknown;
93
+ };
94
+ declare const PubSub: {
95
+ prototype: {
96
+ request: unknown;
97
+ };
98
+ };
1
99
  export interface Abortable {
2
100
  abort(): void;
3
101
  }
@@ -87,7 +185,7 @@ export interface AiIntegrationMetadata extends IntegrationMetadataBase {
87
185
  }
88
186
  export type AiProvider = ProviderEnum.REDAI_LLM | ProviderEnum.OPENAI | ProviderEnum.XAI | ProviderEnum.ANTHROPIC | ProviderEnum.DEEPSEEK | ProviderEnum.VERTEX_AI | ProviderEnum.OPENROUTER | ProviderEnum.AZURE_AI | ProviderEnum.PERPLEXITY_AI;
89
187
  export type ALIBABA_CODING_PLAN = unknown;
90
- export type ALL_EXPORTS = (typeof import('./'))[keyof typeof import('./')];
188
+ export type ALL_EXPORTS = unknown;
91
189
  export type ALL_OF = unknown;
92
190
  export type Allow = unknown;
93
191
  export type AND = unknown;
@@ -100,8 +198,8 @@ export interface AnthropicMetadata {
100
198
  isQuotaExceeded?: boolean;
101
199
  }
102
200
  export type ANY_OF = unknown;
103
- export type AnyAuthClient = InstanceType<Extract<ALL_EXPORTS, AuthClientCtor>>;
104
- export type AnyAuthClientConstructor = Extract<ALL_EXPORTS, AuthClientCtor>;
201
+ export type AnyAuthClient = AuthClient;
202
+ export type AnyAuthClientConstructor = AuthClientCtor;
105
203
  export type API = unknown;
106
204
  export type API_TOKEN = unknown;
107
205
  export type API_TOKEN_CREATE = unknown;
@@ -176,6 +274,9 @@ export type APPROVE = unknown;
176
274
  export type APPROVED = unknown;
177
275
  export type ARCHIVED = unknown;
178
276
  export type AREA = unknown;
277
+ export type AreaChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
278
+ chartType: 'area';
279
+ };
179
280
  export type ARRAY = unknown;
180
281
  export type ASC = unknown;
181
282
  export type ASK_AI = unknown;
@@ -260,6 +361,9 @@ export interface AwsSecurityCredentialsSupplier {
260
361
  export type AZURE_AI = unknown;
261
362
  export type Backup = unknown;
262
363
  export type BAR = unknown;
364
+ export type BarChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
365
+ chartType: 'bar';
366
+ };
263
367
  export type BARCODE = unknown;
264
368
  export type BASE = unknown;
265
369
  export type BASE64 = unknown;
@@ -576,6 +680,7 @@ export type ChartWidgetConfig = {
576
680
  yAxis?: ChartYAxisSpec;
577
681
  series?: ChartSeriesConfigSpec;
578
682
  points?: ChartPointsSpec;
683
+ radar?: RadarConfigSpec;
579
684
  display?: ChartDisplaySpec;
580
685
  };
581
686
  export interface ChartWidgetConfigDto {
@@ -585,6 +690,7 @@ export interface ChartWidgetConfigDto {
585
690
  yAxis?: ChartYAxisSpecDto;
586
691
  series?: ChartSeriesConfigSpecDto;
587
692
  points?: ChartPointsSpecDto;
693
+ radar?: RadarConfigSpecDto;
588
694
  display?: ChartDisplaySpecDto;
589
695
  }
590
696
  export type ChartXAxisMode = 'category' | 'time' | 'numeric';
@@ -652,7 +758,7 @@ export type CLOUD_CLOUDFLARE_R2 = unknown;
652
758
  export type CLOUD_GOOGLE_CLOUD_STORAGE = unknown;
653
759
  export type CLOUD_MINIO = unknown;
654
760
  export type CLOUD_WASABI = unknown;
655
- export interface CloudStorageIntegrationMetadata extends IntegrationMetadataBase {
761
+ export interface CloudStorageIntegrationMetadata {
656
762
  provider: CloudStorageProvider;
657
763
  supportsSignedUrl?: boolean;
658
764
  supportsVersioning?: boolean;
@@ -904,17 +1010,17 @@ export type DashboardMeta = {
904
1010
  };
905
1011
  export interface DashboardResponseDto {
906
1012
  id: string;
907
- fkWorkspaceId?: string | null;
908
- baseId?: string | null;
1013
+ fkWorkspaceId: string | null;
1014
+ baseId: string | null;
909
1015
  title: string;
910
- description?: string | null;
911
- order?: number | null;
1016
+ description: string | null;
1017
+ order: number | null;
912
1018
  status: DashboardStatus | null;
913
1019
  meta?: {
914
1020
  [key: string]: unknown;
915
1021
  };
916
- createdAt?: number | null;
917
- updatedAt?: number | null;
1022
+ createdAt: number | null;
1023
+ updatedAt: number | null;
918
1024
  widgets?: (WidgetResponseDto)[];
919
1025
  }
920
1026
  export declare enum DashboardStatus {
@@ -1012,6 +1118,9 @@ export interface DocsColor {
1012
1118
  }
1013
1119
  export type DOCUMENT = unknown;
1014
1120
  export type DONUT = unknown;
1121
+ export type DonutChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
1122
+ chartType: 'donut';
1123
+ };
1015
1124
  export type DOUBLE = unknown;
1016
1125
  export type DRAFT = unknown;
1017
1126
  export interface Duplexify extends Duplex {
@@ -1615,18 +1724,18 @@ export type FilterLogicalPayload = {
1615
1724
  export type FilterPayload = FilterConditionPayload | FilterGroupPayload | FilterLogicalPayload;
1616
1725
  export interface FilterResponseDto {
1617
1726
  id: string;
1618
- viewId?: string | null;
1619
- parentId?: string | null;
1620
- fieldId?: string | null;
1621
- operator?: string | null;
1622
- comparisonSubOp?: string | null;
1727
+ viewId: string | null;
1728
+ parentId: string | null;
1729
+ fieldId: string | null;
1730
+ operator: string | null;
1731
+ comparisonSubOp: string | null;
1623
1732
  value?: {
1624
1733
  [key: string]: unknown;
1625
1734
  };
1626
- order?: number | null;
1627
- isGroup?: boolean | null;
1628
- createdAt?: number | null;
1629
- updatedAt?: number | null;
1735
+ order: number | null;
1736
+ isGroup: boolean | null;
1737
+ createdAt: number | null;
1738
+ updatedAt: number | null;
1630
1739
  children?: FilterResponseDto;
1631
1740
  }
1632
1741
  export type FLOAT = unknown;
@@ -1961,6 +2070,13 @@ export type GridViewMeta = ViewMeta & {
1961
2070
  };
1962
2071
  export type GROUP_BY_EQ = unknown;
1963
2072
  export type GROUP_BY_NULL = unknown;
2073
+ export interface GroupedChartWidgetConfigBaseDto {
2074
+ scope: WidgetQuerySpecDto;
2075
+ xAxis: ChartXAxisSpecDto;
2076
+ yAxis: ChartYAxisSpecDto;
2077
+ series?: ChartSeriesConfigSpecDto;
2078
+ display?: ChartDisplaySpecDto;
2079
+ }
1964
2080
  export interface GroupFieldDto {
1965
2081
  fieldId: string;
1966
2082
  direction?: 'asc' | 'desc';
@@ -2396,6 +2512,9 @@ export interface LimitOffsetQueryDto {
2396
2512
  offset?: number;
2397
2513
  }
2398
2514
  export type LINE = unknown;
2515
+ export type LineChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
2516
+ chartType: 'line';
2517
+ };
2399
2518
  export interface Link {
2400
2519
  url?: string;
2401
2520
  bookmarkId?: string;
@@ -3017,6 +3136,9 @@ export type PHOTO = unknown;
3017
3136
  export type PHYSICAL = unknown;
3018
3137
  export type PIE = unknown;
3019
3138
  export type PIE_CHART = unknown;
3139
+ export type PieChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
3140
+ chartType: 'pie';
3141
+ };
3020
3142
  export interface PluggableAuthClientOptions extends BaseExternalAccountClientOptions {
3021
3143
  credential_source: {
3022
3144
  executable: {
@@ -3295,6 +3417,78 @@ export interface QueuedMessage {
3295
3417
  }
3296
3418
  export type QueuedMessages = Array<QueuedMessage>;
3297
3419
  export type RADAR = unknown;
3420
+ export interface RadarChartRuntimeDto {
3421
+ chartType: 'radar';
3422
+ family: 'radar';
3423
+ criteria: (RadarCriterionDto)[];
3424
+ series: (RadarRuntimeSeriesDto)[];
3425
+ display?: ChartRuntimeDisplayDto;
3426
+ }
3427
+ export interface RadarChartWidgetConfigDto {
3428
+ chartType: 'radar';
3429
+ scope: WidgetQuerySpecDto;
3430
+ radar: RadarConfigSpecDto;
3431
+ display?: ChartDisplaySpecDto;
3432
+ }
3433
+ export type RadarConfigSpec = {
3434
+ object: RadarObjectSpec;
3435
+ criteria: RadarCriterionSpec[];
3436
+ };
3437
+ export interface RadarConfigSpecDto {
3438
+ object: RadarObjectSpecDto;
3439
+ criteria: (RadarCriterionSpecDto)[];
3440
+ }
3441
+ export interface RadarCriterionDto {
3442
+ key: string;
3443
+ label: string;
3444
+ color?: string | null;
3445
+ }
3446
+ export type RadarCriterionSpec = {
3447
+ key: string;
3448
+ label?: string;
3449
+ aggregation: WidgetAggregationSpec;
3450
+ fieldId?: string;
3451
+ color?: string;
3452
+ };
3453
+ export interface RadarCriterionSpecDto {
3454
+ key: string;
3455
+ label?: string;
3456
+ aggregation: WidgetAggregationSpecDto;
3457
+ fieldId?: string;
3458
+ color?: string;
3459
+ }
3460
+ export type RadarObjectSortBy = 'label' | 'criterion' | 'default';
3461
+ export type RadarObjectSpec = {
3462
+ fieldId: string;
3463
+ sortBy?: RadarObjectSortBy;
3464
+ sortOrder?: ChartSortOrder;
3465
+ sortCriterionKey?: string;
3466
+ objectLimit?: number;
3467
+ includeEmptyObjects?: boolean;
3468
+ includeOthersObject?: boolean;
3469
+ label?: string;
3470
+ };
3471
+ export interface RadarObjectSpecDto {
3472
+ fieldId: string;
3473
+ sortBy?: RadarObjectSortBy;
3474
+ sortOrder?: ChartSortOrder;
3475
+ sortCriterionKey?: string;
3476
+ objectLimit?: number;
3477
+ includeEmptyObjects?: boolean;
3478
+ includeOthersObject?: boolean;
3479
+ label?: string;
3480
+ }
3481
+ export interface RadarRuntimePointDto {
3482
+ x: string;
3483
+ y?: number | null;
3484
+ groups: (ChartRuntimeGroupValueDto)[];
3485
+ }
3486
+ export interface RadarRuntimeSeriesDto {
3487
+ key: string;
3488
+ label: string;
3489
+ objectKind?: 'regular' | 'others';
3490
+ points: (RadarRuntimePointDto)[];
3491
+ }
3298
3492
  export type RADIO_GROUP = unknown;
3299
3493
  export type RAG_SETTINGS = unknown;
3300
3494
  export interface Range {
@@ -4665,6 +4859,12 @@ export interface TextStyle {
4665
4859
  weightedFontFamily?: WeightedFontFamily;
4666
4860
  link?: Link;
4667
4861
  }
4862
+ export type TextWidgetAggregateBindingSource = {
4863
+ kind: 'aggregate';
4864
+ aggregation: WidgetAggregationFunction;
4865
+ fieldId?: string;
4866
+ format?: 'auto' | 'number' | 'currency' | 'percent';
4867
+ };
4668
4868
  export type TextWidgetConfig = {
4669
4869
  content: JsonValue;
4670
4870
  format: 'plain' | 'markdown' | 'json';
@@ -4673,17 +4873,45 @@ export type TextWidgetConfig = {
4673
4873
  export interface TextWidgetConfigDto {
4674
4874
  content: unknown;
4675
4875
  format: 'plain' | 'markdown' | 'json';
4676
- variables?: ({
4677
- key: string;
4678
- sourceWidgetId: string;
4679
- })[];
4876
+ variables?: (TextWidgetVariableBindingDto)[];
4680
4877
  }
4878
+ export type TextWidgetRecordBindingSource = {
4879
+ kind: 'record';
4880
+ fieldIds: string[];
4881
+ row: TextWidgetRowSelector;
4882
+ };
4883
+ export type TextWidgetRecordFieldBindingSource = {
4884
+ kind: 'record_field';
4885
+ fieldId: string;
4886
+ row: TextWidgetRowSelector;
4887
+ format?: 'auto' | 'string' | 'json';
4888
+ };
4889
+ export type TextWidgetRecordsBindingSource = {
4890
+ kind: 'records';
4891
+ fieldIds?: string[];
4892
+ limit?: number;
4893
+ format?: 'json' | 'join';
4894
+ separator?: string;
4895
+ };
4681
4896
  export interface TextWidgetResolvedVariableDto {
4682
4897
  key: string;
4683
- sourceWidgetId: string;
4898
+ rawValue?: {
4899
+ [key: string]: unknown;
4900
+ };
4901
+ binding: {
4902
+ [key: string]: unknown;
4903
+ };
4684
4904
  displayValue: string;
4685
4905
  status: 'resolved' | 'missing' | 'forbidden' | 'invalid_source';
4686
4906
  }
4907
+ export type TextWidgetRowSelector = {
4908
+ mode: 'first';
4909
+ } | {
4910
+ mode: 'last';
4911
+ } | {
4912
+ mode: 'index';
4913
+ index: number;
4914
+ };
4687
4915
  export interface TextWidgetRuntimeDto {
4688
4916
  family: 'text';
4689
4917
  content?: unknown;
@@ -4692,8 +4920,24 @@ export interface TextWidgetRuntimeDto {
4692
4920
  }
4693
4921
  export type TextWidgetVariableBinding = {
4694
4922
  key: string;
4695
- sourceWidgetId: string;
4923
+ query: WidgetQuerySpec;
4924
+ source: TextWidgetVariableSource;
4925
+ output?: {
4926
+ emptyValue?: string;
4927
+ };
4696
4928
  };
4929
+ export interface TextWidgetVariableBindingDto {
4930
+ key: string;
4931
+ query: WidgetQuerySpecDto;
4932
+ source: {
4933
+ [key: string]: unknown;
4934
+ };
4935
+ output?: TextWidgetVariableOutputDto;
4936
+ }
4937
+ export interface TextWidgetVariableOutputDto {
4938
+ emptyValue?: string;
4939
+ }
4940
+ export type TextWidgetVariableSource = TextWidgetAggregateBindingSource | TextWidgetRecordFieldBindingSource | TextWidgetRecordBindingSource | TextWidgetRecordsBindingSource;
4697
4941
  export type Th = unknown;
4698
4942
  export type THURSDAY = unknown;
4699
4943
  export type TIKTOK = unknown;
@@ -5260,7 +5504,9 @@ export type WidgetQuerySpec = {
5260
5504
  export interface WidgetQuerySpecDto {
5261
5505
  modelId: string;
5262
5506
  viewId?: string;
5263
- filters?: WidgetFilter;
5507
+ filters?: {
5508
+ [key: string]: unknown;
5509
+ };
5264
5510
  groupBy?: (string)[];
5265
5511
  sorts?: ({
5266
5512
  [key: string]: unknown;
@@ -5271,25 +5517,25 @@ export interface WidgetQuerySpecDto {
5271
5517
  }
5272
5518
  export interface WidgetResponseDto {
5273
5519
  id: string;
5274
- fkWorkspaceId?: string | null;
5275
- baseId?: string | null;
5276
- fkDashboardId?: string | null;
5520
+ fkWorkspaceId: string | null;
5521
+ baseId: string | null;
5522
+ fkDashboardId: string | null;
5277
5523
  title: string;
5278
- description?: string | null;
5524
+ description: string | null;
5279
5525
  type: WidgetType;
5280
- config?: ChartWidgetConfigDto | IframeWidgetConfigDto | MetricWidgetConfigDto | TextWidgetConfigDto | RedaiViewWidgetConfigDto | TableWidgetConfigDto | ListWidgetConfigDto | CalendarWidgetConfigDto | KanbanWidgetConfigDto | MapWidgetConfigDto;
5281
- row?: number | null;
5282
- col?: number | null;
5283
- sizeX?: number | null;
5284
- sizeY?: number | null;
5285
- fkModelId?: string | null;
5286
- fkViewId?: string | null;
5526
+ config?: BarChartWidgetConfigDto | PieChartWidgetConfigDto | LineChartWidgetConfigDto | AreaChartWidgetConfigDto | DonutChartWidgetConfigDto | RadarChartWidgetConfigDto | IframeWidgetConfigDto | MetricWidgetConfigDto | TextWidgetConfigDto | RedaiViewWidgetConfigDto | TableWidgetConfigDto | ListWidgetConfigDto | CalendarWidgetConfigDto | KanbanWidgetConfigDto | MapWidgetConfigDto | ChartWidgetConfigDto;
5527
+ row: number | null;
5528
+ col: number | null;
5529
+ sizeX: number | null;
5530
+ sizeY: number | null;
5531
+ fkModelId: string | null;
5532
+ fkViewId: string | null;
5287
5533
  meta?: {
5288
5534
  [key: string]: unknown;
5289
5535
  };
5290
- order?: number | null;
5291
- createdAt?: number | null;
5292
- updatedAt?: number | null;
5536
+ order: number | null;
5537
+ createdAt: number | null;
5538
+ updatedAt: number | null;
5293
5539
  filters?: (FilterResponseDto)[];
5294
5540
  }
5295
5541
  export interface WidgetRuntimeResolvedQueryResponseDto {
@@ -5308,7 +5554,7 @@ export interface WidgetRuntimeResponseDto {
5308
5554
  widget: WidgetResponseDto;
5309
5555
  runtimeType: string;
5310
5556
  resolvedQuery: WidgetRuntimeResolvedQueryResponseDto;
5311
- data: CategoricalChartRuntimeDto | ScatterChartRuntimeDto | HeatmapChartRuntimeDto | TreemapChartRuntimeDto | FunnelChartRuntimeDto | MetricWidgetRuntimeDto | TextWidgetRuntimeDto | IframeWidgetRuntimeDto | GridEmbedWidgetRuntimeDto | RedaiViewWidgetRuntimeDto | ForbiddenWidgetRuntimeDto | {
5557
+ data: CategoricalChartRuntimeDto | RadarChartRuntimeDto | ScatterChartRuntimeDto | HeatmapChartRuntimeDto | TreemapChartRuntimeDto | FunnelChartRuntimeDto | MetricWidgetRuntimeDto | TextWidgetRuntimeDto | IframeWidgetRuntimeDto | GridEmbedWidgetRuntimeDto | RedaiViewWidgetRuntimeDto | ForbiddenWidgetRuntimeDto | {
5312
5558
  [key: string]: unknown;
5313
5559
  };
5314
5560
  }
@@ -5546,4 +5792,5 @@ export interface ZaloPersonalNotificationConfig extends BaseNotificationConfig {
5546
5792
  phoneNumber?: string;
5547
5793
  defaultNotificationTemplates: Record<EventNotificationStatus, number | null>;
5548
5794
  }
5795
+ export {};
5549
5796
  //# sourceMappingURL=shared-types.d.ts.map