@flowmind/cli 0.3.9 → 0.3.10
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.js +641 -473
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -85,8 +85,8 @@ var o = r().default;
|
|
|
85
85
|
function i(e4, { instancePath: a5 = "", parentData: m6, parentDataProperty: d5, rootData: l4 = e4 } = {}) {
|
|
86
86
|
let p6 = null, s7 = 0;
|
|
87
87
|
if (s7 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
88
|
-
let
|
|
89
|
-
if (e4.success === void 0 && (
|
|
88
|
+
let o12;
|
|
89
|
+
if (e4.success === void 0 && (o12 = "success") || e4.status === void 0 && (o12 = "status") || e4.message === void 0 && (o12 = "message") || e4.data === void 0 && (o12 = "data") || e4.requestId === void 0 && (o12 = "requestId") || e4.error === void 0 && (o12 = "error") || e4.details === void 0 && (o12 = "details")) return i.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
90
90
|
{
|
|
91
91
|
let f3 = s7;
|
|
92
92
|
for (let r2 in e4) if (!(r2 === "data" || r2 === "details" || r2 === "error" || r2 === "message" || r2 === "requestId" || r2 === "status" || r2 === "success")) {
|
|
@@ -647,7 +647,7 @@ import { join as join7 } from "node:path";
|
|
|
647
647
|
import { readdir as readdir5 } from "node:fs/promises";
|
|
648
648
|
|
|
649
649
|
// ../../packages/contracts/src/generated/revision.ts
|
|
650
|
-
var contractRevision = "
|
|
650
|
+
var contractRevision = "0ece835f1c501854ec0e187f333d6ea186652f01558c642beaaff37e55b883a4";
|
|
651
651
|
|
|
652
652
|
// ../../packages/contracts/src/generated/validators/apiError.js
|
|
653
653
|
var m = { additionalProperties: false, properties: { data: { enum: [null], nullable: true, type: "object" }, details: {}, error: { enum: ["BAD_REQUEST", "PUBLICATION_REVISION_CONFLICT", "PUBLICATION_STALE_ENTRIES", "SHARE_STALE_ENTRIES", "SLUG_TAKEN", "CONFLICT", "EXPIRED", "FORBIDDEN", "HUMAN_SESSION_REQUIRED", "INTERNAL_ERROR", "INVALID_API_RESPONSE", "MAX_ACTIVE_JOBS_REACHED", "NOT_FOUND", "PLAN_LIMIT_REACHED", "QUOTA_EXCEEDED", "RATE_LIMIT_EXCEEDED", "SERVICE_UNAVAILABLE", "UNDECLARED_API_OPERATION", "UNAUTHENTICATED", "VALIDATION_FAILED"], type: "string" }, message: { type: "string" }, requestId: { minLength: 1, type: "string" }, status: { maximum: 599, minimum: 400, type: "integer" }, success: { enum: [false], type: "boolean" } }, required: ["success", "status", "message", "data", "requestId", "error", "details"], type: "object" };
|
|
@@ -664,17 +664,17 @@ function t2(r2, { instancePath: i5 = "", parentData: E, parentDataProperty: d5,
|
|
|
664
664
|
}
|
|
665
665
|
if (l4 === s7) {
|
|
666
666
|
if (r2.data !== void 0) {
|
|
667
|
-
let e4 = r2.data,
|
|
667
|
+
let e4 = r2.data, o12 = s7;
|
|
668
668
|
if (!(e4 && typeof e4 == "object" && !Array.isArray(e4)) && e4 !== null) return t2.errors = [{ instancePath: i5 + "/data", schemaPath: "#/properties/data/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
669
669
|
if (e4 !== null) return t2.errors = [{ instancePath: i5 + "/data", schemaPath: "#/properties/data/enum", keyword: "enum", params: { allowedValues: m.properties.data.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
670
|
-
var a5 =
|
|
670
|
+
var a5 = o12 === s7;
|
|
671
671
|
} else var a5 = true;
|
|
672
672
|
if (a5) {
|
|
673
673
|
if (r2.error !== void 0) {
|
|
674
|
-
let e4 = r2.error,
|
|
674
|
+
let e4 = r2.error, o12 = s7;
|
|
675
675
|
if (typeof e4 != "string") return t2.errors = [{ instancePath: i5 + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
676
676
|
if (!(e4 === "BAD_REQUEST" || e4 === "PUBLICATION_REVISION_CONFLICT" || e4 === "PUBLICATION_STALE_ENTRIES" || e4 === "SHARE_STALE_ENTRIES" || e4 === "SLUG_TAKEN" || e4 === "CONFLICT" || e4 === "EXPIRED" || e4 === "FORBIDDEN" || e4 === "HUMAN_SESSION_REQUIRED" || e4 === "INTERNAL_ERROR" || e4 === "INVALID_API_RESPONSE" || e4 === "MAX_ACTIVE_JOBS_REACHED" || e4 === "NOT_FOUND" || e4 === "PLAN_LIMIT_REACHED" || e4 === "QUOTA_EXCEEDED" || e4 === "RATE_LIMIT_EXCEEDED" || e4 === "SERVICE_UNAVAILABLE" || e4 === "UNDECLARED_API_OPERATION" || e4 === "UNAUTHENTICATED" || e4 === "VALIDATION_FAILED")) return t2.errors = [{ instancePath: i5 + "/error", schemaPath: "#/properties/error/enum", keyword: "enum", params: { allowedValues: m.properties.error.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
677
|
-
var a5 =
|
|
677
|
+
var a5 = o12 === s7;
|
|
678
678
|
} else var a5 = true;
|
|
679
679
|
if (a5) {
|
|
680
680
|
if (r2.message !== void 0) {
|
|
@@ -684,27 +684,27 @@ function t2(r2, { instancePath: i5 = "", parentData: E, parentDataProperty: d5,
|
|
|
684
684
|
} else var a5 = true;
|
|
685
685
|
if (a5) {
|
|
686
686
|
if (r2.requestId !== void 0) {
|
|
687
|
-
let e4 = r2.requestId,
|
|
688
|
-
if (s7 ===
|
|
687
|
+
let e4 = r2.requestId, o12 = s7;
|
|
688
|
+
if (s7 === o12) if (typeof e4 == "string") {
|
|
689
689
|
if (o(e4) < 1) return t2.errors = [{ instancePath: i5 + "/requestId", schemaPath: "#/properties/requestId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
690
690
|
} else return t2.errors = [{ instancePath: i5 + "/requestId", schemaPath: "#/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
691
|
-
var a5 =
|
|
691
|
+
var a5 = o12 === s7;
|
|
692
692
|
} else var a5 = true;
|
|
693
693
|
if (a5) {
|
|
694
694
|
if (r2.status !== void 0) {
|
|
695
|
-
let e4 = r2.status,
|
|
695
|
+
let e4 = r2.status, o12 = s7;
|
|
696
696
|
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4))) return t2.errors = [{ instancePath: i5 + "/status", schemaPath: "#/properties/status/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
697
|
-
if (s7 ===
|
|
697
|
+
if (s7 === o12 && typeof e4 == "number" && isFinite(e4)) {
|
|
698
698
|
if (e4 > 599 || isNaN(e4)) return t2.errors = [{ instancePath: i5 + "/status", schemaPath: "#/properties/status/maximum", keyword: "maximum", params: { comparison: "<=", limit: 599 }, message: "must be <= 599" }], false;
|
|
699
699
|
if (e4 < 400 || isNaN(e4)) return t2.errors = [{ instancePath: i5 + "/status", schemaPath: "#/properties/status/minimum", keyword: "minimum", params: { comparison: ">=", limit: 400 }, message: "must be >= 400" }], false;
|
|
700
700
|
}
|
|
701
|
-
var a5 =
|
|
701
|
+
var a5 = o12 === s7;
|
|
702
702
|
} else var a5 = true;
|
|
703
703
|
if (a5) if (r2.success !== void 0) {
|
|
704
|
-
let e4 = r2.success,
|
|
704
|
+
let e4 = r2.success, o12 = s7;
|
|
705
705
|
if (typeof e4 != "boolean") return t2.errors = [{ instancePath: i5 + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
706
706
|
if (e4 !== false) return t2.errors = [{ instancePath: i5 + "/success", schemaPath: "#/properties/success/enum", keyword: "enum", params: { allowedValues: m.properties.success.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
707
|
-
var a5 =
|
|
707
|
+
var a5 = o12 === s7;
|
|
708
708
|
} else var a5 = true;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
@@ -751,17 +751,17 @@ function o2(e4, { instancePath: t8 = "", parentData: m6, parentDataProperty: f3,
|
|
|
751
751
|
// ../../packages/contracts/src/generated/validators/getV1Me200.js
|
|
752
752
|
var v = { additionalProperties: false, properties: { bio: { nullable: true, type: "string" }, displayName: { nullable: true, type: "string" }, headline: { nullable: true, type: "string" }, openTo: { items: { enum: ["collaborate", "mentor", "mentee", "accountability"], type: "string" }, type: "array" }, profileState: { enum: ["private", "public", "listed"], type: "string" }, userId: { type: "string" }, username: { nullable: true, type: "string" }, visibilityNotice: { $ref: "urn:flowmind:schema:VisibilityNotice" } }, required: ["userId", "username", "displayName", "bio", "profileState", "openTo", "headline", "visibilityNotice"], type: "object" };
|
|
753
753
|
function a(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4, rootData: y3 = e4 } = {}) {
|
|
754
|
-
let
|
|
754
|
+
let o12 = null, t8 = 0;
|
|
755
755
|
if (t8 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
756
756
|
let n7;
|
|
757
757
|
if (e4.userId === void 0 && (n7 = "userId") || e4.username === void 0 && (n7 = "username") || e4.displayName === void 0 && (n7 = "displayName") || e4.bio === void 0 && (n7 = "bio") || e4.profileState === void 0 && (n7 = "profileState") || e4.openTo === void 0 && (n7 = "openTo") || e4.headline === void 0 && (n7 = "headline") || e4.visibilityNotice === void 0 && (n7 = "visibilityNotice")) return a.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
758
758
|
{
|
|
759
|
-
let
|
|
759
|
+
let h11 = t8;
|
|
760
760
|
for (let r2 in e4) if (!(r2 === "bio" || r2 === "displayName" || r2 === "headline" || r2 === "openTo" || r2 === "profileState" || r2 === "userId" || r2 === "username" || r2 === "visibilityNotice")) {
|
|
761
761
|
return a.errors = [{ instancePath: i5, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
762
762
|
break;
|
|
763
763
|
}
|
|
764
|
-
if (
|
|
764
|
+
if (h11 === t8) {
|
|
765
765
|
if (e4.bio !== void 0) {
|
|
766
766
|
let r2 = e4.bio, l4 = t8;
|
|
767
767
|
if (typeof r2 != "string" && r2 !== null) return a.errors = [{ instancePath: i5 + "/bio", schemaPath: "#/properties/bio/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
@@ -816,7 +816,7 @@ function a(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4, r
|
|
|
816
816
|
} else var s7 = true;
|
|
817
817
|
if (s7) if (e4.visibilityNotice !== void 0) {
|
|
818
818
|
let r2 = t8;
|
|
819
|
-
o2(e4.visibilityNotice, { instancePath: i5 + "/visibilityNotice", parentData: e4, parentDataProperty: "visibilityNotice", rootData: y3 }) || (
|
|
819
|
+
o2(e4.visibilityNotice, { instancePath: i5 + "/visibilityNotice", parentData: e4, parentDataProperty: "visibilityNotice", rootData: y3 }) || (o12 = o12 === null ? o2.errors : o12.concat(o2.errors), t8 = o12.length);
|
|
820
820
|
var s7 = r2 === t8;
|
|
821
821
|
} else var s7 = true;
|
|
822
822
|
}
|
|
@@ -828,22 +828,22 @@ function a(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4, r
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
} else return a.errors = [{ instancePath: i5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
831
|
-
return a.errors =
|
|
831
|
+
return a.errors = o12, t8 === 0;
|
|
832
832
|
}
|
|
833
833
|
function f(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4, rootData: y3 = e4 } = {}) {
|
|
834
|
-
let
|
|
835
|
-
i(e4, { instancePath: i5, parentData: g, parentDataProperty: b4, rootData: y3 }) || (
|
|
834
|
+
let o12 = null, t8 = 0, s7 = t8;
|
|
835
|
+
i(e4, { instancePath: i5, parentData: g, parentDataProperty: b4, rootData: y3 }) || (o12 = o12 === null ? i.errors : o12.concat(i.errors), t8 = o12.length);
|
|
836
836
|
var p6 = s7 === t8;
|
|
837
837
|
if (p6) {
|
|
838
838
|
let n7 = t8;
|
|
839
839
|
if (t8 === n7) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
840
840
|
let r2;
|
|
841
841
|
if (e4.data === void 0 && (r2 = "data")) return f.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: r2 }, message: "must have required property '" + r2 + "'" }], false;
|
|
842
|
-
e4.data !== void 0 && (a(e4.data, { instancePath: i5 + "/data", parentData: e4, parentDataProperty: "data", rootData: y3 }) || (
|
|
842
|
+
e4.data !== void 0 && (a(e4.data, { instancePath: i5 + "/data", parentData: e4, parentDataProperty: "data", rootData: y3 }) || (o12 = o12 === null ? a.errors : o12.concat(a.errors), t8 = o12.length));
|
|
843
843
|
} else return f.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
844
844
|
var p6 = n7 === t8;
|
|
845
845
|
}
|
|
846
|
-
return f.errors =
|
|
846
|
+
return f.errors = o12, t8 === 0;
|
|
847
847
|
}
|
|
848
848
|
var A = f;
|
|
849
849
|
|
|
@@ -1538,12 +1538,12 @@ var U = c((r2) => {
|
|
|
1538
1538
|
function y3(a5) {
|
|
1539
1539
|
return a5 % 4 === 0 && (a5 % 100 !== 0 || a5 % 400 === 0);
|
|
1540
1540
|
}
|
|
1541
|
-
var O2 = /^(\d\d\d\d)-(\d\d)-(\d\d)$/,
|
|
1541
|
+
var O2 = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, h11 = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1542
1542
|
function b4(a5) {
|
|
1543
1543
|
let d5 = O2.exec(a5);
|
|
1544
1544
|
if (!d5) return false;
|
|
1545
1545
|
let t8 = +d5[1], e4 = +d5[2], f3 = +d5[3];
|
|
1546
|
-
return e4 >= 1 && e4 <= 12 && f3 >= 1 && f3 <= (e4 === 2 && y3(t8) ? 29 :
|
|
1546
|
+
return e4 >= 1 && e4 <= 12 && f3 >= 1 && f3 <= (e4 === 2 && y3(t8) ? 29 : h11[e4]);
|
|
1547
1547
|
}
|
|
1548
1548
|
function m6(a5, d5) {
|
|
1549
1549
|
if (a5 && d5) return a5 > d5 ? 1 : a5 < d5 ? -1 : 0;
|
|
@@ -1553,11 +1553,11 @@ var U = c((r2) => {
|
|
|
1553
1553
|
return function(t8) {
|
|
1554
1554
|
let e4 = s7.exec(t8);
|
|
1555
1555
|
if (!e4) return false;
|
|
1556
|
-
let f3 = +e4[1], u4 = +e4[2], i5 = +e4[3], M = e4[4], l4 = e4[5] === "-" ? -1 : 1,
|
|
1557
|
-
if (
|
|
1556
|
+
let f3 = +e4[1], u4 = +e4[2], i5 = +e4[3], M = e4[4], l4 = e4[5] === "-" ? -1 : 1, _2 = +(e4[6] || 0), p6 = +(e4[7] || 0);
|
|
1557
|
+
if (_2 > 23 || p6 > 59 || a5 && !M) return false;
|
|
1558
1558
|
if (f3 <= 23 && u4 <= 59 && i5 < 60) return true;
|
|
1559
|
-
let
|
|
1560
|
-
return (T2 === 23 || T2 === -1) && (
|
|
1559
|
+
let o12 = u4 - p6 * l4, T2 = f3 - _2 * l4 - (o12 < 0 ? 1 : 0);
|
|
1560
|
+
return (T2 === 23 || T2 === -1) && (o12 === 59 || o12 === -1) && i5 < 61;
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
1563
|
function $2(a5, d5) {
|
|
@@ -1620,6 +1620,179 @@ var U = c((r2) => {
|
|
|
1620
1620
|
// ../../packages/contracts/src/generated/validators/shared/J43X2ZUC.js
|
|
1621
1621
|
var t3 = U().fullFormats.date;
|
|
1622
1622
|
|
|
1623
|
+
// ../../packages/contracts/src/generated/validators/shared/VSRNQHIL.js
|
|
1624
|
+
var e = U().fullFormats["date-time"];
|
|
1625
|
+
|
|
1626
|
+
// ../../packages/contracts/src/generated/validators/shared/CA7CC2WJ.js
|
|
1627
|
+
var a2 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
|
|
1628
|
+
|
|
1629
|
+
// ../../packages/contracts/src/generated/validators/getV1MeContinuation200.js
|
|
1630
|
+
var _ = { additionalProperties: false, properties: { resolutionId: { format: "uuid", type: "string" }, resolutionVersion: { type: "string" }, step: { additionalProperties: false, nullable: true, properties: { project: { additionalProperties: false, nullable: true, properties: { color: { type: "string" }, icon: { type: "string" }, id: { format: "uuid", type: "string" }, name: { type: "string" } }, required: ["id", "name", "color", "icon"], type: "object" }, savedAt: { format: "date-time", type: "string" }, source: { enum: ["session", "close"], type: "string" }, sourceDay: { format: "date", type: "string" }, sourceId: { format: "uuid", type: "string" }, text: { maxLength: 500, minLength: 1, type: "string" } }, required: ["source", "sourceId", "text", "savedAt", "sourceDay", "project"], type: "object" } }, required: ["resolutionId", "resolutionVersion", "step"], type: "object" };
|
|
1631
|
+
function o3(i5, { instancePath: s7 = "", parentData: w3, parentDataProperty: A2, rootData: j2 = i5 } = {}) {
|
|
1632
|
+
let u4 = null, e4 = 0;
|
|
1633
|
+
if (e4 === 0) if (i5 && typeof i5 == "object" && !Array.isArray(i5)) {
|
|
1634
|
+
let y3;
|
|
1635
|
+
if (i5.resolutionId === void 0 && (y3 = "resolutionId") || i5.resolutionVersion === void 0 && (y3 = "resolutionVersion") || i5.step === void 0 && (y3 = "step")) return o3.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: y3 }, message: "must have required property '" + y3 + "'" }], false;
|
|
1636
|
+
{
|
|
1637
|
+
let g = e4;
|
|
1638
|
+
for (let t8 in i5) if (!(t8 === "resolutionId" || t8 === "resolutionVersion" || t8 === "step")) {
|
|
1639
|
+
return o3.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t8 }, message: "must NOT have additional properties" }], false;
|
|
1640
|
+
break;
|
|
1641
|
+
}
|
|
1642
|
+
if (g === e4) {
|
|
1643
|
+
if (i5.resolutionId !== void 0) {
|
|
1644
|
+
let t8 = i5.resolutionId, l4 = e4;
|
|
1645
|
+
if (e4 === l4 && e4 === l4) if (typeof t8 == "string") {
|
|
1646
|
+
if (!a2.test(t8)) return o3.errors = [{ instancePath: s7 + "/resolutionId", schemaPath: "#/properties/resolutionId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
1647
|
+
} else return o3.errors = [{ instancePath: s7 + "/resolutionId", schemaPath: "#/properties/resolutionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1648
|
+
var m6 = l4 === e4;
|
|
1649
|
+
} else var m6 = true;
|
|
1650
|
+
if (m6) {
|
|
1651
|
+
if (i5.resolutionVersion !== void 0) {
|
|
1652
|
+
let t8 = e4;
|
|
1653
|
+
if (typeof i5.resolutionVersion != "string") return o3.errors = [{ instancePath: s7 + "/resolutionVersion", schemaPath: "#/properties/resolutionVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1654
|
+
var m6 = t8 === e4;
|
|
1655
|
+
} else var m6 = true;
|
|
1656
|
+
if (m6) if (i5.step !== void 0) {
|
|
1657
|
+
let t8 = i5.step, l4 = e4;
|
|
1658
|
+
if (!(t8 && typeof t8 == "object" && !Array.isArray(t8)) && t8 !== null) return o3.errors = [{ instancePath: s7 + "/step", schemaPath: "#/properties/step/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1659
|
+
if (e4 === l4 && t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
1660
|
+
let f3;
|
|
1661
|
+
if (t8.source === void 0 && (f3 = "source") || t8.sourceId === void 0 && (f3 = "sourceId") || t8.text === void 0 && (f3 = "text") || t8.savedAt === void 0 && (f3 = "savedAt") || t8.sourceDay === void 0 && (f3 = "sourceDay") || t8.project === void 0 && (f3 = "project")) return o3.errors = [{ instancePath: s7 + "/step", schemaPath: "#/properties/step/required", keyword: "required", params: { missingProperty: f3 }, message: "must have required property '" + f3 + "'" }], false;
|
|
1662
|
+
{
|
|
1663
|
+
let q2 = e4;
|
|
1664
|
+
for (let r2 in t8) if (!(r2 === "project" || r2 === "savedAt" || r2 === "source" || r2 === "sourceDay" || r2 === "sourceId" || r2 === "text")) {
|
|
1665
|
+
return o3.errors = [{ instancePath: s7 + "/step", schemaPath: "#/properties/step/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
1666
|
+
break;
|
|
1667
|
+
}
|
|
1668
|
+
if (q2 === e4) {
|
|
1669
|
+
if (t8.project !== void 0) {
|
|
1670
|
+
let r2 = t8.project, p6 = e4;
|
|
1671
|
+
if (!(r2 && typeof r2 == "object" && !Array.isArray(r2)) && r2 !== null) return o3.errors = [{ instancePath: s7 + "/step/project", schemaPath: "#/properties/step/properties/project/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1672
|
+
if (e4 === p6 && r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
1673
|
+
let c5;
|
|
1674
|
+
if (r2.id === void 0 && (c5 = "id") || r2.name === void 0 && (c5 = "name") || r2.color === void 0 && (c5 = "color") || r2.icon === void 0 && (c5 = "icon")) return o3.errors = [{ instancePath: s7 + "/step/project", schemaPath: "#/properties/step/properties/project/required", keyword: "required", params: { missingProperty: c5 }, message: "must have required property '" + c5 + "'" }], false;
|
|
1675
|
+
{
|
|
1676
|
+
let D2 = e4;
|
|
1677
|
+
for (let n7 in r2) if (!(n7 === "color" || n7 === "icon" || n7 === "id" || n7 === "name")) {
|
|
1678
|
+
return o3.errors = [{ instancePath: s7 + "/step/project", schemaPath: "#/properties/step/properties/project/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n7 }, message: "must NOT have additional properties" }], false;
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
if (D2 === e4) {
|
|
1682
|
+
if (r2.color !== void 0) {
|
|
1683
|
+
let n7 = e4;
|
|
1684
|
+
if (typeof r2.color != "string") return o3.errors = [{ instancePath: s7 + "/step/project/color", schemaPath: "#/properties/step/properties/project/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1685
|
+
var d5 = n7 === e4;
|
|
1686
|
+
} else var d5 = true;
|
|
1687
|
+
if (d5) {
|
|
1688
|
+
if (r2.icon !== void 0) {
|
|
1689
|
+
let n7 = e4;
|
|
1690
|
+
if (typeof r2.icon != "string") return o3.errors = [{ instancePath: s7 + "/step/project/icon", schemaPath: "#/properties/step/properties/project/properties/icon/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1691
|
+
var d5 = n7 === e4;
|
|
1692
|
+
} else var d5 = true;
|
|
1693
|
+
if (d5) {
|
|
1694
|
+
if (r2.id !== void 0) {
|
|
1695
|
+
let n7 = r2.id, b4 = e4;
|
|
1696
|
+
if (e4 === b4 && e4 === b4) if (typeof n7 == "string") {
|
|
1697
|
+
if (!a2.test(n7)) return o3.errors = [{ instancePath: s7 + "/step/project/id", schemaPath: "#/properties/step/properties/project/properties/id/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
1698
|
+
} else return o3.errors = [{ instancePath: s7 + "/step/project/id", schemaPath: "#/properties/step/properties/project/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1699
|
+
var d5 = b4 === e4;
|
|
1700
|
+
} else var d5 = true;
|
|
1701
|
+
if (d5) if (r2.name !== void 0) {
|
|
1702
|
+
let n7 = e4;
|
|
1703
|
+
if (typeof r2.name != "string") return o3.errors = [{ instancePath: s7 + "/step/project/name", schemaPath: "#/properties/step/properties/project/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1704
|
+
var d5 = n7 === e4;
|
|
1705
|
+
} else var d5 = true;
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
var a5 = p6 === e4;
|
|
1712
|
+
} else var a5 = true;
|
|
1713
|
+
if (a5) {
|
|
1714
|
+
if (t8.savedAt !== void 0) {
|
|
1715
|
+
let r2 = t8.savedAt, p6 = e4;
|
|
1716
|
+
if (e4 === p6 && e4 === p6) if (typeof r2 == "string") {
|
|
1717
|
+
if (!e.validate(r2)) return o3.errors = [{ instancePath: s7 + "/step/savedAt", schemaPath: "#/properties/step/properties/savedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
1718
|
+
} else return o3.errors = [{ instancePath: s7 + "/step/savedAt", schemaPath: "#/properties/step/properties/savedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1719
|
+
var a5 = p6 === e4;
|
|
1720
|
+
} else var a5 = true;
|
|
1721
|
+
if (a5) {
|
|
1722
|
+
if (t8.source !== void 0) {
|
|
1723
|
+
let r2 = t8.source, p6 = e4;
|
|
1724
|
+
if (typeof r2 != "string") return o3.errors = [{ instancePath: s7 + "/step/source", schemaPath: "#/properties/step/properties/source/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1725
|
+
if (!(r2 === "session" || r2 === "close")) return o3.errors = [{ instancePath: s7 + "/step/source", schemaPath: "#/properties/step/properties/source/enum", keyword: "enum", params: { allowedValues: _.properties.step.properties.source.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
1726
|
+
var a5 = p6 === e4;
|
|
1727
|
+
} else var a5 = true;
|
|
1728
|
+
if (a5) {
|
|
1729
|
+
if (t8.sourceDay !== void 0) {
|
|
1730
|
+
let r2 = t8.sourceDay, p6 = e4;
|
|
1731
|
+
if (e4 === p6 && e4 === p6) if (typeof r2 == "string") {
|
|
1732
|
+
if (!t3.validate(r2)) return o3.errors = [{ instancePath: s7 + "/step/sourceDay", schemaPath: "#/properties/step/properties/sourceDay/format", keyword: "format", params: { format: "date" }, message: 'must match format "date"' }], false;
|
|
1733
|
+
} else return o3.errors = [{ instancePath: s7 + "/step/sourceDay", schemaPath: "#/properties/step/properties/sourceDay/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1734
|
+
var a5 = p6 === e4;
|
|
1735
|
+
} else var a5 = true;
|
|
1736
|
+
if (a5) {
|
|
1737
|
+
if (t8.sourceId !== void 0) {
|
|
1738
|
+
let r2 = t8.sourceId, p6 = e4;
|
|
1739
|
+
if (e4 === p6 && e4 === p6) if (typeof r2 == "string") {
|
|
1740
|
+
if (!a2.test(r2)) return o3.errors = [{ instancePath: s7 + "/step/sourceId", schemaPath: "#/properties/step/properties/sourceId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
1741
|
+
} else return o3.errors = [{ instancePath: s7 + "/step/sourceId", schemaPath: "#/properties/step/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1742
|
+
var a5 = p6 === e4;
|
|
1743
|
+
} else var a5 = true;
|
|
1744
|
+
if (a5) if (t8.text !== void 0) {
|
|
1745
|
+
let r2 = t8.text, p6 = e4;
|
|
1746
|
+
if (e4 === p6) if (typeof r2 == "string") {
|
|
1747
|
+
if (o(r2) > 500) return o3.errors = [{ instancePath: s7 + "/step/text", schemaPath: "#/properties/step/properties/text/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }], false;
|
|
1748
|
+
if (o(r2) < 1) return o3.errors = [{ instancePath: s7 + "/step/text", schemaPath: "#/properties/step/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
1749
|
+
} else return o3.errors = [{ instancePath: s7 + "/step/text", schemaPath: "#/properties/step/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1750
|
+
var a5 = p6 === e4;
|
|
1751
|
+
} else var a5 = true;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
var m6 = l4 === e4;
|
|
1760
|
+
} else var m6 = true;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
} else return o3.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1765
|
+
return o3.errors = u4, e4 === 0;
|
|
1766
|
+
}
|
|
1767
|
+
function h(i5, { instancePath: s7 = "", parentData: w3, parentDataProperty: A2, rootData: j2 = i5 } = {}) {
|
|
1768
|
+
let u4 = null, e4 = 0, m6 = e4;
|
|
1769
|
+
i(i5, { instancePath: s7, parentData: w3, parentDataProperty: A2, rootData: j2 }) || (u4 = u4 === null ? i.errors : u4.concat(i.errors), e4 = u4.length);
|
|
1770
|
+
var d5 = m6 === e4;
|
|
1771
|
+
if (d5) {
|
|
1772
|
+
let a5 = e4;
|
|
1773
|
+
if (e4 === a5) if (i5 && typeof i5 == "object" && !Array.isArray(i5)) {
|
|
1774
|
+
let g;
|
|
1775
|
+
if (i5.data === void 0 && (g = "data")) return h.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: g }, message: "must have required property '" + g + "'" }], false;
|
|
1776
|
+
i5.data !== void 0 && (o3(i5.data, { instancePath: s7 + "/data", parentData: i5, parentDataProperty: "data", rootData: j2 }) || (u4 = u4 === null ? o3.errors : u4.concat(o3.errors), e4 = u4.length));
|
|
1777
|
+
} else return h.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1778
|
+
var d5 = a5 === e4;
|
|
1779
|
+
}
|
|
1780
|
+
return h.errors = u4, e4 === 0;
|
|
1781
|
+
}
|
|
1782
|
+
var G = h;
|
|
1783
|
+
|
|
1784
|
+
// ../../packages/contracts/src/generated/endpoints/getV1MeContinuation.ts
|
|
1785
|
+
var getV1MeContinuation = {
|
|
1786
|
+
method: "GET",
|
|
1787
|
+
path: "/v1/me/continuation",
|
|
1788
|
+
operation: "GET /v1/me/continuation",
|
|
1789
|
+
revision: contractRevision,
|
|
1790
|
+
responses: {
|
|
1791
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:getV1MeContinuation:200", validate: G }
|
|
1792
|
+
},
|
|
1793
|
+
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
1794
|
+
};
|
|
1795
|
+
|
|
1623
1796
|
// ../../packages/contracts/src/generated/validators/shared/HNC2DQA2.js
|
|
1624
1797
|
function s(e4, { instancePath: a5 = "", parentData: n7, parentDataProperty: u4, rootData: l4 = e4 } = {}) {
|
|
1625
1798
|
let m6 = null, r2 = 0;
|
|
@@ -1638,29 +1811,23 @@ function s(e4, { instancePath: a5 = "", parentData: n7, parentDataProperty: u4,
|
|
|
1638
1811
|
if (r2 === p6 && r2 === p6) if (typeof t8 == "string") {
|
|
1639
1812
|
if (!t3.validate(t8)) return s.errors = [{ instancePath: a5 + "/sourceDay", schemaPath: "#/properties/sourceDay/format", keyword: "format", params: { format: "date" }, message: 'must match format "date"' }], false;
|
|
1640
1813
|
} else return s.errors = [{ instancePath: a5 + "/sourceDay", schemaPath: "#/properties/sourceDay/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1641
|
-
var
|
|
1642
|
-
} else var
|
|
1643
|
-
if (
|
|
1814
|
+
var o12 = p6 === r2;
|
|
1815
|
+
} else var o12 = true;
|
|
1816
|
+
if (o12) if (e4.text !== void 0) {
|
|
1644
1817
|
let t8 = r2;
|
|
1645
1818
|
if (typeof e4.text != "string") return s.errors = [{ instancePath: a5 + "/text", schemaPath: "#/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1646
|
-
var
|
|
1647
|
-
} else var
|
|
1819
|
+
var o12 = t8 === r2;
|
|
1820
|
+
} else var o12 = true;
|
|
1648
1821
|
}
|
|
1649
1822
|
}
|
|
1650
1823
|
} else return s.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1651
1824
|
return s.errors = m6, r2 === 0;
|
|
1652
1825
|
}
|
|
1653
1826
|
|
|
1654
|
-
// ../../packages/contracts/src/generated/validators/shared/VSRNQHIL.js
|
|
1655
|
-
var e = U().fullFormats["date-time"];
|
|
1656
|
-
|
|
1657
|
-
// ../../packages/contracts/src/generated/validators/shared/CA7CC2WJ.js
|
|
1658
|
-
var a2 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
|
|
1659
|
-
|
|
1660
1827
|
// ../../packages/contracts/src/generated/validators/getV1Projects200.js
|
|
1661
1828
|
var D = { description: "A listed project with its time totals. totalSeconds counts every non-voided entry, including approved agent work; agentSeconds is the agent share of that total.", properties: { agentSeconds: { minimum: 0, type: "integer" }, archivedAt: { format: "date-time", nullable: true, type: "string" }, category: { type: "string" }, color: { type: "string" }, completedAt: { format: "date-time", nullable: true, type: "string" }, createdAt: { format: "date-time", type: "string" }, description: { nullable: true, type: "string" }, details: { description: "Private details for lastOutcome, or an empty array when no outcome exists.", items: { type: "string" }, type: "array" }, estimatedHours: { nullable: true, type: "integer" }, icon: { type: "string" }, id: { format: "uuid", type: "string" }, lastActiveDay: { format: "date", nullable: true, type: "string" }, lastOutcome: { nullable: true, type: "string" }, launchDescription: { nullable: true, type: "string" }, launchUrl: { nullable: true, type: "string" }, launchedAt: { format: "date-time", nullable: true, type: "string" }, name: { type: "string" }, nextStep: { anyOf: [{ $ref: "urn:flowmind:schema:ProjectNextStep" }, { enum: [null], nullable: true, type: "object" }] }, totalSeconds: { minimum: 0, type: "integer" }, updatedAt: { format: "date-time", type: "string" } }, required: ["id", "name", "description", "color", "icon", "category", "estimatedHours", "launchedAt", "completedAt", "launchDescription", "launchUrl", "createdAt", "updatedAt", "archivedAt", "nextStep", "lastOutcome", "details", "lastActiveDay", "totalSeconds", "agentSeconds"], type: "object" };
|
|
1662
1829
|
function n(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3, rootData: d5 = t8 } = {}) {
|
|
1663
|
-
let
|
|
1830
|
+
let o12 = null, r2 = 0;
|
|
1664
1831
|
if (r2 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
1665
1832
|
let l4;
|
|
1666
1833
|
if (t8.id === void 0 && (l4 = "id") || t8.name === void 0 && (l4 = "name") || t8.description === void 0 && (l4 = "description") || t8.color === void 0 && (l4 = "color") || t8.icon === void 0 && (l4 = "icon") || t8.category === void 0 && (l4 = "category") || t8.estimatedHours === void 0 && (l4 = "estimatedHours") || t8.launchedAt === void 0 && (l4 = "launchedAt") || t8.completedAt === void 0 && (l4 = "completedAt") || t8.launchDescription === void 0 && (l4 = "launchDescription") || t8.launchUrl === void 0 && (l4 = "launchUrl") || t8.createdAt === void 0 && (l4 = "createdAt") || t8.updatedAt === void 0 && (l4 = "updatedAt") || t8.archivedAt === void 0 && (l4 = "archivedAt") || t8.nextStep === void 0 && (l4 = "nextStep") || t8.lastOutcome === void 0 && (l4 = "lastOutcome") || t8.details === void 0 && (l4 = "details") || t8.lastActiveDay === void 0 && (l4 = "lastActiveDay") || t8.totalSeconds === void 0 && (l4 = "totalSeconds") || t8.agentSeconds === void 0 && (l4 = "agentSeconds")) return n.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
@@ -1786,25 +1953,25 @@ function n(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3,
|
|
|
1786
1953
|
if (s7) {
|
|
1787
1954
|
if (t8.nextStep !== void 0) {
|
|
1788
1955
|
let e4 = t8.nextStep, a5 = r2, g = r2, f3 = false, c5 = r2;
|
|
1789
|
-
s(e4, { instancePath: i5 + "/nextStep", parentData: t8, parentDataProperty: "nextStep", rootData: d5 }) || (
|
|
1956
|
+
s(e4, { instancePath: i5 + "/nextStep", parentData: t8, parentDataProperty: "nextStep", rootData: d5 }) || (o12 = o12 === null ? s.errors : o12.concat(s.errors), r2 = o12.length);
|
|
1790
1957
|
var p6 = c5 === r2;
|
|
1791
1958
|
if (f3 = f3 || p6, !f3) {
|
|
1792
1959
|
let A2 = r2;
|
|
1793
1960
|
if (!(e4 && typeof e4 == "object" && !Array.isArray(e4)) && e4 !== null) {
|
|
1794
|
-
let
|
|
1795
|
-
|
|
1961
|
+
let h11 = { instancePath: i5 + "/nextStep", schemaPath: "#/properties/nextStep/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1962
|
+
o12 === null ? o12 = [h11] : o12.push(h11), r2++;
|
|
1796
1963
|
}
|
|
1797
1964
|
if (e4 !== null) {
|
|
1798
|
-
let
|
|
1799
|
-
|
|
1965
|
+
let h11 = { instancePath: i5 + "/nextStep", schemaPath: "#/properties/nextStep/anyOf/1/enum", keyword: "enum", params: { allowedValues: D.properties.nextStep.anyOf[1].enum }, message: "must be equal to one of the allowed values" };
|
|
1966
|
+
o12 === null ? o12 = [h11] : o12.push(h11), r2++;
|
|
1800
1967
|
}
|
|
1801
1968
|
var p6 = A2 === r2;
|
|
1802
1969
|
f3 = f3 || p6;
|
|
1803
1970
|
}
|
|
1804
|
-
if (f3) r2 = g,
|
|
1971
|
+
if (f3) r2 = g, o12 !== null && (g ? o12.length = g : o12 = null);
|
|
1805
1972
|
else {
|
|
1806
1973
|
let A2 = { instancePath: i5 + "/nextStep", schemaPath: "#/properties/nextStep/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1807
|
-
return
|
|
1974
|
+
return o12 === null ? o12 = [A2] : o12.push(A2), r2++, n.errors = o12, false;
|
|
1808
1975
|
}
|
|
1809
1976
|
var s7 = a5 === r2;
|
|
1810
1977
|
} else var s7 = true;
|
|
@@ -1841,10 +2008,10 @@ function n(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3,
|
|
|
1841
2008
|
}
|
|
1842
2009
|
}
|
|
1843
2010
|
} else return n.errors = [{ instancePath: i5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1844
|
-
return n.errors =
|
|
2011
|
+
return n.errors = o12, r2 === 0;
|
|
1845
2012
|
}
|
|
1846
2013
|
function u(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3, rootData: d5 = t8 } = {}) {
|
|
1847
|
-
let
|
|
2014
|
+
let o12 = null, r2 = 0;
|
|
1848
2015
|
if (r2 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
1849
2016
|
let m6;
|
|
1850
2017
|
if (t8.projects === void 0 && (m6 = "projects")) return u.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: m6 }, message: "must have required property '" + m6 + "'" }], false;
|
|
@@ -1855,31 +2022,31 @@ function u(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3,
|
|
|
1855
2022
|
let e4 = p6.length;
|
|
1856
2023
|
for (let a5 = 0; a5 < e4; a5++) {
|
|
1857
2024
|
let g = r2;
|
|
1858
|
-
n(p6[a5], { instancePath: i5 + "/projects/" + a5, parentData: p6, parentDataProperty: a5, rootData: d5 }) || (
|
|
2025
|
+
n(p6[a5], { instancePath: i5 + "/projects/" + a5, parentData: p6, parentDataProperty: a5, rootData: d5 }) || (o12 = o12 === null ? n.errors : o12.concat(n.errors), r2 = o12.length);
|
|
1859
2026
|
var s7 = g === r2;
|
|
1860
2027
|
if (!s7) break;
|
|
1861
2028
|
}
|
|
1862
2029
|
} else return u.errors = [{ instancePath: i5 + "/projects", schemaPath: "#/properties/projects/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
1863
2030
|
}
|
|
1864
2031
|
} else return u.errors = [{ instancePath: i5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1865
|
-
return u.errors =
|
|
2032
|
+
return u.errors = o12, r2 === 0;
|
|
1866
2033
|
}
|
|
1867
2034
|
function v2(t8, { instancePath: i5 = "", parentData: w3, parentDataProperty: k3, rootData: d5 = t8 } = {}) {
|
|
1868
|
-
let
|
|
1869
|
-
i(t8, { instancePath: i5, parentData: w3, parentDataProperty: k3, rootData: d5 }) || (
|
|
2035
|
+
let o12 = null, r2 = 0, s7 = r2;
|
|
2036
|
+
i(t8, { instancePath: i5, parentData: w3, parentDataProperty: k3, rootData: d5 }) || (o12 = o12 === null ? i.errors : o12.concat(i.errors), r2 = o12.length);
|
|
1870
2037
|
var m6 = s7 === r2;
|
|
1871
2038
|
if (m6) {
|
|
1872
2039
|
let p6 = r2;
|
|
1873
2040
|
if (r2 === p6) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
1874
2041
|
let e4;
|
|
1875
2042
|
if (t8.data === void 0 && (e4 = "data")) return v2.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: e4 }, message: "must have required property '" + e4 + "'" }], false;
|
|
1876
|
-
t8.data !== void 0 && (u(t8.data, { instancePath: i5 + "/data", parentData: t8, parentDataProperty: "data", rootData: d5 }) || (
|
|
2043
|
+
t8.data !== void 0 && (u(t8.data, { instancePath: i5 + "/data", parentData: t8, parentDataProperty: "data", rootData: d5 }) || (o12 = o12 === null ? u.errors : o12.concat(u.errors), r2 = o12.length));
|
|
1877
2044
|
} else return v2.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1878
2045
|
var m6 = p6 === r2;
|
|
1879
2046
|
}
|
|
1880
|
-
return v2.errors =
|
|
2047
|
+
return v2.errors = o12, r2 === 0;
|
|
1881
2048
|
}
|
|
1882
|
-
var
|
|
2049
|
+
var G2 = v2;
|
|
1883
2050
|
|
|
1884
2051
|
// ../../packages/contracts/src/generated/endpoints/getV1Projects.ts
|
|
1885
2052
|
var getV1Projects = {
|
|
@@ -1888,14 +2055,14 @@ var getV1Projects = {
|
|
|
1888
2055
|
operation: "GET /v1/projects/",
|
|
1889
2056
|
revision: contractRevision,
|
|
1890
2057
|
responses: {
|
|
1891
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:getV1Projects:200", validate:
|
|
2058
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:getV1Projects:200", validate: G2 }
|
|
1892
2059
|
},
|
|
1893
2060
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
1894
2061
|
};
|
|
1895
2062
|
|
|
1896
2063
|
// ../../packages/contracts/src/generated/validators/getV1AgentCapabilities200.js
|
|
1897
2064
|
var x = { additionalProperties: false, properties: { capabilities: { items: { type: "string" }, type: "array" }, contractVersion: { type: "string" }, proofLimits: { additionalProperties: false, properties: { detailMaxLength: { type: "integer" }, detailsMaxCount: { type: "integer" }, outcomeMaxLength: { type: "integer" } }, required: ["outcomeMaxLength", "detailMaxLength", "detailsMaxCount"], type: "object" }, requiresIdempotencyKey: { items: { type: "string" }, type: "array" }, scope: { enum: ["read_only", "log_only", "full_personal"], type: "string" } }, required: ["proofLimits", "contractVersion", "scope", "capabilities", "requiresIdempotencyKey"], type: "object" };
|
|
1898
|
-
function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4, rootData:
|
|
2065
|
+
function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4, rootData: h11 = t8 } = {}) {
|
|
1899
2066
|
let p6 = null, e4 = 0;
|
|
1900
2067
|
if (e4 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
1901
2068
|
let l4;
|
|
@@ -1919,15 +2086,15 @@ function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4,
|
|
|
1919
2086
|
if (!c5) break;
|
|
1920
2087
|
}
|
|
1921
2088
|
} else return a3.errors = [{ instancePath: s7 + "/capabilities", schemaPath: "#/properties/capabilities/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
1922
|
-
var
|
|
1923
|
-
} else var
|
|
1924
|
-
if (
|
|
2089
|
+
var o12 = y3 === e4;
|
|
2090
|
+
} else var o12 = true;
|
|
2091
|
+
if (o12) {
|
|
1925
2092
|
if (t8.contractVersion !== void 0) {
|
|
1926
2093
|
let r2 = e4;
|
|
1927
2094
|
if (typeof t8.contractVersion != "string") return a3.errors = [{ instancePath: s7 + "/contractVersion", schemaPath: "#/properties/contractVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1928
|
-
var
|
|
1929
|
-
} else var
|
|
1930
|
-
if (
|
|
2095
|
+
var o12 = r2 === e4;
|
|
2096
|
+
} else var o12 = true;
|
|
2097
|
+
if (o12) {
|
|
1931
2098
|
if (t8.proofLimits !== void 0) {
|
|
1932
2099
|
let r2 = t8.proofLimits, y3 = e4;
|
|
1933
2100
|
if (e4 === y3) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
@@ -1960,9 +2127,9 @@ function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4,
|
|
|
1960
2127
|
}
|
|
1961
2128
|
}
|
|
1962
2129
|
} else return a3.errors = [{ instancePath: s7 + "/proofLimits", schemaPath: "#/properties/proofLimits/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1963
|
-
var
|
|
1964
|
-
} else var
|
|
1965
|
-
if (
|
|
2130
|
+
var o12 = y3 === e4;
|
|
2131
|
+
} else var o12 = true;
|
|
2132
|
+
if (o12) {
|
|
1966
2133
|
if (t8.requiresIdempotencyKey !== void 0) {
|
|
1967
2134
|
let r2 = t8.requiresIdempotencyKey, y3 = e4;
|
|
1968
2135
|
if (e4 === y3) if (Array.isArray(r2)) {
|
|
@@ -1975,14 +2142,14 @@ function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4,
|
|
|
1975
2142
|
if (!L2) break;
|
|
1976
2143
|
}
|
|
1977
2144
|
} else return a3.errors = [{ instancePath: s7 + "/requiresIdempotencyKey", schemaPath: "#/properties/requiresIdempotencyKey/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
1978
|
-
var
|
|
1979
|
-
} else var
|
|
1980
|
-
if (
|
|
2145
|
+
var o12 = y3 === e4;
|
|
2146
|
+
} else var o12 = true;
|
|
2147
|
+
if (o12) if (t8.scope !== void 0) {
|
|
1981
2148
|
let r2 = t8.scope, y3 = e4;
|
|
1982
2149
|
if (typeof r2 != "string") return a3.errors = [{ instancePath: s7 + "/scope", schemaPath: "#/properties/scope/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
1983
2150
|
if (!(r2 === "read_only" || r2 === "log_only" || r2 === "full_personal")) return a3.errors = [{ instancePath: s7 + "/scope", schemaPath: "#/properties/scope/enum", keyword: "enum", params: { allowedValues: x.properties.scope.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
1984
|
-
var
|
|
1985
|
-
} else var
|
|
2151
|
+
var o12 = y3 === e4;
|
|
2152
|
+
} else var o12 = true;
|
|
1986
2153
|
}
|
|
1987
2154
|
}
|
|
1988
2155
|
}
|
|
@@ -1991,18 +2158,18 @@ function a3(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4,
|
|
|
1991
2158
|
} else return a3.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
1992
2159
|
return a3.errors = p6, e4 === 0;
|
|
1993
2160
|
}
|
|
1994
|
-
function u2(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4, rootData:
|
|
2161
|
+
function u2(t8, { instancePath: s7 = "", parentData: v6, parentDataProperty: b4, rootData: h11 = t8 } = {}) {
|
|
1995
2162
|
let p6 = null, e4 = 0, c5 = e4;
|
|
1996
|
-
i(t8, { instancePath: s7, parentData: v6, parentDataProperty: b4, rootData:
|
|
1997
|
-
var
|
|
1998
|
-
if (
|
|
2163
|
+
i(t8, { instancePath: s7, parentData: v6, parentDataProperty: b4, rootData: h11 }) || (p6 = p6 === null ? i.errors : p6.concat(i.errors), e4 = p6.length);
|
|
2164
|
+
var o12 = c5 === e4;
|
|
2165
|
+
if (o12) {
|
|
1999
2166
|
let m6 = e4;
|
|
2000
2167
|
if (e4 === m6) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
2001
2168
|
let l4;
|
|
2002
2169
|
if (t8.data === void 0 && (l4 = "data")) return u2.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
2003
|
-
t8.data !== void 0 && (a3(t8.data, { instancePath: s7 + "/data", parentData: t8, parentDataProperty: "data", rootData:
|
|
2170
|
+
t8.data !== void 0 && (a3(t8.data, { instancePath: s7 + "/data", parentData: t8, parentDataProperty: "data", rootData: h11 }) || (p6 = p6 === null ? a3.errors : p6.concat(a3.errors), e4 = p6.length));
|
|
2004
2171
|
} else return u2.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2005
|
-
var
|
|
2172
|
+
var o12 = m6 === e4;
|
|
2006
2173
|
}
|
|
2007
2174
|
return u2.errors = p6, e4 === 0;
|
|
2008
2175
|
}
|
|
@@ -2021,9 +2188,9 @@ var getV1AgentCapabilities = {
|
|
|
2021
2188
|
};
|
|
2022
2189
|
|
|
2023
2190
|
// ../../packages/contracts/src/generated/validators/getV1AgentProjects200.js
|
|
2024
|
-
var
|
|
2191
|
+
var h2 = { additionalProperties: false, properties: { estimatedHours: { nullable: true, type: "integer" }, id: { format: "uuid", type: "string" }, name: { type: "string" }, status: { enum: ["active", "completed"], type: "string" }, totalHours: { minimum: 0, type: "number" } }, required: ["id", "name", "status", "estimatedHours", "totalHours"], type: "object" };
|
|
2025
2192
|
function i3(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, rootData: l4 = e4 } = {}) {
|
|
2026
|
-
let
|
|
2193
|
+
let o12 = null, r2 = 0;
|
|
2027
2194
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2028
2195
|
let m6;
|
|
2029
2196
|
if (e4.id === void 0 && (m6 = "id") || e4.name === void 0 && (m6 = "name") || e4.status === void 0 && (m6 = "status") || e4.estimatedHours === void 0 && (m6 = "estimatedHours") || e4.totalHours === void 0 && (m6 = "totalHours")) return i3.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: m6 }, message: "must have required property '" + m6 + "'" }], false;
|
|
@@ -2057,7 +2224,7 @@ function i3(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g,
|
|
|
2057
2224
|
if (e4.status !== void 0) {
|
|
2058
2225
|
let t8 = e4.status, n7 = r2;
|
|
2059
2226
|
if (typeof t8 != "string") return i3.errors = [{ instancePath: s7 + "/status", schemaPath: "#/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2060
|
-
if (!(t8 === "active" || t8 === "completed")) return i3.errors = [{ instancePath: s7 + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
2227
|
+
if (!(t8 === "active" || t8 === "completed")) return i3.errors = [{ instancePath: s7 + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: h2.properties.status.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2061
2228
|
var a5 = n7 === r2;
|
|
2062
2229
|
} else var a5 = true;
|
|
2063
2230
|
if (a5) if (e4.totalHours !== void 0) {
|
|
@@ -2073,10 +2240,10 @@ function i3(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g,
|
|
|
2073
2240
|
}
|
|
2074
2241
|
}
|
|
2075
2242
|
} else return i3.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2076
|
-
return i3.errors =
|
|
2243
|
+
return i3.errors = o12, r2 === 0;
|
|
2077
2244
|
}
|
|
2078
2245
|
function p(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, rootData: l4 = e4 } = {}) {
|
|
2079
|
-
let
|
|
2246
|
+
let o12 = null, r2 = 0;
|
|
2080
2247
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2081
2248
|
let m6;
|
|
2082
2249
|
if (e4.projects === void 0 && (m6 = "projects")) return p.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: m6 }, message: "must have required property '" + m6 + "'" }], false;
|
|
@@ -2093,7 +2260,7 @@ function p(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, r
|
|
|
2093
2260
|
let b4 = t8.length;
|
|
2094
2261
|
for (let f3 = 0; f3 < b4; f3++) {
|
|
2095
2262
|
let P4 = r2;
|
|
2096
|
-
i3(t8[f3], { instancePath: s7 + "/projects/" + f3, parentData: t8, parentDataProperty: f3, rootData: l4 }) || (
|
|
2263
|
+
i3(t8[f3], { instancePath: s7 + "/projects/" + f3, parentData: t8, parentDataProperty: f3, rootData: l4 }) || (o12 = o12 === null ? i3.errors : o12.concat(i3.errors), r2 = o12.length);
|
|
2097
2264
|
var a5 = P4 === r2;
|
|
2098
2265
|
if (!a5) break;
|
|
2099
2266
|
}
|
|
@@ -2101,22 +2268,22 @@ function p(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, r
|
|
|
2101
2268
|
}
|
|
2102
2269
|
}
|
|
2103
2270
|
} else return p.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2104
|
-
return p.errors =
|
|
2271
|
+
return p.errors = o12, r2 === 0;
|
|
2105
2272
|
}
|
|
2106
2273
|
function d(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, rootData: l4 = e4 } = {}) {
|
|
2107
|
-
let
|
|
2108
|
-
i(e4, { instancePath: s7, parentData: c5, parentDataProperty: g, rootData: l4 }) || (
|
|
2274
|
+
let o12 = null, r2 = 0, a5 = r2;
|
|
2275
|
+
i(e4, { instancePath: s7, parentData: c5, parentDataProperty: g, rootData: l4 }) || (o12 = o12 === null ? i.errors : o12.concat(i.errors), r2 = o12.length);
|
|
2109
2276
|
var m6 = a5 === r2;
|
|
2110
2277
|
if (m6) {
|
|
2111
2278
|
let u4 = r2;
|
|
2112
2279
|
if (r2 === u4) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2113
2280
|
let n7;
|
|
2114
2281
|
if (e4.data === void 0 && (n7 = "data")) return d.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
2115
|
-
e4.data !== void 0 && (p(e4.data, { instancePath: s7 + "/data", parentData: e4, parentDataProperty: "data", rootData: l4 }) || (
|
|
2282
|
+
e4.data !== void 0 && (p(e4.data, { instancePath: s7 + "/data", parentData: e4, parentDataProperty: "data", rootData: l4 }) || (o12 = o12 === null ? p.errors : o12.concat(p.errors), r2 = o12.length));
|
|
2116
2283
|
} else return d.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2117
2284
|
var m6 = u4 === r2;
|
|
2118
2285
|
}
|
|
2119
|
-
return d.errors =
|
|
2286
|
+
return d.errors = o12, r2 === 0;
|
|
2120
2287
|
}
|
|
2121
2288
|
var O = d;
|
|
2122
2289
|
|
|
@@ -2134,50 +2301,50 @@ var getV1AgentProjects = {
|
|
|
2134
2301
|
|
|
2135
2302
|
// ../../packages/contracts/src/generated/validators/getV1AgentRoutines200.js
|
|
2136
2303
|
var v3 = { additionalProperties: false, properties: { cadence: { enum: ["DAILY", "WEEKLY"], type: "string" }, durationMinutes: { minimum: 1, type: "integer" }, id: { format: "uuid", type: "string" }, name: { type: "string" } }, required: ["id", "name", "cadence", "durationMinutes"], type: "object" };
|
|
2137
|
-
function
|
|
2304
|
+
function o4(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, rootData: d5 = e4 } = {}) {
|
|
2138
2305
|
let i5 = null, r2 = 0;
|
|
2139
2306
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2140
2307
|
let n7;
|
|
2141
|
-
if (e4.id === void 0 && (n7 = "id") || e4.name === void 0 && (n7 = "name") || e4.cadence === void 0 && (n7 = "cadence") || e4.durationMinutes === void 0 && (n7 = "durationMinutes")) return
|
|
2308
|
+
if (e4.id === void 0 && (n7 = "id") || e4.name === void 0 && (n7 = "name") || e4.cadence === void 0 && (n7 = "cadence") || e4.durationMinutes === void 0 && (n7 = "durationMinutes")) return o4.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
2142
2309
|
{
|
|
2143
2310
|
let p6 = r2;
|
|
2144
2311
|
for (let t8 in e4) if (!(t8 === "cadence" || t8 === "durationMinutes" || t8 === "id" || t8 === "name")) {
|
|
2145
|
-
return
|
|
2312
|
+
return o4.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t8 }, message: "must NOT have additional properties" }], false;
|
|
2146
2313
|
break;
|
|
2147
2314
|
}
|
|
2148
2315
|
if (p6 === r2) {
|
|
2149
2316
|
if (e4.cadence !== void 0) {
|
|
2150
2317
|
let t8 = e4.cadence, u4 = r2;
|
|
2151
|
-
if (typeof t8 != "string") return
|
|
2152
|
-
if (!(t8 === "DAILY" || t8 === "WEEKLY")) return
|
|
2318
|
+
if (typeof t8 != "string") return o4.errors = [{ instancePath: s7 + "/cadence", schemaPath: "#/properties/cadence/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2319
|
+
if (!(t8 === "DAILY" || t8 === "WEEKLY")) return o4.errors = [{ instancePath: s7 + "/cadence", schemaPath: "#/properties/cadence/enum", keyword: "enum", params: { allowedValues: v3.properties.cadence.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2153
2320
|
var a5 = u4 === r2;
|
|
2154
2321
|
} else var a5 = true;
|
|
2155
2322
|
if (a5) {
|
|
2156
2323
|
if (e4.durationMinutes !== void 0) {
|
|
2157
2324
|
let t8 = e4.durationMinutes, u4 = r2;
|
|
2158
|
-
if (!(typeof t8 == "number" && !(t8 % 1) && !isNaN(t8) && isFinite(t8))) return
|
|
2159
|
-
if (r2 === u4 && typeof t8 == "number" && isFinite(t8) && (t8 < 1 || isNaN(t8))) return
|
|
2325
|
+
if (!(typeof t8 == "number" && !(t8 % 1) && !isNaN(t8) && isFinite(t8))) return o4.errors = [{ instancePath: s7 + "/durationMinutes", schemaPath: "#/properties/durationMinutes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
2326
|
+
if (r2 === u4 && typeof t8 == "number" && isFinite(t8) && (t8 < 1 || isNaN(t8))) return o4.errors = [{ instancePath: s7 + "/durationMinutes", schemaPath: "#/properties/durationMinutes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], false;
|
|
2160
2327
|
var a5 = u4 === r2;
|
|
2161
2328
|
} else var a5 = true;
|
|
2162
2329
|
if (a5) {
|
|
2163
2330
|
if (e4.id !== void 0) {
|
|
2164
2331
|
let t8 = e4.id, u4 = r2;
|
|
2165
2332
|
if (r2 === u4 && r2 === u4) if (typeof t8 == "string") {
|
|
2166
|
-
if (!a2.test(t8)) return
|
|
2167
|
-
} else return
|
|
2333
|
+
if (!a2.test(t8)) return o4.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2334
|
+
} else return o4.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2168
2335
|
var a5 = u4 === r2;
|
|
2169
2336
|
} else var a5 = true;
|
|
2170
2337
|
if (a5) if (e4.name !== void 0) {
|
|
2171
2338
|
let t8 = r2;
|
|
2172
|
-
if (typeof e4.name != "string") return
|
|
2339
|
+
if (typeof e4.name != "string") return o4.errors = [{ instancePath: s7 + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2173
2340
|
var a5 = t8 === r2;
|
|
2174
2341
|
} else var a5 = true;
|
|
2175
2342
|
}
|
|
2176
2343
|
}
|
|
2177
2344
|
}
|
|
2178
2345
|
}
|
|
2179
|
-
} else return
|
|
2180
|
-
return
|
|
2346
|
+
} else return o4.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2347
|
+
return o4.errors = i5, r2 === 0;
|
|
2181
2348
|
}
|
|
2182
2349
|
function m2(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g, rootData: d5 = e4 } = {}) {
|
|
2183
2350
|
let i5 = null, r2 = 0;
|
|
@@ -2197,7 +2364,7 @@ function m2(e4, { instancePath: s7 = "", parentData: c5, parentDataProperty: g,
|
|
|
2197
2364
|
let b4 = t8.length;
|
|
2198
2365
|
for (let f3 = 0; f3 < b4; f3++) {
|
|
2199
2366
|
let P4 = r2;
|
|
2200
|
-
|
|
2367
|
+
o4(t8[f3], { instancePath: s7 + "/routines/" + f3, parentData: t8, parentDataProperty: f3, rootData: d5 }) || (i5 = i5 === null ? o4.errors : i5.concat(o4.errors), r2 = i5.length);
|
|
2201
2368
|
var a5 = P4 === r2;
|
|
2202
2369
|
if (!a5) break;
|
|
2203
2370
|
}
|
|
@@ -2238,11 +2405,11 @@ var getV1AgentRoutines = {
|
|
|
2238
2405
|
|
|
2239
2406
|
// ../../packages/contracts/src/generated/validators/shared/26EAVMHM.js
|
|
2240
2407
|
var m3 = { additionalProperties: false, properties: { externalId: { maxLength: 200, minLength: 1, nullable: true, type: "string" }, kind: { enum: ["calendar_event", "commit", "issue", "linear_issue", "pr", "session_log", "other"], type: "string" }, label: { maxLength: 160, minLength: 1, type: "string" }, url: { maxLength: 500, minLength: 1, nullable: true, type: "string" } }, required: ["kind", "label"], type: "object" };
|
|
2241
|
-
function s2(r2, { instancePath: a5 = "", parentData:
|
|
2408
|
+
function s2(r2, { instancePath: a5 = "", parentData: h11, parentDataProperty: f3, rootData: d5 = r2 } = {}) {
|
|
2242
2409
|
let p6 = null, t8 = 0;
|
|
2243
2410
|
if (t8 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2244
|
-
let
|
|
2245
|
-
if (r2.kind === void 0 && (
|
|
2411
|
+
let o12;
|
|
2412
|
+
if (r2.kind === void 0 && (o12 = "kind") || r2.label === void 0 && (o12 = "label")) return s2.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
2246
2413
|
{
|
|
2247
2414
|
let u4 = t8;
|
|
2248
2415
|
for (let e4 in r2) if (!(e4 === "externalId" || e4 === "kind" || e4 === "label" || e4 === "url")) {
|
|
@@ -2296,12 +2463,12 @@ function s2(r2, { instancePath: a5 = "", parentData: h10, parentDataProperty: f3
|
|
|
2296
2463
|
var t4 = Object.prototype.hasOwnProperty;
|
|
2297
2464
|
|
|
2298
2465
|
// ../../packages/contracts/src/generated/validators/shared/OJPHCEXC.js
|
|
2299
|
-
var
|
|
2466
|
+
var o5 = U().fullFormats.uri;
|
|
2300
2467
|
|
|
2301
2468
|
// ../../packages/contracts/src/generated/validators/shared/QUS6QINY.js
|
|
2302
2469
|
var v4 = { additionalProperties: false, properties: { artifactUrl: { format: "uri", nullable: true, type: "string" }, createdAt: { format: "date-time", type: "string" }, createdByApiKeyId: { format: "uuid", nullable: true, type: "string" }, createdTimeEntryId: { format: "uuid", nullable: true, type: "string" }, description: { nullable: true, type: "string" }, details: { items: { type: "string" }, type: "array" }, durationMinutes: { minimum: 1, type: "integer" }, evidence: { items: { $ref: "urn:flowmind:schema:AgentProposalEvidence" }, type: "array" }, expiresAt: { format: "date-time", type: "string" }, id: { format: "uuid", type: "string" }, note: { type: "string" }, projectId: { format: "uuid", nullable: true, type: "string" }, reviewedAt: { format: "date-time", nullable: true, type: "string" }, routineId: { format: "uuid", nullable: true, type: "string" }, source: { $ref: "urn:flowmind:schema:AgentProposalSource" }, startedAt: { format: "date-time", type: "string" }, status: { enum: ["proposed", "cancelled", "approved", "rejected"], type: "string" }, targetKind: { enum: ["project", "routine", "unassigned"], type: "string" }, updatedAt: { format: "date-time", type: "string" }, webReviewUrl: { format: "uri", type: "string" } }, required: ["id", "status", "targetKind", "projectId", "routineId", "startedAt", "durationMinutes", "description", "note", "details", "artifactUrl", "source", "evidence", "createdByApiKeyId", "expiresAt", "reviewedAt", "createdTimeEntryId", "webReviewUrl", "createdAt", "updatedAt"], type: "object" };
|
|
2303
2470
|
var I = { additionalProperties: false, properties: { externalId: { maxLength: 200, minLength: 1, nullable: true, type: "string" }, kind: { enum: ["calendar", "claude_code", "cli", "codex", "github", "linear", "manual", "session_log", "other"], type: "string" }, label: { maxLength: 160, minLength: 1, nullable: true, type: "string" } }, required: ["kind"], type: "object" };
|
|
2304
|
-
function d2(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty:
|
|
2471
|
+
function d2(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _2, rootData: w3 = t8 } = {}) {
|
|
2305
2472
|
let p6 = null, e4 = 0;
|
|
2306
2473
|
if (e4 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
2307
2474
|
let u4;
|
|
@@ -2344,50 +2511,50 @@ function d2(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _,
|
|
|
2344
2511
|
} else return d2.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2345
2512
|
return d2.errors = p6, e4 === 0;
|
|
2346
2513
|
}
|
|
2347
|
-
function
|
|
2514
|
+
function o6(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _2, rootData: w3 = t8 } = {}) {
|
|
2348
2515
|
let p6 = null, e4 = 0;
|
|
2349
2516
|
if (e4 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
2350
2517
|
let n7;
|
|
2351
|
-
if (t8.id === void 0 && (n7 = "id") || t8.status === void 0 && (n7 = "status") || t8.targetKind === void 0 && (n7 = "targetKind") || t8.projectId === void 0 && (n7 = "projectId") || t8.routineId === void 0 && (n7 = "routineId") || t8.startedAt === void 0 && (n7 = "startedAt") || t8.durationMinutes === void 0 && (n7 = "durationMinutes") || t8.description === void 0 && (n7 = "description") || t8.note === void 0 && (n7 = "note") || t8.details === void 0 && (n7 = "details") || t8.artifactUrl === void 0 && (n7 = "artifactUrl") || t8.source === void 0 && (n7 = "source") || t8.evidence === void 0 && (n7 = "evidence") || t8.createdByApiKeyId === void 0 && (n7 = "createdByApiKeyId") || t8.expiresAt === void 0 && (n7 = "expiresAt") || t8.reviewedAt === void 0 && (n7 = "reviewedAt") || t8.createdTimeEntryId === void 0 && (n7 = "createdTimeEntryId") || t8.webReviewUrl === void 0 && (n7 = "webReviewUrl") || t8.createdAt === void 0 && (n7 = "createdAt") || t8.updatedAt === void 0 && (n7 = "updatedAt")) return
|
|
2518
|
+
if (t8.id === void 0 && (n7 = "id") || t8.status === void 0 && (n7 = "status") || t8.targetKind === void 0 && (n7 = "targetKind") || t8.projectId === void 0 && (n7 = "projectId") || t8.routineId === void 0 && (n7 = "routineId") || t8.startedAt === void 0 && (n7 = "startedAt") || t8.durationMinutes === void 0 && (n7 = "durationMinutes") || t8.description === void 0 && (n7 = "description") || t8.note === void 0 && (n7 = "note") || t8.details === void 0 && (n7 = "details") || t8.artifactUrl === void 0 && (n7 = "artifactUrl") || t8.source === void 0 && (n7 = "source") || t8.evidence === void 0 && (n7 = "evidence") || t8.createdByApiKeyId === void 0 && (n7 = "createdByApiKeyId") || t8.expiresAt === void 0 && (n7 = "expiresAt") || t8.reviewedAt === void 0 && (n7 = "reviewedAt") || t8.createdTimeEntryId === void 0 && (n7 = "createdTimeEntryId") || t8.webReviewUrl === void 0 && (n7 = "webReviewUrl") || t8.createdAt === void 0 && (n7 = "createdAt") || t8.updatedAt === void 0 && (n7 = "updatedAt")) return o6.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
2352
2519
|
{
|
|
2353
2520
|
let f3 = e4;
|
|
2354
2521
|
for (let r2 in t8) if (!t4.call(v4.properties, r2)) {
|
|
2355
|
-
return
|
|
2522
|
+
return o6.errors = [{ instancePath: a5, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
2356
2523
|
break;
|
|
2357
2524
|
}
|
|
2358
2525
|
if (f3 === e4) {
|
|
2359
2526
|
if (t8.artifactUrl !== void 0) {
|
|
2360
2527
|
let r2 = t8.artifactUrl, i5 = e4;
|
|
2361
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2362
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !
|
|
2528
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/artifactUrl", schemaPath: "#/properties/artifactUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2529
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !o5(r2)) return o6.errors = [{ instancePath: a5 + "/artifactUrl", schemaPath: "#/properties/artifactUrl/format", keyword: "format", params: { format: "uri" }, message: 'must match format "uri"' }], false;
|
|
2363
2530
|
var s7 = i5 === e4;
|
|
2364
2531
|
} else var s7 = true;
|
|
2365
2532
|
if (s7) {
|
|
2366
2533
|
if (t8.createdAt !== void 0) {
|
|
2367
2534
|
let r2 = t8.createdAt, i5 = e4;
|
|
2368
2535
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2369
|
-
if (!e.validate(r2)) return
|
|
2370
|
-
} else return
|
|
2536
|
+
if (!e.validate(r2)) return o6.errors = [{ instancePath: a5 + "/createdAt", schemaPath: "#/properties/createdAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
2537
|
+
} else return o6.errors = [{ instancePath: a5 + "/createdAt", schemaPath: "#/properties/createdAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2371
2538
|
var s7 = i5 === e4;
|
|
2372
2539
|
} else var s7 = true;
|
|
2373
2540
|
if (s7) {
|
|
2374
2541
|
if (t8.createdByApiKeyId !== void 0) {
|
|
2375
2542
|
let r2 = t8.createdByApiKeyId, i5 = e4;
|
|
2376
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2377
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return
|
|
2543
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/createdByApiKeyId", schemaPath: "#/properties/createdByApiKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2544
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return o6.errors = [{ instancePath: a5 + "/createdByApiKeyId", schemaPath: "#/properties/createdByApiKeyId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2378
2545
|
var s7 = i5 === e4;
|
|
2379
2546
|
} else var s7 = true;
|
|
2380
2547
|
if (s7) {
|
|
2381
2548
|
if (t8.createdTimeEntryId !== void 0) {
|
|
2382
2549
|
let r2 = t8.createdTimeEntryId, i5 = e4;
|
|
2383
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2384
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return
|
|
2550
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/createdTimeEntryId", schemaPath: "#/properties/createdTimeEntryId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2551
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return o6.errors = [{ instancePath: a5 + "/createdTimeEntryId", schemaPath: "#/properties/createdTimeEntryId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2385
2552
|
var s7 = i5 === e4;
|
|
2386
2553
|
} else var s7 = true;
|
|
2387
2554
|
if (s7) {
|
|
2388
2555
|
if (t8.description !== void 0) {
|
|
2389
2556
|
let r2 = t8.description, i5 = e4;
|
|
2390
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2557
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2391
2558
|
var s7 = i5 === e4;
|
|
2392
2559
|
} else var s7 = true;
|
|
2393
2560
|
if (s7) {
|
|
@@ -2398,18 +2565,18 @@ function o5(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _,
|
|
|
2398
2565
|
let b4 = r2.length;
|
|
2399
2566
|
for (let m6 = 0; m6 < b4; m6++) {
|
|
2400
2567
|
let A2 = e4;
|
|
2401
|
-
if (typeof r2[m6] != "string") return
|
|
2568
|
+
if (typeof r2[m6] != "string") return o6.errors = [{ instancePath: a5 + "/details/" + m6, schemaPath: "#/properties/details/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2402
2569
|
var u4 = A2 === e4;
|
|
2403
2570
|
if (!u4) break;
|
|
2404
2571
|
}
|
|
2405
|
-
} else return
|
|
2572
|
+
} else return o6.errors = [{ instancePath: a5 + "/details", schemaPath: "#/properties/details/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
2406
2573
|
var s7 = i5 === e4;
|
|
2407
2574
|
} else var s7 = true;
|
|
2408
2575
|
if (s7) {
|
|
2409
2576
|
if (t8.durationMinutes !== void 0) {
|
|
2410
2577
|
let r2 = t8.durationMinutes, i5 = e4;
|
|
2411
|
-
if (!(typeof r2 == "number" && !(r2 % 1) && !isNaN(r2) && isFinite(r2))) return
|
|
2412
|
-
if (e4 === i5 && typeof r2 == "number" && isFinite(r2) && (r2 < 1 || isNaN(r2))) return
|
|
2578
|
+
if (!(typeof r2 == "number" && !(r2 % 1) && !isNaN(r2) && isFinite(r2))) return o6.errors = [{ instancePath: a5 + "/durationMinutes", schemaPath: "#/properties/durationMinutes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
2579
|
+
if (e4 === i5 && typeof r2 == "number" && isFinite(r2) && (r2 < 1 || isNaN(r2))) return o6.errors = [{ instancePath: a5 + "/durationMinutes", schemaPath: "#/properties/durationMinutes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], false;
|
|
2413
2580
|
var s7 = i5 === e4;
|
|
2414
2581
|
} else var s7 = true;
|
|
2415
2582
|
if (s7) {
|
|
@@ -2424,50 +2591,50 @@ function o5(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _,
|
|
|
2424
2591
|
var g = A2 === e4;
|
|
2425
2592
|
if (!g) break;
|
|
2426
2593
|
}
|
|
2427
|
-
} else return
|
|
2594
|
+
} else return o6.errors = [{ instancePath: a5 + "/evidence", schemaPath: "#/properties/evidence/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
2428
2595
|
var s7 = i5 === e4;
|
|
2429
2596
|
} else var s7 = true;
|
|
2430
2597
|
if (s7) {
|
|
2431
2598
|
if (t8.expiresAt !== void 0) {
|
|
2432
2599
|
let r2 = t8.expiresAt, i5 = e4;
|
|
2433
2600
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2434
|
-
if (!e.validate(r2)) return
|
|
2435
|
-
} else return
|
|
2601
|
+
if (!e.validate(r2)) return o6.errors = [{ instancePath: a5 + "/expiresAt", schemaPath: "#/properties/expiresAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
2602
|
+
} else return o6.errors = [{ instancePath: a5 + "/expiresAt", schemaPath: "#/properties/expiresAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2436
2603
|
var s7 = i5 === e4;
|
|
2437
2604
|
} else var s7 = true;
|
|
2438
2605
|
if (s7) {
|
|
2439
2606
|
if (t8.id !== void 0) {
|
|
2440
2607
|
let r2 = t8.id, i5 = e4;
|
|
2441
2608
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2442
|
-
if (!a2.test(r2)) return
|
|
2443
|
-
} else return
|
|
2609
|
+
if (!a2.test(r2)) return o6.errors = [{ instancePath: a5 + "/id", schemaPath: "#/properties/id/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2610
|
+
} else return o6.errors = [{ instancePath: a5 + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2444
2611
|
var s7 = i5 === e4;
|
|
2445
2612
|
} else var s7 = true;
|
|
2446
2613
|
if (s7) {
|
|
2447
2614
|
if (t8.note !== void 0) {
|
|
2448
2615
|
let r2 = e4;
|
|
2449
|
-
if (typeof t8.note != "string") return
|
|
2616
|
+
if (typeof t8.note != "string") return o6.errors = [{ instancePath: a5 + "/note", schemaPath: "#/properties/note/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2450
2617
|
var s7 = r2 === e4;
|
|
2451
2618
|
} else var s7 = true;
|
|
2452
2619
|
if (s7) {
|
|
2453
2620
|
if (t8.projectId !== void 0) {
|
|
2454
2621
|
let r2 = t8.projectId, i5 = e4;
|
|
2455
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2456
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return
|
|
2622
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/projectId", schemaPath: "#/properties/projectId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2623
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return o6.errors = [{ instancePath: a5 + "/projectId", schemaPath: "#/properties/projectId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2457
2624
|
var s7 = i5 === e4;
|
|
2458
2625
|
} else var s7 = true;
|
|
2459
2626
|
if (s7) {
|
|
2460
2627
|
if (t8.reviewedAt !== void 0) {
|
|
2461
2628
|
let r2 = t8.reviewedAt, i5 = e4;
|
|
2462
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2463
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !e.validate(r2)) return
|
|
2629
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/reviewedAt", schemaPath: "#/properties/reviewedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2630
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !e.validate(r2)) return o6.errors = [{ instancePath: a5 + "/reviewedAt", schemaPath: "#/properties/reviewedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
2464
2631
|
var s7 = i5 === e4;
|
|
2465
2632
|
} else var s7 = true;
|
|
2466
2633
|
if (s7) {
|
|
2467
2634
|
if (t8.routineId !== void 0) {
|
|
2468
2635
|
let r2 = t8.routineId, i5 = e4;
|
|
2469
|
-
if (typeof r2 != "string" && r2 !== null) return
|
|
2470
|
-
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return
|
|
2636
|
+
if (typeof r2 != "string" && r2 !== null) return o6.errors = [{ instancePath: a5 + "/routineId", schemaPath: "#/properties/routineId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2637
|
+
if (e4 === i5 && e4 === i5 && typeof r2 == "string" && !a2.test(r2)) return o6.errors = [{ instancePath: a5 + "/routineId", schemaPath: "#/properties/routineId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
2471
2638
|
var s7 = i5 === e4;
|
|
2472
2639
|
} else var s7 = true;
|
|
2473
2640
|
if (s7) {
|
|
@@ -2480,37 +2647,37 @@ function o5(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _,
|
|
|
2480
2647
|
if (t8.startedAt !== void 0) {
|
|
2481
2648
|
let r2 = t8.startedAt, i5 = e4;
|
|
2482
2649
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2483
|
-
if (!e.validate(r2)) return
|
|
2484
|
-
} else return
|
|
2650
|
+
if (!e.validate(r2)) return o6.errors = [{ instancePath: a5 + "/startedAt", schemaPath: "#/properties/startedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
2651
|
+
} else return o6.errors = [{ instancePath: a5 + "/startedAt", schemaPath: "#/properties/startedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2485
2652
|
var s7 = i5 === e4;
|
|
2486
2653
|
} else var s7 = true;
|
|
2487
2654
|
if (s7) {
|
|
2488
2655
|
if (t8.status !== void 0) {
|
|
2489
2656
|
let r2 = t8.status, i5 = e4;
|
|
2490
|
-
if (typeof r2 != "string") return
|
|
2491
|
-
if (!(r2 === "proposed" || r2 === "cancelled" || r2 === "approved" || r2 === "rejected")) return
|
|
2657
|
+
if (typeof r2 != "string") return o6.errors = [{ instancePath: a5 + "/status", schemaPath: "#/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2658
|
+
if (!(r2 === "proposed" || r2 === "cancelled" || r2 === "approved" || r2 === "rejected")) return o6.errors = [{ instancePath: a5 + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: v4.properties.status.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2492
2659
|
var s7 = i5 === e4;
|
|
2493
2660
|
} else var s7 = true;
|
|
2494
2661
|
if (s7) {
|
|
2495
2662
|
if (t8.targetKind !== void 0) {
|
|
2496
2663
|
let r2 = t8.targetKind, i5 = e4;
|
|
2497
|
-
if (typeof r2 != "string") return
|
|
2498
|
-
if (!(r2 === "project" || r2 === "routine" || r2 === "unassigned")) return
|
|
2664
|
+
if (typeof r2 != "string") return o6.errors = [{ instancePath: a5 + "/targetKind", schemaPath: "#/properties/targetKind/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2665
|
+
if (!(r2 === "project" || r2 === "routine" || r2 === "unassigned")) return o6.errors = [{ instancePath: a5 + "/targetKind", schemaPath: "#/properties/targetKind/enum", keyword: "enum", params: { allowedValues: v4.properties.targetKind.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2499
2666
|
var s7 = i5 === e4;
|
|
2500
2667
|
} else var s7 = true;
|
|
2501
2668
|
if (s7) {
|
|
2502
2669
|
if (t8.updatedAt !== void 0) {
|
|
2503
2670
|
let r2 = t8.updatedAt, i5 = e4;
|
|
2504
2671
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2505
|
-
if (!e.validate(r2)) return
|
|
2506
|
-
} else return
|
|
2672
|
+
if (!e.validate(r2)) return o6.errors = [{ instancePath: a5 + "/updatedAt", schemaPath: "#/properties/updatedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
2673
|
+
} else return o6.errors = [{ instancePath: a5 + "/updatedAt", schemaPath: "#/properties/updatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2507
2674
|
var s7 = i5 === e4;
|
|
2508
2675
|
} else var s7 = true;
|
|
2509
2676
|
if (s7) if (t8.webReviewUrl !== void 0) {
|
|
2510
2677
|
let r2 = t8.webReviewUrl, i5 = e4;
|
|
2511
2678
|
if (e4 === i5 && e4 === i5) if (typeof r2 == "string") {
|
|
2512
|
-
if (!
|
|
2513
|
-
} else return
|
|
2679
|
+
if (!o5(r2)) return o6.errors = [{ instancePath: a5 + "/webReviewUrl", schemaPath: "#/properties/webReviewUrl/format", keyword: "format", params: { format: "uri" }, message: 'must match format "uri"' }], false;
|
|
2680
|
+
} else return o6.errors = [{ instancePath: a5 + "/webReviewUrl", schemaPath: "#/properties/webReviewUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2514
2681
|
var s7 = i5 === e4;
|
|
2515
2682
|
} else var s7 = true;
|
|
2516
2683
|
}
|
|
@@ -2533,30 +2700,30 @@ function o5(t8, { instancePath: a5 = "", parentData: x4, parentDataProperty: _,
|
|
|
2533
2700
|
}
|
|
2534
2701
|
}
|
|
2535
2702
|
}
|
|
2536
|
-
} else return
|
|
2537
|
-
return
|
|
2703
|
+
} else return o6.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2704
|
+
return o6.errors = p6, e4 === 0;
|
|
2538
2705
|
}
|
|
2539
2706
|
|
|
2540
2707
|
// ../../packages/contracts/src/generated/validators/shared/ORKARYBH.js
|
|
2541
2708
|
function t5(r2, { instancePath: s7 = "", parentData: f3, parentDataProperty: m6, rootData: l4 = r2 } = {}) {
|
|
2542
|
-
let e4 = null,
|
|
2543
|
-
if (
|
|
2709
|
+
let e4 = null, o12 = 0;
|
|
2710
|
+
if (o12 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2544
2711
|
let a5;
|
|
2545
2712
|
if (r2.proposal === void 0 && (a5 = "proposal")) return t5.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: a5 }, message: "must have required property '" + a5 + "'" }], false;
|
|
2546
2713
|
{
|
|
2547
|
-
let n7 =
|
|
2714
|
+
let n7 = o12;
|
|
2548
2715
|
for (let i5 in r2) if (i5 !== "proposal") {
|
|
2549
2716
|
return t5.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: i5 }, message: "must NOT have additional properties" }], false;
|
|
2550
2717
|
break;
|
|
2551
2718
|
}
|
|
2552
|
-
n7 ===
|
|
2719
|
+
n7 === o12 && r2.proposal !== void 0 && (o6(r2.proposal, { instancePath: s7 + "/proposal", parentData: r2, parentDataProperty: "proposal", rootData: l4 }) || (e4 = e4 === null ? o6.errors : e4.concat(o6.errors), o12 = e4.length));
|
|
2553
2720
|
}
|
|
2554
2721
|
} else return t5.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2555
|
-
return t5.errors = e4,
|
|
2722
|
+
return t5.errors = e4, o12 === 0;
|
|
2556
2723
|
}
|
|
2557
2724
|
|
|
2558
2725
|
// ../../packages/contracts/src/generated/validators/postV1AgentLogProposals200.js
|
|
2559
|
-
function
|
|
2726
|
+
function o7(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4, rootData: n7 = r2 } = {}) {
|
|
2560
2727
|
let e4 = null, t8 = 0, d5 = t8;
|
|
2561
2728
|
i(r2, { instancePath: s7, parentData: m6, parentDataProperty: u4, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), t8 = e4.length);
|
|
2562
2729
|
var p6 = d5 === t8;
|
|
@@ -2564,14 +2731,14 @@ function o6(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4,
|
|
|
2564
2731
|
let f3 = t8;
|
|
2565
2732
|
if (t8 === f3) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2566
2733
|
let i5;
|
|
2567
|
-
if (r2.data === void 0 && (i5 = "data")) return
|
|
2734
|
+
if (r2.data === void 0 && (i5 = "data")) return o7.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
2568
2735
|
r2.data !== void 0 && (t5(r2.data, { instancePath: s7 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? t5.errors : e4.concat(t5.errors), t8 = e4.length));
|
|
2569
|
-
} else return
|
|
2736
|
+
} else return o7.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2570
2737
|
var p6 = f3 === t8;
|
|
2571
2738
|
}
|
|
2572
|
-
return
|
|
2739
|
+
return o7.errors = e4, t8 === 0;
|
|
2573
2740
|
}
|
|
2574
|
-
var
|
|
2741
|
+
var h3 = o7;
|
|
2575
2742
|
|
|
2576
2743
|
// ../../packages/contracts/src/generated/endpoints/postV1AgentLogProposals.ts
|
|
2577
2744
|
var postV1AgentLogProposals = {
|
|
@@ -2580,21 +2747,21 @@ var postV1AgentLogProposals = {
|
|
|
2580
2747
|
operation: "POST /v1/agent/log-proposals",
|
|
2581
2748
|
revision: contractRevision,
|
|
2582
2749
|
responses: {
|
|
2583
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AgentLogProposals:200", validate:
|
|
2750
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AgentLogProposals:200", validate: h3 }
|
|
2584
2751
|
},
|
|
2585
2752
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
2586
2753
|
};
|
|
2587
2754
|
|
|
2588
2755
|
// ../../packages/contracts/src/generated/validators/getV1AgentLogProposals200.js
|
|
2589
|
-
function t6(r2, { instancePath:
|
|
2756
|
+
function t6(r2, { instancePath: o12 = "", parentData: c5, parentDataProperty: v6, rootData: n7 = r2 } = {}) {
|
|
2590
2757
|
let s7 = null, e4 = 0;
|
|
2591
2758
|
if (e4 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2592
2759
|
let i5;
|
|
2593
|
-
if (r2.proposals === void 0 && (i5 = "proposals")) return t6.errors = [{ instancePath:
|
|
2760
|
+
if (r2.proposals === void 0 && (i5 = "proposals")) return t6.errors = [{ instancePath: o12, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
2594
2761
|
{
|
|
2595
2762
|
let m6 = e4;
|
|
2596
2763
|
for (let a5 in r2) if (a5 !== "proposals") {
|
|
2597
|
-
return t6.errors = [{ instancePath:
|
|
2764
|
+
return t6.errors = [{ instancePath: o12, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a5 }, message: "must NOT have additional properties" }], false;
|
|
2598
2765
|
break;
|
|
2599
2766
|
}
|
|
2600
2767
|
if (m6 === e4 && r2.proposals !== void 0) {
|
|
@@ -2603,28 +2770,28 @@ function t6(r2, { instancePath: o11 = "", parentData: c5, parentDataProperty: v6
|
|
|
2603
2770
|
var f3 = true;
|
|
2604
2771
|
let g = a5.length;
|
|
2605
2772
|
for (let p6 = 0; p6 < g; p6++) {
|
|
2606
|
-
let
|
|
2607
|
-
|
|
2608
|
-
var f3 =
|
|
2773
|
+
let h11 = e4;
|
|
2774
|
+
o6(a5[p6], { instancePath: o12 + "/proposals/" + p6, parentData: a5, parentDataProperty: p6, rootData: n7 }) || (s7 = s7 === null ? o6.errors : s7.concat(o6.errors), e4 = s7.length);
|
|
2775
|
+
var f3 = h11 === e4;
|
|
2609
2776
|
if (!f3) break;
|
|
2610
2777
|
}
|
|
2611
|
-
} else return t6.errors = [{ instancePath:
|
|
2778
|
+
} else return t6.errors = [{ instancePath: o12 + "/proposals", schemaPath: "#/properties/proposals/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
2612
2779
|
}
|
|
2613
2780
|
}
|
|
2614
|
-
} else return t6.errors = [{ instancePath:
|
|
2781
|
+
} else return t6.errors = [{ instancePath: o12, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2615
2782
|
return t6.errors = s7, e4 === 0;
|
|
2616
2783
|
}
|
|
2617
|
-
function l2(r2, { instancePath:
|
|
2784
|
+
function l2(r2, { instancePath: o12 = "", parentData: c5, parentDataProperty: v6, rootData: n7 = r2 } = {}) {
|
|
2618
2785
|
let s7 = null, e4 = 0, f3 = e4;
|
|
2619
|
-
i(r2, { instancePath:
|
|
2786
|
+
i(r2, { instancePath: o12, parentData: c5, parentDataProperty: v6, rootData: n7 }) || (s7 = s7 === null ? i.errors : s7.concat(i.errors), e4 = s7.length);
|
|
2620
2787
|
var i5 = f3 === e4;
|
|
2621
2788
|
if (i5) {
|
|
2622
2789
|
let m6 = e4;
|
|
2623
2790
|
if (e4 === m6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2624
2791
|
let y3;
|
|
2625
|
-
if (r2.data === void 0 && (y3 = "data")) return l2.errors = [{ instancePath:
|
|
2626
|
-
r2.data !== void 0 && (t6(r2.data, { instancePath:
|
|
2627
|
-
} else return l2.errors = [{ instancePath:
|
|
2792
|
+
if (r2.data === void 0 && (y3 = "data")) return l2.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: y3 }, message: "must have required property '" + y3 + "'" }], false;
|
|
2793
|
+
r2.data !== void 0 && (t6(r2.data, { instancePath: o12 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (s7 = s7 === null ? t6.errors : s7.concat(t6.errors), e4 = s7.length));
|
|
2794
|
+
} else return l2.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2628
2795
|
var i5 = m6 === e4;
|
|
2629
2796
|
}
|
|
2630
2797
|
return l2.errors = s7, e4 === 0;
|
|
@@ -2645,21 +2812,21 @@ var getV1AgentLogProposals = {
|
|
|
2645
2812
|
|
|
2646
2813
|
// ../../packages/contracts/src/generated/validators/postV1AgentLogProposalsByProposalIdCancel200.js
|
|
2647
2814
|
function s3(r2, { instancePath: t8 = "", parentData: m6, parentDataProperty: d5, rootData: n7 = r2 } = {}) {
|
|
2648
|
-
let e4 = null,
|
|
2649
|
-
i(r2, { instancePath: t8, parentData: m6, parentDataProperty: d5, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors),
|
|
2650
|
-
var p6 = u4 ===
|
|
2815
|
+
let e4 = null, o12 = 0, u4 = o12;
|
|
2816
|
+
i(r2, { instancePath: t8, parentData: m6, parentDataProperty: d5, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), o12 = e4.length);
|
|
2817
|
+
var p6 = u4 === o12;
|
|
2651
2818
|
if (p6) {
|
|
2652
|
-
let f3 =
|
|
2653
|
-
if (
|
|
2819
|
+
let f3 = o12;
|
|
2820
|
+
if (o12 === f3) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
2654
2821
|
let i5;
|
|
2655
2822
|
if (r2.data === void 0 && (i5 = "data")) return s3.errors = [{ instancePath: t8, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
2656
|
-
r2.data !== void 0 && (t5(r2.data, { instancePath: t8 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? t5.errors : e4.concat(t5.errors),
|
|
2823
|
+
r2.data !== void 0 && (t5(r2.data, { instancePath: t8 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? t5.errors : e4.concat(t5.errors), o12 = e4.length));
|
|
2657
2824
|
} else return s3.errors = [{ instancePath: t8, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2658
|
-
var p6 = f3 ===
|
|
2825
|
+
var p6 = f3 === o12;
|
|
2659
2826
|
}
|
|
2660
|
-
return s3.errors = e4,
|
|
2827
|
+
return s3.errors = e4, o12 === 0;
|
|
2661
2828
|
}
|
|
2662
|
-
var
|
|
2829
|
+
var h4 = s3;
|
|
2663
2830
|
|
|
2664
2831
|
// ../../packages/contracts/src/generated/endpoints/postV1AgentLogProposalsByProposalIdCancel.ts
|
|
2665
2832
|
var postV1AgentLogProposalsByProposalIdCancel = {
|
|
@@ -2668,7 +2835,7 @@ var postV1AgentLogProposalsByProposalIdCancel = {
|
|
|
2668
2835
|
operation: "POST /v1/agent/log-proposals/{proposalId}/cancel",
|
|
2669
2836
|
revision: contractRevision,
|
|
2670
2837
|
responses: {
|
|
2671
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AgentLogProposalsByProposalIdCancel:200", validate:
|
|
2838
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AgentLogProposalsByProposalIdCancel:200", validate: h4 }
|
|
2672
2839
|
},
|
|
2673
2840
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
2674
2841
|
};
|
|
@@ -2676,7 +2843,7 @@ var postV1AgentLogProposalsByProposalIdCancel = {
|
|
|
2676
2843
|
// ../../packages/contracts/src/generated/validators/postV1AiLog200.js
|
|
2677
2844
|
var j = { additionalProperties: false, description: "AI log draft response payload", properties: { availableProjects: { items: { $ref: "urn:flowmind:schema:AiLogProject" }, type: "array" }, dayBoundaryMinutes: { enum: [0, 60, 120, 180, 240, 300, 360], type: "integer" }, draft: { $ref: "urn:flowmind:schema:AiLogDraft" }, originalText: { type: "string" }, timezone: { type: "string" }, today: { format: "date", type: "string" } }, required: ["availableProjects", "draft", "originalText", "timezone", "dayBoundaryMinutes", "today"], type: "object" };
|
|
2678
2845
|
function d3(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6, rootData: f3 = e4 } = {}) {
|
|
2679
|
-
let
|
|
2846
|
+
let o12 = null, r2 = 0;
|
|
2680
2847
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2681
2848
|
let i5;
|
|
2682
2849
|
if (e4.id === void 0 && (i5 = "id") || e4.name === void 0 && (i5 = "name")) return d3.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
@@ -2702,11 +2869,11 @@ function d3(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6,
|
|
|
2702
2869
|
}
|
|
2703
2870
|
}
|
|
2704
2871
|
} else return d3.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2705
|
-
return d3.errors =
|
|
2872
|
+
return d3.errors = o12, r2 === 0;
|
|
2706
2873
|
}
|
|
2707
2874
|
var k = { additionalProperties: false, description: "Suggested capture fields. Date is always unset until the user chooses it.", properties: { date: { enum: [null], nullable: true, type: "object" }, durationMinutes: { maximum: 1440, minimum: 1, nullable: true, type: "integer" }, note: { type: "string" }, projectId: { format: "uuid", nullable: true, type: "string" } }, required: ["date", "durationMinutes", "note", "projectId"], type: "object" };
|
|
2708
2875
|
function p2(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6, rootData: f3 = e4 } = {}) {
|
|
2709
|
-
let
|
|
2876
|
+
let o12 = null, r2 = 0;
|
|
2710
2877
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2711
2878
|
let i5;
|
|
2712
2879
|
if (e4.date === void 0 && (i5 = "date") || e4.durationMinutes === void 0 && (i5 = "durationMinutes") || e4.note === void 0 && (i5 = "note") || e4.projectId === void 0 && (i5 = "projectId")) return p2.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
@@ -2750,10 +2917,10 @@ function p2(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6,
|
|
|
2750
2917
|
}
|
|
2751
2918
|
}
|
|
2752
2919
|
} else return p2.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2753
|
-
return p2.errors =
|
|
2920
|
+
return p2.errors = o12, r2 === 0;
|
|
2754
2921
|
}
|
|
2755
2922
|
function m4(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6, rootData: f3 = e4 } = {}) {
|
|
2756
|
-
let
|
|
2923
|
+
let o12 = null, r2 = 0;
|
|
2757
2924
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2758
2925
|
let u4;
|
|
2759
2926
|
if (e4.availableProjects === void 0 && (u4 = "availableProjects") || e4.draft === void 0 && (u4 = "draft") || e4.originalText === void 0 && (u4 = "originalText") || e4.timezone === void 0 && (u4 = "timezone") || e4.dayBoundaryMinutes === void 0 && (u4 = "dayBoundaryMinutes") || e4.today === void 0 && (u4 = "today")) return m4.errors = [{ instancePath: a5, schemaPath: "#/required", keyword: "required", params: { missingProperty: u4 }, message: "must have required property '" + u4 + "'" }], false;
|
|
@@ -2771,7 +2938,7 @@ function m4(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6,
|
|
|
2771
2938
|
let w3 = t8.length;
|
|
2772
2939
|
for (let y3 = 0; y3 < w3; y3++) {
|
|
2773
2940
|
let M = r2;
|
|
2774
|
-
d3(t8[y3], { instancePath: a5 + "/availableProjects/" + y3, parentData: t8, parentDataProperty: y3, rootData: f3 }) || (
|
|
2941
|
+
d3(t8[y3], { instancePath: a5 + "/availableProjects/" + y3, parentData: t8, parentDataProperty: y3, rootData: f3 }) || (o12 = o12 === null ? d3.errors : o12.concat(d3.errors), r2 = o12.length);
|
|
2775
2942
|
var n7 = M === r2;
|
|
2776
2943
|
if (!n7) break;
|
|
2777
2944
|
}
|
|
@@ -2788,7 +2955,7 @@ function m4(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6,
|
|
|
2788
2955
|
if (i5) {
|
|
2789
2956
|
if (e4.draft !== void 0) {
|
|
2790
2957
|
let t8 = r2;
|
|
2791
|
-
p2(e4.draft, { instancePath: a5 + "/draft", parentData: e4, parentDataProperty: "draft", rootData: f3 }) || (
|
|
2958
|
+
p2(e4.draft, { instancePath: a5 + "/draft", parentData: e4, parentDataProperty: "draft", rootData: f3 }) || (o12 = o12 === null ? p2.errors : o12.concat(p2.errors), r2 = o12.length);
|
|
2792
2959
|
var i5 = t8 === r2;
|
|
2793
2960
|
} else var i5 = true;
|
|
2794
2961
|
if (i5) {
|
|
@@ -2817,22 +2984,22 @@ function m4(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6,
|
|
|
2817
2984
|
}
|
|
2818
2985
|
}
|
|
2819
2986
|
} else return m4.errors = [{ instancePath: a5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2820
|
-
return m4.errors =
|
|
2987
|
+
return m4.errors = o12, r2 === 0;
|
|
2821
2988
|
}
|
|
2822
2989
|
function c2(e4, { instancePath: a5 = "", parentData: g, parentDataProperty: v6, rootData: f3 = e4 } = {}) {
|
|
2823
|
-
let
|
|
2824
|
-
i(e4, { instancePath: a5, parentData: g, parentDataProperty: v6, rootData: f3 }) || (
|
|
2990
|
+
let o12 = null, r2 = 0, n7 = r2;
|
|
2991
|
+
i(e4, { instancePath: a5, parentData: g, parentDataProperty: v6, rootData: f3 }) || (o12 = o12 === null ? i.errors : o12.concat(i.errors), r2 = o12.length);
|
|
2825
2992
|
var i5 = n7 === r2;
|
|
2826
2993
|
if (i5) {
|
|
2827
2994
|
let u4 = r2;
|
|
2828
2995
|
if (r2 === u4) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
2829
2996
|
let t8;
|
|
2830
2997
|
if (e4.data === void 0 && (t8 = "data")) return c2.errors = [{ instancePath: a5, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: t8 }, message: "must have required property '" + t8 + "'" }], false;
|
|
2831
|
-
e4.data !== void 0 && (m4(e4.data, { instancePath: a5 + "/data", parentData: e4, parentDataProperty: "data", rootData: f3 }) || (
|
|
2998
|
+
e4.data !== void 0 && (m4(e4.data, { instancePath: a5 + "/data", parentData: e4, parentDataProperty: "data", rootData: f3 }) || (o12 = o12 === null ? m4.errors : o12.concat(m4.errors), r2 = o12.length));
|
|
2832
2999
|
} else return c2.errors = [{ instancePath: a5, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
2833
3000
|
var i5 = u4 === r2;
|
|
2834
3001
|
}
|
|
2835
|
-
return c2.errors =
|
|
3002
|
+
return c2.errors = o12, r2 === 0;
|
|
2836
3003
|
}
|
|
2837
3004
|
var S = c2;
|
|
2838
3005
|
|
|
@@ -2850,36 +3017,36 @@ var postV1AiLog = {
|
|
|
2850
3017
|
|
|
2851
3018
|
// ../../packages/contracts/src/generated/validators/shared/HSMQKBKA.js
|
|
2852
3019
|
var c3 = { description: "Create time entry response", properties: { artifactUrl: { format: "uri", nullable: true, type: "string" }, captureSource: { enum: ["unrecorded", "manual", "timer", "ai_text", "voice", "cli", "agent"], type: "string" }, createdAt: { format: "date-time", type: "string" }, description: { nullable: true, type: "string" }, details: { items: { type: "string" }, type: "array" }, durationSeconds: { minimum: 1, type: "integer" }, id: { format: "uuid", type: "string" }, isFlowSession: { type: "boolean" }, localDay: { format: "date", type: "string" }, localWeekStart: { format: "date", type: "string" }, loggedLate: { type: "boolean" }, milestoneHit: { enum: [100, 500, 1e3, null], nullable: true, type: "integer" }, newBadges: { items: { type: "string" }, type: "array" }, note: { nullable: true, type: "string" }, projectId: { format: "uuid", type: "string" }, startedAt: { format: "date-time", type: "string" }, updatedAt: { format: "date-time", type: "string" }, voidedAt: { format: "date-time", nullable: true, type: "string" }, xpAwarded: { minimum: 0, type: "integer" } }, required: ["id", "projectId", "startedAt", "durationSeconds", "description", "note", "artifactUrl", "isFlowSession", "loggedLate", "captureSource", "localDay", "localWeekStart", "voidedAt", "createdAt", "updatedAt", "milestoneHit", "xpAwarded", "newBadges", "details"], type: "object" };
|
|
2853
|
-
function i4(t8, { instancePath:
|
|
2854
|
-
let
|
|
3020
|
+
function i4(t8, { instancePath: o12 = "", parentData: w3, parentDataProperty: A2, rootData: b4 = t8 } = {}) {
|
|
3021
|
+
let h11 = null, r2 = 0;
|
|
2855
3022
|
if (r2 === 0) if (t8 && typeof t8 == "object" && !Array.isArray(t8)) {
|
|
2856
3023
|
let n7;
|
|
2857
|
-
if (t8.id === void 0 && (n7 = "id") || t8.projectId === void 0 && (n7 = "projectId") || t8.startedAt === void 0 && (n7 = "startedAt") || t8.durationSeconds === void 0 && (n7 = "durationSeconds") || t8.description === void 0 && (n7 = "description") || t8.note === void 0 && (n7 = "note") || t8.artifactUrl === void 0 && (n7 = "artifactUrl") || t8.isFlowSession === void 0 && (n7 = "isFlowSession") || t8.loggedLate === void 0 && (n7 = "loggedLate") || t8.captureSource === void 0 && (n7 = "captureSource") || t8.localDay === void 0 && (n7 = "localDay") || t8.localWeekStart === void 0 && (n7 = "localWeekStart") || t8.voidedAt === void 0 && (n7 = "voidedAt") || t8.createdAt === void 0 && (n7 = "createdAt") || t8.updatedAt === void 0 && (n7 = "updatedAt") || t8.milestoneHit === void 0 && (n7 = "milestoneHit") || t8.xpAwarded === void 0 && (n7 = "xpAwarded") || t8.newBadges === void 0 && (n7 = "newBadges") || t8.details === void 0 && (n7 = "details")) return i4.errors = [{ instancePath:
|
|
3024
|
+
if (t8.id === void 0 && (n7 = "id") || t8.projectId === void 0 && (n7 = "projectId") || t8.startedAt === void 0 && (n7 = "startedAt") || t8.durationSeconds === void 0 && (n7 = "durationSeconds") || t8.description === void 0 && (n7 = "description") || t8.note === void 0 && (n7 = "note") || t8.artifactUrl === void 0 && (n7 = "artifactUrl") || t8.isFlowSession === void 0 && (n7 = "isFlowSession") || t8.loggedLate === void 0 && (n7 = "loggedLate") || t8.captureSource === void 0 && (n7 = "captureSource") || t8.localDay === void 0 && (n7 = "localDay") || t8.localWeekStart === void 0 && (n7 = "localWeekStart") || t8.voidedAt === void 0 && (n7 = "voidedAt") || t8.createdAt === void 0 && (n7 = "createdAt") || t8.updatedAt === void 0 && (n7 = "updatedAt") || t8.milestoneHit === void 0 && (n7 = "milestoneHit") || t8.xpAwarded === void 0 && (n7 = "xpAwarded") || t8.newBadges === void 0 && (n7 = "newBadges") || t8.details === void 0 && (n7 = "details")) return i4.errors = [{ instancePath: o12, schemaPath: "#/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
2858
3025
|
if (t8.artifactUrl !== void 0) {
|
|
2859
3026
|
let e4 = t8.artifactUrl, a5 = r2;
|
|
2860
|
-
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath:
|
|
2861
|
-
if (r2 === a5 && r2 === a5 && typeof e4 == "string" && !
|
|
3027
|
+
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath: o12 + "/artifactUrl", schemaPath: "#/properties/artifactUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3028
|
+
if (r2 === a5 && r2 === a5 && typeof e4 == "string" && !o5(e4)) return i4.errors = [{ instancePath: o12 + "/artifactUrl", schemaPath: "#/properties/artifactUrl/format", keyword: "format", params: { format: "uri" }, message: 'must match format "uri"' }], false;
|
|
2862
3029
|
var s7 = a5 === r2;
|
|
2863
3030
|
} else var s7 = true;
|
|
2864
3031
|
if (s7) {
|
|
2865
3032
|
if (t8.captureSource !== void 0) {
|
|
2866
3033
|
let e4 = t8.captureSource, a5 = r2;
|
|
2867
|
-
if (typeof e4 != "string") return i4.errors = [{ instancePath:
|
|
2868
|
-
if (!(e4 === "unrecorded" || e4 === "manual" || e4 === "timer" || e4 === "ai_text" || e4 === "voice" || e4 === "cli" || e4 === "agent")) return i4.errors = [{ instancePath:
|
|
3034
|
+
if (typeof e4 != "string") return i4.errors = [{ instancePath: o12 + "/captureSource", schemaPath: "#/properties/captureSource/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3035
|
+
if (!(e4 === "unrecorded" || e4 === "manual" || e4 === "timer" || e4 === "ai_text" || e4 === "voice" || e4 === "cli" || e4 === "agent")) return i4.errors = [{ instancePath: o12 + "/captureSource", schemaPath: "#/properties/captureSource/enum", keyword: "enum", params: { allowedValues: c3.properties.captureSource.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2869
3036
|
var s7 = a5 === r2;
|
|
2870
3037
|
} else var s7 = true;
|
|
2871
3038
|
if (s7) {
|
|
2872
3039
|
if (t8.createdAt !== void 0) {
|
|
2873
3040
|
let e4 = t8.createdAt, a5 = r2;
|
|
2874
3041
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2875
|
-
if (!e.validate(e4)) return i4.errors = [{ instancePath:
|
|
2876
|
-
} else return i4.errors = [{ instancePath:
|
|
3042
|
+
if (!e.validate(e4)) return i4.errors = [{ instancePath: o12 + "/createdAt", schemaPath: "#/properties/createdAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
3043
|
+
} else return i4.errors = [{ instancePath: o12 + "/createdAt", schemaPath: "#/properties/createdAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2877
3044
|
var s7 = a5 === r2;
|
|
2878
3045
|
} else var s7 = true;
|
|
2879
3046
|
if (s7) {
|
|
2880
3047
|
if (t8.description !== void 0) {
|
|
2881
3048
|
let e4 = t8.description, a5 = r2;
|
|
2882
|
-
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath:
|
|
3049
|
+
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath: o12 + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2883
3050
|
var s7 = a5 === r2;
|
|
2884
3051
|
} else var s7 = true;
|
|
2885
3052
|
if (s7) {
|
|
@@ -2890,61 +3057,61 @@ function i4(t8, { instancePath: o11 = "", parentData: w3, parentDataProperty: A2
|
|
|
2890
3057
|
let m6 = e4.length;
|
|
2891
3058
|
for (let d5 = 0; d5 < m6; d5++) {
|
|
2892
3059
|
let f3 = r2;
|
|
2893
|
-
if (typeof e4[d5] != "string") return i4.errors = [{ instancePath:
|
|
3060
|
+
if (typeof e4[d5] != "string") return i4.errors = [{ instancePath: o12 + "/details/" + d5, schemaPath: "#/properties/details/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2894
3061
|
var y3 = f3 === r2;
|
|
2895
3062
|
if (!y3) break;
|
|
2896
3063
|
}
|
|
2897
|
-
} else return i4.errors = [{ instancePath:
|
|
3064
|
+
} else return i4.errors = [{ instancePath: o12 + "/details", schemaPath: "#/properties/details/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
2898
3065
|
var s7 = a5 === r2;
|
|
2899
3066
|
} else var s7 = true;
|
|
2900
3067
|
if (s7) {
|
|
2901
3068
|
if (t8.durationSeconds !== void 0) {
|
|
2902
3069
|
let e4 = t8.durationSeconds, a5 = r2;
|
|
2903
|
-
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4))) return i4.errors = [{ instancePath:
|
|
2904
|
-
if (r2 === a5 && typeof e4 == "number" && isFinite(e4) && (e4 < 1 || isNaN(e4))) return i4.errors = [{ instancePath:
|
|
3070
|
+
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4))) return i4.errors = [{ instancePath: o12 + "/durationSeconds", schemaPath: "#/properties/durationSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
3071
|
+
if (r2 === a5 && typeof e4 == "number" && isFinite(e4) && (e4 < 1 || isNaN(e4))) return i4.errors = [{ instancePath: o12 + "/durationSeconds", schemaPath: "#/properties/durationSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], false;
|
|
2905
3072
|
var s7 = a5 === r2;
|
|
2906
3073
|
} else var s7 = true;
|
|
2907
3074
|
if (s7) {
|
|
2908
3075
|
if (t8.id !== void 0) {
|
|
2909
3076
|
let e4 = t8.id, a5 = r2;
|
|
2910
3077
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2911
|
-
if (!a2.test(e4)) return i4.errors = [{ instancePath:
|
|
2912
|
-
} else return i4.errors = [{ instancePath:
|
|
3078
|
+
if (!a2.test(e4)) return i4.errors = [{ instancePath: o12 + "/id", schemaPath: "#/properties/id/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
3079
|
+
} else return i4.errors = [{ instancePath: o12 + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2913
3080
|
var s7 = a5 === r2;
|
|
2914
3081
|
} else var s7 = true;
|
|
2915
3082
|
if (s7) {
|
|
2916
3083
|
if (t8.isFlowSession !== void 0) {
|
|
2917
3084
|
let e4 = r2;
|
|
2918
|
-
if (typeof t8.isFlowSession != "boolean") return i4.errors = [{ instancePath:
|
|
3085
|
+
if (typeof t8.isFlowSession != "boolean") return i4.errors = [{ instancePath: o12 + "/isFlowSession", schemaPath: "#/properties/isFlowSession/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
2919
3086
|
var s7 = e4 === r2;
|
|
2920
3087
|
} else var s7 = true;
|
|
2921
3088
|
if (s7) {
|
|
2922
3089
|
if (t8.localDay !== void 0) {
|
|
2923
3090
|
let e4 = t8.localDay, a5 = r2;
|
|
2924
3091
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2925
|
-
if (!t3.validate(e4)) return i4.errors = [{ instancePath:
|
|
2926
|
-
} else return i4.errors = [{ instancePath:
|
|
3092
|
+
if (!t3.validate(e4)) return i4.errors = [{ instancePath: o12 + "/localDay", schemaPath: "#/properties/localDay/format", keyword: "format", params: { format: "date" }, message: 'must match format "date"' }], false;
|
|
3093
|
+
} else return i4.errors = [{ instancePath: o12 + "/localDay", schemaPath: "#/properties/localDay/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2927
3094
|
var s7 = a5 === r2;
|
|
2928
3095
|
} else var s7 = true;
|
|
2929
3096
|
if (s7) {
|
|
2930
3097
|
if (t8.localWeekStart !== void 0) {
|
|
2931
3098
|
let e4 = t8.localWeekStart, a5 = r2;
|
|
2932
3099
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2933
|
-
if (!t3.validate(e4)) return i4.errors = [{ instancePath:
|
|
2934
|
-
} else return i4.errors = [{ instancePath:
|
|
3100
|
+
if (!t3.validate(e4)) return i4.errors = [{ instancePath: o12 + "/localWeekStart", schemaPath: "#/properties/localWeekStart/format", keyword: "format", params: { format: "date" }, message: 'must match format "date"' }], false;
|
|
3101
|
+
} else return i4.errors = [{ instancePath: o12 + "/localWeekStart", schemaPath: "#/properties/localWeekStart/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2935
3102
|
var s7 = a5 === r2;
|
|
2936
3103
|
} else var s7 = true;
|
|
2937
3104
|
if (s7) {
|
|
2938
3105
|
if (t8.loggedLate !== void 0) {
|
|
2939
3106
|
let e4 = r2;
|
|
2940
|
-
if (typeof t8.loggedLate != "boolean") return i4.errors = [{ instancePath:
|
|
3107
|
+
if (typeof t8.loggedLate != "boolean") return i4.errors = [{ instancePath: o12 + "/loggedLate", schemaPath: "#/properties/loggedLate/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
2941
3108
|
var s7 = e4 === r2;
|
|
2942
3109
|
} else var s7 = true;
|
|
2943
3110
|
if (s7) {
|
|
2944
3111
|
if (t8.milestoneHit !== void 0) {
|
|
2945
3112
|
let e4 = t8.milestoneHit, a5 = r2;
|
|
2946
|
-
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4)) && e4 !== null) return i4.errors = [{ instancePath:
|
|
2947
|
-
if (!(e4 === 100 || e4 === 500 || e4 === 1e3 || e4 === null)) return i4.errors = [{ instancePath:
|
|
3113
|
+
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4)) && e4 !== null) return i4.errors = [{ instancePath: o12 + "/milestoneHit", schemaPath: "#/properties/milestoneHit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
3114
|
+
if (!(e4 === 100 || e4 === 500 || e4 === 1e3 || e4 === null)) return i4.errors = [{ instancePath: o12 + "/milestoneHit", schemaPath: "#/properties/milestoneHit/enum", keyword: "enum", params: { allowedValues: c3.properties.milestoneHit.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
2948
3115
|
var s7 = a5 === r2;
|
|
2949
3116
|
} else var s7 = true;
|
|
2950
3117
|
if (s7) {
|
|
@@ -2955,54 +3122,54 @@ function i4(t8, { instancePath: o11 = "", parentData: w3, parentDataProperty: A2
|
|
|
2955
3122
|
let m6 = e4.length;
|
|
2956
3123
|
for (let d5 = 0; d5 < m6; d5++) {
|
|
2957
3124
|
let f3 = r2;
|
|
2958
|
-
if (typeof e4[d5] != "string") return i4.errors = [{ instancePath:
|
|
3125
|
+
if (typeof e4[d5] != "string") return i4.errors = [{ instancePath: o12 + "/newBadges/" + d5, schemaPath: "#/properties/newBadges/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2959
3126
|
var g = f3 === r2;
|
|
2960
3127
|
if (!g) break;
|
|
2961
3128
|
}
|
|
2962
|
-
} else return i4.errors = [{ instancePath:
|
|
3129
|
+
} else return i4.errors = [{ instancePath: o12 + "/newBadges", schemaPath: "#/properties/newBadges/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
2963
3130
|
var s7 = a5 === r2;
|
|
2964
3131
|
} else var s7 = true;
|
|
2965
3132
|
if (s7) {
|
|
2966
3133
|
if (t8.note !== void 0) {
|
|
2967
3134
|
let e4 = t8.note, a5 = r2;
|
|
2968
|
-
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath:
|
|
3135
|
+
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath: o12 + "/note", schemaPath: "#/properties/note/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2969
3136
|
var s7 = a5 === r2;
|
|
2970
3137
|
} else var s7 = true;
|
|
2971
3138
|
if (s7) {
|
|
2972
3139
|
if (t8.projectId !== void 0) {
|
|
2973
3140
|
let e4 = t8.projectId, a5 = r2;
|
|
2974
3141
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2975
|
-
if (!a2.test(e4)) return i4.errors = [{ instancePath:
|
|
2976
|
-
} else return i4.errors = [{ instancePath:
|
|
3142
|
+
if (!a2.test(e4)) return i4.errors = [{ instancePath: o12 + "/projectId", schemaPath: "#/properties/projectId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
3143
|
+
} else return i4.errors = [{ instancePath: o12 + "/projectId", schemaPath: "#/properties/projectId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2977
3144
|
var s7 = a5 === r2;
|
|
2978
3145
|
} else var s7 = true;
|
|
2979
3146
|
if (s7) {
|
|
2980
3147
|
if (t8.startedAt !== void 0) {
|
|
2981
3148
|
let e4 = t8.startedAt, a5 = r2;
|
|
2982
3149
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2983
|
-
if (!e.validate(e4)) return i4.errors = [{ instancePath:
|
|
2984
|
-
} else return i4.errors = [{ instancePath:
|
|
3150
|
+
if (!e.validate(e4)) return i4.errors = [{ instancePath: o12 + "/startedAt", schemaPath: "#/properties/startedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
3151
|
+
} else return i4.errors = [{ instancePath: o12 + "/startedAt", schemaPath: "#/properties/startedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2985
3152
|
var s7 = a5 === r2;
|
|
2986
3153
|
} else var s7 = true;
|
|
2987
3154
|
if (s7) {
|
|
2988
3155
|
if (t8.updatedAt !== void 0) {
|
|
2989
3156
|
let e4 = t8.updatedAt, a5 = r2;
|
|
2990
3157
|
if (r2 === a5 && r2 === a5) if (typeof e4 == "string") {
|
|
2991
|
-
if (!e.validate(e4)) return i4.errors = [{ instancePath:
|
|
2992
|
-
} else return i4.errors = [{ instancePath:
|
|
3158
|
+
if (!e.validate(e4)) return i4.errors = [{ instancePath: o12 + "/updatedAt", schemaPath: "#/properties/updatedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
3159
|
+
} else return i4.errors = [{ instancePath: o12 + "/updatedAt", schemaPath: "#/properties/updatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
2993
3160
|
var s7 = a5 === r2;
|
|
2994
3161
|
} else var s7 = true;
|
|
2995
3162
|
if (s7) {
|
|
2996
3163
|
if (t8.voidedAt !== void 0) {
|
|
2997
3164
|
let e4 = t8.voidedAt, a5 = r2;
|
|
2998
|
-
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath:
|
|
2999
|
-
if (r2 === a5 && r2 === a5 && typeof e4 == "string" && !e.validate(e4)) return i4.errors = [{ instancePath:
|
|
3165
|
+
if (typeof e4 != "string" && e4 !== null) return i4.errors = [{ instancePath: o12 + "/voidedAt", schemaPath: "#/properties/voidedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3166
|
+
if (r2 === a5 && r2 === a5 && typeof e4 == "string" && !e.validate(e4)) return i4.errors = [{ instancePath: o12 + "/voidedAt", schemaPath: "#/properties/voidedAt/format", keyword: "format", params: { format: "date-time" }, message: 'must match format "date-time"' }], false;
|
|
3000
3167
|
var s7 = a5 === r2;
|
|
3001
3168
|
} else var s7 = true;
|
|
3002
3169
|
if (s7) if (t8.xpAwarded !== void 0) {
|
|
3003
3170
|
let e4 = t8.xpAwarded, a5 = r2;
|
|
3004
|
-
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4))) return i4.errors = [{ instancePath:
|
|
3005
|
-
if (r2 === a5 && typeof e4 == "number" && isFinite(e4) && (e4 < 0 || isNaN(e4))) return i4.errors = [{ instancePath:
|
|
3171
|
+
if (!(typeof e4 == "number" && !(e4 % 1) && !isNaN(e4) && isFinite(e4))) return i4.errors = [{ instancePath: o12 + "/xpAwarded", schemaPath: "#/properties/xpAwarded/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
3172
|
+
if (r2 === a5 && typeof e4 == "number" && isFinite(e4) && (e4 < 0 || isNaN(e4))) return i4.errors = [{ instancePath: o12 + "/xpAwarded", schemaPath: "#/properties/xpAwarded/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }], false;
|
|
3006
3173
|
var s7 = a5 === r2;
|
|
3007
3174
|
} else var s7 = true;
|
|
3008
3175
|
}
|
|
@@ -3022,12 +3189,12 @@ function i4(t8, { instancePath: o11 = "", parentData: w3, parentDataProperty: A2
|
|
|
3022
3189
|
}
|
|
3023
3190
|
}
|
|
3024
3191
|
}
|
|
3025
|
-
} else return i4.errors = [{ instancePath:
|
|
3026
|
-
return i4.errors =
|
|
3192
|
+
} else return i4.errors = [{ instancePath: o12, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3193
|
+
return i4.errors = h11, r2 === 0;
|
|
3027
3194
|
}
|
|
3028
3195
|
|
|
3029
3196
|
// ../../packages/contracts/src/generated/validators/postV1AiLogConfirm200.js
|
|
3030
|
-
function
|
|
3197
|
+
function o8(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4, rootData: n7 = r2 } = {}) {
|
|
3031
3198
|
let e4 = null, t8 = 0, d5 = t8;
|
|
3032
3199
|
i(r2, { instancePath: s7, parentData: m6, parentDataProperty: u4, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), t8 = e4.length);
|
|
3033
3200
|
var f3 = d5 === t8;
|
|
@@ -3035,14 +3202,14 @@ function o7(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4,
|
|
|
3035
3202
|
let p6 = t8;
|
|
3036
3203
|
if (t8 === p6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3037
3204
|
let l4;
|
|
3038
|
-
if (r2.data === void 0 && (l4 = "data")) return
|
|
3205
|
+
if (r2.data === void 0 && (l4 = "data")) return o8.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
3039
3206
|
r2.data !== void 0 && (i4(r2.data, { instancePath: s7 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? i4.errors : e4.concat(i4.errors), t8 = e4.length));
|
|
3040
|
-
} else return
|
|
3207
|
+
} else return o8.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3041
3208
|
var f3 = p6 === t8;
|
|
3042
3209
|
}
|
|
3043
|
-
return
|
|
3210
|
+
return o8.errors = e4, t8 === 0;
|
|
3044
3211
|
}
|
|
3045
|
-
var
|
|
3212
|
+
var h5 = o8;
|
|
3046
3213
|
|
|
3047
3214
|
// ../../packages/contracts/src/generated/endpoints/postV1AiLogConfirm.ts
|
|
3048
3215
|
var postV1AiLogConfirm = {
|
|
@@ -3051,28 +3218,28 @@ var postV1AiLogConfirm = {
|
|
|
3051
3218
|
operation: "POST /v1/ai/log/confirm",
|
|
3052
3219
|
revision: contractRevision,
|
|
3053
3220
|
responses: {
|
|
3054
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AiLogConfirm:200", validate:
|
|
3221
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1AiLogConfirm:200", validate: h5 }
|
|
3055
3222
|
},
|
|
3056
3223
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
3057
3224
|
};
|
|
3058
3225
|
|
|
3059
3226
|
// ../../packages/contracts/src/generated/validators/postV1TimeEntries200.js
|
|
3060
|
-
function s4(r2, { instancePath:
|
|
3227
|
+
function s4(r2, { instancePath: o12 = "", parentData: m6, parentDataProperty: u4, rootData: n7 = r2 } = {}) {
|
|
3061
3228
|
let e4 = null, t8 = 0, d5 = t8;
|
|
3062
|
-
i(r2, { instancePath:
|
|
3229
|
+
i(r2, { instancePath: o12, parentData: m6, parentDataProperty: u4, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), t8 = e4.length);
|
|
3063
3230
|
var f3 = d5 === t8;
|
|
3064
3231
|
if (f3) {
|
|
3065
3232
|
let p6 = t8;
|
|
3066
3233
|
if (t8 === p6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3067
3234
|
let l4;
|
|
3068
|
-
if (r2.data === void 0 && (l4 = "data")) return s4.errors = [{ instancePath:
|
|
3069
|
-
r2.data !== void 0 && (i4(r2.data, { instancePath:
|
|
3070
|
-
} else return s4.errors = [{ instancePath:
|
|
3235
|
+
if (r2.data === void 0 && (l4 = "data")) return s4.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
3236
|
+
r2.data !== void 0 && (i4(r2.data, { instancePath: o12 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? i4.errors : e4.concat(i4.errors), t8 = e4.length));
|
|
3237
|
+
} else return s4.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3071
3238
|
var f3 = p6 === t8;
|
|
3072
3239
|
}
|
|
3073
3240
|
return s4.errors = e4, t8 === 0;
|
|
3074
3241
|
}
|
|
3075
|
-
var
|
|
3242
|
+
var h6 = s4;
|
|
3076
3243
|
|
|
3077
3244
|
// ../../packages/contracts/src/generated/endpoints/postV1TimeEntries.ts
|
|
3078
3245
|
var postV1TimeEntries = {
|
|
@@ -3081,7 +3248,7 @@ var postV1TimeEntries = {
|
|
|
3081
3248
|
operation: "POST /v1/time-entries/",
|
|
3082
3249
|
revision: contractRevision,
|
|
3083
3250
|
responses: {
|
|
3084
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1TimeEntries:200", validate:
|
|
3251
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1TimeEntries:200", validate: h6 }
|
|
3085
3252
|
},
|
|
3086
3253
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
3087
3254
|
};
|
|
@@ -3095,32 +3262,32 @@ function p3(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4,
|
|
|
3095
3262
|
if (e4.name === void 0 && (l4 = "name") || e4.totalHours === void 0 && (l4 = "totalHours") || e4.color === void 0 && (l4 = "color") || e4.icon === void 0 && (l4 = "icon")) return p3.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
3096
3263
|
{
|
|
3097
3264
|
let y3 = r2;
|
|
3098
|
-
for (let
|
|
3099
|
-
return p3.errors = [{ instancePath: i5, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty:
|
|
3265
|
+
for (let o12 in e4) if (!(o12 === "color" || o12 === "icon" || o12 === "name" || o12 === "totalHours")) {
|
|
3266
|
+
return p3.errors = [{ instancePath: i5, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: o12 }, message: "must NOT have additional properties" }], false;
|
|
3100
3267
|
break;
|
|
3101
3268
|
}
|
|
3102
3269
|
if (y3 === r2) {
|
|
3103
3270
|
if (e4.color !== void 0) {
|
|
3104
|
-
let
|
|
3271
|
+
let o12 = r2;
|
|
3105
3272
|
if (typeof e4.color != "string") return p3.errors = [{ instancePath: i5 + "/color", schemaPath: "#/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3106
|
-
var s7 =
|
|
3273
|
+
var s7 = o12 === r2;
|
|
3107
3274
|
} else var s7 = true;
|
|
3108
3275
|
if (s7) {
|
|
3109
3276
|
if (e4.icon !== void 0) {
|
|
3110
|
-
let
|
|
3277
|
+
let o12 = r2;
|
|
3111
3278
|
if (typeof e4.icon != "string") return p3.errors = [{ instancePath: i5 + "/icon", schemaPath: "#/properties/icon/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3112
|
-
var s7 =
|
|
3279
|
+
var s7 = o12 === r2;
|
|
3113
3280
|
} else var s7 = true;
|
|
3114
3281
|
if (s7) {
|
|
3115
3282
|
if (e4.name !== void 0) {
|
|
3116
|
-
let
|
|
3283
|
+
let o12 = r2;
|
|
3117
3284
|
if (typeof e4.name != "string") return p3.errors = [{ instancePath: i5 + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3118
|
-
var s7 =
|
|
3285
|
+
var s7 = o12 === r2;
|
|
3119
3286
|
} else var s7 = true;
|
|
3120
3287
|
if (s7) if (e4.totalHours !== void 0) {
|
|
3121
|
-
let
|
|
3122
|
-
if (r2 === f3) if (typeof
|
|
3123
|
-
if (
|
|
3288
|
+
let o12 = e4.totalHours, f3 = r2;
|
|
3289
|
+
if (r2 === f3) if (typeof o12 == "number" && isFinite(o12)) {
|
|
3290
|
+
if (o12 < 0 || isNaN(o12)) return p3.errors = [{ instancePath: i5 + "/totalHours", schemaPath: "#/properties/totalHours/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }], false;
|
|
3124
3291
|
} else return p3.errors = [{ instancePath: i5 + "/totalHours", schemaPath: "#/properties/totalHours/type", keyword: "type", params: { type: "number" }, message: "must be number" }], false;
|
|
3125
3292
|
var s7 = f3 === r2;
|
|
3126
3293
|
} else var s7 = true;
|
|
@@ -3134,8 +3301,8 @@ function p3(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4,
|
|
|
3134
3301
|
function n2(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4, rootData: c5 = e4 } = {}) {
|
|
3135
3302
|
let m6 = null, r2 = 0;
|
|
3136
3303
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
3137
|
-
let
|
|
3138
|
-
if (e4.totalHours === void 0 && (
|
|
3304
|
+
let o12;
|
|
3305
|
+
if (e4.totalHours === void 0 && (o12 = "totalHours") || e4.deepWorkHours === void 0 && (o12 = "deepWorkHours") || e4.totalEntries === void 0 && (o12 = "totalEntries") || e4.topProjects === void 0 && (o12 = "topProjects") || e4.topRoutines === void 0 && (o12 = "topRoutines") || e4.level === void 0 && (o12 = "level") || e4.levelName === void 0 && (o12 = "levelName") || e4.totalXp === void 0 && (o12 = "totalXp") || e4.memberSince === void 0 && (o12 = "memberSince")) return n2.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
3139
3306
|
{
|
|
3140
3307
|
let f3 = r2;
|
|
3141
3308
|
for (let t8 in e4) if (!t4.call(H.properties, t8)) {
|
|
@@ -3176,8 +3343,8 @@ function n2(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4,
|
|
|
3176
3343
|
let t8 = e4.topProjects, a5 = r2;
|
|
3177
3344
|
if (r2 === a5) if (Array.isArray(t8)) {
|
|
3178
3345
|
var l4 = true;
|
|
3179
|
-
let
|
|
3180
|
-
for (let u4 = 0; u4 <
|
|
3346
|
+
let h11 = t8.length;
|
|
3347
|
+
for (let u4 = 0; u4 < h11; u4++) {
|
|
3181
3348
|
let P4 = r2;
|
|
3182
3349
|
p3(t8[u4], { instancePath: i5 + "/topProjects/" + u4, parentData: t8, parentDataProperty: u4, rootData: c5 }) || (m6 = m6 === null ? p3.errors : m6.concat(p3.errors), r2 = m6.length);
|
|
3183
3350
|
var l4 = P4 === r2;
|
|
@@ -3191,8 +3358,8 @@ function n2(e4, { instancePath: i5 = "", parentData: g, parentDataProperty: b4,
|
|
|
3191
3358
|
let t8 = e4.topRoutines, a5 = r2;
|
|
3192
3359
|
if (r2 === a5) if (Array.isArray(t8)) {
|
|
3193
3360
|
var y3 = true;
|
|
3194
|
-
let
|
|
3195
|
-
for (let u4 = 0; u4 <
|
|
3361
|
+
let h11 = t8.length;
|
|
3362
|
+
for (let u4 = 0; u4 < h11; u4++) {
|
|
3196
3363
|
let P4 = r2;
|
|
3197
3364
|
p3(t8[u4], { instancePath: i5 + "/topRoutines/" + u4, parentData: t8, parentDataProperty: u4, rootData: c5 }) || (m6 = m6 === null ? p3.errors : m6.concat(p3.errors), r2 = m6.length);
|
|
3198
3365
|
var y3 = P4 === r2;
|
|
@@ -3264,11 +3431,11 @@ var getV1MePublicStats = {
|
|
|
3264
3431
|
};
|
|
3265
3432
|
|
|
3266
3433
|
// ../../packages/contracts/src/generated/validators/getV1MeStreak200.js
|
|
3267
|
-
function t7(r2, { instancePath: s7 = "", parentData: d5, parentDataProperty:
|
|
3434
|
+
function t7(r2, { instancePath: s7 = "", parentData: d5, parentDataProperty: h11, rootData: f3 = r2 } = {}) {
|
|
3268
3435
|
let m6 = null, i5 = 0;
|
|
3269
3436
|
if (i5 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3270
|
-
let
|
|
3271
|
-
if (r2.currentStreak === void 0 && (
|
|
3437
|
+
let o12;
|
|
3438
|
+
if (r2.currentStreak === void 0 && (o12 = "currentStreak") || r2.shields === void 0 && (o12 = "shields") || r2.maxShields === void 0 && (o12 = "maxShields") || r2.nextShieldAt === void 0 && (o12 = "nextShieldAt")) return t7.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
3272
3439
|
{
|
|
3273
3440
|
let p6 = i5;
|
|
3274
3441
|
for (let e4 in r2) if (!(e4 === "currentStreak" || e4 === "maxShields" || e4 === "nextShieldAt" || e4 === "shields")) {
|
|
@@ -3309,18 +3476,18 @@ function t7(r2, { instancePath: s7 = "", parentData: d5, parentDataProperty: h10
|
|
|
3309
3476
|
} else return t7.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3310
3477
|
return t7.errors = m6, i5 === 0;
|
|
3311
3478
|
}
|
|
3312
|
-
function l3(r2, { instancePath: s7 = "", parentData: d5, parentDataProperty:
|
|
3479
|
+
function l3(r2, { instancePath: s7 = "", parentData: d5, parentDataProperty: h11, rootData: f3 = r2 } = {}) {
|
|
3313
3480
|
let m6 = null, i5 = 0, n7 = i5;
|
|
3314
|
-
i(r2, { instancePath: s7, parentData: d5, parentDataProperty:
|
|
3315
|
-
var
|
|
3316
|
-
if (
|
|
3481
|
+
i(r2, { instancePath: s7, parentData: d5, parentDataProperty: h11, rootData: f3 }) || (m6 = m6 === null ? i.errors : m6.concat(i.errors), i5 = m6.length);
|
|
3482
|
+
var o12 = n7 === i5;
|
|
3483
|
+
if (o12) {
|
|
3317
3484
|
let p6 = i5;
|
|
3318
3485
|
if (i5 === p6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3319
3486
|
let a5;
|
|
3320
3487
|
if (r2.data === void 0 && (a5 = "data")) return l3.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: a5 }, message: "must have required property '" + a5 + "'" }], false;
|
|
3321
3488
|
r2.data !== void 0 && (t7(r2.data, { instancePath: s7 + "/data", parentData: r2, parentDataProperty: "data", rootData: f3 }) || (m6 = m6 === null ? t7.errors : m6.concat(t7.errors), i5 = m6.length));
|
|
3322
3489
|
} else return l3.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3323
|
-
var
|
|
3490
|
+
var o12 = p6 === i5;
|
|
3324
3491
|
}
|
|
3325
3492
|
return l3.errors = m6, i5 === 0;
|
|
3326
3493
|
}
|
|
@@ -3342,8 +3509,8 @@ var getV1MeStreak = {
|
|
|
3342
3509
|
function n3(r2, { instancePath: t8 = "", parentData: v6, parentDataProperty: y3, rootData: f3 = r2 } = {}) {
|
|
3343
3510
|
let m6 = null, s7 = 0;
|
|
3344
3511
|
if (s7 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3345
|
-
let
|
|
3346
|
-
if (r2.totalXp === void 0 && (
|
|
3512
|
+
let o12;
|
|
3513
|
+
if (r2.totalXp === void 0 && (o12 = "totalXp") || r2.level === void 0 && (o12 = "level") || r2.levelName === void 0 && (o12 = "levelName") || r2.xpInCurrentLevel === void 0 && (o12 = "xpInCurrentLevel") || r2.xpToNextLevel === void 0 && (o12 = "xpToNextLevel") || r2.progressPercent === void 0 && (o12 = "progressPercent") || r2.nextLevelName === void 0 && (o12 = "nextLevelName")) return n3.errors = [{ instancePath: t8, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
3347
3514
|
{
|
|
3348
3515
|
let l4 = s7;
|
|
3349
3516
|
for (let e4 in r2) if (!(e4 === "level" || e4 === "levelName" || e4 === "nextLevelName" || e4 === "progressPercent" || e4 === "totalXp" || e4 === "xpInCurrentLevel" || e4 === "xpToNextLevel")) {
|
|
@@ -3412,19 +3579,19 @@ function n3(r2, { instancePath: t8 = "", parentData: v6, parentDataProperty: y3,
|
|
|
3412
3579
|
function p4(r2, { instancePath: t8 = "", parentData: v6, parentDataProperty: y3, rootData: f3 = r2 } = {}) {
|
|
3413
3580
|
let m6 = null, s7 = 0, i5 = s7;
|
|
3414
3581
|
i(r2, { instancePath: t8, parentData: v6, parentDataProperty: y3, rootData: f3 }) || (m6 = m6 === null ? i.errors : m6.concat(i.errors), s7 = m6.length);
|
|
3415
|
-
var
|
|
3416
|
-
if (
|
|
3582
|
+
var o12 = i5 === s7;
|
|
3583
|
+
if (o12) {
|
|
3417
3584
|
let l4 = s7;
|
|
3418
3585
|
if (s7 === l4) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3419
3586
|
let a5;
|
|
3420
3587
|
if (r2.data === void 0 && (a5 = "data")) return p4.errors = [{ instancePath: t8, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: a5 }, message: "must have required property '" + a5 + "'" }], false;
|
|
3421
3588
|
r2.data !== void 0 && (n3(r2.data, { instancePath: t8 + "/data", parentData: r2, parentDataProperty: "data", rootData: f3 }) || (m6 = m6 === null ? n3.errors : m6.concat(n3.errors), s7 = m6.length));
|
|
3422
3589
|
} else return p4.errors = [{ instancePath: t8, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3423
|
-
var
|
|
3590
|
+
var o12 = l4 === s7;
|
|
3424
3591
|
}
|
|
3425
3592
|
return p4.errors = m6, s7 === 0;
|
|
3426
3593
|
}
|
|
3427
|
-
var
|
|
3594
|
+
var h7 = p4;
|
|
3428
3595
|
|
|
3429
3596
|
// ../../packages/contracts/src/generated/endpoints/getV1XpSummary.ts
|
|
3430
3597
|
var getV1XpSummary = {
|
|
@@ -3433,14 +3600,14 @@ var getV1XpSummary = {
|
|
|
3433
3600
|
operation: "GET /v1/xp/summary",
|
|
3434
3601
|
revision: contractRevision,
|
|
3435
3602
|
responses: {
|
|
3436
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:getV1XpSummary:200", validate:
|
|
3603
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:getV1XpSummary:200", validate: h7 }
|
|
3437
3604
|
},
|
|
3438
3605
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
3439
3606
|
};
|
|
3440
3607
|
|
|
3441
3608
|
// ../../packages/contracts/src/generated/validators/getV1MeBadges200.js
|
|
3442
|
-
function p5(e4, { instancePath: i5 = "", parentData:
|
|
3443
|
-
let
|
|
3609
|
+
function p5(e4, { instancePath: i5 = "", parentData: h11, parentDataProperty: g, rootData: f3 = e4 } = {}) {
|
|
3610
|
+
let o12 = null, r2 = 0;
|
|
3444
3611
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
3445
3612
|
let n7;
|
|
3446
3613
|
if (e4.id === void 0 && (n7 = "id") || e4.name === void 0 && (n7 = "name") || e4.description === void 0 && (n7 = "description") || e4.icon === void 0 && (n7 = "icon") || e4.threshold === void 0 && (n7 = "threshold") || e4.earnedAt === void 0 && (n7 = "earnedAt")) return p5.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
@@ -3495,10 +3662,10 @@ function p5(e4, { instancePath: i5 = "", parentData: h10, parentDataProperty: g,
|
|
|
3495
3662
|
}
|
|
3496
3663
|
}
|
|
3497
3664
|
} else return p5.errors = [{ instancePath: i5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3498
|
-
return p5.errors =
|
|
3665
|
+
return p5.errors = o12, r2 === 0;
|
|
3499
3666
|
}
|
|
3500
|
-
function m5(e4, { instancePath: i5 = "", parentData:
|
|
3501
|
-
let
|
|
3667
|
+
function m5(e4, { instancePath: i5 = "", parentData: h11, parentDataProperty: g, rootData: f3 = e4 } = {}) {
|
|
3668
|
+
let o12 = null, r2 = 0;
|
|
3502
3669
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
3503
3670
|
let l4;
|
|
3504
3671
|
if (e4.badges === void 0 && (l4 = "badges") || e4.total === void 0 && (l4 = "total")) return m5.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
@@ -3516,7 +3683,7 @@ function m5(e4, { instancePath: i5 = "", parentData: h10, parentDataProperty: g,
|
|
|
3516
3683
|
let b4 = t8.length;
|
|
3517
3684
|
for (let u4 = 0; u4 < b4; u4++) {
|
|
3518
3685
|
let P4 = r2;
|
|
3519
|
-
p5(t8[u4], { instancePath: i5 + "/badges/" + u4, parentData: t8, parentDataProperty: u4, rootData: f3 }) || (
|
|
3686
|
+
p5(t8[u4], { instancePath: i5 + "/badges/" + u4, parentData: t8, parentDataProperty: u4, rootData: f3 }) || (o12 = o12 === null ? p5.errors : o12.concat(p5.errors), r2 = o12.length);
|
|
3520
3687
|
var a5 = P4 === r2;
|
|
3521
3688
|
if (!a5) break;
|
|
3522
3689
|
}
|
|
@@ -3532,22 +3699,22 @@ function m5(e4, { instancePath: i5 = "", parentData: h10, parentDataProperty: g,
|
|
|
3532
3699
|
}
|
|
3533
3700
|
}
|
|
3534
3701
|
} else return m5.errors = [{ instancePath: i5, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3535
|
-
return m5.errors =
|
|
3702
|
+
return m5.errors = o12, r2 === 0;
|
|
3536
3703
|
}
|
|
3537
|
-
function y(e4, { instancePath: i5 = "", parentData:
|
|
3538
|
-
let
|
|
3539
|
-
i(e4, { instancePath: i5, parentData:
|
|
3704
|
+
function y(e4, { instancePath: i5 = "", parentData: h11, parentDataProperty: g, rootData: f3 = e4 } = {}) {
|
|
3705
|
+
let o12 = null, r2 = 0, a5 = r2;
|
|
3706
|
+
i(e4, { instancePath: i5, parentData: h11, parentDataProperty: g, rootData: f3 }) || (o12 = o12 === null ? i.errors : o12.concat(i.errors), r2 = o12.length);
|
|
3540
3707
|
var n7 = a5 === r2;
|
|
3541
3708
|
if (n7) {
|
|
3542
3709
|
let l4 = r2;
|
|
3543
3710
|
if (r2 === l4) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
3544
3711
|
let t8;
|
|
3545
3712
|
if (e4.data === void 0 && (t8 = "data")) return y.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: t8 }, message: "must have required property '" + t8 + "'" }], false;
|
|
3546
|
-
e4.data !== void 0 && (m5(e4.data, { instancePath: i5 + "/data", parentData: e4, parentDataProperty: "data", rootData: f3 }) || (
|
|
3713
|
+
e4.data !== void 0 && (m5(e4.data, { instancePath: i5 + "/data", parentData: e4, parentDataProperty: "data", rootData: f3 }) || (o12 = o12 === null ? m5.errors : o12.concat(m5.errors), r2 = o12.length));
|
|
3547
3714
|
} else return y.errors = [{ instancePath: i5, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3548
3715
|
var n7 = l4 === r2;
|
|
3549
3716
|
}
|
|
3550
|
-
return y.errors =
|
|
3717
|
+
return y.errors = o12, r2 === 0;
|
|
3551
3718
|
}
|
|
3552
3719
|
var x3 = y;
|
|
3553
3720
|
|
|
@@ -3565,48 +3732,48 @@ var getV1MeBadges = {
|
|
|
3565
3732
|
|
|
3566
3733
|
// ../../packages/contracts/src/generated/validators/getV1HourBank200.js
|
|
3567
3734
|
var S2 = { additionalProperties: false, description: "Hour bank totals per routine/project", properties: { color: { nullable: true, type: "string" }, icon: { nullable: true, type: "string" }, id: { format: "uuid", type: "string" }, kind: { enum: ["routine", "project"], type: "string" }, name: { type: "string" }, recentDays: { items: { additionalProperties: false, properties: { date: { type: "string" }, seconds: { type: "number" } }, required: ["date", "seconds"], type: "object" }, type: "array" }, totalHours: { type: "number" }, totalSeconds: { type: "number" } }, required: ["id", "kind", "name", "color", "icon", "totalSeconds", "totalHours", "recentDays"], type: "object" };
|
|
3568
|
-
function
|
|
3735
|
+
function o9(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3, rootData: g = r2 } = {}) {
|
|
3569
3736
|
let p6 = null, e4 = 0;
|
|
3570
3737
|
if (e4 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3571
3738
|
let i5;
|
|
3572
|
-
if (r2.id === void 0 && (i5 = "id") || r2.kind === void 0 && (i5 = "kind") || r2.name === void 0 && (i5 = "name") || r2.color === void 0 && (i5 = "color") || r2.icon === void 0 && (i5 = "icon") || r2.totalSeconds === void 0 && (i5 = "totalSeconds") || r2.totalHours === void 0 && (i5 = "totalHours") || r2.recentDays === void 0 && (i5 = "recentDays")) return
|
|
3739
|
+
if (r2.id === void 0 && (i5 = "id") || r2.kind === void 0 && (i5 = "kind") || r2.name === void 0 && (i5 = "name") || r2.color === void 0 && (i5 = "color") || r2.icon === void 0 && (i5 = "icon") || r2.totalSeconds === void 0 && (i5 = "totalSeconds") || r2.totalHours === void 0 && (i5 = "totalHours") || r2.recentDays === void 0 && (i5 = "recentDays")) return o9.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
3573
3740
|
{
|
|
3574
3741
|
let m6 = e4;
|
|
3575
3742
|
for (let t8 in r2) if (!(t8 === "color" || t8 === "icon" || t8 === "id" || t8 === "kind" || t8 === "name" || t8 === "recentDays" || t8 === "totalHours" || t8 === "totalSeconds")) {
|
|
3576
|
-
return
|
|
3743
|
+
return o9.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t8 }, message: "must NOT have additional properties" }], false;
|
|
3577
3744
|
break;
|
|
3578
3745
|
}
|
|
3579
3746
|
if (m6 === e4) {
|
|
3580
3747
|
if (r2.color !== void 0) {
|
|
3581
3748
|
let t8 = r2.color, n7 = e4;
|
|
3582
|
-
if (typeof t8 != "string" && t8 !== null) return
|
|
3749
|
+
if (typeof t8 != "string" && t8 !== null) return o9.errors = [{ instancePath: s7 + "/color", schemaPath: "#/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3583
3750
|
var a5 = n7 === e4;
|
|
3584
3751
|
} else var a5 = true;
|
|
3585
3752
|
if (a5) {
|
|
3586
3753
|
if (r2.icon !== void 0) {
|
|
3587
3754
|
let t8 = r2.icon, n7 = e4;
|
|
3588
|
-
if (typeof t8 != "string" && t8 !== null) return
|
|
3755
|
+
if (typeof t8 != "string" && t8 !== null) return o9.errors = [{ instancePath: s7 + "/icon", schemaPath: "#/properties/icon/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3589
3756
|
var a5 = n7 === e4;
|
|
3590
3757
|
} else var a5 = true;
|
|
3591
3758
|
if (a5) {
|
|
3592
3759
|
if (r2.id !== void 0) {
|
|
3593
3760
|
let t8 = r2.id, n7 = e4;
|
|
3594
3761
|
if (e4 === n7 && e4 === n7) if (typeof t8 == "string") {
|
|
3595
|
-
if (!a2.test(t8)) return
|
|
3596
|
-
} else return
|
|
3762
|
+
if (!a2.test(t8)) return o9.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
3763
|
+
} else return o9.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3597
3764
|
var a5 = n7 === e4;
|
|
3598
3765
|
} else var a5 = true;
|
|
3599
3766
|
if (a5) {
|
|
3600
3767
|
if (r2.kind !== void 0) {
|
|
3601
3768
|
let t8 = r2.kind, n7 = e4;
|
|
3602
|
-
if (typeof t8 != "string") return
|
|
3603
|
-
if (!(t8 === "routine" || t8 === "project")) return
|
|
3769
|
+
if (typeof t8 != "string") return o9.errors = [{ instancePath: s7 + "/kind", schemaPath: "#/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3770
|
+
if (!(t8 === "routine" || t8 === "project")) return o9.errors = [{ instancePath: s7 + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: S2.properties.kind.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
3604
3771
|
var a5 = n7 === e4;
|
|
3605
3772
|
} else var a5 = true;
|
|
3606
3773
|
if (a5) {
|
|
3607
3774
|
if (r2.name !== void 0) {
|
|
3608
3775
|
let t8 = e4;
|
|
3609
|
-
if (typeof r2.name != "string") return
|
|
3776
|
+
if (typeof r2.name != "string") return o9.errors = [{ instancePath: s7 + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3610
3777
|
var a5 = t8 === e4;
|
|
3611
3778
|
} else var a5 = true;
|
|
3612
3779
|
if (a5) {
|
|
@@ -3616,45 +3783,45 @@ function o8(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3,
|
|
|
3616
3783
|
var f3 = true;
|
|
3617
3784
|
let D2 = t8.length;
|
|
3618
3785
|
for (let y3 = 0; y3 < D2; y3++) {
|
|
3619
|
-
let d5 = t8[y3],
|
|
3620
|
-
if (e4 ===
|
|
3786
|
+
let d5 = t8[y3], _2 = e4;
|
|
3787
|
+
if (e4 === _2) if (d5 && typeof d5 == "object" && !Array.isArray(d5)) {
|
|
3621
3788
|
let b4;
|
|
3622
|
-
if (d5.date === void 0 && (b4 = "date") || d5.seconds === void 0 && (b4 = "seconds")) return
|
|
3789
|
+
if (d5.date === void 0 && (b4 = "date") || d5.seconds === void 0 && (b4 = "seconds")) return o9.errors = [{ instancePath: s7 + "/recentDays/" + y3, schemaPath: "#/properties/recentDays/items/required", keyword: "required", params: { missingProperty: b4 }, message: "must have required property '" + b4 + "'" }], false;
|
|
3623
3790
|
{
|
|
3624
3791
|
let q2 = e4;
|
|
3625
3792
|
for (let c5 in d5) if (!(c5 === "date" || c5 === "seconds")) {
|
|
3626
|
-
return
|
|
3793
|
+
return o9.errors = [{ instancePath: s7 + "/recentDays/" + y3, schemaPath: "#/properties/recentDays/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: c5 }, message: "must NOT have additional properties" }], false;
|
|
3627
3794
|
break;
|
|
3628
3795
|
}
|
|
3629
3796
|
if (q2 === e4) {
|
|
3630
3797
|
if (d5.date !== void 0) {
|
|
3631
3798
|
let c5 = e4;
|
|
3632
|
-
if (typeof d5.date != "string") return
|
|
3799
|
+
if (typeof d5.date != "string") return o9.errors = [{ instancePath: s7 + "/recentDays/" + y3 + "/date", schemaPath: "#/properties/recentDays/items/properties/date/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
3633
3800
|
var l4 = c5 === e4;
|
|
3634
3801
|
} else var l4 = true;
|
|
3635
3802
|
if (l4) if (d5.seconds !== void 0) {
|
|
3636
3803
|
let c5 = d5.seconds, A2 = e4;
|
|
3637
|
-
if (!(typeof c5 == "number" && isFinite(c5))) return
|
|
3804
|
+
if (!(typeof c5 == "number" && isFinite(c5))) return o9.errors = [{ instancePath: s7 + "/recentDays/" + y3 + "/seconds", schemaPath: "#/properties/recentDays/items/properties/seconds/type", keyword: "type", params: { type: "number" }, message: "must be number" }], false;
|
|
3638
3805
|
var l4 = A2 === e4;
|
|
3639
3806
|
} else var l4 = true;
|
|
3640
3807
|
}
|
|
3641
3808
|
}
|
|
3642
|
-
} else return
|
|
3643
|
-
var f3 =
|
|
3809
|
+
} else return o9.errors = [{ instancePath: s7 + "/recentDays/" + y3, schemaPath: "#/properties/recentDays/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3810
|
+
var f3 = _2 === e4;
|
|
3644
3811
|
if (!f3) break;
|
|
3645
3812
|
}
|
|
3646
|
-
} else return
|
|
3813
|
+
} else return o9.errors = [{ instancePath: s7 + "/recentDays", schemaPath: "#/properties/recentDays/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
3647
3814
|
var a5 = n7 === e4;
|
|
3648
3815
|
} else var a5 = true;
|
|
3649
3816
|
if (a5) {
|
|
3650
3817
|
if (r2.totalHours !== void 0) {
|
|
3651
3818
|
let t8 = r2.totalHours, n7 = e4;
|
|
3652
|
-
if (!(typeof t8 == "number" && isFinite(t8))) return
|
|
3819
|
+
if (!(typeof t8 == "number" && isFinite(t8))) return o9.errors = [{ instancePath: s7 + "/totalHours", schemaPath: "#/properties/totalHours/type", keyword: "type", params: { type: "number" }, message: "must be number" }], false;
|
|
3653
3820
|
var a5 = n7 === e4;
|
|
3654
3821
|
} else var a5 = true;
|
|
3655
3822
|
if (a5) if (r2.totalSeconds !== void 0) {
|
|
3656
3823
|
let t8 = r2.totalSeconds, n7 = e4;
|
|
3657
|
-
if (!(typeof t8 == "number" && isFinite(t8))) return
|
|
3824
|
+
if (!(typeof t8 == "number" && isFinite(t8))) return o9.errors = [{ instancePath: s7 + "/totalSeconds", schemaPath: "#/properties/totalSeconds/type", keyword: "type", params: { type: "number" }, message: "must be number" }], false;
|
|
3658
3825
|
var a5 = n7 === e4;
|
|
3659
3826
|
} else var a5 = true;
|
|
3660
3827
|
}
|
|
@@ -3665,8 +3832,8 @@ function o8(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3,
|
|
|
3665
3832
|
}
|
|
3666
3833
|
}
|
|
3667
3834
|
}
|
|
3668
|
-
} else return
|
|
3669
|
-
return
|
|
3835
|
+
} else return o9.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3836
|
+
return o9.errors = p6, e4 === 0;
|
|
3670
3837
|
}
|
|
3671
3838
|
function u3(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3, rootData: g = r2 } = {}) {
|
|
3672
3839
|
let p6 = null, e4 = 0;
|
|
@@ -3686,7 +3853,7 @@ function u3(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3,
|
|
|
3686
3853
|
let n7 = i5.length;
|
|
3687
3854
|
for (let v6 = 0; v6 < n7; v6++) {
|
|
3688
3855
|
let D2 = e4;
|
|
3689
|
-
|
|
3856
|
+
o9(i5[v6], { instancePath: s7 + "/items/" + v6, parentData: i5, parentDataProperty: v6, rootData: g }) || (p6 = p6 === null ? o9.errors : p6.concat(o9.errors), e4 = p6.length);
|
|
3690
3857
|
var f3 = D2 === e4;
|
|
3691
3858
|
if (!f3) break;
|
|
3692
3859
|
}
|
|
@@ -3696,7 +3863,7 @@ function u3(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3,
|
|
|
3696
3863
|
} else return u3.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3697
3864
|
return u3.errors = p6, e4 === 0;
|
|
3698
3865
|
}
|
|
3699
|
-
function
|
|
3866
|
+
function h8(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3, rootData: g = r2 } = {}) {
|
|
3700
3867
|
let p6 = null, e4 = 0, a5 = e4;
|
|
3701
3868
|
i(r2, { instancePath: s7, parentData: P4, parentDataProperty: w3, rootData: g }) || (p6 = p6 === null ? i.errors : p6.concat(i.errors), e4 = p6.length);
|
|
3702
3869
|
var f3 = a5 === e4;
|
|
@@ -3704,14 +3871,14 @@ function h7(r2, { instancePath: s7 = "", parentData: P4, parentDataProperty: w3,
|
|
|
3704
3871
|
let l4 = e4;
|
|
3705
3872
|
if (e4 === l4) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
3706
3873
|
let m6;
|
|
3707
|
-
if (r2.data === void 0 && (m6 = "data")) return
|
|
3874
|
+
if (r2.data === void 0 && (m6 = "data")) return h8.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: m6 }, message: "must have required property '" + m6 + "'" }], false;
|
|
3708
3875
|
r2.data !== void 0 && (u3(r2.data, { instancePath: s7 + "/data", parentData: r2, parentDataProperty: "data", rootData: g }) || (p6 = p6 === null ? u3.errors : p6.concat(u3.errors), e4 = p6.length));
|
|
3709
|
-
} else return
|
|
3876
|
+
} else return h8.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
3710
3877
|
var f3 = l4 === e4;
|
|
3711
3878
|
}
|
|
3712
|
-
return
|
|
3879
|
+
return h8.errors = p6, e4 === 0;
|
|
3713
3880
|
}
|
|
3714
|
-
var C =
|
|
3881
|
+
var C = h8;
|
|
3715
3882
|
|
|
3716
3883
|
// ../../packages/contracts/src/generated/endpoints/getV1HourBank.ts
|
|
3717
3884
|
var getV1HourBank = {
|
|
@@ -3810,11 +3977,12 @@ var createStructuredTimeEntry = async (input2, request = apiRequest) => {
|
|
|
3810
3977
|
}
|
|
3811
3978
|
const prepare = async () => {
|
|
3812
3979
|
const project = resolveActiveProjectByName(await listProjects(request), input2.projectName);
|
|
3980
|
+
const continuation = input2.nextStep === void 0 ? void 0 : await request(getV1MeContinuation, {});
|
|
3813
3981
|
return {
|
|
3814
3982
|
projectId: project.id,
|
|
3815
3983
|
startedAt: input2.startedAt === void 0 ? new Date((input2.now ?? /* @__PURE__ */ new Date()).getTime() - durationMinutes * 6e4).toISOString() : start.toISOString(),
|
|
3816
3984
|
durationMinutes,
|
|
3817
|
-
...input2.nextStep !== void 0 ? { nextStep: input2.nextStep } : {},
|
|
3985
|
+
...input2.nextStep !== void 0 ? { nextStep: input2.nextStep, expectedResolutionVersion: continuation.resolutionVersion } : {},
|
|
3818
3986
|
...input2.description !== void 0 ? { description: input2.description } : {},
|
|
3819
3987
|
...input2.note !== void 0 ? { note: input2.note } : {},
|
|
3820
3988
|
...input2.artifactUrl !== void 0 ? { artifactUrl: input2.artifactUrl } : {}
|
|
@@ -5181,20 +5349,20 @@ function a4(e4, { instancePath: s7 = "", parentData: y3, parentDataProperty: d5,
|
|
|
5181
5349
|
if (e4.state === void 0 && (i5 = "state") || e4.authUrl === void 0 && (i5 = "authUrl")) return a4.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
5182
5350
|
{
|
|
5183
5351
|
let p6 = r2;
|
|
5184
|
-
for (let
|
|
5185
|
-
return a4.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty:
|
|
5352
|
+
for (let o12 in e4) if (!(o12 === "authUrl" || o12 === "state")) {
|
|
5353
|
+
return a4.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: o12 }, message: "must NOT have additional properties" }], false;
|
|
5186
5354
|
break;
|
|
5187
5355
|
}
|
|
5188
5356
|
if (p6 === r2) {
|
|
5189
5357
|
if (e4.authUrl !== void 0) {
|
|
5190
|
-
let
|
|
5358
|
+
let o12 = r2;
|
|
5191
5359
|
if (typeof e4.authUrl != "string") return a4.errors = [{ instancePath: s7 + "/authUrl", schemaPath: "#/properties/authUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
5192
|
-
var l4 =
|
|
5360
|
+
var l4 = o12 === r2;
|
|
5193
5361
|
} else var l4 = true;
|
|
5194
5362
|
if (l4) if (e4.state !== void 0) {
|
|
5195
|
-
let
|
|
5363
|
+
let o12 = r2;
|
|
5196
5364
|
if (typeof e4.state != "string") return a4.errors = [{ instancePath: s7 + "/state", schemaPath: "#/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
5197
|
-
var l4 =
|
|
5365
|
+
var l4 = o12 === r2;
|
|
5198
5366
|
} else var l4 = true;
|
|
5199
5367
|
}
|
|
5200
5368
|
}
|
|
@@ -5231,32 +5399,32 @@ var postV1CliAuthInit = {
|
|
|
5231
5399
|
};
|
|
5232
5400
|
|
|
5233
5401
|
// ../../packages/contracts/src/generated/validators/getV1CliAuthPoll200.js
|
|
5234
|
-
function
|
|
5402
|
+
function o10(e4, { instancePath: s7 = "", parentData: d5, parentDataProperty: m6, rootData: y3 = e4 } = {}) {
|
|
5235
5403
|
let t8 = null, r2 = 0;
|
|
5236
5404
|
if (r2 === 0) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
5237
5405
|
let i5;
|
|
5238
|
-
if (e4.authorized === void 0 && (i5 = "authorized") || e4.apiKey === void 0 && (i5 = "apiKey")) return
|
|
5406
|
+
if (e4.authorized === void 0 && (i5 = "authorized") || e4.apiKey === void 0 && (i5 = "apiKey")) return o10.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
5239
5407
|
{
|
|
5240
5408
|
let u4 = r2;
|
|
5241
5409
|
for (let a5 in e4) if (!(a5 === "apiKey" || a5 === "authorized")) {
|
|
5242
|
-
return
|
|
5410
|
+
return o10.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a5 }, message: "must NOT have additional properties" }], false;
|
|
5243
5411
|
break;
|
|
5244
5412
|
}
|
|
5245
5413
|
if (u4 === r2) {
|
|
5246
5414
|
if (e4.apiKey !== void 0) {
|
|
5247
5415
|
let a5 = e4.apiKey, l4 = r2;
|
|
5248
|
-
if (typeof a5 != "string" && a5 !== null) return
|
|
5416
|
+
if (typeof a5 != "string" && a5 !== null) return o10.errors = [{ instancePath: s7 + "/apiKey", schemaPath: "#/properties/apiKey/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
5249
5417
|
var p6 = l4 === r2;
|
|
5250
5418
|
} else var p6 = true;
|
|
5251
5419
|
if (p6) if (e4.authorized !== void 0) {
|
|
5252
5420
|
let a5 = r2;
|
|
5253
|
-
if (typeof e4.authorized != "boolean") return
|
|
5421
|
+
if (typeof e4.authorized != "boolean") return o10.errors = [{ instancePath: s7 + "/authorized", schemaPath: "#/properties/authorized/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
5254
5422
|
var p6 = a5 === r2;
|
|
5255
5423
|
} else var p6 = true;
|
|
5256
5424
|
}
|
|
5257
5425
|
}
|
|
5258
|
-
} else return
|
|
5259
|
-
return
|
|
5426
|
+
} else return o10.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
5427
|
+
return o10.errors = t8, r2 === 0;
|
|
5260
5428
|
}
|
|
5261
5429
|
function n5(e4, { instancePath: s7 = "", parentData: d5, parentDataProperty: m6, rootData: y3 = e4 } = {}) {
|
|
5262
5430
|
let t8 = null, r2 = 0, p6 = r2;
|
|
@@ -5267,7 +5435,7 @@ function n5(e4, { instancePath: s7 = "", parentData: d5, parentDataProperty: m6,
|
|
|
5267
5435
|
if (r2 === u4) if (e4 && typeof e4 == "object" && !Array.isArray(e4)) {
|
|
5268
5436
|
let l4;
|
|
5269
5437
|
if (e4.data === void 0 && (l4 = "data")) return n5.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
5270
|
-
e4.data !== void 0 && (
|
|
5438
|
+
e4.data !== void 0 && (o10(e4.data, { instancePath: s7 + "/data", parentData: e4, parentDataProperty: "data", rootData: y3 }) || (t8 = t8 === null ? o10.errors : t8.concat(o10.errors), r2 = t8.length));
|
|
5271
5439
|
} else return n5.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
5272
5440
|
var i5 = u4 === r2;
|
|
5273
5441
|
}
|
|
@@ -5622,7 +5790,7 @@ function hookState(config2, agent) {
|
|
|
5622
5790
|
([event, groups]) => groups.filter((group) => isFlowmindGroup(group, agent)).map((group) => `${event}:${JSON.stringify(group)}`)
|
|
5623
5791
|
);
|
|
5624
5792
|
{
|
|
5625
|
-
const mixed = Object.values(config2.hooks).some((groups) => groups.some((group) => isObject(group) && !isFlowmindGroup(group, agent) && Array.isArray(group.hooks) && group.hooks.some((
|
|
5793
|
+
const mixed = Object.values(config2.hooks).some((groups) => groups.some((group) => isObject(group) && !isFlowmindGroup(group, agent) && Array.isArray(group.hooks) && group.hooks.some((h11) => isObject(h11) && h11.type === "command" && ownedCommand(h11.command, agent))));
|
|
5626
5794
|
if (mixed) return "outdated";
|
|
5627
5795
|
if (!ours.length) return "absent";
|
|
5628
5796
|
}
|
|
@@ -5637,7 +5805,7 @@ function withoutFlowmindHooks(config2, agent) {
|
|
|
5637
5805
|
for (const [event, groups] of Object.entries(config2.hooks)) {
|
|
5638
5806
|
const kept = groups.flatMap((group) => {
|
|
5639
5807
|
if (!isObject(group) || !Array.isArray(group.hooks)) return [group];
|
|
5640
|
-
const remaining = group.hooks.filter((
|
|
5808
|
+
const remaining = group.hooks.filter((h11) => !(isObject(h11) && h11.type === "command" && ownedCommand(h11.command, agent)));
|
|
5641
5809
|
if (remaining.length === group.hooks.length) return [group];
|
|
5642
5810
|
return remaining.length ? [{ ...group, hooks: remaining }] : [];
|
|
5643
5811
|
});
|
|
@@ -6075,11 +6243,11 @@ ${box}
|
|
|
6075
6243
|
|
|
6076
6244
|
// ../../packages/contracts/src/generated/validators/shared/6QQEP6FS.js
|
|
6077
6245
|
var b2 = { description: "A project", properties: { archivedAt: { format: "date-time", nullable: true, type: "string" }, category: { type: "string" }, color: { type: "string" }, completedAt: { format: "date-time", nullable: true, type: "string" }, createdAt: { format: "date-time", type: "string" }, description: { nullable: true, type: "string" }, details: { description: "Private details for lastOutcome, or an empty array when no outcome exists.", items: { type: "string" }, type: "array" }, estimatedHours: { nullable: true, type: "integer" }, icon: { type: "string" }, id: { format: "uuid", type: "string" }, lastActiveDay: { format: "date", nullable: true, type: "string" }, lastOutcome: { nullable: true, type: "string" }, launchDescription: { nullable: true, type: "string" }, launchUrl: { nullable: true, type: "string" }, launchedAt: { format: "date-time", nullable: true, type: "string" }, name: { type: "string" }, nextStep: { anyOf: [{ $ref: "urn:flowmind:schema:ProjectNextStep" }, { enum: [null], nullable: true, type: "object" }] }, updatedAt: { format: "date-time", type: "string" } }, required: ["id", "name", "description", "color", "icon", "category", "estimatedHours", "launchedAt", "completedAt", "launchDescription", "launchUrl", "createdAt", "updatedAt", "archivedAt", "nextStep", "lastOutcome", "details", "lastActiveDay"], type: "object" };
|
|
6078
|
-
function n6(r2, { instancePath: i5 = "", parentData: k3, parentDataProperty:
|
|
6246
|
+
function n6(r2, { instancePath: i5 = "", parentData: k3, parentDataProperty: _2, rootData: w3 = r2 } = {}) {
|
|
6079
6247
|
let l4 = null, e4 = 0;
|
|
6080
6248
|
if (e4 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
6081
|
-
let
|
|
6082
|
-
if (r2.id === void 0 && (
|
|
6249
|
+
let o12;
|
|
6250
|
+
if (r2.id === void 0 && (o12 = "id") || r2.name === void 0 && (o12 = "name") || r2.description === void 0 && (o12 = "description") || r2.color === void 0 && (o12 = "color") || r2.icon === void 0 && (o12 = "icon") || r2.category === void 0 && (o12 = "category") || r2.estimatedHours === void 0 && (o12 = "estimatedHours") || r2.launchedAt === void 0 && (o12 = "launchedAt") || r2.completedAt === void 0 && (o12 = "completedAt") || r2.launchDescription === void 0 && (o12 = "launchDescription") || r2.launchUrl === void 0 && (o12 = "launchUrl") || r2.createdAt === void 0 && (o12 = "createdAt") || r2.updatedAt === void 0 && (o12 = "updatedAt") || r2.archivedAt === void 0 && (o12 = "archivedAt") || r2.nextStep === void 0 && (o12 = "nextStep") || r2.lastOutcome === void 0 && (o12 = "lastOutcome") || r2.details === void 0 && (o12 = "details") || r2.lastActiveDay === void 0 && (o12 = "lastActiveDay")) return n6.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: o12 }, message: "must have required property '" + o12 + "'" }], false;
|
|
6083
6251
|
if (r2.archivedAt !== void 0) {
|
|
6084
6252
|
let t8 = r2.archivedAt, a5 = e4;
|
|
6085
6253
|
if (typeof t8 != "string" && t8 !== null) return n6.errors = [{ instancePath: i5 + "/archivedAt", schemaPath: "#/properties/archivedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
@@ -6194,7 +6362,7 @@ function n6(r2, { instancePath: i5 = "", parentData: k3, parentDataProperty: _,
|
|
|
6194
6362
|
} else var s7 = true;
|
|
6195
6363
|
if (s7) {
|
|
6196
6364
|
if (r2.nextStep !== void 0) {
|
|
6197
|
-
let t8 = r2.nextStep, a5 = e4,
|
|
6365
|
+
let t8 = r2.nextStep, a5 = e4, h11 = e4, p6 = false, m6 = e4;
|
|
6198
6366
|
s(t8, { instancePath: i5 + "/nextStep", parentData: r2, parentDataProperty: "nextStep", rootData: w3 }) || (l4 = l4 === null ? s.errors : l4.concat(s.errors), e4 = l4.length);
|
|
6199
6367
|
var y3 = m6 === e4;
|
|
6200
6368
|
if (p6 = p6 || y3, !p6) {
|
|
@@ -6210,7 +6378,7 @@ function n6(r2, { instancePath: i5 = "", parentData: k3, parentDataProperty: _,
|
|
|
6210
6378
|
var y3 = d5 === e4;
|
|
6211
6379
|
p6 = p6 || y3;
|
|
6212
6380
|
}
|
|
6213
|
-
if (p6) e4 =
|
|
6381
|
+
if (p6) e4 = h11, l4 !== null && (h11 ? l4.length = h11 : l4 = null);
|
|
6214
6382
|
else {
|
|
6215
6383
|
let d5 = { instancePath: i5 + "/nextStep", schemaPath: "#/properties/nextStep/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6216
6384
|
return l4 === null ? l4 = [d5] : l4.push(d5), e4++, n6.errors = l4, false;
|
|
@@ -6245,22 +6413,22 @@ function n6(r2, { instancePath: i5 = "", parentData: k3, parentDataProperty: _,
|
|
|
6245
6413
|
}
|
|
6246
6414
|
|
|
6247
6415
|
// ../../packages/contracts/src/generated/validators/postV1Projects200.js
|
|
6248
|
-
function s5(r2, { instancePath:
|
|
6416
|
+
function s5(r2, { instancePath: o12 = "", parentData: m6, parentDataProperty: u4, rootData: n7 = r2 } = {}) {
|
|
6249
6417
|
let e4 = null, t8 = 0, d5 = t8;
|
|
6250
|
-
i(r2, { instancePath:
|
|
6418
|
+
i(r2, { instancePath: o12, parentData: m6, parentDataProperty: u4, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), t8 = e4.length);
|
|
6251
6419
|
var f3 = d5 === t8;
|
|
6252
6420
|
if (f3) {
|
|
6253
6421
|
let p6 = t8;
|
|
6254
6422
|
if (t8 === p6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
6255
6423
|
let l4;
|
|
6256
|
-
if (r2.data === void 0 && (l4 = "data")) return s5.errors = [{ instancePath:
|
|
6257
|
-
r2.data !== void 0 && (n6(r2.data, { instancePath:
|
|
6258
|
-
} else return s5.errors = [{ instancePath:
|
|
6424
|
+
if (r2.data === void 0 && (l4 = "data")) return s5.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
6425
|
+
r2.data !== void 0 && (n6(r2.data, { instancePath: o12 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? n6.errors : e4.concat(n6.errors), t8 = e4.length));
|
|
6426
|
+
} else return s5.errors = [{ instancePath: o12, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
6259
6427
|
var f3 = p6 === t8;
|
|
6260
6428
|
}
|
|
6261
6429
|
return s5.errors = e4, t8 === 0;
|
|
6262
6430
|
}
|
|
6263
|
-
var
|
|
6431
|
+
var h9 = s5;
|
|
6264
6432
|
|
|
6265
6433
|
// ../../packages/contracts/src/generated/endpoints/postV1Projects.ts
|
|
6266
6434
|
var postV1Projects = {
|
|
@@ -6269,7 +6437,7 @@ var postV1Projects = {
|
|
|
6269
6437
|
operation: "POST /v1/projects/",
|
|
6270
6438
|
revision: contractRevision,
|
|
6271
6439
|
responses: {
|
|
6272
|
-
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1Projects:200", validate:
|
|
6440
|
+
200: { mediaType: "application/json", schemaId: "urn:flowmind:postV1Projects:200", validate: h9 }
|
|
6273
6441
|
},
|
|
6274
6442
|
error: { mediaType: "application/json", schemaId: "ApiErrorEnvelope", validate: N }
|
|
6275
6443
|
};
|
|
@@ -6430,8 +6598,8 @@ function c4(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6430
6598
|
let n7 = r2.details, t8 = e4;
|
|
6431
6599
|
if (e4 === t8) if (Array.isArray(n7)) {
|
|
6432
6600
|
var p6 = true;
|
|
6433
|
-
let
|
|
6434
|
-
for (let u4 = 0; u4 <
|
|
6601
|
+
let o12 = n7.length;
|
|
6602
|
+
for (let u4 = 0; u4 < o12; u4++) {
|
|
6435
6603
|
let w3 = e4;
|
|
6436
6604
|
if (typeof n7[u4] != "string") return c4.errors = [{ instancePath: s7 + "/details/" + u4, schemaPath: "#/properties/details/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6437
6605
|
var p6 = w3 === e4;
|
|
@@ -6581,7 +6749,7 @@ function y2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6581
6749
|
} else var a5 = true;
|
|
6582
6750
|
if (a5) {
|
|
6583
6751
|
if (r2.lastOutcome !== void 0) {
|
|
6584
|
-
let t8 = r2.lastOutcome, l4 = e4,
|
|
6752
|
+
let t8 = r2.lastOutcome, l4 = e4, o12 = e4, u4 = false, w3 = e4;
|
|
6585
6753
|
c4(t8, { instancePath: s7 + "/lastOutcome", parentData: r2, parentDataProperty: "lastOutcome", rootData: b4 }) || (m6 = m6 === null ? c4.errors : m6.concat(c4.errors), e4 = m6.length);
|
|
6586
6754
|
var p6 = w3 === e4;
|
|
6587
6755
|
if (u4 = u4 || p6, !u4) {
|
|
@@ -6597,7 +6765,7 @@ function y2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6597
6765
|
var p6 = g === e4;
|
|
6598
6766
|
u4 = u4 || p6;
|
|
6599
6767
|
}
|
|
6600
|
-
if (u4) e4 =
|
|
6768
|
+
if (u4) e4 = o12, m6 !== null && (o12 ? m6.length = o12 : m6 = null);
|
|
6601
6769
|
else {
|
|
6602
6770
|
let g = { instancePath: s7 + "/lastOutcome", schemaPath: "#/properties/lastOutcome/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6603
6771
|
return m6 === null ? m6 = [g] : m6.push(g), e4++, y2.errors = m6, false;
|
|
@@ -6737,48 +6905,48 @@ function k2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6737
6905
|
} else return k2.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
6738
6906
|
return k2.errors = m6, e4 === 0;
|
|
6739
6907
|
}
|
|
6740
|
-
function
|
|
6908
|
+
function h10(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3, rootData: b4 = r2 } = {}) {
|
|
6741
6909
|
let m6 = null, e4 = 0;
|
|
6742
6910
|
if (e4 === 0) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
6743
6911
|
let i5;
|
|
6744
|
-
if (r2.id === void 0 && (i5 = "id") || r2.kind === void 0 && (i5 = "kind") || r2.tone === void 0 && (i5 = "tone") || r2.title === void 0 && (i5 = "title") || r2.detail === void 0 && (i5 = "detail") || r2.rule === void 0 && (i5 = "rule") || r2.projectId === void 0 && (i5 = "projectId") || r2.evidence === void 0 && (i5 = "evidence") || r2.actions === void 0 && (i5 = "actions")) return
|
|
6912
|
+
if (r2.id === void 0 && (i5 = "id") || r2.kind === void 0 && (i5 = "kind") || r2.tone === void 0 && (i5 = "tone") || r2.title === void 0 && (i5 = "title") || r2.detail === void 0 && (i5 = "detail") || r2.rule === void 0 && (i5 = "rule") || r2.projectId === void 0 && (i5 = "projectId") || r2.evidence === void 0 && (i5 = "evidence") || r2.actions === void 0 && (i5 = "actions")) return h10.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: i5 }, message: "must have required property '" + i5 + "'" }], false;
|
|
6745
6913
|
{
|
|
6746
6914
|
let n7 = e4;
|
|
6747
6915
|
for (let t8 in r2) if (!t4.call(F.properties, t8)) {
|
|
6748
|
-
return
|
|
6916
|
+
return h10.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t8 }, message: "must NOT have additional properties" }], false;
|
|
6749
6917
|
break;
|
|
6750
6918
|
}
|
|
6751
6919
|
if (n7 === e4) {
|
|
6752
6920
|
if (r2.actions !== void 0) {
|
|
6753
6921
|
let t8 = r2.actions, l4 = e4;
|
|
6754
6922
|
if (e4 === l4) if (Array.isArray(t8)) {
|
|
6755
|
-
if (t8.length > 2) return
|
|
6923
|
+
if (t8.length > 2) return h10.errors = [{ instancePath: s7 + "/actions", schemaPath: "#/properties/actions/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" }], false;
|
|
6756
6924
|
{
|
|
6757
6925
|
var a5 = true;
|
|
6758
|
-
let
|
|
6759
|
-
for (let u4 = 0; u4 <
|
|
6926
|
+
let o12 = t8.length;
|
|
6927
|
+
for (let u4 = 0; u4 < o12; u4++) {
|
|
6760
6928
|
let w3 = e4;
|
|
6761
6929
|
k2(t8[u4], { instancePath: s7 + "/actions/" + u4, parentData: t8, parentDataProperty: u4, rootData: b4 }) || (m6 = m6 === null ? k2.errors : m6.concat(k2.errors), e4 = m6.length);
|
|
6762
6930
|
var a5 = w3 === e4;
|
|
6763
6931
|
if (!a5) break;
|
|
6764
6932
|
}
|
|
6765
6933
|
}
|
|
6766
|
-
} else return
|
|
6934
|
+
} else return h10.errors = [{ instancePath: s7 + "/actions", schemaPath: "#/properties/actions/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
6767
6935
|
var p6 = l4 === e4;
|
|
6768
6936
|
} else var p6 = true;
|
|
6769
6937
|
if (p6) {
|
|
6770
6938
|
if (r2.detail !== void 0) {
|
|
6771
6939
|
let t8 = r2.detail, l4 = e4;
|
|
6772
6940
|
if (e4 === l4) if (typeof t8 == "string") {
|
|
6773
|
-
if (o(t8) < 1) return
|
|
6774
|
-
} else return
|
|
6941
|
+
if (o(t8) < 1) return h10.errors = [{ instancePath: s7 + "/detail", schemaPath: "#/properties/detail/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
6942
|
+
} else return h10.errors = [{ instancePath: s7 + "/detail", schemaPath: "#/properties/detail/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6775
6943
|
var p6 = l4 === e4;
|
|
6776
6944
|
} else var p6 = true;
|
|
6777
6945
|
if (p6) {
|
|
6778
6946
|
if (r2.evidence !== void 0) {
|
|
6779
6947
|
let t8 = r2.evidence, l4 = e4;
|
|
6780
6948
|
if (e4 === l4) if (Array.isArray(t8)) {
|
|
6781
|
-
if (t8.length > 3) return
|
|
6949
|
+
if (t8.length > 3) return h10.errors = [{ instancePath: s7 + "/evidence", schemaPath: "#/properties/evidence/maxItems", keyword: "maxItems", params: { limit: 3 }, message: "must NOT have more than 3 items" }], false;
|
|
6782
6950
|
{
|
|
6783
6951
|
var d5 = true;
|
|
6784
6952
|
let u4 = t8.length;
|
|
@@ -6789,51 +6957,51 @@ function h9(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6789
6957
|
if (!d5) break;
|
|
6790
6958
|
}
|
|
6791
6959
|
}
|
|
6792
|
-
} else return
|
|
6960
|
+
} else return h10.errors = [{ instancePath: s7 + "/evidence", schemaPath: "#/properties/evidence/type", keyword: "type", params: { type: "array" }, message: "must be array" }], false;
|
|
6793
6961
|
var p6 = l4 === e4;
|
|
6794
6962
|
} else var p6 = true;
|
|
6795
6963
|
if (p6) {
|
|
6796
6964
|
if (r2.id !== void 0) {
|
|
6797
6965
|
let t8 = r2.id, l4 = e4;
|
|
6798
6966
|
if (e4 === l4) if (typeof t8 == "string") {
|
|
6799
|
-
if (o(t8) < 1) return
|
|
6800
|
-
} else return
|
|
6967
|
+
if (o(t8) < 1) return h10.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
6968
|
+
} else return h10.errors = [{ instancePath: s7 + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6801
6969
|
var p6 = l4 === e4;
|
|
6802
6970
|
} else var p6 = true;
|
|
6803
6971
|
if (p6) {
|
|
6804
6972
|
if (r2.kind !== void 0) {
|
|
6805
6973
|
let t8 = r2.kind, l4 = e4;
|
|
6806
|
-
if (typeof t8 != "string") return
|
|
6807
|
-
if (!(t8 === "gone_quiet" || t8 === "spread_thin" || t8 === "best_week" || t8 === "rising" || t8 === "agent_shift")) return
|
|
6974
|
+
if (typeof t8 != "string") return h10.errors = [{ instancePath: s7 + "/kind", schemaPath: "#/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6975
|
+
if (!(t8 === "gone_quiet" || t8 === "spread_thin" || t8 === "best_week" || t8 === "rising" || t8 === "agent_shift")) return h10.errors = [{ instancePath: s7 + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: F.properties.kind.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
6808
6976
|
var p6 = l4 === e4;
|
|
6809
6977
|
} else var p6 = true;
|
|
6810
6978
|
if (p6) {
|
|
6811
6979
|
if (r2.projectId !== void 0) {
|
|
6812
6980
|
let t8 = r2.projectId, l4 = e4;
|
|
6813
|
-
if (typeof t8 != "string" && t8 !== null) return
|
|
6814
|
-
if (e4 === l4 && e4 === l4 && typeof t8 == "string" && !a2.test(t8)) return
|
|
6981
|
+
if (typeof t8 != "string" && t8 !== null) return h10.errors = [{ instancePath: s7 + "/projectId", schemaPath: "#/properties/projectId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6982
|
+
if (e4 === l4 && e4 === l4 && typeof t8 == "string" && !a2.test(t8)) return h10.errors = [{ instancePath: s7 + "/projectId", schemaPath: "#/properties/projectId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
6815
6983
|
var p6 = l4 === e4;
|
|
6816
6984
|
} else var p6 = true;
|
|
6817
6985
|
if (p6) {
|
|
6818
6986
|
if (r2.rule !== void 0) {
|
|
6819
6987
|
let t8 = r2.rule, l4 = e4;
|
|
6820
6988
|
if (e4 === l4) if (typeof t8 == "string") {
|
|
6821
|
-
if (o(t8) < 1) return
|
|
6822
|
-
} else return
|
|
6989
|
+
if (o(t8) < 1) return h10.errors = [{ instancePath: s7 + "/rule", schemaPath: "#/properties/rule/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
6990
|
+
} else return h10.errors = [{ instancePath: s7 + "/rule", schemaPath: "#/properties/rule/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6823
6991
|
var p6 = l4 === e4;
|
|
6824
6992
|
} else var p6 = true;
|
|
6825
6993
|
if (p6) {
|
|
6826
6994
|
if (r2.title !== void 0) {
|
|
6827
6995
|
let t8 = r2.title, l4 = e4;
|
|
6828
6996
|
if (e4 === l4) if (typeof t8 == "string") {
|
|
6829
|
-
if (o(t8) < 1) return
|
|
6830
|
-
} else return
|
|
6997
|
+
if (o(t8) < 1) return h10.errors = [{ instancePath: s7 + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }], false;
|
|
6998
|
+
} else return h10.errors = [{ instancePath: s7 + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6831
6999
|
var p6 = l4 === e4;
|
|
6832
7000
|
} else var p6 = true;
|
|
6833
7001
|
if (p6) if (r2.tone !== void 0) {
|
|
6834
7002
|
let t8 = r2.tone, l4 = e4;
|
|
6835
|
-
if (typeof t8 != "string") return
|
|
6836
|
-
if (!(t8 === "attention" || t8 === "positive" || t8 === "neutral")) return
|
|
7003
|
+
if (typeof t8 != "string") return h10.errors = [{ instancePath: s7 + "/tone", schemaPath: "#/properties/tone/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7004
|
+
if (!(t8 === "attention" || t8 === "positive" || t8 === "neutral")) return h10.errors = [{ instancePath: s7 + "/tone", schemaPath: "#/properties/tone/enum", keyword: "enum", params: { allowedValues: F.properties.tone.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
6837
7005
|
var p6 = l4 === e4;
|
|
6838
7006
|
} else var p6 = true;
|
|
6839
7007
|
}
|
|
@@ -6845,8 +7013,8 @@ function h9(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6845
7013
|
}
|
|
6846
7014
|
}
|
|
6847
7015
|
}
|
|
6848
|
-
} else return
|
|
6849
|
-
return
|
|
7016
|
+
} else return h10.errors = [{ instancePath: s7, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
7017
|
+
return h10.errors = m6, e4 === 0;
|
|
6850
7018
|
}
|
|
6851
7019
|
function v5(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3, rootData: b4 = r2 } = {}) {
|
|
6852
7020
|
let m6 = null, e4 = 0;
|
|
@@ -6920,60 +7088,60 @@ function f2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6920
7088
|
if (r2.weekOf === void 0 && (t8 = "weekOf") || r2.currentWeekOf === void 0 && (t8 = "currentWeekOf") || r2.isCurrentWeek === void 0 && (t8 = "isCurrentWeek") || r2.asOfDay === void 0 && (t8 = "asOfDay") || r2.daysElapsed === void 0 && (t8 = "daysElapsed") || r2.weeks === void 0 && (t8 = "weeks") || r2.totals === void 0 && (t8 = "totals") || r2.projects === void 0 && (t8 = "projects") || r2.hiddenProjectCount === void 0 && (t8 = "hiddenProjectCount") || r2.signals === void 0 && (t8 = "signals")) return f2.errors = [{ instancePath: s7, schemaPath: "#/required", keyword: "required", params: { missingProperty: t8 }, message: "must have required property '" + t8 + "'" }], false;
|
|
6921
7089
|
{
|
|
6922
7090
|
let l4 = e4;
|
|
6923
|
-
for (let
|
|
6924
|
-
return f2.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty:
|
|
7091
|
+
for (let o12 in r2) if (!t4.call($.properties, o12)) {
|
|
7092
|
+
return f2.errors = [{ instancePath: s7, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: o12 }, message: "must NOT have additional properties" }], false;
|
|
6925
7093
|
break;
|
|
6926
7094
|
}
|
|
6927
7095
|
if (l4 === e4) {
|
|
6928
7096
|
if (r2.asOfDay !== void 0) {
|
|
6929
|
-
let
|
|
6930
|
-
if (e4 === u4) if (typeof
|
|
6931
|
-
if (!e2.test(
|
|
7097
|
+
let o12 = r2.asOfDay, u4 = e4;
|
|
7098
|
+
if (e4 === u4) if (typeof o12 == "string") {
|
|
7099
|
+
if (!e2.test(o12)) return f2.errors = [{ instancePath: s7 + "/asOfDay", schemaPath: "#/properties/asOfDay/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-\\d{2}-\\d{2}$" }, message: 'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"' }], false;
|
|
6932
7100
|
} else return f2.errors = [{ instancePath: s7 + "/asOfDay", schemaPath: "#/properties/asOfDay/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6933
7101
|
var a5 = u4 === e4;
|
|
6934
7102
|
} else var a5 = true;
|
|
6935
7103
|
if (a5) {
|
|
6936
7104
|
if (r2.currentWeekOf !== void 0) {
|
|
6937
|
-
let
|
|
6938
|
-
if (e4 === u4) if (typeof
|
|
6939
|
-
if (!e2.test(
|
|
7105
|
+
let o12 = r2.currentWeekOf, u4 = e4;
|
|
7106
|
+
if (e4 === u4) if (typeof o12 == "string") {
|
|
7107
|
+
if (!e2.test(o12)) return f2.errors = [{ instancePath: s7 + "/currentWeekOf", schemaPath: "#/properties/currentWeekOf/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-\\d{2}-\\d{2}$" }, message: 'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"' }], false;
|
|
6940
7108
|
} else return f2.errors = [{ instancePath: s7 + "/currentWeekOf", schemaPath: "#/properties/currentWeekOf/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
6941
7109
|
var a5 = u4 === e4;
|
|
6942
7110
|
} else var a5 = true;
|
|
6943
7111
|
if (a5) {
|
|
6944
7112
|
if (r2.daysElapsed !== void 0) {
|
|
6945
|
-
let
|
|
6946
|
-
if (!(typeof
|
|
6947
|
-
if (e4 === u4 && typeof
|
|
6948
|
-
if (
|
|
6949
|
-
if (
|
|
7113
|
+
let o12 = r2.daysElapsed, u4 = e4;
|
|
7114
|
+
if (!(typeof o12 == "number" && !(o12 % 1) && !isNaN(o12) && isFinite(o12))) return f2.errors = [{ instancePath: s7 + "/daysElapsed", schemaPath: "#/properties/daysElapsed/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
7115
|
+
if (e4 === u4 && typeof o12 == "number" && isFinite(o12)) {
|
|
7116
|
+
if (o12 > 7 || isNaN(o12)) return f2.errors = [{ instancePath: s7 + "/daysElapsed", schemaPath: "#/properties/daysElapsed/maximum", keyword: "maximum", params: { comparison: "<=", limit: 7 }, message: "must be <= 7" }], false;
|
|
7117
|
+
if (o12 < 1 || isNaN(o12)) return f2.errors = [{ instancePath: s7 + "/daysElapsed", schemaPath: "#/properties/daysElapsed/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], false;
|
|
6950
7118
|
}
|
|
6951
7119
|
var a5 = u4 === e4;
|
|
6952
7120
|
} else var a5 = true;
|
|
6953
7121
|
if (a5) {
|
|
6954
7122
|
if (r2.hiddenProjectCount !== void 0) {
|
|
6955
|
-
let
|
|
6956
|
-
if (!(typeof
|
|
6957
|
-
if (e4 === u4 && typeof
|
|
7123
|
+
let o12 = r2.hiddenProjectCount, u4 = e4;
|
|
7124
|
+
if (!(typeof o12 == "number" && !(o12 % 1) && !isNaN(o12) && isFinite(o12))) return f2.errors = [{ instancePath: s7 + "/hiddenProjectCount", schemaPath: "#/properties/hiddenProjectCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
7125
|
+
if (e4 === u4 && typeof o12 == "number" && isFinite(o12) && (o12 < 0 || isNaN(o12))) return f2.errors = [{ instancePath: s7 + "/hiddenProjectCount", schemaPath: "#/properties/hiddenProjectCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }], false;
|
|
6958
7126
|
var a5 = u4 === e4;
|
|
6959
7127
|
} else var a5 = true;
|
|
6960
7128
|
if (a5) {
|
|
6961
7129
|
if (r2.isCurrentWeek !== void 0) {
|
|
6962
|
-
let
|
|
7130
|
+
let o12 = e4;
|
|
6963
7131
|
if (typeof r2.isCurrentWeek != "boolean") return f2.errors = [{ instancePath: s7 + "/isCurrentWeek", schemaPath: "#/properties/isCurrentWeek/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
6964
|
-
var a5 =
|
|
7132
|
+
var a5 = o12 === e4;
|
|
6965
7133
|
} else var a5 = true;
|
|
6966
7134
|
if (a5) {
|
|
6967
7135
|
if (r2.projects !== void 0) {
|
|
6968
|
-
let
|
|
6969
|
-
if (e4 === u4) if (Array.isArray(
|
|
6970
|
-
if (
|
|
7136
|
+
let o12 = r2.projects, u4 = e4;
|
|
7137
|
+
if (e4 === u4) if (Array.isArray(o12)) {
|
|
7138
|
+
if (o12.length > 10) return f2.errors = [{ instancePath: s7 + "/projects", schemaPath: "#/properties/projects/maxItems", keyword: "maxItems", params: { limit: 10 }, message: "must NOT have more than 10 items" }], false;
|
|
6971
7139
|
{
|
|
6972
7140
|
var p6 = true;
|
|
6973
|
-
let O2 =
|
|
7141
|
+
let O2 = o12.length;
|
|
6974
7142
|
for (let g = 0; g < O2; g++) {
|
|
6975
7143
|
let D2 = e4;
|
|
6976
|
-
y2(
|
|
7144
|
+
y2(o12[g], { instancePath: s7 + "/projects/" + g, parentData: o12, parentDataProperty: g, rootData: b4 }) || (m6 = m6 === null ? y2.errors : m6.concat(y2.errors), e4 = m6.length);
|
|
6977
7145
|
var p6 = D2 === e4;
|
|
6978
7146
|
if (!p6) break;
|
|
6979
7147
|
}
|
|
@@ -6983,15 +7151,15 @@ function f2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
6983
7151
|
} else var a5 = true;
|
|
6984
7152
|
if (a5) {
|
|
6985
7153
|
if (r2.signals !== void 0) {
|
|
6986
|
-
let
|
|
6987
|
-
if (e4 === u4) if (Array.isArray(
|
|
6988
|
-
if (
|
|
7154
|
+
let o12 = r2.signals, u4 = e4;
|
|
7155
|
+
if (e4 === u4) if (Array.isArray(o12)) {
|
|
7156
|
+
if (o12.length > 4) return f2.errors = [{ instancePath: s7 + "/signals", schemaPath: "#/properties/signals/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" }], false;
|
|
6989
7157
|
{
|
|
6990
7158
|
var d5 = true;
|
|
6991
|
-
let O2 =
|
|
7159
|
+
let O2 = o12.length;
|
|
6992
7160
|
for (let g = 0; g < O2; g++) {
|
|
6993
7161
|
let D2 = e4;
|
|
6994
|
-
|
|
7162
|
+
h10(o12[g], { instancePath: s7 + "/signals/" + g, parentData: o12, parentDataProperty: g, rootData: b4 }) || (m6 = m6 === null ? h10.errors : m6.concat(h10.errors), e4 = m6.length);
|
|
6995
7163
|
var d5 = D2 === e4;
|
|
6996
7164
|
if (!d5) break;
|
|
6997
7165
|
}
|
|
@@ -7001,16 +7169,16 @@ function f2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
7001
7169
|
} else var a5 = true;
|
|
7002
7170
|
if (a5) {
|
|
7003
7171
|
if (r2.totals !== void 0) {
|
|
7004
|
-
let
|
|
7005
|
-
if (e4 === u4) if (Array.isArray(
|
|
7006
|
-
if (
|
|
7007
|
-
if (
|
|
7172
|
+
let o12 = r2.totals, u4 = e4;
|
|
7173
|
+
if (e4 === u4) if (Array.isArray(o12)) {
|
|
7174
|
+
if (o12.length > 8) return f2.errors = [{ instancePath: s7 + "/totals", schemaPath: "#/properties/totals/maxItems", keyword: "maxItems", params: { limit: 8 }, message: "must NOT have more than 8 items" }], false;
|
|
7175
|
+
if (o12.length < 8) return f2.errors = [{ instancePath: s7 + "/totals", schemaPath: "#/properties/totals/minItems", keyword: "minItems", params: { limit: 8 }, message: "must NOT have fewer than 8 items" }], false;
|
|
7008
7176
|
{
|
|
7009
7177
|
var i5 = true;
|
|
7010
|
-
let O2 =
|
|
7178
|
+
let O2 = o12.length;
|
|
7011
7179
|
for (let g = 0; g < O2; g++) {
|
|
7012
7180
|
let D2 = e4;
|
|
7013
|
-
v5(
|
|
7181
|
+
v5(o12[g], { instancePath: s7 + "/totals/" + g, parentData: o12, parentDataProperty: g, rootData: b4 }) || (m6 = m6 === null ? v5.errors : m6.concat(v5.errors), e4 = m6.length);
|
|
7014
7182
|
var i5 = D2 === e4;
|
|
7015
7183
|
if (!i5) break;
|
|
7016
7184
|
}
|
|
@@ -7020,22 +7188,22 @@ function f2(r2, { instancePath: s7 = "", parentData: I2, parentDataProperty: S3,
|
|
|
7020
7188
|
} else var a5 = true;
|
|
7021
7189
|
if (a5) {
|
|
7022
7190
|
if (r2.weekOf !== void 0) {
|
|
7023
|
-
let
|
|
7024
|
-
if (e4 === u4) if (typeof
|
|
7025
|
-
if (!e2.test(
|
|
7191
|
+
let o12 = r2.weekOf, u4 = e4;
|
|
7192
|
+
if (e4 === u4) if (typeof o12 == "string") {
|
|
7193
|
+
if (!e2.test(o12)) return f2.errors = [{ instancePath: s7 + "/weekOf", schemaPath: "#/properties/weekOf/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-\\d{2}-\\d{2}$" }, message: 'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"' }], false;
|
|
7026
7194
|
} else return f2.errors = [{ instancePath: s7 + "/weekOf", schemaPath: "#/properties/weekOf/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7027
7195
|
var a5 = u4 === e4;
|
|
7028
7196
|
} else var a5 = true;
|
|
7029
7197
|
if (a5) if (r2.weeks !== void 0) {
|
|
7030
|
-
let
|
|
7031
|
-
if (e4 === u4) if (Array.isArray(
|
|
7032
|
-
if (
|
|
7033
|
-
if (
|
|
7198
|
+
let o12 = r2.weeks, u4 = e4;
|
|
7199
|
+
if (e4 === u4) if (Array.isArray(o12)) {
|
|
7200
|
+
if (o12.length > 8) return f2.errors = [{ instancePath: s7 + "/weeks", schemaPath: "#/properties/weeks/maxItems", keyword: "maxItems", params: { limit: 8 }, message: "must NOT have more than 8 items" }], false;
|
|
7201
|
+
if (o12.length < 8) return f2.errors = [{ instancePath: s7 + "/weeks", schemaPath: "#/properties/weeks/minItems", keyword: "minItems", params: { limit: 8 }, message: "must NOT have fewer than 8 items" }], false;
|
|
7034
7202
|
{
|
|
7035
7203
|
var n7 = true;
|
|
7036
|
-
let O2 =
|
|
7204
|
+
let O2 = o12.length;
|
|
7037
7205
|
for (let g = 0; g < O2; g++) {
|
|
7038
|
-
let D2 =
|
|
7206
|
+
let D2 = o12[g], x4 = e4;
|
|
7039
7207
|
if (e4 === x4) if (typeof D2 == "string") {
|
|
7040
7208
|
if (!e2.test(D2)) return f2.errors = [{ instancePath: s7 + "/weeks/" + g, schemaPath: "#/properties/weeks/items/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-\\d{2}-\\d{2}$" }, message: 'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"' }], false;
|
|
7041
7209
|
} else return f2.errors = [{ instancePath: s7 + "/weeks/" + g, schemaPath: "#/properties/weeks/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
@@ -7240,8 +7408,8 @@ var w2 = { additionalProperties: false, properties: { candidates: { items: { add
|
|
|
7240
7408
|
function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2, rootData: B = l4 } = {}) {
|
|
7241
7409
|
let D2 = null, e4 = 0;
|
|
7242
7410
|
if (e4 === 0) if (l4 && typeof l4 == "object" && !Array.isArray(l4)) {
|
|
7243
|
-
let
|
|
7244
|
-
if (l4.project === void 0 && (
|
|
7411
|
+
let h11;
|
|
7412
|
+
if (l4.project === void 0 && (h11 = "project") || l4.username === void 0 && (h11 = "username") || l4.revision === void 0 && (h11 = "revision") || l4.suggestedSlug === void 0 && (h11 = "suggestedSlug") || l4.suggestedTitle === void 0 && (h11 = "suggestedTitle") || l4.publication === void 0 && (h11 = "publication") || l4.counts === void 0 && (h11 = "counts") || l4.candidates === void 0 && (h11 = "candidates") || l4.candidatesTruncated === void 0 && (h11 = "candidatesTruncated")) return s6.errors = [{ instancePath: i5, schemaPath: "#/required", keyword: "required", params: { missingProperty: h11 }, message: "must have required property '" + h11 + "'" }], false;
|
|
7245
7413
|
{
|
|
7246
7414
|
let $2 = e4;
|
|
7247
7415
|
for (let t8 in l4) if (!t4.call(w2.properties, t8)) {
|
|
@@ -7255,43 +7423,43 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7255
7423
|
var M = true;
|
|
7256
7424
|
let O2 = t8.length;
|
|
7257
7425
|
for (let n7 = 0; n7 < O2; n7++) {
|
|
7258
|
-
let
|
|
7259
|
-
if (e4 === r2) if (
|
|
7426
|
+
let o12 = t8[n7], r2 = e4;
|
|
7427
|
+
if (e4 === r2) if (o12 && typeof o12 == "object" && !Array.isArray(o12)) {
|
|
7260
7428
|
let y3;
|
|
7261
|
-
if (
|
|
7429
|
+
if (o12.entryId === void 0 && (y3 = "entryId") || o12.localDay === void 0 && (y3 = "localDay") || o12.outcome === void 0 && (y3 = "outcome") || o12.details === void 0 && (y3 = "details") || o12.artifactUrl === void 0 && (y3 = "artifactUrl") || o12.durationSeconds === void 0 && (y3 = "durationSeconds") || o12.provenance === void 0 && (y3 = "provenance") || o12.captureSource === void 0 && (y3 = "captureSource") || o12.loggedLate === void 0 && (y3 = "loggedLate") || o12.digest === void 0 && (y3 = "digest") || o12.fieldVersion === void 0 && (y3 = "fieldVersion") || o12.agentLabel === void 0 && (y3 = "agentLabel") || o12.suggestedArtifactKind === void 0 && (y3 = "suggestedArtifactKind") || o12.state === void 0 && (y3 = "state") || o12.selection === void 0 && (y3 = "selection")) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7, schemaPath: "#/properties/candidates/items/required", keyword: "required", params: { missingProperty: y3 }, message: "must have required property '" + y3 + "'" }], false;
|
|
7262
7430
|
{
|
|
7263
7431
|
let P4 = e4;
|
|
7264
|
-
for (let a5 in
|
|
7432
|
+
for (let a5 in o12) if (!t4.call(w2.properties.candidates.items.properties, a5)) {
|
|
7265
7433
|
return s6.errors = [{ instancePath: i5 + "/candidates/" + n7, schemaPath: "#/properties/candidates/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a5 }, message: "must NOT have additional properties" }], false;
|
|
7266
7434
|
break;
|
|
7267
7435
|
}
|
|
7268
7436
|
if (P4 === e4) {
|
|
7269
|
-
if (
|
|
7270
|
-
let a5 =
|
|
7437
|
+
if (o12.agentLabel !== void 0) {
|
|
7438
|
+
let a5 = o12.agentLabel, p6 = e4;
|
|
7271
7439
|
if (typeof a5 != "string" && a5 !== null) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/agentLabel", schemaPath: "#/properties/candidates/items/properties/agentLabel/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7272
7440
|
var d5 = p6 === e4;
|
|
7273
7441
|
} else var d5 = true;
|
|
7274
7442
|
if (d5) {
|
|
7275
|
-
if (
|
|
7276
|
-
let a5 =
|
|
7443
|
+
if (o12.artifactUrl !== void 0) {
|
|
7444
|
+
let a5 = o12.artifactUrl, p6 = e4;
|
|
7277
7445
|
if (typeof a5 != "string" && a5 !== null) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/artifactUrl", schemaPath: "#/properties/candidates/items/properties/artifactUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7278
7446
|
var d5 = p6 === e4;
|
|
7279
7447
|
} else var d5 = true;
|
|
7280
7448
|
if (d5) {
|
|
7281
|
-
if (
|
|
7449
|
+
if (o12.captureSource !== void 0) {
|
|
7282
7450
|
let a5 = e4;
|
|
7283
|
-
if (typeof
|
|
7451
|
+
if (typeof o12.captureSource != "string") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/captureSource", schemaPath: "#/properties/candidates/items/properties/captureSource/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7284
7452
|
var d5 = a5 === e4;
|
|
7285
7453
|
} else var d5 = true;
|
|
7286
7454
|
if (d5) {
|
|
7287
|
-
if (
|
|
7288
|
-
let a5 =
|
|
7455
|
+
if (o12.details !== void 0) {
|
|
7456
|
+
let a5 = o12.details, p6 = e4;
|
|
7289
7457
|
if (e4 === p6) if (Array.isArray(a5)) {
|
|
7290
7458
|
var V = true;
|
|
7291
7459
|
let A2 = a5.length;
|
|
7292
|
-
for (let
|
|
7460
|
+
for (let _2 = 0; _2 < A2; _2++) {
|
|
7293
7461
|
let g = e4;
|
|
7294
|
-
if (typeof a5[
|
|
7462
|
+
if (typeof a5[_2] != "string") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/details/" + _2, schemaPath: "#/properties/candidates/items/properties/details/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7295
7463
|
var V = g === e4;
|
|
7296
7464
|
if (!V) break;
|
|
7297
7465
|
}
|
|
@@ -7299,76 +7467,76 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7299
7467
|
var d5 = p6 === e4;
|
|
7300
7468
|
} else var d5 = true;
|
|
7301
7469
|
if (d5) {
|
|
7302
|
-
if (
|
|
7303
|
-
let a5 =
|
|
7470
|
+
if (o12.digest !== void 0) {
|
|
7471
|
+
let a5 = o12.digest, p6 = e4;
|
|
7304
7472
|
if (e4 === p6) if (typeof a5 == "string") {
|
|
7305
7473
|
if (!e3.test(a5)) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/digest", schemaPath: "#/properties/candidates/items/properties/digest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }], false;
|
|
7306
7474
|
} else return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/digest", schemaPath: "#/properties/candidates/items/properties/digest/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7307
7475
|
var d5 = p6 === e4;
|
|
7308
7476
|
} else var d5 = true;
|
|
7309
7477
|
if (d5) {
|
|
7310
|
-
if (
|
|
7311
|
-
let a5 =
|
|
7478
|
+
if (o12.durationSeconds !== void 0) {
|
|
7479
|
+
let a5 = o12.durationSeconds, p6 = e4;
|
|
7312
7480
|
if (!(typeof a5 == "number" && !(a5 % 1) && !isNaN(a5) && isFinite(a5))) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/durationSeconds", schemaPath: "#/properties/candidates/items/properties/durationSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
7313
7481
|
if (e4 === p6 && typeof a5 == "number" && isFinite(a5) && (a5 < 0 || isNaN(a5))) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/durationSeconds", schemaPath: "#/properties/candidates/items/properties/durationSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }], false;
|
|
7314
7482
|
var d5 = p6 === e4;
|
|
7315
7483
|
} else var d5 = true;
|
|
7316
7484
|
if (d5) {
|
|
7317
|
-
if (
|
|
7318
|
-
let a5 =
|
|
7485
|
+
if (o12.entryId !== void 0) {
|
|
7486
|
+
let a5 = o12.entryId, p6 = e4;
|
|
7319
7487
|
if (e4 === p6 && e4 === p6) if (typeof a5 == "string") {
|
|
7320
7488
|
if (!a2.test(a5)) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/entryId", schemaPath: "#/properties/candidates/items/properties/entryId/format", keyword: "format", params: { format: "uuid" }, message: 'must match format "uuid"' }], false;
|
|
7321
7489
|
} else return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/entryId", schemaPath: "#/properties/candidates/items/properties/entryId/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7322
7490
|
var d5 = p6 === e4;
|
|
7323
7491
|
} else var d5 = true;
|
|
7324
7492
|
if (d5) {
|
|
7325
|
-
if (
|
|
7326
|
-
let a5 =
|
|
7493
|
+
if (o12.fieldVersion !== void 0) {
|
|
7494
|
+
let a5 = o12.fieldVersion, p6 = e4;
|
|
7327
7495
|
if (!(typeof a5 == "number" && !(a5 % 1) && !isNaN(a5) && isFinite(a5))) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/fieldVersion", schemaPath: "#/properties/candidates/items/properties/fieldVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
7328
7496
|
if (e4 === p6 && typeof a5 == "number" && isFinite(a5) && (a5 < 0 || isNaN(a5))) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/fieldVersion", schemaPath: "#/properties/candidates/items/properties/fieldVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }], false;
|
|
7329
7497
|
var d5 = p6 === e4;
|
|
7330
7498
|
} else var d5 = true;
|
|
7331
7499
|
if (d5) {
|
|
7332
|
-
if (
|
|
7333
|
-
let a5 =
|
|
7500
|
+
if (o12.localDay !== void 0) {
|
|
7501
|
+
let a5 = o12.localDay, p6 = e4;
|
|
7334
7502
|
if (e4 === p6) if (typeof a5 == "string") {
|
|
7335
7503
|
if (!e2.test(a5)) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/localDay", schemaPath: "#/properties/candidates/items/properties/localDay/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-\\d{2}-\\d{2}$" }, message: 'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"' }], false;
|
|
7336
7504
|
} else return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/localDay", schemaPath: "#/properties/candidates/items/properties/localDay/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7337
7505
|
var d5 = p6 === e4;
|
|
7338
7506
|
} else var d5 = true;
|
|
7339
7507
|
if (d5) {
|
|
7340
|
-
if (
|
|
7508
|
+
if (o12.loggedLate !== void 0) {
|
|
7341
7509
|
let a5 = e4;
|
|
7342
|
-
if (typeof
|
|
7510
|
+
if (typeof o12.loggedLate != "boolean") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/loggedLate", schemaPath: "#/properties/candidates/items/properties/loggedLate/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
7343
7511
|
var d5 = a5 === e4;
|
|
7344
7512
|
} else var d5 = true;
|
|
7345
7513
|
if (d5) {
|
|
7346
|
-
if (
|
|
7514
|
+
if (o12.outcome !== void 0) {
|
|
7347
7515
|
let a5 = e4;
|
|
7348
|
-
if (typeof
|
|
7516
|
+
if (typeof o12.outcome != "string") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/outcome", schemaPath: "#/properties/candidates/items/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7349
7517
|
var d5 = a5 === e4;
|
|
7350
7518
|
} else var d5 = true;
|
|
7351
7519
|
if (d5) {
|
|
7352
|
-
if (
|
|
7353
|
-
let a5 =
|
|
7520
|
+
if (o12.provenance !== void 0) {
|
|
7521
|
+
let a5 = o12.provenance, p6 = e4;
|
|
7354
7522
|
if (typeof a5 != "string") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/provenance", schemaPath: "#/properties/candidates/items/properties/provenance/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7355
7523
|
if (!(a5 === "personal" || a5 === "agent")) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/provenance", schemaPath: "#/properties/candidates/items/properties/provenance/enum", keyword: "enum", params: { allowedValues: w2.properties.candidates.items.properties.provenance.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
7356
7524
|
var d5 = p6 === e4;
|
|
7357
7525
|
} else var d5 = true;
|
|
7358
7526
|
if (d5) {
|
|
7359
|
-
if (
|
|
7360
|
-
let a5 =
|
|
7527
|
+
if (o12.selection !== void 0) {
|
|
7528
|
+
let a5 = o12.selection, p6 = e4;
|
|
7361
7529
|
if (!(a5 && typeof a5 == "object" && !Array.isArray(a5)) && a5 !== null) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/selection", schemaPath: "#/properties/candidates/items/properties/selection/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
7362
7530
|
if (e4 === p6 && a5 && typeof a5 == "object" && !Array.isArray(a5)) {
|
|
7363
7531
|
let A2;
|
|
7364
7532
|
if (a5.artifactKind === void 0 && (A2 = "artifactKind") || a5.selectedAt === void 0 && (A2 = "selectedAt")) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/selection", schemaPath: "#/properties/candidates/items/properties/selection/required", keyword: "required", params: { missingProperty: A2 }, message: "must have required property '" + A2 + "'" }], false;
|
|
7365
7533
|
{
|
|
7366
|
-
let
|
|
7534
|
+
let _2 = e4;
|
|
7367
7535
|
for (let g in a5) if (!(g === "artifactKind" || g === "selectedAt")) {
|
|
7368
7536
|
return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/selection", schemaPath: "#/properties/candidates/items/properties/selection/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: g }, message: "must NOT have additional properties" }], false;
|
|
7369
7537
|
break;
|
|
7370
7538
|
}
|
|
7371
|
-
if (
|
|
7539
|
+
if (_2 === e4) {
|
|
7372
7540
|
if (a5.artifactKind !== void 0) {
|
|
7373
7541
|
let g = a5.artifactKind, j2 = e4;
|
|
7374
7542
|
if (typeof g != "string" && g !== null) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/selection/artifactKind", schemaPath: "#/properties/candidates/items/properties/selection/properties/artifactKind/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
@@ -7388,14 +7556,14 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7388
7556
|
var d5 = p6 === e4;
|
|
7389
7557
|
} else var d5 = true;
|
|
7390
7558
|
if (d5) {
|
|
7391
|
-
if (
|
|
7392
|
-
let a5 =
|
|
7559
|
+
if (o12.state !== void 0) {
|
|
7560
|
+
let a5 = o12.state, p6 = e4;
|
|
7393
7561
|
if (typeof a5 != "string") return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/state", schemaPath: "#/properties/candidates/items/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7394
7562
|
if (!(a5 === "public" || a5 === "changed" || a5 === "new" || a5 === "private")) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/state", schemaPath: "#/properties/candidates/items/properties/state/enum", keyword: "enum", params: { allowedValues: w2.properties.candidates.items.properties.state.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
7395
7563
|
var d5 = p6 === e4;
|
|
7396
7564
|
} else var d5 = true;
|
|
7397
|
-
if (d5) if (
|
|
7398
|
-
let a5 =
|
|
7565
|
+
if (d5) if (o12.suggestedArtifactKind !== void 0) {
|
|
7566
|
+
let a5 = o12.suggestedArtifactKind, p6 = e4;
|
|
7399
7567
|
if (typeof a5 != "string" && a5 !== null) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/suggestedArtifactKind", schemaPath: "#/properties/candidates/items/properties/suggestedArtifactKind/type", keyword: "type", params: { type: "string" }, message: "must be string" }], false;
|
|
7400
7568
|
if (!(a5 === "code" || a5 === "design" || a5 === "document" || a5 === "demo" || a5 === "other" || a5 === null)) return s6.errors = [{ instancePath: i5 + "/candidates/" + n7 + "/suggestedArtifactKind", schemaPath: "#/properties/candidates/items/properties/suggestedArtifactKind/enum", keyword: "enum", params: { allowedValues: w2.properties.candidates.items.properties.suggestedArtifactKind.enum }, message: "must be equal to one of the allowed values" }], false;
|
|
7401
7569
|
var d5 = p6 === e4;
|
|
@@ -7435,12 +7603,12 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7435
7603
|
let n7;
|
|
7436
7604
|
if (t8.public === void 0 && (n7 = "public") || t8.changed === void 0 && (n7 = "changed") || t8.new === void 0 && (n7 = "new") || t8.eligible === void 0 && (n7 = "eligible")) return s6.errors = [{ instancePath: i5 + "/counts", schemaPath: "#/properties/counts/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
7437
7605
|
{
|
|
7438
|
-
let
|
|
7606
|
+
let o12 = e4;
|
|
7439
7607
|
for (let r2 in t8) if (!(r2 === "changed" || r2 === "eligible" || r2 === "new" || r2 === "public")) {
|
|
7440
7608
|
return s6.errors = [{ instancePath: i5 + "/counts", schemaPath: "#/properties/counts/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
7441
7609
|
break;
|
|
7442
7610
|
}
|
|
7443
|
-
if (
|
|
7611
|
+
if (o12 === e4) {
|
|
7444
7612
|
if (t8.changed !== void 0) {
|
|
7445
7613
|
let r2 = t8.changed, u4 = e4;
|
|
7446
7614
|
if (!(typeof r2 == "number" && !(r2 % 1) && !isNaN(r2) && isFinite(r2))) return s6.errors = [{ instancePath: i5 + "/counts/changed", schemaPath: "#/properties/counts/properties/changed/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }], false;
|
|
@@ -7481,12 +7649,12 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7481
7649
|
let n7;
|
|
7482
7650
|
if (t8.id === void 0 && (n7 = "id") || t8.name === void 0 && (n7 = "name") || t8.color === void 0 && (n7 = "color") || t8.archived === void 0 && (n7 = "archived")) return s6.errors = [{ instancePath: i5 + "/project", schemaPath: "#/properties/project/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
7483
7651
|
{
|
|
7484
|
-
let
|
|
7652
|
+
let o12 = e4;
|
|
7485
7653
|
for (let r2 in t8) if (!(r2 === "archived" || r2 === "color" || r2 === "id" || r2 === "name")) {
|
|
7486
7654
|
return s6.errors = [{ instancePath: i5 + "/project", schemaPath: "#/properties/project/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
7487
7655
|
break;
|
|
7488
7656
|
}
|
|
7489
|
-
if (
|
|
7657
|
+
if (o12 === e4) {
|
|
7490
7658
|
if (t8.archived !== void 0) {
|
|
7491
7659
|
let r2 = e4;
|
|
7492
7660
|
if (typeof t8.archived != "boolean") return s6.errors = [{ instancePath: i5 + "/project/archived", schemaPath: "#/properties/project/properties/archived/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
@@ -7526,12 +7694,12 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7526
7694
|
let n7;
|
|
7527
7695
|
if (t8.id === void 0 && (n7 = "id") || t8.slug === void 0 && (n7 = "slug") || t8.publicTitle === void 0 && (n7 = "publicTitle") || t8.publicSummary === void 0 && (n7 = "publicSummary") || t8.status === void 0 && (n7 = "status") || t8.hiddenByModeration === void 0 && (n7 = "hiddenByModeration") || t8.publishedAt === void 0 && (n7 = "publishedAt") || t8.reviewedAt === void 0 && (n7 = "reviewedAt") || t8.updatedAt === void 0 && (n7 = "updatedAt") || t8.links === void 0 && (n7 = "links")) return s6.errors = [{ instancePath: i5 + "/publication", schemaPath: "#/properties/publication/required", keyword: "required", params: { missingProperty: n7 }, message: "must have required property '" + n7 + "'" }], false;
|
|
7528
7696
|
{
|
|
7529
|
-
let
|
|
7697
|
+
let o12 = e4;
|
|
7530
7698
|
for (let r2 in t8) if (!t4.call(w2.properties.publication.properties, r2)) {
|
|
7531
7699
|
return s6.errors = [{ instancePath: i5 + "/publication", schemaPath: "#/properties/publication/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: r2 }, message: "must NOT have additional properties" }], false;
|
|
7532
7700
|
break;
|
|
7533
7701
|
}
|
|
7534
|
-
if (
|
|
7702
|
+
if (o12 === e4) {
|
|
7535
7703
|
if (t8.hiddenByModeration !== void 0) {
|
|
7536
7704
|
let r2 = e4;
|
|
7537
7705
|
if (typeof t8.hiddenByModeration != "boolean") return s6.errors = [{ instancePath: i5 + "/publication/hiddenByModeration", schemaPath: "#/properties/publication/properties/hiddenByModeration/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], false;
|
|
@@ -7693,7 +7861,7 @@ function s6(l4, { instancePath: i5 = "", parentData: x4, parentDataProperty: I2,
|
|
|
7693
7861
|
}
|
|
7694
7862
|
|
|
7695
7863
|
// ../../packages/contracts/src/generated/validators/getV1ProjectsByIdPublication200.js
|
|
7696
|
-
function
|
|
7864
|
+
function o11(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4, rootData: n7 = r2 } = {}) {
|
|
7697
7865
|
let e4 = null, t8 = 0, d5 = t8;
|
|
7698
7866
|
i(r2, { instancePath: s7, parentData: m6, parentDataProperty: u4, rootData: n7 }) || (e4 = e4 === null ? i.errors : e4.concat(i.errors), t8 = e4.length);
|
|
7699
7867
|
var f3 = d5 === t8;
|
|
@@ -7701,14 +7869,14 @@ function o10(r2, { instancePath: s7 = "", parentData: m6, parentDataProperty: u4
|
|
|
7701
7869
|
let p6 = t8;
|
|
7702
7870
|
if (t8 === p6) if (r2 && typeof r2 == "object" && !Array.isArray(r2)) {
|
|
7703
7871
|
let l4;
|
|
7704
|
-
if (r2.data === void 0 && (l4 = "data")) return
|
|
7872
|
+
if (r2.data === void 0 && (l4 = "data")) return o11.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/required", keyword: "required", params: { missingProperty: l4 }, message: "must have required property '" + l4 + "'" }], false;
|
|
7705
7873
|
r2.data !== void 0 && (s6(r2.data, { instancePath: s7 + "/data", parentData: r2, parentDataProperty: "data", rootData: n7 }) || (e4 = e4 === null ? s6.errors : e4.concat(s6.errors), t8 = e4.length));
|
|
7706
|
-
} else return
|
|
7874
|
+
} else return o11.errors = [{ instancePath: s7, schemaPath: "#/allOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" }], false;
|
|
7707
7875
|
var f3 = p6 === t8;
|
|
7708
7876
|
}
|
|
7709
|
-
return
|
|
7877
|
+
return o11.errors = e4, t8 === 0;
|
|
7710
7878
|
}
|
|
7711
|
-
var b3 =
|
|
7879
|
+
var b3 = o11;
|
|
7712
7880
|
|
|
7713
7881
|
// ../../packages/contracts/src/generated/endpoints/getV1ProjectsByIdPublication.ts
|
|
7714
7882
|
var getV1ProjectsByIdPublication = {
|
|
@@ -7849,7 +8017,7 @@ for (const [name, description, done] of [
|
|
|
7849
8017
|
|
|
7850
8018
|
// src/index.ts
|
|
7851
8019
|
var program = new Command12();
|
|
7852
|
-
program.name("flowmind").description("Flowmind CLI (also installed as fm)").version("0.3.
|
|
8020
|
+
program.name("flowmind").description("Flowmind CLI (also installed as fm)").version("0.3.10").enablePositionalOptions();
|
|
7853
8021
|
program.addCommand(agentCommand);
|
|
7854
8022
|
program.addCommand(authCommand);
|
|
7855
8023
|
program.addCommand(logCommand);
|