diff --git a/src/Bundle/ChillPersonBundle/Resources/public/types.ts b/src/Bundle/ChillPersonBundle/Resources/public/types.ts index 5e75553a5..c93440d75 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/types.ts +++ b/src/Bundle/ChillPersonBundle/Resources/public/types.ts @@ -7,6 +7,7 @@ import { WorkflowAvailable, } from "../../../ChillMainBundle/Resources/public/types"; import { StoredObject } from "../../../ChillDocStoreBundle/Resources/public/types"; +import {Thirdparty} from "../../../ChillThirdPartyBundle/Resources/public/types"; export interface Person { id: number; @@ -41,3 +42,51 @@ export interface AccompanyingPeriodWorkEvaluationDocument { workflows_availables: WorkflowAvailable[]; workflows: object[]; } + +export interface AccompanyingPeriodWork { + id?: number; + accompanyingPeriod?: AccompanyingPeriod; + accompanyingPeriodWorkEvaluations: AccompanyingPeriodWorkEvaluation[]; + createdAt?: string; + createdAutomatically: boolean; + createdAutomaticallyReason: string; + createdBy: User; + endDate?: string; + goals: AccompanyingPeriodWorkGoal[]; + handlingThierParty?: Thirdparty; + note: string; + persons: Person[]; + privateComment: PrivateCommentEmbeddable; + referrersHistory: AccompanyingPeriodWorkReferrerHistory[]; + results: Result[]; + socialAction?: SocialAction; + startDate?: string; + thirdParties: Thirdparty[]; + updatedAt?: string; + updatedBy: User; + version: number; +} + +interface SocialAction { + id?: number; + parent?: SocialAction | null; + children: SocialAction[]; + issue?: SocialIssue | null; + ordering: number; + title: Record; + defaultNotificationDelay?: string | null; + desactivationDate?: string | null; + evaluations: Evaluation[]; + goals: Goal[]; + results: Result[]; +} + +type SocialIssue = any; +type Goal = any; +type Result = any; +type Evaluation = any; +type AccompanyingPeriod = any; +type AccompanyingPeriodWorkEvaluation = any; +type AccompanyingPeriodWorkGoal = any; +type PrivateCommentEmbeddable = any; +type AccompanyingPeriodWorkReferrerHistory = any; diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/types.ts b/src/Bundle/ChillThirdPartyBundle/Resources/public/types.ts new file mode 100644 index 000000000..ccae6bbfd --- /dev/null +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/types.ts @@ -0,0 +1 @@ +export type Thirdparty = any;