clarion-shared-types 1.0.75 → 1.0.77

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 (122) hide show
  1. package/README.md +72 -2
  2. package/dist/cjs/index.js +2 -0
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/modules/country/constants/country-defaults.const.js +20 -0
  5. package/dist/cjs/modules/country/constants/country-defaults.const.js.map +1 -0
  6. package/dist/cjs/modules/country/constants/supported-countries.const.js +64 -0
  7. package/dist/cjs/modules/country/constants/supported-countries.const.js.map +1 -0
  8. package/dist/cjs/modules/country/constants/supported-currencies.const.js +36 -0
  9. package/dist/cjs/modules/country/constants/supported-currencies.const.js.map +1 -0
  10. package/dist/cjs/modules/country/enums/calling-code.enum.js +19 -0
  11. package/dist/cjs/modules/country/enums/calling-code.enum.js.map +1 -0
  12. package/dist/cjs/modules/country/enums/country-code.enum.js +21 -0
  13. package/dist/cjs/modules/country/enums/country-code.enum.js.map +1 -0
  14. package/dist/cjs/modules/country/enums/currency-code.enum.js +20 -0
  15. package/dist/cjs/modules/country/enums/currency-code.enum.js.map +1 -0
  16. package/dist/cjs/modules/country/index.js +32 -0
  17. package/dist/cjs/modules/country/index.js.map +1 -0
  18. package/dist/cjs/modules/country/interfaces/geo-coordinates.js +3 -0
  19. package/dist/cjs/modules/country/interfaces/geo-coordinates.js.map +1 -0
  20. package/dist/cjs/modules/country/interfaces/map-bounds.js +3 -0
  21. package/dist/cjs/modules/country/interfaces/map-bounds.js.map +1 -0
  22. package/dist/cjs/modules/country/interfaces/supported-country-config.js +3 -0
  23. package/dist/cjs/modules/country/interfaces/supported-country-config.js.map +1 -0
  24. package/dist/cjs/modules/country/interfaces/supported-currency-config.js +3 -0
  25. package/dist/cjs/modules/country/interfaces/supported-currency-config.js.map +1 -0
  26. package/dist/cjs/modules/country/utils/country.util.js +60 -0
  27. package/dist/cjs/modules/country/utils/country.util.js.map +1 -0
  28. package/dist/cjs/modules/notification/enums/email-provider-name.enum.js +15 -0
  29. package/dist/cjs/modules/notification/enums/email-provider-name.enum.js.map +1 -0
  30. package/dist/cjs/modules/notification/enums/notification-channel.enum.js +15 -0
  31. package/dist/cjs/modules/notification/enums/notification-channel.enum.js.map +1 -0
  32. package/dist/cjs/modules/notification/enums/notification-overall-status.enum.js +16 -0
  33. package/dist/cjs/modules/notification/enums/notification-overall-status.enum.js.map +1 -0
  34. package/dist/cjs/modules/notification/enums/provider-failure-reason.enum.js +28 -0
  35. package/dist/cjs/modules/notification/enums/provider-failure-reason.enum.js.map +1 -0
  36. package/dist/cjs/modules/notification/enums/sms-provider-name.enum.js +14 -0
  37. package/dist/cjs/modules/notification/enums/sms-provider-name.enum.js.map +1 -0
  38. package/dist/cjs/modules/notification/index.js +29 -0
  39. package/dist/cjs/modules/notification/index.js.map +1 -0
  40. package/dist/cjs/modules/notification/interfaces/email-send-result.js +3 -0
  41. package/dist/cjs/modules/notification/interfaces/email-send-result.js.map +1 -0
  42. package/dist/cjs/modules/notification/interfaces/notification-dispatch-result.js +3 -0
  43. package/dist/cjs/modules/notification/interfaces/notification-dispatch-result.js.map +1 -0
  44. package/dist/cjs/modules/notification/interfaces/per-channel-result.js +3 -0
  45. package/dist/cjs/modules/notification/interfaces/per-channel-result.js.map +1 -0
  46. package/dist/cjs/modules/notification/interfaces/provider-attempt.js +3 -0
  47. package/dist/cjs/modules/notification/interfaces/provider-attempt.js.map +1 -0
  48. package/dist/cjs/modules/notification/interfaces/sms-send-result.js +3 -0
  49. package/dist/cjs/modules/notification/interfaces/sms-send-result.js.map +1 -0
  50. package/dist/esm/index.js +2 -0
  51. package/dist/esm/index.js.map +1 -1
  52. package/dist/esm/modules/country/constants/country-defaults.const.js +17 -0
  53. package/dist/esm/modules/country/constants/country-defaults.const.js.map +1 -0
  54. package/dist/esm/modules/country/constants/supported-countries.const.js +61 -0
  55. package/dist/esm/modules/country/constants/supported-countries.const.js.map +1 -0
  56. package/dist/esm/modules/country/constants/supported-currencies.const.js +33 -0
  57. package/dist/esm/modules/country/constants/supported-currencies.const.js.map +1 -0
  58. package/dist/esm/modules/country/enums/calling-code.enum.js +16 -0
  59. package/dist/esm/modules/country/enums/calling-code.enum.js.map +1 -0
  60. package/dist/esm/modules/country/enums/country-code.enum.js +18 -0
  61. package/dist/esm/modules/country/enums/country-code.enum.js.map +1 -0
  62. package/dist/esm/modules/country/enums/currency-code.enum.js +17 -0
  63. package/dist/esm/modules/country/enums/currency-code.enum.js.map +1 -0
  64. package/dist/esm/modules/country/index.js +16 -0
  65. package/dist/esm/modules/country/index.js.map +1 -0
  66. package/dist/esm/modules/country/interfaces/geo-coordinates.js +2 -0
  67. package/dist/esm/modules/country/interfaces/geo-coordinates.js.map +1 -0
  68. package/dist/esm/modules/country/interfaces/map-bounds.js +2 -0
  69. package/dist/esm/modules/country/interfaces/map-bounds.js.map +1 -0
  70. package/dist/esm/modules/country/interfaces/supported-country-config.js +2 -0
  71. package/dist/esm/modules/country/interfaces/supported-country-config.js.map +1 -0
  72. package/dist/esm/modules/country/interfaces/supported-currency-config.js +2 -0
  73. package/dist/esm/modules/country/interfaces/supported-currency-config.js.map +1 -0
  74. package/dist/esm/modules/country/utils/country.util.js +51 -0
  75. package/dist/esm/modules/country/utils/country.util.js.map +1 -0
  76. package/dist/esm/modules/notification/enums/email-provider-name.enum.js +12 -0
  77. package/dist/esm/modules/notification/enums/email-provider-name.enum.js.map +1 -0
  78. package/dist/esm/modules/notification/enums/notification-channel.enum.js +12 -0
  79. package/dist/esm/modules/notification/enums/notification-channel.enum.js.map +1 -0
  80. package/dist/esm/modules/notification/enums/notification-overall-status.enum.js +13 -0
  81. package/dist/esm/modules/notification/enums/notification-overall-status.enum.js.map +1 -0
  82. package/dist/esm/modules/notification/enums/provider-failure-reason.enum.js +25 -0
  83. package/dist/esm/modules/notification/enums/provider-failure-reason.enum.js.map +1 -0
  84. package/dist/esm/modules/notification/enums/sms-provider-name.enum.js +11 -0
  85. package/dist/esm/modules/notification/enums/sms-provider-name.enum.js.map +1 -0
  86. package/dist/esm/modules/notification/index.js +13 -0
  87. package/dist/esm/modules/notification/index.js.map +1 -0
  88. package/dist/esm/modules/notification/interfaces/email-send-result.js +2 -0
  89. package/dist/esm/modules/notification/interfaces/email-send-result.js.map +1 -0
  90. package/dist/esm/modules/notification/interfaces/notification-dispatch-result.js +2 -0
  91. package/dist/esm/modules/notification/interfaces/notification-dispatch-result.js.map +1 -0
  92. package/dist/esm/modules/notification/interfaces/per-channel-result.js +2 -0
  93. package/dist/esm/modules/notification/interfaces/per-channel-result.js.map +1 -0
  94. package/dist/esm/modules/notification/interfaces/provider-attempt.js +2 -0
  95. package/dist/esm/modules/notification/interfaces/provider-attempt.js.map +1 -0
  96. package/dist/esm/modules/notification/interfaces/sms-send-result.js +2 -0
  97. package/dist/esm/modules/notification/interfaces/sms-send-result.js.map +1 -0
  98. package/dist/types/index.d.ts +2 -0
  99. package/dist/types/modules/country/constants/country-defaults.const.d.ts +15 -0
  100. package/dist/types/modules/country/constants/supported-countries.const.d.ts +13 -0
  101. package/dist/types/modules/country/constants/supported-currencies.const.d.ts +11 -0
  102. package/dist/types/modules/country/enums/calling-code.enum.d.ts +14 -0
  103. package/dist/types/modules/country/enums/country-code.enum.d.ts +16 -0
  104. package/dist/types/modules/country/enums/currency-code.enum.d.ts +15 -0
  105. package/dist/types/modules/country/index.d.ts +11 -0
  106. package/dist/types/modules/country/interfaces/geo-coordinates.d.ts +12 -0
  107. package/dist/types/modules/country/interfaces/map-bounds.d.ts +16 -0
  108. package/dist/types/modules/country/interfaces/supported-country-config.d.ts +39 -0
  109. package/dist/types/modules/country/interfaces/supported-currency-config.d.ts +19 -0
  110. package/dist/types/modules/country/utils/country.util.d.ts +27 -0
  111. package/dist/types/modules/notification/enums/email-provider-name.enum.d.ts +10 -0
  112. package/dist/types/modules/notification/enums/notification-channel.enum.d.ts +10 -0
  113. package/dist/types/modules/notification/enums/notification-overall-status.enum.d.ts +11 -0
  114. package/dist/types/modules/notification/enums/provider-failure-reason.enum.d.ts +23 -0
  115. package/dist/types/modules/notification/enums/sms-provider-name.enum.d.ts +9 -0
  116. package/dist/types/modules/notification/index.d.ts +10 -0
  117. package/dist/types/modules/notification/interfaces/email-send-result.d.ts +22 -0
  118. package/dist/types/modules/notification/interfaces/notification-dispatch-result.d.ts +26 -0
  119. package/dist/types/modules/notification/interfaces/per-channel-result.d.ts +22 -0
  120. package/dist/types/modules/notification/interfaces/provider-attempt.d.ts +25 -0
  121. package/dist/types/modules/notification/interfaces/sms-send-result.d.ts +22 -0
  122. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-attempt.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/provider-attempt.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sms-send-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-send-result.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/sms-send-result.ts"],"names":[],"mappings":""}
