@eightyfourthousand/client-graphql 2026.4.0 → 2026.4.1
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/index.d.ts +4 -0
- package/index.js +7 -0
- package/index.js.map +1 -0
- package/lib/client-ssr.d.ts +16 -0
- package/lib/client-ssr.js +39 -0
- package/lib/client-ssr.js.map +1 -0
- package/lib/client.d.ts +15 -0
- package/lib/client.js +46 -0
- package/lib/client.js.map +1 -0
- package/lib/config.d.ts +8 -0
- package/lib/config.js +19 -0
- package/lib/config.js.map +1 -0
- package/lib/functions/get-bibliography-entry.d.ts +9 -0
- package/lib/functions/get-bibliography-entry.js +27 -0
- package/lib/functions/get-bibliography-entry.js.map +1 -0
- package/lib/functions/get-glossary-instance.d.ts +9 -0
- package/lib/functions/get-glossary-instance.js +36 -0
- package/lib/functions/get-glossary-instance.js.map +1 -0
- package/lib/functions/get-passage.d.ts +10 -0
- package/lib/functions/get-passage.js +68 -0
- package/lib/functions/get-passage.js.map +1 -0
- package/lib/functions/get-term-passages.d.ts +20 -0
- package/lib/functions/get-term-passages.js +32 -0
- package/lib/functions/get-term-passages.js.map +1 -0
- package/lib/functions/get-translation-blocks-around.d.ts +15 -0
- package/lib/functions/get-translation-blocks-around.js +86 -0
- package/lib/functions/get-translation-blocks-around.js.map +1 -0
- package/lib/functions/get-translation-blocks.d.ts +25 -0
- package/lib/functions/get-translation-blocks.js +96 -0
- package/lib/functions/get-translation-blocks.js.map +1 -0
- package/lib/functions/get-translation-imprint.d.ts +10 -0
- package/lib/functions/get-translation-imprint.js +68 -0
- package/lib/functions/get-translation-imprint.js.map +1 -0
- package/lib/functions/get-translation-metadata.d.ts +16 -0
- package/lib/functions/get-translation-metadata.js +72 -0
- package/lib/functions/get-translation-metadata.js.map +1 -0
- package/lib/functions/get-translation-titles.d.ts +9 -0
- package/lib/functions/get-translation-titles.js +34 -0
- package/lib/functions/get-translation-titles.js.map +1 -0
- package/lib/functions/get-translation-toc.d.ts +9 -0
- package/{src/lib/functions/get-translation-toc.ts → lib/functions/get-translation-toc.js} +18 -48
- package/lib/functions/get-translation-toc.js.map +1 -0
- package/lib/functions/get-translation-uuids.d.ts +16 -0
- package/lib/functions/get-translation-uuids.js +40 -0
- package/lib/functions/get-translation-uuids.js.map +1 -0
- package/lib/functions/get-translations-metadata.d.ts +9 -0
- package/lib/functions/get-translations-metadata.js +51 -0
- package/lib/functions/get-translations-metadata.js.map +1 -0
- package/lib/functions/get-work-bibliography.d.ts +9 -0
- package/lib/functions/get-work-bibliography.js +33 -0
- package/lib/functions/get-work-bibliography.js.map +1 -0
- package/lib/functions/get-work-folios.d.ts +12 -0
- package/lib/functions/get-work-folios.js +32 -0
- package/lib/functions/get-work-folios.js.map +1 -0
- package/lib/functions/get-work-glossary-terms-around.d.ts +13 -0
- package/lib/functions/get-work-glossary-terms-around.js +95 -0
- package/lib/functions/get-work-glossary-terms-around.js.map +1 -0
- package/lib/functions/get-work-glossary-terms.d.ts +24 -0
- package/lib/functions/get-work-glossary-terms.js +104 -0
- package/lib/functions/get-work-glossary-terms.js.map +1 -0
- package/lib/functions/has-permission.d.ts +9 -0
- package/lib/functions/has-permission.js +15 -0
- package/lib/functions/has-permission.js.map +1 -0
- package/{src/lib/functions/index.ts → lib/functions/index.d.ts} +3 -12
- package/lib/functions/index.js +20 -0
- package/lib/functions/index.js.map +1 -0
- package/lib/functions/replace.d.ts +27 -0
- package/lib/functions/replace.js +49 -0
- package/lib/functions/replace.js.map +1 -0
- package/lib/functions/save-passages.d.ts +16 -0
- package/lib/functions/save-passages.js +35 -0
- package/lib/functions/save-passages.js.map +1 -0
- package/lib/generated/graphql.d.ts +1062 -0
- package/lib/generated/graphql.js +357 -0
- package/lib/generated/graphql.js.map +1 -0
- package/lib/mappers/alignment.d.ts +19 -0
- package/lib/mappers/alignment.js +19 -0
- package/lib/mappers/alignment.js.map +1 -0
- package/lib/mappers/annotation.d.ts +19 -0
- package/lib/mappers/annotation.js +74 -0
- package/lib/mappers/annotation.js.map +1 -0
- package/lib/mappers/imprint.d.ts +37 -0
- package/lib/mappers/imprint.js +44 -0
- package/lib/mappers/imprint.js.map +1 -0
- package/lib/mappers/index.js +8 -0
- package/lib/mappers/index.js.map +1 -0
- package/lib/mappers/passage.d.ts +41 -0
- package/lib/mappers/passage.js +39 -0
- package/lib/mappers/passage.js.map +1 -0
- package/lib/mappers/title.d.ts +18 -0
- package/lib/mappers/title.js +18 -0
- package/lib/mappers/title.js.map +1 -0
- package/lib/mappers/toc.d.ts +25 -0
- package/lib/mappers/toc.js +25 -0
- package/lib/mappers/toc.js.map +1 -0
- package/lib/mappers/work.d.ts +22 -0
- package/lib/mappers/work.js +22 -0
- package/lib/mappers/work.js.map +1 -0
- package/package.json +25 -3
- package/ssr.d.ts +4 -0
- package/ssr.js +7 -0
- package/ssr.js.map +1 -0
- package/README.md +0 -9
- package/codegen.ts +0 -34
- package/project.json +0 -21
- package/src/index.ts +0 -75
- package/src/lib/client-ssr.ts +0 -44
- package/src/lib/client.ts +0 -58
- package/src/lib/config.ts +0 -21
- package/src/lib/functions/get-bibliography-entry.ts +0 -40
- package/src/lib/functions/get-glossary-instance.ts +0 -49
- package/src/lib/functions/get-passage.ts +0 -81
- package/src/lib/functions/get-term-passages.ts +0 -53
- package/src/lib/functions/get-translation-blocks-around.ts +0 -129
- package/src/lib/functions/get-translation-blocks.ts +0 -158
- package/src/lib/functions/get-translation-imprint.ts +0 -114
- package/src/lib/functions/get-translation-metadata.ts +0 -99
- package/src/lib/functions/get-translation-titles.ts +0 -55
- package/src/lib/functions/get-translation-uuids.ts +0 -63
- package/src/lib/functions/get-translations-metadata.ts +0 -81
- package/src/lib/functions/get-work-bibliography.ts +0 -47
- package/src/lib/functions/get-work-folios.ts +0 -52
- package/src/lib/functions/get-work-glossary-terms-around.ts +0 -127
- package/src/lib/functions/get-work-glossary-terms.ts +0 -154
- package/src/lib/functions/has-permission.ts +0 -38
- package/src/lib/functions/replace.ts +0 -91
- package/src/lib/functions/save-passages.ts +0 -76
- package/src/lib/generated/graphql.ts +0 -1297
- package/src/lib/graphql/fragments/alignment.graphql +0 -7
- package/src/lib/graphql/fragments/annotation.graphql +0 -7
- package/src/lib/graphql/fragments/imprint.graphql +0 -34
- package/src/lib/graphql/fragments/passage.graphql +0 -29
- package/src/lib/graphql/fragments/title.graphql +0 -6
- package/src/lib/graphql/fragments/toc.graphql +0 -40
- package/src/lib/graphql/fragments/work.graphql +0 -10
- package/src/lib/graphql/queries/passages.graphql +0 -116
- package/src/lib/graphql/queries/work.graphql +0 -38
- package/src/lib/graphql/queries/works.graphql +0 -23
- package/src/lib/mappers/alignment.ts +0 -34
- package/src/lib/mappers/annotation.ts +0 -204
- package/src/lib/mappers/imprint.ts +0 -79
- package/src/lib/mappers/passage.ts +0 -80
- package/src/lib/mappers/title.ts +0 -35
- package/src/lib/mappers/toc.ts +0 -49
- package/src/lib/mappers/work.ts +0 -38
- package/src/ssr.ts +0 -66
- package/tsconfig.json +0 -17
- package/tsconfig.lib.json +0 -14
- /package/{src/lib/mappers/index.ts → lib/mappers/index.d.ts} +0 -0
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
import type { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
24
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
25
|
+
export type Scalars = {
|
|
26
|
+
ID: {
|
|
27
|
+
input: string;
|
|
28
|
+
output: string;
|
|
29
|
+
};
|
|
30
|
+
String: {
|
|
31
|
+
input: string;
|
|
32
|
+
output: string;
|
|
33
|
+
};
|
|
34
|
+
Boolean: {
|
|
35
|
+
input: boolean;
|
|
36
|
+
output: boolean;
|
|
37
|
+
};
|
|
38
|
+
Int: {
|
|
39
|
+
input: number;
|
|
40
|
+
output: number;
|
|
41
|
+
};
|
|
42
|
+
Float: {
|
|
43
|
+
input: number;
|
|
44
|
+
output: number;
|
|
45
|
+
};
|
|
46
|
+
/** JSON scalar for arbitrary JSON data */
|
|
47
|
+
JSON: {
|
|
48
|
+
input: any;
|
|
49
|
+
output: any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** An alignment linking a passage to Tibetan source text */
|
|
53
|
+
export type Alignment = {
|
|
54
|
+
__typename?: 'Alignment';
|
|
55
|
+
/** Folio number within the volume */
|
|
56
|
+
folioNumber: Scalars['Int']['output'];
|
|
57
|
+
/** UUID of the folio containing the Tibetan source */
|
|
58
|
+
folioUuid: Scalars['ID']['output'];
|
|
59
|
+
/** Tibetan source text content */
|
|
60
|
+
tibetan: Scalars['String']['output'];
|
|
61
|
+
/** Tohoku catalog reference (e.g., "toh123") */
|
|
62
|
+
toh: Scalars['String']['output'];
|
|
63
|
+
/** Volume number */
|
|
64
|
+
volumeNumber: Scalars['Int']['output'];
|
|
65
|
+
};
|
|
66
|
+
/** An annotation marking up a range within a passage */
|
|
67
|
+
export type Annotation = {
|
|
68
|
+
__typename?: 'Annotation';
|
|
69
|
+
/** End offset within the passage content */
|
|
70
|
+
end: Scalars['Int']['output'];
|
|
71
|
+
/**
|
|
72
|
+
* Type-specific metadata. Contents vary by annotation type:
|
|
73
|
+
* - heading: { level, class }
|
|
74
|
+
* - link: { href, text }
|
|
75
|
+
* - internalLink: { linkType, href, label, entity, isPending }
|
|
76
|
+
* - span/mantra/inlineTitle: { textStyle, lang }
|
|
77
|
+
* - audio: { src, mediaType }
|
|
78
|
+
* - image: { src }
|
|
79
|
+
* - list: { spacing, nesting, itemStyle }
|
|
80
|
+
* - glossaryInstance: { glossary }
|
|
81
|
+
* - endNoteLink: { endNote, label }
|
|
82
|
+
* - abbreviation/hasAbbreviation: { abbreviation }
|
|
83
|
+
* - quote/quoted: { quote }
|
|
84
|
+
*/
|
|
85
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
86
|
+
/** Start offset within the passage content */
|
|
87
|
+
start: Scalars['Int']['output'];
|
|
88
|
+
/** Tohoku number associated with this annotation, if applicable */
|
|
89
|
+
toh?: Maybe<Scalars['String']['output']>;
|
|
90
|
+
/** Type of annotation (e.g., heading, span, link, internalLink, glossaryInstance) */
|
|
91
|
+
type: Scalars['String']['output'];
|
|
92
|
+
/** Unique identifier for the annotation */
|
|
93
|
+
uuid: Scalars['ID']['output'];
|
|
94
|
+
};
|
|
95
|
+
/** A bibliography section with heading and entries */
|
|
96
|
+
export type BibliographyEntry = {
|
|
97
|
+
__typename?: 'BibliographyEntry';
|
|
98
|
+
/** Bibliography entries in this section */
|
|
99
|
+
entries: Array<BibliographyEntryItem>;
|
|
100
|
+
/** Section heading */
|
|
101
|
+
heading?: Maybe<Scalars['String']['output']>;
|
|
102
|
+
};
|
|
103
|
+
/** A single bibliography entry item */
|
|
104
|
+
export type BibliographyEntryItem = {
|
|
105
|
+
__typename?: 'BibliographyEntryItem';
|
|
106
|
+
/** HTML content of the bibliography entry */
|
|
107
|
+
html: Scalars['String']['output'];
|
|
108
|
+
/** Unique identifier */
|
|
109
|
+
uuid: Scalars['ID']['output'];
|
|
110
|
+
/** UUID of the work this entry belongs to */
|
|
111
|
+
workUuid?: Maybe<Scalars['ID']['output']>;
|
|
112
|
+
};
|
|
113
|
+
/** Currently authenticated user */
|
|
114
|
+
export type CurrentUser = {
|
|
115
|
+
__typename?: 'CurrentUser';
|
|
116
|
+
/** User's email address */
|
|
117
|
+
email: Scalars['String']['output'];
|
|
118
|
+
/** User's unique identifier */
|
|
119
|
+
id: Scalars['ID']['output'];
|
|
120
|
+
/** User's role */
|
|
121
|
+
role: UserRole;
|
|
122
|
+
};
|
|
123
|
+
/** A folio page from a Tibetan work */
|
|
124
|
+
export type Folio = {
|
|
125
|
+
__typename?: 'Folio';
|
|
126
|
+
/** Content of the folio */
|
|
127
|
+
content: Scalars['String']['output'];
|
|
128
|
+
/** Folio number within the volume */
|
|
129
|
+
folio: Scalars['Int']['output'];
|
|
130
|
+
/** Side of the folio (a or b) */
|
|
131
|
+
side: FolioSide;
|
|
132
|
+
/** Unique identifier */
|
|
133
|
+
uuid: Scalars['ID']['output'];
|
|
134
|
+
/** Volume number */
|
|
135
|
+
volume: Scalars['Int']['output'];
|
|
136
|
+
};
|
|
137
|
+
/** Folio side (recto/verso) */
|
|
138
|
+
export type FolioSide = 'a' | 'b';
|
|
139
|
+
/** Paginated passage references for a glossary term */
|
|
140
|
+
export type GlossaryPassagesPage = {
|
|
141
|
+
__typename?: 'GlossaryPassagesPage';
|
|
142
|
+
/** Whether more passages exist beyond this page */
|
|
143
|
+
hasMore: Scalars['Boolean']['output'];
|
|
144
|
+
/** Passages in this page */
|
|
145
|
+
items: Array<Passage>;
|
|
146
|
+
/** Cursor for fetching the next page (offset encoded as string), null if no more */
|
|
147
|
+
nextCursor?: Maybe<Scalars['String']['output']>;
|
|
148
|
+
};
|
|
149
|
+
/** Paginated connection of glossary term instances for a work */
|
|
150
|
+
export type GlossaryTermConnection = {
|
|
151
|
+
__typename?: 'GlossaryTermConnection';
|
|
152
|
+
/** List of glossary term instances in this page */
|
|
153
|
+
nodes: Array<GlossaryTermInstance>;
|
|
154
|
+
/** Pagination information */
|
|
155
|
+
pageInfo: PageInfo;
|
|
156
|
+
/** Total number of glossary terms in this work */
|
|
157
|
+
totalCount: Scalars['Int']['output'];
|
|
158
|
+
};
|
|
159
|
+
/** A glossary term instance within a specific work */
|
|
160
|
+
export type GlossaryTermInstance = {
|
|
161
|
+
__typename?: 'GlossaryTermInstance';
|
|
162
|
+
/** Authority UUID for the term */
|
|
163
|
+
authority: Scalars['String']['output'];
|
|
164
|
+
/** Definition of the term */
|
|
165
|
+
definition?: Maybe<Scalars['String']['output']>;
|
|
166
|
+
/** Names in different languages */
|
|
167
|
+
names: GlossaryTermNames;
|
|
168
|
+
/** Paginated passage references where this term appears */
|
|
169
|
+
passages: GlossaryPassagesPage;
|
|
170
|
+
/** Absolute position of this term in the work's glossary (1-based) */
|
|
171
|
+
termNumber: Scalars['Int']['output'];
|
|
172
|
+
/** Unique identifier */
|
|
173
|
+
uuid: Scalars['ID']['output'];
|
|
174
|
+
};
|
|
175
|
+
/** A glossary term instance within a specific work */
|
|
176
|
+
export type GlossaryTermInstancePassagesArgs = {
|
|
177
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
178
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
179
|
+
};
|
|
180
|
+
/** Names for a glossary term instance in different languages */
|
|
181
|
+
export type GlossaryTermNames = {
|
|
182
|
+
__typename?: 'GlossaryTermNames';
|
|
183
|
+
/** Chinese name */
|
|
184
|
+
chinese?: Maybe<Scalars['String']['output']>;
|
|
185
|
+
/** English name/translation */
|
|
186
|
+
english?: Maybe<Scalars['String']['output']>;
|
|
187
|
+
/** Pali name */
|
|
188
|
+
pali?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
/** Sanskrit name */
|
|
190
|
+
sanskrit?: Maybe<Scalars['String']['output']>;
|
|
191
|
+
/** Tibetan name */
|
|
192
|
+
tibetan?: Maybe<Scalars['String']['output']>;
|
|
193
|
+
/** Wylie transliteration */
|
|
194
|
+
wylie?: Maybe<Scalars['String']['output']>;
|
|
195
|
+
};
|
|
196
|
+
/** Health status response */
|
|
197
|
+
export type HealthStatus = {
|
|
198
|
+
__typename?: 'HealthStatus';
|
|
199
|
+
/** Current status of the API (e.g., "ok", "degraded") */
|
|
200
|
+
status: Scalars['String']['output'];
|
|
201
|
+
/** ISO 8601 timestamp of the health check */
|
|
202
|
+
timestamp: Scalars['String']['output'];
|
|
203
|
+
};
|
|
204
|
+
/** Publication imprint information for a work */
|
|
205
|
+
export type Imprint = {
|
|
206
|
+
__typename?: 'Imprint';
|
|
207
|
+
/** Whether the authorship is contested */
|
|
208
|
+
isAuthorContested: Scalars['Boolean']['output'];
|
|
209
|
+
/** License information */
|
|
210
|
+
license: License;
|
|
211
|
+
/** Long titles by language */
|
|
212
|
+
longTitles?: Maybe<TitlesByLanguage>;
|
|
213
|
+
/** Main titles by language */
|
|
214
|
+
mainTitles?: Maybe<TitlesByLanguage>;
|
|
215
|
+
/** Year the translation was published */
|
|
216
|
+
publishYear?: Maybe<Scalars['String']['output']>;
|
|
217
|
+
/** Publisher statement */
|
|
218
|
+
publisherStatement?: Maybe<Scalars['String']['output']>;
|
|
219
|
+
/** Whether access to this work is restricted */
|
|
220
|
+
restriction?: Maybe<Scalars['Boolean']['output']>;
|
|
221
|
+
/** Section of the canon (e.g., "Sutra") */
|
|
222
|
+
section?: Maybe<Scalars['String']['output']>;
|
|
223
|
+
/** Description of the source text */
|
|
224
|
+
sourceDescription?: Maybe<Scalars['String']['output']>;
|
|
225
|
+
/** Names of Tibetan authors */
|
|
226
|
+
tibetanAuthors?: Maybe<Array<Scalars['String']['output']>>;
|
|
227
|
+
/** Names of Tibetan translators */
|
|
228
|
+
tibetanTranslators?: Maybe<Scalars['String']['output']>;
|
|
229
|
+
/** Tohoku catalog entry number (e.g., "toh1") */
|
|
230
|
+
toh: Scalars['String']['output'];
|
|
231
|
+
/** Publication version (semantic versioning) */
|
|
232
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
233
|
+
};
|
|
234
|
+
/** License information for a published work */
|
|
235
|
+
export type License = {
|
|
236
|
+
__typename?: 'License';
|
|
237
|
+
/** Human-readable description of the license terms */
|
|
238
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
239
|
+
/** URL to the license text */
|
|
240
|
+
link?: Maybe<Scalars['String']['output']>;
|
|
241
|
+
/** Name of the license (e.g., "CC BY-NC-ND 4.0") */
|
|
242
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
243
|
+
};
|
|
244
|
+
/** Root Mutation type - extend this in other schema files */
|
|
245
|
+
export type Mutation = {
|
|
246
|
+
__typename?: 'Mutation';
|
|
247
|
+
/** Placeholder for schema validation - not used */
|
|
248
|
+
_empty?: Maybe<Scalars['Boolean']['output']>;
|
|
249
|
+
/**
|
|
250
|
+
* Replace text within one or more targets.
|
|
251
|
+
* Requires editor.edit permission.
|
|
252
|
+
*/
|
|
253
|
+
replace: ReplaceResult;
|
|
254
|
+
/**
|
|
255
|
+
* Save one or more passages.
|
|
256
|
+
* Requires editor.edit permission.
|
|
257
|
+
*/
|
|
258
|
+
savePassages: SavePassagesResult;
|
|
259
|
+
};
|
|
260
|
+
/** Root Mutation type - extend this in other schema files */
|
|
261
|
+
export type MutationReplaceArgs = {
|
|
262
|
+
cursorPassageUuid?: InputMaybe<Scalars['ID']['input']>;
|
|
263
|
+
cursorStart?: InputMaybe<Scalars['Int']['input']>;
|
|
264
|
+
occurrenceIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
265
|
+
replaceText: Scalars['String']['input'];
|
|
266
|
+
searchText: Scalars['String']['input'];
|
|
267
|
+
targetUuids: Array<Scalars['ID']['input']>;
|
|
268
|
+
type?: InputMaybe<ReplaceType>;
|
|
269
|
+
};
|
|
270
|
+
/** Root Mutation type - extend this in other schema files */
|
|
271
|
+
export type MutationSavePassagesArgs = {
|
|
272
|
+
deletedUuids?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
273
|
+
passages: Array<PassageInput>;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Pagination information for connections.
|
|
277
|
+
* Used consistently across all paginated queries.
|
|
278
|
+
*/
|
|
279
|
+
export type PageInfo = {
|
|
280
|
+
__typename?: 'PageInfo';
|
|
281
|
+
/** Whether there are more items after the current page */
|
|
282
|
+
hasMoreAfter: Scalars['Boolean']['output'];
|
|
283
|
+
/** Whether there are more items before the current page */
|
|
284
|
+
hasMoreBefore: Scalars['Boolean']['output'];
|
|
285
|
+
/** Cursor for fetching the next page */
|
|
286
|
+
nextCursor?: Maybe<Scalars['String']['output']>;
|
|
287
|
+
/** Cursor for fetching the previous page */
|
|
288
|
+
prevCursor?: Maybe<Scalars['String']['output']>;
|
|
289
|
+
};
|
|
290
|
+
/** Direction for pagination */
|
|
291
|
+
export type PaginationDirection =
|
|
292
|
+
/** Fetch passages around the cursor (both before and after) */
|
|
293
|
+
'AROUND'
|
|
294
|
+
/** Fetch passages before the cursor */
|
|
295
|
+
| 'BACKWARD'
|
|
296
|
+
/** Fetch passages after the cursor (default) */
|
|
297
|
+
| 'FORWARD';
|
|
298
|
+
/** A passage of text from a work */
|
|
299
|
+
export type Passage = {
|
|
300
|
+
__typename?: 'Passage';
|
|
301
|
+
/** Alignments linking this passage to Tibetan source text */
|
|
302
|
+
alignments: Array<Alignment>;
|
|
303
|
+
/** Annotations marking up ranges within this passage */
|
|
304
|
+
annotations: Array<Annotation>;
|
|
305
|
+
/** Text content of the passage */
|
|
306
|
+
content: Scalars['String']['output'];
|
|
307
|
+
/**
|
|
308
|
+
* TipTap editor JSON representation of this passage.
|
|
309
|
+
* Transforms content and annotations into nested JSON structure.
|
|
310
|
+
*/
|
|
311
|
+
json?: Maybe<Scalars['JSON']['output']>;
|
|
312
|
+
/** Display label for the passage (e.g., "1.1") */
|
|
313
|
+
label?: Maybe<Scalars['String']['output']>;
|
|
314
|
+
/**
|
|
315
|
+
* Passages that reference this endnote passage via end-note-link annotations.
|
|
316
|
+
* Only populated for endnotes type passages; empty for all other types.
|
|
317
|
+
*/
|
|
318
|
+
references: Array<Passage>;
|
|
319
|
+
/** Sort order within the work */
|
|
320
|
+
sort: Scalars['Int']['output'];
|
|
321
|
+
/** Tohoku number associated with this passage, if applicable */
|
|
322
|
+
toh?: Maybe<Scalars['String']['output']>;
|
|
323
|
+
/** Type of passage content (e.g., translation, introduction, colophon) */
|
|
324
|
+
type: Scalars['String']['output'];
|
|
325
|
+
/** Unique identifier for the passage */
|
|
326
|
+
uuid: Scalars['ID']['output'];
|
|
327
|
+
/** UUID of the work this passage belongs to */
|
|
328
|
+
workUuid: Scalars['ID']['output'];
|
|
329
|
+
/** The Legacy XML ID from the source document */
|
|
330
|
+
xmlId?: Maybe<Scalars['String']['output']>;
|
|
331
|
+
};
|
|
332
|
+
/** Paginated connection of passages */
|
|
333
|
+
export type PassageConnection = {
|
|
334
|
+
__typename?: 'PassageConnection';
|
|
335
|
+
/**
|
|
336
|
+
* Whether there are more passages after the current page
|
|
337
|
+
* @deprecated Use pageInfo.hasMoreAfter instead
|
|
338
|
+
*/
|
|
339
|
+
hasMoreAfter: Scalars['Boolean']['output'];
|
|
340
|
+
/**
|
|
341
|
+
* Whether there are more passages before the current page
|
|
342
|
+
* @deprecated Use pageInfo.hasMoreBefore instead
|
|
343
|
+
*/
|
|
344
|
+
hasMoreBefore: Scalars['Boolean']['output'];
|
|
345
|
+
/**
|
|
346
|
+
* Cursor for fetching the next page
|
|
347
|
+
* @deprecated Use pageInfo.nextCursor instead
|
|
348
|
+
*/
|
|
349
|
+
nextCursor?: Maybe<Scalars['String']['output']>;
|
|
350
|
+
/** List of passages */
|
|
351
|
+
nodes: Array<Passage>;
|
|
352
|
+
/** Pagination information */
|
|
353
|
+
pageInfo: PageInfo;
|
|
354
|
+
/**
|
|
355
|
+
* Cursor for fetching the previous page
|
|
356
|
+
* @deprecated Use pageInfo.prevCursor instead
|
|
357
|
+
*/
|
|
358
|
+
prevCursor?: Maybe<Scalars['String']['output']>;
|
|
359
|
+
};
|
|
360
|
+
/** Filter options for passages */
|
|
361
|
+
export type PassageFilter = {
|
|
362
|
+
/** Filter by label pattern using ILIKE (e.g., "n.5%") */
|
|
363
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
364
|
+
/**
|
|
365
|
+
* Filter by passage type (e.g., translation, introduction, colophon).
|
|
366
|
+
* Can be a single type or use LIKE pattern with %.
|
|
367
|
+
*/
|
|
368
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
369
|
+
/**
|
|
370
|
+
* Filter by multiple passage types (OR logic).
|
|
371
|
+
* Use this instead of type when filtering by multiple types.
|
|
372
|
+
*/
|
|
373
|
+
types?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
374
|
+
};
|
|
375
|
+
/** Input type for saving a passage */
|
|
376
|
+
export type PassageInput = {
|
|
377
|
+
/** Annotations as JSON array */
|
|
378
|
+
annotations: Scalars['JSON']['input'];
|
|
379
|
+
/** Text content of the passage */
|
|
380
|
+
content: Scalars['String']['input'];
|
|
381
|
+
/** Display label for the passage */
|
|
382
|
+
label: Scalars['String']['input'];
|
|
383
|
+
/** Sort order within the work */
|
|
384
|
+
sort: Scalars['Int']['input'];
|
|
385
|
+
/** Type of passage content */
|
|
386
|
+
type: Scalars['String']['input'];
|
|
387
|
+
/** Unique identifier for the passage */
|
|
388
|
+
uuid: Scalars['ID']['input'];
|
|
389
|
+
/** UUID of the work this passage belongs to */
|
|
390
|
+
workUuid: Scalars['ID']['input'];
|
|
391
|
+
/** The Legacy XML ID from the source document */
|
|
392
|
+
xmlId?: InputMaybe<Scalars['String']['input']>;
|
|
393
|
+
};
|
|
394
|
+
/** Permission types that can be checked */
|
|
395
|
+
export type Permission = 'EDITOR_ADMIN' | 'EDITOR_EDIT' | 'EDITOR_READ' | 'PROJECTS_ADMIN' | 'PROJECTS_EDIT' | 'PROJECTS_READ';
|
|
396
|
+
/** Root Query type - extend this in other schema files */
|
|
397
|
+
export type Query = {
|
|
398
|
+
__typename?: 'Query';
|
|
399
|
+
/** Get a single bibliography entry by UUID */
|
|
400
|
+
bibliographyEntry?: Maybe<BibliographyEntryItem>;
|
|
401
|
+
/** Get a single glossary instance by UUID */
|
|
402
|
+
glossaryInstance?: Maybe<GlossaryTermInstance>;
|
|
403
|
+
/** Get paginated passage references for a glossary term (per-term, on-demand) */
|
|
404
|
+
glossaryTermPassages: GlossaryPassagesPage;
|
|
405
|
+
/**
|
|
406
|
+
* Check if the current user has a specific permission.
|
|
407
|
+
* Returns false if not authenticated.
|
|
408
|
+
*/
|
|
409
|
+
hasPermission: Scalars['Boolean']['output'];
|
|
410
|
+
/** Health check query */
|
|
411
|
+
health: HealthStatus;
|
|
412
|
+
/** Get the currently authenticated user (null if not authenticated) */
|
|
413
|
+
me?: Maybe<CurrentUser>;
|
|
414
|
+
/**
|
|
415
|
+
* Fetch a single passage by UUID or XML ID.
|
|
416
|
+
* At least one of uuid or legacy xmlId must be provided. Prefers uuid if both are present.
|
|
417
|
+
*/
|
|
418
|
+
passage?: Maybe<Passage>;
|
|
419
|
+
/** Get the current API version */
|
|
420
|
+
version: Scalars['String']['output'];
|
|
421
|
+
/**
|
|
422
|
+
* Get a single work by UUID or Tohoku catalog number.
|
|
423
|
+
* When both uuid and toh are provided, toh acts as a composite key
|
|
424
|
+
* and will be used as the default for nested resolvers (like imprint).
|
|
425
|
+
*/
|
|
426
|
+
work?: Maybe<Work>;
|
|
427
|
+
/** Get paginated published translation works */
|
|
428
|
+
works: WorkConnection;
|
|
429
|
+
};
|
|
430
|
+
/** Root Query type - extend this in other schema files */
|
|
431
|
+
export type QueryBibliographyEntryArgs = {
|
|
432
|
+
uuid: Scalars['ID']['input'];
|
|
433
|
+
};
|
|
434
|
+
/** Root Query type - extend this in other schema files */
|
|
435
|
+
export type QueryGlossaryInstanceArgs = {
|
|
436
|
+
uuid: Scalars['ID']['input'];
|
|
437
|
+
};
|
|
438
|
+
/** Root Query type - extend this in other schema files */
|
|
439
|
+
export type QueryGlossaryTermPassagesArgs = {
|
|
440
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
441
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
442
|
+
uuid: Scalars['ID']['input'];
|
|
443
|
+
};
|
|
444
|
+
/** Root Query type - extend this in other schema files */
|
|
445
|
+
export type QueryHasPermissionArgs = {
|
|
446
|
+
permission: Permission;
|
|
447
|
+
};
|
|
448
|
+
/** Root Query type - extend this in other schema files */
|
|
449
|
+
export type QueryPassageArgs = {
|
|
450
|
+
uuid?: InputMaybe<Scalars['ID']['input']>;
|
|
451
|
+
xmlId?: InputMaybe<Scalars['String']['input']>;
|
|
452
|
+
};
|
|
453
|
+
/** Root Query type - extend this in other schema files */
|
|
454
|
+
export type QueryWorkArgs = {
|
|
455
|
+
toh?: InputMaybe<Scalars['String']['input']>;
|
|
456
|
+
uuid?: InputMaybe<Scalars['ID']['input']>;
|
|
457
|
+
};
|
|
458
|
+
/** Root Query type - extend this in other schema files */
|
|
459
|
+
export type QueryWorksArgs = {
|
|
460
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
461
|
+
filter?: InputMaybe<WorkFilter>;
|
|
462
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
463
|
+
};
|
|
464
|
+
/** Result of a replace mutation */
|
|
465
|
+
export type ReplaceResult = {
|
|
466
|
+
__typename?: 'ReplaceResult';
|
|
467
|
+
/** Number of annotations deleted because the replacement removed them */
|
|
468
|
+
deletedAnnotationCount: Scalars['Int']['output'];
|
|
469
|
+
/** Error message if the replace failed */
|
|
470
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
471
|
+
/** Character offset within nextPassageUuid where the next single replace should continue */
|
|
472
|
+
nextOccurrenceStart?: Maybe<Scalars['Int']['output']>;
|
|
473
|
+
/** Passage UUID after which the next single replace should continue */
|
|
474
|
+
nextPassageUuid?: Maybe<Scalars['ID']['output']>;
|
|
475
|
+
/** Updated target passages for client-side refresh */
|
|
476
|
+
passages: Array<Passage>;
|
|
477
|
+
/** Number of occurrences replaced */
|
|
478
|
+
replacedOccurrenceCount: Scalars['Int']['output'];
|
|
479
|
+
/** Whether the replace was successful */
|
|
480
|
+
success: Scalars['Boolean']['output'];
|
|
481
|
+
/** Number of annotations whose ranges changed */
|
|
482
|
+
updatedAnnotationCount: Scalars['Int']['output'];
|
|
483
|
+
/** Number of target records updated */
|
|
484
|
+
updatedCount: Scalars['Int']['output'];
|
|
485
|
+
};
|
|
486
|
+
/** Supported target types for search-and-replace operations */
|
|
487
|
+
export type ReplaceType = 'PASSAGE';
|
|
488
|
+
/** Result of saving passages */
|
|
489
|
+
export type SavePassagesResult = {
|
|
490
|
+
__typename?: 'SavePassagesResult';
|
|
491
|
+
/** Number of passages deleted */
|
|
492
|
+
deletedCount?: Maybe<Scalars['Int']['output']>;
|
|
493
|
+
/** Error message if the save failed */
|
|
494
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
495
|
+
/** Number of passages saved */
|
|
496
|
+
savedCount: Scalars['Int']['output'];
|
|
497
|
+
/** Whether the save was successful */
|
|
498
|
+
success: Scalars['Boolean']['output'];
|
|
499
|
+
};
|
|
500
|
+
/** A title of a work in a specific language */
|
|
501
|
+
export type Title = {
|
|
502
|
+
__typename?: 'Title';
|
|
503
|
+
/** The title text content */
|
|
504
|
+
content: Scalars['String']['output'];
|
|
505
|
+
/** Language code (e.g., "en", "bo", "Sa-Ltn", "Bo-Ltn") */
|
|
506
|
+
language: Scalars['String']['output'];
|
|
507
|
+
/** Type of title (e.g., "mainTitle", "longTitle", "otherTitle", "toh", "shortcode") */
|
|
508
|
+
type: Scalars['String']['output'];
|
|
509
|
+
/** Unique identifier for the title */
|
|
510
|
+
uuid: Scalars['ID']['output'];
|
|
511
|
+
};
|
|
512
|
+
/** Titles grouped by language */
|
|
513
|
+
export type TitlesByLanguage = {
|
|
514
|
+
__typename?: 'TitlesByLanguage';
|
|
515
|
+
/** English title */
|
|
516
|
+
english?: Maybe<Scalars['String']['output']>;
|
|
517
|
+
/** Sanskrit title */
|
|
518
|
+
sanskrit?: Maybe<Scalars['String']['output']>;
|
|
519
|
+
/** Tibetan title */
|
|
520
|
+
tibetan?: Maybe<Scalars['String']['output']>;
|
|
521
|
+
/** Wylie transliteration of Tibetan title */
|
|
522
|
+
wylie?: Maybe<Scalars['String']['output']>;
|
|
523
|
+
};
|
|
524
|
+
/** Table of contents for a work, organized by major sections */
|
|
525
|
+
export type Toc = {
|
|
526
|
+
__typename?: 'Toc';
|
|
527
|
+
/** Back matter entries (endnotes, abbreviations) */
|
|
528
|
+
backMatter: Array<TocEntry>;
|
|
529
|
+
/** Body entries (homage, translation, colophon, etc.) */
|
|
530
|
+
body: Array<TocEntry>;
|
|
531
|
+
/** Front matter entries (acknowledgment, introduction, summary) */
|
|
532
|
+
frontMatter: Array<TocEntry>;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* A hierarchical entry in a work's table of contents.
|
|
536
|
+
*
|
|
537
|
+
* This is a recursive type - each entry can contain nested children entries.
|
|
538
|
+
* Due to GraphQL's explicit nesting requirement, queries must specify the
|
|
539
|
+
* desired depth using fragments.
|
|
540
|
+
*
|
|
541
|
+
* Example query for 3 levels deep:
|
|
542
|
+
* fragment TocFields on TocEntry {
|
|
543
|
+
* uuid
|
|
544
|
+
* content
|
|
545
|
+
* label
|
|
546
|
+
* level
|
|
547
|
+
* }
|
|
548
|
+
*
|
|
549
|
+
* query {
|
|
550
|
+
* work(uuid: "...") {
|
|
551
|
+
* toc {
|
|
552
|
+
* frontMatter {
|
|
553
|
+
* ...TocFields
|
|
554
|
+
* children {
|
|
555
|
+
* ...TocFields
|
|
556
|
+
* children {
|
|
557
|
+
* ...TocFields
|
|
558
|
+
* }
|
|
559
|
+
* }
|
|
560
|
+
* }
|
|
561
|
+
* }
|
|
562
|
+
* }
|
|
563
|
+
* }
|
|
564
|
+
*
|
|
565
|
+
* Maximum query depth is limited to 12 levels.
|
|
566
|
+
*/
|
|
567
|
+
export type TocEntry = {
|
|
568
|
+
__typename?: 'TocEntry';
|
|
569
|
+
/**
|
|
570
|
+
* Child entries nested under this entry.
|
|
571
|
+
* Must be explicitly queried to desired depth using fragments.
|
|
572
|
+
*/
|
|
573
|
+
children: Array<TocEntry>;
|
|
574
|
+
/** Content of the TOC entry (title/heading) */
|
|
575
|
+
content: Scalars['String']['output'];
|
|
576
|
+
/** Optional label for the entry */
|
|
577
|
+
label?: Maybe<Scalars['String']['output']>;
|
|
578
|
+
/** Nesting level (1 for top level, 2+ for nested) */
|
|
579
|
+
level: Scalars['Int']['output'];
|
|
580
|
+
/** Section type (e.g., "introduction", "translation", "colophon") */
|
|
581
|
+
section: Scalars['String']['output'];
|
|
582
|
+
/** Sort order within the section */
|
|
583
|
+
sort: Scalars['Int']['output'];
|
|
584
|
+
/** Unique identifier for the passage */
|
|
585
|
+
uuid: Scalars['ID']['output'];
|
|
586
|
+
};
|
|
587
|
+
/** User role levels */
|
|
588
|
+
export type UserRole = 'ADMIN' | 'EDITOR' | 'READER' | 'SCHOLAR' | 'TRANSLATOR';
|
|
589
|
+
/** A published translation work from the 84000 canon */
|
|
590
|
+
export type Work = {
|
|
591
|
+
__typename?: 'Work';
|
|
592
|
+
/** Bibliography entries for this work, grouped by section */
|
|
593
|
+
bibliography: Array<BibliographyEntry>;
|
|
594
|
+
/** Folios for this work, filtered by toh and paginated */
|
|
595
|
+
folios: Array<Folio>;
|
|
596
|
+
/**
|
|
597
|
+
* Glossary term instances for this work
|
|
598
|
+
* @deprecated Use glossaryTerms for paginated access
|
|
599
|
+
*/
|
|
600
|
+
glossary: Array<GlossaryTermInstance>;
|
|
601
|
+
/** Paginated glossary term instances for this work */
|
|
602
|
+
glossaryTerms: GlossaryTermConnection;
|
|
603
|
+
/**
|
|
604
|
+
* Publication imprint information.
|
|
605
|
+
* If the work query specified a toh argument, that value will be used.
|
|
606
|
+
* Otherwise, imprint for the first toh in the work is returned.
|
|
607
|
+
*/
|
|
608
|
+
imprint?: Maybe<Imprint>;
|
|
609
|
+
/** Number of source pages */
|
|
610
|
+
pages: Scalars['Int']['output'];
|
|
611
|
+
/** Paginated passages from this work */
|
|
612
|
+
passages: PassageConnection;
|
|
613
|
+
/** Date the work was published */
|
|
614
|
+
publicationDate?: Maybe<Scalars['String']['output']>;
|
|
615
|
+
/** Semantic version of the publication (e.g., "1.0.0") */
|
|
616
|
+
publicationVersion: Scalars['String']['output'];
|
|
617
|
+
/** Whether access to this work is restricted */
|
|
618
|
+
restriction: Scalars['Boolean']['output'];
|
|
619
|
+
/** Section of the canon this work belongs to */
|
|
620
|
+
section: Scalars['String']['output'];
|
|
621
|
+
/** Title of the work */
|
|
622
|
+
title: Scalars['String']['output'];
|
|
623
|
+
/** All titles associated with this work, in various languages and types */
|
|
624
|
+
titles: Array<Title>;
|
|
625
|
+
/**
|
|
626
|
+
* Table of contents for the work, organized by major sections.
|
|
627
|
+
* Returns a recursive tree structure up to 12 levels deep.
|
|
628
|
+
* See the TocEntry type documentation for query examples.
|
|
629
|
+
*/
|
|
630
|
+
toc?: Maybe<Toc>;
|
|
631
|
+
/** Tohoku catalog entry numbers (e.g., ["toh1", "toh2"]) */
|
|
632
|
+
toh: Array<Scalars['String']['output']>;
|
|
633
|
+
/** Unique identifier for the work */
|
|
634
|
+
uuid: Scalars['ID']['output'];
|
|
635
|
+
};
|
|
636
|
+
/** A published translation work from the 84000 canon */
|
|
637
|
+
export type WorkFoliosArgs = {
|
|
638
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
639
|
+
size?: InputMaybe<Scalars['Int']['input']>;
|
|
640
|
+
toh: Scalars['String']['input'];
|
|
641
|
+
};
|
|
642
|
+
/** A published translation work from the 84000 canon */
|
|
643
|
+
export type WorkGlossaryArgs = {
|
|
644
|
+
withAttestations?: InputMaybe<Scalars['Boolean']['input']>;
|
|
645
|
+
};
|
|
646
|
+
/** A published translation work from the 84000 canon */
|
|
647
|
+
export type WorkGlossaryTermsArgs = {
|
|
648
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
649
|
+
direction?: InputMaybe<PaginationDirection>;
|
|
650
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
651
|
+
withAttestations?: InputMaybe<Scalars['Boolean']['input']>;
|
|
652
|
+
};
|
|
653
|
+
/** A published translation work from the 84000 canon */
|
|
654
|
+
export type WorkPassagesArgs = {
|
|
655
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
656
|
+
direction?: InputMaybe<PaginationDirection>;
|
|
657
|
+
filter?: InputMaybe<PassageFilter>;
|
|
658
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
659
|
+
};
|
|
660
|
+
/** Connection type for paginated works */
|
|
661
|
+
export type WorkConnection = {
|
|
662
|
+
__typename?: 'WorkConnection';
|
|
663
|
+
/** List of works in this page */
|
|
664
|
+
items: Array<Work>;
|
|
665
|
+
/** Pagination information */
|
|
666
|
+
pageInfo: PageInfo;
|
|
667
|
+
/** Total count of works matching the query */
|
|
668
|
+
totalCount: Scalars['Int']['output'];
|
|
669
|
+
};
|
|
670
|
+
/** Filter criteria for works query */
|
|
671
|
+
export type WorkFilter = {
|
|
672
|
+
/** Maximum number of source pages (exclusive). Only return works with fewer pages than this value. */
|
|
673
|
+
maxPages?: InputMaybe<Scalars['Int']['input']>;
|
|
674
|
+
};
|
|
675
|
+
export type AlignmentFieldsFragment = {
|
|
676
|
+
__typename?: 'Alignment';
|
|
677
|
+
folioUuid: string;
|
|
678
|
+
toh: string;
|
|
679
|
+
tibetan: string;
|
|
680
|
+
folioNumber: number;
|
|
681
|
+
volumeNumber: number;
|
|
682
|
+
};
|
|
683
|
+
export type AnnotationFieldsFragment = {
|
|
684
|
+
__typename?: 'Annotation';
|
|
685
|
+
uuid: string;
|
|
686
|
+
type: string;
|
|
687
|
+
start: number;
|
|
688
|
+
end: number;
|
|
689
|
+
metadata?: any | null;
|
|
690
|
+
};
|
|
691
|
+
export type LicenseFieldsFragment = {
|
|
692
|
+
__typename?: 'License';
|
|
693
|
+
name?: string | null;
|
|
694
|
+
link?: string | null;
|
|
695
|
+
description?: string | null;
|
|
696
|
+
};
|
|
697
|
+
export type TitlesByLanguageFieldsFragment = {
|
|
698
|
+
__typename?: 'TitlesByLanguage';
|
|
699
|
+
tibetan?: string | null;
|
|
700
|
+
english?: string | null;
|
|
701
|
+
wylie?: string | null;
|
|
702
|
+
sanskrit?: string | null;
|
|
703
|
+
};
|
|
704
|
+
export type ImprintFieldsFragment = {
|
|
705
|
+
__typename?: 'Imprint';
|
|
706
|
+
toh: string;
|
|
707
|
+
section?: string | null;
|
|
708
|
+
version?: string | null;
|
|
709
|
+
restriction?: boolean | null;
|
|
710
|
+
publishYear?: string | null;
|
|
711
|
+
tibetanAuthors?: Array<string> | null;
|
|
712
|
+
isAuthorContested: boolean;
|
|
713
|
+
sourceDescription?: string | null;
|
|
714
|
+
publisherStatement?: string | null;
|
|
715
|
+
tibetanTranslators?: string | null;
|
|
716
|
+
license: ({
|
|
717
|
+
__typename?: 'License';
|
|
718
|
+
} & LicenseFieldsFragment);
|
|
719
|
+
mainTitles?: ({
|
|
720
|
+
__typename?: 'TitlesByLanguage';
|
|
721
|
+
} & TitlesByLanguageFieldsFragment) | null;
|
|
722
|
+
longTitles?: ({
|
|
723
|
+
__typename?: 'TitlesByLanguage';
|
|
724
|
+
} & TitlesByLanguageFieldsFragment) | null;
|
|
725
|
+
};
|
|
726
|
+
export type PassageFieldsFragment = {
|
|
727
|
+
__typename?: 'Passage';
|
|
728
|
+
uuid: string;
|
|
729
|
+
workUuid: string;
|
|
730
|
+
content: string;
|
|
731
|
+
label?: string | null;
|
|
732
|
+
sort: number;
|
|
733
|
+
type: string;
|
|
734
|
+
xmlId?: string | null;
|
|
735
|
+
};
|
|
736
|
+
export type PassageWithAnnotationsFragment = ({
|
|
737
|
+
__typename?: 'Passage';
|
|
738
|
+
annotations: Array<({
|
|
739
|
+
__typename?: 'Annotation';
|
|
740
|
+
} & AnnotationFieldsFragment)>;
|
|
741
|
+
alignments: Array<({
|
|
742
|
+
__typename?: 'Alignment';
|
|
743
|
+
} & AlignmentFieldsFragment)>;
|
|
744
|
+
} & PassageFieldsFragment);
|
|
745
|
+
export type PassageWithJsonFragment = {
|
|
746
|
+
__typename?: 'Passage';
|
|
747
|
+
uuid: string;
|
|
748
|
+
workUuid: string;
|
|
749
|
+
label?: string | null;
|
|
750
|
+
sort: number;
|
|
751
|
+
type: string;
|
|
752
|
+
xmlId?: string | null;
|
|
753
|
+
json?: any | null;
|
|
754
|
+
};
|
|
755
|
+
export type TitleFieldsFragment = {
|
|
756
|
+
__typename?: 'Title';
|
|
757
|
+
uuid: string;
|
|
758
|
+
content: string;
|
|
759
|
+
language: string;
|
|
760
|
+
type: string;
|
|
761
|
+
};
|
|
762
|
+
export type TocEntryFieldsFragment = {
|
|
763
|
+
__typename?: 'TocEntry';
|
|
764
|
+
uuid: string;
|
|
765
|
+
content: string;
|
|
766
|
+
label?: string | null;
|
|
767
|
+
sort: number;
|
|
768
|
+
level: number;
|
|
769
|
+
section: string;
|
|
770
|
+
};
|
|
771
|
+
export type TocEntryNestedFragment = ({
|
|
772
|
+
__typename?: 'TocEntry';
|
|
773
|
+
children: Array<({
|
|
774
|
+
__typename?: 'TocEntry';
|
|
775
|
+
children: Array<({
|
|
776
|
+
__typename?: 'TocEntry';
|
|
777
|
+
children: Array<({
|
|
778
|
+
__typename?: 'TocEntry';
|
|
779
|
+
children: Array<({
|
|
780
|
+
__typename?: 'TocEntry';
|
|
781
|
+
children: Array<({
|
|
782
|
+
__typename?: 'TocEntry';
|
|
783
|
+
} & TocEntryFieldsFragment)>;
|
|
784
|
+
} & TocEntryFieldsFragment)>;
|
|
785
|
+
} & TocEntryFieldsFragment)>;
|
|
786
|
+
} & TocEntryFieldsFragment)>;
|
|
787
|
+
} & TocEntryFieldsFragment)>;
|
|
788
|
+
} & TocEntryFieldsFragment);
|
|
789
|
+
export type TocFieldsFragment = {
|
|
790
|
+
__typename?: 'Toc';
|
|
791
|
+
frontMatter: Array<({
|
|
792
|
+
__typename?: 'TocEntry';
|
|
793
|
+
} & TocEntryNestedFragment)>;
|
|
794
|
+
body: Array<({
|
|
795
|
+
__typename?: 'TocEntry';
|
|
796
|
+
} & TocEntryNestedFragment)>;
|
|
797
|
+
backMatter: Array<({
|
|
798
|
+
__typename?: 'TocEntry';
|
|
799
|
+
} & TocEntryNestedFragment)>;
|
|
800
|
+
};
|
|
801
|
+
export type WorkFieldsFragment = {
|
|
802
|
+
__typename?: 'Work';
|
|
803
|
+
uuid: string;
|
|
804
|
+
title: string;
|
|
805
|
+
toh: Array<string>;
|
|
806
|
+
publicationDate?: string | null;
|
|
807
|
+
publicationVersion: string;
|
|
808
|
+
pages: number;
|
|
809
|
+
restriction: boolean;
|
|
810
|
+
section: string;
|
|
811
|
+
};
|
|
812
|
+
export type GetPassagesQueryVariables = Exact<{
|
|
813
|
+
uuid: Scalars['ID']['input'];
|
|
814
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
815
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
816
|
+
direction?: InputMaybe<PaginationDirection>;
|
|
817
|
+
filter?: InputMaybe<PassageFilter>;
|
|
818
|
+
}>;
|
|
819
|
+
export type GetPassagesQuery = {
|
|
820
|
+
__typename?: 'Query';
|
|
821
|
+
work?: {
|
|
822
|
+
__typename?: 'Work';
|
|
823
|
+
uuid: string;
|
|
824
|
+
passages: {
|
|
825
|
+
__typename?: 'PassageConnection';
|
|
826
|
+
nodes: Array<({
|
|
827
|
+
__typename?: 'Passage';
|
|
828
|
+
} & PassageWithAnnotationsFragment)>;
|
|
829
|
+
pageInfo: {
|
|
830
|
+
__typename?: 'PageInfo';
|
|
831
|
+
nextCursor?: string | null;
|
|
832
|
+
prevCursor?: string | null;
|
|
833
|
+
hasMoreAfter: boolean;
|
|
834
|
+
hasMoreBefore: boolean;
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
} | null;
|
|
838
|
+
};
|
|
839
|
+
export type GetPassagesBasicQueryVariables = Exact<{
|
|
840
|
+
uuid: Scalars['ID']['input'];
|
|
841
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
842
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
843
|
+
direction?: InputMaybe<PaginationDirection>;
|
|
844
|
+
filter?: InputMaybe<PassageFilter>;
|
|
845
|
+
}>;
|
|
846
|
+
export type GetPassagesBasicQuery = {
|
|
847
|
+
__typename?: 'Query';
|
|
848
|
+
work?: {
|
|
849
|
+
__typename?: 'Work';
|
|
850
|
+
uuid: string;
|
|
851
|
+
passages: {
|
|
852
|
+
__typename?: 'PassageConnection';
|
|
853
|
+
nodes: Array<({
|
|
854
|
+
__typename?: 'Passage';
|
|
855
|
+
} & PassageFieldsFragment)>;
|
|
856
|
+
pageInfo: {
|
|
857
|
+
__typename?: 'PageInfo';
|
|
858
|
+
nextCursor?: string | null;
|
|
859
|
+
prevCursor?: string | null;
|
|
860
|
+
hasMoreAfter: boolean;
|
|
861
|
+
hasMoreBefore: boolean;
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
} | null;
|
|
865
|
+
};
|
|
866
|
+
export type GetPassagesWithJsonQueryVariables = Exact<{
|
|
867
|
+
uuid: Scalars['ID']['input'];
|
|
868
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
869
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
870
|
+
direction?: InputMaybe<PaginationDirection>;
|
|
871
|
+
filter?: InputMaybe<PassageFilter>;
|
|
872
|
+
}>;
|
|
873
|
+
export type GetPassagesWithJsonQuery = {
|
|
874
|
+
__typename?: 'Query';
|
|
875
|
+
work?: {
|
|
876
|
+
__typename?: 'Work';
|
|
877
|
+
uuid: string;
|
|
878
|
+
passages: {
|
|
879
|
+
__typename?: 'PassageConnection';
|
|
880
|
+
nodes: Array<({
|
|
881
|
+
__typename?: 'Passage';
|
|
882
|
+
} & PassageWithJsonFragment)>;
|
|
883
|
+
pageInfo: {
|
|
884
|
+
__typename?: 'PageInfo';
|
|
885
|
+
nextCursor?: string | null;
|
|
886
|
+
prevCursor?: string | null;
|
|
887
|
+
hasMoreAfter: boolean;
|
|
888
|
+
hasMoreBefore: boolean;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
} | null;
|
|
892
|
+
};
|
|
893
|
+
export type GetPassagesAroundWithJsonQueryVariables = Exact<{
|
|
894
|
+
uuid: Scalars['ID']['input'];
|
|
895
|
+
cursor: Scalars['String']['input'];
|
|
896
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
897
|
+
filter?: InputMaybe<PassageFilter>;
|
|
898
|
+
}>;
|
|
899
|
+
export type GetPassagesAroundWithJsonQuery = {
|
|
900
|
+
__typename?: 'Query';
|
|
901
|
+
work?: {
|
|
902
|
+
__typename?: 'Work';
|
|
903
|
+
uuid: string;
|
|
904
|
+
passages: {
|
|
905
|
+
__typename?: 'PassageConnection';
|
|
906
|
+
nodes: Array<({
|
|
907
|
+
__typename?: 'Passage';
|
|
908
|
+
} & PassageWithJsonFragment)>;
|
|
909
|
+
pageInfo: {
|
|
910
|
+
__typename?: 'PageInfo';
|
|
911
|
+
nextCursor?: string | null;
|
|
912
|
+
prevCursor?: string | null;
|
|
913
|
+
hasMoreAfter: boolean;
|
|
914
|
+
hasMoreBefore: boolean;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
} | null;
|
|
918
|
+
};
|
|
919
|
+
export type GetPassageQueryVariables = Exact<{
|
|
920
|
+
uuid?: InputMaybe<Scalars['ID']['input']>;
|
|
921
|
+
xmlId?: InputMaybe<Scalars['String']['input']>;
|
|
922
|
+
}>;
|
|
923
|
+
export type GetPassageQuery = {
|
|
924
|
+
__typename?: 'Query';
|
|
925
|
+
passage?: ({
|
|
926
|
+
__typename?: 'Passage';
|
|
927
|
+
} & PassageWithAnnotationsFragment) | null;
|
|
928
|
+
};
|
|
929
|
+
export type GetWorkByUuidQueryVariables = Exact<{
|
|
930
|
+
uuid: Scalars['ID']['input'];
|
|
931
|
+
}>;
|
|
932
|
+
export type GetWorkByUuidQuery = {
|
|
933
|
+
__typename?: 'Query';
|
|
934
|
+
work?: ({
|
|
935
|
+
__typename?: 'Work';
|
|
936
|
+
} & WorkFieldsFragment) | null;
|
|
937
|
+
};
|
|
938
|
+
export type GetWorkByTohQueryVariables = Exact<{
|
|
939
|
+
toh: Scalars['String']['input'];
|
|
940
|
+
}>;
|
|
941
|
+
export type GetWorkByTohQuery = {
|
|
942
|
+
__typename?: 'Query';
|
|
943
|
+
work?: ({
|
|
944
|
+
__typename?: 'Work';
|
|
945
|
+
} & WorkFieldsFragment) | null;
|
|
946
|
+
};
|
|
947
|
+
export type GetWorkWithTitlesQueryVariables = Exact<{
|
|
948
|
+
uuid: Scalars['ID']['input'];
|
|
949
|
+
}>;
|
|
950
|
+
export type GetWorkWithTitlesQuery = {
|
|
951
|
+
__typename?: 'Query';
|
|
952
|
+
work?: ({
|
|
953
|
+
__typename?: 'Work';
|
|
954
|
+
titles: Array<({
|
|
955
|
+
__typename?: 'Title';
|
|
956
|
+
} & TitleFieldsFragment)>;
|
|
957
|
+
} & WorkFieldsFragment) | null;
|
|
958
|
+
};
|
|
959
|
+
export type GetWorkWithImprintQueryVariables = Exact<{
|
|
960
|
+
uuid: Scalars['ID']['input'];
|
|
961
|
+
toh?: InputMaybe<Scalars['String']['input']>;
|
|
962
|
+
}>;
|
|
963
|
+
export type GetWorkWithImprintQuery = {
|
|
964
|
+
__typename?: 'Query';
|
|
965
|
+
work?: ({
|
|
966
|
+
__typename?: 'Work';
|
|
967
|
+
imprint?: ({
|
|
968
|
+
__typename?: 'Imprint';
|
|
969
|
+
} & ImprintFieldsFragment) | null;
|
|
970
|
+
} & WorkFieldsFragment) | null;
|
|
971
|
+
};
|
|
972
|
+
export type GetWorkWithTocQueryVariables = Exact<{
|
|
973
|
+
uuid: Scalars['ID']['input'];
|
|
974
|
+
}>;
|
|
975
|
+
export type GetWorkWithTocQuery = {
|
|
976
|
+
__typename?: 'Query';
|
|
977
|
+
work?: ({
|
|
978
|
+
__typename?: 'Work';
|
|
979
|
+
toc?: ({
|
|
980
|
+
__typename?: 'Toc';
|
|
981
|
+
} & TocFieldsFragment) | null;
|
|
982
|
+
} & WorkFieldsFragment) | null;
|
|
983
|
+
};
|
|
984
|
+
export type GetAllWorksQueryVariables = Exact<{
|
|
985
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
986
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
987
|
+
}>;
|
|
988
|
+
export type GetAllWorksQuery = {
|
|
989
|
+
__typename?: 'Query';
|
|
990
|
+
works: {
|
|
991
|
+
__typename?: 'WorkConnection';
|
|
992
|
+
items: Array<({
|
|
993
|
+
__typename?: 'Work';
|
|
994
|
+
} & WorkFieldsFragment)>;
|
|
995
|
+
pageInfo: {
|
|
996
|
+
__typename?: 'PageInfo';
|
|
997
|
+
nextCursor?: string | null;
|
|
998
|
+
hasMoreAfter: boolean;
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
export type GetWorkUuidsQueryVariables = Exact<{
|
|
1003
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
1004
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1005
|
+
}>;
|
|
1006
|
+
export type GetWorkUuidsQuery = {
|
|
1007
|
+
__typename?: 'Query';
|
|
1008
|
+
works: {
|
|
1009
|
+
__typename?: 'WorkConnection';
|
|
1010
|
+
items: Array<{
|
|
1011
|
+
__typename?: 'Work';
|
|
1012
|
+
uuid: string;
|
|
1013
|
+
}>;
|
|
1014
|
+
pageInfo: {
|
|
1015
|
+
__typename?: 'PageInfo';
|
|
1016
|
+
nextCursor?: string | null;
|
|
1017
|
+
hasMoreAfter: boolean;
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
export declare const LicenseFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1022
|
+
export declare const TitlesByLanguageFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1023
|
+
export declare const ImprintFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1024
|
+
export declare const PassageFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1025
|
+
export declare const AnnotationFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1026
|
+
export declare const AlignmentFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1027
|
+
export declare const PassageWithAnnotationsFragmentDoc: import("graphql").DocumentNode;
|
|
1028
|
+
export declare const PassageWithJsonFragmentDoc: import("graphql").DocumentNode;
|
|
1029
|
+
export declare const TitleFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1030
|
+
export declare const TocEntryFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1031
|
+
export declare const TocEntryNestedFragmentDoc: import("graphql").DocumentNode;
|
|
1032
|
+
export declare const TocFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1033
|
+
export declare const WorkFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
1034
|
+
export declare const GetPassagesDocument: import("graphql").DocumentNode;
|
|
1035
|
+
export declare const GetPassagesBasicDocument: import("graphql").DocumentNode;
|
|
1036
|
+
export declare const GetPassagesWithJsonDocument: import("graphql").DocumentNode;
|
|
1037
|
+
export declare const GetPassagesAroundWithJsonDocument: import("graphql").DocumentNode;
|
|
1038
|
+
export declare const GetPassageDocument: import("graphql").DocumentNode;
|
|
1039
|
+
export declare const GetWorkByUuidDocument: import("graphql").DocumentNode;
|
|
1040
|
+
export declare const GetWorkByTohDocument: import("graphql").DocumentNode;
|
|
1041
|
+
export declare const GetWorkWithTitlesDocument: import("graphql").DocumentNode;
|
|
1042
|
+
export declare const GetWorkWithImprintDocument: import("graphql").DocumentNode;
|
|
1043
|
+
export declare const GetWorkWithTocDocument: import("graphql").DocumentNode;
|
|
1044
|
+
export declare const GetAllWorksDocument: import("graphql").DocumentNode;
|
|
1045
|
+
export declare const GetWorkUuidsDocument: import("graphql").DocumentNode;
|
|
1046
|
+
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
1047
|
+
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
1048
|
+
GetPassages(variables: GetPassagesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPassagesQuery>;
|
|
1049
|
+
GetPassagesBasic(variables: GetPassagesBasicQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPassagesBasicQuery>;
|
|
1050
|
+
GetPassagesWithJson(variables: GetPassagesWithJsonQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPassagesWithJsonQuery>;
|
|
1051
|
+
GetPassagesAroundWithJson(variables: GetPassagesAroundWithJsonQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPassagesAroundWithJsonQuery>;
|
|
1052
|
+
GetPassage(variables?: GetPassageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPassageQuery>;
|
|
1053
|
+
GetWorkByUuid(variables: GetWorkByUuidQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkByUuidQuery>;
|
|
1054
|
+
GetWorkByToh(variables: GetWorkByTohQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkByTohQuery>;
|
|
1055
|
+
GetWorkWithTitles(variables: GetWorkWithTitlesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkWithTitlesQuery>;
|
|
1056
|
+
GetWorkWithImprint(variables: GetWorkWithImprintQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkWithImprintQuery>;
|
|
1057
|
+
GetWorkWithToc(variables: GetWorkWithTocQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkWithTocQuery>;
|
|
1058
|
+
GetAllWorks(variables?: GetAllWorksQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAllWorksQuery>;
|
|
1059
|
+
GetWorkUuids(variables?: GetWorkUuidsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetWorkUuidsQuery>;
|
|
1060
|
+
};
|
|
1061
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
1062
|
+
export {};
|