@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as Timestamps, A as Attribute, p as AttributeType, K as Location, Q as LocationGranularity, S as StatusAttribute, e as SelectAttribute, M as MultiselectAttribute, I as Phone, J as Currency, l as FormulaAttribute, n as RollupAttribute, a6 as CompletionStatus, a4 as SharingMode, a7 as ObjectRecord, q as ObjectDefinition, u as FeatureFlagsRepository, a$ as ValidationResult, ac as PropertySchema, h as RelationAttribute, m as FormulaReturnType } from './validators-CEzdvxEq.js';
|
|
2
2
|
import { IconName, MimeType, ColorId, CountryIso3 } from '@stndrds/constants';
|
|
3
3
|
import { Uuid, TenantId, UserId } from './utils.js';
|
|
4
4
|
import { JWTPayload } from 'jose';
|
|
@@ -3065,18 +3065,55 @@ interface Field {
|
|
|
3065
3065
|
readOnly?: boolean;
|
|
3066
3066
|
}
|
|
3067
3067
|
/**
|
|
3068
|
-
*
|
|
3068
|
+
* Base properties shared by all group types
|
|
3069
3069
|
*/
|
|
3070
|
-
interface
|
|
3070
|
+
interface BaseGroup {
|
|
3071
3071
|
id: string;
|
|
3072
3072
|
label: string;
|
|
3073
3073
|
description?: string;
|
|
3074
|
-
fields: Field[];
|
|
3075
3074
|
collapsible?: boolean;
|
|
3076
3075
|
collapsed?: boolean;
|
|
3077
3076
|
order?: number;
|
|
3078
3077
|
}
|
|
3079
|
-
|
|
3078
|
+
/**
|
|
3079
|
+
* Group of fields for organizing forms (default group type)
|
|
3080
|
+
*/
|
|
3081
|
+
interface FieldGroup extends BaseGroup {
|
|
3082
|
+
/** Discriminant — optional for backward compatibility with existing data */
|
|
3083
|
+
type?: "fields";
|
|
3084
|
+
fields: Field[];
|
|
3085
|
+
}
|
|
3086
|
+
/**
|
|
3087
|
+
* Group that displays a RelationsView for a relation attribute
|
|
3088
|
+
*/
|
|
3089
|
+
interface RelationGroup extends BaseGroup {
|
|
3090
|
+
type: "relation";
|
|
3091
|
+
/** Relation attribute name on the source object */
|
|
3092
|
+
attribute: string;
|
|
3093
|
+
/** Columns to display (auto-detected from target object if empty) */
|
|
3094
|
+
columns?: string[];
|
|
3095
|
+
/** Read-only mode */
|
|
3096
|
+
readOnly?: boolean;
|
|
3097
|
+
/** Allow creating new related records */
|
|
3098
|
+
allowCreate?: boolean;
|
|
3099
|
+
/**
|
|
3100
|
+
* Two-level traversal — display records from the target's relation.
|
|
3101
|
+
* When set, parent rows become grouping headers and the sub-rows
|
|
3102
|
+
* (from `through.attribute`) are the primary display.
|
|
3103
|
+
*
|
|
3104
|
+
* @example attribute = "members", through.attribute = "companies"
|
|
3105
|
+
* → displays companies of each member
|
|
3106
|
+
*/
|
|
3107
|
+
through?: {
|
|
3108
|
+
/** Relation attribute on the first-level target object */
|
|
3109
|
+
attribute: string;
|
|
3110
|
+
};
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Discriminated union of all group types
|
|
3114
|
+
*/
|
|
3115
|
+
type Group = FieldGroup | RelationGroup;
|
|
3116
|
+
type TabType = "form" | "table" | "custom" | "activity" | "richtext" | "flows" | "documents";
|
|
3080
3117
|
/**
|
|
3081
3118
|
* Base properties shared by all tab types
|
|
3082
3119
|
*/
|
|
@@ -3103,12 +3140,58 @@ interface FormTab extends BaseTab {
|
|
|
3103
3140
|
density?: FormDensity;
|
|
3104
3141
|
}
|
|
3105
3142
|
/**
|
|
3106
|
-
*
|
|
3143
|
+
* Direct relation on the current object
|
|
3144
|
+
*
|
|
3145
|
+
* @example Contact.companies → shows Companies linked via the "companies" relation
|
|
3107
3146
|
*/
|
|
3108
|
-
interface
|
|
3147
|
+
interface RelationSource {
|
|
3148
|
+
type: "relation";
|
|
3149
|
+
/** Relation attribute name on the current object */
|
|
3150
|
+
attribute: string;
|
|
3151
|
+
}
|
|
3152
|
+
/**
|
|
3153
|
+
* Inverse lookup — records from another object that point to us
|
|
3154
|
+
*
|
|
3155
|
+
* @example On Company, show Contacts where Contact.company = this Company
|
|
3156
|
+
*/
|
|
3157
|
+
interface InverseSource {
|
|
3158
|
+
type: "inverse";
|
|
3159
|
+
/** Object name that has the relation to us */
|
|
3160
|
+
object: string;
|
|
3161
|
+
/** Relation attribute name on the source object that points to us */
|
|
3162
|
+
attribute: string;
|
|
3163
|
+
}
|
|
3164
|
+
/**
|
|
3165
|
+
* Where table data comes from — either a direct relation or an inverse lookup
|
|
3166
|
+
*/
|
|
3167
|
+
type TableSource = RelationSource | InverseSource;
|
|
3168
|
+
/**
|
|
3169
|
+
* Table tab - displays related records in a table
|
|
3170
|
+
*
|
|
3171
|
+
* The `source` field determines where data comes from.
|
|
3172
|
+
*
|
|
3173
|
+
* @example Direct: source = { type: "relation", attribute: "members" }
|
|
3174
|
+
* @example Inverse: source = { type: "inverse", object: "contacts", attribute: "company" }
|
|
3175
|
+
*/
|
|
3176
|
+
interface TableTab extends BaseTab {
|
|
3109
3177
|
type: "table";
|
|
3110
|
-
/**
|
|
3178
|
+
/** Where the data comes from */
|
|
3179
|
+
source: TableSource;
|
|
3180
|
+
/** Columns to display (attribute names from the resolved target object) */
|
|
3111
3181
|
columns: string[];
|
|
3182
|
+
/**
|
|
3183
|
+
* Traverse a 2nd-level relation to display nested data.
|
|
3184
|
+
* When active, `columns` stores the 2nd-level object's attribute names.
|
|
3185
|
+
*
|
|
3186
|
+
* @example source.attribute = "members", through.attribute = "companies"
|
|
3187
|
+
* → displays companies of each member
|
|
3188
|
+
*/
|
|
3189
|
+
through?: {
|
|
3190
|
+
/** Relation attribute on the first-level target object */
|
|
3191
|
+
attribute: string;
|
|
3192
|
+
/** Show _source and _target columns */
|
|
3193
|
+
showSourceTarget?: boolean;
|
|
3194
|
+
};
|
|
3112
3195
|
/** Allow creating new records */
|
|
3113
3196
|
allowCreate?: boolean;
|
|
3114
3197
|
/** Creation behavior when allowCreate is true. Default: "redirect" */
|
|
@@ -3122,32 +3205,6 @@ interface TableTabBase extends BaseTab {
|
|
|
3122
3205
|
/** Default sort rules */
|
|
3123
3206
|
sorts?: SortRule[];
|
|
3124
3207
|
}
|
|
3125
|
-
/**
|
|
3126
|
-
* Direct table tab - displays records from a relation attribute on the current object
|
|
3127
|
-
*
|
|
3128
|
-
* @example Project.members → shows Users linked via the "members" relation
|
|
3129
|
-
*/
|
|
3130
|
-
interface DirectTableTab extends TableTabBase {
|
|
3131
|
-
relationMode: "direct";
|
|
3132
|
-
/** Relation attribute name on the current object */
|
|
3133
|
-
relationAttribute: string;
|
|
3134
|
-
}
|
|
3135
|
-
/**
|
|
3136
|
-
* Inverse table tab - displays records from another object that have a relation to us
|
|
3137
|
-
*
|
|
3138
|
-
* @example Contact.company → on Company, shows Contacts that point to this Company
|
|
3139
|
-
*/
|
|
3140
|
-
interface InverseTableTab extends TableTabBase {
|
|
3141
|
-
relationMode: "inverse";
|
|
3142
|
-
/** Object name that has the relation to us */
|
|
3143
|
-
sourceObject: string;
|
|
3144
|
-
/** Relation attribute name on the source object that points to us */
|
|
3145
|
-
relationAttribute: string;
|
|
3146
|
-
}
|
|
3147
|
-
/**
|
|
3148
|
-
* Table tab - displays related records in a table
|
|
3149
|
-
*/
|
|
3150
|
-
type TableTab = DirectTableTab | InverseTableTab;
|
|
3151
3208
|
/**
|
|
3152
3209
|
* Custom tab - renders a developer-defined component
|
|
3153
3210
|
*/
|
|
@@ -3166,12 +3223,14 @@ interface ActivityTab extends BaseTab {
|
|
|
3166
3223
|
limit?: number;
|
|
3167
3224
|
}
|
|
3168
3225
|
/**
|
|
3169
|
-
*
|
|
3226
|
+
* Richtext tab - displays a block editor for a richtext attribute
|
|
3170
3227
|
*/
|
|
3171
|
-
interface
|
|
3172
|
-
type: "
|
|
3173
|
-
|
|
3174
|
-
|
|
3228
|
+
interface RichtextTab extends BaseTab {
|
|
3229
|
+
type: "richtext";
|
|
3230
|
+
/** Richtext attribute to display in the BlockEditor */
|
|
3231
|
+
attribute: string;
|
|
3232
|
+
/** Optional text attribute for an editable title input above the editor */
|
|
3233
|
+
titleAttribute?: string;
|
|
3175
3234
|
}
|
|
3176
3235
|
/**
|
|
3177
3236
|
* Flows tab - displays workflow instances linked to the current record
|
|
@@ -3197,7 +3256,7 @@ interface DocumentsTab extends BaseTab {
|
|
|
3197
3256
|
/**
|
|
3198
3257
|
* Union of all tab types (for detail views)
|
|
3199
3258
|
*/
|
|
3200
|
-
type Tab = FormTab | TableTab | CustomTab | ActivityTab |
|
|
3259
|
+
type Tab = FormTab | TableTab | CustomTab | ActivityTab | RichtextTab | FlowsTab | DocumentsTab;
|
|
3201
3260
|
/**
|
|
3202
3261
|
* Detail view layout mode
|
|
3203
3262
|
* - `page`: Full view with multiple tabs
|
|
@@ -3210,8 +3269,6 @@ type DetailViewLayout = "page" | "modal";
|
|
|
3210
3269
|
* - `kanban`: Kanban board layout (grouped by attribute)
|
|
3211
3270
|
*/
|
|
3212
3271
|
type ListViewLayout = "table" | "kanban";
|
|
3213
|
-
/** @deprecated Use DetailViewLayout instead */
|
|
3214
|
-
type ViewLayout = DetailViewLayout;
|
|
3215
3272
|
/**
|
|
3216
3273
|
* Tab within a list view — each tab carries its own full display configuration.
|
|
3217
3274
|
*
|
|
@@ -3254,8 +3311,16 @@ interface ListViewTab {
|
|
|
3254
3311
|
/** Date attribute to display on kanban cards (bottom-right) */
|
|
3255
3312
|
cardDateAttribute?: string;
|
|
3256
3313
|
}
|
|
3257
|
-
/**
|
|
3258
|
-
|
|
3314
|
+
/**
|
|
3315
|
+
* Configuration for the side panel displayed alongside tab content.
|
|
3316
|
+
* When present, a right-side panel shows the configured attributes as flat fields.
|
|
3317
|
+
*/
|
|
3318
|
+
interface SidePanelConfig {
|
|
3319
|
+
/** Attribute names to display as flat fields in the panel */
|
|
3320
|
+
attributes: string[];
|
|
3321
|
+
/** Width in pixels. @default 320 */
|
|
3322
|
+
width?: number;
|
|
3323
|
+
}
|
|
3259
3324
|
/**
|
|
3260
3325
|
* Configuration for detail views (RecordEditView)
|
|
3261
3326
|
*/
|
|
@@ -3264,6 +3329,8 @@ interface DetailViewConfig {
|
|
|
3264
3329
|
layout: DetailViewLayout;
|
|
3265
3330
|
/** Tabs in this view */
|
|
3266
3331
|
tabs: Tab[];
|
|
3332
|
+
/** Optional side panel with flat attribute fields (not available for modal layout) */
|
|
3333
|
+
sidePanel?: SidePanelConfig;
|
|
3267
3334
|
}
|
|
3268
3335
|
/**
|
|
3269
3336
|
* Configuration for list views (RecordsView)
|
|
@@ -3424,6 +3491,14 @@ declare function isTimelineView(view: ViewDefinition): view is TimelineViewDefin
|
|
|
3424
3491
|
* Check if a view is a gallery view
|
|
3425
3492
|
*/
|
|
3426
3493
|
declare function isGalleryView(view: ViewDefinition): view is GalleryViewDefinition;
|
|
3494
|
+
/**
|
|
3495
|
+
* Check if a group is a field group (default type)
|
|
3496
|
+
*/
|
|
3497
|
+
declare function isFieldGroup(group: Group): group is FieldGroup;
|
|
3498
|
+
/**
|
|
3499
|
+
* Check if a group is a relation group
|
|
3500
|
+
*/
|
|
3501
|
+
declare function isRelationGroup(group: Group): group is RelationGroup;
|
|
3427
3502
|
/**
|
|
3428
3503
|
* Check if a tab is a form tab
|
|
3429
3504
|
*/
|
|
@@ -3433,13 +3508,17 @@ declare function isFormTab(tab: Tab): tab is FormTab;
|
|
|
3433
3508
|
*/
|
|
3434
3509
|
declare function isTableTab(tab: Tab): tab is TableTab;
|
|
3435
3510
|
/**
|
|
3436
|
-
* Check if a table tab
|
|
3511
|
+
* Check if a table tab uses a direct relation source
|
|
3437
3512
|
*/
|
|
3438
|
-
declare function
|
|
3513
|
+
declare function isRelationSourceTab(tab: Tab): tab is TableTab & {
|
|
3514
|
+
source: RelationSource;
|
|
3515
|
+
};
|
|
3439
3516
|
/**
|
|
3440
|
-
* Check if a table tab
|
|
3517
|
+
* Check if a table tab uses an inverse source
|
|
3441
3518
|
*/
|
|
3442
|
-
declare function
|
|
3519
|
+
declare function isInverseSourceTab(tab: Tab): tab is TableTab & {
|
|
3520
|
+
source: InverseSource;
|
|
3521
|
+
};
|
|
3443
3522
|
/**
|
|
3444
3523
|
* Check if a tab is a custom tab
|
|
3445
3524
|
*/
|
|
@@ -3449,9 +3528,9 @@ declare function isCustomTab(tab: Tab): tab is CustomTab;
|
|
|
3449
3528
|
*/
|
|
3450
3529
|
declare function isActivityTab(tab: Tab): tab is ActivityTab;
|
|
3451
3530
|
/**
|
|
3452
|
-
* Check if a tab is a
|
|
3531
|
+
* Check if a tab is a richtext tab
|
|
3453
3532
|
*/
|
|
3454
|
-
declare function
|
|
3533
|
+
declare function isRichtextTab(tab: Tab): tab is RichtextTab;
|
|
3455
3534
|
/**
|
|
3456
3535
|
* Check if a tab is a flows tab
|
|
3457
3536
|
*/
|
|
@@ -5819,6 +5898,24 @@ interface RelationAttributesRepository {
|
|
|
5819
5898
|
* @returns All relation attributes targeting this record
|
|
5820
5899
|
*/
|
|
5821
5900
|
findByTarget(toId: Uuid): Promise<RelationAttributeRow[]>;
|
|
5901
|
+
/**
|
|
5902
|
+
* Batch find relation attributes for multiple source records.
|
|
5903
|
+
* Single query for all fromIds — used by list/search enrichment.
|
|
5904
|
+
*
|
|
5905
|
+
* @param fromObject - Source object name
|
|
5906
|
+
* @param fromIds - Array of source record IDs
|
|
5907
|
+
* @param fromAttribute - Source attribute name
|
|
5908
|
+
* @returns All matching relation attributes
|
|
5909
|
+
*/
|
|
5910
|
+
findBySourceBatch(fromObject: string, fromIds: Uuid[], fromAttribute: string): Promise<RelationAttributeRow[]>;
|
|
5911
|
+
/**
|
|
5912
|
+
* Batch find relation attributes targeting multiple records.
|
|
5913
|
+
* Single query for all toIds — used for bilateral relation enrichment.
|
|
5914
|
+
*
|
|
5915
|
+
* @param toIds - Array of target record IDs
|
|
5916
|
+
* @returns All matching relation attributes
|
|
5917
|
+
*/
|
|
5918
|
+
findByTargetBatch(toIds: Uuid[]): Promise<RelationAttributeRow[]>;
|
|
5822
5919
|
/**
|
|
5823
5920
|
* Delete all relation attributes for a specific source.
|
|
5824
5921
|
* Automatically filtered by current tenant context.
|
|
@@ -5828,6 +5925,18 @@ interface RelationAttributesRepository {
|
|
|
5828
5925
|
* @param fromAttribute - Source attribute name
|
|
5829
5926
|
*/
|
|
5830
5927
|
deleteBySource(fromObject: string, fromId: Uuid, fromAttribute: string): Promise<void>;
|
|
5928
|
+
/**
|
|
5929
|
+
* Delete relation attributes for a specific source→target pair.
|
|
5930
|
+
* Used for safe inverse-side deletion (only deletes the specific link,
|
|
5931
|
+
* not all of the source's relations).
|
|
5932
|
+
* Automatically filtered by current tenant context.
|
|
5933
|
+
*
|
|
5934
|
+
* @param fromObject - Source object name
|
|
5935
|
+
* @param fromId - Source record ID
|
|
5936
|
+
* @param fromAttribute - Source attribute name
|
|
5937
|
+
* @param toId - Target record ID
|
|
5938
|
+
*/
|
|
5939
|
+
deleteBySourceAndTarget(fromObject: string, fromId: Uuid, fromAttribute: string, toId: Uuid): Promise<void>;
|
|
5831
5940
|
/**
|
|
5832
5941
|
* Delete all relation attributes targeting a specific record.
|
|
5833
5942
|
* Automatically filtered by current tenant context.
|
|
@@ -7219,6 +7328,7 @@ interface ObjectSchemaServiceOptions {
|
|
|
7219
7328
|
declare class ObjectSchemaService extends BaseService {
|
|
7220
7329
|
private nativeRegistry;
|
|
7221
7330
|
private auditService?;
|
|
7331
|
+
private bilateralValidationService;
|
|
7222
7332
|
constructor(adapter: DatabaseAdapter, nativeRegistry: typeof registry, options?: ObjectSchemaServiceOptions);
|
|
7223
7333
|
/**
|
|
7224
7334
|
* Create a new custom object.
|
|
@@ -7366,6 +7476,15 @@ declare class ObjectSchemaService extends BaseService {
|
|
|
7366
7476
|
* @internal
|
|
7367
7477
|
*/
|
|
7368
7478
|
private buildObjectDefinition;
|
|
7479
|
+
/**
|
|
7480
|
+
* Enrich bilateral relation attributes that don't own property definitions.
|
|
7481
|
+
* Copies `properties` from the canonical side (the one with `.qualifyWith()`)
|
|
7482
|
+
* and sets `storageOwner: false` so the storage layer knows direction.
|
|
7483
|
+
*
|
|
7484
|
+
* Uses direct DB lookups to avoid circular recursion through `getObjectSchema`.
|
|
7485
|
+
* @internal
|
|
7486
|
+
*/
|
|
7487
|
+
private enrichBilateralProperties;
|
|
7369
7488
|
/**
|
|
7370
7489
|
* Append system attributes to an ObjectDefinition
|
|
7371
7490
|
* System attributes are always available on all records (createdAt, updatedAt, createdBy, lastUpdatedBy)
|
|
@@ -7487,6 +7606,7 @@ declare class RecordQueryService extends BaseService {
|
|
|
7487
7606
|
private schemaService;
|
|
7488
7607
|
private options?;
|
|
7489
7608
|
private policyRegistry;
|
|
7609
|
+
private relationPropertiesService;
|
|
7490
7610
|
constructor(adapter: DatabaseAdapter, schemaService: ObjectSchemaService, options?: RecordQueryServiceOptions | undefined);
|
|
7491
7611
|
/**
|
|
7492
7612
|
* List records for an object with pagination, permissions, and policy filtering.
|
|
@@ -7541,22 +7661,6 @@ declare class RecordQueryService extends BaseService {
|
|
|
7541
7661
|
* Internal search query execution
|
|
7542
7662
|
*/
|
|
7543
7663
|
private executeSearchQuery;
|
|
7544
|
-
/**
|
|
7545
|
-
* Include relation properties in records.
|
|
7546
|
-
*
|
|
7547
|
-
* For each requested relation attribute:
|
|
7548
|
-
* - If attribute has properties → Fetch from relation_attributes and return hybrid format
|
|
7549
|
-
* - If attribute has NO properties → Return legacy format (string[] or string)
|
|
7550
|
-
*
|
|
7551
|
-
* Uses batch loading to avoid N+1 queries.
|
|
7552
|
-
*
|
|
7553
|
-
* @param records - Records to enrich with relation properties
|
|
7554
|
-
* @param schema - Object schema
|
|
7555
|
-
* @param includes - Array of relation attribute names to include
|
|
7556
|
-
* @returns Records enriched with relation properties in hybrid format
|
|
7557
|
-
* @private
|
|
7558
|
-
*/
|
|
7559
|
-
private includeRelationsWithProperties;
|
|
7560
7664
|
}
|
|
7561
7665
|
|
|
7562
7666
|
/**
|
|
@@ -7611,6 +7715,7 @@ declare class RecordService extends BaseService {
|
|
|
7611
7715
|
private policyRegistry;
|
|
7612
7716
|
private labelResolver;
|
|
7613
7717
|
private rollupContext;
|
|
7718
|
+
private bilateralSyncService;
|
|
7614
7719
|
constructor(adapter: DatabaseAdapter, options?: RecordServiceOptions);
|
|
7615
7720
|
/**
|
|
7616
7721
|
* Create a new record with validation
|
|
@@ -7693,6 +7798,17 @@ declare class RecordService extends BaseService {
|
|
|
7693
7798
|
skipHooks?: boolean;
|
|
7694
7799
|
hookMetadata?: Record<string, unknown>;
|
|
7695
7800
|
}): Promise<ObjectRecord>;
|
|
7801
|
+
/**
|
|
7802
|
+
* Enrich relation attributes with their properties (for qualified relations).
|
|
7803
|
+
*
|
|
7804
|
+
* Transforms simple ID arrays into hybrid format { id, props } when properties exist.
|
|
7805
|
+
*
|
|
7806
|
+
* @param record - Record to enrich
|
|
7807
|
+
* @param schema - Object schema
|
|
7808
|
+
* @returns Enriched record with relation properties loaded
|
|
7809
|
+
* @private
|
|
7810
|
+
*/
|
|
7811
|
+
private enrichRelationProperties;
|
|
7696
7812
|
/**
|
|
7697
7813
|
* Invalidate all caches related to a record (record cache + lists + global search)
|
|
7698
7814
|
* @private
|
|
@@ -8104,6 +8220,172 @@ declare class RecordResolverService extends BaseService {
|
|
|
8104
8220
|
createRollupContext(rollupService: RollupService, schemaService: ObjectSchemaService): RollupCascadeContext;
|
|
8105
8221
|
}
|
|
8106
8222
|
|
|
8223
|
+
/**
|
|
8224
|
+
* Normalized relation value format (internal representation)
|
|
8225
|
+
*/
|
|
8226
|
+
interface NormalizedRelationItem {
|
|
8227
|
+
id: Uuid;
|
|
8228
|
+
props?: Record<string, unknown>;
|
|
8229
|
+
}
|
|
8230
|
+
/**
|
|
8231
|
+
* Hybrid relation value format (API input)
|
|
8232
|
+
*
|
|
8233
|
+
* Supports both:
|
|
8234
|
+
* - Legacy: string[] (backward compatible, no properties)
|
|
8235
|
+
* - New: Array<{ id, props }> (with properties)
|
|
8236
|
+
*/
|
|
8237
|
+
type MultiRelationValue = string[] | NormalizedRelationItem[];
|
|
8238
|
+
/**
|
|
8239
|
+
* Hybrid single relation value format (API input)
|
|
8240
|
+
*
|
|
8241
|
+
* Supports both:
|
|
8242
|
+
* - Legacy: string | null (backward compatible, no properties)
|
|
8243
|
+
* - New: { id, props } | null (with properties)
|
|
8244
|
+
*/
|
|
8245
|
+
type SingleRelationValue = string | NormalizedRelationItem | null;
|
|
8246
|
+
/**
|
|
8247
|
+
* Union type for all hybrid relation value formats
|
|
8248
|
+
*/
|
|
8249
|
+
type HybridRelationValue = MultiRelationValue | SingleRelationValue;
|
|
8250
|
+
/**
|
|
8251
|
+
* Service for managing properties of qualified relations.
|
|
8252
|
+
*
|
|
8253
|
+
* Handles sync (upsert/delete) and validation of relation properties
|
|
8254
|
+
* stored in the relation_attributes table.
|
|
8255
|
+
*
|
|
8256
|
+
* Supports hybrid format for backward compatibility:
|
|
8257
|
+
* - Legacy: string[] or string (no properties)
|
|
8258
|
+
* - New: Array<{ id, props }> or { id, props } (with properties)
|
|
8259
|
+
*
|
|
8260
|
+
* @example
|
|
8261
|
+
* ```typescript
|
|
8262
|
+
* // Create record with qualified relation (new format)
|
|
8263
|
+
* await recordService.createRecord(objectId, {
|
|
8264
|
+
* companies: [
|
|
8265
|
+
* { id: "company-1", props: { role: "CEO", shares: 1000 } },
|
|
8266
|
+
* { id: "company-2", props: { role: "CTO", shares: 500 } }
|
|
8267
|
+
* ]
|
|
8268
|
+
* });
|
|
8269
|
+
*
|
|
8270
|
+
* // Update with legacy format (still supported)
|
|
8271
|
+
* await recordService.updateRecord(recordId, {
|
|
8272
|
+
* companies: ["company-1", "company-3"]
|
|
8273
|
+
* });
|
|
8274
|
+
* ```
|
|
8275
|
+
*/
|
|
8276
|
+
declare class RelationPropertiesService extends BaseService {
|
|
8277
|
+
constructor(adapter: DatabaseAdapter);
|
|
8278
|
+
/**
|
|
8279
|
+
* Get relation properties for a given attribute.
|
|
8280
|
+
*
|
|
8281
|
+
* Supports bidirectional relations: searches for properties in both directions
|
|
8282
|
+
* (forward: from_object/from_id → to_id, and inverse: to_id → from_id).
|
|
8283
|
+
*
|
|
8284
|
+
* This ensures that qualified properties are SHARED between both directions
|
|
8285
|
+
* of a bilateral relation, as they are stored in a single row in relation_attributes.
|
|
8286
|
+
*
|
|
8287
|
+
* @param objectName - Source object name
|
|
8288
|
+
* @param recordId - Source record ID
|
|
8289
|
+
* @param attributeName - Relation attribute name
|
|
8290
|
+
* @param targetIds - Array of target record IDs
|
|
8291
|
+
* @returns Map of target ID → properties
|
|
8292
|
+
*
|
|
8293
|
+
* @example
|
|
8294
|
+
* ```typescript
|
|
8295
|
+
* // Properties stored as: contacts/A/companies → X with { role: "CEO" }
|
|
8296
|
+
*
|
|
8297
|
+
* // Read from Contact A → Company X
|
|
8298
|
+
* const propsFromContact = await service.getRelationProperties(
|
|
8299
|
+
* "contacts", "A", "companies", ["X"]
|
|
8300
|
+
* );
|
|
8301
|
+
* // → Map { "X" => { role: "CEO" } }
|
|
8302
|
+
*
|
|
8303
|
+
* // Read from Company X → Contact A (inverse)
|
|
8304
|
+
* const propsFromCompany = await service.getRelationProperties(
|
|
8305
|
+
* "companies", "X", "contacts", ["A"]
|
|
8306
|
+
* );
|
|
8307
|
+
* // → Map { "A" => { role: "CEO" } } (same properties!)
|
|
8308
|
+
* ```
|
|
8309
|
+
*/
|
|
8310
|
+
getRelationProperties(objectName: string, recordId: Uuid, attributeName: string, targetIds: Uuid[]): Promise<Map<Uuid, Record<string, unknown>>>;
|
|
8311
|
+
/**
|
|
8312
|
+
* Batch enrich records with qualified relation properties.
|
|
8313
|
+
*
|
|
8314
|
+
* Detects qualified attributes in the schema and fetches their properties
|
|
8315
|
+
* using batch queries (1 query per qualified attribute, not per record).
|
|
8316
|
+
* Returns records with values in hybrid format `{ id, props }`.
|
|
8317
|
+
*
|
|
8318
|
+
* For bilateral relations, also checks the inverse direction.
|
|
8319
|
+
*
|
|
8320
|
+
* @param records - Records to enrich
|
|
8321
|
+
* @param schema - Object schema
|
|
8322
|
+
* @returns Records with relation values enriched with properties
|
|
8323
|
+
*/
|
|
8324
|
+
enrichRecordsBatch(records: ObjectRecord[], schema: ObjectDefinition): Promise<ObjectRecord[]>;
|
|
8325
|
+
/**
|
|
8326
|
+
* Normalize relation values for storage in object_records table.
|
|
8327
|
+
*
|
|
8328
|
+
* Extracts IDs from hybrid format ({ id, props }) and returns legacy format (string[] or string).
|
|
8329
|
+
* This ensures object_records.values only contains IDs, while properties are in relation_attributes.
|
|
8330
|
+
*
|
|
8331
|
+
* @param schema - Object schema
|
|
8332
|
+
* @param data - Record data with hybrid relation values
|
|
8333
|
+
* @returns Data with relation values normalized to ID-only format
|
|
8334
|
+
*/
|
|
8335
|
+
normalizeRelationValuesForStorage(schema: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
8336
|
+
/**
|
|
8337
|
+
* Synchronize relation properties for a given attribute.
|
|
8338
|
+
*
|
|
8339
|
+
* Handles:
|
|
8340
|
+
* - Format normalization (legacy → new)
|
|
8341
|
+
* - Validation of properties
|
|
8342
|
+
* - Upsert for present IDs
|
|
8343
|
+
* - Delete for absent IDs
|
|
8344
|
+
*
|
|
8345
|
+
* @param schema - Object schema
|
|
8346
|
+
* @param recordId - Source record ID
|
|
8347
|
+
* @param attributeName - Relation attribute name
|
|
8348
|
+
* @param relationValue - Relation value (hybrid format)
|
|
8349
|
+
* @param adapter - Database adapter
|
|
8350
|
+
*/
|
|
8351
|
+
syncRelationProperties(schema: ObjectDefinition, recordId: Uuid, attributeName: string, relationValue: HybridRelationValue, adapter: DatabaseAdapter): Promise<void>;
|
|
8352
|
+
/**
|
|
8353
|
+
* Validate relation properties against PropertySchema.
|
|
8354
|
+
*
|
|
8355
|
+
* Uses Zod for runtime validation based on PropertyAttribute types.
|
|
8356
|
+
*
|
|
8357
|
+
* @param propertySchema - Schema defining allowed properties
|
|
8358
|
+
* @param properties - Properties to validate
|
|
8359
|
+
* @throws {z.ZodError} if validation fails
|
|
8360
|
+
*/
|
|
8361
|
+
validateProperties(propertySchema: PropertySchema, properties: Record<string, unknown>): void;
|
|
8362
|
+
/**
|
|
8363
|
+
* Get PropertySchema for a relation attribute.
|
|
8364
|
+
*
|
|
8365
|
+
* For bilateral relations without .qualifyWith(), returns undefined.
|
|
8366
|
+
* Properties will be stored/retrieved but not validated on the inverse side.
|
|
8367
|
+
*/
|
|
8368
|
+
private getPropertySchema;
|
|
8369
|
+
/**
|
|
8370
|
+
* Normalize relation value to unified internal format.
|
|
8371
|
+
*
|
|
8372
|
+
* Converts:
|
|
8373
|
+
* - string[] → Array<{ id, props?: undefined }>
|
|
8374
|
+
* - string → [{ id, props?: undefined }]
|
|
8375
|
+
* - null → []
|
|
8376
|
+
* - Array<{ id, props }> → Array<{ id, props }> (passthrough)
|
|
8377
|
+
* - { id, props } → [{ id, props }] (single to array)
|
|
8378
|
+
*/
|
|
8379
|
+
private normalizeRelationValue;
|
|
8380
|
+
/**
|
|
8381
|
+
* Build Zod schema from PropertySchema definition.
|
|
8382
|
+
*
|
|
8383
|
+
* Reuses createFormAttributeValidator() to avoid code duplication with validators.ts.
|
|
8384
|
+
* This validator handles null/undefined values correctly for optional fields.
|
|
8385
|
+
*/
|
|
8386
|
+
private buildZodSchema;
|
|
8387
|
+
}
|
|
8388
|
+
|
|
8107
8389
|
/**
|
|
8108
8390
|
* Result of relation validation
|
|
8109
8391
|
*/
|
|
@@ -8182,6 +8464,11 @@ interface RelationServiceOptions {
|
|
|
8182
8464
|
* Required for cached access to records.
|
|
8183
8465
|
*/
|
|
8184
8466
|
recordResolver: RecordResolverService;
|
|
8467
|
+
/**
|
|
8468
|
+
* Relation properties service for qualified properties.
|
|
8469
|
+
* Optional - if not provided, qualified properties won't be enriched in labels.
|
|
8470
|
+
*/
|
|
8471
|
+
relationPropertiesService?: RelationPropertiesService;
|
|
8185
8472
|
}
|
|
8186
8473
|
/**
|
|
8187
8474
|
* Request item for batch relation resolution
|
|
@@ -8211,6 +8498,7 @@ declare class RelationService extends BaseService {
|
|
|
8211
8498
|
private schemaService;
|
|
8212
8499
|
private queryService?;
|
|
8213
8500
|
private recordResolver;
|
|
8501
|
+
private relationPropertiesService?;
|
|
8214
8502
|
constructor(adapter: DatabaseAdapter, nativeRegistry: typeof registry, options: RelationServiceOptions);
|
|
8215
8503
|
/**
|
|
8216
8504
|
* Set the query service after construction.
|
|
@@ -8334,6 +8622,10 @@ declare class RelationService extends BaseService {
|
|
|
8334
8622
|
/**
|
|
8335
8623
|
* Resolve the display label for a record.
|
|
8336
8624
|
* Uses custom template if provided, otherwise falls back to pre-computed label.
|
|
8625
|
+
*
|
|
8626
|
+
* Preserves `{{ props.X }}` tokens for client-side substitution using a sentinel approach:
|
|
8627
|
+
* tokens are replaced with null-byte sentinels before template rendering, then restored after.
|
|
8628
|
+
* This lets `computeLabelWithRelations` resolve target fields while keeping prop placeholders intact.
|
|
8337
8629
|
*/
|
|
8338
8630
|
private resolveLabel;
|
|
8339
8631
|
/**
|
|
@@ -8348,133 +8640,6 @@ declare class RelationService extends BaseService {
|
|
|
8348
8640
|
private fetchAttributeById;
|
|
8349
8641
|
}
|
|
8350
8642
|
|
|
8351
|
-
/**
|
|
8352
|
-
* Normalized relation value format (internal representation)
|
|
8353
|
-
*/
|
|
8354
|
-
interface NormalizedRelationItem {
|
|
8355
|
-
id: Uuid;
|
|
8356
|
-
props?: Record<string, unknown>;
|
|
8357
|
-
}
|
|
8358
|
-
/**
|
|
8359
|
-
* Hybrid relation value format (API input)
|
|
8360
|
-
*
|
|
8361
|
-
* Supports both:
|
|
8362
|
-
* - Legacy: string[] (backward compatible, no properties)
|
|
8363
|
-
* - New: Array<{ id, props }> (with properties)
|
|
8364
|
-
*/
|
|
8365
|
-
type MultiRelationValue = string[] | NormalizedRelationItem[];
|
|
8366
|
-
/**
|
|
8367
|
-
* Hybrid single relation value format (API input)
|
|
8368
|
-
*
|
|
8369
|
-
* Supports both:
|
|
8370
|
-
* - Legacy: string | null (backward compatible, no properties)
|
|
8371
|
-
* - New: { id, props } | null (with properties)
|
|
8372
|
-
*/
|
|
8373
|
-
type SingleRelationValue = string | NormalizedRelationItem | null;
|
|
8374
|
-
/**
|
|
8375
|
-
* Union type for all hybrid relation value formats
|
|
8376
|
-
*/
|
|
8377
|
-
type HybridRelationValue = MultiRelationValue | SingleRelationValue;
|
|
8378
|
-
/**
|
|
8379
|
-
* Service for managing properties of qualified relations.
|
|
8380
|
-
*
|
|
8381
|
-
* Handles sync (upsert/delete) and validation of relation properties
|
|
8382
|
-
* stored in the relation_attributes table.
|
|
8383
|
-
*
|
|
8384
|
-
* Supports hybrid format for backward compatibility:
|
|
8385
|
-
* - Legacy: string[] or string (no properties)
|
|
8386
|
-
* - New: Array<{ id, props }> or { id, props } (with properties)
|
|
8387
|
-
*
|
|
8388
|
-
* @example
|
|
8389
|
-
* ```typescript
|
|
8390
|
-
* // Create record with qualified relation (new format)
|
|
8391
|
-
* await recordService.createRecord(objectId, {
|
|
8392
|
-
* companies: [
|
|
8393
|
-
* { id: "company-1", props: { role: "CEO", shares: 1000 } },
|
|
8394
|
-
* { id: "company-2", props: { role: "CTO", shares: 500 } }
|
|
8395
|
-
* ]
|
|
8396
|
-
* });
|
|
8397
|
-
*
|
|
8398
|
-
* // Update with legacy format (still supported)
|
|
8399
|
-
* await recordService.updateRecord(recordId, {
|
|
8400
|
-
* companies: ["company-1", "company-3"]
|
|
8401
|
-
* });
|
|
8402
|
-
* ```
|
|
8403
|
-
*/
|
|
8404
|
-
declare class RelationPropertiesService extends BaseService {
|
|
8405
|
-
constructor(adapter: DatabaseAdapter);
|
|
8406
|
-
/**
|
|
8407
|
-
* Normalize relation values for storage in object_records table.
|
|
8408
|
-
*
|
|
8409
|
-
* Extracts IDs from hybrid format ({ id, props }) and returns legacy format (string[] or string).
|
|
8410
|
-
* This ensures object_records.values only contains IDs, while properties are in relation_attributes.
|
|
8411
|
-
*
|
|
8412
|
-
* @param schema - Object schema
|
|
8413
|
-
* @param data - Record data with hybrid relation values
|
|
8414
|
-
* @returns Data with relation values normalized to ID-only format
|
|
8415
|
-
*/
|
|
8416
|
-
normalizeRelationValuesForStorage(schema: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
8417
|
-
/**
|
|
8418
|
-
* Synchronize relation properties for a given attribute.
|
|
8419
|
-
*
|
|
8420
|
-
* Handles:
|
|
8421
|
-
* - Format normalization (legacy → new)
|
|
8422
|
-
* - Validation of properties
|
|
8423
|
-
* - Upsert for present IDs
|
|
8424
|
-
* - Delete for absent IDs
|
|
8425
|
-
*
|
|
8426
|
-
* @param schema - Object schema
|
|
8427
|
-
* @param recordId - Source record ID
|
|
8428
|
-
* @param attributeName - Relation attribute name
|
|
8429
|
-
* @param relationValue - Relation value (hybrid format)
|
|
8430
|
-
* @param adapter - Database adapter
|
|
8431
|
-
*/
|
|
8432
|
-
syncRelationProperties(schema: ObjectDefinition, recordId: Uuid, attributeName: string, relationValue: HybridRelationValue, adapter: DatabaseAdapter): Promise<void>;
|
|
8433
|
-
/**
|
|
8434
|
-
* Validate relation properties against PropertySchema.
|
|
8435
|
-
*
|
|
8436
|
-
* Uses Zod for runtime validation based on PropertyDefinition types.
|
|
8437
|
-
*
|
|
8438
|
-
* @param propertySchema - Schema defining allowed properties
|
|
8439
|
-
* @param properties - Properties to validate
|
|
8440
|
-
* @throws {z.ZodError} if validation fails
|
|
8441
|
-
*/
|
|
8442
|
-
validateProperties(propertySchema: PropertySchema, properties: Record<string, unknown>): void;
|
|
8443
|
-
/**
|
|
8444
|
-
* Normalize relation value to unified internal format.
|
|
8445
|
-
*
|
|
8446
|
-
* Converts:
|
|
8447
|
-
* - string[] → Array<{ id, props?: undefined }>
|
|
8448
|
-
* - string → [{ id, props?: undefined }]
|
|
8449
|
-
* - null → []
|
|
8450
|
-
* - Array<{ id, props }> → Array<{ id, props }> (passthrough)
|
|
8451
|
-
* - { id, props } → [{ id, props }] (single to array)
|
|
8452
|
-
*
|
|
8453
|
-
* @param value - Relation value in hybrid format
|
|
8454
|
-
* @returns Normalized array of relation items
|
|
8455
|
-
* @private
|
|
8456
|
-
*/
|
|
8457
|
-
private normalizeRelationValue;
|
|
8458
|
-
/**
|
|
8459
|
-
* Build Zod schema from PropertySchema definition.
|
|
8460
|
-
*
|
|
8461
|
-
* Dynamically generates validation schema based on PropertyDefinition types.
|
|
8462
|
-
*
|
|
8463
|
-
* @param propertySchema - PropertySchema with definitions
|
|
8464
|
-
* @returns Zod schema for validation
|
|
8465
|
-
* @private
|
|
8466
|
-
*/
|
|
8467
|
-
private buildZodSchema;
|
|
8468
|
-
/**
|
|
8469
|
-
* Build Zod schema for a single property field.
|
|
8470
|
-
*
|
|
8471
|
-
* @param def - PropertyDefinition
|
|
8472
|
-
* @returns Zod schema for the field
|
|
8473
|
-
* @private
|
|
8474
|
-
*/
|
|
8475
|
-
private buildFieldSchema;
|
|
8476
|
-
}
|
|
8477
|
-
|
|
8478
8643
|
/**
|
|
8479
8644
|
* Resolved relation values for a record
|
|
8480
8645
|
* Maps relation attribute name to the resolved record's values
|
|
@@ -10196,25 +10361,6 @@ declare function createMockAdapter(): DatabaseAdapter & {
|
|
|
10196
10361
|
reset(): void;
|
|
10197
10362
|
};
|
|
10198
10363
|
|
|
10199
|
-
/**
|
|
10200
|
-
* Policy for the native "notes" object.
|
|
10201
|
-
*
|
|
10202
|
-
* Enforces visibility rules:
|
|
10203
|
-
* - **list/search**: Injects filter to show only accessible notes
|
|
10204
|
-
* - **get**: Blocks access to private notes from other users
|
|
10205
|
-
* - **update**: Only author can modify private notes; shared notes can be modified by anyone
|
|
10206
|
-
* - **delete**: Only author can delete any note
|
|
10207
|
-
*
|
|
10208
|
-
* This policy uses `record.createdBy` (system field) instead of `values.author`
|
|
10209
|
-
* for better performance (SQL column vs JSONB).
|
|
10210
|
-
*
|
|
10211
|
-
* NOTE: The list filter is a best-effort optimization. The security is enforced
|
|
10212
|
-
* by canAccessRecord which is called on each record returned by the query.
|
|
10213
|
-
* This ensures no private notes from other users are ever exposed, even if
|
|
10214
|
-
* the database adapter doesn't support complex OR filters.
|
|
10215
|
-
*/
|
|
10216
|
-
declare const notesPolicy: RecordPolicy;
|
|
10217
|
-
|
|
10218
10364
|
/**
|
|
10219
10365
|
* Document Generation Service
|
|
10220
10366
|
*
|
|
@@ -12610,4 +12756,4 @@ interface FullSyncOptions extends SyncOptions, ViewSyncOptions {
|
|
|
12610
12756
|
*/
|
|
12611
12757
|
declare function syncAll(adapter: DatabaseAdapter, objectRegistry: typeof registry, nativeViewRegistry: typeof viewRegistry, options?: FullSyncOptions): Promise<FullSyncResult>;
|
|
12612
12758
|
|
|
12613
|
-
export { type AIToolCallStatus as $, type AttributeGroupField as A, type BoundingBox as B, type CreateMode as C, type DetailViewLayout as D, type CreateSignatureInput as E, type Field as F, type Group as G, type SignerRequest as H, type InferAttributeValue as I, type SignaturePosition as J, type SignatureRequestResult as K, type ListViewDefinition as L, type SignatureStatusResult as M, type SignerStatus as N, type ObjectAction as O, type SignatureStatus as P, type IdentityVerificationAdapter as Q, type VerifyInput as R, type SystemResource as S, type TableTab as T, type VerificationResult as U, type ViewType as V, type WorkflowTheme as W, type DocumentData as X, type VerificationCheck as Y, type AIMessageRole as Z, type AIThinkingLevel as _, type SystemAction as a, type FileVisibility as a$, type AIToolCall as a0, type AIChatMessagePartType as a1, type TextPartData as a2, type ToolPartData as a3, type ThinkingPartData as a4, type ReasoningPartData as a5, type AIChatMessagePart as a6, type AIChatMessage as a7, type AIQuestionType as a8, type AIQuestionOption as a9, type TemplateSource as aA, type DocumentGenerationTemplate as aB, type CreateDocumentGenerationTemplate as aC, type UpdateDocumentGenerationTemplate as aD, type PendingDocumentRequest as aE, type DocumentSlotDefinition as aF, type DocumentAutoProcessing as aG, type ExtractionMapping as aH, type ExtractionField as aI, type Document as aJ, type DocumentStatus as aK, type DocumentSlot as aL, type SlotStatus as aM, type ProcessingJob as aN, type ProcessingJobType as aO, type ProcessingJobStatus as aP, type CreateDocument as aQ, type UpdateDocument as aR, type CreateDocumentTemplate as aS, type UpdateDocumentTemplate as aT, type CreateDocumentSlot as aU, type UpdateDocumentSlot as aV, type CreateProcessingJob as aW, type UpdateProcessingJob as aX, type DocumentListOptions as aY, type DocumentTemplateListOptions as aZ, type StorageProvider as a_, type AIQuestion as aa, type AIQuestionAnswer as ab, type AIBatchQuestionOption as ac, type AIBatchQuestion as ad, type AIBatchQuestionAnswer as ae, type AITodoStatus as af, type AITodoItem as ag, type AITodoList as ah, type AIMessageAttachment as ai, type AIConversation as aj, type AIMessage as ak, type AIToolCallRecord as al, type AIUserMemory as am, type AIUsageMetrics as an, type AIProviderMetrics as ao, type CreateAIMessageInput as ap, type AuditResourceType as aq, type AuditAction as ar, type AuditActorType as as, type AuditChange as at, type AuditLogEntry as au, type CreateAuditLogInput as av, type AuditListOptions as aw, type AuditServiceOptions as ax, type VariableMapping as ay, type PdfTemplateField as az, type InverseTableTab as b, type ExtractObjectRecordWithCustom as b$, type File as b0, type CreateFile as b1, type UpdateFile as b2, type TextFilterOperator as b3, type NumberFilterOperator as b4, type CheckboxFilterOperator as b5, type DateFilterOperator as b6, type SelectFilterOperator as b7, type MultiselectFilterOperator as b8, type RelationFilterOperator as b9, type GeocodingAutocompleteParams as bA, type ReverseGeocodingParams as bB, type GeocodingParams as bC, type GeocodingAdapter as bD, NoopGeocodingAdapter as bE, type AttributeSchema as bF, type InferRecordFromSchema as bG, type InferRecordWithRequirements as bH, type TypedAttribute as bI, type AttributeMap as bJ, type AddAttribute as bK, type InferRecord as bL, type InferRecordInput as bM, type InferRecordUpdate as bN, type CustomAttributeValue as bO, type WithCustomAttributes as bP, type RecordMetadata as bQ, type SystemFields as bR, type ExtractRecord as bS, type ExtractRecordStrict as bT, type ExtractRecordInput as bU, type ExtractRecordInputStrict as bV, type ExtractRecordUpdate as bW, type ExtractRecordUpdateStrict as bX, type ExtractAttributes as bY, type TypedObjectRecord as bZ, type ExtractObjectRecord as b_, type FilterOperator as ba, type RelativeDateValue as bb, type CurrencyFilterValue as bc, type PhoneFilterValue as bd, type FilterValue as be, type FilterRule as bf, type ExtendedFilterRule as bg, type FilterCombinator as bh, type FilterGroup as bi, type AdvancedFilterState as bj, type SortDirection as bk, type QueryState as bl, OPERATORS_BY_TYPE as bm, type NoValueOperator as bn, NO_VALUE_OPERATORS as bo, isNoValueOperator as bp, type FlowSlot as bq, type FlowRowField as br, type FlowPage as bs, type FlowRelation as bt, type FlowStatus as bu, type FlowDefinition as bv, isFlowDefinition as bw, isFlowPublished as bx, isSystemFlow as by, type GeocodingSuggestion as bz, type DetailViewDefinition as c, isAdvancedFormNode as c$, type PermissionScope as c0, type Role as c1, type Permission as c2, type UserRoleAssignment as c3, type EffectivePermissions as c4, type ObjectPermissions as c5, type SystemPermissions as c6, type CreateRoleInput as c7, type UpdateRoleInput as c8, type CreatePermissionInput as c9, type CalendarViewDefinition as cA, type TimelineViewDefinition as cB, type GalleryViewDefinition as cC, type ConfigOverrides as cD, type ViewOverlay as cE, isDetailView as cF, isListView as cG, isCalendarView as cH, isTimelineView as cI, isGalleryView as cJ, isFormTab as cK, isTableTab as cL, isDirectTableTab as cM, isInverseTableTab as cN, isCustomTab as cO, isActivityTab as cP, isNotesTab as cQ, isFlowsTab as cR, isDocumentsTab as cS, type ConditionNode as cT, type DocumentNode as cU, type EndNode as cV, type FormFieldRef as cW, type FormNode as cX, type StartNode as cY, type WorkflowNodeType as cZ, getNodeOutputs as c_, type AssignRoleInput as ca, type PolicyContext as cb, type RecordPolicy as cc, PolicyViolationError as cd, type UserRole as ce, type UserStatus as cf, type UserProfile as cg, type CreateUserProfile as ch, type UpdateUserProfile as ci, type InviteUserInput as cj, type TabType as ck, type FormDensity as cl, type FormTab as cm, type CustomTab as cn, type ActivityTab as co, type NotesTab as cp, type FlowsTab as cq, type DocumentsTab as cr, type ListViewLayout as cs, type ViewLayout as ct, type ViewTab as cu, type DetailViewConfig as cv, type CalendarViewConfig as cw, type TimelineViewConfig as cx, type GalleryViewConfig as cy, type ViewConfig as cz, type InstanceStatus as d, viewRegistry as d$, isConditionNode as d0, isDocumentNode as d1, isEndNode as d2, isFormNode as d3, isSimpleFormNode as d4, isStartNode as d5, type ConditionOperator as d6, and as d7, eq as d8, inValues as d9, isInvitationExpired as dA, isInvitationValid as dB, type CreateGrantInput as dC, type WorkflowAccessGrant as dD, canAccessNode as dE, isGrantExpired as dF, isGrantRevoked as dG, isGrantValid as dH, isTokenRevoked as dI, type GeneratedDocument as dJ, type WorkflowExecutionContext as dK, createEmptyContext as dL, getContextValue as dM, setContextValue as dN, type FormContextResponse as dO, type FormFieldContext as dP, type FormFieldRow as dQ, type FormNodeInfo as dR, type ReadOnlyReason as dS, type WorkflowAccessMode as dT, type ThemeColors as dU, type ThemeLogo as dV, type ThemeTypography as dW, DEFAULT_THEME as dX, generateCssVariables as dY, mergeWithDefaults as dZ, registry as d_, isConditionGroup as da, isConditionRule as db, neq as dc, or as dd, type CanvasViewport as de, type NodePosition as df, type WorkflowLayout as dg, type WorkflowSlot as dh, type WorkflowStatus as di, isSystemWorkflow as dj, isWorkflowDefinition as dk, isWorkflowPublished as dl, type PendingAction as dm, type WorkflowError as dn, type WorkflowInstance as dp, type WorkflowTransition as dq, canResumeInstance as dr, createStartTransition as ds, isInstanceTerminal as dt, isInstanceWaiting as du, type CreateInvitationInput as dv, type CreateInvitationResult as dw, type InvitationStatus as dx, type WorkflowInvitation as dy, isInvitationAccepted as dz, type Tab as e, runWithContext as e$, type ViewOverlaysRepository as e0, type RelationAttributeInput as e1, type RelationAttributeRow as e2, type RelationAttributesRepository as e3, type DatabaseAdapter as e4, WorkflowJwtService as e5, type JwtVerificationResult as e6, type MagicLinkPayload as e7, type WorkflowAccessPayload as e8, type WorkflowJwtConfig as e9, type EvaluationResult as eA, type EvaluationTrace as eB, evaluateCondition as eC, evaluate as eD, evaluateWithTrace as eE, TenantContextError as eF, FeatureFlagsContextError as eG, getFeatureFlags as eH, getFeatureValue as eI, hasFeatureFlagsContext as eJ, isFeatureEnabled as eK, runWithFeatureFlags as eL, tryGetFeatureValue as eM, withFeatureFlags as eN, type FeatureFlagsContext as eO, addSchemaToContext as eP, getSchemaByNameFromContext as eQ, getSchemaContext as eR, getSchemaFromContext as eS, hasSchemaContext as eT, runWithMergedSchemaContext as eU, runWithSchemaContext as eV, type SchemaContext as eW, getContext as eX, getTenantId as eY, getUserId as eZ, hasContext as e_, type WorkflowJwtPayload as ea, type CacheKeyType as eb, hashOptions as ec, type CacheAdapter as ed, type CacheOptions as ee, cacheKeys as ef, cacheTtl as eg, defaultTtl as eh, NoopCacheAdapter as ei, type FetchResult as ej, type FormattedRecord as ek, type GroupedFetchResult as el, type InsertOptions as em, type QueryBuilderState as en, type RegistryMap as eo, type RegistryObjectNames as ep, type ShortcutOperator as eq, createDefaultState as er, formatRecord as es, formatRecords as et, QueryMultipleResultsError as eu, QueryNoResultError as ev, SHORTCUT_TO_FILTER_OPERATOR as ew, createQueryBuilder as ex, QueryBuilder as ey, type QueryBuilderOptions as ez, type FilterState as f, type AIConversationsRepository as f$, withTenantContext as f0, type TenantContext as f1, createDefaultExecutorRegistry as f2, getDefaultExecutorRegistry as f3, type ExecutorCompleteResult as f4, type ExecutorContext as f5, type ExecutorErrorResult as f6, type ExecutorResult as f7, type ExecutorSuccessResult as f8, type ExecutorWaitResult as f9, getTargetAttributeName as fA, InvalidPathError as fB, MaxDepthExceededError as fC, parsePath as fD, pathHasManyCardinality as fE, validatePath as fF, type PathCardinality as fG, type PathSegment as fH, type PathSegmentType as fI, type SchemaResolver as fJ, resolveMultiplePaths as fK, resolveSingleValue as fL, traversePath as fM, type TraversalOptions as fN, type TraversalResult as fO, type AttributeChange as fP, type HookContext as fQ, type HookDefinition as fR, type HookHandler as fS, type HookType as fT, NoopHookRegistry as fU, type HookRegistry as fV, createMockAdapter as fW, type MockStores as fX, defaultPolicyRegistry as fY, PolicyRegistry as fZ, notesPolicy as f_, type NodeExecutor as fa, complete as fb, error as fc, ExecutorRegistry as fd, success as fe, wait as ff, ConditionExecutor as fg, DocumentExecutor as fh, EndExecutor as fi, FormExecutor as fj, StartExecutor as fk, evaluateFormula as fl, evaluateFormulaAttribute as fm, evaluateFormulaAttributeWithRelations as fn, evaluateFormulaWithRelations as fo, evaluateFormulaWithResult as fp, extractFormulaVariables as fq, extractRelationNames as fr, extractRelationReferences as fs, flattenRelationsForEval as ft, formatFormulaResult as fu, hasRelationReferences as fv, validateFormulaExpression as fw, type FormulaResult as fx, getPathDepth as fy, getRelationPath as fz, type SortRule as g, checkRecordModifyOrThrow as g$, type AIUsageMetricsRepository as g0, type AIUserMemoryRepository as g1, type AttributesRepository as g2, type AuditRepository as g3, type DocumentGenerationTemplateListOptions as g4, type DocumentGenerationTemplatesRepository as g5, type DocumentJobsRepository as g6, type DocumentSlotsRepository as g7, type DocumentsRepository as g8, type DocumentTemplatesRepository as g9, type RelationValidationResult as gA, type RelationValidationError as gB, type RelationOption as gC, type RelationOptionsResponse as gD, type GetRelationOptionsParams as gE, type RelationServiceOptions as gF, type ResolveIdsBatchRequest as gG, type ResolveIdsBatchResponse as gH, RelationService as gI, type MultiRelationValue as gJ, type SingleRelationValue as gK, type HybridRelationValue as gL, RelationPropertiesService as gM, RecordResolverService as gN, type ResolvedRelations as gO, type FormulaResolverServiceOptions as gP, FormulaResolverService as gQ, type RollupResult as gR, type RollupServiceOptions as gS, RollupService as gT, type RollupSchedulerOptions as gU, RollupScheduler as gV, applyDefaultValues as gW, checkPermission as gX, getPolicy as gY, buildPolicyContext as gZ, checkRecordAccess as g_, type FilesRepository as ga, type ObjectRecordsRepository as gb, type ObjectsRepository as gc, type PermissionsRepository as gd, type UserProfilesRepository as ge, type ViewsRepository as gf, type WorkflowAccessGrantsRepository as gg, type WorkflowInstancesRepository as gh, type WorkflowInvitationsRepository as gi, type WorkflowsRepository as gj, BaseService as gk, BaseRepository as gl, type SchemaContextAware as gm, SchemaContextAwareRepository as gn, type CreateCustomObjectInput as go, type AddAttributeInput as gp, type UpdateObjectInput as gq, type ObjectSchemaServiceOptions as gr, ObjectSchemaService as gs, type RecordServiceOptions as gt, RecordService as gu, type RecordQueryServiceOptions as gv, type QueryOptions as gw, type SearchQueryOptions as gx, type QueryResult as gy, RecordQueryService as gz, type DirectTableTab as h, GlobalSearchService as h$, checkRecordDeleteOrThrow as h0, checkSharedObjectWriteAccess as h1, computeLabel as h2, type LabelResolver as h3, enrichWithFormulas as h4, enrichRecordsWithFormulas as h5, createContextForCreate as h6, createContextForUpdate as h7, createContextForDelete as h8, createContextForRestore as h9, type UserValidationResult as hA, type UserValidationError as hB, UserService as hC, type UserProfileServiceOptions as hD, UserProfileService as hE, AuditService as hF, buildAuditChanges as hG, DocumentGenerationTemplateNotFoundError as hH, DocumentGenerationNotConfiguredError as hI, DocumentGenerationService as hJ, type DocumentProcessingConfig as hK, DocumentProcessingService as hL, type RenderDocumentInput as hM, type DocumentRendererOptions as hN, type RenderDocumentResult as hO, DocumentRenderError as hP, StorageDownloadNotSupportedError as hQ, DocumentRendererService as hR, DocumentTemplateService as hS, type RecordDocumentsResult as hT, type CreateRecordDocumentInput as hU, type CreateRecordDocumentResult as hV, type DocumentServiceOptions as hW, DocumentService as hX, type FileServiceOptions as hY, FileService as hZ, GeocodingService as h_, recalculateParentRollups as ha, type RollupCascadeContext as hb, type DocumentProcessingHookOptions as hc, DocumentProcessingHook as hd, GrantNotFoundError as he, GrantExpiredError as hf, GrantRevokedError as hg, TokenRevokedError as hh, type GrantServiceConfig as hi, type CreateGrantResult as hj, WorkflowAccessGrantService as hk, type StartWorkflowInput as hl, type ResumeWorkflowInput as hm, type WorkflowInstanceServiceOptions as hn, WorkflowInstanceService as ho, type InvitationServiceConfig as hp, InvitationNotFoundError as hq, InvitationExpiredError as hr, InvitationAlreadyAcceptedError as hs, InvitationRevokedError as ht, WorkflowInvitationService as hu, WorkflowRelationService as hv, type CreateWorkflowInput as hw, type UpdateWorkflowInput as hx, type WorkflowServiceOptions as hy, WorkflowService as hz, type WorkflowConfig as i, type UpdateDBWorkflowInvitation as i$, type PermissionServiceOptions as i0, PermissionService as i1, type CreateViewInput as i2, type UpdateViewInput as i3, type GetViewsOptions as i4, type GetViewOptions as i5, ViewService as i6, type FileContent as i7, type StorageUploadInput as i8, type StorageUploadResult as i9, type DBAttribute as iA, type CreateDBAttribute as iB, type UpdateDBAttribute as iC, type UpsertDBAttribute as iD, type CreateObjectRecord as iE, type ListOptions as iF, type SearchOptions as iG, type GlobalSearchOptions as iH, type GlobalSearchGroupedOptions as iI, type GlobalSearchResultItem as iJ, type GlobalSearchGroupedResult as iK, type FileListOptions as iL, type DBView as iM, type CreateDBView as iN, type UpdateDBView as iO, type UpsertDBView as iP, type DBViewOverlay as iQ, type CreateDBViewOverlay as iR, type UpdateDBViewOverlay as iS, type DBWorkflow as iT, type CreateDBWorkflow as iU, type UpdateDBWorkflow as iV, type DBWorkflowInstance as iW, type CreateDBWorkflowInstance as iX, type UpdateDBWorkflowInstance as iY, type DBWorkflowInvitation as iZ, type CreateDBWorkflowInvitation as i_, type SignedUrlOptions as ia, type StorageAdapter as ib, type UploadFileInput as ic, type SyncResult as id, type SyncOptions as ie, syncNativeObjects as ig, verifyNativeObjectsSync as ih, getSyncPreview as ii, type FullSyncResult as ij, type FullSyncOptions as ik, syncAll as il, DEFAULT_LABEL_FALLBACK as im, renderLabelExpression as io, isLabelExpression as ip, extractAttributeNames as iq, enrichValuesForDisplay as ir, enrichValuesWithSelectLabels as is, extractRelationIds as it, type RelationLabelResolver as iu, computeLabelWithRelations as iv, type DBObject as iw, type CreateDBObject as ix, type UpdateDBObject as iy, type UpsertDBObject as iz, type SlotMode as j, type DBWorkflowAccessGrant as j0, type CreateDBWorkflowAccessGrant as j1, type UpdateDBWorkflowAccessGrant as j2, type OperationResult as j3, type ViewSyncResult as j4, type ViewSyncLogger as j5, type ViewSyncOptions as j6, seedRegistryViews as j7, syncNativeViews as j8, verifyRegistryViewsSeeded as j9, verifyNativeViewsSync as ja, getViewSeedPreview as jb, getViewSyncPreview as jc, type ConditionGroup as k, type ConditionRule as l, type WorkflowNode as m, type WorkflowDefinition as n, type FlowRow as o, type ListViewConfig as p, type ListViewTab as q, type ViewDefinition as r, type DocumentTemplate as s, type OcrAdapter as t, type OcrInput as u, type OcrOptions as v, type OcrResult as w, type OcrPage as x, type OcrTextBlock as y, type SignatureAdapter as z };
|
|
12759
|
+
export { type AIThinkingLevel as $, type AttributeGroupField as A, type BoundingBox as B, type CreateMode as C, type DetailViewLayout as D, type CreateSignatureInput as E, type Field as F, type Group as G, type SignerRequest as H, type InferAttributeValue as I, type SignaturePosition as J, type SignatureRequestResult as K, type ListViewDefinition as L, type SignatureStatusResult as M, type SignerStatus as N, type ObjectAction as O, type SignatureStatus as P, type IdentityVerificationAdapter as Q, type RelationGroup as R, type SystemResource as S, type Tab as T, type VerifyInput as U, type ViewType as V, type WorkflowTheme as W, type VerificationResult as X, type DocumentData as Y, type VerificationCheck as Z, type AIMessageRole as _, type SystemAction as a, type StorageProvider as a$, type AIToolCallStatus as a0, type AIToolCall as a1, type AIChatMessagePartType as a2, type TextPartData as a3, type ToolPartData as a4, type ThinkingPartData as a5, type ReasoningPartData as a6, type AIChatMessagePart as a7, type AIChatMessage as a8, type AIQuestionType as a9, type PdfTemplateField as aA, type TemplateSource as aB, type DocumentGenerationTemplate as aC, type CreateDocumentGenerationTemplate as aD, type UpdateDocumentGenerationTemplate as aE, type PendingDocumentRequest as aF, type DocumentSlotDefinition as aG, type DocumentAutoProcessing as aH, type ExtractionMapping as aI, type ExtractionField as aJ, type Document as aK, type DocumentStatus as aL, type DocumentSlot as aM, type SlotStatus as aN, type ProcessingJob as aO, type ProcessingJobType as aP, type ProcessingJobStatus as aQ, type CreateDocument as aR, type UpdateDocument as aS, type CreateDocumentTemplate as aT, type UpdateDocumentTemplate as aU, type CreateDocumentSlot as aV, type UpdateDocumentSlot as aW, type CreateProcessingJob as aX, type UpdateProcessingJob as aY, type DocumentListOptions as aZ, type DocumentTemplateListOptions as a_, type AIQuestionOption as aa, type AIQuestion as ab, type AIQuestionAnswer as ac, type AIBatchQuestionOption as ad, type AIBatchQuestion as ae, type AIBatchQuestionAnswer as af, type AITodoStatus as ag, type AITodoItem as ah, type AITodoList as ai, type AIMessageAttachment as aj, type AIConversation as ak, type AIMessage as al, type AIToolCallRecord as am, type AIUserMemory as an, type AIUsageMetrics as ao, type AIProviderMetrics as ap, type CreateAIMessageInput as aq, type AuditResourceType as ar, type AuditAction as as, type AuditActorType as at, type AuditChange as au, type AuditLogEntry as av, type CreateAuditLogInput as aw, type AuditListOptions as ax, type AuditServiceOptions as ay, type VariableMapping as az, type FieldGroup as b, type ExtractObjectRecord as b$, type FileVisibility as b0, type File as b1, type CreateFile as b2, type UpdateFile as b3, type TextFilterOperator as b4, type NumberFilterOperator as b5, type CheckboxFilterOperator as b6, type DateFilterOperator as b7, type SelectFilterOperator as b8, type MultiselectFilterOperator as b9, type GeocodingSuggestion as bA, type GeocodingAutocompleteParams as bB, type ReverseGeocodingParams as bC, type GeocodingParams as bD, type GeocodingAdapter as bE, NoopGeocodingAdapter as bF, type AttributeSchema as bG, type InferRecordFromSchema as bH, type InferRecordWithRequirements as bI, type TypedAttribute as bJ, type AttributeMap as bK, type AddAttribute as bL, type InferRecord as bM, type InferRecordInput as bN, type InferRecordUpdate as bO, type CustomAttributeValue as bP, type WithCustomAttributes as bQ, type RecordMetadata as bR, type SystemFields as bS, type ExtractRecord as bT, type ExtractRecordStrict as bU, type ExtractRecordInput as bV, type ExtractRecordInputStrict as bW, type ExtractRecordUpdate as bX, type ExtractRecordUpdateStrict as bY, type ExtractAttributes as bZ, type TypedObjectRecord as b_, type RelationFilterOperator as ba, type FilterOperator as bb, type RelativeDateValue as bc, type CurrencyFilterValue as bd, type PhoneFilterValue as be, type FilterValue as bf, type FilterRule as bg, type ExtendedFilterRule as bh, type FilterCombinator as bi, type FilterGroup as bj, type AdvancedFilterState as bk, type SortDirection as bl, type QueryState as bm, OPERATORS_BY_TYPE as bn, type NoValueOperator as bo, NO_VALUE_OPERATORS as bp, isNoValueOperator as bq, type FlowSlot as br, type FlowRowField as bs, type FlowPage as bt, type FlowRelation as bu, type FlowStatus as bv, type FlowDefinition as bw, isFlowDefinition as bx, isFlowPublished as by, isSystemFlow as bz, type SidePanelConfig as c, type FormNode as c$, type ExtractObjectRecordWithCustom as c0, type PermissionScope as c1, type Role as c2, type Permission as c3, type UserRoleAssignment as c4, type EffectivePermissions as c5, type ObjectPermissions as c6, type SystemPermissions as c7, type CreateRoleInput as c8, type UpdateRoleInput as c9, type GalleryViewConfig as cA, type ViewConfig as cB, type CalendarViewDefinition as cC, type TimelineViewDefinition as cD, type GalleryViewDefinition as cE, type ConfigOverrides as cF, type ViewOverlay as cG, isDetailView as cH, isListView as cI, isCalendarView as cJ, isTimelineView as cK, isGalleryView as cL, isFieldGroup as cM, isRelationGroup as cN, isFormTab as cO, isTableTab as cP, isRelationSourceTab as cQ, isInverseSourceTab as cR, isCustomTab as cS, isActivityTab as cT, isRichtextTab as cU, isFlowsTab as cV, isDocumentsTab as cW, type ConditionNode as cX, type DocumentNode as cY, type EndNode as cZ, type FormFieldRef as c_, type CreatePermissionInput as ca, type AssignRoleInput as cb, type PolicyContext as cc, type RecordPolicy as cd, PolicyViolationError as ce, type UserRole as cf, type UserStatus as cg, type UserProfile as ch, type CreateUserProfile as ci, type UpdateUserProfile as cj, type InviteUserInput as ck, type TabType as cl, type FormDensity as cm, type FormTab as cn, type RelationSource as co, type InverseSource as cp, type TableSource as cq, type CustomTab as cr, type ActivityTab as cs, type RichtextTab as ct, type FlowsTab as cu, type DocumentsTab as cv, type ListViewLayout as cw, type DetailViewConfig as cx, type CalendarViewConfig as cy, type TimelineViewConfig as cz, type DetailViewDefinition as d, DEFAULT_THEME as d$, type StartNode as d0, type WorkflowNodeType as d1, getNodeOutputs as d2, isAdvancedFormNode as d3, isConditionNode as d4, isDocumentNode as d5, isEndNode as d6, isFormNode as d7, isSimpleFormNode as d8, isStartNode as d9, type CreateInvitationResult as dA, type InvitationStatus as dB, type WorkflowInvitation as dC, isInvitationAccepted as dD, isInvitationExpired as dE, isInvitationValid as dF, type CreateGrantInput as dG, type WorkflowAccessGrant as dH, canAccessNode as dI, isGrantExpired as dJ, isGrantRevoked as dK, isGrantValid as dL, isTokenRevoked as dM, type GeneratedDocument as dN, type WorkflowExecutionContext as dO, createEmptyContext as dP, getContextValue as dQ, setContextValue as dR, type FormContextResponse as dS, type FormFieldContext as dT, type FormFieldRow as dU, type FormNodeInfo as dV, type ReadOnlyReason as dW, type WorkflowAccessMode as dX, type ThemeColors as dY, type ThemeLogo as dZ, type ThemeTypography as d_, type ConditionOperator as da, and as db, eq as dc, inValues as dd, isConditionGroup as de, isConditionRule as df, neq as dg, or as dh, type CanvasViewport as di, type NodePosition as dj, type WorkflowLayout as dk, type WorkflowSlot as dl, type WorkflowStatus as dm, isSystemWorkflow as dn, isWorkflowDefinition as dp, isWorkflowPublished as dq, type PendingAction as dr, type WorkflowError as ds, type WorkflowInstance as dt, type WorkflowTransition as du, canResumeInstance as dv, createStartTransition as dw, isInstanceTerminal as dx, isInstanceWaiting as dy, type CreateInvitationInput as dz, type InstanceStatus as e, getContext as e$, generateCssVariables as e0, mergeWithDefaults as e1, registry as e2, viewRegistry as e3, type ViewOverlaysRepository as e4, type RelationAttributeInput as e5, type RelationAttributeRow as e6, type RelationAttributesRepository as e7, type DatabaseAdapter as e8, WorkflowJwtService as e9, SHORTCUT_TO_FILTER_OPERATOR as eA, createQueryBuilder as eB, QueryBuilder as eC, type QueryBuilderOptions as eD, type EvaluationResult as eE, type EvaluationTrace as eF, evaluateCondition as eG, evaluate as eH, evaluateWithTrace as eI, TenantContextError as eJ, FeatureFlagsContextError as eK, getFeatureFlags as eL, getFeatureValue as eM, hasFeatureFlagsContext as eN, isFeatureEnabled as eO, runWithFeatureFlags as eP, tryGetFeatureValue as eQ, withFeatureFlags as eR, type FeatureFlagsContext as eS, addSchemaToContext as eT, getSchemaByNameFromContext as eU, getSchemaContext as eV, getSchemaFromContext as eW, hasSchemaContext as eX, runWithMergedSchemaContext as eY, runWithSchemaContext as eZ, type SchemaContext as e_, type JwtVerificationResult as ea, type MagicLinkPayload as eb, type WorkflowAccessPayload as ec, type WorkflowJwtConfig as ed, type WorkflowJwtPayload as ee, type CacheKeyType as ef, hashOptions as eg, type CacheAdapter as eh, type CacheOptions as ei, cacheKeys as ej, cacheTtl as ek, defaultTtl as el, NoopCacheAdapter as em, type FetchResult as en, type FormattedRecord as eo, type GroupedFetchResult as ep, type InsertOptions as eq, type QueryBuilderState as er, type RegistryMap as es, type RegistryObjectNames as et, type ShortcutOperator as eu, createDefaultState as ev, formatRecord as ew, formatRecords as ex, QueryMultipleResultsError as ey, QueryNoResultError as ez, type TableTab as f, type MockStores as f$, getTenantId as f0, getUserId as f1, hasContext as f2, runWithContext as f3, withTenantContext as f4, type TenantContext as f5, createDefaultExecutorRegistry as f6, getDefaultExecutorRegistry as f7, type ExecutorCompleteResult as f8, type ExecutorContext as f9, validateFormulaExpression as fA, type FormulaResult as fB, getPathDepth as fC, getRelationPath as fD, getTargetAttributeName as fE, InvalidPathError as fF, MaxDepthExceededError as fG, parsePath as fH, pathHasManyCardinality as fI, validatePath as fJ, type PathCardinality as fK, type PathSegment as fL, type PathSegmentType as fM, type SchemaResolver as fN, resolveMultiplePaths as fO, resolveSingleValue as fP, traversePath as fQ, type TraversalOptions as fR, type TraversalResult as fS, type AttributeChange as fT, type HookContext as fU, type HookDefinition as fV, type HookHandler as fW, type HookType as fX, NoopHookRegistry as fY, type HookRegistry as fZ, createMockAdapter as f_, type ExecutorErrorResult as fa, type ExecutorResult as fb, type ExecutorSuccessResult as fc, type ExecutorWaitResult as fd, type NodeExecutor as fe, complete as ff, error as fg, ExecutorRegistry as fh, success as fi, wait as fj, ConditionExecutor as fk, DocumentExecutor as fl, EndExecutor as fm, FormExecutor as fn, StartExecutor as fo, evaluateFormula as fp, evaluateFormulaAttribute as fq, evaluateFormulaAttributeWithRelations as fr, evaluateFormulaWithRelations as fs, evaluateFormulaWithResult as ft, extractFormulaVariables as fu, extractRelationNames as fv, extractRelationReferences as fw, flattenRelationsForEval as fx, formatFormulaResult as fy, hasRelationReferences as fz, type FilterState as g, getPolicy as g$, defaultPolicyRegistry as g0, PolicyRegistry as g1, type AIConversationsRepository as g2, type AIUsageMetricsRepository as g3, type AIUserMemoryRepository as g4, type AttributesRepository as g5, type AuditRepository as g6, type DocumentGenerationTemplateListOptions as g7, type DocumentGenerationTemplatesRepository as g8, type DocumentJobsRepository as g9, type SearchQueryOptions as gA, type QueryResult as gB, RecordQueryService as gC, type RelationValidationResult as gD, type RelationValidationError as gE, type RelationOption as gF, type RelationOptionsResponse as gG, type GetRelationOptionsParams as gH, type RelationServiceOptions as gI, type ResolveIdsBatchRequest as gJ, type ResolveIdsBatchResponse as gK, RelationService as gL, type MultiRelationValue as gM, type SingleRelationValue as gN, type HybridRelationValue as gO, RelationPropertiesService as gP, RecordResolverService as gQ, type ResolvedRelations as gR, type FormulaResolverServiceOptions as gS, FormulaResolverService as gT, type RollupResult as gU, type RollupServiceOptions as gV, RollupService as gW, type RollupSchedulerOptions as gX, RollupScheduler as gY, applyDefaultValues as gZ, checkPermission as g_, type DocumentSlotsRepository as ga, type DocumentsRepository as gb, type DocumentTemplatesRepository as gc, type FilesRepository as gd, type ObjectRecordsRepository as ge, type ObjectsRepository as gf, type PermissionsRepository as gg, type UserProfilesRepository as gh, type ViewsRepository as gi, type WorkflowAccessGrantsRepository as gj, type WorkflowInstancesRepository as gk, type WorkflowInvitationsRepository as gl, type WorkflowsRepository as gm, BaseService as gn, BaseRepository as go, type SchemaContextAware as gp, SchemaContextAwareRepository as gq, type CreateCustomObjectInput as gr, type AddAttributeInput as gs, type UpdateObjectInput as gt, type ObjectSchemaServiceOptions as gu, ObjectSchemaService as gv, type RecordServiceOptions as gw, RecordService as gx, type RecordQueryServiceOptions as gy, type QueryOptions as gz, type SortRule as h, type FileServiceOptions as h$, buildPolicyContext as h0, checkRecordAccess as h1, checkRecordModifyOrThrow as h2, checkRecordDeleteOrThrow as h3, checkSharedObjectWriteAccess as h4, computeLabel as h5, type LabelResolver as h6, enrichWithFormulas as h7, enrichRecordsWithFormulas as h8, createContextForCreate as h9, type UpdateWorkflowInput as hA, type WorkflowServiceOptions as hB, WorkflowService as hC, type UserValidationResult as hD, type UserValidationError as hE, UserService as hF, type UserProfileServiceOptions as hG, UserProfileService as hH, AuditService as hI, buildAuditChanges as hJ, DocumentGenerationTemplateNotFoundError as hK, DocumentGenerationNotConfiguredError as hL, DocumentGenerationService as hM, type DocumentProcessingConfig as hN, DocumentProcessingService as hO, type RenderDocumentInput as hP, type DocumentRendererOptions as hQ, type RenderDocumentResult as hR, DocumentRenderError as hS, StorageDownloadNotSupportedError as hT, DocumentRendererService as hU, DocumentTemplateService as hV, type RecordDocumentsResult as hW, type CreateRecordDocumentInput as hX, type CreateRecordDocumentResult as hY, type DocumentServiceOptions as hZ, DocumentService as h_, createContextForUpdate as ha, createContextForDelete as hb, createContextForRestore as hc, recalculateParentRollups as hd, type RollupCascadeContext as he, type DocumentProcessingHookOptions as hf, DocumentProcessingHook as hg, GrantNotFoundError as hh, GrantExpiredError as hi, GrantRevokedError as hj, TokenRevokedError as hk, type GrantServiceConfig as hl, type CreateGrantResult as hm, WorkflowAccessGrantService as hn, type StartWorkflowInput as ho, type ResumeWorkflowInput as hp, type WorkflowInstanceServiceOptions as hq, WorkflowInstanceService as hr, type InvitationServiceConfig as hs, InvitationNotFoundError as ht, InvitationExpiredError as hu, InvitationAlreadyAcceptedError as hv, InvitationRevokedError as hw, WorkflowInvitationService as hx, WorkflowRelationService as hy, type CreateWorkflowInput as hz, type WorkflowConfig as i, type UpdateDBWorkflowInstance as i$, FileService as i0, GeocodingService as i1, GlobalSearchService as i2, type PermissionServiceOptions as i3, PermissionService as i4, type CreateViewInput as i5, type UpdateViewInput as i6, type GetViewsOptions as i7, type GetViewOptions as i8, ViewService as i9, type CreateDBObject as iA, type UpdateDBObject as iB, type UpsertDBObject as iC, type DBAttribute as iD, type CreateDBAttribute as iE, type UpdateDBAttribute as iF, type UpsertDBAttribute as iG, type CreateObjectRecord as iH, type ListOptions as iI, type SearchOptions as iJ, type GlobalSearchOptions as iK, type GlobalSearchGroupedOptions as iL, type GlobalSearchResultItem as iM, type GlobalSearchGroupedResult as iN, type FileListOptions as iO, type DBView as iP, type CreateDBView as iQ, type UpdateDBView as iR, type UpsertDBView as iS, type DBViewOverlay as iT, type CreateDBViewOverlay as iU, type UpdateDBViewOverlay as iV, type DBWorkflow as iW, type CreateDBWorkflow as iX, type UpdateDBWorkflow as iY, type DBWorkflowInstance as iZ, type CreateDBWorkflowInstance as i_, type FileContent as ia, type StorageUploadInput as ib, type StorageUploadResult as ic, type SignedUrlOptions as id, type StorageAdapter as ie, type UploadFileInput as ig, type SyncResult as ih, type SyncOptions as ii, syncNativeObjects as ij, verifyNativeObjectsSync as ik, getSyncPreview as il, type FullSyncResult as im, type FullSyncOptions as io, syncAll as ip, DEFAULT_LABEL_FALLBACK as iq, renderLabelExpression as ir, isLabelExpression as is, extractAttributeNames as it, enrichValuesForDisplay as iu, enrichValuesWithSelectLabels as iv, extractRelationIds as iw, type RelationLabelResolver as ix, computeLabelWithRelations as iy, type DBObject as iz, type SlotMode as j, type DBWorkflowInvitation as j0, type CreateDBWorkflowInvitation as j1, type UpdateDBWorkflowInvitation as j2, type DBWorkflowAccessGrant as j3, type CreateDBWorkflowAccessGrant as j4, type UpdateDBWorkflowAccessGrant as j5, type OperationResult as j6, type ViewSyncResult as j7, type ViewSyncLogger as j8, type ViewSyncOptions as j9, seedRegistryViews as ja, syncNativeViews as jb, verifyRegistryViewsSeeded as jc, verifyNativeViewsSync as jd, getViewSeedPreview as je, getViewSyncPreview as jf, type ConditionGroup as k, type ConditionRule as l, type WorkflowNode as m, type WorkflowDefinition as n, type FlowRow as o, type ListViewConfig as p, type ListViewTab as q, type ViewDefinition as r, type DocumentTemplate as s, type OcrAdapter as t, type OcrInput as u, type OcrOptions as v, type OcrResult as w, type OcrPage as x, type OcrTextBlock as y, type SignatureAdapter as z };
|