06bdb5ad6a
# Introduction Adding agent in the manifest, required for twenty standard app extraction out of twenty-server
42 lines
861 B
TypeScript
42 lines
861 B
TypeScript
import { type Manifest } from 'twenty-shared/application';
|
|
|
|
export const buildBaseManifest = ({
|
|
appId,
|
|
roleId,
|
|
overrides,
|
|
}: {
|
|
appId: string;
|
|
roleId: string;
|
|
overrides?: Partial<Manifest>;
|
|
}): Manifest => ({
|
|
application: {
|
|
universalIdentifier: appId,
|
|
defaultRoleUniversalIdentifier: roleId,
|
|
displayName: 'Test Application',
|
|
description: 'Test application',
|
|
icon: 'IconTestPipe',
|
|
applicationVariables: {},
|
|
packageJsonChecksum: null,
|
|
yarnLockChecksum: null,
|
|
apiClientChecksum: null,
|
|
},
|
|
roles: [
|
|
{
|
|
universalIdentifier: roleId,
|
|
label: 'Test Role',
|
|
description: 'A test role',
|
|
},
|
|
],
|
|
skills: [],
|
|
agents: [],
|
|
objects: [],
|
|
fields: [],
|
|
logicFunctions: [],
|
|
frontComponents: [],
|
|
publicAssets: [],
|
|
views: [],
|
|
navigationMenuItems: [],
|
|
pageLayouts: [],
|
|
...overrides,
|
|
});
|