@databrainhq/plugin 0.9.39 → 0.9.41
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/components/DateRangePicker/index.d.ts +0 -1
- package/dist/components/FilterField/index.d.ts +2 -0
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +1 -0
- package/dist/components/Icons/index.d.ts +1 -1
- package/dist/components/MetricList/MetricList.d.ts +2 -1
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +3 -1
- package/dist/hooks/useClientDashboardLayout.d.ts +1 -1
- package/dist/hooks/useDashboardContext.d.ts +1 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/index.es.js +19249 -18648
- package/dist/index.umd.js +155 -148
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +4 -0
- package/dist/utils/generated/graphql.d.ts +85 -2
- package/package.json +1 -1
package/dist/types/app.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export type LegendSettings = {
|
|
|
43
43
|
left?: number;
|
|
44
44
|
right?: number;
|
|
45
45
|
position?: string;
|
|
46
|
+
truncateLegend?: boolean;
|
|
47
|
+
truncateLegendValue?: number;
|
|
46
48
|
};
|
|
47
49
|
export type MarginSettings = {
|
|
48
50
|
marginTop?: number;
|
|
@@ -90,6 +92,8 @@ export type LabelSettings = {
|
|
|
90
92
|
axis?: string;
|
|
91
93
|
show?: boolean;
|
|
92
94
|
position?: string;
|
|
95
|
+
truncateLabel?: boolean;
|
|
96
|
+
truncateLabelValue?: number;
|
|
93
97
|
};
|
|
94
98
|
export type AxisSettings = {
|
|
95
99
|
axis?: string;
|
|
@@ -375,11 +375,17 @@ export declare enum ClientDashboardLayout_Select_Column {
|
|
|
375
375
|
}
|
|
376
376
|
/** input type for updating data in table "clientDashboardLayout" */
|
|
377
377
|
export type ClientDashboardLayout_Set_Input = {
|
|
378
|
+
clientId?: InputMaybe<Scalars['String']>;
|
|
379
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
378
380
|
isLocked?: InputMaybe<Scalars['Boolean']>;
|
|
379
381
|
layout?: InputMaybe<Scalars['jsonb']>;
|
|
380
382
|
};
|
|
381
383
|
/** update columns of table "clientDashboardLayout" */
|
|
382
384
|
export declare enum ClientDashboardLayout_Update_Column {
|
|
385
|
+
/** column name */
|
|
386
|
+
ClientId = "clientId",
|
|
387
|
+
/** column name */
|
|
388
|
+
ExternalDashboardId = "externalDashboardId",
|
|
383
389
|
/** column name */
|
|
384
390
|
IsLocked = "isLocked",
|
|
385
391
|
/** column name */
|
|
@@ -1107,6 +1113,7 @@ export type ExternalDashboards = {
|
|
|
1107
1113
|
externalDashboardMetrics: Array<ExternalDashboardMetrics>;
|
|
1108
1114
|
filters: Scalars['jsonb'];
|
|
1109
1115
|
id: Scalars['uuid'];
|
|
1116
|
+
layout: Scalars['jsonb'];
|
|
1110
1117
|
name: Scalars['String'];
|
|
1111
1118
|
/** An array relationship */
|
|
1112
1119
|
scheduleEmailReports: Array<ScheduleEmailReports>;
|
|
@@ -1140,6 +1147,10 @@ export type ExternalDashboardsFiltersArgs = {
|
|
|
1140
1147
|
path?: InputMaybe<Scalars['String']>;
|
|
1141
1148
|
};
|
|
1142
1149
|
/** columns and relationships of "externalDashboards" */
|
|
1150
|
+
export type ExternalDashboardsLayoutArgs = {
|
|
1151
|
+
path?: InputMaybe<Scalars['String']>;
|
|
1152
|
+
};
|
|
1153
|
+
/** columns and relationships of "externalDashboards" */
|
|
1143
1154
|
export type ExternalDashboardsScheduleEmailReportsArgs = {
|
|
1144
1155
|
distinct_on?: InputMaybe<Array<ScheduleEmailReports_Select_Column>>;
|
|
1145
1156
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1166,6 +1177,7 @@ export type ExternalDashboards_Bool_Exp = {
|
|
|
1166
1177
|
externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
|
|
1167
1178
|
filters?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
1168
1179
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
1180
|
+
layout?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
1169
1181
|
name?: InputMaybe<String_Comparison_Exp>;
|
|
1170
1182
|
scheduleEmailReports?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
|
|
1171
1183
|
};
|
|
@@ -1193,6 +1205,7 @@ export type ExternalDashboards_Order_By = {
|
|
|
1193
1205
|
externalDashboardMetrics_aggregate?: InputMaybe<ExternalDashboardMetrics_Aggregate_Order_By>;
|
|
1194
1206
|
filters?: InputMaybe<Order_By>;
|
|
1195
1207
|
id?: InputMaybe<Order_By>;
|
|
1208
|
+
layout?: InputMaybe<Order_By>;
|
|
1196
1209
|
name?: InputMaybe<Order_By>;
|
|
1197
1210
|
scheduleEmailReports_aggregate?: InputMaybe<ScheduleEmailReports_Aggregate_Order_By>;
|
|
1198
1211
|
};
|
|
@@ -1207,6 +1220,8 @@ export declare enum ExternalDashboards_Select_Column {
|
|
|
1207
1220
|
/** column name */
|
|
1208
1221
|
Id = "id",
|
|
1209
1222
|
/** column name */
|
|
1223
|
+
Layout = "layout",
|
|
1224
|
+
/** column name */
|
|
1210
1225
|
Name = "name"
|
|
1211
1226
|
}
|
|
1212
1227
|
/** columns and relationships of "externalMetricRawCsvUrls" */
|
|
@@ -2011,6 +2026,7 @@ export type Mutation_Root = {
|
|
|
2011
2026
|
invokeSendCsvUrl?: Maybe<InvokeSaveRawCsvDetailsOutput>;
|
|
2012
2027
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
2013
2028
|
sendRawCsv?: Maybe<SendRawCsvOutput>;
|
|
2029
|
+
shareCsvUrl: Scalars['uuid'];
|
|
2014
2030
|
/** update data of the table: "clientDashboardLayout" */
|
|
2015
2031
|
update_clientDashboardLayout?: Maybe<ClientDashboardLayout_Mutation_Response>;
|
|
2016
2032
|
/** update single row of the table: "clientDashboardLayout" */
|
|
@@ -2205,6 +2221,10 @@ export type Mutation_RootSendRawCsvArgs = {
|
|
|
2205
2221
|
input: SendRawCsvInput;
|
|
2206
2222
|
};
|
|
2207
2223
|
/** mutation root */
|
|
2224
|
+
export type Mutation_RootShareCsvUrlArgs = {
|
|
2225
|
+
input: InvokeSendCsvUrlInput;
|
|
2226
|
+
};
|
|
2227
|
+
/** mutation root */
|
|
2208
2228
|
export type Mutation_RootUpdate_ClientDashboardLayoutArgs = {
|
|
2209
2229
|
_append?: InputMaybe<ClientDashboardLayout_Append_Input>;
|
|
2210
2230
|
_delete_at_path?: InputMaybe<ClientDashboardLayout_Delete_At_Path_Input>;
|
|
@@ -2390,6 +2410,7 @@ export type Query_Root = {
|
|
|
2390
2410
|
scheduleEmailReports: Array<ScheduleEmailReports>;
|
|
2391
2411
|
/** fetch data from the table: "scheduleEmailReports" using primary key columns */
|
|
2392
2412
|
scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
|
|
2413
|
+
shareCsvUrl?: Maybe<ShareCsvUrl>;
|
|
2393
2414
|
/** fetch data from the table: "sharingSettings" */
|
|
2394
2415
|
sharingSettings: Array<SharingSettings>;
|
|
2395
2416
|
/** fetch data from the table: "sharingSettings" using primary key columns */
|
|
@@ -2573,6 +2594,9 @@ export type Query_RootScheduleEmailReportsArgs = {
|
|
|
2573
2594
|
export type Query_RootScheduleEmailReports_By_PkArgs = {
|
|
2574
2595
|
id: Scalars['uuid'];
|
|
2575
2596
|
};
|
|
2597
|
+
export type Query_RootShareCsvUrlArgs = {
|
|
2598
|
+
id: Scalars['uuid'];
|
|
2599
|
+
};
|
|
2576
2600
|
export type Query_RootSharingSettingsArgs = {
|
|
2577
2601
|
distinct_on?: InputMaybe<Array<SharingSettings_Select_Column>>;
|
|
2578
2602
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -2630,7 +2654,9 @@ export type ScheduleEmailReportCharts_Bool_Exp = {
|
|
|
2630
2654
|
/** unique or primary key constraints on table "scheduleEmailReportCharts" */
|
|
2631
2655
|
export declare enum ScheduleEmailReportCharts_Constraint {
|
|
2632
2656
|
/** unique or primary key constraint on columns "id" */
|
|
2633
|
-
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
|
|
2657
|
+
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
|
|
2658
|
+
/** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
|
|
2659
|
+
ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
|
|
2634
2660
|
}
|
|
2635
2661
|
/** input type for inserting data into table "scheduleEmailReportCharts" */
|
|
2636
2662
|
export type ScheduleEmailReportCharts_Insert_Input = {
|
|
@@ -2887,6 +2913,18 @@ export declare enum ScheduleEmailReports_Update_Column {
|
|
|
2887
2913
|
/** column name */
|
|
2888
2914
|
TimeConfigurations = "timeConfigurations"
|
|
2889
2915
|
}
|
|
2916
|
+
/** fields of action: "shareCsvUrl" */
|
|
2917
|
+
export type ShareCsvUrl = {
|
|
2918
|
+
__typename?: 'shareCsvUrl';
|
|
2919
|
+
/** the time at which this action was created */
|
|
2920
|
+
created_at: Scalars['timestamptz'];
|
|
2921
|
+
/** errors related to the invocation */
|
|
2922
|
+
errors?: Maybe<Scalars['json']>;
|
|
2923
|
+
/** the unique id of an action */
|
|
2924
|
+
id: Scalars['uuid'];
|
|
2925
|
+
/** the output fields of this action */
|
|
2926
|
+
output?: Maybe<InvokeSaveRawCsvDetailsOutput>;
|
|
2927
|
+
};
|
|
2890
2928
|
/** columns and relationships of "sharingSettings" */
|
|
2891
2929
|
export type SharingSettings = {
|
|
2892
2930
|
__typename?: 'sharingSettings';
|
|
@@ -2993,6 +3031,7 @@ export type Subscription_Root = {
|
|
|
2993
3031
|
scheduleEmailReports: Array<ScheduleEmailReports>;
|
|
2994
3032
|
/** fetch data from the table: "scheduleEmailReports" using primary key columns */
|
|
2995
3033
|
scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
|
|
3034
|
+
shareCsvUrl?: Maybe<ShareCsvUrl>;
|
|
2996
3035
|
/** fetch data from the table: "sharingSettings" */
|
|
2997
3036
|
sharingSettings: Array<SharingSettings>;
|
|
2998
3037
|
/** fetch data from the table: "sharingSettings" using primary key columns */
|
|
@@ -3173,6 +3212,9 @@ export type Subscription_RootScheduleEmailReportsArgs = {
|
|
|
3173
3212
|
export type Subscription_RootScheduleEmailReports_By_PkArgs = {
|
|
3174
3213
|
id: Scalars['uuid'];
|
|
3175
3214
|
};
|
|
3215
|
+
export type Subscription_RootShareCsvUrlArgs = {
|
|
3216
|
+
id: Scalars['uuid'];
|
|
3217
|
+
};
|
|
3176
3218
|
export type Subscription_RootSharingSettingsArgs = {
|
|
3177
3219
|
distinct_on?: InputMaybe<Array<SharingSettings_Select_Column>>;
|
|
3178
3220
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -3504,6 +3546,7 @@ export type GetExternalDashboardIdQuery = {
|
|
|
3504
3546
|
__typename?: 'externalDashboards';
|
|
3505
3547
|
id: any;
|
|
3506
3548
|
filters: any;
|
|
3549
|
+
layout: any;
|
|
3507
3550
|
}>;
|
|
3508
3551
|
};
|
|
3509
3552
|
export type GetExternalDashboardLayoutQueryVariables = Exact<{
|
|
@@ -3680,6 +3723,22 @@ export type InvokeSendCsvUrlMutation = {
|
|
|
3680
3723
|
statusCode?: number | null;
|
|
3681
3724
|
} | null;
|
|
3682
3725
|
};
|
|
3726
|
+
export type InvokeShareCsvUrlMutationVariables = Exact<{
|
|
3727
|
+
configurations?: InputMaybe<Scalars['json']>;
|
|
3728
|
+
emails?: InputMaybe<Array<InputMaybe<Scalars['String']>> | InputMaybe<Scalars['String']>>;
|
|
3729
|
+
expireCsvFileAt?: InputMaybe<Scalars['String']>;
|
|
3730
|
+
expireUrlIn?: InputMaybe<Scalars['Int']>;
|
|
3731
|
+
externalMetricId?: InputMaybe<Scalars['String']>;
|
|
3732
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
3733
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
3734
|
+
query?: InputMaybe<Scalars['String']>;
|
|
3735
|
+
sharingSettingsId?: InputMaybe<Scalars['String']>;
|
|
3736
|
+
subject?: InputMaybe<Scalars['String']>;
|
|
3737
|
+
}>;
|
|
3738
|
+
export type InvokeShareCsvUrlMutation = {
|
|
3739
|
+
__typename?: 'mutation_root';
|
|
3740
|
+
shareCsvUrl: any;
|
|
3741
|
+
};
|
|
3683
3742
|
export type MarkArchiveMetricMutationVariables = Exact<{
|
|
3684
3743
|
id?: Scalars['uuid'];
|
|
3685
3744
|
clientId?: Scalars['String'];
|
|
@@ -3976,7 +4035,7 @@ export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDas
|
|
|
3976
4035
|
export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3977
4036
|
export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
|
|
3978
4037
|
export declare const useGetExternalDashboardClientThemeQuery: <TData = GetExternalDashboardClientThemeQuery, TError = unknown>(variables: GetExternalDashboardClientThemeQueryVariables, options?: UseQueryOptions<GetExternalDashboardClientThemeQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3979
|
-
export declare const GetExternalDashboardIdDocument = "\n query GetExternalDashboardId($externalDashboardId: String = \"\") {\n externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {\n id\n filters\n }\n}\n ";
|
|
4038
|
+
export declare const GetExternalDashboardIdDocument = "\n query GetExternalDashboardId($externalDashboardId: String = \"\") {\n externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {\n id\n filters\n layout\n }\n}\n ";
|
|
3980
4039
|
export declare const useGetExternalDashboardIdQuery: <TData = GetExternalDashboardIdQuery, TError = unknown>(variables?: GetExternalDashboardIdQueryVariables, options?: UseQueryOptions<GetExternalDashboardIdQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3981
4040
|
export declare const GetExternalDashboardLayoutDocument = "\n query getExternalDashboardLayout($clientId: String!, $externalDashboardId: uuid!) {\n clientDashboardLayout_by_pk(\n clientId: $clientId\n externalDashboardId: $externalDashboardId\n ) {\n clientId\n externalDashboardId\n layout\n isLocked\n }\n}\n ";
|
|
3982
4041
|
export declare const useGetExternalDashboardLayoutQuery: <TData = GetExternalDashboardLayoutQuery, TError = unknown>(variables: GetExternalDashboardLayoutQueryVariables, options?: UseQueryOptions<GetExternalDashboardLayoutQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
@@ -4052,6 +4111,30 @@ export declare const useInvokeSendCsvUrlMutation: <TError = unknown, TContext =
|
|
|
4052
4111
|
sharingSettingsId?: InputMaybe<string> | undefined;
|
|
4053
4112
|
subject?: InputMaybe<string> | undefined;
|
|
4054
4113
|
}>, TContext>;
|
|
4114
|
+
export declare const InvokeShareCsvUrlDocument = "\n mutation InvokeShareCsvUrl($configurations: json = {}, $emails: [String] = [], $expireCsvFileAt: String = \"\", $expireUrlIn: Int = 1800000, $externalMetricId: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $query: String = \"\", $sharingSettingsId: String = \"\", $subject: String = \"\") {\n shareCsvUrl(\n input: {configurations: $configurations, emails: $emails, expireCsvFileAt: $expireCsvFileAt, externalMetricId: $externalMetricId, integrationId: $integrationId, integrationName: $integrationName, query: $query, sharingSettingsId: $sharingSettingsId, subject: $subject, expireUrlIn: $expireUrlIn}\n )\n}\n ";
|
|
4115
|
+
export declare const useInvokeShareCsvUrlMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<InvokeShareCsvUrlMutation, TError, Exact<{
|
|
4116
|
+
configurations?: InputMaybe<Scalars['json']>;
|
|
4117
|
+
emails?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined;
|
|
4118
|
+
expireCsvFileAt?: InputMaybe<string> | undefined;
|
|
4119
|
+
expireUrlIn?: InputMaybe<number> | undefined;
|
|
4120
|
+
externalMetricId?: InputMaybe<string> | undefined;
|
|
4121
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
4122
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
4123
|
+
query?: InputMaybe<string> | undefined;
|
|
4124
|
+
sharingSettingsId?: InputMaybe<string> | undefined;
|
|
4125
|
+
subject?: InputMaybe<string> | undefined;
|
|
4126
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<InvokeShareCsvUrlMutation, TError, Exact<{
|
|
4127
|
+
configurations?: InputMaybe<Scalars['json']>;
|
|
4128
|
+
emails?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined;
|
|
4129
|
+
expireCsvFileAt?: InputMaybe<string> | undefined;
|
|
4130
|
+
expireUrlIn?: InputMaybe<number> | undefined;
|
|
4131
|
+
externalMetricId?: InputMaybe<string> | undefined;
|
|
4132
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
4133
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
4134
|
+
query?: InputMaybe<string> | undefined;
|
|
4135
|
+
sharingSettingsId?: InputMaybe<string> | undefined;
|
|
4136
|
+
subject?: InputMaybe<string> | undefined;
|
|
4137
|
+
}>, TContext>;
|
|
4055
4138
|
export declare const MarkArchiveMetricDocument = "\n mutation MarkArchiveMetric($id: uuid! = \"\", $clientId: String! = \"\") {\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $id, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n}\n ";
|
|
4056
4139
|
export declare const useMarkArchiveMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkArchiveMetricMutation, TError, Exact<{
|
|
4057
4140
|
id?: Scalars['uuid'];
|