@stndrds/schema 1.0.0-alpha.89 → 1.0.0-alpha.90
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/{chunk-JUVFK6XD.mjs → chunk-4362R5F2.mjs} +40 -1
- package/dist/{chunk-ZW4N6FV7.js → chunk-7QUI6TSO.js} +40 -1
- package/dist/index.d.mts +6060 -1182
- package/dist/index.d.ts +6060 -1182
- package/dist/index.js +4896 -656
- package/dist/index.mjs +4851 -611
- package/dist/utils.js +0 -1
- package/dist/utils.mjs +0 -1
- package/dist/validation/validators.d.mts +1 -1
- package/dist/validation/validators.d.ts +1 -1
- package/dist/validation/validators.js +2 -3
- package/dist/validation/validators.mjs +1 -2
- package/dist/{validators-CJmtOk1a.d.mts → validators-BFgj3O3w.d.mts} +5 -23
- package/dist/{validators-pv_b6bI_.d.ts → validators-C7i6EpQK.d.ts} +5 -23
- package/package.json +2 -10
- package/dist/chunk-3RG5ZIWI.js +0 -10
- package/dist/chunk-7WT53FJ4.js +0 -63
- package/dist/chunk-AGBBH7PL.mjs +0 -63
- package/dist/chunk-JBHONBEV.mjs +0 -19039
- package/dist/chunk-UVAA77R4.js +0 -19039
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/default-roles-5K3GHJTS.js +0 -23
- package/dist/default-roles-6D3HQ3DQ.mjs +0 -23
- package/dist/runtime-D7zd4qmo.d.mts +0 -12536
- package/dist/runtime-Di0FfOKV.d.ts +0 -12536
- package/dist/runtime.d.mts +0 -6
- package/dist/runtime.d.ts +0 -6
- package/dist/runtime.js +0 -319
- package/dist/runtime.mjs +0 -319
package/dist/utils.js
CHANGED
package/dist/utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export {
|
|
2
|
+
export { Q as DEFAULT_VALIDATION_MESSAGES, ac as ValidationMessages, ad as ValidationResult, ae as attributeConfigSchemas, af as checkboxConfigSchema, ag as computeRecordStatus, ah as createAttributeValidator, ai as createCheckboxValidator, aj as createCurrencyValidator, ak as createDateValidator, al as createDraftValidator, am as createFileValidator, an as createFormAttributeValidator, ao as createFormulaValidator, ap as createLocationValidator, aq as createMultiRelationValidator, ar as createMultiselectValidator, as as createNumberValidator, at as createObjectValidator, au as createPhoneValidator, av as createRatingValidator, aw as createRelationValidator, ax as createRichtextValidator, ay as createRollupValidator, az as createSelectValidator, aA as createSingleRelationValidator, aB as createStatusValidator, aC as createTextAreaValidator, aD as createTextValidator, aE as createUserValidator, aF as currencyConfigSchema, aG as dateConfigSchema, aH as documentConfigSchema, aI as fileConfigSchema, aJ as formatZodErrors, aK as formulaConfigSchema, aL as getAttributeConfigSchema, aM as getMissingRequiredAttributes, aR as isRecordComplete, aT as locationConfigSchema, aU as multiselectConfigSchema, aV as numberConfigSchema, aW as parseAttributeConfig, aX as phoneConfigSchema, aY as ratingConfigSchema, aZ as relationConfigSchema, a_ as richtextConfigSchema, a$ as rollupConfigSchema, b0 as safeParseAttributeConfig, b1 as selectConfigSchema, b2 as statusConfigSchema, b3 as textConfigSchema, b4 as textareaConfigSchema, b5 as userConfigSchema, b6 as validateAttribute, b7 as validateAttributeConfig, b8 as validateDraft, b9 as validateDraftOrThrow, ba as validateObject, bb as validateObjectOrThrow } from '../validators-BFgj3O3w.mjs';
|
|
3
3
|
import '@stndrds/constants';
|
|
4
4
|
import '../utils.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export {
|
|
2
|
+
export { Q as DEFAULT_VALIDATION_MESSAGES, ac as ValidationMessages, ad as ValidationResult, ae as attributeConfigSchemas, af as checkboxConfigSchema, ag as computeRecordStatus, ah as createAttributeValidator, ai as createCheckboxValidator, aj as createCurrencyValidator, ak as createDateValidator, al as createDraftValidator, am as createFileValidator, an as createFormAttributeValidator, ao as createFormulaValidator, ap as createLocationValidator, aq as createMultiRelationValidator, ar as createMultiselectValidator, as as createNumberValidator, at as createObjectValidator, au as createPhoneValidator, av as createRatingValidator, aw as createRelationValidator, ax as createRichtextValidator, ay as createRollupValidator, az as createSelectValidator, aA as createSingleRelationValidator, aB as createStatusValidator, aC as createTextAreaValidator, aD as createTextValidator, aE as createUserValidator, aF as currencyConfigSchema, aG as dateConfigSchema, aH as documentConfigSchema, aI as fileConfigSchema, aJ as formatZodErrors, aK as formulaConfigSchema, aL as getAttributeConfigSchema, aM as getMissingRequiredAttributes, aR as isRecordComplete, aT as locationConfigSchema, aU as multiselectConfigSchema, aV as numberConfigSchema, aW as parseAttributeConfig, aX as phoneConfigSchema, aY as ratingConfigSchema, aZ as relationConfigSchema, a_ as richtextConfigSchema, a$ as rollupConfigSchema, b0 as safeParseAttributeConfig, b1 as selectConfigSchema, b2 as statusConfigSchema, b3 as textConfigSchema, b4 as textareaConfigSchema, b5 as userConfigSchema, b6 as validateAttribute, b7 as validateAttributeConfig, b8 as validateDraft, b9 as validateDraftOrThrow, ba as validateObject, bb as validateObjectOrThrow } from '../validators-C7i6EpQK.js';
|
|
3
3
|
import '@stndrds/constants';
|
|
4
4
|
import '../utils.js';
|
|
@@ -57,8 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
61
|
-
require('../chunk-3RG5ZIWI.js');
|
|
60
|
+
var _chunk7QUI6TSOjs = require('../chunk-7QUI6TSO.js');
|
|
62
61
|
|
|
63
62
|
|
|
64
63
|
|
|
@@ -118,4 +117,4 @@ require('../chunk-3RG5ZIWI.js');
|
|
|
118
117
|
|
|
119
118
|
|
|
120
119
|
|
|
121
|
-
exports.DEFAULT_VALIDATION_MESSAGES =
|
|
120
|
+
exports.DEFAULT_VALIDATION_MESSAGES = _chunk7QUI6TSOjs.DEFAULT_VALIDATION_MESSAGES; exports.attributeConfigSchemas = _chunk7QUI6TSOjs.attributeConfigSchemas; exports.checkboxConfigSchema = _chunk7QUI6TSOjs.checkboxConfigSchema; exports.computeRecordStatus = _chunk7QUI6TSOjs.computeRecordStatus; exports.createAttributeValidator = _chunk7QUI6TSOjs.createAttributeValidator; exports.createCheckboxValidator = _chunk7QUI6TSOjs.createCheckboxValidator; exports.createCurrencyValidator = _chunk7QUI6TSOjs.createCurrencyValidator; exports.createDateValidator = _chunk7QUI6TSOjs.createDateValidator; exports.createDraftValidator = _chunk7QUI6TSOjs.createDraftValidator; exports.createFileValidator = _chunk7QUI6TSOjs.createFileValidator; exports.createFormAttributeValidator = _chunk7QUI6TSOjs.createFormAttributeValidator; exports.createFormulaValidator = _chunk7QUI6TSOjs.createFormulaValidator; exports.createLocationValidator = _chunk7QUI6TSOjs.createLocationValidator; exports.createMultiRelationValidator = _chunk7QUI6TSOjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunk7QUI6TSOjs.createMultiselectValidator; exports.createNumberValidator = _chunk7QUI6TSOjs.createNumberValidator; exports.createObjectValidator = _chunk7QUI6TSOjs.createObjectValidator; exports.createPhoneValidator = _chunk7QUI6TSOjs.createPhoneValidator; exports.createRatingValidator = _chunk7QUI6TSOjs.createRatingValidator; exports.createRelationValidator = _chunk7QUI6TSOjs.createRelationValidator; exports.createRichtextValidator = _chunk7QUI6TSOjs.createRichtextValidator; exports.createRollupValidator = _chunk7QUI6TSOjs.createRollupValidator; exports.createSelectValidator = _chunk7QUI6TSOjs.createSelectValidator; exports.createSingleRelationValidator = _chunk7QUI6TSOjs.createSingleRelationValidator; exports.createStatusValidator = _chunk7QUI6TSOjs.createStatusValidator; exports.createTextAreaValidator = _chunk7QUI6TSOjs.createTextAreaValidator; exports.createTextValidator = _chunk7QUI6TSOjs.createTextValidator; exports.createUserValidator = _chunk7QUI6TSOjs.createUserValidator; exports.currencyConfigSchema = _chunk7QUI6TSOjs.currencyConfigSchema; exports.dateConfigSchema = _chunk7QUI6TSOjs.dateConfigSchema; exports.documentConfigSchema = _chunk7QUI6TSOjs.documentConfigSchema; exports.fileConfigSchema = _chunk7QUI6TSOjs.fileConfigSchema; exports.formatZodErrors = _chunk7QUI6TSOjs.formatZodErrors; exports.formulaConfigSchema = _chunk7QUI6TSOjs.formulaConfigSchema; exports.getAttributeConfigSchema = _chunk7QUI6TSOjs.getAttributeConfigSchema; exports.getMissingRequiredAttributes = _chunk7QUI6TSOjs.getMissingRequiredAttributes; exports.isRecordComplete = _chunk7QUI6TSOjs.isRecordComplete; exports.locationConfigSchema = _chunk7QUI6TSOjs.locationConfigSchema; exports.multiselectConfigSchema = _chunk7QUI6TSOjs.multiselectConfigSchema; exports.numberConfigSchema = _chunk7QUI6TSOjs.numberConfigSchema; exports.parseAttributeConfig = _chunk7QUI6TSOjs.parseAttributeConfig; exports.phoneConfigSchema = _chunk7QUI6TSOjs.phoneConfigSchema; exports.ratingConfigSchema = _chunk7QUI6TSOjs.ratingConfigSchema; exports.relationConfigSchema = _chunk7QUI6TSOjs.relationConfigSchema; exports.richtextConfigSchema = _chunk7QUI6TSOjs.richtextConfigSchema; exports.rollupConfigSchema = _chunk7QUI6TSOjs.rollupConfigSchema; exports.safeParseAttributeConfig = _chunk7QUI6TSOjs.safeParseAttributeConfig; exports.selectConfigSchema = _chunk7QUI6TSOjs.selectConfigSchema; exports.statusConfigSchema = _chunk7QUI6TSOjs.statusConfigSchema; exports.textConfigSchema = _chunk7QUI6TSOjs.textConfigSchema; exports.textareaConfigSchema = _chunk7QUI6TSOjs.textareaConfigSchema; exports.userConfigSchema = _chunk7QUI6TSOjs.userConfigSchema; exports.validateAttribute = _chunk7QUI6TSOjs.validateAttribute; exports.validateAttributeConfig = _chunk7QUI6TSOjs.validateAttributeConfig; exports.validateDraft = _chunk7QUI6TSOjs.validateDraft; exports.validateDraftOrThrow = _chunk7QUI6TSOjs.validateDraftOrThrow; exports.validateObject = _chunk7QUI6TSOjs.validateObject; exports.validateObjectOrThrow = _chunk7QUI6TSOjs.validateObjectOrThrow;
|
|
@@ -679,15 +679,6 @@ interface Timestamps {
|
|
|
679
679
|
createdAt: Date;
|
|
680
680
|
updatedAt: Date;
|
|
681
681
|
}
|
|
682
|
-
/**
|
|
683
|
-
* Sharing mode for multi-tenant object access.
|
|
684
|
-
*
|
|
685
|
-
* - `private`: Object is only visible to its owner tenant (default)
|
|
686
|
-
* - `shared`: Object is readable by all tenants, but only writable by the owner tenant
|
|
687
|
-
*
|
|
688
|
-
* Records inherit the sharing mode of their parent object.
|
|
689
|
-
*/
|
|
690
|
-
type SharingMode = "private" | "shared";
|
|
691
682
|
/**
|
|
692
683
|
* Object definition - Represents a database table/entity
|
|
693
684
|
*/
|
|
@@ -719,15 +710,6 @@ interface ObjectDefinition {
|
|
|
719
710
|
labelExpression: string;
|
|
720
711
|
attributes: Attribute[];
|
|
721
712
|
system?: boolean;
|
|
722
|
-
/**
|
|
723
|
-
* Sharing mode for multi-tenant access.
|
|
724
|
-
* - `private`: Only visible to the owner tenant (default)
|
|
725
|
-
* - `shared`: Readable by all tenants, writable only by the owner
|
|
726
|
-
*
|
|
727
|
-
* Records inherit the sharing mode of their parent object.
|
|
728
|
-
* @default "private"
|
|
729
|
-
*/
|
|
730
|
-
sharingMode?: SharingMode;
|
|
731
713
|
metadata?: Record<string, unknown>;
|
|
732
714
|
}
|
|
733
715
|
/**
|
|
@@ -1047,8 +1029,8 @@ declare const statusConfigSchema: z.ZodObject<{
|
|
|
1047
1029
|
icon: z.ZodOptional<z.ZodString>;
|
|
1048
1030
|
description: z.ZodOptional<z.ZodString>;
|
|
1049
1031
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1050
|
-
in_progress: "in_progress";
|
|
1051
1032
|
idle: "idle";
|
|
1033
|
+
in_progress: "in_progress";
|
|
1052
1034
|
finished: "finished";
|
|
1053
1035
|
}>>;
|
|
1054
1036
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,8 +1090,8 @@ declare const selectConfigSchema: z.ZodObject<{
|
|
|
1108
1090
|
icon: z.ZodOptional<z.ZodString>;
|
|
1109
1091
|
description: z.ZodOptional<z.ZodString>;
|
|
1110
1092
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1111
|
-
in_progress: "in_progress";
|
|
1112
1093
|
idle: "idle";
|
|
1094
|
+
in_progress: "in_progress";
|
|
1113
1095
|
finished: "finished";
|
|
1114
1096
|
}>>;
|
|
1115
1097
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1137,8 +1119,8 @@ declare const multiselectConfigSchema: z.ZodObject<{
|
|
|
1137
1119
|
icon: z.ZodOptional<z.ZodString>;
|
|
1138
1120
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
1121
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1140
|
-
in_progress: "in_progress";
|
|
1141
1122
|
idle: "idle";
|
|
1123
|
+
in_progress: "in_progress";
|
|
1142
1124
|
finished: "finished";
|
|
1143
1125
|
}>>;
|
|
1144
1126
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1292,8 +1274,8 @@ declare const rollupConfigSchema: z.ZodObject<{
|
|
|
1292
1274
|
icon: z.ZodOptional<z.ZodString>;
|
|
1293
1275
|
description: z.ZodOptional<z.ZodString>;
|
|
1294
1276
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1295
|
-
in_progress: "in_progress";
|
|
1296
1277
|
idle: "idle";
|
|
1278
|
+
in_progress: "in_progress";
|
|
1297
1279
|
finished: "finished";
|
|
1298
1280
|
}>>;
|
|
1299
1281
|
}, z.core.$strip>>>;
|
|
@@ -1591,4 +1573,4 @@ declare function isRecordComplete(objectDef: ObjectDefinition, data: Record<stri
|
|
|
1591
1573
|
*/
|
|
1592
1574
|
declare function computeRecordStatus(objectDef: ObjectDefinition, data: Record<string, unknown>): CompletionStatus;
|
|
1593
1575
|
|
|
1594
|
-
export {
|
|
1576
|
+
export { NON_SORTABLE_TYPES as $, type Attribute as A, type BilateralConfig as B, type CompletionStatus as C, type DateAttribute as D, type FlagLevel as E, type FormulaAttribute as F, type FeatureFlagsRepository as G, type StaticFlagDefault as H, type ResolvedFlag as I, type AttributeGroup as J, type BaseAttribute as K, type LocationGranularity as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectRecord as O, type Phone as P, DEFAULT_VALIDATION_MESSAGES as Q, type RollupAttribute as R, type StatusAttribute as S, type Timestamps as T, type UserAttribute as U, type DateFormat as V, type DateValue as W, FORBIDDEN_PROPERTY_TYPES as X, type FeatureFlagsConfig as Y, type FlagOverride as Z, type ForbiddenPropertyType as _, type AttributeType as a, rollupConfigSchema as a$, type NumberUnit as a0, type ObjectAttribute as a1, type OptionPropertyAttribute as a2, type PropertyAttribute as a3, type PropertySchema as a4, type PropertyType as a5, RELATION_TARGET_ANY as a6, RESERVED_ATTRIBUTE_NAMES as a7, type ReservedAttributeName as a8, SYSTEM_FIELD_NAMES as a9, createSingleRelationValidator as aA, createStatusValidator as aB, createTextAreaValidator as aC, createTextValidator as aD, createUserValidator as aE, currencyConfigSchema as aF, dateConfigSchema as aG, documentConfigSchema as aH, fileConfigSchema as aI, formatZodErrors as aJ, formulaConfigSchema as aK, getAttributeConfigSchema as aL, getMissingRequiredAttributes as aM, hasOptions as aN, inferInverseCardinality as aO, isAttributeSortable as aP, isBilateralRelation as aQ, isRecordComplete as aR, isUniversalRelation as aS, locationConfigSchema as aT, multiselectConfigSchema as aU, numberConfigSchema as aV, parseAttributeConfig as aW, phoneConfigSchema as aX, ratingConfigSchema as aY, relationConfigSchema as aZ, richtextConfigSchema as a_, type StatusGroup as aa, type SystemFieldName as ab, type ValidationMessages as ac, type ValidationResult as ad, attributeConfigSchemas as ae, checkboxConfigSchema as af, computeRecordStatus as ag, createAttributeValidator as ah, createCheckboxValidator as ai, createCurrencyValidator as aj, createDateValidator as ak, createDraftValidator as al, createFileValidator as am, createFormAttributeValidator as an, createFormulaValidator as ao, createLocationValidator as ap, createMultiRelationValidator as aq, createMultiselectValidator as ar, createNumberValidator as as, createObjectValidator as at, createPhoneValidator as au, createRatingValidator as av, createRelationValidator as aw, createRichtextValidator as ax, createRollupValidator as ay, createSelectValidator as az, type Location as b, safeParseAttributeConfig as b0, selectConfigSchema as b1, statusConfigSchema as b2, textConfigSchema as b3, textareaConfigSchema as b4, userConfigSchema as b5, validateAttribute as b6, validateAttributeConfig as b7, validateDraft as b8, validateDraftOrThrow as b9, validateObject as ba, validateObjectOrThrow as bb, type SelectAttribute as c, type Currency as d, type DocumentAttribute as e, type FeatureGate as f, type TextAttribute as g, type TextAreaAttribute as h, type RichtextAttribute as i, type RichtextFeature as j, type CheckboxAttribute as k, type PhoneAttribute as l, type CurrencyAttribute as m, type Option as n, type LocationAttribute as o, type FileAttribute as p, type RelationAttribute as q, type RatingAttribute as r, type SingleRelationAttribute as s, type MultiRelationAttribute as t, type RelationTarget as u, type FormulaReturnType as v, type RollupFunction as w, type ObjectDefinition as x, type FlagValueType as y, type FeatureFlagDefinition as z };
|
|
@@ -679,15 +679,6 @@ interface Timestamps {
|
|
|
679
679
|
createdAt: Date;
|
|
680
680
|
updatedAt: Date;
|
|
681
681
|
}
|
|
682
|
-
/**
|
|
683
|
-
* Sharing mode for multi-tenant object access.
|
|
684
|
-
*
|
|
685
|
-
* - `private`: Object is only visible to its owner tenant (default)
|
|
686
|
-
* - `shared`: Object is readable by all tenants, but only writable by the owner tenant
|
|
687
|
-
*
|
|
688
|
-
* Records inherit the sharing mode of their parent object.
|
|
689
|
-
*/
|
|
690
|
-
type SharingMode = "private" | "shared";
|
|
691
682
|
/**
|
|
692
683
|
* Object definition - Represents a database table/entity
|
|
693
684
|
*/
|
|
@@ -719,15 +710,6 @@ interface ObjectDefinition {
|
|
|
719
710
|
labelExpression: string;
|
|
720
711
|
attributes: Attribute[];
|
|
721
712
|
system?: boolean;
|
|
722
|
-
/**
|
|
723
|
-
* Sharing mode for multi-tenant access.
|
|
724
|
-
* - `private`: Only visible to the owner tenant (default)
|
|
725
|
-
* - `shared`: Readable by all tenants, writable only by the owner
|
|
726
|
-
*
|
|
727
|
-
* Records inherit the sharing mode of their parent object.
|
|
728
|
-
* @default "private"
|
|
729
|
-
*/
|
|
730
|
-
sharingMode?: SharingMode;
|
|
731
713
|
metadata?: Record<string, unknown>;
|
|
732
714
|
}
|
|
733
715
|
/**
|
|
@@ -1047,8 +1029,8 @@ declare const statusConfigSchema: z.ZodObject<{
|
|
|
1047
1029
|
icon: z.ZodOptional<z.ZodString>;
|
|
1048
1030
|
description: z.ZodOptional<z.ZodString>;
|
|
1049
1031
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1050
|
-
in_progress: "in_progress";
|
|
1051
1032
|
idle: "idle";
|
|
1033
|
+
in_progress: "in_progress";
|
|
1052
1034
|
finished: "finished";
|
|
1053
1035
|
}>>;
|
|
1054
1036
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,8 +1090,8 @@ declare const selectConfigSchema: z.ZodObject<{
|
|
|
1108
1090
|
icon: z.ZodOptional<z.ZodString>;
|
|
1109
1091
|
description: z.ZodOptional<z.ZodString>;
|
|
1110
1092
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1111
|
-
in_progress: "in_progress";
|
|
1112
1093
|
idle: "idle";
|
|
1094
|
+
in_progress: "in_progress";
|
|
1113
1095
|
finished: "finished";
|
|
1114
1096
|
}>>;
|
|
1115
1097
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1137,8 +1119,8 @@ declare const multiselectConfigSchema: z.ZodObject<{
|
|
|
1137
1119
|
icon: z.ZodOptional<z.ZodString>;
|
|
1138
1120
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
1121
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1140
|
-
in_progress: "in_progress";
|
|
1141
1122
|
idle: "idle";
|
|
1123
|
+
in_progress: "in_progress";
|
|
1142
1124
|
finished: "finished";
|
|
1143
1125
|
}>>;
|
|
1144
1126
|
inverse: z.ZodOptional<z.ZodString>;
|
|
@@ -1292,8 +1274,8 @@ declare const rollupConfigSchema: z.ZodObject<{
|
|
|
1292
1274
|
icon: z.ZodOptional<z.ZodString>;
|
|
1293
1275
|
description: z.ZodOptional<z.ZodString>;
|
|
1294
1276
|
group: z.ZodOptional<z.ZodEnum<{
|
|
1295
|
-
in_progress: "in_progress";
|
|
1296
1277
|
idle: "idle";
|
|
1278
|
+
in_progress: "in_progress";
|
|
1297
1279
|
finished: "finished";
|
|
1298
1280
|
}>>;
|
|
1299
1281
|
}, z.core.$strip>>>;
|
|
@@ -1591,4 +1573,4 @@ declare function isRecordComplete(objectDef: ObjectDefinition, data: Record<stri
|
|
|
1591
1573
|
*/
|
|
1592
1574
|
declare function computeRecordStatus(objectDef: ObjectDefinition, data: Record<string, unknown>): CompletionStatus;
|
|
1593
1575
|
|
|
1594
|
-
export {
|
|
1576
|
+
export { NON_SORTABLE_TYPES as $, type Attribute as A, type BilateralConfig as B, type CompletionStatus as C, type DateAttribute as D, type FlagLevel as E, type FormulaAttribute as F, type FeatureFlagsRepository as G, type StaticFlagDefault as H, type ResolvedFlag as I, type AttributeGroup as J, type BaseAttribute as K, type LocationGranularity as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectRecord as O, type Phone as P, DEFAULT_VALIDATION_MESSAGES as Q, type RollupAttribute as R, type StatusAttribute as S, type Timestamps as T, type UserAttribute as U, type DateFormat as V, type DateValue as W, FORBIDDEN_PROPERTY_TYPES as X, type FeatureFlagsConfig as Y, type FlagOverride as Z, type ForbiddenPropertyType as _, type AttributeType as a, rollupConfigSchema as a$, type NumberUnit as a0, type ObjectAttribute as a1, type OptionPropertyAttribute as a2, type PropertyAttribute as a3, type PropertySchema as a4, type PropertyType as a5, RELATION_TARGET_ANY as a6, RESERVED_ATTRIBUTE_NAMES as a7, type ReservedAttributeName as a8, SYSTEM_FIELD_NAMES as a9, createSingleRelationValidator as aA, createStatusValidator as aB, createTextAreaValidator as aC, createTextValidator as aD, createUserValidator as aE, currencyConfigSchema as aF, dateConfigSchema as aG, documentConfigSchema as aH, fileConfigSchema as aI, formatZodErrors as aJ, formulaConfigSchema as aK, getAttributeConfigSchema as aL, getMissingRequiredAttributes as aM, hasOptions as aN, inferInverseCardinality as aO, isAttributeSortable as aP, isBilateralRelation as aQ, isRecordComplete as aR, isUniversalRelation as aS, locationConfigSchema as aT, multiselectConfigSchema as aU, numberConfigSchema as aV, parseAttributeConfig as aW, phoneConfigSchema as aX, ratingConfigSchema as aY, relationConfigSchema as aZ, richtextConfigSchema as a_, type StatusGroup as aa, type SystemFieldName as ab, type ValidationMessages as ac, type ValidationResult as ad, attributeConfigSchemas as ae, checkboxConfigSchema as af, computeRecordStatus as ag, createAttributeValidator as ah, createCheckboxValidator as ai, createCurrencyValidator as aj, createDateValidator as ak, createDraftValidator as al, createFileValidator as am, createFormAttributeValidator as an, createFormulaValidator as ao, createLocationValidator as ap, createMultiRelationValidator as aq, createMultiselectValidator as ar, createNumberValidator as as, createObjectValidator as at, createPhoneValidator as au, createRatingValidator as av, createRelationValidator as aw, createRichtextValidator as ax, createRollupValidator as ay, createSelectValidator as az, type Location as b, safeParseAttributeConfig as b0, selectConfigSchema as b1, statusConfigSchema as b2, textConfigSchema as b3, textareaConfigSchema as b4, userConfigSchema as b5, validateAttribute as b6, validateAttributeConfig as b7, validateDraft as b8, validateDraftOrThrow as b9, validateObject as ba, validateObjectOrThrow as bb, type SelectAttribute as c, type Currency as d, type DocumentAttribute as e, type FeatureGate as f, type TextAttribute as g, type TextAreaAttribute as h, type RichtextAttribute as i, type RichtextFeature as j, type CheckboxAttribute as k, type PhoneAttribute as l, type CurrencyAttribute as m, type Option as n, type LocationAttribute as o, type FileAttribute as p, type RelationAttribute as q, type RatingAttribute as r, type SingleRelationAttribute as s, type MultiRelationAttribute as t, type RelationTarget as u, type FormulaReturnType as v, type RollupFunction as w, type ObjectDefinition as x, type FlagValueType as y, type FeatureFlagDefinition as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.90",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
-
"./runtime": {
|
|
15
|
-
"types": "./dist/runtime.d.ts",
|
|
16
|
-
"import": "./dist/runtime.mjs",
|
|
17
|
-
"require": "./dist/runtime.js"
|
|
18
|
-
},
|
|
19
14
|
"./utils": {
|
|
20
15
|
"types": "./dist/utils.d.ts",
|
|
21
16
|
"import": "./dist/utils.mjs",
|
|
@@ -31,12 +26,9 @@
|
|
|
31
26
|
"dist"
|
|
32
27
|
],
|
|
33
28
|
"dependencies": {
|
|
34
|
-
"expr-eval": "^2.0.2",
|
|
35
|
-
"jose": "^6.1.3",
|
|
36
29
|
"libphonenumber-js": "^1.12.31",
|
|
37
|
-
"pdf-lib": "^1.17.1",
|
|
38
30
|
"zod": "^4.2.1",
|
|
39
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
31
|
+
"@stndrds/constants": "1.0.0-alpha.90"
|
|
40
32
|
},
|
|
41
33
|
"devDependencies": {
|
|
42
34
|
"@types/node": "^25.0.3",
|
package/dist/chunk-3RG5ZIWI.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
-
}) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.__require = __require;
|
package/dist/chunk-7WT53FJ4.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/constants/default-roles.ts
|
|
2
|
-
var SYSTEM_RESOURCES = {
|
|
3
|
-
/** User profiles, invitations, roles and permissions management */
|
|
4
|
-
PEOPLE: "people",
|
|
5
|
-
/** Tenant settings, audit logs, workflow execution, document generation */
|
|
6
|
-
WORKSPACE: "workspace",
|
|
7
|
-
/** Object definitions, attributes, views, workflow definitions */
|
|
8
|
-
ARCHITECT: "architect"
|
|
9
|
-
};
|
|
10
|
-
var ALL_SYSTEM_RESOURCES = [
|
|
11
|
-
SYSTEM_RESOURCES.PEOPLE,
|
|
12
|
-
SYSTEM_RESOURCES.WORKSPACE,
|
|
13
|
-
SYSTEM_RESOURCES.ARCHITECT
|
|
14
|
-
];
|
|
15
|
-
var SYSTEM_RESOURCE_LABELS = {
|
|
16
|
-
people: "People",
|
|
17
|
-
workspace: "Workspace",
|
|
18
|
-
architect: "Architect"
|
|
19
|
-
};
|
|
20
|
-
var DEFAULT_ROLES = {
|
|
21
|
-
/** Full platform access - can manage everything */
|
|
22
|
-
OWNER: "owner",
|
|
23
|
-
/** Standard user - can work with business data and view people */
|
|
24
|
-
MEMBER: "member"
|
|
25
|
-
};
|
|
26
|
-
var DEFAULT_ROLE_LABELS = {
|
|
27
|
-
owner: "Owner",
|
|
28
|
-
member: "Member"
|
|
29
|
-
};
|
|
30
|
-
var DEFAULT_ROLE_DESCRIPTIONS = {
|
|
31
|
-
owner: "Full access to all platform features and data",
|
|
32
|
-
member: "Can view, create, edit and delete business data"
|
|
33
|
-
};
|
|
34
|
-
var ALL_ACTIONS = ["read", "create", "update", "delete"];
|
|
35
|
-
var DEFAULT_ROLE_PERMISSIONS = {
|
|
36
|
-
owner: {
|
|
37
|
-
system: [{ target: "*", actions: ALL_ACTIONS }],
|
|
38
|
-
object: [{ target: "*", actions: ALL_ACTIONS }]
|
|
39
|
-
},
|
|
40
|
-
member: {
|
|
41
|
-
system: [
|
|
42
|
-
{ target: "people", actions: ["read"] },
|
|
43
|
-
{ target: "workspace", actions: ["read"] }
|
|
44
|
-
],
|
|
45
|
-
object: [{ target: "*", actions: ALL_ACTIONS }]
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var DEFAULT_ROLE_FOR_NEW_USERS = "member";
|
|
49
|
-
function isDefaultRole(roleName) {
|
|
50
|
-
return Object.values(DEFAULT_ROLES).includes(roleName);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
exports.SYSTEM_RESOURCES = SYSTEM_RESOURCES; exports.ALL_SYSTEM_RESOURCES = ALL_SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = SYSTEM_RESOURCE_LABELS; exports.DEFAULT_ROLES = DEFAULT_ROLES; exports.DEFAULT_ROLE_LABELS = DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_DESCRIPTIONS = DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_PERMISSIONS = DEFAULT_ROLE_PERMISSIONS; exports.DEFAULT_ROLE_FOR_NEW_USERS = DEFAULT_ROLE_FOR_NEW_USERS; exports.isDefaultRole = isDefaultRole;
|
package/dist/chunk-AGBBH7PL.mjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// src/constants/default-roles.ts
|
|
2
|
-
var SYSTEM_RESOURCES = {
|
|
3
|
-
/** User profiles, invitations, roles and permissions management */
|
|
4
|
-
PEOPLE: "people",
|
|
5
|
-
/** Tenant settings, audit logs, workflow execution, document generation */
|
|
6
|
-
WORKSPACE: "workspace",
|
|
7
|
-
/** Object definitions, attributes, views, workflow definitions */
|
|
8
|
-
ARCHITECT: "architect"
|
|
9
|
-
};
|
|
10
|
-
var ALL_SYSTEM_RESOURCES = [
|
|
11
|
-
SYSTEM_RESOURCES.PEOPLE,
|
|
12
|
-
SYSTEM_RESOURCES.WORKSPACE,
|
|
13
|
-
SYSTEM_RESOURCES.ARCHITECT
|
|
14
|
-
];
|
|
15
|
-
var SYSTEM_RESOURCE_LABELS = {
|
|
16
|
-
people: "People",
|
|
17
|
-
workspace: "Workspace",
|
|
18
|
-
architect: "Architect"
|
|
19
|
-
};
|
|
20
|
-
var DEFAULT_ROLES = {
|
|
21
|
-
/** Full platform access - can manage everything */
|
|
22
|
-
OWNER: "owner",
|
|
23
|
-
/** Standard user - can work with business data and view people */
|
|
24
|
-
MEMBER: "member"
|
|
25
|
-
};
|
|
26
|
-
var DEFAULT_ROLE_LABELS = {
|
|
27
|
-
owner: "Owner",
|
|
28
|
-
member: "Member"
|
|
29
|
-
};
|
|
30
|
-
var DEFAULT_ROLE_DESCRIPTIONS = {
|
|
31
|
-
owner: "Full access to all platform features and data",
|
|
32
|
-
member: "Can view, create, edit and delete business data"
|
|
33
|
-
};
|
|
34
|
-
var ALL_ACTIONS = ["read", "create", "update", "delete"];
|
|
35
|
-
var DEFAULT_ROLE_PERMISSIONS = {
|
|
36
|
-
owner: {
|
|
37
|
-
system: [{ target: "*", actions: ALL_ACTIONS }],
|
|
38
|
-
object: [{ target: "*", actions: ALL_ACTIONS }]
|
|
39
|
-
},
|
|
40
|
-
member: {
|
|
41
|
-
system: [
|
|
42
|
-
{ target: "people", actions: ["read"] },
|
|
43
|
-
{ target: "workspace", actions: ["read"] }
|
|
44
|
-
],
|
|
45
|
-
object: [{ target: "*", actions: ALL_ACTIONS }]
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var DEFAULT_ROLE_FOR_NEW_USERS = "member";
|
|
49
|
-
function isDefaultRole(roleName) {
|
|
50
|
-
return Object.values(DEFAULT_ROLES).includes(roleName);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
SYSTEM_RESOURCES,
|
|
55
|
-
ALL_SYSTEM_RESOURCES,
|
|
56
|
-
SYSTEM_RESOURCE_LABELS,
|
|
57
|
-
DEFAULT_ROLES,
|
|
58
|
-
DEFAULT_ROLE_LABELS,
|
|
59
|
-
DEFAULT_ROLE_DESCRIPTIONS,
|
|
60
|
-
DEFAULT_ROLE_PERMISSIONS,
|
|
61
|
-
DEFAULT_ROLE_FOR_NEW_USERS,
|
|
62
|
-
isDefaultRole
|
|
63
|
-
};
|