@frequencyads/db 0.1.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/types.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/types.generated.ts
21
+ var types_generated_exports = {};
22
+ __export(types_generated_exports, {
23
+ Constants: () => Constants
24
+ });
25
+ module.exports = __toCommonJS(types_generated_exports);
26
+ var Constants = {
27
+ graphql_public: {
28
+ Enums: {}
29
+ },
30
+ public: {
31
+ Enums: {
32
+ import_job_status: ["pending", "processing", "complete", "failed"],
33
+ message_role: ["user", "assistant", "tool_use", "tool_result"],
34
+ perm_global_role: ["ADMIN", "EMPLOYEE", "GUEST", "CLIENT"],
35
+ perm_organization_member_status: ["pending", "active"],
36
+ perm_organization_role: ["NETWORK_ADMIN", "NETWORK_EDITOR"],
37
+ perm_scope_type: ["tenant", "org", "mine"],
38
+ perm_visibility_mode: ["private", "rollup", "published"]
39
+ }
40
+ }
41
+ };
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ Constants
45
+ });
package/dist/types.mjs ADDED
@@ -0,0 +1,20 @@
1
+ // src/types.generated.ts
2
+ var Constants = {
3
+ graphql_public: {
4
+ Enums: {}
5
+ },
6
+ public: {
7
+ Enums: {
8
+ import_job_status: ["pending", "processing", "complete", "failed"],
9
+ message_role: ["user", "assistant", "tool_use", "tool_result"],
10
+ perm_global_role: ["ADMIN", "EMPLOYEE", "GUEST", "CLIENT"],
11
+ perm_organization_member_status: ["pending", "active"],
12
+ perm_organization_role: ["NETWORK_ADMIN", "NETWORK_EDITOR"],
13
+ perm_scope_type: ["tenant", "org", "mine"],
14
+ perm_visibility_mode: ["private", "rollup", "published"]
15
+ }
16
+ }
17
+ };
18
+ export {
19
+ Constants
20
+ };
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@frequencyads/db",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "exports": {
6
+ ".": "./src/index.ts",
7
+ "./client": "./src/lib/client.ts",
8
+ "./server": "./src/lib/server.ts",
9
+ "./admin": "./src/lib/admin.ts",
10
+ "./config": "./src/lib/config.ts",
11
+ "./cookies": "./src/lib/cookies.ts",
12
+ "./prefix": "./src/prefix.ts",
13
+ "./types": "./src/types.generated.ts"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.mjs",
19
+ "types": "dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.mjs",
24
+ "require": "./dist/index.js"
25
+ },
26
+ "./client": {
27
+ "types": "./dist/client.d.ts",
28
+ "import": "./dist/client.mjs",
29
+ "require": "./dist/client.js"
30
+ },
31
+ "./server": {
32
+ "types": "./dist/server.d.ts",
33
+ "import": "./dist/server.mjs",
34
+ "require": "./dist/server.js"
35
+ },
36
+ "./admin": {
37
+ "types": "./dist/admin.d.ts",
38
+ "import": "./dist/admin.mjs",
39
+ "require": "./dist/admin.js"
40
+ },
41
+ "./config": {
42
+ "types": "./dist/config.d.ts",
43
+ "import": "./dist/config.mjs",
44
+ "require": "./dist/config.js"
45
+ },
46
+ "./cookies": {
47
+ "types": "./dist/cookies.d.ts",
48
+ "import": "./dist/cookies.mjs",
49
+ "require": "./dist/cookies.js"
50
+ },
51
+ "./prefix": {
52
+ "types": "./dist/prefix.d.ts",
53
+ "import": "./dist/prefix.mjs",
54
+ "require": "./dist/prefix.js"
55
+ },
56
+ "./types": {
57
+ "types": "./dist/types.d.ts",
58
+ "import": "./dist/types.mjs",
59
+ "require": "./dist/types.js"
60
+ }
61
+ }
62
+ },
63
+ "files": [
64
+ "dist"
65
+ ],
66
+ "scripts": {
67
+ "build": "tsup",
68
+ "dev": "tsup --watch",
69
+ "type-check": "tsc --noEmit"
70
+ },
71
+ "dependencies": {
72
+ "@supabase/ssr": "^0.8.0",
73
+ "@supabase/supabase-js": "^2"
74
+ },
75
+ "peerDependencies": {
76
+ "next": ">=15"
77
+ },
78
+ "devDependencies": {
79
+ "@frequencyads/tsconfig": "^0.1.0",
80
+ "tsup": "^8",
81
+ "typescript": "^5"
82
+ }
83
+ }