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/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
  *