@xylex-group/athena 2.13.0 → 2.14.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/README.md +1 -1
- package/bin/athena-js.js +0 -0
- package/dist/browser.cjs +552 -52
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -9
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +552 -52
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +545 -45
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -4
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +545 -45
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-DVOKSYDI.d.ts → client-uthENhaf.d.ts} +289 -92
- package/dist/{client-BJjUwDSg.d.cts → client-wU2J9yqb.d.cts} +289 -92
- package/dist/index.cjs +552 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +552 -52
- package/dist/index.js.map +1 -1
- package/dist/{model-form-Dw4zEL5a.d.cts → model-form-BE1_Bmdd.d.cts} +2 -2
- package/dist/{model-form-yRg71q3H.d.ts → model-form-DcH3R7WD.d.ts} +2 -2
- package/dist/{module-DBteUIob.d.ts → module-Ca3_OQqR.d.ts} +5 -5
- package/dist/{module-yoX49uQC.d.cts → module-DFGZXCtt.d.cts} +5 -5
- package/dist/next/client.cjs +545 -45
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +5 -5
- package/dist/next/client.d.ts +5 -5
- package/dist/next/client.js +545 -45
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +545 -45
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +5 -5
- package/dist/next/server.d.ts +5 -5
- package/dist/next/server.js +545 -45
- package/dist/next/server.js.map +1 -1
- package/dist/{payload-DEOWN_oo.d.ts → payload-BbSCmILD.d.ts} +2 -2
- package/dist/{payload-BzVbUgY_.d.cts → payload-zXIwKTQf.d.cts} +2 -2
- package/dist/{pipeline-Dwck-wZO.d.cts → pipeline-CwQoD5G9.d.cts} +1 -1
- package/dist/{pipeline-Bj6RWt1A.d.ts → pipeline-DqwehoQV.d.ts} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/social-providers.cjs +24 -15
- package/dist/social-providers.cjs.map +1 -1
- package/dist/social-providers.js +24 -15
- package/dist/social-providers.js.map +1 -1
- package/dist/{types-BU8uJH_b.d.cts → types-6H575ITc.d.cts} +1 -1
- package/dist/{types-DPgejxYC.d.ts → types-C1swabT5.d.ts} +2 -2
- package/dist/{types-BRP7sfSF.d.ts → types-CD6K05JQ.d.ts} +1 -1
- package/dist/{types-CH78O90i.d.cts → types-YQUR7wu0.d.cts} +1 -1
- package/dist/{types-CH78O90i.d.ts → types-YQUR7wu0.d.ts} +1 -1
- package/dist/{types-CjC9_5ZQ.d.cts → types-dHnjluBC.d.cts} +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +22 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as BackendType } from './types-
|
|
2
|
-
import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-
|
|
1
|
+
import { p as BackendType } from './types-YQUR7wu0.js';
|
|
2
|
+
import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-CD6K05JQ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported case transformations for generated symbols and path token variants.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* type definitions for the athena gateway api client and react hook
|
|
5
5
|
*/
|
|
6
6
|
type AthenaGatewayMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
7
|
-
type AthenaGatewayEndpointPath = '/gateway/fetch' | '/gateway/insert' | '/gateway/update' | '/gateway/delete' | '/gateway/rpc' | '/gateway/query' | `/rpc/${string}` | `/storage/${string}`;
|
|
7
|
+
type AthenaGatewayEndpointPath = '/gateway/fetch' | '/gateway/insert' | '/gateway/update' | '/gateway/delete' | '/gateway/rpc' | '/gateway/query' | `/rpc/${string}` | `/storage/${string}` | `/admin/backups${string}`;
|
|
8
8
|
type AthenaCountOption = 'exact' | 'planned' | 'estimated';
|
|
9
9
|
type AthenaJsonPrimitive = string | number | boolean | null;
|
|
10
10
|
type AthenaJsonValue = AthenaJsonPrimitive | AthenaJsonObject | AthenaJsonArray;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* type definitions for the athena gateway api client and react hook
|
|
5
5
|
*/
|
|
6
6
|
type AthenaGatewayMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
7
|
-
type AthenaGatewayEndpointPath = '/gateway/fetch' | '/gateway/insert' | '/gateway/update' | '/gateway/delete' | '/gateway/rpc' | '/gateway/query' | `/rpc/${string}` | `/storage/${string}`;
|
|
7
|
+
type AthenaGatewayEndpointPath = '/gateway/fetch' | '/gateway/insert' | '/gateway/update' | '/gateway/delete' | '/gateway/rpc' | '/gateway/query' | `/rpc/${string}` | `/storage/${string}` | `/admin/backups${string}`;
|
|
8
8
|
type AthenaCountOption = 'exact' | 'planned' | 'estimated';
|
|
9
9
|
type AthenaJsonPrimitive = string | number | boolean | null;
|
|
10
10
|
type AthenaJsonValue = AthenaJsonPrimitive | AthenaJsonObject | AthenaJsonArray;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as BackendType } from './types-
|
|
2
|
-
import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-
|
|
1
|
+
import { p as BackendType } from './types-YQUR7wu0.cjs';
|
|
2
|
+
import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-6H575ITc.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported case transformations for generated symbols and path token variants.
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as EnvLike } from './athena-auth-url-oLux_57a.cjs';
|
|
2
2
|
export { A as ATHENA_AUTH_COOKIE_PREFIXES, o as ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM, p as ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_VALUE, q as ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH, t as ATHENA_AUTH_GET_SESSION_PATH, a as ATHENA_AUTH_PATH, b as ATHENA_AUTH_UPSTREAM_ENV_KEYS, c as ATHENA_AUTH_UPSTREAM_URL_ENV_NAMES, u as ATHENA_AUTH_VERIFY_EMAIL_PATH, v as ATHENA_SESSION_DATA_HEADER, w as AUTHENTICATED_REDIRECT_MODE_SET, x as AUTHENTICATED_REDIRECT_VIEW_SET, d as AUTH_DEFAULT_VIEW, y as AUTH_MODE_REDIRECTS, z as AUTH_MODE_SET, e as AUTH_ROUTES, B as AUTH_SESSION_PATH, F as AUTH_TWO_FACTOR_SEGMENT, f as AUTH_VIEW_BY_SEGMENT, G as AthenaAuthClientBaseUrlOptions, H as AthenaAuthUpstreamEnv, I as AthenaAuthUpstreamEnvKey, J as AuthMode, K as AuthModeRedirects, L as AuthRoutes, g as AuthView, C as ClearAuthCookiesOptions, D as DEFAULT_ATHENA_AUTH_ORIGIN, M as DEFAULT_ATHENA_AUTH_UPSTREAM_URL, N as DEFAULT_AUTH_COOKIE_PREFIXES, O as DISABLE_COOKIE_CACHE_QUERY_PARAM, P as DISABLE_COOKIE_CACHE_QUERY_VALUE, Q as LOCAL_DEV_ORIGIN, S as SESSION_DATA_HEADER, h as clearAuthCookies, R as createAuthModeRedirects, T as createAuthRoutes, U as createFreshSessionLookupUrl, i as isAbsoluteUrl, V as isAuthMode, n as normalizeAthenaAuthBaseUrl, W as readAthenaAuthUpstreamUrlFromEnv, r as resolveAthenaAuthClientBaseUrl, j as resolveAthenaAuthRequestUrl, k as resolveAthenaAuthUpstreamUrl, X as resolveAuthModeRedirect, l as resolveAuthViewFromSegment, m as resolveEmailVerificationCallbackUrl, Y as shouldRedirectAuthenticatedAuthMode, s as shouldRedirectAuthenticatedAuthView } from './athena-auth-url-oLux_57a.cjs';
|
|
3
3
|
export { S as SESSION_COOKIE_PATTERNS, h as hasAuthSessionCookie } from './session-cookie-detection-BqOp9mO6.cjs';
|
|
4
|
-
import { z as BackendOption } from './types-
|
|
4
|
+
import { z as BackendOption } from './types-YQUR7wu0.cjs';
|
|
5
5
|
|
|
6
6
|
declare function slugify(input: string): string;
|
|
7
7
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as EnvLike } from './athena-auth-url-oLux_57a.js';
|
|
2
2
|
export { A as ATHENA_AUTH_COOKIE_PREFIXES, o as ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM, p as ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_VALUE, q as ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH, t as ATHENA_AUTH_GET_SESSION_PATH, a as ATHENA_AUTH_PATH, b as ATHENA_AUTH_UPSTREAM_ENV_KEYS, c as ATHENA_AUTH_UPSTREAM_URL_ENV_NAMES, u as ATHENA_AUTH_VERIFY_EMAIL_PATH, v as ATHENA_SESSION_DATA_HEADER, w as AUTHENTICATED_REDIRECT_MODE_SET, x as AUTHENTICATED_REDIRECT_VIEW_SET, d as AUTH_DEFAULT_VIEW, y as AUTH_MODE_REDIRECTS, z as AUTH_MODE_SET, e as AUTH_ROUTES, B as AUTH_SESSION_PATH, F as AUTH_TWO_FACTOR_SEGMENT, f as AUTH_VIEW_BY_SEGMENT, G as AthenaAuthClientBaseUrlOptions, H as AthenaAuthUpstreamEnv, I as AthenaAuthUpstreamEnvKey, J as AuthMode, K as AuthModeRedirects, L as AuthRoutes, g as AuthView, C as ClearAuthCookiesOptions, D as DEFAULT_ATHENA_AUTH_ORIGIN, M as DEFAULT_ATHENA_AUTH_UPSTREAM_URL, N as DEFAULT_AUTH_COOKIE_PREFIXES, O as DISABLE_COOKIE_CACHE_QUERY_PARAM, P as DISABLE_COOKIE_CACHE_QUERY_VALUE, Q as LOCAL_DEV_ORIGIN, S as SESSION_DATA_HEADER, h as clearAuthCookies, R as createAuthModeRedirects, T as createAuthRoutes, U as createFreshSessionLookupUrl, i as isAbsoluteUrl, V as isAuthMode, n as normalizeAthenaAuthBaseUrl, W as readAthenaAuthUpstreamUrlFromEnv, r as resolveAthenaAuthClientBaseUrl, j as resolveAthenaAuthRequestUrl, k as resolveAthenaAuthUpstreamUrl, X as resolveAuthModeRedirect, l as resolveAuthViewFromSegment, m as resolveEmailVerificationCallbackUrl, Y as shouldRedirectAuthenticatedAuthMode, s as shouldRedirectAuthenticatedAuthView } from './athena-auth-url-oLux_57a.js';
|
|
3
3
|
export { S as SESSION_COOKIE_PATTERNS, h as hasAuthSessionCookie } from './session-cookie-detection-BqOp9mO6.js';
|
|
4
|
-
import { z as BackendOption } from './types-
|
|
4
|
+
import { z as BackendOption } from './types-YQUR7wu0.js';
|
|
5
5
|
|
|
6
6
|
declare function slugify(input: string): string;
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -148,6 +148,27 @@
|
|
|
148
148
|
"type": "git",
|
|
149
149
|
"url": "git+https://github.com/xylex-group/athena-js.git"
|
|
150
150
|
},
|
|
151
|
+
"scripts": {
|
|
152
|
+
"build": "tsup",
|
|
153
|
+
"check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
|
|
154
|
+
"dev": "tsup --watch",
|
|
155
|
+
"docs:methods": "node scripts/generate-sdk-method-reference.mjs",
|
|
156
|
+
"example:api-call": "cd examples/api-call && bun run start",
|
|
157
|
+
"example:email-resend": "cd examples/email-resend && bun run start",
|
|
158
|
+
"example:express-api": "cd examples/express-api && bun run start",
|
|
159
|
+
"example:order-saga": "cd examples/order-saga && bun run start",
|
|
160
|
+
"example:postgres-connection": "cd examples/postgres-connection && bun run start",
|
|
161
|
+
"example:recurring-invoice": "cd examples/recurring-invoice && bun run start",
|
|
162
|
+
"example:retry-patterns": "cd examples/retry-patterns && bun run start",
|
|
163
|
+
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
164
|
+
"lint:fix": "pnpm lint -- --fix",
|
|
165
|
+
"prepublishOnly": "pnpm typecheck && pnpm build",
|
|
166
|
+
"publish:token": "node scripts/publish.js",
|
|
167
|
+
"test": "node --import tsx --test --test-force-exit test/*.test.ts",
|
|
168
|
+
"test:integration:postgres": "node scripts/run-postgres-introspection-test.mjs",
|
|
169
|
+
"test:watch": "node --import tsx --test --watch test/*.test.ts",
|
|
170
|
+
"typecheck": "tsc -p tsconfig.typecheck.json"
|
|
171
|
+
},
|
|
151
172
|
"sideEffects": false,
|
|
152
173
|
"type": "module",
|
|
153
174
|
"types": "./dist/index.d.ts",
|
|
@@ -185,25 +206,5 @@
|
|
|
185
206
|
]
|
|
186
207
|
}
|
|
187
208
|
},
|
|
188
|
-
"version": "2.
|
|
189
|
-
"scripts": {
|
|
190
|
-
"build": "tsup",
|
|
191
|
-
"check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
|
|
192
|
-
"dev": "tsup --watch",
|
|
193
|
-
"docs:methods": "node scripts/generate-sdk-method-reference.mjs",
|
|
194
|
-
"example:api-call": "cd examples/api-call && bun run start",
|
|
195
|
-
"example:email-resend": "cd examples/email-resend && bun run start",
|
|
196
|
-
"example:express-api": "cd examples/express-api && bun run start",
|
|
197
|
-
"example:order-saga": "cd examples/order-saga && bun run start",
|
|
198
|
-
"example:postgres-connection": "cd examples/postgres-connection && bun run start",
|
|
199
|
-
"example:recurring-invoice": "cd examples/recurring-invoice && bun run start",
|
|
200
|
-
"example:retry-patterns": "cd examples/retry-patterns && bun run start",
|
|
201
|
-
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
202
|
-
"lint:fix": "pnpm lint -- --fix",
|
|
203
|
-
"publish:token": "node scripts/publish.js",
|
|
204
|
-
"test": "node --import tsx --test --test-force-exit test/*.test.ts",
|
|
205
|
-
"test:integration:postgres": "node scripts/run-postgres-introspection-test.mjs",
|
|
206
|
-
"test:watch": "node --import tsx --test --watch test/*.test.ts",
|
|
207
|
-
"typecheck": "tsc -p tsconfig.typecheck.json"
|
|
208
|
-
}
|
|
209
|
+
"version": "2.14.0"
|
|
209
210
|
}
|