@candlerip/shared 0.0.67 → 0.0.69

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 (184) hide show
  1. package/custom-error/domains.d.ts +2 -2
  2. package/dictionary/country-dictionary/domains.d.ts +4 -0
  3. package/dictionary/country-dictionary/index.d.ts +2 -0
  4. package/dictionary/country-dictionary/index.js +2 -0
  5. package/dictionary/country-dictionary/utils/convert-countries-to-dictionary/index.d.ts +2 -0
  6. package/dictionary/country-dictionary/utils/convert-countries-to-dictionary/index.js +4 -0
  7. package/dictionary/country-dictionary/utils/convert-countries-to-dictionary/type.d.ts +6 -0
  8. package/dictionary/country-dictionary/utils/index.d.ts +1 -0
  9. package/dictionary/country-dictionary/utils/index.js +1 -0
  10. package/dictionary/dictionary/configs.d.ts +47 -0
  11. package/dictionary/dictionary/configs.js +268 -0
  12. package/dictionary/dictionary/domains.d.ts +4 -0
  13. package/dictionary/dictionary/domains.js +1 -0
  14. package/dictionary/dictionary/index.d.ts +2 -0
  15. package/dictionary/dictionary/index.js +2 -0
  16. package/dictionary/index.d.ts +2 -0
  17. package/dictionary/index.js +2 -0
  18. package/environment/index.d.ts +0 -2
  19. package/environment/index.js +0 -2
  20. package/geographical/country/domains.d.ts +17 -0
  21. package/geographical/country/domains.js +1 -0
  22. package/geographical/county-code/configs.d.ts +1 -0
  23. package/geographical/county-code/configs.js +248 -0
  24. package/geographical/county-code/domains.d.ts +2 -0
  25. package/geographical/county-code/domains.js +1 -0
  26. package/{environment/environment-variable-name → geographical/county-code}/index.d.ts +1 -1
  27. package/{environment/environment-variable-name → geographical/county-code}/index.js +1 -1
  28. package/geographical/county-code/type-guards.d.ts +2 -0
  29. package/geographical/county-code/type-guards.js +4 -0
  30. package/geographical/index.d.ts +2 -0
  31. package/geographical/index.js +2 -0
  32. package/index.d.ts +6 -1
  33. package/index.js +6 -1
  34. package/package.json +1 -1
  35. package/page/configs.d.ts +1 -0
  36. package/page/configs.js +17 -0
  37. package/page/domains.d.ts +2 -0
  38. package/page/domains.js +1 -0
  39. package/page/index.d.ts +3 -0
  40. package/page/index.js +3 -0
  41. package/page/type-guards.d.ts +2 -0
  42. package/page/type-guards.js +4 -0
  43. package/page-menu/configs.d.ts +1 -0
  44. package/page-menu/configs.js +12 -0
  45. package/page-menu/domains.d.ts +2 -0
  46. package/page-menu/domains.js +1 -0
  47. package/page-menu/index.d.ts +3 -0
  48. package/page-menu/index.js +3 -0
  49. package/page-menu/type-guards.d.ts +2 -0
  50. package/page-menu/type-guards.js +2 -0
  51. package/service/service-name/constants.d.ts +1 -1
  52. package/service/service-name/constants.js +1 -1
  53. package/translation/index.d.ts +3 -0
  54. package/translation/index.js +3 -0
  55. package/translation/language/configs.d.ts +1 -0
  56. package/translation/language/configs.js +1 -0
  57. package/translation/language/defaults.d.ts +2 -0
  58. package/translation/language/defaults.js +1 -0
  59. package/translation/language/domains.d.ts +2 -0
  60. package/translation/language/domains.js +1 -0
  61. package/translation/language/index.d.ts +5 -0
  62. package/translation/language/index.js +5 -0
  63. package/translation/language/type-guards.d.ts +2 -0
  64. package/translation/language/type-guards.js +2 -0
  65. package/translation/language/validates/index.d.ts +2 -0
  66. package/translation/language/validates/index.js +2 -0
  67. package/translation/language/validates/validate-language/index.d.ts +2 -0
  68. package/translation/language/validates/validate-language/index.js +3 -0
  69. package/translation/language/validates/validate-language/type.d.ts +7 -0
  70. package/translation/language/validates/validate-language/type.js +1 -0
  71. package/translation/language/validates/validate-page/index.d.ts +2 -0
  72. package/translation/language/validates/validate-page/index.js +3 -0
  73. package/translation/language/validates/validate-page/type.d.ts +6 -0
  74. package/translation/language/validates/validate-page/type.js +1 -0
  75. package/translation/translation/domains/index.d.ts +7 -0
  76. package/translation/translation/domains/index.js +1 -0
  77. package/translation/translation/index.d.ts +1 -0
  78. package/translation/translation/index.js +1 -0
  79. package/translation/translation-code/excluded-translation-code/configs.d.ts +2 -0
  80. package/translation/translation-code/excluded-translation-code/configs.js +12 -0
  81. package/translation/translation-code/excluded-translation-code/domains.d.ts +4 -0
  82. package/translation/translation-code/excluded-translation-code/domains.js +1 -0
  83. package/translation/translation-code/excluded-translation-code/index.d.ts +2 -0
  84. package/translation/translation-code/excluded-translation-code/index.js +2 -0
  85. package/translation/translation-code/excluded-translation-code/utils/compose-excluded-translation-codes/index.d.ts +2 -0
  86. package/translation/translation-code/excluded-translation-code/utils/compose-excluded-translation-codes/index.js +20 -0
  87. package/translation/translation-code/excluded-translation-code/utils/compose-excluded-translation-codes/type.d.ts +7 -0
  88. package/translation/translation-code/excluded-translation-code/utils/compose-excluded-translation-codes/type.js +1 -0
  89. package/translation/translation-code/excluded-translation-code/utils/index.d.ts +2 -0
  90. package/translation/translation-code/excluded-translation-code/utils/index.js +2 -0
  91. package/translation/translation-code/index.d.ts +2 -0
  92. package/translation/translation-code/index.js +2 -0
  93. package/translation/translation-code/translation-code/candle/candle-card/config.d.ts +1 -0
  94. package/translation/translation-code/translation-code/candle/candle-card/config.js +10 -0
  95. package/translation/translation-code/translation-code/candle/candle-card/index.d.ts +1 -0
  96. package/translation/translation-code/translation-code/candle/candle-card/index.js +1 -0
  97. package/translation/translation-code/translation-code/candle/candle-cards/config.d.ts +1 -0
  98. package/translation/translation-code/translation-code/candle/candle-cards/config.js +4 -0
  99. package/translation/translation-code/translation-code/candle/candle-cards/index.d.ts +1 -0
  100. package/translation/translation-code/translation-code/candle/candle-cards/index.js +1 -0
  101. package/translation/translation-code/translation-code/candle/candle-image/config.d.ts +1 -0
  102. package/translation/translation-code/translation-code/candle/candle-image/config.js +3 -0
  103. package/translation/translation-code/translation-code/candle/candle-image/index.d.ts +1 -0
  104. package/translation/translation-code/translation-code/candle/candle-image/index.js +1 -0
  105. package/translation/translation-code/translation-code/candle/candle-maintenance/config.d.ts +1 -0
  106. package/translation/translation-code/translation-code/candle/candle-maintenance/config.js +10 -0
  107. package/translation/translation-code/translation-code/candle/candle-maintenance/index.d.ts +1 -0
  108. package/translation/translation-code/translation-code/candle/candle-maintenance/index.js +1 -0
  109. package/translation/translation-code/translation-code/candle/candles-list/config.d.ts +1 -0
  110. package/translation/translation-code/translation-code/candle/candles-list/config.js +19 -0
  111. package/translation/translation-code/translation-code/candle/candles-list/index.d.ts +1 -0
  112. package/translation/translation-code/translation-code/candle/candles-list/index.js +1 -0
  113. package/translation/translation-code/translation-code/candle/index.d.ts +5 -0
  114. package/translation/translation-code/translation-code/candle/index.js +5 -0
  115. package/translation/translation-code/translation-code/common-page/config.d.ts +1 -0
  116. package/translation/translation-code/translation-code/common-page/config.js +29 -0
  117. package/translation/translation-code/translation-code/common-page/index.d.ts +1 -0
  118. package/translation/translation-code/translation-code/common-page/index.js +1 -0
  119. package/translation/translation-code/translation-code/configs.d.ts +1 -0
  120. package/translation/translation-code/translation-code/configs.js +434 -0
  121. package/translation/translation-code/translation-code/country/country-code/config.d.ts +1 -0
  122. package/translation/translation-code/translation-code/country/country-code/config.js +250 -0
  123. package/translation/translation-code/translation-code/country/country-code/index.d.ts +1 -0
  124. package/translation/translation-code/translation-code/country/country-code/index.js +1 -0
  125. package/translation/translation-code/translation-code/country/index.d.ts +1 -0
  126. package/translation/translation-code/translation-code/country/index.js +1 -0
  127. package/translation/translation-code/translation-code/domains.d.ts +2 -0
  128. package/translation/translation-code/translation-code/domains.js +1 -0
  129. package/translation/translation-code/translation-code/index.d.ts +7 -0
  130. package/translation/translation-code/translation-code/index.js +7 -0
  131. package/translation/translation-code/translation-code/person/index.d.ts +5 -0
  132. package/translation/translation-code/translation-code/person/index.js +5 -0
  133. package/translation/translation-code/translation-code/person/person-card/config.d.ts +1 -0
  134. package/translation/translation-code/translation-code/person/person-card/config.js +4 -0
  135. package/translation/translation-code/translation-code/person/person-card/index.d.ts +1 -0
  136. package/translation/translation-code/translation-code/person/person-card/index.js +1 -0
  137. package/translation/translation-code/translation-code/person/person-cards/config.d.ts +1 -0
  138. package/translation/translation-code/translation-code/person/person-cards/config.js +4 -0
  139. package/translation/translation-code/translation-code/person/person-cards/index.d.ts +1 -0
  140. package/translation/translation-code/translation-code/person/person-cards/index.js +1 -0
  141. package/translation/translation-code/translation-code/person/person-image/config.d.ts +1 -0
  142. package/translation/translation-code/translation-code/person/person-image/config.js +3 -0
  143. package/translation/translation-code/translation-code/person/person-image/index.d.ts +1 -0
  144. package/translation/translation-code/translation-code/person/person-image/index.js +1 -0
  145. package/translation/translation-code/translation-code/person/person-maintenance/config.d.ts +1 -0
  146. package/translation/translation-code/translation-code/person/person-maintenance/config.js +28 -0
  147. package/translation/translation-code/translation-code/person/person-maintenance/index.d.ts +1 -0
  148. package/translation/translation-code/translation-code/person/person-maintenance/index.js +1 -0
  149. package/translation/translation-code/translation-code/person/persons-list/config.d.ts +1 -0
  150. package/translation/translation-code/translation-code/person/persons-list/config.js +19 -0
  151. package/translation/translation-code/translation-code/person/persons-list/index.d.ts +1 -0
  152. package/translation/translation-code/translation-code/person/persons-list/index.js +1 -0
  153. package/translation/translation-code/translation-code/time/index.d.ts +1 -0
  154. package/translation/translation-code/translation-code/time/index.js +1 -0
  155. package/translation/translation-code/translation-code/time/time-abbreviation/config.d.ts +1 -0
  156. package/translation/translation-code/translation-code/time/time-abbreviation/config.js +3 -0
  157. package/translation/translation-code/translation-code/time/time-abbreviation/index.d.ts +1 -0
  158. package/translation/translation-code/translation-code/time/time-abbreviation/index.js +1 -0
  159. package/type/index.d.ts +2 -0
  160. package/type/index.js +2 -0
  161. package/type/type/index.d.ts +2 -0
  162. package/type/type/index.js +2 -0
  163. package/type/type/type-guards.d.ts +1 -0
  164. package/type/type/type-guards.js +6 -0
  165. package/type/type/utils/index.d.ts +1 -0
  166. package/type/type/utils/index.js +1 -0
  167. package/type/type/utils/validate-by-values/index.d.ts +2 -0
  168. package/type/type/utils/validate-by-values/index.js +20 -0
  169. package/type/type/utils/validate-by-values/type.d.ts +6 -0
  170. package/type/type/utils/validate-by-values/type.js +1 -0
  171. package/type/undefined/index.d.ts +1 -0
  172. package/type/undefined/index.js +1 -0
  173. package/type/undefined/type-guard.d.ts +1 -0
  174. package/type/undefined/type-guard.js +1 -0
  175. package/environment/environment-variable-name/constants.d.ts +0 -2
  176. package/environment/environment-variable-name/constants.js +0 -23
  177. package/environment/environment-variable-name/domains.d.ts +0 -2
  178. package/environment/environment-variable-name/type-guards.d.ts +0 -2
  179. package/environment/environment-variable-name/type-guards.js +0 -2
  180. package/environment/environment-variables/domains.d.ts +0 -23
  181. /package/{environment/environment-variable-name → dictionary/country-dictionary}/domains.js +0 -0
  182. /package/{environment/environment-variables/domains.js → dictionary/country-dictionary/utils/convert-countries-to-dictionary/type.js} +0 -0
  183. /package/{environment/environment-variables → geographical/country}/index.d.ts +0 -0
  184. /package/{environment/environment-variables → geographical/country}/index.js +0 -0
