@hira-core/sdk 1.0.14 → 1.0.15

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
@@ -417,7 +417,17 @@ interface IExcelStorageConfig<TProfileInputKeys extends string = string, TOutput
417
417
  declare class ExcelStorage<TProfileInputKeys extends string = string, TOutputKeys extends string = string> {
418
418
  private readonly config;
419
419
  private readonly callerDir;
420
+ /**
421
+ * Per-file mutex — serialize concurrent writes to avoid "Corrupted zip" errors.
422
+ * Key = absolute file path, Value = promise chain for that file.
423
+ */
424
+ private static fileLocks;
420
425
  constructor(config: IExcelStorageConfig<TProfileInputKeys, TOutputKeys>, callerDir?: string);
426
+ /**
427
+ * Acquire lock cho file — đảm bảo chỉ 1 write tại 1 thời điểm.
428
+ * Returns release function.
429
+ */
430
+ private static acquireLock;
421
431
  /**
422
432
  * Đọc Excel inputFile → trả về IProfileSetting[].
423
433
  * Mỗi row = 1 profile, profileName lấy từ cột profileNameColumn,