@webority/mobile-core 0.0.29 → 0.1.0

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 (139) hide show
  1. package/lib/commonjs/api/baseUrl.js +1 -34
  2. package/lib/commonjs/api/curl.js +1 -109
  3. package/lib/commonjs/api/multipart.js +1 -21
  4. package/lib/commonjs/api/publicClient.js +1 -79
  5. package/lib/commonjs/api/responseBodyText.js +1 -0
  6. package/lib/commonjs/api/retry.js +1 -91
  7. package/lib/commonjs/api/tokenRefresh.js +1 -205
  8. package/lib/commonjs/api/userClient.js +1 -265
  9. package/lib/commonjs/auth/authStore.js +1 -265
  10. package/lib/commonjs/auth/index.js +1 -44
  11. package/lib/commonjs/auth/jwt.js +1 -112
  12. package/lib/commonjs/config/index.js +1 -72
  13. package/lib/commonjs/deepLink/index.js +1 -286
  14. package/lib/commonjs/download/adapters/expoFs.js +1 -69
  15. package/lib/commonjs/download/adapters/shared.js +1 -13
  16. package/lib/commonjs/download/index.js +1 -250
  17. package/lib/commonjs/formatters/currency.js +1 -70
  18. package/lib/commonjs/formatters/date.js +1 -167
  19. package/lib/commonjs/formatters/dateMath.js +1 -311
  20. package/lib/commonjs/formatters/index.js +1 -246
  21. package/lib/commonjs/formatters/initials.js +1 -32
  22. package/lib/commonjs/formatters/intlCache.js +1 -37
  23. package/lib/commonjs/formatters/number.js +1 -89
  24. package/lib/commonjs/formatters/phone.js +1 -369
  25. package/lib/commonjs/formatters/windowsToIanaTable.js +1 -164
  26. package/lib/commonjs/geolocation/adapters/expoLocation.js +1 -126
  27. package/lib/commonjs/geolocation/index.js +1 -355
  28. package/lib/commonjs/index.js +1 -644
  29. package/lib/commonjs/initSDK.js +1 -66
  30. package/lib/commonjs/initUserAuth.js +1 -37
  31. package/lib/commonjs/logger/crashlytics.js +1 -0
  32. package/lib/commonjs/logger/index.js +1 -301
  33. package/lib/commonjs/logger/redact.js +1 -50
  34. package/lib/commonjs/network/index.js +1 -31
  35. package/lib/commonjs/network/networkStatus.js +1 -171
  36. package/lib/commonjs/permissions/calendar.js +1 -14
  37. package/lib/commonjs/permissions/camera.js +1 -14
  38. package/lib/commonjs/permissions/contacts.js +1 -10
  39. package/lib/commonjs/permissions/index.js +1 -133
  40. package/lib/commonjs/permissions/location.js +1 -14
  41. package/lib/commonjs/permissions/mediaLibrary.js +1 -10
  42. package/lib/commonjs/permissions/notifications.js +1 -10
  43. package/lib/commonjs/permissions/photos.js +1 -14
  44. package/lib/commonjs/phone/countries.js +1 -265
  45. package/lib/commonjs/push/index.js +1 -61
  46. package/lib/commonjs/push/push.js +1 -468
  47. package/lib/commonjs/push/status.js +1 -0
  48. package/lib/commonjs/push/task.js +1 -43
  49. package/lib/commonjs/secureScreen/index.js +1 -0
  50. package/lib/commonjs/share/index.js +1 -70
  51. package/lib/commonjs/smsRetriever/index.js +1 -91
  52. package/lib/commonjs/specs/NativeSmsRetriever.js +1 -15
  53. package/lib/commonjs/sqlite/adapters/expo.js +1 -53
  54. package/lib/commonjs/sqlite/index.js +1 -604
  55. package/lib/commonjs/storage/index.js +1 -214
  56. package/lib/commonjs/types/axios.js +1 -4
  57. package/lib/commonjs/types/globals.d.js +1 -6
  58. package/lib/commonjs/utils/base64.js +1 -24
  59. package/lib/commonjs/utils/imageCompression.js +1 -389
  60. package/lib/commonjs/utils/index.js +1 -19
  61. package/lib/commonjs/validators/index.js +1 -227
  62. package/lib/commonjs/versionCheck/index.js +1 -419
  63. package/lib/module/api/baseUrl.js +1 -30
  64. package/lib/module/api/curl.js +1 -104
  65. package/lib/module/api/multipart.js +1 -16
  66. package/lib/module/api/publicClient.js +1 -75
  67. package/lib/module/api/responseBodyText.js +1 -0
  68. package/lib/module/api/retry.js +1 -85
  69. package/lib/module/api/tokenRefresh.js +1 -192
  70. package/lib/module/api/userClient.js +1 -243
  71. package/lib/module/auth/authStore.js +1 -257
  72. package/lib/module/auth/index.js +1 -5
  73. package/lib/module/auth/jwt.js +1 -106
  74. package/lib/module/config/index.js +1 -64
  75. package/lib/module/deepLink/index.js +1 -280
  76. package/lib/module/download/adapters/expoFs.js +1 -64
  77. package/lib/module/download/adapters/shared.js +1 -8
  78. package/lib/module/download/index.js +1 -242
  79. package/lib/module/formatters/currency.js +1 -65
  80. package/lib/module/formatters/date.js +1 -159
  81. package/lib/module/formatters/dateMath.js +1 -295
  82. package/lib/module/formatters/index.js +1 -9
  83. package/lib/module/formatters/initials.js +1 -27
  84. package/lib/module/formatters/intlCache.js +1 -30
  85. package/lib/module/formatters/number.js +1 -82
  86. package/lib/module/formatters/phone.js +1 -302
  87. package/lib/module/formatters/windowsToIanaTable.js +1 -160
  88. package/lib/module/geolocation/adapters/expoLocation.js +1 -121
  89. package/lib/module/geolocation/index.js +1 -347
  90. package/lib/module/index.js +1 -57
  91. package/lib/module/initSDK.js +1 -61
  92. package/lib/module/initUserAuth.js +1 -33
  93. package/lib/module/logger/crashlytics.js +1 -0
  94. package/lib/module/logger/index.js +1 -295
  95. package/lib/module/logger/redact.js +1 -44
  96. package/lib/module/network/index.js +1 -4
  97. package/lib/module/network/networkStatus.js +1 -161
  98. package/lib/module/permissions/calendar.js +1 -15
  99. package/lib/module/permissions/camera.js +1 -15
  100. package/lib/module/permissions/contacts.js +1 -11
  101. package/lib/module/permissions/index.js +1 -128
  102. package/lib/module/permissions/location.js +1 -15
  103. package/lib/module/permissions/mediaLibrary.js +1 -11
  104. package/lib/module/permissions/notifications.js +1 -11
  105. package/lib/module/permissions/photos.js +1 -15
  106. package/lib/module/phone/countries.js +1 -261
  107. package/lib/module/push/index.js +1 -4
  108. package/lib/module/push/push.js +1 -452
  109. package/lib/module/push/status.js +1 -0
  110. package/lib/module/push/task.js +1 -38
  111. package/lib/module/secureScreen/index.js +1 -0
  112. package/lib/module/share/index.js +1 -64
  113. package/lib/module/smsRetriever/index.js +1 -86
  114. package/lib/module/specs/NativeSmsRetriever.js +1 -13
  115. package/lib/module/sqlite/adapters/expo.js +1 -48
  116. package/lib/module/sqlite/index.js +1 -594
  117. package/lib/module/storage/index.js +1 -208
  118. package/lib/module/types/axios.js +1 -4
  119. package/lib/module/types/globals.d.js +1 -10
  120. package/lib/module/utils/base64.js +1 -19
  121. package/lib/module/utils/imageCompression.js +1 -383
  122. package/lib/module/utils/index.js +1 -4
  123. package/lib/module/validators/index.js +1 -205
  124. package/lib/module/versionCheck/index.js +1 -413
  125. package/lib/typescript/commonjs/api/responseBodyText.d.ts +6 -0
  126. package/lib/typescript/commonjs/index.d.ts +5 -0
  127. package/lib/typescript/commonjs/logger/crashlytics.d.ts +31 -0
  128. package/lib/typescript/commonjs/push/index.d.ts +3 -1
  129. package/lib/typescript/commonjs/push/push.d.ts +1 -1
  130. package/lib/typescript/commonjs/push/status.d.ts +9 -0
  131. package/lib/typescript/commonjs/secureScreen/index.d.ts +25 -0
  132. package/lib/typescript/module/api/responseBodyText.d.ts +6 -0
  133. package/lib/typescript/module/index.d.ts +5 -0
  134. package/lib/typescript/module/logger/crashlytics.d.ts +31 -0
  135. package/lib/typescript/module/push/index.d.ts +3 -1
  136. package/lib/typescript/module/push/push.d.ts +1 -1
  137. package/lib/typescript/module/push/status.d.ts +9 -0
  138. package/lib/typescript/module/secureScreen/index.d.ts +25 -0
  139. package/package.json +23 -4
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-calendar` is named. Import only if you use calendar/reminders. */
5
- const m = require('expo-calendar');
6
- (0, _index.registerPermissionAdapter)('calendar', {
7
- check: m.getCalendarPermissionsAsync,
8
- request: m.requestCalendarPermissionsAsync
9
- });
10
- (0, _index.registerPermissionAdapter)('reminders', {
11
- check: m.getRemindersPermissionsAsync,
12
- request: m.requestRemindersPermissionsAsync
13
- });
14
- //# sourceMappingURL=calendar.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-calendar");(0,_index.registerPermissionAdapter)("calendar",{check:m.getCalendarPermissionsAsync,request:m.requestCalendarPermissionsAsync}),(0,_index.registerPermissionAdapter)("reminders",{check:m.getRemindersPermissionsAsync,request:m.requestRemindersPermissionsAsync});
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-camera` is named. Import only if you use camera/microphone. */
5
- const m = require('expo-camera');
6
- (0, _index.registerPermissionAdapter)('camera', {
7
- check: m.getCameraPermissionsAsync,
8
- request: m.requestCameraPermissionsAsync
9
- });
10
- (0, _index.registerPermissionAdapter)('microphone', {
11
- check: m.getMicrophonePermissionsAsync,
12
- request: m.requestMicrophonePermissionsAsync
13
- });
14
- //# sourceMappingURL=camera.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-camera");(0,_index.registerPermissionAdapter)("camera",{check:()=>m.Camera.getCameraPermissionsAsync(),request:()=>m.Camera.requestCameraPermissionsAsync()}),(0,_index.registerPermissionAdapter)("microphone",{check:()=>m.Camera.getMicrophonePermissionsAsync(),request:()=>m.Camera.requestMicrophonePermissionsAsync()});
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-contacts` is named. Import only if you use contacts. */
5
- const m = require('expo-contacts');
6
- (0, _index.registerPermissionAdapter)('contacts', {
7
- check: m.getPermissionsAsync,
8
- request: m.requestPermissionsAsync
9
- });
10
- //# sourceMappingURL=contacts.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-contacts");(0,_index.registerPermissionAdapter)("contacts",{check:m.getPermissionsAsync,request:m.requestPermissionsAsync});
@@ -1,133 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.setPermissionsImplementation = exports.registerPermissionAdapter = exports.Permissions = void 0;
7
- var _reactNative = require("react-native");
8
- var _index = require("../logger/index.js");
9
- // Android only — legacy WRITE_EXTERNAL_STORAGE
10
-
11
- /** The shared response shape every Expo permission function returns. */
12
-
13
- let backend = null;
14
-
15
- /**
16
- * Inject a custom permissions backend at runtime. Pass `null` to reset to the
17
- * default per-kind Expo resolution.
18
- *
19
- * Two legitimate reasons to call this: tests/the showcase reaching a denied,
20
- * blocked or unavailable path a healthy device never takes; and an app that
21
- * genuinely needs `bluetooth` or `storage`, which no Expo module covers.
22
- */
23
- const setPermissionsImplementation = impl => {
24
- backend = impl;
25
- };
26
-
27
- /**
28
- * Populated by the per-package entry points (`./camera`, `./photos`, …), never
29
- * by this file. This module names NO Expo package — Metro resolves every
30
- * literal require() reachable from the static import graph regardless of
31
- * which switch branch would have run, so naming seven packages here would
32
- * make each one a mandatory install for every consumer, whichever kinds they
33
- * actually use. An app wires only the kinds it needs:
34
- *
35
- * import '@webority/mobile-core/permissions/camera';
36
- * import '@webority/mobile-core/permissions/location';
37
- *
38
- * `bluetooth` and `storage` have no Expo module and are never registered here
39
- * — they resolve through `setPermissionsImplementation` only.
40
- */
41
- exports.setPermissionsImplementation = setPermissionsImplementation;
42
- const registry = new Map();
43
-
44
- /** Called by the per-package entry points to register their kind(s). Not for app code. */
45
- const registerPermissionAdapter = (kind, fns) => {
46
- registry.set(kind, fns);
47
- };
48
- exports.registerPermissionAdapter = registerPermissionAdapter;
49
- const resolveExpoModule = kind => registry.get(kind) ?? null;
50
- const toStatus = response => {
51
- if (!response) {
52
- return 'unavailable';
53
- }
54
- if (response.accessPrivileges === 'limited') {
55
- return 'limited';
56
- }
57
- if (response.status === 'granted') {
58
- return 'granted';
59
- }
60
- if (response.status === 'denied') {
61
- return response.canAskAgain ? 'denied' : 'blocked';
62
- }
63
- // 'undetermined' — never asked yet. Treated as 'denied' so callers using
64
- // Permissions.ensure() correctly trigger a request() rather than stalling.
65
- return 'denied';
66
- };
67
- const checkPermission = async kind => {
68
- if (backend) {
69
- return backend.check(kind);
70
- }
71
- const fns = resolveExpoModule(kind);
72
- if (!fns) {
73
- return 'unavailable';
74
- }
75
- try {
76
- return toStatus(await fns.check());
77
- } catch (error) {
78
- _index.Logger.error(`[permissions] check(${kind}) failed`, error);
79
- return 'unavailable';
80
- }
81
- };
82
- const requestPermission = async kind => {
83
- if (backend) {
84
- return backend.request(kind);
85
- }
86
- const fns = resolveExpoModule(kind);
87
- if (!fns) {
88
- return 'unavailable';
89
- }
90
- try {
91
- return toStatus(await fns.request());
92
- } catch (error) {
93
- _index.Logger.error(`[permissions] request(${kind}) failed`, error);
94
- return 'unavailable';
95
- }
96
- };
97
- const openAppSettings = async () => {
98
- try {
99
- await _reactNative.Linking.openSettings();
100
- return true;
101
- } catch (error) {
102
- _index.Logger.error('[permissions] openAppSettings failed', error);
103
- return false;
104
- }
105
- };
106
-
107
- /**
108
- * Cross-platform permissions wrapper. Maps an abstract `PermissionKind`
109
- * (camera, photos, location, notifications, …) to whichever Expo adapter an
110
- * app has registered by importing that kind's entry point — expo-camera,
111
- * expo-image-picker, expo-location, expo-contacts, expo-calendar,
112
- * expo-notifications, expo-media-library. An app imports only the entry
113
- * points for the kinds it actually asks for.
114
- */
115
- const Permissions = exports.Permissions = {
116
- check: checkPermission,
117
- request: requestPermission,
118
- /** Convenience: returns true when the permission is `granted` or `limited`. */
119
- isAuthorized: async kind => {
120
- const s = await checkPermission(kind);
121
- return s === 'granted' || s === 'limited';
122
- },
123
- /** Convenience: check, and request only if not yet granted. */
124
- ensure: async kind => {
125
- const s = await checkPermission(kind);
126
- if (s === 'granted' || s === 'limited' || s === 'blocked' || s === 'unavailable') {
127
- return s;
128
- }
129
- return requestPermission(kind);
130
- },
131
- openSettings: openAppSettings
132
- };
133
- //# sourceMappingURL=index.js.map
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setPermissionsImplementation=exports.registerPermissionAdapter=exports.Permissions=void 0;var _reactNative=require("react-native"),_index=require("../logger/index.js");let backend=null;const setPermissionsImplementation=e=>{backend=e};exports.setPermissionsImplementation=setPermissionsImplementation;const registry=new Map,registerPermissionAdapter=(e,s)=>{registry.set(e,s)};exports.registerPermissionAdapter=registerPermissionAdapter;const resolveExpoModule=e=>registry.get(e)??null,toStatus=e=>e?"limited"===e.accessPrivileges?"limited":"granted"===e.status?"granted":"denied"===e.status?e.canAskAgain?"denied":"blocked":"denied":"unavailable",checkPermission=async e=>{if(backend)return backend.check(e);const s=resolveExpoModule(e);if(!s)return"unavailable";try{return toStatus(await s.check())}catch(s){return _index.Logger.error(`[permissions] check(${e}) failed`,s),"unavailable"}},requestPermission=async e=>{if(backend)return backend.request(e);const s=resolveExpoModule(e);if(!s)return"unavailable";try{return toStatus(await s.request())}catch(s){return _index.Logger.error(`[permissions] request(${e}) failed`,s),"unavailable"}},openAppSettings=async()=>{try{return await _reactNative.Linking.openSettings(),!0}catch(e){return _index.Logger.error("[permissions] openAppSettings failed",e),!1}},Permissions=exports.Permissions={check:checkPermission,request:requestPermission,isAuthorized:async e=>{const s=await checkPermission(e);return"granted"===s||"limited"===s},ensure:async e=>{const s=await checkPermission(e);return"granted"===s||"limited"===s||"blocked"===s||"unavailable"===s?s:requestPermission(e)},openSettings:openAppSettings};
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-location` is named. Import only if you use location/locationAlways. */
5
- const m = require('expo-location');
6
- (0, _index.registerPermissionAdapter)('location', {
7
- check: m.getForegroundPermissionsAsync,
8
- request: m.requestForegroundPermissionsAsync
9
- });
10
- (0, _index.registerPermissionAdapter)('locationAlways', {
11
- check: m.getBackgroundPermissionsAsync,
12
- request: m.requestBackgroundPermissionsAsync
13
- });
14
- //# sourceMappingURL=location.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-location");(0,_index.registerPermissionAdapter)("location",{check:m.getForegroundPermissionsAsync,request:m.requestForegroundPermissionsAsync}),(0,_index.registerPermissionAdapter)("locationAlways",{check:m.getBackgroundPermissionsAsync,request:m.requestBackgroundPermissionsAsync});
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-media-library` is named. Import only if you use mediaLibrary. */
5
- const m = require('expo-media-library');
6
- (0, _index.registerPermissionAdapter)('mediaLibrary', {
7
- check: m.getPermissionsAsync,
8
- request: m.requestPermissionsAsync
9
- });
10
- //# sourceMappingURL=mediaLibrary.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-media-library");(0,_index.registerPermissionAdapter)("mediaLibrary",{check:m.getPermissionsAsync,request:m.requestPermissionsAsync});
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-notifications` is named. Import only if you use notifications. */
5
- const m = require('expo-notifications');
6
- (0, _index.registerPermissionAdapter)('notifications', {
7
- check: m.getPermissionsAsync,
8
- request: m.requestPermissionsAsync
9
- });
10
- //# sourceMappingURL=notifications.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-notifications");(0,_index.registerPermissionAdapter)("notifications",{check:m.getPermissionsAsync,request:m.requestPermissionsAsync});
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- var _index = require("./index.js");
4
- /** The one place `expo-image-picker` is named. Import only if you use photos/photosAdd. */
5
- const m = require('expo-image-picker');
6
- (0, _index.registerPermissionAdapter)('photos', {
7
- check: () => m.getMediaLibraryPermissionsAsync(false),
8
- request: () => m.requestMediaLibraryPermissionsAsync(false)
9
- });
10
- (0, _index.registerPermissionAdapter)('photosAdd', {
11
- check: () => m.getMediaLibraryPermissionsAsync(true),
12
- request: () => m.requestMediaLibraryPermissionsAsync(true)
13
- });
14
- //# sourceMappingURL=photos.js.map
1
+ "use strict";var _index=require("./index.js");const m=require("expo-image-picker");(0,_index.registerPermissionAdapter)("photos",{check:()=>m.getMediaLibraryPermissionsAsync(!1),request:()=>m.requestMediaLibraryPermissionsAsync(!1)}),(0,_index.registerPermissionAdapter)("photosAdd",{check:()=>m.getMediaLibraryPermissionsAsync(!0),request:()=>m.requestMediaLibraryPermissionsAsync(!0)});
@@ -1,265 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PHONE_COUNTRY_NAMES = void 0;
7
- /**
8
- * English display names for every country libphonenumber-js knows, keyed by
9
- * ISO 3166-1 alpha-2. GENERATED by scripts/gen-phone-countries.mjs from Node's
10
- * Intl.DisplayNames('en', { type: 'region' }) over getCountries() on 2026-09-14;
11
- * '&' is written as 'and'. Re-run the script rather than editing by hand.
12
- *
13
- * Lives on its own import path (mobile-core/phone/countries) so an app that
14
- * never opens a full country list does not carry these 245 strings in its
15
- * bundle. Pair with getPhoneCountries() from the package root for the calling
16
- * codes; a country picker that needs another language supplies its own names.
17
- */
18
- const PHONE_COUNTRY_NAMES = exports.PHONE_COUNTRY_NAMES = {
19
- AF: 'Afghanistan',
20
- AX: 'Åland Islands',
21
- AL: 'Albania',
22
- DZ: 'Algeria',
23
- AS: 'American Samoa',
24
- AD: 'Andorra',
25
- AO: 'Angola',
26
- AI: 'Anguilla',
27
- AG: 'Antigua and Barbuda',
28
- AR: 'Argentina',
29
- AM: 'Armenia',
30
- AW: 'Aruba',
31
- AC: 'Ascension Island',
32
- AU: 'Australia',
33
- AT: 'Austria',
34
- AZ: 'Azerbaijan',
35
- BS: 'Bahamas',
36
- BH: 'Bahrain',
37
- BD: 'Bangladesh',
38
- BB: 'Barbados',
39
- BY: 'Belarus',
40
- BE: 'Belgium',
41
- BZ: 'Belize',
42
- BJ: 'Benin',
43
- BM: 'Bermuda',
44
- BT: 'Bhutan',
45
- BO: 'Bolivia',
46
- BA: 'Bosnia and Herzegovina',
47
- BW: 'Botswana',
48
- BR: 'Brazil',
49
- IO: 'British Indian Ocean Territory',
50
- VG: 'British Virgin Islands',
51
- BN: 'Brunei',
52
- BG: 'Bulgaria',
53
- BF: 'Burkina Faso',
54
- BI: 'Burundi',
55
- KH: 'Cambodia',
56
- CM: 'Cameroon',
57
- CA: 'Canada',
58
- CV: 'Cape Verde',
59
- BQ: 'Caribbean Netherlands',
60
- KY: 'Cayman Islands',
61
- CF: 'Central African Republic',
62
- TD: 'Chad',
63
- CL: 'Chile',
64
- CN: 'China',
65
- CX: 'Christmas Island',
66
- CC: 'Cocos (Keeling) Islands',
67
- CO: 'Colombia',
68
- KM: 'Comoros',
69
- CG: 'Congo - Brazzaville',
70
- CD: 'Congo - Kinshasa',
71
- CK: 'Cook Islands',
72
- CR: 'Costa Rica',
73
- CI: 'Côte d’Ivoire',
74
- HR: 'Croatia',
75
- CU: 'Cuba',
76
- CW: 'Curaçao',
77
- CY: 'Cyprus',
78
- CZ: 'Czechia',
79
- DK: 'Denmark',
80
- DJ: 'Djibouti',
81
- DM: 'Dominica',
82
- DO: 'Dominican Republic',
83
- EC: 'Ecuador',
84
- EG: 'Egypt',
85
- SV: 'El Salvador',
86
- GQ: 'Equatorial Guinea',
87
- ER: 'Eritrea',
88
- EE: 'Estonia',
89
- SZ: 'Eswatini',
90
- ET: 'Ethiopia',
91
- FK: 'Falkland Islands',
92
- FO: 'Faroe Islands',
93
- FJ: 'Fiji',
94
- FI: 'Finland',
95
- FR: 'France',
96
- GF: 'French Guiana',
97
- PF: 'French Polynesia',
98
- GA: 'Gabon',
99
- GM: 'Gambia',
100
- GE: 'Georgia',
101
- DE: 'Germany',
102
- GH: 'Ghana',
103
- GI: 'Gibraltar',
104
- GR: 'Greece',
105
- GL: 'Greenland',
106
- GD: 'Grenada',
107
- GP: 'Guadeloupe',
108
- GU: 'Guam',
109
- GT: 'Guatemala',
110
- GG: 'Guernsey',
111
- GN: 'Guinea',
112
- GW: 'Guinea-Bissau',
113
- GY: 'Guyana',
114
- HT: 'Haiti',
115
- HN: 'Honduras',
116
- HK: 'Hong Kong SAR China',
117
- HU: 'Hungary',
118
- IS: 'Iceland',
119
- IN: 'India',
120
- ID: 'Indonesia',
121
- IR: 'Iran',
122
- IQ: 'Iraq',
123
- IE: 'Ireland',
124
- IM: 'Isle of Man',
125
- IL: 'Israel',
126
- IT: 'Italy',
127
- JM: 'Jamaica',
128
- JP: 'Japan',
129
- JE: 'Jersey',
130
- JO: 'Jordan',
131
- KZ: 'Kazakhstan',
132
- KE: 'Kenya',
133
- KI: 'Kiribati',
134
- XK: 'Kosovo',
135
- KW: 'Kuwait',
136
- KG: 'Kyrgyzstan',
137
- LA: 'Laos',
138
- LV: 'Latvia',
139
- LB: 'Lebanon',
140
- LS: 'Lesotho',
141
- LR: 'Liberia',
142
- LY: 'Libya',
143
- LI: 'Liechtenstein',
144
- LT: 'Lithuania',
145
- LU: 'Luxembourg',
146
- MO: 'Macao SAR China',
147
- MG: 'Madagascar',
148
- MW: 'Malawi',
149
- MY: 'Malaysia',
150
- MV: 'Maldives',
151
- ML: 'Mali',
152
- MT: 'Malta',
153
- MH: 'Marshall Islands',
154
- MQ: 'Martinique',
155
- MR: 'Mauritania',
156
- MU: 'Mauritius',
157
- YT: 'Mayotte',
158
- MX: 'Mexico',
159
- FM: 'Micronesia',
160
- MD: 'Moldova',
161
- MC: 'Monaco',
162
- MN: 'Mongolia',
163
- ME: 'Montenegro',
164
- MS: 'Montserrat',
165
- MA: 'Morocco',
166
- MZ: 'Mozambique',
167
- MM: 'Myanmar (Burma)',
168
- NA: 'Namibia',
169
- NR: 'Nauru',
170
- NP: 'Nepal',
171
- NL: 'Netherlands',
172
- NC: 'New Caledonia',
173
- NZ: 'New Zealand',
174
- NI: 'Nicaragua',
175
- NE: 'Niger',
176
- NG: 'Nigeria',
177
- NU: 'Niue',
178
- NF: 'Norfolk Island',
179
- KP: 'North Korea',
180
- MK: 'North Macedonia',
181
- MP: 'Northern Mariana Islands',
182
- NO: 'Norway',
183
- OM: 'Oman',
184
- PK: 'Pakistan',
185
- PW: 'Palau',
186
- PS: 'Palestinian Territories',
187
- PA: 'Panama',
188
- PG: 'Papua New Guinea',
189
- PY: 'Paraguay',
190
- PE: 'Peru',
191
- PH: 'Philippines',
192
- PL: 'Poland',
193
- PT: 'Portugal',
194
- PR: 'Puerto Rico',
195
- QA: 'Qatar',
196
- RE: 'Réunion',
197
- RO: 'Romania',
198
- RU: 'Russia',
199
- RW: 'Rwanda',
200
- WS: 'Samoa',
201
- SM: 'San Marino',
202
- ST: 'São Tomé and Príncipe',
203
- SA: 'Saudi Arabia',
204
- SN: 'Senegal',
205
- RS: 'Serbia',
206
- SC: 'Seychelles',
207
- SL: 'Sierra Leone',
208
- SG: 'Singapore',
209
- SX: 'Sint Maarten',
210
- SK: 'Slovakia',
211
- SI: 'Slovenia',
212
- SB: 'Solomon Islands',
213
- SO: 'Somalia',
214
- ZA: 'South Africa',
215
- KR: 'South Korea',
216
- SS: 'South Sudan',
217
- ES: 'Spain',
218
- LK: 'Sri Lanka',
219
- BL: 'St. Barthélemy',
220
- SH: 'St. Helena',
221
- KN: 'St. Kitts and Nevis',
222
- LC: 'St. Lucia',
223
- MF: 'St. Martin',
224
- PM: 'St. Pierre and Miquelon',
225
- VC: 'St. Vincent and Grenadines',
226
- SD: 'Sudan',
227
- SR: 'Suriname',
228
- SJ: 'Svalbard and Jan Mayen',
229
- SE: 'Sweden',
230
- CH: 'Switzerland',
231
- SY: 'Syria',
232
- TW: 'Taiwan',
233
- TJ: 'Tajikistan',
234
- TZ: 'Tanzania',
235
- TH: 'Thailand',
236
- TL: 'Timor-Leste',
237
- TG: 'Togo',
238
- TK: 'Tokelau',
239
- TO: 'Tonga',
240
- TT: 'Trinidad and Tobago',
241
- TA: 'Tristan da Cunha',
242
- TN: 'Tunisia',
243
- TR: 'Türkiye',
244
- TM: 'Turkmenistan',
245
- TC: 'Turks and Caicos Islands',
246
- TV: 'Tuvalu',
247
- VI: 'U.S. Virgin Islands',
248
- UG: 'Uganda',
249
- UA: 'Ukraine',
250
- AE: 'United Arab Emirates',
251
- GB: 'United Kingdom',
252
- US: 'United States',
253
- UY: 'Uruguay',
254
- UZ: 'Uzbekistan',
255
- VU: 'Vanuatu',
256
- VA: 'Vatican City',
257
- VE: 'Venezuela',
258
- VN: 'Vietnam',
259
- WF: 'Wallis and Futuna',
260
- EH: 'Western Sahara',
261
- YE: 'Yemen',
262
- ZM: 'Zambia',
263
- ZW: 'Zimbabwe'
264
- };
265
- //# sourceMappingURL=countries.js.map
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PHONE_COUNTRY_NAMES=void 0;const PHONE_COUNTRY_NAMES=exports.PHONE_COUNTRY_NAMES={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AC:"Ascension Island",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo - Brazzaville",CD:"Congo - Kinshasa",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d’Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czechia",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",SZ:"Eswatini",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong SAR China",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao SAR China",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar (Burma)",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"North Korea",MK:"North Macedonia",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territories",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russia",RW:"Rwanda",WS:"Samoa",SM:"San Marino",ST:"São Tomé and Príncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",BL:"St. Barthélemy",SH:"St. Helena",KN:"St. Kitts and Nevis",LC:"St. Lucia",MF:"St. Martin",PM:"St. Pierre and Miquelon",VC:"St. Vincent and Grenadines",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TA:"Tristan da Cunha",TN:"Tunisia",TR:"Türkiye",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};
@@ -1,61 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "disablePush", {
7
- enumerable: true,
8
- get: function () {
9
- return _push.disablePush;
10
- }
11
- });
12
- Object.defineProperty(exports, "enablePush", {
13
- enumerable: true,
14
- get: function () {
15
- return _push.enablePush;
16
- }
17
- });
18
- Object.defineProperty(exports, "initPush", {
19
- enumerable: true,
20
- get: function () {
21
- return _push.initPush;
22
- }
23
- });
24
- Object.defineProperty(exports, "notifyLocal", {
25
- enumerable: true,
26
- get: function () {
27
- return _push.notifyLocal;
28
- }
29
- });
30
- Object.defineProperty(exports, "onAction", {
31
- enumerable: true,
32
- get: function () {
33
- return _push.onAction;
34
- }
35
- });
36
- Object.defineProperty(exports, "setBadgeCount", {
37
- enumerable: true,
38
- get: function () {
39
- return _push.setBadgeCount;
40
- }
41
- });
42
- Object.defineProperty(exports, "setCategories", {
43
- enumerable: true,
44
- get: function () {
45
- return _push.setCategories;
46
- }
47
- });
48
- Object.defineProperty(exports, "setPushImplementation", {
49
- enumerable: true,
50
- get: function () {
51
- return _push.setPushImplementation;
52
- }
53
- });
54
- Object.defineProperty(exports, "usePush", {
55
- enumerable: true,
56
- get: function () {
57
- return _push.usePush;
58
- }
59
- });
60
- var _push = require("./push.js");
61
- //# sourceMappingURL=index.js.map
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PUSH_STATUS",{enumerable:!0,get:function(){return _status.PUSH_STATUS}}),Object.defineProperty(exports,"disablePush",{enumerable:!0,get:function(){return _push.disablePush}}),Object.defineProperty(exports,"enablePush",{enumerable:!0,get:function(){return _push.enablePush}}),Object.defineProperty(exports,"initPush",{enumerable:!0,get:function(){return _push.initPush}}),Object.defineProperty(exports,"notifyLocal",{enumerable:!0,get:function(){return _push.notifyLocal}}),Object.defineProperty(exports,"onAction",{enumerable:!0,get:function(){return _push.onAction}}),Object.defineProperty(exports,"setBadgeCount",{enumerable:!0,get:function(){return _push.setBadgeCount}}),Object.defineProperty(exports,"setCategories",{enumerable:!0,get:function(){return _push.setCategories}}),Object.defineProperty(exports,"setPushImplementation",{enumerable:!0,get:function(){return _push.setPushImplementation}}),Object.defineProperty(exports,"usePush",{enumerable:!0,get:function(){return _push.usePush}});var _push=require("./push.js"),_status=require("./status.js");