@malloy-publisher/sdk 0.8.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Dashboard-FD3-Af-_.cjs.js → Dashboard-ChyylkTD.cjs.js} +2 -2
- package/dist/{Dashboard-DnqWRijB.es.js → Dashboard-H1kJlDFo.es.js} +2 -2
- package/dist/{RenderedResult-CetSzFgW.cjs.js → RenderedResult-AJPMUkAD.cjs.js} +1 -1
- package/dist/{RenderedResult-6UKAHaAj.es.js → RenderedResult-BRgIgxWh.es.js} +2 -2
- package/dist/{ServerProvider-DgRFJ43L.es.js → ServerProvider-Boxrv6Ym.es.js} +1093 -1151
- package/dist/ServerProvider-CXrOKD6g.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +79 -1796
- package/dist/client/base.d.ts +0 -24
- package/dist/client/common.d.ts +4 -35
- package/dist/client/configuration.d.ts +24 -17
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/hooks/useQueryResult.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/openapitools.json +1 -1
- package/package.json +13 -13
- package/src/components/Notebook/Notebook.served.spec.tsx +5 -1
- package/dist/ServerProvider-BsjJvkML.cjs.js +0 -1
package/dist/client/base.d.ts
CHANGED
|
@@ -1,42 +1,22 @@
|
|
|
1
1
|
import { Configuration } from './configuration';
|
|
2
2
|
import { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
3
3
|
export declare const BASE_PATH: string;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
*/
|
|
8
4
|
export declare const COLLECTION_FORMATS: {
|
|
9
5
|
csv: string;
|
|
10
6
|
ssv: string;
|
|
11
7
|
tsv: string;
|
|
12
8
|
pipes: string;
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface RequestArgs
|
|
18
|
-
*/
|
|
19
10
|
export interface RequestArgs {
|
|
20
11
|
url: string;
|
|
21
12
|
options: RawAxiosRequestConfig;
|
|
22
13
|
}
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @class BaseAPI
|
|
27
|
-
*/
|
|
28
14
|
export declare class BaseAPI {
|
|
29
15
|
protected basePath: string;
|
|
30
16
|
protected axios: AxiosInstance;
|
|
31
17
|
protected configuration: Configuration | undefined;
|
|
32
18
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
33
19
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class RequiredError
|
|
38
|
-
* @extends {Error}
|
|
39
|
-
*/
|
|
40
20
|
export declare class RequiredError extends Error {
|
|
41
21
|
field: string;
|
|
42
22
|
constructor(field: string, msg?: string);
|
|
@@ -47,9 +27,5 @@ interface ServerMap {
|
|
|
47
27
|
description: string;
|
|
48
28
|
}[];
|
|
49
29
|
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @export
|
|
53
|
-
*/
|
|
54
30
|
export declare const operationServerMap: ServerMap;
|
|
55
31
|
export {};
|
package/dist/client/common.d.ts
CHANGED
|
@@ -1,54 +1,23 @@
|
|
|
1
1
|
import { Configuration } from './configuration';
|
|
2
2
|
import { RequestArgs } from './base';
|
|
3
3
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
*/
|
|
8
4
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
9
5
|
/**
|
|
10
6
|
*
|
|
11
7
|
* @throws {RequiredError}
|
|
12
|
-
* @export
|
|
13
8
|
*/
|
|
14
9
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
10
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
*/
|
|
24
11
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
12
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
13
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
14
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
40
15
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
16
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
17
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
18
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
43
19
|
*/
|
|
20
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
44
21
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
*/
|
|
49
22
|
export declare const toPathString: (url: URL) => string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @export
|
|
53
|
-
*/
|
|
54
23
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CXrOKD6g.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as o, C as i, b as n, c as t, d as r, e as p, f as u, g as A, h as m, i as c, j as E, k as l, l as C, m as y, n as F, o as P, D as b, p as d, q as g, r as S, s as k, t as M, u as h, v as x, w as D, x as v, y as T, z as R, B as f, E as N, F as z, G as Q, H as W, I as B, J as O, K as w, L as I, M as L, N as q, O as K, P as j, Q as G, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as Aa, a9 as ma, aa as ca, ab as Ea, ac as la, ad as Ca, ae as ya, af as Fa, ag as Pa, ah as ba, ai as da, aj as ga, ak as Sa, al as ka, am as Ma, an as ha, ao as xa, ap as Da, aq as va, ar as Ta, as as Ra, at as fa, au as Na, av as za, aw as Qa, ax as Wa, ay as Ba, az as Oa, aA as wa, aB as Ia, aC as La, aD as qa, aE as Ka, aF as ja } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as o, C as i, b as n, c as t, d as r, e as p, f as u, g as A, h as m, i as c, j as E, k as l, l as C, m as y, n as F, o as P, D as b, p as d, q as g, r as S, s as k, t as M, u as h, v as x, w as D, x as v, y as T, z as R, B as f, E as N, F as z, G as Q, H as W, I as B, J as O, K as w, L as I, M as L, N as q, O as K, P as j, Q as G, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as Aa, a9 as ma, aa as ca, ab as Ea, ac as la, ad as Ca, ae as ya, af as Fa, ag as Pa, ah as ba, ai as da, aj as ga, ak as Sa, al as ka, am as Ma, an as ha, ao as xa, ap as Da, aq as va, ar as Ta, as as Ra, at as fa, au as Na, av as za, aw as Qa, ax as Wa, ay as Ba, az as Oa, aA as wa, aB as Ia, aC as La, aD as qa, aE as Ka, aF as ja } from "../ServerProvider-Boxrv6Ym.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
@@ -35,6 +35,6 @@ export interface QueryRequestSpec {
|
|
|
35
35
|
export declare function queryResultKey(spec: QueryRequestSpec): QueryKey;
|
|
36
36
|
export declare function useQueryResult(spec: QueryRequestSpec, { enabled }?: {
|
|
37
37
|
enabled?: boolean;
|
|
38
|
-
}): UseQueryResult<AxiosResponse<QueryResult, any, {}>, ApiError>;
|
|
38
|
+
}): UseQueryResult<AxiosResponse<QueryResult, any, {}, any>, ApiError>;
|
|
39
39
|
/** What a result surface holds while a query runs: hand it to `ResultPanel`. */
|
|
40
40
|
export type QueryResultState = ReturnType<typeof useQueryResult>;
|