@xylex-group/athena 2.6.0 → 2.7.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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.cjs +837 -114
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +7 -7
  5. package/dist/browser.d.ts +7 -7
  6. package/dist/browser.js +837 -114
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +830 -107
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +3 -3
  11. package/dist/cli/index.d.ts +3 -3
  12. package/dist/cli/index.js +830 -107
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/cookies.cjs +10 -3
  15. package/dist/cookies.cjs.map +1 -1
  16. package/dist/cookies.js +10 -3
  17. package/dist/cookies.js.map +1 -1
  18. package/dist/index.cjs +837 -114
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +7 -7
  21. package/dist/index.d.ts +7 -7
  22. package/dist/index.js +837 -114
  23. package/dist/index.js.map +1 -1
  24. package/dist/model-form-AKYrgede.d.ts +2772 -0
  25. package/dist/model-form-ehfqLuG7.d.cts +2772 -0
  26. package/dist/{pipeline-Ce3pTw5h.d.ts → pipeline-BUsR9XlO.d.ts} +1 -1
  27. package/dist/{pipeline-D1ZYeoH7.d.cts → pipeline-BfCWSRYl.d.cts} +1 -1
  28. package/dist/react-email-BQzmXBDE.d.cts +304 -0
  29. package/dist/react-email-BrVRp80B.d.ts +304 -0
  30. package/dist/react.cjs +178 -71
  31. package/dist/react.cjs.map +1 -1
  32. package/dist/react.d.cts +22 -5
  33. package/dist/react.d.ts +22 -5
  34. package/dist/react.js +92 -5
  35. package/dist/react.js.map +1 -1
  36. package/dist/{types-CUuo4NDi.d.cts → types-BSIsyss1.d.cts} +1 -1
  37. package/dist/{types-DSX6AT5B.d.cts → types-BsyRW49r.d.cts} +1 -1
  38. package/dist/{types-DSX6AT5B.d.ts → types-BsyRW49r.d.ts} +1 -1
  39. package/dist/{types-DapchQY5.d.ts → types-t_TVqnmp.d.ts} +1 -1
  40. package/package.json +193 -193
  41. package/dist/model-form-BaHWi3gm.d.cts +0 -1383
  42. package/dist/model-form-Dh6gWjL0.d.ts +0 -1383
  43. package/dist/react-email-B8O1Jeff.d.cts +0 -1230
  44. package/dist/react-email-CDEF0jij.d.ts +0 -1230
