theo_lafond_react_ci_cd 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/babel.config.cjs +6 -0
  2. package/cypress.config.js +12 -0
  3. package/dist/App.css +35 -0
  4. package/dist/App.js +147 -0
  5. package/dist/assets/react.svg +1 -0
  6. package/dist/components/PersonForm.css +63 -0
  7. package/dist/components/PersonForm.js +312 -0
  8. package/dist/domain/module.js +33 -0
  9. package/dist/domain/services/personService.js +126 -0
  10. package/dist/domain/validator.js +143 -0
  11. package/dist/index.css +64 -0
  12. package/dist/index.js +13 -0
  13. package/dist/main.js +11 -0
  14. package/dist/pages/Home.css +57 -0
  15. package/dist/pages/Home.js +102 -0
  16. package/dist/pages/Register.css +28 -0
  17. package/dist/pages/Register.js +40 -0
  18. package/dist/utils/errorMessages.js +46 -0
  19. package/eslint.config.js +29 -0
  20. package/jest.config.cjs +9 -0
  21. package/jsdoc.json +8 -0
  22. package/package.json +50 -0
  23. package/public/docs/App.jsx.html +114 -0
  24. package/public/docs/components_PersonForm.jsx.html +282 -0
  25. package/public/docs/domain_module.js.html +81 -0
  26. package/public/docs/domain_personService.js.html +69 -0
  27. package/public/docs/domain_validator.js.html +190 -0
  28. package/public/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  29. package/public/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  30. package/public/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  31. package/public/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  32. package/public/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  33. package/public/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  34. package/public/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  35. package/public/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  36. package/public/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  37. package/public/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  38. package/public/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  39. package/public/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  40. package/public/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  41. package/public/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  42. package/public/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  43. package/public/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  44. package/public/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  45. package/public/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  46. package/public/docs/global.html +2439 -0
  47. package/public/docs/module-App.html +362 -0
  48. package/public/docs/module-Home.html +373 -0
  49. package/public/docs/module-PersonForm.html +723 -0
  50. package/public/docs/module-Register.html +281 -0
  51. package/public/docs/module.js.html +81 -0
  52. package/public/docs/pages_Home.jsx.html +106 -0
  53. package/public/docs/pages_Register.jsx.html +78 -0
  54. package/public/docs/scripts/linenumber.js +25 -0
  55. package/public/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  56. package/public/docs/scripts/prettify/lang-css.js +2 -0
  57. package/public/docs/scripts/prettify/prettify.js +28 -0
  58. package/public/docs/styles/jsdoc-default.css +358 -0
  59. package/public/docs/styles/prettify-jsdoc.css +111 -0
  60. package/public/docs/styles/prettify-tomorrow.css +132 -0
  61. package/public/docs/utils_errorMessages.js.html +87 -0
  62. package/public/docs/validator.js.html +179 -0
  63. package/public/vite.svg +1 -0
