@redonvn/redai-backend-api-sdk 0.5.50 → 0.5.51
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.map +1 -1
- package/dist/cjs/generated/shared-types.js +1 -0
- package/dist/cjs/generated/shared-types.js.map +1 -1
- package/dist/esm/generated/dynamic-table/types.d.ts +12 -1
- package/dist/esm/generated/dynamic-table/types.d.ts.map +1 -1
- package/dist/esm/generated/dynamic-table/types.js.map +1 -1
- package/dist/esm/generated/shared-types.d.ts +132 -160
- package/dist/esm/generated/shared-types.d.ts.map +1 -1
- package/dist/esm/generated/shared-types.js +1 -0
- package/dist/esm/generated/shared-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,115 +1,3 @@
|
|
|
1
|
-
type AuthClientCtor = new (...args: any[]) => AuthClient;
|
|
2
|
-
type PeerCertificate = Record<string, unknown>;
|
|
3
|
-
type HttpsAgentOptions = Record<string, unknown>;
|
|
4
|
-
type HttpAgentOptions = Record<string, unknown>;
|
|
5
|
-
declare const defaultErrorRedactor: (...args: any[]) => any;
|
|
6
|
-
declare const Bucket: new (...args: any[]) => any;
|
|
7
|
-
declare const Channel: new (...args: any[]) => any;
|
|
8
|
-
declare const HmacKey: new (...args: any[]) => any;
|
|
9
|
-
declare const PubSub: {
|
|
10
|
-
prototype: {
|
|
11
|
-
request: (...args: any[]) => any;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare class Readable {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
declare class Writable {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
end(...args: any[]): Writable;
|
|
20
|
-
}
|
|
21
|
-
declare class Duplex extends Readable {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
declare class PassThrough extends Duplex {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
declare class Transform extends Duplex {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
declare class EventEmitter {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}
|
|
33
|
-
declare namespace r {
|
|
34
|
-
interface CoreOptions {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}
|
|
37
|
-
interface Options extends CoreOptions {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|
|
40
|
-
interface Response {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}
|
|
43
|
-
interface Request {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
declare namespace grpc {
|
|
48
|
-
type status = number;
|
|
49
|
-
interface Metadata {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}
|
|
52
|
-
interface ServiceError extends Error {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}
|
|
55
|
-
interface Client {
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
}
|
|
58
|
-
type ChannelCredentials = any;
|
|
59
|
-
}
|
|
60
|
-
declare namespace gax {
|
|
61
|
-
interface GrpcClientOptions {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
}
|
|
64
|
-
interface ClientStub {
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
}
|
|
67
|
-
namespace grpc {
|
|
68
|
-
type ChannelCredentials = any;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
declare namespace protobuf {
|
|
72
|
-
interface Root {
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
declare namespace google {
|
|
77
|
-
namespace api {
|
|
78
|
-
interface IHttpRule {
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
namespace pubsub {
|
|
83
|
-
namespace v1 {
|
|
84
|
-
interface IPubsubMessage {
|
|
85
|
-
[key: string]: any;
|
|
86
|
-
}
|
|
87
|
-
interface ISnapshot {
|
|
88
|
-
[key: string]: any;
|
|
89
|
-
}
|
|
90
|
-
interface ITopic {
|
|
91
|
-
[key: string]: any;
|
|
92
|
-
}
|
|
93
|
-
namespace StreamingPullResponse {
|
|
94
|
-
interface ISubscriptionProperties {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
declare namespace tracing {
|
|
102
|
-
interface Span {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
}
|
|
105
|
-
interface MessageWithAttributes {
|
|
106
|
-
[key: string]: any;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
declare namespace defer {
|
|
110
|
-
interface DeferredPromise<T> extends Promise<T> {
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
1
|
export interface Abortable {
|
|
114
2
|
abort(): void;
|
|
115
3
|
}
|
|
@@ -205,8 +93,8 @@ export type Allow = unknown;
|
|
|
205
93
|
export type AND = unknown;
|
|
206
94
|
export type ANTHROPIC = unknown;
|
|
207
95
|
export type ANY_OF = unknown;
|
|
208
|
-
export type AnyAuthClient = InstanceType<Extract<ALL_EXPORTS,
|
|
209
|
-
export type AnyAuthClientConstructor = Extract<ALL_EXPORTS,
|
|
96
|
+
export type AnyAuthClient = InstanceType<Extract<ALL_EXPORTS, typeof AuthClient>>;
|
|
97
|
+
export type AnyAuthClientConstructor = Extract<ALL_EXPORTS, typeof AuthClient>;
|
|
210
98
|
export type API = unknown;
|
|
211
99
|
export type API_TOKEN = unknown;
|
|
212
100
|
export type API_TOKEN_CREATE = unknown;
|
|
@@ -518,6 +406,7 @@ export interface CategoricalChartRuntimeDto {
|
|
|
518
406
|
categories: (string)[];
|
|
519
407
|
buckets: (CategoricalChartBucketDto)[];
|
|
520
408
|
series: (ChartRuntimeSeriesDto)[];
|
|
409
|
+
display?: ChartRuntimeDisplayDto;
|
|
521
410
|
}
|
|
522
411
|
export type CENTER = unknown;
|
|
523
412
|
export type Channel = ServiceObject;
|
|
@@ -543,6 +432,67 @@ export interface ChartAxisSpecDto {
|
|
|
543
432
|
timeBucket?: 'day' | 'week' | 'month' | 'quarter';
|
|
544
433
|
label?: string;
|
|
545
434
|
}
|
|
435
|
+
export type ChartDisplaySpec = {
|
|
436
|
+
showLegend?: boolean;
|
|
437
|
+
showGrid?: boolean;
|
|
438
|
+
showTooltip?: boolean;
|
|
439
|
+
showDataLabels?: boolean;
|
|
440
|
+
seriesLayout?: ChartSeriesLayout;
|
|
441
|
+
showSecondaryAxis?: boolean;
|
|
442
|
+
maxPoints?: number;
|
|
443
|
+
};
|
|
444
|
+
export interface ChartDisplaySpecDto {
|
|
445
|
+
showLegend?: boolean;
|
|
446
|
+
showDataLabels?: boolean;
|
|
447
|
+
showGrid?: boolean;
|
|
448
|
+
showTooltip?: boolean;
|
|
449
|
+
showSecondaryAxis?: boolean;
|
|
450
|
+
seriesLayout?: ChartSeriesLayout;
|
|
451
|
+
maxPoints?: number;
|
|
452
|
+
}
|
|
453
|
+
export type ChartGroupingMode = 'single' | 'breakdown';
|
|
454
|
+
export type ChartMeasureSpec = {
|
|
455
|
+
key: string;
|
|
456
|
+
label: string;
|
|
457
|
+
aggregation: WidgetAggregationSpec;
|
|
458
|
+
fieldId?: string;
|
|
459
|
+
color?: string;
|
|
460
|
+
renderAs?: ChartRenderAs;
|
|
461
|
+
stackGroup?: string;
|
|
462
|
+
useSecondaryAxis?: boolean;
|
|
463
|
+
};
|
|
464
|
+
export interface ChartMeasureSpecDto {
|
|
465
|
+
key: string;
|
|
466
|
+
label: string;
|
|
467
|
+
aggregation: WidgetAggregationSpecDto;
|
|
468
|
+
fieldId?: string;
|
|
469
|
+
color?: string;
|
|
470
|
+
renderAs?: 'bar' | 'line' | 'area';
|
|
471
|
+
stackGroup?: string;
|
|
472
|
+
useSecondaryAxis?: boolean;
|
|
473
|
+
}
|
|
474
|
+
export type ChartPointsSpec = {
|
|
475
|
+
xFieldId: string;
|
|
476
|
+
yFieldId: string;
|
|
477
|
+
sizeFieldId?: string;
|
|
478
|
+
categoryFieldId?: string;
|
|
479
|
+
};
|
|
480
|
+
export interface ChartPointsSpecDto {
|
|
481
|
+
xFieldId: string;
|
|
482
|
+
yFieldId: string;
|
|
483
|
+
sizeFieldId?: string;
|
|
484
|
+
categoryFieldId?: string;
|
|
485
|
+
}
|
|
486
|
+
export type ChartRenderAs = 'bar' | 'line' | 'area';
|
|
487
|
+
export interface ChartRuntimeDisplayDto {
|
|
488
|
+
showLegend?: boolean;
|
|
489
|
+
showGrid?: boolean;
|
|
490
|
+
showTooltip?: boolean;
|
|
491
|
+
showDataLabels?: boolean;
|
|
492
|
+
seriesLayout?: 'grouped' | 'stacked' | 'percent';
|
|
493
|
+
showSecondaryAxis?: boolean;
|
|
494
|
+
maxPoints?: number | null;
|
|
495
|
+
}
|
|
546
496
|
export interface ChartRuntimeGroupValueDto {
|
|
547
497
|
fieldId: string;
|
|
548
498
|
value?: unknown;
|
|
@@ -557,19 +507,20 @@ export interface ChartRuntimeSeriesDto {
|
|
|
557
507
|
label: string;
|
|
558
508
|
renderAs?: 'bar' | 'line' | 'area';
|
|
559
509
|
color?: string | null;
|
|
510
|
+
useSecondaryAxis?: boolean;
|
|
560
511
|
points: (ChartRuntimePointDto)[];
|
|
561
512
|
}
|
|
562
|
-
export type
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
color?: string;
|
|
567
|
-
renderAs?: 'bar' | 'line' | 'area';
|
|
568
|
-
stackGroup?: string;
|
|
569
|
-
xFieldId?: string;
|
|
570
|
-
yFieldId?: string;
|
|
571
|
-
sizeFieldId?: string;
|
|
513
|
+
export type ChartScopeSpec = WidgetQuerySpec;
|
|
514
|
+
export type ChartSeriesConfigSpec = {
|
|
515
|
+
breakdownFieldId?: string;
|
|
516
|
+
groupingMode?: ChartGroupingMode;
|
|
572
517
|
};
|
|
518
|
+
export interface ChartSeriesConfigSpecDto {
|
|
519
|
+
breakdownFieldId?: string;
|
|
520
|
+
groupingMode?: 'single' | 'breakdown';
|
|
521
|
+
}
|
|
522
|
+
export type ChartSeriesLayout = 'grouped' | 'stacked' | 'percent';
|
|
523
|
+
export type ChartSeriesSpec = ChartMeasureSpec;
|
|
573
524
|
export interface ChartSeriesSpecDto {
|
|
574
525
|
label: string;
|
|
575
526
|
aggregation: WidgetAggregationSpecDto;
|
|
@@ -581,6 +532,9 @@ export interface ChartSeriesSpecDto {
|
|
|
581
532
|
yFieldId?: string;
|
|
582
533
|
sizeFieldId?: string;
|
|
583
534
|
}
|
|
535
|
+
export type ChartSortBy = 'label' | 'metric' | 'default';
|
|
536
|
+
export type ChartSortOrder = 'asc' | 'desc' | 'default';
|
|
537
|
+
export type ChartTimeBucket = 'day' | 'week' | 'month' | 'quarter';
|
|
584
538
|
export declare enum ChartType {
|
|
585
539
|
BAR = "bar",
|
|
586
540
|
STACKED_BAR = "stacked_bar",
|
|
@@ -600,39 +554,54 @@ export declare enum ChartType {
|
|
|
600
554
|
}
|
|
601
555
|
export type ChartWidgetConfig = {
|
|
602
556
|
chartType: ChartType;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
yAxis?: ChartAxisSpec;
|
|
610
|
-
series: ChartSeriesSpec[];
|
|
611
|
-
stacked?: boolean;
|
|
612
|
-
showLegend?: boolean;
|
|
613
|
-
showDataLabels?: boolean;
|
|
614
|
-
showGrid?: boolean;
|
|
615
|
-
showTooltip?: boolean;
|
|
616
|
-
showSecondaryAxis?: boolean;
|
|
617
|
-
seriesLayout?: 'grouped' | 'stacked' | 'percent';
|
|
557
|
+
scope: ChartScopeSpec;
|
|
558
|
+
xAxis?: ChartXAxisSpec;
|
|
559
|
+
yAxis?: ChartYAxisSpec;
|
|
560
|
+
series?: ChartSeriesConfigSpec;
|
|
561
|
+
points?: ChartPointsSpec;
|
|
562
|
+
display?: ChartDisplaySpec;
|
|
618
563
|
};
|
|
619
564
|
export interface ChartWidgetConfigDto {
|
|
620
565
|
chartType: ChartType;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
566
|
+
scope: WidgetQuerySpecDto;
|
|
567
|
+
xAxis?: ChartXAxisSpecDto;
|
|
568
|
+
yAxis?: ChartYAxisSpecDto;
|
|
569
|
+
series?: ChartSeriesConfigSpecDto;
|
|
570
|
+
points?: ChartPointsSpecDto;
|
|
571
|
+
display?: ChartDisplaySpecDto;
|
|
572
|
+
}
|
|
573
|
+
export type ChartXAxisMode = 'category' | 'time' | 'numeric';
|
|
574
|
+
export type ChartXAxisSpec = {
|
|
575
|
+
mode: ChartXAxisMode;
|
|
576
|
+
fieldId: string;
|
|
577
|
+
timeBucket?: ChartTimeBucket;
|
|
578
|
+
sortBy?: ChartSortBy;
|
|
579
|
+
sortOrder?: ChartSortOrder;
|
|
580
|
+
sortMeasureKey?: string;
|
|
581
|
+
includeEmptyCategories?: boolean;
|
|
582
|
+
includeOthersBucket?: boolean;
|
|
583
|
+
categoryLimit?: number;
|
|
584
|
+
label?: string;
|
|
585
|
+
};
|
|
586
|
+
export interface ChartXAxisSpecDto {
|
|
587
|
+
mode: 'category' | 'time' | 'numeric';
|
|
588
|
+
fieldId: string;
|
|
589
|
+
timeBucket?: ChartTimeBucket;
|
|
590
|
+
sortBy?: ChartSortBy;
|
|
591
|
+
sortOrder?: ChartSortOrder;
|
|
592
|
+
sortMeasureKey?: string;
|
|
593
|
+
includeEmptyCategories?: boolean;
|
|
594
|
+
includeOthersBucket?: boolean;
|
|
595
|
+
categoryLimit?: number;
|
|
596
|
+
label?: string;
|
|
597
|
+
}
|
|
598
|
+
export type ChartYAxisSpec = {
|
|
599
|
+
measures: ChartMeasureSpec[];
|
|
600
|
+
label?: string;
|
|
601
|
+
};
|
|
602
|
+
export interface ChartYAxisSpecDto {
|
|
603
|
+
measures: (ChartMeasureSpecDto)[];
|
|
604
|
+
label?: string;
|
|
636
605
|
}
|
|
637
606
|
export type CHAT = unknown;
|
|
638
607
|
export type CHECKBOX_GROUP = unknown;
|
|
@@ -1552,6 +1521,7 @@ export interface FunnelChartRuntimeDto {
|
|
|
1552
1521
|
chartType: 'funnel';
|
|
1553
1522
|
family: 'funnel';
|
|
1554
1523
|
steps: (FunnelStepDto)[];
|
|
1524
|
+
display?: ChartRuntimeDisplayDto;
|
|
1555
1525
|
}
|
|
1556
1526
|
export interface FunnelStepDto {
|
|
1557
1527
|
key: string;
|
|
@@ -1588,7 +1558,7 @@ export type GaxiosError<T = any> = Error & {
|
|
|
1588
1558
|
code?: string;
|
|
1589
1559
|
status?: number;
|
|
1590
1560
|
};
|
|
1591
|
-
export type GaxiosInterceptorManager<T extends GaxiosOptions | GaxiosResponse> = Set
|
|
1561
|
+
export type GaxiosInterceptorManager<T extends GaxiosOptions | GaxiosResponse> = Set;
|
|
1592
1562
|
export interface GaxiosMultipartOptions {
|
|
1593
1563
|
headers: Headers;
|
|
1594
1564
|
content: string | Readable;
|
|
@@ -1793,7 +1763,7 @@ export interface GrpcClientOptions extends GoogleAuthOptions {
|
|
|
1793
1763
|
numericEnums?: boolean;
|
|
1794
1764
|
universeDomain?: string;
|
|
1795
1765
|
}
|
|
1796
|
-
export type GrpcModule =
|
|
1766
|
+
export type GrpcModule = typeof grpc;
|
|
1797
1767
|
export type GT = unknown;
|
|
1798
1768
|
export type GTE = unknown;
|
|
1799
1769
|
export type HAS_MANY = unknown;
|
|
@@ -1814,6 +1784,7 @@ export interface HeatmapChartRuntimeDto {
|
|
|
1814
1784
|
chartType: 'heatmap';
|
|
1815
1785
|
family: 'heatmap';
|
|
1816
1786
|
cells: (HeatmapCellDto)[];
|
|
1787
|
+
display?: ChartRuntimeDisplayDto;
|
|
1817
1788
|
}
|
|
1818
1789
|
export type HmacKey = ServiceObject & {
|
|
1819
1790
|
storage: Storage;
|
|
@@ -2079,7 +2050,7 @@ export declare enum IntegrationJobHealthStatus {
|
|
|
2079
2050
|
}
|
|
2080
2051
|
export type IntegrationMetadata = DatabaseIntegrationMetadata | CloudStorageIntegrationMetadata | AiIntegrationMetadata | ChannelIntegrationMetadata | EmailIntegrationMetadata | SmsIntegrationMetadata | GoogleIntegrationMetadata | ShippingIntegrationMetadata | PaymentIntegrationMetadata | OtherIntegrationMetadata;
|
|
2081
2052
|
export interface IntegrationMetadataBase {
|
|
2082
|
-
provider: ProviderEnum
|
|
2053
|
+
provider: ProviderEnum;
|
|
2083
2054
|
displayName?: string;
|
|
2084
2055
|
description?: string;
|
|
2085
2056
|
icon?: string;
|
|
@@ -3224,6 +3195,7 @@ export interface ScatterChartRuntimeDto {
|
|
|
3224
3195
|
pageInfo?: {
|
|
3225
3196
|
[key: string]: unknown;
|
|
3226
3197
|
};
|
|
3198
|
+
display?: ChartRuntimeDisplayDto;
|
|
3227
3199
|
}
|
|
3228
3200
|
export type SCB_BANK = unknown;
|
|
3229
3201
|
export interface Schema {
|
|
@@ -3650,12 +3622,12 @@ export type Storage = Service & {
|
|
|
3650
3622
|
Channel: typeof Channel;
|
|
3651
3623
|
File: typeof File;
|
|
3652
3624
|
HmacKey: typeof HmacKey;
|
|
3653
|
-
|
|
3625
|
+
acl: {
|
|
3654
3626
|
OWNER_ROLE: string;
|
|
3655
3627
|
READER_ROLE: string;
|
|
3656
3628
|
WRITER_ROLE: string;
|
|
3657
3629
|
};
|
|
3658
|
-
acl
|
|
3630
|
+
acl: typeof Storage.acl;
|
|
3659
3631
|
crc32cGenerator: CRC32CValidatorGenerator;
|
|
3660
3632
|
retryOptions: RetryOptions;
|
|
3661
3633
|
sanitizeEndpoint: any;
|
|
@@ -4418,6 +4390,7 @@ export interface TreemapChartRuntimeDto {
|
|
|
4418
4390
|
chartType: 'treemap';
|
|
4419
4391
|
family: 'treemap';
|
|
4420
4392
|
nodes: (TreemapNodeDto)[];
|
|
4393
|
+
display?: ChartRuntimeDisplayDto;
|
|
4421
4394
|
}
|
|
4422
4395
|
export interface TreemapNodeDto {
|
|
4423
4396
|
key: string;
|
|
@@ -5023,5 +4996,4 @@ export interface ZaloPersonalNotificationConfig extends BaseNotificationConfig {
|
|
|
5023
4996
|
phoneNumber?: string;
|
|
5024
4997
|
defaultNotificationTemplates: Record<EventNotificationStatus, number | null>;
|
|
5025
4998
|
}
|
|
5026
|
-
export {};
|
|
5027
4999
|
//# sourceMappingURL=shared-types.d.ts.map
|