namefully 1.1.0 → 1.2.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 (156) hide show
  1. package/dist/example/index.js +2734 -0
  2. package/dist/lib/config.d.ts +121 -0
  3. package/dist/lib/config.js +189 -0
  4. package/dist/lib/config.js.map +1 -0
  5. package/dist/lib/constants.d.ts +4 -0
  6. package/dist/lib/constants.js +31 -0
  7. package/dist/lib/constants.js.map +1 -0
  8. package/dist/lib/error.d.ts +172 -0
  9. package/dist/lib/error.js +210 -0
  10. package/dist/lib/error.js.map +1 -0
  11. package/dist/lib/example/example.d.ts +1 -0
  12. package/dist/lib/full-name.d.ts +71 -0
  13. package/dist/lib/full-name.js +147 -0
  14. package/dist/lib/full-name.js.map +1 -0
  15. package/dist/lib/index.d.ts +16 -6
  16. package/dist/lib/index.js +29 -8
  17. package/dist/lib/index.js.map +1 -1
  18. package/dist/lib/name.d.ts +177 -0
  19. package/dist/lib/name.js +322 -0
  20. package/dist/lib/name.js.map +1 -0
  21. package/dist/lib/namefully.d.ts +285 -208
  22. package/dist/lib/namefully.js +576 -576
  23. package/dist/lib/namefully.js.map +1 -1
  24. package/dist/lib/parser.d.ts +46 -0
  25. package/dist/lib/parser.js +173 -0
  26. package/dist/lib/parser.js.map +1 -0
  27. package/dist/lib/src/config.d.ts +121 -0
  28. package/dist/lib/src/constants.d.ts +4 -0
  29. package/dist/lib/src/error.d.ts +172 -0
  30. package/dist/lib/src/full-name.d.ts +71 -0
  31. package/dist/lib/src/index.d.ts +20 -0
  32. package/dist/lib/src/name.d.ts +177 -0
  33. package/dist/lib/src/namefully.d.ts +379 -0
  34. package/dist/lib/src/parser.d.ts +46 -0
  35. package/dist/lib/src/types.d.ts +127 -0
  36. package/dist/lib/src/utils.d.ts +63 -0
  37. package/dist/lib/src/validator.d.ts +66 -0
  38. package/dist/lib/types.d.ts +127 -0
  39. package/dist/lib/types.js +181 -0
  40. package/dist/lib/types.js.map +1 -0
  41. package/dist/lib/utils.d.ts +63 -0
  42. package/dist/lib/utils.js +138 -0
  43. package/dist/lib/utils.js.map +1 -0
  44. package/dist/lib/validator.d.ts +66 -0
  45. package/dist/lib/validator.js +332 -0
  46. package/dist/lib/validator.js.map +1 -0
  47. package/dist/umd/namefully.js +2118 -2700
  48. package/dist/umd/namefully.js.map +1 -1
  49. package/dist/umd/namefully.min.js +1 -1
  50. package/dist/umd/namefully.min.js.LICENSE.txt +1 -18
  51. package/dist/umd/namefully.min.js.map +1 -1
  52. package/package.json +50 -54
  53. package/readme.md +132 -162
  54. package/changelog.md +0 -134
  55. package/dist/lib/core/constants.d.ts +0 -48
  56. package/dist/lib/core/constants.js +0 -101
  57. package/dist/lib/core/constants.js.map +0 -1
  58. package/dist/lib/core/core.d.ts +0 -17
  59. package/dist/lib/core/core.js +0 -24
  60. package/dist/lib/core/core.js.map +0 -1
  61. package/dist/lib/core/index.d.ts +0 -9
  62. package/dist/lib/core/index.js +0 -13
  63. package/dist/lib/core/index.js.map +0 -1
  64. package/dist/lib/core/parsers/array-name.parser.d.ts +0 -41
  65. package/dist/lib/core/parsers/array-name.parser.js +0 -86
  66. package/dist/lib/core/parsers/array-name.parser.js.map +0 -1
  67. package/dist/lib/core/parsers/array-string.parser.d.ts +0 -47
  68. package/dist/lib/core/parsers/array-string.parser.js +0 -95
  69. package/dist/lib/core/parsers/array-string.parser.js.map +0 -1
  70. package/dist/lib/core/parsers/index.d.ts +0 -11
  71. package/dist/lib/core/parsers/index.js +0 -11
  72. package/dist/lib/core/parsers/index.js.map +0 -1
  73. package/dist/lib/core/parsers/nama.parser.d.ts +0 -33
  74. package/dist/lib/core/parsers/nama.parser.js +0 -74
  75. package/dist/lib/core/parsers/nama.parser.js.map +0 -1
  76. package/dist/lib/core/parsers/parser.d.ts +0 -28
  77. package/dist/lib/core/parsers/parser.js +0 -3
  78. package/dist/lib/core/parsers/parser.js.map +0 -1
  79. package/dist/lib/core/parsers/string.parser.d.ts +0 -60
  80. package/dist/lib/core/parsers/string.parser.js +0 -62
  81. package/dist/lib/core/parsers/string.parser.js.map +0 -1
  82. package/dist/lib/core/utils.d.ts +0 -52
  83. package/dist/lib/core/utils.js +0 -178
  84. package/dist/lib/core/utils.js.map +0 -1
  85. package/dist/lib/models/enums.d.ts +0 -106
  86. package/dist/lib/models/enums.js +0 -114
  87. package/dist/lib/models/enums.js.map +0 -1
  88. package/dist/lib/models/firstname.d.ts +0 -77
  89. package/dist/lib/models/firstname.js +0 -131
  90. package/dist/lib/models/firstname.js.map +0 -1
  91. package/dist/lib/models/fullname.d.ts +0 -73
  92. package/dist/lib/models/fullname.js +0 -99
  93. package/dist/lib/models/fullname.js.map +0 -1
  94. package/dist/lib/models/index.d.ts +0 -13
  95. package/dist/lib/models/index.js +0 -16
  96. package/dist/lib/models/index.js.map +0 -1
  97. package/dist/lib/models/lastname.d.ts +0 -80
  98. package/dist/lib/models/lastname.js +0 -157
  99. package/dist/lib/models/lastname.js.map +0 -1
  100. package/dist/lib/models/misc.d.ts +0 -108
  101. package/dist/lib/models/misc.js +0 -3
  102. package/dist/lib/models/misc.js.map +0 -1
  103. package/dist/lib/models/name.d.ts +0 -76
  104. package/dist/lib/models/name.js +0 -115
  105. package/dist/lib/models/name.js.map +0 -1
  106. package/dist/lib/models/summary.d.ts +0 -26
  107. package/dist/lib/models/summary.js +0 -61
  108. package/dist/lib/models/summary.js.map +0 -1
  109. package/dist/lib/validators/array-name.validator.d.ts +0 -25
  110. package/dist/lib/validators/array-name.validator.js +0 -75
  111. package/dist/lib/validators/array-name.validator.js.map +0 -1
  112. package/dist/lib/validators/array-string.validator.d.ts +0 -43
  113. package/dist/lib/validators/array-string.validator.js +0 -76
  114. package/dist/lib/validators/array-string.validator.js.map +0 -1
  115. package/dist/lib/validators/common/validation-error.d.ts +0 -19
  116. package/dist/lib/validators/common/validation-error.js +0 -26
  117. package/dist/lib/validators/common/validation-error.js.map +0 -1
  118. package/dist/lib/validators/common/validation-rule.d.ts +0 -72
  119. package/dist/lib/validators/common/validation-rule.js +0 -76
  120. package/dist/lib/validators/common/validation-rule.js.map +0 -1
  121. package/dist/lib/validators/common/validation-type.d.ts +0 -24
  122. package/dist/lib/validators/common/validation-type.js +0 -28
  123. package/dist/lib/validators/common/validation-type.js.map +0 -1
  124. package/dist/lib/validators/firstname.validator.d.ts +0 -20
  125. package/dist/lib/validators/firstname.validator.js +0 -29
  126. package/dist/lib/validators/firstname.validator.js.map +0 -1
  127. package/dist/lib/validators/fullname.validator.d.ts +0 -21
  128. package/dist/lib/validators/fullname.validator.js +0 -38
  129. package/dist/lib/validators/fullname.validator.js.map +0 -1
  130. package/dist/lib/validators/index.d.ts +0 -21
  131. package/dist/lib/validators/index.js +0 -35
  132. package/dist/lib/validators/index.js.map +0 -1
  133. package/dist/lib/validators/lastname.validator.d.ts +0 -20
  134. package/dist/lib/validators/lastname.validator.js +0 -29
  135. package/dist/lib/validators/lastname.validator.js.map +0 -1
  136. package/dist/lib/validators/middlename.validator.d.ts +0 -20
  137. package/dist/lib/validators/middlename.validator.js +0 -38
  138. package/dist/lib/validators/middlename.validator.js.map +0 -1
  139. package/dist/lib/validators/nama.validator.d.ts +0 -21
  140. package/dist/lib/validators/nama.validator.js +0 -44
  141. package/dist/lib/validators/nama.validator.js.map +0 -1
  142. package/dist/lib/validators/namon.validator.d.ts +0 -20
  143. package/dist/lib/validators/namon.validator.js +0 -29
  144. package/dist/lib/validators/namon.validator.js.map +0 -1
  145. package/dist/lib/validators/prefix.validator.d.ts +0 -14
  146. package/dist/lib/validators/prefix.validator.js +0 -31
  147. package/dist/lib/validators/prefix.validator.js.map +0 -1
  148. package/dist/lib/validators/string-name.validator.d.ts +0 -20
  149. package/dist/lib/validators/string-name.validator.js +0 -29
  150. package/dist/lib/validators/string-name.validator.js.map +0 -1
  151. package/dist/lib/validators/suffix.validator.d.ts +0 -14
  152. package/dist/lib/validators/suffix.validator.js +0 -31
  153. package/dist/lib/validators/suffix.validator.js.map +0 -1
  154. package/dist/lib/validators/validator.d.ts +0 -13
  155. package/dist/lib/validators/validator.js +0 -9
  156. package/dist/lib/validators/validator.js.map +0 -1
