generaltranslation 7.6.4 → 7.7.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/dist/index.d.ts CHANGED
@@ -324,6 +324,19 @@ type EnqueueOptions = {
324
324
  timeout?: number;
325
325
  };
326
326
 
327
+ type SubmitUserEditDiff = {
328
+ fileName: string;
329
+ locale: string;
330
+ diff: string;
331
+ versionId?: string;
332
+ fileId?: string;
333
+ localContent?: string;
334
+ };
335
+ type SubmitUserEditDiffsPayload = {
336
+ projectId?: string;
337
+ diffs: SubmitUserEditDiff[];
338
+ };
339
+
327
340
  type CustomRegionMapping = {
328
341
  [region: string]: {
329
342
  name?: string;
@@ -525,6 +538,13 @@ declare class GT {
525
538
  * @returns {Promise<EnqueueFilesResult>} Result containing job IDs, queue status, and processing information
526
539
  */
527
540
  enqueueFiles(files: FileUploadRef[], options: EnqueueOptions): Promise<EnqueueFilesResult>;
541
+ /**
542
+ * Submits user edit diffs for existing translations so future generations preserve user intent.
543
+ *
544
+ * @param {SubmitUserEditDiffsPayload} payload - Project-scoped diff payload.
545
+ * @returns {Promise<void>} Resolves when submission succeeds.
546
+ */
547
+ submitUserEditDiffs(payload: SubmitUserEditDiffsPayload): Promise<void>;
528
548
  /**
529
549
  * Checks the translation status of files.
530
550
  *