@stndrds/schema 1.0.0-alpha.215 → 1.0.0-alpha.216
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/{attributes-CwDiLLzP.d.ts → attributes-BIngT-ky.d.ts} +7 -1
- package/dist/{attributes-DNlA-yww.d.mts → attributes-CUROLTVH.d.mts} +7 -1
- package/dist/{chunk-UXWFFBQO.mjs → chunk-5WYDO3ZB.mjs} +16 -1
- package/dist/{chunk-IH37K3BX.js → chunk-XTPYL6OM.js} +16 -0
- package/dist/{helpers-CyYKowT9.d.mts → helpers-B-Y9kDoP.d.mts} +2 -2
- package/dist/{helpers-DQ22uMWd.d.ts → helpers-DOn86mSK.d.ts} +2 -2
- package/dist/index.d.mts +76 -18
- package/dist/index.d.ts +76 -18
- package/dist/index.js +77 -65
- package/dist/index.mjs +8 -3
- package/dist/{types-Bi3ZZIZJ.d.ts → types-BKIuJHdj.d.ts} +1 -1
- package/dist/{types-BlVvybnQ.d.mts → types-BlMu1Nch.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +8 -8
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/object/index.js +14 -14
- package/dist/validation/object/index.mjs +1 -1
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
|
|
4
4
|
require('./chunk-PGERPYDR.js');
|
|
5
5
|
var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkXTPYL6OM_js = require('./chunk-XTPYL6OM.js');
|
|
7
7
|
require('./chunk-5WATIVCA.js');
|
|
8
8
|
require('./chunk-O44XVGHE.js');
|
|
9
9
|
require('./chunk-YIP5FJ5H.js');
|
|
@@ -527,6 +527,7 @@ var RESERVED_ATTRIBUTE_NAMES = [
|
|
|
527
527
|
"deletedBy",
|
|
528
528
|
"schemaVersion"
|
|
529
529
|
];
|
|
530
|
+
var RESERVED_OBJECT_NAMES = ["skill"];
|
|
530
531
|
|
|
531
532
|
// src/types/permissions.ts
|
|
532
533
|
var ALL_ACTIONS = ["read", "create", "update", "delete", "manage"];
|
|
@@ -1285,7 +1286,7 @@ var BaseAttributeBuilder = class {
|
|
|
1285
1286
|
* @see https://standardschema.dev/
|
|
1286
1287
|
*/
|
|
1287
1288
|
get "~standard"() {
|
|
1288
|
-
const zodSchema =
|
|
1289
|
+
const zodSchema = chunkXTPYL6OM_js.createAttributeValidator(this.build());
|
|
1289
1290
|
return createStandardSchemaProps(zodSchema);
|
|
1290
1291
|
}
|
|
1291
1292
|
constructor(type, name, label) {
|
|
@@ -2058,9 +2059,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2058
2059
|
if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
|
|
2059
2060
|
const relation2 = this.attr.relationAttribute ?? "relation";
|
|
2060
2061
|
const target = this.attr.targetAttribute ?? "field";
|
|
2061
|
-
throw new
|
|
2062
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2062
2063
|
`Rollup "${this.attr.name}": .using("original") only supports a "select", "status", or "multiselect" target, but .targetType("${targetType}") was given. To surface a plain ${targetType} value from a related record, use a formula instead \u2014 e.g. formula({ name: "${this.attr.name}", label: "\u2026" }).expression("${relation2}.${target}").`,
|
|
2063
|
-
|
|
2064
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2064
2065
|
);
|
|
2065
2066
|
}
|
|
2066
2067
|
return super.build();
|
|
@@ -2556,7 +2557,7 @@ var ObjectBuilder = class {
|
|
|
2556
2557
|
* @see https://standardschema.dev/
|
|
2557
2558
|
*/
|
|
2558
2559
|
get "~standard"() {
|
|
2559
|
-
const zodSchema =
|
|
2560
|
+
const zodSchema = chunkXTPYL6OM_js.createObjectValidator(this.build());
|
|
2560
2561
|
return createStandardSchemaProps(zodSchema);
|
|
2561
2562
|
}
|
|
2562
2563
|
/**
|
|
@@ -2760,17 +2761,17 @@ var ObjectBuilder = class {
|
|
|
2760
2761
|
throw new Error("[ObjectBuilder] Missing required field: label");
|
|
2761
2762
|
}
|
|
2762
2763
|
if (!this._labelExpression) {
|
|
2763
|
-
throw new
|
|
2764
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2764
2765
|
`Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
|
|
2765
|
-
|
|
2766
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2766
2767
|
);
|
|
2767
2768
|
}
|
|
2768
2769
|
const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
|
|
2769
2770
|
if (!labelResult.success) {
|
|
2770
2771
|
const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
|
|
2771
|
-
throw new
|
|
2772
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2772
2773
|
`Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2773
|
-
|
|
2774
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2774
2775
|
);
|
|
2775
2776
|
}
|
|
2776
2777
|
const sortedVersions = [...this._migrations].sort((a, b) => a.version - b.version);
|
|
@@ -2809,7 +2810,7 @@ var ObjectBuilder = class {
|
|
|
2809
2810
|
objectNameSchema.parse(name);
|
|
2810
2811
|
} catch (error) {
|
|
2811
2812
|
if (error instanceof z3__default.default.ZodError) {
|
|
2812
|
-
throw new
|
|
2813
|
+
throw new chunkXTPYL6OM_js.SchemaError(error.issues[0].message, chunkXTPYL6OM_js.SchemaErrorCode.INVALID_OBJECT_NAME);
|
|
2813
2814
|
}
|
|
2814
2815
|
throw error;
|
|
2815
2816
|
}
|
|
@@ -4527,6 +4528,10 @@ Available objects: ${this.listNames().join(", ")}`
|
|
|
4527
4528
|
};
|
|
4528
4529
|
var registry = new NativeObjectRegistryClass();
|
|
4529
4530
|
|
|
4531
|
+
// src/native/skill.object.ts
|
|
4532
|
+
var SKILL_OBJECT = object({ name: "skill", label: "Skill" }).sealed().icon("sparkles").order(Number.MAX_SAFE_INTEGER).labelExpression("{{ displayName }}").attribute(text({ name: "name", label: "Name" }).required()).attribute(text({ name: "displayName", label: "Display Name" }).required()).attribute(text({ name: "description", label: "Description" }).multiline().required()).attribute(richtext({ name: "content", label: "Content" })).attribute(document({ name: "attachments", label: "Attachments" })).attribute(checkbox({ name: "alwaysOn", label: "Always on" })).attribute(checkbox({ name: "enabled", label: "Enabled" })).build();
|
|
4533
|
+
var SKILL_VIEW = detailView("skill-detail", "Skill").for("skill").default().sidePanel({ attributes: ["name", "displayName", "description", "alwaysOn", "enabled"] }).tab("content", "Content").richtext("content").done().tab("attachments", "Attachments").documents().done().build();
|
|
4534
|
+
|
|
4530
4535
|
// src/views/registry.ts
|
|
4531
4536
|
var ViewRegistry = class {
|
|
4532
4537
|
constructor() {
|
|
@@ -6757,7 +6762,7 @@ function assertOperatorForType(operator, type, context) {
|
|
|
6757
6762
|
if (!ops?.includes(operator)) {
|
|
6758
6763
|
const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
|
|
6759
6764
|
const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
|
|
6760
|
-
throw new
|
|
6765
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [
|
|
6761
6766
|
{
|
|
6762
6767
|
path: ["operator"],
|
|
6763
6768
|
message: summary
|
|
@@ -6773,7 +6778,7 @@ function assertRelativeDateValue(rule) {
|
|
|
6773
6778
|
const valid = typeof v === "object" && v !== null && typeof v.amount === "number" && Number.isFinite(v.amount) && v.amount > 0 && typeof v.unit === "string" && RELATIVE_DATE_UNITS.has(v.unit) && typeof v.direction === "string" && RELATIVE_DATE_DIRECTIONS.has(v.direction);
|
|
6774
6779
|
if (!valid) {
|
|
6775
6780
|
const m = `Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;
|
|
6776
|
-
throw new
|
|
6781
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6777
6782
|
}
|
|
6778
6783
|
}
|
|
6779
6784
|
function assertDynamicValueForAttribute(rule, attrType) {
|
|
@@ -6781,34 +6786,34 @@ function assertDynamicValueForAttribute(rule, attrType) {
|
|
|
6781
6786
|
const v = rule.value;
|
|
6782
6787
|
if (v.dynamic === "actor" && attrType !== "user") {
|
|
6783
6788
|
const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
|
|
6784
|
-
throw new
|
|
6789
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6785
6790
|
}
|
|
6786
6791
|
if (v.dynamic === "date" && attrType !== "date") {
|
|
6787
6792
|
const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
|
|
6788
|
-
throw new
|
|
6793
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6789
6794
|
}
|
|
6790
6795
|
}
|
|
6791
6796
|
function validateQualifiedRule(rule, context) {
|
|
6792
6797
|
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
6793
6798
|
const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
|
|
6794
6799
|
if (!(rootAttr || systemOps)) {
|
|
6795
|
-
throw new
|
|
6800
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
6796
6801
|
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
6797
6802
|
]);
|
|
6798
6803
|
}
|
|
6799
6804
|
if (rule.quantifier !== void 0 && !rule.property) {
|
|
6800
6805
|
const m = `quantifier is only valid on qualified edge rules (set "property")`;
|
|
6801
|
-
throw new
|
|
6806
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
|
|
6802
6807
|
}
|
|
6803
6808
|
if (!rootAttr) {
|
|
6804
6809
|
if (rule.property) {
|
|
6805
|
-
throw new
|
|
6810
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
|
|
6806
6811
|
{ path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
|
|
6807
6812
|
]);
|
|
6808
6813
|
}
|
|
6809
6814
|
if (!systemOps.includes(rule.operator)) {
|
|
6810
6815
|
const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
|
|
6811
|
-
throw new
|
|
6816
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6812
6817
|
}
|
|
6813
6818
|
assertRelativeDateValue(rule);
|
|
6814
6819
|
return;
|
|
@@ -6819,25 +6824,25 @@ function validateQualifiedRule(rule, context) {
|
|
|
6819
6824
|
if (!ops.includes(rule.operator)) {
|
|
6820
6825
|
const validList = ops.length ? ops.join(", ") : "(not filterable)";
|
|
6821
6826
|
const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
|
|
6822
|
-
throw new
|
|
6827
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6823
6828
|
}
|
|
6824
6829
|
assertRelativeDateValue(rule);
|
|
6825
6830
|
return;
|
|
6826
6831
|
}
|
|
6827
6832
|
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
6828
|
-
throw new
|
|
6833
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
6829
6834
|
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
6830
6835
|
]);
|
|
6831
6836
|
}
|
|
6832
6837
|
const propSchema = rootAttr.properties;
|
|
6833
6838
|
if (!propSchema) {
|
|
6834
|
-
throw new
|
|
6839
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
6835
6840
|
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
6836
6841
|
]);
|
|
6837
6842
|
}
|
|
6838
6843
|
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
6839
6844
|
if (!propDef) {
|
|
6840
|
-
throw new
|
|
6845
|
+
throw new chunkXTPYL6OM_js.ValidationError(
|
|
6841
6846
|
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
6842
6847
|
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
6843
6848
|
);
|
|
@@ -6880,175 +6885,179 @@ Object.defineProperty(exports, "parseComputedFormula", {
|
|
|
6880
6885
|
});
|
|
6881
6886
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
6882
6887
|
enumerable: true,
|
|
6883
|
-
get: function () { return
|
|
6888
|
+
get: function () { return chunkXTPYL6OM_js.AccessDeniedError; }
|
|
6884
6889
|
});
|
|
6885
6890
|
Object.defineProperty(exports, "AttributeInUseError", {
|
|
6886
6891
|
enumerable: true,
|
|
6887
|
-
get: function () { return
|
|
6892
|
+
get: function () { return chunkXTPYL6OM_js.AttributeInUseError; }
|
|
6888
6893
|
});
|
|
6889
6894
|
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
6890
6895
|
enumerable: true,
|
|
6891
|
-
get: function () { return
|
|
6896
|
+
get: function () { return chunkXTPYL6OM_js.AttributeNotFoundError; }
|
|
6892
6897
|
});
|
|
6893
6898
|
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
6894
6899
|
enumerable: true,
|
|
6895
|
-
get: function () { return
|
|
6900
|
+
get: function () { return chunkXTPYL6OM_js.ChangeTypeNotSupportedError; }
|
|
6896
6901
|
});
|
|
6897
6902
|
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
6898
6903
|
enumerable: true,
|
|
6899
|
-
get: function () { return
|
|
6904
|
+
get: function () { return chunkXTPYL6OM_js.ConcurrentModificationError; }
|
|
6900
6905
|
});
|
|
6901
6906
|
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
6902
6907
|
enumerable: true,
|
|
6903
|
-
get: function () { return
|
|
6908
|
+
get: function () { return chunkXTPYL6OM_js.DestructiveSyncNotAllowedError; }
|
|
6904
6909
|
});
|
|
6905
6910
|
Object.defineProperty(exports, "DuplicateError", {
|
|
6906
6911
|
enumerable: true,
|
|
6907
|
-
get: function () { return
|
|
6912
|
+
get: function () { return chunkXTPYL6OM_js.DuplicateError; }
|
|
6908
6913
|
});
|
|
6909
6914
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
6910
6915
|
enumerable: true,
|
|
6911
|
-
get: function () { return
|
|
6916
|
+
get: function () { return chunkXTPYL6OM_js.ForbiddenError; }
|
|
6912
6917
|
});
|
|
6913
6918
|
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
6914
6919
|
enumerable: true,
|
|
6915
|
-
get: function () { return
|
|
6920
|
+
get: function () { return chunkXTPYL6OM_js.MemoryNotFoundError; }
|
|
6916
6921
|
});
|
|
6917
6922
|
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
6918
6923
|
enumerable: true,
|
|
6919
|
-
get: function () { return
|
|
6924
|
+
get: function () { return chunkXTPYL6OM_js.MigrationTimeoutError; }
|
|
6920
6925
|
});
|
|
6921
6926
|
Object.defineProperty(exports, "NotFoundError", {
|
|
6922
6927
|
enumerable: true,
|
|
6923
|
-
get: function () { return
|
|
6928
|
+
get: function () { return chunkXTPYL6OM_js.NotFoundError; }
|
|
6924
6929
|
});
|
|
6925
6930
|
Object.defineProperty(exports, "NotImplementedError", {
|
|
6926
6931
|
enumerable: true,
|
|
6927
|
-
get: function () { return
|
|
6932
|
+
get: function () { return chunkXTPYL6OM_js.NotImplementedError; }
|
|
6928
6933
|
});
|
|
6929
6934
|
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
6930
6935
|
enumerable: true,
|
|
6931
|
-
get: function () { return
|
|
6936
|
+
get: function () { return chunkXTPYL6OM_js.ObjectNotFoundError; }
|
|
6932
6937
|
});
|
|
6933
6938
|
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
6934
6939
|
enumerable: true,
|
|
6935
|
-
get: function () { return
|
|
6940
|
+
get: function () { return chunkXTPYL6OM_js.ObjectReferencedError; }
|
|
6936
6941
|
});
|
|
6937
6942
|
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
6938
6943
|
enumerable: true,
|
|
6939
|
-
get: function () { return
|
|
6944
|
+
get: function () { return chunkXTPYL6OM_js.OrphanSystemAttributeError; }
|
|
6940
6945
|
});
|
|
6941
6946
|
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
6942
6947
|
enumerable: true,
|
|
6943
|
-
get: function () { return
|
|
6948
|
+
get: function () { return chunkXTPYL6OM_js.ProtectedResourceError; }
|
|
6944
6949
|
});
|
|
6945
6950
|
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
6946
6951
|
enumerable: true,
|
|
6947
|
-
get: function () { return
|
|
6952
|
+
get: function () { return chunkXTPYL6OM_js.ProtectedRoleError; }
|
|
6948
6953
|
});
|
|
6949
6954
|
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
6950
6955
|
enumerable: true,
|
|
6951
|
-
get: function () { return
|
|
6956
|
+
get: function () { return chunkXTPYL6OM_js.RecordNotFoundError; }
|
|
6952
6957
|
});
|
|
6953
6958
|
Object.defineProperty(exports, "RecordReferencedError", {
|
|
6954
6959
|
enumerable: true,
|
|
6955
|
-
get: function () { return
|
|
6960
|
+
get: function () { return chunkXTPYL6OM_js.RecordReferencedError; }
|
|
6956
6961
|
});
|
|
6957
6962
|
Object.defineProperty(exports, "RepositoryError", {
|
|
6958
6963
|
enumerable: true,
|
|
6959
|
-
get: function () { return
|
|
6964
|
+
get: function () { return chunkXTPYL6OM_js.RepositoryError; }
|
|
6960
6965
|
});
|
|
6961
6966
|
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
6962
6967
|
enumerable: true,
|
|
6963
|
-
get: function () { return
|
|
6968
|
+
get: function () { return chunkXTPYL6OM_js.RoleNotFoundError; }
|
|
6964
6969
|
});
|
|
6965
6970
|
Object.defineProperty(exports, "SchemaError", {
|
|
6966
6971
|
enumerable: true,
|
|
6967
|
-
get: function () { return
|
|
6972
|
+
get: function () { return chunkXTPYL6OM_js.SchemaError; }
|
|
6968
6973
|
});
|
|
6969
6974
|
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
6970
6975
|
enumerable: true,
|
|
6971
|
-
get: function () { return
|
|
6976
|
+
get: function () { return chunkXTPYL6OM_js.SchemaErrorCode; }
|
|
6977
|
+
});
|
|
6978
|
+
Object.defineProperty(exports, "SearchBackendError", {
|
|
6979
|
+
enumerable: true,
|
|
6980
|
+
get: function () { return chunkXTPYL6OM_js.SearchBackendError; }
|
|
6972
6981
|
});
|
|
6973
6982
|
Object.defineProperty(exports, "StorageError", {
|
|
6974
6983
|
enumerable: true,
|
|
6975
|
-
get: function () { return
|
|
6984
|
+
get: function () { return chunkXTPYL6OM_js.StorageError; }
|
|
6976
6985
|
});
|
|
6977
6986
|
Object.defineProperty(exports, "SyncCascadeError", {
|
|
6978
6987
|
enumerable: true,
|
|
6979
|
-
get: function () { return
|
|
6988
|
+
get: function () { return chunkXTPYL6OM_js.SyncCascadeError; }
|
|
6980
6989
|
});
|
|
6981
6990
|
Object.defineProperty(exports, "SyncConflictError", {
|
|
6982
6991
|
enumerable: true,
|
|
6983
|
-
get: function () { return
|
|
6992
|
+
get: function () { return chunkXTPYL6OM_js.SyncConflictError; }
|
|
6984
6993
|
});
|
|
6985
6994
|
Object.defineProperty(exports, "SyncError", {
|
|
6986
6995
|
enumerable: true,
|
|
6987
|
-
get: function () { return
|
|
6996
|
+
get: function () { return chunkXTPYL6OM_js.SyncError; }
|
|
6988
6997
|
});
|
|
6989
6998
|
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
6990
6999
|
enumerable: true,
|
|
6991
|
-
get: function () { return
|
|
7000
|
+
get: function () { return chunkXTPYL6OM_js.SystemEntityImmutableError; }
|
|
6992
7001
|
});
|
|
6993
7002
|
Object.defineProperty(exports, "ValidationError", {
|
|
6994
7003
|
enumerable: true,
|
|
6995
|
-
get: function () { return
|
|
7004
|
+
get: function () { return chunkXTPYL6OM_js.ValidationError; }
|
|
6996
7005
|
});
|
|
6997
7006
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
6998
7007
|
enumerable: true,
|
|
6999
|
-
get: function () { return
|
|
7008
|
+
get: function () { return chunkXTPYL6OM_js.computeRecordStatus; }
|
|
7000
7009
|
});
|
|
7001
7010
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
7002
7011
|
enumerable: true,
|
|
7003
|
-
get: function () { return
|
|
7012
|
+
get: function () { return chunkXTPYL6OM_js.createFormAttributeValidator; }
|
|
7004
7013
|
});
|
|
7005
7014
|
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
7006
7015
|
enumerable: true,
|
|
7007
|
-
get: function () { return
|
|
7016
|
+
get: function () { return chunkXTPYL6OM_js.isAttributeInUseError; }
|
|
7008
7017
|
});
|
|
7009
7018
|
Object.defineProperty(exports, "isNotFoundError", {
|
|
7010
7019
|
enumerable: true,
|
|
7011
|
-
get: function () { return
|
|
7020
|
+
get: function () { return chunkXTPYL6OM_js.isNotFoundError; }
|
|
7012
7021
|
});
|
|
7013
7022
|
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
7014
7023
|
enumerable: true,
|
|
7015
|
-
get: function () { return
|
|
7024
|
+
get: function () { return chunkXTPYL6OM_js.isObjectReferencedError; }
|
|
7016
7025
|
});
|
|
7017
7026
|
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
7018
7027
|
enumerable: true,
|
|
7019
|
-
get: function () { return
|
|
7028
|
+
get: function () { return chunkXTPYL6OM_js.isProtectedResourceError; }
|
|
7020
7029
|
});
|
|
7021
7030
|
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
7022
7031
|
enumerable: true,
|
|
7023
|
-
get: function () { return
|
|
7032
|
+
get: function () { return chunkXTPYL6OM_js.isRecordReferencedError; }
|
|
7024
7033
|
});
|
|
7025
7034
|
Object.defineProperty(exports, "isSchemaError", {
|
|
7026
7035
|
enumerable: true,
|
|
7027
|
-
get: function () { return
|
|
7036
|
+
get: function () { return chunkXTPYL6OM_js.isSchemaError; }
|
|
7028
7037
|
});
|
|
7029
7038
|
Object.defineProperty(exports, "isValidationError", {
|
|
7030
7039
|
enumerable: true,
|
|
7031
|
-
get: function () { return
|
|
7040
|
+
get: function () { return chunkXTPYL6OM_js.isValidationError; }
|
|
7032
7041
|
});
|
|
7033
7042
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
7034
7043
|
enumerable: true,
|
|
7035
|
-
get: function () { return
|
|
7044
|
+
get: function () { return chunkXTPYL6OM_js.rejectUnknownAttributesOrThrow; }
|
|
7036
7045
|
});
|
|
7037
7046
|
Object.defineProperty(exports, "validateDraft", {
|
|
7038
7047
|
enumerable: true,
|
|
7039
|
-
get: function () { return
|
|
7048
|
+
get: function () { return chunkXTPYL6OM_js.validateDraft; }
|
|
7040
7049
|
});
|
|
7041
7050
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
7042
7051
|
enumerable: true,
|
|
7043
|
-
get: function () { return
|
|
7052
|
+
get: function () { return chunkXTPYL6OM_js.validateDraftOrThrow; }
|
|
7044
7053
|
});
|
|
7045
7054
|
Object.defineProperty(exports, "validateObject", {
|
|
7046
7055
|
enumerable: true,
|
|
7047
|
-
get: function () { return
|
|
7056
|
+
get: function () { return chunkXTPYL6OM_js.validateObject; }
|
|
7048
7057
|
});
|
|
7049
7058
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
7050
7059
|
enumerable: true,
|
|
7051
|
-
get: function () { return
|
|
7060
|
+
get: function () { return chunkXTPYL6OM_js.validateObjectOrThrow; }
|
|
7052
7061
|
});
|
|
7053
7062
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
7054
7063
|
enumerable: true,
|
|
@@ -7116,8 +7125,11 @@ exports.PRESENTATION_PROPERTIES = PRESENTATION_PROPERTIES;
|
|
|
7116
7125
|
exports.QUALIFIED_SEPARATOR = QUALIFIED_SEPARATOR;
|
|
7117
7126
|
exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY;
|
|
7118
7127
|
exports.RESERVED_ATTRIBUTE_NAMES = RESERVED_ATTRIBUTE_NAMES;
|
|
7128
|
+
exports.RESERVED_OBJECT_NAMES = RESERVED_OBJECT_NAMES;
|
|
7119
7129
|
exports.RelationGroupBuilder = RelationGroupBuilder;
|
|
7120
7130
|
exports.RichtextTabConfig = RichtextTabConfig;
|
|
7131
|
+
exports.SKILL_OBJECT = SKILL_OBJECT;
|
|
7132
|
+
exports.SKILL_VIEW = SKILL_VIEW;
|
|
7121
7133
|
exports.STANDARD_SCHEMA_VENDOR = STANDARD_SCHEMA_VENDOR;
|
|
7122
7134
|
exports.SYSTEM_ATTRIBUTES = SYSTEM_ATTRIBUTES;
|
|
7123
7135
|
exports.SYSTEM_ATTRIBUTE_I18N_KEYS = SYSTEM_ATTRIBUTE_I18N_KEYS;
|
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY
|
|
|
3
3
|
import './chunk-SP3PNHYF.mjs';
|
|
4
4
|
import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
5
5
|
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
6
|
-
import { createObjectValidator, SchemaError, SchemaErrorCode,
|
|
7
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
6
|
+
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-5WYDO3ZB.mjs';
|
|
7
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-5WYDO3ZB.mjs';
|
|
8
8
|
import './chunk-OSSGN43B.mjs';
|
|
9
9
|
import './chunk-6I2R22CX.mjs';
|
|
10
10
|
import './chunk-UANQJ2GH.mjs';
|
|
@@ -524,6 +524,7 @@ var RESERVED_ATTRIBUTE_NAMES = [
|
|
|
524
524
|
"deletedBy",
|
|
525
525
|
"schemaVersion"
|
|
526
526
|
];
|
|
527
|
+
var RESERVED_OBJECT_NAMES = ["skill"];
|
|
527
528
|
|
|
528
529
|
// src/types/permissions.ts
|
|
529
530
|
var ALL_ACTIONS = ["read", "create", "update", "delete", "manage"];
|
|
@@ -4524,6 +4525,10 @@ Available objects: ${this.listNames().join(", ")}`
|
|
|
4524
4525
|
};
|
|
4525
4526
|
var registry = new NativeObjectRegistryClass();
|
|
4526
4527
|
|
|
4528
|
+
// src/native/skill.object.ts
|
|
4529
|
+
var SKILL_OBJECT = object({ name: "skill", label: "Skill" }).sealed().icon("sparkles").order(Number.MAX_SAFE_INTEGER).labelExpression("{{ displayName }}").attribute(text({ name: "name", label: "Name" }).required()).attribute(text({ name: "displayName", label: "Display Name" }).required()).attribute(text({ name: "description", label: "Description" }).multiline().required()).attribute(richtext({ name: "content", label: "Content" })).attribute(document({ name: "attachments", label: "Attachments" })).attribute(checkbox({ name: "alwaysOn", label: "Always on" })).attribute(checkbox({ name: "enabled", label: "Enabled" })).build();
|
|
4530
|
+
var SKILL_VIEW = detailView("skill-detail", "Skill").for("skill").default().sidePanel({ attributes: ["name", "displayName", "description", "alwaysOn", "enabled"] }).tab("content", "Content").richtext("content").done().tab("attachments", "Attachments").documents().done().build();
|
|
4531
|
+
|
|
4527
4532
|
// src/views/registry.ts
|
|
4528
4533
|
var ViewRegistry = class {
|
|
4529
4534
|
constructor() {
|
|
@@ -6843,4 +6848,4 @@ function validateQualifiedRule(rule, context) {
|
|
|
6843
6848
|
assertRelativeDateValue(rule);
|
|
6844
6849
|
}
|
|
6845
6850
|
|
|
6846
|
-
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RelationGroupBuilder, RichtextTabConfig, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
6851
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RelationGroupBuilder, RichtextTabConfig, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-BlMu1Nch.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.mjs';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-B-Y9kDoP.mjs';
|
|
5
|
+
import '../attributes-CUROLTVH.mjs';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.mjs';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-BKIuJHdj.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.js';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-DOn86mSK.js';
|
|
5
|
+
import '../attributes-BIngT-ky.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-PGERPYDR.js');
|
|
4
4
|
var chunkNSM2JPC3_js = require('../chunk-NSM2JPC3.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkXTPYL6OM_js = require('../chunk-XTPYL6OM.js');
|
|
6
6
|
require('../chunk-5WATIVCA.js');
|
|
7
7
|
require('../chunk-O44XVGHE.js');
|
|
8
8
|
require('../chunk-YIP5FJ5H.js');
|
|
@@ -27,31 +27,31 @@ Object.defineProperty(exports, "parseAttributeConfig", {
|
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkXTPYL6OM_js.computeRecordStatus; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXTPYL6OM_js.createFormAttributeValidator; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXTPYL6OM_js.rejectUnknownAttributesOrThrow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "validateDraft", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkXTPYL6OM_js.validateDraft; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkXTPYL6OM_js.validateDraftOrThrow; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "validateObject", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkXTPYL6OM_js.validateObject; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkXTPYL6OM_js.validateObjectOrThrow; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
57
57
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-SP3PNHYF.mjs';
|
|
2
2
|
export { parseAttributeConfig } from '../chunk-AAXJJNY6.mjs';
|
|
3
|
-
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
3
|
+
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-5WYDO3ZB.mjs';
|
|
4
4
|
import '../chunk-OSSGN43B.mjs';
|
|
5
5
|
import '../chunk-6I2R22CX.mjs';
|
|
6
6
|
import '../chunk-UANQJ2GH.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-CUROLTVH.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BlMu1Nch.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-BIngT-ky.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BKIuJHdj.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-CUROLTVH.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BlMu1Nch.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-BIngT-ky.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BKIuJHdj.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-CUROLTVH.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BlMu1Nch.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-BIngT-ky.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BKIuJHdj.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-CUROLTVH.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BlMu1Nch.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|