c3781e87cc
## Sync page layouts, tabs, and widgets Adds the ability for SDK applications to synchronize `pageLayout`, `pageLayoutTab`, and `pageLayoutWidget` entities, following the same pattern established in #18003 for views and navigation menu items. ### Changes **`twenty-shared`** - New `PageLayoutManifest`, `PageLayoutTabManifest`, and `PageLayoutWidgetManifest` types with a hierarchical structure (page layout → tabs → widgets) - Added `pageLayouts: PageLayoutManifest[]` to the `Manifest` type **`twenty-sdk`** - New `definePageLayout()` SDK function with validation for universalIdentifier, name, and nested tabs/widgets - Wired into the manifest extraction and build pipeline (`DefinePageLayout` target function, `PageLayouts` entity key) - Exported from the SDK entry point **`twenty-server`** - Added `pageLayout`, `pageLayoutTab`, `pageLayoutWidget` to `APPLICATION_MANIFEST_METADATA_NAMES` - New conversion utilities: manifest → universal flat entity for all three entity types - Updated `computeApplicationManifestAllUniversalFlatEntity
59 lines
2.0 KiB
TypeScript
59 lines
2.0 KiB
TypeScript
/*
|
|
* _____ _
|
|
*|_ _|_ _____ _ __ | |_ _ _
|
|
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
|
|
* | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden
|
|
* |_| \_/\_/ \___|_| |_|\__|\__, |
|
|
* |___/
|
|
*/
|
|
|
|
export type {
|
|
ApplicationMarketplaceData,
|
|
ApplicationManifest,
|
|
} from './applicationType';
|
|
export type { ApplicationVariables } from './applicationVariablesType';
|
|
export type { AssetManifest } from './assetManifestType';
|
|
export { ASSETS_DIR } from './constants/AssetDirectory';
|
|
export { DEFAULT_API_KEY_NAME } from './constants/DefaultApiKeyName';
|
|
export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';
|
|
export { GENERATED_DIR } from './constants/GeneratedDirectory';
|
|
export { NODE_ESM_CJS_BANNER } from './constants/NodeEsmCjsBanner';
|
|
export { OUTPUT_DIR } from './constants/OutputDirectory';
|
|
export { SyncableEntity } from './enums/syncable-entities.enum';
|
|
export type {
|
|
RegularFieldManifest,
|
|
RelationFieldManifest,
|
|
FieldManifest,
|
|
} from './fieldManifestType';
|
|
export type { FrontComponentManifest } from './frontComponentManifestType';
|
|
export type {
|
|
LogicFunctionManifest,
|
|
CronTriggerSettings,
|
|
DatabaseEventTriggerSettings,
|
|
HttpRouteTriggerSettings,
|
|
} from './logicFunctionManifestType';
|
|
export type { Manifest } from './manifestType';
|
|
export type { NavigationMenuItemManifest } from './navigationMenuItemManifestType';
|
|
export type { ObjectFieldManifest } from './objectFieldManifest.type';
|
|
export type { ObjectManifest } from './objectManifestType';
|
|
export type {
|
|
PageLayoutWidgetManifest,
|
|
PageLayoutTabManifest,
|
|
PageLayoutManifest,
|
|
} from './pageLayoutManifestType';
|
|
export type {
|
|
ObjectPermissionManifest,
|
|
FieldPermissionManifest,
|
|
RoleManifest,
|
|
} from './roleManifestType';
|
|
export type { SyncableEntityOptions } from './syncableEntityOptionsType';
|
|
export type {
|
|
ViewManifestFilterValue,
|
|
ViewFieldManifest,
|
|
ViewFilterManifest,
|
|
ViewFilterGroupManifest,
|
|
ViewGroupManifest,
|
|
ViewFieldGroupManifest,
|
|
ViewManifest,
|
|
} from './viewManifestType';
|