@@ -0,0 +1,248 @@
1
+ export const COUNTRY_CODES = [
2
+ 'AD',
3
+ 'AE',
4
+ 'AF',
5
+ 'AG',
6
+ 'AI',
7
+ 'AL',
8
+ 'AM',
9
+ 'AN',
10
+ 'AO',
11
+ 'AQ',
12
+ 'AR',
13
+ 'AS',
14
+ 'AT',
15
+ 'AU',
16
+ 'AW',
17
+ 'AX',
18
+ 'AZ',
19
+ 'BA',
20
+ 'BB',
21
+ 'BD',
22
+ 'BE',
23
+ 'BF',
24
+ 'BG',
25
+ 'BH',
26
+ 'BI',
27
+ 'BJ',
28
+ 'BM',
29
+ 'BN',
30
+ 'BO',
31
+ 'BR',
32
+ 'BQ',
33
+ 'BS',
34
+ 'BT',
35
+ 'BV',
36
+ 'BW',
37
+ 'BY',
38
+ 'BZ',
39
+ 'CA',
40
+ 'CC',
41
+ 'CD',
42
+ 'CF',
43
+ 'CG',
44
+ 'CH',
45
+ 'CI',
46
+ 'CK',
47
+ 'CL',
48
+ 'CM',
49
+ 'CN',
50
+ 'CO',
51
+ 'CR',
52
+ 'CU',
53
+ 'CV',
54
+ 'CX',
55
+ 'CY',
56
+ 'CZ',
57
+ 'DE',
58
+ 'DJ',
59
+ 'DK',
60
+ 'DM',
61
+ 'DO',
62
+ 'DZ',
63
+ 'EC',
64
+ 'EE',
65
+ 'EG',
66
+ 'EH',
67
+ 'ER',
68
+ 'ES',
69
+ 'ET',
70
+ 'FI',
71
+ 'FJ',
72
+ 'FK',
73
+ 'FM',
74
+ 'FO',
75
+ 'FR',
76
+ 'GA',
77
+ 'GB',
78
+ 'GD',
79
+ 'GE',
80
+ 'GF',
81
+ 'GG',
82
+ 'GH',
83
+ 'GI',
84
+ 'GL',
85
+ 'GM',
86
+ 'GN',
87
+ 'GP',
88
+ 'GQ',
89
+ 'GR',
90
+ 'GS',
91
+ 'GT',
92
+ 'GU',
93
+ 'GW',
94
+ 'GY',
95
+ 'GZ',
96
+ 'HK',
97
+ 'HM',
98
+ 'HN',
99
+ 'HR',
100
+ 'HT',
101
+ 'HU',
102
+ 'ID',
103
+ 'IE',
104
+ 'IL',
105
+ 'IM',
106
+ 'IN',
107
+ 'IO',
108
+ 'IQ',
109
+ 'IR',
110
+ 'IS',
111
+ 'IT',
112
+ 'JE',
113
+ 'JM',
114
+ 'JO',
115
+ 'JP',
116
+ 'KE',
117
+ 'KG',
118
+ 'KH',
119
+ 'KI',
120
+ 'KM',
121
+ 'KN',
122
+ 'KP',
123
+ 'KR',
124
+ 'KW',
125
+ 'KY',
126
+ 'KZ',
127
+ 'LA',
128
+ 'LB',
129
+ 'LC',
130
+ 'LI',
131
+ 'LK',
132
+ 'LR',
133
+ 'LS',
134
+ 'LT',
135
+ 'LU',
136
+ 'LV',
137
+ 'LY',
138
+ 'MA',
139
+ 'MC',
140
+ 'MD',
141
+ 'ME',
142
+ 'MG',
143
+ 'MH',
144
+ 'MK',
145
+ 'ML',
146
+ 'MM',
147
+ 'MN',
148
+ 'MO',
149
+ 'MP',
150
+ 'MQ',
151
+ 'MR',
152
+ 'MS',
153
+ 'MT',
154
+ 'MU',
155
+ 'MV',
156
+ 'MW',
157
+ 'MX',
158
+ 'MY',
159
+ 'MZ',
160
+ 'NA',
161
+ 'NC',
162
+ 'NE',
163
+ 'NF',
164
+ 'NG',
165
+ 'NI',
166
+ 'NL',
167
+ 'NO',
168
+ 'NP',
169
+ 'NR',
170
+ 'NU',
171
+ 'NZ',
172
+ 'OM',
173
+ 'PA',
174
+ 'PE',
175
+ 'PF',
176
+ 'PG',
177
+ 'PH',
178
+ 'PK',
179
+ 'PL',
180
+ 'PM',
181
+ 'PN',
182
+ 'PR',
183
+ 'PS',
184
+ 'PT',
185
+ 'PW',
186
+ 'PY',
187
+ 'QA',
188
+ 'RE',
189
+ 'RO',
190
+ 'RS',
191
+ 'RU',
192
+ 'RW',
193
+ 'SA',
194
+ 'SB',
195
+ 'SC',
196
+ 'SD',
197
+ 'SE',
198
+ 'SG',
199
+ 'SH',
200
+ 'SI',
201
+ 'SJ',
202
+ 'SK',
203
+ 'SL',
204
+ 'SM',
205
+ 'SN',
206
+ 'SO',
207
+ 'SR',
208
+ 'ST',
209
+ 'SV',
210
+ 'SY',
211
+ 'SZ',
212
+ 'TC',
213
+ 'TD',
214
+ 'TF',
215
+ 'TG',
216
+ 'TH',
217
+ 'TJ',
218
+ 'TK',
219
+ 'TL',
220
+ 'TM',
221
+ 'TN',
222
+ 'TO',
223
+ 'TR',
224
+ 'TT',
225
+ 'TV',
226
+ 'TW',
227
+ 'TZ',
228
+ 'UA',
229
+ 'UG',
230
+ 'US',
231
+ 'UY',
232
+ 'UZ',
233
+ 'VA',
234
+ 'VC',
235
+ 'VE',
236
+ 'VG',
237
+ 'VI',
238
+ 'VN',
239
+ 'VU',
240
+ 'WF',
241
+ 'WS',
242
+ 'XK',
243
+ 'YE',
244
+ 'YT',
245
+ 'ZA',
246
+ 'ZM',
247
+ 'ZW',
248
+ ];
@@ -0,0 +1,2 @@
1
+ import { COUNTRY_CODES } from './configs.js';
2
+ export type CountryCode = (typeof COUNTRY_CODES)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
- export * from './constants.js';
1
+ export * from './configs.js';
2
2
  export * from './domains.js';
