@frankieone/one-sdk 1.9.39 → 1.9.40-rc
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.
- package/dist/commit.txt +1 -1
- package/dist/esm/modules/common/shared/data/subdivisions/gha.json +66 -0
- package/dist/esm/modules/common/shared/data/subdivisions/index.d.ts +0 -4
- package/dist/esm/modules/common/shared/data/subdivisions/index.d.ts.map +1 -1
- package/dist/esm/modules/common/shared/data/subdivisions/index.js +101 -0
- package/dist/esm/modules/common/shared/data/subdivisions/index.js.map +1 -1
- package/dist/esm/modules/common/shared/data/subdivisions/ken.json +190 -0
- package/dist/esm/modules/common/shared/data/subdivisions/mys.json +18 -0
- package/dist/esm/modules/common/shared/data/subdivisions/nga.json +150 -0
- package/dist/esm/modules/common/shared/data/subdivisions/zaf.json +38 -0
- package/dist/esm/modules/form/vendors/react/constants/form.const.d.ts +4 -0
- package/dist/esm/modules/form/vendors/react/constants/form.const.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/constants/form.const.js +13 -0
- package/dist/esm/modules/form/vendors/react/constants/form.const.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/gha.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/gha.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/gha.js +63 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/gha.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/ken.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/ken.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/ken.js +55 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/ken.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/mys.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/mys.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/mys.js +115 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/mys.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/nga.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/nga.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/nga.js +104 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/nga.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/phl.js +2 -2
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/phl.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/sgp.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/sgp.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/sgp.js +87 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/sgp.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/zaf.d.ts +3 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/zaf.d.ts.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/zaf.js +56 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/countries/zaf.js.map +1 -0
- package/dist/esm/modules/form/vendors/react/features/Review/config/fields/addressField.d.ts +42 -8
- package/dist/esm/modules/form/vendors/react/features/Review/config/fields/addressField.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/fields/addressField.js +53 -9
- package/dist/esm/modules/form/vendors/react/features/Review/config/fields/addressField.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/index.d.ts +7 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/index.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/index.js +13 -1
- package/dist/esm/modules/form/vendors/react/features/Review/config/index.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/fields/national-id.config.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Review/fields/national-id.config.js +255 -0
- package/dist/esm/modules/form/vendors/react/features/Review/fields/national-id.config.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.d.ts +25 -0
- package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.js +71 -5
- package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/model/review.model.d.ts +7 -0
- package/dist/esm/modules/form/vendors/react/model/review.model.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/model/review.model.js +184 -50
- package/dist/esm/modules/form/vendors/react/model/review.model.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/utils/object.util.js +20 -0
- package/dist/esm/modules/form/vendors/react/utils/object.util.js.map +1 -1
- package/dist/esm/modules/individual/F2/actions/search.d.ts.map +1 -1
- package/dist/esm/modules/individual/F2/actions/search.js +1 -1
- package/dist/esm/modules/individual/F2/actions/search.js.map +1 -1
- package/dist/esm/modules/individual/actions/search.d.ts.map +1 -1
- package/dist/esm/modules/individual/actions/search.js +1 -1
- package/dist/esm/modules/individual/actions/search.js.map +1 -1
- package/dist/esm/modules/meta.json +1 -1
- package/dist/release.txt +1 -1
- package/dist/version.txt +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.const.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/constants/form.const.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUjD,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ,EAAE;QAC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S;IACjC,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS;IACjC,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,SAAS;IACxC,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,QAAQ;IACpC,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,SAAS;IACxC,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS;CACoB,CAAC;AAExD,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0DAAiC,CAAA;IACjC,sDAA6B,CAAA;IAC7B,8DAAqC,CAAA;AACvC,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
|
1
|
+
{"version":3,"file":"form.const.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/constants/form.const.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUjD,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,wBAAwB;KAClC;IACD,SAAS,EAAE;QACT,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,gBAAgB;KAC1B;IACD,SAAS,EAAE;QACT,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,iBAAiB;KAC3B;IACD,cAAc,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,GAAG,MAAM,MAAK,KAAK,CAAC;IAC3C,CAAC;IACD,aAAa,EAAE;QACb,KAAK,EAAE,6BAA6B;QACpC,OAAO,EAAE,yCAAyC;KACnD;IACD,gCAAgC,EAAE;QAChC,KAAK,EAAE,qFAAqF;QAC5F,OAAO,EACL,mEAAmE;KACtE;IACD,+DAA+D;IAC/D,0EAA0E;IAC1E,sEAAsE;IACtE,+CAA+C;IAC/C,uBAAuB,EAAE;QACvB,KAAK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JW,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/gha.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAmD5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EAmB3C,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, optionalStreetNumberSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
2
|
+
import { basePersonalFields } from '../fields/personalFields.js';
|
|
3
|
+
/**
|
|
4
|
+
* Ghana (GHA) — FDEL-52700.
|
|
5
|
+
*
|
|
6
|
+
* English-speaking and Gregorian, so none of the bilingual-label or calendar
|
|
7
|
+
* rules that HKG/THA/TWN needed apply; `basePersonalFields` is used as-is.
|
|
8
|
+
* English is the official language of Ghana and the Ghana Card is printed in
|
|
9
|
+
* English. Structurally the Kenya / South Africa / Nigeria shape, with three
|
|
10
|
+
* departures, each traced to `connectors` config rather than to a guess:
|
|
11
|
+
*
|
|
12
|
+
* 1. **No postcode field at all.** This is the one place Ghana differs from all
|
|
13
|
+
* three of its African predecessors, and the difference is in the config, not
|
|
14
|
+
* an assumption: `con_gdc.json` soft_validation_rules sets GH's
|
|
15
|
+
* `address_required_fields` to `["street_name", "town"]` with **no
|
|
16
|
+
* `postal_code`**, and GH carries **no `postal_code_pattern`** — where KE has
|
|
17
|
+
* `^\d{5}$`, NG `^\d{6}$` and ZA `^\d{4}$`. `doc/gdc-country-guide.md` (GH)
|
|
18
|
+
* says why: "Ghana uses a digital addressing system (GhanaPostGPS); not a
|
|
19
|
+
* traditional postal code", and lists GH's postcode as `N/A`. So this follows
|
|
20
|
+
* HKG — the existing no-postcode precedent — rather than shipping a box no
|
|
21
|
+
* Ghanaian applicant can fill and no downstream check reads. A GhanaPostGPS
|
|
22
|
+
* digital address (`GA-543-0125`) is deliberately NOT captured: GDC does not
|
|
23
|
+
* match on it, so it would be collected and dropped.
|
|
24
|
+
* 2. **No house number required.** `con_gdc.json` sets
|
|
25
|
+
* `"requires_house_number": false` for GH, against a `_default` of true — the
|
|
26
|
+
* same exception KE, NG and ZA carry.
|
|
27
|
+
* 3. **The region select keeps the SHARED pattern**, the way Nigeria's does.
|
|
28
|
+
* KEN and ZAF both had to widen their own `stateSubfield` rule because
|
|
29
|
+
* Murang'a, Elgeyo-Marakwet and KwaZulu-Natal carry an apostrophe or hyphen
|
|
30
|
+
* that `alphaNumericSpaceInWords` rejects — and a select's rules do reach
|
|
31
|
+
* react-hook-form (SharedSelect/Select.tsx passes `rules` to `Controller`),
|
|
32
|
+
* so those options would be un-submittable. All 16 Ghanaian regions are plain
|
|
33
|
+
* letters and spaces, so no widening is warranted, and a widening nobody
|
|
34
|
+
* needs is dead config. `countries.spec.ts` asserts the pattern is
|
|
35
|
+
* byte-identical to the shared one and that every option survives it, so this
|
|
36
|
+
* stays honest if the subdivision data changes.
|
|
37
|
+
*
|
|
38
|
+
* The ID number itself lives in `national-id.config.ts` (GHA): the Ghana Card
|
|
39
|
+
* PIN, `GHA-\d{9}-\d`. Note that GDC requires only **Name, Address and DOB** for
|
|
40
|
+
* GH — National ID is Optional — so unlike NG, the card number is a bonus match
|
|
41
|
+
* rather than a required one. GH is Standard tier and **1+1 only** (it appears
|
|
42
|
+
* in `worldview_one_plus.standard_countries` and in neither two-plus service).
|
|
43
|
+
*/
|
|
44
|
+
const GHA_ADDRESS_MESSAGES = {
|
|
45
|
+
'address.town': { required: 'Please enter your town or city' },
|
|
46
|
+
'address.state': { required: 'Please select your region' },
|
|
47
|
+
};
|
|
48
|
+
export const ghaReviewFieldConfig = [
|
|
49
|
+
...basePersonalFields,
|
|
50
|
+
addressBlock(localiseFieldMessages([
|
|
51
|
+
countrySubfield(),
|
|
52
|
+
unitNumberSubfield('Apartment / Unit (optional)'),
|
|
53
|
+
optionalStreetNumberSubfield('House / Building Number (optional)'),
|
|
54
|
+
streetNameSubfield('Street Name'),
|
|
55
|
+
streetAddressSubfield('Street Address'),
|
|
56
|
+
townSubfield('Town / City'),
|
|
57
|
+
// No pattern override: see (3) above — the shared rule already accepts
|
|
58
|
+
// every Ghanaian region name.
|
|
59
|
+
stateSubfield('Region', 'Select your region'),
|
|
60
|
+
// No postcodeSubfield: see (1) above. Ghana issues no postal codes.
|
|
61
|
+
], GHA_ADDRESS_MESSAGES)),
|
|
62
|
+
];
|
|
63
|
+
//# sourceMappingURL=gha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/gha.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,oBAAoB,GAGtB;IACF,cAAc,EAAE,EAAE,QAAQ,EAAE,gCAAgC,EAAE;IAC9D,eAAe,EAAE,EAAE,QAAQ,EAAE,2BAA2B,EAAE;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,GAAG,kBAAkB;IACrB,YAAY,CACV,qBAAqB,CACnB;QACE,eAAe,EAAE;QACjB,kBAAkB,CAAC,6BAA6B,CAAC;QACjD,4BAA4B,CAAC,oCAAoC,CAAC;QAClE,kBAAkB,CAAC,aAAa,CAAC;QACjC,qBAAqB,CAAC,gBAAgB,CAAC;QACvC,YAAY,CAAC,aAAa,CAAC;QAC3B,uEAAuE;QACvE,8BAA8B;QAC9B,aAAa,CAAC,QAAQ,EAAE,oBAAoB,CAAC;QAC7C,oEAAoE;KACrE,EACD,oBAAoB,CACrB,CACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ken.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/ken.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAsC5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EA8B3C,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ValidationRulesForForm } from '../../../../constants/form.const.js';
|
|
2
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, optionalStreetNumberSubfield, postalCodeSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
3
|
+
import { basePersonalFields } from '../fields/personalFields.js';
|
|
4
|
+
/**
|
|
5
|
+
* Kenya (KEN) — FDEL-52699.
|
|
6
|
+
*
|
|
7
|
+
* English-speaking and Gregorian, so none of the bilingual-label or calendar
|
|
8
|
+
* rules that HKG/THA/TWN needed apply; `basePersonalFields` is used as-is.
|
|
9
|
+
* English is an official language of Kenya and the national ID card is printed
|
|
10
|
+
* in English. Three things are genuinely Kenya-specific, and each traces to
|
|
11
|
+
* `connectors` config rather than to a guess:
|
|
12
|
+
*
|
|
13
|
+
* 1. **No house number required.** `con_gdc.json` soft_validation_rules sets
|
|
14
|
+
* `"requires_house_number": false` for KE, against a `_default` of true.
|
|
15
|
+
* Many Kenyan addresses are estate or P.O.-Box based and print no house
|
|
16
|
+
* number, so inheriting the helper's hardcoded `required` would hard-block a
|
|
17
|
+
* valid applicant. KE's `address_required_fields` are street_name, town and
|
|
18
|
+
* postal_code — those three keep their required rule.
|
|
19
|
+
* 2. **County is a real subdivision, and four of them break the shared select
|
|
20
|
+
* pattern.** Kenya has 47 constitutional counties; `subdivisions/ken.json`
|
|
21
|
+
* registers them with code === name (a Kenyan ID prints no address, so there
|
|
22
|
+
* is no OCR value to abbreviate against). Murang'a, Elgeyo-Marakwet,
|
|
23
|
+
* Taita-Taveta and Tharaka-Nithi carry an apostrophe or a hyphen, which the
|
|
24
|
+
* shared `alphaNumericSpaceInWords` rule rejects — and a select's rules do
|
|
25
|
+
* reach react-hook-form (SharedSelect/Select.tsx passes `rules` to
|
|
26
|
+
* `Controller`), so those four would be un-submittable. Widened here, on
|
|
27
|
+
* KEN's own copy, never on the shared helper.
|
|
28
|
+
* 3. **The ID number is not the card serial.** See `national-id.config.ts`
|
|
29
|
+
* (KEN): a Kenyan ID carries a 7-8 digit national ID number, which is what
|
|
30
|
+
* GDC matches on, plus a 9-digit card serial.
|
|
31
|
+
*/
|
|
32
|
+
const KEN_ADDRESS_MESSAGES = {
|
|
33
|
+
'address.town': { required: 'Please enter your town or city' },
|
|
34
|
+
'address.state': { required: 'Please select your county' },
|
|
35
|
+
};
|
|
36
|
+
export const kenReviewFieldConfig = [
|
|
37
|
+
...basePersonalFields,
|
|
38
|
+
addressBlock(localiseFieldMessages([
|
|
39
|
+
countrySubfield(),
|
|
40
|
+
unitNumberSubfield('Apartment / Unit (optional)'),
|
|
41
|
+
optionalStreetNumberSubfield('House / Building Number (optional)'),
|
|
42
|
+
streetNameSubfield('Street Name'),
|
|
43
|
+
streetAddressSubfield('Street Address'),
|
|
44
|
+
townSubfield('Town / City'),
|
|
45
|
+
stateSubfield('County', 'Select your county', Object.assign({}, ValidationRulesForForm.alphaNumericSpaceAccented)),
|
|
46
|
+
postalCodeSubfield({
|
|
47
|
+
label: 'Postal Code',
|
|
48
|
+
digits: 5,
|
|
49
|
+
pattern: Object.assign({}, ValidationRulesForForm.onlyNumbers),
|
|
50
|
+
minMessage: 'Postal code must be 5 digits',
|
|
51
|
+
maxMessage: 'Postal code must be 5 digits',
|
|
52
|
+
}),
|
|
53
|
+
], KEN_ADDRESS_MESSAGES)),
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=ken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ken.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/ken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,oBAAoB,GAGtB;IACF,cAAc,EAAE,EAAE,QAAQ,EAAE,gCAAgC,EAAE;IAC9D,eAAe,EAAE,EAAE,QAAQ,EAAE,2BAA2B,EAAE;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,GAAG,kBAAkB;IACrB,YAAY,CACV,qBAAqB,CACnB;QACE,eAAe,EAAE;QACjB,kBAAkB,CAAC,6BAA6B,CAAC;QACjD,4BAA4B,CAAC,oCAAoC,CAAC;QAClE,kBAAkB,CAAC,aAAa,CAAC;QACjC,qBAAqB,CAAC,gBAAgB,CAAC;QACvC,YAAY,CAAC,aAAa,CAAC;QAC3B,aAAa,CAAC,QAAQ,EAAE,oBAAoB,oBAMvC,sBAAsB,CAAC,yBAAyB,EACnD;QACF,kBAAkB,CAAC;YACjB,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,CAAC;YACT,OAAO,oBAAO,sBAAsB,CAAC,WAAW,CAAE;YAClD,UAAU,EAAE,8BAA8B;YAC1C,UAAU,EAAE,8BAA8B;SAC3C,CAAC;KACH,EACD,oBAAoB,CACrB,CACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mys.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/mys.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAqG5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EAsC3C,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ValidationRulesForForm } from '../../../../constants/form.const.js';
|
|
2
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, optionalStreetNumberSubfield, postalCodeSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
3
|
+
import { basePersonalFields } from '../fields/personalFields.js';
|
|
4
|
+
/**
|
|
5
|
+
* Malaysia (MYS) — FDEL-52695.
|
|
6
|
+
*
|
|
7
|
+
* Primary document is the MyKad (Kad Pengenalan Malaysia), a NATIONAL_ID.
|
|
8
|
+
* Everything structural here traces to `connectors` config rather than to a
|
|
9
|
+
* guess — `con_gdc.json` soft_validation_rules.MY and doc/gdc-country-guide.md
|
|
10
|
+
* (MY) between them fix four of the five decisions:
|
|
11
|
+
*
|
|
12
|
+
* 1. **No house number required.** `"requires_house_number": false` for MY,
|
|
13
|
+
* against a `_default` of true. Malaysian addresses are commonly written as
|
|
14
|
+
* a lot or a taman name with no house number. MY's `address_required_fields`
|
|
15
|
+
* are street_name, town and postal_code — those three keep their required
|
|
16
|
+
* rule, and nothing else does.
|
|
17
|
+
* 2. **A 5-digit poskod**, per MY's `postal_code_pattern` `^\d{5}$`.
|
|
18
|
+
* 3. **A single family name.** `countries_surname_mapping` lists only MX/ES/PT,
|
|
19
|
+
* so there is no paternal/maternal split to mirror. Malay names are
|
|
20
|
+
* patronymic (bin/binti) and carry no family name at all, but GDC is sent one
|
|
21
|
+
* name either way, so the base three-field shape is what the applicant should
|
|
22
|
+
* see — with the MyKad named in the helper text so they copy it verbatim.
|
|
23
|
+
* 4. **Sixteen state options**, from `subdivisions/mys.json`. MY carries no
|
|
24
|
+
* `valid_state_codes`, so the state travels as the name the address prints.
|
|
25
|
+
*
|
|
26
|
+
* The fifth is a form-side correctness gate rather than a config read: a MyKad
|
|
27
|
+
* prints Indian-Malaysian names with the patronymic `A/L` / `A/P` and an alias
|
|
28
|
+
* as a free-standing `@`, neither of which the shared name rule allows. See
|
|
29
|
+
* `latinNameWithSlashApostropheHyphenAndAlias` in form.const.ts.
|
|
30
|
+
*
|
|
31
|
+
* Bilingual labels apply: Bahasa Malaysia is the national language and a MyKad
|
|
32
|
+
* is printed in Malay only, so every applicant-visible string is
|
|
33
|
+
* `Malay / English`, local first — the applicant is holding the card. Malay is
|
|
34
|
+
* Latin script, so unlike HKG/THA/TWN this costs no widening on the address
|
|
35
|
+
* patterns and no calendar override (Malaysia is Gregorian).
|
|
36
|
+
*
|
|
37
|
+
* ponytail: no Taman/Kampung field. It shipped on a product call while its OCR
|
|
38
|
+
* source was unknown; a real MyKad scan then showed
|
|
39
|
+
* `ocr_scanned_address_suburb` is *identical to* `ocr_scanned_address_city` —
|
|
40
|
+
* both the city — with the Taman surviving only inside the free-text long
|
|
41
|
+
* address. So the field prefilled with the city, duplicating the one below it,
|
|
42
|
+
* and it fed nothing anyway: DataZoo has no MY branch in
|
|
43
|
+
* `applyCountryAddressMapping`. Dropped rather than shown wrong. (FDEL-52695)
|
|
44
|
+
*
|
|
45
|
+
* A MyKad also prints no date of birth — it is the first six digits (YYMMDD) of
|
|
46
|
+
* the IC number — and the scan confirms Incode does not derive one
|
|
47
|
+
* (`ocr_scanned_date_of_birth` null, `raw.notExtractedDetails: ["birthDate"]`).
|
|
48
|
+
* No form change: GDC requires DOB for MY either way and the applicant types it.
|
|
49
|
+
*/
|
|
50
|
+
const MYS_PERSONAL_LABELS = {
|
|
51
|
+
givenName: 'Nama Pertama / Given Name',
|
|
52
|
+
middleName: 'Nama Tengah / Middle Name(s)',
|
|
53
|
+
familyName: 'Nama Keluarga / Family Name',
|
|
54
|
+
'extraData.otherName': 'Nama Lain / Other Name(s)',
|
|
55
|
+
dateOfBirth: 'Tarikh Lahir / Date of Birth',
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Bilingual label *and* a MyKad-tolerant name pattern, applied the same way THA
|
|
59
|
+
* applies its Thai-tolerant one: map over the shared palette, never edit it.
|
|
60
|
+
* Only the four name fields carry a pattern; `dateOfBirth` is skipped by the
|
|
61
|
+
* guard.
|
|
62
|
+
*/
|
|
63
|
+
const mysBaseFields = basePersonalFields.map((field) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const label = MYS_PERSONAL_LABELS[field.name];
|
|
66
|
+
const rules = ((_a = field.rules) === null || _a === void 0 ? void 0 : _a.pattern)
|
|
67
|
+
? Object.assign(Object.assign({}, field.rules), { pattern: Object.assign({}, ValidationRulesForForm.latinNameWithSlashApostropheHyphenAndAlias) }) : field.rules;
|
|
68
|
+
return Object.assign(Object.assign(Object.assign({}, field), (label ? { label } : {})), { rules });
|
|
69
|
+
});
|
|
70
|
+
const MYS_ADDRESS_MESSAGES = {
|
|
71
|
+
'address.country': {
|
|
72
|
+
required: 'Sila pilih negara anda / Please select your country',
|
|
73
|
+
},
|
|
74
|
+
'address.streetName': {
|
|
75
|
+
required: 'Sila masukkan nama jalan anda / Please enter your street name',
|
|
76
|
+
},
|
|
77
|
+
'address.streetAddress': {
|
|
78
|
+
required: 'Sila masukkan alamat jalan anda / Please enter your street address',
|
|
79
|
+
},
|
|
80
|
+
'address.town': {
|
|
81
|
+
required: 'Sila masukkan bandar anda / Please enter your city',
|
|
82
|
+
},
|
|
83
|
+
'address.state': {
|
|
84
|
+
required: 'Sila pilih negeri anda / Please select your state',
|
|
85
|
+
},
|
|
86
|
+
'address.postalCode': {
|
|
87
|
+
required: 'Sila masukkan poskod anda / Please enter your postcode',
|
|
88
|
+
pattern: 'Poskod mesti nombor sahaja / Postcode must be numbers only',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export const mysReviewFieldConfig = [
|
|
92
|
+
...mysBaseFields,
|
|
93
|
+
Object.assign(Object.assign({}, addressBlock(localiseFieldMessages([
|
|
94
|
+
countrySubfield('Negara / Country'),
|
|
95
|
+
unitNumberSubfield('No. Unit / Unit Number (optional)'),
|
|
96
|
+
optionalStreetNumberSubfield('No. Rumah / House Number (optional)'),
|
|
97
|
+
streetNameSubfield('Nama Jalan / Street Name'),
|
|
98
|
+
streetAddressSubfield('Alamat Jalan / Street Address'),
|
|
99
|
+
townSubfield('Bandar / City'),
|
|
100
|
+
stateSubfield('Negeri / State', 'Pilih negeri anda / Select your state'),
|
|
101
|
+
postalCodeSubfield({
|
|
102
|
+
label: 'Poskod / Postcode',
|
|
103
|
+
digits: 5,
|
|
104
|
+
pattern: Object.assign({}, ValidationRulesForForm.onlyNumbers),
|
|
105
|
+
minMessage: 'Poskod mesti 5 digit / Postcode must be 5 digits',
|
|
106
|
+
maxMessage: 'Poskod mesti 5 digit / Postcode must be 5 digits',
|
|
107
|
+
}),
|
|
108
|
+
], MYS_ADDRESS_MESSAGES))), { label: 'Alamat Kediaman / Residential Address', placeholder: 'Taip alamat anda / Type in your address', helperText: 'Tidak boleh Peti Surat / Cannot be a PO Box', rules: {
|
|
109
|
+
required: {
|
|
110
|
+
value: true,
|
|
111
|
+
message: 'Sila masukkan alamat kediaman anda / Please enter your residential address',
|
|
112
|
+
},
|
|
113
|
+
} }),
|
|
114
|
+
];
|
|
115
|
+
//# sourceMappingURL=mys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mys.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/mys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC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wDAAwD;QAClE,OAAO,EAAE,4DAA4D;KACtE;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,GAAG,aAAa;IAChB,gCACK,YAAY,CACb,qBAAqB,CACnB;QACE,eAAe,CAAC,kBAAkB,CAAC;QACnC,kBAAkB,CAAC,mCAAmC,CAAC;QACvD,4BAA4B,CAAC,qCAAqC,CAAC;QACnE,kBAAkB,CAAC,0BAA0B,CAAC;QAC9C,qBAAqB,CAAC,+BAA+B,CAAC;QACtD,YAAY,CAAC,eAAe,CAAC;QAC7B,aAAa,CACX,gBAAgB,EAChB,uCAAuC,CACxC;QACD,kBAAkB,CAAC;YACjB,KAAK,EAAE,mBAAmB;YAC1B,MAAM,EAAE,CAAC;YACT,OAAO,oBAAO,sBAAsB,CAAC,WAAW,CAAE;YAClD,UAAU,EAAE,kDAAkD;YAC9D,UAAU,EAAE,kDAAkD;SAC/D,CAAC;KACH,EACD,oBAAoB,CACrB,CACF,KACD,KAAK,EAAE,uCAAuC,EAC9C,WAAW,EAAE,yCAAyC,EACtD,UAAU,EAAE,6CAA6C,EACzD,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI;gBACX,OAAO,EACL,4EAA4E;aAC/E;SACF,GACW;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nga.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/nga.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAsF5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EA0B3C,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ValidationRulesForForm } from '../../../../constants/form.const.js';
|
|
2
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, optionalStreetNumberSubfield, postalCodeSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
3
|
+
import { basePersonalFields } from '../fields/personalFields.js';
|
|
4
|
+
/**
|
|
5
|
+
* Nigeria (NGA) — FDEL-52694.
|
|
6
|
+
*
|
|
7
|
+
* English-speaking and Gregorian, so none of the bilingual-label or calendar
|
|
8
|
+
* rules that HKG/THA/TWN needed apply; `basePersonalFields` is used as-is.
|
|
9
|
+
* English is the official language of Nigeria and the national ID card is
|
|
10
|
+
* printed in English. The Kenya/South Africa shape, with three departures, each
|
|
11
|
+
* traced to `connectors` config rather than to a guess:
|
|
12
|
+
*
|
|
13
|
+
* 1. **No house number required.** `con_gdc.json` soft_validation_rules sets
|
|
14
|
+
* `"requires_house_number": false` for NG, against a `_default` of true —
|
|
15
|
+
* the same exception KE and ZA carry. NG's `address_required_fields` are
|
|
16
|
+
* street_name, town and postal_code; those three keep their required rule.
|
|
17
|
+
* 2. **A 6-digit postal code**, per NG's `postal_code_pattern` `^\d{6}$` —
|
|
18
|
+
* Lagos is 100001. Wider than KE's five and ZA's four, so it cannot inherit
|
|
19
|
+
* either.
|
|
20
|
+
* 3. **The state select keeps the SHARED pattern.** This is the one place
|
|
21
|
+
* Nigeria is simpler than its two predecessors. KEN and ZAF both had to
|
|
22
|
+
* widen their own `stateSubfield` rule because Murang'a, Elgeyo-Marakwet and
|
|
23
|
+
* KwaZulu-Natal carry an apostrophe or hyphen that `alphaNumericSpaceInWords`
|
|
24
|
+
* rejects — and a select's rules do reach react-hook-form
|
|
25
|
+
* (SharedSelect/Select.tsx passes `rules` to `Controller`), so those options
|
|
26
|
+
* would be un-submittable. All 37 Nigerian entries are plain letters and
|
|
27
|
+
* spaces, so no widening is warranted, and a widening nobody needs is dead
|
|
28
|
+
* config. `countries.spec.ts` asserts the pattern is byte-identical to the
|
|
29
|
+
* shared one and that every option survives it, so this stays honest if the
|
|
30
|
+
* subdivision data changes.
|
|
31
|
+
*
|
|
32
|
+
* The ID number itself lives in `national-id.config.ts` (NGA): the 11-digit NIN,
|
|
33
|
+
* which is what GDC matches on. GDC requires Name, Address, DOB and National ID
|
|
34
|
+
* for NG (doc/gdc-country-guide.md), so every field here feeds a required match.
|
|
35
|
+
*/
|
|
36
|
+
const NGA_ADDRESS_MESSAGES = {
|
|
37
|
+
'address.town': { required: 'Please enter your town or city' },
|
|
38
|
+
'address.state': { required: 'Please select your state' },
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Nigeria's Bank Verification Number, asked for on the review screen because no
|
|
42
|
+
* scan can supply it.
|
|
43
|
+
*
|
|
44
|
+
* DataZoo's Nigeria bank check (`ng-bank` -> `NG-GVT4`) reads it off a
|
|
45
|
+
* **BANK_ACCOUNT identity document**: `processBankCardNumber`
|
|
46
|
+
* (`connectors/driver/datazoo/kyc/request.go`) does
|
|
47
|
+
* `getDocByType(identityDocs, EnumIDTypeBANKACCOUNT)` and sends that document's
|
|
48
|
+
* `IDNumber` as `bankCardNo`. A Nigerian national ID card does not print a BVN,
|
|
49
|
+
* and no `ocr_scanned_*` key carries one — so the applicant is the only possible
|
|
50
|
+
* source. `useReviewUpdateFactory` turns a filled value into that document on
|
|
51
|
+
* submit.
|
|
52
|
+
*
|
|
53
|
+
* **Optional by design.** An applicant who does not have their BVN to hand must
|
|
54
|
+
* still be able to finish IDV: the bank check is an addition to the GDC identity
|
|
55
|
+
* match, not a replacement for it, and GDC's required matches for NG (Name,
|
|
56
|
+
* Address, DOB, National ID) are all satisfied without it.
|
|
57
|
+
*
|
|
58
|
+
* The pattern accepts the separators the connector itself strips (`" "` and
|
|
59
|
+
* `"-"`), so a grouped paste is not rejected for a formatting difference the
|
|
60
|
+
* connector would have removed anyway — while a wrong *length* still fails here
|
|
61
|
+
* rather than silently at DataZoo. GDC's own BVN rule for NG is `\d{11}`.
|
|
62
|
+
*/
|
|
63
|
+
function bankVerificationNumberField() {
|
|
64
|
+
return {
|
|
65
|
+
fieldType: 'input',
|
|
66
|
+
hide: false,
|
|
67
|
+
// text, NOT number: a BVN can lead with a zero, which a numeric input would
|
|
68
|
+
// strip.
|
|
69
|
+
dataType: 'text',
|
|
70
|
+
label: 'Bank Verification Number (BVN) (optional)',
|
|
71
|
+
name: 'bankAccountNumber',
|
|
72
|
+
helperText: 'Optional. Dial *565*0# from your registered phone to retrieve your BVN.',
|
|
73
|
+
rules: {
|
|
74
|
+
pattern: {
|
|
75
|
+
value: '^[0-9](?:[- ]?[0-9]){10}$',
|
|
76
|
+
message: 'BVN must be 11 digits',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
testid: { input: 'bvn-input' },
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export const ngaReviewFieldConfig = [
|
|
83
|
+
...basePersonalFields,
|
|
84
|
+
bankVerificationNumberField(),
|
|
85
|
+
addressBlock(localiseFieldMessages([
|
|
86
|
+
countrySubfield(),
|
|
87
|
+
unitNumberSubfield('Apartment / Unit (optional)'),
|
|
88
|
+
optionalStreetNumberSubfield('House / Building Number (optional)'),
|
|
89
|
+
streetNameSubfield('Street Name'),
|
|
90
|
+
streetAddressSubfield('Street Address'),
|
|
91
|
+
townSubfield('Town / City'),
|
|
92
|
+
// No pattern override: see (3) above — the shared rule already accepts
|
|
93
|
+
// every Nigerian state name.
|
|
94
|
+
stateSubfield('State', 'Select your state'),
|
|
95
|
+
postalCodeSubfield({
|
|
96
|
+
label: 'Postal Code',
|
|
97
|
+
digits: 6,
|
|
98
|
+
pattern: Object.assign({}, ValidationRulesForForm.onlyNumbers),
|
|
99
|
+
minMessage: 'Postal code must be 6 digits',
|
|
100
|
+
maxMessage: 'Postal code must be 6 digits',
|
|
101
|
+
}),
|
|
102
|
+
], NGA_ADDRESS_MESSAGES)),
|
|
103
|
+
];
|
|
104
|
+
//# sourceMappingURL=nga.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nga.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/nga.ts"],"names":[],"mappings":"AAAA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AAO,EAAE,mBAAmB,CAAC;QAC3C,kBAAkB,CAAC;YACjB,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,CAAC;YACT,OAAO,oBAAO,sBAAsB,CAAC,WAAW,CAAE;YAClD,UAAU,EAAE,8BAA8B;YAC1C,UAAU,EAAE,8BAA8B;SAC3C,CAAC;KACH,EACD,oBAAoB,CACrB,CACF;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidationRulesForForm } from '../../../../constants/form.const.js';
|
|
2
|
-
import { addressBlock,
|
|
2
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, postalCodeSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, streetNumberSubfield, suburbSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
3
3
|
import { basePersonalFields } from '../fields/personalFields.js';
|
|
4
4
|
/**
|
|
5
5
|
* Philippines (PHL) — FDEL-52331.
|
|
@@ -62,7 +62,7 @@ export const phlReviewFieldConfig = [
|
|
|
62
62
|
streetNumberSubfield('House / Building Number'),
|
|
63
63
|
streetNameSubfield('Street Name'),
|
|
64
64
|
streetAddressSubfield('Street Address'),
|
|
65
|
-
|
|
65
|
+
suburbSubfield('Barangay'),
|
|
66
66
|
townSubfield('City / Municipality'),
|
|
67
67
|
stateSubfield('Province', 'Select your province'),
|
|
68
68
|
postalCodeSubfield({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phl.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/phl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"phl.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/phl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E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kBAAkB,CAAC;YACjB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,CAAC;YACT,OAAO,oBAAO,sBAAsB,CAAC,WAAW,CAAE;YAClD,UAAU,EAAE,2BAA2B;YACvC,UAAU,EAAE,2BAA2B;SACxC,CAAC;KACH,EACD,oBAAoB,CACrB,CACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sgp.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/sgp.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAsD5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EA2C3C,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ValidationRulesForForm } from '../../../../constants/form.const.js';
|
|
2
|
+
import { addressBlock, countrySubfield, localiseFieldMessages, optionalStreetNumberSubfield, postalCodeSubfield, stateSubfield, streetAddressSubfield, streetNameSubfield, townSubfield, unitNumberSubfield, } from '../fields/addressField.js';
|
|
3
|
+
import { basePersonalFields } from '../fields/personalFields.js';
|
|
4
|
+
/**
|
|
5
|
+
* Singapore (SGP) — FDEL-52696.
|
|
6
|
+
*
|
|
7
|
+
* English is Singapore's language of administration and the NRIC is printed in
|
|
8
|
+
* English, so the bilingual-label rule that HKG/THA/TWN needed does not apply;
|
|
9
|
+
* the calendar is Gregorian, so there is no era conversion either.
|
|
10
|
+
* `basePersonalFields` is used as-is. This is the GBR/KEN shape, not the
|
|
11
|
+
* HKG/THA/TWN one.
|
|
12
|
+
*
|
|
13
|
+
* Four things are Singapore-specific, and each traces to `connectors` config
|
|
14
|
+
* rather than to a guess — `con_gdc.json` soft_validation_rules.SG reads:
|
|
15
|
+
*
|
|
16
|
+
* { "expected_id_doc_types": ["NATIONAL_ID"],
|
|
17
|
+
* "id_number_patterns": { "NATIONAL_ID": "^[STFGM]\\d{7}[A-Z]$" },
|
|
18
|
+
* "postal_code_pattern": "^\\d{6}$",
|
|
19
|
+
* "address_required_fields": ["street_name", "town", "postal_code"],
|
|
20
|
+
* "requires_house_number": false }
|
|
21
|
+
*
|
|
22
|
+
* 1. **No subdivision.** Singapore is a city-state — no province, region or
|
|
23
|
+
* district appears in a postal address, and the NRIC prints none. No
|
|
24
|
+
* `subdivisions/sgp.json` is registered, so `applyAddressStateSubdivisions`
|
|
25
|
+
* resolves the field to `hide: true` at render. It is still declared here
|
|
26
|
+
* because the address country is applicant-selectable: an SGP-document
|
|
27
|
+
* holder living in Australia must still get a state dropdown. (Same reason
|
|
28
|
+
* GBR declares its County.)
|
|
29
|
+
* 2. **No block number required.** `requires_house_number: false`, against a
|
|
30
|
+
* `_default` of true — so SGP takes `optionalStreetNumberSubfield`, the
|
|
31
|
+
* shared helper KEN, ZAF and MYS use for the same reason.
|
|
32
|
+
* 3. **The unit number is `#12-34`.** Every Singapore unit number is written
|
|
33
|
+
* with a '#' and a '-', both of which the helper's default
|
|
34
|
+
* `alphaNumericSpaceAccented` rejects — so the default would hard-block the
|
|
35
|
+
* value the applicant is reading off their own address.
|
|
36
|
+
* 4. **A City field with nothing on the document to fill it.** A Singapore
|
|
37
|
+
* address is block + street + unit + a 6-digit postal code; no town or city
|
|
38
|
+
* is printed. But `town` IS one of SG's `address_required_fields`, so a
|
|
39
|
+
* blank one fails the GDC address match silently at the connector. Since
|
|
40
|
+
* there is exactly one right answer and nothing on the document to read it
|
|
41
|
+
* from, the value is **fixed to 'Singapore' and the field is not editable**
|
|
42
|
+
* rather than asked for.
|
|
43
|
+
*
|
|
44
|
+
* GDC lists SG as **Premium** (GDC04/05/06) requiring Name, Address, DOB *and*
|
|
45
|
+
* National ID, with partial (year-only) DOB matching — see
|
|
46
|
+
* `connectors/doc/gdc-country-guide.md`, SG section.
|
|
47
|
+
*/
|
|
48
|
+
const SGP_ADDRESS_MESSAGES = {
|
|
49
|
+
'address.town': { required: 'Please enter your city' },
|
|
50
|
+
'address.state': { required: 'Please select your state' },
|
|
51
|
+
};
|
|
52
|
+
export const sgpReviewFieldConfig = [
|
|
53
|
+
...basePersonalFields,
|
|
54
|
+
addressBlock(localiseFieldMessages([
|
|
55
|
+
countrySubfield(),
|
|
56
|
+
unitNumberSubfield('Unit Number (optional)', {
|
|
57
|
+
// Accepts '#12-34', '12-34' and '#01-1015A' — the forms a Singapore
|
|
58
|
+
// unit number is actually printed in. The shared
|
|
59
|
+
// alphaNumericSpaceAccented default rejects '#' and '-' outright.
|
|
60
|
+
value: '^[#]?[A-Za-z0-9]+(-[A-Za-z0-9]+)*$',
|
|
61
|
+
message: 'Please enter your unit number, e.g. #12-34',
|
|
62
|
+
}),
|
|
63
|
+
optionalStreetNumberSubfield('Block / House Number (optional)'),
|
|
64
|
+
streetNameSubfield('Street Name'),
|
|
65
|
+
streetAddressSubfield('Street Address'),
|
|
66
|
+
// Fixed, not asked for: see note 4 above. `disabledVisually` (not
|
|
67
|
+
// `disabled`) is deliberate — it disables the input visually while
|
|
68
|
+
// leaving the value in react-hook-form state, so it still reaches the
|
|
69
|
+
// entity and the GDC address match. A truly `disabled` Controller field
|
|
70
|
+
// is omitted from getValues() and would submit nothing.
|
|
71
|
+
//
|
|
72
|
+
// `defaultValue` covers the render; review.model.ts forces the same
|
|
73
|
+
// value ahead of the prefill chain so a stored town cannot occupy a
|
|
74
|
+
// field the applicant can no longer correct.
|
|
75
|
+
Object.assign(Object.assign({}, townSubfield('City')), { defaultValue: 'Singapore', disabledVisually: true }),
|
|
76
|
+
// Hidden for SGP (no subdivisions registered); see the note above.
|
|
77
|
+
stateSubfield('State / Province', 'Select your state or province'),
|
|
78
|
+
postalCodeSubfield({
|
|
79
|
+
label: 'Postal Code',
|
|
80
|
+
digits: 6,
|
|
81
|
+
pattern: Object.assign({}, ValidationRulesForForm.onlyNumbers),
|
|
82
|
+
minMessage: 'Postal code must be 6 digits',
|
|
83
|
+
maxMessage: 'Postal code must be 6 digits',
|
|
84
|
+
}),
|
|
85
|
+
], SGP_ADDRESS_MESSAGES)),
|
|
86
|
+
];
|
|
87
|
+
//# sourceMappingURL=sgp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sgp.js","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/sgp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,oBAAoB,GAGtB;IACF,cAAc,EAAE,EAAE,QAAQ,EAAE,wBAAwB,EAAE;IACtD,eAAe,EAAE,EAAE,QAAQ,EAAE,0BAA0B,EAAE;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,GAAG,kBAAkB;IACrB,YAAY,CACV,qBAAqB,CACnB;QACE,eAAe,EAAE;QACjB,kBAAkB,CAAC,wBAAwB,EAAE;YAC3C,oEAAoE;YACpE,iDAAiD;YACjD,kEAAkE;YAClE,KAAK,EAAE,oCAAoC;YAC3C,OAAO,EAAE,4CAA4C;SACtD,CAAC;QACF,4BAA4B,CAAC,iCAAiC,CAAC;QAC/D,kBAAkB,CAAC,aAAa,CAAC;QACjC,qBAAqB,CAAC,gBAAgB,CAAC;QACvC,kEAAkE;QAClE,mEAAmE;QACnE,sEAAsE;QACtE,wEAAwE;QACxE,wDAAwD;QACxD,EAAE;QACF,oEAAoE;QACpE,oEAAoE;QACpE,6CAA6C;QAC7C,gCACK,YAAY,CAAC,MAAM,CAAC,KACvB,YAAY,EAAE,WAAW,EACzB,gBAAgB,EAAE,IAAI,GACV;QACd,mEAAmE;QACnE,aAAa,CAAC,kBAAkB,EAAE,+BAA+B,CAAC;QAClE,kBAAkB,CAAC;YACjB,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,CAAC;YACT,OAAO,oBAAO,sBAAsB,CAAC,WAAW,CAAE;YAClD,UAAU,EAAE,8BAA8B;YAC1C,UAAU,EAAE,8BAA8B;SAC3C,CAAC;KACH,EACD,oBAAoB,CACrB,CACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zaf.d.ts","sourceRoot":"","sources":["../../../../../../../../../../modules/form/vendors/react/features/Review/config/countries/zaf.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAuC5D,eAAO,MAAM,oBAAoB,EAAE,SAAS,EA6B3C,CAAC"}
|