@malloy-publisher/sdk 0.0.88 → 0.0.89

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.
@@ -1,19 +1,6 @@
1
1
  import { Configuration } from './configuration';
2
2
  import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig, AxiosResponse } from 'axios';
3
3
  import { RequestArgs, BaseAPI } from './base';
4
- /**
5
- *
6
- * @export
7
- * @interface About
8
- */
9
- export interface About {
10
- /**
11
- * Readme markdown.
12
- * @type {string}
13
- * @memberof About
14
- */
15
- 'readme'?: string;
16
- }
17
4
  /**
18
5
  *
19
6
  * @export
@@ -262,6 +249,30 @@ export interface ConnectionAttributes {
262
249
  */
263
250
  'canStream'?: boolean;
264
251
  }
252
+ /**
253
+ *
254
+ * @export
255
+ * @interface ConnectionStatus
256
+ */
257
+ export interface ConnectionStatus {
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof ConnectionStatus
262
+ */
263
+ 'status'?: ConnectionStatusStatusEnum;
264
+ /**
265
+ *
266
+ * @type {string}
267
+ * @memberof ConnectionStatus
268
+ */
269
+ 'errorMessage'?: string;
270
+ }
271
+ export declare const ConnectionStatusStatusEnum: {
272
+ readonly Ok: "ok";
273
+ readonly Failed: "failed";
274
+ };
275
+ export type ConnectionStatusStatusEnum = typeof ConnectionStatusStatusEnum[keyof typeof ConnectionStatusStatusEnum];
265
276
  /**
266
277
  * An in-memory DuckDB database embedded in the package.
267
278
  * @export
@@ -556,6 +567,18 @@ export interface Project {
556
567
  * @memberof Project
557
568
  */
558
569
  'location'?: string;
570
+ /**
571
+ *
572
+ * @type {Array<Connection>}
573
+ * @memberof Project
574
+ */
575
+ 'connections'?: Array<Connection>;
576
+ /**
577
+ *
578
+ * @type {Array<Package>}
579
+ * @memberof Project
580
+ */
581
+ 'packages'?: Array<Package>;
559
582
  }
560
583
  /**
561
584
  * Named model query.
@@ -688,6 +711,25 @@ export interface SchemaName {
688
711
  */
689
712
  'isHidden'?: boolean;
690
713
  }
714
+ /**
715
+ *
716
+ * @export
717
+ * @interface ServerStatus
718
+ */
719
+ export interface ServerStatus {
720
+ /**
721
+ *
722
+ * @type {number}
723
+ * @memberof ServerStatus
724
+ */
725
+ 'timestamp'?: number;
726
+ /**
727
+ *
728
+ * @type {Array<Project>}
729
+ * @memberof ServerStatus
730
+ */
731
+ 'projects'?: Array<Project>;
732
+ }
691
733
  /**
692
734
  *
693
735
  * @export
@@ -1082,7 +1124,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
1082
1124
  * @param {*} [options] Override http request option.
1083
1125
  * @throws {RequiredError}
1084
1126
  */
1085
- getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1127
+ getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectionStatus>>;
1086
1128
  /**
1087
1129
  *
1088
1130
  * @summary Returns a list of the connections in the project.
@@ -1175,7 +1217,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
1175
1217
  * @param {*} [options] Override http request option.
1176
1218
  * @throws {RequiredError}
1177
1219
  */
1178
- getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1220
+ getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): AxiosPromise<ConnectionStatus>;
1179
1221
  /**
1180
1222
  *
1181
1223
  * @summary Returns a list of the connections in the project.
@@ -1276,7 +1318,7 @@ export declare class ConnectionsApi extends BaseAPI {
1276
1318
  * @throws {RequiredError}
1277
1319
  * @memberof ConnectionsApi
1278
1320
  */
1279
- getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any>>;
1321
+ getTest(projectName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ConnectionStatus, any>>;
1280
1322
  /**
1281
1323
  *
1282
1324
  * @summary Returns a list of the connections in the project.
@@ -2013,6 +2055,61 @@ export declare class ProjectsApi extends BaseAPI {
2013
2055
  */
2014
2056
  updateProject(projectName: string, body: object, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Project, any>>;
2015
2057
  }
2058
+ /**
2059
+ * PublisherApi - axios parameter creator
2060
+ * @export
2061
+ */
2062
+ export declare const PublisherApiAxiosParamCreator: (configuration?: Configuration) => {
2063
+ /**
2064
+ *
2065
+ * @summary Server status
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ */
2069
+ getStatus: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2070
+ };
2071
+ /**
2072
+ * PublisherApi - functional programming interface
2073
+ * @export
2074
+ */
2075
+ export declare const PublisherApiFp: (configuration?: Configuration) => {
2076
+ /**
2077
+ *
2078
+ * @summary Server status
2079
+ * @param {*} [options] Override http request option.
2080
+ * @throws {RequiredError}
2081
+ */
2082
+ getStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatus>>;
2083
+ };
2084
+ /**
2085
+ * PublisherApi - factory interface
2086
+ * @export
2087
+ */
2088
+ export declare const PublisherApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2089
+ /**
2090
+ *
2091
+ * @summary Server status
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ */
2095
+ getStatus(options?: RawAxiosRequestConfig): AxiosPromise<ServerStatus>;
2096
+ };
2097
+ /**
2098
+ * PublisherApi - object-oriented interface
2099
+ * @export
2100
+ * @class PublisherApi
2101
+ * @extends {BaseAPI}
2102
+ */
2103
+ export declare class PublisherApi extends BaseAPI {
2104
+ /**
2105
+ *
2106
+ * @summary Server status
2107
+ * @param {*} [options] Override http request option.
2108
+ * @throws {RequiredError}
2109
+ * @memberof PublisherApi
2110
+ */
2111
+ getStatus(options?: RawAxiosRequestConfig): Promise< AxiosResponse<ServerStatus, any>>;
2112
+ }
2016
2113
  /**
2017
2114
  * QueryresultsApi - axios parameter creator
2018
2115
  * @export