3
3
  export * from './type-guards.js';
@@ -1,3 +1,3 @@
1
- export * from './constants.js';
1
+ export * from './configs.js';
2
2
  export * from './domains.js';
3
3
  export * from './type-guards.js';
@@ -0,0 +1,2 @@
1
+ import { CountryCode } from './domains.js';
2
+ export declare const isCountryCode: (data?: unknown) => data is CountryCode;
@@ -0,0 +1,4 @@
1
+ import { COUNTRY_CODES } from './configs.js';
2
+ export const isCountryCode = (data) => {
3
+ return COUNTRY_CODES.some((it) => data === it);
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './country/index.js';
2
+ export * from './county-code/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './country/index.js';
2
+ export * from './county-code/index.js';
package/index.d.ts CHANGED
@@ -1,5 +1,10 @@
1
- export * from './environment/index.js';
2
1
  export * from './custom-error/index.js';
2
+ export * from './dictionary/index.js';
3
+ export * from './environment/index.js';
4
+ export * from './geographical/index.js';
3
5
  export * from './helpers/index.js';
6
+ export * from './page/index.js';
7
+ export * from './page-menu/index.js';
4
8
  export * from './service/index.js';
9
+ export * from './translation/index.js';
5
10
  export * from './type/index.js';
package/index.js CHANGED
@@ -1,5 +1,10 @@
1
- export * from './environment/index.js';
2
1
  export * from './custom-error/index.js';
2
+ export * from './dictionary/index.js';
3
+ export * from './environment/index.js';
4
+ export * from './geographical/index.js';
3
5
  export * from './helpers/index.js';
6
+ export * from './page/index.js';
7
+ export * from './page-menu/index.js';
4
8
  export * from './service/index.js';
9
+ export * from './translation/index.js';
5
10
  export * from './type/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "=22.19.0"
@@ -0,0 +1 @@
1
+ export declare const PAGES: readonly ["add-person-page", "candle-details-page", "candles-page", "contact-page", "cookie-policy-page", "edit-candle-page", "edit-person-page", "help-page", "home-page", "light-candle-page", "person-candles-page", "person-details-page", "persons-page", "persons-map-page", "terms-and-conditions-page"];
@@ -0,0 +1,17 @@
1
+ export const PAGES = [
2
+ 'add-person-page',
3
+ 'candle-details-page',
4
+ 'candles-page',
5
+ 'contact-page',
6
+ 'cookie-policy-page',
7
+ 'edit-candle-page',
8
+ 'edit-person-page',
9
+ 'help-page',
10
+ 'home-page',
11
+ 'light-candle-page',
12
+ 'person-candles-page',
13
+ 'person-details-page',
14
+ 'persons-page',
15
+ 'persons-map-page',
16
+ 'terms-and-conditions-page',
17
+ ];
@@ -0,0 +1,2 @@
1
+ import { PAGES } from './configs.js';
2
+ export type Page = (typeof PAGES)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
package/page/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -0,0 +1,2 @@
1
+ import { Page } from './domains.js';
2
+ export declare const isPage: (data?: unknown) => data is Page;
@@ -0,0 +1,4 @@
1
+ import { PAGES } from './configs.js';
2
+ export const isPage = (data) => {
3
+ return PAGES.some((it) => data === it);
4
+ };
@@ -0,0 +1 @@
1
+ export declare const PAGE_MENUS: readonly ["persons-page", "add-person-page", "persons-map-page", "candles-page", "contact-page", "cookie-policy-page", "help-page", "terms-and-conditions-page"];
@@ -0,0 +1,12 @@
1
+ export const PAGE_MENUS = [
2
+ 'persons-page',
3
+ 'add-person-page',
4
+ 'persons-map-page',
5
+ 'candles-page',
6
+ 'contact-page',
7
+ 'cookie-policy-page',
8
+ 'help-page',
9
+ 'terms-and-conditions-page',
10
+ ];
11
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
+ const CHECK = PAGE_MENUS;
@@ -0,0 +1,2 @@
1
+ import { PAGE_MENUS } from './configs.js';
2
+ export type PageMenu = (typeof PAGE_MENUS)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -0,0 +1,2 @@
1
+ import { PageMenu } from './domains.js';
2
+ export declare const isPageMenu: (data?: unknown) => data is PageMenu;
@@ -0,0 +1,2 @@
1
+ import { PAGE_MENUS } from './configs.js';
2
+ export const isPageMenu = (data) => PAGE_MENUS.some((it) => data === it);
@@ -1 +1 @@
1
- export declare const SERVICE_NAMES: readonly ["cache-service", "images", "nginx", "redis", "server"];
1
+ export declare const SERVICE_NAMES: readonly ["app", "cache-service", "images", "nginx", "redis", "server"];
@@ -1 +1 @@
1
- export const SERVICE_NAMES = ['cache-service', 'images', 'nginx', 'redis', 'server'];
1
+ export const SERVICE_NAMES = ['app', 'cache-service', 'images', 'nginx', 'redis', 'server'];
@@ -0,0 +1,3 @@
1
+ export * from './language/index.js';
2
+ export * from './translation/index.js';
3
+ export * from './translation-code/index.js';
@@ -0,0 +1,3 @@
1
+ export * from './language/index.js';
2
+ export * from './translation/index.js';
3
+ export * from './translation-code/index.js';
@@ -0,0 +1 @@
1
+ export declare const LANGUAGES: readonly ["en", "hu"];
@@ -0,0 +1 @@
1
+ export const LANGUAGES = ['en', 'hu'];
@@ -0,0 +1,2 @@
1
+ import { Language } from './domains.js';
2
+ export declare const DEFAULT_LANGUAGE: Language;
@@ -0,0 +1 @@
1
+ export const DEFAULT_LANGUAGE = 'en';
@@ -0,0 +1,2 @@
1
+ import { LANGUAGES } from './configs.js';
2
+ export type Language = (typeof LANGUAGES)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './configs.js';
2
+ export * from './defaults.js';
3
+ export * from './domains.js';
4
+ export * from './type-guards.js';
5
+ export * from './validates/index.js';
@@ -0,0 +1,5 @@
1
+ export * from './configs.js';
2
+ export * from './defaults.js';
3
+ export * from './domains.js';
4
+ export * from './type-guards.js';
5
+ export * from './validates/index.js';
@@ -0,0 +1,2 @@
1
+ import { Language } from './domains.js';
2
+ export declare const isLanguage: (data?: unknown) => data is Language;
@@ -0,0 +1,2 @@
1
+ import { LANGUAGES } from './configs.js';
2
+ export const isLanguage = (data) => LANGUAGES.some((it) => data === it);
@@ -0,0 +1,2 @@
1
+ export * from './validate-language/index.js';
2
+ export * from './validate-page/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './validate-language/index.js';
2
+ export * from './validate-page/index.js';
@@ -0,0 +1,2 @@
1
+ import { ValidateLanguage } from './type.js';
2
+ export declare const validateLanguage: ValidateLanguage;
@@ -0,0 +1,3 @@
1
+ import { validateByValues } from '../../../../type/index.js';
2
+ import { LANGUAGES } from '../../configs.js';
3
+ export const validateLanguage = (data) => validateByValues({ language: data }, LANGUAGES);
@@ -0,0 +1,7 @@
1
+ import { CustomError } from '../../../../index.js';
2
+ import { Language } from '../../domains.js';
3
+ export type ValidateLanguage = (data?: unknown) => {
4
+ data: Language;
5
+ } | {
6
+ customError: CustomError;
7
+ };
@@ -0,0 +1,2 @@
1
+ import { ValidatePage } from './type.js';
2
+ export declare const validatePage: ValidatePage;
@@ -0,0 +1,3 @@
1
+ import { PAGES } from '../../../../page/index.js';
2
+ import { validateByValues } from '../../../../type/index.js';
3
+ export const validatePage = (data) => validateByValues({ page: data }, PAGES);
@@ -0,0 +1,6 @@
1
+ import { CustomError, Page } from '../../../../index.js';
2
+ export type ValidatePage = (data?: unknown) => {
3
+ data: Page;
4
+ } | {
5
+ customError: CustomError;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { TranslationCode } from '../../translation-code/index.js';
2
+ export interface Translation {
3
+ _id: string;
4
+ code: TranslationCode;
5
+ hu: string;
6
+ en: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './domains/index.js';
@@ -0,0 +1 @@
1
+ export * from './domains/index.js';
@@ -0,0 +1,2 @@
1
+ import { ExcludedTranslationCodes } from './domains.js';
2
+ export declare const EXCLUDED_TRANSLATION_CODES: ExcludedTranslationCodes;
@@ -0,0 +1,12 @@
1
+ export const EXCLUDED_TRANSLATION_CODES = {
2
+ cookieConsent: [
3
+ 'acceptAll',
4
+ 'cookieConsentForm.description',
5
+ 'cookieConsentForm.languageFormDescription',
6
+ 'cookieConsentForm.title',
7
+ 'cookie-policy-page',
8
+ 'customize',
9
+ 'rejectAll',
10
+ 'save',
11
+ ],
12
+ };
@@ -0,0 +1,4 @@
1
+ import { TranslationCode } from '../translation-code/index.js';
2
+ export type ExcludedTranslationCodes = {
3
+ [key in 'cookieConsent']: TranslationCode[];
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './utils/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './utils/index.js';
@@ -0,0 +1,2 @@
1
+ import { ComposeExcludedTranslationCodes } from './type.js';
2
+ export declare const composeExcludedTranslationCodes: ComposeExcludedTranslationCodes;
@@ -0,0 +1,20 @@
1
+ import { COUNTRY_CODES, EXCLUDED_TRANSLATION_CODES, isPageMenu, isUndefined } from '../../../../../index.js';
2
+ export const composeExcludedTranslationCodes = (page, options) => {
3
+ let excludedIds = [];
4
+ if (options) {
5
+ const { isAuthenticated, excludeCookieConsent, remainingCountryCodes } = options;
6
+ if (!isUndefined(isAuthenticated)) {
7
+ excludedIds.push(isAuthenticated ? 'login' : 'logout');
8
+ }
9
+ if (excludeCookieConsent) {
10
+ excludedIds = excludedIds.concat(EXCLUDED_TRANSLATION_CODES.cookieConsent);
11
+ }
12
+ if (remainingCountryCodes) {
13
+ excludedIds = excludedIds.concat(COUNTRY_CODES.filter((countryCode) => !remainingCountryCodes.includes(countryCode)).map((countryCode) => `countryCode.${countryCode}`));
14
+ }
15
+ }
16
+ if (isPageMenu(page)) {
17
+ excludedIds.push(`pageMenu.${page}`);
18
+ }
19
+ return excludedIds;
20
+ };
@@ -0,0 +1,7 @@
1
+ import { CountryCode, Page, TranslationCode } from '../../../../../index.js';
2
+ export type ComposeExcludedTranslationCodes = (page: Page, options?: ExcludedTranslationCodeOptions) => TranslationCode[];
3
+ export type ExcludedTranslationCodeOptions = {
4
+ isAuthenticated?: boolean;
5
+ excludeCookieConsent?: boolean;
6
+ remainingCountryCodes?: CountryCode[];
7
+ };
@@ -0,0 +1,2 @@
1
+ export * from './compose-excluded-translation-codes/index.js';
2
+ export * from './compose-excluded-translation-codes/type.js';
@@ -0,0 +1,2 @@
1
+ export * from './compose-excluded-translation-codes/index.js';
2
+ export * from './compose-excluded-translation-codes/type.js';
@@ -0,0 +1,2 @@
1
+ export * from './translation-code/index.js';
2
+ export * from './excluded-translation-code/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './translation-code/index.js';
2
+ export * from './excluded-translation-code/index.js';
@@ -0,0 +1 @@
1
+ export declare const CANDLE_CARD_TRANSLATION_CODES: readonly ["imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute"];