mindoodb-app-sdk 0.0.46 → 0.0.48
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 +40 -3
- package/TESTING.md +35 -0
- package/dist/{chunk-XPPTUWW6.js → chunk-TPYDERAK.js} +25 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +268 -2
- package/dist/testing/index.d.ts +10 -1
- package/dist/testing/index.js +395 -42
- package/dist/{types-BaXvRKXY.d.ts → types-C-eyC839.d.ts} +274 -7
- package/package.json +4 -4
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
import { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewDefinition } from 'mindoodb-view-language';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Shared description of a deployed application, served by the app itself from its own
|
|
5
|
+
* origin as `haven-app.json`.
|
|
6
|
+
*
|
|
7
|
+
* This is the publisher contract: one URL is enough to install an app. Haven fetches
|
|
8
|
+
* this file, shows the user what it asks for, and turns it into an app registration —
|
|
9
|
+
* label, permissions, and the databases the app needs.
|
|
10
|
+
*
|
|
11
|
+
* The definition deliberately carries no tenant ids, no physical database targets, and
|
|
12
|
+
* no identity: those belong to the installing Haven, not to the publisher. A publisher
|
|
13
|
+
* names a *logical* database ("notes") and may suggest a physical id; Haven decides
|
|
14
|
+
* which tenant it lands in.
|
|
15
|
+
*
|
|
16
|
+
* Note for maintainers: Haven validates `haven-app.json` with its own copy of these
|
|
17
|
+
* rules (`features/apps/lib/appDefinition.ts`) because a Haven release runs against a
|
|
18
|
+
* published SDK version, not the workspace source. Both sides must stay wire
|
|
19
|
+
* compatible; add fields as optional and never repurpose an existing name.
|
|
20
|
+
*/
|
|
21
|
+
declare const MINDOODB_APP_DEFINITION_FORMAT = "mindoodb.haven.app";
|
|
22
|
+
declare const MINDOODB_APP_DEFINITION_VERSION = 1;
|
|
23
|
+
declare const MINDOODB_APP_DEFINITION_FILE_NAME = "haven-app.json";
|
|
24
|
+
/**
|
|
25
|
+
* Permissions a publisher may request. `read` is not listed because it is implied by a
|
|
26
|
+
* database mapping existing at all.
|
|
27
|
+
*
|
|
28
|
+
* `sign` and `proposeapps` grant only the right to *ask*: Haven still runs a consent
|
|
29
|
+
* dialog for every signature and every proposed app.
|
|
30
|
+
*/
|
|
31
|
+
declare const MINDOODB_APP_DEFINITION_PERMISSIONS: readonly ["write", "delete", "history", "attachments", "views", "sign", "timestamps", "directory", "sealedchannel", "proposeapps"];
|
|
32
|
+
type MindooDBAppDefinitionPermission = (typeof MINDOODB_APP_DEFINITION_PERMISSIONS)[number];
|
|
33
|
+
/** Permissions that are properties of the app as a whole, not of one database. */
|
|
34
|
+
declare const MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS: readonly ["proposeapps"];
|
|
35
|
+
type MindooDBAppDefinitionRegistrationPermission = (typeof MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS)[number];
|
|
36
|
+
interface MindooDBAppDefinitionDatabase {
|
|
37
|
+
/**
|
|
38
|
+
* The id the app passes to `session.openDatabase()`. Stable part of the app's own
|
|
39
|
+
* source code, independent of where the data physically lives.
|
|
40
|
+
*/
|
|
41
|
+
logicalDatabaseId: string;
|
|
42
|
+
/** Shown to the user during install. Defaults to `logicalDatabaseId`. */
|
|
43
|
+
label?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Suggested physical database id. Haven may substitute a different one; the app must
|
|
46
|
+
* never assume this value and always address the database by `logicalDatabaseId`.
|
|
47
|
+
*/
|
|
48
|
+
databaseId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Requested per-database permissions. Registration-level permissions
|
|
51
|
+
* (see {@link MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS}) do not belong here.
|
|
52
|
+
*/
|
|
53
|
+
permissions?: MindooDBAppDefinitionPermission[];
|
|
54
|
+
/**
|
|
55
|
+
* Whether Haven should create the database during install when it does not
|
|
56
|
+
* exist yet. Defaults to `true`, because an app that declares a database
|
|
57
|
+
* needs it to start. Set `false` for a database the app only joins if the
|
|
58
|
+
* user already has it.
|
|
59
|
+
*/
|
|
60
|
+
create?: boolean;
|
|
61
|
+
}
|
|
62
|
+
interface MindooDBAppDefinition {
|
|
63
|
+
format: typeof MINDOODB_APP_DEFINITION_FORMAT;
|
|
64
|
+
formatVersion: number;
|
|
65
|
+
/** Stable publisher-side identifier, e.g. `mindoodb-app-builder`. */
|
|
66
|
+
appId: string;
|
|
67
|
+
label: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
/** Human-readable version, shown in the install dialog. */
|
|
70
|
+
version?: string;
|
|
71
|
+
/**
|
|
72
|
+
* How the app wants to be launched. `iframe` is the default and correct for almost
|
|
73
|
+
* every app; `window` exists for apps that cannot run framed.
|
|
74
|
+
*/
|
|
75
|
+
runtime?: "iframe" | "window";
|
|
76
|
+
/**
|
|
77
|
+
* `external` keeps the app live at its own origin. `hosted` asks Haven to download
|
|
78
|
+
* the built assets from `haven-bundle.json` on this same origin and serve them
|
|
79
|
+
* locally, which also works offline.
|
|
80
|
+
*/
|
|
81
|
+
hosting?: "external" | "hosted";
|
|
82
|
+
/** Origins the app needs to reach at runtime. Shown to the user before install. */
|
|
83
|
+
networkAllowlist?: string[];
|
|
84
|
+
allowPopups?: boolean;
|
|
85
|
+
allowCamera?: boolean;
|
|
86
|
+
allowMicrophone?: boolean;
|
|
87
|
+
allowGeolocation?: boolean;
|
|
88
|
+
allowWebRtc?: boolean;
|
|
89
|
+
allowWorkers?: boolean;
|
|
90
|
+
/** Permissions that apply to the app itself rather than to one database. */
|
|
91
|
+
permissions?: MindooDBAppDefinitionRegistrationPermission[];
|
|
92
|
+
/** Static launch parameters the app expects in its launch context. */
|
|
93
|
+
launchParameters?: Record<string, string>;
|
|
94
|
+
/** `logicalDatabaseId` the app should open first. */
|
|
95
|
+
defaultLaunchDatabaseId?: string;
|
|
96
|
+
databases?: MindooDBAppDefinitionDatabase[];
|
|
97
|
+
}
|
|
98
|
+
interface MindooDBAppDefinitionValidation {
|
|
99
|
+
definition: MindooDBAppDefinition | null;
|
|
100
|
+
errors: string[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Structural validation of a `haven-app.json` payload. Returns the normalized
|
|
104
|
+
* definition, or `null` plus every problem found so a publisher can fix them in one
|
|
105
|
+
* pass instead of one per reload.
|
|
106
|
+
*/
|
|
107
|
+
declare function validateMindooDBAppDefinition(raw: unknown): MindooDBAppDefinitionValidation;
|
|
108
|
+
/**
|
|
109
|
+
* Turns an app origin into the fixed `haven-app.json` path next to `index.html`.
|
|
110
|
+
* A URL that already points at the file is returned unchanged, so a pasted definition
|
|
111
|
+
* URL works as well as a pasted app URL.
|
|
112
|
+
*/
|
|
113
|
+
declare function resolveMindooDBAppDefinitionUrl(baseUrl: string): string;
|
|
114
|
+
|
|
3
115
|
/** Launch target used by the Haven when opening an app. */
|
|
4
116
|
type MindooDBAppRuntime = "iframe" | "window";
|
|
5
117
|
/**
|
|
@@ -151,6 +263,17 @@ interface MindooDBAppLaunchContext {
|
|
|
151
263
|
username: string;
|
|
152
264
|
};
|
|
153
265
|
licensedProducts?: string[];
|
|
266
|
+
/**
|
|
267
|
+
* Permissions granted to the app as a whole rather than to one database — currently
|
|
268
|
+
* only `"proposeapps"`. Read this before offering a feature that needs one: the
|
|
269
|
+
* corresponding bridge call is refused without it, and finding that out after the
|
|
270
|
+
* user has done the work is worse than hiding the button. Per-database permissions
|
|
271
|
+
* live on {@link MindooDBAppDatabaseInfo.capabilities}.
|
|
272
|
+
*
|
|
273
|
+
* Absent on hosts predating this field; treat that as "no registration-level
|
|
274
|
+
* permissions".
|
|
275
|
+
*/
|
|
276
|
+
appPermissions?: MindooDBAppDefinitionRegistrationPermission[];
|
|
154
277
|
launchParameters: Record<string, string>;
|
|
155
278
|
databases: MindooDBAppDatabaseInfo[];
|
|
156
279
|
views: MindooDBAppResolvedViewDefinition[];
|
|
@@ -1327,8 +1450,80 @@ interface MindooDBAppExtractionSetup {
|
|
|
1327
1450
|
* `'v.and(v.eq(v.field("type"), "invoice"), v.gt(v.field("total"), 100))'`),
|
|
1328
1451
|
* which the SDK parses locally; only JSON travels across the bridge.
|
|
1329
1452
|
*/
|
|
1453
|
+
/**
|
|
1454
|
+
* Cardinality of a {@link MindooDBAppQueryInclude}: whether the slot
|
|
1455
|
+
* resolves to a single related document or a list of them. Always
|
|
1456
|
+
* explicit — a lookup that silently picks the first of several matches is
|
|
1457
|
+
* a bug waiting to happen.
|
|
1458
|
+
*/
|
|
1459
|
+
type MindooDBAppQueryIncludeCardinality = "one" | "many";
|
|
1460
|
+
/**
|
|
1461
|
+
* One nested lookup ("join") of a {@link MindooDBAppDocumentQuery}: the
|
|
1462
|
+
* related documents are fetched alongside the matching rows and attached
|
|
1463
|
+
* under {@link MindooDBAppQueryRow.includes}.
|
|
1464
|
+
*
|
|
1465
|
+
* Mirrors mindoodb's `MindooQueryInclude` with one substitution: core
|
|
1466
|
+
* takes a live `MindooDB` instance, which cannot cross the bridge, so a
|
|
1467
|
+
* related database is named by its logical {@link databaseId} instead.
|
|
1468
|
+
*
|
|
1469
|
+
* ```typescript
|
|
1470
|
+
* await database.documents.query({
|
|
1471
|
+
* filter: 'v.eq(v.field("type"), "invoice")',
|
|
1472
|
+
* include: {
|
|
1473
|
+
* customer: { databaseId: "customers", cardinality: "one", localKey: "customerId" },
|
|
1474
|
+
* lines: { cardinality: "many", filter: 'v.eq(v.field("invoiceId"), v.parentDocId())' },
|
|
1475
|
+
* },
|
|
1476
|
+
* });
|
|
1477
|
+
* ```
|
|
1478
|
+
*/
|
|
1479
|
+
interface MindooDBAppQueryInclude {
|
|
1480
|
+
/**
|
|
1481
|
+
* The database the related documents live in, addressed by the same
|
|
1482
|
+
* logical id `openDatabase()` takes. Omit for the database the query
|
|
1483
|
+
* itself runs against. The app must be mapped to it with read access.
|
|
1484
|
+
*/
|
|
1485
|
+
databaseId?: string;
|
|
1486
|
+
cardinality: MindooDBAppQueryIncludeCardinality;
|
|
1487
|
+
/**
|
|
1488
|
+
* Field of the PARENT document holding the related document's id —
|
|
1489
|
+
* sugar for `v.eq(v.docId(), v.parent("<localKey>"))`. An array value
|
|
1490
|
+
* joins every element.
|
|
1491
|
+
*/
|
|
1492
|
+
localKey?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Join condition, as an expression or formula source text. Exactly one
|
|
1495
|
+
* equality must relate the related document to the parent row
|
|
1496
|
+
* (`v.parentDocId()` for the parent's id, `v.parent(path)` for one of
|
|
1497
|
+
* its fields); any further conditions narrow the related documents.
|
|
1498
|
+
*/
|
|
1499
|
+
filter?: MindooDBAppBooleanExpression | string;
|
|
1500
|
+
/** Projection for the related rows. Defaults to all summary fields. */
|
|
1501
|
+
fields?: string[];
|
|
1502
|
+
/** Ordering of the related rows. Only valid for `cardinality: "many"`. */
|
|
1503
|
+
sortBy?: MindooDBAppQuerySortKey[];
|
|
1504
|
+
/**
|
|
1505
|
+
* Maximum number of related rows per parent row. Only valid for
|
|
1506
|
+
* `cardinality: "many"`; the host enforces a cap.
|
|
1507
|
+
*/
|
|
1508
|
+
limit?: number;
|
|
1509
|
+
/** Nested lookups on the related documents. */
|
|
1510
|
+
include?: Record<string, MindooDBAppQueryInclude>;
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* The related documents attached to a row, keyed by include slot name: a
|
|
1514
|
+
* single row (or `null`) for `cardinality: "one"`, an array — possibly
|
|
1515
|
+
* empty, never `null` — for `"many"`.
|
|
1516
|
+
*/
|
|
1517
|
+
type MindooDBAppQueryIncludeSlots = Record<string, MindooDBAppQueryRow | MindooDBAppQueryRow[] | null>;
|
|
1330
1518
|
interface MindooDBAppDocumentQuery {
|
|
1331
1519
|
filter?: MindooDBAppBooleanExpression | string;
|
|
1520
|
+
/**
|
|
1521
|
+
* Nested lookups, keyed by the slot name the related documents appear
|
|
1522
|
+
* under in {@link MindooDBAppQueryRow.includes}. Resolved for the
|
|
1523
|
+
* returned page only, at one scan per slot rather than one query per
|
|
1524
|
+
* row.
|
|
1525
|
+
*/
|
|
1526
|
+
include?: Record<string, MindooDBAppQueryInclude>;
|
|
1332
1527
|
/**
|
|
1333
1528
|
* Full-text clause: additionally require documents to match this
|
|
1334
1529
|
* full-text search (combined with `filter` as a logical AND). Adds a
|
|
@@ -1351,7 +1546,7 @@ interface MindooDBAppDocumentQuery {
|
|
|
1351
1546
|
fields?: string[];
|
|
1352
1547
|
}
|
|
1353
1548
|
/** One result row of a summary-backed document query. */
|
|
1354
|
-
interface MindooDBAppQueryRow {
|
|
1549
|
+
interface MindooDBAppQueryRow<TIncludes extends MindooDBAppQueryIncludeSlots = MindooDBAppQueryIncludeSlots> {
|
|
1355
1550
|
docId: string;
|
|
1356
1551
|
fields: Record<string, unknown>;
|
|
1357
1552
|
lastModified: number;
|
|
@@ -1360,6 +1555,15 @@ interface MindooDBAppQueryRow {
|
|
|
1360
1555
|
* Only present when the query had a `text` clause.
|
|
1361
1556
|
*/
|
|
1362
1557
|
textScore?: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* Related documents fetched through the query's `include` clause, keyed
|
|
1560
|
+
* by slot name. Absent when the query carried no `include`, so results
|
|
1561
|
+
* of plain queries keep exactly the shape they always had.
|
|
1562
|
+
*
|
|
1563
|
+
* Included rows are ordinary rows, so a nested lookup reads as
|
|
1564
|
+
* `row.includes.customer.includes.address`.
|
|
1565
|
+
*/
|
|
1566
|
+
includes?: TIncludes;
|
|
1363
1567
|
}
|
|
1364
1568
|
/**
|
|
1365
1569
|
* Which data answered the query: `"full"` when the summary buffer is
|
|
@@ -1367,9 +1571,22 @@ interface MindooDBAppQueryRow {
|
|
|
1367
1571
|
* be incomplete), `"full-scan"` when documents were materialized.
|
|
1368
1572
|
*/
|
|
1369
1573
|
type MindooDBAppQueryCoverage = "full" | "rebuilding" | "full-scan";
|
|
1370
|
-
/**
|
|
1371
|
-
|
|
1372
|
-
|
|
1574
|
+
/**
|
|
1575
|
+
* Result of a summary-backed document query.
|
|
1576
|
+
*
|
|
1577
|
+
* Slot types of an `include` clause are not inferred from the query
|
|
1578
|
+
* object; callers who want them pass them explicitly:
|
|
1579
|
+
*
|
|
1580
|
+
* ```typescript
|
|
1581
|
+
* const result = await database.documents.query<{
|
|
1582
|
+
* customer: MindooDBAppQueryRow | null;
|
|
1583
|
+
* lines: MindooDBAppQueryRow[];
|
|
1584
|
+
* }>({ ... });
|
|
1585
|
+
* result.rows[0]?.includes?.lines[0]?.fields.amount;
|
|
1586
|
+
* ```
|
|
1587
|
+
*/
|
|
1588
|
+
interface MindooDBAppQueryResult<TIncludes extends MindooDBAppQueryIncludeSlots = MindooDBAppQueryIncludeSlots> {
|
|
1589
|
+
rows: MindooDBAppQueryRow<TIncludes>[];
|
|
1373
1590
|
/** Number of matching documents before `offset`/`limit` were applied. */
|
|
1374
1591
|
total: number;
|
|
1375
1592
|
coverage: MindooDBAppQueryCoverage;
|
|
@@ -1400,15 +1617,22 @@ interface MindooDBAppDocumentApi {
|
|
|
1400
1617
|
* `query-not-supported` error. A `text` clause requires full-text
|
|
1401
1618
|
* indexing to be enabled for the database, otherwise the query is
|
|
1402
1619
|
* rejected with `fulltext-not-enabled`.
|
|
1620
|
+
*
|
|
1621
|
+
* An `include` clause additionally fetches related documents, from this
|
|
1622
|
+
* or another mapped database; pass the slot types as `TIncludes` to
|
|
1623
|
+
* type `row.includes`.
|
|
1403
1624
|
*/
|
|
1404
|
-
query(query?: MindooDBAppDocumentQuery): Promise<MindooDBAppQueryResult
|
|
1625
|
+
query<TIncludes extends MindooDBAppQueryIncludeSlots = MindooDBAppQueryIncludeSlots>(query?: MindooDBAppDocumentQuery): Promise<MindooDBAppQueryResult<TIncludes>>;
|
|
1405
1626
|
/**
|
|
1406
1627
|
* Live variant of {@link query}: delivers the initial result, then keeps
|
|
1407
1628
|
* watching the database and calls `onResult` again whenever the result
|
|
1408
1629
|
* actually changed (membership, order, or row content). Updates are
|
|
1409
1630
|
* coalesced on the host, so bursts of writes produce a single push.
|
|
1631
|
+
*
|
|
1632
|
+
* With an `include` clause the subscription also watches every related
|
|
1633
|
+
* database, so a change to a joined document pushes a new result too.
|
|
1410
1634
|
*/
|
|
1411
|
-
liveQuery(query: MindooDBAppDocumentQuery, onResult: (result: MindooDBAppQueryResult) => void): Promise<MindooDBAppLiveQuerySubscription>;
|
|
1635
|
+
liveQuery<TIncludes extends MindooDBAppQueryIncludeSlots = MindooDBAppQueryIncludeSlots>(query: MindooDBAppDocumentQuery, onResult: (result: MindooDBAppQueryResult<TIncludes>) => void): Promise<MindooDBAppLiveQuerySubscription>;
|
|
1412
1636
|
/**
|
|
1413
1637
|
* Page through the database's changefeed. Pass the returned `nextCursor`
|
|
1414
1638
|
* back in to resume — this is the primitive for incremental sync and
|
|
@@ -2253,6 +2477,33 @@ interface MindooDBAppStorageApi {
|
|
|
2253
2477
|
prefix?: string;
|
|
2254
2478
|
}): Promise<void>;
|
|
2255
2479
|
}
|
|
2480
|
+
interface MindooDBAppProposeAppInput {
|
|
2481
|
+
/**
|
|
2482
|
+
* Origin of the app to install, or the full `haven-app.json` URL. Haven reads the
|
|
2483
|
+
* definition from there itself.
|
|
2484
|
+
*/
|
|
2485
|
+
url: string;
|
|
2486
|
+
/** Suggested label. The user sees the publisher's own label alongside it. */
|
|
2487
|
+
label?: string;
|
|
2488
|
+
}
|
|
2489
|
+
type MindooDBAppProposeAppResult = {
|
|
2490
|
+
ok: true;
|
|
2491
|
+
/** The app id Haven registered. */
|
|
2492
|
+
appId: string;
|
|
2493
|
+
/** The registration instance id, stable across later updates of this app. */
|
|
2494
|
+
appInstanceId: string;
|
|
2495
|
+
label: string;
|
|
2496
|
+
/**
|
|
2497
|
+
* Non-fatal problems from the install, such as a database that could not be
|
|
2498
|
+
* created. The app is registered; these still need the user's attention.
|
|
2499
|
+
*/
|
|
2500
|
+
warnings: string[];
|
|
2501
|
+
} | {
|
|
2502
|
+
ok: false;
|
|
2503
|
+
/** `declined` — the user said no. `unavailable` — the definition could not be read. */
|
|
2504
|
+
reason: "declined" | "unavailable";
|
|
2505
|
+
message?: string;
|
|
2506
|
+
};
|
|
2256
2507
|
/** Connected session between the running app and the Haven host. */
|
|
2257
2508
|
interface MindooDBAppSession {
|
|
2258
2509
|
/**
|
|
@@ -2323,6 +2574,22 @@ interface MindooDBAppSession {
|
|
|
2323
2574
|
* done.
|
|
2324
2575
|
*/
|
|
2325
2576
|
openViewNavigator(viewId: string, options?: MindooDBAppViewNavigatorOpenOptions): Promise<MindooDBAppViewNavigator>;
|
|
2577
|
+
/**
|
|
2578
|
+
* Ask Haven to install another app from its own origin.
|
|
2579
|
+
*
|
|
2580
|
+
* Requires the registration-level `proposeapps` permission, and even then this
|
|
2581
|
+
* only *asks*: Haven fetches `haven-app.json` from `url` itself, shows the user
|
|
2582
|
+
* the origin, the permissions, the network allowlist and the databases the app
|
|
2583
|
+
* would get, and installs nothing unless they confirm.
|
|
2584
|
+
*
|
|
2585
|
+
* The app passes a URL and nothing else. It cannot supply the definition inline,
|
|
2586
|
+
* choose the tenant, or name a physical database — which is what keeps a proposer
|
|
2587
|
+
* from describing one app and installing another.
|
|
2588
|
+
*
|
|
2589
|
+
* Resolves with `ok: false` when the user declines or the definition could not be
|
|
2590
|
+
* read — ordinary outcomes, not errors.
|
|
2591
|
+
*/
|
|
2592
|
+
proposeApp(input: MindooDBAppProposeAppInput): Promise<MindooDBAppProposeAppResult>;
|
|
2326
2593
|
menus: MindooDBAppMenuApi;
|
|
2327
2594
|
/** Host-owned cross-iframe drag. Iframe-only; copy-only in v1. */
|
|
2328
2595
|
drag: MindooDBAppDragApi;
|
|
@@ -2383,4 +2650,4 @@ interface MindooDBAppBridge {
|
|
|
2383
2650
|
connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
|
|
2384
2651
|
}
|
|
2385
2652
|
|
|
2386
|
-
export { type
|
|
2653
|
+
export { type MindooDBAppBridgeStreamCloseRequest as $, type MindooDBAppAutomergeChangesPatch as A, type MindooDBAppAutomergeChangesSince as B, type MindooDBAppAutomergeGetOptions as C, type MindooDBAppAutomergePatchResult as D, type MindooDBAppAutomergeSnapshot as E, type MindooDBAppBridgeBeforeCloseAck as F, type MindooDBAppBridgeBeforeCloseMessage as G, type MindooDBAppBridgeConnectMessage as H, type MindooDBAppBridgeConnectOptions as I, type MindooDBAppBridgeConnectedMessage as J, type MindooDBAppBridgeDragDropMessage as K, type MindooDBAppBridgeDragLeaveMessage as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeDragOverMessage as N, type MindooDBAppBridgeErrorPayload as O, type MindooDBAppBridgeHandshakeErrorMessage as P, type MindooDBAppBridgeLocaleChangedMessage as Q, type MindooDBAppBridgePortMessage as R, type MindooDBAppBridgeQueryResultMessage as S, type MindooDBAppBridgeRpcError as T, type MindooDBAppBridgeRpcMessage as U, type MindooDBAppBridgeRpcRequest as V, type MindooDBAppBridgeRpcSuccess as W, type MindooDBAppBridgeShortcutInvokedMessage as X, type MindooDBAppBridgeShortcutsChangedMessage as Y, type MindooDBAppBridgeStreamAbortRequest as Z, type MindooDBAppBridgeStreamAck as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppHistoryQuery as a$, type MindooDBAppBridgeStreamError as a0, type MindooDBAppBridgeStreamMessage as a1, type MindooDBAppBridgeStreamOpenResult as a2, type MindooDBAppBridgeStreamReadRequest as a3, type MindooDBAppBridgeStreamWriteRequest as a4, type MindooDBAppBridgeThemeChangedMessage as a5, type MindooDBAppBridgeUiPreferencesChangedMessage as a6, type MindooDBAppBridgeViewChangedMessage as a7, type MindooDBAppBridgeViewportChangedMessage as a8, type MindooDBAppCapability as a9, type MindooDBAppDirectoryEntry as aA, type MindooDBAppDocumentApi as aB, type MindooDBAppDocumentHeadCursorResult as aC, type MindooDBAppDocumentHistoryEntry as aD, type MindooDBAppDocumentListQuery as aE, type MindooDBAppDocumentListResult as aF, type MindooDBAppDocumentQuery as aG, type MindooDBAppDocumentRevisionId as aH, type MindooDBAppDocumentScanPreset as aI, type MindooDBAppDocumentSummary as aJ, type MindooDBAppDragApi as aK, type MindooDBAppDragCancelReason as aL, type MindooDBAppDragDropEvent as aM, type MindooDBAppDragEffect as aN, type MindooDBAppDragHoverResult as aO, type MindooDBAppDragOffer as aP, type MindooDBAppDragOverEvent as aQ, type MindooDBAppDragPointer as aR, type MindooDBAppDragProfile as aS, type MindooDBAppEntryAttachmentRef as aT, type MindooDBAppEntryProvenance as aU, type MindooDBAppExtractDocumentTextInput as aV, type MindooDBAppExtractDocumentTextResult as aW, type MindooDBAppExtractTextFormat as aX, type MindooDBAppExtractionSetup as aY, type MindooDBAppFulltextSetup as aZ, type MindooDBAppHistoricalDocument as a_, type MindooDBAppConfiguredViewCategorizationStyle as aa, type MindooDBAppConfiguredViewColumn as ab, type MindooDBAppConfiguredViewColumnRole as ac, type MindooDBAppConfiguredViewExpressionMode as ad, type MindooDBAppConfiguredViewFieldExpression as ae, type MindooDBAppConfiguredViewFilterDefinition as af, type MindooDBAppConfiguredViewFilterMode as ag, type MindooDBAppConfiguredViewFilterRule as ah, type MindooDBAppConfiguredViewFormulaExpression as ai, type MindooDBAppConfiguredViewFormulaFilterDefinition as aj, type MindooDBAppConfiguredViewPreviewMode as ak, type MindooDBAppConfiguredViewRuleFilterDefinition as al, type MindooDBAppConfiguredViewRuleMatchMode as am, type MindooDBAppConfiguredViewRuleOperator as an, type MindooDBAppConfiguredViewValueExpression as ao, type MindooDBAppCreateDocumentInput as ap, type MindooDBAppCreateKeyInfo as aq, type MindooDBAppCreateViewInput as ar, type MindooDBAppCreateViewNavigatorInput as as, type MindooDBAppDatabaseInfo as at, type MindooDBAppDefinition as au, type MindooDBAppDefinitionDatabase as av, type MindooDBAppDefinitionPermission as aw, type MindooDBAppDefinitionRegistrationPermission as ax, type MindooDBAppDefinitionValidation as ay, type MindooDBAppDirectoryApi as az, type MindooDBAppDragStartInput as b, type MindooDBAppSealedChannelRequestInput as b$, type MindooDBAppHostTheme as b0, type MindooDBAppIdentityApi as b1, type MindooDBAppInaccessibleDocument as b2, type MindooDBAppInaccessibleDocumentListQuery as b3, type MindooDBAppInaccessibleDocumentListResult as b4, type MindooDBAppJsonListDeletePatch as b5, type MindooDBAppJsonListInsertPatch as b6, type MindooDBAppJsonPatch as b7, type MindooDBAppJsonSetPatch as b8, type MindooDBAppJsonTextMarkPatch as b9, type MindooDBAppQuerySortKey as bA, type MindooDBAppQueryTextClause as bB, type MindooDBAppReadableAttachmentStream as bC, type MindooDBAppRecipientOptions as bD, type MindooDBAppResolvedViewDefinition as bE, type MindooDBAppResolvedViewSource as bF, type MindooDBAppRevisionPhase as bG, type MindooDBAppRevisionVerification as bH, type MindooDBAppRichTextBlockSpan as bI, type MindooDBAppRichTextGetOptions as bJ, type MindooDBAppRichTextImmutableString as bK, type MindooDBAppRichTextMarkRange as bL, type MindooDBAppRichTextMaterializeValue as bM, type MindooDBAppRichTextPatch as bN, type MindooDBAppRichTextScalar as bO, type MindooDBAppRichTextSpliceStep as bP, type MindooDBAppRichTextStep as bQ, type MindooDBAppRichTextStepPatch as bR, type MindooDBAppRichTextTextSpan as bS, type MindooDBAppRuntime as bT, type MindooDBAppScanAttachmentOptions as bU, type MindooDBAppScanAttachmentResult as bV, type MindooDBAppScopedDocId as bW, type MindooDBAppScopedDocumentSummary as bX, type MindooDBAppSealIntent as bY, type MindooDBAppSealedChannelOpenInput as bZ, type MindooDBAppSealedChannelOpenResult as b_, type MindooDBAppJsonTextSplicePatch as ba, type MindooDBAppJsonTextUnmarkPatch as bb, type MindooDBAppJsonUnsetPatch as bc, type MindooDBAppLaunchContext as bd, type MindooDBAppLiveQuerySubscription as be, type MindooDBAppMenuAnchor as bf, type MindooDBAppMenuApi as bg, type MindooDBAppMenuCommandItem as bh, type MindooDBAppMenuDismissReason as bi, type MindooDBAppMenuDismissedResult as bj, type MindooDBAppMenuItem as bk, type MindooDBAppMenuKind as bl, type MindooDBAppMenuPlacement as bm, type MindooDBAppMenuPointAnchor as bn, type MindooDBAppMenuRect as bo, type MindooDBAppMenuRectAnchor as bp, type MindooDBAppMenuSelectionResult as bq, type MindooDBAppMenuSeparatorItem as br, type MindooDBAppProposeAppInput as bs, type MindooDBAppProposeAppResult as bt, type MindooDBAppQueryCoverage as bu, type MindooDBAppQueryInclude as bv, type MindooDBAppQueryIncludeCardinality as bw, type MindooDBAppQueryIncludeSlots as bx, type MindooDBAppQueryResult as by, type MindooDBAppQueryRow as bz, type MindooDBAppDragStartResult as c, type MindooDBAppSession as c0, type MindooDBAppShowMenuInput as c1, type MindooDBAppShowMenuResult as c2, type MindooDBAppSignPreview as c3, type MindooDBAppSignPreviewScope as c4, type MindooDBAppSignStatementInput as c5, type MindooDBAppSignStatementResult as c6, type MindooDBAppStorageApi as c7, type MindooDBAppTextEdit as c8, type MindooDBAppTextPatch as c9, type MindooDBAppThemeMode as ca, type MindooDBAppTimestampApi as cb, type MindooDBAppTimestampInput as cc, type MindooDBAppTimestampProvider as cd, type MindooDBAppTimestampResult as ce, type MindooDBAppUiPreferences as cf, type MindooDBAppUpdateDocumentInput as cg, type MindooDBAppViewCursorDocumentListResult as ch, type MindooDBAppViewCursorResult as ci, type MindooDBAppViewEntry as cj, type MindooDBAppViewEntryKind as ck, type MindooDBAppViewNavigator as cl, type MindooDBAppViewNavigatorExpansionState as cm, type MindooDBAppViewNavigatorOpenOptions as cn, type MindooDBAppViewNavigatorPageOptions as co, type MindooDBAppViewNavigatorPageResult as cp, type MindooDBAppViewNavigatorRangeQuery as cq, type MindooDBAppViewNavigatorSelectionState as cr, type MindooDBAppViewUpdateStats as cs, type MindooDBAppViewport as ct, type MindooDBAppWellKnownDragType as cu, type MindooDBAppWritableAttachmentStream as cv, resolveMindooDBAppDefinitionUrl as cw, validateMindooDBAppDefinition as cx, type MindooDBAppDragPreview as d, type MindooDBAppBridge as e, type MindooDBAppHostShortcutBinding as f, type MindooDBAppHostShortcutAction as g, type MindooDBAppHostingMode as h, type MindooDBAppDatabase as i, type MindooDBAppDocument as j, type MindooDBAppRichTextSpan as k, type MindooDBAppRichTextSnapshot as l, MINDOODB_APP_DEFINITION_FILE_NAME as m, MINDOODB_APP_DEFINITION_FORMAT as n, MINDOODB_APP_DEFINITION_PERMISSIONS as o, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as p, MINDOODB_APP_DEFINITION_VERSION as q, MINDOODB_APP_SEAL_SIGNING_DOMAIN as r, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as s, type MindooDBAppAccessDecision as t, type MindooDBAppAccessTier as u, type MindooDBAppAttachmentApi as v, type MindooDBAppAttachmentChunk as w, type MindooDBAppAttachmentInfo as x, type MindooDBAppAttachmentPreviewOptions as y, type MindooDBAppAttachmentPreviewSession as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindoodb-app-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.13.0"
|
|
6
6
|
},
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"mindoodb-view-language": "0.0.
|
|
44
|
+
"mindoodb-view-language": "0.0.18"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@automerge/automerge": "^3.3.2",
|
|
48
|
-
"mindoodb": ">=0.0.
|
|
48
|
+
"mindoodb": ">=0.0.64"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@automerge/automerge": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@automerge/automerge": "^3.3.2",
|
|
60
|
-
"mindoodb": "^0.0.
|
|
60
|
+
"mindoodb": "^0.0.64",
|
|
61
61
|
"@types/node": "25.5.0",
|
|
62
62
|
"jsdom": "^29.0.1",
|
|
63
63
|
"tsup": "^8.5.1",
|