@singi-labs/sifa-sdk 0.21.0 → 0.22.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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/write/certification.js +3 -3
- package/dist/schemas/write/certification.js.map +1 -1
- package/dist/schemas/write/course.js +5 -10
- package/dist/schemas/write/course.js.map +1 -1
- package/dist/schemas/write/education.js +3 -3
- package/dist/schemas/write/education.js.map +1 -1
- package/dist/schemas/write/honor.js +2 -2
- package/dist/schemas/write/honor.js.map +1 -1
- package/dist/schemas/write/index.cjs +25 -26
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +19 -19
- package/dist/schemas/write/index.d.ts +19 -19
- package/dist/schemas/write/investment.js +3 -3
- package/dist/schemas/write/investment.js.map +1 -1
- package/dist/schemas/write/involvement.js +3 -3
- package/dist/schemas/write/involvement.js.map +1 -1
- package/dist/schemas/write/position.js +8 -3
- package/dist/schemas/write/position.js.map +1 -1
- package/dist/schemas/write/project.js +3 -3
- package/dist/schemas/write/project.js.map +1 -1
- package/dist/schemas/write/publication.js +2 -2
- package/dist/schemas/write/publication.js.map +1 -1
- package/dist/schemas/write/shared.js +6 -0
- package/dist/schemas/write/shared.js.map +1 -1
- package/dist/schemas/write/volunteering.js +3 -3
- package/dist/schemas/write/volunteering.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3819,6 +3819,11 @@ function isValidPartialDate(input) {
|
|
|
3819
3819
|
if (typeof input !== "string") return false;
|
|
3820
3820
|
return PARTIAL_DATE_RE.test(input) || isValidDateOnly(input);
|
|
3821
3821
|
}
|
|
3822
|
+
var DATETIME_DAY_RE = /^(\d{4}-\d{2}-\d{2})T\d{2}:\d{2}/;
|
|
3823
|
+
zod.z.string().transform((v) => DATETIME_DAY_RE.exec(v)?.[1] ?? v).refine(
|
|
3824
|
+
(v) => v === "" || isValidPartialDate(v),
|
|
3825
|
+
"must be a valid YYYY, YYYY-MM or YYYY-MM-DD date"
|
|
3826
|
+
).nullable().optional();
|
|
3822
3827
|
zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
|
|
3823
3828
|
zod.z.object({
|
|
3824
3829
|
url: zod.z.string().max(2048).refine((v) => httpUrlOrNull(v) !== null, "must be an http(s) URL"),
|
|
@@ -8005,7 +8010,7 @@ function describeSifaRecord(collection, value) {
|
|
|
8005
8010
|
}
|
|
8006
8011
|
|
|
8007
8012
|
// src/index.ts
|
|
8008
|
-
var SIFA_SDK_VERSION = "0.
|
|
8013
|
+
var SIFA_SDK_VERSION = "0.22.0";
|
|
8009
8014
|
|
|
8010
8015
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
8011
8016
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|