@teable/app 7.0.7 → 7.0.9
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/build/cli.js +2 -2
- package/dist/build/index.js +2 -2
- package/dist/chunks/{G4M5LS7T.js → 2W5UWORA.js} +2 -2
- package/dist/chunks/{ZYCZJSHS.js → 4HDG5ILC.js} +2 -0
- package/dist/chunks/{H6R7E3GY.js → QMKFUKJ4.js} +1 -1
- package/dist/chunks/{QMWZJWS3.js → TKDXT3ZT.js} +1 -1
- package/dist/chunks/{55YHKIYV.js → ZQI6BF6U.js} +1 -1
- package/dist/client.js +2 -2
- package/dist/dev/host.js +1 -1
- package/dist/index.js +3 -3
- package/dist/protocol.d.ts +20 -0
- package/dist/protocol.js +3 -1
- package/dist/schema.js +2 -2
- package/dist/testing.js +4 -4
- package/dist/worker.js +2 -2
- package/package.json +2 -3
package/dist/build/cli.js
CHANGED
package/dist/build/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describeTables
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TKDXT3ZT.js";
|
|
4
4
|
import {
|
|
5
5
|
CAPABILITIES,
|
|
6
6
|
PROTOCOL_VERSION,
|
|
7
7
|
admit,
|
|
8
8
|
isPageAccess
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./4HDG5ILC.js";
|
|
10
10
|
|
|
11
11
|
// src/server/errors.ts
|
|
12
12
|
import { z } from "zod";
|
|
@@ -263,6 +263,7 @@ var BRIDGE = String.raw`function (window, origins) {
|
|
|
263
263
|
}`;
|
|
264
264
|
var APPS_PATH = "/api/v4/apps";
|
|
265
265
|
var FILE_NAME_HEADER = "X-File-Name";
|
|
266
|
+
var MAX_FILE_BYTES = 100 * 1024 * 1024;
|
|
266
267
|
var PREVIEW_QUERY = "preview";
|
|
267
268
|
function fileKeyPath(key) {
|
|
268
269
|
const slash = key.indexOf("/");
|
|
@@ -365,6 +366,7 @@ export {
|
|
|
365
366
|
pagesBridge,
|
|
366
367
|
APPS_PATH,
|
|
367
368
|
FILE_NAME_HEADER,
|
|
369
|
+
MAX_FILE_BYTES,
|
|
368
370
|
PREVIEW_QUERY,
|
|
369
371
|
fileKeyPath,
|
|
370
372
|
DEPLOY_HEADERS,
|
package/dist/client.js
CHANGED
package/dist/dev/host.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApp,
|
|
3
3
|
fail
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/2W5UWORA.js";
|
|
5
|
+
import "./chunks/TKDXT3ZT.js";
|
|
6
|
+
import "./chunks/4HDG5ILC.js";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
import { z } from "zod";
|
package/dist/protocol.d.ts
CHANGED
|
@@ -589,6 +589,26 @@ export type RealtimeMessage = {
|
|
|
589
589
|
export declare const APPS_PATH = "/api/v4/apps";
|
|
590
590
|
/** The header that names an uploaded file (URI-encoded); the body is its bytes. */
|
|
591
591
|
export declare const FILE_NAME_HEADER = "X-File-Name";
|
|
592
|
+
/** At most this many bytes a file of an app (100 MiB), however it is stored: uploaded, or by a task. */
|
|
593
|
+
export declare const MAX_FILE_BYTES: number;
|
|
594
|
+
/**
|
|
595
|
+
* An app's files, for those who may publish it (ADR 0010): `GET
|
|
596
|
+
* {APPS_PATH}/:appId/files` lists a page of them, a thousand at most
|
|
597
|
+
* (`?limit=` asks for fewer), and the next page after `?cursor=`, the one
|
|
598
|
+
* the last page gave. `DELETE {APPS_PATH}/:appId/files/:id/:name` deletes
|
|
599
|
+
* one: nothing opens it after, the app's rows and its public links
|
|
600
|
+
* included. The preview and the live version share them (ADR 0022).
|
|
601
|
+
*/
|
|
602
|
+
export interface AppFiles {
|
|
603
|
+
/** In the order they are stored in, by key, which is no order people know: sort them to show them. */
|
|
604
|
+
files: AppFile[];
|
|
605
|
+
/** Where the next page starts; null after the last. */
|
|
606
|
+
cursor: string | null;
|
|
607
|
+
}
|
|
608
|
+
/** A file of an app: what its rows keep of it, and when it was uploaded (epoch milliseconds). */
|
|
609
|
+
export interface AppFile extends Attachment {
|
|
610
|
+
uploadedAt: number;
|
|
611
|
+
}
|
|
592
612
|
/**
|
|
593
613
|
* The query parameter, set to `1`, by which a request on the platform's
|
|
594
614
|
* hosts names the app's preview (ADR 0022): the builder's views call it so,
|
package/dist/protocol.js
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
FILE_NAME_HEADER,
|
|
15
15
|
GITHUB_CHANNEL,
|
|
16
16
|
GITHUB_CONFLICT_BRANCH,
|
|
17
|
+
MAX_FILE_BYTES,
|
|
17
18
|
PAGES_APP_META,
|
|
18
19
|
PREVIEW_QUERY,
|
|
19
20
|
PROTOCOL_VERSION,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
secretPlaceholder,
|
|
43
44
|
signedInAsAsked,
|
|
44
45
|
spaceRoleOf
|
|
45
|
-
} from "./chunks/
|
|
46
|
+
} from "./chunks/4HDG5ILC.js";
|
|
46
47
|
export {
|
|
47
48
|
APPS_PATH,
|
|
48
49
|
APP_COMPATIBILITY_DATE,
|
|
@@ -59,6 +60,7 @@ export {
|
|
|
59
60
|
FILE_NAME_HEADER,
|
|
60
61
|
GITHUB_CHANNEL,
|
|
61
62
|
GITHUB_CONFLICT_BRANCH,
|
|
63
|
+
MAX_FILE_BYTES,
|
|
62
64
|
PAGES_APP_META,
|
|
63
65
|
PREVIEW_QUERY,
|
|
64
66
|
PROTOCOL_VERSION,
|
package/dist/schema.js
CHANGED
package/dist/testing.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
methodName
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import "./chunks/
|
|
3
|
+
} from "./chunks/2W5UWORA.js";
|
|
4
|
+
import "./chunks/TKDXT3ZT.js";
|
|
5
5
|
import {
|
|
6
6
|
MethodError
|
|
7
|
-
} from "./chunks/
|
|
7
|
+
} from "./chunks/ZQI6BF6U.js";
|
|
8
8
|
import {
|
|
9
9
|
ERROR_STATUS
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/4HDG5ILC.js";
|
|
11
11
|
|
|
12
12
|
// src/testing.ts
|
|
13
13
|
var OWNER = { kind: "user", userId: "test-owner", role: "owner", via: "api" };
|
package/dist/worker.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teable/app",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
4
4
|
"description": "Write a Teable app as a Drizzle schema plus methods",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"bun": ">=1.2"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
|
-
"access": "public"
|
|
58
|
-
"provenance": true
|
|
57
|
+
"access": "public"
|
|
59
58
|
},
|
|
60
59
|
"dependencies": {
|
|
61
60
|
"drizzle-orm": "0.45.4",
|