Skip to content

Commit

Permalink
🚧 All objects have their boilerplate: TODO are the attachment services
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jan 4, 2024
1 parent 0250d81 commit bd10468
Show file tree
Hide file tree
Showing 58 changed files with 3,626 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,23 @@ import {
ZendeskUserOutput,
ZendeskAttachmentOutput,
ZendeskAttachmentInput,
ZendeskAccountInput,
ZendeskAccountOutput,
ZendeskContactInput,
ZendeskContactOutput,
ZendeskTagInput,
ZendeskTagOutput,
ZendeskTeamInput,
ZendeskTeamOutput,
} from '@ticketing/@utils/@types';
import {
FrontAccountInput,
FrontAccountOutput,
} from '@ticketing/account/services/front/types';
import {
GithubAccountInput,
GithubAccountOutput,
} from '@ticketing/account/services/github/types';
import {
FrontCommentInput,
FrontCommentOutput,
Expand All @@ -20,6 +36,30 @@ import {
HubspotCommentInput,
HubspotCommentOutput,
} from '@ticketing/comment/services/hubspot/types';
import {
FrontContactInput,
FrontContactOutput,
} from '@ticketing/contact/services/front/types';
import {
GithubContactInput,
GithubContactOutput,
} from '@ticketing/contact/services/github/types';
import {
FrontTagInput,
FrontTagOutput,
} from '@ticketing/tag/services/front/types';
import {
GithubTagInput,
GithubTagOutput,
} from '@ticketing/tag/services/github/types';
import {
FrontTeamInput,
FrontTeamOutput,
} from '@ticketing/team/services/front/types';
import {
GithubTeamInput,
GithubTeamOutput,
} from '@ticketing/team/services/github/types';
import {
FrontTicketInput,
FrontTicketOutput,
Expand Down Expand Up @@ -138,4 +178,8 @@ export type TicketingObjectOutput =
| OriginalTicketOutput
| OriginalCommentOutput
| OriginalUserOutput
| OriginalAttachmentOutput;
| OriginalAttachmentOutput
| OriginalTeamOutput
| OriginalTagOutput
| OriginalContactOutput
| OriginalAccountOutput;
35 changes: 30 additions & 5 deletions packages/api/src/ticketing/@utils/@types/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
import { contactUnificationMapping } from '@crm/contact/types/mappingsTypes';
import { IAccountService } from '@ticketing/account/types';
import { UnifiedAccountInput, UnifiedAccountOutput } from '@ticketing/account/types/model.unified';
import { accountUnificationMapping } from '@ticketing/account/types/mappingsTypes';
import {
UnifiedAccountInput,
UnifiedAccountOutput,
} from '@ticketing/account/types/model.unified';
import { IAttachmentService } from '@ticketing/attachment/types';
import { attachmentUnificationMapping } from '@ticketing/attachment/types/mappingsTypes';
import {
UnifiedAttachmentInput,
UnifiedAttachmentOutput,
} from '@ticketing/attachment/types/model.unified';
import { ICommentService } from '@ticketing/comment/types';
import { commentUnificationMapping } from '@ticketing/comment/types/mappingsTypes';
import {
UnifiedCommentInput,
UnifiedCommentOutput,
} from '@ticketing/comment/types/model.unified';
import { IContactService } from '@ticketing/contact/types';
import {
UnifiedContactInput,
UnifiedContactOutput,
} from '@ticketing/contact/types/model.unified';
import { ITagService } from '@ticketing/tag/types';
import { tagUnificationMapping } from '@ticketing/tag/types/mappingsTypes';
import {
UnifiedTagInput,
UnifiedTagOutput,
} from '@ticketing/tag/types/model.unified';
import { ITeamService } from '@ticketing/team/types';
import { teamUnificationMapping } from '@ticketing/team/types/mappingsTypes';
import {
UnifiedTeamInput,
UnifiedTeamOutput,
} from '@ticketing/team/types/model.unified';
import { ITicketService } from '@ticketing/ticket/types';
import { ticketUnificationMapping } from '@ticketing/ticket/types/mappingsTypes';
import {
Expand Down Expand Up @@ -40,9 +66,9 @@ export type UnifiedTicketing =
| UnifiedUserInput
| UnifiedUserOutput
| UnifiedAccountInput
| UnifiedAccountOutput;
| UnifiedAccountOutput
| UnifiedContactInput
| UnifiedContactOutput;
| UnifiedContactOutput
| UnifiedTeamInput
| UnifiedTeamOutput
| UnifiedTagInput
Expand All @@ -67,10 +93,9 @@ export type ITicketingService =
| IUserService
| IAttachmentService
| IContactService
| IAccountService
| ITeamService
| ITagService;
;

export * from '../../ticket/services/zendesk/types';
export * from '../../comment/services/zendesk/types';
export * from '../../user/services/zendesk/types';
Expand Down
Loading

0 comments on commit bd10468

Please sign in to comment.