@tinacms/graphql 0.0.0-ddc5e8e-20250611011547 → 0.0.0-dde3eb3-20251028070343
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/database/util.d.ts +2 -2
- package/dist/index.js +482 -454
- package/dist/index.mjs +483 -455
- package/dist/mdx/index.d.ts +2 -7
- package/dist/resolver/auth-fields.d.ts +31 -0
- package/dist/resolver/error.d.ts +1 -2
- package/dist/resolver/index.d.ts +1 -1
- package/package.json +5 -5
package/dist/mdx/index.d.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TinaSchema } from '@tinacms/schema-tools';
|
|
2
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
3
|
+
import type { Resolver } from './index';
|
|
4
|
+
export declare function handleAuthenticate({ tinaSchema, resolver, sub, password, ctxUser, }: {
|
|
5
|
+
tinaSchema: TinaSchema;
|
|
6
|
+
resolver: Resolver;
|
|
7
|
+
sub?: string;
|
|
8
|
+
password: string;
|
|
9
|
+
info: GraphQLResolveInfo;
|
|
10
|
+
ctxUser?: {
|
|
11
|
+
sub?: string;
|
|
12
|
+
};
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
export declare function handleAuthorize({ tinaSchema, resolver, sub, ctxUser, }: {
|
|
15
|
+
tinaSchema: TinaSchema;
|
|
16
|
+
resolver: Resolver;
|
|
17
|
+
sub?: string;
|
|
18
|
+
info: GraphQLResolveInfo;
|
|
19
|
+
ctxUser?: {
|
|
20
|
+
sub?: string;
|
|
21
|
+
};
|
|
22
|
+
}): Promise<any>;
|
|
23
|
+
export declare function handleUpdatePassword({ tinaSchema, resolver, password, ctxUser, }: {
|
|
24
|
+
tinaSchema: TinaSchema;
|
|
25
|
+
resolver: Resolver;
|
|
26
|
+
password: string;
|
|
27
|
+
info: GraphQLResolveInfo;
|
|
28
|
+
ctxUser?: {
|
|
29
|
+
sub?: string;
|
|
30
|
+
};
|
|
31
|
+
}): Promise<boolean>;
|
package/dist/resolver/error.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class TinaGraphQLError extends Error implements GraphQLError {
|
|
|
15
15
|
constructor(message: string, extensions?: Record<string, any>);
|
|
16
16
|
}
|
|
17
17
|
export type TypeFetchErrorArgs = {
|
|
18
|
+
/** @deprecated */
|
|
18
19
|
stack?: string;
|
|
19
20
|
file?: string;
|
|
20
21
|
includeAuditMessage?: boolean;
|
|
@@ -22,7 +23,6 @@ export type TypeFetchErrorArgs = {
|
|
|
22
23
|
collection?: string;
|
|
23
24
|
};
|
|
24
25
|
export declare class TinaFetchError extends Error {
|
|
25
|
-
stack?: string;
|
|
26
26
|
collection?: string;
|
|
27
27
|
file?: string;
|
|
28
28
|
originalError: Error;
|
|
@@ -36,7 +36,6 @@ export declare class TinaQueryError extends TinaFetchError {
|
|
|
36
36
|
constructor(args: TypeFetchErrorArgs);
|
|
37
37
|
}
|
|
38
38
|
export declare class TinaParseDocumentError extends TinaFetchError {
|
|
39
|
-
stack?: string;
|
|
40
39
|
collection?: string;
|
|
41
40
|
file?: string;
|
|
42
41
|
originalError: Error;
|
package/dist/resolver/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
*/
|
|
4
4
|
import { Database } from '../database';
|
|
5
|
-
import type { Collectable, Collection,
|
|
5
|
+
import type { Collectable, Collection, Template, TinaField, TinaSchema } from '@tinacms/schema-tools';
|
|
6
6
|
import type { GraphQLConfig } from '../types';
|
|
7
7
|
interface ResolverConfig {
|
|
8
8
|
config?: GraphQLConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-dde3eb3-20251028070343",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"readable-stream": "^4.7.0",
|
|
45
45
|
"scmp": "^2.1.0",
|
|
46
46
|
"yup": "^0.32.11",
|
|
47
|
-
"@tinacms/mdx": "0.0.0-
|
|
48
|
-
"@tinacms/schema-tools": "0.0.0-
|
|
47
|
+
"@tinacms/mdx": "0.0.0-dde3eb3-20251028070343",
|
|
48
|
+
"@tinacms/schema-tools": "0.0.0-dde3eb3-20251028070343"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"registry": "https://registry.npmjs.org"
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"vite": "^4.5.9",
|
|
76
76
|
"vitest": "^0.32.4",
|
|
77
77
|
"zod": "^3.24.2",
|
|
78
|
-
"@tinacms/
|
|
79
|
-
"@tinacms/
|
|
78
|
+
"@tinacms/scripts": "0.0.0-dde3eb3-20251028070343",
|
|
79
|
+
"@tinacms/schema-tools": "0.0.0-dde3eb3-20251028070343"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"types": "pnpm tsc",
|