@stndrds/schema 0.1.0-alpha.30 → 0.1.0-alpha.32
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-CDWZ6X5U.js → chunk-FG3I6YHA.js} +123 -12
- package/dist/{chunk-C4QEZGBF.mjs → chunk-ZTEGJPX2.mjs} +123 -12
- package/dist/index.d.mts +71 -17
- package/dist/index.d.ts +71 -17
- package/dist/index.js +16 -6
- package/dist/index.mjs +13 -3
- package/dist/{runtime-hbTw33Gx.d.mts → runtime-DyTAIaum.d.mts} +114 -15
- package/dist/{runtime-hbTw33Gx.d.ts → runtime-DyTAIaum.d.ts} +114 -15
- 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.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 FlowDefinition, q as FlowPage, r as FlowRow, I as InferAttributeValue, s as ObjectDefinition, t as Field, u as AttributeGroupField, G as Group, V as ViewDefinition,
|
|
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 FlowDefinition, q as FlowPage, r as FlowRow, I as InferAttributeValue, s as ObjectDefinition, t as Field, u as AttributeGroupField, G as Group, v as TableTab, w as InverseTableTab, V as ViewDefinition, x as Tab, y as FilterState, z as SortRule, B as DirectTableTab, E as BlockNoteContent } from './runtime-DyTAIaum.js';
|
|
2
|
+
export { bY as ActivityTab, be as AddAttribute, eu as AddAttributeInput, aO as AdvancedFilterState, bL as AssignRoleInput, d_ as AttributeChange, K as AttributeGroup, bd as AttributeMap, b9 as AttributeSchema, H as AttributeType, ea as AttributesRepository, am as AuditAction, an as AuditActorType, ao as AuditChange, ar as AuditListOptions, ap as AuditLogEntry, eg as AuditRepository, al as AuditResourceType, ej as AuditService, as as AuditServiceOptions, Q as BaseAttribute, a4 as BlockNoteBlock, a5 as BlockNoteCustomInlineContent, a6 as BlockNoteDefaultProps, a7 as BlockNoteInlineContent, a8 as BlockNoteLink, a9 as BlockNoteStyledText, aa as BlockNoteStyles, ab as BlockNoteTableCell, ac as BlockNoteTableCellProps, ad as BlockNoteTableContent, aA as CheckboxFilterOperator, bz as CompletionStatus, aq as CreateAuditLogInput, et as CreateCustomObjectInput, fi as CreateDBAttribute, fw as CreateDBFlow, fe as CreateDBObject, fs as CreateDBView, aw as CreateFile, eo as CreateFlowInput, fl as CreateObjectRecord, bK as CreatePermissionInput, bI as CreateRoleInput, bS as CreateUserProfile, eT as CreateViewInput, _ as Currency, aH as CurrencyFilterValue, bi as CustomAttributeValue, bX as CustomTab, fh as DBAttribute, fv as DBFlow, fd as DBObject, fr as DBView, f8 as DEFAULT_LABEL_FALLBACK, d5 as DatabaseAdapter, aB as DateFilterOperator, X as DateFormat, Y as DateValue, bF as EffectivePermissions, aL as ExtendedFilterRule, bs as ExtractAttributes, bm as ExtractRecord, bo as ExtractRecordInput, bp as ExtractRecordInputStrict, bn as ExtractRecordStrict, bq as ExtractRecordUpdate, br as ExtractRecordUpdateStrict, d6 as FetchResult, av as File, eW as FileContent, fq as FileListOptions, en as FileService, em as FileServiceOptions, au as FileVisibility, ec as FilesRepository, aM as FilterCombinator, aN as FilterGroup, aF as FilterOperator, aK as FilterRule, aJ as FilterValue, a_ as FlowRelation, aZ as FlowRowField, eq as FlowService, aY as FlowSlot, a$ as FlowStatus, ef as FlowsRepository, bW as FormTab, d7 as FormattedRecord, dI as FormulaResult, f6 as FullSyncOptions, f5 as FullSyncResult, b7 as GeocodingAdapter, b4 as GeocodingAutocompleteParams, b6 as GeocodingParams, er as GeocodingService, b3 as GeocodingSuggestion, eG as GetRelationOptionsParams, fo as GlobalSearchOptions, fp as GlobalSearchResultItem, es as GlobalSearchService, d8 as GroupedFetchResult, d$ as HookContext, e0 as HookDefinition, e1 as HookHandler, e4 as HookRegistry, e2 as HookType, bf as InferRecord, ba as InferRecordFromSchema, bg as InferRecordInput, bh as InferRecordUpdate, bb as InferRecordWithRequirements, d9 as InsertOptions, dM as InvalidPathError, bU as InviteUserInput, fm as ListOptions, $ as Location, a0 as LocationGranularity, dN as MaxDepthExceededError, aD as MultiselectFilterOperator, aW as NO_VALUE_OPERATORS, aV as NoValueOperator, b8 as NoopGeocodingAdapter, e3 as NoopHookRegistry, bZ as NotesTab, az as NumberFilterOperator, W as NumberUnit, aU as OPERATORS_BY_TYPE, by as ObjectAttribute, bG as ObjectPermissions, bA as ObjectRecord, ed as ObjectRecordsRepository, ex as ObjectSchemaService, ew as ObjectSchemaServiceOptions, e9 as ObjectsRepository, fy as OperationResult, ae as PartialBlockNoteBlock, af as PartialBlockNoteContent, ag as PartialBlockNoteInlineContent, ah as PartialBlockNoteLink, ai as PartialBlockNoteStyledText, aj as PartialBlockNoteTableCell, ak as PartialBlockNoteTableContent, dR as PathCardinality, dS as PathSegment, dT as PathSegmentType, bD as Permission, bB as PermissionScope, ez as PermissionService, ey as PermissionServiceOptions, eh as PermissionsRepository, Z as Phone, aI as PhoneFilterValue, bM as PolicyContext, e7 as PolicyRegistry, bO as PolicyViolationError, dl as QueryBuilder, dm as QueryBuilderOptions, da as QueryBuilderState, dh as QueryMultipleResultsError, di as QueryNoResultError, aT as QueryState, a1 as RELATION_TARGET_ANY, bt as RESERVED_ATTRIBUTE_NAMES, bk as RecordMetadata, bN as RecordPolicy, eB as RecordService, eA as RecordServiceOptions, db as RegistryMap, dc as RegistryObjectNames, a2 as RelationAttribute, aE as RelationFilterOperator, eE as RelationOption, eF as RelationOptionsResponse, eJ as RelationResolverService, eH as RelationService, eD as RelationValidationError, eC as RelationValidationResult, aG as RelativeDateValue, bv as ReservedAttributeName, eI as ResolvedRelations, b5 as ReverseGeocodingParams, bC as Role, eK as RollupResult, eN as RollupScheduler, eM as RollupSchedulerOptions, eL as RollupService, dj as SHORTCUT_TO_FILTER_OPERATOR, bu as SYSTEM_FIELD_NAMES, dU as SchemaResolver, fn as SearchOptions, aC as SelectFilterOperator, dd as ShortcutOperator, eZ as SignedUrlOptions, aS as SortDirection, J as StatusGroup, e_ as StorageAdapter, at as StorageProvider, eX as StorageUploadInput, eY as StorageUploadResult, f1 as SyncOptions, f0 as SyncResult, bw as SystemFieldName, bl as SystemFields, bH as SystemPermissions, bV as TabType, el as TenantAwareRepository, ek as TenantAwareService, dv as TenantContext, dn as TenantContextError, c6 as TenantId, ay as TextFilterOperator, bx as Timestamps, dY as TraversalOptions, dZ as TraversalResult, bc as TypedAttribute, fj as UpdateDBAttribute, fx as UpdateDBFlow, ff as UpdateDBObject, ft as UpdateDBView, ax as UpdateFile, ep as UpdateFlowInput, ev as UpdateObjectInput, bJ as UpdateRoleInput, bT as UpdateUserProfile, eU as UpdateViewInput, e$ as UploadFileInput, fk as UpsertDBAttribute, fg as UpsertDBObject, fu as UpsertDBView, c7 as UserId, bR as UserProfile, eP as UserProfileService, eO as UserProfileServiceOptions, eb as UserProfilesRepository, bP as UserRole, bE as UserRoleAssignment, eS as UserService, bQ as UserStatus, eR as UserValidationError, eQ as UserValidationResult, c5 as Uuid, cX as ValidationResult, eV as ViewService, fA as ViewSyncOptions, fz as ViewSyncResult, ee as ViewsRepository, bj as WithCustomAttributes, c8 as asTenantId, c9 as asUserId, cw as attributeConfigSchemas, ei as buildAuditChanges, ci as checkboxConfigSchema, d4 as computeRecordStatus, cV as createAttributeValidator, cD as createCheckboxValidator, cG as createCurrencyValidator, cE as createDateValidator, de as createDefaultState, c$ as createDraftValidator, cL as createFileValidator, cR as createFormulaValidator, cK as createLocationValidator, e5 as createMockAdapter, cO as createMultiRelationValidator, cJ as createMultiselectValidator, cC as createNumberValidator, cW as createObjectValidator, cF as createPhoneValidator, dk as createQueryBuilder, cQ as createRatingValidator, cP as createRelationValidator, cU as createRichtextValidator, cS as createRollupValidator, cI as createSelectValidator, cN as createSingleRelationValidator, cH as createStatusValidator, cT as createTextAreaValidator, cB as createTextValidator, cM as createUserValidator, cl as currencyConfigSchema, cj as dateConfigSchema, e6 as defaultPolicyRegistry, fc as enrichValuesWithSelectLabels, dw as evaluateFormula, dx as evaluateFormulaAttribute, dy as evaluateFormulaAttributeWithRelations, dz as evaluateFormulaWithRelations, dA as evaluateFormulaWithResult, fb as extractAttributeNames, dB as extractFormulaVariables, dC as extractRelationNames, dD as extractRelationReferences, cq as fileConfigSchema, dE as flattenRelationsForEval, dF as formatFormulaResult, df as formatRecord, dg as formatRecords, cu as formulaConfigSchema, ca as generateId, cb as generatePrefixedId, cx as getAttributeConfigSchema, dp as getContext, d2 as getMissingRequiredAttributes, dJ as getPathDepth, dK as getRelationPath, f4 as getSyncPreview, dL as getTargetAttributeName, dq as getTenantId, dr as getUserId, fD as getViewSyncPreview, ds as hasContext, dG as hasRelationReferences, c3 as isActivityTab, aP as isAdvancedFilterState, c2 as isCustomTab, c0 as isDirectTableTab, b0 as isFlowDefinition, b1 as isFlowPublished, b_ as isFormTab, c1 as isInverseTableTab, fa as isLabelExpression, aX as isNoValueOperator, c4 as isNotesTab, d3 as isRecordComplete, b2 as isSystemFlow, b$ as isTableTab, a3 as isUniversalRelation, cn as locationConfigSchema, cp as multiselectConfigSchema, e8 as notesPolicy, ch as numberConfigSchema, cz as parseAttributeConfig, dO as parsePath, dP as pathHasManyCardinality, ck as phoneConfigSchema, ct as ratingConfigSchema, cc as registry, cs as relationConfigSchema, f9 as renderLabelExpression, dV as resolveMultiplePaths, dW as resolveSingleValue, cg as richtextConfigSchema, cv as rollupConfigSchema, dt as runWithContext, cA as safeParseAttributeConfig, co as selectConfigSchema, cm as statusConfigSchema, f7 as syncAll, f2 as syncNativeObjects, fB as syncNativeViews, ce as textConfigSchema, cf as textareaConfigSchema, aQ as toAdvancedFilterState, aR as toSimpleFilterState, dX as traversePath, cr as userConfigSchema, cY as validateAttribute, cy as validateAttributeConfig, d0 as validateDraft, d1 as validateDraftOrThrow, dH as validateFormulaExpression, cZ as validateObject, c_ as validateObjectOrThrow, dQ as validatePath, f3 as verifyNativeObjectsSync, fC as verifyNativeViewsSync, cd as viewRegistry, du as withTenantContext } from './runtime-DyTAIaum.js';
|
|
3
3
|
import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -1463,13 +1463,12 @@ interface BaseTabConfig {
|
|
|
1463
1463
|
system?: boolean;
|
|
1464
1464
|
}
|
|
1465
1465
|
/**
|
|
1466
|
-
*
|
|
1466
|
+
* Base builder for configuring table tabs (shared between Direct and Inverse)
|
|
1467
1467
|
*/
|
|
1468
|
-
declare class
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
constructor(view: ViewBuilder, base: BaseTabConfig, relation: string);
|
|
1468
|
+
declare abstract class BaseTableTabConfig<T extends TableTab> {
|
|
1469
|
+
protected view: ViewBuilder;
|
|
1470
|
+
protected tabData: Partial<T>;
|
|
1471
|
+
constructor(view: ViewBuilder, tabData: Partial<T>);
|
|
1473
1472
|
/**
|
|
1474
1473
|
* Set columns to display
|
|
1475
1474
|
* @example .columns("firstName", "lastName", "email")
|
|
@@ -1494,12 +1493,17 @@ declare class TableTabConfig {
|
|
|
1494
1493
|
/**
|
|
1495
1494
|
* Set default filters
|
|
1496
1495
|
*/
|
|
1497
|
-
filters(value:
|
|
1496
|
+
filters(value: FilterState): this;
|
|
1498
1497
|
/**
|
|
1499
|
-
* Set default sort
|
|
1498
|
+
* Set default sort rules
|
|
1499
|
+
* @example .sorts([{ attribute: "lastName", direction: "asc" }])
|
|
1500
|
+
*/
|
|
1501
|
+
sorts(value: SortRule[]): this;
|
|
1502
|
+
/**
|
|
1503
|
+
* Add a single sort rule (convenience method)
|
|
1500
1504
|
* @example .sort("lastName") or .sort("createdAt", "desc")
|
|
1501
1505
|
*/
|
|
1502
|
-
sort(
|
|
1506
|
+
sort(attribute: string, direction?: "asc" | "desc"): this;
|
|
1503
1507
|
/**
|
|
1504
1508
|
* Continue building with a new tab
|
|
1505
1509
|
*/
|
|
@@ -1512,7 +1516,37 @@ declare class TableTabConfig {
|
|
|
1512
1516
|
* Build the final view definition
|
|
1513
1517
|
*/
|
|
1514
1518
|
build(): ViewDefinition;
|
|
1515
|
-
|
|
1519
|
+
protected finalize(): void;
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Builder for configuring direct table tabs (relation attribute on current object)
|
|
1523
|
+
*
|
|
1524
|
+
* @example
|
|
1525
|
+
* ```typescript
|
|
1526
|
+
* .tab("members", "Members")
|
|
1527
|
+
* .table("members") // Direct: uses the "members" relation attribute on current object
|
|
1528
|
+
* .columns("name", "email")
|
|
1529
|
+
* .crud()
|
|
1530
|
+
* ```
|
|
1531
|
+
*/
|
|
1532
|
+
declare class DirectTableTabConfig extends BaseTableTabConfig<DirectTableTab> {
|
|
1533
|
+
/** @internal */
|
|
1534
|
+
constructor(view: ViewBuilder, base: BaseTabConfig, relationAttribute: string);
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Builder for configuring inverse table tabs (another object has relation to us)
|
|
1538
|
+
*
|
|
1539
|
+
* @example
|
|
1540
|
+
* ```typescript
|
|
1541
|
+
* .tab("contacts", "Contacts")
|
|
1542
|
+
* .tableFrom("contacts", "company") // Inverse: Contact.company points to us
|
|
1543
|
+
* .columns("firstName", "lastName", "email")
|
|
1544
|
+
* .crud()
|
|
1545
|
+
* ```
|
|
1546
|
+
*/
|
|
1547
|
+
declare class InverseTableTabConfig extends BaseTableTabConfig<InverseTableTab> {
|
|
1548
|
+
/** @internal */
|
|
1549
|
+
constructor(view: ViewBuilder, base: BaseTabConfig, sourceObject: string, relationAttribute: string);
|
|
1516
1550
|
}
|
|
1517
1551
|
/**
|
|
1518
1552
|
* Builder for configuring custom tabs
|
|
@@ -1626,10 +1660,24 @@ declare class TabBuilder {
|
|
|
1626
1660
|
*/
|
|
1627
1661
|
form(...groups: (GroupBuilder | Group)[]): ViewBuilder;
|
|
1628
1662
|
/**
|
|
1629
|
-
* Create a table tab for a relation
|
|
1630
|
-
*
|
|
1663
|
+
* Create a direct table tab for a relation attribute on the current object
|
|
1664
|
+
*
|
|
1665
|
+
* Use this when the current object has a relation attribute pointing to another object.
|
|
1666
|
+
*
|
|
1667
|
+
* @param relationAttribute - Name of the relation attribute on the current object
|
|
1668
|
+
* @example .table("members").columns("name", "email").crud() // Show users from Project.members
|
|
1631
1669
|
*/
|
|
1632
|
-
table(
|
|
1670
|
+
table(relationAttribute: string): DirectTableTabConfig;
|
|
1671
|
+
/**
|
|
1672
|
+
* Create an inverse table tab showing records from another object that have a relation to us
|
|
1673
|
+
*
|
|
1674
|
+
* Use this when another object has a relation attribute pointing to the current object.
|
|
1675
|
+
*
|
|
1676
|
+
* @param sourceObject - Name of the object that has the relation to us
|
|
1677
|
+
* @param relationAttribute - Name of the relation attribute on the source object
|
|
1678
|
+
* @example .tableFrom("contacts", "company").columns("firstName", "lastName") // Show contacts where Contact.company = this
|
|
1679
|
+
*/
|
|
1680
|
+
tableFrom(sourceObject: string, relationAttribute: string): InverseTableTabConfig;
|
|
1633
1681
|
/**
|
|
1634
1682
|
* Create a custom tab with a component
|
|
1635
1683
|
* @example .custom("AnalyticsWidget").props({ period: "12m" })
|
|
@@ -1663,11 +1711,17 @@ declare class TabBuilder {
|
|
|
1663
1711
|
* group("address", "Address").fields("location").collapsible()
|
|
1664
1712
|
* )
|
|
1665
1713
|
*
|
|
1714
|
+
* // Inverse: show Contact records where Contact.company = this Company
|
|
1666
1715
|
* .tab("contacts", "Contacts").icon("users")
|
|
1667
|
-
* .
|
|
1716
|
+
* .tableFrom("contacts", "company")
|
|
1668
1717
|
* .columns("firstName", "lastName", "email")
|
|
1669
1718
|
* .crud()
|
|
1670
1719
|
*
|
|
1720
|
+
* // Direct: show User records linked via Company.members
|
|
1721
|
+
* .tab("members", "Members").icon("users")
|
|
1722
|
+
* .table("members")
|
|
1723
|
+
* .columns("name", "email")
|
|
1724
|
+
*
|
|
1671
1725
|
* .tab("analytics", "Stats").icon("bar-chart")
|
|
1672
1726
|
* .custom("CompanyAnalytics")
|
|
1673
1727
|
* .props({ period: "12m" })
|
|
@@ -1810,4 +1864,4 @@ declare const NOTES: ObjectBuilder<{
|
|
|
1810
1864
|
linkedTo?: string | undefined;
|
|
1811
1865
|
}>;
|
|
1812
1866
|
|
|
1813
|
-
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, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type ExtractAttributeName, type ExtractAttributeRequired, Field, FileAttribute, FileNotFoundError, FlowBuilder, FlowDefinition, FlowPage, FlowPageBuilder, FlowRow, FlowRowBuilder, ForbiddenError, FormulaAttribute, FormulaReturnType, Group, GroupBuilder, InferAttributeValue, 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, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -200,7 +200,8 @@
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
|
|
204
|
+
var _chunkFG3I6YHAjs = require('./chunk-FG3I6YHA.js');
|
|
204
205
|
|
|
205
206
|
|
|
206
207
|
|
|
@@ -333,6 +334,12 @@ function isFormTab(tab) {
|
|
|
333
334
|
function isTableTab(tab) {
|
|
334
335
|
return tab.type === "table";
|
|
335
336
|
}
|
|
337
|
+
function isDirectTableTab(tab) {
|
|
338
|
+
return tab.type === "table" && tab.relationMode === "direct";
|
|
339
|
+
}
|
|
340
|
+
function isInverseTableTab(tab) {
|
|
341
|
+
return tab.type === "table" && tab.relationMode === "inverse";
|
|
342
|
+
}
|
|
336
343
|
function isCustomTab(tab) {
|
|
337
344
|
return tab.type === "custom";
|
|
338
345
|
}
|
|
@@ -344,13 +351,13 @@ function isNotesTab(tab) {
|
|
|
344
351
|
}
|
|
345
352
|
|
|
346
353
|
// src/native/notes.ts
|
|
347
|
-
var NOTES =
|
|
348
|
-
|
|
354
|
+
var NOTES = _chunkFG3I6YHAjs.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(_chunkFG3I6YHAjs.text.call(void 0, { name: "title", label: "Title" }).placeholder("Untitled").required()).attribute(_chunkFG3I6YHAjs.richtext.call(void 0, { name: "content", label: "Content" }).required()).attribute(
|
|
355
|
+
_chunkFG3I6YHAjs.select.call(void 0, { name: "visibility", label: "Visibility" }).options([
|
|
349
356
|
{ id: "private", label: "Private", value: "private", icon: "lock" },
|
|
350
357
|
{ id: "shared", label: "Shared", value: "shared", icon: "users" }
|
|
351
358
|
]).defaultValue("private").required()
|
|
352
|
-
).attribute(
|
|
353
|
-
|
|
359
|
+
).attribute(_chunkFG3I6YHAjs.relation.call(void 0, { name: "linkedTo", label: "Linked To" }).toAny().hidden());
|
|
360
|
+
_chunkFG3I6YHAjs.registry.register(NOTES);
|
|
354
361
|
|
|
355
362
|
// src/views/registry.ts
|
|
356
363
|
var ViewRegistry = class {
|
|
@@ -715,4 +722,7 @@ var viewRegistry = new ViewRegistry();
|
|
|
715
722
|
|
|
716
723
|
|
|
717
724
|
|
|
718
|
-
exports.ALL_SYSTEM_RESOURCES = _chunk36UBIXJNjs.ALL_SYSTEM_RESOURCES; exports.ActivityTabConfig = _chunkCDWZ6X5Ujs.ActivityTabConfig; exports.AttributeInUseError = _chunkCDWZ6X5Ujs.AttributeInUseError; exports.AttributeNotFoundError = _chunkCDWZ6X5Ujs.AttributeNotFoundError; exports.AuditService = _chunkCDWZ6X5Ujs.AuditService; exports.CustomTabConfig = _chunkCDWZ6X5Ujs.CustomTabConfig; exports.DEFAULT_LABEL_FALLBACK = _chunkCDWZ6X5Ujs.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.DuplicateError = _chunkCDWZ6X5Ujs.DuplicateError; exports.EMPTY_VALUE_PLACEHOLDER = _chunkCDWZ6X5Ujs.EMPTY_VALUE_PLACEHOLDER; exports.FileNotFoundError = _chunkCDWZ6X5Ujs.FileNotFoundError; exports.FileService = _chunkCDWZ6X5Ujs.FileService; exports.FlowBuilder = _chunkCDWZ6X5Ujs.FlowBuilder; exports.FlowPageBuilder = _chunkCDWZ6X5Ujs.FlowPageBuilder; exports.FlowRowBuilder = _chunkCDWZ6X5Ujs.FlowRowBuilder; exports.FlowService = _chunkCDWZ6X5Ujs.FlowService; exports.ForbiddenError = _chunkCDWZ6X5Ujs.ForbiddenError; exports.GeocodingService = _chunkCDWZ6X5Ujs.GeocodingService; exports.GlobalSearchService = _chunkCDWZ6X5Ujs.GlobalSearchService; exports.GroupBuilder = _chunkCDWZ6X5Ujs.GroupBuilder; exports.InvalidPathError = _chunkCDWZ6X5Ujs.InvalidPathError; exports.MaxDepthExceededError = _chunkCDWZ6X5Ujs.MaxDepthExceededError; exports.NOTES = NOTES; exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS; exports.NoopGeocodingAdapter = _chunkCDWZ6X5Ujs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunkCDWZ6X5Ujs.NoopHookRegistry; exports.NotFoundError = _chunkCDWZ6X5Ujs.NotFoundError; exports.NotSystemObjectError = _chunkCDWZ6X5Ujs.NotSystemObjectError; exports.NotesTabConfig = _chunkCDWZ6X5Ujs.NotesTabConfig; exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE; exports.ObjectBuilder = _chunkCDWZ6X5Ujs.ObjectBuilder; exports.ObjectNotFoundError = _chunkCDWZ6X5Ujs.ObjectNotFoundError; exports.ObjectReferencedError = _chunkCDWZ6X5Ujs.ObjectReferencedError; exports.ObjectSchemaService = _chunkCDWZ6X5Ujs.ObjectSchemaService; exports.PermissionService = _chunkCDWZ6X5Ujs.PermissionService; exports.PolicyRegistry = _chunkCDWZ6X5Ujs.PolicyRegistry; exports.PolicyViolationError = _chunkCDWZ6X5Ujs.PolicyViolationError; exports.ProtectedResourceError = _chunkCDWZ6X5Ujs.ProtectedResourceError; exports.ProtectedRoleError = _chunkCDWZ6X5Ujs.ProtectedRoleError; exports.QueryBuilder = _chunkCDWZ6X5Ujs.QueryBuilder; exports.QueryMultipleResultsError = _chunkCDWZ6X5Ujs.QueryMultipleResultsError; exports.QueryNoResultError = _chunkCDWZ6X5Ujs.QueryNoResultError; exports.RELATION_TARGET_ANY = _chunkCDWZ6X5Ujs.RELATION_TARGET_ANY; exports.RESERVED_ATTRIBUTE_NAMES = _chunkCDWZ6X5Ujs.RESERVED_ATTRIBUTE_NAMES; exports.RecordNotFoundError = _chunkCDWZ6X5Ujs.RecordNotFoundError; exports.RecordReferencedError = _chunkCDWZ6X5Ujs.RecordReferencedError; exports.RecordService = _chunkCDWZ6X5Ujs.RecordService; exports.RelationResolverService = _chunkCDWZ6X5Ujs.RelationResolverService; exports.RelationService = _chunkCDWZ6X5Ujs.RelationService; exports.RoleNotFoundError = _chunkCDWZ6X5Ujs.RoleNotFoundError; exports.RollupScheduler = _chunkCDWZ6X5Ujs.RollupScheduler; exports.RollupService = _chunkCDWZ6X5Ujs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunkCDWZ6X5Ujs.SHORTCUT_TO_FILTER_OPERATOR; exports.SYSTEM_ATTRIBUTES = _chunkCDWZ6X5Ujs.SYSTEM_ATTRIBUTES; exports.SYSTEM_FIELD_NAMES = _chunkCDWZ6X5Ujs.SYSTEM_FIELD_NAMES; exports.SYSTEM_RESOURCES = _chunk36UBIXJNjs.SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = _chunk36UBIXJNjs.SYSTEM_RESOURCE_LABELS; exports.SchemaError = _chunkCDWZ6X5Ujs.SchemaError; exports.SchemaErrorCode = _chunkCDWZ6X5Ujs.SchemaErrorCode; exports.SyncError = _chunkCDWZ6X5Ujs.SyncError; exports.TabBuilder = _chunkCDWZ6X5Ujs.TabBuilder; exports.TableTabConfig = _chunkCDWZ6X5Ujs.TableTabConfig; exports.TenantAwareRepository = _chunkCDWZ6X5Ujs.TenantAwareRepository; exports.TenantAwareService = _chunkCDWZ6X5Ujs.TenantAwareService; exports.TenantContextError = _chunkCDWZ6X5Ujs.TenantContextError; exports.UserProfileNotFoundError = _chunkCDWZ6X5Ujs.UserProfileNotFoundError; exports.UserProfileService = _chunkCDWZ6X5Ujs.UserProfileService; exports.UserService = _chunkCDWZ6X5Ujs.UserService; exports.ValidationError = _chunkCDWZ6X5Ujs.ValidationError; exports.ViewBuilder = _chunkCDWZ6X5Ujs.ViewBuilder; exports.ViewService = _chunkCDWZ6X5Ujs.ViewService; exports.asTenantId = _chunkCDWZ6X5Ujs.asTenantId; exports.asUserId = _chunkCDWZ6X5Ujs.asUserId; exports.attributeConfigSchemas = _chunkCDWZ6X5Ujs.attributeConfigSchemas; exports.buildAuditChanges = _chunkCDWZ6X5Ujs.buildAuditChanges; exports.checkbox = _chunkCDWZ6X5Ujs.checkbox; exports.checkboxConfigSchema = _chunkCDWZ6X5Ujs.checkboxConfigSchema; exports.computeRecordStatus = _chunkCDWZ6X5Ujs.computeRecordStatus; exports.createAttributeValidator = _chunkCDWZ6X5Ujs.createAttributeValidator; exports.createCheckboxValidator = _chunkCDWZ6X5Ujs.createCheckboxValidator; exports.createCurrencyValidator = _chunkCDWZ6X5Ujs.createCurrencyValidator; exports.createDateValidator = _chunkCDWZ6X5Ujs.createDateValidator; exports.createDefaultState = _chunkCDWZ6X5Ujs.createDefaultState; exports.createDraftValidator = _chunkCDWZ6X5Ujs.createDraftValidator; exports.createFileValidator = _chunkCDWZ6X5Ujs.createFileValidator; exports.createFormulaValidator = _chunkCDWZ6X5Ujs.createFormulaValidator; exports.createLocationValidator = _chunkCDWZ6X5Ujs.createLocationValidator; exports.createMockAdapter = _chunkCDWZ6X5Ujs.createMockAdapter; exports.createMultiRelationValidator = _chunkCDWZ6X5Ujs.createMultiRelationValidator; exports.createMultiselectValidator = _chunkCDWZ6X5Ujs.createMultiselectValidator; exports.createNumberValidator = _chunkCDWZ6X5Ujs.createNumberValidator; exports.createObjectValidator = _chunkCDWZ6X5Ujs.createObjectValidator; exports.createPhoneValidator = _chunkCDWZ6X5Ujs.createPhoneValidator; exports.createQueryBuilder = _chunkCDWZ6X5Ujs.createQueryBuilder; exports.createRatingValidator = _chunkCDWZ6X5Ujs.createRatingValidator; exports.createRelationValidator = _chunkCDWZ6X5Ujs.createRelationValidator; exports.createRichtextValidator = _chunkCDWZ6X5Ujs.createRichtextValidator; exports.createRollupValidator = _chunkCDWZ6X5Ujs.createRollupValidator; exports.createSelectValidator = _chunkCDWZ6X5Ujs.createSelectValidator; exports.createSingleRelationValidator = _chunkCDWZ6X5Ujs.createSingleRelationValidator; exports.createStatusValidator = _chunkCDWZ6X5Ujs.createStatusValidator; exports.createTextAreaValidator = _chunkCDWZ6X5Ujs.createTextAreaValidator; exports.createTextValidator = _chunkCDWZ6X5Ujs.createTextValidator; exports.createUserValidator = _chunkCDWZ6X5Ujs.createUserValidator; exports.currency = _chunkCDWZ6X5Ujs.currency; exports.currencyConfigSchema = _chunkCDWZ6X5Ujs.currencyConfigSchema; exports.date = _chunkCDWZ6X5Ujs.date; exports.dateConfigSchema = _chunkCDWZ6X5Ujs.dateConfigSchema; exports.defaultPolicyRegistry = _chunkCDWZ6X5Ujs.defaultPolicyRegistry; exports.enrichValuesWithSelectLabels = _chunkCDWZ6X5Ujs.enrichValuesWithSelectLabels; exports.evaluateFormula = _chunkCDWZ6X5Ujs.evaluateFormula; exports.evaluateFormulaAttribute = _chunkCDWZ6X5Ujs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunkCDWZ6X5Ujs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunkCDWZ6X5Ujs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunkCDWZ6X5Ujs.evaluateFormulaWithResult; exports.extractAttributeNames = _chunkCDWZ6X5Ujs.extractAttributeNames; exports.extractFormulaVariables = _chunkCDWZ6X5Ujs.extractFormulaVariables; exports.extractRelationNames = _chunkCDWZ6X5Ujs.extractRelationNames; exports.extractRelationReferences = _chunkCDWZ6X5Ujs.extractRelationReferences; exports.file = _chunkCDWZ6X5Ujs.file; exports.fileConfigSchema = _chunkCDWZ6X5Ujs.fileConfigSchema; exports.flattenRelationsForEval = _chunkCDWZ6X5Ujs.flattenRelationsForEval; exports.flow = _chunkCDWZ6X5Ujs.flow; exports.formatAttributeValue = _chunkCDWZ6X5Ujs.formatAttributeValue; exports.formatFormulaResult = _chunkCDWZ6X5Ujs.formatFormulaResult; exports.formatRecord = _chunkCDWZ6X5Ujs.formatRecord; exports.formatRecords = _chunkCDWZ6X5Ujs.formatRecords; exports.formula = _chunkCDWZ6X5Ujs.formula; exports.formulaConfigSchema = _chunkCDWZ6X5Ujs.formulaConfigSchema; exports.generateId = _chunkCDWZ6X5Ujs.generateId; exports.generatePrefixedId = _chunkCDWZ6X5Ujs.generatePrefixedId; exports.getAttributeConfigSchema = _chunkCDWZ6X5Ujs.getAttributeConfigSchema; exports.getContext = _chunkCDWZ6X5Ujs.getContext; exports.getMissingRequiredAttributes = _chunkCDWZ6X5Ujs.getMissingRequiredAttributes; exports.getPathDepth = _chunkCDWZ6X5Ujs.getPathDepth; exports.getRelationPath = _chunkCDWZ6X5Ujs.getRelationPath; exports.getSyncPreview = _chunkCDWZ6X5Ujs.getSyncPreview; exports.getSystemAttributeList = _chunkCDWZ6X5Ujs.getSystemAttributeList; exports.getTargetAttributeName = _chunkCDWZ6X5Ujs.getTargetAttributeName; exports.getTenantId = _chunkCDWZ6X5Ujs.getTenantId; exports.getUserId = _chunkCDWZ6X5Ujs.getUserId; exports.getViewSyncPreview = _chunkCDWZ6X5Ujs.getViewSyncPreview; exports.group = _chunkCDWZ6X5Ujs.group; exports.hasContext = _chunkCDWZ6X5Ujs.hasContext; exports.hasRelationReferences = _chunkCDWZ6X5Ujs.hasRelationReferences; exports.isActivityTab = isActivityTab; exports.isAdvancedFilterState = isAdvancedFilterState; exports.isCustomTab = isCustomTab; exports.isDefaultRole = _chunk36UBIXJNjs.isDefaultRole; exports.isFlowDefinition = isFlowDefinition; exports.isFlowPublished = isFlowPublished; exports.isForbiddenError = _chunkCDWZ6X5Ujs.isForbiddenError; exports.isFormTab = isFormTab; exports.isLabelExpression = _chunkCDWZ6X5Ujs.isLabelExpression; exports.isNoValueOperator = isNoValueOperator; exports.isNotFoundError = _chunkCDWZ6X5Ujs.isNotFoundError; exports.isNotesTab = isNotesTab; exports.isProtectedResourceError = _chunkCDWZ6X5Ujs.isProtectedResourceError; exports.isRecordComplete = _chunkCDWZ6X5Ujs.isRecordComplete; exports.isSchemaError = _chunkCDWZ6X5Ujs.isSchemaError; exports.isSystemAttribute = _chunkCDWZ6X5Ujs.isSystemAttribute; exports.isSystemAttributeObject = _chunkCDWZ6X5Ujs.isSystemAttributeObject; exports.isSystemFlow = isSystemFlow; exports.isTableTab = isTableTab; exports.isUniversalRelation = _chunkCDWZ6X5Ujs.isUniversalRelation; exports.isValidationError = _chunkCDWZ6X5Ujs.isValidationError; exports.location = _chunkCDWZ6X5Ujs.location; exports.locationConfigSchema = _chunkCDWZ6X5Ujs.locationConfigSchema; exports.multiselect = _chunkCDWZ6X5Ujs.multiselect; exports.multiselectConfigSchema = _chunkCDWZ6X5Ujs.multiselectConfigSchema; exports.notesPolicy = _chunkCDWZ6X5Ujs.notesPolicy; exports.number = _chunkCDWZ6X5Ujs.number; exports.numberConfigSchema = _chunkCDWZ6X5Ujs.numberConfigSchema; exports.object = _chunkCDWZ6X5Ujs.object; exports.parseAttributeConfig = _chunkCDWZ6X5Ujs.parseAttributeConfig; exports.parsePath = _chunkCDWZ6X5Ujs.parsePath; exports.pathHasManyCardinality = _chunkCDWZ6X5Ujs.pathHasManyCardinality; exports.phone = _chunkCDWZ6X5Ujs.phone; exports.phoneConfigSchema = _chunkCDWZ6X5Ujs.phoneConfigSchema; exports.rating = _chunkCDWZ6X5Ujs.rating; exports.ratingConfigSchema = _chunkCDWZ6X5Ujs.ratingConfigSchema; exports.registry = _chunkCDWZ6X5Ujs.registry; exports.relation = _chunkCDWZ6X5Ujs.relation; exports.relationConfigSchema = _chunkCDWZ6X5Ujs.relationConfigSchema; exports.renderLabelExpression = _chunkCDWZ6X5Ujs.renderLabelExpression; exports.resolveMultiplePaths = _chunkCDWZ6X5Ujs.resolveMultiplePaths; exports.resolveSingleValue = _chunkCDWZ6X5Ujs.resolveSingleValue; exports.richtext = _chunkCDWZ6X5Ujs.richtext; exports.richtextConfigSchema = _chunkCDWZ6X5Ujs.richtextConfigSchema; exports.rollup = _chunkCDWZ6X5Ujs.rollup; exports.rollupConfigSchema = _chunkCDWZ6X5Ujs.rollupConfigSchema; exports.runWithContext = _chunkCDWZ6X5Ujs.runWithContext; exports.safeParseAttributeConfig = _chunkCDWZ6X5Ujs.safeParseAttributeConfig; exports.select = _chunkCDWZ6X5Ujs.select; exports.selectConfigSchema = _chunkCDWZ6X5Ujs.selectConfigSchema; exports.status = _chunkCDWZ6X5Ujs.status; exports.statusConfigSchema = _chunkCDWZ6X5Ujs.statusConfigSchema; exports.syncAll = _chunkCDWZ6X5Ujs.syncAll; exports.syncNativeObjects = _chunkCDWZ6X5Ujs.syncNativeObjects; exports.syncNativeViews = _chunkCDWZ6X5Ujs.syncNativeViews; exports.text = _chunkCDWZ6X5Ujs.text; exports.textConfigSchema = _chunkCDWZ6X5Ujs.textConfigSchema; exports.textarea = _chunkCDWZ6X5Ujs.textarea; exports.textareaConfigSchema = _chunkCDWZ6X5Ujs.textareaConfigSchema; exports.toAdvancedFilterState = toAdvancedFilterState; exports.toSimpleFilterState = toSimpleFilterState; exports.traversePath = _chunkCDWZ6X5Ujs.traversePath; exports.user = _chunkCDWZ6X5Ujs.user; exports.userConfigSchema = _chunkCDWZ6X5Ujs.userConfigSchema; exports.validateAttribute = _chunkCDWZ6X5Ujs.validateAttribute; exports.validateAttributeConfig = _chunkCDWZ6X5Ujs.validateAttributeConfig; exports.validateDraft = _chunkCDWZ6X5Ujs.validateDraft; exports.validateDraftOrThrow = _chunkCDWZ6X5Ujs.validateDraftOrThrow; exports.validateFormulaExpression = _chunkCDWZ6X5Ujs.validateFormulaExpression; exports.validateObject = _chunkCDWZ6X5Ujs.validateObject; exports.validateObjectOrThrow = _chunkCDWZ6X5Ujs.validateObjectOrThrow; exports.validatePath = _chunkCDWZ6X5Ujs.validatePath; exports.verifyNativeObjectsSync = _chunkCDWZ6X5Ujs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunkCDWZ6X5Ujs.verifyNativeViewsSync; exports.view = _chunkCDWZ6X5Ujs.view; exports.viewRegistry = viewRegistry; exports.withTenantContext = _chunkCDWZ6X5Ujs.withTenantContext;
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
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;
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AuditService,
|
|
6
6
|
CustomTabConfig,
|
|
7
7
|
DEFAULT_LABEL_FALLBACK,
|
|
8
|
+
DirectTableTabConfig,
|
|
8
9
|
DuplicateError,
|
|
9
10
|
EMPTY_VALUE_PLACEHOLDER,
|
|
10
11
|
FileNotFoundError,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
GlobalSearchService,
|
|
19
20
|
GroupBuilder,
|
|
20
21
|
InvalidPathError,
|
|
22
|
+
InverseTableTabConfig,
|
|
21
23
|
MaxDepthExceededError,
|
|
22
24
|
NoopGeocodingAdapter,
|
|
23
25
|
NoopHookRegistry,
|
|
@@ -53,7 +55,6 @@ import {
|
|
|
53
55
|
SchemaErrorCode,
|
|
54
56
|
SyncError,
|
|
55
57
|
TabBuilder,
|
|
56
|
-
TableTabConfig,
|
|
57
58
|
TenantAwareRepository,
|
|
58
59
|
TenantAwareService,
|
|
59
60
|
TenantContextError,
|
|
@@ -200,7 +201,7 @@ import {
|
|
|
200
201
|
verifyNativeViewsSync,
|
|
201
202
|
view,
|
|
202
203
|
withTenantContext
|
|
203
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-ZTEGJPX2.mjs";
|
|
204
205
|
import {
|
|
205
206
|
ALL_SYSTEM_RESOURCES,
|
|
206
207
|
DEFAULT_ROLES,
|
|
@@ -333,6 +334,12 @@ function isFormTab(tab) {
|
|
|
333
334
|
function isTableTab(tab) {
|
|
334
335
|
return tab.type === "table";
|
|
335
336
|
}
|
|
337
|
+
function isDirectTableTab(tab) {
|
|
338
|
+
return tab.type === "table" && tab.relationMode === "direct";
|
|
339
|
+
}
|
|
340
|
+
function isInverseTableTab(tab) {
|
|
341
|
+
return tab.type === "table" && tab.relationMode === "inverse";
|
|
342
|
+
}
|
|
336
343
|
function isCustomTab(tab) {
|
|
337
344
|
return tab.type === "custom";
|
|
338
345
|
}
|
|
@@ -501,6 +508,7 @@ export {
|
|
|
501
508
|
DEFAULT_ROLE_DESCRIPTIONS,
|
|
502
509
|
DEFAULT_ROLE_LABELS,
|
|
503
510
|
DEFAULT_ROLE_PERMISSIONS,
|
|
511
|
+
DirectTableTabConfig,
|
|
504
512
|
DuplicateError,
|
|
505
513
|
EMPTY_VALUE_PLACEHOLDER,
|
|
506
514
|
FileNotFoundError,
|
|
@@ -514,6 +522,7 @@ export {
|
|
|
514
522
|
GlobalSearchService,
|
|
515
523
|
GroupBuilder,
|
|
516
524
|
InvalidPathError,
|
|
525
|
+
InverseTableTabConfig,
|
|
517
526
|
MaxDepthExceededError,
|
|
518
527
|
NOTES,
|
|
519
528
|
NO_VALUE_OPERATORS,
|
|
@@ -554,7 +563,6 @@ export {
|
|
|
554
563
|
SchemaErrorCode,
|
|
555
564
|
SyncError,
|
|
556
565
|
TabBuilder,
|
|
557
|
-
TableTabConfig,
|
|
558
566
|
TenantAwareRepository,
|
|
559
567
|
TenantAwareService,
|
|
560
568
|
TenantContextError,
|
|
@@ -642,10 +650,12 @@ export {
|
|
|
642
650
|
isAdvancedFilterState,
|
|
643
651
|
isCustomTab,
|
|
644
652
|
isDefaultRole,
|
|
653
|
+
isDirectTableTab,
|
|
645
654
|
isFlowDefinition,
|
|
646
655
|
isFlowPublished,
|
|
647
656
|
isForbiddenError,
|
|
648
657
|
isFormTab,
|
|
658
|
+
isInverseTableTab,
|
|
649
659
|
isLabelExpression,
|
|
650
660
|
isNoValueOperator,
|
|
651
661
|
isNotFoundError,
|
|
@@ -710,7 +710,7 @@ type AuditResourceType = "record" | "object" | "attribute" | "user" | "role" | "
|
|
|
710
710
|
/**
|
|
711
711
|
* Actions that can be audited
|
|
712
712
|
*/
|
|
713
|
-
type AuditAction = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "object.created" | "object.updated" | "object.deleted" | "attribute.created" | "attribute.updated" | "attribute.deleted" | "user.created" | "user.updated" | "user.deleted" | "user.login" | "user.logout" | "role.created" | "role.updated" | "role.deleted" | "role.assigned" | "role.revoked" | "settings.updated" | "file.uploaded" | "file.updated" | "file.deleted";
|
|
713
|
+
type AuditAction = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "object.created" | "object.updated" | "object.deleted" | "attribute.created" | "attribute.updated" | "attribute.deleted" | "user.created" | "user.invited" | "user.updated" | "user.deleted" | "user.login" | "user.logout" | "role.created" | "role.updated" | "role.deleted" | "role.assigned" | "role.revoked" | "settings.updated" | "file.uploaded" | "file.updated" | "file.deleted";
|
|
714
714
|
/**
|
|
715
715
|
* Actor type - who performed the action
|
|
716
716
|
*/
|
|
@@ -2514,6 +2514,22 @@ interface UpdateUserProfile {
|
|
|
2514
2514
|
status?: UserStatus;
|
|
2515
2515
|
lastLoginAt?: Date;
|
|
2516
2516
|
}
|
|
2517
|
+
/**
|
|
2518
|
+
* Data for inviting a new user by email.
|
|
2519
|
+
* Creates a pending user profile and sends an invitation email via Supabase Auth.
|
|
2520
|
+
*/
|
|
2521
|
+
interface InviteUserInput {
|
|
2522
|
+
/** Email address to invite */
|
|
2523
|
+
email: string;
|
|
2524
|
+
/** User's first name (stored in user_metadata) */
|
|
2525
|
+
firstName?: string;
|
|
2526
|
+
/** User's last name (stored in user_metadata) */
|
|
2527
|
+
lastName?: string;
|
|
2528
|
+
/** Role to assign (defaults to "member") */
|
|
2529
|
+
role?: UserRole;
|
|
2530
|
+
/** URL to redirect after accepting invitation */
|
|
2531
|
+
redirectTo?: string;
|
|
2532
|
+
}
|
|
2517
2533
|
|
|
2518
2534
|
/**
|
|
2519
2535
|
* Inline attribute group configuration
|
|
@@ -2584,12 +2600,10 @@ interface FormTab extends BaseTab {
|
|
|
2584
2600
|
groups: Group[];
|
|
2585
2601
|
}
|
|
2586
2602
|
/**
|
|
2587
|
-
*
|
|
2603
|
+
* Shared properties for table tabs
|
|
2588
2604
|
*/
|
|
2589
|
-
interface
|
|
2605
|
+
interface TableTabBase extends BaseTab {
|
|
2590
2606
|
type: "table";
|
|
2591
|
-
/** Name of the relation attribute */
|
|
2592
|
-
relation: string;
|
|
2593
2607
|
/** Columns to display (attribute names from target object) */
|
|
2594
2608
|
columns: string[];
|
|
2595
2609
|
/** Allow creating new records */
|
|
@@ -2598,14 +2612,55 @@ interface TableTab extends BaseTab {
|
|
|
2598
2612
|
allowEdit?: boolean;
|
|
2599
2613
|
/** Allow deleting records */
|
|
2600
2614
|
allowDelete?: boolean;
|
|
2601
|
-
/** Default filters */
|
|
2602
|
-
filters?:
|
|
2603
|
-
/** Default sort */
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2615
|
+
/** Default filters applied to the table */
|
|
2616
|
+
filters?: FilterState;
|
|
2617
|
+
/** Default sort rules */
|
|
2618
|
+
sorts?: SortRule[];
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* Direct table tab - displays records from a relation attribute on the current object
|
|
2622
|
+
*
|
|
2623
|
+
* @example Project.members → shows Users linked via the "members" relation
|
|
2624
|
+
* ```typescript
|
|
2625
|
+
* {
|
|
2626
|
+
* type: "table",
|
|
2627
|
+
* relationMode: "direct",
|
|
2628
|
+
* relationAttribute: "members",
|
|
2629
|
+
* columns: ["name", "email"]
|
|
2630
|
+
* }
|
|
2631
|
+
* ```
|
|
2632
|
+
*/
|
|
2633
|
+
interface DirectTableTab extends TableTabBase {
|
|
2634
|
+
relationMode: "direct";
|
|
2635
|
+
/** Relation attribute name on the current object */
|
|
2636
|
+
relationAttribute: string;
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
* Inverse table tab - displays records from another object that have a relation to us
|
|
2640
|
+
*
|
|
2641
|
+
* @example Contact.company → on Company, shows Contacts that point to this Company
|
|
2642
|
+
* ```typescript
|
|
2643
|
+
* {
|
|
2644
|
+
* type: "table",
|
|
2645
|
+
* relationMode: "inverse",
|
|
2646
|
+
* sourceObject: "contacts",
|
|
2647
|
+
* relationAttribute: "company",
|
|
2648
|
+
* columns: ["firstName", "lastName", "email"]
|
|
2649
|
+
* }
|
|
2650
|
+
* ```
|
|
2651
|
+
*/
|
|
2652
|
+
interface InverseTableTab extends TableTabBase {
|
|
2653
|
+
relationMode: "inverse";
|
|
2654
|
+
/** Object name that has the relation to us */
|
|
2655
|
+
sourceObject: string;
|
|
2656
|
+
/** Relation attribute name on the source object that points to us */
|
|
2657
|
+
relationAttribute: string;
|
|
2608
2658
|
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Table tab - displays related records in a table
|
|
2661
|
+
* Discriminated union by relationMode for type-safe configuration
|
|
2662
|
+
*/
|
|
2663
|
+
type TableTab = DirectTableTab | InverseTableTab;
|
|
2609
2664
|
/**
|
|
2610
2665
|
* Custom tab - renders a developer-defined component
|
|
2611
2666
|
*/
|
|
@@ -2664,7 +2719,7 @@ type Tab = FormTab | TableTab | CustomTab | ActivityTab | NotesTab;
|
|
|
2664
2719
|
* object: "companies",
|
|
2665
2720
|
* tabs: [
|
|
2666
2721
|
* { type: "form", name: "general", label: "Info", groups: [...] },
|
|
2667
|
-
* { type: "table",
|
|
2722
|
+
* { type: "table", relationMode: "inverse", sourceObject: "contacts", relationAttribute: "company", columns: [...] }
|
|
2668
2723
|
* ],
|
|
2669
2724
|
* default: true,
|
|
2670
2725
|
* system: true
|
|
@@ -2700,6 +2755,14 @@ declare function isFormTab(tab: Tab): tab is FormTab;
|
|
|
2700
2755
|
* Check if a tab is a table tab
|
|
2701
2756
|
*/
|
|
2702
2757
|
declare function isTableTab(tab: Tab): tab is TableTab;
|
|
2758
|
+
/**
|
|
2759
|
+
* Check if a table tab is a direct relation tab
|
|
2760
|
+
*/
|
|
2761
|
+
declare function isDirectTableTab(tab: Tab): tab is DirectTableTab;
|
|
2762
|
+
/**
|
|
2763
|
+
* Check if a table tab is an inverse relation tab
|
|
2764
|
+
*/
|
|
2765
|
+
declare function isInverseTableTab(tab: Tab): tab is InverseTableTab;
|
|
2703
2766
|
/**
|
|
2704
2767
|
* Check if a tab is a custom tab
|
|
2705
2768
|
*/
|
|
@@ -3720,6 +3783,15 @@ interface UserProfilesRepository {
|
|
|
3720
3783
|
* Automatically filtered by current tenant context.
|
|
3721
3784
|
*/
|
|
3722
3785
|
updateLastLogin(id: Uuid): Promise<void>;
|
|
3786
|
+
/**
|
|
3787
|
+
* Invite a user by email.
|
|
3788
|
+
* Creates a pending user profile with a temporary authId.
|
|
3789
|
+
* Tenant ID is automatically set from context.
|
|
3790
|
+
*
|
|
3791
|
+
* @param data - Invitation data (email, firstName, lastName, role)
|
|
3792
|
+
* @returns Created pending user profile
|
|
3793
|
+
*/
|
|
3794
|
+
invite(data: InviteUserInput): Promise<UserProfile>;
|
|
3723
3795
|
}
|
|
3724
3796
|
/**
|
|
3725
3797
|
* Repository for files table.
|
|
@@ -4854,7 +4926,7 @@ declare class AuditService extends TenantAwareService {
|
|
|
4854
4926
|
* Log a user action
|
|
4855
4927
|
*/
|
|
4856
4928
|
logUserAction(params: {
|
|
4857
|
-
action: "user.created" | "user.updated" | "user.deleted" | "user.login" | "user.logout";
|
|
4929
|
+
action: "user.created" | "user.invited" | "user.updated" | "user.deleted" | "user.login" | "user.logout";
|
|
4858
4930
|
actorId: string;
|
|
4859
4931
|
targetUserId: string;
|
|
4860
4932
|
targetUserEmail: string;
|
|
@@ -7665,6 +7737,33 @@ declare class UserProfileService extends TenantAwareService {
|
|
|
7665
7737
|
* Check if user is admin
|
|
7666
7738
|
*/
|
|
7667
7739
|
isAdmin(profileId: string): Promise<boolean>;
|
|
7740
|
+
/**
|
|
7741
|
+
* Invite a new user by email.
|
|
7742
|
+
*
|
|
7743
|
+
* This method:
|
|
7744
|
+
* 1. Sends an invitation email via the auth provider (e.g., Supabase Auth)
|
|
7745
|
+
* 2. Creates a user profile with status "pending"
|
|
7746
|
+
* 3. Returns the created profile
|
|
7747
|
+
*
|
|
7748
|
+
* The user will receive an email with a link to accept the invitation.
|
|
7749
|
+
* When they click the link, their auth account is activated.
|
|
7750
|
+
*
|
|
7751
|
+
* @param data - Invitation data
|
|
7752
|
+
* @returns Created pending user profile
|
|
7753
|
+
*
|
|
7754
|
+
* @example
|
|
7755
|
+
* ```typescript
|
|
7756
|
+
* const profile = await service.inviteUser({
|
|
7757
|
+
* email: "john@example.com",
|
|
7758
|
+
* firstName: "John",
|
|
7759
|
+
* lastName: "Doe",
|
|
7760
|
+
* role: "member",
|
|
7761
|
+
* redirectTo: "https://app.example.com/welcome",
|
|
7762
|
+
* });
|
|
7763
|
+
* // Email sent automatically, profile.status === "pending"
|
|
7764
|
+
* ```
|
|
7765
|
+
*/
|
|
7766
|
+
inviteUser(data: InviteUserInput): Promise<UserProfile>;
|
|
7668
7767
|
}
|
|
7669
7768
|
|
|
7670
7769
|
/**
|
|
@@ -8109,4 +8208,4 @@ declare function extractAttributeNames(template: string): string[];
|
|
|
8109
8208
|
*/
|
|
8110
8209
|
declare function enrichValuesWithSelectLabels(values: Record<string, unknown>, attributes: Attribute[]): Record<string, unknown>;
|
|
8111
8210
|
|
|
8112
|
-
export { type BlockNoteBlock as $, type Attribute as A, type BlockNoteContent as B, type CheckboxAttribute as C, type DateAttribute as D, type NumberUnit as E, type FileAttribute as F, type Group as G, type DateFormat as H, type InferAttributeValue as I, type DateValue as J, type Phone as K, type LocationAttribute as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectAction as O, type PhoneAttribute as P, type Currency as Q, type RichtextAttribute as R, type SystemResource as S, type TextAttribute as T, type UserAttribute as U, type ViewDefinition as V, type Location as W, type LocationGranularity as X, RELATION_TARGET_ANY as Y, type RelationAttribute as Z, isUniversalRelation as _, type SystemAction as a, isSystemFlow as a$, type BlockNoteCustomInlineContent as a0, type BlockNoteDefaultProps as a1, type BlockNoteInlineContent as a2, type BlockNoteLink as a3, type BlockNoteStyledText as a4, type BlockNoteStyles as a5, type BlockNoteTableCell as a6, type BlockNoteTableCellProps as a7, type BlockNoteTableContent as a8, type PartialBlockNoteBlock as a9, type FilterOperator as aA, type RelativeDateValue as aB, type CurrencyFilterValue as aC, type PhoneFilterValue as aD, type FilterValue as aE, type FilterRule as aF, type ExtendedFilterRule as aG, type FilterCombinator as aH, type FilterState as aI, type FilterGroup as aJ, type AdvancedFilterState as aK, isAdvancedFilterState as aL, toAdvancedFilterState as aM, toSimpleFilterState as aN, type SortDirection as aO, type SortRule as aP, type QueryState as aQ, OPERATORS_BY_TYPE as aR, type NoValueOperator as aS, NO_VALUE_OPERATORS as aT, isNoValueOperator as aU, type FlowSlot as aV, type FlowRowField as aW, type FlowRelation as aX, type FlowStatus as aY, isFlowDefinition as aZ, isFlowPublished as a_, type PartialBlockNoteContent as aa, type PartialBlockNoteInlineContent as ab, type PartialBlockNoteLink as ac, type PartialBlockNoteStyledText as ad, type PartialBlockNoteTableCell as ae, type PartialBlockNoteTableContent as af, type AuditResourceType as ag, type AuditAction as ah, type AuditActorType as ai, type AuditChange as aj, type AuditLogEntry as ak, type CreateAuditLogInput as al, type AuditListOptions as am, type AuditServiceOptions as an, type StorageProvider as ao, type FileVisibility as ap, type File as aq, type CreateFile as ar, type UpdateFile as as, type TextFilterOperator as at, type NumberFilterOperator as au, type CheckboxFilterOperator as av, type DateFilterOperator as aw, type SelectFilterOperator as ax, type MultiselectFilterOperator as ay, type RelationFilterOperator as az, type TextAreaAttribute as b, isNotesTab as b$, type GeocodingSuggestion as b0, type GeocodingAutocompleteParams as b1, type ReverseGeocodingParams as b2, type GeocodingParams as b3, type GeocodingAdapter as b4, NoopGeocodingAdapter as b5, type AttributeSchema as b6, type InferRecordFromSchema as b7, type InferRecordWithRequirements as b8, type TypedAttribute as b9, type Permission as bA, type UserRoleAssignment as bB, type EffectivePermissions as bC, type ObjectPermissions as bD, type SystemPermissions as bE, type CreateRoleInput as bF, type UpdateRoleInput as bG, type CreatePermissionInput as bH, type AssignRoleInput as bI, type PolicyContext as bJ, type RecordPolicy as bK, PolicyViolationError as bL, type UserRole as bM, type UserStatus as bN, type UserProfile as bO, type CreateUserProfile as bP, type UpdateUserProfile as bQ, type TabType as bR, type FormTab as bS, type TableTab as bT, type CustomTab as bU, type ActivityTab as bV, type NotesTab as bW, isFormTab as bX, isTableTab as bY, isCustomTab as bZ, isActivityTab as b_, type AttributeMap as ba, type AddAttribute as bb, type InferRecord as bc, type InferRecordInput as bd, type InferRecordUpdate as be, type CustomAttributeValue as bf, type WithCustomAttributes as bg, type RecordMetadata as bh, type SystemFields as bi, type ExtractRecord as bj, type ExtractRecordStrict as bk, type ExtractRecordInput as bl, type ExtractRecordInputStrict as bm, type ExtractRecordUpdate as bn, type ExtractRecordUpdateStrict as bo, type ExtractAttributes as bp, RESERVED_ATTRIBUTE_NAMES as bq, SYSTEM_FIELD_NAMES as br, type ReservedAttributeName as bs, type SystemFieldName as bt, type Timestamps as bu, type ObjectAttribute as bv, type CompletionStatus as bw, type ObjectRecord as bx, type PermissionScope as by, type Role as bz, type RichtextFeature as c, computeRecordStatus as c$, type Uuid as c0, type TenantId as c1, type UserId as c2, asTenantId as c3, asUserId as c4, generateId as c5, generatePrefixedId as c6, registry as c7, viewRegistry as c8, textConfigSchema as c9, createPhoneValidator as cA, createCurrencyValidator as cB, createStatusValidator as cC, createSelectValidator as cD, createMultiselectValidator as cE, createLocationValidator as cF, createFileValidator as cG, createUserValidator as cH, createSingleRelationValidator as cI, createMultiRelationValidator as cJ, createRelationValidator as cK, createRatingValidator as cL, createFormulaValidator as cM, createRollupValidator as cN, createTextAreaValidator as cO, createRichtextValidator as cP, createAttributeValidator as cQ, createObjectValidator as cR, type ValidationResult as cS, validateAttribute as cT, validateObject as cU, validateObjectOrThrow as cV, createDraftValidator as cW, validateDraft as cX, validateDraftOrThrow as cY, getMissingRequiredAttributes as cZ, isRecordComplete as c_, textareaConfigSchema as ca, richtextConfigSchema as cb, numberConfigSchema as cc, checkboxConfigSchema as cd, dateConfigSchema as ce, phoneConfigSchema as cf, currencyConfigSchema as cg, statusConfigSchema as ch, locationConfigSchema as ci, selectConfigSchema as cj, multiselectConfigSchema as ck, fileConfigSchema as cl, userConfigSchema as cm, relationConfigSchema as cn, ratingConfigSchema as co, formulaConfigSchema as cp, rollupConfigSchema as cq, attributeConfigSchemas as cr, getAttributeConfigSchema as cs, validateAttributeConfig as ct, parseAttributeConfig as cu, safeParseAttributeConfig as cv, createTextValidator as cw, createNumberValidator as cx, createCheckboxValidator as cy, createDateValidator as cz, type CurrencyAttribute as d, type HookRegistry as d$, type DatabaseAdapter as d0, type FetchResult as d1, type FormattedRecord as d2, type GroupedFetchResult as d3, type InsertOptions as d4, type QueryBuilderState as d5, type RegistryMap as d6, type RegistryObjectNames as d7, type ShortcutOperator as d8, createDefaultState as d9, formatFormulaResult as dA, hasRelationReferences as dB, validateFormulaExpression as dC, type FormulaResult as dD, getPathDepth as dE, getRelationPath as dF, getTargetAttributeName as dG, InvalidPathError as dH, MaxDepthExceededError as dI, parsePath as dJ, pathHasManyCardinality as dK, validatePath as dL, type PathCardinality as dM, type PathSegment as dN, type PathSegmentType as dO, type SchemaResolver as dP, resolveMultiplePaths as dQ, resolveSingleValue as dR, traversePath as dS, type TraversalOptions as dT, type TraversalResult as dU, type AttributeChange as dV, type HookContext as dW, type HookDefinition as dX, type HookHandler as dY, type HookType as dZ, NoopHookRegistry as d_, formatRecord as da, formatRecords as db, QueryMultipleResultsError as dc, QueryNoResultError as dd, SHORTCUT_TO_FILTER_OPERATOR as de, createQueryBuilder as df, QueryBuilder as dg, type QueryBuilderOptions as dh, TenantContextError as di, getContext as dj, getTenantId as dk, getUserId as dl, hasContext as dm, runWithContext as dn, withTenantContext as dp, type TenantContext as dq, evaluateFormula as dr, evaluateFormulaAttribute as ds, evaluateFormulaAttributeWithRelations as dt, evaluateFormulaWithRelations as du, evaluateFormulaWithResult as dv, extractFormulaVariables as dw, extractRelationNames as dx, extractRelationReferences as dy, flattenRelationsForEval as dz, type Option as e, getSyncPreview as e$, createMockAdapter as e0, defaultPolicyRegistry as e1, PolicyRegistry as e2, notesPolicy as e3, type ObjectsRepository as e4, type AttributesRepository as e5, type UserProfilesRepository as e6, type FilesRepository as e7, type ObjectRecordsRepository as e8, type ViewsRepository as e9, type RelationOptionsResponse as eA, type GetRelationOptionsParams as eB, RelationService as eC, type ResolvedRelations as eD, RelationResolverService as eE, type RollupResult as eF, RollupService as eG, type RollupSchedulerOptions as eH, RollupScheduler as eI, type UserProfileServiceOptions as eJ, UserProfileService as eK, type UserValidationResult as eL, type UserValidationError as eM, UserService as eN, type CreateViewInput as eO, type UpdateViewInput as eP, ViewService as eQ, type FileContent as eR, type StorageUploadInput as eS, type StorageUploadResult as eT, type SignedUrlOptions as eU, type StorageAdapter as eV, type UploadFileInput as eW, type SyncResult as eX, type SyncOptions as eY, syncNativeObjects as eZ, verifyNativeObjectsSync as e_, type FlowsRepository as ea, type AuditRepository as eb, type PermissionsRepository as ec, buildAuditChanges as ed, AuditService as ee, TenantAwareService as ef, TenantAwareRepository as eg, type FileServiceOptions as eh, FileService as ei, type CreateFlowInput as ej, type UpdateFlowInput as ek, FlowService as el, GeocodingService as em, GlobalSearchService as en, type CreateCustomObjectInput as eo, type AddAttributeInput as ep, type UpdateObjectInput as eq, type ObjectSchemaServiceOptions as er, ObjectSchemaService as es, type PermissionServiceOptions as et, PermissionService as eu, type RecordServiceOptions as ev, RecordService as ew, type RelationValidationResult as ex, type RelationValidationError as ey, type RelationOption as ez, type StatusAttribute as f, type FullSyncResult as f0, type FullSyncOptions as f1, syncAll as f2, DEFAULT_LABEL_FALLBACK as f3, renderLabelExpression as f4, isLabelExpression as f5, extractAttributeNames as f6, enrichValuesWithSelectLabels as f7, type DBObject as f8, type CreateDBObject as f9, type UpdateDBObject as fa, type UpsertDBObject as fb, type DBAttribute as fc, type CreateDBAttribute as fd, type UpdateDBAttribute as fe, type UpsertDBAttribute as ff, type CreateObjectRecord as fg, type ListOptions as fh, type SearchOptions as fi, type GlobalSearchOptions as fj, type GlobalSearchResultItem as fk, type FileListOptions as fl, type DBView as fm, type CreateDBView as fn, type UpdateDBView as fo, type UpsertDBView as fp, type DBFlow as fq, type CreateDBFlow as fr, type UpdateDBFlow as fs, type OperationResult as ft, type ViewSyncResult as fu, type ViewSyncOptions as fv, syncNativeViews as fw, verifyNativeViewsSync as fx, getViewSyncPreview as fy, type SelectAttribute as g, type SingleRelationAttribute as h, type MultiRelationAttribute as i, type RelationTarget as j, type RatingAttribute as k, type FormulaAttribute as l, type FormulaReturnType as m, type RollupAttribute as n, type RollupFunction as o, type FlowDefinition as p, type FlowPage as q, type FlowRow as r, type ObjectDefinition as s, type Field as t, type AttributeGroupField as u, type Tab as v, type AttributeType as w, type StatusGroup as x, type AttributeGroup as y, type BaseAttribute as z };
|
|
8211
|
+
export { type Location as $, type Attribute as A, type DirectTableTab as B, type CheckboxAttribute as C, type DateAttribute as D, type BlockNoteContent as E, type FileAttribute as F, type Group as G, type AttributeType as H, type InferAttributeValue as I, type StatusGroup as J, type AttributeGroup as K, type LocationAttribute as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectAction as O, type PhoneAttribute as P, type BaseAttribute as Q, type RichtextAttribute as R, type SystemResource as S, type TextAttribute as T, type UserAttribute as U, type ViewDefinition as V, type NumberUnit as W, type DateFormat as X, type DateValue as Y, type Phone as Z, type Currency as _, type SystemAction as a, type FlowStatus as a$, type LocationGranularity as a0, RELATION_TARGET_ANY as a1, type RelationAttribute as a2, isUniversalRelation as a3, type BlockNoteBlock as a4, type BlockNoteCustomInlineContent as a5, type BlockNoteDefaultProps as a6, type BlockNoteInlineContent as a7, type BlockNoteLink as a8, type BlockNoteStyledText as a9, type CheckboxFilterOperator as aA, type DateFilterOperator as aB, type SelectFilterOperator as aC, type MultiselectFilterOperator as aD, type RelationFilterOperator as aE, type FilterOperator as aF, type RelativeDateValue as aG, type CurrencyFilterValue as aH, type PhoneFilterValue as aI, type FilterValue as aJ, type FilterRule as aK, type ExtendedFilterRule as aL, type FilterCombinator as aM, type FilterGroup as aN, type AdvancedFilterState as aO, isAdvancedFilterState as aP, toAdvancedFilterState as aQ, toSimpleFilterState as aR, type SortDirection as aS, type QueryState as aT, OPERATORS_BY_TYPE as aU, type NoValueOperator as aV, NO_VALUE_OPERATORS as aW, isNoValueOperator as aX, type FlowSlot as aY, type FlowRowField as aZ, type FlowRelation as a_, type BlockNoteStyles as aa, type BlockNoteTableCell as ab, type BlockNoteTableCellProps as ac, type BlockNoteTableContent as ad, type PartialBlockNoteBlock as ae, type PartialBlockNoteContent as af, type PartialBlockNoteInlineContent as ag, type PartialBlockNoteLink as ah, type PartialBlockNoteStyledText as ai, type PartialBlockNoteTableCell as aj, type PartialBlockNoteTableContent as ak, type AuditResourceType as al, type AuditAction as am, type AuditActorType as an, type AuditChange as ao, type AuditLogEntry as ap, type CreateAuditLogInput as aq, type AuditListOptions as ar, type AuditServiceOptions as as, type StorageProvider as at, type FileVisibility as au, type File as av, type CreateFile as aw, type UpdateFile as ax, type TextFilterOperator as ay, type NumberFilterOperator as az, type TextAreaAttribute as b, isTableTab as b$, isFlowDefinition as b0, isFlowPublished as b1, isSystemFlow as b2, type GeocodingSuggestion as b3, type GeocodingAutocompleteParams as b4, type ReverseGeocodingParams as b5, type GeocodingParams as b6, type GeocodingAdapter as b7, NoopGeocodingAdapter as b8, type AttributeSchema as b9, type ObjectRecord as bA, type PermissionScope as bB, type Role as bC, type Permission as bD, type UserRoleAssignment as bE, type EffectivePermissions as bF, type ObjectPermissions as bG, type SystemPermissions as bH, type CreateRoleInput as bI, type UpdateRoleInput as bJ, type CreatePermissionInput as bK, type AssignRoleInput as bL, type PolicyContext as bM, type RecordPolicy as bN, PolicyViolationError as bO, type UserRole as bP, type UserStatus as bQ, type UserProfile as bR, type CreateUserProfile as bS, type UpdateUserProfile as bT, type InviteUserInput as bU, type TabType as bV, type FormTab as bW, type CustomTab as bX, type ActivityTab as bY, type NotesTab as bZ, isFormTab as b_, type InferRecordFromSchema as ba, type InferRecordWithRequirements as bb, type TypedAttribute as bc, type AttributeMap as bd, type AddAttribute as be, type InferRecord as bf, type InferRecordInput as bg, type InferRecordUpdate as bh, type CustomAttributeValue as bi, type WithCustomAttributes as bj, type RecordMetadata as bk, type SystemFields as bl, type ExtractRecord as bm, type ExtractRecordStrict as bn, type ExtractRecordInput as bo, type ExtractRecordInputStrict as bp, type ExtractRecordUpdate as bq, type ExtractRecordUpdateStrict as br, type ExtractAttributes as bs, RESERVED_ATTRIBUTE_NAMES as bt, SYSTEM_FIELD_NAMES as bu, type ReservedAttributeName as bv, type SystemFieldName as bw, type Timestamps as bx, type ObjectAttribute as by, type CompletionStatus as bz, type RichtextFeature as c, createDraftValidator as c$, isDirectTableTab as c0, isInverseTableTab as c1, isCustomTab as c2, isActivityTab as c3, isNotesTab as c4, type Uuid as c5, type TenantId as c6, type UserId as c7, asTenantId as c8, asUserId as c9, safeParseAttributeConfig as cA, createTextValidator as cB, createNumberValidator as cC, createCheckboxValidator as cD, createDateValidator as cE, createPhoneValidator as cF, createCurrencyValidator as cG, createStatusValidator as cH, createSelectValidator as cI, createMultiselectValidator as cJ, createLocationValidator as cK, createFileValidator as cL, createUserValidator as cM, createSingleRelationValidator as cN, createMultiRelationValidator as cO, createRelationValidator as cP, createRatingValidator as cQ, createFormulaValidator as cR, createRollupValidator as cS, createTextAreaValidator as cT, createRichtextValidator as cU, createAttributeValidator as cV, createObjectValidator as cW, type ValidationResult as cX, validateAttribute as cY, validateObject as cZ, validateObjectOrThrow as c_, generateId as ca, generatePrefixedId as cb, registry as cc, viewRegistry as cd, textConfigSchema as ce, textareaConfigSchema as cf, richtextConfigSchema as cg, numberConfigSchema as ch, checkboxConfigSchema as ci, dateConfigSchema as cj, phoneConfigSchema as ck, currencyConfigSchema as cl, statusConfigSchema as cm, locationConfigSchema as cn, selectConfigSchema as co, multiselectConfigSchema as cp, fileConfigSchema as cq, userConfigSchema as cr, relationConfigSchema as cs, ratingConfigSchema as ct, formulaConfigSchema as cu, rollupConfigSchema as cv, attributeConfigSchemas as cw, getAttributeConfigSchema as cx, validateAttributeConfig as cy, parseAttributeConfig as cz, type CurrencyAttribute as d, type HookContext as d$, validateDraft as d0, validateDraftOrThrow as d1, getMissingRequiredAttributes as d2, isRecordComplete as d3, computeRecordStatus as d4, type DatabaseAdapter as d5, type FetchResult as d6, type FormattedRecord as d7, type GroupedFetchResult as d8, type InsertOptions as d9, evaluateFormulaWithResult as dA, extractFormulaVariables as dB, extractRelationNames as dC, extractRelationReferences as dD, flattenRelationsForEval as dE, formatFormulaResult as dF, hasRelationReferences as dG, validateFormulaExpression as dH, type FormulaResult as dI, getPathDepth as dJ, getRelationPath as dK, getTargetAttributeName as dL, InvalidPathError as dM, MaxDepthExceededError as dN, parsePath as dO, pathHasManyCardinality as dP, validatePath as dQ, type PathCardinality as dR, type PathSegment as dS, type PathSegmentType as dT, type SchemaResolver as dU, resolveMultiplePaths as dV, resolveSingleValue as dW, traversePath as dX, type TraversalOptions as dY, type TraversalResult as dZ, type AttributeChange as d_, type QueryBuilderState as da, type RegistryMap as db, type RegistryObjectNames as dc, type ShortcutOperator as dd, createDefaultState as de, formatRecord as df, formatRecords as dg, QueryMultipleResultsError as dh, QueryNoResultError as di, SHORTCUT_TO_FILTER_OPERATOR as dj, createQueryBuilder as dk, QueryBuilder as dl, type QueryBuilderOptions as dm, TenantContextError as dn, getContext as dp, getTenantId as dq, getUserId as dr, hasContext as ds, runWithContext as dt, withTenantContext as du, type TenantContext as dv, evaluateFormula as dw, evaluateFormulaAttribute as dx, evaluateFormulaAttributeWithRelations as dy, evaluateFormulaWithRelations as dz, type Option as e, type UploadFileInput as e$, type HookDefinition as e0, type HookHandler as e1, type HookType as e2, NoopHookRegistry as e3, type HookRegistry as e4, createMockAdapter as e5, defaultPolicyRegistry as e6, PolicyRegistry as e7, notesPolicy as e8, type ObjectsRepository as e9, type RecordServiceOptions as eA, RecordService as eB, type RelationValidationResult as eC, type RelationValidationError as eD, type RelationOption as eE, type RelationOptionsResponse as eF, type GetRelationOptionsParams as eG, RelationService as eH, type ResolvedRelations as eI, RelationResolverService as eJ, type RollupResult as eK, RollupService as eL, type RollupSchedulerOptions as eM, RollupScheduler as eN, type UserProfileServiceOptions as eO, UserProfileService as eP, type UserValidationResult as eQ, type UserValidationError as eR, UserService as eS, type CreateViewInput as eT, type UpdateViewInput as eU, ViewService as eV, type FileContent as eW, type StorageUploadInput as eX, type StorageUploadResult as eY, type SignedUrlOptions as eZ, type StorageAdapter as e_, type AttributesRepository as ea, type UserProfilesRepository as eb, type FilesRepository as ec, type ObjectRecordsRepository as ed, type ViewsRepository as ee, type FlowsRepository as ef, type AuditRepository as eg, type PermissionsRepository as eh, buildAuditChanges as ei, AuditService as ej, TenantAwareService as ek, TenantAwareRepository as el, type FileServiceOptions as em, FileService as en, type CreateFlowInput as eo, type UpdateFlowInput as ep, FlowService as eq, GeocodingService as er, GlobalSearchService as es, type CreateCustomObjectInput as et, type AddAttributeInput as eu, type UpdateObjectInput as ev, type ObjectSchemaServiceOptions as ew, ObjectSchemaService as ex, type PermissionServiceOptions as ey, PermissionService as ez, type StatusAttribute as f, type SyncResult as f0, type SyncOptions as f1, syncNativeObjects as f2, verifyNativeObjectsSync as f3, getSyncPreview as f4, type FullSyncResult as f5, type FullSyncOptions as f6, syncAll as f7, DEFAULT_LABEL_FALLBACK as f8, renderLabelExpression as f9, type ViewSyncOptions as fA, syncNativeViews as fB, verifyNativeViewsSync as fC, getViewSyncPreview as fD, isLabelExpression as fa, extractAttributeNames as fb, enrichValuesWithSelectLabels as fc, type DBObject as fd, type CreateDBObject as fe, type UpdateDBObject as ff, type UpsertDBObject as fg, type DBAttribute as fh, type CreateDBAttribute as fi, type UpdateDBAttribute as fj, type UpsertDBAttribute as fk, type CreateObjectRecord as fl, type ListOptions as fm, type SearchOptions as fn, type GlobalSearchOptions as fo, type GlobalSearchResultItem as fp, type FileListOptions as fq, type DBView as fr, type CreateDBView as fs, type UpdateDBView as ft, type UpsertDBView as fu, type DBFlow as fv, type CreateDBFlow as fw, type UpdateDBFlow as fx, type OperationResult as fy, type ViewSyncResult as fz, type SelectAttribute as g, type SingleRelationAttribute as h, type MultiRelationAttribute as i, type RelationTarget as j, type RatingAttribute as k, type FormulaAttribute as l, type FormulaReturnType as m, type RollupAttribute as n, type RollupFunction as o, type FlowDefinition as p, type FlowPage as q, type FlowRow as r, type ObjectDefinition as s, type Field as t, type AttributeGroupField as u, type TableTab as v, type InverseTableTab as w, type Tab as x, type FilterState as y, type SortRule as z };
|