@malloy-publisher/sdk 0.0.119 → 0.0.120
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/ServerProvider-49yj-aFb.cjs.js +1 -0
- package/dist/{ServerProvider-v0TajMUn.es.js → ServerProvider-BDgL8SVP.es.js} +355 -429
- package/dist/client/api.d.ts +285 -276
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +43 -46
- package/dist/components/ServerProvider.d.ts +1 -3
- package/dist/index.cjs.js +71 -71
- package/dist/index.es.js +17731 -17830
- package/package.json +1 -1
- package/src/components/Connections/common.ts +2 -0
- package/src/components/Model/Model.tsx +10 -10
- package/src/components/Model/ModelCell.tsx +10 -8
- package/src/components/Model/SourcesExplorer.tsx +7 -6
- package/src/components/Notebook/NotebookCell.tsx +4 -4
- package/src/components/Package/Package.tsx +7 -11
- package/src/components/Project/ConnectionExplorer.tsx +123 -160
- package/src/components/QueryResult/QueryResult.tsx +9 -7
- package/src/components/ServerProvider.tsx +0 -4
- package/src/hooks/useRawQueryData.ts +8 -6
- package/dist/ServerProvider-Bx3fsDOb.cjs.js +0 -1
- package/dist/components/Package/Schedules.d.ts +0 -5
- package/src/components/Package/Schedules.tsx +0 -114
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Project Management**: Create and manage projects with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Projects ├── Connections
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Project Management**: Create and manage projects with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Projects ├── Connections └── Packages ├── Models ├── Notebooks └── Databases ``` For examples, see the Malloy samples packages (https://github.com/malloydata/malloy-samples) repository.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-49yj-aFb.cjs.js");exports.AttachedDatabaseTypeEnum=o.AttachedDatabaseTypeEnum;exports.Configuration=o.Configuration;exports.ConnectionStatusStatusEnum=o.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=o.ConnectionTypeEnum;exports.ConnectionsApi=o.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=o.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=o.ConnectionsApiFactory;exports.ConnectionsApiFp=o.ConnectionsApiFp;exports.ConnectionsTestApi=o.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=o.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=o.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=o.ConnectionsTestApiFp;exports.DatabaseTypeEnum=o.DatabaseTypeEnum;exports.DatabasesApi=o.DatabasesApi;exports.DatabasesApiAxiosParamCreator=o.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=o.DatabasesApiFactory;exports.DatabasesApiFp=o.DatabasesApiFp;exports.ModelsApi=o.ModelsApi;exports.ModelsApiAxiosParamCreator=o.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=o.ModelsApiFactory;exports.ModelsApiFp=o.ModelsApiFp;exports.NotebookCellTypeEnum=o.NotebookCellTypeEnum;exports.NotebooksApi=o.NotebooksApi;exports.NotebooksApiAxiosParamCreator=o.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=o.NotebooksApiFactory;exports.NotebooksApiFp=o.NotebooksApiFp;exports.PackagesApi=o.PackagesApi;exports.PackagesApiAxiosParamCreator=o.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=o.PackagesApiFactory;exports.PackagesApiFp=o.PackagesApiFp;exports.ProjectsApi=o.ProjectsApi;exports.ProjectsApiAxiosParamCreator=o.ProjectsApiAxiosParamCreator;exports.ProjectsApiFactory=o.ProjectsApiFactory;exports.ProjectsApiFp=o.ProjectsApiFp;exports.PublisherApi=o.PublisherApi;exports.PublisherApiAxiosParamCreator=o.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=o.PublisherApiFactory;exports.PublisherApiFp=o.PublisherApiFp;exports.ServerProvider=o.ServerProvider;exports.WatchModeApi=o.WatchModeApi;exports.WatchModeApiAxiosParamCreator=o.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=o.WatchModeApiFactory;exports.WatchModeApiFp=o.WatchModeApiFp;exports.globalQueryClient=o.globalQueryClient;exports.useServer=o.useServer;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Project Management**: Create and manage projects with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Projects ├── Connections
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Project Management**: Create and manage projects with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Projects ├── Connections └── Packages ├── Models ├── Notebooks └── Databases ``` For examples, see the Malloy samples packages (https://github.com/malloydata/malloy-samples) repository.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as o, Q as e, a as i, C as t, e as r, b as p, d as A, c as n, j as c, f as C, i as P, h as F, D as b, n as m, k as u, m as y, l, q as d, M as x, p as h, o as k, N as M, v as T, r as g, t as D, s as E, y as N, P as j, x as S, w as W, F as v, z as f, E as Q, B as q, J as w, G as z, I as B, H as G, S as H, O as I, W as J, L as K, K as L, g as O, u as R } from "../ServerProvider-BDgL8SVP.es.js";
|
|
2
2
|
export {
|
|
3
|
+
o as AttachedDatabaseTypeEnum,
|
|
3
4
|
e as Configuration,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
c as
|
|
11
|
-
|
|
5
|
+
i as ConnectionStatusStatusEnum,
|
|
6
|
+
t as ConnectionTypeEnum,
|
|
7
|
+
r as ConnectionsApi,
|
|
8
|
+
p as ConnectionsApiAxiosParamCreator,
|
|
9
|
+
A as ConnectionsApiFactory,
|
|
10
|
+
n as ConnectionsApiFp,
|
|
11
|
+
c as ConnectionsTestApi,
|
|
12
|
+
C as ConnectionsTestApiAxiosParamCreator,
|
|
13
|
+
P as ConnectionsTestApiFactory,
|
|
14
|
+
F as ConnectionsTestApiFp,
|
|
15
|
+
b as DatabaseTypeEnum,
|
|
16
|
+
m as DatabasesApi,
|
|
12
17
|
u as DatabasesApiAxiosParamCreator,
|
|
13
|
-
|
|
18
|
+
y as DatabasesApiFactory,
|
|
14
19
|
l as DatabasesApiFp,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
J as SchedulesApiFp,
|
|
44
|
-
K as ServerProvider,
|
|
45
|
-
L as WatchModeApi,
|
|
46
|
-
O as WatchModeApiAxiosParamCreator,
|
|
47
|
-
R as WatchModeApiFactory,
|
|
48
|
-
U as WatchModeApiFp,
|
|
49
|
-
V as globalQueryClient,
|
|
50
|
-
X as useServer
|
|
20
|
+
d as ModelsApi,
|
|
21
|
+
x as ModelsApiAxiosParamCreator,
|
|
22
|
+
h as ModelsApiFactory,
|
|
23
|
+
k as ModelsApiFp,
|
|
24
|
+
M as NotebookCellTypeEnum,
|
|
25
|
+
T as NotebooksApi,
|
|
26
|
+
g as NotebooksApiAxiosParamCreator,
|
|
27
|
+
D as NotebooksApiFactory,
|
|
28
|
+
E as NotebooksApiFp,
|
|
29
|
+
N as PackagesApi,
|
|
30
|
+
j as PackagesApiAxiosParamCreator,
|
|
31
|
+
S as PackagesApiFactory,
|
|
32
|
+
W as PackagesApiFp,
|
|
33
|
+
v as ProjectsApi,
|
|
34
|
+
f as ProjectsApiAxiosParamCreator,
|
|
35
|
+
Q as ProjectsApiFactory,
|
|
36
|
+
q as ProjectsApiFp,
|
|
37
|
+
w as PublisherApi,
|
|
38
|
+
z as PublisherApiAxiosParamCreator,
|
|
39
|
+
B as PublisherApiFactory,
|
|
40
|
+
G as PublisherApiFp,
|
|
41
|
+
H as ServerProvider,
|
|
42
|
+
I as WatchModeApi,
|
|
43
|
+
J as WatchModeApiAxiosParamCreator,
|
|
44
|
+
K as WatchModeApiFactory,
|
|
45
|
+
L as WatchModeApiFp,
|
|
46
|
+
O as globalQueryClient,
|
|
47
|
+
R as useServer
|
|
51
48
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ConnectionsApi, DatabasesApi, ModelsApi, NotebooksApi, PackagesApi, ProjectsApi,
|
|
2
|
+
import { ConnectionsApi, DatabasesApi, ModelsApi, NotebooksApi, PackagesApi, ProjectsApi, WatchModeApi } from '../client';
|
|
3
3
|
export interface ServerContextValue {
|
|
4
4
|
server: string;
|
|
5
5
|
getAccessToken?: () => Promise<string>;
|
|
@@ -26,14 +26,12 @@ export interface ServerProviderProps {
|
|
|
26
26
|
mutable?: boolean;
|
|
27
27
|
}
|
|
28
28
|
declare const getApiClients: (baseURL?: string, accessToken?: () => Promise<string>) => {
|
|
29
|
-
queryResults: QueryresultsApi;
|
|
30
29
|
models: ModelsApi;
|
|
31
30
|
projects: ProjectsApi;
|
|
32
31
|
packages: PackagesApi;
|
|
33
32
|
notebooks: NotebooksApi;
|
|
34
33
|
connections: ConnectionsApi;
|
|
35
34
|
databases: DatabasesApi;
|
|
36
|
-
schedules: SchedulesApi;
|
|
37
35
|
watchMode: WatchModeApi;
|
|
38
36
|
};
|
|
39
37
|
export type ApiClients = ReturnType<typeof getApiClients>;
|