dicom-curate 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/applyMappingsWorker.js +6 -6
- package/dist/esm/curateOne.js +6 -6
- package/dist/esm/index.js +6 -6
- package/dist/types/curateOne.d.ts +1 -1
- package/dist/types/types.d.ts +4 -1
- package/dist/umd/dicom-curate.umd.js +12 -12
- package/dist/umd/dicom-curate.umd.js.map +1 -1
- package/dist/umd/dicom-curate.umd.min.js +2 -2
- package/dist/umd/dicom-curate.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -80107,8 +80107,8 @@ async function curateOne({
|
|
|
80107
80107
|
console.error(
|
|
80108
80108
|
`Upload failed for ${uploadUrl}: ${resp.status} ${resp.statusText}`
|
|
80109
80109
|
);
|
|
80110
|
-
clonedMapResults.
|
|
80111
|
-
clonedMapResults.
|
|
80110
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
80111
|
+
clonedMapResults.uploadErrors.push(
|
|
80112
80112
|
`Upload failed: ${resp.status} ${resp.statusText}`
|
|
80113
80113
|
);
|
|
80114
80114
|
} else {
|
|
@@ -80121,8 +80121,8 @@ async function curateOne({
|
|
|
80121
80121
|
}
|
|
80122
80122
|
} catch (e4) {
|
|
80123
80123
|
console.error("Upload error", e4);
|
|
80124
|
-
clonedMapResults.
|
|
80125
|
-
clonedMapResults.
|
|
80124
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
80125
|
+
clonedMapResults.uploadErrors.push(
|
|
80126
80126
|
`Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
80127
80127
|
);
|
|
80128
80128
|
}
|
|
@@ -80161,8 +80161,8 @@ async function curateOne({
|
|
|
80161
80161
|
};
|
|
80162
80162
|
} catch (e4) {
|
|
80163
80163
|
console.error("S3 Upload error", e4);
|
|
80164
|
-
clonedMapResults.
|
|
80165
|
-
clonedMapResults.
|
|
80164
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
80165
|
+
clonedMapResults.uploadErrors.push(
|
|
80166
80166
|
`S3 Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
80167
80167
|
);
|
|
80168
80168
|
}
|
package/dist/esm/curateOne.js
CHANGED
|
@@ -73816,8 +73816,8 @@ async function curateOne({
|
|
|
73816
73816
|
console.error(
|
|
73817
73817
|
`Upload failed for ${uploadUrl}: ${resp.status} ${resp.statusText}`
|
|
73818
73818
|
);
|
|
73819
|
-
clonedMapResults.
|
|
73820
|
-
clonedMapResults.
|
|
73819
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
73820
|
+
clonedMapResults.uploadErrors.push(
|
|
73821
73821
|
`Upload failed: ${resp.status} ${resp.statusText}`
|
|
73822
73822
|
);
|
|
73823
73823
|
} else {
|
|
@@ -73830,8 +73830,8 @@ async function curateOne({
|
|
|
73830
73830
|
}
|
|
73831
73831
|
} catch (e4) {
|
|
73832
73832
|
console.error("Upload error", e4);
|
|
73833
|
-
clonedMapResults.
|
|
73834
|
-
clonedMapResults.
|
|
73833
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
73834
|
+
clonedMapResults.uploadErrors.push(
|
|
73835
73835
|
`Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
73836
73836
|
);
|
|
73837
73837
|
}
|
|
@@ -73870,8 +73870,8 @@ async function curateOne({
|
|
|
73870
73870
|
};
|
|
73871
73871
|
} catch (e4) {
|
|
73872
73872
|
console.error("S3 Upload error", e4);
|
|
73873
|
-
clonedMapResults.
|
|
73874
|
-
clonedMapResults.
|
|
73873
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
73874
|
+
clonedMapResults.uploadErrors.push(
|
|
73875
73875
|
`S3 Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
73876
73876
|
);
|
|
73877
73877
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -81667,8 +81667,8 @@ async function curateOne({
|
|
|
81667
81667
|
console.error(
|
|
81668
81668
|
`Upload failed for ${uploadUrl}: ${resp.status} ${resp.statusText}`
|
|
81669
81669
|
);
|
|
81670
|
-
clonedMapResults.
|
|
81671
|
-
clonedMapResults.
|
|
81670
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
81671
|
+
clonedMapResults.uploadErrors.push(
|
|
81672
81672
|
`Upload failed: ${resp.status} ${resp.statusText}`
|
|
81673
81673
|
);
|
|
81674
81674
|
} else {
|
|
@@ -81681,8 +81681,8 @@ async function curateOne({
|
|
|
81681
81681
|
}
|
|
81682
81682
|
} catch (e4) {
|
|
81683
81683
|
console.error("Upload error", e4);
|
|
81684
|
-
clonedMapResults.
|
|
81685
|
-
clonedMapResults.
|
|
81684
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
81685
|
+
clonedMapResults.uploadErrors.push(
|
|
81686
81686
|
`Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
81687
81687
|
);
|
|
81688
81688
|
}
|
|
@@ -81721,8 +81721,8 @@ async function curateOne({
|
|
|
81721
81721
|
};
|
|
81722
81722
|
} catch (e4) {
|
|
81723
81723
|
console.error("S3 Upload error", e4);
|
|
81724
|
-
clonedMapResults.
|
|
81725
|
-
clonedMapResults.
|
|
81724
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
81725
|
+
clonedMapResults.uploadErrors.push(
|
|
81726
81726
|
`S3 Upload error: ${e4 instanceof Error ? e4.message : String(e4)}`
|
|
81727
81727
|
);
|
|
81728
81728
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TFileInfo, THashMethod,
|
|
1
|
+
import type { TFileInfo, THashMethod, TMappingOptions, TMapResults, TOutputTarget } from './types';
|
|
2
2
|
export type TCurateOneArgs = {
|
|
3
3
|
fileInfo: TFileInfo;
|
|
4
4
|
outputTarget: TOutputTarget;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TColumnMappings, TMappedValues, Row } from './csvMapping';
|
|
2
1
|
import type { TNaturalData } from 'dcmjs';
|
|
3
2
|
import type { SpecPart } from './composeSpecs';
|
|
3
|
+
import type { Row, TColumnMappings, TMappedValues } from './csvMapping';
|
|
4
4
|
export type Iso8601Duration = string;
|
|
5
5
|
export type TPs315Options = {
|
|
6
6
|
cleanDescriptorsOption: boolean;
|
|
@@ -131,6 +131,9 @@ export type TMapResults = {
|
|
|
131
131
|
};
|
|
132
132
|
anomalies: string[];
|
|
133
133
|
errors: string[];
|
|
134
|
+
/** Upload/write failures only (retryable). Separate from `errors` which
|
|
135
|
+
* contains DICOM validation issues that cannot be resolved by retrying. */
|
|
136
|
+
uploadErrors?: string[];
|
|
134
137
|
quarantine: {
|
|
135
138
|
[objectPath: string]: string;
|
|
136
139
|
};
|
|
@@ -49509,8 +49509,8 @@
|
|
|
49509
49509
|
});
|
|
49510
49510
|
if (!resp.ok) {
|
|
49511
49511
|
console.error(`Upload failed for ${uploadUrl}: ${resp.status} ${resp.statusText}`);
|
|
49512
|
-
clonedMapResults.
|
|
49513
|
-
clonedMapResults.
|
|
49512
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
49513
|
+
clonedMapResults.uploadErrors.push(`Upload failed: ${resp.status} ${resp.statusText}`);
|
|
49514
49514
|
}
|
|
49515
49515
|
else {
|
|
49516
49516
|
// attach upload info if available
|
|
@@ -49524,8 +49524,8 @@
|
|
|
49524
49524
|
}
|
|
49525
49525
|
catch (e) {
|
|
49526
49526
|
console.error('Upload error', e);
|
|
49527
|
-
clonedMapResults.
|
|
49528
|
-
clonedMapResults.
|
|
49527
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
49528
|
+
clonedMapResults.uploadErrors.push(`Upload error: ${e instanceof Error ? e.message : String(e)}`);
|
|
49529
49529
|
}
|
|
49530
49530
|
}
|
|
49531
49531
|
else if (outputTarget?.s3) {
|
|
@@ -49570,8 +49570,8 @@
|
|
|
49570
49570
|
}
|
|
49571
49571
|
catch (e) {
|
|
49572
49572
|
console.error('S3 Upload error', e);
|
|
49573
|
-
clonedMapResults.
|
|
49574
|
-
clonedMapResults.
|
|
49573
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
49574
|
+
clonedMapResults.uploadErrors.push(`S3 Upload error: ${e instanceof Error ? e.message : String(e)}`);
|
|
49575
49575
|
}
|
|
49576
49576
|
}
|
|
49577
49577
|
}
|
|
@@ -111646,8 +111646,8 @@
|
|
|
111646
111646
|
});
|
|
111647
111647
|
if (!resp.ok) {
|
|
111648
111648
|
console.error(`Upload failed for ${uploadUrl}: ${resp.status} ${resp.statusText}`);
|
|
111649
|
-
clonedMapResults.
|
|
111650
|
-
clonedMapResults.
|
|
111649
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
111650
|
+
clonedMapResults.uploadErrors.push(`Upload failed: ${resp.status} ${resp.statusText}`);
|
|
111651
111651
|
}
|
|
111652
111652
|
else {
|
|
111653
111653
|
// attach upload info if available
|
|
@@ -111661,8 +111661,8 @@
|
|
|
111661
111661
|
}
|
|
111662
111662
|
catch (e) {
|
|
111663
111663
|
console.error('Upload error', e);
|
|
111664
|
-
clonedMapResults.
|
|
111665
|
-
clonedMapResults.
|
|
111664
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
111665
|
+
clonedMapResults.uploadErrors.push(`Upload error: ${e instanceof Error ? e.message : String(e)}`);
|
|
111666
111666
|
}
|
|
111667
111667
|
}
|
|
111668
111668
|
else if (outputTarget?.s3) {
|
|
@@ -111707,8 +111707,8 @@
|
|
|
111707
111707
|
}
|
|
111708
111708
|
catch (e) {
|
|
111709
111709
|
console.error('S3 Upload error', e);
|
|
111710
|
-
clonedMapResults.
|
|
111711
|
-
clonedMapResults.
|
|
111710
|
+
clonedMapResults.uploadErrors = clonedMapResults.uploadErrors ?? [];
|
|
111711
|
+
clonedMapResults.uploadErrors.push(`S3 Upload error: ${e instanceof Error ? e.message : String(e)}`);
|
|
111712
111712
|
}
|
|
111713
111713
|
}
|
|
111714
111714
|
}
|