@@ -1,4 +1,4 @@
1
- import { p as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-DSX6AT5B.cjs';
1
+ import { p as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-BsyRW49r.cjs';
2
2
 
3
3
  /**
4
4
  * Supported case transformations for generated symbols and path token variants.
@@ -399,4 +399,4 @@ interface SchemaIntrospectionProvider {
399
399
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
400
400
  }
401
401
 
402
- export { type AthenaConditionCastType as A, Backend as B, type ModelRelationMetadata as C, type DatabaseDef as D, type RowOf as E, type SchemaDef as F, type TenantContextValue as G, type TenantKeyMap as H, type IntrospectionSnapshot as I, type AthenaGatewayEndpointPath as J, type AthenaGatewayMethod as K, type AthenaConditionValue as L, type ModelAt as M, type AthenaConditionArrayValue as N, type AnyModelDef as O, type AthenaConditionOperator as P, type AthenaGatewayHookConfig as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaGatewayHookResult as V, type AthenaDeletePayload as W, type AthenaFetchPayload as X, type AthenaGatewayResponse as Y, type AthenaInsertPayload as Z, type AthenaUpdatePayload as _, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type InsertOf as q, type IntrospectionColumn as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelDef as x, type ModelMetadata as y, type ModelRelationKind as z };
402
+ export { type AthenaConditionCastType as A, Backend as B, type ModelRelationMetadata as C, type DatabaseDef as D, type RowOf as E, type SchemaDef as F, type TenantContextValue as G, type TenantKeyMap as H, type IntrospectionSnapshot as I, type AnyModelDef as J, type AthenaGatewayHookConfig as K, type AthenaGatewayHookResult as L, type ModelAt as M, type AthenaDeletePayload as N, type AthenaFetchPayload as O, type AthenaGatewayResponse as P, type AthenaInsertPayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaUpdatePayload as V, type AthenaGatewayEndpointPath as W, type AthenaGatewayMethod as X, type AthenaConditionValue as Y, type AthenaConditionArrayValue as Z, type AthenaConditionOperator as _, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type InsertOf as q, type IntrospectionColumn as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelDef as x, type ModelMetadata as y, type ModelRelationKind as z };
@@ -399,4 +399,4 @@ interface SchemaIntrospectionProvider {
399
399
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
400
400
  }
401
401
 
402
- export { type AthenaConditionCastType as A, Backend as B, type ModelRelationMetadata as C, type DatabaseDef as D, type RowOf as E, type SchemaDef as F, type TenantContextValue as G, type TenantKeyMap as H, type IntrospectionSnapshot as I, type AthenaGatewayEndpointPath as J, type AthenaGatewayMethod as K, type AthenaConditionValue as L, type ModelAt as M, type AthenaConditionArrayValue as N, type AnyModelDef as O, type AthenaConditionOperator as P, type AthenaGatewayHookConfig as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaGatewayHookResult as V, type AthenaDeletePayload as W, type AthenaFetchPayload as X, type AthenaGatewayResponse as Y, type AthenaInsertPayload as Z, type AthenaUpdatePayload as _, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type InsertOf as q, type IntrospectionColumn as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelDef as x, type ModelMetadata as y, type ModelRelationKind as z };
402
+ export { type AthenaConditionCastType as A, Backend as B, type ModelRelationMetadata as C, type DatabaseDef as D, type RowOf as E, type SchemaDef as F, type TenantContextValue as G, type TenantKeyMap as H, type IntrospectionSnapshot as I, type AnyModelDef as J, type AthenaGatewayHookConfig as K, type AthenaGatewayHookResult as L, type ModelAt as M, type AthenaDeletePayload as N, type AthenaFetchPayload as O, type AthenaGatewayResponse as P, type AthenaInsertPayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaUpdatePayload as V, type AthenaGatewayEndpointPath as W, type AthenaGatewayMethod as X, type AthenaConditionValue as Y, type AthenaConditionArrayValue as Z, type AthenaConditionOperator as _, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type InsertOf as q, type IntrospectionColumn as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelDef as x, type ModelMetadata as y, type ModelRelationKind as z };
@@ -1,4 +1,4 @@
1
- import { p as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-DSX6AT5B.js';
1
+ import { p as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-BsyRW49r.js';
2
2
 
3
3
  /**
4
4
  * Supported case transformations for generated symbols and path token variants.
package/package.json CHANGED
@@ -1,193 +1,193 @@
1
- {
2
- "author": "floris@xylex.group",
3
- "bin": {
4
- "athena-js": "./bin/athena-js.js"
5
- },
6
- "dependencies": {
7
- "blessed": "^0.1.81",
8
- "chalk": "^4.1.2",
9
- "cron-parser": "^4.9.0",
10
- "pg": "^8.16.0",
11
- "use-sync-external-store": "^1.5.0",
12
- "uuid": "^9.0.1"
13
- },
14
- "description": "Athena JS SDK",
15
- "devDependencies": {
16
- "@react-email/components": "^1.0.12",
17
- "@react-email/render": "^2.0.8",
18
- "@types/blessed": "^0.1.25",
19
- "@types/node": "^20.10.5",
20
- "@types/pg": "^8.15.1",
21
- "@types/react": "^18.3.12",
22
- "@types/react-test-renderer": "^18.3.1",
23
- "@types/uuid": "^9.0.7",
24
- "@typescript-eslint/eslint-plugin": "^8.57.0",
25
- "@typescript-eslint/parser": "^8.57.0",
26
- "eslint": "^8.57.1",
27
- "express": "^4.22.2",
28
- "react": "^18.3.1",
29
- "react-dom": "^18.3.1",
30
- "react-test-renderer": "^18.3.1",
31
- "tsup": "^8.5.1",
32
- "tsx": "^4.7.0",
33
- "typescript": "^5.3.3"
34
- },
35
- "engines": {
36
- "node": ">=18.0.0"
37
- },
38
- "exports": {
39
- ".": {
40
- "browser": {
41
- "default": "./dist/browser.js",
42
- "import": {
43
- "default": "./dist/browser.js",
44
- "types": "./dist/browser.d.ts"
45
- },
46
- "require": {
47
- "default": "./dist/browser.cjs",
48
- "types": "./dist/browser.d.cts"
49
- }
50
- },
51
- "default": "./dist/index.js",
52
- "import": {
53
- "default": "./dist/index.js",
54
- "types": "./dist/index.d.ts"
55
- },
56
- "require": {
57
- "default": "./dist/index.cjs",
58
- "types": "./dist/index.d.cts"
59
- }
60
- },
61
- "./browser": {
62
- "default": "./dist/browser.js",
63
- "import": {
64
- "default": "./dist/browser.js",
65
- "types": "./dist/browser.d.ts"
66
- },
67
- "require": {
68
- "default": "./dist/browser.cjs",
69
- "types": "./dist/browser.d.cts"
70
- }
71
- },
72
- "./cookies": {
73
- "default": "./dist/cookies.js",
74
- "import": {
75
- "default": "./dist/cookies.js",
76
- "types": "./dist/cookies.d.ts"
77
- },
78
- "require": {
79
- "default": "./dist/cookies.cjs",
80
- "types": "./dist/cookies.d.cts"
81
- }
82
- },
83
- "./package.json": "./package.json",
84
- "./react": {
85
- "default": "./dist/react.js",
86
- "import": {
87
- "default": "./dist/react.js",
88
- "types": "./dist/react.d.ts"
89
- },
90
- "require": {
91
- "default": "./dist/react.cjs",
92
- "types": "./dist/react.d.cts"
93
- }
94
- },
95
- "./utils": {
96
- "default": "./dist/utils.js",
97
- "import": {
98
- "default": "./dist/utils.js",
99
- "types": "./dist/utils.d.ts"
100
- },
101
- "require": {
102
- "default": "./dist/utils.cjs",
103
- "types": "./dist/utils.d.cts"
104
- }
105
- }
106
- },
107
- "files": [
108
- "dist",
109
- "bin",
110
- "README.md",
111
- "LICENSE"
112
- ],
113
- "keywords": [
114
- "database",
115
- "driver",
116
- "api-gateway",
117
- "sdk",
118
- "react",
119
- "hooks",
120
- "http",
121
- "postgres",
122
- "query-builder"
123
- ],
124
- "license": "MIT",
125
- "main": "./dist/index.cjs",
126
- "module": "./dist/index.js",
127
- "name": "@xylex-group/athena",
128
- "peerDependencies": {
129
- "@react-email/components": ">=1.0.0",
130
- "@react-email/render": ">=2.0.0",
131
- "react": ">=17.0.0"
132
- },
133
- "peerDependenciesMeta": {
134
- "@react-email/components": {
135
- "optional": true
136
- },
137
- "@react-email/render": {
138
- "optional": true
139
- },
140
- "react": {
141
- "optional": true
142
- }
143
- },
144
- "publisher": "XYLEX Group",
145
- "repository": {
146
- "type": "git",
147
- "url": "git+https://github.com/xylex-group/athena-js.git"
148
- },
149
- "scripts": {
150
- "build": "tsup",
151
- "check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
152
- "dev": "tsup --watch",
153
- "docs:methods": "node scripts/generate-sdk-method-reference.mjs",
154
- "example:api-call": "cd examples/api-call && bun run start",
155
- "example:email-resend": "cd examples/email-resend && bun run start",
156
- "example:express-api": "cd examples/express-api && bun run start",
157
- "example:order-saga": "cd examples/order-saga && bun run start",
158
- "example:postgres-connection": "cd examples/postgres-connection && bun run start",
159
- "example:recurring-invoice": "cd examples/recurring-invoice && bun run start",
160
- "example:retry-patterns": "cd examples/retry-patterns && bun run start",
161
- "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
162
- "lint:fix": "pnpm lint -- --fix",
163
- "prepublishOnly": "pnpm typecheck && pnpm build",
164
- "publish:token": "node scripts/publish.js",
165
- "test": "node --import tsx --test --test-force-exit test/*.test.ts",
166
- "test:integration:postgres": "node scripts/run-postgres-introspection-test.mjs",
167
- "test:watch": "node --import tsx --test --watch test/*.test.ts",
168
- "typecheck": "tsc -p tsconfig.typecheck.json"
169
- },
170
- "sideEffects": false,
171
- "type": "module",
172
- "types": "./dist/index.d.ts",
173
- "typesVersions": {
174
- "*": {
175
- "*": [
176
- "dist/index.d.ts"
177
- ],
178
- "browser": [
179
- "dist/browser.d.ts"
180
- ],
181
- "cookies": [
182
- "dist/cookies.d.ts"
183
- ],
184
- "react": [
185
- "dist/react.d.ts"
186
- ],
187
- "utils": [
188
- "dist/utils.d.ts"
189
- ]
190
- }
191
- },
192
- "version": "2.6.0"
193
- }
1
+ {
2
+ "author": "floris@xylex.group",
3
+ "bin": {
4
+ "athena-js": "./bin/athena-js.js"
5
+ },
6
+ "dependencies": {
7
+ "blessed": "^0.1.81",
8
+ "chalk": "^4.1.2",
9
+ "cron-parser": "^4.9.0",
10
+ "pg": "^8.16.0",
11
+ "use-sync-external-store": "^1.5.0",
12
+ "uuid": "^9.0.1"
13
+ },
14
+ "description": "Athena JS SDK",
15
+ "devDependencies": {
16
+ "@react-email/components": "^1.0.12",
17
+ "@react-email/render": "^2.0.8",
18
+ "@types/blessed": "^0.1.25",
19
+ "@types/node": "^20.10.5",
20
+ "@types/pg": "^8.15.1",
21
+ "@types/react": "^18.3.12",
22
+ "@types/react-test-renderer": "^18.3.1",
23
+ "@types/uuid": "^9.0.7",
24
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
25
+ "@typescript-eslint/parser": "^8.57.0",
26
+ "eslint": "^8.57.1",
27
+ "express": "^4.22.2",
28
+ "react": "^18.3.1",
29
+ "react-dom": "^18.3.1",
30
+ "react-test-renderer": "^18.3.1",
31
+ "tsup": "^8.5.1",
32
+ "tsx": "^4.7.0",
33
+ "typescript": "^5.3.3"
34
+ },
35
+ "engines": {
36
+ "node": ">=18.0.0"
37
+ },
38
+ "exports": {
39
+ ".": {
40
+ "browser": {
41
+ "default": "./dist/browser.js",
42
+ "import": {
43
+ "default": "./dist/browser.js",
44
+ "types": "./dist/browser.d.ts"
45
+ },
46
+ "require": {
47
+ "default": "./dist/browser.cjs",
48
+ "types": "./dist/browser.d.cts"
49
+ }
50
+ },
51
+ "default": "./dist/index.js",
52
+ "import": {
53
+ "default": "./dist/index.js",
54
+ "types": "./dist/index.d.ts"
55
+ },
56
+ "require": {
57
+ "default": "./dist/index.cjs",
58
+ "types": "./dist/index.d.cts"
59
+ }
60
+ },
61
+ "./browser": {
62
+ "default": "./dist/browser.js",
63
+ "import": {
64
+ "default": "./dist/browser.js",
65
+ "types": "./dist/browser.d.ts"
66
+ },
67
+ "require": {
68
+ "default": "./dist/browser.cjs",
69
+ "types": "./dist/browser.d.cts"
70
+ }
71
+ },
72
+ "./cookies": {
73
+ "default": "./dist/cookies.js",
74
+ "import": {
75
+ "default": "./dist/cookies.js",
76
+ "types": "./dist/cookies.d.ts"
77
+ },
78
+ "require": {
79
+ "default": "./dist/cookies.cjs",
80
+ "types": "./dist/cookies.d.cts"
81
+ }
82
+ },
83
+ "./package.json": "./package.json",
84
+ "./react": {
85
+ "default": "./dist/react.js",
86
+ "import": {
87
+ "default": "./dist/react.js",
88
+ "types": "./dist/react.d.ts"
89
+ },
90
+ "require": {
91
+ "default": "./dist/react.cjs",
92
+ "types": "./dist/react.d.cts"
93
+ }
94
+ },
95
+ "./utils": {
96
+ "default": "./dist/utils.js",
97
+ "import": {
98
+ "default": "./dist/utils.js",
99
+ "types": "./dist/utils.d.ts"
100
+ },
101
+ "require": {
102
+ "default": "./dist/utils.cjs",
103
+ "types": "./dist/utils.d.cts"
104
+ }
105
+ }
106
+ },
107
+ "files": [
108
+ "dist",
109
+ "bin",
110
+ "README.md",
111
+ "LICENSE"
112
+ ],
113
+ "keywords": [
114
+ "database",
115
+ "driver",
116
+ "api-gateway",
117
+ "sdk",
118
+ "react",
119
+ "hooks",
120
+ "http",
121
+ "postgres",
122
+ "query-builder"
123
+ ],
124
+ "license": "MIT",
125
+ "main": "./dist/index.cjs",
126
+ "module": "./dist/index.js",
127
+ "name": "@xylex-group/athena",
128
+ "peerDependencies": {
129
+ "@react-email/components": ">=1.0.0",
130
+ "@react-email/render": ">=2.0.0",
131
+ "react": ">=17.0.0"
132
+ },
133
+ "peerDependenciesMeta": {
134
+ "@react-email/components": {
135
+ "optional": true
136
+ },
137
+ "@react-email/render": {
138
+ "optional": true
139
+ },
140
+ "react": {
141
+ "optional": true
142
+ }
143
+ },
144
+ "publisher": "XYLEX Group",
145
+ "repository": {
146
+ "type": "git",
147
+ "url": "git+https://github.com/xylex-group/athena-js.git"
148
+ },
149
+ "scripts": {
150
+ "build": "tsup",
151
+ "check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
152
+ "dev": "tsup --watch",
153
+ "docs:methods": "node scripts/generate-sdk-method-reference.mjs",
154
+ "example:api-call": "cd examples/api-call && bun run start",
155
+ "example:email-resend": "cd examples/email-resend && bun run start",
156
+ "example:express-api": "cd examples/express-api && bun run start",
157
+ "example:order-saga": "cd examples/order-saga && bun run start",
158
+ "example:postgres-connection": "cd examples/postgres-connection && bun run start",
159
+ "example:recurring-invoice": "cd examples/recurring-invoice && bun run start",
160
+ "example:retry-patterns": "cd examples/retry-patterns && bun run start",
161
+ "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
162
+ "lint:fix": "pnpm lint -- --fix",
163
+ "prepublishOnly": "pnpm typecheck && pnpm build",
164
+ "publish:token": "node scripts/publish.js",
165
+ "test": "node --import tsx --test --test-force-exit test/*.test.ts",
166
+ "test:integration:postgres": "node scripts/run-postgres-introspection-test.mjs",
167
+ "test:watch": "node --import tsx --test --watch test/*.test.ts",
168
+ "typecheck": "tsc -p tsconfig.typecheck.json"
169
+ },
170
+ "sideEffects": false,
171
+ "type": "module",
172
+ "types": "./dist/index.d.ts",
173
+ "typesVersions": {
174
+ "*": {
175
+ "*": [
176
+ "dist/index.d.ts"
177
+ ],
178
+ "browser": [
179
+ "dist/browser.d.ts"
180
+ ],
181
+ "cookies": [
182
+ "dist/cookies.d.ts"
183
+ ],
184
+ "react": [
185
+ "dist/react.d.ts"
186
+ ],
187
+ "utils": [
188
+ "dist/utils.d.ts"
189
+ ]
190
+ }
191
+ },
192
+ "version": "2.7.0"
193
+ }