@databrainhq/plugin 0.8.25 → 0.9.0
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/ScheduleEmail/ScheduleEmailForm/index.d.ts +6 -0
- package/dist/components/ScheduleEmail/index.d.ts +3 -0
- package/dist/components/TagInputField/index.d.ts +30 -0
- package/dist/consts/app.d.ts +20 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +15 -3
- package/dist/containers/Dashboard/DashboardProvider.d.ts +6 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +5 -3
- package/dist/helpers/getNextScheduledTime.d.ts +13 -0
- package/dist/helpers/groupBy.d.ts +1 -1
- package/dist/hooks/useDashboardContext.d.ts +29 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +3 -1
- package/dist/hooks/useEmbeddedDashboard.d.ts +2 -0
- package/dist/hooks/useScheduleEmail.d.ts +37 -0
- package/dist/index.es.js +1357 -575
- package/dist/index.umd.js +176 -122
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +134 -4
- package/package.json +1 -1
|
@@ -169,8 +169,10 @@ export declare type PreviewTableOutput = {
|
|
|
169
169
|
};
|
|
170
170
|
export declare type SendRawCsvInput = {
|
|
171
171
|
companyId: Scalars['String'];
|
|
172
|
+
metricName?: InputMaybe<Scalars['String']>;
|
|
172
173
|
recipientAddress: Scalars['String'];
|
|
173
174
|
sqlQuery: Scalars['String'];
|
|
175
|
+
workspaceId?: InputMaybe<Scalars['String']>;
|
|
174
176
|
};
|
|
175
177
|
export declare type SendRawCsvOutput = {
|
|
176
178
|
__typename?: 'SendRawCsvOutput';
|
|
@@ -515,6 +517,7 @@ export declare type CompanyIntegrations = {
|
|
|
515
517
|
/** connected source or destination id */
|
|
516
518
|
integrationId: Scalars['uuid'];
|
|
517
519
|
name: Scalars['String'];
|
|
520
|
+
workspaceId: Scalars['uuid'];
|
|
518
521
|
};
|
|
519
522
|
/** columns and relationships of "companyIntegrations" */
|
|
520
523
|
export declare type CompanyIntegrationsExternalMetricsArgs = {
|
|
@@ -541,6 +544,7 @@ export declare type CompanyIntegrations_Bool_Exp = {
|
|
|
541
544
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
542
545
|
integrationId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
543
546
|
name?: InputMaybe<String_Comparison_Exp>;
|
|
547
|
+
workspaceId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
544
548
|
};
|
|
545
549
|
/** order by max() on columns of table "companyIntegrations" */
|
|
546
550
|
export declare type CompanyIntegrations_Max_Order_By = {
|
|
@@ -549,6 +553,7 @@ export declare type CompanyIntegrations_Max_Order_By = {
|
|
|
549
553
|
/** connected source or destination id */
|
|
550
554
|
integrationId?: InputMaybe<Order_By>;
|
|
551
555
|
name?: InputMaybe<Order_By>;
|
|
556
|
+
workspaceId?: InputMaybe<Order_By>;
|
|
552
557
|
};
|
|
553
558
|
/** order by min() on columns of table "companyIntegrations" */
|
|
554
559
|
export declare type CompanyIntegrations_Min_Order_By = {
|
|
@@ -557,6 +562,7 @@ export declare type CompanyIntegrations_Min_Order_By = {
|
|
|
557
562
|
/** connected source or destination id */
|
|
558
563
|
integrationId?: InputMaybe<Order_By>;
|
|
559
564
|
name?: InputMaybe<Order_By>;
|
|
565
|
+
workspaceId?: InputMaybe<Order_By>;
|
|
560
566
|
};
|
|
561
567
|
/** Ordering options when selecting data from "companyIntegrations". */
|
|
562
568
|
export declare type CompanyIntegrations_Order_By = {
|
|
@@ -566,6 +572,7 @@ export declare type CompanyIntegrations_Order_By = {
|
|
|
566
572
|
id?: InputMaybe<Order_By>;
|
|
567
573
|
integrationId?: InputMaybe<Order_By>;
|
|
568
574
|
name?: InputMaybe<Order_By>;
|
|
575
|
+
workspaceId?: InputMaybe<Order_By>;
|
|
569
576
|
};
|
|
570
577
|
/** select columns of table "companyIntegrations" */
|
|
571
578
|
export declare enum CompanyIntegrations_Select_Column {
|
|
@@ -576,7 +583,9 @@ export declare enum CompanyIntegrations_Select_Column {
|
|
|
576
583
|
/** column name */
|
|
577
584
|
IntegrationId = "integrationId",
|
|
578
585
|
/** column name */
|
|
579
|
-
Name = "name"
|
|
586
|
+
Name = "name",
|
|
587
|
+
/** column name */
|
|
588
|
+
WorkspaceId = "workspaceId"
|
|
580
589
|
}
|
|
581
590
|
export declare type CompanySubsetTableDataError = {
|
|
582
591
|
__typename?: 'companySubsetTableDataError';
|
|
@@ -2147,7 +2156,9 @@ export declare type ScheduleEmailReportCharts_Bool_Exp = {
|
|
|
2147
2156
|
/** unique or primary key constraints on table "scheduleEmailReportCharts" */
|
|
2148
2157
|
export declare enum ScheduleEmailReportCharts_Constraint {
|
|
2149
2158
|
/** unique or primary key constraint on columns "id" */
|
|
2150
|
-
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
|
|
2159
|
+
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
|
|
2160
|
+
/** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
|
|
2161
|
+
ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
|
|
2151
2162
|
}
|
|
2152
2163
|
/** input type for inserting data into table "scheduleEmailReportCharts" */
|
|
2153
2164
|
export declare type ScheduleEmailReportCharts_Insert_Input = {
|
|
@@ -2810,6 +2821,26 @@ export declare type CreateExternalMetricMutation = {
|
|
|
2810
2821
|
}>;
|
|
2811
2822
|
} | null;
|
|
2812
2823
|
};
|
|
2824
|
+
export declare type DeleteScheduleEmailReportChartsMutationVariables = Exact<{
|
|
2825
|
+
scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
|
|
2826
|
+
}>;
|
|
2827
|
+
export declare type DeleteScheduleEmailReportChartsMutation = {
|
|
2828
|
+
__typename?: 'mutation_root';
|
|
2829
|
+
delete_scheduleEmailReportCharts?: {
|
|
2830
|
+
__typename?: 'scheduleEmailReportCharts_mutation_response';
|
|
2831
|
+
affected_rows: number;
|
|
2832
|
+
} | null;
|
|
2833
|
+
};
|
|
2834
|
+
export declare type DeleteScheduledEmailMutationVariables = Exact<{
|
|
2835
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
2836
|
+
}>;
|
|
2837
|
+
export declare type DeleteScheduledEmailMutation = {
|
|
2838
|
+
__typename?: 'mutation_root';
|
|
2839
|
+
delete_scheduleEmailReports_by_pk?: {
|
|
2840
|
+
__typename?: 'scheduleEmailReports';
|
|
2841
|
+
id: any;
|
|
2842
|
+
} | null;
|
|
2843
|
+
};
|
|
2813
2844
|
export declare type FetchColumnDataMutationVariables = Exact<{
|
|
2814
2845
|
tableName?: InputMaybe<Scalars['String']>;
|
|
2815
2846
|
columnName?: InputMaybe<Scalars['String']>;
|
|
@@ -2944,6 +2975,7 @@ export declare type EmbeddedDashboardMetricsQuery = {
|
|
|
2944
2975
|
companyIntegration: {
|
|
2945
2976
|
__typename?: 'companyIntegrations';
|
|
2946
2977
|
name: string;
|
|
2978
|
+
workspaceId: any;
|
|
2947
2979
|
};
|
|
2948
2980
|
};
|
|
2949
2981
|
}>;
|
|
@@ -3025,6 +3057,32 @@ export declare type MetricAccessQuery = {
|
|
|
3025
3057
|
isAllowChangeLayout: boolean;
|
|
3026
3058
|
}>;
|
|
3027
3059
|
};
|
|
3060
|
+
export declare type ScheduleEmailReportQueryVariables = Exact<{
|
|
3061
|
+
token?: InputMaybe<Scalars['uuid']>;
|
|
3062
|
+
}>;
|
|
3063
|
+
export declare type ScheduleEmailReportQuery = {
|
|
3064
|
+
__typename?: 'query_root';
|
|
3065
|
+
scheduleEmailReports: Array<{
|
|
3066
|
+
__typename?: 'scheduleEmailReports';
|
|
3067
|
+
externalDashboardId: any;
|
|
3068
|
+
guestToken: any;
|
|
3069
|
+
nextScheduledAt: string;
|
|
3070
|
+
sharingSettingsId: any;
|
|
3071
|
+
subject: string;
|
|
3072
|
+
timeConfigurations: any;
|
|
3073
|
+
id: any;
|
|
3074
|
+
}>;
|
|
3075
|
+
};
|
|
3076
|
+
export declare type SharingSettingsIdQueryVariables = Exact<{
|
|
3077
|
+
companyId?: InputMaybe<Scalars['uuid']>;
|
|
3078
|
+
}>;
|
|
3079
|
+
export declare type SharingSettingsIdQuery = {
|
|
3080
|
+
__typename?: 'query_root';
|
|
3081
|
+
sharingSettings: Array<{
|
|
3082
|
+
__typename?: 'sharingSettings';
|
|
3083
|
+
id: any;
|
|
3084
|
+
}>;
|
|
3085
|
+
};
|
|
3028
3086
|
export declare type GetThemesQueryVariables = Exact<{
|
|
3029
3087
|
companyId?: Scalars['uuid'];
|
|
3030
3088
|
}>;
|
|
@@ -3109,6 +3167,8 @@ export declare type RawCsvMutationVariables = Exact<{
|
|
|
3109
3167
|
companyId?: InputMaybe<Scalars['String']>;
|
|
3110
3168
|
recipientAddress?: InputMaybe<Scalars['String']>;
|
|
3111
3169
|
sqlQuery?: InputMaybe<Scalars['String']>;
|
|
3170
|
+
metricName?: InputMaybe<Scalars['String']>;
|
|
3171
|
+
workspaceId?: InputMaybe<Scalars['String']>;
|
|
3112
3172
|
}>;
|
|
3113
3173
|
export declare type RawCsvMutation = {
|
|
3114
3174
|
__typename?: 'mutation_root';
|
|
@@ -3137,6 +3197,36 @@ export declare type SaveExternalDashboardLayoutMutation = {
|
|
|
3137
3197
|
isLocked: boolean;
|
|
3138
3198
|
} | null;
|
|
3139
3199
|
};
|
|
3200
|
+
export declare type SaveScheduleEmailMutationVariables = Exact<{
|
|
3201
|
+
emails?: InputMaybe<Scalars['json']>;
|
|
3202
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
3203
|
+
guestToken?: InputMaybe<Scalars['uuid']>;
|
|
3204
|
+
nextScheduledAt?: InputMaybe<Scalars['String']>;
|
|
3205
|
+
sharingSettingsId?: InputMaybe<Scalars['uuid']>;
|
|
3206
|
+
subject?: InputMaybe<Scalars['String']>;
|
|
3207
|
+
timeConfigurations?: InputMaybe<Scalars['json']>;
|
|
3208
|
+
data?: InputMaybe<Array<ScheduleEmailReportCharts_Insert_Input> | ScheduleEmailReportCharts_Insert_Input>;
|
|
3209
|
+
}>;
|
|
3210
|
+
export declare type SaveScheduleEmailMutation = {
|
|
3211
|
+
__typename?: 'mutation_root';
|
|
3212
|
+
insert_scheduleEmailReports_one?: {
|
|
3213
|
+
__typename?: 'scheduleEmailReports';
|
|
3214
|
+
emails: any;
|
|
3215
|
+
externalDashboardId: any;
|
|
3216
|
+
guestToken: any;
|
|
3217
|
+
id: any;
|
|
3218
|
+
nextScheduledAt: string;
|
|
3219
|
+
sharingSettingsId: any;
|
|
3220
|
+
subject: string;
|
|
3221
|
+
timeConfigurations: any;
|
|
3222
|
+
scheduleEmailReportCharts: Array<{
|
|
3223
|
+
__typename?: 'scheduleEmailReportCharts';
|
|
3224
|
+
externalMetricId: any;
|
|
3225
|
+
id: any;
|
|
3226
|
+
scheduleEmailReportId: any;
|
|
3227
|
+
}>;
|
|
3228
|
+
} | null;
|
|
3229
|
+
};
|
|
3140
3230
|
export declare type UpdateAdminMetricMutationVariables = Exact<{
|
|
3141
3231
|
externalMetricId: Scalars['uuid'];
|
|
3142
3232
|
object: ExternalMetrics_Insert_Input;
|
|
@@ -3236,6 +3326,18 @@ export declare const useCreateExternalMetricMutation: <TError = unknown, TContex
|
|
|
3236
3326
|
isEnableGroupBy?: InputMaybe<boolean> | undefined;
|
|
3237
3327
|
groupBy?: InputMaybe<Scalars['jsonb']>;
|
|
3238
3328
|
}>, TContext>;
|
|
3329
|
+
export declare const DeleteScheduleEmailReportChartsDocument = "\n mutation DeleteScheduleEmailReportCharts($scheduleEmailReportId: uuid = \"\") {\n delete_scheduleEmailReportCharts(\n where: {scheduleEmailReportId: {_eq: $scheduleEmailReportId}}\n ) {\n affected_rows\n }\n}\n ";
|
|
3330
|
+
export declare const useDeleteScheduleEmailReportChartsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<DeleteScheduleEmailReportChartsMutation, TError, Exact<{
|
|
3331
|
+
scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
|
|
3332
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduleEmailReportChartsMutation, TError, Exact<{
|
|
3333
|
+
scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
|
|
3334
|
+
}>, TContext>;
|
|
3335
|
+
export declare const DeleteScheduledEmailDocument = "\n mutation DeleteScheduledEmail($id: uuid = \"\") {\n delete_scheduleEmailReports_by_pk(id: $id) {\n id\n }\n}\n ";
|
|
3336
|
+
export declare const useDeleteScheduledEmailMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<DeleteScheduledEmailMutation, TError, Exact<{
|
|
3337
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
3338
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduledEmailMutation, TError, Exact<{
|
|
3339
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
3340
|
+
}>, TContext>;
|
|
3239
3341
|
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
|
|
3240
3342
|
export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
|
|
3241
3343
|
tableName?: InputMaybe<string> | undefined;
|
|
@@ -3282,7 +3384,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
|
|
|
3282
3384
|
companyId?: InputMaybe<string> | undefined;
|
|
3283
3385
|
workspaceId?: InputMaybe<string> | undefined;
|
|
3284
3386
|
}>, TContext>;
|
|
3285
|
-
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n
|
|
3387
|
+
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n }\n }\n}\n ";
|
|
3286
3388
|
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>;
|
|
3287
3389
|
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 ";
|
|
3288
3390
|
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>;
|
|
@@ -3296,6 +3398,10 @@ export declare const GuestTokenParamsDocument = "\n query GuestTokenParams($i
|
|
|
3296
3398
|
export declare const useGuestTokenParamsQuery: <TData = GuestTokenParamsQuery, TError = unknown>(variables?: GuestTokenParamsQueryVariables, options?: UseQueryOptions<GuestTokenParamsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3297
3399
|
export declare const MetricAccessDocument = "\n query MetricAccess($companyId: uuid = \"\") {\n companySubsetTables(where: {companyId: {_eq: $companyId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n isAllowMetricUpdation\n isAllowChangeLayout\n }\n}\n ";
|
|
3298
3400
|
export declare const useMetricAccessQuery: <TData = MetricAccessQuery, TError = unknown>(variables?: MetricAccessQueryVariables, options?: UseQueryOptions<MetricAccessQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3401
|
+
export declare const ScheduleEmailReportDocument = "\n query ScheduleEmailReport($token: uuid = \"\") {\n scheduleEmailReports(where: {guestToken: {_eq: $token}}) {\n externalDashboardId\n guestToken\n nextScheduledAt\n sharingSettingsId\n subject\n timeConfigurations\n id\n }\n}\n ";
|
|
3402
|
+
export declare const useScheduleEmailReportQuery: <TData = ScheduleEmailReportQuery, TError = unknown>(variables?: ScheduleEmailReportQueryVariables, options?: UseQueryOptions<ScheduleEmailReportQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3403
|
+
export declare const SharingSettingsIdDocument = "\n query SharingSettingsId($companyId: uuid = \"\") {\n sharingSettings(where: {companyId: {_eq: $companyId}}) {\n id\n }\n}\n ";
|
|
3404
|
+
export declare const useSharingSettingsIdQuery: <TData = SharingSettingsIdQuery, TError = unknown>(variables?: SharingSettingsIdQueryVariables, options?: UseQueryOptions<SharingSettingsIdQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3299
3405
|
export declare const GetThemesDocument = "\n query GetThemes($companyId: uuid! = \"\") {\n themes(where: {companyId: {_eq: $companyId}}) {\n id\n companyId\n general\n dashboard\n cardTitle\n cardDescription\n chart\n }\n}\n ";
|
|
3300
3406
|
export declare const useGetThemesQuery: <TData = GetThemesQuery, TError = unknown>(variables?: GetThemesQueryVariables, options?: UseQueryOptions<GetThemesQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3301
3407
|
export declare const UnderlyingDataDocument = "\n mutation UnderlyingData($columnName: String = \"\", $companyId: String = \"\", $query: String = \"\", $value: json = \"\") {\n getUnderlyingData(\n input: {columnName: $columnName, companyId: $companyId, query: $query, value: $value}\n ) {\n data\n timeTaken\n }\n}\n ";
|
|
@@ -3332,15 +3438,19 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
|
|
|
3332
3438
|
}>, TContext>;
|
|
3333
3439
|
export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\") {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel}\n ) {\n data\n timeTaken\n }\n}\n ";
|
|
3334
3440
|
export declare const useQueryExternalMetricQuery: <TData = QueryExternalMetricQuery, TError = unknown>(variables?: QueryExternalMetricQueryVariables, options?: UseQueryOptions<QueryExternalMetricQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3335
|
-
export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
|
|
3441
|
+
export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\", $metricName: String = \"\", $workspaceId: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery, metricName: $metricName, workspaceId: $workspaceId}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
|
|
3336
3442
|
export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
|
|
3337
3443
|
companyId?: InputMaybe<string> | undefined;
|
|
3338
3444
|
recipientAddress?: InputMaybe<string> | undefined;
|
|
3339
3445
|
sqlQuery?: InputMaybe<string> | undefined;
|
|
3446
|
+
metricName?: InputMaybe<string> | undefined;
|
|
3447
|
+
workspaceId?: InputMaybe<string> | undefined;
|
|
3340
3448
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<RawCsvMutation, TError, Exact<{
|
|
3341
3449
|
companyId?: InputMaybe<string> | undefined;
|
|
3342
3450
|
recipientAddress?: InputMaybe<string> | undefined;
|
|
3343
3451
|
sqlQuery?: InputMaybe<string> | undefined;
|
|
3452
|
+
metricName?: InputMaybe<string> | undefined;
|
|
3453
|
+
workspaceId?: InputMaybe<string> | undefined;
|
|
3344
3454
|
}>, TContext>;
|
|
3345
3455
|
export declare const SaveExternalDashboardLayoutDocument = "\n mutation SaveExternalDashboardLayout($clientId: String!, $externalDashboardId: uuid!, $layout: jsonb!, $isLocked: Boolean) {\n insert_clientDashboardLayout_one(\n object: {clientId: $clientId, externalDashboardId: $externalDashboardId, layout: $layout, isLocked: $isLocked}\n on_conflict: {constraint: clientDashboardLayout_pkey, update_columns: [layout, isLocked]}\n ) {\n clientId\n externalDashboardId\n layout\n isLocked\n }\n}\n ";
|
|
3346
3456
|
export declare const useSaveExternalDashboardLayoutMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<SaveExternalDashboardLayoutMutation, TError, Exact<{
|
|
@@ -3354,6 +3464,26 @@ export declare const useSaveExternalDashboardLayoutMutation: <TError = unknown,
|
|
|
3354
3464
|
layout: Scalars['jsonb'];
|
|
3355
3465
|
isLocked?: InputMaybe<boolean> | undefined;
|
|
3356
3466
|
}>, TContext>;
|
|
3467
|
+
export declare const SaveScheduleEmailDocument = "\n mutation SaveScheduleEmail($emails: json = \"\", $externalDashboardId: uuid = \"\", $guestToken: uuid = \"\", $nextScheduledAt: String = \"\", $sharingSettingsId: uuid = \"\", $subject: String = \"\", $timeConfigurations: json = \"\", $data: [scheduleEmailReportCharts_insert_input!] = []) {\n insert_scheduleEmailReports_one(\n object: {emails: $emails, externalDashboardId: $externalDashboardId, guestToken: $guestToken, nextScheduledAt: $nextScheduledAt, sharingSettingsId: $sharingSettingsId, subject: $subject, timeConfigurations: $timeConfigurations, scheduleEmailReportCharts: {data: $data}}\n on_conflict: {constraint: scheduleEmailReports_guestToken_key, update_columns: [emails, nextScheduledAt, sharingSettingsId, subject, timeConfigurations]}\n ) {\n emails\n externalDashboardId\n guestToken\n id\n nextScheduledAt\n sharingSettingsId\n subject\n timeConfigurations\n scheduleEmailReportCharts {\n externalMetricId\n id\n scheduleEmailReportId\n }\n }\n}\n ";
|
|
3468
|
+
export declare const useSaveScheduleEmailMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<SaveScheduleEmailMutation, TError, Exact<{
|
|
3469
|
+
emails?: InputMaybe<Scalars['json']>;
|
|
3470
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
3471
|
+
guestToken?: InputMaybe<Scalars['uuid']>;
|
|
3472
|
+
nextScheduledAt?: InputMaybe<string> | undefined;
|
|
3473
|
+
sharingSettingsId?: InputMaybe<Scalars['uuid']>;
|
|
3474
|
+
subject?: InputMaybe<string> | undefined;
|
|
3475
|
+
timeConfigurations?: InputMaybe<Scalars['json']>;
|
|
3476
|
+
data?: InputMaybe<ScheduleEmailReportCharts_Insert_Input | ScheduleEmailReportCharts_Insert_Input[]> | undefined;
|
|
3477
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<SaveScheduleEmailMutation, TError, Exact<{
|
|
3478
|
+
emails?: InputMaybe<Scalars['json']>;
|
|
3479
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
3480
|
+
guestToken?: InputMaybe<Scalars['uuid']>;
|
|
3481
|
+
nextScheduledAt?: InputMaybe<string> | undefined;
|
|
3482
|
+
sharingSettingsId?: InputMaybe<Scalars['uuid']>;
|
|
3483
|
+
subject?: InputMaybe<string> | undefined;
|
|
3484
|
+
timeConfigurations?: InputMaybe<Scalars['json']>;
|
|
3485
|
+
data?: InputMaybe<ScheduleEmailReportCharts_Insert_Input | ScheduleEmailReportCharts_Insert_Input[]> | undefined;
|
|
3486
|
+
}>, TContext>;
|
|
3357
3487
|
export declare const UpdateAdminMetricDocument = "\n mutation UpdateAdminMetric($externalMetricId: uuid!, $object: externalMetrics_insert_input!, $clientId: String!) {\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $externalMetricId, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n insert_externalMetrics_one(object: $object) {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n clickActions\n }\n}\n ";
|
|
3358
3488
|
export declare const useUpdateAdminMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UpdateAdminMetricMutation, TError, Exact<{
|
|
3359
3489
|
externalMetricId: Scalars['uuid'];
|