@xnetjs/data 2.4.0 → 3.0.0
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/README.md +5 -0
- package/dist/auth/index.d.ts +4 -4
- package/dist/{chunk-56EXPOJ4.js → chunk-ANMAR3KY.js} +34 -19
- package/dist/chunk-GJAOMEQO.js +114 -0
- package/dist/chunk-KY62NUOI.js +67 -0
- package/dist/chunk-N37U6ZPI.js +789 -0
- package/dist/chunk-NFPEFD2I.js +42 -0
- package/dist/{chunk-EGGRKSRH.js → chunk-QKVIKVAL.js} +70 -31
- package/dist/{chunk-CY6EJUNV.js → chunk-S7SEN4LH.js} +5 -1
- package/dist/{chunk-4HJZJMPI.js → chunk-TN7LGV66.js} +1 -1
- package/dist/{chunk-YRFCXKJC.js → chunk-UQ2VFHU3.js} +2 -2
- package/dist/chunk-VZSEZNYA.js +83 -0
- package/dist/chunk-WSINZHSR.js +90 -0
- package/dist/{chunk-CNGEXCIH.js → chunk-YCBJDT23.js} +69 -55
- package/dist/{clone-BsoRt89i.d.ts → clone-ywzFVkID.d.ts} +16 -6
- package/dist/course-C5DXOIVO.js +24 -0
- package/dist/database/index.d.ts +17 -5
- package/dist/database/index.js +7 -7
- package/dist/event-VW3FBN4F.js +20 -0
- package/dist/{form-types-Dkqm9UO2.d.ts → form-types-BrHYdpi0.d.ts} +1 -1
- package/dist/{game-NEQP7OFX.js → game-7AXW7XKS.js} +1 -1
- package/dist/{grant-expiration-cleaner-BwdmRFua.d.ts → grant-expiration-cleaner-CRS9OyhV.d.ts} +3 -3
- package/dist/index.d.ts +10 -320
- package/dist/index.js +522 -1097
- package/dist/{moderation-HRMMBFVH.js → moderation-5Z4LKOKN.js} +5 -3
- package/dist/{page-RUS2BKMX.js → page-W4G6433H.js} +1 -1
- package/dist/portability/index.d.ts +330 -0
- package/dist/portability/index.js +34 -0
- package/dist/post-7IOO64MD.js +14 -0
- package/dist/{profile-5H6XWCK4.js → profile-KLHCAQY2.js} +1 -1
- package/dist/publication-3MN3WWKP.js +10 -0
- package/dist/{query-ast-DYGcKxoa.d.ts → query-ast-DQJO7yRV.d.ts} +1 -1
- package/dist/{registry-D_3b1Lg6.d.ts → registry-C9IRLLeR.d.ts} +1 -1
- package/dist/schema/index.d.ts +375 -26
- package/dist/schema/index.js +213 -167
- package/dist/space-GBTEHZOK.js +1 -1
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +4 -4
- package/dist/{store-BMnhBWzM.d.ts → store-D1oiFQuF.d.ts} +19 -2
- package/dist/{types-cycApzib.d.ts → types-gws1tSf-.d.ts} +1 -1
- package/package.json +27 -25
- package/dist/chunk-Y2XWK7AA.js +0 -50
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { N as NodeStore } from './store-
|
|
1
|
+
import { C as CellValue, a9 as FormSubmissionMeta, H as ColumnDefinition, j as FieldType, k as FieldConfig, M as SelectColor, l as FieldNode, S as SelectOptionNode, W as ViewType, Y as FilterGroup, $ as SortConfig, X as ViewConfig, E as ColumnType, _ as FilterOperator, O as RollupAggregation, m as RollupColumnConfig } from './form-types-BrHYdpi0.js';
|
|
2
|
+
import { ar as NodeQueryMaterializedViewOptions, h as NodeState, E as PropertyType, S as SchemaIRI, a as Schema } from './types-gws1tSf-.js';
|
|
3
|
+
import { N as NodeStore } from './store-D1oiFQuF.js';
|
|
4
4
|
import * as Y from 'yjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1553,6 +1553,16 @@ interface FormulaValidationResult {
|
|
|
1553
1553
|
error?: string;
|
|
1554
1554
|
dependencies?: string[];
|
|
1555
1555
|
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Cross-node scope resolvers (0346): pre-resolved, synchronous access
|
|
1558
|
+
* for `RELATED()` and `NODE()` — scope widened row → relations → named
|
|
1559
|
+
* nodes without a second engine. Recompute on related-node change rides
|
|
1560
|
+
* the reload path until 0317's predicate-aware invalidation lands.
|
|
1561
|
+
*/
|
|
1562
|
+
interface FormulaScope {
|
|
1563
|
+
getRelatedValues?: (relationColumnId: string, targetColumnId?: string) => unknown[];
|
|
1564
|
+
getNodeProperty?: (nodeId: string, property: string) => unknown;
|
|
1565
|
+
}
|
|
1556
1566
|
declare class FormulaService {
|
|
1557
1567
|
private parser;
|
|
1558
1568
|
private astCache;
|
|
@@ -1566,11 +1576,11 @@ declare class FormulaService {
|
|
|
1566
1576
|
* const value = service.compute(row, formulaColumn, columns)
|
|
1567
1577
|
* ```
|
|
1568
1578
|
*/
|
|
1569
|
-
compute(row: FormulaRow, column: ColumnDefinition, columns: ColumnDefinition[]): unknown;
|
|
1579
|
+
compute(row: FormulaRow, column: ColumnDefinition, columns: ColumnDefinition[], scope?: FormulaScope): unknown;
|
|
1570
1580
|
/**
|
|
1571
1581
|
* Batch compute formulas for multiple rows.
|
|
1572
1582
|
*/
|
|
1573
|
-
batchCompute(rows: FormulaRow[], column: ColumnDefinition, columns: ColumnDefinition[]): Map<string, unknown>;
|
|
1583
|
+
batchCompute(rows: FormulaRow[], column: ColumnDefinition, columns: ColumnDefinition[], scope?: FormulaScope): Map<string, unknown>;
|
|
1574
1584
|
/**
|
|
1575
1585
|
* Validate a formula expression.
|
|
1576
1586
|
*
|
|
@@ -2041,4 +2051,4 @@ declare function cloneSampleRows(rows: Array<Record<string, unknown>>, idMap: Ma
|
|
|
2041
2051
|
*/
|
|
2042
2052
|
declare function cloneSchema(source: CloneSourceData, options?: CloneSchemaOptions): CloneSchemaResult;
|
|
2043
2053
|
|
|
2044
|
-
export { getViews$1 as $, getTitleField as A, createField as B, type CreateRowOptions as C, type DatabaseRowNode as D, updateField as E, deleteField as F, moveField as G, duplicateField as H,
|
|
2054
|
+
export { getViews$1 as $, getTitleField as A, createField as B, type CreateRowOptions as C, type DatabaseRowNode as D, updateField as E, deleteField as F, moveField as G, duplicateField as H, ensureSchemaExtension as I, createExtensionField as J, renameExtensionField as K, deleteExtensionField as L, MAX_KEY_LENGTH as M, type EnsureExtensionOptions as N, type CreateExtensionFieldOptions as O, getSelectOptions as P, type QueryRowsOptions as Q, RICHTEXT_PREFIX as R, getDatabaseSelectOptions as S, createSelectOption as T, type UpdateFieldOptions as U, updateSelectOption as V, deleteSelectOption as W, moveSelectOption as X, type ViewNode as Y, type CreateViewOptions as Z, type UpdateViewOptions as _, type QueryRowsResult as a, formatValue as a$, getView$1 as a0, createView$1 as a1, updateView$1 as a2, deleteView$1 as a3, duplicateView$1 as a4, moveView as a5, setViewFilters$1 as a6, setViewSorts$1 as a7, setViewGroupBy$1 as a8, toggleViewGroupCollapsed as a9, computeRollup as aA, batchComputeRollups as aB, validateRollupConfig as aC, type RollupRow as aD, type RollupContext as aE, FormulaService as aF, createFormulaService as aG, type FormulaRow as aH, type FormulaValidationResult as aI, parseCSV as aJ, parseCSVLine as aK, guessColumnType as aL, parseValue as aM, parseRow as aN, inferColumnTypes as aO, parseJSON as aP, inferColumnsFromRows as aQ, inferTypeFromValues as aR, toColumnDefinitions as aS, validateJsonData as aT, type ParsedCSV as aU, type CsvParseOptions as aV, type ParsedJSON as aW, type InferredColumn as aX, type JsonParseOptions as aY, exportToCsv as aZ, escapeCSV as a_, setFieldHidden as aa, setViewFieldWidth as ab, setViewFieldOrder as ac, effectiveFieldSortKey as ad, setupDatabase as ae, type SetupDatabaseResult as af, DEFAULT_DATABASE_SCHEMA_VERSION as ag, fieldsToStoredColumns as ah, buildSchemaFromFields as ai, getDatabaseSchemaIRI as aj, createNodeDatabaseSchemaResolver as ak, initializeDatabaseDoc as al, isDatabaseDocInitialized as am, addDefaultTitleColumn as an, addDefaultTableView as ao, setupNewDatabase as ap, getMeta as aq, setMeta as ar, deleteMeta as as, getDatabaseDocumentModel as at, type DatabaseDocumentModel as au, convertCellValue as av, cellValueToText as aw, type ConvertContext as ax, type ConvertedCell as ay, aggregate as az, updateCells as b, type GroupableRow as b$, createCsvBlob as b0, downloadCsv as b1, exportToJson as b2, exportToJsonArray as b3, exportToNdjson as b4, createJsonBlob as b5, downloadJson as b6, type ExportRow$1 as b7, type CsvExportOptions as b8, type JsonExportOptions as b9, setVisibleColumns as bA, showColumn as bB, hideColumn as bC, reorderViewColumns as bD, setColumnWidth as bE, OPERATORS_BY_TYPE as bF, OPERATOR_LABELS as bG, getOperatorsForType as bH, isValidOperator as bI, getOperatorLabel as bJ, operatorRequiresValue as bK, filterRows as bL, createEqualsFilter as bM, createAnyOfFilter as bN, combineFiltersAnd as bO, combineFiltersOr as bP, type FilterableRow as bQ, sortRows as bR, createSort as bS, toggleSortDirection as bT, addOrToggleSort as bU, removeSort as bV, type SortableRow as bW, groupRows as bX, toggleGroupCollapsed as bY, expandAllGroups as bZ, collapseAllGroups as b_, type ExportedJSON as ba, type ExportedColumn as bb, getColumns as bc, getColumn as bd, getColumnIndex as be, getTitleColumn as bf, createColumn as bg, updateColumn as bh, deleteColumn as bi, reorderColumn as bj, duplicateColumn as bk, getViews as bl, getView as bm, getViewByType as bn, createView as bo, updateView as bp, deleteView as bq, duplicateView as br, setViewFilters as bs, clearViewFilters as bt, setViewSorts as bu, addViewSort as bv, removeViewSort as bw, clearViewSorts as bx, setViewGroupBy as by, toggleGroupCollapsed$1 as bz, createRow as c, type GroupConfig as c0, type RowGroup as c1, type GroupAggregates as c2, executeQuery as c3, createFilterQuery as c4, createSortQuery as c5, createPaginatedQuery as c6, flattenGroups as c7, getTotalFromGroups as c8, type QueryableRow as c9, cloneSampleRows as cA, generateColumnIdMap as cB, remapViewColumnIds as cC, type CloneSchemaOptions as cD, type CloneSchemaResult as cE, type CloneSourceData as cF, getEmptyValue as cG, isNumericAggregation as cH, getAggregationResultType as cI, type QueryOptions as ca, type QueryResult as cb, buildSchemaIRI as cc, parseDatabaseSchemaIRI as cd, isDatabaseSchemaIRI as ce, parseVersion as cf, bumpSchemaVersion as cg, createInitialSchemaMetadata as ch, buildDatabaseSchema as ci, createVersionEntry as cj, pruneVersionHistory as ck, getVersionBumpType as cl, DATABASE_SCHEMA_NAMESPACE as cm, DATABASE_SCHEMA_PREFIX as cn, MAX_VERSION_HISTORY as co, type DatabaseSchemaMetadata as cp, type StoredColumn as cq, type SchemaVersionEntry as cr, type VersionBumpType as cs, createDatabaseSchemaResolver as ct, extractSchemaFromDoc as cu, getSchemaIRIFromDoc as cv, type DocFetcher as cw, type CreateDatabaseSchemaResolverOptions as cx, cloneSchema as cy, cloneColumns as cz, deleteRow as d, checkNeedsRebalancing as e, generateSortKey as f, getRow as g, generateSortKeyWithJitter as h, isValidSortKey as i, compareSortKeys as j, rebalanceSortKeys as k, getRichTextCell as l, moveRow as m, needsRebalancing as n, hasRichTextContent as o, hasRichTextColumns as p, queryRows as q, rebalanceDatabase as r, getRichTextColumnIds as s, deleteRichTextCell as t, updateCell as u, getRichTextPlainText as v, type CreateFieldOptions as w, type CreateSelectOptionOptions as x, getFields as y, getField as z };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COURSE_SCHEMA_IRI,
|
|
3
|
+
CourseSchema,
|
|
4
|
+
LESSON_PROGRESS_SCHEMA_IRI,
|
|
5
|
+
LESSON_SCHEMA_IRI,
|
|
6
|
+
LessonProgressSchema,
|
|
7
|
+
LessonSchema,
|
|
8
|
+
courseCompletion,
|
|
9
|
+
lessonProgressId
|
|
10
|
+
} from "./chunk-GJAOMEQO.js";
|
|
11
|
+
import "./chunk-RLRAWZJE.js";
|
|
12
|
+
import "./chunk-GSLOK5KV.js";
|
|
13
|
+
import "./chunk-NH6OLO3X.js";
|
|
14
|
+
import "./chunk-D4LUUZYD.js";
|
|
15
|
+
export {
|
|
16
|
+
COURSE_SCHEMA_IRI,
|
|
17
|
+
CourseSchema,
|
|
18
|
+
LESSON_PROGRESS_SCHEMA_IRI,
|
|
19
|
+
LESSON_SCHEMA_IRI,
|
|
20
|
+
LessonProgressSchema,
|
|
21
|
+
LessonSchema,
|
|
22
|
+
courseCompletion,
|
|
23
|
+
lessonProgressId
|
|
24
|
+
};
|
package/dist/database/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
import '../types-
|
|
1
|
+
import { Y as FilterGroup, H as ColumnDefinition, E as ColumnType, W as ViewType, $ as SortConfig } from '../form-types-BrHYdpi0.js';
|
|
2
|
+
export { a as CELL_PREFIX, C as CellValue, I as ColumnConfig, as as ColumnSummaryResult, av as DEFAULT_ROW_HEIGHT, o as DateColumnConfig, o as DateFieldConfig, D as DateRange, J as EmptyConfig, q as FIELD_TYPES, k as FieldConfig, l as FieldNode, j as FieldType, p as FileColumnConfig, p as FileFieldConfig, F as FileRef, Z as FilterCondition, _ as FilterOperator, a8 as FormAudience, a5 as FormConfirmation, a7 as FormFieldRule, a4 as FormQuestion, a9 as FormSubmissionMeta, aa as FormValidationError, ab as FormValidationResult, a6 as FormViewConfig, n as FormulaColumnConfig, n as FormulaFieldConfig, G as GeoPoint, N as NumberColumnConfig, N as NumberFieldConfig, ae as PUBLIC_SAFE_FORM_FIELD_TYPES, ad as PublicFormDefinition, ac as PublicFormQuestion, au as ROW_HEIGHTS, at as ROW_HEIGHT_PX, R as RelationColumnConfig, R as RelationFieldConfig, O as RollupAggregation, m as RollupColumnConfig, m as RollupFieldConfig, az as RowHeight, r as SELECT_COLORS, al as SUMMARY_FUNCTIONS_BY_TYPE, M as SelectColor, K as SelectColumnConfig, L as SelectOption, S as SelectOptionNode, ar as SummaryColumnLike, ap as SummaryFunction, aq as SummaryRow, T as TextColumnConfig, T as TextFieldConfig, X as ViewConfig, ay as asRowHeight, v as autoColor, aj as buildPublicFormDefinition, c as cellKey, b as columnIdFromKey, ao as computeColumnSummary, f as fromCellProperties, U as isAutoColumnType, y as isAutoFieldType, i as isCellKey, h as isCellValue, Q as isComputedColumnType, x as isComputedFieldType, d as isDateRange, s as isFieldType, e as isFileRef, an as isFilledValue, a1 as isFilterCondition, a0 as isFilterGroup, af as isFormFieldTypeAllowed, ag as isFormQuestionVisible, g as isGeoPoint, P as isNodeStoreColumnType, w as isNodeStoreFieldType, u as isSelectColor, V as isYDocColumnType, z as isYDocFieldType, a3 as requiresDateColumn, ax as resolveRowHeightPx, aw as rowHeightLabel, ak as submissionRowId, am as summaryFunctionLabel, a2 as supportsGrouping, t as toCellProperties, A as toFieldNode, B as toSelectOptionNode, ai as validateFormSubmission, ah as visibleFormQuestions } from '../form-types-BrHYdpi0.js';
|
|
3
|
+
export { cD as CloneSchemaOptions, cE as CloneSchemaResult, cF as CloneSourceData, ax as ConvertContext, ay as ConvertedCell, cx as CreateDatabaseSchemaResolverOptions, O as CreateExtensionFieldOptions, w as CreateFieldOptions, C as CreateRowOptions, x as CreateSelectOptionOptions, Z as CreateViewOptions, b8 as CsvExportOptions, aV as CsvParseOptions, cm as DATABASE_SCHEMA_NAMESPACE, cn as DATABASE_SCHEMA_PREFIX, ag as DEFAULT_DATABASE_SCHEMA_VERSION, au as DatabaseDocumentModel, D as DatabaseRowNode, cp as DatabaseSchemaMetadata, cw as DocFetcher, N as EnsureExtensionOptions, b7 as ExportRow, bb as ExportedColumn, ba as ExportedJSON, bQ as FilterableRow, aH as FormulaRow, aF as FormulaService, aI as FormulaValidationResult, c2 as GroupAggregates, c0 as GroupConfig, b$ as GroupableRow, aX as InferredColumn, b9 as JsonExportOptions, aY as JsonParseOptions, M as MAX_KEY_LENGTH, co as MAX_VERSION_HISTORY, bF as OPERATORS_BY_TYPE, bG as OPERATOR_LABELS, aU as ParsedCSV, aW as ParsedJSON, ca as QueryOptions, cb as QueryResult, Q as QueryRowsOptions, a as QueryRowsResult, c9 as QueryableRow, R as RICHTEXT_PREFIX, aE as RollupContext, aD as RollupRow, c1 as RowGroup, cr as SchemaVersionEntry, af as SetupDatabaseResult, bW as SortableRow, cq as StoredColumn, U as UpdateFieldOptions, _ as UpdateViewOptions, cs as VersionBumpType, Y as ViewNode, ao as addDefaultTableView, an as addDefaultTitleColumn, bU as addOrToggleSort, bv as addViewSort, az as aggregate, aB as batchComputeRollups, ci as buildDatabaseSchema, ai as buildSchemaFromFields, cc as buildSchemaIRI, cg as bumpSchemaVersion, aw as cellValueToText, e as checkNeedsRebalancing, bt as clearViewFilters, bx as clearViewSorts, cz as cloneColumns, cA as cloneSampleRows, cy as cloneSchema, b_ as collapseAllGroups, bO as combineFiltersAnd, bP as combineFiltersOr, j as compareSortKeys, aA as computeRollup, av as convertCellValue, bN as createAnyOfFilter, bg as createColumn, b0 as createCsvBlob, ct as createDatabaseSchemaResolver, bM as createEqualsFilter, J as createExtensionField, B as createField, c4 as createFilterQuery, aG as createFormulaService, ch as createInitialSchemaMetadata, b5 as createJsonBlob, ak as createNodeDatabaseSchemaResolver, c6 as createPaginatedQuery, c as createRow, T as createSelectOption, bS as createSort, c5 as createSortQuery, cj as createVersionEntry, bo as createView, a1 as createViewNode, bi as deleteColumn, L as deleteExtensionField, F as deleteField, as as deleteMeta, t as deleteRichTextCell, d as deleteRow, W as deleteSelectOption, bq as deleteView, a3 as deleteViewNode, b1 as downloadCsv, b6 as downloadJson, bk as duplicateColumn, H as duplicateField, br as duplicateView, a4 as duplicateViewNode, ad as effectiveFieldSortKey, I as ensureSchemaExtension, a_ as escapeCSV, c3 as executeQuery, bZ as expandAllGroups, aZ as exportToCsv, b2 as exportToJson, b3 as exportToJsonArray, b4 as exportToNdjson, cu as extractSchemaFromDoc, ah as fieldsToStoredColumns, bL as filterRows, c7 as flattenGroups, a$ as formatValue, cB as generateColumnIdMap, f as generateSortKey, h as generateSortKeyWithJitter, cI as getAggregationResultType, bd as getColumn, be as getColumnIndex, bc as getColumns, at as getDatabaseDocumentModel, aj as getDatabaseSchemaIRI, S as getDatabaseSelectOptions, cG as getEmptyValue, z as getField, y as getFields, aq as getMeta, bJ as getOperatorLabel, bH as getOperatorsForType, l as getRichTextCell, s as getRichTextColumnIds, v as getRichTextPlainText, g as getRow, cv as getSchemaIRIFromDoc, P as getSelectOptions, bf as getTitleColumn, A as getTitleField, c8 as getTotalFromGroups, cl as getVersionBumpType, bm as getView, bn as getViewByType, a0 as getViewNode, $ as getViewNodes, bl as getViews, bX as groupRows, aL as guessColumnType, p as hasRichTextColumns, o as hasRichTextContent, bC as hideColumn, aO as inferColumnTypes, aQ as inferColumnsFromRows, aR as inferTypeFromValues, al as initializeDatabaseDoc, am as isDatabaseDocInitialized, ce as isDatabaseSchemaIRI, cH as isNumericAggregation, bI as isValidOperator, i as isValidSortKey, G as moveField, m as moveRow, X as moveSelectOption, a5 as moveView, n as needsRebalancing, bK as operatorRequiresValue, aJ as parseCSV, aK as parseCSVLine, cd as parseDatabaseSchemaIRI, aP as parseJSON, aN as parseRow, aM as parseValue, cf as parseVersion, ck as pruneVersionHistory, q as queryRows, r as rebalanceDatabase, k as rebalanceSortKeys, cC as remapViewColumnIds, bV as removeSort, bw as removeViewSort, K as renameExtensionField, bj as reorderColumn, bD as reorderViewColumns, bE as setColumnWidth, aa as setFieldHidden, ar as setMeta, ac as setViewFieldOrder, ab as setViewFieldWidth, bs as setViewFilters, by as setViewGroupBy, a6 as setViewNodeFilters, a8 as setViewNodeGroupBy, a7 as setViewNodeSorts, bu as setViewSorts, bA as setVisibleColumns, ae as setupDatabase, ap as setupNewDatabase, bB as showColumn, bR as sortRows, aS as toColumnDefinitions, bz as toggleGroupCollapsed, bY as toggleGroupCollapsedState, bT as toggleSortDirection, a9 as toggleViewGroupCollapsed, u as updateCell, b as updateCells, bh as updateColumn, E as updateField, V as updateSelectOption, bp as updateView, a2 as updateViewNode, aT as validateJsonData, aC as validateRollupConfig } from '../clone-ywzFVkID.js';
|
|
4
|
+
import '../types-gws1tSf-.js';
|
|
5
5
|
import '@xnetjs/core';
|
|
6
6
|
import '@xnetjs/crypto';
|
|
7
7
|
import '@xnetjs/sqlite';
|
|
8
8
|
import '@xnetjs/sync';
|
|
9
|
-
import '../store-
|
|
9
|
+
import '../store-D1oiFQuF.js';
|
|
10
10
|
import 'yjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -306,6 +306,18 @@ interface EvalContext {
|
|
|
306
306
|
getValue: (columnId: string) => unknown;
|
|
307
307
|
/** Get column definition */
|
|
308
308
|
getColumn: (columnId: string) => ColumnDefinition | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* Cross-node scope (0346): values of a target column across the rows
|
|
311
|
+
* this row relates to through a relation column. Pre-resolved by the
|
|
312
|
+
* host (formulas stay synchronous); absent on hosts without relation
|
|
313
|
+
* access — RELATED() then evaluates to [].
|
|
314
|
+
*/
|
|
315
|
+
getRelatedValues?: (relationColumnId: string, targetColumnId?: string) => unknown[];
|
|
316
|
+
/**
|
|
317
|
+
* Cross-node scope (0346): a named node's property, pre-resolved by
|
|
318
|
+
* the host. Absent → NODE() evaluates to null.
|
|
319
|
+
*/
|
|
320
|
+
getNodeProperty?: (nodeId: string, property: string) => unknown;
|
|
309
321
|
}
|
|
310
322
|
/**
|
|
311
323
|
* Evaluate an AST node against a context.
|
package/dist/database/index.js
CHANGED
|
@@ -253,9 +253,15 @@ import {
|
|
|
253
253
|
validateTemplate,
|
|
254
254
|
visibleFormQuestions,
|
|
255
255
|
wouldCreateCircular
|
|
256
|
-
} from "../chunk-
|
|
256
|
+
} from "../chunk-ANMAR3KY.js";
|
|
257
257
|
import "../chunk-PMUQACPY.js";
|
|
258
|
+
import "../chunk-AKKBG7HW.js";
|
|
259
|
+
import "../chunk-IKREWSCX.js";
|
|
260
|
+
import "../chunk-XP3VSSXD.js";
|
|
261
|
+
import "../chunk-UFV5QWCL.js";
|
|
258
262
|
import "../chunk-2JROE7ML.js";
|
|
263
|
+
import "../chunk-RLRAWZJE.js";
|
|
264
|
+
import "../chunk-GSLOK5KV.js";
|
|
259
265
|
import {
|
|
260
266
|
MAX_KEY_LENGTH,
|
|
261
267
|
compareSortKeys,
|
|
@@ -265,13 +271,7 @@ import {
|
|
|
265
271
|
needsRebalancing,
|
|
266
272
|
rebalanceSortKeys
|
|
267
273
|
} from "../chunk-QWFTRZQT.js";
|
|
268
|
-
import "../chunk-AKKBG7HW.js";
|
|
269
|
-
import "../chunk-IKREWSCX.js";
|
|
270
|
-
import "../chunk-XP3VSSXD.js";
|
|
271
|
-
import "../chunk-UFV5QWCL.js";
|
|
272
|
-
import "../chunk-RLRAWZJE.js";
|
|
273
274
|
import "../chunk-WOEFYS7Y.js";
|
|
274
|
-
import "../chunk-GSLOK5KV.js";
|
|
275
275
|
import "../chunk-NH6OLO3X.js";
|
|
276
276
|
import "../chunk-D4LUUZYD.js";
|
|
277
277
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EVENT_SCHEMA_IRI,
|
|
3
|
+
EventSchema,
|
|
4
|
+
RSVP_SCHEMA_IRI,
|
|
5
|
+
RsvpSchema,
|
|
6
|
+
rsvpId,
|
|
7
|
+
upcomingEvents
|
|
8
|
+
} from "./chunk-VZSEZNYA.js";
|
|
9
|
+
import "./chunk-RLRAWZJE.js";
|
|
10
|
+
import "./chunk-GSLOK5KV.js";
|
|
11
|
+
import "./chunk-NH6OLO3X.js";
|
|
12
|
+
import "./chunk-D4LUUZYD.js";
|
|
13
|
+
export {
|
|
14
|
+
EVENT_SCHEMA_IRI,
|
|
15
|
+
EventSchema,
|
|
16
|
+
RSVP_SCHEMA_IRI,
|
|
17
|
+
RsvpSchema,
|
|
18
|
+
rsvpId,
|
|
19
|
+
upcomingEvents
|
|
20
|
+
};
|
|
@@ -657,4 +657,4 @@ interface FormValidationResult {
|
|
|
657
657
|
*/
|
|
658
658
|
declare function validateFormSubmission(config: FormViewConfig, rules: Record<string, FormFieldRule> | undefined, answers: Record<string, CellValue>, columns: ColumnDefinition[], audience: FormAudience): FormValidationResult;
|
|
659
659
|
|
|
660
|
-
export { type
|
|
660
|
+
export { type SortConfig as $, toFieldNode as A, toSelectOptionNode as B, type CellValue as C, type DateRange as D, type ColumnType as E, type FileRef as F, type GeoPoint as G, type ColumnDefinition as H, type ColumnConfig as I, type EmptyConfig as J, type SelectColumnConfig as K, type SelectOption as L, type SelectColor as M, type NumberColumnConfig as N, type RollupAggregation as O, isNodeStoreColumnType as P, isComputedColumnType as Q, type RelationColumnConfig as R, type SelectOptionNode as S, type TextColumnConfig as T, isAutoColumnType as U, isYDocColumnType as V, type ViewType as W, type ViewConfig as X, type FilterGroup as Y, type FilterCondition as Z, type FilterOperator as _, CELL_PREFIX as a, isFilterGroup as a0, isFilterCondition as a1, supportsGrouping as a2, requiresDateColumn as a3, type FormQuestion as a4, type FormConfirmation as a5, type FormViewConfig as a6, type FormFieldRule as a7, type FormAudience as a8, type FormSubmissionMeta as a9, type FormValidationError as aa, type FormValidationResult as ab, type PublicFormQuestion as ac, type PublicFormDefinition as ad, PUBLIC_SAFE_FORM_FIELD_TYPES as ae, isFormFieldTypeAllowed as af, isFormQuestionVisible as ag, visibleFormQuestions as ah, validateFormSubmission as ai, buildPublicFormDefinition as aj, submissionRowId as ak, SUMMARY_FUNCTIONS_BY_TYPE as al, summaryFunctionLabel as am, isFilledValue as an, computeColumnSummary as ao, type SummaryFunction as ap, type SummaryRow as aq, type SummaryColumnLike as ar, type ColumnSummaryResult as as, ROW_HEIGHT_PX as at, ROW_HEIGHTS as au, DEFAULT_ROW_HEIGHT as av, rowHeightLabel as aw, resolveRowHeightPx as ax, asRowHeight as ay, type RowHeight as az, columnIdFromKey as b, cellKey as c, isDateRange as d, isFileRef as e, fromCellProperties as f, isGeoPoint as g, isCellValue as h, isCellKey as i, type FieldType as j, type FieldConfig as k, type FieldNode as l, type RollupColumnConfig as m, type FormulaColumnConfig as n, type DateColumnConfig as o, type FileColumnConfig as p, FIELD_TYPES as q, SELECT_COLORS as r, isFieldType as s, toCellProperties as t, isSelectColor as u, autoColor as v, isNodeStoreFieldType as w, isComputedFieldType as x, isAutoFieldType as y, isYDocFieldType as z };
|
package/dist/{grant-expiration-cleaner-BwdmRFua.d.ts → grant-expiration-cleaner-CRS9OyhV.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerializedAuthorization, SerializedRoleResolver, PolicyEvaluator, DID, AuthDecision, RoleResolver, AuthDenyReason, AuthCheckInput, AuthTrace, AuthExpression } from '@xnetjs/core';
|
|
2
|
-
import { a as Schema, h as NodeState, w as NodeChangeEvent, x as GrantIndex, O as OfflineAuthPolicy, D as DefinedSchema } from './types-
|
|
3
|
-
import { S as SchemaRegistry } from './registry-
|
|
2
|
+
import { a as Schema, h as NodeState, w as NodeChangeEvent, x as GrantIndex, O as OfflineAuthPolicy, D as DefinedSchema } from './types-gws1tSf-.js';
|
|
3
|
+
import { S as SchemaRegistry } from './registry-C9IRLLeR.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Permission-matrix reflection.
|
|
@@ -251,4 +251,4 @@ declare class GrantExpirationCleaner {
|
|
|
251
251
|
}>;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { type ActionPermission as A,
|
|
254
|
+
export { type ActionPermission as A, DefaultPolicyEvaluator as D, GrantExpirationCleaner as G, type HubPolicy as H, type NodeStoreReader as N, type PermissionMatrix as P, type RoleSummary as R, type SchemaRegistryReader as S, DefaultRoleResolver as a, DecisionCache as b, buildPermissionMatrix as c, describeRoleResolver as d, evaluateExpression as e, createPolicyEvaluator as f, type DecisionCacheOptions as g, hubActionsForSpaceRole as h, type DefaultRoleResolverOptions as i, type DefaultPolicyEvaluatorOptions as j, type DefinedSchemaLike as k, type RevalidationEvent as l, type AuthDecisionEvent as m, type GrantExpirationStore as n, type GrantExpirationCleanerOptions as o, schemaToHubPolicy as s };
|