package/dist/esm/index.js CHANGED
@@ -14,7 +14,9 @@ export * from './modules/sms/index';
14
14
  export * from './modules/gis/index';
15
15
  export * from './modules/socket/index';
16
16
  export * from './modules/web-notification/index';
17
+ export * from './modules/notification/index';
17
18
  export * from './modules/chat/index';
19
+ export * from './modules/country/index';
18
20
  // Interfaces
19
21
  export * from './modules/common/interfaces/server-message';
20
22
  export * from './modules/common/interfaces/pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AAErC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAExC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { CallingCode } from '../enums/calling-code.enum';
2
+ import { CountryCode } from '../enums/country-code.enum';
3
+ import { CurrencyCode } from '../enums/currency-code.enum';
4
+ /**
5
+ * Platform defaults.
6
+ *
7
+ * Kenya remains the default / backward-compatible market: existing users,
8
+ * packages, posts, incidents, OTPs, notifications and billing flows continue
9
+ * to behave exactly as they did before multi-country support was introduced.
10
+ * Use these constants wherever a country/currency is not (yet) explicit.
11
+ */
12
+ export const DEFAULT_COUNTRY_CODE = CountryCode.KE;
13
+ export const DEFAULT_CURRENCY_CODE = CurrencyCode.KES;
14
+ export const DEFAULT_CALLING_CODE = CallingCode.KE;
15
+ export const DEFAULT_TIMEZONE = 'Africa/Nairobi';
16
+ export const DEFAULT_LOCALE = 'en-KE';
17
+ //# sourceMappingURL=country-defaults.const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-defaults.const.js","sourceRoot":"","sources":["../../../../../src/modules/country/constants/country-defaults.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;AAE3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgB,WAAW,CAAC,EAAE,CAAC;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAiB,YAAY,CAAC,GAAG,CAAC;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAW,WAAW,CAAC,EAAE,CAAC;AAC3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AACjD,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { CallingCode } from '../enums/calling-code.enum';
2
+ import { CountryCode } from '../enums/country-code.enum';
3
+ import { CurrencyCode } from '../enums/currency-code.enum';
4
+ /**
5
+ * Supported countries keyed by ISO 3166-1 alpha-2 code (source of truth,
6
+ * O(1) lookup).
7
+ *
8
+ * The `Record<CountryCode, ...>` typing enforces at compile time that every
9
+ * country code has a configuration entry. Map centers are the capital cities;
10
+ * bounds are approximate country bounding boxes and can be refined later.
11
+ */
12
+ export const SUPPORTED_COUNTRIES_BY_CODE = {
13
+ [CountryCode.KE]: {
14
+ code: CountryCode.KE,
15
+ name: 'Kenya',
16
+ callingCode: CallingCode.KE,
17
+ currencyCode: CurrencyCode.KES,
18
+ currencySymbol: 'KSh',
19
+ currencyDecimalPlaces: 2,
20
+ timezone: 'Africa/Nairobi',
21
+ defaultLocale: 'en-KE',
22
+ googleMapsRegion: 'KE',
23
+ defaultMapCenter: { lat: -1.2921, lng: 36.8219 }, // Nairobi
24
+ defaultMapZoom: 6,
25
+ mapBounds: { north: 5.019, south: -4.72, east: 41.899, west: 33.909 },
26
+ enabled: true,
27
+ },
28
+ [CountryCode.UG]: {
29
+ code: CountryCode.UG,
30
+ name: 'Uganda',
31
+ callingCode: CallingCode.UG,
32
+ currencyCode: CurrencyCode.UGX,
33
+ currencySymbol: 'USh',
34
+ currencyDecimalPlaces: 0,
35
+ timezone: 'Africa/Kampala',
36
+ defaultLocale: 'en-UG',
37
+ googleMapsRegion: 'UG',
38
+ defaultMapCenter: { lat: 0.3476, lng: 32.5825 }, // Kampala
39
+ defaultMapZoom: 6,
40
+ mapBounds: { north: 4.234, south: -1.482, east: 35.036, west: 29.573 },
41
+ enabled: true,
42
+ },
43
+ [CountryCode.TZ]: {
44
+ code: CountryCode.TZ,
45
+ name: 'Tanzania',
46
+ callingCode: CallingCode.TZ,
47
+ currencyCode: CurrencyCode.TZS,
48
+ currencySymbol: 'TSh',
49
+ currencyDecimalPlaces: 0,
50
+ timezone: 'Africa/Dar_es_Salaam',
51
+ defaultLocale: 'en-TZ',
52
+ googleMapsRegion: 'TZ',
53
+ defaultMapCenter: { lat: -6.7924, lng: 39.2083 }, // Dar es Salaam
54
+ defaultMapZoom: 6,
55
+ mapBounds: { north: -0.984, south: -11.761, east: 40.444, west: 29.327 },
56
+ enabled: true,
57
+ },
58
+ };
59
+ /** Supported countries as an array (convenient for iteration / pickers). */
60
+ export const SUPPORTED_COUNTRIES = Object.values(SUPPORTED_COUNTRIES_BY_CODE);
61
+ //# sourceMappingURL=supported-countries.const.js.map
@@ -0,0 +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,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,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,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,UAAU;QAC3D,cAAc,EAAE,CAAC;QACjB,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;QACtE,OAAO,EAAE,IAAI;KAChB;IACD,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QACd,IAAI,EAAE,WAAW,CAAC,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"}
@@ -0,0 +1,33 @@
1
+ import { CurrencyCode } from '../enums/currency-code.enum';
2
+ /**
3
+ * Supported currencies keyed by ISO 4217 code (source of truth, O(1) lookup).
4
+ *
5
+ * The `Record<CurrencyCode, ...>` typing enforces at compile time that every
6
+ * currency code has a configuration entry.
7
+ */
8
+ export const SUPPORTED_CURRENCIES_BY_CODE = {
9
+ [CurrencyCode.KES]: {
10
+ code: CurrencyCode.KES,
11
+ name: 'Kenyan Shilling',
12
+ symbol: 'KSh',
13
+ decimalPlaces: 2,
14
+ enabled: true,
15
+ },
16
+ [CurrencyCode.UGX]: {
17
+ code: CurrencyCode.UGX,
18
+ name: 'Ugandan Shilling',
19
+ symbol: 'USh',
20
+ decimalPlaces: 0,
21
+ enabled: true,
22
+ },
23
+ [CurrencyCode.TZS]: {
24
+ code: CurrencyCode.TZS,
25
+ name: 'Tanzanian Shilling',
26
+ symbol: 'TSh',
27
+ decimalPlaces: 0,
28
+ enabled: true,
29
+ },
30
+ };
31
+ /** Supported currencies as an array (convenient for iteration / pickers). */
32
+ export const SUPPORTED_CURRENCIES = Object.values(SUPPORTED_CURRENCIES_BY_CODE);
33
+ //# sourceMappingURL=supported-currencies.const.js.map
@@ -0,0 +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"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * E.164 country calling codes, keyed by ISO 3166-1 alpha-2 country code.
3
+ *
4
+ * Kept as a string enum so the value (e.g. '+254') can be used directly when
5
+ * composing phone numbers, and the key (e.g. KE) aligns with {@link CountryCode}.
6
+ */
7
+ export var CallingCode;
8
+ (function (CallingCode) {
9
+ /** Kenya */
10
+ CallingCode["KE"] = "+254";
11
+ /** Uganda */
12
+ CallingCode["UG"] = "+256";
13
+ /** Tanzania */
14
+ CallingCode["TZ"] = "+255";
15
+ })(CallingCode || (CallingCode = {}));
16
+ //# sourceMappingURL=calling-code.enum.js.map
@@ -0,0 +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"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Supported country codes.
3
+ *
4
+ * ISO 3166-1 alpha-2 country codes. These are the platform-level identifiers
5
+ * for every country the Clarion / Upesy platform operates in.
6
+ *
7
+ * Kenya (KE) is the default/backward-compatible market.
8
+ */
9
+ export var CountryCode;
10
+ (function (CountryCode) {
11
+ /** Kenya */
12
+ CountryCode["KE"] = "KE";
13
+ /** Uganda */
14
+ CountryCode["UG"] = "UG";
15
+ /** Tanzania */
16
+ CountryCode["TZ"] = "TZ";
17
+ })(CountryCode || (CountryCode = {}));
18
+ //# sourceMappingURL=country-code.enum.js.map
@@ -0,0 +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"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Supported currency codes.
3
+ *
4
+ * ISO 4217 currency codes for the markets the platform operates in.
5
+ *
6
+ * KES (Kenyan Shilling) is the default/backward-compatible currency.
7
+ */
8
+ export var CurrencyCode;
9
+ (function (CurrencyCode) {
10
+ /** Kenyan Shilling */
11
+ CurrencyCode["KES"] = "KES";
12
+ /** Ugandan Shilling */
13
+ CurrencyCode["UGX"] = "UGX";
14
+ /** Tanzanian Shilling */
15
+ CurrencyCode["TZS"] = "TZS";
16
+ })(CurrencyCode || (CurrencyCode = {}));
17
+ //# sourceMappingURL=currency-code.enum.js.map
@@ -0,0 +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"}
@@ -0,0 +1,16 @@
1
+ // Enums
2
+ export * from './enums/country-code.enum';
3
+ export * from './enums/currency-code.enum';
4
+ export * from './enums/calling-code.enum';
5
+ // Interfaces
6
+ export * from './interfaces/geo-coordinates';
7
+ export * from './interfaces/map-bounds';
8
+ export * from './interfaces/supported-currency-config';
9
+ export * from './interfaces/supported-country-config';
10
+ // Constants
11
+ export * from './constants/supported-currencies.const';
12
+ export * from './constants/supported-countries.const';
13
+ export * from './constants/country-defaults.const';
14
+ // Utilities
15
+ export * from './utils/country.util';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/country/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,aAAa;AACb,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AAEtD,YAAY;AACZ,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AAEnD,YAAY;AACZ,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=geo-coordinates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geo-coordinates.js","sourceRoot":"","sources":["../../../../../src/modules/country/interfaces/geo-coordinates.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=map-bounds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-bounds.js","sourceRoot":"","sources":["../../../../../src/modules/country/interfaces/map-bounds.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supported-country-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-country-config.js","sourceRoot":"","sources":["../../../../../src/modules/country/interfaces/supported-country-config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supported-currency-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-currency-config.js","sourceRoot":"","sources":["../../../../../src/modules/country/interfaces/supported-currency-config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ import { SUPPORTED_COUNTRIES, SUPPORTED_COUNTRIES_BY_CODE } from '../constants/supported-countries.const';
2
+ import { SUPPORTED_CURRENCIES_BY_CODE } from '../constants/supported-currencies.const';
3
+ /**
4
+ * Country / currency helper utilities.
5
+ *
6
+ * These are intentionally simple, synchronous and dependency-free so they can
7
+ * be reused across the admin frontend without pulling in extra deps.
8
+ */
9
+ /** Type guard: is `value` a supported ISO 3166-1 alpha-2 country code? */
10
+ export function isSupportedCountryCode(value) {
11
+ return (typeof value === 'string' &&
12
+ Object.prototype.hasOwnProperty.call(SUPPORTED_COUNTRIES_BY_CODE, value));
13
+ }
14
+ /** Type guard: is `value` a supported ISO 4217 currency code? */
15
+ export function isSupportedCurrencyCode(value) {
16
+ return (typeof value === 'string' &&
17
+ Object.prototype.hasOwnProperty.call(SUPPORTED_CURRENCIES_BY_CODE, value));
18
+ }
19
+ /** Get the full config for a supported country, or `undefined` if unsupported. */
20
+ export function getSupportedCountryConfig(countryCode) {
21
+ return isSupportedCountryCode(countryCode)
22
+ ? SUPPORTED_COUNTRIES_BY_CODE[countryCode]
23
+ : undefined;
24
+ }
25
+ /** Get the full config for a supported currency, or `undefined` if unsupported. */
26
+ export function getSupportedCurrencyConfig(currencyCode) {
27
+ return isSupportedCurrencyCode(currencyCode)
28
+ ? SUPPORTED_CURRENCIES_BY_CODE[currencyCode]
29
+ : undefined;
30
+ }
31
+ /** Resolve the currency used by a supported country, or `undefined`. */
32
+ export function getCurrencyForCountry(countryCode) {
33
+ var _a;
34
+ return (_a = getSupportedCountryConfig(countryCode)) === null || _a === void 0 ? void 0 : _a.currencyCode;
35
+ }
36
+ /** Resolve the E.164 calling code (e.g. '+254') for a supported country, or `undefined`. */
37
+ export function getCallingCodeForCountry(countryCode) {
38
+ var _a;
39
+ return (_a = getSupportedCountryConfig(countryCode)) === null || _a === void 0 ? void 0 : _a.callingCode;
40
+ }
41
+ /**
42
+ * Reverse lookup: find the supported country whose E.164 calling code matches
43
+ * `callingCode` (e.g. '+254' -> Kenya), or `undefined` if none match.
44
+ */
45
+ export function getCountryByCallingCode(callingCode) {
46
+ if (!callingCode) {
47
+ return undefined;
48
+ }
49
+ return SUPPORTED_COUNTRIES.find((country) => country.callingCode === callingCode);
50
+ }
51
+ //# sourceMappingURL=country.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.util.js","sourceRoot":"","sources":["../../../../../src/modules/country/utils/country.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC1G,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAMvF;;;;;GAKG;AAEH,0EAA0E;AAC1E,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACjD,OAAO,CACH,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAC3E,CAAC;AACN,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,uBAAuB,CAAC,KAAc;IAClD,OAAO,CACH,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAC5E,CAAC;AACN,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,yBAAyB,CACrC,WAAsC;IAEtC,OAAO,sBAAsB,CAAC,WAAW,CAAC;QACtC,CAAC,CAAC,2BAA2B,CAAC,WAAW,CAAC;QAC1C,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,0BAA0B,CACtC,YAAuC;IAEvC,OAAO,uBAAuB,CAAC,YAAY,CAAC;QACxC,CAAC,CAAC,4BAA4B,CAAC,YAAY,CAAC;QAC5C,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,qBAAqB,CACjC,WAAsC;;IAEtC,OAAO,MAAA,yBAAyB,CAAC,WAAW,CAAC,0CAAE,YAAY,CAAC;AAChE,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,wBAAwB,CACpC,WAAsC;;IAEtC,OAAO,MAAA,yBAAyB,CAAC,WAAW,CAAC,0CAAE,WAAW,CAAC;AAC/D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACnC,WAAsC;IAEtC,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;AACtF,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Identifiers for the email providers the notification service can dispatch through.
3
+ * TWILIO_SENDGRID is the Twilio email provider (SendGrid API).
4
+ * Provider order/fallback is configuration-driven; new providers can be appended.
5
+ */
6
+ export var EmailProviderName;
7
+ (function (EmailProviderName) {
8
+ EmailProviderName["TWILIO_SENDGRID"] = "twilio_sendgrid";
9
+ EmailProviderName["MAILGUN"] = "mailgun";
10
+ EmailProviderName["SES"] = "ses";
11
+ })(EmailProviderName || (EmailProviderName = {}));
12
+ //# sourceMappingURL=email-provider-name.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-provider-name.enum.js","sourceRoot":"","sources":["../../../../../src/modules/notification/enums/email-provider-name.enum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,wDAAmC,CAAA;IACnC,wCAAmB,CAAA;IACnB,gCAAW,CAAA;AACf,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Delivery channels supported by the clarion-notification service.
3
+ * Used to key per-channel dispatch results.
4
+ */
5
+ export var NotificationChannel;
6
+ (function (NotificationChannel) {
7
+ NotificationChannel["SMS"] = "SMS";
8
+ NotificationChannel["EMAIL"] = "EMAIL";
9
+ NotificationChannel["PUSH"] = "PUSH";
10
+ NotificationChannel["WEB"] = "WEB";
11
+ })(NotificationChannel || (NotificationChannel = {}));
12
+ //# sourceMappingURL=notification-channel.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-channel.enum.js","sourceRoot":"","sources":["../../../../../src/modules/notification/enums/notification-channel.enum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,kCAAW,CAAA;IACX,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Aggregate status for a multi-channel notification dispatch.
3
+ * - SUCCESS: every attempted channel succeeded.
4
+ * - PARTIAL_SUCCESS: at least one channel succeeded and at least one failed.
5
+ * - FAILED: no attempted channel succeeded.
6
+ */
7
+ export var NotificationOverallStatus;
8
+ (function (NotificationOverallStatus) {
9
+ NotificationOverallStatus["SUCCESS"] = "SUCCESS";
10
+ NotificationOverallStatus["PARTIAL_SUCCESS"] = "PARTIAL_SUCCESS";
11
+ NotificationOverallStatus["FAILED"] = "FAILED";
12
+ })(NotificationOverallStatus || (NotificationOverallStatus = {}));
13
+ //# sourceMappingURL=notification-overall-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-overall-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/notification/enums/notification-overall-status.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,gDAAmB,CAAA;IACnB,gEAAmC,CAAA;IACnC,8CAAiB,CAAA;AACrB,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Normalized classification of why a provider attempt failed.
3
+ * Drives fallback behaviour: VALIDATION / CONFIG_MISSING are non-retryable
4
+ * (no fallback), the remainder are provider-level failures that trigger fallback.
5
+ */
6
+ export var ProviderFailureReason;
7
+ (function (ProviderFailureReason) {
8
+ /** Malformed/invalid request (bad recipient, missing body/subject). Do not fall back. */
9
+ ProviderFailureReason["VALIDATION"] = "VALIDATION";
10
+ /** Provider is not configured/enabled. Skip provider (try next), not a send failure. */
11
+ ProviderFailureReason["CONFIG_MISSING"] = "CONFIG_MISSING";
12
+ /** Authentication/authorization failure with the provider. */
13
+ ProviderFailureReason["AUTH"] = "AUTH";
14
+ /** Provider rate limited the request. */
15
+ ProviderFailureReason["RATE_LIMIT"] = "RATE_LIMIT";
16
+ /** Request timed out. */
17
+ ProviderFailureReason["TIMEOUT"] = "TIMEOUT";
18
+ /** Network/connection error reaching the provider. */
19
+ ProviderFailureReason["NETWORK"] = "NETWORK";
20
+ /** Provider returned a server-side/processing error. */
21
+ ProviderFailureReason["PROVIDER_ERROR"] = "PROVIDER_ERROR";
22
+ /** Unclassified failure. */
23
+ ProviderFailureReason["UNKNOWN"] = "UNKNOWN";
24
+ })(ProviderFailureReason || (ProviderFailureReason = {}));
25
+ //# sourceMappingURL=provider-failure-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-failure-reason.enum.js","sourceRoot":"","sources":["../../../../../src/modules/notification/enums/provider-failure-reason.enum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,qBAiBX;AAjBD,WAAY,qBAAqB;IAC7B,yFAAyF;IACzF,kDAAyB,CAAA;IACzB,wFAAwF;IACxF,0DAAiC,CAAA;IACjC,8DAA8D;IAC9D,sCAAa,CAAA;IACb,yCAAyC;IACzC,kDAAyB,CAAA;IACzB,yBAAyB;IACzB,4CAAmB,CAAA;IACnB,sDAAsD;IACtD,4CAAmB,CAAA;IACnB,wDAAwD;IACxD,0DAAiC,CAAA;IACjC,4BAA4B;IAC5B,4CAAmB,CAAA;AACvB,CAAC,EAjBW,qBAAqB,KAArB,qBAAqB,QAiBhC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Identifiers for the SMS providers the notification service can dispatch through.
3
+ * Provider order/fallback is configuration-driven; new providers can be appended.
4
+ */
5
+ export var SmsProviderName;
6
+ (function (SmsProviderName) {
7
+ SmsProviderName["TWILIO"] = "twilio";
8
+ SmsProviderName["UWAZII"] = "uwazii";
9
+ SmsProviderName["AFRICASTALKING"] = "africastalking";
10
+ })(SmsProviderName || (SmsProviderName = {}));
11
+ //# sourceMappingURL=sms-provider-name.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-provider-name.enum.js","sourceRoot":"","sources":["../../../../../src/modules/notification/enums/sms-provider-name.enum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,oDAAiC,CAAA;AACrC,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B"}
@@ -0,0 +1,13 @@
1
+ // Enums
2
+ export * from './enums/notification-channel.enum';
3
+ export * from './enums/sms-provider-name.enum';
4
+ export * from './enums/email-provider-name.enum';
5
+ export * from './enums/notification-overall-status.enum';
6
+ export * from './enums/provider-failure-reason.enum';
7
+ // Result/interface contracts (display-safe)
8
+ export * from './interfaces/provider-attempt';
9
+ export * from './interfaces/per-channel-result';
10
+ export * from './interfaces/sms-send-result';
11
+ export * from './interfaces/email-send-result';
12
+ export * from './interfaces/notification-dispatch-result';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/notification/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AAErD,4CAA4C;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=email-send-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-send-result.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/email-send-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notification-dispatch-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-dispatch-result.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/notification-dispatch-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=per-channel-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"per-channel-result.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/per-channel-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=provider-attempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-attempt.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/provider-attempt.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sms-send-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-send-result.js","sourceRoot":"","sources":["../../../../../src/modules/notification/interfaces/sms-send-result.ts"],"names":[],"mappings":""}
@@ -13,6 +13,8 @@ export * from './modules/sms/index';
13
13
  export * from './modules/gis/index';
