clarion-shared-types 1.0.129 → 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.
Files changed (28) hide show
  1. package/dist/cjs/modules/country/constants/supported-countries.const.js +16 -0
  2. package/dist/cjs/modules/country/constants/supported-countries.const.js.map +1 -1
  3. package/dist/cjs/modules/country/constants/supported-currencies.const.js +8 -0
  4. package/dist/cjs/modules/country/constants/supported-currencies.const.js.map +1 -1
  5. package/dist/cjs/modules/country/enums/calling-code.enum.js +2 -0
  6. package/dist/cjs/modules/country/enums/calling-code.enum.js.map +1 -1
  7. package/dist/cjs/modules/country/enums/country-code.enum.js +2 -0
  8. package/dist/cjs/modules/country/enums/country-code.enum.js.map +1 -1
  9. package/dist/cjs/modules/country/enums/currency-code.enum.js +2 -0
  10. package/dist/cjs/modules/country/enums/currency-code.enum.js.map +1 -1
  11. package/dist/esm/modules/country/constants/supported-countries.const.js +16 -0
  12. package/dist/esm/modules/country/constants/supported-countries.const.js.map +1 -1
  13. package/dist/esm/modules/country/constants/supported-currencies.const.js +8 -0
  14. package/dist/esm/modules/country/constants/supported-currencies.const.js.map +1 -1
  15. package/dist/esm/modules/country/enums/calling-code.enum.js +2 -0
  16. package/dist/esm/modules/country/enums/calling-code.enum.js.map +1 -1
  17. package/dist/esm/modules/country/enums/country-code.enum.js +2 -0
  18. package/dist/esm/modules/country/enums/country-code.enum.js.map +1 -1
  19. package/dist/esm/modules/country/enums/currency-code.enum.js +2 -0
  20. package/dist/esm/modules/country/enums/currency-code.enum.js.map +1 -1
  21. package/dist/types/modules/auth/dtos/register.dto.d.ts +1 -1
  22. package/dist/types/modules/country/enums/calling-code.enum.d.ts +3 -1
  23. package/dist/types/modules/country/enums/country-code.enum.d.ts +3 -1
  24. package/dist/types/modules/country/enums/currency-code.enum.d.ts +3 -1
  25. package/dist/types/modules/country/interfaces/supported-currency-config.d.ts +3 -3
  26. package/dist/types/modules/organization/interfaces/organization.d.ts +1 -1
  27. package/dist/types/modules/partner/interfaces/partner-integration.dto.d.ts +4 -0
  28. 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;QACxB,QAAQ,EAAE,gBAAgB;QAC1B,aAAa,EAAE,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AAC,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,CAAC,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,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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"}
@@ -15,5 +15,7 @@ var CallingCode;
15
15
  CallingCode["UG"] = "+256";
16
16
  /** Tanzania */
17
17
  CallingCode["TZ"] = "+255";
18
+ /** Zambia */
19
+ CallingCode["ZM"] = "+260";
18
20
  })(CallingCode || (exports.CallingCode = CallingCode = {}));
19
21
  //# sourceMappingURL=calling-code.enum.js.map
@@ -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,WAOX;AAPD,WAAY,WAAW;IACnB,YAAY;IACZ,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;IACX,eAAe;IACf,0BAAW,CAAA;AACf,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB"}
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"}
@@ -17,5 +17,7 @@ var CountryCode;
17
17
  CountryCode["UG"] = "UG";
18
18
  /** Tanzania */
19
19
  CountryCode["TZ"] = "TZ";
20
+ /** Zambia */
21
+ CountryCode["ZM"] = "ZM";
20
22
  })(CountryCode || (exports.CountryCode = CountryCode = {}));
21
23
  //# sourceMappingURL=country-code.enum.js.map
@@ -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,WAOX;AAPD,WAAY,WAAW;IACnB,YAAY;IACZ,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;IACT,eAAe;IACf,wBAAS,CAAA;AACb,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB"}
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,YAOX;AAPD,WAAY,YAAY;IACpB,sBAAsB;IACtB,2BAAW,CAAA;IACX,uBAAuB;IACvB,2BAAW,CAAA;IACX,yBAAyB;IACzB,2BAAW,CAAA;AACf,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB"}
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,2B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AC,EAAE;QACpB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,WAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,YAAY,CAAC,GAAG;QAC9B,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,CAAC;QACxB,QAAQ,EAAE,sBAAsB;QAChC,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,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;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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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;IACD,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,WAAW,CAAC,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,WAAW,CAAC,EAAE;QAC3B,YAAY,EAAE,YAAY,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;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"}
@@ -12,5 +12,7 @@ export var CallingCode;
12
12
  CallingCode["UG"] = "+256";
