@transcend-io/cli 10.2.0 → 10.2.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.
Files changed (128) hide show
  1. package/dist/{app-C1m4rExX.mjs → app-DLzaZHc8.mjs} +16 -16
  2. package/dist/{app-C1m4rExX.mjs.map → app-DLzaZHc8.mjs.map} +1 -1
  3. package/dist/{approvePrivacyRequests-BIHcACAj.mjs → approvePrivacyRequests-BlUcYXpH.mjs} +2 -2
  4. package/dist/{approvePrivacyRequests-BIHcACAj.mjs.map → approvePrivacyRequests-BlUcYXpH.mjs.map} +1 -1
  5. package/dist/bin/bash-complete.mjs +1 -1
  6. package/dist/bin/cli.mjs +1 -1
  7. package/dist/bin/deprecated-command.mjs +1 -1
  8. package/dist/{buildXdiSyncEndpoint-CBbcir-p.mjs → buildXdiSyncEndpoint-D5GxPH6o.mjs} +2 -2
  9. package/dist/{buildXdiSyncEndpoint-CBbcir-p.mjs.map → buildXdiSyncEndpoint-D5GxPH6o.mjs.map} +1 -1
  10. package/dist/{bulkRestartRequests-ByH7TjH2.mjs → bulkRestartRequests-DILDBdc1.mjs} +2 -2
  11. package/dist/{bulkRestartRequests-ByH7TjH2.mjs.map → bulkRestartRequests-DILDBdc1.mjs.map} +1 -1
  12. package/dist/{bulkRetryEnrichers-DuYXD-64.mjs → bulkRetryEnrichers-CjSz1472.mjs} +2 -2
  13. package/dist/{bulkRetryEnrichers-DuYXD-64.mjs.map → bulkRetryEnrichers-CjSz1472.mjs.map} +1 -1
  14. package/dist/{cancelPrivacyRequests-DMgQOffA.mjs → cancelPrivacyRequests-BWJZmZVY.mjs} +2 -2
  15. package/dist/{cancelPrivacyRequests-DMgQOffA.mjs.map → cancelPrivacyRequests-BWJZmZVY.mjs.map} +1 -1
  16. package/dist/{command-DnoHX-eW.mjs → command-BMa3UWax.mjs} +2 -2
  17. package/dist/{command-DnoHX-eW.mjs.map → command-BMa3UWax.mjs.map} +1 -1
  18. package/dist/{constants-muOBBQA_.mjs → constants-TpID7AXE.mjs} +2 -2
  19. package/dist/{constants-muOBBQA_.mjs.map → constants-TpID7AXE.mjs.map} +1 -1
  20. package/dist/{createExtraKeyHandler-srtG2U7q.mjs → createExtraKeyHandler-BO4lu0HO.mjs} +2 -2
  21. package/dist/{createExtraKeyHandler-srtG2U7q.mjs.map → createExtraKeyHandler-BO4lu0HO.mjs.map} +1 -1
  22. package/dist/{downloadPrivacyRequestFiles-kKhGnFmx.mjs → downloadPrivacyRequestFiles-8DtRUNXp.mjs} +2 -2
  23. package/dist/{downloadPrivacyRequestFiles-kKhGnFmx.mjs.map → downloadPrivacyRequestFiles-8DtRUNXp.mjs.map} +1 -1
  24. package/dist/{generateCrossAccountApiKeys-C7yH3Rbi.mjs → generateCrossAccountApiKeys-D6hg9146.mjs} +2 -2
  25. package/dist/{generateCrossAccountApiKeys-C7yH3Rbi.mjs.map → generateCrossAccountApiKeys-D6hg9146.mjs.map} +1 -1
  26. package/dist/{impl-DUdbbIpf.mjs → impl--VlanXjT.mjs} +2 -2
  27. package/dist/{impl-DUdbbIpf.mjs.map → impl--VlanXjT.mjs.map} +1 -1
  28. package/dist/{impl-B62XN4tV.mjs → impl-AEjPyfhu.mjs} +2 -2
  29. package/dist/{impl-B62XN4tV.mjs.map → impl-AEjPyfhu.mjs.map} +1 -1
  30. package/dist/{impl-DvAwxl6Z.mjs → impl-BC17WMY4.mjs} +2 -2
  31. package/dist/{impl-DvAwxl6Z.mjs.map → impl-BC17WMY4.mjs.map} +1 -1
  32. package/dist/{impl-wcRtA0L3.mjs → impl-BECek1in.mjs} +2 -2
  33. package/dist/{impl-wcRtA0L3.mjs.map → impl-BECek1in.mjs.map} +1 -1
  34. package/dist/{impl-iteb85IZ.mjs → impl-BKvcmB7W.mjs} +2 -2
  35. package/dist/{impl-iteb85IZ.mjs.map → impl-BKvcmB7W.mjs.map} +1 -1
  36. package/dist/{impl-i-vquwbD.mjs → impl-BNDNzc2I.mjs} +2 -2
  37. package/dist/{impl-i-vquwbD.mjs.map → impl-BNDNzc2I.mjs.map} +1 -1
  38. package/dist/{impl-D41c_KGj.mjs → impl-BTZOd3VN.mjs} +2 -2
  39. package/dist/{impl-D41c_KGj.mjs.map → impl-BTZOd3VN.mjs.map} +1 -1
  40. package/dist/{impl-D1DmW5-P.mjs → impl-BXb07jBU.mjs} +2 -2
  41. package/dist/{impl-D1DmW5-P.mjs.map → impl-BXb07jBU.mjs.map} +1 -1
  42. package/dist/{impl-BwrEi3s7.mjs → impl-BaHZqboi.mjs} +2 -2
  43. package/dist/{impl-BwrEi3s7.mjs.map → impl-BaHZqboi.mjs.map} +1 -1
  44. package/dist/{impl-DHOh4ypd.mjs → impl-BhnojAfL.mjs} +2 -2
  45. package/dist/{impl-DHOh4ypd.mjs.map → impl-BhnojAfL.mjs.map} +1 -1
  46. package/dist/{impl-C4AI1Fsj.mjs → impl-BsecIND0.mjs} +2 -2
  47. package/dist/{impl-C4AI1Fsj.mjs.map → impl-BsecIND0.mjs.map} +1 -1
  48. package/dist/{impl-BYf4MpWP.mjs → impl-BtIsgTGn.mjs} +2 -2
  49. package/dist/{impl-BYf4MpWP.mjs.map → impl-BtIsgTGn.mjs.map} +1 -1
  50. package/dist/{impl-B9BsXBxS.mjs → impl-BuvbXmXj.mjs} +2 -2
  51. package/dist/{impl-B9BsXBxS.mjs.map → impl-BuvbXmXj.mjs.map} +1 -1
  52. package/dist/{impl-BaC9iEO_.mjs → impl-C71CkarV.mjs} +2 -2
  53. package/dist/{impl-BaC9iEO_.mjs.map → impl-C71CkarV.mjs.map} +1 -1
  54. package/dist/{impl-BhDS0QIt.mjs → impl-CIYSnaMG.mjs} +2 -2
  55. package/dist/{impl-BhDS0QIt.mjs.map → impl-CIYSnaMG.mjs.map} +1 -1
  56. package/dist/{impl-aGDJJgGc.mjs → impl-CR6tW9Jz.mjs} +2 -2
  57. package/dist/{impl-aGDJJgGc.mjs.map → impl-CR6tW9Jz.mjs.map} +1 -1
  58. package/dist/{impl-Dl4RcPKp.mjs → impl-CScy-GrG.mjs} +2 -2
  59. package/dist/{impl-Dl4RcPKp.mjs.map → impl-CScy-GrG.mjs.map} +1 -1
  60. package/dist/{impl-tYtVXUz2.mjs → impl-CYS38cQM.mjs} +2 -2
  61. package/dist/{impl-tYtVXUz2.mjs.map → impl-CYS38cQM.mjs.map} +1 -1
  62. package/dist/{impl-GRdcDZQ4.mjs → impl-CxwEMQhw.mjs} +2 -2
  63. package/dist/{impl-GRdcDZQ4.mjs.map → impl-CxwEMQhw.mjs.map} +1 -1
  64. package/dist/{impl-DJg0Ibxs.mjs → impl-DAkBsgQN.mjs} +2 -2
  65. package/dist/{impl-DJg0Ibxs.mjs.map → impl-DAkBsgQN.mjs.map} +1 -1
  66. package/dist/{impl-3sDUDXru.mjs → impl-DAu079Yl.mjs} +2 -2
  67. package/dist/{impl-3sDUDXru.mjs.map → impl-DAu079Yl.mjs.map} +1 -1
  68. package/dist/{impl-CCAeEeMR.mjs → impl-DTaM3UE3.mjs} +2 -2
  69. package/dist/{impl-CCAeEeMR.mjs.map → impl-DTaM3UE3.mjs.map} +1 -1
  70. package/dist/{impl-DXaA3sMt.mjs → impl-DWiE5RsV.mjs} +2 -2
  71. package/dist/{impl-DXaA3sMt.mjs.map → impl-DWiE5RsV.mjs.map} +1 -1
  72. package/dist/{impl-84ylH4aO.mjs → impl-DZicly6r.mjs} +2 -2
  73. package/dist/{impl-84ylH4aO.mjs.map → impl-DZicly6r.mjs.map} +1 -1
  74. package/dist/{impl-Cmj1Vi5Q.mjs → impl-DbGCApR_.mjs} +2 -2
  75. package/dist/{impl-Cmj1Vi5Q.mjs.map → impl-DbGCApR_.mjs.map} +1 -1
  76. package/dist/{impl-Yq33AV90.mjs → impl-DgG4lZ9T.mjs} +2 -2
  77. package/dist/{impl-Yq33AV90.mjs.map → impl-DgG4lZ9T.mjs.map} +1 -1
  78. package/dist/{impl-CUdo0Jyh.mjs → impl-Dik9I7Bz.mjs} +2 -2
  79. package/dist/{impl-CUdo0Jyh.mjs.map → impl-Dik9I7Bz.mjs.map} +1 -1
  80. package/dist/{impl-DEpCg7UP.mjs → impl-Djlx-Dqj.mjs} +2 -2
  81. package/dist/{impl-DEpCg7UP.mjs.map → impl-Djlx-Dqj.mjs.map} +1 -1
  82. package/dist/{impl-CIfRN0ux.mjs → impl-DmQAAT-u.mjs} +2 -2
  83. package/dist/{impl-CIfRN0ux.mjs.map → impl-DmQAAT-u.mjs.map} +1 -1
  84. package/dist/{impl-BNqmxytJ.mjs → impl-DpuPyy-w.mjs} +2 -2
  85. package/dist/{impl-BNqmxytJ.mjs.map → impl-DpuPyy-w.mjs.map} +1 -1
  86. package/dist/{impl-gitQPEo3.mjs → impl-Du8quB1O.mjs} +2 -2
  87. package/dist/{impl-gitQPEo3.mjs.map → impl-Du8quB1O.mjs.map} +1 -1
  88. package/dist/{impl-CFI5y5U-.mjs → impl-OxHej0UO.mjs} +2 -2
  89. package/dist/{impl-CFI5y5U-.mjs.map → impl-OxHej0UO.mjs.map} +1 -1
  90. package/dist/{impl-UMb9wjra.mjs → impl-c7VvcNpZ.mjs} +2 -2
  91. package/dist/{impl-UMb9wjra.mjs.map → impl-c7VvcNpZ.mjs.map} +1 -1
  92. package/dist/index.d.mts +53 -53
  93. package/dist/index.mjs +1 -1
  94. package/dist/{markRequestDataSiloIdsCompleted-BaVxVfDe.mjs → markRequestDataSiloIdsCompleted-sDBo1vUD.mjs} +2 -2
  95. package/dist/{markRequestDataSiloIdsCompleted-BaVxVfDe.mjs.map → markRequestDataSiloIdsCompleted-sDBo1vUD.mjs.map} +1 -1
  96. package/dist/{markSilentPrivacyRequests-miaumnaC.mjs → markSilentPrivacyRequests-Cmn1fxHI.mjs} +2 -2
  97. package/dist/{markSilentPrivacyRequests-miaumnaC.mjs.map → markSilentPrivacyRequests-Cmn1fxHI.mjs.map} +1 -1
  98. package/dist/{notifyPrivacyRequestsAdditionalTime-BUdhSCNL.mjs → notifyPrivacyRequestsAdditionalTime-CmhFE4b0.mjs} +2 -2
  99. package/dist/{notifyPrivacyRequestsAdditionalTime-BUdhSCNL.mjs.map → notifyPrivacyRequestsAdditionalTime-CmhFE4b0.mjs.map} +1 -1
  100. package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-BW5Vws25.mjs → pullChunkedCustomSiloOutstandingIdentifiers-QRET4M0x.mjs} +2 -2
  101. package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-BW5Vws25.mjs.map → pullChunkedCustomSiloOutstandingIdentifiers-QRET4M0x.mjs.map} +1 -1
  102. package/dist/{pullManualEnrichmentIdentifiersToCsv-kpGy9H7T.mjs → pullManualEnrichmentIdentifiersToCsv-8I6PgBQc.mjs} +2 -2
  103. package/dist/{pullManualEnrichmentIdentifiersToCsv-kpGy9H7T.mjs.map → pullManualEnrichmentIdentifiersToCsv-8I6PgBQc.mjs.map} +1 -1
  104. package/dist/{pushCronIdentifiersFromCsv-BZRA1n_8.mjs → pushCronIdentifiersFromCsv-CBb2FvPD.mjs} +2 -2
  105. package/dist/{pushCronIdentifiersFromCsv-BZRA1n_8.mjs.map → pushCronIdentifiersFromCsv-CBb2FvPD.mjs.map} +1 -1
  106. package/dist/{pushManualEnrichmentIdentifiersFromCsv-DXqf8WWy.mjs → pushManualEnrichmentIdentifiersFromCsv-DYQq7hsN.mjs} +2 -2
  107. package/dist/{pushManualEnrichmentIdentifiersFromCsv-DXqf8WWy.mjs.map → pushManualEnrichmentIdentifiersFromCsv-DYQq7hsN.mjs.map} +1 -1
  108. package/dist/{removeUnverifiedRequestIdentifiers-BxWSsJit.mjs → removeUnverifiedRequestIdentifiers-VCbL2BXD.mjs} +2 -2
  109. package/dist/{removeUnverifiedRequestIdentifiers-BxWSsJit.mjs.map → removeUnverifiedRequestIdentifiers-VCbL2BXD.mjs.map} +1 -1
  110. package/dist/{retryRequestDataSilos-BVrJz_GC.mjs → retryRequestDataSilos-BCe-WGdL.mjs} +2 -2
  111. package/dist/{retryRequestDataSilos-BVrJz_GC.mjs.map → retryRequestDataSilos-BCe-WGdL.mjs.map} +1 -1
  112. package/dist/{skipPreflightJobs-CYuoMG3z.mjs → skipPreflightJobs-Bc0--Bvs.mjs} +2 -2
  113. package/dist/{skipPreflightJobs-CYuoMG3z.mjs.map → skipPreflightJobs-Bc0--Bvs.mjs.map} +1 -1
  114. package/dist/{skipRequestDataSilos-BNspAsjR.mjs → skipRequestDataSilos-BHbAQkpb.mjs} +2 -2
  115. package/dist/{skipRequestDataSilos-BNspAsjR.mjs.map → skipRequestDataSilos-BHbAQkpb.mjs.map} +1 -1
  116. package/dist/{streamPrivacyRequestsToCsv-PoyTmQd6.mjs → streamPrivacyRequestsToCsv-eB3gNhol.mjs} +2 -2
  117. package/dist/{streamPrivacyRequestsToCsv-PoyTmQd6.mjs.map → streamPrivacyRequestsToCsv-eB3gNhol.mjs.map} +1 -1
  118. package/dist/{updateConsentManagerVersionToLatest-lAw3E1wm.mjs → updateConsentManagerVersionToLatest-D6i1Xh6o.mjs} +2 -2
  119. package/dist/{updateConsentManagerVersionToLatest-lAw3E1wm.mjs.map → updateConsentManagerVersionToLatest-D6i1Xh6o.mjs.map} +1 -1
  120. package/dist/{uploadConsents-BzmWrNc1.mjs → uploadConsents-BTM49EbZ.mjs} +2 -2
  121. package/dist/{uploadConsents-BzmWrNc1.mjs.map → uploadConsents-BTM49EbZ.mjs.map} +1 -1
  122. package/dist/{uploadCookiesFromCsv-TH10UBgw.mjs → uploadCookiesFromCsv-DoC9rtEF.mjs} +2 -2
  123. package/dist/{uploadCookiesFromCsv-TH10UBgw.mjs.map → uploadCookiesFromCsv-DoC9rtEF.mjs.map} +1 -1
  124. package/dist/{uploadDataFlowsFromCsv-DUSFCae9.mjs → uploadDataFlowsFromCsv-DL1-cAit.mjs} +2 -2
  125. package/dist/{uploadDataFlowsFromCsv-DUSFCae9.mjs.map → uploadDataFlowsFromCsv-DL1-cAit.mjs.map} +1 -1
  126. package/dist/{uploadPrivacyRequestsFromCsv-sKSFfE6q.mjs → uploadPrivacyRequestsFromCsv-wXm4H4FH.mjs} +2 -2
  127. package/dist/{uploadPrivacyRequestsFromCsv-sKSFfE6q.mjs.map → uploadPrivacyRequestsFromCsv-wXm4H4FH.mjs.map} +1 -1
  128. package/package.json +6 -6
