@databrainhq/plugin 0.9.26 → 0.9.27

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.
@@ -172,6 +172,18 @@ export type InvokeSaveRawCsvDetailsOutput = {
172
172
  error?: Maybe<Scalars['String']>;
173
173
  statusCode?: Maybe<Scalars['Int']>;
174
174
  };
175
+ export type InvokeSendCsvUrlInput = {
176
+ configurations: Scalars['json'];
177
+ emails: Array<InputMaybe<Scalars['String']>>;
178
+ expireCsvFileAt: Scalars['String'];
179
+ expireUrlIn: Scalars['Int'];
180
+ externalMetricId: Scalars['String'];
181
+ integrationId: Scalars['String'];
182
+ integrationName: Scalars['String'];
183
+ query: Scalars['String'];
184
+ sharingSettingsId: Scalars['String'];
185
+ subject: Scalars['String'];
186
+ };
175
187
  export type PreviewTableData = {
176
188
  __typename?: 'PreviewTableData';
177
189
  data?: Maybe<Scalars['json']>;
@@ -1995,6 +2007,7 @@ export type Mutation_Root = {
1995
2007
  /** insert a single row into the table: "scheduleEmailReports" */
1996
2008
  insert_scheduleEmailReports_one?: Maybe<ScheduleEmailReports>;
1997
2009
  invokeSaveRawCsvDetails?: Maybe<InvokeSaveRawCsvDetailsOutput>;
2010
+ invokeSendCsvUrl?: Maybe<InvokeSaveRawCsvDetailsOutput>;
1998
2011
  previewTable?: Maybe<PreviewTableOutput>;
1999
2012
  sendRawCsv?: Maybe<SendRawCsvOutput>;
2000
2013
  /** update data of the table: "clientDashboardLayout" */
@@ -2179,6 +2192,10 @@ export type Mutation_RootInvokeSaveRawCsvDetailsArgs = {
2179
2192
  input: InvokeSaveRawCsvDetailsInput;
2180
2193
  };
2181
2194
  /** mutation root */
2195
+ export type Mutation_RootInvokeSendCsvUrlArgs = {
2196
+ input: InvokeSendCsvUrlInput;
2197
+ };
2198
+ /** mutation root */
2182
2199
  export type Mutation_RootPreviewTableArgs = {
2183
2200
  input: PreviewTableInput;
2184
2201
  };
@@ -2612,9 +2629,7 @@ export type ScheduleEmailReportCharts_Bool_Exp = {
2612
2629
  /** unique or primary key constraints on table "scheduleEmailReportCharts" */
2613
2630
  export declare enum ScheduleEmailReportCharts_Constraint {
2614
2631
  /** unique or primary key constraint on columns "id" */
2615
- ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
2616
- /** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
2617
- ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
2632
+ ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
2618
2633
  }
2619
2634
  /** input type for inserting data into table "scheduleEmailReportCharts" */
2620
2635
  export type ScheduleEmailReportCharts_Insert_Input = {
@@ -3643,6 +3658,26 @@ export type InvokeSaveRawCsvDetailsMutation = {
3643
3658
  statusCode?: number | null;
3644
3659
  } | null;
3645
3660
  };
3661
+ export type InvokeSendCsvUrlMutationVariables = Exact<{
3662
+ configurations?: InputMaybe<Scalars['json']>;
3663
+ emails?: InputMaybe<Array<InputMaybe<Scalars['String']>> | InputMaybe<Scalars['String']>>;
3664
+ expireCsvFileAt?: InputMaybe<Scalars['String']>;
3665
+ expireUrlIn?: InputMaybe<Scalars['Int']>;
3666
+ externalMetricId?: InputMaybe<Scalars['String']>;
3667
+ integrationId?: InputMaybe<Scalars['String']>;
3668
+ integrationName?: InputMaybe<Scalars['String']>;
3669
+ query?: InputMaybe<Scalars['String']>;
3670
+ sharingSettingsId?: InputMaybe<Scalars['String']>;
3671
+ subject?: InputMaybe<Scalars['String']>;
3672
+ }>;
3673
+ export type InvokeSendCsvUrlMutation = {
3674
+ __typename?: 'mutation_root';
3675
+ invokeSendCsvUrl?: {
3676
+ __typename?: 'InvokeSaveRawCsvDetailsOutput';
3677
+ error?: string | null;
3678
+ statusCode?: number | null;
3679
+ } | null;
3680
+ };
3646
3681
  export type MarkArchiveMetricMutationVariables = Exact<{
3647
3682
  id?: Scalars['uuid'];
3648
3683
  clientId?: Scalars['String'];
@@ -3989,6 +4024,30 @@ export declare const useInvokeSaveRawCsvDetailsMutation: <TError = unknown, TCon
3989
4024
  query?: InputMaybe<string> | undefined;
3990
4025
  expireUrlIn?: InputMaybe<number> | undefined;
3991
4026
  }>, TContext>;
4027
+ export declare const InvokeSendCsvUrlDocument = "\n mutation InvokeSendCsvUrl($configurations: json = {}, $emails: [String] = [], $expireCsvFileAt: String = \"\", $expireUrlIn: Int = 1800000, $externalMetricId: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $query: String = \"\", $sharingSettingsId: String = \"\", $subject: String = \"\") {\n invokeSendCsvUrl(\n input: {configurations: $configurations, emails: $emails, expireCsvFileAt: $expireCsvFileAt, externalMetricId: $externalMetricId, integrationId: $integrationId, integrationName: $integrationName, query: $query, sharingSettingsId: $sharingSettingsId, subject: $subject, expireUrlIn: $expireUrlIn}\n ) {\n error\n statusCode\n }\n}\n ";
4028
+ export declare const useInvokeSendCsvUrlMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<InvokeSendCsvUrlMutation, TError, Exact<{
4029
+ configurations?: InputMaybe<Scalars['json']>;
4030
+ emails?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined;
4031
+ expireCsvFileAt?: InputMaybe<string> | undefined;
4032
+ expireUrlIn?: InputMaybe<number> | undefined;
4033
+ externalMetricId?: InputMaybe<string> | undefined;
4034
+ integrationId?: InputMaybe<string> | undefined;
4035
+ integrationName?: InputMaybe<string> | undefined;
4036
+ query?: InputMaybe<string> | undefined;
4037
+ sharingSettingsId?: InputMaybe<string> | undefined;
4038
+ subject?: InputMaybe<string> | undefined;
4039
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<InvokeSendCsvUrlMutation, TError, Exact<{
4040
+ configurations?: InputMaybe<Scalars['json']>;
4041
+ emails?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined;
4042
+ expireCsvFileAt?: InputMaybe<string> | undefined;
4043
+ expireUrlIn?: InputMaybe<number> | undefined;
4044
+ externalMetricId?: InputMaybe<string> | undefined;
4045
+ integrationId?: InputMaybe<string> | undefined;
4046
+ integrationName?: InputMaybe<string> | undefined;
4047
+ query?: InputMaybe<string> | undefined;
4048
+ sharingSettingsId?: InputMaybe<string> | undefined;
4049
+ subject?: InputMaybe<string> | undefined;
4050
+ }>, TContext>;
3992
4051
  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 ";
3993
4052
  export declare const useMarkArchiveMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkArchiveMetricMutation, TError, Exact<{
3994
4053
  id?: Scalars['uuid'];
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "@databrainhq/plugin",
3
- "version": "0.9.26",
4
- "description": "Databrain app dashboard ui plugin.",
5
- "author": "",
6
- "license": "MIT",
7
- "repository": "databrainhq/plugin",
8
- "source": "src/index.ts",
9
- "main": "./dist/index.umd.js",
10
- "module": "./dist/index.es.js",
11
- "types": "./dist/index.d.ts",
12
- "exports": {
13
- ".": {
14
- "import": "./dist/index.es.js",
15
- "require": "./dist/index.umd.js"
16
- },
17
- "./dist/style.css": "./dist/style.css"
18
- },
19
- "scripts": {
20
- "start:repl": "vite --host 0.0.0.0",
21
- "serve": "vite --port 3005",
22
- "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
- "build": "tsc && vite build",
24
- "husky": "husky install",
25
- "predeploy": "cd example && npm install && npm run build",
26
- "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
27
- "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
28
- "prepare": "npm run build",
29
- "storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
30
- "storybook": "storybook dev -p 6006",
31
- "build-storybook": "storybook build"
32
- },
33
- "devDependencies": {
34
- "@commitlint/cli": "^17.0.3",
35
- "@commitlint/config-conventional": "^17.0.3",
36
- "@graphql-codegen/cli": "^2.16.4",
37
- "@graphql-codegen/introspection": "^2.2.3",
38
- "@graphql-codegen/typescript": "^2.8.7",
39
- "@graphql-codegen/typescript-operations": "^2.5.12",
40
- "@graphql-codegen/typescript-react-apollo": "^3.3.7",
41
- "@graphql-codegen/typescript-react-query": "^3.6.2",
42
- "@iconify/json": "^2.2.6",
43
- "@storybook/addon-essentials": "^7.0.9",
44
- "@storybook/addon-interactions": "^7.0.9",
45
- "@storybook/addon-links": "^7.0.9",
46
- "@storybook/blocks": "^7.0.9",
47
- "@storybook/react": "^7.0.9",
48
- "@storybook/react-vite": "^7.0.9",
49
- "@storybook/testing-library": "^0.0.14-next.2",
50
- "@svgr/core": "^6.5.1",
51
- "@types/react": "^18.0.26",
52
- "@types/react-datepicker": "^4.11.2",
53
- "@types/react-dom": "^18.0.10",
54
- "@types/react-grid-layout": "^1.3.2",
55
- "@typescript-eslint/eslint-plugin": "^4.31.1",
56
- "@typescript-eslint/parser": "^4.31.1",
57
- "@vitejs/plugin-react": "^4.0",
58
- "autoprefixer": "^10.4.7",
59
- "babel-eslint": "^10.0.3",
60
- "cross-env": "^7.0.2",
61
- "eslint": "^7.32.0",
62
- "eslint-config-airbnb": "^18.2.1",
63
- "eslint-config-airbnb-typescript": "^14.0.0",
64
- "eslint-config-prettier": "^8.3.0",
65
- "eslint-plugin-import": "^2.24.2",
66
- "eslint-plugin-jsx-a11y": "^6.6.0",
67
- "eslint-plugin-prettier": "^4.0.0",
68
- "eslint-plugin-react": "^7.30.1",
69
- "eslint-plugin-react-hooks": "^4.6.0",
70
- "eslint-plugin-unicorn": "^36.0.0",
71
- "graphql": "^16.6.0",
72
- "husky": "^8.0.1",
73
- "lint-staged": "^13.0.3",
74
- "postcss": "^8.4.21",
75
- "prettier": "^2.0.4",
76
- "prop-types": "^15.8.1",
77
- "react": "^18.2.0",
78
- "react-dom": "^18.2.0",
79
- "storybook": "^7.0.9",
80
- "tailwindcss": "^3.2.4",
81
- "ts-node": "^10.9.1",
82
- "typescript": "^4.6.3",
83
- "unplugin-icons": "^0.14.7",
84
- "vite": "^4.3",
85
- "vite-plugin-dts": "^2.3",
86
- "vite-tsconfig-paths": "^4.0.3"
87
- },
88
- "files": [
89
- "dist"
90
- ],
91
- "dependencies": {
92
- "@headlessui/react": "^1.7.2",
93
- "@tanstack/match-sorter-utils": "^8.8.4",
94
- "@tanstack/react-table": "^8.7.9",
95
- "ace-builds": "^1.17.0",
96
- "classnames": "^2.3.2",
97
- "echarts": "^5.4.1",
98
- "echarts-for-react": "^3.0.2",
99
- "react-ace": "^10.1.0",
100
- "react-datepicker": "^4.11.0",
101
- "react-error-boundary": "^3.1.4",
102
- "react-grid-layout": "^1.3.4",
103
- "react-hook-form": "^7.33.1",
104
- "react-query": "^3.39.2"
105
- },
106
- "peerDependencies": {
107
- "react": "^18.2.0",
108
- "react-dom": "^18.2.0"
109
- }
110
- }
1
+ {
2
+ "name": "@databrainhq/plugin",
3
+ "version": "0.9.27",
4
+ "description": "Databrain app dashboard ui plugin.",
5
+ "author": "",
6
+ "license": "MIT",
7
+ "repository": "databrainhq/plugin",
8
+ "source": "src/index.ts",
9
+ "main": "./dist/index.umd.js",
10
+ "module": "./dist/index.es.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.es.js",
15
+ "require": "./dist/index.umd.js"
16
+ },
17
+ "./dist/style.css": "./dist/style.css"
18
+ },
19
+ "scripts": {
20
+ "start:repl": "vite --host 0.0.0.0",
21
+ "serve": "vite --port 3005",
22
+ "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
+ "build": "tsc && vite build",
24
+ "husky": "husky install",
25
+ "predeploy": "cd example && npm install && npm run build",
26
+ "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
27
+ "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
28
+ "prepare": "npm run build",
29
+ "storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
30
+ "storybook": "storybook dev -p 6006",
31
+ "build-storybook": "storybook build"
32
+ },
33
+ "devDependencies": {
34
+ "@commitlint/cli": "^17.0.3",
35
+ "@commitlint/config-conventional": "^17.0.3",
36
+ "@graphql-codegen/cli": "^2.16.4",
37
+ "@graphql-codegen/introspection": "^2.2.3",
38
+ "@graphql-codegen/typescript": "^2.8.7",
39
+ "@graphql-codegen/typescript-operations": "^2.5.12",
40
+ "@graphql-codegen/typescript-react-apollo": "^3.3.7",
41
+ "@graphql-codegen/typescript-react-query": "^3.6.2",
42
+ "@iconify/json": "^2.2.6",
43
+ "@storybook/addon-essentials": "^7.0.9",
44
+ "@storybook/addon-interactions": "^7.0.9",
45
+ "@storybook/addon-links": "^7.0.9",
46
+ "@storybook/blocks": "^7.0.9",
47
+ "@storybook/react": "^7.0.9",
48
+ "@storybook/react-vite": "^7.0.9",
49
+ "@storybook/testing-library": "^0.0.14-next.2",
50
+ "@svgr/core": "^6.5.1",
51
+ "@types/react": "^18.0.26",
52
+ "@types/react-datepicker": "^4.11.2",
53
+ "@types/react-dom": "^18.0.10",
54
+ "@types/react-grid-layout": "^1.3.2",
55
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
56
+ "@typescript-eslint/parser": "^4.31.1",
57
+ "@vitejs/plugin-react": "^4.0",
58
+ "autoprefixer": "^10.4.7",
59
+ "babel-eslint": "^10.0.3",
60
+ "cross-env": "^7.0.2",
61
+ "eslint": "^7.32.0",
62
+ "eslint-config-airbnb": "^18.2.1",
63
+ "eslint-config-airbnb-typescript": "^14.0.0",
64
+ "eslint-config-prettier": "^8.3.0",
65
+ "eslint-plugin-import": "^2.24.2",
66
+ "eslint-plugin-jsx-a11y": "^6.6.0",
67
+ "eslint-plugin-prettier": "^4.0.0",
68
+ "eslint-plugin-react": "^7.30.1",
69
+ "eslint-plugin-react-hooks": "^4.6.0",
70
+ "eslint-plugin-unicorn": "^36.0.0",
71
+ "graphql": "^16.6.0",
72
+ "husky": "^8.0.1",
73
+ "lint-staged": "^13.0.3",
74
+ "postcss": "^8.4.21",
75
+ "prettier": "^2.0.4",
76
+ "prop-types": "^15.8.1",
77
+ "react": "^18.2.0",
78
+ "react-dom": "^18.2.0",
79
+ "storybook": "^7.0.9",
80
+ "tailwindcss": "^3.2.4",
81
+ "ts-node": "^10.9.1",
82
+ "typescript": "^4.6.3",
83
+ "unplugin-icons": "^0.14.7",
84
+ "vite": "^4.3",
85
+ "vite-plugin-dts": "^2.3",
86
+ "vite-tsconfig-paths": "^4.0.3"
87
+ },
88
+ "files": [
89
+ "dist"
90
+ ],
91
+ "dependencies": {
92
+ "@headlessui/react": "^1.7.2",
93
+ "@tanstack/match-sorter-utils": "^8.8.4",
94
+ "@tanstack/react-table": "^8.7.9",
95
+ "ace-builds": "^1.17.0",
96
+ "classnames": "^2.3.2",
97
+ "echarts": "^5.4.1",
98
+ "echarts-for-react": "^3.0.2",
99
+ "react-ace": "^10.1.0",
100
+ "react-datepicker": "^4.11.0",
101
+ "react-error-boundary": "^3.1.4",
102
+ "react-grid-layout": "^1.3.4",
103
+ "react-hook-form": "^7.33.1",
104
+ "react-query": "^3.39.2"
105
+ },
106
+ "peerDependencies": {
107
+ "react": "^18.2.0",
108
+ "react-dom": "^18.2.0"
109
+ }
110
+ }