@teable/app 7.0.0 → 7.0.1
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/protocol.d.ts +27 -0
- package/package.json +1 -1
package/dist/protocol.d.ts
CHANGED
|
@@ -639,6 +639,33 @@ export declare const DEPLOY_PARTS: {
|
|
|
639
639
|
* another app: they would call that app's API, not this one's.
|
|
640
640
|
*/
|
|
641
641
|
export declare const PAGES_APP_META = "teable-app";
|
|
642
|
+
/**
|
|
643
|
+
* An app's preview (ADR 0022): a version deployed on a copy of the live
|
|
644
|
+
* database, not live, with its pages at a host of their own. `GET
|
|
645
|
+
* {APPS_PATH}/:appId/preview` answers `PreviewResponse`; `POST` takes what a
|
|
646
|
+
* version's deploy takes (`DEPLOY_PARTS`, `DEPLOY_HEADERS`) and answers the
|
|
647
|
+
* new preview (201), replacing the one before with a new copy of the live
|
|
648
|
+
* data; `DELETE` ends it; `POST …/preview/publish` deploys it as the next
|
|
649
|
+
* version (`DeployResponse`). A new live version ends it either way.
|
|
650
|
+
*/
|
|
651
|
+
export interface PreviewInfo {
|
|
652
|
+
/** When it was deployed, in epoch milliseconds. */
|
|
653
|
+
createdAt: number;
|
|
654
|
+
/** The user who deployed it. */
|
|
655
|
+
deployedBy: string | null;
|
|
656
|
+
/** The git commit its bundle was built from. */
|
|
657
|
+
commit: string | null;
|
|
658
|
+
/** That commit's subject. */
|
|
659
|
+
message: string | null;
|
|
660
|
+
/** The live version whose data it started from; null when none was live. */
|
|
661
|
+
basedOn: number | null;
|
|
662
|
+
manifest: AppManifest;
|
|
663
|
+
/** Where its pages are, for those who may publish the app; null without pages. */
|
|
664
|
+
pagesUrl: string | null;
|
|
665
|
+
}
|
|
666
|
+
export interface PreviewResponse {
|
|
667
|
+
preview: PreviewInfo | null;
|
|
668
|
+
}
|
|
642
669
|
/**
|
|
643
670
|
* `POST {APPS_PATH}/:appId/rollback` with `{ "to": <version> }` deploys that
|
|
644
671
|
* version's bundle again, as a new version. Its answer (201) is a deploy's,
|