@perses-dev/greptimedb-plugin 0.1.0-beta.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/LICENSE +201 -0
- package/README.md +41 -0
- package/__mf/css/async/8077.85c2cbf6.css +1 -0
- package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
- package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
- package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
- package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
- package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
- package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
- package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
- package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
- package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
- package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
- package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
- package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
- package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
- package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
- package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
- package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
- package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
- package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
- package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
- package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
- package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
- package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
- package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
- package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
- package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
- package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
- package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
- package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
- package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
- package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
- package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
- package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
- package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
- package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
- package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
- package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
- package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
- package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
- package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
- package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
- package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
- package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
- package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
- package/__mf/js/GreptimeDB.7a063e9e.js +7 -0
- package/__mf/js/async/1616.20d43f7e.js +1 -0
- package/__mf/js/async/2043.97b1f27f.js +2 -0
- package/__mf/js/async/2043.97b1f27f.js.LICENSE.txt +24 -0
- package/__mf/js/async/2269.f1322789.js +3 -0
- package/__mf/js/async/2386.b7243314.js +2 -0
- package/__mf/js/async/2386.b7243314.js.LICENSE.txt +9 -0
- package/__mf/js/async/3181.7ac30201.js +2 -0
- package/__mf/js/async/3181.7ac30201.js.LICENSE.txt +9 -0
- package/__mf/js/async/3247.65183b95.js +2 -0
- package/__mf/js/async/3247.65183b95.js.LICENSE.txt +37 -0
- package/__mf/js/async/392.91ae0e19.js +2 -0
- package/__mf/js/async/392.91ae0e19.js.LICENSE.txt +8 -0
- package/__mf/js/async/3944.12d0f358.js +10 -0
- package/__mf/js/async/3944.12d0f358.js.LICENSE.txt +17 -0
- package/__mf/js/async/4121.06b9cab6.js +2 -0
- package/__mf/js/async/4121.06b9cab6.js.LICENSE.txt +9 -0
- package/__mf/js/async/5002.0a422150.js +1 -0
- package/__mf/js/async/5071.e5cc2bd7.js +1 -0
- package/__mf/js/async/5402.eda0fb07.js +101 -0
- package/__mf/js/async/5440.7abefadb.js +2 -0
- package/__mf/js/async/5440.7abefadb.js.LICENSE.txt +32 -0
- package/__mf/js/async/5562.a39a5d1e.js +2 -0
- package/__mf/js/async/5562.a39a5d1e.js.LICENSE.txt +9 -0
- package/__mf/js/async/5587.a3fb718a.js +1 -0
- package/__mf/js/async/6045.10e9fa5a.js +1 -0
- package/__mf/js/async/6274.6f0093e7.js +2 -0
- package/__mf/js/async/6274.6f0093e7.js.LICENSE.txt +8 -0
- package/__mf/js/async/6753.1e42e819.js +1 -0
- package/__mf/js/async/7177.78bced1c.js +1 -0
- package/__mf/js/async/7192.e0362dae.js +1 -0
- package/__mf/js/async/7862.8048abcc.js +2 -0
- package/__mf/js/async/7862.8048abcc.js.LICENSE.txt +9 -0
- package/__mf/js/async/7968.7b2e2836.js +1 -0
- package/__mf/js/async/7978.8cd67008.js +1 -0
- package/__mf/js/async/8077.fe9828a3.js +7 -0
- package/__mf/js/async/8077.fe9828a3.js.LICENSE.txt +39 -0
- package/__mf/js/async/8356.ac21fc24.js +1 -0
- package/__mf/js/async/8470.a2e67e3a.js +2 -0
- package/__mf/js/async/8470.a2e67e3a.js.LICENSE.txt +19 -0
- package/__mf/js/async/873.863f53e4.js +1 -0
- package/__mf/js/async/9235.7651eaca.js +1 -0
- package/__mf/js/async/941.4155d3cc.js +2 -0
- package/__mf/js/async/941.4155d3cc.js.LICENSE.txt +9 -0
- package/__mf/js/async/9558.215ad80c.js +1 -0
- package/__mf/js/async/9588.2f544a41.js +1 -0
- package/__mf/js/async/9877.8766524e.js +38 -0
- package/__mf/js/async/9916.2a1eb7a0.js +22 -0
- package/__mf/js/async/9916.2a1eb7a0.js.LICENSE.txt +19 -0
- package/__mf/js/async/__federation_expose_GreptimeDBDatasource.bf1dec3c.js +2 -0
- package/__mf/js/async/__federation_expose_GreptimeDBDatasource.bf1dec3c.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.d80b2965.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.d80b2965.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.59cda507.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.59cda507.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.00464f43.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.00464f43.js.LICENSE.txt +9 -0
- package/__mf/js/main.a4e4afce.js +7 -0
- package/lib/bootstrap.d.ts +2 -0
- package/lib/bootstrap.d.ts.map +1 -0
- package/lib/bootstrap.js +19 -0
- package/lib/bootstrap.js.map +1 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/lib/cjs/components/GreptimeDBQLEditor.js +72 -0
- package/lib/cjs/components/constants.js +42 -0
- package/lib/cjs/components/index.js +31 -0
- package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasource.js +53 -0
- package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +51 -0
- package/lib/cjs/datasources/greptimedb-datasource/greptimedb-datasource-types.js +16 -0
- package/lib/cjs/datasources/greptimedb-datasource/index.js +32 -0
- package/lib/cjs/datasources/index.js +30 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/getPluginModule.js +39 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +38 -0
- package/lib/cjs/model/greptimedb-client.js +76 -0
- package/lib/cjs/model/greptimedb-data-types.js +16 -0
- package/lib/cjs/queries/constants.js +34 -0
- package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQuery.js +43 -0
- package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +108 -0
- package/lib/cjs/queries/greptimedb-log-query/get-greptimedb-log-data.js +103 -0
- package/lib/cjs/queries/greptimedb-log-query/greptimedb-log-query-types.js +16 -0
- package/lib/cjs/queries/greptimedb-log-query/index.js +33 -0
- package/lib/cjs/queries/greptimedb-log-query/log-query-plugin-interface.js +16 -0
- package/lib/cjs/queries/greptimedb-query-data-model.js +152 -0
- package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQuery.js +43 -0
- package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +107 -0
- package/lib/cjs/queries/greptimedb-time-series-query/get-greptimedb-data.js +184 -0
- package/lib/cjs/queries/greptimedb-time-series-query/greptimedb-query-types.js +16 -0
- package/lib/cjs/queries/greptimedb-time-series-query/index.js +33 -0
- package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +40 -0
- package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +79 -0
- package/lib/cjs/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +518 -0
- package/lib/cjs/queries/greptimedb-trace-query/greptimedb-trace-query-types.js +16 -0
- package/lib/cjs/queries/greptimedb-trace-query/index.js +33 -0
- package/lib/cjs/queries/greptimedb-trace-query/trace-query-sql.js +25 -0
- package/lib/cjs/queries/index.js +32 -0
- package/lib/cjs/queries/query-editor-model.js +47 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/components/GreptimeDBQLEditor.d.ts +4 -0
- package/lib/components/GreptimeDBQLEditor.d.ts.map +1 -0
- package/lib/components/GreptimeDBQLEditor.js +59 -0
- package/lib/components/GreptimeDBQLEditor.js.map +1 -0
- package/lib/components/constants.d.ts +2 -0
- package/lib/components/constants.d.ts.map +1 -0
- package/lib/components/constants.js +34 -0
- package/lib/components/constants.js.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +16 -0
- package/lib/components/index.js.map +1 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts +4 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts.map +1 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js +45 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js.map +1 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts +9 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts.map +1 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +43 -0
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js.map +1 -0
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts +29 -0
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts.map +1 -0
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.js +15 -0
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.js.map +1 -0
- package/lib/datasources/greptimedb-datasource/index.d.ts +4 -0
- package/lib/datasources/greptimedb-datasource/index.d.ts.map +1 -0
- package/lib/datasources/greptimedb-datasource/index.js +17 -0
- package/lib/datasources/greptimedb-datasource/index.js.map +1 -0
- package/lib/datasources/index.d.ts +2 -0
- package/lib/datasources/index.d.ts.map +1 -0
- package/lib/datasources/index.js +15 -0
- package/lib/datasources/index.js.map +1 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.js.map +1 -0
- package/lib/getPluginModule.d.ts +6 -0
- package/lib/getPluginModule.d.ts.map +1 -0
- package/lib/getPluginModule.js +28 -0
- package/lib/getPluginModule.js.map +1 -0
- package/lib/index-federation.d.ts +1 -0
- package/lib/index-federation.d.ts.map +1 -0
- package/lib/index-federation.js +15 -0
- package/lib/index-federation.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/model/greptimedb-client.d.ts +17 -0
- package/lib/model/greptimedb-client.d.ts.map +1 -0
- package/lib/model/greptimedb-client.js +68 -0
- package/lib/model/greptimedb-client.js.map +1 -0
- package/lib/model/greptimedb-data-types.d.ts +21 -0
- package/lib/model/greptimedb-data-types.d.ts.map +1 -0
- package/lib/model/greptimedb-data-types.js +15 -0
- package/lib/model/greptimedb-data-types.js.map +1 -0
- package/lib/queries/constants.d.ts +5 -0
- package/lib/queries/constants.d.ts.map +1 -0
- package/lib/queries/constants.js +18 -0
- package/lib/queries/constants.js.map +1 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts +4 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js +35 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js.map +1 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts +7 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +100 -0
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js.map +1 -0
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts +4 -0
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js +95 -0
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js.map +1 -0
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts +6 -0
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.js +15 -0
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.js.map +1 -0
- package/lib/queries/greptimedb-log-query/index.d.ts +5 -0
- package/lib/queries/greptimedb-log-query/index.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/index.js +18 -0
- package/lib/queries/greptimedb-log-query/index.js.map +1 -0
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts +23 -0
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts.map +1 -0
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.js +15 -0
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.js.map +1 -0
- package/lib/queries/greptimedb-query-data-model.d.ts +18 -0
- package/lib/queries/greptimedb-query-data-model.d.ts.map +1 -0
- package/lib/queries/greptimedb-query-data-model.js +138 -0
- package/lib/queries/greptimedb-query-data-model.js.map +1 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts +4 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts.map +1 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js +35 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js.map +1 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts +7 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts.map +1 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +99 -0
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js.map +1 -0
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts +4 -0
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts.map +1 -0
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js +176 -0
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js.map +1 -0
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts +7 -0
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts.map +1 -0
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.js +15 -0
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.js.map +1 -0
- package/lib/queries/greptimedb-time-series-query/index.d.ts +5 -0
- package/lib/queries/greptimedb-time-series-query/index.d.ts.map +1 -0
- package/lib/queries/greptimedb-time-series-query/index.js +18 -0
- package/lib/queries/greptimedb-time-series-query/index.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts +4 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +32 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts +7 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +71 -0
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts +11 -0
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +466 -0
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts +6 -0
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.js +15 -0
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/index.d.ts +5 -0
- package/lib/queries/greptimedb-trace-query/index.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/index.js +18 -0
- package/lib/queries/greptimedb-trace-query/index.js.map +1 -0
- package/lib/queries/greptimedb-trace-query/trace-query-sql.d.ts +2 -0
- package/lib/queries/greptimedb-trace-query/trace-query-sql.d.ts.map +1 -0
- package/lib/queries/greptimedb-trace-query/trace-query-sql.js +17 -0
- package/lib/queries/greptimedb-trace-query/trace-query-sql.js.map +1 -0
- package/lib/queries/index.d.ts +4 -0
- package/lib/queries/index.d.ts.map +1 -0
- package/lib/queries/index.js +17 -0
- package/lib/queries/index.js.map +1 -0
- package/lib/queries/query-editor-model.d.ts +19 -0
- package/lib/queries/query-editor-model.d.ts.map +1 -0
- package/lib/queries/query-editor-model.js +44 -0
- package/lib/queries/query-editor-model.js.map +1 -0
- package/lib/setup-tests.d.ts +2 -0
- package/lib/setup-tests.d.ts.map +1 -0
- package/lib/setup-tests.js +17 -0
- package/lib/setup-tests.js.map +1 -0
- package/mf-manifest.json +462 -0
- package/mf-stats.json +530 -0
- package/package.json +86 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
require("@testing-library/jest-dom");
|
|
18
|
+
// Always mock e-charts during tests since we don't have a proper canvas in jsdom
|
|
19
|
+
jest.mock('echarts/core');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GreptimeDBQLEditor.d.ts","sourceRoot":"","sources":["../../../src/components/GreptimeDBQLEditor.tsx"],"names":[],"mappings":"AAaA,OAAmB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGzE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAyC5E"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import CodeMirror from '@uiw/react-codemirror';
|
|
15
|
+
import { EditorView } from '@codemirror/view';
|
|
16
|
+
import { InputLabel, Stack, useTheme } from '@mui/material';
|
|
17
|
+
export function GreptimeDBQLEditor(props) {
|
|
18
|
+
const theme = useTheme();
|
|
19
|
+
const isDarkMode = theme.palette.mode === 'dark';
|
|
20
|
+
return /*#__PURE__*/ _jsxs(Stack, {
|
|
21
|
+
position: "relative",
|
|
22
|
+
children: [
|
|
23
|
+
/*#__PURE__*/ _jsx(InputLabel, {
|
|
24
|
+
sx: {
|
|
25
|
+
fontWeight: 500,
|
|
26
|
+
marginBottom: '4px',
|
|
27
|
+
color: theme.palette.text.primary
|
|
28
|
+
},
|
|
29
|
+
children: "GreptimeDB SQL Query"
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ _jsx(CodeMirror, {
|
|
32
|
+
...props,
|
|
33
|
+
style: {
|
|
34
|
+
border: `1px solid ${theme.palette.divider}`
|
|
35
|
+
},
|
|
36
|
+
theme: isDarkMode ? 'dark' : 'light',
|
|
37
|
+
basicSetup: {
|
|
38
|
+
highlightActiveLine: false,
|
|
39
|
+
highlightActiveLineGutter: false,
|
|
40
|
+
foldGutter: false,
|
|
41
|
+
syntaxHighlighting: true
|
|
42
|
+
},
|
|
43
|
+
extensions: [
|
|
44
|
+
EditorView.lineWrapping,
|
|
45
|
+
EditorView.theme({
|
|
46
|
+
'.cm-content': {
|
|
47
|
+
paddingTop: '8px',
|
|
48
|
+
paddingBottom: '8px',
|
|
49
|
+
paddingRight: '40px'
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
],
|
|
53
|
+
placeholder: "Write GreptimeDB SQL Query Here..."
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=GreptimeDBQLEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/GreptimeDBQLEditor.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport CodeMirror, { ReactCodeMirrorProps } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { InputLabel, Stack, useTheme } from '@mui/material';\nimport { ReactElement } from 'react';\n\nexport function GreptimeDBQLEditor(props: ReactCodeMirrorProps): ReactElement {\n const theme = useTheme();\n const isDarkMode = theme.palette.mode === 'dark';\n\n return (\n <Stack position=\"relative\">\n <InputLabel\n sx={{\n fontWeight: 500,\n marginBottom: '4px',\n color: theme.palette.text.primary,\n }}\n >\n GreptimeDB SQL Query\n </InputLabel>\n <CodeMirror\n {...props}\n style={{\n border: `1px solid ${theme.palette.divider}`,\n }}\n theme={isDarkMode ? 'dark' : 'light'}\n basicSetup={{\n highlightActiveLine: false,\n highlightActiveLineGutter: false,\n foldGutter: false,\n syntaxHighlighting: true,\n }}\n extensions={[\n EditorView.lineWrapping,\n EditorView.theme({\n '.cm-content': {\n paddingTop: '8px',\n paddingBottom: '8px',\n paddingRight: '40px',\n },\n }),\n ]}\n placeholder=\"Write GreptimeDB SQL Query Here...\"\n />\n </Stack>\n );\n}\n"],"names":["CodeMirror","EditorView","InputLabel","Stack","useTheme","GreptimeDBQLEditor","props","theme","isDarkMode","palette","mode","position","sx","fontWeight","marginBottom","color","text","primary","style","border","divider","basicSetup","highlightActiveLine","highlightActiveLineGutter","foldGutter","syntaxHighlighting","extensions","lineWrapping","paddingTop","paddingBottom","paddingRight","placeholder"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAOA,gBAA0C,wBAAwB;AACzE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,SAASC,UAAU,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,gBAAgB;AAG5D,OAAO,SAASC,mBAAmBC,KAA2B;IAC5D,MAAMC,QAAQH;IACd,MAAMI,aAAaD,MAAME,OAAO,CAACC,IAAI,KAAK;IAE1C,qBACE,MAACP;QAAMQ,UAAS;;0BACd,KAACT;gBACCU,IAAI;oBACFC,YAAY;oBACZC,cAAc;oBACdC,OAAOR,MAAME,OAAO,CAACO,IAAI,CAACC,OAAO;gBACnC;0BACD;;0BAGD,KAACjB;gBACE,GAAGM,KAAK;gBACTY,OAAO;oBACLC,QAAQ,CAAC,UAAU,EAAEZ,MAAME,OAAO,CAACW,OAAO,EAAE;gBAC9C;gBACAb,OAAOC,aAAa,SAAS;gBAC7Ba,YAAY;oBACVC,qBAAqB;oBACrBC,2BAA2B;oBAC3BC,YAAY;oBACZC,oBAAoB;gBACtB;gBACAC,YAAY;oBACVzB,WAAW0B,YAAY;oBACvB1B,WAAWM,KAAK,CAAC;wBACf,eAAe;4BACbqB,YAAY;4BACZC,eAAe;4BACfC,cAAc;wBAChB;oBACF;iBACD;gBACDC,aAAY;;;;AAIpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const queryExample = "-- Time Series Query\nSELECT\n date_bin(INTERVAL '1 minute', ts) as ts,\n avg(cpu_usage) as avg_cpu,\n max(memory_usage) as max_memory\nFROM system_metrics\nWHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)\nGROUP BY ts\nORDER BY ts\n\n-- Logs Query\nSELECT\n ts,\n service,\n level,\n message\nFROM application_logs\nWHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)\nORDER BY ts DESC\nLIMIT 1000";
|
|
2
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/constants.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,+cAmBd,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export const queryExample = `-- Time Series Query
|
|
14
|
+
SELECT
|
|
15
|
+
date_bin(INTERVAL '1 minute', ts) as ts,
|
|
16
|
+
avg(cpu_usage) as avg_cpu,
|
|
17
|
+
max(memory_usage) as max_memory
|
|
18
|
+
FROM system_metrics
|
|
19
|
+
WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
|
|
20
|
+
GROUP BY ts
|
|
21
|
+
ORDER BY ts
|
|
22
|
+
|
|
23
|
+
-- Logs Query
|
|
24
|
+
SELECT
|
|
25
|
+
ts,
|
|
26
|
+
service,
|
|
27
|
+
level,
|
|
28
|
+
message
|
|
29
|
+
FROM application_logs
|
|
30
|
+
WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
|
|
31
|
+
ORDER BY ts DESC
|
|
32
|
+
LIMIT 1000`;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/constants.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport const queryExample = `-- Time Series Query\nSELECT\n date_bin(INTERVAL '1 minute', ts) as ts,\n avg(cpu_usage) as avg_cpu,\n max(memory_usage) as max_memory\nFROM system_metrics\nWHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)\nGROUP BY ts\nORDER BY ts\n\n-- Logs Query\nSELECT\n ts,\n service,\n level,\n message\nFROM application_logs\nWHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)\nORDER BY ts DESC\nLIMIT 1000`;\n"],"names":["queryExample"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,MAAMA,eAAe,CAAC;;;;;;;;;;;;;;;;;;;UAmBnB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAaA,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export * from './GreptimeDBQLEditor';
|
|
14
|
+
export * from './constants';
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './GreptimeDBQLEditor';\nexport * from './constants';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,uBAAuB;AACrC,cAAc,cAAc"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DatasourcePlugin } from '@perses-dev/plugin-system';
|
|
2
|
+
import { GreptimeDBDatasourceClient, GreptimeDBDatasourceSpec } from './greptimedb-datasource-types';
|
|
3
|
+
export declare const GreptimeDBDatasource: DatasourcePlugin<GreptimeDBDatasourceSpec, GreptimeDBDatasourceClient>;
|
|
4
|
+
//# sourceMappingURL=GreptimeDBDatasource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GreptimeDBDatasource.d.ts","sourceRoot":"","sources":["../../../../src/datasources/greptimedb-datasource/GreptimeDBDatasource.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAmCrG,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,CAAC,wBAAwB,EAAE,0BAA0B,CAIvG,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import { greptimedbQuery } from '../../model/greptimedb-client';
|
|
14
|
+
import { GreptimeDBDatasourceEditor } from './GreptimeDBDatasourceEditor';
|
|
15
|
+
const createClient = (spec, options)=>{
|
|
16
|
+
const { directUrl, headers, proxy } = spec;
|
|
17
|
+
const { proxyUrl } = options;
|
|
18
|
+
const datasourceUrl = directUrl ?? proxyUrl;
|
|
19
|
+
if (datasourceUrl === undefined) {
|
|
20
|
+
throw new Error('No URL specified for GreptimeDBDatasource client. You can use directUrl in the spec to configure it.');
|
|
21
|
+
}
|
|
22
|
+
// Support directUrl auth headers while keeping backward compatibility with proxy headers.
|
|
23
|
+
const specHeaders = {
|
|
24
|
+
...proxy?.spec.headers ?? {},
|
|
25
|
+
...headers ?? {}
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
options: {
|
|
29
|
+
datasourceUrl
|
|
30
|
+
},
|
|
31
|
+
query: (params, headers)=>greptimedbQuery(params, {
|
|
32
|
+
datasourceUrl,
|
|
33
|
+
headers: headers ?? specHeaders
|
|
34
|
+
})
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export const GreptimeDBDatasource = {
|
|
38
|
+
createClient,
|
|
39
|
+
OptionsEditorComponent: GreptimeDBDatasourceEditor,
|
|
40
|
+
createInitialOptions: ()=>({
|
|
41
|
+
directUrl: ''
|
|
42
|
+
})
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=GreptimeDBDatasource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/greptimedb-datasource/GreptimeDBDatasource.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourcePlugin } from '@perses-dev/plugin-system';\nimport { greptimedbQuery } from '../../model/greptimedb-client';\nimport { GreptimeDBDatasourceClient, GreptimeDBDatasourceSpec } from './greptimedb-datasource-types';\nimport { GreptimeDBDatasourceEditor } from './GreptimeDBDatasourceEditor';\n\nconst createClient: DatasourcePlugin<GreptimeDBDatasourceSpec, GreptimeDBDatasourceClient>['createClient'] = (\n spec,\n options\n) => {\n const { directUrl, headers, proxy } = spec;\n const { proxyUrl } = options;\n\n const datasourceUrl = directUrl ?? proxyUrl;\n if (datasourceUrl === undefined) {\n throw new Error(\n 'No URL specified for GreptimeDBDatasource client. You can use directUrl in the spec to configure it.'\n );\n }\n\n // Support directUrl auth headers while keeping backward compatibility with proxy headers.\n const specHeaders = {\n ...(proxy?.spec.headers ?? {}),\n ...(headers ?? {}),\n };\n\n return {\n options: {\n datasourceUrl,\n },\n query: (params, headers) =>\n greptimedbQuery(params, {\n datasourceUrl,\n headers: headers ?? specHeaders,\n }),\n };\n};\n\nexport const GreptimeDBDatasource: DatasourcePlugin<GreptimeDBDatasourceSpec, GreptimeDBDatasourceClient> = {\n createClient,\n OptionsEditorComponent: GreptimeDBDatasourceEditor,\n createInitialOptions: () => ({ directUrl: '' }),\n};\n"],"names":["greptimedbQuery","GreptimeDBDatasourceEditor","createClient","spec","options","directUrl","headers","proxy","proxyUrl","datasourceUrl","undefined","Error","specHeaders","query","params","GreptimeDBDatasource","OptionsEditorComponent","createInitialOptions"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,eAAe,QAAQ,gCAAgC;AAEhE,SAASC,0BAA0B,QAAQ,+BAA+B;AAE1E,MAAMC,eAAuG,CAC3GC,MACAC;IAEA,MAAM,EAAEC,SAAS,EAAEC,OAAO,EAAEC,KAAK,EAAE,GAAGJ;IACtC,MAAM,EAAEK,QAAQ,EAAE,GAAGJ;IAErB,MAAMK,gBAAgBJ,aAAaG;IACnC,IAAIC,kBAAkBC,WAAW;QAC/B,MAAM,IAAIC,MACR;IAEJ;IAEA,0FAA0F;IAC1F,MAAMC,cAAc;QAClB,GAAIL,OAAOJ,KAAKG,WAAW,CAAC,CAAC;QAC7B,GAAIA,WAAW,CAAC,CAAC;IACnB;IAEA,OAAO;QACLF,SAAS;YACPK;QACF;QACAI,OAAO,CAACC,QAAQR,UACdN,gBAAgBc,QAAQ;gBACtBL;gBACAH,SAASA,WAAWM;YACtB;IACJ;AACF;AAEA,OAAO,MAAMG,uBAA+F;IAC1Gb;IACAc,wBAAwBf;IACxBgB,sBAAsB,IAAO,CAAA;YAAEZ,WAAW;QAAG,CAAA;AAC/C,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GreptimeDBDatasourceSpec } from './greptimedb-datasource-types';
|
|
3
|
+
export interface GreptimeDBDatasourceEditorProps {
|
|
4
|
+
value: GreptimeDBDatasourceSpec;
|
|
5
|
+
onChange: (next: GreptimeDBDatasourceSpec) => void;
|
|
6
|
+
isReadonly?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function GreptimeDBDatasourceEditor(props: GreptimeDBDatasourceEditorProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=GreptimeDBDatasourceEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GreptimeDBDatasourceEditor.d.ts","sourceRoot":"","sources":["../../../../src/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,wBAAwB,CAAC;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,GAAG,YAAY,CA+B/F"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { HTTPSettingsEditor } from '@perses-dev/plugin-system';
|
|
15
|
+
export function GreptimeDBDatasourceEditor(props) {
|
|
16
|
+
const { value, onChange, isReadonly } = props;
|
|
17
|
+
const initialSpecDirect = {
|
|
18
|
+
directUrl: ''
|
|
19
|
+
};
|
|
20
|
+
const initialSpecProxy = {
|
|
21
|
+
proxy: {
|
|
22
|
+
kind: 'HTTPProxy',
|
|
23
|
+
spec: {
|
|
24
|
+
allowedEndpoints: [
|
|
25
|
+
{
|
|
26
|
+
endpointPattern: '/v1/sql',
|
|
27
|
+
method: 'POST'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
url: ''
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/ _jsx(HTTPSettingsEditor, {
|
|
35
|
+
value: value,
|
|
36
|
+
onChange: onChange,
|
|
37
|
+
isReadonly: isReadonly,
|
|
38
|
+
initialSpecDirect: initialSpecDirect,
|
|
39
|
+
initialSpecProxy: initialSpecProxy
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=GreptimeDBDatasourceEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { HTTPSettingsEditor } from '@perses-dev/plugin-system';\nimport { ReactElement } from 'react';\nimport { GreptimeDBDatasourceSpec } from './greptimedb-datasource-types';\n\nexport interface GreptimeDBDatasourceEditorProps {\n value: GreptimeDBDatasourceSpec;\n onChange: (next: GreptimeDBDatasourceSpec) => void;\n isReadonly?: boolean;\n}\n\nexport function GreptimeDBDatasourceEditor(props: GreptimeDBDatasourceEditorProps): ReactElement {\n const { value, onChange, isReadonly } = props;\n\n const initialSpecDirect: GreptimeDBDatasourceSpec = {\n directUrl: '',\n };\n\n const initialSpecProxy: GreptimeDBDatasourceSpec = {\n proxy: {\n kind: 'HTTPProxy',\n spec: {\n allowedEndpoints: [\n {\n endpointPattern: '/v1/sql',\n method: 'POST',\n },\n ],\n url: '',\n },\n },\n };\n\n return (\n <HTTPSettingsEditor\n value={value}\n onChange={onChange}\n isReadonly={isReadonly}\n initialSpecDirect={initialSpecDirect}\n initialSpecProxy={initialSpecProxy}\n />\n );\n}\n"],"names":["HTTPSettingsEditor","GreptimeDBDatasourceEditor","props","value","onChange","isReadonly","initialSpecDirect","directUrl","initialSpecProxy","proxy","kind","spec","allowedEndpoints","endpointPattern","method","url"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,kBAAkB,QAAQ,4BAA4B;AAU/D,OAAO,SAASC,2BAA2BC,KAAsC;IAC/E,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH;IAExC,MAAMI,oBAA8C;QAClDC,WAAW;IACb;IAEA,MAAMC,mBAA6C;QACjDC,OAAO;YACLC,MAAM;YACNC,MAAM;gBACJC,kBAAkB;oBAChB;wBACEC,iBAAiB;wBACjBC,QAAQ;oBACV;iBACD;gBACDC,KAAK;YACP;QACF;IACF;IAEA,qBACE,KAACf;QACCG,OAAOA;QACPC,UAAUA;QACVC,YAAYA;QACZC,mBAAmBA;QACnBE,kBAAkBA;;AAGxB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DatasourceClient } from '@perses-dev/plugin-system';
|
|
2
|
+
import { RequestHeaders } from '@perses-dev/client';
|
|
3
|
+
import { HTTPProxy } from '@perses-dev/spec';
|
|
4
|
+
import { GreptimeDBResponseData } from '../../model/greptimedb-data-types';
|
|
5
|
+
export interface GreptimeDBDatasourceSpec {
|
|
6
|
+
directUrl?: string;
|
|
7
|
+
headers?: RequestHeaders;
|
|
8
|
+
proxy?: HTTPProxy;
|
|
9
|
+
}
|
|
10
|
+
export interface GreptimeDBQueryRequestParameters {
|
|
11
|
+
query: string;
|
|
12
|
+
start?: string;
|
|
13
|
+
end?: string;
|
|
14
|
+
}
|
|
15
|
+
interface GreptimeDBDatasourceClientOptions {
|
|
16
|
+
datasourceUrl: string;
|
|
17
|
+
headers?: RequestHeaders;
|
|
18
|
+
}
|
|
19
|
+
export interface GreptimeDBDatasourceResponse {
|
|
20
|
+
status: 'success' | 'error';
|
|
21
|
+
data: GreptimeDBResponseData;
|
|
22
|
+
error?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GreptimeDBDatasourceClient extends DatasourceClient {
|
|
25
|
+
options: GreptimeDBDatasourceClientOptions;
|
|
26
|
+
query(params: GreptimeDBQueryRequestParameters, headers?: RequestHeaders): Promise<GreptimeDBDatasourceResponse>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=greptimedb-datasource-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greptimedb-datasource-types.d.ts","sourceRoot":"","sources":["../../../../src/datasources/greptimedb-datasource/greptimedb-datasource-types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,UAAU,iCAAiC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,OAAO,EAAE,iCAAiC,CAAC;IAC3C,KAAK,CAAC,MAAM,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAClH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export { };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=greptimedb-datasource-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/greptimedb-datasource/greptimedb-datasource-types.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceClient } from '@perses-dev/plugin-system';\n\nimport { RequestHeaders } from '@perses-dev/client';\nimport { HTTPProxy } from '@perses-dev/spec';\nimport { GreptimeDBResponseData } from '../../model/greptimedb-data-types';\n\nexport interface GreptimeDBDatasourceSpec {\n directUrl?: string;\n headers?: RequestHeaders;\n proxy?: HTTPProxy;\n}\n\nexport interface GreptimeDBQueryRequestParameters {\n query: string;\n start?: string;\n end?: string;\n}\n\ninterface GreptimeDBDatasourceClientOptions {\n datasourceUrl: string;\n headers?: RequestHeaders;\n}\n\nexport interface GreptimeDBDatasourceResponse {\n status: 'success' | 'error';\n data: GreptimeDBResponseData;\n error?: string;\n}\n\nexport interface GreptimeDBDatasourceClient extends DatasourceClient {\n options: GreptimeDBDatasourceClientOptions;\n query(params: GreptimeDBQueryRequestParameters, headers?: RequestHeaders): Promise<GreptimeDBDatasourceResponse>;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AA+BjC,WAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/datasources/greptimedb-datasource/index.ts"],"names":[],"mappings":"AAaA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export * from './GreptimeDBDatasource';
|
|
14
|
+
export * from './GreptimeDBDatasourceEditor';
|
|
15
|
+
export * from './greptimedb-datasource-types';
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/greptimedb-datasource/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './GreptimeDBDatasource';\nexport * from './GreptimeDBDatasourceEditor';\nexport * from './greptimedb-datasource-types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasources/index.ts"],"names":[],"mappings":"AAaA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export * from './greptimedb-datasource';
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/datasources/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './greptimedb-datasource';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,0BAA0B"}
|
package/lib/env.d.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
/// <reference types="@rsbuild/core/types" />
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=env.d.js.map
|
package/lib/env.d.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/env.d.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/// <reference types=\"@rsbuild/core/types\" />\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,6CAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAGnF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import packageJson from '../package.json';
|
|
14
|
+
/**
|
|
15
|
+
* Returns the plugin module information from package.json
|
|
16
|
+
*/ export function getPluginModule() {
|
|
17
|
+
const { name, version, perses } = packageJson;
|
|
18
|
+
return {
|
|
19
|
+
kind: 'PluginModule',
|
|
20
|
+
metadata: {
|
|
21
|
+
name,
|
|
22
|
+
version
|
|
23
|
+
},
|
|
24
|
+
spec: perses
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=getPluginModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAOA,iBAAiB,kBAAkB;AAE1C;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAClC,OAAO;QACLK,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index-federation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-federation.d.ts","sourceRoot":"","sources":["../../src/index-federation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import('./bootstrap');
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index-federation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index-federation.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport('./bootstrap');\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export { getPluginModule } from './getPluginModule';
|
|
14
|
+
export * from './queries';
|
|
15
|
+
export * from './datasources';
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { getPluginModule } from './getPluginModule';\nexport * from './queries';\nexport * from './datasources';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,YAAY;AAC1B,cAAc,gBAAgB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RequestHeaders } from '@perses-dev/client';
|
|
2
|
+
import { GreptimeDBDatasourceResponse, GreptimeDBQueryRequestParameters } from '../datasources/greptimedb-datasource';
|
|
3
|
+
import { GreptimeDBResponseData } from './greptimedb-data-types';
|
|
4
|
+
export interface GreptimeDBQueryOptions {
|
|
5
|
+
datasourceUrl: string;
|
|
6
|
+
headers?: RequestHeaders;
|
|
7
|
+
}
|
|
8
|
+
export interface GreptimeDBQueryResponse {
|
|
9
|
+
status: 'success' | 'error';
|
|
10
|
+
data: GreptimeDBResponseData;
|
|
11
|
+
error?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GreptimeDBClient {
|
|
14
|
+
query: (params: GreptimeDBQueryRequestParameters) => Promise<GreptimeDBQueryResponse>;
|
|
15
|
+
}
|
|
16
|
+
export declare function greptimedbQuery(params: GreptimeDBQueryRequestParameters, queryOptions: GreptimeDBQueryOptions): Promise<GreptimeDBDatasourceResponse>;
|
|
17
|
+
//# sourceMappingURL=greptimedb-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greptimedb-client.d.ts","sourceRoot":"","sources":["../../../src/model/greptimedb-client.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AACtH,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,CAAC,MAAM,EAAE,gCAAgC,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvF;AAYD,wBAAsB,eAAe,CACnC,MAAM,EAAE,gCAAgC,EACxC,YAAY,EAAE,sBAAsB,GACnC,OAAO,CAAC,4BAA4B,CAAC,CAwCvC"}
|