Skip to content

Commit adbcff7

Browse files
committed
supannaffectation supannaffectation principale departmentNumber
1 parent a9a6b9e commit adbcff7

File tree

4 files changed

+129
-7
lines changed

4 files changed

+129
-7
lines changed

src/management/identities/_schemas/_parts/inetOrgPerson.part.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class inetOrgPerson extends Document {
5353
@Prop({ type: String, required: true })
5454
public employeeType: string;
5555

56-
@Prop({ type: String, default: null })
57-
public departmentNumber: string;
56+
@Prop({ type: Array, of: String, required: true, default: [] })
57+
public departmentNumber: string[];
5858

5959
@Prop({ type: String, default: null })
6060
public jpegPhoto?: string;
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
type: Group
2+
label: supannPerson
3+
elements:
4+
- type: HorizontalLayout
5+
elements:
6+
- type: Control
7+
label: Civilité
8+
scope: "#/properties/supanncivilite"
9+
options:
10+
required: true
11+
suggestion:
12+
- M.
13+
- Mme
14+
- Mlle
15+
- type: Control
16+
label: supannNomdeNaissance
17+
scope: "#/properties/supannNomdeNaissance"
18+
options:
19+
required: false
20+
- type: Control
21+
label: supannOIDCDatedeNaissance
22+
scope: "#/properties/supannOIDCDatedeNaissance"
23+
options:
24+
format: date
25+
required: true
26+
dateFormat: "dd/MM/yyyy"
27+
- type: HorizontalLayout
28+
elements:
29+
- type: Control
30+
label: supannOIDCGenre
31+
scope: "#/properties/supannOIDCGenre"
32+
options:
33+
required: true
34+
- type: Control
35+
label: supannPrenomsEtatCivil
36+
scope: "#/properties/supannPrenomsEtatCivil"
37+
options:
38+
required: true
39+
- type: Control
40+
label: supannCodeINSEEPaysDeNaissance
41+
scope: "#/properties/supannCodeINSEEPaysDeNaissance"
42+
options:
43+
required: true
44+
- type: HorizontalLayout
45+
elements:
46+
- type: Control
47+
label: supannCodeINSEEVilleDeNaissance
48+
scope: "#/properties/supannCodeINSEEVilleDeNaissance"
49+
options:
50+
required: false
51+
- type: Control
52+
label: supannAutreMail
53+
scope: "#/properties/supannAutreMail"
54+
options:
55+
required: true
56+
- type: Control
57+
label: supannListeRouge
58+
scope: "#/properties/supannListeRouge"
59+
options:
60+
required: false
61+
- type: HorizontalLayout
62+
elements:
63+
- type: Control
64+
label: mailForwardingAddress
65+
scope: "#/properties/mailForwardingAddress"
66+
options:
67+
required: false
68+
- type: Control
69+
label: supannMailPerso
70+
scope: "#/properties/supannMailPerso"
71+
options:
72+
required: false
73+
- type: Control
74+
label: supannRoleGenerique
75+
scope: "#/properties/supannRoleGenerique"
76+
options:
77+
required: false
78+
- type: HorizontalLayout
79+
elements:
80+
- type: Control
81+
label: supannEmpId
82+
scope: "#/properties/supannEmpId"
83+
options:
84+
format: number
85+
required: false
86+
- type: Control
87+
label: supannParrainDN
88+
scope: "#/properties/supannParrainDN"
89+
options:
90+
required: false
91+
- type: Control
92+
label: supannTypeEntiteAffectation
93+
scope: "#/properties/supannTypeEntiteAffectation"
94+
options:
95+
required: false
96+
suggestion:
97+
- "adm"
98+
- "etd"
99+
- "esn"
100+
- type: HorizontalLayout
101+
elements:
102+
- type: Control
103+
label: supannActivite
104+
scope: "#/properties/supannActivite"
105+
options:
106+
required: false
107+
- type: Control
108+
label: supannEmpDateFin
109+
scope: "#/properties/supannEmpDateFin"
110+
options:
111+
required: false

src/management/identities/validations/_config/inetorgperson.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
"type": "string",
1515
"description": "UID of the inetOrgPerson."
1616
},
17+
"departmentNumber":{
18+
"type": "array",
19+
"description": "type of identity",
20+
"items":{
21+
"type": "string"
22+
}
23+
},
1724
"employeeNumber": {
1825
"type": "string",
1926
"description": "EmployeeNumber of the inetOrgPerson."
@@ -74,10 +81,6 @@
7481
"jpegPhoto": {
7582
"type": "string",
7683
"description": "User jpeg photo of the inetOrgPerson."
77-
},
78-
"photo": {
79-
"type": "string",
80-
"description": "User photo of the inetOrgPerson."
8184
}
8285
},
8386
"required": ["uid", "employeeNumber", "employeeType"]

src/management/identities/validations/_config/supannPerson.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ properties:
4646
type: string
4747
description: Field corresponding to supannParrainDN
4848
supannTypeEntiteAffectation:
49+
type: array
50+
items:
51+
type: string
52+
supannEntiteAffectation:
53+
type: array
54+
items:
55+
type: string
56+
supannEntiteAffectationPrincipale:
4957
type: string
50-
description: Field corresponding to supannTypeEntiteAffectation
58+
description: identifiant de l entité principale d affectation
5159
supannActivite:
5260
type: string
5361
description: Field corresponding to supannActivite

0 commit comments

Comments
 (0)