@docmana/sdk 0.47.0 → 0.48.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/CHANGELOG.md +6 -0
- package/README.md +32 -0
- package/dist/cli.mjs +55 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +55 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -1
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +17 -0
- package/package.json +1 -1
package/dist/reviews.d.ts
CHANGED
|
@@ -86,6 +86,21 @@ export interface DocumentPreviewManifest {
|
|
|
86
86
|
height?: number;
|
|
87
87
|
}>;
|
|
88
88
|
retryAfterMs: number;
|
|
89
|
+
requestedLanguage?: string;
|
|
90
|
+
servedLanguage?: string | null;
|
|
91
|
+
variant?: DocumentVariant;
|
|
92
|
+
fallback?: boolean;
|
|
93
|
+
translationState?: DocumentTranslationState;
|
|
94
|
+
}
|
|
95
|
+
export type DocumentVariant = "original" | "translation";
|
|
96
|
+
export type DocumentTranslationState = "absent" | "preparing" | "ready" | "failed" | "unsupported";
|
|
97
|
+
export interface DocumentTranslation {
|
|
98
|
+
status: 200 | 202;
|
|
99
|
+
requestedLanguage: string;
|
|
100
|
+
servedLanguage: string | null;
|
|
101
|
+
variant: DocumentVariant;
|
|
102
|
+
fallback: boolean;
|
|
103
|
+
translationState: DocumentTranslationState;
|
|
89
104
|
}
|
|
90
105
|
export interface ReviewItem {
|
|
91
106
|
itemId: string;
|
|
@@ -226,6 +241,7 @@ export interface ReviewReadOptions {
|
|
|
226
241
|
export interface ReviewDocumentOptions extends ReviewReadOptions {
|
|
227
242
|
version?: string;
|
|
228
243
|
size?: "full" | "thumb";
|
|
244
|
+
language?: string;
|
|
229
245
|
range?: string;
|
|
230
246
|
ifRange?: string;
|
|
231
247
|
ifNoneMatch?: string;
|
|
@@ -275,4 +291,5 @@ export declare class Reviews {
|
|
|
275
291
|
document(executionId: string, docKey: string, resource: "content" | "locations" | "preview" | {
|
|
276
292
|
page: number;
|
|
277
293
|
}, options: ReviewDocumentOptions): Promise<Response>;
|
|
294
|
+
requestDocumentTranslation(executionId: string, docKey: string, language: string, options: ReviewReadOptions): Promise<DocumentTranslation>;
|
|
278
295
|
}
|