@@ -178,6 +178,8 @@ public static function getRawKnownSchemas(): array
178178                ],
179179                'name '  => ['type '  => Doc \Schema::TYPE_STRING ],
180180                'content '  => ['type '  => Doc \Schema::TYPE_STRING ],
181+                 'user_recipient '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_recipient ' , full_schema: 'User ' ) + ['x-version-introduced '  => '2.1.0 ' ],
182+                 'user_editor '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_lastupdater ' , full_schema: 'User ' ) + ['x-version-introduced '  => '2.1.0 ' ],
181183                'is_deleted '  => ['type '  => Doc \Schema::TYPE_BOOLEAN ],
182184                'category '  => self ::getDropdownTypeSchema (class: ITILCategory::class, full_schema: 'ITILCategory ' ),
183185                'location '  => self ::getDropdownTypeSchema (class: Location::class, full_schema: 'Location ' ),
@@ -203,6 +205,35 @@ public static function getRawKnownSchemas(): array
203205                'date_creation '  => ['type '  => Doc \Schema::TYPE_STRING , 'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ],
204206                'date_mod '  => ['type '  => Doc \Schema::TYPE_STRING , 'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ],
205207                'date '  => ['type '  => Doc \Schema::TYPE_STRING , 'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ],
208+                 'date_solve '  => [
209+                     'x-version-introduced '  => '2.1.0 ' ,
210+                     'type '  => Doc \Schema::TYPE_STRING ,
211+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
212+                     'x-field '  => 'solvedate ' ,
213+                 ],
214+                 'date_close '  => [
215+                     'x-version-introduced '  => '2.1.0 ' ,
216+                     'type '  => Doc \Schema::TYPE_STRING ,
217+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
218+                     'x-field '  => 'closedate ' ,
219+                 ],
220+                 'global_validation '  => [
221+                     'x-version-introduced '  => '2.1.0 ' ,
222+                     'type '  => Doc \Schema::TYPE_INTEGER ,
223+                     'enum '  => [
224+                         CommonITILValidation::NONE ,
225+                         CommonITILValidation::WAITING ,
226+                         CommonITILValidation::ACCEPTED ,
227+                         CommonITILValidation::REFUSED ,
228+                     ],
229+                     'description '  => <<<EOT 
230+                         The global status of the validation. 
231+                         - 1: None 
232+                         - 2: Waiting 
233+                         - 3: Accepted 
234+                         - 4: Refused 
235+                         EOT ,
236+                 ],
206237            ],
207238        ];
208239
@@ -462,11 +493,46 @@ public static function getRawKnownSchemas(): array
462493                    'format '  => Doc \Schema::FORMAT_INTEGER_INT64 ,
463494                    'readOnly '  => true ,
464495                ],
496+                 'uuid '  => [
497+                     'x-version-introduced '  => '2.1.0 ' ,
498+                     'type '  => Doc \Schema::TYPE_STRING ,
499+                     'format '  => Doc \Schema::PATTERN_UUIDV4 ,
500+                     'readOnly '  => true ,
501+                 ],
465502                'content '  => ['type '  => Doc \Schema::TYPE_STRING ],
466503                'is_private '  => ['type '  => Doc \Schema::TYPE_BOOLEAN ],
467504                'user '  => self ::getDropdownTypeSchema (class: User::class, full_schema: 'User ' ),
468505                'user_editor '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_editor ' , full_schema: 'User ' ),
506+                 'user_tech '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_tech ' , full_schema: 'User ' ) + ['x-version-introduced '  => '2.1.0 ' ],
507+                 'group_tech '  => self ::getDropdownTypeSchema (class: Group::class, field: 'groups_id_tech ' , full_schema: 'Group ' ) + ['x-version-introduced '  => '2.1.0 ' ],
508+                 'date '  => [
509+                     'x-version-introduced '  => '2.1.0 ' ,
510+                     'type '  => Doc \Schema::TYPE_STRING ,
511+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
512+                 ],
513+                 'date_creation '  => [
514+                     'x-version-introduced '  => '2.1.0 ' ,
515+                     'type '  => Doc \Schema::TYPE_STRING ,
516+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
517+                 ],
518+                 'date_mod '  => [
519+                     'x-version-introduced '  => '2.1.0 ' ,
520+                     'type '  => Doc \Schema::TYPE_STRING ,
521+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
522+                 ],
469523                'duration '  => ['type '  => Doc \Schema::TYPE_INTEGER , 'x-field '  => 'actiontime ' ],
524+                 'planned_begin '  => [
525+                     'x-version-introduced '  => '2.1.0 ' ,
526+                     'type '  => Doc \Schema::TYPE_STRING ,
527+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
528+                     'x-field '  => 'begin ' ,
529+                 ],
530+                 'planned_end '  => [
531+                     'x-version-introduced '  => '2.1.0 ' ,
532+                     'type '  => Doc \Schema::TYPE_STRING ,
533+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
534+                     'x-field '  => 'end ' ,
535+                 ],
470536                'state '  => [
471537                    'type '  => Doc \Schema::TYPE_INTEGER ,
472538                    'enum '  => [
@@ -595,6 +661,11 @@ public static function getRawKnownSchemas(): array
595661                'user '  => self ::getDropdownTypeSchema (class: User::class, full_schema: 'User ' ),
596662                'user_editor '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_editor ' , full_schema: 'User ' ),
597663                'request_type '  => self ::getDropdownTypeSchema (RequestType::class, full_schema: 'RequestType ' ),
664+                 'date '  => [
665+                     'x-version-introduced '  => '2.1.0 ' ,
666+                     'type '  => Doc \Schema::TYPE_STRING ,
667+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
668+                 ],
598669                'date_creation '  => ['type '  => Doc \Schema::TYPE_STRING , 'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ],
599670                'date_mod '  => ['type '  => Doc \Schema::TYPE_STRING , 'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ],
600671                'timeline_position '  => [
@@ -633,6 +704,39 @@ public static function getRawKnownSchemas(): array
633704                'content '  => ['type '  => Doc \Schema::TYPE_STRING ],
634705                'user '  => self ::getDropdownTypeSchema (class: User::class, full_schema: 'User ' ),
635706                'user_editor '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_editor ' , full_schema: 'User ' ),
707+                 'approver '  => self ::getDropdownTypeSchema (class: User::class, field: 'users_id_approval ' , full_schema: 'User ' ) + ['x-version-introduced '  => '2.1.0 ' ],
708+                 'status '  => [
709+                     'type '  => Doc \Schema::TYPE_INTEGER ,
710+                     'enum '  => [
711+                         CommonITILValidation::NONE ,
712+                         CommonITILValidation::WAITING ,
713+                         CommonITILValidation::ACCEPTED ,
714+                         CommonITILValidation::REFUSED ,
715+                     ],
716+                     'description '  => <<<EOT 
717+                         The status of the solution. 
718+                         - 1: None 
719+                         - 2: Waiting 
720+                         - 3: Accepted 
721+                         - 4: Refused 
722+                         EOT ,
723+                 ],
724+                 'approval_followup '  => self ::getDropdownTypeSchema (class: ITILFollowup::class, full_schema: 'Followup ' ) + ['x-version-introduced '  => '2.1.0 ' ],
725+                 'date_creation '  => [
726+                     'x-version-introduced '  => '2.1.0 ' ,
727+                     'type '  => Doc \Schema::TYPE_STRING ,
728+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
729+                 ],
730+                 'date_mod '  => [
731+                     'x-version-introduced '  => '2.1.0 ' ,
732+                     'type '  => Doc \Schema::TYPE_STRING ,
733+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
734+                 ],
735+                 'date_approval '  => [
736+                     'x-version-introduced '  => '2.1.0 ' ,
737+                     'type '  => Doc \Schema::TYPE_STRING ,
738+                     'format '  => Doc \Schema::FORMAT_STRING_DATE_TIME ,
739+                 ],
636740            ],
637741        ];
638742
0 commit comments