@stndrds/schema 0.1.0-alpha.32 → 0.1.0-alpha.34
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-ZTEGJPX2.mjs → chunk-EIRY4I7Q.mjs} +232 -119
- package/dist/{chunk-FG3I6YHA.js → chunk-UCUFSIOX.js} +233 -120
- package/dist/index.d.mts +50 -9
- package/dist/index.d.ts +50 -9
- package/dist/index.js +10 -6
- package/dist/index.mjs +5 -1
- package/dist/{runtime-DyTAIaum.d.mts → runtime-BWBRGKY1.d.mts} +352 -282
- package/dist/{runtime-DyTAIaum.d.ts → runtime-BWBRGKY1.d.ts} +352 -282
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/dist/runtime.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DateAttribute, U as UserAttribute, A as Attribute, S as SystemResource, a as SystemAction, O as ObjectAction, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, d as CurrencyAttribute, e as Option, f as StatusAttribute, g as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, F as FileAttribute, h as SingleRelationAttribute, i as MultiRelationAttribute, j as RelationTarget, k as RatingAttribute, l as FormulaAttribute, m as FormulaReturnType, n as RollupAttribute, o as RollupFunction, p as
|
|
2
|
-
export {
|
|
1
|
+
import { D as DateAttribute, U as UserAttribute, A as Attribute, S as SystemResource, a as SystemAction, O as ObjectAction, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, d as CurrencyAttribute, e as Option, f as StatusAttribute, g as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, F as FileAttribute, h as SingleRelationAttribute, i as MultiRelationAttribute, j as RelationTarget, k as RatingAttribute, l as FormulaAttribute, m as FormulaReturnType, n as RollupAttribute, o as RollupFunction, p as AttributeType, q as FlowDefinition, r as FlowPage, s as FlowRow, I as InferAttributeValue, t as ObjectDefinition, u as Field, v as AttributeGroupField, G as Group, w as TableTab, V as ViewLayout, x as InverseTableTab, y as ViewDefinition, z as Tab, B as FilterState, E as SortRule, H as DirectTableTab, J as BlockNoteContent } from './runtime-BWBRGKY1.mjs';
|
|
2
|
+
export { bZ as ActivityTab, bf as AddAttribute, ey as AddAttributeInput, aP as AdvancedFilterState, bM as AssignRoleInput, e2 as AttributeChange, Q as AttributeGroup, be as AttributeMap, ba as AttributeSchema, ee as AttributesRepository, an as AuditAction, ao as AuditActorType, ap as AuditChange, as as AuditListOptions, aq as AuditLogEntry, ek as AuditRepository, am as AuditResourceType, en as AuditService, at as AuditServiceOptions, W as BaseAttribute, a5 as BlockNoteBlock, a6 as BlockNoteCustomInlineContent, a7 as BlockNoteDefaultProps, a8 as BlockNoteInlineContent, a9 as BlockNoteLink, aa as BlockNoteStyledText, ab as BlockNoteStyles, ac as BlockNoteTableCell, ad as BlockNoteTableCellProps, ae as BlockNoteTableContent, aB as CheckboxFilterOperator, bA as CompletionStatus, ar as CreateAuditLogInput, ex as CreateCustomObjectInput, fm as CreateDBAttribute, fA as CreateDBFlow, fi as CreateDBObject, fw as CreateDBView, ax as CreateFile, es as CreateFlowInput, fp as CreateObjectRecord, bL as CreatePermissionInput, bJ as CreateRoleInput, bT as CreateUserProfile, eX as CreateViewInput, $ as Currency, aI as CurrencyFilterValue, bj as CustomAttributeValue, bY as CustomTab, fl as DBAttribute, fz as DBFlow, fh as DBObject, fv as DBView, fc as DEFAULT_LABEL_FALLBACK, cg as DEFAULT_VALIDATION_MESSAGES, d9 as DatabaseAdapter, aC as DateFilterOperator, Y as DateFormat, Z as DateValue, bG as EffectivePermissions, aM as ExtendedFilterRule, bt as ExtractAttributes, bn as ExtractRecord, bp as ExtractRecordInput, bq as ExtractRecordInputStrict, bo as ExtractRecordStrict, br as ExtractRecordUpdate, bs as ExtractRecordUpdateStrict, da as FetchResult, aw as File, e_ as FileContent, fu as FileListOptions, er as FileService, eq as FileServiceOptions, av as FileVisibility, eg as FilesRepository, aN as FilterCombinator, aO as FilterGroup, aG as FilterOperator, aL as FilterRule, aK as FilterValue, a$ as FlowRelation, a_ as FlowRowField, eu as FlowService, aZ as FlowSlot, b0 as FlowStatus, ej as FlowsRepository, bX as FormTab, db as FormattedRecord, dM as FormulaResult, fa as FullSyncOptions, f9 as FullSyncResult, b8 as GeocodingAdapter, b5 as GeocodingAutocompleteParams, b7 as GeocodingParams, ev as GeocodingService, b4 as GeocodingSuggestion, eK as GetRelationOptionsParams, fs as GlobalSearchOptions, ft as GlobalSearchResultItem, ew as GlobalSearchService, dc as GroupedFetchResult, e3 as HookContext, e4 as HookDefinition, e5 as HookHandler, e8 as HookRegistry, e6 as HookType, bg as InferRecord, bb as InferRecordFromSchema, bh as InferRecordInput, bi as InferRecordUpdate, bc as InferRecordWithRequirements, dd as InsertOptions, dQ as InvalidPathError, bV as InviteUserInput, fq as ListOptions, a0 as Location, a1 as LocationGranularity, dR as MaxDepthExceededError, aE as MultiselectFilterOperator, aX as NO_VALUE_OPERATORS, aW as NoValueOperator, b9 as NoopGeocodingAdapter, e7 as NoopHookRegistry, b_ as NotesTab, aA as NumberFilterOperator, X as NumberUnit, aV as OPERATORS_BY_TYPE, bz as ObjectAttribute, bH as ObjectPermissions, bB as ObjectRecord, eh as ObjectRecordsRepository, eB as ObjectSchemaService, eA as ObjectSchemaServiceOptions, ed as ObjectsRepository, fC as OperationResult, af as PartialBlockNoteBlock, ag as PartialBlockNoteContent, ah as PartialBlockNoteInlineContent, ai as PartialBlockNoteLink, aj as PartialBlockNoteStyledText, ak as PartialBlockNoteTableCell, al as PartialBlockNoteTableContent, dV as PathCardinality, dW as PathSegment, dX as PathSegmentType, bE as Permission, bC as PermissionScope, eD as PermissionService, eC as PermissionServiceOptions, el as PermissionsRepository, _ as Phone, aJ as PhoneFilterValue, bN as PolicyContext, eb as PolicyRegistry, bP as PolicyViolationError, dq as QueryBuilder, dr as QueryBuilderOptions, de as QueryBuilderState, dl as QueryMultipleResultsError, dm as QueryNoResultError, aU as QueryState, a2 as RELATION_TARGET_ANY, bu as RESERVED_ATTRIBUTE_NAMES, bl as RecordMetadata, bO as RecordPolicy, eF as RecordService, eE as RecordServiceOptions, df as RegistryMap, dg as RegistryObjectNames, a3 as RelationAttribute, aF as RelationFilterOperator, eI as RelationOption, eJ as RelationOptionsResponse, eN as RelationResolverService, eL as RelationService, eH as RelationValidationError, eG as RelationValidationResult, aH as RelativeDateValue, bw as ReservedAttributeName, eM as ResolvedRelations, b6 as ReverseGeocodingParams, bD as Role, eO as RollupResult, eR as RollupScheduler, eQ as RollupSchedulerOptions, eP as RollupService, dn as SHORTCUT_TO_FILTER_OPERATOR, bv as SYSTEM_FIELD_NAMES, dY as SchemaResolver, fr as SearchOptions, aD as SelectFilterOperator, dh as ShortcutOperator, f1 as SignedUrlOptions, aT as SortDirection, K as StatusGroup, f2 as StorageAdapter, au as StorageProvider, e$ as StorageUploadInput, f0 as StorageUploadResult, f5 as SyncOptions, f4 as SyncResult, bx as SystemFieldName, bm as SystemFields, bI as SystemPermissions, bW as TabType, ep as TenantAwareRepository, eo as TenantAwareService, dz as TenantContext, ds as TenantContextError, c7 as TenantId, az as TextFilterOperator, by as Timestamps, e0 as TraversalOptions, e1 as TraversalResult, bd as TypedAttribute, fn as UpdateDBAttribute, fB as UpdateDBFlow, fj as UpdateDBObject, fx as UpdateDBView, ay as UpdateFile, et as UpdateFlowInput, ez as UpdateObjectInput, bK as UpdateRoleInput, bU as UpdateUserProfile, eY as UpdateViewInput, f3 as UploadFileInput, fo as UpsertDBAttribute, fk as UpsertDBObject, fy as UpsertDBView, c8 as UserId, bS as UserProfile, eT as UserProfileService, eS as UserProfileServiceOptions, ef as UserProfilesRepository, bQ as UserRole, bF as UserRoleAssignment, eW as UserService, bR as UserStatus, eV as UserValidationError, eU as UserValidationResult, c6 as Uuid, cf as ValidationMessages, c$ as ValidationResult, eZ as ViewService, fE as ViewSyncOptions, fD as ViewSyncResult, ei as ViewsRepository, bk as WithCustomAttributes, c9 as asTenantId, ca as asUserId, cz as attributeConfigSchemas, em as buildAuditChanges, cl as checkboxConfigSchema, d8 as computeRecordStatus, cY as createAttributeValidator, cG as createCheckboxValidator, cJ as createCurrencyValidator, cH as createDateValidator, di as createDefaultState, d3 as createDraftValidator, cO as createFileValidator, cZ as createFormAttributeValidator, cU as createFormulaValidator, cN as createLocationValidator, e9 as createMockAdapter, cR as createMultiRelationValidator, cM as createMultiselectValidator, cF as createNumberValidator, c_ as createObjectValidator, cI as createPhoneValidator, dp as createQueryBuilder, cT as createRatingValidator, cS as createRelationValidator, cX as createRichtextValidator, cV as createRollupValidator, cL as createSelectValidator, cQ as createSingleRelationValidator, cK as createStatusValidator, cW as createTextAreaValidator, cE as createTextValidator, cP as createUserValidator, co as currencyConfigSchema, cm as dateConfigSchema, ea as defaultPolicyRegistry, fg as enrichValuesWithSelectLabels, dA as evaluateFormula, dB as evaluateFormulaAttribute, dC as evaluateFormulaAttributeWithRelations, dD as evaluateFormulaWithRelations, dE as evaluateFormulaWithResult, ff as extractAttributeNames, dF as extractFormulaVariables, dG as extractRelationNames, dH as extractRelationReferences, ct as fileConfigSchema, dI as flattenRelationsForEval, dJ as formatFormulaResult, dj as formatRecord, dk as formatRecords, cx as formulaConfigSchema, cb as generateId, cc as generatePrefixedId, cA as getAttributeConfigSchema, dt as getContext, d6 as getMissingRequiredAttributes, dN as getPathDepth, dO as getRelationPath, f8 as getSyncPreview, dP as getTargetAttributeName, du as getTenantId, dv as getUserId, fH as getViewSyncPreview, dw as hasContext, dK as hasRelationReferences, c4 as isActivityTab, aQ as isAdvancedFilterState, c3 as isCustomTab, c1 as isDirectTableTab, b1 as isFlowDefinition, b2 as isFlowPublished, b$ as isFormTab, c2 as isInverseTableTab, fe as isLabelExpression, aY as isNoValueOperator, c5 as isNotesTab, d7 as isRecordComplete, b3 as isSystemFlow, c0 as isTableTab, a4 as isUniversalRelation, cq as locationConfigSchema, cs as multiselectConfigSchema, ec as notesPolicy, ck as numberConfigSchema, cC as parseAttributeConfig, dS as parsePath, dT as pathHasManyCardinality, cn as phoneConfigSchema, cw as ratingConfigSchema, cd as registry, cv as relationConfigSchema, fd as renderLabelExpression, dZ as resolveMultiplePaths, d_ as resolveSingleValue, cj as richtextConfigSchema, cy as rollupConfigSchema, dx as runWithContext, cD as safeParseAttributeConfig, cr as selectConfigSchema, cp as statusConfigSchema, fb as syncAll, f6 as syncNativeObjects, fF as syncNativeViews, ch as textConfigSchema, ci as textareaConfigSchema, aR as toAdvancedFilterState, aS as toSimpleFilterState, d$ as traversePath, cu as userConfigSchema, d0 as validateAttribute, cB as validateAttributeConfig, d4 as validateDraft, d5 as validateDraftOrThrow, dL as validateFormulaExpression, d1 as validateObject, d2 as validateObjectOrThrow, dU as validatePath, f7 as verifyNativeObjectsSync, fG as verifyNativeViewsSync, ce as viewRegistry, dy as withTenantContext } from './runtime-BWBRGKY1.mjs';
|
|
3
3
|
import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -935,16 +935,23 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
935
935
|
* Set decimal places for numeric results
|
|
936
936
|
*/
|
|
937
937
|
decimals(value: number): this;
|
|
938
|
-
/**
|
|
939
|
-
* Display the rollup value using the target attribute's type formatter
|
|
940
|
-
* instead of the default rollup-specific formatting
|
|
941
|
-
*/
|
|
942
|
-
showAsOriginal(): this;
|
|
943
938
|
/**
|
|
944
939
|
* Set multi-level path for traversing nested relations (Phase 4+)
|
|
945
940
|
* @param path - Dot notation path (e.g., "orders.items")
|
|
946
941
|
*/
|
|
947
942
|
path(relationPath: string): this;
|
|
943
|
+
/**
|
|
944
|
+
* Set the target attribute type for display purposes
|
|
945
|
+
* Required when using function="original" to render values correctly
|
|
946
|
+
* @param type - The type of the target attribute (e.g., "select", "status", "text")
|
|
947
|
+
*/
|
|
948
|
+
targetType(type: AttributeType): this;
|
|
949
|
+
/**
|
|
950
|
+
* Set the target attribute options for select-like types
|
|
951
|
+
* Required when function="original" and target is select/status/multiselect
|
|
952
|
+
* @param options - The options array from the target attribute
|
|
953
|
+
*/
|
|
954
|
+
targetOptions(options: Option[]): this;
|
|
948
955
|
required(): any;
|
|
949
956
|
optional(): any;
|
|
950
957
|
}
|
|
@@ -967,6 +974,19 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
967
974
|
* .aggregate("id") // any attribute works for count
|
|
968
975
|
* .using("count")
|
|
969
976
|
* ```
|
|
977
|
+
*
|
|
978
|
+
* @example Display original values with their type (select/status as tags)
|
|
979
|
+
* ```typescript
|
|
980
|
+
* rollup({ name: "companyStatus", label: "Company Status" })
|
|
981
|
+
* .from("company")
|
|
982
|
+
* .aggregate("status")
|
|
983
|
+
* .using("original")
|
|
984
|
+
* .targetType("status")
|
|
985
|
+
* .targetOptions([
|
|
986
|
+
* { id: "active", label: "Active", value: "active", color: "green" },
|
|
987
|
+
* { id: "inactive", label: "Inactive", value: "inactive", color: "red" }
|
|
988
|
+
* ])
|
|
989
|
+
* ```
|
|
970
990
|
*/
|
|
971
991
|
declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>): RollupAttributeBuilder<TName>;
|
|
972
992
|
/**
|
|
@@ -1747,13 +1767,24 @@ declare class ViewBuilder {
|
|
|
1747
1767
|
*/
|
|
1748
1768
|
for(objectName: string): this;
|
|
1749
1769
|
/**
|
|
1750
|
-
* Mark as default view for the object
|
|
1770
|
+
* Mark as default view for the object (within its layout)
|
|
1751
1771
|
*/
|
|
1752
1772
|
default(): this;
|
|
1753
1773
|
/**
|
|
1754
1774
|
* Mark as system view (protected, defined by developer)
|
|
1755
1775
|
*/
|
|
1756
1776
|
system(): this;
|
|
1777
|
+
/**
|
|
1778
|
+
* Set the layout mode for the view
|
|
1779
|
+
* @param value - "page" for full tabs, "modal" for single form
|
|
1780
|
+
* @default "page"
|
|
1781
|
+
*/
|
|
1782
|
+
layout(value: ViewLayout): this;
|
|
1783
|
+
/**
|
|
1784
|
+
* Shorthand for .layout("modal")
|
|
1785
|
+
* Modal views have a single form tab without tabs UI
|
|
1786
|
+
*/
|
|
1787
|
+
modal(): this;
|
|
1757
1788
|
/**
|
|
1758
1789
|
* Set metadata
|
|
1759
1790
|
*/
|
|
@@ -1787,6 +1818,7 @@ declare class ViewBuilder {
|
|
|
1787
1818
|
*
|
|
1788
1819
|
* @example
|
|
1789
1820
|
* ```typescript
|
|
1821
|
+
* // Page view (default) with multiple tabs
|
|
1790
1822
|
* const COMPANY_VIEW = view("detail", "Company Detail")
|
|
1791
1823
|
* .for("companies")
|
|
1792
1824
|
* .default()
|
|
@@ -1794,6 +1826,15 @@ declare class ViewBuilder {
|
|
|
1794
1826
|
* .tab("general", "Info")
|
|
1795
1827
|
* .form(group("main", "Main").fields("name", "status"))
|
|
1796
1828
|
* .build();
|
|
1829
|
+
*
|
|
1830
|
+
* // Modal view with single form tab
|
|
1831
|
+
* const COMPANY_MODAL = view("quick-edit", "Quick Edit")
|
|
1832
|
+
* .for("companies")
|
|
1833
|
+
* .modal()
|
|
1834
|
+
* .default()
|
|
1835
|
+
* .tab("form", "Form")
|
|
1836
|
+
* .form(group("main", "Main").fields("name", "status"))
|
|
1837
|
+
* .build();
|
|
1797
1838
|
* ```
|
|
1798
1839
|
*/
|
|
1799
1840
|
declare function view(name: string, label: string): ViewBuilder;
|
|
@@ -1864,4 +1905,4 @@ declare const NOTES: ObjectBuilder<{
|
|
|
1864
1905
|
linkedTo?: string | undefined;
|
|
1865
1906
|
}>;
|
|
1866
1907
|
|
|
1867
|
-
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, BlockNoteContent, type BuilderConfig, CheckboxAttribute, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DirectTableTab, DirectTableTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type ExtractAttributeName, type ExtractAttributeRequired, Field, FileAttribute, FileNotFoundError, FilterState, FlowBuilder, FlowDefinition, FlowPage, FlowPageBuilder, FlowRow, FlowRowBuilder, ForbiddenError, FormulaAttribute, FormulaReturnType, Group, GroupBuilder, InferAttributeValue, InverseTableTab, InverseTableTabConfig, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PhoneAttribute, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SelectAttribute, SingleRelationAttribute, SortRule, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, checkbox, currency, date, file, flow, formatAttributeValue, formula, getSystemAttributeList, group, isDefaultRole, isForbiddenError, isNotFoundError, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isValidationError, location, multiselect, number, object, phone, rating, relation, richtext, rollup, select, status, text, textarea, user, view };
|
|
1908
|
+
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, BlockNoteContent, type BuilderConfig, CheckboxAttribute, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DirectTableTab, DirectTableTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type ExtractAttributeName, type ExtractAttributeRequired, Field, FileAttribute, FileNotFoundError, FilterState, FlowBuilder, FlowDefinition, FlowPage, FlowPageBuilder, FlowRow, FlowRowBuilder, ForbiddenError, FormulaAttribute, FormulaReturnType, Group, GroupBuilder, InferAttributeValue, InverseTableTab, InverseTableTabConfig, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PhoneAttribute, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SelectAttribute, SingleRelationAttribute, SortRule, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewLayout, checkbox, currency, date, file, flow, formatAttributeValue, formula, getSystemAttributeList, group, isDefaultRole, isForbiddenError, isNotFoundError, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isValidationError, location, multiselect, number, object, phone, rating, relation, richtext, rollup, select, status, text, textarea, user, view };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DateAttribute, U as UserAttribute, A as Attribute, S as SystemResource, a as SystemAction, O as ObjectAction, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, d as CurrencyAttribute, e as Option, f as StatusAttribute, g as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, F as FileAttribute, h as SingleRelationAttribute, i as MultiRelationAttribute, j as RelationTarget, k as RatingAttribute, l as FormulaAttribute, m as FormulaReturnType, n as RollupAttribute, o as RollupFunction, p as
|
|
2
|
-
export {
|
|
1
|
+
import { D as DateAttribute, U as UserAttribute, A as Attribute, S as SystemResource, a as SystemAction, O as ObjectAction, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, d as CurrencyAttribute, e as Option, f as StatusAttribute, g as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, F as FileAttribute, h as SingleRelationAttribute, i as MultiRelationAttribute, j as RelationTarget, k as RatingAttribute, l as FormulaAttribute, m as FormulaReturnType, n as RollupAttribute, o as RollupFunction, p as AttributeType, q as FlowDefinition, r as FlowPage, s as FlowRow, I as InferAttributeValue, t as ObjectDefinition, u as Field, v as AttributeGroupField, G as Group, w as TableTab, V as ViewLayout, x as InverseTableTab, y as ViewDefinition, z as Tab, B as FilterState, E as SortRule, H as DirectTableTab, J as BlockNoteContent } from './runtime-BWBRGKY1.js';
|
|
2
|
+
export { bZ as ActivityTab, bf as AddAttribute, ey as AddAttributeInput, aP as AdvancedFilterState, bM as AssignRoleInput, e2 as AttributeChange, Q as AttributeGroup, be as AttributeMap, ba as AttributeSchema, ee as AttributesRepository, an as AuditAction, ao as AuditActorType, ap as AuditChange, as as AuditListOptions, aq as AuditLogEntry, ek as AuditRepository, am as AuditResourceType, en as AuditService, at as AuditServiceOptions, W as BaseAttribute, a5 as BlockNoteBlock, a6 as BlockNoteCustomInlineContent, a7 as BlockNoteDefaultProps, a8 as BlockNoteInlineContent, a9 as BlockNoteLink, aa as BlockNoteStyledText, ab as BlockNoteStyles, ac as BlockNoteTableCell, ad as BlockNoteTableCellProps, ae as BlockNoteTableContent, aB as CheckboxFilterOperator, bA as CompletionStatus, ar as CreateAuditLogInput, ex as CreateCustomObjectInput, fm as CreateDBAttribute, fA as CreateDBFlow, fi as CreateDBObject, fw as CreateDBView, ax as CreateFile, es as CreateFlowInput, fp as CreateObjectRecord, bL as CreatePermissionInput, bJ as CreateRoleInput, bT as CreateUserProfile, eX as CreateViewInput, $ as Currency, aI as CurrencyFilterValue, bj as CustomAttributeValue, bY as CustomTab, fl as DBAttribute, fz as DBFlow, fh as DBObject, fv as DBView, fc as DEFAULT_LABEL_FALLBACK, cg as DEFAULT_VALIDATION_MESSAGES, d9 as DatabaseAdapter, aC as DateFilterOperator, Y as DateFormat, Z as DateValue, bG as EffectivePermissions, aM as ExtendedFilterRule, bt as ExtractAttributes, bn as ExtractRecord, bp as ExtractRecordInput, bq as ExtractRecordInputStrict, bo as ExtractRecordStrict, br as ExtractRecordUpdate, bs as ExtractRecordUpdateStrict, da as FetchResult, aw as File, e_ as FileContent, fu as FileListOptions, er as FileService, eq as FileServiceOptions, av as FileVisibility, eg as FilesRepository, aN as FilterCombinator, aO as FilterGroup, aG as FilterOperator, aL as FilterRule, aK as FilterValue, a$ as FlowRelation, a_ as FlowRowField, eu as FlowService, aZ as FlowSlot, b0 as FlowStatus, ej as FlowsRepository, bX as FormTab, db as FormattedRecord, dM as FormulaResult, fa as FullSyncOptions, f9 as FullSyncResult, b8 as GeocodingAdapter, b5 as GeocodingAutocompleteParams, b7 as GeocodingParams, ev as GeocodingService, b4 as GeocodingSuggestion, eK as GetRelationOptionsParams, fs as GlobalSearchOptions, ft as GlobalSearchResultItem, ew as GlobalSearchService, dc as GroupedFetchResult, e3 as HookContext, e4 as HookDefinition, e5 as HookHandler, e8 as HookRegistry, e6 as HookType, bg as InferRecord, bb as InferRecordFromSchema, bh as InferRecordInput, bi as InferRecordUpdate, bc as InferRecordWithRequirements, dd as InsertOptions, dQ as InvalidPathError, bV as InviteUserInput, fq as ListOptions, a0 as Location, a1 as LocationGranularity, dR as MaxDepthExceededError, aE as MultiselectFilterOperator, aX as NO_VALUE_OPERATORS, aW as NoValueOperator, b9 as NoopGeocodingAdapter, e7 as NoopHookRegistry, b_ as NotesTab, aA as NumberFilterOperator, X as NumberUnit, aV as OPERATORS_BY_TYPE, bz as ObjectAttribute, bH as ObjectPermissions, bB as ObjectRecord, eh as ObjectRecordsRepository, eB as ObjectSchemaService, eA as ObjectSchemaServiceOptions, ed as ObjectsRepository, fC as OperationResult, af as PartialBlockNoteBlock, ag as PartialBlockNoteContent, ah as PartialBlockNoteInlineContent, ai as PartialBlockNoteLink, aj as PartialBlockNoteStyledText, ak as PartialBlockNoteTableCell, al as PartialBlockNoteTableContent, dV as PathCardinality, dW as PathSegment, dX as PathSegmentType, bE as Permission, bC as PermissionScope, eD as PermissionService, eC as PermissionServiceOptions, el as PermissionsRepository, _ as Phone, aJ as PhoneFilterValue, bN as PolicyContext, eb as PolicyRegistry, bP as PolicyViolationError, dq as QueryBuilder, dr as QueryBuilderOptions, de as QueryBuilderState, dl as QueryMultipleResultsError, dm as QueryNoResultError, aU as QueryState, a2 as RELATION_TARGET_ANY, bu as RESERVED_ATTRIBUTE_NAMES, bl as RecordMetadata, bO as RecordPolicy, eF as RecordService, eE as RecordServiceOptions, df as RegistryMap, dg as RegistryObjectNames, a3 as RelationAttribute, aF as RelationFilterOperator, eI as RelationOption, eJ as RelationOptionsResponse, eN as RelationResolverService, eL as RelationService, eH as RelationValidationError, eG as RelationValidationResult, aH as RelativeDateValue, bw as ReservedAttributeName, eM as ResolvedRelations, b6 as ReverseGeocodingParams, bD as Role, eO as RollupResult, eR as RollupScheduler, eQ as RollupSchedulerOptions, eP as RollupService, dn as SHORTCUT_TO_FILTER_OPERATOR, bv as SYSTEM_FIELD_NAMES, dY as SchemaResolver, fr as SearchOptions, aD as SelectFilterOperator, dh as ShortcutOperator, f1 as SignedUrlOptions, aT as SortDirection, K as StatusGroup, f2 as StorageAdapter, au as StorageProvider, e$ as StorageUploadInput, f0 as StorageUploadResult, f5 as SyncOptions, f4 as SyncResult, bx as SystemFieldName, bm as SystemFields, bI as SystemPermissions, bW as TabType, ep as TenantAwareRepository, eo as TenantAwareService, dz as TenantContext, ds as TenantContextError, c7 as TenantId, az as TextFilterOperator, by as Timestamps, e0 as TraversalOptions, e1 as TraversalResult, bd as TypedAttribute, fn as UpdateDBAttribute, fB as UpdateDBFlow, fj as UpdateDBObject, fx as UpdateDBView, ay as UpdateFile, et as UpdateFlowInput, ez as UpdateObjectInput, bK as UpdateRoleInput, bU as UpdateUserProfile, eY as UpdateViewInput, f3 as UploadFileInput, fo as UpsertDBAttribute, fk as UpsertDBObject, fy as UpsertDBView, c8 as UserId, bS as UserProfile, eT as UserProfileService, eS as UserProfileServiceOptions, ef as UserProfilesRepository, bQ as UserRole, bF as UserRoleAssignment, eW as UserService, bR as UserStatus, eV as UserValidationError, eU as UserValidationResult, c6 as Uuid, cf as ValidationMessages, c$ as ValidationResult, eZ as ViewService, fE as ViewSyncOptions, fD as ViewSyncResult, ei as ViewsRepository, bk as WithCustomAttributes, c9 as asTenantId, ca as asUserId, cz as attributeConfigSchemas, em as buildAuditChanges, cl as checkboxConfigSchema, d8 as computeRecordStatus, cY as createAttributeValidator, cG as createCheckboxValidator, cJ as createCurrencyValidator, cH as createDateValidator, di as createDefaultState, d3 as createDraftValidator, cO as createFileValidator, cZ as createFormAttributeValidator, cU as createFormulaValidator, cN as createLocationValidator, e9 as createMockAdapter, cR as createMultiRelationValidator, cM as createMultiselectValidator, cF as createNumberValidator, c_ as createObjectValidator, cI as createPhoneValidator, dp as createQueryBuilder, cT as createRatingValidator, cS as createRelationValidator, cX as createRichtextValidator, cV as createRollupValidator, cL as createSelectValidator, cQ as createSingleRelationValidator, cK as createStatusValidator, cW as createTextAreaValidator, cE as createTextValidator, cP as createUserValidator, co as currencyConfigSchema, cm as dateConfigSchema, ea as defaultPolicyRegistry, fg as enrichValuesWithSelectLabels, dA as evaluateFormula, dB as evaluateFormulaAttribute, dC as evaluateFormulaAttributeWithRelations, dD as evaluateFormulaWithRelations, dE as evaluateFormulaWithResult, ff as extractAttributeNames, dF as extractFormulaVariables, dG as extractRelationNames, dH as extractRelationReferences, ct as fileConfigSchema, dI as flattenRelationsForEval, dJ as formatFormulaResult, dj as formatRecord, dk as formatRecords, cx as formulaConfigSchema, cb as generateId, cc as generatePrefixedId, cA as getAttributeConfigSchema, dt as getContext, d6 as getMissingRequiredAttributes, dN as getPathDepth, dO as getRelationPath, f8 as getSyncPreview, dP as getTargetAttributeName, du as getTenantId, dv as getUserId, fH as getViewSyncPreview, dw as hasContext, dK as hasRelationReferences, c4 as isActivityTab, aQ as isAdvancedFilterState, c3 as isCustomTab, c1 as isDirectTableTab, b1 as isFlowDefinition, b2 as isFlowPublished, b$ as isFormTab, c2 as isInverseTableTab, fe as isLabelExpression, aY as isNoValueOperator, c5 as isNotesTab, d7 as isRecordComplete, b3 as isSystemFlow, c0 as isTableTab, a4 as isUniversalRelation, cq as locationConfigSchema, cs as multiselectConfigSchema, ec as notesPolicy, ck as numberConfigSchema, cC as parseAttributeConfig, dS as parsePath, dT as pathHasManyCardinality, cn as phoneConfigSchema, cw as ratingConfigSchema, cd as registry, cv as relationConfigSchema, fd as renderLabelExpression, dZ as resolveMultiplePaths, d_ as resolveSingleValue, cj as richtextConfigSchema, cy as rollupConfigSchema, dx as runWithContext, cD as safeParseAttributeConfig, cr as selectConfigSchema, cp as statusConfigSchema, fb as syncAll, f6 as syncNativeObjects, fF as syncNativeViews, ch as textConfigSchema, ci as textareaConfigSchema, aR as toAdvancedFilterState, aS as toSimpleFilterState, d$ as traversePath, cu as userConfigSchema, d0 as validateAttribute, cB as validateAttributeConfig, d4 as validateDraft, d5 as validateDraftOrThrow, dL as validateFormulaExpression, d1 as validateObject, d2 as validateObjectOrThrow, dU as validatePath, f7 as verifyNativeObjectsSync, fG as verifyNativeViewsSync, ce as viewRegistry, dy as withTenantContext } from './runtime-BWBRGKY1.js';
|
|
3
3
|
import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -935,16 +935,23 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
935
935
|
* Set decimal places for numeric results
|
|
936
936
|
*/
|
|
937
937
|
decimals(value: number): this;
|
|
938
|
-
/**
|
|
939
|
-
* Display the rollup value using the target attribute's type formatter
|
|
940
|
-
* instead of the default rollup-specific formatting
|
|
941
|
-
*/
|
|
942
|
-
showAsOriginal(): this;
|
|
943
938
|
/**
|
|
944
939
|
* Set multi-level path for traversing nested relations (Phase 4+)
|
|
945
940
|
* @param path - Dot notation path (e.g., "orders.items")
|
|
946
941
|
*/
|
|
947
942
|
path(relationPath: string): this;
|
|
943
|
+
/**
|
|
944
|
+
* Set the target attribute type for display purposes
|
|
945
|
+
* Required when using function="original" to render values correctly
|
|
946
|
+
* @param type - The type of the target attribute (e.g., "select", "status", "text")
|
|
947
|
+
*/
|
|
948
|
+
targetType(type: AttributeType): this;
|
|
949
|
+
/**
|
|
950
|
+
* Set the target attribute options for select-like types
|
|
951
|
+
* Required when function="original" and target is select/status/multiselect
|
|
952
|
+
* @param options - The options array from the target attribute
|
|
953
|
+
*/
|
|
954
|
+
targetOptions(options: Option[]): this;
|
|
948
955
|
required(): any;
|
|
949
956
|
optional(): any;
|
|
950
957
|
}
|
|
@@ -967,6 +974,19 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
967
974
|
* .aggregate("id") // any attribute works for count
|
|
968
975
|
* .using("count")
|
|
969
976
|
* ```
|
|
977
|
+
*
|
|
978
|
+
* @example Display original values with their type (select/status as tags)
|
|
979
|
+
* ```typescript
|
|
980
|
+
* rollup({ name: "companyStatus", label: "Company Status" })
|
|
981
|
+
* .from("company")
|
|
982
|
+
* .aggregate("status")
|
|
983
|
+
* .using("original")
|
|
984
|
+
* .targetType("status")
|
|
985
|
+
* .targetOptions([
|
|
986
|
+
* { id: "active", label: "Active", value: "active", color: "green" },
|
|
987
|
+
* { id: "inactive", label: "Inactive", value: "inactive", color: "red" }
|
|
988
|
+
* ])
|
|
989
|
+
* ```
|
|
970
990
|
*/
|
|
971
991
|
declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>): RollupAttributeBuilder<TName>;
|
|
972
992
|
/**
|
|
@@ -1747,13 +1767,24 @@ declare class ViewBuilder {
|
|
|
1747
1767
|
*/
|
|
1748
1768
|
for(objectName: string): this;
|
|
1749
1769
|
/**
|
|
1750
|
-
* Mark as default view for the object
|
|
1770
|
+
* Mark as default view for the object (within its layout)
|
|
1751
1771
|
*/
|
|
1752
1772
|
default(): this;
|
|
1753
1773
|
/**
|
|
1754
1774
|
* Mark as system view (protected, defined by developer)
|
|
1755
1775
|
*/
|
|
1756
1776
|
system(): this;
|
|
1777
|
+
/**
|
|
1778
|
+
* Set the layout mode for the view
|
|
1779
|
+
* @param value - "page" for full tabs, "modal" for single form
|
|
1780
|
+
* @default "page"
|
|
1781
|
+
*/
|
|
1782
|
+
layout(value: ViewLayout): this;
|
|
1783
|
+
/**
|
|
1784
|
+
* Shorthand for .layout("modal")
|
|
1785
|
+
* Modal views have a single form tab without tabs UI
|
|
1786
|
+
*/
|
|
1787
|
+
modal(): this;
|
|
1757
1788
|
/**
|
|
1758
1789
|
* Set metadata
|
|
1759
1790
|
*/
|
|
@@ -1787,6 +1818,7 @@ declare class ViewBuilder {
|
|
|
1787
1818
|
*
|
|
1788
1819
|
* @example
|
|
1789
1820
|
* ```typescript
|
|
1821
|
+
* // Page view (default) with multiple tabs
|
|
1790
1822
|
* const COMPANY_VIEW = view("detail", "Company Detail")
|
|
1791
1823
|
* .for("companies")
|
|
1792
1824
|
* .default()
|
|
@@ -1794,6 +1826,15 @@ declare class ViewBuilder {
|
|
|
1794
1826
|
* .tab("general", "Info")
|
|
1795
1827
|
* .form(group("main", "Main").fields("name", "status"))
|
|
1796
1828
|
* .build();
|
|
1829
|
+
*
|
|
1830
|
+
* // Modal view with single form tab
|
|
1831
|
+
* const COMPANY_MODAL = view("quick-edit", "Quick Edit")
|
|
1832
|
+
* .for("companies")
|
|
1833
|
+
* .modal()
|
|
1834
|
+
* .default()
|
|
1835
|
+
* .tab("form", "Form")
|
|
1836
|
+
* .form(group("main", "Main").fields("name", "status"))
|
|
1837
|
+
* .build();
|
|
1797
1838
|
* ```
|
|
1798
1839
|
*/
|
|
1799
1840
|
declare function view(name: string, label: string): ViewBuilder;
|
|
@@ -1864,4 +1905,4 @@ declare const NOTES: ObjectBuilder<{
|
|
|
1864
1905
|
linkedTo?: string | undefined;
|
|
1865
1906
|
}>;
|
|
1866
1907
|
|
|
1867
|
-
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, BlockNoteContent, type BuilderConfig, CheckboxAttribute, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DirectTableTab, DirectTableTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type ExtractAttributeName, type ExtractAttributeRequired, Field, FileAttribute, FileNotFoundError, FilterState, FlowBuilder, FlowDefinition, FlowPage, FlowPageBuilder, FlowRow, FlowRowBuilder, ForbiddenError, FormulaAttribute, FormulaReturnType, Group, GroupBuilder, InferAttributeValue, InverseTableTab, InverseTableTabConfig, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PhoneAttribute, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SelectAttribute, SingleRelationAttribute, SortRule, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, checkbox, currency, date, file, flow, formatAttributeValue, formula, getSystemAttributeList, group, isDefaultRole, isForbiddenError, isNotFoundError, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isValidationError, location, multiselect, number, object, phone, rating, relation, richtext, rollup, select, status, text, textarea, user, view };
|
|
1908
|
+
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, BlockNoteContent, type BuilderConfig, CheckboxAttribute, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DirectTableTab, DirectTableTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type ExtractAttributeName, type ExtractAttributeRequired, Field, FileAttribute, FileNotFoundError, FilterState, FlowBuilder, FlowDefinition, FlowPage, FlowPageBuilder, FlowRow, FlowRowBuilder, ForbiddenError, FormulaAttribute, FormulaReturnType, Group, GroupBuilder, InferAttributeValue, InverseTableTab, InverseTableTabConfig, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PhoneAttribute, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SelectAttribute, SingleRelationAttribute, SortRule, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewLayout, checkbox, currency, date, file, flow, formatAttributeValue, formula, getSystemAttributeList, group, isDefaultRole, isForbiddenError, isNotFoundError, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isValidationError, location, multiselect, number, object, phone, rating, relation, richtext, rollup, select, status, text, textarea, user, view };
|
package/dist/index.js
CHANGED
|
@@ -201,7 +201,9 @@
|
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
var _chunkUCUFSIOXjs = require('./chunk-UCUFSIOX.js');
|
|
205
207
|
|
|
206
208
|
|
|
207
209
|
|
|
@@ -351,13 +353,13 @@ function isNotesTab(tab) {
|
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
// src/native/notes.ts
|
|
354
|
-
var NOTES =
|
|
355
|
-
|
|
356
|
+
var NOTES = _chunkUCUFSIOXjs.object.call(void 0, { name: "notes", label: "Note" }).pluralLabel("Notes").icon("file-text").description("Notes that can be linked to any record or used globally").system().labelExpression("{{ title }}").attribute(_chunkUCUFSIOXjs.text.call(void 0, { name: "title", label: "Title" }).placeholder("Untitled").required()).attribute(_chunkUCUFSIOXjs.richtext.call(void 0, { name: "content", label: "Content" }).required()).attribute(
|
|
357
|
+
_chunkUCUFSIOXjs.select.call(void 0, { name: "visibility", label: "Visibility" }).options([
|
|
356
358
|
{ id: "private", label: "Private", value: "private", icon: "lock" },
|
|
357
359
|
{ id: "shared", label: "Shared", value: "shared", icon: "users" }
|
|
358
360
|
]).defaultValue("private").required()
|
|
359
|
-
).attribute(
|
|
360
|
-
|
|
361
|
+
).attribute(_chunkUCUFSIOXjs.relation.call(void 0, { name: "linkedTo", label: "Linked To" }).toAny().hidden());
|
|
362
|
+
_chunkUCUFSIOXjs.registry.register(NOTES);
|
|
361
363
|
|
|
362
364
|
// src/views/registry.ts
|
|
363
365
|
var ViewRegistry = class {
|
|
@@ -725,4 +727,6 @@ var viewRegistry = new ViewRegistry();
|
|
|
725
727
|
|
|
726
728
|
|
|
727
729
|
|
|
728
|
-
exports.ALL_SYSTEM_RESOURCES = _chunk36UBIXJNjs.ALL_SYSTEM_RESOURCES; exports.ActivityTabConfig = _chunkFG3I6YHAjs.ActivityTabConfig; exports.AttributeInUseError = _chunkFG3I6YHAjs.AttributeInUseError; exports.AttributeNotFoundError = _chunkFG3I6YHAjs.AttributeNotFoundError; exports.AuditService = _chunkFG3I6YHAjs.AuditService; exports.CustomTabConfig = _chunkFG3I6YHAjs.CustomTabConfig; exports.DEFAULT_LABEL_FALLBACK = _chunkFG3I6YHAjs.DEFAULT_LABEL_FALLBACK; exports.DEFAULT_ROLES = _chunk36UBIXJNjs.DEFAULT_ROLES; exports.DEFAULT_ROLE_DESCRIPTIONS = _chunk36UBIXJNjs.DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_LABELS = _chunk36UBIXJNjs.DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_PERMISSIONS = _chunk36UBIXJNjs.DEFAULT_ROLE_PERMISSIONS; exports.DirectTableTabConfig = _chunkFG3I6YHAjs.DirectTableTabConfig; exports.DuplicateError = _chunkFG3I6YHAjs.DuplicateError; exports.EMPTY_VALUE_PLACEHOLDER = _chunkFG3I6YHAjs.EMPTY_VALUE_PLACEHOLDER; exports.FileNotFoundError = _chunkFG3I6YHAjs.FileNotFoundError; exports.FileService = _chunkFG3I6YHAjs.FileService; exports.FlowBuilder = _chunkFG3I6YHAjs.FlowBuilder; exports.FlowPageBuilder = _chunkFG3I6YHAjs.FlowPageBuilder; exports.FlowRowBuilder = _chunkFG3I6YHAjs.FlowRowBuilder; exports.FlowService = _chunkFG3I6YHAjs.FlowService; exports.ForbiddenError = _chunkFG3I6YHAjs.ForbiddenError; exports.GeocodingService = _chunkFG3I6YHAjs.GeocodingService; exports.GlobalSearchService = _chunkFG3I6YHAjs.GlobalSearchService; exports.GroupBuilder = _chunkFG3I6YHAjs.GroupBuilder; exports.InvalidPathError = _chunkFG3I6YHAjs.InvalidPathError; exports.InverseTableTabConfig = _chunkFG3I6YHAjs.InverseTableTabConfig; exports.MaxDepthExceededError = _chunkFG3I6YHAjs.MaxDepthExceededError; exports.NOTES = NOTES; exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS; exports.NoopGeocodingAdapter = _chunkFG3I6YHAjs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunkFG3I6YHAjs.NoopHookRegistry; exports.NotFoundError = _chunkFG3I6YHAjs.NotFoundError; exports.NotSystemObjectError = _chunkFG3I6YHAjs.NotSystemObjectError; exports.NotesTabConfig = _chunkFG3I6YHAjs.NotesTabConfig; exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE; exports.ObjectBuilder = _chunkFG3I6YHAjs.ObjectBuilder; exports.ObjectNotFoundError = _chunkFG3I6YHAjs.ObjectNotFoundError; exports.ObjectReferencedError = _chunkFG3I6YHAjs.ObjectReferencedError; exports.ObjectSchemaService = _chunkFG3I6YHAjs.ObjectSchemaService; exports.PermissionService = _chunkFG3I6YHAjs.PermissionService; exports.PolicyRegistry = _chunkFG3I6YHAjs.PolicyRegistry; exports.PolicyViolationError = _chunkFG3I6YHAjs.PolicyViolationError; exports.ProtectedResourceError = _chunkFG3I6YHAjs.ProtectedResourceError; exports.ProtectedRoleError = _chunkFG3I6YHAjs.ProtectedRoleError; exports.QueryBuilder = _chunkFG3I6YHAjs.QueryBuilder; exports.QueryMultipleResultsError = _chunkFG3I6YHAjs.QueryMultipleResultsError; exports.QueryNoResultError = _chunkFG3I6YHAjs.QueryNoResultError; exports.RELATION_TARGET_ANY = _chunkFG3I6YHAjs.RELATION_TARGET_ANY; exports.RESERVED_ATTRIBUTE_NAMES = _chunkFG3I6YHAjs.RESERVED_ATTRIBUTE_NAMES; exports.RecordNotFoundError = _chunkFG3I6YHAjs.RecordNotFoundError; exports.RecordReferencedError = _chunkFG3I6YHAjs.RecordReferencedError; exports.RecordService = _chunkFG3I6YHAjs.RecordService; exports.RelationResolverService = _chunkFG3I6YHAjs.RelationResolverService; exports.RelationService = _chunkFG3I6YHAjs.RelationService; exports.RoleNotFoundError = _chunkFG3I6YHAjs.RoleNotFoundError; exports.RollupScheduler = _chunkFG3I6YHAjs.RollupScheduler; exports.RollupService = _chunkFG3I6YHAjs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunkFG3I6YHAjs.SHORTCUT_TO_FILTER_OPERATOR; exports.SYSTEM_ATTRIBUTES = _chunkFG3I6YHAjs.SYSTEM_ATTRIBUTES; exports.SYSTEM_FIELD_NAMES = _chunkFG3I6YHAjs.SYSTEM_FIELD_NAMES; exports.SYSTEM_RESOURCES = _chunk36UBIXJNjs.SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = _chunk36UBIXJNjs.SYSTEM_RESOURCE_LABELS; exports.SchemaError = _chunkFG3I6YHAjs.SchemaError; exports.SchemaErrorCode = _chunkFG3I6YHAjs.SchemaErrorCode; exports.SyncError = _chunkFG3I6YHAjs.SyncError; exports.TabBuilder = _chunkFG3I6YHAjs.TabBuilder; exports.TenantAwareRepository = _chunkFG3I6YHAjs.TenantAwareRepository; exports.TenantAwareService = _chunkFG3I6YHAjs.TenantAwareService; exports.TenantContextError = _chunkFG3I6YHAjs.TenantContextError; exports.UserProfileNotFoundError = _chunkFG3I6YHAjs.UserProfileNotFoundError; exports.UserProfileService = _chunkFG3I6YHAjs.UserProfileService; exports.UserService = _chunkFG3I6YHAjs.UserService; exports.ValidationError = _chunkFG3I6YHAjs.ValidationError; exports.ViewBuilder = _chunkFG3I6YHAjs.ViewBuilder; exports.ViewService = _chunkFG3I6YHAjs.ViewService; exports.asTenantId = _chunkFG3I6YHAjs.asTenantId; exports.asUserId = _chunkFG3I6YHAjs.asUserId; exports.attributeConfigSchemas = _chunkFG3I6YHAjs.attributeConfigSchemas; exports.buildAuditChanges = _chunkFG3I6YHAjs.buildAuditChanges; exports.checkbox = _chunkFG3I6YHAjs.checkbox; exports.checkboxConfigSchema = _chunkFG3I6YHAjs.checkboxConfigSchema; exports.computeRecordStatus = _chunkFG3I6YHAjs.computeRecordStatus; exports.createAttributeValidator = _chunkFG3I6YHAjs.createAttributeValidator; exports.createCheckboxValidator = _chunkFG3I6YHAjs.createCheckboxValidator; exports.createCurrencyValidator = _chunkFG3I6YHAjs.createCurrencyValidator; exports.createDateValidator = _chunkFG3I6YHAjs.createDateValidator; exports.createDefaultState = _chunkFG3I6YHAjs.createDefaultState; exports.createDraftValidator = _chunkFG3I6YHAjs.createDraftValidator; exports.createFileValidator = _chunkFG3I6YHAjs.createFileValidator; exports.createFormulaValidator = _chunkFG3I6YHAjs.createFormulaValidator; exports.createLocationValidator = _chunkFG3I6YHAjs.createLocationValidator; exports.createMockAdapter = _chunkFG3I6YHAjs.createMockAdapter; exports.createMultiRelationValidator = _chunkFG3I6YHAjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunkFG3I6YHAjs.createMultiselectValidator; exports.createNumberValidator = _chunkFG3I6YHAjs.createNumberValidator; exports.createObjectValidator = _chunkFG3I6YHAjs.createObjectValidator; exports.createPhoneValidator = _chunkFG3I6YHAjs.createPhoneValidator; exports.createQueryBuilder = _chunkFG3I6YHAjs.createQueryBuilder; exports.createRatingValidator = _chunkFG3I6YHAjs.createRatingValidator; exports.createRelationValidator = _chunkFG3I6YHAjs.createRelationValidator; exports.createRichtextValidator = _chunkFG3I6YHAjs.createRichtextValidator; exports.createRollupValidator = _chunkFG3I6YHAjs.createRollupValidator; exports.createSelectValidator = _chunkFG3I6YHAjs.createSelectValidator; exports.createSingleRelationValidator = _chunkFG3I6YHAjs.createSingleRelationValidator; exports.createStatusValidator = _chunkFG3I6YHAjs.createStatusValidator; exports.createTextAreaValidator = _chunkFG3I6YHAjs.createTextAreaValidator; exports.createTextValidator = _chunkFG3I6YHAjs.createTextValidator; exports.createUserValidator = _chunkFG3I6YHAjs.createUserValidator; exports.currency = _chunkFG3I6YHAjs.currency; exports.currencyConfigSchema = _chunkFG3I6YHAjs.currencyConfigSchema; exports.date = _chunkFG3I6YHAjs.date; exports.dateConfigSchema = _chunkFG3I6YHAjs.dateConfigSchema; exports.defaultPolicyRegistry = _chunkFG3I6YHAjs.defaultPolicyRegistry; exports.enrichValuesWithSelectLabels = _chunkFG3I6YHAjs.enrichValuesWithSelectLabels; exports.evaluateFormula = _chunkFG3I6YHAjs.evaluateFormula; exports.evaluateFormulaAttribute = _chunkFG3I6YHAjs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunkFG3I6YHAjs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunkFG3I6YHAjs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunkFG3I6YHAjs.evaluateFormulaWithResult; exports.extractAttributeNames = _chunkFG3I6YHAjs.extractAttributeNames; exports.extractFormulaVariables = _chunkFG3I6YHAjs.extractFormulaVariables; exports.extractRelationNames = _chunkFG3I6YHAjs.extractRelationNames; exports.extractRelationReferences = _chunkFG3I6YHAjs.extractRelationReferences; exports.file = _chunkFG3I6YHAjs.file; exports.fileConfigSchema = _chunkFG3I6YHAjs.fileConfigSchema; exports.flattenRelationsForEval = _chunkFG3I6YHAjs.flattenRelationsForEval; exports.flow = _chunkFG3I6YHAjs.flow; exports.formatAttributeValue = _chunkFG3I6YHAjs.formatAttributeValue; exports.formatFormulaResult = _chunkFG3I6YHAjs.formatFormulaResult; exports.formatRecord = _chunkFG3I6YHAjs.formatRecord; exports.formatRecords = _chunkFG3I6YHAjs.formatRecords; exports.formula = _chunkFG3I6YHAjs.formula; exports.formulaConfigSchema = _chunkFG3I6YHAjs.formulaConfigSchema; exports.generateId = _chunkFG3I6YHAjs.generateId; exports.generatePrefixedId = _chunkFG3I6YHAjs.generatePrefixedId; exports.getAttributeConfigSchema = _chunkFG3I6YHAjs.getAttributeConfigSchema; exports.getContext = _chunkFG3I6YHAjs.getContext; exports.getMissingRequiredAttributes = _chunkFG3I6YHAjs.getMissingRequiredAttributes; exports.getPathDepth = _chunkFG3I6YHAjs.getPathDepth; exports.getRelationPath = _chunkFG3I6YHAjs.getRelationPath; exports.getSyncPreview = _chunkFG3I6YHAjs.getSyncPreview; exports.getSystemAttributeList = _chunkFG3I6YHAjs.getSystemAttributeList; exports.getTargetAttributeName = _chunkFG3I6YHAjs.getTargetAttributeName; exports.getTenantId = _chunkFG3I6YHAjs.getTenantId; exports.getUserId = _chunkFG3I6YHAjs.getUserId; exports.getViewSyncPreview = _chunkFG3I6YHAjs.getViewSyncPreview; exports.group = _chunkFG3I6YHAjs.group; exports.hasContext = _chunkFG3I6YHAjs.hasContext; exports.hasRelationReferences = _chunkFG3I6YHAjs.hasRelationReferences; exports.isActivityTab = isActivityTab; exports.isAdvancedFilterState = isAdvancedFilterState; exports.isCustomTab = isCustomTab; exports.isDefaultRole = _chunk36UBIXJNjs.isDefaultRole; exports.isDirectTableTab = isDirectTableTab; exports.isFlowDefinition = isFlowDefinition; exports.isFlowPublished = isFlowPublished; exports.isForbiddenError = _chunkFG3I6YHAjs.isForbiddenError; exports.isFormTab = isFormTab; exports.isInverseTableTab = isInverseTableTab; exports.isLabelExpression = _chunkFG3I6YHAjs.isLabelExpression; exports.isNoValueOperator = isNoValueOperator; exports.isNotFoundError = _chunkFG3I6YHAjs.isNotFoundError; exports.isNotesTab = isNotesTab; exports.isProtectedResourceError = _chunkFG3I6YHAjs.isProtectedResourceError; exports.isRecordComplete = _chunkFG3I6YHAjs.isRecordComplete; exports.isSchemaError = _chunkFG3I6YHAjs.isSchemaError; exports.isSystemAttribute = _chunkFG3I6YHAjs.isSystemAttribute; exports.isSystemAttributeObject = _chunkFG3I6YHAjs.isSystemAttributeObject; exports.isSystemFlow = isSystemFlow; exports.isTableTab = isTableTab; exports.isUniversalRelation = _chunkFG3I6YHAjs.isUniversalRelation; exports.isValidationError = _chunkFG3I6YHAjs.isValidationError; exports.location = _chunkFG3I6YHAjs.location; exports.locationConfigSchema = _chunkFG3I6YHAjs.locationConfigSchema; exports.multiselect = _chunkFG3I6YHAjs.multiselect; exports.multiselectConfigSchema = _chunkFG3I6YHAjs.multiselectConfigSchema; exports.notesPolicy = _chunkFG3I6YHAjs.notesPolicy; exports.number = _chunkFG3I6YHAjs.number; exports.numberConfigSchema = _chunkFG3I6YHAjs.numberConfigSchema; exports.object = _chunkFG3I6YHAjs.object; exports.parseAttributeConfig = _chunkFG3I6YHAjs.parseAttributeConfig; exports.parsePath = _chunkFG3I6YHAjs.parsePath; exports.pathHasManyCardinality = _chunkFG3I6YHAjs.pathHasManyCardinality; exports.phone = _chunkFG3I6YHAjs.phone; exports.phoneConfigSchema = _chunkFG3I6YHAjs.phoneConfigSchema; exports.rating = _chunkFG3I6YHAjs.rating; exports.ratingConfigSchema = _chunkFG3I6YHAjs.ratingConfigSchema; exports.registry = _chunkFG3I6YHAjs.registry; exports.relation = _chunkFG3I6YHAjs.relation; exports.relationConfigSchema = _chunkFG3I6YHAjs.relationConfigSchema; exports.renderLabelExpression = _chunkFG3I6YHAjs.renderLabelExpression; exports.resolveMultiplePaths = _chunkFG3I6YHAjs.resolveMultiplePaths; exports.resolveSingleValue = _chunkFG3I6YHAjs.resolveSingleValue; exports.richtext = _chunkFG3I6YHAjs.richtext; exports.richtextConfigSchema = _chunkFG3I6YHAjs.richtextConfigSchema; exports.rollup = _chunkFG3I6YHAjs.rollup; exports.rollupConfigSchema = _chunkFG3I6YHAjs.rollupConfigSchema; exports.runWithContext = _chunkFG3I6YHAjs.runWithContext; exports.safeParseAttributeConfig = _chunkFG3I6YHAjs.safeParseAttributeConfig; exports.select = _chunkFG3I6YHAjs.select; exports.selectConfigSchema = _chunkFG3I6YHAjs.selectConfigSchema; exports.status = _chunkFG3I6YHAjs.status; exports.statusConfigSchema = _chunkFG3I6YHAjs.statusConfigSchema; exports.syncAll = _chunkFG3I6YHAjs.syncAll; exports.syncNativeObjects = _chunkFG3I6YHAjs.syncNativeObjects; exports.syncNativeViews = _chunkFG3I6YHAjs.syncNativeViews; exports.text = _chunkFG3I6YHAjs.text; exports.textConfigSchema = _chunkFG3I6YHAjs.textConfigSchema; exports.textarea = _chunkFG3I6YHAjs.textarea; exports.textareaConfigSchema = _chunkFG3I6YHAjs.textareaConfigSchema; exports.toAdvancedFilterState = toAdvancedFilterState; exports.toSimpleFilterState = toSimpleFilterState; exports.traversePath = _chunkFG3I6YHAjs.traversePath; exports.user = _chunkFG3I6YHAjs.user; exports.userConfigSchema = _chunkFG3I6YHAjs.userConfigSchema; exports.validateAttribute = _chunkFG3I6YHAjs.validateAttribute; exports.validateAttributeConfig = _chunkFG3I6YHAjs.validateAttributeConfig; exports.validateDraft = _chunkFG3I6YHAjs.validateDraft; exports.validateDraftOrThrow = _chunkFG3I6YHAjs.validateDraftOrThrow; exports.validateFormulaExpression = _chunkFG3I6YHAjs.validateFormulaExpression; exports.validateObject = _chunkFG3I6YHAjs.validateObject; exports.validateObjectOrThrow = _chunkFG3I6YHAjs.validateObjectOrThrow; exports.validatePath = _chunkFG3I6YHAjs.validatePath; exports.verifyNativeObjectsSync = _chunkFG3I6YHAjs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunkFG3I6YHAjs.verifyNativeViewsSync; exports.view = _chunkFG3I6YHAjs.view; exports.viewRegistry = viewRegistry; exports.withTenantContext = _chunkFG3I6YHAjs.withTenantContext;
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
exports.ALL_SYSTEM_RESOURCES = _chunk36UBIXJNjs.ALL_SYSTEM_RESOURCES; exports.ActivityTabConfig = _chunkUCUFSIOXjs.ActivityTabConfig; exports.AttributeInUseError = _chunkUCUFSIOXjs.AttributeInUseError; exports.AttributeNotFoundError = _chunkUCUFSIOXjs.AttributeNotFoundError; exports.AuditService = _chunkUCUFSIOXjs.AuditService; exports.CustomTabConfig = _chunkUCUFSIOXjs.CustomTabConfig; exports.DEFAULT_LABEL_FALLBACK = _chunkUCUFSIOXjs.DEFAULT_LABEL_FALLBACK; exports.DEFAULT_ROLES = _chunk36UBIXJNjs.DEFAULT_ROLES; exports.DEFAULT_ROLE_DESCRIPTIONS = _chunk36UBIXJNjs.DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_LABELS = _chunk36UBIXJNjs.DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_PERMISSIONS = _chunk36UBIXJNjs.DEFAULT_ROLE_PERMISSIONS; exports.DEFAULT_VALIDATION_MESSAGES = _chunkUCUFSIOXjs.DEFAULT_VALIDATION_MESSAGES; exports.DirectTableTabConfig = _chunkUCUFSIOXjs.DirectTableTabConfig; exports.DuplicateError = _chunkUCUFSIOXjs.DuplicateError; exports.EMPTY_VALUE_PLACEHOLDER = _chunkUCUFSIOXjs.EMPTY_VALUE_PLACEHOLDER; exports.FileNotFoundError = _chunkUCUFSIOXjs.FileNotFoundError; exports.FileService = _chunkUCUFSIOXjs.FileService; exports.FlowBuilder = _chunkUCUFSIOXjs.FlowBuilder; exports.FlowPageBuilder = _chunkUCUFSIOXjs.FlowPageBuilder; exports.FlowRowBuilder = _chunkUCUFSIOXjs.FlowRowBuilder; exports.FlowService = _chunkUCUFSIOXjs.FlowService; exports.ForbiddenError = _chunkUCUFSIOXjs.ForbiddenError; exports.GeocodingService = _chunkUCUFSIOXjs.GeocodingService; exports.GlobalSearchService = _chunkUCUFSIOXjs.GlobalSearchService; exports.GroupBuilder = _chunkUCUFSIOXjs.GroupBuilder; exports.InvalidPathError = _chunkUCUFSIOXjs.InvalidPathError; exports.InverseTableTabConfig = _chunkUCUFSIOXjs.InverseTableTabConfig; exports.MaxDepthExceededError = _chunkUCUFSIOXjs.MaxDepthExceededError; exports.NOTES = NOTES; exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS; exports.NoopGeocodingAdapter = _chunkUCUFSIOXjs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunkUCUFSIOXjs.NoopHookRegistry; exports.NotFoundError = _chunkUCUFSIOXjs.NotFoundError; exports.NotSystemObjectError = _chunkUCUFSIOXjs.NotSystemObjectError; exports.NotesTabConfig = _chunkUCUFSIOXjs.NotesTabConfig; exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE; exports.ObjectBuilder = _chunkUCUFSIOXjs.ObjectBuilder; exports.ObjectNotFoundError = _chunkUCUFSIOXjs.ObjectNotFoundError; exports.ObjectReferencedError = _chunkUCUFSIOXjs.ObjectReferencedError; exports.ObjectSchemaService = _chunkUCUFSIOXjs.ObjectSchemaService; exports.PermissionService = _chunkUCUFSIOXjs.PermissionService; exports.PolicyRegistry = _chunkUCUFSIOXjs.PolicyRegistry; exports.PolicyViolationError = _chunkUCUFSIOXjs.PolicyViolationError; exports.ProtectedResourceError = _chunkUCUFSIOXjs.ProtectedResourceError; exports.ProtectedRoleError = _chunkUCUFSIOXjs.ProtectedRoleError; exports.QueryBuilder = _chunkUCUFSIOXjs.QueryBuilder; exports.QueryMultipleResultsError = _chunkUCUFSIOXjs.QueryMultipleResultsError; exports.QueryNoResultError = _chunkUCUFSIOXjs.QueryNoResultError; exports.RELATION_TARGET_ANY = _chunkUCUFSIOXjs.RELATION_TARGET_ANY; exports.RESERVED_ATTRIBUTE_NAMES = _chunkUCUFSIOXjs.RESERVED_ATTRIBUTE_NAMES; exports.RecordNotFoundError = _chunkUCUFSIOXjs.RecordNotFoundError; exports.RecordReferencedError = _chunkUCUFSIOXjs.RecordReferencedError; exports.RecordService = _chunkUCUFSIOXjs.RecordService; exports.RelationResolverService = _chunkUCUFSIOXjs.RelationResolverService; exports.RelationService = _chunkUCUFSIOXjs.RelationService; exports.RoleNotFoundError = _chunkUCUFSIOXjs.RoleNotFoundError; exports.RollupScheduler = _chunkUCUFSIOXjs.RollupScheduler; exports.RollupService = _chunkUCUFSIOXjs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunkUCUFSIOXjs.SHORTCUT_TO_FILTER_OPERATOR; exports.SYSTEM_ATTRIBUTES = _chunkUCUFSIOXjs.SYSTEM_ATTRIBUTES; exports.SYSTEM_FIELD_NAMES = _chunkUCUFSIOXjs.SYSTEM_FIELD_NAMES; exports.SYSTEM_RESOURCES = _chunk36UBIXJNjs.SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = _chunk36UBIXJNjs.SYSTEM_RESOURCE_LABELS; exports.SchemaError = _chunkUCUFSIOXjs.SchemaError; exports.SchemaErrorCode = _chunkUCUFSIOXjs.SchemaErrorCode; exports.SyncError = _chunkUCUFSIOXjs.SyncError; exports.TabBuilder = _chunkUCUFSIOXjs.TabBuilder; exports.TenantAwareRepository = _chunkUCUFSIOXjs.TenantAwareRepository; exports.TenantAwareService = _chunkUCUFSIOXjs.TenantAwareService; exports.TenantContextError = _chunkUCUFSIOXjs.TenantContextError; exports.UserProfileNotFoundError = _chunkUCUFSIOXjs.UserProfileNotFoundError; exports.UserProfileService = _chunkUCUFSIOXjs.UserProfileService; exports.UserService = _chunkUCUFSIOXjs.UserService; exports.ValidationError = _chunkUCUFSIOXjs.ValidationError; exports.ViewBuilder = _chunkUCUFSIOXjs.ViewBuilder; exports.ViewService = _chunkUCUFSIOXjs.ViewService; exports.asTenantId = _chunkUCUFSIOXjs.asTenantId; exports.asUserId = _chunkUCUFSIOXjs.asUserId; exports.attributeConfigSchemas = _chunkUCUFSIOXjs.attributeConfigSchemas; exports.buildAuditChanges = _chunkUCUFSIOXjs.buildAuditChanges; exports.checkbox = _chunkUCUFSIOXjs.checkbox; exports.checkboxConfigSchema = _chunkUCUFSIOXjs.checkboxConfigSchema; exports.computeRecordStatus = _chunkUCUFSIOXjs.computeRecordStatus; exports.createAttributeValidator = _chunkUCUFSIOXjs.createAttributeValidator; exports.createCheckboxValidator = _chunkUCUFSIOXjs.createCheckboxValidator; exports.createCurrencyValidator = _chunkUCUFSIOXjs.createCurrencyValidator; exports.createDateValidator = _chunkUCUFSIOXjs.createDateValidator; exports.createDefaultState = _chunkUCUFSIOXjs.createDefaultState; exports.createDraftValidator = _chunkUCUFSIOXjs.createDraftValidator; exports.createFileValidator = _chunkUCUFSIOXjs.createFileValidator; exports.createFormAttributeValidator = _chunkUCUFSIOXjs.createFormAttributeValidator; exports.createFormulaValidator = _chunkUCUFSIOXjs.createFormulaValidator; exports.createLocationValidator = _chunkUCUFSIOXjs.createLocationValidator; exports.createMockAdapter = _chunkUCUFSIOXjs.createMockAdapter; exports.createMultiRelationValidator = _chunkUCUFSIOXjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunkUCUFSIOXjs.createMultiselectValidator; exports.createNumberValidator = _chunkUCUFSIOXjs.createNumberValidator; exports.createObjectValidator = _chunkUCUFSIOXjs.createObjectValidator; exports.createPhoneValidator = _chunkUCUFSIOXjs.createPhoneValidator; exports.createQueryBuilder = _chunkUCUFSIOXjs.createQueryBuilder; exports.createRatingValidator = _chunkUCUFSIOXjs.createRatingValidator; exports.createRelationValidator = _chunkUCUFSIOXjs.createRelationValidator; exports.createRichtextValidator = _chunkUCUFSIOXjs.createRichtextValidator; exports.createRollupValidator = _chunkUCUFSIOXjs.createRollupValidator; exports.createSelectValidator = _chunkUCUFSIOXjs.createSelectValidator; exports.createSingleRelationValidator = _chunkUCUFSIOXjs.createSingleRelationValidator; exports.createStatusValidator = _chunkUCUFSIOXjs.createStatusValidator; exports.createTextAreaValidator = _chunkUCUFSIOXjs.createTextAreaValidator; exports.createTextValidator = _chunkUCUFSIOXjs.createTextValidator; exports.createUserValidator = _chunkUCUFSIOXjs.createUserValidator; exports.currency = _chunkUCUFSIOXjs.currency; exports.currencyConfigSchema = _chunkUCUFSIOXjs.currencyConfigSchema; exports.date = _chunkUCUFSIOXjs.date; exports.dateConfigSchema = _chunkUCUFSIOXjs.dateConfigSchema; exports.defaultPolicyRegistry = _chunkUCUFSIOXjs.defaultPolicyRegistry; exports.enrichValuesWithSelectLabels = _chunkUCUFSIOXjs.enrichValuesWithSelectLabels; exports.evaluateFormula = _chunkUCUFSIOXjs.evaluateFormula; exports.evaluateFormulaAttribute = _chunkUCUFSIOXjs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunkUCUFSIOXjs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunkUCUFSIOXjs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunkUCUFSIOXjs.evaluateFormulaWithResult; exports.extractAttributeNames = _chunkUCUFSIOXjs.extractAttributeNames; exports.extractFormulaVariables = _chunkUCUFSIOXjs.extractFormulaVariables; exports.extractRelationNames = _chunkUCUFSIOXjs.extractRelationNames; exports.extractRelationReferences = _chunkUCUFSIOXjs.extractRelationReferences; exports.file = _chunkUCUFSIOXjs.file; exports.fileConfigSchema = _chunkUCUFSIOXjs.fileConfigSchema; exports.flattenRelationsForEval = _chunkUCUFSIOXjs.flattenRelationsForEval; exports.flow = _chunkUCUFSIOXjs.flow; exports.formatAttributeValue = _chunkUCUFSIOXjs.formatAttributeValue; exports.formatFormulaResult = _chunkUCUFSIOXjs.formatFormulaResult; exports.formatRecord = _chunkUCUFSIOXjs.formatRecord; exports.formatRecords = _chunkUCUFSIOXjs.formatRecords; exports.formula = _chunkUCUFSIOXjs.formula; exports.formulaConfigSchema = _chunkUCUFSIOXjs.formulaConfigSchema; exports.generateId = _chunkUCUFSIOXjs.generateId; exports.generatePrefixedId = _chunkUCUFSIOXjs.generatePrefixedId; exports.getAttributeConfigSchema = _chunkUCUFSIOXjs.getAttributeConfigSchema; exports.getContext = _chunkUCUFSIOXjs.getContext; exports.getMissingRequiredAttributes = _chunkUCUFSIOXjs.getMissingRequiredAttributes; exports.getPathDepth = _chunkUCUFSIOXjs.getPathDepth; exports.getRelationPath = _chunkUCUFSIOXjs.getRelationPath; exports.getSyncPreview = _chunkUCUFSIOXjs.getSyncPreview; exports.getSystemAttributeList = _chunkUCUFSIOXjs.getSystemAttributeList; exports.getTargetAttributeName = _chunkUCUFSIOXjs.getTargetAttributeName; exports.getTenantId = _chunkUCUFSIOXjs.getTenantId; exports.getUserId = _chunkUCUFSIOXjs.getUserId; exports.getViewSyncPreview = _chunkUCUFSIOXjs.getViewSyncPreview; exports.group = _chunkUCUFSIOXjs.group; exports.hasContext = _chunkUCUFSIOXjs.hasContext; exports.hasRelationReferences = _chunkUCUFSIOXjs.hasRelationReferences; exports.isActivityTab = isActivityTab; exports.isAdvancedFilterState = isAdvancedFilterState; exports.isCustomTab = isCustomTab; exports.isDefaultRole = _chunk36UBIXJNjs.isDefaultRole; exports.isDirectTableTab = isDirectTableTab; exports.isFlowDefinition = isFlowDefinition; exports.isFlowPublished = isFlowPublished; exports.isForbiddenError = _chunkUCUFSIOXjs.isForbiddenError; exports.isFormTab = isFormTab; exports.isInverseTableTab = isInverseTableTab; exports.isLabelExpression = _chunkUCUFSIOXjs.isLabelExpression; exports.isNoValueOperator = isNoValueOperator; exports.isNotFoundError = _chunkUCUFSIOXjs.isNotFoundError; exports.isNotesTab = isNotesTab; exports.isProtectedResourceError = _chunkUCUFSIOXjs.isProtectedResourceError; exports.isRecordComplete = _chunkUCUFSIOXjs.isRecordComplete; exports.isSchemaError = _chunkUCUFSIOXjs.isSchemaError; exports.isSystemAttribute = _chunkUCUFSIOXjs.isSystemAttribute; exports.isSystemAttributeObject = _chunkUCUFSIOXjs.isSystemAttributeObject; exports.isSystemFlow = isSystemFlow; exports.isTableTab = isTableTab; exports.isUniversalRelation = _chunkUCUFSIOXjs.isUniversalRelation; exports.isValidationError = _chunkUCUFSIOXjs.isValidationError; exports.location = _chunkUCUFSIOXjs.location; exports.locationConfigSchema = _chunkUCUFSIOXjs.locationConfigSchema; exports.multiselect = _chunkUCUFSIOXjs.multiselect; exports.multiselectConfigSchema = _chunkUCUFSIOXjs.multiselectConfigSchema; exports.notesPolicy = _chunkUCUFSIOXjs.notesPolicy; exports.number = _chunkUCUFSIOXjs.number; exports.numberConfigSchema = _chunkUCUFSIOXjs.numberConfigSchema; exports.object = _chunkUCUFSIOXjs.object; exports.parseAttributeConfig = _chunkUCUFSIOXjs.parseAttributeConfig; exports.parsePath = _chunkUCUFSIOXjs.parsePath; exports.pathHasManyCardinality = _chunkUCUFSIOXjs.pathHasManyCardinality; exports.phone = _chunkUCUFSIOXjs.phone; exports.phoneConfigSchema = _chunkUCUFSIOXjs.phoneConfigSchema; exports.rating = _chunkUCUFSIOXjs.rating; exports.ratingConfigSchema = _chunkUCUFSIOXjs.ratingConfigSchema; exports.registry = _chunkUCUFSIOXjs.registry; exports.relation = _chunkUCUFSIOXjs.relation; exports.relationConfigSchema = _chunkUCUFSIOXjs.relationConfigSchema; exports.renderLabelExpression = _chunkUCUFSIOXjs.renderLabelExpression; exports.resolveMultiplePaths = _chunkUCUFSIOXjs.resolveMultiplePaths; exports.resolveSingleValue = _chunkUCUFSIOXjs.resolveSingleValue; exports.richtext = _chunkUCUFSIOXjs.richtext; exports.richtextConfigSchema = _chunkUCUFSIOXjs.richtextConfigSchema; exports.rollup = _chunkUCUFSIOXjs.rollup; exports.rollupConfigSchema = _chunkUCUFSIOXjs.rollupConfigSchema; exports.runWithContext = _chunkUCUFSIOXjs.runWithContext; exports.safeParseAttributeConfig = _chunkUCUFSIOXjs.safeParseAttributeConfig; exports.select = _chunkUCUFSIOXjs.select; exports.selectConfigSchema = _chunkUCUFSIOXjs.selectConfigSchema; exports.status = _chunkUCUFSIOXjs.status; exports.statusConfigSchema = _chunkUCUFSIOXjs.statusConfigSchema; exports.syncAll = _chunkUCUFSIOXjs.syncAll; exports.syncNativeObjects = _chunkUCUFSIOXjs.syncNativeObjects; exports.syncNativeViews = _chunkUCUFSIOXjs.syncNativeViews; exports.text = _chunkUCUFSIOXjs.text; exports.textConfigSchema = _chunkUCUFSIOXjs.textConfigSchema; exports.textarea = _chunkUCUFSIOXjs.textarea; exports.textareaConfigSchema = _chunkUCUFSIOXjs.textareaConfigSchema; exports.toAdvancedFilterState = toAdvancedFilterState; exports.toSimpleFilterState = toSimpleFilterState; exports.traversePath = _chunkUCUFSIOXjs.traversePath; exports.user = _chunkUCUFSIOXjs.user; exports.userConfigSchema = _chunkUCUFSIOXjs.userConfigSchema; exports.validateAttribute = _chunkUCUFSIOXjs.validateAttribute; exports.validateAttributeConfig = _chunkUCUFSIOXjs.validateAttributeConfig; exports.validateDraft = _chunkUCUFSIOXjs.validateDraft; exports.validateDraftOrThrow = _chunkUCUFSIOXjs.validateDraftOrThrow; exports.validateFormulaExpression = _chunkUCUFSIOXjs.validateFormulaExpression; exports.validateObject = _chunkUCUFSIOXjs.validateObject; exports.validateObjectOrThrow = _chunkUCUFSIOXjs.validateObjectOrThrow; exports.validatePath = _chunkUCUFSIOXjs.validatePath; exports.verifyNativeObjectsSync = _chunkUCUFSIOXjs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunkUCUFSIOXjs.verifyNativeViewsSync; exports.view = _chunkUCUFSIOXjs.view; exports.viewRegistry = viewRegistry; exports.withTenantContext = _chunkUCUFSIOXjs.withTenantContext;
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AuditService,
|
|
6
6
|
CustomTabConfig,
|
|
7
7
|
DEFAULT_LABEL_FALLBACK,
|
|
8
|
+
DEFAULT_VALIDATION_MESSAGES,
|
|
8
9
|
DirectTableTabConfig,
|
|
9
10
|
DuplicateError,
|
|
10
11
|
EMPTY_VALUE_PLACEHOLDER,
|
|
@@ -78,6 +79,7 @@ import {
|
|
|
78
79
|
createDefaultState,
|
|
79
80
|
createDraftValidator,
|
|
80
81
|
createFileValidator,
|
|
82
|
+
createFormAttributeValidator,
|
|
81
83
|
createFormulaValidator,
|
|
82
84
|
createLocationValidator,
|
|
83
85
|
createMockAdapter,
|
|
@@ -201,7 +203,7 @@ import {
|
|
|
201
203
|
verifyNativeViewsSync,
|
|
202
204
|
view,
|
|
203
205
|
withTenantContext
|
|
204
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-EIRY4I7Q.mjs";
|
|
205
207
|
import {
|
|
206
208
|
ALL_SYSTEM_RESOURCES,
|
|
207
209
|
DEFAULT_ROLES,
|
|
@@ -508,6 +510,7 @@ export {
|
|
|
508
510
|
DEFAULT_ROLE_DESCRIPTIONS,
|
|
509
511
|
DEFAULT_ROLE_LABELS,
|
|
510
512
|
DEFAULT_ROLE_PERMISSIONS,
|
|
513
|
+
DEFAULT_VALIDATION_MESSAGES,
|
|
511
514
|
DirectTableTabConfig,
|
|
512
515
|
DuplicateError,
|
|
513
516
|
EMPTY_VALUE_PLACEHOLDER,
|
|
@@ -586,6 +589,7 @@ export {
|
|
|
586
589
|
createDefaultState,
|
|
587
590
|
createDraftValidator,
|
|
588
591
|
createFileValidator,
|
|
592
|
+
createFormAttributeValidator,
|
|
589
593
|
createFormulaValidator,
|
|
590
594
|
createLocationValidator,
|
|
591
595
|
createMockAdapter,
|