14
14
  export * from './modules/socket/index';
15
15
  export * from './modules/web-notification/index';
16
+ export * from './modules/notification/index';
16
17
  export * from './modules/chat/index';
18
+ export * from './modules/country/index';
17
19
  export * from './modules/common/interfaces/server-message';
18
20
  export * from './modules/common/interfaces/pagination';
@@ -0,0 +1,15 @@
1
+ import { CountryCode } from '../enums/country-code.enum';
2
+ import { CurrencyCode } from '../enums/currency-code.enum';
3
+ /**
4
+ * Platform defaults.
5
+ *
6
+ * Kenya remains the default / backward-compatible market: existing users,
7
+ * packages, posts, incidents, OTPs, notifications and billing flows continue
8
+ * to behave exactly as they did before multi-country support was introduced.
9
+ * Use these constants wherever a country/currency is not (yet) explicit.
10
+ */
11
+ export declare const DEFAULT_COUNTRY_CODE: CountryCode;
12
+ export declare const DEFAULT_CURRENCY_CODE: CurrencyCode;
13
+ export declare const DEFAULT_CALLING_CODE: string;
14
+ export declare const DEFAULT_TIMEZONE = "Africa/Nairobi";
15
+ export declare const DEFAULT_LOCALE = "en-KE";
@@ -0,0 +1,13 @@
1
+ import { CountryCode } from '../enums/country-code.enum';
2
+ import { SupportedCountryConfig } from '../interfaces/supported-country-config';
3
+ /**
4
+ * Supported countries keyed by ISO 3166-1 alpha-2 code (source of truth,
5
+ * O(1) lookup).
6
+ *
7
+ * The `Record<CountryCode, ...>` typing enforces at compile time that every
8
+ * country code has a configuration entry. Map centers are the capital cities;
9
+ * bounds are approximate country bounding boxes and can be refined later.
10
+ */
11
+ export declare const SUPPORTED_COUNTRIES_BY_CODE: Readonly<Record<CountryCode, SupportedCountryConfig>>;
12
+ /** Supported countries as an array (convenient for iteration / pickers). */
13
+ export declare const SUPPORTED_COUNTRIES: readonly SupportedCountryConfig[];
@@ -0,0 +1,11 @@
1
+ import { CurrencyCode } from '../enums/currency-code.enum';
2
+ import { SupportedCurrencyConfig } from '../interfaces/supported-currency-config';
3
+ /**
4
+ * Supported currencies keyed by ISO 4217 code (source of truth, O(1) lookup).
5
+ *
6
+ * The `Record<CurrencyCode, ...>` typing enforces at compile time that every
7
+ * currency code has a configuration entry.
8
+ */
9
+ export declare const SUPPORTED_CURRENCIES_BY_CODE: Readonly<Record<CurrencyCode, SupportedCurrencyConfig>>;
10
+ /** Supported currencies as an array (convenient for iteration / pickers). */
11
+ export declare const SUPPORTED_CURRENCIES: readonly SupportedCurrencyConfig[];
@@ -0,0 +1,14 @@
1
+ /**
2
+ * E.164 country calling codes, keyed by ISO 3166-1 alpha-2 country code.
3
+ *
4
+ * Kept as a string enum so the value (e.g. '+254') can be used directly when
5
+ * composing phone numbers, and the key (e.g. KE) aligns with {@link CountryCode}.
6
+ */
7
+ export declare enum CallingCode {
8
+ /** Kenya */
9
+ KE = "+254",
10
+ /** Uganda */
11
+ UG = "+256",
12
+ /** Tanzania */
13
+ TZ = "+255"
14
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Supported country codes.
3
+ *
4
+ * ISO 3166-1 alpha-2 country codes. These are the platform-level identifiers
5
+ * for every country the Clarion / Upesy platform operates in.
6
+ *
7
+ * Kenya (KE) is the default/backward-compatible market.
8
+ */
9
+ export declare enum CountryCode {
10
+ /** Kenya */
11
+ KE = "KE",
12
+ /** Uganda */
13
+ UG = "UG",
14
+ /** Tanzania */
15
+ TZ = "TZ"
16
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Supported currency codes.
3
+ *
4
+ * ISO 4217 currency codes for the markets the platform operates in.
5
+ *
6
+ * KES (Kenyan Shilling) is the default/backward-compatible currency.
7
+ */
8
+ export declare enum CurrencyCode {
9
+ /** Kenyan Shilling */
10
+ KES = "KES",
11
+ /** Ugandan Shilling */
12
+ UGX = "UGX",
13
+ /** Tanzanian Shilling */
14
+ TZS = "TZS"
15
+ }
@@ -0,0 +1,11 @@
1
+ export * from './enums/country-code.enum';
2
+ export * from './enums/currency-code.enum';
3
+ export * from './enums/calling-code.enum';
4
+ export * from './interfaces/geo-coordinates';
5
+ export * from './interfaces/map-bounds';
6
+ export * from './interfaces/supported-currency-config';
7
+ export * from './interfaces/supported-country-config';
8
+ export * from './constants/supported-currencies.const';
9
+ export * from './constants/supported-countries.const';
10
+ export * from './constants/country-defaults.const';
11
+ export * from './utils/country.util';