@deepnote/database-integrations 1.7.1 → 2.0.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/index.cjs +5 -8
- package/dist/index.d.cts +186 -4717
- package/dist/index.d.ts +186 -4717
- package/dist/index.js +3 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z, { z as z$1 } from "zod";
|
|
2
|
+
import { convertToEnvironmentVariableName, parseYaml } from "@deepnote/blocks";
|
|
2
3
|
import { isMap, isSeq, parseDocument } from "yaml";
|
|
3
|
-
import { parseYaml } from "@deepnote/blocks";
|
|
4
4
|
//#region src/sql-integration-auth-methods.ts
|
|
5
5
|
const AwsAuthMethods = {
|
|
6
6
|
AccessKeys: "access-keys",
|
|
@@ -823,9 +823,6 @@ const getMySqlSqlAlchemyInput = (integrationId, projectRootDirectory, { user, pa
|
|
|
823
823
|
function getCACertificatePath({ projectRoot, integrationId, caCertificateName }) {
|
|
824
824
|
return `${projectRoot}/.deepnote/${integrationId}/${caCertificateName}`;
|
|
825
825
|
}
|
|
826
|
-
function convertToEnvironmentVariableName(str) {
|
|
827
|
-
return (/^\d/.test(str) ? `_${str}` : str).toUpperCase().replace(/[^\w]/g, "_");
|
|
828
|
-
}
|
|
829
826
|
function getSqlEnvVarName(integrationId) {
|
|
830
827
|
return convertToEnvironmentVariableName(`SQL_${integrationId}`);
|
|
831
828
|
}
|
|
@@ -994,7 +991,7 @@ const apiIntegrationSchema = z$1.object({
|
|
|
994
991
|
id: z$1.string(),
|
|
995
992
|
name: z$1.string(),
|
|
996
993
|
type: z$1.string(),
|
|
997
|
-
metadata: z$1.unknown(),
|
|
994
|
+
metadata: z$1.unknown().optional(),
|
|
998
995
|
is_public: z$1.boolean().nullish(),
|
|
999
996
|
created_at: z$1.string().nullish(),
|
|
1000
997
|
updated_at: z$1.string().nullish(),
|
|
@@ -1103,7 +1100,7 @@ function serializeIntegrationsDocument(doc) {
|
|
|
1103
1100
|
* ...
|
|
1104
1101
|
* ```
|
|
1105
1102
|
*/
|
|
1106
|
-
const baseIntegrationsFileSchema = z$1.object({ integrations: z$1.array(z$1.record(z$1.unknown())).optional().default([]) });
|
|
1103
|
+
const baseIntegrationsFileSchema = z$1.object({ integrations: z$1.array(z$1.record(z$1.string(), z$1.unknown())).optional().default([]) });
|
|
1107
1104
|
const integrationsFileSchema = z$1.object({ integrations: z$1.array(databaseIntegrationConfigSchema) });
|
|
1108
1105
|
//#endregion
|
|
1109
1106
|
//#region src/secret-field-paths.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepnote/database-integrations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Deepnote database integration definitions",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"yaml": "^2.9.0",
|
|
31
|
-
"zod": "
|
|
32
|
-
"@deepnote/blocks": "
|
|
31
|
+
"zod": "^4.6.7",
|
|
32
|
+
"@deepnote/blocks": "5.0.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public",
|