e83f50e33cac96d38a4c48dda3cf1dba5ed5bee3
[usecase-ui.git] /
1 /*******
2     title /MUST/: MARK THE ITEM NAME,
3     key /MUST/:  MARK THE ITEM KEY,
4     type /MUST/: MARKE THE ITEM TYPE, CAN BE ADDED IF NECESSARY: input/select/radio/city-select/select/table-radio/endpoint
5     required /MUST/: IF REQUIRED, 
6     disable /MUST/: IF DISABLED,
7     scoped: IF SCOPED NUMBERS, CAN BE EMITTED IF NOT
8     scopedText: SCOPED NUMBERS' DESCRIPTION. IF SCOPED NUMBERS EXITS, IT'S A MUST
9     placeholder: IF PLACEHOLDER, CAN BE EMITTED IF NOT
10     options: IF ITEM NEEDS OPTIONS, CAN BE EMITTED IF NOT
11 ********/
12
13 export const TRANSFRER_FORM_ITEMS = [
14         {
15                 title: "S-NSSAI",
16                 key: "sliceProfile_TN_BH_sNSSAI",
17                 required: true,
18                 type: "input",
19                 disable: true,
20         },
21         {
22                 title: "Latency (ms)",
23                 key: "tn_bh_latency",
24                 required: true,
25                 type: "input",
26                 disable: false,
27         },
28         {
29                 title: "Jitter",
30                 key: "sliceProfile_TN_BH_jitte",
31                 required: false,
32                 type: "input",
33                 disable: false,
34         },
35         {
36                 title: "MaxBandwidth",
37                 key: "tn_bh_bandwidth",
38                 required: true,
39                 type: "input",
40                 disable: false,
41         },
42         {
43                 title: "Resource Sharing Level", // select
44                 key: "sliceProfile_TN_resourceSharingLevel", // :new
45                 required: true,
46                 disable: false,
47                 type: "radio",
48                 options: [
49                         {
50                                 title: "Shared",
51                                 key: "shared",
52                         },
53                         {
54                                 title: "Non-shared",
55                                 key: "non-shared",
56                         },
57                 ],
58         },
59         {
60                 title: "Connection Links", // table
61                 key: "tn_connection_links", // :new
62                 required: false, // combined
63                 type: "table-radio",
64                 disable: false,
65         },
66         {
67                 title: "AN Endpoint", // input group
68                 key: "an_Endpoint",
69                 type: "endpoint",
70                 required: false,
71                 disable: false,
72                 options: [
73                         {
74                                 title: "ip_address",
75                                 key: "sliceProfile_AN_ipAddress",
76                                 holder: "IpAddress",
77                         },
78                         {
79                                 title: "logical_link",
80                                 key: "sliceProfile_AN_logicInterfaceId",
81                                 holder: "LogicId",
82                         },
83                         {
84                                 title: "nexthop_info",
85                                 key: "sliceProfile_AN_nextHopInfo",
86                                 holder: "NextHop",
87                         },
88                 ],
89         },
90         {
91                 title: "CN Endpoint",
92                 key: "cn_Endpoint",
93                 type: "endpoint",
94                 required: false,
95                 disable: false,
96                 options: [
97                         {
98                                 title: "ip_address",
99                                 key: "sliceProfile_CN_ipAddress",
100                                 holder: "IpAddress",
101                         },
102                         {
103                                 title: "logical_link",
104                                 key: "sliceProfile_CN_logicInterfaceId",
105                                 holder: "LogicId",
106                         },
107                         {
108                                 title: "nexthop_info",
109                                 key: "sliceProfile_CN_nextHopInfo",
110                                 holder: "NextHop",
111                         },
112                 ],
113         },
114 ];
115
116 export const CORE_FORM_ITEMS = {
117         An: [
118                 {
119                         title: "S-NSSAI",
120                         key: "sliceProfile_AN_sNSSAI",
121                         required: true,
122                         type: "input",
123                         disable: "true",
124                 },
125                 {
126                         title: "Resource Sharing Level",
127                         key: "sliceProfile_AN_resourceSharingLevel",
128                         required: true,
129                         type: "radio",
130                         disable: false,
131                         options: [
132                                 {
133                                         title: "Shared",
134                                         key: "shared",
135                                 },
136                                 {
137                                         title: "Non-shared",
138                                         key: "non-shared",
139                                 },
140                         ],
141                 },
142                 {
143                         title: "Mobility",
144                         key: "sliceProfile_AN_uEMobilityLevel",
145                         required: true,
146                         type: "select",
147                         disable: false,
148                         options: [
149                                 {
150                                         title: "Stationary",
151                                         key: "stationary",
152                                 },
153                                 {
154                                         title: "Nomadic",
155                                         key: "nomadic",
156                                 },
157                                 {
158                                         title: "Spatially Restricted Mobility",
159                                         key: "spatially restricted mobility",
160                                 },
161                                 {
162                                         title: "Fully Mobility",
163                                         key: "fully mobility",
164                                 },
165                         ],
166                 },
167                 {
168                         title: "Latency (ms)",
169                         key: "an_latency",
170                         required: true,
171                         type: "input",
172                         disable: false,
173                 },
174                 {
175                         title: "Max Number of PUD Session",
176                         key: "sliceProfile_AN_maxNumberofPDUSession",
177                         required: true,
178                         type: "input",
179                         disable: false,
180                 },
181                 {
182                         title: "Max Number of UEs",
183                         key: "sliceProfile_AN_maxNumberofUEs",
184                         required: true,
185                         type: "input",
186                         disable: false,
187                 },
188                 {
189                         title: "Activity Factor (%)",
190                         key: "sliceProfile_AN_activityFactor",
191                         required: true,
192                         type: "input",
193                         disable: false,
194                 },
195                 {
196                         title: "User Downlink Experience Rate(Mbps)",
197                         key: "sliceProfile_AN_expDataRateDL",
198                         required: true,
199                         type: "input",
200                         disable: false,
201                 },
202                 {
203                         title: "User Uplink Experience Rate(Mbps)",
204                         key: "sliceProfile_AN_expDataRateUL",
205                         required: true,
206                         type: "input",
207                         disable: false,
208                 },
209                 {
210                         title: "Downlink Regional Traffic Density(Mbps/km )",
211                         key: "sliceProfile_AN_areaTrafficCapDL",
212                         required: false,
213                         type: "input",
214                         disable: false,
215                 },
216                 {
217                         title: "Uplink Regional Traffic Density(Mbps/km )",
218                         key: "sliceProfile_AN_areaTrafficCapUL",
219                         required: false,
220                         type: "input",
221                         disable: false,
222                 },
223                 {
224                         title: "Script Name",
225                         key: "an_script_name",
226                         required: false,
227                         type: "input",
228                         disable: false,
229                 },
230                 {
231                         title: "Overall User Density",
232                         key: "sliceProfile_AN_overallUserDensity",
233                         required: false,
234                         type: "input",
235                         disable: false,
236                 },
237                 {
238                         title: "Coverage Area Ta List",
239                         key: "an_coverage_area_ta_list",
240                         required: true,
241                         type: "city-select",
242                         disable: false,
243                 },
244         ],
245         Cn: [
246                 {
247                         title: "S-NSSAI",
248                         key: "cn_service_snssai",
249                         required: true,
250                         type: "input",
251                         disable: true,
252                 },
253                 {
254                         title: "Resource Sharing Level",
255                         key: "cn_resource_sharing_level",
256                         required: true,
257                         type: "radio",
258                         disable: false,
259                         options: [
260                                 {
261                                         title: "Shared",
262                                         key: "shared",
263                                 },
264                                 {
265                                         title: "Non-shared",
266                                         key: "non-shared",
267                                 },
268                         ],
269                 },
270                 {
271                         title: "Mobility",
272                         key: "cn_ue_mobility_level",
273                         required: true,
274                         type: "select",
275                         disable: false,
276                         options: [
277                                 {
278                                         title: "Stationary",
279                                         key: "stationary",
280                                 },
281                                 {
282                                         title: "Nomadic",
283                                         key: "nomadic",
284                                 },
285                                 {
286                                         title: "Spatially Restricted Mobility",
287                                         key: "spatially restricted mobility",
288                                 },
289                                 {
290                                         title: "Fully Mobility",
291                                         key: "fully mobility",
292                                 },
293                         ],
294                 },
295                 {
296                         title: "Latency (ms)",
297                         key: "cn_latency",
298                         required: true,
299                         type: "input",
300                         disable: false,
301                 },
302                 {
303                         title: "Max Number of UEs",
304                         key: "cn_max_number_of_ues",
305                         required: true,
306                         type: "input",
307                         disable: false,
308                 },
309                 {
310                         title: "Activity Factor (%)",
311                         key: "cn_activity_factor",
312                         required: true,
313                         type: "input",
314                         disable: false,
315                 },
316                 {
317                         title: "User Downlink Experience Rate(Mbps)",
318                         key: "cn_exp_data_rate_dl",
319                         required: true,
320                         type: "input",
321                         disable: false,
322                 },
323                 {
324                         title: "User Uplink Experience Rate(Mbps)",
325                         key: "cn_exp_data_rate_ul",
326                         required: true,
327                         type: "input",
328                         disable: false,
329                 },
330                 {
331                         title: "Downlink Regional Traffic Density(Mbps/km )",
332                         key: "cn_area_traffic_cap_dl",
333                         required: false,
334                         type: "input",
335                         disable: false,
336                 },
337                 {
338                         title: "Uplink Regional Traffic Density(Mbps/km )",
339                         key: "cn_area_traffic_cap_ul",
340                         required: false,
341                         type: "input",
342                         disable: false,
343                 },
344                 {
345                         title: "Script Name",
346                         key: "cn_script_name",
347                         required: false,
348                         type: "input",
349                         disable: false,
350                 },
351                 {
352                         title: "Max Number of PUD Session",
353                         key: "sliceProfile_CN_maxNumberofPDUSession",
354                         required: true,
355                         type: "input",
356                         disable: false,
357                 },
358                 {
359                         title: "OverAll User Density",
360                         key: "sliceProfile_CN_overallUserDensity",
361                         required: false,
362                         type: "input",
363                         disable: false,
364                 },
365         ],
366 };
367
368 export const ADDRESS = [
369         {
370                 id: "1",
371                 name: "Beijing",
372                 city: [
373                         {
374                                 id: "101",
375                                 name: "Beijing",
376                                 county: [
377                                         {
378                                                 id: "1001",
379                                                 name: "Haiding District",
380                                         },
381                                         {
382                                                 id: "1002",
383                                                 name: "Xicheng District",
384                                         },
385                                         {
386                                                 id: "1003",
387                                                 name: "Changping District",
388                                         },
389                                 ],
390                         },
391                 ],
392         },
393         {
394                 id: "2",
395                 name: "Shanghai",
396                 city: [
397                         {
398                                 id: "201",
399                                 name: "Shanghai City",
400                                 county: [
401                                         {
402                                                 id: "2001",
403                                                 name: "Pudongxin District",
404                                         },
405                                         {
406                                                 id: "2002",
407                                                 name: "Jingan District",
408                                         },
409                                 ],
410                         },
411                 ],
412         },
413 ];