package/dist/index.d.mts CHANGED
@@ -5656,6 +5656,8 @@ type EnricherInput = t.TypeOf<typeof EnricherInput>;
5656
5656
  declare const ProcessingPurposePreviewInput: t.IntersectionC<[t.TypeC<{
5657
5657
  /** The parent purpose */purpose: t.KeyofC<{
5658
5658
  HR: unknown;
5659
+ OTHER: unknown;
5660
+ UNSPECIFIED: unknown;
5659
5661
  ESSENTIAL: unknown;
5660
5662
  ADDITIONAL_FUNCTIONALITY: unknown;
5661
5663
  ADVERTISING: unknown;
@@ -5666,8 +5668,6 @@ declare const ProcessingPurposePreviewInput: t.IntersectionC<[t.TypeC<{
5666
5668
  LEGAL: unknown;
5667
5669
  TRANSFER: unknown;
5668
5670
  SALE: unknown;
5669
- OTHER: unknown;
5670
- UNSPECIFIED: unknown;
5671
5671
  }>;
5672
5672
  }>, t.PartialC<{
5673
5673
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -5680,8 +5680,6 @@ type ProcessingPurposePreviewInput = t.TypeOf<typeof ProcessingPurposePreviewInp
5680
5680
  declare const DataCategoryPreviewInput: t.IntersectionC<[t.TypeC<{
5681
5681
  /** The parent category */category: t.KeyofC<{
5682
5682
  ID: unknown;
5683
- OTHER: unknown;
5684
- UNSPECIFIED: unknown;
5685
5683
  FINANCIAL: unknown;
5686
5684
  HEALTH: unknown;
5687
5685
  CONTACT: unknown;
@@ -5694,6 +5692,8 @@ declare const DataCategoryPreviewInput: t.IntersectionC<[t.TypeC<{
5694
5692
  TRACKING: unknown;
5695
5693
  DEVICE: unknown;
5696
5694
  SURVEY: unknown;
5695
+ OTHER: unknown;
5696
+ UNSPECIFIED: unknown;
5697
5697
  NOT_PERSONAL_DATA: unknown;
5698
5698
  INTEGRATION_IDENTIFIER: unknown;
5699
5699
  }>;
@@ -5709,8 +5709,6 @@ declare const DataCategoryGuessInput: t.IntersectionC<[t.TypeC<{
5709
5709
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
5710
5710
  /** The parent category */category: t.KeyofC<{
5711
5711
  ID: unknown;
5712
- OTHER: unknown;
5713
- UNSPECIFIED: unknown;
5714
5712
  FINANCIAL: unknown;
5715
5713
  HEALTH: unknown;
5716
5714
  CONTACT: unknown;
@@ -5723,6 +5721,8 @@ declare const DataCategoryGuessInput: t.IntersectionC<[t.TypeC<{
5723
5721
  TRACKING: unknown;
5724
5722
  DEVICE: unknown;
5725
5723
  SURVEY: unknown;
5724
+ OTHER: unknown;
5725
+ UNSPECIFIED: unknown;
5726
5726
  NOT_PERSONAL_DATA: unknown;
5727
5727
  INTEGRATION_IDENTIFIER: unknown;
5728
5728
  }>;
@@ -5747,8 +5747,6 @@ declare const DataCategoryRecommendationInput: t.IntersectionC<[t.TypeC<{
5747
5747
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
5748
5748
  /** The parent category */category: t.KeyofC<{
5749
5749
  ID: unknown;
5750
- OTHER: unknown;
5751
- UNSPECIFIED: unknown;
5752
5750
  FINANCIAL: unknown;
5753
5751
  HEALTH: unknown;
5754
5752
  CONTACT: unknown;
@@ -5761,6 +5759,8 @@ declare const DataCategoryRecommendationInput: t.IntersectionC<[t.TypeC<{
5761
5759
  TRACKING: unknown;
5762
5760
  DEVICE: unknown;
5763
5761
  SURVEY: unknown;
5762
+ OTHER: unknown;
5763
+ UNSPECIFIED: unknown;
5764
5764
  NOT_PERSONAL_DATA: unknown;
5765
5765
  INTEGRATION_IDENTIFIER: unknown;
5766
5766
  }>;
@@ -11355,8 +11355,6 @@ declare const DataCategoryInput: t.IntersectionC<[t.TypeC<{
11355
11355
  /** Name of data category */name: t.StringC; /** Type of data category */
11356
11356
  category: t.KeyofC<{
11357
11357
  ID: unknown;
11358
- OTHER: unknown;
11359
- UNSPECIFIED: unknown;
11360
11358
  FINANCIAL: unknown;
11361
11359
  HEALTH: unknown;
11362
11360
  CONTACT: unknown;
@@ -11369,6 +11367,8 @@ declare const DataCategoryInput: t.IntersectionC<[t.TypeC<{
11369
11367
  TRACKING: unknown;
11370
11368
  DEVICE: unknown;
11371
11369
  SURVEY: unknown;
11370
+ OTHER: unknown;
11371
+ UNSPECIFIED: unknown;
11372
11372
  NOT_PERSONAL_DATA: unknown;
11373
11373
  INTEGRATION_IDENTIFIER: unknown;
11374
11374
  }>;
@@ -11407,6 +11407,8 @@ declare const ProcessingPurposeInput: t.IntersectionC<[t.TypeC<{
11407
11407
  /** Name of processing purpose */name: t.StringC; /** Type of processing purpose */
11408
11408
  purpose: t.KeyofC<{
11409
11409
  HR: unknown;
11410
+ OTHER: unknown;
11411
+ UNSPECIFIED: unknown;
11410
11412
  ESSENTIAL: unknown;
11411
11413
  ADDITIONAL_FUNCTIONALITY: unknown;
11412
11414
  ADVERTISING: unknown;
@@ -11417,8 +11419,6 @@ declare const ProcessingPurposeInput: t.IntersectionC<[t.TypeC<{
11417
11419
  LEGAL: unknown;
11418
11420
  TRANSFER: unknown;
11419
11421
  SALE: unknown;
11420
- OTHER: unknown;
11421
- UNSPECIFIED: unknown;
11422
11422
  }>;
11423
11423
  }>, t.PartialC<{
11424
11424
  /** Description of processing purpose */description: t.StringC;
@@ -11498,6 +11498,8 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11498
11498
  purposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
11499
11499
  /** The parent purpose */purpose: t.KeyofC<{
11500
11500
  HR: unknown;
11501
+ OTHER: unknown;
11502
+ UNSPECIFIED: unknown;
11501
11503
  ESSENTIAL: unknown;
11502
11504
  ADDITIONAL_FUNCTIONALITY: unknown;
11503
11505
  ADVERTISING: unknown;
@@ -11508,8 +11510,6 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11508
11510
  LEGAL: unknown;
11509
11511
  TRANSFER: unknown;
11510
11512
  SALE: unknown;
11511
- OTHER: unknown;
11512
- UNSPECIFIED: unknown;
11513
11513
  }>;
11514
11514
  }>, t.PartialC<{
11515
11515
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -11522,8 +11522,6 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11522
11522
  categories: t.ArrayC<t.IntersectionC<[t.TypeC<{
11523
11523
  /** The parent category */category: t.KeyofC<{
11524
11524
  ID: unknown;
11525
- OTHER: unknown;
11526
- UNSPECIFIED: unknown;
11527
11525
  FINANCIAL: unknown;
11528
11526
  HEALTH: unknown;
11529
11527
  CONTACT: unknown;
@@ -11536,6 +11534,8 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11536
11534
  TRACKING: unknown;
11537
11535
  DEVICE: unknown;
11538
11536
  SURVEY: unknown;
11537
+ OTHER: unknown;
11538
+ UNSPECIFIED: unknown;
11539
11539
  NOT_PERSONAL_DATA: unknown;
11540
11540
  INTEGRATION_IDENTIFIER: unknown;
11541
11541
  }>;
@@ -11551,8 +11551,6 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11551
11551
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
11552
11552
  /** The parent category */category: t.KeyofC<{
11553
11553
  ID: unknown;
11554
- OTHER: unknown;
11555
- UNSPECIFIED: unknown;
11556
11554
  FINANCIAL: unknown;
11557
11555
  HEALTH: unknown;
11558
11556
  CONTACT: unknown;
@@ -11565,6 +11563,8 @@ declare const FieldInput: t.IntersectionC<[t.TypeC<{
11565
11563
  TRACKING: unknown;
11566
11564
  DEVICE: unknown;
11567
11565
  SURVEY: unknown;
11566
+ OTHER: unknown;
11567
+ UNSPECIFIED: unknown;
11568
11568
  NOT_PERSONAL_DATA: unknown;
11569
11569
  INTEGRATION_IDENTIFIER: unknown;
11570
11570
  }>;
@@ -11698,6 +11698,8 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11698
11698
  purposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
11699
11699
  /** The parent purpose */purpose: t.KeyofC<{
11700
11700
  HR: unknown;
11701
+ OTHER: unknown;
11702
+ UNSPECIFIED: unknown;
11701
11703
  ESSENTIAL: unknown;
11702
11704
  ADDITIONAL_FUNCTIONALITY: unknown;
11703
11705
  ADVERTISING: unknown;
@@ -11708,8 +11710,6 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11708
11710
  LEGAL: unknown;
11709
11711
  TRANSFER: unknown;
11710
11712
  SALE: unknown;
11711
- OTHER: unknown;
11712
- UNSPECIFIED: unknown;
11713
11713
  }>;
11714
11714
  }>, t.PartialC<{
11715
11715
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -11722,8 +11722,6 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11722
11722
  categories: t.ArrayC<t.IntersectionC<[t.TypeC<{
11723
11723
  /** The parent category */category: t.KeyofC<{
11724
11724
  ID: unknown;
11725
- OTHER: unknown;
11726
- UNSPECIFIED: unknown;
11727
11725
  FINANCIAL: unknown;
11728
11726
  HEALTH: unknown;
11729
11727
  CONTACT: unknown;
@@ -11736,6 +11734,8 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11736
11734
  TRACKING: unknown;
11737
11735
  DEVICE: unknown;
11738
11736
  SURVEY: unknown;
11737
+ OTHER: unknown;
11738
+ UNSPECIFIED: unknown;
11739
11739
  NOT_PERSONAL_DATA: unknown;
11740
11740
  INTEGRATION_IDENTIFIER: unknown;
11741
11741
  }>;
@@ -11751,8 +11751,6 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11751
11751
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
11752
11752
  /** The parent category */category: t.KeyofC<{
11753
11753
  ID: unknown;
11754
- OTHER: unknown;
11755
- UNSPECIFIED: unknown;
11756
11754
  FINANCIAL: unknown;
11757
11755
  HEALTH: unknown;
11758
11756
  CONTACT: unknown;
@@ -11765,6 +11763,8 @@ declare const DatapointInput: t.IntersectionC<[t.TypeC<{
11765
11763
  TRACKING: unknown;
11766
11764
  DEVICE: unknown;
11767
11765
  SURVEY: unknown;
11766
+ OTHER: unknown;
11767
+ UNSPECIFIED: unknown;
11768
11768
  NOT_PERSONAL_DATA: unknown;
11769
11769
  INTEGRATION_IDENTIFIER: unknown;
11770
11770
  }>;
@@ -33502,6 +33502,8 @@ declare const ProcessingActivityInput: t.IntersectionC<[t.TypeC<{
33502
33502
  processingSubPurposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
33503
33503
  /** The parent purpose */purpose: t.KeyofC<{
33504
33504
  HR: unknown;
33505
+ OTHER: unknown;
33506
+ UNSPECIFIED: unknown;
33505
33507
  ESSENTIAL: unknown;
33506
33508
  ADDITIONAL_FUNCTIONALITY: unknown;
33507
33509
  ADVERTISING: unknown;
@@ -33512,8 +33514,6 @@ declare const ProcessingActivityInput: t.IntersectionC<[t.TypeC<{
33512
33514
  LEGAL: unknown;
33513
33515
  TRANSFER: unknown;
33514
33516
  SALE: unknown;
33515
- OTHER: unknown;
33516
- UNSPECIFIED: unknown;
33517
33517
  }>;
33518
33518
  }>, t.PartialC<{
33519
33519
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -33526,8 +33526,6 @@ declare const ProcessingActivityInput: t.IntersectionC<[t.TypeC<{
33526
33526
  dataSubCategories: t.ArrayC<t.IntersectionC<[t.TypeC<{
33527
33527
  /** The parent category */category: t.KeyofC<{
33528
33528
  ID: unknown;
33529
- OTHER: unknown;
33530
- UNSPECIFIED: unknown;
33531
33529
  FINANCIAL: unknown;
33532
33530
  HEALTH: unknown;
33533
33531
  CONTACT: unknown;
@@ -33540,6 +33538,8 @@ declare const ProcessingActivityInput: t.IntersectionC<[t.TypeC<{
33540
33538
  TRACKING: unknown;
33541
33539
  DEVICE: unknown;
33542
33540
  SURVEY: unknown;
33541
+ OTHER: unknown;
33542
+ UNSPECIFIED: unknown;
33543
33543
  NOT_PERSONAL_DATA: unknown;
33544
33544
  INTEGRATION_IDENTIFIER: unknown;
33545
33545
  }>;
@@ -50049,6 +50049,7 @@ declare const ConsentManageExperienceInput: t.IntersectionC<[t.TypeC<{
50049
50049
  * Browser languages that define this regional experience
50050
50050
  */
50051
50051
  browserLanguages: t.ArrayC<t.KeyofC<{
50052
+ no: unknown;
50052
50053
  om: unknown;
50053
50054
  ab: unknown;
50054
50055
  aa: unknown;
@@ -50240,7 +50241,6 @@ declare const ConsentManageExperienceInput: t.IntersectionC<[t.TypeC<{
50240
50241
  ne: unknown;
50241
50242
  nd: unknown;
50242
50243
  ns: unknown;
50243
- no: unknown;
50244
50244
  "no-NO": unknown;
50245
50245
  nb: unknown;
50246
50246
  "nb-NO": unknown;
@@ -50825,8 +50825,8 @@ declare const ConsentManagerInput: t.PartialC<{
50825
50825
  origin: unknown;
50826
50826
  }>; /** Whether the site owner has signed the IAB agreement */
50827
50827
  signedIabAgreement: t.KeyofC<{
50828
- no: unknown;
50829
50828
  yes: unknown;
50829
+ no: unknown;
50830
50830
  unknown: unknown;
50831
50831
  }>; /** Regional experience configurations */
50832
50832
  experiences: t.ArrayC<t.IntersectionC<[t.TypeC<{
@@ -56263,6 +56263,7 @@ declare const ConsentManagerInput: t.PartialC<{
56263
56263
  * Browser languages that define this regional experience
56264
56264
  */
56265
56265
  browserLanguages: t.ArrayC<t.KeyofC<{
56266
+ no: unknown;
56266
56267
  om: unknown;
56267
56268
  ab: unknown;
56268
56269
  aa: unknown;
@@ -56454,7 +56455,6 @@ declare const ConsentManagerInput: t.PartialC<{
56454
56455
  ne: unknown;
56455
56456
  nd: unknown;
56456
56457
  ns: unknown;
56457
- no: unknown;
56458
56458
  "no-NO": unknown;
56459
56459
  nb: unknown;
56460
56460
  "nb-NO": unknown;
@@ -58042,6 +58042,8 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58042
58042
  purposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
58043
58043
  /** The parent purpose */purpose: t.KeyofC<{
58044
58044
  HR: unknown;
58045
+ OTHER: unknown;
58046
+ UNSPECIFIED: unknown;
58045
58047
  ESSENTIAL: unknown;
58046
58048
  ADDITIONAL_FUNCTIONALITY: unknown;
58047
58049
  ADVERTISING: unknown;
@@ -58052,8 +58054,6 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58052
58054
  LEGAL: unknown;
58053
58055
  TRANSFER: unknown;
58054
58056
  SALE: unknown;
58055
- OTHER: unknown;
58056
- UNSPECIFIED: unknown;
58057
58057
  }>;
58058
58058
  }>, t.PartialC<{
58059
58059
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -58066,8 +58066,6 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58066
58066
  categories: t.ArrayC<t.IntersectionC<[t.TypeC<{
58067
58067
  /** The parent category */category: t.KeyofC<{
58068
58068
  ID: unknown;
58069
- OTHER: unknown;
58070
- UNSPECIFIED: unknown;
58071
58069
  FINANCIAL: unknown;
58072
58070
  HEALTH: unknown;
58073
58071
  CONTACT: unknown;
@@ -58080,6 +58078,8 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58080
58078
  TRACKING: unknown;
58081
58079
  DEVICE: unknown;
58082
58080
  SURVEY: unknown;
58081
+ OTHER: unknown;
58082
+ UNSPECIFIED: unknown;
58083
58083
  NOT_PERSONAL_DATA: unknown;
58084
58084
  INTEGRATION_IDENTIFIER: unknown;
58085
58085
  }>;
@@ -58095,8 +58095,6 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58095
58095
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
58096
58096
  /** The parent category */category: t.KeyofC<{
58097
58097
  ID: unknown;
58098
- OTHER: unknown;
58099
- UNSPECIFIED: unknown;
58100
58098
  FINANCIAL: unknown;
58101
58099
  HEALTH: unknown;
58102
58100
  CONTACT: unknown;
@@ -58109,6 +58107,8 @@ declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
58109
58107
  TRACKING: unknown;
58110
58108
  DEVICE: unknown;
58111
58109
  SURVEY: unknown;
58110
+ OTHER: unknown;
58111
+ UNSPECIFIED: unknown;
58112
58112
  NOT_PERSONAL_DATA: unknown;
58113
58113
  INTEGRATION_IDENTIFIER: unknown;
58114
58114
  }>;
@@ -86837,8 +86837,6 @@ declare const TranscendInput: t.PartialC<{
86837
86837
  /** Name of data category */name: t.StringC; /** Type of data category */
86838
86838
  category: t.KeyofC<{
86839
86839
  ID: unknown;
86840
- OTHER: unknown;
86841
- UNSPECIFIED: unknown;
86842
86840
  FINANCIAL: unknown;
86843
86841
  HEALTH: unknown;
86844
86842
  CONTACT: unknown;
@@ -86851,6 +86849,8 @@ declare const TranscendInput: t.PartialC<{
86851
86849
  TRACKING: unknown;
86852
86850
  DEVICE: unknown;
86853
86851
  SURVEY: unknown;
86852
+ OTHER: unknown;
86853
+ UNSPECIFIED: unknown;
86854
86854
  NOT_PERSONAL_DATA: unknown;
86855
86855
  INTEGRATION_IDENTIFIER: unknown;
86856
86856
  }>;
@@ -86885,6 +86885,8 @@ declare const TranscendInput: t.PartialC<{
86885
86885
  /** Name of processing purpose */name: t.StringC; /** Type of processing purpose */
86886
86886
  purpose: t.KeyofC<{
86887
86887
  HR: unknown;
86888
+ OTHER: unknown;
86889
+ UNSPECIFIED: unknown;
86888
86890
  ESSENTIAL: unknown;
86889
86891
  ADDITIONAL_FUNCTIONALITY: unknown;
86890
86892
  ADVERTISING: unknown;
@@ -86895,8 +86897,6 @@ declare const TranscendInput: t.PartialC<{
86895
86897
  LEGAL: unknown;
86896
86898
  TRANSFER: unknown;
86897
86899
  SALE: unknown;
86898
- OTHER: unknown;
86899
- UNSPECIFIED: unknown;
86900
86900
  }>;
86901
86901
  }>, t.PartialC<{
86902
86902
  /** Description of processing purpose */description: t.StringC;
@@ -97948,6 +97948,8 @@ declare const TranscendInput: t.PartialC<{
97948
97948
  purposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
97949
97949
  /** The parent purpose */purpose: t.KeyofC<{
97950
97950
  HR: unknown;
97951
+ OTHER: unknown;
97952
+ UNSPECIFIED: unknown;
97951
97953
  ESSENTIAL: unknown;
97952
97954
  ADDITIONAL_FUNCTIONALITY: unknown;
97953
97955
  ADVERTISING: unknown;
@@ -97958,8 +97960,6 @@ declare const TranscendInput: t.PartialC<{
97958
97960
  LEGAL: unknown;
97959
97961
  TRANSFER: unknown;
97960
97962
  SALE: unknown;
97961
- OTHER: unknown;
97962
- UNSPECIFIED: unknown;
97963
97963
  }>;
97964
97964
  }>, t.PartialC<{
97965
97965
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -97972,8 +97972,6 @@ declare const TranscendInput: t.PartialC<{
97972
97972
  categories: t.ArrayC<t.IntersectionC<[t.TypeC<{
97973
97973
  /** The parent category */category: t.KeyofC<{
97974
97974
  ID: unknown;
97975
- OTHER: unknown;
97976
- UNSPECIFIED: unknown;
97977
97975
  FINANCIAL: unknown;
97978
97976
  HEALTH: unknown;
97979
97977
  CONTACT: unknown;
@@ -97986,6 +97984,8 @@ declare const TranscendInput: t.PartialC<{
97986
97984
  TRACKING: unknown;
97987
97985
  DEVICE: unknown;
97988
97986
  SURVEY: unknown;
97987
+ OTHER: unknown;
97988
+ UNSPECIFIED: unknown;
97989
97989
  NOT_PERSONAL_DATA: unknown;
97990
97990
  INTEGRATION_IDENTIFIER: unknown;
97991
97991
  }>;
@@ -98001,8 +98001,6 @@ declare const TranscendInput: t.PartialC<{
98001
98001
  /** The parent category */category: t.IntersectionC<[t.TypeC<{
98002
98002
  /** The parent category */category: t.KeyofC<{
98003
98003
  ID: unknown;
98004
- OTHER: unknown;
98005
- UNSPECIFIED: unknown;
98006
98004
  FINANCIAL: unknown;
98007
98005
  HEALTH: unknown;
98008
98006
  CONTACT: unknown;
@@ -98015,6 +98013,8 @@ declare const TranscendInput: t.PartialC<{
98015
98013
  TRACKING: unknown;
98016
98014
  DEVICE: unknown;
98017
98015
  SURVEY: unknown;
98016
+ OTHER: unknown;
98017
+ UNSPECIFIED: unknown;
98018
98018
  NOT_PERSONAL_DATA: unknown;
98019
98019
  INTEGRATION_IDENTIFIER: unknown;
98020
98020
  }>;
@@ -103616,8 +103616,8 @@ declare const TranscendInput: t.PartialC<{
103616
103616
  origin: unknown;
103617
103617
  }>; /** Whether the site owner has signed the IAB agreement */
103618
103618
  signedIabAgreement: t.KeyofC<{
103619
- no: unknown;
103620
103619
  yes: unknown;
103620
+ no: unknown;
103621
103621
  unknown: unknown;
103622
103622
  }>; /** Regional experience configurations */
103623
103623
  experiences: t.ArrayC<t.IntersectionC<[t.TypeC<{
@@ -109054,6 +109054,7 @@ declare const TranscendInput: t.PartialC<{
109054
109054
  * Browser languages that define this regional experience
109055
109055
  */
109056
109056
  browserLanguages: t.ArrayC<t.KeyofC<{
109057
+ no: unknown;
109057
109058
  om: unknown;
109058
109059
  ab: unknown;
109059
109060
  aa: unknown;
@@ -109245,7 +109246,6 @@ declare const TranscendInput: t.PartialC<{
109245
109246
  ne: unknown;
109246
109247
  nd: unknown;
109247
109248
  ns: unknown;
109248
- no: unknown;
109249
109249
  "no-NO": unknown;
109250
109250
  nb: unknown;
109251
109251
  "nb-NO": unknown;
@@ -122147,6 +122147,8 @@ declare const TranscendInput: t.PartialC<{
122147
122147
  processingSubPurposes: t.ArrayC<t.IntersectionC<[t.TypeC<{
122148
122148
  /** The parent purpose */purpose: t.KeyofC<{
122149
122149
  HR: unknown;
122150
+ OTHER: unknown;
122151
+ UNSPECIFIED: unknown;
122150
122152
  ESSENTIAL: unknown;
122151
122153
  ADDITIONAL_FUNCTIONALITY: unknown;
122152
122154
  ADVERTISING: unknown;
@@ -122157,8 +122159,6 @@ declare const TranscendInput: t.PartialC<{
122157
122159
  LEGAL: unknown;
122158
122160
  TRANSFER: unknown;
122159
122161
  SALE: unknown;
122160
- OTHER: unknown;
122161
- UNSPECIFIED: unknown;
122162
122162
  }>;
122163
122163
  }>, t.PartialC<{
122164
122164
  /** User-defined name for this processing purpose sub category */name: t.StringC;
@@ -122171,8 +122171,6 @@ declare const TranscendInput: t.PartialC<{
122171
122171
  dataSubCategories: t.ArrayC<t.IntersectionC<[t.TypeC<{
122172
122172
  /** The parent category */category: t.KeyofC<{
122173
122173
  ID: unknown;
122174
- OTHER: unknown;
122175
- UNSPECIFIED: unknown;
122176
122174
  FINANCIAL: unknown;
122177
122175
  HEALTH: unknown;
122178
122176
  CONTACT: unknown;
@@ -122185,6 +122183,8 @@ declare const TranscendInput: t.PartialC<{
122185
122183
  TRACKING: unknown;
122186
122184
  DEVICE: unknown;
122187
122185
  SURVEY: unknown;
122186
+ OTHER: unknown;
122187
+ UNSPECIFIED: unknown;
122188
122188
  NOT_PERSONAL_DATA: unknown;
122189
122189
  INTEGRATION_IDENTIFIER: unknown;
122190
122190
  }>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./enums-CyFTrzXY.mjs";import{a as o,c as s,d as c,f as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b}from"./constants-muOBBQA_.mjs";import{t as x}from"./logger-Bj782ZYD.mjs";import{$ as S,A as ee,B as te,C as ne,D as re,E as ie,F as ae,G as oe,H as se,I as ce,J as le,K as ue,L as de,M as fe,N as pe,O as me,P as he,Q as ge,R as _e,S as ve,T as ye,U as be,V as C,W as w,X as T,Y as E,Z as D,_ as O,_t as k,a as A,at as j,b as M,bt as N,c as xe,ct as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,g as Oe,gt as ke,h as Ae,ht as je,i as Me,it as Ne,j as Pe,k as Fe,l as Ie,lt as Le,m as Re,mt as ze,n as Be,nt as Ve,o as He,ot as Ue,p as We,pt as Ge,q as Ke,r as qe,rt as Je,s as Ye,st as Xe,t as Ze,tt as Qe,u as $e,ut as et,v as tt,vt as nt,w as rt,x as it,xt as at,y as ot,yt as st,z as ct}from"./codecs-CeDPaLYa.mjs";import{a as lt,i as ut,n as dt,r as ft,t as pt}from"./readTranscendYaml-DVkQL2SC.mjs";import{a as mt,i as ht,n as gt,r as _t,t as vt}from"./parseVariablesFromString-BeKOGw5n.mjs";import{a as yt,c as bt,i as xt,l as St,n as Ct,o as wt,r as Tt,s as Et,t as Dt,u as Ot}from"./constants-ClkQQhJs.mjs";import{i as kt,n as At,r as jt,t as Mt}from"./parseAttributesFromString-D1Yl0xwT.mjs";import{a as Nt,c as Pt,d as Ft,f as It,i as Lt,l as Rt,n as zt,o as Bt,r as Vt,s as Ht,t as Ut,u as Wt}from"./uploadPrivacyRequestsFromCsv-sKSFfE6q.mjs";import{t as Gt}from"./readCsv-C4TyEs-r.mjs";import{n as Kt,t as qt}from"./pullUnstructuredSubDataPointRecommendations-D0z-vPgq.mjs";import{a as Jt,i as Yt,n as Xt,o as Zt,r as Qt,t as $t}from"./request-DfkRPQFr.mjs";import{i as en,n as tn,r as nn,t as rn}from"./pullTranscendConfiguration-DjOELnPo.mjs";import{i as an,n as on,r as P,t as sn}from"./fetchAllRequests-CHHdyb4Q.mjs";import{i as cn,n as ln,r as un,t as dn}from"./pullChunkedCustomSiloOutstandingIdentifiers-BW5Vws25.mjs";import{n as fn,r as pn,t as mn}from"./syncCodePackages-CAk_Hjyl.mjs";import{t as hn}from"./markSilentPrivacyRequests-miaumnaC.mjs";import{a as gn,i as _n,n as vn,o as yn,r as bn,t as xn}from"./downloadPrivacyRequestFiles-kKhGnFmx.mjs";import{n as Sn,r as Cn,t as wn}from"./extractClientError-i-Tw_az7.mjs";import{t as Tn}from"./approvePrivacyRequests-BIHcACAj.mjs";import{t as En}from"./notifyPrivacyRequestsAdditionalTime-BUdhSCNL.mjs";import{t as Dn}from"./cancelPrivacyRequests-DMgQOffA.mjs";import{n as On,t as kn}from"./bulkRestartRequests-ByH7TjH2.mjs";import{t as An}from"./skipPreflightJobs-CYuoMG3z.mjs";import{t as jn}from"./bulkRetryEnrichers-DuYXD-64.mjs";import{t as Mn}from"./retryRequestDataSilos-BVrJz_GC.mjs";import{n as F,t as Nn}from"./streamPrivacyRequestsToCsv-PoyTmQd6.mjs";import{n as Pn,r as Fn,t as In}from"./inquirer-BqZXFEt1.mjs";import{t as Ln}from"./collectParquetFilesOrExit-BJiAyaQ5.mjs";import{t as Rn}from"./collectCsvFilesOrExit-CbtyKAzu.mjs";import{t as zn}from"./parquetToCsvOneFile-B84XXInh.mjs";import{a as Bn,i as Vn,n as Hn,o as Un,r as Wn,s as Gn,t as Kn}from"./writeCsv-C4pjXGsD.mjs";import{t as qn}from"./skipRequestDataSilos-BNspAsjR.mjs";import{t as Jn}from"./removeUnverifiedRequestIdentifiers-BxWSsJit.mjs";import{t as Yn}from"./updateConsentManagerVersionToLatest-lAw3E1wm.mjs";import{t as Xn}from"./uploadDataFlowsFromCsv-DUSFCae9.mjs";import{t as Zn}from"./uploadCookiesFromCsv-TH10UBgw.mjs";import{t as Qn}from"./pullConsentManagerMetrics-zKgjc3Ap.mjs";import{n as $n,r as er,t as tr}from"./buildXdiSyncEndpoint-CBbcir-p.mjs";import{t as nr}from"./consentManagersToBusinessEntities-BdKDganK.mjs";import{i as rr,n as ir,r as ar,t as or}from"./uploadConsents-BzmWrNc1.mjs";import{n as sr,r as cr,t as lr}from"./pushCronIdentifiersFromCsv-BZRA1n_8.mjs";import{t as ur}from"./markRequestDataSiloIdsCompleted-BaVxVfDe.mjs";import{t as dr}from"./generateCrossAccountApiKeys-C7yH3Rbi.mjs";import{t as fr}from"./validateTranscendAuth-Cuh2Qfdl.mjs";import{t as pr}from"./listFiles-D2wMHnEr.mjs";import{t as mr}from"./pullAllDatapoints-Bbmky50p.mjs";import{t as hr}from"./pullManualEnrichmentIdentifiersToCsv-kpGy9H7T.mjs";import{n as gr,r as _r,t as vr}from"./pushManualEnrichmentIdentifiersFromCsv-DXqf8WWy.mjs";import{ChatCompletionRole as I,PromptRunProductArea as L,PromptStatus as R,QueueStatus as z}from"@transcend-io/privacy-types";import{chunk as B,difference as yr,groupBy as br,keyBy as V,uniq as xr}from"lodash-es";import{apply as Sr,decodeCodec as H,getValues as Cr}from"@transcend-io/type-utils";import{readFileSync as wr,readdirSync as Tr,statSync as Er}from"node:fs";import{join as Dr}from"node:path";import U from"colors";import{UPDATE_OR_CREATE_COOKIES as Or,buildTranscendGraphQLClient as W,createSombraGotInstance as kr,fetchAllAgentFiles as Ar,fetchAllAgents as G,fetchAllLargeLanguageModels as jr,fetchAllPromptThreads as Mr,fetchAllRequestIdentifiers as Nr,fetchConsentManagerId as Pr,fetchPromptsWithVariables as Fr,makeGraphQLRequest as Ir,reportPromptRun as K,validateSombraVersion as Lr}from"@transcend-io/sdk";import{map as q,mapSeries as J}from"@transcend-io/utils";import{createHandlebarsWithHelpers as Y}from"@transcend-io/handlebars-utils";import{execSync as X}from"child_process";import Rr from"fast-glob";async function Z(e,t){let n=await Pr(e,{logger:x});await J(B(t,100),async t=>{await Ir(e,Or,{variables:{airgapBundleId:n,cookies:t.map(e=>({name:e.name,trackingPurposes:e.trackingPurposes&&e.trackingPurposes.length>0?e.trackingPurposes:void 0,description:e.description,service:e.service,status:e.status,attributes:e.attributes,isRegex:e.isRegex}))},logger:x})})}async function zr(e,t){let n=!1;x.info(U.magenta(`Syncing "${t.length}" cookies...`));let r=t.filter(e=>t.filter(t=>e.name===t.name&&e.isRegex===t.isRegex).length>1);if(r.length>0)throw Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:e})=>e).join(`,`)}`);try{x.info(U.magenta(`Upserting "${t.length}" new cookies...`)),await Z(e,t),x.info(U.green(`Successfully synced ${t.length} cookies!`))}catch(e){n=!0,x.error(U.red(`Failed to create cookies! - ${e.message}`))}return!n}function Br(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function Vr({auth:e,sombraAuth:t,actions:n=[],statuses:r=[],identifierSearch:i,pageLimit:a=100,concurrency:s=1,transcendUrl:c=o,createdAtBefore:l,skipRequestIdentifiers:u=!1,createdAtAfter:d,updatedAtBefore:f,updatedAtAfter:p,isTest:m}){let h=W(c,e),g=await kr(c,e,{logger:x,sombraApiKey:t,sombraUrl:process.env.SOMBRA_URL}),_=``;l&&(_+=` before ${l.toISOString()}`),d&&(_+=`${_?`, and`:``} after ${d.toISOString()}`),x.info(U.magenta(`${n.length>0?`Pulling requests of type "${n.join(`" , "`)}"`:`Pulling all requests`}${_}`));let v=s>1&&d&&l,y=v?Br(d,l,s):[{createdAtAfter:d,createdAtBefore:l}];v&&x.info(U.magenta(`Splitting date range into ${s} parallel chunks`));let b=(await q(y,e=>P(h,{actions:n,text:i,statuses:r,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:f,updatedAtAfter:p,isTest:m}),{concurrency:v?s:1})).flat();u||await Lr(h,{logger:x});let S=u?b.map(e=>({...e,requestIdentifiers:[]})):await q(b,async e=>{let t=await Nr(h,g,{filterBy:{requestId:e.id},skipSombraCheck:!0,logger:x});return{...e,requestIdentifiers:t}},{concurrency:a});return x.info(U.magenta(`Pulled ${S.length} requests`)),{requestsWithRequestIdentifiers:S,requestsFormattedForCsv:S.map(F)}}function Hr(e){try{return e?wr(e,`utf8`):``}catch{return``}}function Ur(e){return Tr(e).filter(t=>Er(Dr(e,t)).isDirectory())}function Q(e){return RegExp(`<${e}>([\\s\\S]+?)<\\/${e}>`)}function Wr(e){return e}const $=e=>{try{return JSON.parse(e)}catch{return e}};var Gr=class{prompts;handlebarsOptions;promptContentMap;largeLanguageModels=[];agentsByName={};agentsByAgentId={};graphQLClient;defaultVariables;variables;handlebars;transcendApiKey;transcendUrl;requireApproval;cacheDuration;lastUpdatedAt;constructor({prompts:e,handlebarsOptions:t={},transcendUrl:n=o,transcendApiKey:r,requireApproval:i=!0,cacheDuration:a,defaultVariables:s={}}){this.prompts=e,this.transcendUrl=n,this.transcendApiKey=r,this.variables=s,this.defaultVariables=s,this.graphQLClient=W(n,typeof r==`object`?r.release():r),this.requireApproval=i,this.cacheDuration=a,this.handlebarsOptions=t,this.handlebars=Y(t)}async fetchPromptsAndMetadata(){let e=Cr(this.prompts),t=e.map(({id:e})=>e).filter(e=>!!e),n=e.map(({title:e})=>e).filter(e=>!!e),r=xr(e.map(({agentNames:e})=>e||[]).flat()),[i,a,o]=await Promise.all([Fr(this.graphQLClient,{logger:x,filterBy:{ids:t,titles:n}}),jr(this.graphQLClient,{logger:x}),G(this.graphQLClient,{logger:x,filterBy:{names:r}})]);this.agentsByName=V(o,`name`),this.agentsByAgentId=V(o,`agentId`),this.largeLanguageModels=a.filter(e=>e.isTranscendHosted===!1);let s=V(i.prompts,`title`),c=V(i.prompts,`id`);return this.variables={...i.calculatedVariables.reduce((e,t)=>Object.assign(e,{[t.name]:t.data?JSON.parse(t.data):t.data}),{}),...this.defaultVariables},this.handlebars=Y({...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...i.promptPartials.map(e=>({name:e.slug,content:e.content}))]}),this.promptContentMap=Sr(this.prompts,({id:e,title:t})=>{let n=e?c[e]:t?s[t]:void 0;if(!n)throw Error(`Failed to find prompt with title: "${t}" and id: "${e}"`);return n}),this.lastUpdatedAt=new Date,i}async getAgentByName(e){let t=this.agentsByName[e];if(t)return t;let[n]=await G(this.graphQLClient,{logger:x,filterBy:{names:[e]}});if(n)return this.agentsByName[n.name]=n,this.agentsByAgentId[n.agentId]=n,n}async getPromptThreadBySlackTs(e){let[t]=await Mr(this.graphQLClient,{logger:x,filterBy:{slackMessageTs:[e]}});return t}async getAgentsByName(e){if(e.length<1)throw Error(`Expected at least one name to be provided`);let{hasCache:t=[],missingCache:n=[]}=br(e,e=>this.agentsByName[e]?`hasCache`:`missingCache`),r=t.map(e=>this.agentsByName[e]);if(n.length===0)return r;let i=B(n,50),a=[];return await J(i,async e=>{let t=await G(this.graphQLClient,{logger:x,filterBy:{names:e}});t.forEach(e=>{this.agentsByName[e.name]=e,this.agentsByAgentId[e.agentId]=e}),a.push(...t)}),[...r,...a]}getAgentFiles(e){return Ar(this.graphQLClient,{logger:x,filterBy:e})}getLargeLanguageModel(e){let t=this.largeLanguageModels.find(t=>typeof e==`string`?t.id===e:t.name===e.name&&t.client===e.client);if(!t)throw Error(`Failed to find model matching: ${typeof e==`string`?e:JSON.stringify(e)}`);return t}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:t}=this;if(!t)throw Error(`Expected this.promptContentMap to be defined`);let n=t[e];if(!n)throw Error(`Expected this.promptContentMap[${e}] to be defined`);return n}async compilePrompt(e,t){let n=await this.getPromptDefinition(e),r=this.prompts[e];if(!r)throw Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&n.status!==R.Approved)throw Error(`Assessment "${n.title}" cannot be used because its in status: "${n.status}"`);if(n.status===R.Rejected)throw Error(`Assessment "${n.title}" cannot be used because it's in status: "${n.status}"`);return H(r.paramCodec,t),this.handlebars.compile(n.content)({currentDate:new Date().toISOString(),...this.variables,...t})}parseAiResponse(e,t){let n=this.prompts[e];if(!n)throw Error(`Expected this.prompts[${e}] to be defined`);let r=n.extractFromTag&&(Q(n.extractFromTag).exec(t)||[])[1]||t;return H(n.outputCodec,$(r),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:t,...n}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let r=n.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw Error(`Expected this.promptContentMap to be defined`);let i=this.promptContentMap[e];if(!i)throw Error(`Expected this.prompts[${e}] to be defined`);if(n.promptRunMessages.length===0)throw Error(`promptRunMessages is expected to have length > 0`);if(n.promptRunMessages[0].role!==I.System)throw Error(`promptRunMessages[0].role is expected to be = ${I.System}`);if(n.promptRunMessages[n.promptRunMessages.length-1].role!==I.Assistant)throw Error(`promptRunMessages[${n.promptRunMessages.length-1}].role is expected to be = ${I.Assistant}`);let a=n.promptRunMessages[n.promptRunMessages.length-1].content,o;try{o=this.parseAiResponse(e,a)}catch(e){throw await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,error:e.message,status:z.Error,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x}),e}let s=await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,status:z.Resolved,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x});return{result:o,promptRunId:s,promptRunUrl:`https://app.transcend.io/prompts/runs/${s}`}}async reportPromptRunError(e,{largeLanguageModel:t,...n}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let r=n.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw Error(`Expected this.promptContentMap to be defined`);let i=this.promptContentMap[e];if(!i)throw Error(`Expected this.prompts[${e}] to be defined`);if(n.promptRunMessages.length===0)throw Error(`promptRunMessages is expected to have length > 0`);if(n.promptRunMessages[0].role!==I.System)throw Error(`promptRunMessages[0].role is expected to be = ${I.System}`);let a=await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,status:z.Error,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x});return{promptRunId:a,promptRunUrl:`https://app.transcend.io/prompts/runs/${a}`}}};function Kr(e){return e.replace(/(https?:\/\/[^\s]+)/g,`<link-omitted>`)}function qr(e){return Object.entries(e).reduce((e,[t,n])=>n!=null&&n!==``&&!(Array.isArray(n)&&n.length===0)&&!(typeof n==`object`&&Object.keys(n).length===0)?Object.assign(e,{[t]:n}):e,{})}function Jr({baseBranch:e,rootDirectory:t,githubRepo:n,excludedGlob:r=[],fileBlockList:i=[]}){X(`git fetch origin ${e}`);let a=X(`git ls-remote ${n} "refs/heads/${e}" | cut -f 1`,{encoding:`utf-8`}).split(`
1
+ import{a as e,i as t,n,o as r,r as i,t as a}from"./enums-CyFTrzXY.mjs";import{a as o,c as s,d as c,f as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b}from"./constants-TpID7AXE.mjs";import{t as x}from"./logger-Bj782ZYD.mjs";import{$ as S,A as ee,B as te,C as ne,D as re,E as ie,F as ae,G as oe,H as se,I as ce,J as le,K as ue,L as de,M as fe,N as pe,O as me,P as he,Q as ge,R as _e,S as ve,T as ye,U as be,V as C,W as w,X as T,Y as E,Z as D,_ as O,_t as k,a as A,at as j,b as M,bt as N,c as xe,ct as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,g as Oe,gt as ke,h as Ae,ht as je,i as Me,it as Ne,j as Pe,k as Fe,l as Ie,lt as Le,m as Re,mt as ze,n as Be,nt as Ve,o as He,ot as Ue,p as We,pt as Ge,q as Ke,r as qe,rt as Je,s as Ye,st as Xe,t as Ze,tt as Qe,u as $e,ut as et,v as tt,vt as nt,w as rt,x as it,xt as at,y as ot,yt as st,z as ct}from"./codecs-CeDPaLYa.mjs";import{a as lt,i as ut,n as dt,r as ft,t as pt}from"./readTranscendYaml-DVkQL2SC.mjs";import{a as mt,i as ht,n as gt,r as _t,t as vt}from"./parseVariablesFromString-BeKOGw5n.mjs";import{a as yt,c as bt,i as xt,l as St,n as Ct,o as wt,r as Tt,s as Et,t as Dt,u as Ot}from"./constants-ClkQQhJs.mjs";import{i as kt,n as At,r as jt,t as Mt}from"./parseAttributesFromString-D1Yl0xwT.mjs";import{a as Nt,c as Pt,d as Ft,f as It,i as Lt,l as Rt,n as zt,o as Bt,r as Vt,s as Ht,t as Ut,u as Wt}from"./uploadPrivacyRequestsFromCsv-wXm4H4FH.mjs";import{t as Gt}from"./readCsv-C4TyEs-r.mjs";import{n as Kt,t as qt}from"./pullUnstructuredSubDataPointRecommendations-D0z-vPgq.mjs";import{a as Jt,i as Yt,n as Xt,o as Zt,r as Qt,t as $t}from"./request-DfkRPQFr.mjs";import{i as en,n as tn,r as nn,t as rn}from"./pullTranscendConfiguration-DjOELnPo.mjs";import{i as an,n as on,r as P,t as sn}from"./fetchAllRequests-CHHdyb4Q.mjs";import{i as cn,n as ln,r as un,t as dn}from"./pullChunkedCustomSiloOutstandingIdentifiers-QRET4M0x.mjs";import{n as fn,r as pn,t as mn}from"./syncCodePackages-CAk_Hjyl.mjs";import{t as hn}from"./markSilentPrivacyRequests-Cmn1fxHI.mjs";import{a as gn,i as _n,n as vn,o as yn,r as bn,t as xn}from"./downloadPrivacyRequestFiles-8DtRUNXp.mjs";import{n as Sn,r as Cn,t as wn}from"./extractClientError-i-Tw_az7.mjs";import{t as Tn}from"./approvePrivacyRequests-BlUcYXpH.mjs";import{t as En}from"./notifyPrivacyRequestsAdditionalTime-CmhFE4b0.mjs";import{t as Dn}from"./cancelPrivacyRequests-BWJZmZVY.mjs";import{n as On,t as kn}from"./bulkRestartRequests-DILDBdc1.mjs";import{t as An}from"./skipPreflightJobs-Bc0--Bvs.mjs";import{t as jn}from"./bulkRetryEnrichers-CjSz1472.mjs";import{t as Mn}from"./retryRequestDataSilos-BCe-WGdL.mjs";import{n as F,t as Nn}from"./streamPrivacyRequestsToCsv-eB3gNhol.mjs";import{n as Pn,r as Fn,t as In}from"./inquirer-BqZXFEt1.mjs";import{t as Ln}from"./collectParquetFilesOrExit-BJiAyaQ5.mjs";import{t as Rn}from"./collectCsvFilesOrExit-CbtyKAzu.mjs";import{t as zn}from"./parquetToCsvOneFile-B84XXInh.mjs";import{a as Bn,i as Vn,n as Hn,o as Un,r as Wn,s as Gn,t as Kn}from"./writeCsv-C4pjXGsD.mjs";import{t as qn}from"./skipRequestDataSilos-BHbAQkpb.mjs";import{t as Jn}from"./removeUnverifiedRequestIdentifiers-VCbL2BXD.mjs";import{t as Yn}from"./updateConsentManagerVersionToLatest-D6i1Xh6o.mjs";import{t as Xn}from"./uploadDataFlowsFromCsv-DL1-cAit.mjs";import{t as Zn}from"./uploadCookiesFromCsv-DoC9rtEF.mjs";import{t as Qn}from"./pullConsentManagerMetrics-zKgjc3Ap.mjs";import{n as $n,r as er,t as tr}from"./buildXdiSyncEndpoint-D5GxPH6o.mjs";import{t as nr}from"./consentManagersToBusinessEntities-BdKDganK.mjs";import{i as rr,n as ir,r as ar,t as or}from"./uploadConsents-BTM49EbZ.mjs";import{n as sr,r as cr,t as lr}from"./pushCronIdentifiersFromCsv-CBb2FvPD.mjs";import{t as ur}from"./markRequestDataSiloIdsCompleted-sDBo1vUD.mjs";import{t as dr}from"./generateCrossAccountApiKeys-D6hg9146.mjs";import{t as fr}from"./validateTranscendAuth-Cuh2Qfdl.mjs";import{t as pr}from"./listFiles-D2wMHnEr.mjs";import{t as mr}from"./pullAllDatapoints-Bbmky50p.mjs";import{t as hr}from"./pullManualEnrichmentIdentifiersToCsv-8I6PgBQc.mjs";import{n as gr,r as _r,t as vr}from"./pushManualEnrichmentIdentifiersFromCsv-DYQq7hsN.mjs";import{ChatCompletionRole as I,PromptRunProductArea as L,PromptStatus as R,QueueStatus as z}from"@transcend-io/privacy-types";import{chunk as B,difference as yr,groupBy as br,keyBy as V,uniq as xr}from"lodash-es";import{apply as Sr,decodeCodec as H,getValues as Cr}from"@transcend-io/type-utils";import{readFileSync as wr,readdirSync as Tr,statSync as Er}from"node:fs";import{join as Dr}from"node:path";import U from"colors";import{UPDATE_OR_CREATE_COOKIES as Or,buildTranscendGraphQLClient as W,createSombraGotInstance as kr,fetchAllAgentFiles as Ar,fetchAllAgents as G,fetchAllLargeLanguageModels as jr,fetchAllPromptThreads as Mr,fetchAllRequestIdentifiers as Nr,fetchConsentManagerId as Pr,fetchPromptsWithVariables as Fr,makeGraphQLRequest as Ir,reportPromptRun as K,validateSombraVersion as Lr}from"@transcend-io/sdk";import{map as q,mapSeries as J}from"@transcend-io/utils";import{createHandlebarsWithHelpers as Y}from"@transcend-io/handlebars-utils";import{execSync as X}from"child_process";import Rr from"fast-glob";async function Z(e,t){let n=await Pr(e,{logger:x});await J(B(t,100),async t=>{await Ir(e,Or,{variables:{airgapBundleId:n,cookies:t.map(e=>({name:e.name,trackingPurposes:e.trackingPurposes&&e.trackingPurposes.length>0?e.trackingPurposes:void 0,description:e.description,service:e.service,status:e.status,attributes:e.attributes,isRegex:e.isRegex}))},logger:x})})}async function zr(e,t){let n=!1;x.info(U.magenta(`Syncing "${t.length}" cookies...`));let r=t.filter(e=>t.filter(t=>e.name===t.name&&e.isRegex===t.isRegex).length>1);if(r.length>0)throw Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:e})=>e).join(`,`)}`);try{x.info(U.magenta(`Upserting "${t.length}" new cookies...`)),await Z(e,t),x.info(U.green(`Successfully synced ${t.length} cookies!`))}catch(e){n=!0,x.error(U.red(`Failed to create cookies! - ${e.message}`))}return!n}function Br(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function Vr({auth:e,sombraAuth:t,actions:n=[],statuses:r=[],identifierSearch:i,pageLimit:a=100,concurrency:s=1,transcendUrl:c=o,createdAtBefore:l,skipRequestIdentifiers:u=!1,createdAtAfter:d,updatedAtBefore:f,updatedAtAfter:p,isTest:m}){let h=W(c,e),g=await kr(c,e,{logger:x,sombraApiKey:t,sombraUrl:process.env.SOMBRA_URL}),_=``;l&&(_+=` before ${l.toISOString()}`),d&&(_+=`${_?`, and`:``} after ${d.toISOString()}`),x.info(U.magenta(`${n.length>0?`Pulling requests of type "${n.join(`" , "`)}"`:`Pulling all requests`}${_}`));let v=s>1&&d&&l,y=v?Br(d,l,s):[{createdAtAfter:d,createdAtBefore:l}];v&&x.info(U.magenta(`Splitting date range into ${s} parallel chunks`));let b=(await q(y,e=>P(h,{actions:n,text:i,statuses:r,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:f,updatedAtAfter:p,isTest:m}),{concurrency:v?s:1})).flat();u||await Lr(h,{logger:x});let S=u?b.map(e=>({...e,requestIdentifiers:[]})):await q(b,async e=>{let t=await Nr(h,g,{filterBy:{requestId:e.id},skipSombraCheck:!0,logger:x});return{...e,requestIdentifiers:t}},{concurrency:a});return x.info(U.magenta(`Pulled ${S.length} requests`)),{requestsWithRequestIdentifiers:S,requestsFormattedForCsv:S.map(F)}}function Hr(e){try{return e?wr(e,`utf8`):``}catch{return``}}function Ur(e){return Tr(e).filter(t=>Er(Dr(e,t)).isDirectory())}function Q(e){return RegExp(`<${e}>([\\s\\S]+?)<\\/${e}>`)}function Wr(e){return e}const $=e=>{try{return JSON.parse(e)}catch{return e}};var Gr=class{prompts;handlebarsOptions;promptContentMap;largeLanguageModels=[];agentsByName={};agentsByAgentId={};graphQLClient;defaultVariables;variables;handlebars;transcendApiKey;transcendUrl;requireApproval;cacheDuration;lastUpdatedAt;constructor({prompts:e,handlebarsOptions:t={},transcendUrl:n=o,transcendApiKey:r,requireApproval:i=!0,cacheDuration:a,defaultVariables:s={}}){this.prompts=e,this.transcendUrl=n,this.transcendApiKey=r,this.variables=s,this.defaultVariables=s,this.graphQLClient=W(n,typeof r==`object`?r.release():r),this.requireApproval=i,this.cacheDuration=a,this.handlebarsOptions=t,this.handlebars=Y(t)}async fetchPromptsAndMetadata(){let e=Cr(this.prompts),t=e.map(({id:e})=>e).filter(e=>!!e),n=e.map(({title:e})=>e).filter(e=>!!e),r=xr(e.map(({agentNames:e})=>e||[]).flat()),[i,a,o]=await Promise.all([Fr(this.graphQLClient,{logger:x,filterBy:{ids:t,titles:n}}),jr(this.graphQLClient,{logger:x}),G(this.graphQLClient,{logger:x,filterBy:{names:r}})]);this.agentsByName=V(o,`name`),this.agentsByAgentId=V(o,`agentId`),this.largeLanguageModels=a.filter(e=>e.isTranscendHosted===!1);let s=V(i.prompts,`title`),c=V(i.prompts,`id`);return this.variables={...i.calculatedVariables.reduce((e,t)=>Object.assign(e,{[t.name]:t.data?JSON.parse(t.data):t.data}),{}),...this.defaultVariables},this.handlebars=Y({...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...i.promptPartials.map(e=>({name:e.slug,content:e.content}))]}),this.promptContentMap=Sr(this.prompts,({id:e,title:t})=>{let n=e?c[e]:t?s[t]:void 0;if(!n)throw Error(`Failed to find prompt with title: "${t}" and id: "${e}"`);return n}),this.lastUpdatedAt=new Date,i}async getAgentByName(e){let t=this.agentsByName[e];if(t)return t;let[n]=await G(this.graphQLClient,{logger:x,filterBy:{names:[e]}});if(n)return this.agentsByName[n.name]=n,this.agentsByAgentId[n.agentId]=n,n}async getPromptThreadBySlackTs(e){let[t]=await Mr(this.graphQLClient,{logger:x,filterBy:{slackMessageTs:[e]}});return t}async getAgentsByName(e){if(e.length<1)throw Error(`Expected at least one name to be provided`);let{hasCache:t=[],missingCache:n=[]}=br(e,e=>this.agentsByName[e]?`hasCache`:`missingCache`),r=t.map(e=>this.agentsByName[e]);if(n.length===0)return r;let i=B(n,50),a=[];return await J(i,async e=>{let t=await G(this.graphQLClient,{logger:x,filterBy:{names:e}});t.forEach(e=>{this.agentsByName[e.name]=e,this.agentsByAgentId[e.agentId]=e}),a.push(...t)}),[...r,...a]}getAgentFiles(e){return Ar(this.graphQLClient,{logger:x,filterBy:e})}getLargeLanguageModel(e){let t=this.largeLanguageModels.find(t=>typeof e==`string`?t.id===e:t.name===e.name&&t.client===e.client);if(!t)throw Error(`Failed to find model matching: ${typeof e==`string`?e:JSON.stringify(e)}`);return t}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:t}=this;if(!t)throw Error(`Expected this.promptContentMap to be defined`);let n=t[e];if(!n)throw Error(`Expected this.promptContentMap[${e}] to be defined`);return n}async compilePrompt(e,t){let n=await this.getPromptDefinition(e),r=this.prompts[e];if(!r)throw Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&n.status!==R.Approved)throw Error(`Assessment "${n.title}" cannot be used because its in status: "${n.status}"`);if(n.status===R.Rejected)throw Error(`Assessment "${n.title}" cannot be used because it's in status: "${n.status}"`);return H(r.paramCodec,t),this.handlebars.compile(n.content)({currentDate:new Date().toISOString(),...this.variables,...t})}parseAiResponse(e,t){let n=this.prompts[e];if(!n)throw Error(`Expected this.prompts[${e}] to be defined`);let r=n.extractFromTag&&(Q(n.extractFromTag).exec(t)||[])[1]||t;return H(n.outputCodec,$(r),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:t,...n}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let r=n.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw Error(`Expected this.promptContentMap to be defined`);let i=this.promptContentMap[e];if(!i)throw Error(`Expected this.prompts[${e}] to be defined`);if(n.promptRunMessages.length===0)throw Error(`promptRunMessages is expected to have length > 0`);if(n.promptRunMessages[0].role!==I.System)throw Error(`promptRunMessages[0].role is expected to be = ${I.System}`);if(n.promptRunMessages[n.promptRunMessages.length-1].role!==I.Assistant)throw Error(`promptRunMessages[${n.promptRunMessages.length-1}].role is expected to be = ${I.Assistant}`);let a=n.promptRunMessages[n.promptRunMessages.length-1].content,o;try{o=this.parseAiResponse(e,a)}catch(e){throw await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,error:e.message,status:z.Error,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x}),e}let s=await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,status:z.Resolved,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x});return{result:o,promptRunId:s,promptRunUrl:`https://app.transcend.io/prompts/runs/${s}`}}async reportPromptRunError(e,{largeLanguageModel:t,...n}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let r=n.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw Error(`Expected this.promptContentMap to be defined`);let i=this.promptContentMap[e];if(!i)throw Error(`Expected this.prompts[${e}] to be defined`);if(n.promptRunMessages.length===0)throw Error(`promptRunMessages is expected to have length > 0`);if(n.promptRunMessages[0].role!==I.System)throw Error(`promptRunMessages[0].role is expected to be = ${I.System}`);let a=await K(this.graphQLClient,{productArea:L.PromptManager,...n,name:r,status:z.Error,...typeof t==`string`?{largeLanguageModelId:t}:{largeLanguageModelName:t.name,largeLanguageModelClient:t.client},promptId:i.id,promptRunMessages:n.promptRunMessages.map((e,t)=>({...e,...t===0?{template:i.content}:{}}))},{logger:x});return{promptRunId:a,promptRunUrl:`https://app.transcend.io/prompts/runs/${a}`}}};function Kr(e){return e.replace(/(https?:\/\/[^\s]+)/g,`<link-omitted>`)}function qr(e){return Object.entries(e).reduce((e,[t,n])=>n!=null&&n!==``&&!(Array.isArray(n)&&n.length===0)&&!(typeof n==`object`&&Object.keys(n).length===0)?Object.assign(e,{[t]:n}):e,{})}function Jr({baseBranch:e,rootDirectory:t,githubRepo:n,excludedGlob:r=[],fileBlockList:i=[]}){X(`git fetch origin ${e}`);let a=X(`git ls-remote ${n} "refs/heads/${e}" | cut -f 1`,{encoding:`utf-8`}).split(`
2
2
  `)[0],o=X(`git rev-parse HEAD`,{encoding:`utf-8`}).split(`
3
3
  `)[0];if(!a||!o)throw Error(`FAILED TO FIND COMMIT RANGE`);let s=yr(X(`git fetch && git diff --name-only "${e||a}...${o}" -- ${t}`,{encoding:`utf-8`}).split(`
4
4
  `).filter(e=>e),i),c=r.length>0?Rr.sync(s,{ignore:r}):s,l={};return c.forEach(e=>{l[e]=X(`git show ${o}:${e}`,{encoding:`utf-8`})}),{changedFiles:s,fileDiffs:l,repoName:n.split(`/`).pop().split(`.`)[0],commit:o}}export{y as ADMIN_DASH,m as ADMIN_DASH_DATAPOINTS,_ as ADMIN_DASH_INTEGRATIONS,$t as APPROVE_PRIVACY_REQUEST,en as ASSESSMENT_TEMPLATES,Ze as ActionInput,Be as ActionItemCollectionInput,qe as ActionItemInput,Me as AgentFileInput,A as AgentFunctionInput,He as AgentInput,Ye as ApiKeyInput,xe as AssessmentAnswerOptionInput,Ie as AssessmentDisplayLogicInput,$e as AssessmentInput,Ce as AssessmentNestedRuleInput,Ee as AssessmentResourceInput,We as AssessmentRetentionScheduleInput,Re as AssessmentRuleInput,Ae as AssessmentSectionInput,Oe as AssessmentSectionQuestionInput,O as AssessmentTemplateInput,Lt as AttestedExtraIdentifiers,tt as AttributeInput,ot as AttributePreview,M as AttributeValueInput,Dt as BLANK,Ct as BULK_APPLY,it as BusinessEntityInput,Xt as CANCEL_PRIVACY_REQUEST,Tt as CAN_APPLY_IN_BULK,xt as CachedFileState,yt as CachedRequestState,ve as CodePackageInput,ne as CodePackageSdk,wt as ColumnName,rt as ConsentManageExperienceInput,ye as ConsentManagerInput,ie as ConsentManagerServiceMetadata,re as ConsentPreferenceTopic,me as ConsentPreferenceTopicOptionValue,Fe as ConsentPurpose,ee as CookieCsvInput,Pe as CookieInput,ln as CronIdentifier,sr as CronIdentifierPush,d as DEBUG,o as DEFAULT_TRANSCEND_API,h as DEFAULT_TRANSCEND_CONSENT_API,rn as DEFAULT_TRANSCEND_PULL_RESOURCES,fe as DataCategoryGuessInput,pe as DataCategoryInput,he as DataCategoryPreviewInput,ae as DataCategoryRecommendationInput,ce as DataFlowCsvInput,de as DataFlowInput,_e as DataSiloInput,ct as DataSubjectInput,te as DatapointInput,Kt as ENTRY_COUNT,gr as EnrichPrivacyRequest,C as EnricherInput,se as FieldInput,Et as IDENTIFIER_BLOCK_LIST,tr as IP_ADDRESS_REGEX,bt as IS_REQUIRED,be as IdentifierInput,w as ImportOnetrustAssessmentsInput,bn as IntlMessage,oe as IntlMessageInput,St as NONE,Qt as NOTIFY_ADDITIONAL_TIME,a as OneTrustFileFormat,n as OneTrustPullResource,i as OneTrustPullSource,ue as OpenAIEnabledRoute,Ke as OpenAIEnabledRoutes,le as OpenAIIntegration,t as OpenAIRouteName,Mt as ParsedAttributeInput,E as PartitionInput,T as PathfinderPolicy,e as PathfinderPolicyName,D as PathfinderPolicyNameC,ge as PathfinderPromptRunMetadata,S as PolicyInput,Te as PrivacyCenterInput,sn as PrivacyRequest,Nt as PrivacyRequestInput,Sn as PrivacyRequestResponse,Qe as ProcessingActivityInput,Ve as ProcessingPurposeInput,Je as ProcessingPurposePreviewInput,Ne as PromptAVendorEmailSettings,j as PromptGroupInput,Ue as PromptInput,Xe as PromptPartialInput,or as PurposeMap,Yt as REQUESTS,Jt as REQUESTS_COUNT,v as RETRYABLE_BATCH_STATUSES,Se as RegionInput,Le as RepositoryInput,_n as RequestFileMetadata,gn as RequestFileMetadataResponse,on as RequestPurposeTrigger,et as RiskAssignmentInput,we as RiskLogicInput,s as SCOPES_BY_TITLE,f as SCOPE_TITLES,De as SiloDiscoveryResultInput,Ge as SoftwareDevelopmentKitInput,ze as StoredApiKey,Ot as SuccessfulRequest,b as TR_PULL_RESOURCE_SCOPE_MAP,c as TR_PUSH_RESOURCE_SCOPE_MAP,l as TR_YML_RESOURCE_TO_FIELD_NAME,je as TeamInput,ke as TemplateInput,k as TranscendInput,Gr as TranscendPromptManager,r as TranscendPullResource,Zt as UPDATE_PRIVACY_REQUEST,ir as USP_STRING_REGEX,pt as VARIABLE_PARAMETERS_NAME,dt as VARIABLE_PARAMETERS_REGEXP,nt as VendorInput,st as WebhookHeader,Kn as appendCsvRowsOrdered,Hn as appendCsvSync,Tn as approvePrivacyRequests,at as buildAIIntegrationType,N as buildEnabledRouteType,$n as buildXdiSyncEndpoint,kn as bulkRestartRequests,jn as bulkRetryEnrichers,Dn as cancelPrivacyRequests,Rn as collectCsvFilesOrExit,Ln as collectParquetFilesOrExit,nr as consentManagersToBusinessEntities,mn as createCodePackage,rr as createConsentToken,Q as createRegexForTag,Wr as defineTranscendPrompts,p as description,er as domainToHost,xn as downloadPrivacyRequestFiles,_r as enrichPrivacyRequest,mt as ensureAllDataSubjectsExist,wn as extractClientError,nn as fetchAllAssessmentTemplates,P as fetchAllRequests,cn as fetchRequestDataSiloActiveCount,an as fetchRequestsTotalCount,qr as filterNullishValuesFromObject,Wt as filterRows,F as formatRequestForCsv,jt as fuzzyMatchColumns,kt as fuzzySearch,dr as generateCrossAccountApiKeys,yn as getFileMetadataForPrivacyRequests,Jr as getGitFilesThatChanged,Ft as getUniqueValuesForColumn,Wn as initCsvFile,In as inquirerAutoComplete,Pn as inquirerConfirmBoolean,Fn as inquirerConfirmText,Ur as listDirectories,pr as listFiles,zt as mapColumnsToAttributes,Vt as mapColumnsToIdentifiers,Rt as mapCsvColumnsToApi,Bt as mapCsvRowsToRequestInputs,It as mapEnumValues,Pt as mapRequestEnumValues,cr as markCronIdentifierCompleted,ur as markRequestDataSiloIdsCompleted,hn as markSilentPrivacyRequests,gt as mergeTranscendInputs,g as name,Ht as normalizeIdentifierValue,En as notifyPrivacyRequestsAdditionalTime,zn as parquetToCsvOneFile,At as parseAttributesFromString,Vn as parseFilePath,vt as parseVariablesFromString,mr as pullAllDatapoints,dn as pullChunkedCustomSiloOutstandingIdentifiers,Qn as pullConsentManagerMetrics,un as pullCronPageOfIdentifiers,hr as pullManualEnrichmentIdentifiersToCsv,Vr as pullPrivacyRequests,tn as pullTranscendConfiguration,qt as pullUnstructuredSubDataPointRecommendations,lr as pushCronIdentifiersFromCsv,vr as pushManualEnrichmentIdentifiersFromCsv,Gt as readCsv,Hr as readSafe,ft as readTranscendYaml,Kr as removeLinks,Jn as removeUnverifiedRequestIdentifiers,ut as replaceVariablesInYaml,On as restartPrivacyRequest,Mn as retryRequestDataSilos,An as skipPreflightJobs,qn as skipRequestDataSilos,vn as streamPrivacyRequestFiles,Nn as streamPrivacyRequestsToCsv,Cn as submitPrivacyRequest,fn as syncCodePackages,_t as syncConfigurationToTranscend,zr as syncCookies,ht as syncDataSilos,pn as updateCodePackages,Yn as updateConsentManagerVersionToLatest,Z as updateOrCreateCookies,ar as uploadConsents,Zn as uploadCookiesFromCsv,Xn as uploadDataFlowsFromCsv,Ut as uploadPrivacyRequestsFromCsv,fr as validateTranscendAuth,u as version,Bn as writeCsv,Un as writeCsvSync,Gn as writeLargeCsv,lt as writeTranscendYaml};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./constants-muOBBQA_.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{RequestDataSiloStatus as n}from"@transcend-io/privacy-types";import r from"colors";import{CHANGE_REQUEST_DATA_SILO_STATUS as i,buildTranscendGraphQLClient as a,fetchRequestDataSilo as o,makeGraphQLRequest as s}from"@transcend-io/sdk";import{map as c}from"@transcend-io/utils";import l from"cli-progress";async function u({requestIds:u,dataSiloId:d,auth:f,concurrency:p=100,status:m=n.Resolved,transcendUrl:h=e}){let g=a(h,f),_=new Date().getTime(),v=new l.SingleBar({},l.Presets.shades_classic);t.info(r.magenta(`Notifying Transcend for data silo "${d}" marking "${u.length}" requests as completed.`));let y=0;v.start(u.length,0),await c(u,async e=>{let n=await o(g,{logger:t,filterBy:{requestId:e,dataSiloId:d}});try{await s(g,i,{variables:{requestDataSiloId:n.id,status:m},logger:t})}catch(e){if(!e.message.includes(`Client error: Request must be active:`)&&!e.message.includes(`Failed to find RequestDataSilo`))throw e}y+=1,v.update(y)},{concurrency:p}),v.stop();let b=new Date().getTime()-_;return t.info(r.green(`Successfully notified Transcend in "${b/1e3}" seconds!`)),u.length}export{u as t};
2
- //# sourceMappingURL=markRequestDataSiloIdsCompleted-BaVxVfDe.mjs.map
1
+ import{a as e}from"./constants-TpID7AXE.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{RequestDataSiloStatus as n}from"@transcend-io/privacy-types";import r from"colors";import{CHANGE_REQUEST_DATA_SILO_STATUS as i,buildTranscendGraphQLClient as a,fetchRequestDataSilo as o,makeGraphQLRequest as s}from"@transcend-io/sdk";import{map as c}from"@transcend-io/utils";import l from"cli-progress";async function u({requestIds:u,dataSiloId:d,auth:f,concurrency:p=100,status:m=n.Resolved,transcendUrl:h=e}){let g=a(h,f),_=new Date().getTime(),v=new l.SingleBar({},l.Presets.shades_classic);t.info(r.magenta(`Notifying Transcend for data silo "${d}" marking "${u.length}" requests as completed.`));let y=0;v.start(u.length,0),await c(u,async e=>{let n=await o(g,{logger:t,filterBy:{requestId:e,dataSiloId:d}});try{await s(g,i,{variables:{requestDataSiloId:n.id,status:m},logger:t})}catch(e){if(!e.message.includes(`Client error: Request must be active:`)&&!e.message.includes(`Failed to find RequestDataSilo`))throw e}y+=1,v.update(y)},{concurrency:p}),v.stop();let b=new Date().getTime()-_;return t.info(r.green(`Successfully notified Transcend in "${b/1e3}" seconds!`)),u.length}export{u as t};
2
+ //# sourceMappingURL=markRequestDataSiloIdsCompleted-sDBo1vUD.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"markRequestDataSiloIdsCompleted-BaVxVfDe.mjs","names":[],"sources":["../src/lib/cron/markRequestDataSiloIdsCompleted.ts"],"sourcesContent":["import { RequestDataSiloStatus } from '@transcend-io/privacy-types';\nimport {\n buildTranscendGraphQLClient,\n makeGraphQLRequest,\n CHANGE_REQUEST_DATA_SILO_STATUS,\n fetchRequestDataSilo,\n} from '@transcend-io/sdk';\nimport { map } from '@transcend-io/utils';\nimport cliProgress from 'cli-progress';\nimport colors from 'colors';\n\nimport { DEFAULT_TRANSCEND_API } from '../../constants.js';\nimport { logger } from '../../logger.js';\n\n/**\n * Given a CSV of Request IDs, mark associated RequestDataSilos as completed\n *\n * @param options - Options\n * @returns Number of items marked as completed\n */\nexport async function markRequestDataSiloIdsCompleted({\n requestIds,\n dataSiloId,\n auth,\n concurrency = 100,\n status = RequestDataSiloStatus.Resolved,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** The list of request ids to mark as completed */\n requestIds: string[];\n /** Transcend API key authentication */\n auth: string;\n /** Data Silo ID to pull down jobs for */\n dataSiloId: string;\n /** Status to update requests to */\n status?: RequestDataSiloStatus;\n /** Upload concurrency */\n concurrency?: number;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<number> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Time duration\n const t0 = new Date().getTime();\n // create a new progress bar instance and use shades_classic theme\n const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);\n\n // Notify Transcend\n logger.info(\n colors.magenta(\n `Notifying Transcend for data silo \"${dataSiloId}\" marking \"${requestIds.length}\" requests as completed.`,\n ),\n );\n\n let total = 0;\n progressBar.start(requestIds.length, 0);\n await map(\n requestIds,\n async (requestId) => {\n const requestDataSilo = await fetchRequestDataSilo(client, {\n logger,\n filterBy: { requestId, dataSiloId },\n });\n\n try {\n await makeGraphQLRequest<{\n /** Whether we successfully uploaded the results */\n success: boolean;\n }>(client, CHANGE_REQUEST_DATA_SILO_STATUS, {\n variables: {\n requestDataSiloId: requestDataSilo.id,\n status,\n },\n logger,\n });\n } catch (err) {\n if (\n !err.message.includes('Client error: Request must be active:') &&\n !err.message.includes('Failed to find RequestDataSilo')\n ) {\n throw err;\n }\n }\n\n total += 1;\n progressBar.update(total);\n },\n { concurrency },\n );\n\n progressBar.stop();\n const t1 = new Date().getTime();\n const totalTime = t1 - t0;\n\n logger.info(colors.green(`Successfully notified Transcend in \"${totalTime / 1000}\" seconds!`));\n return requestIds.length;\n}\n"],"mappings":"yYAoBA,eAAsB,EAAgC,CACpD,aACA,aACA,OACA,cAAc,IACd,SAAS,EAAsB,SAC/B,eAAe,GAcG,CAElB,IAAM,EAAS,EAA4B,EAAc,EAAK,CAGxD,EAAK,IAAI,MAAM,CAAC,SAAS,CAEzB,EAAc,IAAI,EAAY,UAAU,EAAE,CAAE,EAAY,QAAQ,eAAe,CAGrF,EAAO,KACL,EAAO,QACL,sCAAsC,EAAW,aAAa,EAAW,OAAO,0BACjF,CACF,CAED,IAAI,EAAQ,EACZ,EAAY,MAAM,EAAW,OAAQ,EAAE,CACvC,MAAM,EACJ,EACA,KAAO,IAAc,CACnB,IAAM,EAAkB,MAAM,EAAqB,EAAQ,CACzD,SACA,SAAU,CAAE,YAAW,aAAY,CACpC,CAAC,CAEF,GAAI,CACF,MAAM,EAGH,EAAQ,EAAiC,CAC1C,UAAW,CACT,kBAAmB,EAAgB,GACnC,SACD,CACD,SACD,CAAC,OACK,EAAK,CACZ,GACE,CAAC,EAAI,QAAQ,SAAS,wCAAwC,EAC9D,CAAC,EAAI,QAAQ,SAAS,iCAAiC,CAEvD,MAAM,EAIV,GAAS,EACT,EAAY,OAAO,EAAM,EAE3B,CAAE,cAAa,CAChB,CAED,EAAY,MAAM,CAElB,IAAM,EADK,IAAI,MAAM,CAAC,SAAS,CACR,EAGvB,OADA,EAAO,KAAK,EAAO,MAAM,uCAAuC,EAAY,IAAK,YAAY,CAAC,CACvF,EAAW"}
1
+ {"version":3,"file":"markRequestDataSiloIdsCompleted-sDBo1vUD.mjs","names":[],"sources":["../src/lib/cron/markRequestDataSiloIdsCompleted.ts"],"sourcesContent":["import { RequestDataSiloStatus } from '@transcend-io/privacy-types';\nimport {\n buildTranscendGraphQLClient,\n makeGraphQLRequest,\n CHANGE_REQUEST_DATA_SILO_STATUS,\n fetchRequestDataSilo,\n} from '@transcend-io/sdk';\nimport { map } from '@transcend-io/utils';\nimport cliProgress from 'cli-progress';\nimport colors from 'colors';\n\nimport { DEFAULT_TRANSCEND_API } from '../../constants.js';\nimport { logger } from '../../logger.js';\n\n/**\n * Given a CSV of Request IDs, mark associated RequestDataSilos as completed\n *\n * @param options - Options\n * @returns Number of items marked as completed\n */\nexport async function markRequestDataSiloIdsCompleted({\n requestIds,\n dataSiloId,\n auth,\n concurrency = 100,\n status = RequestDataSiloStatus.Resolved,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** The list of request ids to mark as completed */\n requestIds: string[];\n /** Transcend API key authentication */\n auth: string;\n /** Data Silo ID to pull down jobs for */\n dataSiloId: string;\n /** Status to update requests to */\n status?: RequestDataSiloStatus;\n /** Upload concurrency */\n concurrency?: number;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<number> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Time duration\n const t0 = new Date().getTime();\n // create a new progress bar instance and use shades_classic theme\n const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);\n\n // Notify Transcend\n logger.info(\n colors.magenta(\n `Notifying Transcend for data silo \"${dataSiloId}\" marking \"${requestIds.length}\" requests as completed.`,\n ),\n );\n\n let total = 0;\n progressBar.start(requestIds.length, 0);\n await map(\n requestIds,\n async (requestId) => {\n const requestDataSilo = await fetchRequestDataSilo(client, {\n logger,\n filterBy: { requestId, dataSiloId },\n });\n\n try {\n await makeGraphQLRequest<{\n /** Whether we successfully uploaded the results */\n success: boolean;\n }>(client, CHANGE_REQUEST_DATA_SILO_STATUS, {\n variables: {\n requestDataSiloId: requestDataSilo.id,\n status,\n },\n logger,\n });\n } catch (err) {\n if (\n !err.message.includes('Client error: Request must be active:') &&\n !err.message.includes('Failed to find RequestDataSilo')\n ) {\n throw err;\n }\n }\n\n total += 1;\n progressBar.update(total);\n },\n { concurrency },\n );\n\n progressBar.stop();\n const t1 = new Date().getTime();\n const totalTime = t1 - t0;\n\n logger.info(colors.green(`Successfully notified Transcend in \"${totalTime / 1000}\" seconds!`));\n return requestIds.length;\n}\n"],"mappings":"yYAoBA,eAAsB,EAAgC,CACpD,aACA,aACA,OACA,cAAc,IACd,SAAS,EAAsB,SAC/B,eAAe,GAcG,CAElB,IAAM,EAAS,EAA4B,EAAc,EAAK,CAGxD,EAAK,IAAI,MAAM,CAAC,SAAS,CAEzB,EAAc,IAAI,EAAY,UAAU,EAAE,CAAE,EAAY,QAAQ,eAAe,CAGrF,EAAO,KACL,EAAO,QACL,sCAAsC,EAAW,aAAa,EAAW,OAAO,0BACjF,CACF,CAED,IAAI,EAAQ,EACZ,EAAY,MAAM,EAAW,OAAQ,EAAE,CACvC,MAAM,EACJ,EACA,KAAO,IAAc,CACnB,IAAM,EAAkB,MAAM,EAAqB,EAAQ,CACzD,SACA,SAAU,CAAE,YAAW,aAAY,CACpC,CAAC,CAEF,GAAI,CACF,MAAM,EAGH,EAAQ,EAAiC,CAC1C,UAAW,CACT,kBAAmB,EAAgB,GACnC,SACD,CACD,SACD,CAAC,OACK,EAAK,CACZ,GACE,CAAC,EAAI,QAAQ,SAAS,wCAAwC,EAC9D,CAAC,EAAI,QAAQ,SAAS,iCAAiC,CAEvD,MAAM,EAIV,GAAS,EACT,EAAY,OAAO,EAAM,EAE3B,CAAE,cAAa,CAChB,CAED,EAAY,MAAM,CAElB,IAAM,EADK,IAAI,MAAM,CAAC,SAAS,CACR,EAGvB,OADA,EAAO,KAAK,EAAO,MAAM,uCAAuC,EAAY,IAAK,YAAY,CAAC,CACvF,EAAW"}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./constants-muOBBQA_.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{o as n}from"./request-DfkRPQFr.mjs";import{r}from"./fetchAllRequests-CHHdyb4Q.mjs";import{RequestStatus as i}from"@transcend-io/privacy-types";import a from"colors";import{buildTranscendGraphQLClient as o,makeGraphQLRequest as s}from"@transcend-io/sdk";import{map as c}from"@transcend-io/utils";import l from"cli-progress";async function u({requestActions:u,auth:d,requestIds:f,statuses:p=[i.Compiling,i.RequestMade,i.Delayed,i.Approving,i.Secondary,i.Enriching,i.Waiting,i.SecondaryApproving],createdAtAfter:m,createdAtBefore:h,updatedAtBefore:g,updatedAtAfter:_,concurrency:v=100,transcendUrl:y=e}){let b=o(y,d),x=new Date().getTime(),S=new l.SingleBar({},l.Presets.shades_classic),C=await r(b,{actions:u,statuses:p,createdAtBefore:h,createdAtAfter:m,updatedAtBefore:g,updatedAtAfter:_,isSilent:!1,requestIds:f});t.info(a.magenta(`Marking "${C.length}" as silent mode.`));let w=0;S.start(C.length,0),await c(C,async e=>{await s(b,n,{variables:{input:{id:e.id,isSilent:!0}},logger:t}),w+=1,S.update(w)},{concurrency:v}),S.stop();let T=new Date().getTime()-x;return t.info(a.green(`Successfully marked ${w} requests as silent mode in "${T/1e3}" seconds!`)),C.length}export{u as t};
2
- //# sourceMappingURL=markSilentPrivacyRequests-miaumnaC.mjs.map
1
+ import{a as e}from"./constants-TpID7AXE.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{o as n}from"./request-DfkRPQFr.mjs";import{r}from"./fetchAllRequests-CHHdyb4Q.mjs";import{RequestStatus as i}from"@transcend-io/privacy-types";import a from"colors";import{buildTranscendGraphQLClient as o,makeGraphQLRequest as s}from"@transcend-io/sdk";import{map as c}from"@transcend-io/utils";import l from"cli-progress";async function u({requestActions:u,auth:d,requestIds:f,statuses:p=[i.Compiling,i.RequestMade,i.Delayed,i.Approving,i.Secondary,i.Enriching,i.Waiting,i.SecondaryApproving],createdAtAfter:m,createdAtBefore:h,updatedAtBefore:g,updatedAtAfter:_,concurrency:v=100,transcendUrl:y=e}){let b=o(y,d),x=new Date().getTime(),S=new l.SingleBar({},l.Presets.shades_classic),C=await r(b,{actions:u,statuses:p,createdAtBefore:h,createdAtAfter:m,updatedAtBefore:g,updatedAtAfter:_,isSilent:!1,requestIds:f});t.info(a.magenta(`Marking "${C.length}" as silent mode.`));let w=0;S.start(C.length,0),await c(C,async e=>{await s(b,n,{variables:{input:{id:e.id,isSilent:!0}},logger:t}),w+=1,S.update(w)},{concurrency:v}),S.stop();let T=new Date().getTime()-x;return t.info(a.green(`Successfully marked ${w} requests as silent mode in "${T/1e3}" seconds!`)),C.length}export{u as t};
2
+ //# sourceMappingURL=markSilentPrivacyRequests-Cmn1fxHI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"markSilentPrivacyRequests-miaumnaC.mjs","names":[],"sources":["../src/lib/requests/markSilentPrivacyRequests.ts"],"sourcesContent":["import { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { buildTranscendGraphQLClient, makeGraphQLRequest } from '@transcend-io/sdk';\nimport { map } from '@transcend-io/utils';\nimport cliProgress from 'cli-progress';\nimport colors from 'colors';\n\nimport { DEFAULT_TRANSCEND_API } from '../../constants.js';\nimport { logger } from '../../logger.js';\nimport { UPDATE_PRIVACY_REQUEST, fetchAllRequests } from '../graphql/index.js';\n\n/**\n * Mark a set of privacy requests to be in silent mode\n *\n * @param options - Options\n * @returns The number of requests marked silent\n */\nexport async function markSilentPrivacyRequests({\n requestActions,\n auth,\n requestIds,\n statuses = [\n RequestStatus.Compiling,\n RequestStatus.RequestMade,\n RequestStatus.Delayed,\n RequestStatus.Approving,\n RequestStatus.Secondary,\n RequestStatus.Enriching,\n RequestStatus.Waiting,\n RequestStatus.SecondaryApproving,\n ],\n createdAtAfter,\n createdAtBefore,\n updatedAtBefore,\n updatedAtAfter,\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** The request actions that should be restarted */\n requestActions: RequestAction[];\n /** Transcend API key authentication */\n auth: string;\n /** Concurrency limit for approving */\n concurrency?: number;\n /** The request statuses to mark silent */\n statuses?: RequestStatus[];\n /** The set of privacy requests to mark silent */\n requestIds?: string[];\n /** Filter for requests created before this date */\n createdAtBefore?: Date;\n /** Filter for requests created after this date */\n createdAtAfter?: Date;\n /** Filter for requests updated before this date */\n updatedAtBefore?: Date;\n /** Filter for requests updated after this date */\n updatedAtAfter?: Date;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<number> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Time duration\n const t0 = new Date().getTime();\n // create a new progress bar instance and use shades_classic theme\n const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);\n\n // Pull in the requests\n const allRequests = await fetchAllRequests(client, {\n actions: requestActions,\n statuses,\n createdAtBefore,\n createdAtAfter,\n updatedAtBefore,\n updatedAtAfter,\n isSilent: false,\n requestIds,\n });\n\n // Notify Transcend\n logger.info(colors.magenta(`Marking \"${allRequests.length}\" as silent mode.`));\n\n let total = 0;\n progressBar.start(allRequests.length, 0);\n await map(\n allRequests,\n async (requestToMarkSilent) => {\n await makeGraphQLRequest(client, UPDATE_PRIVACY_REQUEST, {\n variables: {\n input: {\n id: requestToMarkSilent.id,\n isSilent: true,\n },\n },\n logger,\n });\n\n total += 1;\n progressBar.update(total);\n },\n { concurrency },\n );\n\n progressBar.stop();\n const t1 = new Date().getTime();\n const totalTime = t1 - t0;\n\n logger.info(\n colors.green(\n `Successfully marked ${total} requests as silent mode in \"${totalTime / 1000}\" seconds!`,\n ),\n );\n return allRequests.length;\n}\n"],"mappings":"4ZAgBA,eAAsB,EAA0B,CAC9C,iBACA,OACA,aACA,WAAW,CACT,EAAc,UACd,EAAc,YACd,EAAc,QACd,EAAc,UACd,EAAc,UACd,EAAc,UACd,EAAc,QACd,EAAc,mBACf,CACD,iBACA,kBACA,kBACA,iBACA,cAAc,IACd,eAAe,GAsBG,CAElB,IAAM,EAAS,EAA4B,EAAc,EAAK,CAGxD,EAAK,IAAI,MAAM,CAAC,SAAS,CAEzB,EAAc,IAAI,EAAY,UAAU,EAAE,CAAE,EAAY,QAAQ,eAAe,CAG/E,EAAc,MAAM,EAAiB,EAAQ,CACjD,QAAS,EACT,WACA,kBACA,iBACA,kBACA,iBACA,SAAU,GACV,aACD,CAAC,CAGF,EAAO,KAAK,EAAO,QAAQ,YAAY,EAAY,OAAO,mBAAmB,CAAC,CAE9E,IAAI,EAAQ,EACZ,EAAY,MAAM,EAAY,OAAQ,EAAE,CACxC,MAAM,EACJ,EACA,KAAO,IAAwB,CAC7B,MAAM,EAAmB,EAAQ,EAAwB,CACvD,UAAW,CACT,MAAO,CACL,GAAI,EAAoB,GACxB,SAAU,GACX,CACF,CACD,SACD,CAAC,CAEF,GAAS,EACT,EAAY,OAAO,EAAM,EAE3B,CAAE,cAAa,CAChB,CAED,EAAY,MAAM,CAElB,IAAM,EADK,IAAI,MAAM,CAAC,SAAS,CACR,EAOvB,OALA,EAAO,KACL,EAAO,MACL,uBAAuB,EAAM,+BAA+B,EAAY,IAAK,YAC9E,CACF,CACM,EAAY"}
1
+ {"version":3,"file":"markSilentPrivacyRequests-Cmn1fxHI.mjs","names":[],"sources":["../src/lib/requests/markSilentPrivacyRequests.ts"],"sourcesContent":["import { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { buildTranscendGraphQLClient, makeGraphQLRequest } from '@transcend-io/sdk';\nimport { map } from '@transcend-io/utils';\nimport cliProgress from 'cli-progress';\nimport colors from 'colors';\n\nimport { DEFAULT_TRANSCEND_API } from '../../constants.js';\nimport { logger } from '../../logger.js';\nimport { UPDATE_PRIVACY_REQUEST, fetchAllRequests } from '../graphql/index.js';\n\n/**\n * Mark a set of privacy requests to be in silent mode\n *\n * @param options - Options\n * @returns The number of requests marked silent\n */\nexport async function markSilentPrivacyRequests({\n requestActions,\n auth,\n requestIds,\n statuses = [\n RequestStatus.Compiling,\n RequestStatus.RequestMade,\n RequestStatus.Delayed,\n RequestStatus.Approving,\n RequestStatus.Secondary,\n RequestStatus.Enriching,\n RequestStatus.Waiting,\n RequestStatus.SecondaryApproving,\n ],\n createdAtAfter,\n createdAtBefore,\n updatedAtBefore,\n updatedAtAfter,\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** The request actions that should be restarted */\n requestActions: RequestAction[];\n /** Transcend API key authentication */\n auth: string;\n /** Concurrency limit for approving */\n concurrency?: number;\n /** The request statuses to mark silent */\n statuses?: RequestStatus[];\n /** The set of privacy requests to mark silent */\n requestIds?: string[];\n /** Filter for requests created before this date */\n createdAtBefore?: Date;\n /** Filter for requests created after this date */\n createdAtAfter?: Date;\n /** Filter for requests updated before this date */\n updatedAtBefore?: Date;\n /** Filter for requests updated after this date */\n updatedAtAfter?: Date;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<number> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Time duration\n const t0 = new Date().getTime();\n // create a new progress bar instance and use shades_classic theme\n const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);\n\n // Pull in the requests\n const allRequests = await fetchAllRequests(client, {\n actions: requestActions,\n statuses,\n createdAtBefore,\n createdAtAfter,\n updatedAtBefore,\n updatedAtAfter,\n isSilent: false,\n requestIds,\n });\n\n // Notify Transcend\n logger.info(colors.magenta(`Marking \"${allRequests.length}\" as silent mode.`));\n\n let total = 0;\n progressBar.start(allRequests.length, 0);\n await map(\n allRequests,\n async (requestToMarkSilent) => {\n await makeGraphQLRequest(client, UPDATE_PRIVACY_REQUEST, {\n variables: {\n input: {\n id: requestToMarkSilent.id,\n isSilent: true,\n },\n },\n logger,\n });\n\n total += 1;\n progressBar.update(total);\n },\n { concurrency },\n );\n\n progressBar.stop();\n const t1 = new Date().getTime();\n const totalTime = t1 - t0;\n\n logger.info(\n colors.green(\n `Successfully marked ${total} requests as silent mode in \"${totalTime / 1000}\" seconds!`,\n ),\n );\n return allRequests.length;\n}\n"],"mappings":"4ZAgBA,eAAsB,EAA0B,CAC9C,iBACA,OACA,aACA,WAAW,CACT,EAAc,UACd,EAAc,YACd,EAAc,QACd,EAAc,UACd,EAAc,UACd,EAAc,UACd,EAAc,QACd,EAAc,mBACf,CACD,iBACA,kBACA,kBACA,iBACA,cAAc,IACd,eAAe,GAsBG,CAElB,IAAM,EAAS,EAA4B,EAAc,EAAK,CAGxD,EAAK,IAAI,MAAM,CAAC,SAAS,CAEzB,EAAc,IAAI,EAAY,UAAU,EAAE,CAAE,EAAY,QAAQ,eAAe,CAG/E,EAAc,MAAM,EAAiB,EAAQ,CACjD,QAAS,EACT,WACA,kBACA,iBACA,kBACA,iBACA,SAAU,GACV,aACD,CAAC,CAGF,EAAO,KAAK,EAAO,QAAQ,YAAY,EAAY,OAAO,mBAAmB,CAAC,CAE9E,IAAI,EAAQ,EACZ,EAAY,MAAM,EAAY,OAAQ,EAAE,CACxC,MAAM,EACJ,EACA,KAAO,IAAwB,CAC7B,MAAM,EAAmB,EAAQ,EAAwB,CACvD,UAAW,CACT,MAAO,CACL,GAAI,EAAoB,GACxB,SAAU,GACX,CACF,CACD,SACD,CAAC,CAEF,GAAS,EACT,EAAY,OAAO,EAAM,EAE3B,CAAE,cAAa,CAChB,CAED,EAAY,MAAM,CAElB,IAAM,EADK,IAAI,MAAM,CAAC,SAAS,CACR,EAOvB,OALA,EAAO,KACL,EAAO,MACL,uBAAuB,EAAM,+BAA+B,EAAY,IAAK,YAC9E,CACF,CACM,EAAY"}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./constants-muOBBQA_.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{r as n}from"./request-DfkRPQFr.mjs";import{r}from"./fetchAllRequests-CHHdyb4Q.mjs";import{RequestAction as i}from"@transcend-io/privacy-types";import a from"colors";import{buildTranscendGraphQLClient as o,fetchAllTemplates as s,makeGraphQLRequest as c}from"@transcend-io/sdk";import{map as l}from"@transcend-io/utils";import u from"cli-progress";async function d({requestActions:d=Object.values(i),auth:f,requestIds:p,createdAtBefore:m,days:h=45,daysLeft:g=10,createdAtAfter:_,updatedAtBefore:v,updatedAtAfter:y,emailTemplate:b=`Additional Time Needed`,concurrency:x=100,transcendUrl:S=e}){let C=o(S,f),w=new Date().getTime(),T=new u.SingleBar({},u.Presets.shades_classic),E=(await s(C,{logger:t,filterBy:{title:b}})).find(e=>e.title===b);if(!E)throw Error(`Failed to find a template with title: "${b}"`);let D=await r(C,{actions:d,createdAtBefore:m,createdAtAfter:_,updatedAtBefore:v,updatedAtAfter:y,isSilent:!1,isClosed:!1,requestIds:p});D=D.filter(e=>typeof e.daysRemaining==`number`&&e.daysRemaining<g),t.info(a.magenta(`Notifying "${D.length}" that more time is needed.`));let O=0;T.start(D.length,0),await l(D,async e=>{await c(C,n,{variables:{input:{requestId:e.id,template:E.template.defaultMessage,subject:E.subject.defaultMessage,additionalTime:h}},logger:t}),O+=1,T.update(O)},{concurrency:x}),T.stop();let k=new Date().getTime()-w;return t.info(a.green(`Successfully marked ${O} requests as silent mode in "${k/1e3}" seconds!`)),D.length}export{d as t};
2
- //# sourceMappingURL=notifyPrivacyRequestsAdditionalTime-BUdhSCNL.mjs.map
1
+ import{a as e}from"./constants-TpID7AXE.mjs";import{t}from"./logger-Bj782ZYD.mjs";import{r as n}from"./request-DfkRPQFr.mjs";import{r}from"./fetchAllRequests-CHHdyb4Q.mjs";import{RequestAction as i}from"@transcend-io/privacy-types";import a from"colors";import{buildTranscendGraphQLClient as o,fetchAllTemplates as s,makeGraphQLRequest as c}from"@transcend-io/sdk";import{map as l}from"@transcend-io/utils";import u from"cli-progress";async function d({requestActions:d=Object.values(i),auth:f,requestIds:p,createdAtBefore:m,days:h=45,daysLeft:g=10,createdAtAfter:_,updatedAtBefore:v,updatedAtAfter:y,emailTemplate:b=`Additional Time Needed`,concurrency:x=100,transcendUrl:S=e}){let C=o(S,f),w=new Date().getTime(),T=new u.SingleBar({},u.Presets.shades_classic),E=(await s(C,{logger:t,filterBy:{title:b}})).find(e=>e.title===b);if(!E)throw Error(`Failed to find a template with title: "${b}"`);let D=await r(C,{actions:d,createdAtBefore:m,createdAtAfter:_,updatedAtBefore:v,updatedAtAfter:y,isSilent:!1,isClosed:!1,requestIds:p});D=D.filter(e=>typeof e.daysRemaining==`number`&&e.daysRemaining<g),t.info(a.magenta(`Notifying "${D.length}" that more time is needed.`));let O=0;T.start(D.length,0),await l(D,async e=>{await c(C,n,{variables:{input:{requestId:e.id,template:E.template.defaultMessage,subject:E.subject.defaultMessage,additionalTime:h}},logger:t}),O+=1,T.update(O)},{concurrency:x}),T.stop();let k=new Date().getTime()-w;return t.info(a.green(`Successfully marked ${O} requests as silent mode in "${k/1e3}" seconds!`)),D.length}export{d as t};
2
+ //# sourceMappingURL=notifyPrivacyRequestsAdditionalTime-CmhFE4b0.mjs.map