75bb3a904d
# Intoduction Closes https://github.com/twentyhq/core-team-issues/issues/2289 In this PR all the clients becomes available under `twenty-sdk/clients`, this is a breaking change but generated was too vague and thats still the now or never best timing to do so ## CoreClient The core client is now shipped with a default stub empty class for both the schema and the client Allowing its import, will still raises typescript errors when consumed as generated but not generated ## MetadataClient The metadata client is workspace agnostic, it's now generated and commited in the repo. added a ci that prevents any schema desync due to twenty-server additions Same behavior than for the twenty-front generated graphql schema
12 lines
426 B
TypeScript
12 lines
426 B
TypeScript
import { defineField, FieldType } from 'twenty-sdk';
|
|
import { EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER } from 'src/objects/example-object';
|
|
|
|
export default defineField({
|
|
objectUniversalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
|
|
universalIdentifier: '770d32c2-cf12-4ab2-b66d-73f92dc239b5',
|
|
type: FieldType.NUMBER,
|
|
name: 'priority',
|
|
label: 'Priority',
|
|
description: 'Priority level for the example item (1-10)',
|
|
});
|