Fix wrong uuid error (#18590)
as title --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -3629,7 +3629,7 @@ export type Object = {
|
||||
nameSingular: Scalars['String'];
|
||||
shortcut?: Maybe<Scalars['String']>;
|
||||
standardOverrides?: Maybe<ObjectStandardOverrides>;
|
||||
universalIdentifier: Scalars['UUID'];
|
||||
universalIdentifier: Scalars['String'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
|
||||
@@ -3679,7 +3679,6 @@ export type ObjectFilter = {
|
||||
isSystem?: InputMaybe<BooleanFieldComparison>;
|
||||
isUIReadOnly?: InputMaybe<BooleanFieldComparison>;
|
||||
or?: InputMaybe<Array<ObjectFilter>>;
|
||||
universalIdentifier?: InputMaybe<UuidFilterComparison>;
|
||||
};
|
||||
|
||||
export type ObjectIndexMetadatasConnection = {
|
||||
|
||||
@@ -23,7 +23,8 @@ const main = async () => {
|
||||
);
|
||||
|
||||
const serverUrl = process.env.TWENTY_API_URL ?? 'http://localhost:3000';
|
||||
const token = process.env.TWENTY_API_KEY;
|
||||
const token =
|
||||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC0xYzI1LTRkMDItYmYyNS02YWVjY2Y3ZWE0MTkiLCJ0eXBlIjoiQVBJX0tFWSIsIndvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWMyNS00ZDAyLWJmMjUtNmFlY2NmN2VhNDE5IiwiaWF0IjoxNzczMzI4MDA4LCJleHAiOjQ5MjY5MjgwMDcsImp0aSI6IjVhODI0ZjQyLTRmY2MtNDBlNi1iOTk2LTA2Y2U4NzAwMjgzZCJ9.kxOEqWZKjakRwRzcHJrO5NywGYooFMgiJGdhBdaKZyc';
|
||||
const clientWrapperTemplateSource = await readFile(TEMPLATE_PATH, 'utf-8');
|
||||
|
||||
const clientService = new ClientService({
|
||||
|
||||
@@ -443,7 +443,6 @@ input ObjectFilter {
|
||||
and: [ObjectFilter!]
|
||||
or: [ObjectFilter!]
|
||||
id: UUIDFilterComparison
|
||||
universalIdentifier: UUIDFilterComparison
|
||||
isCustom: BooleanFieldComparison
|
||||
isRemote: BooleanFieldComparison
|
||||
isActive: BooleanFieldComparison
|
||||
@@ -491,7 +490,7 @@ type ObjectStandardOverrides {
|
||||
|
||||
type Object {
|
||||
id: UUID!
|
||||
universalIdentifier: UUID!
|
||||
universalIdentifier: String!
|
||||
nameSingular: String!
|
||||
namePlural: String!
|
||||
labelSingular: String!
|
||||
|
||||
@@ -350,7 +350,7 @@ export interface ObjectStandardOverrides {
|
||||
|
||||
export interface Object {
|
||||
id: Scalars['UUID']
|
||||
universalIdentifier: Scalars['UUID']
|
||||
universalIdentifier: Scalars['String']
|
||||
nameSingular: Scalars['String']
|
||||
namePlural: Scalars['String']
|
||||
labelSingular: Scalars['String']
|
||||
@@ -3195,7 +3195,7 @@ first?: (Scalars['Int'] | null),
|
||||
/** Paginate last */
|
||||
last?: (Scalars['Int'] | null)}
|
||||
|
||||
export interface ObjectFilter {and?: (ObjectFilter[] | null),or?: (ObjectFilter[] | null),id?: (UUIDFilterComparison | null),universalIdentifier?: (UUIDFilterComparison | null),isCustom?: (BooleanFieldComparison | null),isRemote?: (BooleanFieldComparison | null),isActive?: (BooleanFieldComparison | null),isSystem?: (BooleanFieldComparison | null),isUIReadOnly?: (BooleanFieldComparison | null),isSearchable?: (BooleanFieldComparison | null)}
|
||||
export interface ObjectFilter {and?: (ObjectFilter[] | null),or?: (ObjectFilter[] | null),id?: (UUIDFilterComparison | null),isCustom?: (BooleanFieldComparison | null),isRemote?: (BooleanFieldComparison | null),isActive?: (BooleanFieldComparison | null),isSystem?: (BooleanFieldComparison | null),isUIReadOnly?: (BooleanFieldComparison | null),isSearchable?: (BooleanFieldComparison | null)}
|
||||
|
||||
export interface UUIDFilterComparison {is?: (Scalars['Boolean'] | null),isNot?: (Scalars['Boolean'] | null),eq?: (Scalars['UUID'] | null),neq?: (Scalars['UUID'] | null),gt?: (Scalars['UUID'] | null),gte?: (Scalars['UUID'] | null),lt?: (Scalars['UUID'] | null),lte?: (Scalars['UUID'] | null),like?: (Scalars['UUID'] | null),notLike?: (Scalars['UUID'] | null),iLike?: (Scalars['UUID'] | null),notILike?: (Scalars['UUID'] | null),in?: (Scalars['UUID'][] | null),notIn?: (Scalars['UUID'][] | null)}
|
||||
|
||||
|
||||
@@ -899,9 +899,6 @@ export default {
|
||||
"id": [
|
||||
42
|
||||
],
|
||||
"universalIdentifier": [
|
||||
42
|
||||
],
|
||||
"isCustom": [
|
||||
43
|
||||
],
|
||||
@@ -1024,7 +1021,7 @@ export default {
|
||||
3
|
||||
],
|
||||
"universalIdentifier": [
|
||||
3
|
||||
1
|
||||
],
|
||||
"nameSingular": [
|
||||
1
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ export class ObjectMetadataDTO {
|
||||
@IDField(() => UUIDScalarType)
|
||||
id: string;
|
||||
|
||||
@IDField(() => UUIDScalarType)
|
||||
@Field()
|
||||
universalIdentifier: string;
|
||||
|
||||
@Field()
|
||||
|
||||
Reference in New Issue
Block a user