twenty-sdk 0.0.3-alpha → 0.0.4

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.
@@ -9,6 +9,6 @@ export type ApplicationConfig = SyncableEntityOptions & {
9
9
  displayName?: string;
10
10
  description?: string;
11
11
  icon?: string;
12
- applicationVariables: Record<string, ApplicationVariable>;
12
+ applicationVariables?: Record<string, ApplicationVariable>;
13
13
  };
14
14
  export {};
@@ -0,0 +1,10 @@
1
+ export declare abstract class BaseObjectMetadata {
2
+ id: string;
3
+ name: string;
4
+ createdBy: string;
5
+ position: number;
6
+ searchVector: string | null;
7
+ createdAt: string;
8
+ updatedAt: string;
9
+ deletedAt: string | null;
10
+ }
@@ -0,0 +1 @@
1
+ export { FieldMetadataType } from 'twenty-shared/types';
@@ -0,0 +1,15 @@
1
+ import { FieldMetadataType, FieldMetadataSettings, FieldMetadataOptions, FieldMetadataDefaultValue } from 'twenty-shared/types';
2
+ import { SyncableEntityOptions } from './syncable-entity-options.type';
3
+
4
+ type FieldOptions<T extends FieldMetadataType = Exclude<FieldMetadataType, FieldMetadataType.RELATION>> = SyncableEntityOptions & {
5
+ type: T;
6
+ label: string;
7
+ description?: string;
8
+ icon?: string;
9
+ defaultValue?: FieldMetadataDefaultValue<T>;
10
+ options?: FieldMetadataOptions<T>;
11
+ settings?: FieldMetadataSettings<T>;
12
+ isNullable?: boolean;
13
+ };
14
+ export declare const FieldMetadata: <T extends FieldMetadataType>(_: FieldOptions<T>) => PropertyDecorator;
15
+ export {};
@@ -1,4 +1,7 @@
1
- export { ObjectMetadata } from './decorators/object-metadata.decorator';
2
- export type { ApplicationConfig } from './types/application-config';
3
- export type { ServerlessFunctionConfig } from './types/serverless-function-config';
4
- export type { SyncableEntityOptions } from './types/syncable-entity-options.type';
1
+ export type { ApplicationConfig } from './application-config';
2
+ export { BaseObjectMetadata } from './base-object-metadata';
3
+ export { FieldMetadataType } from './field-metadata-type';
4
+ export { FieldMetadata } from './field-metadata.decorator';
5
+ export { ObjectMetadata } from './object-metadata.decorator';
6
+ export type { ServerlessFunctionConfig } from './serverless-function-config';
7
+ export type { SyncableEntityOptions } from './syncable-entity-options.type';
@@ -1,4 +1,4 @@
1
- import { SyncableEntityOptions } from '../types/syncable-entity-options.type';
1
+ import { SyncableEntityOptions } from './syncable-entity-options.type';
2
2
 
3
3
  type ObjectMetadataOptions = SyncableEntityOptions & {
4
4
  nameSingular: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty-sdk",
3
- "version": "0.0.3-alpha",
3
+ "version": "0.0.4",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",