@stndrds/schema 1.0.0-alpha.78 → 1.0.0-alpha.80
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-5SZ5OISG.mjs → chunk-7VNLLASJ.mjs} +0 -2
- package/dist/{chunk-3WTK7ESH.js → chunk-HUT6HYXJ.js} +0 -2
- package/dist/{chunk-JYXUFVUD.mjs → chunk-OR44EVWO.mjs} +1115 -1777
- package/dist/{chunk-KGEV5PIT.js → chunk-WHDJLJRK.js} +1356 -2018
- package/dist/index.d.mts +294 -107
- package/dist/index.d.ts +294 -107
- package/dist/index.js +14 -26
- package/dist/index.mjs +50 -62
- package/dist/{runtime-Df0uvz45.d.ts → runtime-B6Dt5_Gc.d.ts} +594 -1293
- package/dist/{runtime-ntcKC7g8.d.mts → runtime-Ttkdn9W7.d.mts} +594 -1293
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +3 -19
- package/dist/runtime.mjs +4 -20
- package/dist/validation/validators.d.mts +1 -1
- package/dist/validation/validators.d.ts +1 -1
- package/dist/validation/validators.js +2 -2
- package/dist/validation/validators.mjs +1 -1
- package/dist/{validators-DUB0tEzp.d.mts → validators-BeBrdQCB.d.mts} +3 -14
- package/dist/{validators-BxPuQ2GT.d.ts → validators-UuAMCPc6.d.ts} +3 -14
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SystemResource, A as Action, I as InferAttributeValue,
|
|
2
|
-
export { ad as AIBatchQuestion, ae as AIBatchQuestionAnswer, ac as AIBatchQuestionOption, a7 as AIChatMessage, a6 as AIChatMessagePart, a1 as AIChatMessagePartType, at as AICompactionSummary, aj as AIConversation, gc as AIConversationsRepository, ar as AIMemoryEntry, aq as AIMemoryType, 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 as AITenantPersona, _ as AIThinkingLevel, ag as AITodoItem, ah as AITodoList, af as AITodoStatus, a0 as AIToolCall, al as AIToolCallRecord, $ as AIToolCallStatus, an as AIUsageMetrics, gd as AIUsageMetricsRepository, am as AIUserMemory, ge as AIUserMemoryRepository, c7 as ALL_ACTIONS, c6 as AccessLevel, cA as ActivityTab, bP as AddAttribute, gC as AddAttributeInput, bn as AdvancedFilterState, cj as AssignRoleInput, g1 as AttributeChange, bO as AttributeMap, bK as AttributeSchema, gf as AttributesRepository, av as AuditAction, aw as AuditActorType, ax as AuditChange, aA as AuditListOptions, ay as AuditLogEntry, gg as AuditRepository, au as AuditResourceType, hS as AuditService, aB as AuditServiceOptions, gy as BaseRepository, gx as BaseService, B as BoundingBox, er as CacheAdapter, ep as CacheKeyType, es as CacheOptions, cG as CalendarViewConfig, cK as CalendarViewDefinition, dr as CanvasViewport, b9 as CheckboxFilterOperator, fu as ConditionExecutor, d3 as ConditionNode, di as ConditionOperator, cN as ConfigOverrides, ap as CreateAIMessageInput, az as CreateAuditLogInput, gB as CreateCustomObjectInput, iO as CreateDBAttribute, iK as CreateDBObject, i_ as CreateDBView, j2 as CreateDBViewOverlay, j5 as CreateDBWorkflow, je as CreateDBWorkflowAccessGrant, j8 as CreateDBWorkflowInstance, jb as CreateDBWorkflowInvitation, aU as CreateDocument, aG as CreateDocumentGenerationTemplate, aY as CreateDocumentSlot, aW as CreateDocumentTemplate, b5 as CreateFile, dO as CreateGrantInput, hw as CreateGrantResult, dH as CreateInvitationInput, dI as CreateInvitationResult, iR as CreateObjectRecord, ci as CreatePermissionInput, a_ as CreateProcessingJob, i5 as CreateRecordDocumentInput, i6 as CreateRecordDocumentResult, cg as CreateRoleInput, z as CreateSignatureInput, cq as CreateUserProfile, ig as CreateViewInput, hJ as CreateWorkflowInput, bg as CurrencyFilterValue, bT as CustomAttributeValue, cz as CustomTab, iN as DBAttribute, iJ as DBObject, iZ as DBView, j1 as DBViewOverlay, j4 as DBWorkflow, jd as DBWorkflowAccessGrant, j7 as DBWorkflowInstance, ja as DBWorkflowInvitation, iA as DEFAULT_LABEL_FALLBACK, e7 as DEFAULT_THEME, ei as DatabaseAdapter, ba as DateFilterOperator, cF as DetailViewConfig, aN as Document, aK as DocumentAutoProcessing, X as DocumentData, fv as DocumentExecutor, hV as DocumentGenerationNotConfiguredError, hW as DocumentGenerationService, aF as DocumentGenerationTemplate, gh as DocumentGenerationTemplateListOptions, hU as DocumentGenerationTemplateNotFoundError, gi as DocumentGenerationTemplatesRepository, gj as DocumentJobsRepository, b0 as DocumentListOptions, d4 as DocumentNode, hX as DocumentProcessingConfig, hq as DocumentProcessingHook, hp as DocumentProcessingHookOptions, hY as DocumentProcessingService, i0 as DocumentRenderError, h_ as DocumentRendererOptions, i2 as DocumentRendererService, i8 as DocumentService, i7 as DocumentServiceOptions, aP as DocumentSlot, aJ as DocumentSlotDefinition, gk as DocumentSlotsRepository, aO as DocumentStatus, b1 as DocumentTemplateListOptions, i3 as DocumentTemplateService, gm as DocumentTemplatesRepository, gl as DocumentsRepository, cD as DocumentsTab, cd as EffectivePermissions, fw as EndExecutor, d5 as EndNode, eO as EvaluationResult, eP as EvaluationTrace, fi as ExecutorCompleteResult, fj as ExecutorContext, fk as ExecutorErrorResult, fr as ExecutorRegistry, fl as ExecutorResult, fm as ExecutorSuccessResult, fn as ExecutorWaitResult, bk as ExtendedFilterRule, c1 as ExtractAttributes, c3 as ExtractObjectRecord, c4 as ExtractObjectRecordWithCustom, bX as ExtractRecord, bZ as ExtractRecordInput, b_ as ExtractRecordInputStrict, bY as ExtractRecordStrict, b$ as ExtractRecordUpdate, c0 as ExtractRecordUpdateStrict, aM as ExtractionField, aL as ExtractionMapping, f0 as FeatureFlagsContext, eU as FeatureFlagsContextError, ex as FetchResult, b4 as File, il as FileContent, iY as FileListOptions, ia as FileService, i9 as FileServiceOptions, b3 as FileVisibility, gn as FilesRepository, bl as FilterCombinator, bm as FilterGroup, be as FilterOperator, bj as FilterRule, bi as FilterValue, bA as FlowDefinition, bx as FlowPage, by as FlowRelation, bw as FlowRowField, bv as FlowSlot, bz as FlowStatus, cC as FlowsTab, d_ as FormContextResponse, cu as FormDensity, fx as FormExecutor, d$ as FormFieldContext, d6 as FormFieldRef, e0 as FormFieldRow, d7 as FormNode, e1 as FormNodeInfo, cv as FormTab, ey as FormattedRecord, h1 as FormulaResolverService, h0 as FormulaResolverServiceOptions, fL as FormulaResult, iy as FullSyncOptions, ix as FullSyncResult, cI as GalleryViewConfig, cM as GalleryViewDefinition, dV as GeneratedDocument, bI as GeocodingAdapter, bF as GeocodingAutocompleteParams, bH as GeocodingParams, ib as GeocodingService, bE as GeocodingSuggestion, gR as GetRelationOptionsParams, ij as GetViewOptions, ii as GetViewsOptions, iV as GlobalSearchGroupedOptions, iX as GlobalSearchGroupedResult, iU as GlobalSearchOptions, iW as GlobalSearchResultItem, ic as GlobalSearchService, hs as GrantExpiredError, hr as GrantNotFoundError, ht as GrantRevokedError, hv as GrantServiceConfig, ez as GroupedFetchResult, g2 as HookContext, g3 as HookDefinition, g4 as HookHandler, g7 as HookRegistry, g5 as HookType, gY as HybridRelationValue, P as IdentityVerificationAdapter, bQ as InferRecord, bL as InferRecordFromSchema, bR as InferRecordInput, bS as InferRecordUpdate, bM as InferRecordWithRequirements, eA as InsertOptions, fP as InvalidPathError, cx as InverseSource, hF as InvitationAlreadyAcceptedError, hE as InvitationExpiredError, hD as InvitationNotFoundError, hG as InvitationRevokedError, hC as InvitationServiceConfig, dJ as InvitationStatus, cs as InviteUserInput, ek as JwtVerificationResult, hg as LabelResolver, iS as ListOptions, cE as ListViewLayout, el as MagicLinkPayload, fQ as MaxDepthExceededError, g9 as MockStores, gW as MultiRelationValue, bc as MultiselectFilterOperator, bs as NO_VALUE_OPERATORS, br as NoValueOperator, fo as NodeExecutor, ds as NodePosition, ew as NoopCacheAdapter, bJ as NoopGeocodingAdapter, g6 as NoopHookRegistry, b8 as NumberFilterOperator, bq as OPERATORS_BY_TYPE, ce as ObjectPermissions, go as ObjectRecordsRepository, gF as ObjectSchemaService, gE as ObjectSchemaServiceOptions, gp as ObjectsRepository, O as OcrAdapter, t as OcrInput, u as OcrOptions, w as OcrPage, v as OcrResult, x as OcrTextBlock, jg as OperationResult, fU as PathCardinality, fV as PathSegment, fW as PathSegmentType, aD as PdfTemplateField, dz as PendingAction, aI as PendingDocumentRequest, cb as Permission, c5 as PermissionScope, ie as PermissionService, id as PermissionServiceOptions, gq as PermissionsRepository, bh as PhoneFilterValue, ck as PolicyContext, gb as PolicyRegistry, cm as PolicyViolationError, aR as ProcessingJob, aT as ProcessingJobStatus, aS as ProcessingJobType, eM as QueryBuilder, eN as QueryBuilderOptions, eB as QueryBuilderState, eI as QueryMultipleResultsError, eJ as QueryNoResultError, gJ as QueryOptions, gL as QueryResult, bp as QueryState, e2 as ReadOnlyReason, a5 as ReasoningPartData, i4 as RecordDocumentsResult, bV as RecordMetadata, cl as RecordPolicy, gM as RecordQueryService, gI as RecordQueryServiceOptions, g_ as RecordResolverService, gH as RecordService, gG as RecordServiceOptions, eC as RegistryMap, eD as RegistryObjectNames, ed as RelationAttributeInput, ee as RelationAttributeRow, ef as RelationAttributesRepository, bd as RelationFilterOperator, iH as RelationLabelResolver, gP as RelationOption, gQ as RelationOptionsResponse, gZ as RelationPropertiesService, gV as RelationService, gS as RelationServiceOptions, cw as RelationSource, gO as RelationValidationError, gN as RelationValidationResult, bf as RelativeDateValue, hZ as RenderDocumentInput, h$ as RenderDocumentResult, gT as ResolveIdsBatchRequest, gU as ResolveIdsBatchResponse, g$ as ResolvedRelations, hz as ResumeWorkflowInput, bG as ReverseGeocodingParams, cB as RichtextTab, ca as Role, ho as RollupCascadeContext, h2 as RollupResult, h6 as RollupScheduler, h5 as RollupSchedulerOptions, h4 as RollupService, h3 as RollupServiceOptions, eK as SHORTCUT_TO_FILTER_OPERATOR, eg as SORTABLE_ATTRIBUTE_TYPES, f8 as SchemaContext, gz as SchemaContextAware, gA as SchemaContextAwareRepository, fX as SchemaResolver, eh as SearchAdapter, iT as SearchOptions, gK as SearchQueryOptions, bb as SelectFilterOperator, eE as ShortcutOperator, y as SignatureAdapter, H as SignaturePosition, J as SignatureRequestResult, N as SignatureStatus, K as SignatureStatusResult, ip as SignedUrlOptions, E as SignerRequest, M as SignerStatus, gX as SingleRelationValue, aQ as SlotStatus, bo as SortDirection, fy as StartExecutor, d8 as StartNode, hy as StartWorkflowInput, iq as StorageAdapter, i1 as StorageDownloadNotSupportedError, b2 as StorageProvider, im as StorageUploadInput, io as StorageUploadResult, it as SyncOptions, is as SyncResult, bW as SystemFields, cf as SystemPermissions, ct as TabType, cy as TableSource, aE as TemplateSource, ff as TenantContext, eT as TenantContextError, b7 as TextFilterOperator, a2 as TextPartData, e4 as ThemeColors, e5 as ThemeLogo, e6 as ThemeTypography, a4 as ThinkingPartData, cH as TimelineViewConfig, cL as TimelineViewDefinition, hu as TokenRevokedError, a3 as ToolPartData, f$ as TraversalOptions, g0 as TraversalResult, bN as TypedAttribute, c2 as TypedObjectRecord, co as USER_STATUSES, iP as UpdateDBAttribute, iL as UpdateDBObject, i$ as UpdateDBView, j3 as UpdateDBViewOverlay, j6 as UpdateDBWorkflow, jf as UpdateDBWorkflowAccessGrant, j9 as UpdateDBWorkflowInstance, jc as UpdateDBWorkflowInvitation, aV as UpdateDocument, aH as UpdateDocumentGenerationTemplate, aZ as UpdateDocumentSlot, aX as UpdateDocumentTemplate, b6 as UpdateFile, gD as UpdateObjectInput, a$ as UpdateProcessingJob, ch as UpdateRoleInput, cr as UpdateUserProfile, ih as UpdateViewInput, hK as UpdateWorkflowInput, ir as UploadFileInput, iQ as UpsertDBAttribute, iM as UpsertDBObject, j0 as UpsertDBView, cp as UserProfile, hR as UserProfileService, hQ as UserProfileServiceOptions, gr as UserProfilesRepository, cc as UserRoleAssignment, hP as UserService, cn as UserStatus, hO as UserValidationError, hN as UserValidationResult, aC as VariableMapping, Y as VerificationCheck, U as VerificationResult, Q as VerifyInput, cJ as ViewConfig, cO as ViewOverlay, ec as ViewOverlaysRepository, ik as ViewService, ji as ViewSyncLogger, jj as ViewSyncOptions, jh as ViewSyncResult, gs as ViewsRepository, bU as WithCustomAttributes, dP as WorkflowAccessGrant, hx as WorkflowAccessGrantService, gt as WorkflowAccessGrantsRepository, e3 as WorkflowAccessMode, em as WorkflowAccessPayload, dA as WorkflowError, dW as WorkflowExecutionContext, dB as WorkflowInstance, hB as WorkflowInstanceService, hA as WorkflowInstanceServiceOptions, gu as WorkflowInstancesRepository, dK as WorkflowInvitation, hH as WorkflowInvitationService, gv as WorkflowInvitationsRepository, en as WorkflowJwtConfig, eo as WorkflowJwtPayload, ej as WorkflowJwtService, dt as WorkflowLayout, d9 as WorkflowNodeType, hI as WorkflowRelationService, hM as WorkflowService, hL as WorkflowServiceOptions, du as WorkflowSlot, dv as WorkflowStatus, dC as WorkflowTransition, gw as WorkflowsRepository, c9 as accessLevelToActions, c8 as actionsToAccessLevel, f1 as addSchemaToContext, dj as and, h7 as applyDefaultValues, hT as buildAuditChanges, ha as buildPolicyContext, et as cacheKeys, eu as cacheTtl, dQ as canAccessNode, dD as canResumeInstance, h8 as checkPermission, hb as checkRecordAccess, hd as checkRecordDeleteOrThrow, hc as checkRecordModifyOrThrow, he as checkSharedObjectWriteAccess, fp as complete, hf as computeLabel, iI as computeLabelWithRelations, hj as createContextForCreate, hl as createContextForDelete, hm as createContextForRestore, hk as createContextForUpdate, fg as createDefaultExecutorRegistry, eF as createDefaultState, dX as createEmptyContext, g8 as createMockAdapter, eL as createQueryBuilder, dE as createStartTransition, ga as defaultPolicyRegistry, ev as defaultTtl, hi as enrichRecordsWithFormulas, iE as enrichValuesForDisplay, iF as enrichValuesWithSelectLabels, hh as enrichWithFormulas, dk as eq, fq as error, eR as evaluate, eQ as evaluateCondition, fz as evaluateFormula, fA as evaluateFormulaAttribute, fB as evaluateFormulaAttributeWithRelations, fC as evaluateFormulaWithRelations, fD as evaluateFormulaWithResult, eS as evaluateWithTrace, iD as extractAttributeNames, fE as extractFormulaVariables, iG as extractRelationIds, fF as extractRelationNames, fG as extractRelationReferences, fH as flattenRelationsForEval, fI as formatFormulaResult, eG as formatRecord, eH as formatRecords, e8 as generateCssVariables, f9 as getContext, dY as getContextValue, fh as getDefaultExecutorRegistry, eV as getFeatureFlags, eW as getFeatureValue, da as getNodeOutputs, fM as getPathDepth, h9 as getPolicy, fN as getRelationPath, bu as getRollupFilterOperators, f2 as getSchemaByNameFromContext, f3 as getSchemaContext, f4 as getSchemaFromContext, iw as getSyncPreview, fO as getTargetAttributeName, fa as getTenantId, fb as getUserId, jo as getViewSeedPreview, jp as getViewSyncPreview, fc as hasContext, eX as hasFeatureFlagsContext, fJ as hasRelationReferences, f5 as hasSchemaContext, eq as hashOptions, dl as inValues, c$ as isActivityTab, db as isAdvancedFormNode, cR as isCalendarView, dm as isConditionGroup, dc as isConditionNode, dn as isConditionRule, c_ as isCustomTab, cP as isDetailView, dd as isDocumentNode, d2 as isDocumentsTab, de as isEndNode, eY as isFeatureEnabled, cU as isFieldGroup, bB as isFlowDefinition, bC as isFlowPublished, d1 as isFlowsTab, df as isFormNode, cW as isFormTab, cT as isGalleryView, dR as isGrantExpired, dS as isGrantRevoked, dT as isGrantValid, dF as isInstanceTerminal, dG as isInstanceWaiting, cZ as isInverseSourceTab, dL as isInvitationAccepted, dM as isInvitationExpired, dN as isInvitationValid, iC as isLabelExpression, cQ as isListView, bt as isNoValueOperator, cV as isRelationGroup, cY as isRelationSourceTab, d0 as isRichtextTab, dg as isSimpleFormNode, dh as isStartNode, bD as isSystemFlow, dw as isSystemWorkflow, cX as isTableTab, cS as isTimelineView, dU as isTokenRevoked, dx as isWorkflowDefinition, dy as isWorkflowPublished, e9 as mergeWithDefaults, dp as neq, dq as or, fR as parsePath, fS as pathHasManyCardinality, hn as recalculateParentRollups, ea as registry, iB as renderLabelExpression, fY as resolveMultiplePaths, fZ as resolveSingleValue, fd as runWithContext, eZ as runWithFeatureFlags, f6 as runWithMergedSchemaContext, f7 as runWithSchemaContext, jk as seedRegistryViews, dZ as setContextValue, fs as success, iz as syncAll, iu as syncNativeObjects, jl as syncNativeViews, f_ as traversePath, e_ as tryGetFeatureValue, fK as validateFormulaExpression, fT as validatePath, iv as verifyNativeObjectsSync, jn as verifyNativeViewsSync, jm as verifyRegistryViewsSeeded, eb as viewRegistry, ft as wait, e$ as withFeatureFlags, fe as withTenantContext } from './runtime-ntcKC7g8.mjs';
|
|
3
|
-
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-
|
|
4
|
-
export { z as AttributeGroup, E as BaseAttribute, a8 as CompletionStatus, J as Currency, ah as DEFAULT_VALIDATION_MESSAGES, H as DateFormat, I as DateValue, ab as FORBIDDEN_PROPERTY_TYPES, a0 as FeatureFlagsConfig, $ as FlagOverride, ac as ForbiddenPropertyType, K as Location, Q as LocationGranularity, Z as NON_SORTABLE_TYPES, G as NumberUnit, a7 as ObjectAttribute, a9 as ObjectRecord, ad as PropertyAttribute, ae as PropertySchema, aa as PropertyType, V as RELATION_TARGET_ANY, a1 as RESERVED_ATTRIBUTE_NAMES, a3 as ReservedAttributeName, a2 as SYSTEM_FIELD_NAMES, a6 as SharingMode, y as StatusGroup, a4 as SystemFieldName, a5 as Timestamps, ag as ValidationMessages, b1 as ValidationResult, aB as attributeConfigSchemas, am as checkboxConfigSchema, ba as computeRecordStatus, a_ as createAttributeValidator, aI as createCheckboxValidator, aL as createCurrencyValidator, aJ as createDateValidator, b5 as createDraftValidator, aQ as createFileValidator, a$ as createFormAttributeValidator, aW as createFormulaValidator, aP as createLocationValidator, aT as createMultiRelationValidator, aO as createMultiselectValidator, aH as createNumberValidator, b0 as createObjectValidator, aK as createPhoneValidator, aV as createRatingValidator, aU as createRelationValidator, aZ as createRichtextValidator, aX as createRollupValidator, aN as createSelectValidator, aS as createSingleRelationValidator, aM as createStatusValidator, aY as createTextAreaValidator, aG as createTextValidator, aR as createUserValidator, ap as currencyConfigSchema, an as dateConfigSchema, aA as documentConfigSchema, au as fileConfigSchema, af as formatZodErrors, ay as formulaConfigSchema, aC as getAttributeConfigSchema, b8 as getMissingRequiredAttributes, Y as inferInverseCardinality, _ as isAttributeSortable, X as isBilateralRelation, b9 as isRecordComplete, W as isUniversalRelation, ar as locationConfigSchema, at as multiselectConfigSchema, al as numberConfigSchema, aE as parseAttributeConfig, ao as phoneConfigSchema, ax as ratingConfigSchema, aw as relationConfigSchema, ak as richtextConfigSchema, az as rollupConfigSchema, aF as safeParseAttributeConfig, as as selectConfigSchema, aq as statusConfigSchema, ai as textConfigSchema, aj as textareaConfigSchema, av as userConfigSchema, b2 as validateAttribute, aD as validateAttributeConfig, b6 as validateDraft, b7 as validateDraftOrThrow, b3 as validateObject, b4 as validateObjectOrThrow } from './validators-
|
|
1
|
+
import { F as FormNode, W as WorkflowNode, a as WorkflowNodeType, S as SystemResource, A as Action, I as InferAttributeValue, b as Field, c as AttributeGroupField, d as FieldGroup, R as RelationGroup, D as DetailViewLayout, e as SidePanelConfig, G as Group, f as DetailViewDefinition, g as InstanceStatus, T as Tab, h as TableTab, C as CreateMode, i as FilterState, j as SortRule, L as ListViewDefinition, k as WorkflowTheme, l as WorkflowConfig, m as SlotMode, n as ConditionGroup, o as ConditionRule, p as WorkflowDefinition, q as FlowFieldsRow, r as ListViewConfig, s as ListViewTab, V as ViewType, t as ViewDefinition } from './runtime-Ttkdn9W7.mjs';
|
|
2
|
+
export { a0 as AIAvailableModel, af as AIBatchQuestion, ag as AIBatchQuestionAnswer, ae as AIBatchQuestionOption, a9 as AIChatMessage, a8 as AIChatMessagePart, a3 as AIChatMessagePartType, av as AICompactionSummary, al as AIConversation, g8 as AIConversationsRepository, at as AIMemoryEntry, as as AIMemoryType, am as AIMessage, ak as AIMessageAttachment, _ as AIMessageRole, aq as AIProviderMetrics, ac as AIQuestion, ad as AIQuestionAnswer, ab as AIQuestionOption, aa as AIQuestionType, au as AITenantPersona, $ as AIThinkingLevel, ai as AITodoItem, aj as AITodoList, ah as AITodoStatus, a2 as AIToolCall, an as AIToolCallRecord, a1 as AIToolCallStatus, ap as AIUsageMetrics, g9 as AIUsageMetricsRepository, ao as AIUserMemory, ga as AIUserMemoryRepository, c2 as ALL_ACTIONS, c1 as AccessLevel, cv as ActivityTab, bK as AddAttribute, gv as AddAttributeInput, bb as AdvancedFilterState, ft as AssignExecutor, d0 as AssignNode, ce as AssignRoleInput, c_ as AssignmentMapping, c$ as AssignmentSource, fZ as AttributeChange, bJ as AttributeMap, bF as AttributeSchema, gb as AttributesRepository, ax as AuditAction, ay as AuditActorType, az as AuditChange, aC as AuditListOptions, aA as AuditLogEntry, gc as AuditRepository, aw as AuditResourceType, hJ as AuditService, aD as AuditServiceOptions, gr as BaseRepository, gq as BaseService, B as BoundingBox, en as CacheAdapter, el as CacheKeyType, eo as CacheOptions, cB as CalendarViewConfig, cF as CalendarViewDefinition, dk as CanvasViewport, aZ as CheckboxFilterOperator, fq as ConditionExecutor, d1 as ConditionNode, dc as ConditionOperator, cI as ConfigOverrides, ar as CreateAIMessageInput, aB as CreateAuditLogInput, gu as CreateCustomObjectInput, iv as CreateDBAttribute, ir as CreateDBObject, iH as CreateDBView, iL as CreateDBViewOverlay, iO as CreateDBWorkflow, iX as CreateDBWorkflowAccessGrant, iR as CreateDBWorkflowInstance, iU as CreateDBWorkflowInvitation, aL as CreateDocument, aN as CreateDocumentSlot, aV as CreateFile, dI as CreateGrantInput, hn as CreateGrantResult, dB as CreateInvitationInput, dC as CreateInvitationResult, iy as CreateObjectRecord, cd as CreatePermissionInput, aP as CreateProcessingJob, hO as CreateRecordDocumentInput, hP as CreateRecordDocumentResult, cb as CreateRoleInput, E as CreateSignatureInput, cl as CreateUserProfile, hY as CreateViewInput, hA as CreateWorkflowInput, b4 as CurrencyFilterValue, bO as CustomAttributeValue, cu as CustomTab, iu as DBAttribute, iq as DBObject, iG as DBView, iK as DBViewOverlay, iN as DBWorkflow, iW as DBWorkflowAccessGrant, iQ as DBWorkflowInstance, iT as DBWorkflowInvitation, ig as DEFAULT_LABEL_FALLBACK, e3 as DEFAULT_THEME, ee as DatabaseAdapter, a_ as DateFilterOperator, cA as DetailViewConfig, aE as Document, Y as DocumentData, gd as DocumentJobsRepository, aR as DocumentListOptions, hL as DocumentProcessingConfig, hM as DocumentProcessingService, hR as DocumentService, hQ as DocumentServiceOptions, aG as DocumentSlot, ge as DocumentSlotsRepository, aF as DocumentStatus, gf as DocumentsRepository, cy as DocumentsTab, c8 as EffectivePermissions, fr as EndExecutor, d2 as EndNode, eK as EvaluationResult, eL as EvaluationTrace, fe as ExecutorCompleteResult, ff as ExecutorContext, fg as ExecutorErrorResult, fn as ExecutorRegistry, fh as ExecutorResult, fi as ExecutorSuccessResult, fj as ExecutorWaitResult, b8 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, eY as FeatureFlagsContext, eQ as FeatureFlagsContextError, et as FetchResult, aU as File, i1 as FileContent, iF as FileListOptions, hT as FileService, hS as FileServiceOptions, aT as FileVisibility, gg as FilesRepository, b9 as FilterCombinator, ba as FilterGroup, b2 as FilterOperator, b7 as FilterRule, b6 as FilterValue, bv as FlowDefinition, bm as FlowHeadingRow, bs as FlowPage, bt as FlowRelation, bp as FlowRow, bk as FlowRowField, bl as FlowRowType, bn as FlowSeparatorRow, bj as FlowSlot, bu as FlowStatus, bo as FlowTextRow, cx as FlowsTab, dU as FormContextResponse, cp as FormDensity, fs as FormExecutor, dV as FormFieldContext, d3 as FormFieldRef, dW as FormFieldRow, dX as FormFieldsRow, dY as FormNodeInfo, cq as FormTab, eu as FormattedRecord, gW as FormulaResolverService, gV as FormulaResolverServiceOptions, fH as FormulaResult, id as FullSyncOptions, ic as FullSyncResult, cD as GalleryViewConfig, cH as GalleryViewDefinition, dP as GeneratedDocument, bD as GeocodingAdapter, bA as GeocodingAutocompleteParams, bC as GeocodingParams, hU as GeocodingService, bz as GeocodingSuggestion, gK as GetRelationOptionsParams, h$ as GetViewOptions, h_ as GetViewsOptions, iC as GlobalSearchGroupedOptions, iE as GlobalSearchGroupedResult, iB as GlobalSearchOptions, iD as GlobalSearchResultItem, hV as GlobalSearchService, hj as GrantExpiredError, hi as GrantNotFoundError, hk as GrantRevokedError, hm as GrantServiceConfig, ev as GroupedFetchResult, f_ as HookContext, f$ as HookDefinition, g0 as HookHandler, g3 as HookRegistry, g1 as HookType, gR as HybridRelationValue, Q as IdentityVerificationAdapter, bL as InferRecord, bG as InferRecordFromSchema, bM as InferRecordInput, bN as InferRecordUpdate, bH as InferRecordWithRequirements, ew as InsertOptions, fL as InvalidPathError, cs as InverseSource, hw as InvitationAlreadyAcceptedError, hv as InvitationExpiredError, hu as InvitationNotFoundError, hx as InvitationRevokedError, ht as InvitationServiceConfig, dD as InvitationStatus, cn as InviteUserInput, eg as JwtVerificationResult, h9 as LabelResolver, iz as ListOptions, cz as ListViewLayout, eh as MagicLinkPayload, fM as MaxDepthExceededError, g5 as MockStores, gP as MultiRelationValue, b0 as MultiselectFilterOperator, bg as NO_VALUE_OPERATORS, bf as NoValueOperator, fk as NodeExecutor, dl as NodePosition, es as NoopCacheAdapter, bE as NoopGeocodingAdapter, g2 as NoopHookRegistry, aY as NumberFilterOperator, be as OPERATORS_BY_TYPE, c9 as ObjectPermissions, gh as ObjectRecordsRepository, gy as ObjectSchemaService, gx as ObjectSchemaServiceOptions, gi as ObjectsRepository, O as OcrAdapter, u as OcrInput, v as OcrOptions, x as OcrPage, w as OcrResult, y as OcrTextBlock, iZ as OperationResult, fQ as PathCardinality, fR as PathSegment, fS as PathSegmentType, dt as PendingAction, c6 as Permission, c0 as PermissionScope, hX as PermissionService, hW as PermissionServiceOptions, gj as PermissionsRepository, b5 as PhoneFilterValue, cf as PolicyContext, g7 as PolicyRegistry, ch as PolicyViolationError, aI as ProcessingJob, aK as ProcessingJobStatus, aJ as ProcessingJobType, eI as QueryBuilder, eJ as QueryBuilderOptions, ex as QueryBuilderState, eE as QueryMultipleResultsError, eF as QueryNoResultError, gC as QueryOptions, gE as QueryResult, bd as QueryState, dZ as ReadOnlyReason, a7 as ReasoningPartData, hN as RecordDocumentsResult, bQ as RecordMetadata, cg as RecordPolicy, gF as RecordQueryService, gB as RecordQueryServiceOptions, gT as RecordResolverService, gA as RecordService, gz as RecordServiceOptions, ey as RegistryMap, ez as RegistryObjectNames, e9 as RelationAttributeInput, ea as RelationAttributeRow, eb as RelationAttributesRepository, b1 as RelationFilterOperator, io as RelationLabelResolver, gI as RelationOption, gJ as RelationOptionsResponse, gS as RelationPropertiesService, gO as RelationService, gL as RelationServiceOptions, cr as RelationSource, gH as RelationValidationError, gG as RelationValidationResult, b3 as RelativeDateValue, gM as ResolveIdsBatchRequest, gN as ResolveIdsBatchResponse, gU as ResolvedRelations, hq as ResumeWorkflowInput, bB as ReverseGeocodingParams, cw as RichtextTab, c5 as Role, hh as RollupCascadeContext, gX as RollupResult, g$ as RollupScheduler, g_ as RollupSchedulerOptions, gZ as RollupService, gY as RollupServiceOptions, eG as SHORTCUT_TO_FILTER_OPERATOR, ec as SORTABLE_ATTRIBUTE_TYPES, f4 as SchemaContext, gs as SchemaContextAware, gt as SchemaContextAwareRepository, fT as SchemaResolver, ed as SearchAdapter, iA as SearchOptions, gD as SearchQueryOptions, a$ as SelectFilterOperator, eA as ShortcutOperator, z as SignatureAdapter, J as SignaturePosition, K as SignatureRequestResult, P as SignatureStatus, M as SignatureStatusResult, i4 as SignedUrlOptions, H as SignerRequest, N as SignerStatus, gQ as SingleRelationValue, aH as SlotStatus, bc as SortDirection, fu as StartExecutor, d4 as StartNode, hp as StartWorkflowInput, i5 as StorageAdapter, aS as StorageProvider, i2 as StorageUploadInput, i3 as StorageUploadResult, i8 as SyncOptions, i7 as SyncResult, bR as SystemFields, ca as SystemPermissions, co as TabType, ct as TableSource, fb as TenantContext, eP as TenantContextError, aX as TextFilterOperator, a4 as TextPartData, e0 as ThemeColors, e1 as ThemeLogo, e2 as ThemeTypography, a6 as ThinkingPartData, cC as TimelineViewConfig, cG as TimelineViewDefinition, hl as TokenRevokedError, a5 as ToolPartData, fX as TraversalOptions, fY as TraversalResult, bI as TypedAttribute, bZ as TypedObjectRecord, cj as USER_STATUSES, iw as UpdateDBAttribute, is as UpdateDBObject, iI as UpdateDBView, iM as UpdateDBViewOverlay, iP as UpdateDBWorkflow, iY as UpdateDBWorkflowAccessGrant, iS as UpdateDBWorkflowInstance, iV as UpdateDBWorkflowInvitation, aM as UpdateDocument, aO as UpdateDocumentSlot, aW as UpdateFile, gw as UpdateObjectInput, aQ as UpdateProcessingJob, cc as UpdateRoleInput, cm as UpdateUserProfile, hZ as UpdateViewInput, hB as UpdateWorkflowInput, i6 as UploadFileInput, ix as UpsertDBAttribute, it as UpsertDBObject, iJ as UpsertDBView, ck as UserProfile, hI as UserProfileService, hH as UserProfileServiceOptions, gk as UserProfilesRepository, c7 as UserRoleAssignment, hG as UserService, ci as UserStatus, hF as UserValidationError, hE as UserValidationResult, Z as VerificationCheck, X as VerificationResult, U as VerifyInput, cE as ViewConfig, cJ as ViewOverlay, e8 as ViewOverlaysRepository, i0 as ViewService, i$ as ViewSyncLogger, j0 as ViewSyncOptions, i_ as ViewSyncResult, gl as ViewsRepository, bP as WithCustomAttributes, dJ as WorkflowAccessGrant, ho as WorkflowAccessGrantService, gm as WorkflowAccessGrantsRepository, d_ as WorkflowAccessMode, ei as WorkflowAccessPayload, du as WorkflowError, dQ as WorkflowExecutionContext, dv as WorkflowInstance, hs as WorkflowInstanceService, hr as WorkflowInstanceServiceOptions, gn as WorkflowInstancesRepository, dE as WorkflowInvitation, hy as WorkflowInvitationService, go as WorkflowInvitationsRepository, ej as WorkflowJwtConfig, ek as WorkflowJwtPayload, ef as WorkflowJwtService, dm as WorkflowLayout, hz as WorkflowRelationService, hD as WorkflowService, hC as WorkflowServiceOptions, dn as WorkflowSlot, dp as WorkflowStatus, dw as WorkflowTransition, gp as WorkflowsRepository, c4 as accessLevelToActions, c3 as actionsToAccessLevel, eZ as addSchemaToContext, dd as and, h0 as applyDefaultValues, hK as buildAuditChanges, h3 as buildPolicyContext, ep as cacheKeys, eq as cacheTtl, dK as canAccessNode, dx as canResumeInstance, h1 as checkPermission, h4 as checkRecordAccess, h6 as checkRecordDeleteOrThrow, h5 as checkRecordModifyOrThrow, h7 as checkSharedObjectWriteAccess, fl as complete, h8 as computeLabel, ip as computeLabelWithRelations, hc as createContextForCreate, he as createContextForDelete, hf as createContextForRestore, hd as createContextForUpdate, fc as createDefaultExecutorRegistry, eB as createDefaultState, dR as createEmptyContext, g4 as createMockAdapter, eH as createQueryBuilder, dy as createStartTransition, g6 as defaultPolicyRegistry, er as defaultTtl, hb as enrichRecordsWithFormulas, ik as enrichValuesForDisplay, il as enrichValuesWithSelectLabels, ha as enrichWithFormulas, de as eq, fm as error, eN as evaluate, eM as evaluateCondition, fv as evaluateFormula, fw as evaluateFormulaAttribute, fx as evaluateFormulaAttributeWithRelations, fy as evaluateFormulaWithRelations, fz as evaluateFormulaWithResult, eO as evaluateWithTrace, ij as extractAttributeNames, fA as extractFormulaVariables, im as extractRelationIds, fB as extractRelationNames, fC as extractRelationReferences, fD as flattenRelationsForEval, fE as formatFormulaResult, eC as formatRecord, eD as formatRecords, e4 as generateCssVariables, f5 as getContext, dS as getContextValue, fd as getDefaultExecutorRegistry, eR as getFeatureFlags, eS as getFeatureValue, fI as getPathDepth, h2 as getPolicy, fJ as getRelationPath, bi as getRollupFilterOperators, e_ as getSchemaByNameFromContext, e$ as getSchemaContext, f0 as getSchemaFromContext, ib as getSyncPreview, fK as getTargetAttributeName, f6 as getTenantId, f7 as getUserId, j5 as getViewSeedPreview, j6 as getViewSyncPreview, f8 as hasContext, eT as hasFeatureFlagsContext, fF as hasRelationReferences, f1 as hasSchemaContext, em as hashOptions, df as inValues, cW as isActivityTab, d5 as isAdvancedFormNode, d6 as isAssignNode, cM as isCalendarView, dg as isConditionGroup, d7 as isConditionNode, dh as isConditionRule, cV as isCustomTab, cK as isDetailView, cZ as isDocumentsTab, d8 as isEndNode, eU as isFeatureEnabled, cP as isFieldGroup, bw as isFlowDefinition, bq as isFlowFieldsRow, bx as isFlowPublished, cY as isFlowsTab, d$ as isFormFieldsRow, d9 as isFormNode, cR as isFormTab, cO as isGalleryView, dL as isGrantExpired, dM as isGrantRevoked, dN as isGrantValid, dz as isInstanceTerminal, dA as isInstanceWaiting, cU as isInverseSourceTab, dF as isInvitationAccepted, dG as isInvitationExpired, dH as isInvitationValid, ii as isLabelExpression, br as isLayoutRow, cL as isListView, bh as isNoValueOperator, cQ as isRelationGroup, cT as isRelationSourceTab, cX as isRichtextTab, da as isSimpleFormNode, db as isStartNode, by as isSystemFlow, dq as isSystemWorkflow, cS as isTableTab, cN as isTimelineView, dO as isTokenRevoked, dr as isWorkflowDefinition, ds as isWorkflowPublished, e5 as mergeWithDefaults, di as neq, dj as or, fN as parsePath, fO as pathHasManyCardinality, hg as recalculateParentRollups, e6 as registry, ih as renderLabelExpression, fU as resolveMultiplePaths, fV as resolveSingleValue, f9 as runWithContext, eV as runWithFeatureFlags, f2 as runWithMergedSchemaContext, f3 as runWithSchemaContext, j1 as seedRegistryViews, dT as setContextValue, fo as success, ie as syncAll, i9 as syncNativeObjects, j2 as syncNativeViews, fW as traversePath, eW as tryGetFeatureValue, fG as validateFormulaExpression, fP as validatePath, ia as verifyNativeObjectsSync, j4 as verifyNativeViewsSync, j3 as verifyRegistryViewsSeeded, e7 as viewRegistry, fp as wait, eX as withFeatureFlags, fa as withTenantContext } from './runtime-Ttkdn9W7.mjs';
|
|
3
|
+
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-BeBrdQCB.mjs';
|
|
4
|
+
export { z as AttributeGroup, E as BaseAttribute, a8 as CompletionStatus, J as Currency, ah as DEFAULT_VALIDATION_MESSAGES, H as DateFormat, I as DateValue, ab as FORBIDDEN_PROPERTY_TYPES, a0 as FeatureFlagsConfig, $ as FlagOverride, ac as ForbiddenPropertyType, K as Location, Q as LocationGranularity, Z as NON_SORTABLE_TYPES, G as NumberUnit, a7 as ObjectAttribute, a9 as ObjectRecord, ad as PropertyAttribute, ae as PropertySchema, aa as PropertyType, V as RELATION_TARGET_ANY, a1 as RESERVED_ATTRIBUTE_NAMES, a3 as ReservedAttributeName, a2 as SYSTEM_FIELD_NAMES, a6 as SharingMode, y as StatusGroup, a4 as SystemFieldName, a5 as Timestamps, ag as ValidationMessages, b1 as ValidationResult, aB as attributeConfigSchemas, am as checkboxConfigSchema, ba as computeRecordStatus, a_ as createAttributeValidator, aI as createCheckboxValidator, aL as createCurrencyValidator, aJ as createDateValidator, b5 as createDraftValidator, aQ as createFileValidator, a$ as createFormAttributeValidator, aW as createFormulaValidator, aP as createLocationValidator, aT as createMultiRelationValidator, aO as createMultiselectValidator, aH as createNumberValidator, b0 as createObjectValidator, aK as createPhoneValidator, aV as createRatingValidator, aU as createRelationValidator, aZ as createRichtextValidator, aX as createRollupValidator, aN as createSelectValidator, aS as createSingleRelationValidator, aM as createStatusValidator, aY as createTextAreaValidator, aG as createTextValidator, aR as createUserValidator, ap as currencyConfigSchema, an as dateConfigSchema, aA as documentConfigSchema, au as fileConfigSchema, af as formatZodErrors, ay as formulaConfigSchema, aC as getAttributeConfigSchema, b8 as getMissingRequiredAttributes, Y as inferInverseCardinality, _ as isAttributeSortable, X as isBilateralRelation, b9 as isRecordComplete, W as isUniversalRelation, ar as locationConfigSchema, at as multiselectConfigSchema, al as numberConfigSchema, aE as parseAttributeConfig, ao as phoneConfigSchema, ax as ratingConfigSchema, aw as relationConfigSchema, ak as richtextConfigSchema, az as rollupConfigSchema, aF as safeParseAttributeConfig, as as selectConfigSchema, aq as statusConfigSchema, ai as textConfigSchema, aj as textareaConfigSchema, av as userConfigSchema, b2 as validateAttribute, aD as validateAttributeConfig, b6 as validateDraft, b7 as validateDraftOrThrow, b3 as validateObject, b4 as validateObjectOrThrow } from './validators-BeBrdQCB.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { TenantId, UserId, Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './utils.mjs';
|
|
7
7
|
import { CountryIso3, IconName, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
@@ -257,6 +257,65 @@ declare class ObjectReferencedError extends Error {
|
|
|
257
257
|
*/
|
|
258
258
|
declare function getErrorMessage(error: unknown): string;
|
|
259
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Structural definition for a workflow node type.
|
|
262
|
+
* Centralizes all type-specific behavior (outputs, slots, validation).
|
|
263
|
+
*/
|
|
264
|
+
interface NodeTypeDefinition<T extends WorkflowNode = WorkflowNode> {
|
|
265
|
+
/** Node type identifier (discriminant) */
|
|
266
|
+
type: T["type"];
|
|
267
|
+
/** Whether this node has a single linear `next` output */
|
|
268
|
+
isLinear: boolean;
|
|
269
|
+
/** Whether this node is structural (start/end) vs action (form/condition/document) */
|
|
270
|
+
structural: boolean;
|
|
271
|
+
/** Get all output node IDs (for graph traversal) */
|
|
272
|
+
getOutputs(node: T): string[];
|
|
273
|
+
/** Set the next target for linear nodes (throws for non-linear) */
|
|
274
|
+
setNext(node: T, targetId: string | null): T;
|
|
275
|
+
/** Get all slot IDs referenced by this node */
|
|
276
|
+
getSlotIds(node: T): string[];
|
|
277
|
+
/** Validate node structure, return error messages */
|
|
278
|
+
validate(node: T): string[];
|
|
279
|
+
}
|
|
280
|
+
declare class NodeTypeRegistryImpl {
|
|
281
|
+
private definitions;
|
|
282
|
+
register<T extends WorkflowNode>(definition: NodeTypeDefinition<T>): void;
|
|
283
|
+
get(type: string): NodeTypeDefinition;
|
|
284
|
+
has(type: string): boolean;
|
|
285
|
+
getAll(): NodeTypeDefinition[];
|
|
286
|
+
getActionTypes(): WorkflowNodeType[];
|
|
287
|
+
}
|
|
288
|
+
declare const nodeTypeRegistry: NodeTypeRegistryImpl;
|
|
289
|
+
/**
|
|
290
|
+
* Get the output node IDs from a node (for graph traversal).
|
|
291
|
+
* Delegates to the registered node type definition.
|
|
292
|
+
*/
|
|
293
|
+
declare function getNodeOutputs(node: WorkflowNode): string[];
|
|
294
|
+
/**
|
|
295
|
+
* Set the next target for a linear node.
|
|
296
|
+
* Throws for non-linear nodes (condition, end).
|
|
297
|
+
*/
|
|
298
|
+
declare function setNodeNext(node: WorkflowNode, targetId: string | null): WorkflowNode;
|
|
299
|
+
/**
|
|
300
|
+
* Get all slot IDs referenced by a node.
|
|
301
|
+
* For form nodes: extracts from fields/rows.
|
|
302
|
+
* For document nodes: returns targetSlotIds.
|
|
303
|
+
* For other nodes: returns [].
|
|
304
|
+
*/
|
|
305
|
+
declare function getNodeSlotIds(node: WorkflowNode): string[];
|
|
306
|
+
/**
|
|
307
|
+
* Validate a node's structure and return error messages.
|
|
308
|
+
*/
|
|
309
|
+
declare function validateNode(node: WorkflowNode): string[];
|
|
310
|
+
/**
|
|
311
|
+
* Extract all field references (slotId + attribute pairs) from a FormNode.
|
|
312
|
+
* Works with both simple mode (fields) and advanced mode (rows).
|
|
313
|
+
*/
|
|
314
|
+
declare function getFormFieldRefs(node: FormNode): Array<{
|
|
315
|
+
slotId: string;
|
|
316
|
+
attribute: string;
|
|
317
|
+
}>;
|
|
318
|
+
|
|
260
319
|
/**
|
|
261
320
|
* Base event interface with common properties
|
|
262
321
|
*/
|
|
@@ -439,6 +498,37 @@ declare function isNodeEvent(event: WorkflowEvent): event is WorkflowNodeEntered
|
|
|
439
498
|
*/
|
|
440
499
|
declare function isInvitationOrGrantEvent(event: WorkflowEvent): event is WorkflowInvitationCreatedEvent | WorkflowInvitationAcceptedEvent | WorkflowGrantRevokedEvent | WorkflowInvitationExpiredEvent;
|
|
441
500
|
|
|
501
|
+
type WorkflowZone = "collect" | "actions";
|
|
502
|
+
declare const ZONE_ORDER: WorkflowZone[];
|
|
503
|
+
declare const ZONE_CONFIG: Record<WorkflowZone, {
|
|
504
|
+
allowedNodeTypes: WorkflowNodeType[];
|
|
505
|
+
}>;
|
|
506
|
+
/**
|
|
507
|
+
* Assign zones to an ordered list of nodes.
|
|
508
|
+
*
|
|
509
|
+
* Logic: linear scan. Each node is assigned to its natural zone based on type.
|
|
510
|
+
* Conditions are assigned to "collect" if they precede a form, "actions" otherwise.
|
|
511
|
+
* Terminal nodes (start, end) are NOT assigned a zone — they return null.
|
|
512
|
+
*/
|
|
513
|
+
declare function assignNodeZones(orderedNodes: WorkflowNode[]): Map<string, WorkflowZone | null>;
|
|
514
|
+
interface GroupedWorkflowNodes {
|
|
515
|
+
/** The start node (always exactly one) */
|
|
516
|
+
start: WorkflowNode | null;
|
|
517
|
+
/** Nodes grouped by zone, preserving order */
|
|
518
|
+
zones: Record<WorkflowZone, WorkflowNode[]>;
|
|
519
|
+
/** The end node (always exactly one) */
|
|
520
|
+
end: WorkflowNode | null;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Group ordered nodes by zone, preserving order within each zone.
|
|
524
|
+
* Terminal nodes (start, end) are extracted separately.
|
|
525
|
+
*/
|
|
526
|
+
declare function groupNodesByZone(orderedNodes: WorkflowNode[]): GroupedWorkflowNodes;
|
|
527
|
+
/**
|
|
528
|
+
* Get allowed node types for a given zone.
|
|
529
|
+
*/
|
|
530
|
+
declare function getZoneAllowedTypes(zone: WorkflowZone): WorkflowNodeType[];
|
|
531
|
+
|
|
442
532
|
/**
|
|
443
533
|
* All valid condition operators
|
|
444
534
|
*/
|
|
@@ -516,22 +606,37 @@ declare const FlowRowFieldSchema: z.ZodObject<{
|
|
|
516
606
|
slotId: z.ZodString;
|
|
517
607
|
attribute: z.ZodString;
|
|
518
608
|
label: z.ZodOptional<z.ZodString>;
|
|
609
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
519
610
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
520
611
|
}, z.core.$strip>;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
612
|
+
declare const FlowRowSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
613
|
+
id: z.ZodString;
|
|
614
|
+
order: z.ZodNumber;
|
|
615
|
+
type: z.ZodLiteral<"heading">;
|
|
616
|
+
content: z.ZodString;
|
|
617
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
order: z.ZodNumber;
|
|
621
|
+
type: z.ZodLiteral<"separator">;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
525
623
|
id: z.ZodString;
|
|
526
624
|
order: z.ZodNumber;
|
|
625
|
+
type: z.ZodLiteral<"text">;
|
|
626
|
+
content: z.ZodString;
|
|
627
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
628
|
+
id: z.ZodString;
|
|
629
|
+
order: z.ZodNumber;
|
|
630
|
+
type: z.ZodOptional<z.ZodLiteral<"fields">>;
|
|
527
631
|
fields: z.ZodArray<z.ZodObject<{
|
|
528
632
|
id: z.ZodString;
|
|
529
633
|
slotId: z.ZodString;
|
|
530
634
|
attribute: z.ZodString;
|
|
531
635
|
label: z.ZodOptional<z.ZodString>;
|
|
636
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
532
637
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
533
638
|
}, z.core.$strip>>;
|
|
534
|
-
}, z.core.$strip>;
|
|
639
|
+
}, z.core.$strip>]>;
|
|
535
640
|
/**
|
|
536
641
|
* Form node schema (supports both simple and advanced modes)
|
|
537
642
|
*
|
|
@@ -547,17 +652,34 @@ declare const FormNodeSchema: z.ZodObject<{
|
|
|
547
652
|
slotId: z.ZodString;
|
|
548
653
|
attribute: z.ZodString;
|
|
549
654
|
}, z.core.$strip>>>;
|
|
550
|
-
rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
655
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
551
656
|
id: z.ZodString;
|
|
552
657
|
order: z.ZodNumber;
|
|
658
|
+
type: z.ZodLiteral<"heading">;
|
|
659
|
+
content: z.ZodString;
|
|
660
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
662
|
+
id: z.ZodString;
|
|
663
|
+
order: z.ZodNumber;
|
|
664
|
+
type: z.ZodLiteral<"separator">;
|
|
665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
order: z.ZodNumber;
|
|
668
|
+
type: z.ZodLiteral<"text">;
|
|
669
|
+
content: z.ZodString;
|
|
670
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
671
|
+
id: z.ZodString;
|
|
672
|
+
order: z.ZodNumber;
|
|
673
|
+
type: z.ZodOptional<z.ZodLiteral<"fields">>;
|
|
553
674
|
fields: z.ZodArray<z.ZodObject<{
|
|
554
675
|
id: z.ZodString;
|
|
555
676
|
slotId: z.ZodString;
|
|
556
677
|
attribute: z.ZodString;
|
|
557
678
|
label: z.ZodOptional<z.ZodString>;
|
|
679
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
558
680
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
559
681
|
}, z.core.$strip>>;
|
|
560
|
-
}, z.core.$strip>>>;
|
|
682
|
+
}, z.core.$strip>]>>>;
|
|
561
683
|
participantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
684
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
563
685
|
}, z.core.$strip>;
|
|
@@ -593,19 +715,59 @@ declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
593
715
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
716
|
}, z.core.$strip>;
|
|
595
717
|
/**
|
|
596
|
-
*
|
|
718
|
+
* Assignment source schema (discriminated union)
|
|
597
719
|
*/
|
|
598
|
-
declare const
|
|
599
|
-
type: z.ZodLiteral<"
|
|
720
|
+
declare const AssignmentSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
721
|
+
type: z.ZodLiteral<"expression">;
|
|
722
|
+
template: z.ZodString;
|
|
723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
724
|
+
type: z.ZodLiteral<"slot-ref">;
|
|
725
|
+
slotId: z.ZodString;
|
|
726
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
+
type: z.ZodLiteral<"static">;
|
|
729
|
+
value: z.ZodUnknown;
|
|
730
|
+
}, z.core.$strip>], "type">;
|
|
731
|
+
/**
|
|
732
|
+
* Assignment mapping schema
|
|
733
|
+
*/
|
|
734
|
+
declare const AssignmentMappingSchema: z.ZodObject<{
|
|
735
|
+
targetAttribute: z.ZodString;
|
|
736
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
737
|
+
type: z.ZodLiteral<"expression">;
|
|
738
|
+
template: z.ZodString;
|
|
739
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
740
|
+
type: z.ZodLiteral<"slot-ref">;
|
|
741
|
+
slotId: z.ZodString;
|
|
742
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
744
|
+
type: z.ZodLiteral<"static">;
|
|
745
|
+
value: z.ZodUnknown;
|
|
746
|
+
}, z.core.$strip>], "type">;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
/**
|
|
749
|
+
* Assign node schema
|
|
750
|
+
*/
|
|
751
|
+
declare const AssignNodeSchema: z.ZodObject<{
|
|
752
|
+
type: z.ZodLiteral<"assign">;
|
|
600
753
|
id: z.ZodString;
|
|
601
754
|
label: z.ZodString;
|
|
602
755
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
756
|
+
targetSlotId: z.ZodString;
|
|
757
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
758
|
+
targetAttribute: z.ZodString;
|
|
759
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
760
|
+
type: z.ZodLiteral<"expression">;
|
|
761
|
+
template: z.ZodString;
|
|
762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
763
|
+
type: z.ZodLiteral<"slot-ref">;
|
|
764
|
+
slotId: z.ZodString;
|
|
765
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
767
|
+
type: z.ZodLiteral<"static">;
|
|
768
|
+
value: z.ZodUnknown;
|
|
769
|
+
}, z.core.$strip>], "type">;
|
|
770
|
+
}, z.core.$strip>>;
|
|
609
771
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
772
|
}, z.core.$strip>;
|
|
611
773
|
/**
|
|
@@ -633,17 +795,34 @@ declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
633
795
|
slotId: z.ZodString;
|
|
634
796
|
attribute: z.ZodString;
|
|
635
797
|
}, z.core.$strip>>>;
|
|
636
|
-
rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
798
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
799
|
+
id: z.ZodString;
|
|
800
|
+
order: z.ZodNumber;
|
|
801
|
+
type: z.ZodLiteral<"heading">;
|
|
802
|
+
content: z.ZodString;
|
|
803
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
804
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
805
|
id: z.ZodString;
|
|
638
806
|
order: z.ZodNumber;
|
|
807
|
+
type: z.ZodLiteral<"separator">;
|
|
808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
809
|
+
id: z.ZodString;
|
|
810
|
+
order: z.ZodNumber;
|
|
811
|
+
type: z.ZodLiteral<"text">;
|
|
812
|
+
content: z.ZodString;
|
|
813
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
814
|
+
id: z.ZodString;
|
|
815
|
+
order: z.ZodNumber;
|
|
816
|
+
type: z.ZodOptional<z.ZodLiteral<"fields">>;
|
|
639
817
|
fields: z.ZodArray<z.ZodObject<{
|
|
640
818
|
id: z.ZodString;
|
|
641
819
|
slotId: z.ZodString;
|
|
642
820
|
attribute: z.ZodString;
|
|
643
821
|
label: z.ZodOptional<z.ZodString>;
|
|
822
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
644
823
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
645
824
|
}, z.core.$strip>>;
|
|
646
|
-
}, z.core.$strip>>>;
|
|
825
|
+
}, z.core.$strip>]>>>;
|
|
647
826
|
participantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
827
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
828
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -674,16 +853,25 @@ declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
674
853
|
onTrue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
675
854
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
676
855
|
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
-
type: z.ZodLiteral<"
|
|
856
|
+
type: z.ZodLiteral<"assign">;
|
|
678
857
|
id: z.ZodString;
|
|
679
858
|
label: z.ZodString;
|
|
680
859
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
860
|
+
targetSlotId: z.ZodString;
|
|
861
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
862
|
+
targetAttribute: z.ZodString;
|
|
863
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
864
|
+
type: z.ZodLiteral<"expression">;
|
|
865
|
+
template: z.ZodString;
|
|
866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
+
type: z.ZodLiteral<"slot-ref">;
|
|
868
|
+
slotId: z.ZodString;
|
|
869
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
870
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
871
|
+
type: z.ZodLiteral<"static">;
|
|
872
|
+
value: z.ZodUnknown;
|
|
873
|
+
}, z.core.$strip>], "type">;
|
|
874
|
+
}, z.core.$strip>>;
|
|
687
875
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
688
876
|
}, z.core.$strip>, z.ZodObject<{
|
|
689
877
|
type: z.ZodLiteral<"end">;
|
|
@@ -905,17 +1093,34 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
905
1093
|
slotId: z.ZodString;
|
|
906
1094
|
attribute: z.ZodString;
|
|
907
1095
|
}, z.core.$strip>>>;
|
|
908
|
-
rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1096
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1097
|
+
id: z.ZodString;
|
|
1098
|
+
order: z.ZodNumber;
|
|
1099
|
+
type: z.ZodLiteral<"heading">;
|
|
1100
|
+
content: z.ZodString;
|
|
1101
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1103
|
+
id: z.ZodString;
|
|
1104
|
+
order: z.ZodNumber;
|
|
1105
|
+
type: z.ZodLiteral<"separator">;
|
|
1106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1107
|
+
id: z.ZodString;
|
|
1108
|
+
order: z.ZodNumber;
|
|
1109
|
+
type: z.ZodLiteral<"text">;
|
|
1110
|
+
content: z.ZodString;
|
|
1111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
909
1112
|
id: z.ZodString;
|
|
910
1113
|
order: z.ZodNumber;
|
|
1114
|
+
type: z.ZodOptional<z.ZodLiteral<"fields">>;
|
|
911
1115
|
fields: z.ZodArray<z.ZodObject<{
|
|
912
1116
|
id: z.ZodString;
|
|
913
1117
|
slotId: z.ZodString;
|
|
914
1118
|
attribute: z.ZodString;
|
|
915
1119
|
label: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
916
1121
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
917
1122
|
}, z.core.$strip>>;
|
|
918
|
-
}, z.core.$strip>>>;
|
|
1123
|
+
}, z.core.$strip>]>>>;
|
|
919
1124
|
participantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
920
1125
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
921
1126
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -946,16 +1151,25 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
946
1151
|
onTrue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
947
1152
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
1153
|
}, z.core.$strip>, z.ZodObject<{
|
|
949
|
-
type: z.ZodLiteral<"
|
|
1154
|
+
type: z.ZodLiteral<"assign">;
|
|
950
1155
|
id: z.ZodString;
|
|
951
1156
|
label: z.ZodString;
|
|
952
1157
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1158
|
+
targetSlotId: z.ZodString;
|
|
1159
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1160
|
+
targetAttribute: z.ZodString;
|
|
1161
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1162
|
+
type: z.ZodLiteral<"expression">;
|
|
1163
|
+
template: z.ZodString;
|
|
1164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1165
|
+
type: z.ZodLiteral<"slot-ref">;
|
|
1166
|
+
slotId: z.ZodString;
|
|
1167
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1169
|
+
type: z.ZodLiteral<"static">;
|
|
1170
|
+
value: z.ZodUnknown;
|
|
1171
|
+
}, z.core.$strip>], "type">;
|
|
1172
|
+
}, z.core.$strip>>;
|
|
959
1173
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
1174
|
}, z.core.$strip>, z.ZodObject<{
|
|
961
1175
|
type: z.ZodLiteral<"end">;
|
|
@@ -2127,7 +2341,6 @@ declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>)
|
|
|
2127
2341
|
* @example Multiple documents
|
|
2128
2342
|
* ```typescript
|
|
2129
2343
|
* document({ name: "contracts", label: "Contrats" })
|
|
2130
|
-
* .template("signable_contract")
|
|
2131
2344
|
* .multiple()
|
|
2132
2345
|
* .maxDocuments(10)
|
|
2133
2346
|
* ```
|
|
@@ -2139,16 +2352,6 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
2139
2352
|
required: TRequired;
|
|
2140
2353
|
};
|
|
2141
2354
|
constructor(name: TName, label: string);
|
|
2142
|
-
/**
|
|
2143
|
-
* Set a single required template.
|
|
2144
|
-
* Only documents using this template can be attached.
|
|
2145
|
-
*/
|
|
2146
|
-
template(templateId: string): this;
|
|
2147
|
-
/**
|
|
2148
|
-
* Set multiple allowed templates.
|
|
2149
|
-
* User can choose which template to use when uploading.
|
|
2150
|
-
*/
|
|
2151
|
-
templates(templateIds: string[]): this;
|
|
2152
2355
|
/**
|
|
2153
2356
|
* Allow multiple documents.
|
|
2154
2357
|
* Value becomes string[] instead of string.
|
|
@@ -3335,7 +3538,7 @@ declare class WorkflowFormBuilder {
|
|
|
3335
3538
|
*/
|
|
3336
3539
|
next(nodeId: string): WorkflowBuilder;
|
|
3337
3540
|
/** @internal */
|
|
3338
|
-
_finalizeRow(row:
|
|
3541
|
+
_finalizeRow(row: FlowFieldsRow): this;
|
|
3339
3542
|
}
|
|
3340
3543
|
/**
|
|
3341
3544
|
* Builder for creating simple form nodes with field references.
|
|
@@ -3395,6 +3598,41 @@ declare class WorkflowConditionBuilder {
|
|
|
3395
3598
|
onFalse: (nodeId: string) => WorkflowBuilder;
|
|
3396
3599
|
};
|
|
3397
3600
|
}
|
|
3601
|
+
/**
|
|
3602
|
+
* Builder for creating assign nodes (set values on a target slot)
|
|
3603
|
+
*/
|
|
3604
|
+
declare class WorkflowAssignBuilder {
|
|
3605
|
+
private workflowBuilder;
|
|
3606
|
+
private nodeId;
|
|
3607
|
+
private label;
|
|
3608
|
+
private nodeDescription?;
|
|
3609
|
+
private targetSlotId;
|
|
3610
|
+
private assignments;
|
|
3611
|
+
/** @internal */
|
|
3612
|
+
constructor(workflowBuilder: WorkflowBuilder, nodeId: string, label: string, targetSlotId: string);
|
|
3613
|
+
/**
|
|
3614
|
+
* Set an attribute using an expression template.
|
|
3615
|
+
* Uses mustache syntax: `{{ slotId.attribute }}`.
|
|
3616
|
+
*/
|
|
3617
|
+
expression(targetAttribute: string, template: string): this;
|
|
3618
|
+
/**
|
|
3619
|
+
* Link a relation attribute to a slot's record.
|
|
3620
|
+
* Optionally include qualified relation properties.
|
|
3621
|
+
*/
|
|
3622
|
+
slotRef(targetAttribute: string, slotId: string, properties?: Record<string, unknown>): this;
|
|
3623
|
+
/**
|
|
3624
|
+
* Set a static value on an attribute
|
|
3625
|
+
*/
|
|
3626
|
+
setValue(targetAttribute: string, value: unknown): this;
|
|
3627
|
+
/**
|
|
3628
|
+
* Set the description for this assign node
|
|
3629
|
+
*/
|
|
3630
|
+
describe(description: string): this;
|
|
3631
|
+
/**
|
|
3632
|
+
* Set the next node and complete the assign definition
|
|
3633
|
+
*/
|
|
3634
|
+
next(nodeId: string): WorkflowBuilder;
|
|
3635
|
+
}
|
|
3398
3636
|
/**
|
|
3399
3637
|
* Builder for creating end nodes
|
|
3400
3638
|
*/
|
|
@@ -3528,6 +3766,10 @@ declare class WorkflowBuilder {
|
|
|
3528
3766
|
* Define a condition node
|
|
3529
3767
|
*/
|
|
3530
3768
|
condition(id: string, label: string): WorkflowConditionBuilder;
|
|
3769
|
+
/**
|
|
3770
|
+
* Define an assign node (set values on a target slot)
|
|
3771
|
+
*/
|
|
3772
|
+
assign(id: string, label: string, targetSlotId: string): WorkflowAssignBuilder;
|
|
3531
3773
|
/**
|
|
3532
3774
|
* Define an end node
|
|
3533
3775
|
*/
|
|
@@ -4006,7 +4248,7 @@ declare class FlagService {
|
|
|
4006
4248
|
*/
|
|
4007
4249
|
deleteOverride(flagName: string, level: FlagLevel, targetId?: string): Promise<void>;
|
|
4008
4250
|
/**
|
|
4009
|
-
* Get all overrides organized by level.
|
|
4251
|
+
* Get all overrides organized by level, optionally filtered to specific flag names.
|
|
4010
4252
|
*/
|
|
4011
4253
|
private getAllOverrides;
|
|
4012
4254
|
/**
|
|
@@ -4152,59 +4394,4 @@ declare function resetViewToDefault(currentView: ViewDefinition, object: ObjectD
|
|
|
4152
4394
|
*/
|
|
4153
4395
|
declare function isViewCustomized(view: ViewDefinition, object: ObjectDefinition): boolean;
|
|
4154
4396
|
|
|
4155
|
-
|
|
4156
|
-
readonly FRENCH_ID_CARD: "00000000-0000-0000-0001-000000000001";
|
|
4157
|
-
readonly PASSPORT: "00000000-0000-0000-0001-000000000002";
|
|
4158
|
-
readonly DRIVING_LICENSE: "00000000-0000-0000-0001-000000000003";
|
|
4159
|
-
readonly PROOF_OF_ADDRESS: "00000000-0000-0000-0001-000000000004";
|
|
4160
|
-
readonly SIGNABLE_CONTRACT: "00000000-0000-0000-0001-000000000005";
|
|
4161
|
-
readonly GENERIC_DOCUMENT: "00000000-0000-0000-0001-000000000006";
|
|
4162
|
-
};
|
|
4163
|
-
/**
|
|
4164
|
-
* French National ID Card template.
|
|
4165
|
-
* Requires front (recto) and back (verso) images.
|
|
4166
|
-
* Automatically triggers OCR and identity verification.
|
|
4167
|
-
*/
|
|
4168
|
-
declare const FRENCH_ID_CARD: DocumentTemplate;
|
|
4169
|
-
/**
|
|
4170
|
-
* Passport template.
|
|
4171
|
-
* Requires the data page (photo + MRZ).
|
|
4172
|
-
* Optionally allows additional pages.
|
|
4173
|
-
*/
|
|
4174
|
-
declare const PASSPORT: DocumentTemplate;
|
|
4175
|
-
/**
|
|
4176
|
-
* Driving License template.
|
|
4177
|
-
* Can be single or double-sided depending on country.
|
|
4178
|
-
*/
|
|
4179
|
-
declare const DRIVING_LICENSE: DocumentTemplate;
|
|
4180
|
-
/**
|
|
4181
|
-
* Proof of Address template.
|
|
4182
|
-
* Single document (utility bill, bank statement, etc.).
|
|
4183
|
-
*/
|
|
4184
|
-
declare const PROOF_OF_ADDRESS: DocumentTemplate;
|
|
4185
|
-
/**
|
|
4186
|
-
* Signable Contract template.
|
|
4187
|
-
* PDF document that requires electronic signature.
|
|
4188
|
-
*/
|
|
4189
|
-
declare const SIGNABLE_CONTRACT: DocumentTemplate;
|
|
4190
|
-
/**
|
|
4191
|
-
* Generic Document template.
|
|
4192
|
-
* Single file of any type, no automatic processing.
|
|
4193
|
-
* Used as default when no specific template is required.
|
|
4194
|
-
*/
|
|
4195
|
-
declare const GENERIC_DOCUMENT: DocumentTemplate;
|
|
4196
|
-
/**
|
|
4197
|
-
* All system templates.
|
|
4198
|
-
* Use this to seed the database or for template lookups.
|
|
4199
|
-
*/
|
|
4200
|
-
declare const SYSTEM_TEMPLATES: DocumentTemplate[];
|
|
4201
|
-
/**
|
|
4202
|
-
* Get a system template by name.
|
|
4203
|
-
*/
|
|
4204
|
-
declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
|
|
4205
|
-
/**
|
|
4206
|
-
* Check if a template name is a system template.
|
|
4207
|
-
*/
|
|
4208
|
-
declare function isSystemTemplate(name: string): boolean;
|
|
4209
|
-
|
|
4210
|
-
export { ALL_SYSTEM_RESOURCES, Action, 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_FOR_NEW_USERS, 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, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, Phone, PhoneAttribute, type PhoneNormalizationResult, 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, 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, formatPhoneForDisplay, 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, normalizePhoneNumber, number, numberFlag, object, parseRawPhoneInput, phone, rating, relation, relationGroup, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validatePhoneNumber, view, workflow };
|
|
4397
|
+
export { ALL_SYSTEM_RESOURCES, Action, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, AssignNodeSchema, AssignmentMappingSchema, AssignmentSourceSchema, 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_FOR_NEW_USERS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, FileAttribute, FileNotFoundError, FilterState, FlagLevel, FlagRegistry, type FlagResolutionContext, FlagService, type FlagServiceOptions, FlagValueType, FlowFieldsRow, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNode, FormNodeSchema, FormulaAttribute, FormulaReturnType, type GenerateFallbackViewOptions, Group, GroupBuilder, type GroupedWorkflowNodes, IDENTITY_PROPERTIES, type IdentityProperty, InferAttributeValue, InstanceStatus, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, type NodeTypeDefinition, NotFoundError, NotSystemObjectError, NumberAttribute, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PRESENTATION_PROPERTIES, Phone, PhoneAttribute, type PhoneNormalizationResult, 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, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SidePanelConfig, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, SyncError, 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, WorkflowAssignBuilder, 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, WorkflowNodeType, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowTheme, WorkflowThemeSchema, type WorkflowZone, ZONE_CONFIG, ZONE_ORDER, applyRelationProps, assignNodeZones, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, flagRegistry, formatAttributeValue, formatPhoneForDisplay, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getActiveTab, getErrorMessage, getFormFieldRefs, getNodeOutputs, getNodeSlotIds, getSystemAttributeList, getZoneAllowedTypes, group, groupNodesByZone, hasProperties, isBehaviorProperty, isDefaultRole, isEmpty, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotEmpty, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, nodeTypeRegistry, normalizePhoneNumber, number, numberFlag, object, parseRawPhoneInput, phone, rating, relation, relationGroup, resetViewToDefault, richtext, rollup, select, setNodeNext, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateNode, validatePhoneNumber, view, workflow };
|