@@ -0,0 +1,2439 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Global</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Global</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ <h2></h2>
32
+
33
+
34
+ </header>
35
+
36
+ <article>
37
+ <div class="container-overview">
38
+
39
+
40
+
41
+
42
+
43
+
44
+ <dl class="details">
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ </dl>
78
+
79
+
80
+
81
+
82
+ </div>
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <h3 class="subsection-title">Members</h3>
98
+
99
+
100
+
101
+ <h4 class="name" id="errorMessages"><span class="type-signature">(constant) </span>errorMessages<span class="type-signature"> :Object.&lt;string, string></span></h4>
102
+
103
+
104
+
105
+
106
+ <div class="description">
107
+ Object containing all error messages used in the form
108
+ </div>
109
+
110
+
111
+
112
+ <h5>Type:</h5>
113
+ <ul>
114
+ <li>
115
+
116
+ <span class="param-type">Object.&lt;string, string></span>
117
+
118
+
119
+ </li>
120
+ </ul>
121
+
122
+
123
+
124
+
125
+
126
+ <h5 class="subsection-title">Properties:</h5>
127
+
128
+
129
+
130
+ <table class="props">
131
+ <thead>
132
+ <tr>
133
+
134
+ <th>Name</th>
135
+
136
+
137
+ <th>Type</th>
138
+
139
+
140
+
141
+
142
+
143
+ <th class="last">Description</th>
144
+ </tr>
145
+ </thead>
146
+
147
+ <tbody>
148
+
149
+
150
+ <tr>
151
+
152
+ <td class="name"><code>INVALID_FIRST_NAME</code></td>
153
+
154
+
155
+ <td class="type">
156
+
157
+
158
+ <span class="param-type">string</span>
159
+
160
+
161
+
162
+ </td>
163
+
164
+
165
+
166
+
167
+
168
+ <td class="description last">"Le prénom n'est pas valide"</td>
169
+ </tr>
170
+
171
+
172
+
173
+ <tr>
174
+
175
+ <td class="name"><code>INVALID_LAST_NAME</code></td>
176
+
177
+
178
+ <td class="type">
179
+
180
+
181
+ <span class="param-type">string</span>
182
+
183
+
184
+
185
+ </td>
186
+
187
+
188
+
189
+
190
+
191
+ <td class="description last">"Le nom n'est pas valide"</td>
192
+ </tr>
193
+
194
+
195
+
196
+ <tr>
197
+
198
+ <td class="name"><code>INVALID_EMAIL</code></td>
199
+
200
+
201
+ <td class="type">
202
+
203
+
204
+ <span class="param-type">string</span>
205
+
206
+
207
+
208
+ </td>
209
+
210
+
211
+
212
+
213
+
214
+ <td class="description last">"L'email n'est pas valide"</td>
215
+ </tr>
216
+
217
+
218
+
219
+ <tr>
220
+
221
+ <td class="name"><code>EMAIL_ALREADY_EXISTS</code></td>
222
+
223
+
224
+ <td class="type">
225
+
226
+
227
+ <span class="param-type">string</span>
228
+
229
+
230
+
231
+ </td>
232
+
233
+
234
+
235
+
236
+
237
+ <td class="description last">"Cet email est déjà utilisé"</td>
238
+ </tr>
239
+
240
+
241
+
242
+ <tr>
243
+
244
+ <td class="name"><code>INVALID_ZIP</code></td>
245
+
246
+
247
+ <td class="type">
248
+
249
+
250
+ <span class="param-type">string</span>
251
+
252
+
253
+
254
+ </td>
255
+
256
+
257
+
258
+
259
+
260
+ <td class="description last">"Le code postal doit contenir 5 chiffres"</td>
261
+ </tr>
262
+
263
+
264
+
265
+ <tr>
266
+
267
+ <td class="name"><code>INVALID_CITY</code></td>
268
+
269
+
270
+ <td class="type">
271
+
272
+
273
+ <span class="param-type">string</span>
274
+
275
+
276
+
277
+ </td>
278
+
279
+
280
+
281
+
282
+
283
+ <td class="description last">"Le nom de la ville n'est pas valide"</td>
284
+ </tr>
285
+
286
+
287
+
288
+ <tr>
289
+
290
+ <td class="name"><code>UNDERAGE</code></td>
291
+
292
+
293
+ <td class="type">
294
+
295
+
296
+ <span class="param-type">string</span>
297
+
298
+
299
+
300
+ </td>
301
+
302
+
303
+
304
+
305
+
306
+ <td class="description last">"Vous devez avoir au moins 18 ans"</td>
307
+ </tr>
308
+
309
+
310
+
311
+ <tr>
312
+
313
+ <td class="name"><code>FUTURE_DATE</code></td>
314
+
315
+
316
+ <td class="type">
317
+
318
+
319
+ <span class="param-type">string</span>
320
+
321
+
322
+
323
+ </td>
324
+
325
+
326
+
327
+
328
+
329
+ <td class="description last">"La date de naissance ne peut pas être dans le futur"</td>
330
+ </tr>
331
+
332
+
333
+
334
+ <tr>
335
+
336
+ <td class="name"><code>INVALID_DATE</code></td>
337
+
338
+
339
+ <td class="type">
340
+
341
+
342
+ <span class="param-type">string</span>
343
+
344
+
345
+
346
+ </td>
347
+
348
+
349
+
350
+
351
+
352
+ <td class="description last">"La date de naissance est invalide",</td>
353
+ </tr>
354
+
355
+
356
+
357
+ <tr>
358
+
359
+ <td class="name"><code>BIRTHDATE_TOO_OLD</code></td>
360
+
361
+
362
+ <td class="type">
363
+
364
+
365
+ <span class="param-type">string</span>
366
+
367
+
368
+
369
+ </td>
370
+
371
+
372
+
373
+
374
+
375
+ <td class="description last">"La date de naissance est trop ancienne",</td>
376
+ </tr>
377
+
378
+
379
+
380
+ <tr>
381
+
382
+ <td class="name"><code>XSS_DETECTED</code></td>
383
+
384
+
385
+ <td class="type">
386
+
387
+
388
+ <span class="param-type">string</span>
389
+
390
+
391
+
392
+ </td>
393
+
394
+
395
+
396
+
397
+
398
+ <td class="description last">"Caractères interdits détectés"</td>
399
+ </tr>
400
+
401
+
402
+ </tbody>
403
+ </table>
404
+
405
+
406
+
407
+
408
+ <dl class="details">
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+ <dt class="tag-source">Source:</dt>
436
+ <dd class="tag-source"><ul class="dummy"><li>
437
+ <a href="utils_errorMessages.js.html">utils/errorMessages.js</a>, <a href="utils_errorMessages.js.html#line16">line 16</a>
438
+ </li></ul></dd>
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+ </dl>
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+ <h3 class="subsection-title">Methods</h3>
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+ <h4 class="name" id="addPerson"><span class="type-signature"></span>addPerson<span class="signature">(persons, person)</span><span class="type-signature"> &rarr; {Array.&lt;Object>}</span></h4>
466
+
467
+
468
+
469
+
470
+
471
+
472
+ <div class="description">
473
+ Adds a person to the list if email is unique.
474
+ </div>
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+ <h5>Parameters:</h5>
485
+
486
+
487
+ <table class="params">
488
+ <thead>
489
+ <tr>
490
+
491
+ <th>Name</th>
492
+
493
+
494
+ <th>Type</th>
495
+
496
+
497
+
498
+
499
+
500
+ <th class="last">Description</th>
501
+ </tr>
502
+ </thead>
503
+
504
+ <tbody>
505
+
506
+
507
+ <tr>
508
+
509
+ <td class="name"><code>persons</code></td>
510
+
511
+
512
+ <td class="type">
513
+
514
+
515
+ <span class="param-type">Array.&lt;Object></span>
516
+
517
+
518
+
519
+ </td>
520
+
521
+
522
+
523
+
524
+
525
+ <td class="description last">Current persons list</td>
526
+ </tr>
527
+
528
+
529
+
530
+ <tr>
531
+
532
+ <td class="name"><code>person</code></td>
533
+
534
+
535
+ <td class="type">
536
+
537
+
538
+ <span class="param-type">Object</span>
539
+
540
+
541
+
542
+ </td>
543
+
544
+
545
+
546
+
547
+
548
+ <td class="description last">Person to add</td>
549
+ </tr>
550
+
551
+
552
+ </tbody>
553
+ </table>
554
+
555
+
556
+
557
+
558
+
559
+
560
+ <dl class="details">
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+ <dt class="tag-source">Source:</dt>
588
+ <dd class="tag-source"><ul class="dummy"><li>
589
+ <a href="domain_personService.js.html">domain/personService.js</a>, <a href="domain_personService.js.html#line9">line 9</a>
590
+ </li></ul></dd>
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+ </dl>
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+ <h5>Throws:</h5>
613
+
614
+
615
+
616
+ <dl>
617
+ <dt>
618
+ <div class="param-desc">
619
+ EMAIL_ALREADY_EXISTS if email already used
620
+ </div>
621
+ </dt>
622
+ <dd></dd>
623
+ <dt>
624
+ <dl>
625
+ <dt>
626
+ Type
627
+ </dt>
628
+ <dd>
629
+
630
+ <span class="param-type">Error</span>
631
+
632
+
633
+ </dd>
634
+ </dl>
635
+ </dt>
636
+ <dd></dd>
637
+ </dl>
638
+
639
+
640
+
641
+
642
+
643
+ <h5>Returns:</h5>
644
+
645
+
646
+ <div class="param-desc">
647
+ Updated persons list
648
+ </div>
649
+
650
+
651
+
652
+ <dl>
653
+ <dt>
654
+ Type
655
+ </dt>
656
+ <dd>
657
+
658
+ <span class="param-type">Array.&lt;Object></span>
659
+
660
+
661
+ </dd>
662
+ </dl>
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+ <h4 class="name" id="calculateAge"><span class="type-signature"></span>calculateAge<span class="signature">(p)</span><span class="type-signature"> &rarr; {number}</span></h4>
677
+
678
+
679
+
680
+
681
+
682
+
683
+ <div class="description">
684
+ Calculate a person's age in years
685
+ </div>
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+ <h5>Parameters:</h5>
696
+
697
+
698
+ <table class="params">
699
+ <thead>
700
+ <tr>
701
+
702
+ <th>Name</th>
703
+
704
+
705
+ <th>Type</th>
706
+
707
+
708
+
709
+
710
+
711
+ <th class="last">Description</th>
712
+ </tr>
713
+ </thead>
714
+
715
+ <tbody>
716
+
717
+
718
+ <tr>
719
+
720
+ <td class="name"><code>p</code></td>
721
+
722
+
723
+ <td class="type">
724
+
725
+
726
+ <span class="param-type">object</span>
727
+
728
+
729
+
730
+ </td>
731
+
732
+
733
+
734
+
735
+
736
+ <td class="description last">An object representing a person, implementing a birth Date parameter.</td>
737
+ </tr>
738
+
739
+
740
+ </tbody>
741
+ </table>
742
+
743
+
744
+
745
+
746
+
747
+
748
+ <dl class="details">
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+ <dt class="tag-source">Source:</dt>
776
+ <dd class="tag-source"><ul class="dummy"><li>
777
+ <a href="domain_module.js.html">domain/module.js</a>, <a href="domain_module.js.html#line7">line 7</a>
778
+ </li></ul></dd>
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+ </dl>
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+ <h5>Returns:</h5>
803
+
804
+
805
+ <div class="param-desc">
806
+ The age in years of p.
807
+ </div>
808
+
809
+
810
+
811
+ <dl>
812
+ <dt>
813
+ Type
814
+ </dt>
815
+ <dd>
816
+
817
+ <span class="param-type">number</span>
818
+
819
+
820
+ </dd>
821
+ </dl>
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+ <h4 class="name" id="getErrorMessage"><span class="type-signature"></span>getErrorMessage<span class="signature">(key)</span><span class="type-signature"> &rarr; {string}</span></h4>
836
+
837
+
838
+
839
+
840
+
841
+
842
+ <div class="description">
843
+ Retrieves the error message corresponding to a given key
844
+ </div>
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+ <h5>Parameters:</h5>
855
+
856
+
857
+ <table class="params">
858
+ <thead>
859
+ <tr>
860
+
861
+ <th>Name</th>
862
+
863
+
864
+ <th>Type</th>
865
+
866
+
867
+
868
+
869
+
870
+ <th class="last">Description</th>
871
+ </tr>
872
+ </thead>
873
+
874
+ <tbody>
875
+
876
+
877
+ <tr>
878
+
879
+ <td class="name"><code>key</code></td>
880
+
881
+
882
+ <td class="type">
883
+
884
+
885
+ <span class="param-type">string</span>
886
+
887
+
888
+
889
+ </td>
890
+
891
+
892
+
893
+
894
+
895
+ <td class="description last">The error key (e.g., "INVALID_EMAIL", "UNDERAGE")</td>
896
+ </tr>
897
+
898
+
899
+ </tbody>
900
+ </table>
901
+
902
+
903
+
904
+
905
+
906
+
907
+ <dl class="details">
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+ <dt class="tag-source">Source:</dt>
935
+ <dd class="tag-source"><ul class="dummy"><li>
936
+ <a href="utils_errorMessages.js.html">utils/errorMessages.js</a>, <a href="utils_errorMessages.js.html#line35">line 35</a>
937
+ </li></ul></dd>
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+ </dl>
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ <h5>Returns:</h5>
962
+
963
+
964
+ <div class="param-desc">
965
+ The corresponding error message, or "Unknown error" if the key does not exist
966
+ </div>
967
+
968
+
969
+
970
+ <dl>
971
+ <dt>
972
+ Type
973
+ </dt>
974
+ <dd>
975
+
976
+ <span class="param-type">string</span>
977
+
978
+
979
+ </dd>
980
+ </dl>
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+ <h4 class="name" id="validateAge"><span class="type-signature"></span>validateAge<span class="signature">(birthDate)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+ <div class="description">
1002
+ Validates a person's age based on birth date.
1003
+ </div>
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ <h5>Parameters:</h5>
1014
+
1015
+
1016
+ <table class="params">
1017
+ <thead>
1018
+ <tr>
1019
+
1020
+ <th>Name</th>
1021
+
1022
+
1023
+ <th>Type</th>
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+ <th class="last">Description</th>
1030
+ </tr>
1031
+ </thead>
1032
+
1033
+ <tbody>
1034
+
1035
+
1036
+ <tr>
1037
+
1038
+ <td class="name"><code>birthDate</code></td>
1039
+
1040
+
1041
+ <td class="type">
1042
+
1043
+
1044
+ <span class="param-type">Date</span>
1045
+
1046
+
1047
+
1048
+ </td>
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+ <td class="description last">Date of birth</td>
1055
+ </tr>
1056
+
1057
+
1058
+ </tbody>
1059
+ </table>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ <dl class="details">
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+ <dt class="tag-source">Source:</dt>
1094
+ <dd class="tag-source"><ul class="dummy"><li>
1095
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line56">line 56</a>
1096
+ </li></ul></dd>
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+ </dl>
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+ <h5>Throws:</h5>
1119
+ <ul>
1120
+ <li>
1121
+
1122
+ <dl>
1123
+ <dt>
1124
+ <div class="param-desc">
1125
+ INVALID_DATE - If birthDate is not a valid Date object or cannot be parsed
1126
+ </div>
1127
+ </dt>
1128
+ <dd></dd>
1129
+ <dt>
1130
+ <dl>
1131
+ <dt>
1132
+ Type
1133
+ </dt>
1134
+ <dd>
1135
+
1136
+ <span class="param-type">TypeError</span>
1137
+
1138
+
1139
+ </dd>
1140
+ </dl>
1141
+ </dt>
1142
+ <dd></dd>
1143
+ </dl>
1144
+
1145
+ </li>
1146
+
1147
+ <li>
1148
+
1149
+ <dl>
1150
+ <dt>
1151
+ <div class="param-desc">
1152
+ FUTURE_DATE - If birthDate is in the future
1153
+ </div>
1154
+ </dt>
1155
+ <dd></dd>
1156
+ <dt>
1157
+ <dl>
1158
+ <dt>
1159
+ Type
1160
+ </dt>
1161
+ <dd>
1162
+
1163
+ <span class="param-type">Error</span>
1164
+
1165
+
1166
+ </dd>
1167
+ </dl>
1168
+ </dt>
1169
+ <dd></dd>
1170
+ </dl>
1171
+
1172
+ </li>
1173
+
1174
+ <li>
1175
+
1176
+ <dl>
1177
+ <dt>
1178
+ <div class="param-desc">
1179
+ BIRTHDATE_TOO_OLD - If birthDate is before 1900
1180
+ </div>
1181
+ </dt>
1182
+ <dd></dd>
1183
+ <dt>
1184
+ <dl>
1185
+ <dt>
1186
+ Type
1187
+ </dt>
1188
+ <dd>
1189
+
1190
+ <span class="param-type">Error</span>
1191
+
1192
+
1193
+ </dd>
1194
+ </dl>
1195
+ </dt>
1196
+ <dd></dd>
1197
+ </dl>
1198
+
1199
+ </li>
1200
+
1201
+ <li>
1202
+
1203
+ <dl>
1204
+ <dt>
1205
+ <div class="param-desc">
1206
+ UNDERAGE - If age < 18
1207
+ </div>
1208
+ </dt>
1209
+ <dd></dd>
1210
+ <dt>
1211
+ <dl>
1212
+ <dt>
1213
+ Type
1214
+ </dt>
1215
+ <dd>
1216
+
1217
+ <span class="param-type">Error</span>
1218
+
1219
+
1220
+ </dd>
1221
+ </dl>
1222
+ </dt>
1223
+ <dd></dd>
1224
+ </dl>
1225
+
1226
+ </li>
1227
+ </ul>
1228
+
1229
+
1230
+ <h5>Returns:</h5>
1231
+
1232
+
1233
+ <div class="param-desc">
1234
+ Returns true if age is 18 or older
1235
+ </div>
1236
+
1237
+
1238
+
1239
+ <dl>
1240
+ <dt>
1241
+ Type
1242
+ </dt>
1243
+ <dd>
1244
+
1245
+ <span class="param-type">boolean</span>
1246
+
1247
+
1248
+ </dd>
1249
+ </dl>
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+ <h4 class="name" id="validateCity"><span class="type-signature"></span>validateCity<span class="signature">(city)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+ <div class="description">
1271
+ Validate a city name.
1272
+ </div>
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+ <h5>Parameters:</h5>
1283
+
1284
+
1285
+ <table class="params">
1286
+ <thead>
1287
+ <tr>
1288
+
1289
+ <th>Name</th>
1290
+
1291
+
1292
+ <th>Type</th>
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+ <th class="last">Description</th>
1299
+ </tr>
1300
+ </thead>
1301
+
1302
+ <tbody>
1303
+
1304
+
1305
+ <tr>
1306
+
1307
+ <td class="name"><code>city</code></td>
1308
+
1309
+
1310
+ <td class="type">
1311
+
1312
+
1313
+ <span class="param-type">string</span>
1314
+
1315
+
1316
+
1317
+ </td>
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+ <td class="description last">The city name to validate</td>
1324
+ </tr>
1325
+
1326
+
1327
+ </tbody>
1328
+ </table>
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+ <dl class="details">
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+ <dt class="tag-source">Source:</dt>
1363
+ <dd class="tag-source"><ul class="dummy"><li>
1364
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line96">line 96</a>
1365
+ </li></ul></dd>
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+ </dl>
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+ <h5>Throws:</h5>
1388
+ <ul>
1389
+ <li>
1390
+
1391
+ <dl>
1392
+ <dt>
1393
+ <div class="param-desc">
1394
+ INVALID_CITY if format is incorrect
1395
+ </div>
1396
+ </dt>
1397
+ <dd></dd>
1398
+ <dt>
1399
+ <dl>
1400
+ <dt>
1401
+ Type
1402
+ </dt>
1403
+ <dd>
1404
+
1405
+ <span class="param-type">Error</span>
1406
+
1407
+
1408
+ </dd>
1409
+ </dl>
1410
+ </dt>
1411
+ <dd></dd>
1412
+ </dl>
1413
+
1414
+ </li>
1415
+
1416
+ <li>
1417
+
1418
+ <dl>
1419
+ <dt>
1420
+ <div class="param-desc">
1421
+ XSS_DETECTED if a basic XSS pattern is detected
1422
+ </div>
1423
+ </dt>
1424
+ <dd></dd>
1425
+ <dt>
1426
+ <dl>
1427
+ <dt>
1428
+ Type
1429
+ </dt>
1430
+ <dd>
1431
+
1432
+ <span class="param-type">Error</span>
1433
+
1434
+
1435
+ </dd>
1436
+ </dl>
1437
+ </dt>
1438
+ <dd></dd>
1439
+ </dl>
1440
+
1441
+ </li>
1442
+ </ul>
1443
+
1444
+
1445
+ <h5>Returns:</h5>
1446
+
1447
+
1448
+ <div class="param-desc">
1449
+ true if valid
1450
+ </div>
1451
+
1452
+
1453
+
1454
+ <dl>
1455
+ <dt>
1456
+ Type
1457
+ </dt>
1458
+ <dd>
1459
+
1460
+ <span class="param-type">boolean</span>
1461
+
1462
+
1463
+ </dd>
1464
+ </dl>
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+ <h4 class="name" id="validateEmail"><span class="type-signature"></span>validateEmail<span class="signature">(email)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+ <div class="description">
1486
+ Validates an email address.
1487
+ </div>
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+ <h5>Parameters:</h5>
1498
+
1499
+
1500
+ <table class="params">
1501
+ <thead>
1502
+ <tr>
1503
+
1504
+ <th>Name</th>
1505
+
1506
+
1507
+ <th>Type</th>
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+ <th class="last">Description</th>
1514
+ </tr>
1515
+ </thead>
1516
+
1517
+ <tbody>
1518
+
1519
+
1520
+ <tr>
1521
+
1522
+ <td class="name"><code>email</code></td>
1523
+
1524
+
1525
+ <td class="type">
1526
+
1527
+
1528
+ <span class="param-type">string</span>
1529
+
1530
+
1531
+
1532
+ </td>
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <td class="description last">Email to validate</td>
1539
+ </tr>
1540
+
1541
+
1542
+ </tbody>
1543
+ </table>
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+ <dl class="details">
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ <dt class="tag-source">Source:</dt>
1578
+ <dd class="tag-source"><ul class="dummy"><li>
1579
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line129">line 129</a>
1580
+ </li></ul></dd>
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+ </dl>
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+ <h5>Throws:</h5>
1603
+
1604
+
1605
+
1606
+ <dl>
1607
+ <dt>
1608
+ <div class="param-desc">
1609
+ Throws "INVALID_EMAIL" if email format is incorrect
1610
+ </div>
1611
+ </dt>
1612
+ <dd></dd>
1613
+ <dt>
1614
+ <dl>
1615
+ <dt>
1616
+ Type
1617
+ </dt>
1618
+ <dd>
1619
+
1620
+ <span class="param-type">Error</span>
1621
+
1622
+
1623
+ </dd>
1624
+ </dl>
1625
+ </dt>
1626
+ <dd></dd>
1627
+ </dl>
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+ <h5>Returns:</h5>
1634
+
1635
+
1636
+ <div class="param-desc">
1637
+ Returns true if email is valid
1638
+ </div>
1639
+
1640
+
1641
+
1642
+ <dl>
1643
+ <dt>
1644
+ Type
1645
+ </dt>
1646
+ <dd>
1647
+
1648
+ <span class="param-type">boolean</span>
1649
+
1650
+
1651
+ </dd>
1652
+ </dl>
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+ <h4 class="name" id="validateName"><span class="type-signature"></span>validateName<span class="signature">(name, type)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+ <div class="description">
1674
+ Validate a name (first or last) and return specific error messages
1675
+ </div>
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+ <h5>Parameters:</h5>
1686
+
1687
+
1688
+ <table class="params">
1689
+ <thead>
1690
+ <tr>
1691
+
1692
+ <th>Name</th>
1693
+
1694
+
1695
+ <th>Type</th>
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+ <th class="last">Description</th>
1702
+ </tr>
1703
+ </thead>
1704
+
1705
+ <tbody>
1706
+
1707
+
1708
+ <tr>
1709
+
1710
+ <td class="name"><code>name</code></td>
1711
+
1712
+
1713
+ <td class="type">
1714
+
1715
+
1716
+ <span class="param-type">string</span>
1717
+
1718
+
1719
+
1720
+ </td>
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+ <td class="description last">The name to validate</td>
1727
+ </tr>
1728
+
1729
+
1730
+
1731
+ <tr>
1732
+
1733
+ <td class="name"><code>type</code></td>
1734
+
1735
+
1736
+ <td class="type">
1737
+
1738
+
1739
+ <span class="param-type">string</span>
1740
+
1741
+
1742
+
1743
+ </td>
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+ <td class="description last">"firstName" or "lastName" for custom error messages</td>
1750
+ </tr>
1751
+
1752
+
1753
+ </tbody>
1754
+ </table>
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+ <dl class="details">
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+ <dt class="tag-source">Source:</dt>
1789
+ <dd class="tag-source"><ul class="dummy"><li>
1790
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line113">line 113</a>
1791
+ </li></ul></dd>
1792
+
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+
1799
+ </dl>
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+ <h5>Throws:</h5>
1814
+
1815
+
1816
+
1817
+ <dl>
1818
+ <dt>
1819
+ <div class="param-desc">
1820
+ with message INVALID_FIRST_NAME or INVALID_LAST_NAME, XSS_DETECTED
1821
+ </div>
1822
+ </dt>
1823
+ <dd></dd>
1824
+ <dt>
1825
+ <dl>
1826
+ <dt>
1827
+ Type
1828
+ </dt>
1829
+ <dd>
1830
+
1831
+ <span class="param-type">Error</span>
1832
+
1833
+
1834
+ </dd>
1835
+ </dl>
1836
+ </dt>
1837
+ <dd></dd>
1838
+ </dl>
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+ <h5>Returns:</h5>
1845
+
1846
+
1847
+ <div class="param-desc">
1848
+ true if valid
1849
+ </div>
1850
+
1851
+
1852
+
1853
+ <dl>
1854
+ <dt>
1855
+ Type
1856
+ </dt>
1857
+ <dd>
1858
+
1859
+ <span class="param-type">boolean</span>
1860
+
1861
+
1862
+ </dd>
1863
+ </dl>
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+ <h4 class="name" id="validatePerson"><span class="type-signature"></span>validatePerson<span class="signature">(person)</span><span class="type-signature"> &rarr; {true}</span></h4>
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+ <div class="description">
1885
+ Validates all parameters for a person
1886
+ </div>
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+ <h5>Parameters:</h5>
1897
+
1898
+
1899
+ <table class="params">
1900
+ <thead>
1901
+ <tr>
1902
+
1903
+ <th>Name</th>
1904
+
1905
+
1906
+ <th>Type</th>
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+ <th class="last">Description</th>
1913
+ </tr>
1914
+ </thead>
1915
+
1916
+ <tbody>
1917
+
1918
+
1919
+ <tr>
1920
+
1921
+ <td class="name"><code>person</code></td>
1922
+
1923
+
1924
+ <td class="type">
1925
+
1926
+
1927
+ <span class="param-type">Object</span>
1928
+
1929
+
1930
+
1931
+ </td>
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+ <td class="description last">{ birthDate, zip, identity, email }
1938
+ <h6>Properties</h6>
1939
+
1940
+
1941
+ <table class="params">
1942
+ <thead>
1943
+ <tr>
1944
+
1945
+ <th>Name</th>
1946
+
1947
+
1948
+ <th>Type</th>
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+ <th class="last">Description</th>
1955
+ </tr>
1956
+ </thead>
1957
+
1958
+ <tbody>
1959
+
1960
+
1961
+ <tr>
1962
+
1963
+ <td class="name"><code>birthDate</code></td>
1964
+
1965
+
1966
+ <td class="type">
1967
+
1968
+
1969
+ <span class="param-type">Date</span>
1970
+
1971
+
1972
+
1973
+ </td>
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+ <td class="description last">Date of birth</td>
1980
+ </tr>
1981
+
1982
+
1983
+
1984
+ <tr>
1985
+
1986
+ <td class="name"><code>zip</code></td>
1987
+
1988
+
1989
+ <td class="type">
1990
+
1991
+
1992
+ <span class="param-type">string</span>
1993
+
1994
+
1995
+
1996
+ </td>
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+ <td class="description last">French zip code (5 digits)</td>
2003
+ </tr>
2004
+
2005
+
2006
+
2007
+ <tr>
2008
+
2009
+ <td class="name"><code>city</code></td>
2010
+
2011
+
2012
+ <td class="type">
2013
+
2014
+
2015
+ <span class="param-type">string</span>
2016
+
2017
+
2018
+
2019
+ </td>
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+ <td class="description last">City name (letters, accents, espace, hyphens)</td>
2026
+ </tr>
2027
+
2028
+
2029
+
2030
+ <tr>
2031
+
2032
+ <td class="name"><code>firstName</code></td>
2033
+
2034
+
2035
+ <td class="type">
2036
+
2037
+
2038
+ <span class="param-type">string</span>
2039
+
2040
+
2041
+
2042
+ </td>
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+ <td class="description last">First name (letters, accents, hyphens)</td>
2049
+ </tr>
2050
+
2051
+
2052
+
2053
+ <tr>
2054
+
2055
+ <td class="name"><code>lastName</code></td>
2056
+
2057
+
2058
+ <td class="type">
2059
+
2060
+
2061
+ <span class="param-type">string</span>
2062
+
2063
+
2064
+
2065
+ </td>
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+ <td class="description last">Last name (letters, accents, hyphens)</td>
2072
+ </tr>
2073
+
2074
+
2075
+
2076
+ <tr>
2077
+
2078
+ <td class="name"><code>email</code></td>
2079
+
2080
+
2081
+ <td class="type">
2082
+
2083
+
2084
+ <span class="param-type">string</span>
2085
+
2086
+
2087
+
2088
+ </td>
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+ <td class="description last">Email address</td>
2095
+ </tr>
2096
+
2097
+
2098
+ </tbody>
2099
+ </table>
2100
+
2101
+ </td>
2102
+ </tr>
2103
+
2104
+
2105
+ </tbody>
2106
+ </table>
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ <dl class="details">
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+ <dt class="tag-source">Source:</dt>
2141
+ <dd class="tag-source"><ul class="dummy"><li>
2142
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line15">line 15</a>
2143
+ </li></ul></dd>
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+ </dl>
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+ <h5>Throws:</h5>
2166
+
2167
+
2168
+
2169
+ <dl>
2170
+ <dt>
2171
+ <div class="param-desc">
2172
+ MISSING_PARAM, PARAM_TYPE_ERROR, UNDERAGE, INVALID_ZIP, INVALID_CITY, INVALID_FIRST_NAME, INVALID_LAST_NAME, XSS_DETECTED, INVALID_EMAIL
2173
+ </div>
2174
+ </dt>
2175
+ <dd></dd>
2176
+ <dt>
2177
+ <dl>
2178
+ <dt>
2179
+ Type
2180
+ </dt>
2181
+ <dd>
2182
+
2183
+ <span class="param-type">Error</span>
2184
+
2185
+
2186
+ </dd>
2187
+ </dl>
2188
+ </dt>
2189
+ <dd></dd>
2190
+ </dl>
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+ <h5>Returns:</h5>
2197
+
2198
+
2199
+ <div class="param-desc">
2200
+ if everything is valid
2201
+ </div>
2202
+
2203
+
2204
+
2205
+ <dl>
2206
+ <dt>
2207
+ Type
2208
+ </dt>
2209
+ <dd>
2210
+
2211
+ <span class="param-type">true</span>
2212
+
2213
+
2214
+ </dd>
2215
+ </dl>
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+
2229
+ <h4 class="name" id="validateZipCode"><span class="type-signature"></span>validateZipCode<span class="signature">(zip)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+ <div class="description">
2237
+ Validates a zip code.
2238
+ </div>
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+ <h5>Parameters:</h5>
2249
+
2250
+
2251
+ <table class="params">
2252
+ <thead>
2253
+ <tr>
2254
+
2255
+ <th>Name</th>
2256
+
2257
+
2258
+ <th>Type</th>
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+ <th class="last">Description</th>
2265
+ </tr>
2266
+ </thead>
2267
+
2268
+ <tbody>
2269
+
2270
+
2271
+ <tr>
2272
+
2273
+ <td class="name"><code>zip</code></td>
2274
+
2275
+
2276
+ <td class="type">
2277
+
2278
+
2279
+ <span class="param-type">string</span>
2280
+
2281
+
2282
+
2283
+ </td>
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+ <td class="description last">Zip code</td>
2290
+ </tr>
2291
+
2292
+
2293
+ </tbody>
2294
+ </table>
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+ <dl class="details">
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+ <dt class="tag-source">Source:</dt>
2329
+ <dd class="tag-source"><ul class="dummy"><li>
2330
+ <a href="domain_validator.js.html">domain/validator.js</a>, <a href="domain_validator.js.html#line80">line 80</a>
2331
+ </li></ul></dd>
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+ </dl>
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+
2352
+
2353
+ <h5>Throws:</h5>
2354
+
2355
+
2356
+
2357
+ <dl>
2358
+ <dt>
2359
+ <div class="param-desc">
2360
+ Throws "INVALID_ZIP" if zip is invalid
2361
+ </div>
2362
+ </dt>
2363
+ <dd></dd>
2364
+ <dt>
2365
+ <dl>
2366
+ <dt>
2367
+ Type
2368
+ </dt>
2369
+ <dd>
2370
+
2371
+ <span class="param-type">Error</span>
2372
+
2373
+
2374
+ </dd>
2375
+ </dl>
2376
+ </dt>
2377
+ <dd></dd>
2378
+ </dl>
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+ <h5>Returns:</h5>
2385
+
2386
+
2387
+ <div class="param-desc">
2388
+ Returns true if zip is valid
2389
+ </div>
2390
+
2391
+
2392
+
2393
+ <dl>
2394
+ <dt>
2395
+ Type
2396
+ </dt>
2397
+ <dd>
2398
+
2399
+ <span class="param-type">boolean</span>
2400
+
2401
+
2402
+ </dd>
2403
+ </dl>
2404
+
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+
2416
+
2417
+ </article>
2418
+
2419
+ </section>
2420
+
2421
+
2422
+
2423
+
2424
+ </div>
2425
+
2426
+ <nav>
2427
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-App.html">App</a></li><li><a href="module-Home.html">Home</a></li><li><a href="module-PersonForm.html">PersonForm</a></li><li><a href="module-Register.html">Register</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addPerson">addPerson</a></li><li><a href="global.html#calculateAge">calculateAge</a></li><li><a href="global.html#errorMessages">errorMessages</a></li><li><a href="global.html#getErrorMessage">getErrorMessage</a></li><li><a href="global.html#validateAge">validateAge</a></li><li><a href="global.html#validateCity">validateCity</a></li><li><a href="global.html#validateEmail">validateEmail</a></li><li><a href="global.html#validateName">validateName</a></li><li><a href="global.html#validatePerson">validatePerson</a></li><li><a href="global.html#validateZipCode">validateZipCode</a></li></ul>
2428
+ </nav>
2429
+
2430
+ <br class="clear">
2431
+
2432
+ <footer>
2433
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Feb 20 2026 09:18:58 GMT+0100 (heure normale d’Europe centrale)
2434
+ </footer>
2435
+
2436
+ <script> prettyPrint(); </script>
2437
+ <script src="scripts/linenumber.js"> </script>
2438
+ </body>
2439
+ </html>