@stndrds/schema 0.1.0-alpha.63 → 0.1.0-alpha.65
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-MUJVBSBL.mjs → chunk-A6T4UUZ2.mjs} +1308 -970
- package/dist/{chunk-KMAKDHCL.js → chunk-TOTUS3YS.js} +1615 -1277
- package/dist/index.d.mts +240 -326
- package/dist/index.d.ts +240 -326
- package/dist/index.js +51 -64
- package/dist/index.mjs +61 -74
- package/dist/{runtime-7G9tZJYC.d.ts → runtime-BgtwoMx5.d.ts} +359 -213
- package/dist/{runtime-C4U2ppAk.d.mts → runtime-DQlTgVZJ.d.mts} +359 -213
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -4
- package/dist/runtime.mjs +1 -3
- package/dist/validation/validators.d.mts +1 -1
- package/dist/validation/validators.d.ts +1 -1
- package/dist/{validators-BIAmz0CD.d.mts → validators-BROsLGn4.d.mts} +47 -122
- package/dist/{validators-BPIB7Miq.d.ts → validators-CEzdvxEq.d.ts} +47 -122
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as SystemResource, a as SystemAction, O as ObjectAction, I as InferAttributeValue, F as Field, A as AttributeGroupField,
|
|
2
|
-
export { ad as AIBatchQuestion, ae as AIBatchQuestionAnswer, ac as AIBatchQuestionOption, a7 as AIChatMessage, a6 as AIChatMessagePart, a1 as AIChatMessagePartType, aj as AIConversation, f$ as AIConversationsRepository, ak as AIMessage, ai as AIMessageAttachment, Z as AIMessageRole, ao as AIProviderMetrics, aa as AIQuestion, ab as AIQuestionAnswer, a9 as AIQuestionOption, a8 as AIQuestionType, _ as AIThinkingLevel, ag as AITodoItem, ah as AITodoList, af as AITodoStatus, a0 as AIToolCall, al as AIToolCallRecord, $ as AIToolCallStatus, an as AIUsageMetrics, g0 as AIUsageMetricsRepository, am as AIUserMemory, g1 as AIUserMemoryRepository, co as ActivityTab, bK as AddAttribute, gp as AddAttributeInput, bj as AdvancedFilterState, ca as AssignRoleInput, fP as AttributeChange, bJ as AttributeMap, bF as AttributeSchema, g2 as AttributesRepository, ar as AuditAction, as as AuditActorType, at as AuditChange, aw as AuditListOptions, au as AuditLogEntry, g3 as AuditRepository, aq as AuditResourceType, hF as AuditService, ax as AuditServiceOptions, gl as BaseRepository, gk as BaseService, B as BoundingBox, ed as CacheAdapter, eb as CacheKeyType, ee as CacheOptions, cw as CalendarViewConfig, cA as CalendarViewDefinition, de as CanvasViewport, b5 as CheckboxFilterOperator, fg as ConditionExecutor, cT as ConditionNode, d6 as ConditionOperator, cD as ConfigOverrides, ap as CreateAIMessageInput, av as CreateAuditLogInput, go as CreateCustomObjectInput, iB as CreateDBAttribute, ix as CreateDBObject, iN as CreateDBView, iR as CreateDBViewOverlay, iU as CreateDBWorkflow, j1 as CreateDBWorkflowAccessGrant, iX as CreateDBWorkflowInstance, i_ as CreateDBWorkflowInvitation, aQ as CreateDocument, aC as CreateDocumentGenerationTemplate, aU as CreateDocumentSlot, aS as CreateDocumentTemplate, b1 as CreateFile, dC as CreateGrantInput, hj as CreateGrantResult, dv as CreateInvitationInput, dw as CreateInvitationResult, iE as CreateObjectRecord, c9 as CreatePermissionInput, aW as CreateProcessingJob, hU as CreateRecordDocumentInput, hV as CreateRecordDocumentResult, c7 as CreateRoleInput, E as CreateSignatureInput, ch as CreateUserProfile, i2 as CreateViewInput, hw as CreateWorkflowInput, bc as CurrencyFilterValue, bO as CustomAttributeValue, cn as CustomTab, iA as DBAttribute, iw as DBObject, iM as DBView, iQ as DBViewOverlay, iT as DBWorkflow, j0 as DBWorkflowAccessGrant, iW as DBWorkflowInstance, iZ as DBWorkflowInvitation, im as DEFAULT_LABEL_FALLBACK, dX as DEFAULT_THEME, e4 as DatabaseAdapter, b6 as DateFilterOperator, cv as DetailViewConfig, aJ as Document, aG as DocumentAutoProcessing, X as DocumentData, fh as DocumentExecutor, hI as DocumentGenerationNotConfiguredError, hJ as DocumentGenerationService, aB as DocumentGenerationTemplate, g4 as DocumentGenerationTemplateListOptions, hH as DocumentGenerationTemplateNotFoundError, g5 as DocumentGenerationTemplatesRepository, g6 as DocumentJobsRepository, aY as DocumentListOptions, cU as DocumentNode, hK as DocumentProcessingConfig, hd as DocumentProcessingHook, hc as DocumentProcessingHookOptions, hL as DocumentProcessingService, hP as DocumentRenderError, hN as DocumentRendererOptions, hR as DocumentRendererService, hX as DocumentService, hW as DocumentServiceOptions, aL as DocumentSlot, aF as DocumentSlotDefinition, g7 as DocumentSlotsRepository, aK as DocumentStatus, aZ as DocumentTemplateListOptions, hS as DocumentTemplateService, g9 as DocumentTemplatesRepository, g8 as DocumentsRepository, cr as DocumentsTab, c4 as EffectivePermissions, fi as EndExecutor, cV as EndNode, eA as EvaluationResult, eB as EvaluationTrace, f4 as ExecutorCompleteResult, f5 as ExecutorContext, f6 as ExecutorErrorResult, fd as ExecutorRegistry, f7 as ExecutorResult, f8 as ExecutorSuccessResult, f9 as ExecutorWaitResult, bg as ExtendedFilterRule, bY as ExtractAttributes, b_ as ExtractObjectRecord, b$ as ExtractObjectRecordWithCustom, bS as ExtractRecord, bU as ExtractRecordInput, bV as ExtractRecordInputStrict, bT as ExtractRecordStrict, bW as ExtractRecordUpdate, bX as ExtractRecordUpdateStrict, aI as ExtractionField, aH as ExtractionMapping, eO as FeatureFlagsContext, eG as FeatureFlagsContextError, ej as FetchResult, b0 as File, i7 as FileContent, iL as FileListOptions, hZ as FileService, hY as FileServiceOptions, a$ as FileVisibility, ga as FilesRepository, bh as FilterCombinator, bi as FilterGroup, ba as FilterOperator, bf as FilterRule, be as FilterValue, bv as FlowDefinition, bs as FlowPage, bt as FlowRelation, br as FlowRowField, bq as FlowSlot, bu as FlowStatus, cq as FlowsTab, dO as FormContextResponse, cl as FormDensity, fj as FormExecutor, dP as FormFieldContext, cW as FormFieldRef, dQ as FormFieldRow, cX as FormNode, dR as FormNodeInfo, cm as FormTab, ek as FormattedRecord, gQ as FormulaResolverService, gP as FormulaResolverServiceOptions, fx as FormulaResult, ik as FullSyncOptions, ij as FullSyncResult, cy as GalleryViewConfig, cC as GalleryViewDefinition, dJ as GeneratedDocument, bD as GeocodingAdapter, bA as GeocodingAutocompleteParams, bC as GeocodingParams, h_ as GeocodingService, bz as GeocodingSuggestion, gE as GetRelationOptionsParams, i5 as GetViewOptions, i4 as GetViewsOptions, iI as GlobalSearchGroupedOptions, iK as GlobalSearchGroupedResult, iH as GlobalSearchOptions, iJ as GlobalSearchResultItem, h$ as GlobalSearchService, hf as GrantExpiredError, he as GrantNotFoundError, hg as GrantRevokedError, hi as GrantServiceConfig, el as GroupedFetchResult, fQ as HookContext, fR as HookDefinition, fS as HookHandler, fV as HookRegistry, fT as HookType, gL as HybridRelationValue, Q as IdentityVerificationAdapter, bL as InferRecord, bG as InferRecordFromSchema, bM as InferRecordInput, bN as InferRecordUpdate, bH as InferRecordWithRequirements, em as InsertOptions, fB as InvalidPathError, hs as InvitationAlreadyAcceptedError, hr as InvitationExpiredError, hq as InvitationNotFoundError, ht as InvitationRevokedError, hp as InvitationServiceConfig, dx as InvitationStatus, cj as InviteUserInput, e6 as JwtVerificationResult, h3 as LabelResolver, iF as ListOptions, cs as ListViewLayout, e7 as MagicLinkPayload, fC as MaxDepthExceededError, fX as MockStores, gJ as MultiRelationValue, b8 as MultiselectFilterOperator, bo as NO_VALUE_OPERATORS, bn as NoValueOperator, fa as NodeExecutor, df as NodePosition, ei as NoopCacheAdapter, bE as NoopGeocodingAdapter, fU as NoopHookRegistry, cp as NotesTab, b4 as NumberFilterOperator, bm as OPERATORS_BY_TYPE, c5 as ObjectPermissions, gb as ObjectRecordsRepository, gs as ObjectSchemaService, gr as ObjectSchemaServiceOptions, gc as ObjectsRepository, t as OcrAdapter, u as OcrInput, v as OcrOptions, x as OcrPage, w as OcrResult, y as OcrTextBlock, j3 as OperationResult, fG as PathCardinality, fH as PathSegment, fI as PathSegmentType, az as PdfTemplateField, dm as PendingAction, aE as PendingDocumentRequest, c2 as Permission, c0 as PermissionScope, i1 as PermissionService, i0 as PermissionServiceOptions, gd as PermissionsRepository, bd as PhoneFilterValue, cb as PolicyContext, fZ as PolicyRegistry, cd as PolicyViolationError, aN as ProcessingJob, aP as ProcessingJobStatus, aO as ProcessingJobType, ey as QueryBuilder, ez as QueryBuilderOptions, en as QueryBuilderState, eu as QueryMultipleResultsError, ev as QueryNoResultError, gw as QueryOptions, gy as QueryResult, bl as QueryState, dS as ReadOnlyReason, a5 as ReasoningPartData, hT as RecordDocumentsResult, bQ as RecordMetadata, cc as RecordPolicy, gz as RecordQueryService, gv as RecordQueryServiceOptions, gN as RecordResolverService, gu as RecordService, gt as RecordServiceOptions, eo as RegistryMap, ep as RegistryObjectNames, e1 as RelationAttributeInput, e2 as RelationAttributeRow, e3 as RelationAttributesRepository, b9 as RelationFilterOperator, iu as RelationLabelResolver, gC as RelationOption, gD as RelationOptionsResponse, gM as RelationPropertiesService, gI as RelationService, gF as RelationServiceOptions, gB as RelationValidationError, gA as RelationValidationResult, bb as RelativeDateValue, hM as RenderDocumentInput, hO as RenderDocumentResult, gG as ResolveIdsBatchRequest, gH as ResolveIdsBatchResponse, gO as ResolvedRelations, hm as ResumeWorkflowInput, bB as ReverseGeocodingParams, c1 as Role, hb as RollupCascadeContext, gR as RollupResult, gV as RollupScheduler, gU as RollupSchedulerOptions, gT as RollupService, gS as RollupServiceOptions, ew as SHORTCUT_TO_FILTER_OPERATOR, eW as SchemaContext, gm as SchemaContextAware, gn as SchemaContextAwareRepository, fJ as SchemaResolver, iG as SearchOptions, gx as SearchQueryOptions, b7 as SelectFilterOperator, eq as ShortcutOperator, z as SignatureAdapter, J as SignaturePosition, K as SignatureRequestResult, P as SignatureStatus, M as SignatureStatusResult, ia as SignedUrlOptions, H as SignerRequest, N as SignerStatus, gK as SingleRelationValue, aM as SlotStatus, bk as SortDirection, fk as StartExecutor, cY as StartNode, hl as StartWorkflowInput, ib as StorageAdapter, hQ as StorageDownloadNotSupportedError, a_ as StorageProvider, i8 as StorageUploadInput, i9 as StorageUploadResult, ie as SyncOptions, id as SyncResult, bR as SystemFields, c6 as SystemPermissions, ck as TabType, aA as TemplateSource, f1 as TenantContext, eF as TenantContextError, b3 as TextFilterOperator, a2 as TextPartData, dU as ThemeColors, dV as ThemeLogo, dW as ThemeTypography, a4 as ThinkingPartData, cx as TimelineViewConfig, cB as TimelineViewDefinition, hh as TokenRevokedError, a3 as ToolPartData, fN as TraversalOptions, fO as TraversalResult, bI as TypedAttribute, bZ as TypedObjectRecord, iC as UpdateDBAttribute, iy as UpdateDBObject, iO as UpdateDBView, iS as UpdateDBViewOverlay, iV as UpdateDBWorkflow, j2 as UpdateDBWorkflowAccessGrant, iY as UpdateDBWorkflowInstance, i$ as UpdateDBWorkflowInvitation, aR as UpdateDocument, aD as UpdateDocumentGenerationTemplate, aV as UpdateDocumentSlot, aT as UpdateDocumentTemplate, b2 as UpdateFile, gq as UpdateObjectInput, aX as UpdateProcessingJob, c8 as UpdateRoleInput, ci as UpdateUserProfile, i3 as UpdateViewInput, hx as UpdateWorkflowInput, ic as UploadFileInput, iD as UpsertDBAttribute, iz as UpsertDBObject, iP as UpsertDBView, cg as UserProfile, hE as UserProfileService, hD as UserProfileServiceOptions, ge as UserProfilesRepository, ce as UserRole, c3 as UserRoleAssignment, hC as UserService, cf as UserStatus, hB as UserValidationError, hA as UserValidationResult, ay as VariableMapping, Y as VerificationCheck, U as VerificationResult, R as VerifyInput, cz as ViewConfig, ct as ViewLayout, cE as ViewOverlay, e0 as ViewOverlaysRepository, i6 as ViewService, j5 as ViewSyncLogger, j6 as ViewSyncOptions, j4 as ViewSyncResult, cu as ViewTab, gf as ViewsRepository, bP as WithCustomAttributes, dD as WorkflowAccessGrant, hk as WorkflowAccessGrantService, gg as WorkflowAccessGrantsRepository, dT as WorkflowAccessMode, e8 as WorkflowAccessPayload, dn as WorkflowError, dK as WorkflowExecutionContext, dp as WorkflowInstance, ho as WorkflowInstanceService, hn as WorkflowInstanceServiceOptions, gh as WorkflowInstancesRepository, dy as WorkflowInvitation, hu as WorkflowInvitationService, gi as WorkflowInvitationsRepository, e9 as WorkflowJwtConfig, ea as WorkflowJwtPayload, e5 as WorkflowJwtService, dg as WorkflowLayout, cZ as WorkflowNodeType, hv as WorkflowRelationService, hz as WorkflowService, hy as WorkflowServiceOptions, dh as WorkflowSlot, di as WorkflowStatus, dq as WorkflowTransition, gj as WorkflowsRepository, eP as addSchemaToContext, d7 as and, gW as applyDefaultValues, hG as buildAuditChanges, gZ as buildPolicyContext, ef as cacheKeys, eg as cacheTtl, dE as canAccessNode, dr as canResumeInstance, gX as checkPermission, g_ as checkRecordAccess, h0 as checkRecordDeleteOrThrow, g$ as checkRecordModifyOrThrow, h1 as checkSharedObjectWriteAccess, fb as complete, h2 as computeLabel, iv as computeLabelWithRelations, h6 as createContextForCreate, h8 as createContextForDelete, h9 as createContextForRestore, h7 as createContextForUpdate, f2 as createDefaultExecutorRegistry, er as createDefaultState, dL as createEmptyContext, fW as createMockAdapter, ex as createQueryBuilder, ds as createStartTransition, fY as defaultPolicyRegistry, eh as defaultTtl, h5 as enrichRecordsWithFormulas, ir as enrichValuesForDisplay, is as enrichValuesWithSelectLabels, h4 as enrichWithFormulas, d8 as eq, fc as error, eD as evaluate, eC as evaluateCondition, fl as evaluateFormula, fm as evaluateFormulaAttribute, fn as evaluateFormulaAttributeWithRelations, fo as evaluateFormulaWithRelations, fp as evaluateFormulaWithResult, eE as evaluateWithTrace, iq as extractAttributeNames, fq as extractFormulaVariables, it as extractRelationIds, fr as extractRelationNames, fs as extractRelationReferences, ft as flattenRelationsForEval, fu as formatFormulaResult, es as formatRecord, et as formatRecords, dY as generateCssVariables, eX as getContext, dM as getContextValue, f3 as getDefaultExecutorRegistry, eH as getFeatureFlags, eI as getFeatureValue, c_ as getNodeOutputs, fy as getPathDepth, gY as getPolicy, fz as getRelationPath, eQ as getSchemaByNameFromContext, eR as getSchemaContext, eS as getSchemaFromContext, ii as getSyncPreview, fA as getTargetAttributeName, eY as getTenantId, eZ as getUserId, jb as getViewSeedPreview, jc as getViewSyncPreview, e_ as hasContext, eJ as hasFeatureFlagsContext, fv as hasRelationReferences, eT as hasSchemaContext, ec as hashOptions, d9 as inValues, cP as isActivityTab, c$ as isAdvancedFormNode, cH as isCalendarView, da as isConditionGroup, d0 as isConditionNode, db as isConditionRule, cO as isCustomTab, cF as isDetailView, cM as isDirectTableTab, d1 as isDocumentNode, cS as isDocumentsTab, d2 as isEndNode, eK as isFeatureEnabled, bw as isFlowDefinition, bx as isFlowPublished, cR as isFlowsTab, d3 as isFormNode, cK as isFormTab, cJ as isGalleryView, dF as isGrantExpired, dG as isGrantRevoked, dH as isGrantValid, dt as isInstanceTerminal, du as isInstanceWaiting, cN as isInverseTableTab, dz as isInvitationAccepted, dA as isInvitationExpired, dB as isInvitationValid, ip as isLabelExpression, cG as isListView, bp as isNoValueOperator, cQ as isNotesTab, d4 as isSimpleFormNode, d5 as isStartNode, by as isSystemFlow, dj as isSystemWorkflow, cL as isTableTab, cI as isTimelineView, dI as isTokenRevoked, dk as isWorkflowDefinition, dl as isWorkflowPublished, dZ as mergeWithDefaults, dc as neq, f_ as notesPolicy, dd as or, fD as parsePath, fE as pathHasManyCardinality, ha as recalculateParentRollups, d_ as registry, io as renderLabelExpression, fK as resolveMultiplePaths, fL as resolveSingleValue, e$ as runWithContext, eL as runWithFeatureFlags, eU as runWithMergedSchemaContext, eV as runWithSchemaContext, j7 as seedRegistryViews, dN as setContextValue, fe as success, il as syncAll, ig as syncNativeObjects, j8 as syncNativeViews, fM as traversePath, eM as tryGetFeatureValue, fw as validateFormulaExpression, fF as validatePath, ih as verifyNativeObjectsSync, ja as verifyNativeViewsSync, j9 as verifyRegistryViewsSeeded, d$ as viewRegistry, ff as wait, eN as withFeatureFlags, f0 as withTenantContext } from './runtime-C4U2ppAk.mjs';
|
|
3
|
-
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute,
|
|
4
|
-
export {
|
|
1
|
+
import { S as SystemResource, a as SystemAction, O as ObjectAction, I as InferAttributeValue, F as Field, A as AttributeGroupField, b as FieldGroup, R as RelationGroup, D as DetailViewLayout, c as SidePanelConfig, G as Group, d as DetailViewDefinition, e as InstanceStatus, T as Tab, f as TableTab, C as CreateMode, g as FilterState, h as SortRule, L as ListViewDefinition, W as WorkflowTheme, i as WorkflowConfig, j as SlotMode, k as ConditionGroup, l as ConditionRule, m as WorkflowNode, n as WorkflowDefinition, o as FlowRow, p as ListViewConfig, q as ListViewTab, V as ViewType, r as ViewDefinition, s as DocumentTemplate } from './runtime-DQlTgVZJ.mjs';
|
|
2
|
+
export { ae as AIBatchQuestion, af as AIBatchQuestionAnswer, ad as AIBatchQuestionOption, a8 as AIChatMessage, a7 as AIChatMessagePart, a2 as AIChatMessagePartType, ak as AIConversation, g2 as AIConversationsRepository, al as AIMessage, aj as AIMessageAttachment, _ as AIMessageRole, ap as AIProviderMetrics, ab as AIQuestion, ac as AIQuestionAnswer, aa as AIQuestionOption, a9 as AIQuestionType, $ as AIThinkingLevel, ah as AITodoItem, ai as AITodoList, ag as AITodoStatus, a1 as AIToolCall, am as AIToolCallRecord, a0 as AIToolCallStatus, ao as AIUsageMetrics, g3 as AIUsageMetricsRepository, an as AIUserMemory, g4 as AIUserMemoryRepository, cs as ActivityTab, bL as AddAttribute, gs as AddAttributeInput, bk as AdvancedFilterState, cb as AssignRoleInput, fT as AttributeChange, bK as AttributeMap, bG as AttributeSchema, g5 as AttributesRepository, as as AuditAction, at as AuditActorType, au as AuditChange, ax as AuditListOptions, av as AuditLogEntry, g6 as AuditRepository, ar as AuditResourceType, hI as AuditService, ay as AuditServiceOptions, go as BaseRepository, gn as BaseService, B as BoundingBox, eh as CacheAdapter, ef as CacheKeyType, ei as CacheOptions, cy as CalendarViewConfig, cC as CalendarViewDefinition, di as CanvasViewport, b6 as CheckboxFilterOperator, fk as ConditionExecutor, cX as ConditionNode, da as ConditionOperator, cF as ConfigOverrides, aq as CreateAIMessageInput, aw as CreateAuditLogInput, gr as CreateCustomObjectInput, iE as CreateDBAttribute, iA as CreateDBObject, iQ as CreateDBView, iU as CreateDBViewOverlay, iX as CreateDBWorkflow, j4 as CreateDBWorkflowAccessGrant, i_ as CreateDBWorkflowInstance, j1 as CreateDBWorkflowInvitation, aR as CreateDocument, aD as CreateDocumentGenerationTemplate, aV as CreateDocumentSlot, aT as CreateDocumentTemplate, b2 as CreateFile, dG as CreateGrantInput, hm as CreateGrantResult, dz as CreateInvitationInput, dA as CreateInvitationResult, iH as CreateObjectRecord, ca as CreatePermissionInput, aX as CreateProcessingJob, hX as CreateRecordDocumentInput, hY as CreateRecordDocumentResult, c8 as CreateRoleInput, E as CreateSignatureInput, ci as CreateUserProfile, i5 as CreateViewInput, hz as CreateWorkflowInput, bd as CurrencyFilterValue, bP as CustomAttributeValue, cr as CustomTab, iD as DBAttribute, iz as DBObject, iP as DBView, iT as DBViewOverlay, iW as DBWorkflow, j3 as DBWorkflowAccessGrant, iZ as DBWorkflowInstance, j0 as DBWorkflowInvitation, iq as DEFAULT_LABEL_FALLBACK, d$ as DEFAULT_THEME, e8 as DatabaseAdapter, b7 as DateFilterOperator, cx as DetailViewConfig, aK as Document, aH as DocumentAutoProcessing, Y as DocumentData, fl as DocumentExecutor, hL as DocumentGenerationNotConfiguredError, hM as DocumentGenerationService, aC as DocumentGenerationTemplate, g7 as DocumentGenerationTemplateListOptions, hK as DocumentGenerationTemplateNotFoundError, g8 as DocumentGenerationTemplatesRepository, g9 as DocumentJobsRepository, aZ as DocumentListOptions, cY as DocumentNode, hN as DocumentProcessingConfig, hg as DocumentProcessingHook, hf as DocumentProcessingHookOptions, hO as DocumentProcessingService, hS as DocumentRenderError, hQ as DocumentRendererOptions, hU as DocumentRendererService, h_ as DocumentService, hZ as DocumentServiceOptions, aM as DocumentSlot, aG as DocumentSlotDefinition, ga as DocumentSlotsRepository, aL as DocumentStatus, a_ as DocumentTemplateListOptions, hV as DocumentTemplateService, gc as DocumentTemplatesRepository, gb as DocumentsRepository, cv as DocumentsTab, c5 as EffectivePermissions, fm as EndExecutor, cZ as EndNode, eE as EvaluationResult, eF as EvaluationTrace, f8 as ExecutorCompleteResult, f9 as ExecutorContext, fa as ExecutorErrorResult, fh as ExecutorRegistry, fb as ExecutorResult, fc as ExecutorSuccessResult, fd as ExecutorWaitResult, bh as ExtendedFilterRule, bZ as ExtractAttributes, b$ as ExtractObjectRecord, c0 as ExtractObjectRecordWithCustom, bT as ExtractRecord, bV as ExtractRecordInput, bW as ExtractRecordInputStrict, bU as ExtractRecordStrict, bX as ExtractRecordUpdate, bY as ExtractRecordUpdateStrict, aJ as ExtractionField, aI as ExtractionMapping, eS as FeatureFlagsContext, eK as FeatureFlagsContextError, en as FetchResult, b1 as File, ia as FileContent, iO as FileListOptions, i0 as FileService, h$ as FileServiceOptions, b0 as FileVisibility, gd as FilesRepository, bi as FilterCombinator, bj as FilterGroup, bb as FilterOperator, bg as FilterRule, bf as FilterValue, bw as FlowDefinition, bt as FlowPage, bu as FlowRelation, bs as FlowRowField, br as FlowSlot, bv as FlowStatus, cu as FlowsTab, dS as FormContextResponse, cm as FormDensity, fn as FormExecutor, dT as FormFieldContext, c_ as FormFieldRef, dU as FormFieldRow, c$ as FormNode, dV as FormNodeInfo, cn as FormTab, eo as FormattedRecord, gT as FormulaResolverService, gS as FormulaResolverServiceOptions, fB as FormulaResult, io as FullSyncOptions, im as FullSyncResult, cA as GalleryViewConfig, cE as GalleryViewDefinition, dN as GeneratedDocument, bE as GeocodingAdapter, bB as GeocodingAutocompleteParams, bD as GeocodingParams, i1 as GeocodingService, bA as GeocodingSuggestion, gH as GetRelationOptionsParams, i8 as GetViewOptions, i7 as GetViewsOptions, iL as GlobalSearchGroupedOptions, iN as GlobalSearchGroupedResult, iK as GlobalSearchOptions, iM as GlobalSearchResultItem, i2 as GlobalSearchService, hi as GrantExpiredError, hh as GrantNotFoundError, hj as GrantRevokedError, hl as GrantServiceConfig, ep as GroupedFetchResult, fU as HookContext, fV as HookDefinition, fW as HookHandler, fZ as HookRegistry, fX as HookType, gO as HybridRelationValue, Q as IdentityVerificationAdapter, bM as InferRecord, bH as InferRecordFromSchema, bN as InferRecordInput, bO as InferRecordUpdate, bI as InferRecordWithRequirements, eq as InsertOptions, fF as InvalidPathError, cp as InverseSource, hv as InvitationAlreadyAcceptedError, hu as InvitationExpiredError, ht as InvitationNotFoundError, hw as InvitationRevokedError, hs as InvitationServiceConfig, dB as InvitationStatus, ck as InviteUserInput, ea as JwtVerificationResult, h6 as LabelResolver, iI as ListOptions, cw as ListViewLayout, eb as MagicLinkPayload, fG as MaxDepthExceededError, f$ as MockStores, gM as MultiRelationValue, b9 as MultiselectFilterOperator, bp as NO_VALUE_OPERATORS, bo as NoValueOperator, fe as NodeExecutor, dj as NodePosition, em as NoopCacheAdapter, bF as NoopGeocodingAdapter, fY as NoopHookRegistry, b5 as NumberFilterOperator, bn as OPERATORS_BY_TYPE, c6 as ObjectPermissions, ge as ObjectRecordsRepository, gv as ObjectSchemaService, gu as ObjectSchemaServiceOptions, gf as ObjectsRepository, t as OcrAdapter, u as OcrInput, v as OcrOptions, x as OcrPage, w as OcrResult, y as OcrTextBlock, j6 as OperationResult, fK as PathCardinality, fL as PathSegment, fM as PathSegmentType, aA as PdfTemplateField, dr as PendingAction, aF as PendingDocumentRequest, c3 as Permission, c1 as PermissionScope, i4 as PermissionService, i3 as PermissionServiceOptions, gg as PermissionsRepository, be as PhoneFilterValue, cc as PolicyContext, g1 as PolicyRegistry, ce as PolicyViolationError, aO as ProcessingJob, aQ as ProcessingJobStatus, aP as ProcessingJobType, eC as QueryBuilder, eD as QueryBuilderOptions, er as QueryBuilderState, ey as QueryMultipleResultsError, ez as QueryNoResultError, gz as QueryOptions, gB as QueryResult, bm as QueryState, dW as ReadOnlyReason, a6 as ReasoningPartData, hW as RecordDocumentsResult, bR as RecordMetadata, cd as RecordPolicy, gC as RecordQueryService, gy as RecordQueryServiceOptions, gQ as RecordResolverService, gx as RecordService, gw as RecordServiceOptions, es as RegistryMap, et as RegistryObjectNames, e5 as RelationAttributeInput, e6 as RelationAttributeRow, e7 as RelationAttributesRepository, ba as RelationFilterOperator, ix as RelationLabelResolver, gF as RelationOption, gG as RelationOptionsResponse, gP as RelationPropertiesService, gL as RelationService, gI as RelationServiceOptions, co as RelationSource, gE as RelationValidationError, gD as RelationValidationResult, bc as RelativeDateValue, hP as RenderDocumentInput, hR as RenderDocumentResult, gJ as ResolveIdsBatchRequest, gK as ResolveIdsBatchResponse, gR as ResolvedRelations, hp as ResumeWorkflowInput, bC as ReverseGeocodingParams, ct as RichtextTab, c2 as Role, he as RollupCascadeContext, gU as RollupResult, gY as RollupScheduler, gX as RollupSchedulerOptions, gW as RollupService, gV as RollupServiceOptions, eA as SHORTCUT_TO_FILTER_OPERATOR, e_ as SchemaContext, gp as SchemaContextAware, gq as SchemaContextAwareRepository, fN as SchemaResolver, iJ as SearchOptions, gA as SearchQueryOptions, b8 as SelectFilterOperator, eu as ShortcutOperator, z as SignatureAdapter, J as SignaturePosition, K as SignatureRequestResult, P as SignatureStatus, M as SignatureStatusResult, id as SignedUrlOptions, H as SignerRequest, N as SignerStatus, gN as SingleRelationValue, aN as SlotStatus, bl as SortDirection, fo as StartExecutor, d0 as StartNode, ho as StartWorkflowInput, ie as StorageAdapter, hT as StorageDownloadNotSupportedError, a$ as StorageProvider, ib as StorageUploadInput, ic as StorageUploadResult, ii as SyncOptions, ih as SyncResult, bS as SystemFields, c7 as SystemPermissions, cl as TabType, cq as TableSource, aB as TemplateSource, f5 as TenantContext, eJ as TenantContextError, b4 as TextFilterOperator, a3 as TextPartData, dY as ThemeColors, dZ as ThemeLogo, d_ as ThemeTypography, a5 as ThinkingPartData, cz as TimelineViewConfig, cD as TimelineViewDefinition, hk as TokenRevokedError, a4 as ToolPartData, fR as TraversalOptions, fS as TraversalResult, bJ as TypedAttribute, b_ as TypedObjectRecord, iF as UpdateDBAttribute, iB as UpdateDBObject, iR as UpdateDBView, iV as UpdateDBViewOverlay, iY as UpdateDBWorkflow, j5 as UpdateDBWorkflowAccessGrant, i$ as UpdateDBWorkflowInstance, j2 as UpdateDBWorkflowInvitation, aS as UpdateDocument, aE as UpdateDocumentGenerationTemplate, aW as UpdateDocumentSlot, aU as UpdateDocumentTemplate, b3 as UpdateFile, gt as UpdateObjectInput, aY as UpdateProcessingJob, c9 as UpdateRoleInput, cj as UpdateUserProfile, i6 as UpdateViewInput, hA as UpdateWorkflowInput, ig as UploadFileInput, iG as UpsertDBAttribute, iC as UpsertDBObject, iS as UpsertDBView, ch as UserProfile, hH as UserProfileService, hG as UserProfileServiceOptions, gh as UserProfilesRepository, cf as UserRole, c4 as UserRoleAssignment, hF as UserService, cg as UserStatus, hE as UserValidationError, hD as UserValidationResult, az as VariableMapping, Z as VerificationCheck, X as VerificationResult, U as VerifyInput, cB as ViewConfig, cG as ViewOverlay, e4 as ViewOverlaysRepository, i9 as ViewService, j8 as ViewSyncLogger, j9 as ViewSyncOptions, j7 as ViewSyncResult, gi as ViewsRepository, bQ as WithCustomAttributes, dH as WorkflowAccessGrant, hn as WorkflowAccessGrantService, gj as WorkflowAccessGrantsRepository, dX as WorkflowAccessMode, ec as WorkflowAccessPayload, ds as WorkflowError, dO as WorkflowExecutionContext, dt as WorkflowInstance, hr as WorkflowInstanceService, hq as WorkflowInstanceServiceOptions, gk as WorkflowInstancesRepository, dC as WorkflowInvitation, hx as WorkflowInvitationService, gl as WorkflowInvitationsRepository, ed as WorkflowJwtConfig, ee as WorkflowJwtPayload, e9 as WorkflowJwtService, dk as WorkflowLayout, d1 as WorkflowNodeType, hy as WorkflowRelationService, hC as WorkflowService, hB as WorkflowServiceOptions, dl as WorkflowSlot, dm as WorkflowStatus, du as WorkflowTransition, gm as WorkflowsRepository, eT as addSchemaToContext, db as and, gZ as applyDefaultValues, hJ as buildAuditChanges, h0 as buildPolicyContext, ej as cacheKeys, ek as cacheTtl, dI as canAccessNode, dv as canResumeInstance, g_ as checkPermission, h1 as checkRecordAccess, h3 as checkRecordDeleteOrThrow, h2 as checkRecordModifyOrThrow, h4 as checkSharedObjectWriteAccess, ff as complete, h5 as computeLabel, iy as computeLabelWithRelations, h9 as createContextForCreate, hb as createContextForDelete, hc as createContextForRestore, ha as createContextForUpdate, f6 as createDefaultExecutorRegistry, ev as createDefaultState, dP as createEmptyContext, f_ as createMockAdapter, eB as createQueryBuilder, dw as createStartTransition, g0 as defaultPolicyRegistry, el as defaultTtl, h8 as enrichRecordsWithFormulas, iu as enrichValuesForDisplay, iv as enrichValuesWithSelectLabels, h7 as enrichWithFormulas, dc as eq, fg as error, eH as evaluate, eG as evaluateCondition, fp as evaluateFormula, fq as evaluateFormulaAttribute, fr as evaluateFormulaAttributeWithRelations, fs as evaluateFormulaWithRelations, ft as evaluateFormulaWithResult, eI as evaluateWithTrace, it as extractAttributeNames, fu as extractFormulaVariables, iw as extractRelationIds, fv as extractRelationNames, fw as extractRelationReferences, fx as flattenRelationsForEval, fy as formatFormulaResult, ew as formatRecord, ex as formatRecords, e0 as generateCssVariables, e$ as getContext, dQ as getContextValue, f7 as getDefaultExecutorRegistry, eL as getFeatureFlags, eM as getFeatureValue, d2 as getNodeOutputs, fC as getPathDepth, g$ as getPolicy, fD as getRelationPath, eU as getSchemaByNameFromContext, eV as getSchemaContext, eW as getSchemaFromContext, il as getSyncPreview, fE as getTargetAttributeName, f0 as getTenantId, f1 as getUserId, je as getViewSeedPreview, jf as getViewSyncPreview, f2 as hasContext, eN as hasFeatureFlagsContext, fz as hasRelationReferences, eX as hasSchemaContext, eg as hashOptions, dd as inValues, cT as isActivityTab, d3 as isAdvancedFormNode, cJ as isCalendarView, de as isConditionGroup, d4 as isConditionNode, df as isConditionRule, cS as isCustomTab, cH as isDetailView, d5 as isDocumentNode, cW as isDocumentsTab, d6 as isEndNode, eO as isFeatureEnabled, cM as isFieldGroup, bx as isFlowDefinition, by as isFlowPublished, cV as isFlowsTab, d7 as isFormNode, cO as isFormTab, cL as isGalleryView, dJ as isGrantExpired, dK as isGrantRevoked, dL as isGrantValid, dx as isInstanceTerminal, dy as isInstanceWaiting, cR as isInverseSourceTab, dD as isInvitationAccepted, dE as isInvitationExpired, dF as isInvitationValid, is as isLabelExpression, cI as isListView, bq as isNoValueOperator, cN as isRelationGroup, cQ as isRelationSourceTab, cU as isRichtextTab, d8 as isSimpleFormNode, d9 as isStartNode, bz as isSystemFlow, dn as isSystemWorkflow, cP as isTableTab, cK as isTimelineView, dM as isTokenRevoked, dp as isWorkflowDefinition, dq as isWorkflowPublished, e1 as mergeWithDefaults, dg as neq, dh as or, fH as parsePath, fI as pathHasManyCardinality, hd as recalculateParentRollups, e2 as registry, ir as renderLabelExpression, fO as resolveMultiplePaths, fP as resolveSingleValue, f3 as runWithContext, eP as runWithFeatureFlags, eY as runWithMergedSchemaContext, eZ as runWithSchemaContext, ja as seedRegistryViews, dR as setContextValue, fi as success, ip as syncAll, ij as syncNativeObjects, jb as syncNativeViews, fQ as traversePath, eQ as tryGetFeatureValue, fA as validateFormulaExpression, fJ as validatePath, ik as verifyNativeObjectsSync, jd as verifyNativeViewsSync, jc as verifyRegistryViewsSeeded, e3 as viewRegistry, fj as wait, eR as withFeatureFlags, f4 as withTenantContext } from './runtime-DQlTgVZJ.mjs';
|
|
3
|
+
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, d as CurrencyAttribute, O as Option, S as StatusAttribute, e as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, f as FileAttribute, g as RatingAttribute, h as RelationAttribute, B as BilateralConfig, i as SingleRelationAttribute, j as MultiRelationAttribute, k as RelationTarget, l as FormulaAttribute, m as FormulaReturnType, n as RollupAttribute, o as RollupFunction, p as AttributeType, q as ObjectDefinition, r as FlagValueType, s as FeatureFlagDefinition, t as FlagLevel, u as FeatureFlagsRepository, v as StaticFlagDefault, w as ResolvedFlag } from './validators-BROsLGn4.mjs';
|
|
4
|
+
export { y as AttributeGroup, z as BaseAttribute, a6 as CompletionStatus, J as Currency, af as DEFAULT_VALIDATION_MESSAGES, G as DateFormat, H as DateValue, a9 as FORBIDDEN_PROPERTY_TYPES, _ as FeatureFlagsConfig, Z as FlagOverride, aa as ForbiddenPropertyType, K as Location, Q as LocationGranularity, E as NumberUnit, a5 as ObjectAttribute, a7 as ObjectRecord, I as Phone, ab as PropertyAttribute, ac as PropertySchema, a8 as PropertyType, V as RELATION_TARGET_ANY, $ as RESERVED_ATTRIBUTE_NAMES, a1 as ReservedAttributeName, a0 as SYSTEM_FIELD_NAMES, a4 as SharingMode, x as StatusGroup, a2 as SystemFieldName, a3 as Timestamps, ae as ValidationMessages, a$ as ValidationResult, az as attributeConfigSchemas, ak as checkboxConfigSchema, b8 as computeRecordStatus, aY as createAttributeValidator, aG as createCheckboxValidator, aJ as createCurrencyValidator, aH as createDateValidator, b3 as createDraftValidator, aO as createFileValidator, aZ as createFormAttributeValidator, aU as createFormulaValidator, aN as createLocationValidator, aR as createMultiRelationValidator, aM as createMultiselectValidator, aF as createNumberValidator, a_ as createObjectValidator, aI as createPhoneValidator, aT as createRatingValidator, aS as createRelationValidator, aX as createRichtextValidator, aV as createRollupValidator, aL as createSelectValidator, aQ as createSingleRelationValidator, aK as createStatusValidator, aW as createTextAreaValidator, aE as createTextValidator, aP as createUserValidator, an as currencyConfigSchema, al as dateConfigSchema, ay as documentConfigSchema, as as fileConfigSchema, ad as formatZodErrors, aw as formulaConfigSchema, aA as getAttributeConfigSchema, b6 as getMissingRequiredAttributes, Y as inferInverseCardinality, X as isBilateralRelation, b7 as isRecordComplete, W as isUniversalRelation, ap as locationConfigSchema, ar as multiselectConfigSchema, aj as numberConfigSchema, aC as parseAttributeConfig, am as phoneConfigSchema, av as ratingConfigSchema, au as relationConfigSchema, ai as richtextConfigSchema, ax as rollupConfigSchema, aD as safeParseAttributeConfig, aq as selectConfigSchema, ao as statusConfigSchema, ag as textConfigSchema, ah as textareaConfigSchema, at as userConfigSchema, b0 as validateAttribute, aB as validateAttributeConfig, b4 as validateDraft, b5 as validateDraftOrThrow, b1 as validateObject, b2 as validateObjectOrThrow } from './validators-BROsLGn4.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { TenantId, UserId, Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './utils.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
8
8
|
import 'jose';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -115,6 +115,27 @@ declare function isBehaviorProperty(property: string): property is BehaviorPrope
|
|
|
115
115
|
*/
|
|
116
116
|
declare function isPresentationProperty(property: string): property is PresentationProperty;
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Validation result for bilateral relations
|
|
120
|
+
*/
|
|
121
|
+
interface BilateralValidationResult {
|
|
122
|
+
valid: boolean;
|
|
123
|
+
errors: BilateralValidationError[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Error codes for bilateral relation validation
|
|
127
|
+
*/
|
|
128
|
+
interface BilateralValidationError {
|
|
129
|
+
code: "INVERSE_ATTR_NOT_FOUND" | "INVERSE_TARGET_MISMATCH" | "CIRCULAR_BILATERAL" | "CARDINALITY_CONFLICT" | "POLYMORPHIC_NOT_SUPPORTED";
|
|
130
|
+
message: string;
|
|
131
|
+
context: {
|
|
132
|
+
sourceObject: string;
|
|
133
|
+
sourceAttribute: string;
|
|
134
|
+
targetObject: string;
|
|
135
|
+
targetAttribute: string;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
118
139
|
/**
|
|
119
140
|
* Common configuration for all builders (Objects & Attributes)
|
|
120
141
|
*/
|
|
@@ -1168,6 +1189,41 @@ declare const EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
|
1168
1189
|
*/
|
|
1169
1190
|
declare function formatAttributeValue(value: unknown, attribute: Attribute): string;
|
|
1170
1191
|
|
|
1192
|
+
/**
|
|
1193
|
+
* Substitute `{{ props.X }}` tokens in a relation label using client-side props.
|
|
1194
|
+
*
|
|
1195
|
+
* The backend preserves `{{ props.X }}` and `{{ props.X | pipe }}` tokens in labels
|
|
1196
|
+
* (sentinel approach). This function resolves them on the client using the props
|
|
1197
|
+
* the client already has, leveraging the existing template engine for pipe support
|
|
1198
|
+
* (prefix, suffix, wrap, UPPER, LOWER, etc.).
|
|
1199
|
+
*
|
|
1200
|
+
* Each prop value is formatted using its attribute definition via `formatAttributeValue`
|
|
1201
|
+
* (e.g., select → label, currency → "1,500 EUR", rating → "4/5") BEFORE pipe processing.
|
|
1202
|
+
*
|
|
1203
|
+
* When props are missing or empty, the tokens and surrounding punctuation are cleaned up
|
|
1204
|
+
* so the label reads naturally (e.g., "Apple ()" → "Apple").
|
|
1205
|
+
*
|
|
1206
|
+
* @param label - The label string potentially containing `{{ props.X }}` tokens
|
|
1207
|
+
* @param props - Property values keyed by property name
|
|
1208
|
+
* @param propertyDefs - Attribute definitions for the properties (used for formatting)
|
|
1209
|
+
* @returns The label with tokens substituted and cleaned up
|
|
1210
|
+
*
|
|
1211
|
+
* @example
|
|
1212
|
+
* ```typescript
|
|
1213
|
+
* applyRelationProps(
|
|
1214
|
+
* "Apple{{ props.role | prefix:' - ' }}{{ props.pct | prefix:' (' | suffix:'%)' }}",
|
|
1215
|
+
* { role: "ceo", pct: 25 },
|
|
1216
|
+
* [{ name: "role", type: "select", options: [{ value: "ceo", label: "CEO" }] },
|
|
1217
|
+
* { name: "pct", type: "number" }]
|
|
1218
|
+
* );
|
|
1219
|
+
* // → "Apple - CEO (25%)"
|
|
1220
|
+
*
|
|
1221
|
+
* applyRelationProps("Apple{{ props.role | prefix:' - ' }}", undefined, []);
|
|
1222
|
+
* // → "Apple"
|
|
1223
|
+
* ```
|
|
1224
|
+
*/
|
|
1225
|
+
declare function applyRelationProps(label: string, props: Record<string, unknown> | undefined, propertyDefs: Attribute[] | undefined): string;
|
|
1226
|
+
|
|
1171
1227
|
/**
|
|
1172
1228
|
* System resources that can be managed through permissions.
|
|
1173
1229
|
*/
|
|
@@ -1426,146 +1482,6 @@ declare class ConcurrentModificationError extends SchemaError {
|
|
|
1426
1482
|
constructor(recordId: string);
|
|
1427
1483
|
}
|
|
1428
1484
|
|
|
1429
|
-
/**
|
|
1430
|
-
* Builder for creating PropertySchema definitions
|
|
1431
|
-
*
|
|
1432
|
-
* @example
|
|
1433
|
-
* ```typescript
|
|
1434
|
-
* const schema = new PropertySchemaBuilder()
|
|
1435
|
-
* .add("role", select => select
|
|
1436
|
-
* .label("Role")
|
|
1437
|
-
* .options([...])
|
|
1438
|
-
* .required()
|
|
1439
|
-
* )
|
|
1440
|
-
* .add("shares", number => number
|
|
1441
|
-
* .label("Shares")
|
|
1442
|
-
* .min(0)
|
|
1443
|
-
* )
|
|
1444
|
-
* .build();
|
|
1445
|
-
* ```
|
|
1446
|
-
*/
|
|
1447
|
-
declare class PropertySchemaBuilder {
|
|
1448
|
-
private definitions;
|
|
1449
|
-
/**
|
|
1450
|
-
* Add a property to the schema
|
|
1451
|
-
* The type of property is automatically detected based on the builder methods used
|
|
1452
|
-
*/
|
|
1453
|
-
add<T extends PropertyDefinition>(name: string, configure: (builder: PropertyTypeBuilder) => BasePropertyBuilder<T>): this;
|
|
1454
|
-
/**
|
|
1455
|
-
* Build the final PropertySchema
|
|
1456
|
-
*/
|
|
1457
|
-
build(): PropertySchema;
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1460
|
-
* Dispatcher that creates the appropriate typed builder based on the first method called
|
|
1461
|
-
*/
|
|
1462
|
-
declare class PropertyTypeBuilder {
|
|
1463
|
-
private name;
|
|
1464
|
-
constructor(name: string);
|
|
1465
|
-
text(): TextPropertyBuilder;
|
|
1466
|
-
textarea(): TextareaPropertyBuilder;
|
|
1467
|
-
number(): NumberPropertyBuilder;
|
|
1468
|
-
checkbox(): CheckboxPropertyBuilder;
|
|
1469
|
-
date(): DatePropertyBuilder;
|
|
1470
|
-
phone(): PhonePropertyBuilder;
|
|
1471
|
-
currency(): CurrencyPropertyBuilder;
|
|
1472
|
-
status(): StatusPropertyBuilder;
|
|
1473
|
-
select(): SelectPropertyBuilder;
|
|
1474
|
-
multiselect(): MultiselectPropertyBuilder;
|
|
1475
|
-
rating(): RatingPropertyBuilder;
|
|
1476
|
-
location(): LocationPropertyBuilder;
|
|
1477
|
-
}
|
|
1478
|
-
/**
|
|
1479
|
-
* Base builder for all property types
|
|
1480
|
-
*/
|
|
1481
|
-
declare class BasePropertyBuilder<TDefinition extends PropertyDefinition> {
|
|
1482
|
-
protected definition: Partial<TDefinition>;
|
|
1483
|
-
constructor(name: string);
|
|
1484
|
-
/**
|
|
1485
|
-
* Set the label
|
|
1486
|
-
*/
|
|
1487
|
-
label(label: string): this;
|
|
1488
|
-
/**
|
|
1489
|
-
* Mark as required
|
|
1490
|
-
*/
|
|
1491
|
-
required(): this;
|
|
1492
|
-
/**
|
|
1493
|
-
* Set description
|
|
1494
|
-
*/
|
|
1495
|
-
description(description: string): this;
|
|
1496
|
-
/**
|
|
1497
|
-
* Build the final definition
|
|
1498
|
-
*/
|
|
1499
|
-
build(): TDefinition;
|
|
1500
|
-
}
|
|
1501
|
-
declare class TextPropertyBuilder extends BasePropertyBuilder<TextPropertyDefinition> {
|
|
1502
|
-
constructor(name: string);
|
|
1503
|
-
minLength(value: number): this;
|
|
1504
|
-
maxLength(value: number): this;
|
|
1505
|
-
pattern(pattern: string): this;
|
|
1506
|
-
placeholder(value: string): this;
|
|
1507
|
-
}
|
|
1508
|
-
declare class TextareaPropertyBuilder extends BasePropertyBuilder<TextareaPropertyDefinition> {
|
|
1509
|
-
constructor(name: string);
|
|
1510
|
-
minLength(value: number): this;
|
|
1511
|
-
maxLength(value: number): this;
|
|
1512
|
-
placeholder(value: string): this;
|
|
1513
|
-
}
|
|
1514
|
-
declare class NumberPropertyBuilder extends BasePropertyBuilder<NumberPropertyDefinition> {
|
|
1515
|
-
constructor(name: string);
|
|
1516
|
-
min(value: number): this;
|
|
1517
|
-
max(value: number): this;
|
|
1518
|
-
decimal(places: number): this;
|
|
1519
|
-
integer(): this;
|
|
1520
|
-
placeholder(value: string): this;
|
|
1521
|
-
}
|
|
1522
|
-
declare class CheckboxPropertyBuilder extends BasePropertyBuilder<CheckboxPropertyDefinition> {
|
|
1523
|
-
constructor(name: string);
|
|
1524
|
-
}
|
|
1525
|
-
declare class DatePropertyBuilder extends BasePropertyBuilder<DatePropertyDefinition> {
|
|
1526
|
-
constructor(name: string);
|
|
1527
|
-
includeTime(): this;
|
|
1528
|
-
min(date: string): this;
|
|
1529
|
-
max(date: string): this;
|
|
1530
|
-
}
|
|
1531
|
-
declare class PhonePropertyBuilder extends BasePropertyBuilder<PhonePropertyDefinition> {
|
|
1532
|
-
constructor(name: string);
|
|
1533
|
-
}
|
|
1534
|
-
declare class CurrencyPropertyBuilder extends BasePropertyBuilder<CurrencyPropertyDefinition> {
|
|
1535
|
-
constructor(name: string);
|
|
1536
|
-
currency(code: CurrencyCode): this;
|
|
1537
|
-
min(value: number): this;
|
|
1538
|
-
max(value: number): this;
|
|
1539
|
-
}
|
|
1540
|
-
declare class StatusPropertyBuilder extends BasePropertyBuilder<StatusPropertyDefinition> {
|
|
1541
|
-
constructor(name: string);
|
|
1542
|
-
options(options: Array<Option & {
|
|
1543
|
-
group: StatusGroup;
|
|
1544
|
-
}>): this;
|
|
1545
|
-
}
|
|
1546
|
-
declare class SelectPropertyBuilder extends BasePropertyBuilder<SelectPropertyDefinition> {
|
|
1547
|
-
constructor(name: string);
|
|
1548
|
-
options(options: Option[]): this;
|
|
1549
|
-
}
|
|
1550
|
-
declare class MultiselectPropertyBuilder extends BasePropertyBuilder<MultiselectPropertyDefinition> {
|
|
1551
|
-
constructor(name: string);
|
|
1552
|
-
options(options: Option[]): this;
|
|
1553
|
-
maxSelections(value: number): this;
|
|
1554
|
-
}
|
|
1555
|
-
declare class RatingPropertyBuilder extends BasePropertyBuilder<RatingPropertyDefinition> {
|
|
1556
|
-
constructor(name: string);
|
|
1557
|
-
max(value: number): this;
|
|
1558
|
-
icon(icon: IconName): this;
|
|
1559
|
-
}
|
|
1560
|
-
declare class LocationPropertyBuilder extends BasePropertyBuilder<LocationPropertyDefinition> {
|
|
1561
|
-
constructor(name: string);
|
|
1562
|
-
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Validates that a property type is allowed in .qualifyWith()
|
|
1565
|
-
* Throws an error if the type is forbidden
|
|
1566
|
-
*/
|
|
1567
|
-
declare function validatePropertyType(type: string): void;
|
|
1568
|
-
|
|
1569
1485
|
/**
|
|
1570
1486
|
* Builder config with literal name type preservation
|
|
1571
1487
|
*/
|
|
@@ -1894,15 +1810,15 @@ interface RelationBuilderInitOptions {
|
|
|
1894
1810
|
isRequired?: boolean;
|
|
1895
1811
|
}
|
|
1896
1812
|
/**
|
|
1897
|
-
*
|
|
1813
|
+
* Union of attribute builders allowed as qualified relation properties.
|
|
1814
|
+
* Matches PropertyType — excludes complex types (formula, rollup, relation, etc.)
|
|
1898
1815
|
*/
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
constructor(name: TName, label: string);
|
|
1816
|
+
type PropertyAttributeBuilder = TextAttributeBuilder<string, boolean> | TextAreaAttributeBuilder<string, boolean> | NumberAttributeBuilder<string, boolean> | CheckboxAttributeBuilder<string, boolean> | DateAttributeBuilder<string, boolean> | PhoneAttributeBuilder<string, boolean> | CurrencyAttributeBuilder<string, boolean> | StatusAttributeBuilder<string, readonly Option[], boolean> | SelectAttributeBuilder<string, readonly Option[], boolean> | MultiselectAttributeBuilder<string, readonly Option[], boolean> | RatingAttributeBuilder<string, boolean> | LocationAttributeBuilder<string, boolean>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Base builder for relation attributes (single and multi).
|
|
1819
|
+
* Carries shared methods: to(), toAny(), qualifyWith(), bilateral()
|
|
1820
|
+
*/
|
|
1821
|
+
declare abstract class BaseRelationAttributeBuilder<TAttr extends RelationAttribute> extends BaseAttributeBuilder<TAttr> {
|
|
1906
1822
|
/**
|
|
1907
1823
|
* Add a target object that can be linked
|
|
1908
1824
|
* @param objectName - Name of the object (e.g., "companies")
|
|
@@ -1912,65 +1828,56 @@ declare class SingleRelationAttributeBuilder<TName extends string, TRequired ext
|
|
|
1912
1828
|
/**
|
|
1913
1829
|
* Allow linking to any object in the tenant (universal polymorphic)
|
|
1914
1830
|
* Creates a relation with `targets: [{ object: "*" }]`
|
|
1915
|
-
*
|
|
1916
|
-
* @example
|
|
1917
|
-
* ```typescript
|
|
1918
|
-
* relation({ name: "linkedTo", label: "Linked To" })
|
|
1919
|
-
* .toAny()
|
|
1920
|
-
* .hidden()
|
|
1921
|
-
* ```
|
|
1922
1831
|
*/
|
|
1923
1832
|
toAny(): this;
|
|
1924
1833
|
/**
|
|
1925
|
-
*
|
|
1926
|
-
|
|
1927
|
-
many(): MultiRelationAttributeBuilder<TName, TRequired>;
|
|
1928
|
-
/**
|
|
1929
|
-
* Add properties to qualify the relation
|
|
1930
|
-
* Must be called AFTER .to() to ensure targets are defined
|
|
1834
|
+
* Add properties to qualify the relation using existing attribute builders.
|
|
1835
|
+
* Must be called AFTER .to() to ensure targets are defined.
|
|
1931
1836
|
*
|
|
1932
1837
|
* @example
|
|
1933
1838
|
* ```typescript
|
|
1934
|
-
* relation({ name: "
|
|
1935
|
-
* .to("companies")
|
|
1936
|
-
* .qualifyWith(
|
|
1937
|
-
*
|
|
1938
|
-
*
|
|
1839
|
+
* relation({ name: "companies", label: "Companies" })
|
|
1840
|
+
* .to("companies").many()
|
|
1841
|
+
* .qualifyWith(
|
|
1842
|
+
* select({ name: "role", label: "Role" }).options([...]).required(),
|
|
1843
|
+
* number({ name: "shares", label: "Shares" }).min(0),
|
|
1939
1844
|
* )
|
|
1940
1845
|
* ```
|
|
1941
1846
|
*/
|
|
1942
|
-
qualifyWith(
|
|
1847
|
+
qualifyWith(...builders: PropertyAttributeBuilder[]): this;
|
|
1848
|
+
/**
|
|
1849
|
+
* Enable bilateral synchronization for this relation.
|
|
1850
|
+
* Must be called AFTER .to() to ensure targets are defined.
|
|
1851
|
+
*/
|
|
1852
|
+
bilateral(config: BilateralConfig): this;
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Builder for single relation attributes (cardinality: "one")
|
|
1856
|
+
*/
|
|
1857
|
+
declare class SingleRelationAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseRelationAttributeBuilder<SingleRelationAttribute> {
|
|
1858
|
+
readonly _types: {
|
|
1859
|
+
name: TName;
|
|
1860
|
+
attribute: SingleRelationAttribute;
|
|
1861
|
+
required: TRequired;
|
|
1862
|
+
};
|
|
1863
|
+
constructor(name: TName, label: string);
|
|
1864
|
+
/**
|
|
1865
|
+
* Convert to a multi-relation (cardinality: "many")
|
|
1866
|
+
*/
|
|
1867
|
+
many(): MultiRelationAttributeBuilder<TName, TRequired>;
|
|
1943
1868
|
required(): SingleRelationAttributeBuilder<TName, true>;
|
|
1944
1869
|
optional(): SingleRelationAttributeBuilder<TName, false>;
|
|
1945
1870
|
}
|
|
1946
1871
|
/**
|
|
1947
1872
|
* Builder for multi relation attributes (cardinality: "many")
|
|
1948
1873
|
*/
|
|
1949
|
-
declare class MultiRelationAttributeBuilder<TName extends string, TRequired extends boolean = false> extends
|
|
1874
|
+
declare class MultiRelationAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseRelationAttributeBuilder<MultiRelationAttribute> {
|
|
1950
1875
|
readonly _types: {
|
|
1951
1876
|
name: TName;
|
|
1952
1877
|
attribute: MultiRelationAttribute;
|
|
1953
1878
|
required: TRequired;
|
|
1954
1879
|
};
|
|
1955
1880
|
constructor(name: TName, label: string, initOptions?: RelationBuilderInitOptions);
|
|
1956
|
-
/**
|
|
1957
|
-
* Add a target object that can be linked
|
|
1958
|
-
* @param objectName - Name of the object (e.g., "companies")
|
|
1959
|
-
* @param options - Display template and filter options
|
|
1960
|
-
*/
|
|
1961
|
-
to(objectName: string, options?: RelationTargetOptions): this;
|
|
1962
|
-
/**
|
|
1963
|
-
* Allow linking to any object in the tenant (universal polymorphic)
|
|
1964
|
-
* Creates a relation with `targets: [{ object: "*" }]`
|
|
1965
|
-
*
|
|
1966
|
-
* @example
|
|
1967
|
-
* ```typescript
|
|
1968
|
-
* relation({ name: "linkedItems", label: "Linked Items" })
|
|
1969
|
-
* .toAny()
|
|
1970
|
-
* .many()
|
|
1971
|
-
* ```
|
|
1972
|
-
*/
|
|
1973
|
-
toAny(): this;
|
|
1974
1881
|
/**
|
|
1975
1882
|
* Set minimum number of relations required
|
|
1976
1883
|
*/
|
|
@@ -1979,22 +1886,6 @@ declare class MultiRelationAttributeBuilder<TName extends string, TRequired exte
|
|
|
1979
1886
|
* Set maximum number of relations allowed
|
|
1980
1887
|
*/
|
|
1981
1888
|
maxItems(count: number): this;
|
|
1982
|
-
/**
|
|
1983
|
-
* Add properties to qualify the relation
|
|
1984
|
-
* Must be called AFTER .to() or .many() to ensure targets are defined
|
|
1985
|
-
*
|
|
1986
|
-
* @example
|
|
1987
|
-
* ```typescript
|
|
1988
|
-
* relation({ name: "companies", label: "Companies" })
|
|
1989
|
-
* .to("companies")
|
|
1990
|
-
* .many()
|
|
1991
|
-
* .qualifyWith(props => props
|
|
1992
|
-
* .add("role", select => select.options([...]).required())
|
|
1993
|
-
* .add("shares", number => number.min(0))
|
|
1994
|
-
* )
|
|
1995
|
-
* ```
|
|
1996
|
-
*/
|
|
1997
|
-
qualifyWith(configure: (builder: PropertySchemaBuilder) => PropertySchemaBuilder): this;
|
|
1998
1889
|
required(): MultiRelationAttributeBuilder<TName, true>;
|
|
1999
1890
|
optional(): MultiRelationAttributeBuilder<TName, false>;
|
|
2000
1891
|
}
|
|
@@ -2008,12 +1899,14 @@ declare class MultiRelationAttributeBuilder<TName extends string, TRequired exte
|
|
|
2008
1899
|
* .required()
|
|
2009
1900
|
* ```
|
|
2010
1901
|
*
|
|
2011
|
-
* @example Multi relation
|
|
1902
|
+
* @example Multi relation with qualified properties
|
|
2012
1903
|
* ```typescript
|
|
2013
|
-
* relation({ name: "
|
|
2014
|
-
* .to("
|
|
2015
|
-
* .
|
|
2016
|
-
*
|
|
1904
|
+
* relation({ name: "companies", label: "Companies" })
|
|
1905
|
+
* .to("companies").many()
|
|
1906
|
+
* .qualifyWith(
|
|
1907
|
+
* select({ name: "role", label: "Role" }).options([...]).required(),
|
|
1908
|
+
* number({ name: "shares", label: "Shares" }).min(0),
|
|
1909
|
+
* )
|
|
2017
1910
|
* ```
|
|
2018
1911
|
*
|
|
2019
1912
|
* @example Polymorphic relation
|
|
@@ -2518,7 +2411,60 @@ declare class GroupBuilder {
|
|
|
2518
2411
|
/**
|
|
2519
2412
|
* Build the group definition
|
|
2520
2413
|
*/
|
|
2521
|
-
build():
|
|
2414
|
+
build(): FieldGroup;
|
|
2415
|
+
}
|
|
2416
|
+
/**
|
|
2417
|
+
* Builder for creating relation groups that display a RelationsView inside a form tab
|
|
2418
|
+
*
|
|
2419
|
+
* @example
|
|
2420
|
+
* ```typescript
|
|
2421
|
+
* relationGroup("contacts", "Contacts", "contacts")
|
|
2422
|
+
* .columns("name", "email", "phone")
|
|
2423
|
+
* .allowCreate()
|
|
2424
|
+
* .collapsible()
|
|
2425
|
+
* ```
|
|
2426
|
+
*/
|
|
2427
|
+
declare class RelationGroupBuilder {
|
|
2428
|
+
private data;
|
|
2429
|
+
constructor(id: string, label: string, attribute: string);
|
|
2430
|
+
/**
|
|
2431
|
+
* Set group description
|
|
2432
|
+
*/
|
|
2433
|
+
description(value: string): this;
|
|
2434
|
+
/**
|
|
2435
|
+
* Make group collapsible
|
|
2436
|
+
* @param collapsed - Initial collapsed state (default: false)
|
|
2437
|
+
*/
|
|
2438
|
+
collapsible(collapsed?: boolean): this;
|
|
2439
|
+
/**
|
|
2440
|
+
* Set display order
|
|
2441
|
+
*/
|
|
2442
|
+
order(value: number): this;
|
|
2443
|
+
/**
|
|
2444
|
+
* Set columns to display in the relations table
|
|
2445
|
+
* @example .columns("name", "email", "phone")
|
|
2446
|
+
*/
|
|
2447
|
+
columns(...names: string[]): this;
|
|
2448
|
+
/**
|
|
2449
|
+
* Set the group as read-only (no add/remove/edit)
|
|
2450
|
+
*/
|
|
2451
|
+
readOnly(value?: boolean): this;
|
|
2452
|
+
/**
|
|
2453
|
+
* Allow creating new related records inline
|
|
2454
|
+
*/
|
|
2455
|
+
allowCreate(value?: boolean): this;
|
|
2456
|
+
/**
|
|
2457
|
+
* Enable two-level traversal (through mode).
|
|
2458
|
+
* Parent rows become grouping headers; sub-rows from `attribute` are the primary display.
|
|
2459
|
+
*
|
|
2460
|
+
* @param attribute - Relation attribute on the first-level target object
|
|
2461
|
+
* @example .through("companies") — display companies linked via each member
|
|
2462
|
+
*/
|
|
2463
|
+
through(attribute: string): this;
|
|
2464
|
+
/**
|
|
2465
|
+
* Build the relation group definition
|
|
2466
|
+
*/
|
|
2467
|
+
build(): RelationGroup;
|
|
2522
2468
|
}
|
|
2523
2469
|
/**
|
|
2524
2470
|
* Base tab configuration shared across tab types
|
|
@@ -2531,12 +2477,35 @@ interface BaseTabConfig {
|
|
|
2531
2477
|
order?: number;
|
|
2532
2478
|
}
|
|
2533
2479
|
/**
|
|
2534
|
-
*
|
|
2480
|
+
* Unified builder for configuring table tabs (direct relation or inverse lookup)
|
|
2481
|
+
*
|
|
2482
|
+
* @example
|
|
2483
|
+
* ```typescript
|
|
2484
|
+
* // Direct: relation attribute on current object
|
|
2485
|
+
* .tab("members", "Members")
|
|
2486
|
+
* .table("members")
|
|
2487
|
+
* .columns("name", "email", "members__role")
|
|
2488
|
+
* .crud()
|
|
2489
|
+
*
|
|
2490
|
+
* // Inverse: another object has relation to us
|
|
2491
|
+
* .tab("contacts", "Contacts")
|
|
2492
|
+
* .tableFrom("contacts", "company")
|
|
2493
|
+
* .columns("firstName", "lastName", "email")
|
|
2494
|
+
* .crud()
|
|
2495
|
+
*
|
|
2496
|
+
* // 2-level traversal
|
|
2497
|
+
* .tab("members-companies", "Entreprises des membres")
|
|
2498
|
+
* .table("members")
|
|
2499
|
+
* .through("companies")
|
|
2500
|
+
* .columns("legalName", "legalForm", "companies__role")
|
|
2501
|
+
* .showSourceTarget()
|
|
2502
|
+
* ```
|
|
2535
2503
|
*/
|
|
2536
|
-
declare
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2504
|
+
declare class TableTabConfig {
|
|
2505
|
+
private view;
|
|
2506
|
+
private tabData;
|
|
2507
|
+
/** @internal */
|
|
2508
|
+
constructor(view: DetailViewBuilder, tabData: Partial<TableTab>);
|
|
2540
2509
|
/**
|
|
2541
2510
|
* Set columns to display
|
|
2542
2511
|
* @example .columns("firstName", "lastName", "email")
|
|
@@ -2578,6 +2547,18 @@ declare abstract class BaseTableTabConfig<T extends TableTab> {
|
|
|
2578
2547
|
* @example .sort("lastName") or .sort("createdAt", "desc")
|
|
2579
2548
|
*/
|
|
2580
2549
|
sort(attribute: string, direction?: "asc" | "desc"): this;
|
|
2550
|
+
/**
|
|
2551
|
+
* Traverse a 2nd-level relation to display nested data.
|
|
2552
|
+
* When active, `tab.columns` stores the 2nd-level object's attribute names.
|
|
2553
|
+
*
|
|
2554
|
+
* @param attribute - Relation attribute on the first-level target object
|
|
2555
|
+
* @example .table("members").through("companies").columns(["name", "sector"])
|
|
2556
|
+
*/
|
|
2557
|
+
through(attribute: string): this;
|
|
2558
|
+
/**
|
|
2559
|
+
* Show _source and _target columns in flattened (through) view
|
|
2560
|
+
*/
|
|
2561
|
+
showSourceTarget(value?: boolean): this;
|
|
2581
2562
|
/**
|
|
2582
2563
|
* Continue building with a new tab
|
|
2583
2564
|
*/
|
|
@@ -2590,37 +2571,7 @@ declare abstract class BaseTableTabConfig<T extends TableTab> {
|
|
|
2590
2571
|
* Build the final view definition
|
|
2591
2572
|
*/
|
|
2592
2573
|
build(): DetailViewDefinition;
|
|
2593
|
-
|
|
2594
|
-
}
|
|
2595
|
-
/**
|
|
2596
|
-
* Builder for configuring direct table tabs (relation attribute on current object)
|
|
2597
|
-
*
|
|
2598
|
-
* @example
|
|
2599
|
-
* ```typescript
|
|
2600
|
-
* .tab("members", "Members")
|
|
2601
|
-
* .table("members") // Direct: uses the "members" relation attribute on current object
|
|
2602
|
-
* .columns("name", "email")
|
|
2603
|
-
* .crud()
|
|
2604
|
-
* ```
|
|
2605
|
-
*/
|
|
2606
|
-
declare class DirectTableTabConfig extends BaseTableTabConfig<DirectTableTab> {
|
|
2607
|
-
/** @internal */
|
|
2608
|
-
constructor(view: DetailViewBuilder, base: BaseTabConfig, relationAttribute: string);
|
|
2609
|
-
}
|
|
2610
|
-
/**
|
|
2611
|
-
* Builder for configuring inverse table tabs (another object has relation to us)
|
|
2612
|
-
*
|
|
2613
|
-
* @example
|
|
2614
|
-
* ```typescript
|
|
2615
|
-
* .tab("contacts", "Contacts")
|
|
2616
|
-
* .tableFrom("contacts", "company") // Inverse: Contact.company points to us
|
|
2617
|
-
* .columns("firstName", "lastName", "email")
|
|
2618
|
-
* .crud()
|
|
2619
|
-
* ```
|
|
2620
|
-
*/
|
|
2621
|
-
declare class InverseTableTabConfig extends BaseTableTabConfig<InverseTableTab> {
|
|
2622
|
-
/** @internal */
|
|
2623
|
-
constructor(view: DetailViewBuilder, base: BaseTabConfig, sourceObject: string, relationAttribute: string);
|
|
2574
|
+
private finalize;
|
|
2624
2575
|
}
|
|
2625
2576
|
/**
|
|
2626
2577
|
* Builder for configuring custom tabs
|
|
@@ -2648,21 +2599,17 @@ declare class CustomTabConfig {
|
|
|
2648
2599
|
build(): DetailViewDefinition;
|
|
2649
2600
|
}
|
|
2650
2601
|
/**
|
|
2651
|
-
* Builder for configuring
|
|
2602
|
+
* Builder for configuring richtext tabs
|
|
2652
2603
|
*/
|
|
2653
|
-
declare class
|
|
2604
|
+
declare class RichtextTabConfig {
|
|
2654
2605
|
private view;
|
|
2655
2606
|
private tabData;
|
|
2656
2607
|
/** @internal */
|
|
2657
|
-
constructor(view: DetailViewBuilder, base: BaseTabConfig);
|
|
2658
|
-
/**
|
|
2659
|
-
* Show only private notes of the current user
|
|
2660
|
-
*/
|
|
2661
|
-
privateOnly(): this;
|
|
2608
|
+
constructor(view: DetailViewBuilder, base: BaseTabConfig, attribute: string);
|
|
2662
2609
|
/**
|
|
2663
|
-
*
|
|
2610
|
+
* Set a text attribute to display as an editable title above the editor
|
|
2664
2611
|
*/
|
|
2665
|
-
|
|
2612
|
+
titleAttribute(name: string): this;
|
|
2666
2613
|
/**
|
|
2667
2614
|
* Continue building with a new tab
|
|
2668
2615
|
*/
|
|
@@ -2834,38 +2781,38 @@ declare class TabBuilder {
|
|
|
2834
2781
|
order(value: number): this;
|
|
2835
2782
|
/**
|
|
2836
2783
|
* Create a form tab with groups
|
|
2837
|
-
* @example .form(group("info", "Info").fields("name", "email"))
|
|
2784
|
+
* @example .form(group("info", "Info").fields("name", "email"), relationGroup("contacts", "Contacts", "contacts"))
|
|
2838
2785
|
*/
|
|
2839
|
-
form(...groups: (GroupBuilder | Group)[]): DetailViewBuilder;
|
|
2786
|
+
form(...groups: (GroupBuilder | RelationGroupBuilder | Group)[]): DetailViewBuilder;
|
|
2840
2787
|
/**
|
|
2841
|
-
* Create a
|
|
2788
|
+
* Create a table tab for a relation attribute on the current object
|
|
2842
2789
|
*
|
|
2843
2790
|
* Use this when the current object has a relation attribute pointing to another object.
|
|
2844
2791
|
*
|
|
2845
2792
|
* @param relationAttribute - Name of the relation attribute on the current object
|
|
2846
|
-
* @example .table("members").columns("name", "email").crud()
|
|
2793
|
+
* @example .table("members").columns("name", "email").crud()
|
|
2847
2794
|
*/
|
|
2848
|
-
table(relationAttribute: string):
|
|
2795
|
+
table(relationAttribute: string): TableTabConfig;
|
|
2849
2796
|
/**
|
|
2850
|
-
* Create
|
|
2797
|
+
* Create a table tab showing records from another object that have a relation to us
|
|
2851
2798
|
*
|
|
2852
2799
|
* Use this when another object has a relation attribute pointing to the current object.
|
|
2853
2800
|
*
|
|
2854
2801
|
* @param sourceObject - Name of the object that has the relation to us
|
|
2855
2802
|
* @param relationAttribute - Name of the relation attribute on the source object
|
|
2856
|
-
* @example .tableFrom("contacts", "company").columns("firstName", "lastName")
|
|
2803
|
+
* @example .tableFrom("contacts", "company").columns("firstName", "lastName")
|
|
2857
2804
|
*/
|
|
2858
|
-
tableFrom(sourceObject: string, relationAttribute: string):
|
|
2805
|
+
tableFrom(sourceObject: string, relationAttribute: string): TableTabConfig;
|
|
2859
2806
|
/**
|
|
2860
2807
|
* Create a custom tab with a component
|
|
2861
2808
|
* @example .custom("AnalyticsWidget").props({ period: "12m" })
|
|
2862
2809
|
*/
|
|
2863
2810
|
custom(component: string): CustomTabConfig;
|
|
2864
2811
|
/**
|
|
2865
|
-
* Create a
|
|
2866
|
-
* @example .
|
|
2812
|
+
* Create a richtext tab for a richtext attribute
|
|
2813
|
+
* @example .richtext("content").titleAttribute("title")
|
|
2867
2814
|
*/
|
|
2868
|
-
|
|
2815
|
+
richtext(attribute: string): RichtextTabConfig;
|
|
2869
2816
|
/**
|
|
2870
2817
|
* Create an activity tab
|
|
2871
2818
|
* @example .activity().limit(50)
|
|
@@ -2951,6 +2898,13 @@ declare class DetailViewBuilder {
|
|
|
2951
2898
|
* Set metadata
|
|
2952
2899
|
*/
|
|
2953
2900
|
metadata(value: Record<string, unknown>): this;
|
|
2901
|
+
/**
|
|
2902
|
+
* Configure a side panel with flat attribute fields displayed alongside tab content.
|
|
2903
|
+
* Not available for modal layout.
|
|
2904
|
+
*
|
|
2905
|
+
* @example .sidePanel({ attributes: ["visibility", "linkedTo"] })
|
|
2906
|
+
*/
|
|
2907
|
+
sidePanel(config: SidePanelConfig): this;
|
|
2954
2908
|
/**
|
|
2955
2909
|
* Start building a new tab
|
|
2956
2910
|
*/
|
|
@@ -3261,6 +3215,22 @@ declare function listView(name: string, label: string): ListViewBuilder;
|
|
|
3261
3215
|
* ```
|
|
3262
3216
|
*/
|
|
3263
3217
|
declare function group(id: string, label: string): GroupBuilder;
|
|
3218
|
+
/**
|
|
3219
|
+
* Create a new relation group builder
|
|
3220
|
+
*
|
|
3221
|
+
* @param id - Group identifier
|
|
3222
|
+
* @param label - Display label
|
|
3223
|
+
* @param attribute - Relation attribute name on the source object
|
|
3224
|
+
*
|
|
3225
|
+
* @example
|
|
3226
|
+
* ```typescript
|
|
3227
|
+
* relationGroup("contacts", "Contacts", "contacts")
|
|
3228
|
+
* .columns("name", "email", "phone")
|
|
3229
|
+
* .allowCreate()
|
|
3230
|
+
* .collapsible()
|
|
3231
|
+
* ```
|
|
3232
|
+
*/
|
|
3233
|
+
declare function relationGroup(id: string, label: string, attribute: string): RelationGroupBuilder;
|
|
3264
3234
|
|
|
3265
3235
|
/**
|
|
3266
3236
|
* Builder for creating rows within a form node.
|
|
@@ -4005,57 +3975,6 @@ declare class FlagService {
|
|
|
4005
3975
|
*/
|
|
4006
3976
|
declare function createFlagService(options: FlagServiceOptions): FlagService;
|
|
4007
3977
|
|
|
4008
|
-
/**
|
|
4009
|
-
* Native Notes Object
|
|
4010
|
-
*
|
|
4011
|
-
* A Notion-like notes system that can be attached to any record or used globally.
|
|
4012
|
-
* Notes support rich text content via @stndrds/blocks (Tiptap-based editor).
|
|
4013
|
-
*
|
|
4014
|
-
* Features:
|
|
4015
|
-
* - Polymorphic linking to any object/record via `linkedTo` relation
|
|
4016
|
-
* - Private (createdBy-only) or shared (tenant-wide) visibility
|
|
4017
|
-
* - Rich text content with semantic markdown (:::callout, etc.)
|
|
4018
|
-
* - Extensible via custom attributes
|
|
4019
|
-
*
|
|
4020
|
-
* The author of a note is determined by the system field `createdBy`,
|
|
4021
|
-
* which is automatically set when a record is created.
|
|
4022
|
-
*
|
|
4023
|
-
* Access control is enforced by NotesPolicy:
|
|
4024
|
-
* - Private notes: only visible/editable by createdBy
|
|
4025
|
-
* - Shared notes: visible/editable by all tenant members
|
|
4026
|
-
* - Delete: only createdBy can delete any note
|
|
4027
|
-
*
|
|
4028
|
-
* @example Linked to a record
|
|
4029
|
-
* ```typescript
|
|
4030
|
-
* const note = {
|
|
4031
|
-
* title: "Meeting notes",
|
|
4032
|
-
* content: "# Meeting Notes\n\n:::callout{variant=\"info\"}\nImportant point\n:::",
|
|
4033
|
-
* visibility: "shared",
|
|
4034
|
-
* linkedTo: "rec-456" // Can be any record from any object
|
|
4035
|
-
* };
|
|
4036
|
-
* // createdBy is set automatically by RecordService
|
|
4037
|
-
* ```
|
|
4038
|
-
*
|
|
4039
|
-
* @example Global note (not linked)
|
|
4040
|
-
* ```typescript
|
|
4041
|
-
* const note = {
|
|
4042
|
-
* title: "My private thoughts",
|
|
4043
|
-
* content: "# Private Note\n\nSome thoughts...",
|
|
4044
|
-
* visibility: "private",
|
|
4045
|
-
* linkedTo: null
|
|
4046
|
-
* };
|
|
4047
|
-
* ```
|
|
4048
|
-
*/
|
|
4049
|
-
/**
|
|
4050
|
-
* Notes object definition
|
|
4051
|
-
*/
|
|
4052
|
-
declare const NOTES: ObjectBuilder<{
|
|
4053
|
-
title: string;
|
|
4054
|
-
visibility: "private" | "shared";
|
|
4055
|
-
content: string;
|
|
4056
|
-
linkedTo?: string | undefined;
|
|
4057
|
-
}>;
|
|
4058
|
-
|
|
4059
3978
|
/**
|
|
4060
3979
|
* Get the active tab from a list view config.
|
|
4061
3980
|
*
|
|
@@ -4087,11 +4006,6 @@ interface GenerateFallbackViewOptions {
|
|
|
4087
4006
|
* @default true
|
|
4088
4007
|
*/
|
|
4089
4008
|
includeActivityTab?: boolean;
|
|
4090
|
-
/**
|
|
4091
|
-
* Include notes tab in detail views.
|
|
4092
|
-
* @default true
|
|
4093
|
-
*/
|
|
4094
|
-
includeNotesTab?: boolean;
|
|
4095
4009
|
/**
|
|
4096
4010
|
* Include documents tab in detail views (if object has document attributes).
|
|
4097
4011
|
* @default true
|
|
@@ -4242,4 +4156,4 @@ declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
|
|
|
4242
4156
|
*/
|
|
4243
4157
|
declare function isSystemTemplate(name: string): boolean;
|
|
4244
4158
|
|
|
4245
|
-
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES,
|
|
4159
|
+
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, BilateralConfig, type BilateralValidationError, type BilateralValidationResult, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateMode, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, FileAttribute, FileNotFoundError, FilterState, FlagLevel, FlagRegistry, type FlagResolutionContext, FlagService, type FlagServiceOptions, FlagValueType, FlowRow, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNodeSchema, FormulaAttribute, FormulaReturnType, GENERIC_DOCUMENT, type GenerateFallbackViewOptions, Group, GroupBuilder, IDENTITY_PROPERTIES, type IdentityProperty, InferAttributeValue, InstanceStatus, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, NotFoundError, NotSystemObjectError, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, PhoneAttribute, type PresentationProperty, type PropertyAttributeBuilder, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, RelationTarget, type ResetViewOptions, ResolvedFlag, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RichtextTabConfig, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SidePanelConfig, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TextAreaAttribute, TextAttribute, ThemeColorsSchema, ThemeLogoSchema, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, type ValidatedConditionGroup, type ValidatedWorkflowDefinition, type ValidatedWorkflowNode, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewType, ViewportSchema, WorkflowBuilder, WorkflowConditionBuilder, WorkflowConfig, WorkflowConfigSchema, WorkflowDefinition, WorkflowDefinitionSchema, WorkflowEndBuilder, type WorkflowEvent, type WorkflowEventType, WorkflowFormBuilder, WorkflowFormRowBuilder, type WorkflowGrantRevokedEvent, type WorkflowInstanceCancelledEvent, type WorkflowInstanceCompletedEvent, type WorkflowInstanceFailedEvent, type WorkflowInstanceStartedEvent, type WorkflowInvitationAcceptedEvent, type WorkflowInvitationCreatedEvent, type WorkflowInvitationExpiredEvent, WorkflowLayoutSchema, WorkflowNode, type WorkflowNodeCompletedEvent, type WorkflowNodeEnteredEvent, type WorkflowNodeFailedEvent, WorkflowNodeSchema, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowTheme, WorkflowThemeSchema, applyRelationProps, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, flagRegistry, formatAttributeValue, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getActiveTab, getErrorMessage, getSystemAttributeList, getSystemTemplate, group, hasProperties, isBehaviorProperty, isDefaultRole, isEmpty, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotEmpty, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, number, numberFlag, object, phone, rating, relation, relationGroup, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, view, workflow };
|