generaltranslation 7.6.5 → 7.7.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/CHANGELOG.md +12 -0
 - package/dist/index.cjs.min.cjs +1 -1
 - package/dist/index.cjs.min.cjs.map +1 -1
 - package/dist/index.d.ts +21 -0
 - package/dist/index.esm.min.mjs +3 -3
 - package/dist/index.esm.min.mjs.map +1 -1
 - package/dist/translate/submitUserEditDiffs.d.ts +12 -0
 - package/dist/types-dir/downloadFileBatch.d.ts +2 -0
 - package/dist/types.d.ts +1 -0
 - package/package.json +1 -1
 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -191,6 +191,7 @@ type File = { 
     | 
|
| 
       191 
191 
     | 
    
         
             
                fileName: string;
         
     | 
| 
       192 
192 
     | 
    
         
             
                data: string;
         
     | 
| 
       193 
193 
     | 
    
         
             
                metadata: any;
         
     | 
| 
      
 194 
     | 
    
         
            +
                fileFormat: FileFormat;
         
     | 
| 
       194 
195 
     | 
    
         
             
            };
         
     | 
| 
       195 
196 
     | 
    
         
             
            type DownloadFileBatchResult = {
         
     | 
| 
       196 
197 
     | 
    
         
             
                files: File[];
         
     | 
| 
         @@ -324,6 +325,19 @@ type EnqueueOptions = { 
     | 
|
| 
       324 
325 
     | 
    
         
             
                timeout?: number;
         
     | 
| 
       325 
326 
     | 
    
         
             
            };
         
     | 
| 
       326 
327 
     | 
    
         | 
| 
      
 328 
     | 
    
         
            +
            type SubmitUserEditDiff = {
         
     | 
| 
      
 329 
     | 
    
         
            +
                fileName: string;
         
     | 
| 
      
 330 
     | 
    
         
            +
                locale: string;
         
     | 
| 
      
 331 
     | 
    
         
            +
                diff: string;
         
     | 
| 
      
 332 
     | 
    
         
            +
                versionId?: string;
         
     | 
| 
      
 333 
     | 
    
         
            +
                fileId?: string;
         
     | 
| 
      
 334 
     | 
    
         
            +
                localContent?: string;
         
     | 
| 
      
 335 
     | 
    
         
            +
            };
         
     | 
| 
      
 336 
     | 
    
         
            +
            type SubmitUserEditDiffsPayload = {
         
     | 
| 
      
 337 
     | 
    
         
            +
                projectId?: string;
         
     | 
| 
      
 338 
     | 
    
         
            +
                diffs: SubmitUserEditDiff[];
         
     | 
| 
      
 339 
     | 
    
         
            +
            };
         
     | 
| 
      
 340 
     | 
    
         
            +
             
     | 
| 
       327 
341 
     | 
    
         
             
            type CustomRegionMapping = {
         
     | 
| 
       328 
342 
     | 
    
         
             
                [region: string]: {
         
     | 
| 
       329 
343 
     | 
    
         
             
                    name?: string;
         
     | 
| 
         @@ -525,6 +539,13 @@ declare class GT { 
     | 
|
| 
       525 
539 
     | 
    
         
             
                 * @returns {Promise<EnqueueFilesResult>} Result containing job IDs, queue status, and processing information
         
     | 
| 
       526 
540 
     | 
    
         
             
                 */
         
     | 
| 
       527 
541 
     | 
    
         
             
                enqueueFiles(files: FileUploadRef[], options: EnqueueOptions): Promise<EnqueueFilesResult>;
         
     | 
| 
      
 542 
     | 
    
         
            +
                /**
         
     | 
| 
      
 543 
     | 
    
         
            +
                 * Submits user edit diffs for existing translations so future generations preserve user intent.
         
     | 
| 
      
 544 
     | 
    
         
            +
                 *
         
     | 
| 
      
 545 
     | 
    
         
            +
                 * @param {SubmitUserEditDiffsPayload} payload - Project-scoped diff payload.
         
     | 
| 
      
 546 
     | 
    
         
            +
                 * @returns {Promise<void>} Resolves when submission succeeds.
         
     | 
| 
      
 547 
     | 
    
         
            +
                 */
         
     | 
| 
      
 548 
     | 
    
         
            +
                submitUserEditDiffs(payload: SubmitUserEditDiffsPayload): Promise<void>;
         
     | 
| 
       528 
549 
     | 
    
         
             
                /**
         
     | 
| 
       529 
550 
     | 
    
         
             
                 * Checks the translation status of files.
         
     | 
| 
       530 
551 
     | 
    
         
             
                 *
         
     |