-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: created by email calendar (#6536)
This PR is a followup of #6324 to add support of EMAIL and CALENDAR source for the created by composite field.
- Loading branch information
Showing
20 changed files
with
377 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/typeorm/common/PickKeysByType.d.ts b/node_modules/typeorm/common/PickKeysByType.d.ts | ||
index 55ad347..1a8a184 100644 | ||
--- a/common/PickKeysByType.d.ts | ||
+++ b/common/PickKeysByType.d.ts | ||
@@ -1,6 +1,6 @@ | ||
/** | ||
* Pick only the keys that match the Type `U` | ||
*/ | ||
-export type PickKeysByType<T, U> = string & keyof { | ||
- [P in keyof T as T[P] extends U ? P : never]: T[P]; | ||
-}; | ||
+export type PickKeysByType<T, U> = string & { | ||
+ [P in keyof T]: Exclude<T[P], null> extends U ? P : never; | ||
+}[keyof T]; |
4 changes: 0 additions & 4 deletions
4
...ges/twenty-server/src/engine/object-metadata-repository/metadata-to-repository.mapping.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
import { BlocklistRepository } from 'src/modules/blocklist/repositories/blocklist.repository'; | ||
import { CompanyRepository } from 'src/modules/company/repositories/company.repository'; | ||
import { ConnectedAccountRepository } from 'src/modules/connected-account/repositories/connected-account.repository'; | ||
import { MessageChannelMessageAssociationRepository } from 'src/modules/messaging/common/repositories/message-channel-message-association.repository'; | ||
import { MessageChannelRepository } from 'src/modules/messaging/common/repositories/message-channel.repository'; | ||
import { MessageParticipantRepository } from 'src/modules/messaging/common/repositories/message-participant.repository'; | ||
import { MessageThreadRepository } from 'src/modules/messaging/common/repositories/message-thread.repository'; | ||
import { MessageRepository } from 'src/modules/messaging/common/repositories/message.repository'; | ||
import { PersonRepository } from 'src/modules/person/repositories/person.repository'; | ||
import { AuditLogRepository } from 'src/modules/timeline/repositiories/audit-log.repository'; | ||
import { TimelineActivityRepository } from 'src/modules/timeline/repositiories/timeline-activity.repository'; | ||
import { WorkspaceMemberRepository } from 'src/modules/workspace-member/repositories/workspace-member.repository'; | ||
|
||
export const metadataToRepositoryMapping = { | ||
AuditLogWorkspaceEntity: AuditLogRepository, | ||
BlocklistWorkspaceEntity: BlocklistRepository, | ||
CompanyWorkspaceEntity: CompanyRepository, | ||
ConnectedAccountWorkspaceEntity: ConnectedAccountRepository, | ||
MessageChannelMessageAssociationWorkspaceEntity: | ||
MessageChannelMessageAssociationRepository, | ||
MessageChannelWorkspaceEntity: MessageChannelRepository, | ||
MessageWorkspaceEntity: MessageRepository, | ||
MessageParticipantWorkspaceEntity: MessageParticipantRepository, | ||
MessageThreadWorkspaceEntity: MessageThreadRepository, | ||
PersonWorkspaceEntity: PersonRepository, | ||
TimelineActivityWorkspaceEntity: TimelineActivityRepository, | ||
WorkspaceMemberWorkspaceEntity: WorkspaceMemberRepository, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 0 additions & 85 deletions
85
packages/twenty-server/src/modules/company/repositories/company.repository.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.