Skip to content

Commit e3a3a91

Browse files
committed
🐛 fix missing relates to in contact validation
1 parent 962d2c8 commit e3a3a91

File tree

4 files changed

+9
-41
lines changed

4 files changed

+9
-41
lines changed

src/schemas/calendar-events.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/schemas/contacts.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ import { IntegrationEntityType } from '../models/integration-entity.model';
6666
// },
6767
// };
6868

69+
const integrationEntitySchema = z.object({
70+
id: z.string(),
71+
type: z.nativeEnum(IntegrationEntityType),
72+
source: z.string(),
73+
label: z.string().optional(),
74+
logId: z.string().optional(),
75+
});
76+
6977
export const contactSchema = z.object({
7078
id: z.string(),
7179
name: z.string().nullable(),
@@ -83,6 +91,7 @@ export const contactSchema = z.object({
8391
}),
8492
),
8593
type: z.nativeEnum(IntegrationEntityType).optional(),
94+
relatesTo: z.array(integrationEntitySchema).optional(),
8695
});
8796

8897
export const contactsGetSchema = z.array(contactSchema);

src/schemas/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from './calendar-events';
21
export * from './contacts';

src/schemas/schema.model.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)