package/changelog.md DELETED
@@ -1,134 +0,0 @@
1
- # Changelog
2
-
3
- This file contains the documentation on the notable changes and bug fixes, and
4
- is formatted following this [standard](https://keepachangelog.com/en/1.0.0/).
5
- This project also adheres to [Semantic Versioning](https://semver.org/).
6
-
7
- ## [1.1.0] - 2020-07-05
8
-
9
- **Added**:
10
-
11
- - Add a full name builder to construct `Namefully`
12
- - Augment a `namon` functionality
13
- - capitalize
14
- - decapitalize
15
- - normalize
16
- - reset
17
- - Add ASCII representations
18
- - Add password-like representations
19
- - Add support for title cases
20
- - Add support for birth names (full name without prefix or suffix)
21
- - Add test coverage for all the API methods
22
- - Update use cases for new features
23
- - Use string formats (`short`, `long`, `official`) when formatting a name
24
-
25
- **Fixed**:
26
-
27
- - Support space in regex
28
- - Use simplified regex
29
- - Support for more than one name parts in a first name
30
- - Revert changes in `compress(...)`: always include a token in the compressed part.
31
- - Switch to MIT License
32
-
33
- ## [1.0.9] - 2020-05-18
34
-
35
- **Added**:
36
-
37
- - Add support for Cyrillic and Greek alphabet
38
-
39
- **Fixed**:
40
-
41
- - Fix validation rules (regex) for specific fields
42
-
43
- ## [1.0.8] - 2020-04-18
44
-
45
- **Added**:
46
-
47
- - Add short API equivalent for `compress` => `zip`
48
- - Add `lastnameFormat` option to config and surname subparts handling
49
- - Refactor return values for `describe` (object instead of string)
50
- - Add support for titling when compressing or zipping
51
-
52
- **Fixed**:
53
-
54
- - Fix missing bypass for fullname validator
55
- - Fix logic for name parts handling in `Firstname` class
56
-
57
- ## [1.0.7] - 2020-03-28
58
-
59
- **Added**:
60
-
61
- - Add `titling` option to config
62
- - Add support for prefixes and suffixes when formatting names
63
- - including a clear cut for (de)-capitalized official names
64
-
65
- **Fixed**:
66
-
67
- - Fix wrong ending reference for suffixes
68
-
69
- ## [1.0.6] - 2020-03-20
70
-
71
- **Added**:
72
-
73
- - Add support for Latin (European and Spanish) names
74
- - Add a bypass to skip validation rules (regex)
75
-
76
- ## [1.0.5] - 2020-03-17
77
-
78
- **Added**:
79
-
80
- - Add optional parameters for the `getFullname` and `getInitials` API;
81
- - Users can forcefully alter order of appearance the full name and initials;
82
- - Add optional parameters for the `describe` API;
83
- - Users can either decide to describe the full name or some specific name parts;
84
- - Introduce new option in `Namefully` creation;
85
- - `ending` accepts a separator for to mark an ending suffix;
86
- - Add some jsdoc comments to document the API;
87
- - Add some aliases to the API.
88
-
89
- **Fixed**:
90
-
91
- - Fix validation error for string array input using wrong/insufficient entries;
92
- - Fix options in `Namefully` creation;
93
- - `orderedBy` accepts now two name parts only (first or last name);
94
- - `separator` works as the splitting name factor;
95
- - Fix the order of appearance for the full name and `compress` API.
96
-
97
- ## [1.0.3] - 2020-03-11
98
-
99
- **Fixed**:
100
-
101
- - Fix typescript compilation for ES2015, UMD
102
- - Fix `namefully` version
103
-
104
- ## [1.0.2] - 2020-03-11
105
-
106
- **Added**:
107
-
108
- - Add use cases
109
- - Add test coverage
110
- - Add setup CI/CD
111
- - Add support for UMD
112
- - Make validation error message more explicit
113
-
114
- ## [1.0.1] - 2020-03-07
115
-
116
- **Fixed**:
117
-
118
- - Fix typo in readme
119
- - Fix build system for npm
120
-
121
- ## [1.0.0] - 2020-03-07
122
-
123
- Initial version
124
-
125
- [1.1.0]: https://github.com/ralflorent/namefully/compare/v1.0.9...v1.1.0
126
- [1.0.9]: https://github.com/ralflorent/namefully/compare/v1.0.8...v1.0.9
127
- [1.0.8]: https://github.com/ralflorent/namefully/compare/v1.0.7...v1.0.8
128
- [1.0.7]: https://github.com/ralflorent/namefully/compare/v1.0.6...v1.0.7
129
- [1.0.6]: https://github.com/ralflorent/namefully/compare/v1.0.5...v1.0.6
130
- [1.0.5]: https://github.com/ralflorent/namefully/compare/v1.0.3...v1.0.5
131
- [1.0.3]: https://github.com/ralflorent/namefully/compare/v1.0.2...v1.0.3
132
- [1.0.2]: https://github.com/ralflorent/namefully/compare/v1.0.1...v1.0.2
133
- [1.0.1]: https://github.com/ralflorent/namefully/compare/v1.0.0...v1.0.1
134
- [1.0.0]: https://github.com/ralflorent/namefully/releases/tag/v1.0.0
@@ -1,48 +0,0 @@
1
- /**
2
- * Constants
3
- *
4
- * Created on March 07, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- import { Separator, Config, NameIndex } from '../models/index';
8
- import { CharSet } from './core';
9
- /**
10
- * The current version of `Namefully`.
11
- * @constant
12
- */
13
- export declare const version = "1.1.0";
14
- /**
15
- * CONFIG
16
- * @constant
17
- * @type {Config}
18
- * @default
19
- */
20
- export declare const CONFIG: Config;
21
- /**
22
- * NAME_INDEX
23
- * @constant
24
- * @type {NameIndex}
25
- * @default
26
- */
27
- export declare const NAME_INDEX: NameIndex;
28
- export declare const FIRST_LAST_NAME_INDEX = 2;
29
- export declare const LAST_FIRST_NAME_INDEX = 2;
30
- export declare const FIRST_MIDDLE_LAST_NAME_INDEX = 3;
31
- export declare const LAST_FIRST_MIDDLE_NAME_INDEX = 3;
32
- export declare const PREFIX_FIRST_MIDDLE_LAST_NAME_INDEX = 4;
33
- export declare const PREFIX_LAST_FIRST_MIDDLE_NAME_INDEX = 4;
34
- export declare const PREFIX_FIRST_MIDDLE_LAST_SUFFIX_NAME_INDEX = 5;
35
- export declare const PREFIX_LAST_FIRST_MIDDLE_SUFFIX_NAME_INDEX = 5;
36
- export declare const MIN_NUMBER_NAME_PART = 2;
37
- export declare const MAX_NUMBER_NAME_PART = 5;
38
- /**
39
- * RESTRICTED_CHARS
40
- * @constant
41
- * @default
42
- */
43
- export declare const RESTRICTED_CHARS: readonly [Separator.SPACE, Separator.SINGLE_QUOTE, Separator.HYPHEN, Separator.PERIOD, Separator.COMMA];
44
- /**
45
- * PASSWORD_MAPPER
46
- * @constant
47
- */
48
- export declare const PASSWORD_MAPPER: Map<string, CharSet<string>>;
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * Constants
5
- *
6
- * Created on March 07, 2020
7
- * @author Ralph Florent <ralflornt@gmail.com>
8
- */
9
- const index_1 = require("../models/index");
10
- const core_1 = require("./core");
11
- /**
12
- * The current version of `Namefully`.
13
- * @constant
14
- */
15
- exports.version = '1.1.0';
16
- /**
17
- * CONFIG
18
- * @constant
19
- * @type {Config}
20
- * @default
21
- */
22
- exports.CONFIG = {
23
- orderedBy: 'firstname',
24
- separator: index_1.Separator.SPACE,
25
- titling: 'uk',
26
- ending: false,
27
- bypass: false,
28
- lastnameFormat: 'father',
29
- };
30
- /**
31
- * NAME_INDEX
32
- * @constant
33
- * @type {NameIndex}
34
- * @default
35
- */
36
- exports.NAME_INDEX = {
37
- prefix: 0,
38
- firstname: 1,
39
- middlename: 2,
40
- lastname: 3,
41
- suffix: 4,
42
- };
43
- exports.FIRST_LAST_NAME_INDEX = 2;
44
- exports.LAST_FIRST_NAME_INDEX = 2;
45
- exports.FIRST_MIDDLE_LAST_NAME_INDEX = 3;
46
- exports.LAST_FIRST_MIDDLE_NAME_INDEX = 3;
47
- exports.PREFIX_FIRST_MIDDLE_LAST_NAME_INDEX = 4;
48
- exports.PREFIX_LAST_FIRST_MIDDLE_NAME_INDEX = 4;
49
- exports.PREFIX_FIRST_MIDDLE_LAST_SUFFIX_NAME_INDEX = 5;
50
- exports.PREFIX_LAST_FIRST_MIDDLE_SUFFIX_NAME_INDEX = 5;
51
- exports.MIN_NUMBER_NAME_PART = 2;
52
- exports.MAX_NUMBER_NAME_PART = 5;
53
- /**
54
- * RESTRICTED_CHARS
55
- * @constant
56
- * @default
57
- */
58
- exports.RESTRICTED_CHARS = [
59
- index_1.Separator.SPACE,
60
- index_1.Separator.SINGLE_QUOTE,
61
- index_1.Separator.HYPHEN,
62
- index_1.Separator.PERIOD,
63
- index_1.Separator.COMMA,
64
- ];
65
- /**
66
- * PASSWORD_MAPPER
67
- * @constant
68
- */
69
- exports.PASSWORD_MAPPER = new Map([
70
- ['a', new core_1.CharSet(['a', 'A', '@', '4'])],
71
- ['b', new core_1.CharSet(['b', 'B', '6', '|)', '|3', '|>'])],
72
- ['c', new core_1.CharSet(['c', 'C', '(', '<'])],
73
- ['d', new core_1.CharSet(['d', 'D', '(|', '<|'])],
74
- ['e', new core_1.CharSet(['e', 'E', '3', '*'])],
75
- ['f', new core_1.CharSet(['f', 'F', '7', '(-'])],
76
- ['g', new core_1.CharSet(['g', 'G', '8', '&', '**'])],
77
- ['h', new core_1.CharSet(['h', 'H', '#', '|-|'])],
78
- ['i', new core_1.CharSet(['i', 'I', '!', '1', '|', '--'])],
79
- ['j', new core_1.CharSet(['j', 'J', ')', '1'])],
80
- ['k', new core_1.CharSet(['k', 'K', '%', '|<'])],
81
- ['l', new core_1.CharSet(['l', 'L', '1', '!', '|_'])],
82
- ['m', new core_1.CharSet(['m', 'M', '^^', '>>'])],
83
- ['n', new core_1.CharSet(['n', 'N', '!=', '++'])],
84
- ['o', new core_1.CharSet(['o', 'O', '0', '.', '*'])],
85
- ['p', new core_1.CharSet(['p', 'P', '|3', '|)', '|>'])],
86
- ['q', new core_1.CharSet(['q', 'Q', '&', '9', '<|'])],
87
- ['r', new core_1.CharSet(['r', 'R', '7', '&'])],
88
- ['s', new core_1.CharSet(['s', 'S', '5', '$'])],
89
- ['t', new core_1.CharSet(['t', 'T', '7', '['])],
90
- ['u', new core_1.CharSet(['u', 'U', '|_|', 'v'])],
91
- ['v', new core_1.CharSet(['v', 'V', '>', '<', '^'])],
92
- ['w', new core_1.CharSet(['w', 'W', '[|]', 'vv'])],
93
- ['x', new core_1.CharSet(['x', 'X', '%', '#'])],
94
- ['z', new core_1.CharSet(['z', 'Z', '2', '!='])],
95
- ['$', new core_1.CharSet([
96
- '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '+', '[',
97
- '_', '=', '{', '}', ':', ';', ',', '.', '<', '>', '|', '~', ']',
98
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
99
- ])],
100
- ]);
101
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA+D;AAC/D,iCAAiC;AAEjC;;;GAGG;AACU,QAAA,OAAO,GAAG,OAAO,CAAA;AAE9B;;;;;GAKG;AACU,QAAA,MAAM,GAAW;IAC1B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,iBAAS,CAAC,KAAK;IAC1B,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,cAAc,EAAE,QAAQ;CAClB,CAAA;AAEV;;;;;GAKG;AACU,QAAA,UAAU,GAAc;IACjC,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,CAAC;CACH,CAAA;AAEG,QAAA,qBAAqB,GAAG,CAAC,CAAA;AACzB,QAAA,qBAAqB,GAAG,CAAC,CAAA;AACzB,QAAA,4BAA4B,GAAG,CAAC,CAAA;AAChC,QAAA,4BAA4B,GAAG,CAAC,CAAA;AAChC,QAAA,mCAAmC,GAAG,CAAC,CAAA;AACvC,QAAA,mCAAmC,GAAG,CAAC,CAAA;AACvC,QAAA,0CAA0C,GAAG,CAAC,CAAA;AAC9C,QAAA,0CAA0C,GAAG,CAAC,CAAA;AAE9C,QAAA,oBAAoB,GAAG,CAAC,CAAA;AACxB,QAAA,oBAAoB,GAAG,CAAC,CAAA;AAErC;;;;GAIG;AACU,QAAA,gBAAgB,GAAG;IAC5B,iBAAS,CAAC,KAAK;IACf,iBAAS,CAAC,YAAY;IACtB,iBAAS,CAAC,MAAM;IAChB,iBAAS,CAAC,MAAM;IAChB,iBAAS,CAAC,KAAK;CACT,CAAA;AAEV;;;GAGG;AACU,QAAA,eAAe,GAAG,IAAI,GAAG,CAAC;IACnC,CAAE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AG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAE;IAC/C,CAAE,GAAG,EAAE,IAAI,cAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAE;IAC7C,CAAE,GAAG,EAAE,IAAI,cAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAE;IAC1C,CAAE,GAAG,EAAE,IAAI,cAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAE;IAC3C,CAAE,GAAG,EAAE,IAAI,cAAO,CAAC;YACf,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;YAC/D,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;YAC/D,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;SACnD,CAAC,CAAC;CACN,CAAC,CAAA"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Core contents
3
- *
4
- * Created on June 30, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- /**
8
- * Extends `Set` functionalities by shuffling the set values and return one
9
- */
10
- export declare class CharSet<T> extends Set<T> {
11
- random(): T;
12
- }
13
- /**
14
- * Extends `Array` functionalities
15
- */
16
- export declare class CharArray<T> extends Array<T> {
17
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /**
3
- * Core contents
4
- *
5
- * Created on June 30, 2020
6
- * @author Ralph Florent <ralflornt@gmail.com>
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- /**
10
- * Extends `Set` functionalities by shuffling the set values and return one
11
- */
12
- class CharSet extends Set {
13
- random() {
14
- return Array.from(this)[Math.floor(Math.random() * this.size)];
15
- }
16
- }
17
- exports.CharSet = CharSet;
18
- /**
19
- * Extends `Array` functionalities
20
- */
21
- class CharArray extends Array {
22
- }
23
- exports.CharArray = CharArray;
24
- //# sourceMappingURL=core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/core/core.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH;;GAEG;AACH,MAAa,OAAW,SAAQ,GAAM;IAClC,MAAM;QACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnE,CAAC;CACJ;AAJD,0BAIC;AAED;;GAEG;AACH,MAAa,SAAa,SAAQ,KAAQ;CAEzC;AAFD,8BAEC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Make all the locals available
3
- *
4
- * Created on March 06, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- export * from './parsers/index';
8
- export * from './utils';
9
- export * from './constants';
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * Make all the locals available
6
- *
7
- * Created on March 06, 2020
8
- * @author Ralph Florent <ralflornt@gmail.com>
9
- */
10
- tslib_1.__exportStar(require("./parsers/index"), exports);
11
- tslib_1.__exportStar(require("./utils"), exports);
12
- tslib_1.__exportStar(require("./constants"), exports);
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,0DAAgC;AAChC,kDAAwB;AACxB,sDAA4B"}
@@ -1,41 +0,0 @@
1
- /**
2
- * An array `Name` parser
3
- *
4
- * Created on March 15, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- import { Name, Fullname, LastnameFormat } from '../../models';
8
- import { Parser } from './parser';
9
- /**
10
- * Represents a `Name[]` parser
11
- * @class
12
- * @implements {Parser<Name[]>}
13
- *
14
- * This parser parses an array of the class `Name` while checking that every part
15
- * plays the role they are supposed to play. The class `Name` is a ready-made
16
- * recipe that saves the how-to parsing for a raw data input.
17
- *
18
- * **NOTE**:
19
- * In this specific case, the user is expected to carefully set each name part
20
- * and submit a high-quality data. Why is this parser if the data is already
21
- * shaped as wanted? Well, it is better to be safe than sorry, so we implement a
22
- * double-check of these values and reconfirm a cleaner data. Remember, namefully
23
- * works like a trapdoor, once the data is set and confirmed safe, no editing is
24
- * possible.
25
- */
26
- export default class ArrayNameParser implements Parser<Name[]> {
27
- raw: Name[];
28
- /**
29
- * Create a parser ready to parse the raw data
30
- * @param {Name[]} raw data
31
- */
32
- constructor(raw: Name[]);
33
- /**
34
- * Parses the raw data into a full name
35
- */
36
- parse(options: {
37
- bypass: boolean;
38
- lastnameFormat: LastnameFormat;
39
- }): Fullname;
40
- private distribute;
41
- }
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * An array `Name` parser
5
- *
6
- * Created on March 15, 2020
7
- * @author Ralph Florent <ralflornt@gmail.com>
8
- */
9
- const models_1 = require("../../models");
10
- const index_1 = require("../../validators/index");
11
- /**
12
- * Represents a `Name[]` parser
13
- * @class
14
- * @implements {Parser<Name[]>}
15
- *
16
- * This parser parses an array of the class `Name` while checking that every part
17
- * plays the role they are supposed to play. The class `Name` is a ready-made
18
- * recipe that saves the how-to parsing for a raw data input.
19
- *
20
- * **NOTE**:
21
- * In this specific case, the user is expected to carefully set each name part
22
- * and submit a high-quality data. Why is this parser if the data is already
23
- * shaped as wanted? Well, it is better to be safe than sorry, so we implement a
24
- * double-check of these values and reconfirm a cleaner data. Remember, namefully
25
- * works like a trapdoor, once the data is set and confirmed safe, no editing is
26
- * possible.
27
- */
28
- class ArrayNameParser {
29
- /**
30
- * Create a parser ready to parse the raw data
31
- * @param {Name[]} raw data
32
- */
33
- constructor(raw) {
34
- this.raw = raw;
35
- }
36
- /**
37
- * Parses the raw data into a full name
38
- */
39
- parse(options) {
40
- const { bypass, lastnameFormat } = options;
41
- // validate first
42
- if (!bypass)
43
- new index_1.ArrayNameValidator().validate(this.raw);
44
- // then distribute all the elements accordingly
45
- const fullname = this.distribute(lastnameFormat);
46
- // finally return high quality of data
47
- return fullname;
48
- }
49
- distribute(lastnameFormat) {
50
- const fullname = {
51
- firstname: null,
52
- lastname: null,
53
- middlename: [],
54
- prefix: null,
55
- suffix: null,
56
- };
57
- this.raw.forEach(name => {
58
- switch (name.type) {
59
- case models_1.Namon.PREFIX:
60
- fullname.prefix = name.namon;
61
- break;
62
- case models_1.Namon.FIRST_NAME:
63
- if (name instanceof models_1.Firstname)
64
- fullname.firstname = new models_1.Firstname(name.namon, ...name.more);
65
- else
66
- fullname.firstname = new models_1.Firstname(name.namon);
67
- break;
68
- case models_1.Namon.LAST_NAME:
69
- if (name instanceof models_1.Lastname)
70
- fullname.lastname = new models_1.Lastname(name.father, name.mother, lastnameFormat);
71
- else
72
- fullname.lastname = new models_1.Lastname(name.namon, null, lastnameFormat);
73
- break;
74
- case models_1.Namon.MIDDLE_NAME:
75
- fullname.middlename.push(name);
76
- break;
77
- case models_1.Namon.SUFFIX:
78
- fullname.suffix = name.namon;
79
- break;
80
- }
81
- });
82
- return fullname;
83
- }
84
- }
85
- exports.default = ArrayNameParser;
86
- //# sourceMappingURL=array-name.parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array-name.parser.js","sourceRoot":"","sources":["../../../../src/core/parsers/array-name.parser.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH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C,QAAQ,GAAG,IAAI,iBAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;;wBAE1E,QAAQ,CAAC,QAAQ,GAAG,IAAI,iBAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;oBACvE,MAAM;gBACV,KAAK,cAAK,CAAC,WAAW;oBAClB,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAC/B,MAAM;gBACV,KAAK,cAAK,CAAC,MAAM;oBACb,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAe,CAAC;oBACvC,MAAM;aACb;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AA7DD,kCA6DC"}
@@ -1,47 +0,0 @@
1
- /**
2
- * An array of string parser
3
- *
4
- * Created on March 15, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- import { Fullname, NameOrder } from '../../models';
8
- import { Parser } from './parser';
9
- /**
10
- * Represents an array string parser
11
- * @class
12
- * @implements {Parser<string[]>}
13
- *
14
- * This parser parses an array of string name following a specific order based
15
- * on the count of elements. It is expected that the array has to be between two
16
- * and five elements. Also, the order of appearance set in the configuration
17
- * influences how this parsing is carried out.
18
- *
19
- * Ordered by first name, the parser works as follows:
20
- * - 2 elements: firstname lastname
21
- * - 3 elements: firstname middlename lastname
22
- * - 4 elements: prefix firstname middlename lastname
23
- * - 5 elements: prefix firstname middlename lastname suffix
24
- *
25
- * Ordered by last name, the parser works as follows:
26
- * - 2 elements: lastname firstname
27
- * - 3 elements: lastname firstname middlename
28
- * - 4 elements: prefix lastname firstname middlename
29
- * - 5 elements: prefix lastname firstname middlename suffix
30
- *
31
- */
32
- export default class ArrayStringParser implements Parser<string[]> {
33
- raw: string[];
34
- /**
35
- * Create a parser ready to parse the raw data
36
- * @param {string[]} raw data
37
- */
38
- constructor(raw: string[]);
39
- /**
40
- * Parses the raw data into a full name
41
- */
42
- parse(options: {
43
- orderedBy: NameOrder;
44
- bypass: boolean;
45
- }): Fullname;
46
- private distribute;
47
- }
@@ -1,95 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * An array of string parser
5
- *
6
- * Created on March 15, 2020
7
- * @author Ralph Florent <ralflornt@gmail.com>
8
- */
9
- const models_1 = require("../../models");
10
- const validators_1 = require("../../validators");
11
- const core_1 = require("../../core");
12
- /**
13
- * Represents an array string parser
14
- * @class
15
- * @implements {Parser<string[]>}
16
- *
17
- * This parser parses an array of string name following a specific order based
18
- * on the count of elements. It is expected that the array has to be between two
19
- * and five elements. Also, the order of appearance set in the configuration
20
- * influences how this parsing is carried out.
21
- *
22
- * Ordered by first name, the parser works as follows:
23
- * - 2 elements: firstname lastname
24
- * - 3 elements: firstname middlename lastname
25
- * - 4 elements: prefix firstname middlename lastname
26
- * - 5 elements: prefix firstname middlename lastname suffix
27
- *
28
- * Ordered by last name, the parser works as follows:
29
- * - 2 elements: lastname firstname
30
- * - 3 elements: lastname firstname middlename
31
- * - 4 elements: prefix lastname firstname middlename
32
- * - 5 elements: prefix lastname firstname middlename suffix
33
- *
34
- */
35
- class ArrayStringParser {
36
- /**
37
- * Create a parser ready to parse the raw data
38
- * @param {string[]} raw data
39
- */
40
- constructor(raw) {
41
- this.raw = raw;
42
- }
43
- /**
44
- * Parses the raw data into a full name
45
- */
46
- parse(options) {
47
- // given this setting
48
- const { orderedBy, bypass } = options;
49
- // validate first
50
- const raw = this.raw.map(n => n.trim()); // cleanup
51
- const index = core_1.organizeNameIndex(orderedBy, raw.length);
52
- if (!bypass)
53
- new validators_1.ArrayStringValidator(index).validate(raw);
54
- // then distribute all the elements accordingly
55
- const fullname = this.distribute(raw, index);
56
- // finally return high quality of data
57
- return fullname;
58
- }
59
- distribute(raw, index) {
60
- const fullname = {
61
- firstname: null,
62
- lastname: null,
63
- middlename: [],
64
- prefix: null,
65
- suffix: null,
66
- };
67
- switch (raw.length) {
68
- case 2: // first name + last name
69
- fullname.firstname = new models_1.Firstname(raw[index.firstname]);
70
- fullname.lastname = new models_1.Lastname(raw[index.lastname]);
71
- break;
72
- case 3: // first name + middle name + last name
73
- fullname.firstname = new models_1.Firstname(raw[index.firstname]);
74
- fullname.middlename.push(new models_1.Name(raw[index.middlename], models_1.Namon.MIDDLE_NAME));
75
- fullname.lastname = new models_1.Lastname(raw[index.lastname]);
76
- break;
77
- case 4: // prefix + first name + middle name + last name
78
- fullname.prefix = raw[index.prefix];
79
- fullname.firstname = new models_1.Firstname(raw[index.firstname]);
80
- fullname.middlename.push(new models_1.Name(raw[index.middlename], models_1.Namon.MIDDLE_NAME));
81
- fullname.lastname = new models_1.Lastname(raw[index.lastname]);
82
- break;
83
- case 5: // prefix + first name + middle name + last name + suffix
84
- fullname.prefix = raw[index.prefix];
85
- fullname.firstname = new models_1.Firstname(raw[index.firstname]);
86
- fullname.middlename.push(new models_1.Name(raw[index.middlename], models_1.Namon.MIDDLE_NAME));
87
- fullname.lastname = new models_1.Lastname(raw[index.lastname]);
88
- fullname.suffix = raw[index.suffix];
89
- break;
90
- }
91
- return fullname;
92
- }
93
- }
94
- exports.default = ArrayStringParser;
95
- //# sourceMappingURL=array-string.parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array-string.parser.js","sourceRoot":"","sources":["../../../../src/core/parsers/array-string.parser.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yCAUsB;AACtB,iDAAwD;AACxD,qCAA+C;AAI/C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAqB,iBAAiB;IAElC;;;OAGG;IACH,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAI,CAAC;IAErC;;OAEG;IACH,KAAK,CAAC,OAAkD;QAEpD,qBAAqB;QACrB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAEtC,iBA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on March 03, 2020
5
- * @author Ralph Florent <ralflornt@gmail.com>
6
- */
7
- export * from './parser';
8
- export { default as ArrayNameParser } from './array-name.parser';
9
- export { default as ArrayStringParser } from './array-string.parser';
10
- export { default as NamaParser } from './nama.parser';
11
- export { default as StringParser } from './string.parser';