@thejob/schema 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -0
- package/package.json +1 -1
- package/src/taxonomy/taxonomy.schema.ts +13 -0
package/dist/index.cjs
CHANGED
|
@@ -1072,6 +1072,17 @@ var UnmatchedTermSchema = (0, import_yup16.object)({
|
|
|
1072
1072
|
context: (0, import_yup16.string)().optional()
|
|
1073
1073
|
}).required()
|
|
1074
1074
|
).default([]).label("Sources"),
|
|
1075
|
+
/**
|
|
1076
|
+
* Where the term was seen, capped: the caller's title and the terms sent with
|
|
1077
|
+
* it. What the resolver reads to tell "CTS" on a chip-design posting from "CTS"
|
|
1078
|
+
* on an ad-tech one; a bare term cannot carry that.
|
|
1079
|
+
*/
|
|
1080
|
+
samples: (0, import_yup16.array)(
|
|
1081
|
+
(0, import_yup16.object)({
|
|
1082
|
+
title: (0, import_yup16.string)().optional(),
|
|
1083
|
+
siblings: (0, import_yup16.array)((0, import_yup16.string)().required()).default([])
|
|
1084
|
+
}).required()
|
|
1085
|
+
).default([]).label("Samples"),
|
|
1075
1086
|
resolution: (0, import_yup16.string)().oneOf(SupportedUnmatchedResolutions).required().label("Resolution"),
|
|
1076
1087
|
resolvedConceptId: (0, import_yup16.string)().optional().label("Resolved Concept"),
|
|
1077
1088
|
/** `ambiguous`: the concept exists; the caller gave no context that picked one. */
|
package/dist/index.d.cts
CHANGED
|
@@ -3832,6 +3832,10 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3832
3832
|
context?: string | undefined;
|
|
3833
3833
|
service: string;
|
|
3834
3834
|
}[];
|
|
3835
|
+
samples: {
|
|
3836
|
+
title?: string | undefined;
|
|
3837
|
+
siblings: string[];
|
|
3838
|
+
}[];
|
|
3835
3839
|
resolution: NonNullable<"pending" | "rejected" | "added" | undefined>;
|
|
3836
3840
|
resolvedConceptId: string | undefined;
|
|
3837
3841
|
reason: "ambiguous" | undefined;
|
|
@@ -3845,6 +3849,7 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3845
3849
|
firstSeenAt: undefined;
|
|
3846
3850
|
lastSeenAt: undefined;
|
|
3847
3851
|
sources: never[];
|
|
3852
|
+
samples: never[];
|
|
3848
3853
|
resolution: undefined;
|
|
3849
3854
|
resolvedConceptId: undefined;
|
|
3850
3855
|
reason: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -3832,6 +3832,10 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3832
3832
|
context?: string | undefined;
|
|
3833
3833
|
service: string;
|
|
3834
3834
|
}[];
|
|
3835
|
+
samples: {
|
|
3836
|
+
title?: string | undefined;
|
|
3837
|
+
siblings: string[];
|
|
3838
|
+
}[];
|
|
3835
3839
|
resolution: NonNullable<"pending" | "rejected" | "added" | undefined>;
|
|
3836
3840
|
resolvedConceptId: string | undefined;
|
|
3837
3841
|
reason: "ambiguous" | undefined;
|
|
@@ -3845,6 +3849,7 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3845
3849
|
firstSeenAt: undefined;
|
|
3846
3850
|
lastSeenAt: undefined;
|
|
3847
3851
|
sources: never[];
|
|
3852
|
+
samples: never[];
|
|
3848
3853
|
resolution: undefined;
|
|
3849
3854
|
resolvedConceptId: undefined;
|
|
3850
3855
|
reason: undefined;
|
package/dist/index.js
CHANGED
|
@@ -757,6 +757,17 @@ var UnmatchedTermSchema = object14({
|
|
|
757
757
|
context: string10().optional()
|
|
758
758
|
}).required()
|
|
759
759
|
).default([]).label("Sources"),
|
|
760
|
+
/**
|
|
761
|
+
* Where the term was seen, capped: the caller's title and the terms sent with
|
|
762
|
+
* it. What the resolver reads to tell "CTS" on a chip-design posting from "CTS"
|
|
763
|
+
* on an ad-tech one; a bare term cannot carry that.
|
|
764
|
+
*/
|
|
765
|
+
samples: array8(
|
|
766
|
+
object14({
|
|
767
|
+
title: string10().optional(),
|
|
768
|
+
siblings: array8(string10().required()).default([])
|
|
769
|
+
}).required()
|
|
770
|
+
).default([]).label("Samples"),
|
|
760
771
|
resolution: string10().oneOf(SupportedUnmatchedResolutions).required().label("Resolution"),
|
|
761
772
|
resolvedConceptId: string10().optional().label("Resolved Concept"),
|
|
762
773
|
/** `ambiguous`: the concept exists; the caller gave no context that picked one. */
|
package/package.json
CHANGED
|
@@ -192,6 +192,19 @@ export const UnmatchedTermSchema = object({
|
|
|
192
192
|
)
|
|
193
193
|
.default([])
|
|
194
194
|
.label("Sources"),
|
|
195
|
+
/**
|
|
196
|
+
* Where the term was seen, capped: the caller's title and the terms sent with
|
|
197
|
+
* it. What the resolver reads to tell "CTS" on a chip-design posting from "CTS"
|
|
198
|
+
* on an ad-tech one; a bare term cannot carry that.
|
|
199
|
+
*/
|
|
200
|
+
samples: array(
|
|
201
|
+
object({
|
|
202
|
+
title: string().optional(),
|
|
203
|
+
siblings: array(string().required()).default([]),
|
|
204
|
+
}).required(),
|
|
205
|
+
)
|
|
206
|
+
.default([])
|
|
207
|
+
.label("Samples"),
|
|
195
208
|
resolution: string().oneOf(SupportedUnmatchedResolutions).required().label("Resolution"),
|
|
196
209
|
resolvedConceptId: string().optional().label("Resolved Concept"),
|
|
197
210
|
/** `ambiguous`: the concept exists; the caller gave no context that picked one. */
|