generaltranslation 7.7.1 → 7.7.3

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
@@ -300,6 +300,12 @@ type FormatVariables = Record<string, string | number | boolean | null | undefin
300
300
  type SetupProjectResult = {
301
301
  setupJobId: string;
302
302
  status: 'queued';
303
+ } | {
304
+ status: 'completed';
305
+ };
306
+ type SetupProjectOptions = {
307
+ locales?: string[];
308
+ timeoutMs?: number;
303
309
  };
304
310
 
305
311
  type SetupJobStatus = 'queued' | 'processing' | 'completed' | 'failed';
@@ -500,10 +506,10 @@ declare class GT {
500
506
  * for processing and will generate a project setup based on the source files.
501
507
  *
502
508
  * @param {FileUploadRef[]} files - Array of file references containing IDs of previously uploaded source files
503
- * @param {number} [timeoutMs] - Optional timeout in milliseconds for the API request
509
+ * @param {SetupProjectOptions} [options] - Optional settings for target locales and timeout
504
510
  * @returns {Promise<SetupProjectResult>} Object containing the jobId and status
505
511
  */
506
- setupProject(files: FileUploadRef[], timeoutMs?: number): Promise<SetupProjectResult>;
512
+ setupProject(files: FileUploadRef[], options?: SetupProjectOptions): Promise<SetupProjectResult>;
507
513
  /**
508
514
  * Checks the current status of a project setup job by its unique identifier.
509
515
  *