13
13
  /** Tanzania */
14
14
  CallingCode["TZ"] = "+255";
15
+ /** Zambia */
16
+ CallingCode["ZM"] = "+260";
15
17
  })(CallingCode || (CallingCode = {}));
16
18
  //# sourceMappingURL=calling-code.enum.js.map
@@ -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,WAOX;AAPD,WAAY,WAAW;IACnB,YAAY;IACZ,0BAAW,CAAA;IACX,aAAa;IACb,0BAAW,CAAA;IACX,eAAe;IACf,0BAAW,CAAA;AACf,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB"}
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"}
@@ -14,5 +14,7 @@ export var CountryCode;
14
14
  CountryCode["UG"] = "UG";
15
15
  /** Tanzania */
16
16
  CountryCode["TZ"] = "TZ";
17
+ /** Zambia */
18
+ CountryCode["ZM"] = "ZM";
17
19
  })(CountryCode || (CountryCode = {}));
18
20
  //# sourceMappingURL=country-code.enum.js.map
@@ -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,WAOX;AAPD,WAAY,WAAW;IACnB,YAAY;IACZ,wBAAS,CAAA;IACT,aAAa;IACb,wBAAS,CAAA;IACT,eAAe;IACf,wBAAS,CAAA;AACb,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB"}
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,YAOX;AAPD,WAAY,YAAY;IACpB,sBAAsB;IACtB,2BAAW,CAAA;IACX,uBAAuB;IACvB,2BAAW,CAAA;IACX,yBAAyB;IACzB,2BAAW,CAAA;AACf,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB"}
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;
@@ -10,5 +10,7 @@ export declare enum CallingCode {
10
10
  /** Uganda */
11
11
  UG = "+256",
12
12
  /** Tanzania */
13
- TZ = "+255"
13
+ TZ = "+255",
14
+ /** Zambia */
15
+ ZM = "+260"
14
16
  }
@@ -12,5 +12,7 @@ export declare enum CountryCode {
12
12
  /** Uganda */
13
13
  UG = "UG",
14
14
  /** Tanzania */
15
- TZ = "TZ"
15
+ TZ = "TZ",
16
+ /** Zambia */
17
+ ZM = "ZM"
16
18
  }
@@ -11,5 +11,7 @@ export declare enum CurrencyCode {
11
11
  /** Ugandan Shilling */
12
12
  UGX = "UGX",
13
13
  /** Tanzanian Shilling */
14
- TZS = "TZS"
14
+ TZS = "TZS",
15
+ /** Zambian Kwacha */
16
+ ZMW = "ZMW"
15
17
  }
@@ -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 has 2, UGX/TZS
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;
@@ -51,6 +51,8 @@ export interface PartnerIntegrationDto {
51
51
  partnerContactEmail: string | null;
52
52
  /** The partner's logo in clarion-dms. Null: the app shows no "Powered by" for this partnership. */
53
53
  logoUrl: string | null;
54
+ /** The organization's choice of whether the app shows "Powered by" for this partnership. */
55
+ showPoweredBy: boolean;
54
56
  lastHealthCheckAt: string | null;
55
57
  lastSuccessAt: string | null;
56
58
  lastErrorAt: string | null;
@@ -90,6 +92,8 @@ export interface CreatePartnerIntegrationDto {
90
92
  partnerContactEmail?: string;
91
93
  /** The https address clarion-dms returned for the upload. Null on an update removes it. */
92
94
  logoUrl?: string | null;
95
+ /** Defaults to true. Only decides what the app says: dispatching is the same either way. */
96
+ showPoweredBy?: boolean;
93
97
  }
94
98
  /**
95
99
  * `providerCode` and `organizationId` are deliberately absent: changing either
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.129",
3
+ "version": "1.0.131",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",