@redonvn/redai-backend-api-sdk 0.5.54 → 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 +202 -20
  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 +219 -40
  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;
@@ -654,7 +758,7 @@ export type CLOUD_CLOUDFLARE_R2 = unknown;
654
758
  export type CLOUD_GOOGLE_CLOUD_STORAGE = unknown;
655
759
  export type CLOUD_MINIO = unknown;
656
760
  export type CLOUD_WASABI = unknown;
657
- export interface CloudStorageIntegrationMetadata extends IntegrationMetadataBase {
761
+ export interface CloudStorageIntegrationMetadata {
658
762
  provider: CloudStorageProvider;
659
763
  supportsSignedUrl?: boolean;
660
764
  supportsVersioning?: boolean;
@@ -906,17 +1010,17 @@ export type DashboardMeta = {
906
1010
  };
907
1011
  export interface DashboardResponseDto {
908
1012
  id: string;
909
- fkWorkspaceId?: string | null;
910
- baseId?: string | null;
1013
+ fkWorkspaceId: string | null;
1014
+ baseId: string | null;
911
1015
  title: string;
912
- description?: string | null;
913
- order?: number | null;
1016
+ description: string | null;
1017
+ order: number | null;
914
1018
  status: DashboardStatus | null;
915
1019
  meta?: {
916
1020
  [key: string]: unknown;
917
1021
  };
918
- createdAt?: number | null;
919
- updatedAt?: number | null;
1022
+ createdAt: number | null;
1023
+ updatedAt: number | null;
920
1024
  widgets?: (WidgetResponseDto)[];
921
1025
  }
922
1026
  export declare enum DashboardStatus {
@@ -1014,6 +1118,9 @@ export interface DocsColor {
1014
1118
  }
1015
1119
  export type DOCUMENT = unknown;
1016
1120
  export type DONUT = unknown;
1121
+ export type DonutChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
1122
+ chartType: 'donut';
1123
+ };
1017
1124
  export type DOUBLE = unknown;
1018
1125
  export type DRAFT = unknown;
1019
1126
  export interface Duplexify extends Duplex {
@@ -1617,18 +1724,18 @@ export type FilterLogicalPayload = {
1617
1724
  export type FilterPayload = FilterConditionPayload | FilterGroupPayload | FilterLogicalPayload;
1618
1725
  export interface FilterResponseDto {
1619
1726
  id: string;
1620
- viewId?: string | null;
1621
- parentId?: string | null;
1622
- fieldId?: string | null;
1623
- operator?: string | null;
1624
- comparisonSubOp?: string | null;
1727
+ viewId: string | null;
1728
+ parentId: string | null;
1729
+ fieldId: string | null;
1730
+ operator: string | null;
1731
+ comparisonSubOp: string | null;
1625
1732
  value?: {
1626
1733
  [key: string]: unknown;
1627
1734
  };
1628
- order?: number | null;
1629
- isGroup?: boolean | null;
1630
- createdAt?: number | null;
1631
- updatedAt?: number | null;
1735
+ order: number | null;
1736
+ isGroup: boolean | null;
1737
+ createdAt: number | null;
1738
+ updatedAt: number | null;
1632
1739
  children?: FilterResponseDto;
1633
1740
  }
1634
1741
  export type FLOAT = unknown;
@@ -1963,6 +2070,13 @@ export type GridViewMeta = ViewMeta & {
1963
2070
  };
1964
2071
  export type GROUP_BY_EQ = unknown;
1965
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
+ }
1966
2080
  export interface GroupFieldDto {
1967
2081
  fieldId: string;
1968
2082
  direction?: 'asc' | 'desc';
@@ -2398,6 +2512,9 @@ export interface LimitOffsetQueryDto {
2398
2512
  offset?: number;
2399
2513
  }
2400
2514
  export type LINE = unknown;
2515
+ export type LineChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
2516
+ chartType: 'line';
2517
+ };
2401
2518
  export interface Link {
2402
2519
  url?: string;
2403
2520
  bookmarkId?: string;
@@ -3019,6 +3136,9 @@ export type PHOTO = unknown;
3019
3136
  export type PHYSICAL = unknown;
3020
3137
  export type PIE = unknown;
3021
3138
  export type PIE_CHART = unknown;
3139
+ export type PieChartWidgetConfigDto = GroupedChartWidgetConfigBaseDto & {
3140
+ chartType: 'pie';
3141
+ };
3022
3142
  export interface PluggableAuthClientOptions extends BaseExternalAccountClientOptions {
3023
3143
  credential_source: {
3024
3144
  executable: {
@@ -3304,6 +3424,12 @@ export interface RadarChartRuntimeDto {
3304
3424
  series: (RadarRuntimeSeriesDto)[];
3305
3425
  display?: ChartRuntimeDisplayDto;
3306
3426
  }
3427
+ export interface RadarChartWidgetConfigDto {
3428
+ chartType: 'radar';
3429
+ scope: WidgetQuerySpecDto;
3430
+ radar: RadarConfigSpecDto;
3431
+ display?: ChartDisplaySpecDto;
3432
+ }
3307
3433
  export type RadarConfigSpec = {
3308
3434
  object: RadarObjectSpec;
3309
3435
  criteria: RadarCriterionSpec[];
@@ -4733,6 +4859,12 @@ export interface TextStyle {
4733
4859
  weightedFontFamily?: WeightedFontFamily;
4734
4860
  link?: Link;
4735
4861
  }
4862
+ export type TextWidgetAggregateBindingSource = {
4863
+ kind: 'aggregate';
4864
+ aggregation: WidgetAggregationFunction;
4865
+ fieldId?: string;
4866
+ format?: 'auto' | 'number' | 'currency' | 'percent';
4867
+ };
4736
4868
  export type TextWidgetConfig = {
4737
4869
  content: JsonValue;
4738
4870
  format: 'plain' | 'markdown' | 'json';
@@ -4741,17 +4873,45 @@ export type TextWidgetConfig = {
4741
4873
  export interface TextWidgetConfigDto {
4742
4874
  content: unknown;
4743
4875
  format: 'plain' | 'markdown' | 'json';
4744
- variables?: ({
4745
- key: string;
4746
- sourceWidgetId: string;
4747
- })[];
4876
+ variables?: (TextWidgetVariableBindingDto)[];
4748
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
+ };
4749
4896
  export interface TextWidgetResolvedVariableDto {
4750
4897
  key: string;
4751
- sourceWidgetId: string;
4898
+ rawValue?: {
4899
+ [key: string]: unknown;
4900
+ };
4901
+ binding: {
4902
+ [key: string]: unknown;
4903
+ };
4752
4904
  displayValue: string;
4753
4905
  status: 'resolved' | 'missing' | 'forbidden' | 'invalid_source';
4754
4906
  }
4907
+ export type TextWidgetRowSelector = {
4908
+ mode: 'first';
4909
+ } | {
4910
+ mode: 'last';
4911
+ } | {
4912
+ mode: 'index';
4913
+ index: number;
4914
+ };
4755
4915
  export interface TextWidgetRuntimeDto {
4756
4916
  family: 'text';
4757
4917
  content?: unknown;
@@ -4760,8 +4920,24 @@ export interface TextWidgetRuntimeDto {
4760
4920
  }
4761
4921
  export type TextWidgetVariableBinding = {
4762
4922
  key: string;
4763
- sourceWidgetId: string;
4923
+ query: WidgetQuerySpec;
4924
+ source: TextWidgetVariableSource;
4925
+ output?: {
4926
+ emptyValue?: string;
4927
+ };
4764
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;
4765
4941
  export type Th = unknown;
4766
4942
  export type THURSDAY = unknown;
4767
4943
  export type TIKTOK = unknown;
@@ -5328,7 +5504,9 @@ export type WidgetQuerySpec = {
5328
5504
  export interface WidgetQuerySpecDto {
5329
5505
  modelId: string;
5330
5506
  viewId?: string;
5331
- filters?: WidgetFilter;
5507
+ filters?: {
5508
+ [key: string]: unknown;
5509
+ };
5332
5510
  groupBy?: (string)[];
5333
5511
  sorts?: ({
5334
5512
  [key: string]: unknown;
@@ -5339,25 +5517,25 @@ export interface WidgetQuerySpecDto {
5339
5517
  }
5340
5518
  export interface WidgetResponseDto {
5341
5519
  id: string;
5342
- fkWorkspaceId?: string | null;
5343
- baseId?: string | null;
5344
- fkDashboardId?: string | null;
5520
+ fkWorkspaceId: string | null;
5521
+ baseId: string | null;
5522
+ fkDashboardId: string | null;
5345
5523
  title: string;
5346
- description?: string | null;
5524
+ description: string | null;
5347
5525
  type: WidgetType;
5348
- config?: ChartWidgetConfigDto | IframeWidgetConfigDto | MetricWidgetConfigDto | TextWidgetConfigDto | RedaiViewWidgetConfigDto | TableWidgetConfigDto | ListWidgetConfigDto | CalendarWidgetConfigDto | KanbanWidgetConfigDto | MapWidgetConfigDto;
5349
- row?: number | null;
5350
- col?: number | null;
5351
- sizeX?: number | null;
5352
- sizeY?: number | null;
5353
- fkModelId?: string | null;
5354
- 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;
5355
5533
  meta?: {
5356
5534
  [key: string]: unknown;
5357
5535
  };
5358
- order?: number | null;
5359
- createdAt?: number | null;
5360
- updatedAt?: number | null;
5536
+ order: number | null;
5537
+ createdAt: number | null;
5538
+ updatedAt: number | null;
5361
5539
  filters?: (FilterResponseDto)[];
5362
5540
  }
5363
5541
  export interface WidgetRuntimeResolvedQueryResponseDto {
@@ -5614,4 +5792,5 @@ export interface ZaloPersonalNotificationConfig extends BaseNotificationConfig {
5614
5792
  phoneNumber?: string;
5615
5793
  defaultNotificationTemplates: Record<EventNotificationStatus, number | null>;
5616
5794
  }
5795
+ export {};
5617
5796
  //# sourceMappingURL=shared-types.d.ts.map