@malloy-publisher/server 0.0.92 → 0.0.93
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/app/api-doc.yaml +36 -4
- package/dist/app/assets/{index-DYO_URL-.js → index-D1sQfWlS.js} +76 -76
- package/dist/app/assets/{index.es50-CDMydA2o.js → index.es56-C6ktttDI.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.js +14 -0
- package/dist/server.js +4596 -1230
- package/package.json +1 -1
- package/src/constants.ts +21 -5
- package/src/controller/connection.controller.ts +32 -3
- package/src/server.ts +14 -0
- package/src/service/connection.ts +260 -3
- package/src/service/project_store.spec.ts +9 -2
- package/src/service/project_store.ts +23 -23
package/dist/app/api-doc.yaml
CHANGED
|
@@ -24,6 +24,34 @@ paths:
|
|
|
24
24
|
schema:
|
|
25
25
|
$ref: '#/components/schemas/ServerStatus'
|
|
26
26
|
|
|
27
|
+
/connections/test:
|
|
28
|
+
post:
|
|
29
|
+
tags:
|
|
30
|
+
- connections
|
|
31
|
+
operationId: test-connection-configuration
|
|
32
|
+
summary: Test a connection configuration before adding it to the project
|
|
33
|
+
requestBody:
|
|
34
|
+
required: true
|
|
35
|
+
content:
|
|
36
|
+
application/json:
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/components/schemas/Connection'
|
|
39
|
+
responses:
|
|
40
|
+
"200":
|
|
41
|
+
description: Connection test result
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: '#/components/schemas/ConnectionStatus'
|
|
46
|
+
"400":
|
|
47
|
+
$ref: "#/components/responses/BadRequestError"
|
|
48
|
+
"401":
|
|
49
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
50
|
+
"404":
|
|
51
|
+
$ref: "#/components/responses/NotFoundError"
|
|
52
|
+
"500":
|
|
53
|
+
$ref: "#/components/responses/InternalServerError"
|
|
54
|
+
|
|
27
55
|
/projects:
|
|
28
56
|
get:
|
|
29
57
|
tags:
|
|
@@ -217,11 +245,12 @@ paths:
|
|
|
217
245
|
"500":
|
|
218
246
|
$ref: "#/components/responses/InternalServerError"
|
|
219
247
|
|
|
248
|
+
|
|
220
249
|
/projects/{projectName}/connections/{connectionName}/test:
|
|
221
250
|
get:
|
|
222
251
|
tags:
|
|
223
252
|
- connections
|
|
224
|
-
operationId:
|
|
253
|
+
operationId: test-connection
|
|
225
254
|
summary: Returns a test.
|
|
226
255
|
parameters:
|
|
227
256
|
- name: projectName
|
|
@@ -1113,6 +1142,9 @@ components:
|
|
|
1113
1142
|
type: array
|
|
1114
1143
|
items:
|
|
1115
1144
|
$ref: '#/components/schemas/Project'
|
|
1145
|
+
initialized:
|
|
1146
|
+
type: boolean
|
|
1147
|
+
description: Whether the server is initialized.
|
|
1116
1148
|
|
|
1117
1149
|
Project:
|
|
1118
1150
|
type: object
|
|
@@ -1167,7 +1199,7 @@ components:
|
|
|
1167
1199
|
path:
|
|
1168
1200
|
type: string
|
|
1169
1201
|
description: Model's relative path in its package directory.
|
|
1170
|
-
error:
|
|
1202
|
+
error:
|
|
1171
1203
|
type: string
|
|
1172
1204
|
description: Error message for this model object.
|
|
1173
1205
|
|
|
@@ -1184,7 +1216,7 @@ components:
|
|
|
1184
1216
|
path:
|
|
1185
1217
|
type: string
|
|
1186
1218
|
description: Notebook's relative path in its package directory.
|
|
1187
|
-
error:
|
|
1219
|
+
error:
|
|
1188
1220
|
type: string
|
|
1189
1221
|
description: Error message for this notebook object.
|
|
1190
1222
|
|
|
@@ -1582,4 +1614,4 @@ components:
|
|
|
1582
1614
|
type: string
|
|
1583
1615
|
enum: ["ok", "failed"]
|
|
1584
1616
|
errorMessage:
|
|
1585
|
-
type: string
|
|
1617
|
+
type: string
|