clarion-shared-types 1.0.130 → 1.0.131
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/cjs/modules/country/constants/supported-countries.const.js +16 -0
- package/dist/cjs/modules/country/constants/supported-countries.const.js.map +1 -1
- package/dist/cjs/modules/country/constants/supported-currencies.const.js +8 -0
- package/dist/cjs/modules/country/constants/supported-currencies.const.js.map +1 -1
- package/dist/cjs/modules/country/enums/calling-code.enum.js +2 -0
- package/dist/cjs/modules/country/enums/calling-code.enum.js.map +1 -1
- package/dist/cjs/modules/country/enums/country-code.enum.js +2 -0
- package/dist/cjs/modules/country/enums/country-code.enum.js.map +1 -1
- package/dist/cjs/modules/country/enums/currency-code.enum.js +2 -0
- package/dist/cjs/modules/country/enums/currency-code.enum.js.map +1 -1
- package/dist/esm/modules/country/constants/supported-countries.const.js +16 -0
- package/dist/esm/modules/country/constants/supported-countries.const.js.map +1 -1
- package/dist/esm/modules/country/constants/supported-currencies.const.js +8 -0
- package/dist/esm/modules/country/constants/supported-currencies.const.js.map +1 -1
- package/dist/esm/modules/country/enums/calling-code.enum.js +2 -0
- package/dist/esm/modules/country/enums/calling-code.enum.js.map +1 -1
- package/dist/esm/modules/country/enums/country-code.enum.js +2 -0
- package/dist/esm/modules/country/enums/country-code.enum.js.map +1 -1
- package/dist/esm/modules/country/enums/currency-code.enum.js +2 -0
- package/dist/esm/modules/country/enums/currency-code.enum.js.map +1 -1
- package/dist/types/modules/auth/dtos/register.dto.d.ts +1 -1
- package/dist/types/modules/country/enums/calling-code.enum.d.ts +3 -1
- package/dist/types/modules/country/enums/country-code.enum.d.ts +3 -1
- package/dist/types/modules/country/enums/currency-code.enum.d.ts +3 -1
- package/dist/types/modules/country/interfaces/supported-currency-config.d.ts +3 -3
- package/dist/types/modules/organization/interfaces/organization.d.ts +1 -1
- package/package.json +1 -1
|
@@ -58,6 +58,22 @@ exports.SUPPORTED_COUNTRIES_BY_CODE = {
|
|
|
58
58
|
mapBounds: { north: -0.984, south: -11.761, east: 40.444, west: 29.327 },
|
|
59
59
|
enabled: true,
|
|
60
60
|
},
|
|
61
|
+
[country_code_enum_1.CountryCode.ZM]: {
|
|
62
|
+
code: country_code_enum_1.CountryCode.ZM,
|
|
63
|
+
name: 'Zambia',
|
|
64
|
+
callingCode: calling_code_enum_1.CallingCode.ZM,
|
|
65
|
+
currencyCode: currency_code_enum_1.CurrencyCode.ZMW,
|
|
66
|
+
currencySymbol: 'K',
|
|
67
|
+
currencyDecimalPlaces: 2,
|
|
68
|
+
// Central Africa Time (UTC+2), an hour behind the East African markets.
|
|
69
|
+
timezone: 'Africa/Lusaka',
|
|
70
|
+
defaultLocale: 'en-ZM',
|
|
71
|
+
googleMapsRegion: 'ZM',
|
|
72
|
+
defaultMapCenter: { lat: -15.3875, lng: 28.3228 }, // Lusaka
|
|
73
|
+
defaultMapZoom: 6,
|
|
74
|
+
mapBounds: { north: -8.224, south: -18.08, east: 33.706, west: 21.999 },
|
|
75
|
+
enabled: true,
|
|
76
|
+
},
|
|
61
77
|
};
|
|
62
78
|
/** Supported countries as an array (convenient for iteration / pickers). */
|
|
63
79
|
exports.SUPPORTED_COUNTRIES = Object.values(exports.SUPPORTED_COUNTRIES_BY_CODE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-countries.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-countries.const.ts"],"names":[],"mappings":";;;AAAA,kEAAyD;AACzD,kEAAyD;AACzD,oEAA2D;AAG3D;;;;;;;GAOG;AACU,QAAA,2BAA2B,GAA0D;IAC9F,CAAC,+BAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,+BAAW,CAAC,EAAE;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,+BAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,iCAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,CAAC;Q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IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,gBAAgB;QAClE,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACxE,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,4EAA4E;AAC/D,QAAA,mBAAmB,GAC5B,MAAM,CAAC,MAAM,CAAC,mCAA2B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"supported-countries.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-countries.const.ts"],"names":[],"mappings":";;;AAAA,kEAAyD;AACzD,kEAAyD;AACzD,oEAA2D;AAG3D;;;;;;;GAOG;AACU,QAAA,2BAA2B,GAA0D;IAC9F,CAAC,+BAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,+BAAW,CAAC,EAAE;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,+BAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,iCAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,CAAC;QACxB,QAAQ,EAAE,gBAAgB;QAC1B,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,UAAU;QAC5D,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACrE,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,+BAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,+BAAW,C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,EAAE;QAC3B,YAAY,EAAE,iCAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,GAAG;QACnB,qBAAqB,EAAE,CAAC;QACxB,wEAAwE;QACxE,QAAQ,EAAE,eAAe;QACzB,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,SAAS;QAC5D,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACvE,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,4EAA4E;AAC/D,QAAA,mBAAmB,GAC5B,MAAM,CAAC,MAAM,CAAC,mCAA2B,CAAC,CAAC"}
|
|
@@ -30,6 +30,14 @@ exports.SUPPORTED_CURRENCIES_BY_CODE = {
|
|
|
30
30
|
decimalPlaces: 0,
|
|
31
31
|
enabled: true,
|
|
32
32
|
},
|
|
33
|
+
[currency_code_enum_1.CurrencyCode.ZMW]: {
|
|
34
|
+
code: currency_code_enum_1.CurrencyCode.ZMW,
|
|
35
|
+
name: 'Zambian Kwacha',
|
|
36
|
+
symbol: 'K',
|
|
37
|
+
// 100 ngwee to the kwacha, and prices are quoted with them.
|
|
38
|
+
decimalPlaces: 2,
|
|
39
|
+
enabled: true,
|
|
40
|
+
},
|
|
33
41
|
};
|
|
34
42
|
/** Supported currencies as an array (convenient for iteration / pickers). */
|
|
35
43
|
exports.SUPPORTED_CURRENCIES = Object.values(exports.SUPPORTED_CURRENCIES_BY_CODE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-currencies.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-currencies.const.ts"],"names":[],"mappings":";;;AAAA,oEAA2D;AAG3D;;;;;GAKG;AACU,QAAA,4BAA4B,GAA4D;IACjG,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,6EAA6E;AAChE,QAAA,oBAAoB,GAC7B,MAAM,CAAC,MAAM,CAAC,oCAA4B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"supported-currencies.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-currencies.const.ts"],"names":[],"mappings":";;;AAAA,oEAA2D;AAG3D;;;;;GAKG;AACU,QAAA,4BAA4B,GAA4D;IACjG,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,iCAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,iCAAY,CAAC,GAAG;QACtB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,GAAG;QACX,4DAA4D;QAC5D,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,6EAA6E;AAChE,QAAA,oBAAoB,GAC7B,MAAM,CAAC,MAAM,CAAC,oCAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calling-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/calling-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"calling-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/calling-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACnB,YAAY;IACZ,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;IACX,eAAe;IACf,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;AACf,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/country-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"country-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/country-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACnB,YAAY;IACZ,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;IACT,eAAe;IACf,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;AACb,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -16,5 +16,7 @@ var CurrencyCode;
|
|
|
16
16
|
CurrencyCode["UGX"] = "UGX";
|
|
17
17
|
/** Tanzanian Shilling */
|
|
18
18
|
CurrencyCode["TZS"] = "TZS";
|
|
19
|
+
/** Zambian Kwacha */
|
|
20
|
+
CurrencyCode["ZMW"] = "ZMW";
|
|
19
21
|
})(CurrencyCode || (exports.CurrencyCode = CurrencyCode = {}));
|
|
20
22
|
//# sourceMappingURL=currency-code.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/currency-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"currency-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/currency-code.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACpB,sBAAsB;IACtB,2BAAW,CAAA;IACX,uBAAuB;IACvB,2BAAW,CAAA;IACX,yBAAyB;IACzB,2BAAW,CAAA;IACX,qBAAqB;IACrB,2BAAW,CAAA;AACf,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB"}
|
|
@@ -55,6 +55,22 @@ export const SUPPORTED_COUNTRIES_BY_CODE = {
|
|
|
55
55
|
mapBounds: { north: -0.984, south: -11.761, east: 40.444, west: 29.327 },
|
|
56
56
|
enabled: true,
|
|
57
57
|
},
|
|
58
|
+
[CountryCode.ZM]: {
|
|
59
|
+
code: CountryCode.ZM,
|
|
60
|
+
name: 'Zambia',
|
|
61
|
+
callingCode: CallingCode.ZM,
|
|
62
|
+
currencyCode: CurrencyCode.ZMW,
|
|
63
|
+
currencySymbol: 'K',
|
|
64
|
+
currencyDecimalPlaces: 2,
|
|
65
|
+
// Central Africa Time (UTC+2), an hour behind the East African markets.
|
|
66
|
+
timezone: 'Africa/Lusaka',
|
|
67
|
+
defaultLocale: 'en-ZM',
|
|
68
|
+
googleMapsRegion: 'ZM',
|
|
69
|
+
defaultMapCenter: { lat: -15.3875, lng: 28.3228 }, // Lusaka
|
|
70
|
+
defaultMapZoom: 6,
|
|
71
|
+
mapBounds: { north: -8.224, south: -18.08, east: 33.706, west: 21.999 },
|
|
72
|
+
enabled: true,
|
|
73
|
+
},
|
|
58
74
|
};
|
|
59
75
|
/** Supported countries as an array (convenient for iteration / pickers). */
|
|
60
76
|
export const SUPPORTED_COUNTRIES = Object.values(SUPPORTED_COUNTRIES_BY_CODE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-countries.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-countries.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA0D;IAC9F,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,WAAW,CAAC,EAAE;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,WAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,YAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,CAAC;QACxB,QAAQ,EAAE,gBAAgB;QAC1B,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,UAAU;QAC5D,cAAc,EAAE,CAA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EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACxE,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,mBAAmB,GAC5B,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"supported-countries.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-countries.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA0D;IAC9F,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,WAAW,CAAC,EAAE;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,WAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,YAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,CAAC;QACxB,QAAQ,EAAE,gBAAgB;QAC1B,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,UAAU;QAC5D,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACrE,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,WAAW,CAAC,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,WAAW,CAAC,EAAE;QAC3B,YA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AAC;QACxB,wEAAwE;QACxE,QAAQ,EAAE,eAAe;QACzB,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,SAAS;QAC5D,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACvE,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,mBAAmB,GAC5B,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -27,6 +27,14 @@ export const SUPPORTED_CURRENCIES_BY_CODE = {
|
|
|
27
27
|
decimalPlaces: 0,
|
|
28
28
|
enabled: true,
|
|
29
29
|
},
|
|
30
|
+
[CurrencyCode.ZMW]: {
|
|
31
|
+
code: CurrencyCode.ZMW,
|
|
32
|
+
name: 'Zambian Kwacha',
|
|
33
|
+
symbol: 'K',
|
|
34
|
+
// 100 ngwee to the kwacha, and prices are quoted with them.
|
|
35
|
+
decimalPlaces: 2,
|
|
36
|
+
enabled: true,
|
|
37
|
+
},
|
|
30
38
|
};
|
|
31
39
|
/** Supported currencies as an array (convenient for iteration / pickers). */
|
|
32
40
|
export const SUPPORTED_CURRENCIES = Object.values(SUPPORTED_CURRENCIES_BY_CODE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-currencies.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-currencies.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA4D;IACjG,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAC7B,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"supported-currencies.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/supported-currencies.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA4D;IACjG,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QAChB,IAAI,EAAE,YAAY,CAAC,GAAG;QACtB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,GAAG;QACX,4DAA4D;QAC5D,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAC7B,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calling-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/calling-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"calling-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/calling-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACnB,YAAY;IACZ,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;IACX,eAAe;IACf,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;AACf,CAAC,EATW,WAAW,KAAX,WAAW,QAStB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/country-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"country-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/country-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACnB,YAAY;IACZ,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;IACT,eAAe;IACf,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;AACb,CAAC,EATW,WAAW,KAAX,WAAW,QAStB"}
|
|
@@ -13,5 +13,7 @@ export var CurrencyCode;
|
|
|
13
13
|
CurrencyCode["UGX"] = "UGX";
|
|
14
14
|
/** Tanzanian Shilling */
|
|
15
15
|
CurrencyCode["TZS"] = "TZS";
|
|
16
|
+
/** Zambian Kwacha */
|
|
17
|
+
CurrencyCode["ZMW"] = "ZMW";
|
|
16
18
|
})(CurrencyCode || (CurrencyCode = {}));
|
|
17
19
|
//# sourceMappingURL=currency-code.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/currency-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"currency-code.enum.js","sourceRoot":"","sources":["../../../../../src/modules/country/enums/currency-code.enum.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACpB,sBAAsB;IACtB,2BAAW,CAAA;IACX,uBAAuB;IACvB,2BAAW,CAAA;IACX,yBAAyB;IACzB,2BAAW,CAAA;IACX,qBAAqB;IACrB,2BAAW,CAAA;AACf,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB"}
|
|
@@ -17,7 +17,7 @@ export declare class RegisterDto {
|
|
|
17
17
|
orgType: OrganizationType;
|
|
18
18
|
/**
|
|
19
19
|
* Primary operating country of the organization being registered
|
|
20
|
-
* (ISO 3166-1 alpha-2: KE/UG/TZ). Optional — the backend defaults it to KE.
|
|
20
|
+
* (ISO 3166-1 alpha-2: KE/UG/TZ/ZM). Optional — the backend defaults it to KE.
|
|
21
21
|
* Distinct from the phone/account country and from user.countryCode.
|
|
22
22
|
*/
|
|
23
23
|
orgCountryCode?: CountryCode;
|
|
@@ -2,8 +2,8 @@ import { CurrencyCode } from '../enums/currency-code.enum';
|
|
|
2
2
|
/**
|
|
3
3
|
* Configuration describing a currency the platform supports.
|
|
4
4
|
*
|
|
5
|
-
* `decimalPlaces` is the number of minor-unit digits (e.g. KES
|
|
6
|
-
* have 0) and should drive money formatting and minor-unit conversions.
|
|
5
|
+
* `decimalPlaces` is the number of minor-unit digits (e.g. KES and ZMW have 2,
|
|
6
|
+
* UGX/TZS have 0) and should drive money formatting and minor-unit conversions.
|
|
7
7
|
*/
|
|
8
8
|
export interface SupportedCurrencyConfig {
|
|
9
9
|
/** ISO 4217 currency code. */
|
|
@@ -12,7 +12,7 @@ export interface SupportedCurrencyConfig {
|
|
|
12
12
|
name: string;
|
|
13
13
|
/** Display symbol, e.g. 'KSh'. */
|
|
14
14
|
symbol: string;
|
|
15
|
-
/** Number of minor-unit decimal digits, e.g. 2 for KES, 0 for UGX/TZS. */
|
|
15
|
+
/** Number of minor-unit decimal digits, e.g. 2 for KES/ZMW, 0 for UGX/TZS. */
|
|
16
16
|
decimalPlaces: number;
|
|
17
17
|
/** Whether the currency is currently enabled for use. */
|
|
18
18
|
enabled: boolean;
|
|
@@ -16,7 +16,7 @@ export interface Organization {
|
|
|
16
16
|
type: OrganizationType;
|
|
17
17
|
/**
|
|
18
18
|
* Primary operating country/market of the organization (ISO 3166-1 alpha-2:
|
|
19
|
-
* KE/UG/TZ). Optional for backward compatibility; the backend backfills/
|
|
19
|
+
* KE/UG/TZ/ZM). Optional for backward compatibility; the backend backfills/
|
|
20
20
|
* defaults it to KE, so persisted organizations always carry one.
|
|
21
21
|
*/
|
|
22
22
|
countryCode?: CountryCode;
|