@sanoma-ai/connector-supabase 0.4.0 → 0.4.2
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/connector.js +2 -12
- package/dist/connector.js.map +1 -1
- package/logo.svg +1 -0
- package/package.json +11 -5
package/dist/connector.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { tfConnector } from "@sanoma-ai/bridge/connector";
|
|
2
|
-
import { defineConnector } from "@sanoma-ai/workflows";
|
|
2
|
+
import { defineConnector, vendorInfo } from "@sanoma-ai/workflows";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { provider, supabase_project } from "./resources.gen.js";
|
|
5
|
-
/**
|
|
6
|
-
* Supabase's bolt, from simple-icons (https://simpleicons.org/?q=supabase, CC0), in Supabase's
|
|
7
|
-
* green, which reads on light and dark backgrounds alike.
|
|
8
|
-
*/
|
|
9
|
-
const bolt = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>`;
|
|
10
5
|
/**
|
|
11
6
|
* Supabase, through the `supabase/supabase` OpenTofu provider: the generated resource types, and
|
|
12
7
|
* who Supabase is. Supabase names its projects (a project's ref), so a declaration has no
|
|
@@ -33,12 +28,7 @@ export const supabaseTf = tfConnector({
|
|
|
33
28
|
],
|
|
34
29
|
},
|
|
35
30
|
},
|
|
36
|
-
info:
|
|
37
|
-
title: "Supabase",
|
|
38
|
-
logo: { svg: bolt },
|
|
39
|
-
package: "@sanoma-ai/connector-supabase",
|
|
40
|
-
homepage: "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/supabase#readme",
|
|
41
|
-
},
|
|
31
|
+
info: vendorInfo(import.meta.url),
|
|
42
32
|
});
|
|
43
33
|
const projectRef = z.string().min(1).describe("The project's ref");
|
|
44
34
|
const target = ({ ref }) => ref;
|
package/dist/connector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEhE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC;IACpC,MAAM,EAAE,UAAU;IAClB,QAAQ;IACR,KAAK,EAAE;QACL,OAAO,EAAE;YACP,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI;YACrC,QAAQ,EAAE,IAAI;YACd,qFAAqF;YACrF,qFAAqF;YACrF,WAAW,EAAE;gBACX,EAAE,EAAE,EAAE,yBAAyB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,EAAE;gBAC1G,EAAE,EAAE,EAAE,4BAA4B,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,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12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-supabase",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Supabase projects for Sanoma, through the OpenTofu provider and the Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connector",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"postgres",
|
|
10
10
|
"resources",
|
|
11
11
|
"sanoma",
|
|
12
|
+
"sanoma-connector",
|
|
12
13
|
"supabase"
|
|
13
14
|
],
|
|
14
15
|
"homepage": "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/supabase#readme",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"files": [
|
|
23
24
|
"dist",
|
|
24
25
|
"testdata/replies",
|
|
26
|
+
"logo.svg",
|
|
25
27
|
"README.md",
|
|
26
28
|
"LICENSE"
|
|
27
29
|
],
|
|
@@ -51,19 +53,23 @@
|
|
|
51
53
|
"access": "public"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
54
|
-
"@sanoma-ai/bridge": "0.4.
|
|
55
|
-
"@sanoma-ai/workflows": "0.4.
|
|
56
|
+
"@sanoma-ai/bridge": "0.4.2",
|
|
57
|
+
"@sanoma-ai/workflows": "0.4.2",
|
|
56
58
|
"msw": "^3.0.2",
|
|
57
59
|
"zod": "^4.6.5"
|
|
58
60
|
},
|
|
59
61
|
"peerDependencies": {
|
|
60
|
-
"@sanoma-ai/bridge": "^0.4.
|
|
61
|
-
"@sanoma-ai/workflows": "^0.4.
|
|
62
|
+
"@sanoma-ai/bridge": "^0.4.2",
|
|
63
|
+
"@sanoma-ai/workflows": "^0.4.2",
|
|
62
64
|
"zod": "^4"
|
|
63
65
|
},
|
|
64
66
|
"engines": {
|
|
65
67
|
"node": ">=24"
|
|
66
68
|
},
|
|
69
|
+
"sanoma": {
|
|
70
|
+
"title": "Supabase",
|
|
71
|
+
"logo": "logo.svg"
|
|
72
|
+
},
|
|
67
73
|
"scripts": {
|
|
68
74
|
"build": "tsc -p tsconfig.build.json",
|
|
69
75
|
"clean": "rm -rf dist",
|