@webority-technologies/mobile-core 0.0.1 → 0.0.3

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 (146) hide show
  1. package/README.md +22 -1
  2. package/lib/commonjs/api/baseUrl.js +34 -0
  3. package/lib/commonjs/api/curl.js +109 -0
  4. package/lib/commonjs/api/publicClient.js +11 -20
  5. package/lib/commonjs/api/retry.js +75 -0
  6. package/lib/commonjs/api/userClient.js +46 -22
  7. package/lib/commonjs/auth/authStore.js +101 -33
  8. package/lib/commonjs/auth/jwt.js +32 -8
  9. package/lib/commonjs/config/index.js +2 -1
  10. package/lib/commonjs/deepLink/index.js +286 -0
  11. package/lib/commonjs/download/adapters/expoFs.js +100 -0
  12. package/lib/commonjs/download/adapters/shared.js +13 -0
  13. package/lib/commonjs/download/index.js +272 -0
  14. package/lib/commonjs/formatters/date.js +1 -1
  15. package/lib/commonjs/formatters/index.js +24 -0
  16. package/lib/commonjs/formatters/phone.js +132 -15
  17. package/lib/commonjs/geolocation/adapters/expoLocation.js +126 -0
  18. package/lib/commonjs/geolocation/index.js +339 -0
  19. package/lib/commonjs/index.js +151 -48
  20. package/lib/commonjs/initSDK.js +23 -2
  21. package/lib/commonjs/initUserAuth.js +2 -1
  22. package/lib/commonjs/logger/index.js +159 -5
  23. package/lib/commonjs/network/index.js +6 -0
  24. package/lib/commonjs/network/networkStatus.js +50 -15
  25. package/lib/commonjs/permissions/index.js +24 -1
  26. package/lib/commonjs/sqlite/adapters/expo.js +53 -0
  27. package/lib/commonjs/sqlite/adapters/op.js +43 -0
  28. package/lib/commonjs/sqlite/adapters/rows.js +33 -0
  29. package/lib/commonjs/sqlite/adapters/storage.js +50 -0
  30. package/lib/commonjs/sqlite/adapters/sync.js +45 -0
  31. package/lib/commonjs/sqlite/index.js +610 -0
  32. package/lib/commonjs/sqlite/nitro.js +17 -0
  33. package/lib/commonjs/sqlite/op.js +18 -0
  34. package/lib/commonjs/sqlite/quick.js +14 -0
  35. package/lib/commonjs/sqlite/storage.js +14 -0
  36. package/lib/commonjs/storage/index.js +41 -20
  37. package/lib/commonjs/types/globals.d.js +6 -0
  38. package/lib/commonjs/utils/imageCompression.js +51 -14
  39. package/lib/commonjs/utils/index.js +6 -0
  40. package/lib/commonjs/versionCheck/index.js +28 -4
  41. package/lib/module/api/baseUrl.js +30 -0
  42. package/lib/module/api/curl.js +104 -0
  43. package/lib/module/api/publicClient.js +11 -20
  44. package/lib/module/api/retry.js +69 -0
  45. package/lib/module/api/userClient.js +45 -21
  46. package/lib/module/auth/authStore.js +99 -32
  47. package/lib/module/auth/jwt.js +32 -8
  48. package/lib/module/config/index.js +2 -1
  49. package/lib/module/deepLink/index.js +280 -0
  50. package/lib/module/download/adapters/expoFs.js +95 -0
  51. package/lib/module/download/adapters/shared.js +8 -0
  52. package/lib/module/download/index.js +264 -0
  53. package/lib/module/formatters/date.js +1 -1
  54. package/lib/module/formatters/index.js +1 -1
  55. package/lib/module/formatters/phone.js +110 -13
  56. package/lib/module/geolocation/adapters/expoLocation.js +121 -0
  57. package/lib/module/geolocation/index.js +332 -0
  58. package/lib/module/index.js +28 -11
  59. package/lib/module/initSDK.js +23 -2
  60. package/lib/module/initUserAuth.js +2 -1
  61. package/lib/module/logger/index.js +156 -4
  62. package/lib/module/network/index.js +1 -1
  63. package/lib/module/network/networkStatus.js +47 -14
  64. package/lib/module/permissions/index.js +22 -0
  65. package/lib/module/sqlite/adapters/expo.js +48 -0
  66. package/lib/module/sqlite/adapters/op.js +38 -0
  67. package/lib/module/sqlite/adapters/rows.js +28 -0
  68. package/lib/module/sqlite/adapters/storage.js +46 -0
  69. package/lib/module/sqlite/adapters/sync.js +41 -0
  70. package/lib/module/sqlite/index.js +600 -0
  71. package/lib/module/sqlite/nitro.js +12 -0
  72. package/lib/module/sqlite/op.js +13 -0
  73. package/lib/module/sqlite/quick.js +9 -0
  74. package/lib/module/sqlite/storage.js +9 -0
  75. package/lib/module/storage/index.js +38 -19
  76. package/lib/module/types/globals.d.js +10 -0
  77. package/lib/module/utils/imageCompression.js +49 -13
  78. package/lib/module/utils/index.js +1 -1
  79. package/lib/module/versionCheck/index.js +27 -4
  80. package/lib/typescript/commonjs/api/baseUrl.d.ts +20 -0
  81. package/lib/typescript/commonjs/api/curl.d.ts +18 -0
  82. package/lib/typescript/commonjs/api/retry.d.ts +27 -0
  83. package/lib/typescript/commonjs/api/userClient.d.ts +11 -0
  84. package/lib/typescript/commonjs/auth/authStore.d.ts +29 -6
  85. package/lib/typescript/commonjs/config/index.d.ts +6 -0
  86. package/lib/typescript/commonjs/deepLink/index.d.ts +54 -0
  87. package/lib/typescript/commonjs/download/adapters/expoFs.d.ts +45 -0
  88. package/lib/typescript/commonjs/download/adapters/shared.d.ts +3 -0
  89. package/lib/typescript/commonjs/download/index.d.ts +76 -0
  90. package/lib/typescript/commonjs/formatters/index.d.ts +2 -1
  91. package/lib/typescript/commonjs/formatters/phone.d.ts +27 -1
  92. package/lib/typescript/commonjs/geolocation/adapters/expoLocation.d.ts +42 -0
  93. package/lib/typescript/commonjs/geolocation/index.d.ts +89 -0
  94. package/lib/typescript/commonjs/index.d.ts +30 -13
  95. package/lib/typescript/commonjs/initSDK.d.ts +32 -0
  96. package/lib/typescript/commonjs/logger/index.d.ts +39 -0
  97. package/lib/typescript/commonjs/network/index.d.ts +2 -2
  98. package/lib/typescript/commonjs/network/networkStatus.d.ts +16 -0
  99. package/lib/typescript/commonjs/permissions/index.d.ts +35 -0
  100. package/lib/typescript/commonjs/sqlite/adapters/expo.d.ts +30 -0
  101. package/lib/typescript/commonjs/sqlite/adapters/op.d.ts +27 -0
  102. package/lib/typescript/commonjs/sqlite/adapters/rows.d.ts +7 -0
  103. package/lib/typescript/commonjs/sqlite/adapters/storage.d.ts +30 -0
  104. package/lib/typescript/commonjs/sqlite/adapters/sync.d.ts +31 -0
  105. package/lib/typescript/commonjs/sqlite/index.d.ts +121 -0
  106. package/lib/typescript/commonjs/sqlite/nitro.d.ts +7 -0
  107. package/lib/typescript/commonjs/sqlite/op.d.ts +8 -0
  108. package/lib/typescript/commonjs/sqlite/quick.d.ts +4 -0
  109. package/lib/typescript/commonjs/sqlite/storage.d.ts +4 -0
  110. package/lib/typescript/commonjs/storage/index.d.ts +25 -3
  111. package/lib/typescript/commonjs/utils/imageCompression.d.ts +17 -0
  112. package/lib/typescript/commonjs/utils/index.d.ts +2 -2
  113. package/lib/typescript/module/api/baseUrl.d.ts +20 -0
  114. package/lib/typescript/module/api/curl.d.ts +18 -0
  115. package/lib/typescript/module/api/retry.d.ts +27 -0
  116. package/lib/typescript/module/api/userClient.d.ts +11 -0
  117. package/lib/typescript/module/auth/authStore.d.ts +29 -6
  118. package/lib/typescript/module/config/index.d.ts +6 -0
  119. package/lib/typescript/module/deepLink/index.d.ts +54 -0
  120. package/lib/typescript/module/download/adapters/expoFs.d.ts +45 -0
  121. package/lib/typescript/module/download/adapters/shared.d.ts +3 -0
  122. package/lib/typescript/module/download/index.d.ts +76 -0
  123. package/lib/typescript/module/formatters/index.d.ts +2 -1
  124. package/lib/typescript/module/formatters/phone.d.ts +27 -1
  125. package/lib/typescript/module/geolocation/adapters/expoLocation.d.ts +42 -0
  126. package/lib/typescript/module/geolocation/index.d.ts +89 -0
  127. package/lib/typescript/module/index.d.ts +30 -13
  128. package/lib/typescript/module/initSDK.d.ts +32 -0
  129. package/lib/typescript/module/logger/index.d.ts +39 -0
  130. package/lib/typescript/module/network/index.d.ts +2 -2
  131. package/lib/typescript/module/network/networkStatus.d.ts +16 -0
  132. package/lib/typescript/module/permissions/index.d.ts +35 -0
  133. package/lib/typescript/module/sqlite/adapters/expo.d.ts +30 -0
  134. package/lib/typescript/module/sqlite/adapters/op.d.ts +27 -0
  135. package/lib/typescript/module/sqlite/adapters/rows.d.ts +7 -0
  136. package/lib/typescript/module/sqlite/adapters/storage.d.ts +30 -0
  137. package/lib/typescript/module/sqlite/adapters/sync.d.ts +31 -0
  138. package/lib/typescript/module/sqlite/index.d.ts +121 -0
  139. package/lib/typescript/module/sqlite/nitro.d.ts +7 -0
  140. package/lib/typescript/module/sqlite/op.d.ts +8 -0
  141. package/lib/typescript/module/sqlite/quick.d.ts +4 -0
  142. package/lib/typescript/module/sqlite/storage.d.ts +4 -0
  143. package/lib/typescript/module/storage/index.d.ts +25 -3
  144. package/lib/typescript/module/utils/imageCompression.d.ts +17 -0
  145. package/lib/typescript/module/utils/index.d.ts +2 -2
  146. package/package.json +102 -13
@@ -3,16 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "ACCESS_TOKEN_KEY", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _authStore.ACCESS_TOKEN_KEY;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "DeepLink", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _index2.DeepLink;
16
+ }
17
+ });
6
18
  Object.defineProperty(exports, "Logger", {
7
19
  enumerable: true,
8
20
  get: function () {
9
- return _index3.Logger;
21
+ return _index4.Logger;
10
22
  }
11
23
  });
12
- Object.defineProperty(exports, "Permissions", {
24
+ Object.defineProperty(exports, "REFRESH_TOKEN_KEY", {
13
25
  enumerable: true,
14
26
  get: function () {
15
- return _index5.Permissions;
27
+ return _authStore.REFRESH_TOKEN_KEY;
16
28
  }
17
29
  });
18
30
  Object.defineProperty(exports, "RequestOfflineError", {
@@ -36,19 +48,31 @@ Object.defineProperty(exports, "Storage", {
36
48
  Object.defineProperty(exports, "VersionCheck", {
37
49
  enumerable: true,
38
50
  get: function () {
39
- return _index9.VersionCheck;
51
+ return _index8.VersionCheck;
40
52
  }
41
53
  });
42
54
  Object.defineProperty(exports, "addNetworkStatusListener", {
43
55
  enumerable: true,
44
56
  get: function () {
45
- return _index4.addNetworkStatusListener;
57
+ return _index5.addNetworkStatusListener;
46
58
  }
47
59
  });
48
- Object.defineProperty(exports, "compressImage", {
60
+ Object.defineProperty(exports, "attachRetry", {
49
61
  enumerable: true,
50
62
  get: function () {
51
- return _index7.compressImage;
63
+ return _retry.attachRetry;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "buildCurl", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _curl.buildCurl;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "configureLogger", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _index4.configureLogger;
52
76
  }
53
77
  });
54
78
  Object.defineProperty(exports, "decodeJWT", {
@@ -57,58 +81,64 @@ Object.defineProperty(exports, "decodeJWT", {
57
81
  return _jwt.decodeJWT;
58
82
  }
59
83
  });
84
+ Object.defineProperty(exports, "detectPhoneCountry", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _index3.detectPhoneCountry;
88
+ }
89
+ });
60
90
  Object.defineProperty(exports, "formatCompactNumber", {
61
91
  enumerable: true,
62
92
  get: function () {
63
- return _index2.formatCompactNumber;
93
+ return _index3.formatCompactNumber;
64
94
  }
65
95
  });
66
96
  Object.defineProperty(exports, "formatCurrency", {
67
97
  enumerable: true,
68
98
  get: function () {
69
- return _index2.formatCurrency;
99
+ return _index3.formatCurrency;
70
100
  }
71
101
  });
72
102
  Object.defineProperty(exports, "formatDate", {
73
103
  enumerable: true,
74
104
  get: function () {
75
- return _index2.formatDate;
105
+ return _index3.formatDate;
76
106
  }
77
107
  });
78
108
  Object.defineProperty(exports, "formatDateTime", {
79
109
  enumerable: true,
80
110
  get: function () {
81
- return _index2.formatDateTime;
111
+ return _index3.formatDateTime;
82
112
  }
83
113
  });
84
114
  Object.defineProperty(exports, "formatNumber", {
85
115
  enumerable: true,
86
116
  get: function () {
87
- return _index2.formatNumber;
117
+ return _index3.formatNumber;
88
118
  }
89
119
  });
90
120
  Object.defineProperty(exports, "formatPercent", {
91
121
  enumerable: true,
92
122
  get: function () {
93
- return _index2.formatPercent;
123
+ return _index3.formatPercent;
94
124
  }
95
125
  });
96
126
  Object.defineProperty(exports, "formatPhone", {
97
127
  enumerable: true,
98
128
  get: function () {
99
- return _index2.formatPhone;
129
+ return _index3.formatPhone;
100
130
  }
101
131
  });
102
132
  Object.defineProperty(exports, "formatRelativeTime", {
103
133
  enumerable: true,
104
134
  get: function () {
105
- return _index2.formatRelativeTime;
135
+ return _index3.formatRelativeTime;
106
136
  }
107
137
  });
108
138
  Object.defineProperty(exports, "formatTime", {
109
139
  enumerable: true,
110
140
  get: function () {
111
- return _index2.formatTime;
141
+ return _index3.formatTime;
112
142
  }
113
143
  });
114
144
  Object.defineProperty(exports, "getConfig", {
@@ -123,10 +153,16 @@ Object.defineProperty(exports, "getConfigValue", {
123
153
  return _index.getConfigValue;
124
154
  }
125
155
  });
156
+ Object.defineProperty(exports, "getDeviceContext", {
157
+ enumerable: true,
158
+ get: function () {
159
+ return _index4.getDeviceContext;
160
+ }
161
+ });
126
162
  Object.defineProperty(exports, "getInitials", {
127
163
  enumerable: true,
128
164
  get: function () {
129
- return _index2.getInitials;
165
+ return _index3.getInitials;
130
166
  }
131
167
  });
132
168
  Object.defineProperty(exports, "getJWTExpiry", {
@@ -138,7 +174,7 @@ Object.defineProperty(exports, "getJWTExpiry", {
138
174
  Object.defineProperty(exports, "getNetworkStatus", {
139
175
  enumerable: true,
140
176
  get: function () {
141
- return _index4.getNetworkStatus;
177
+ return _index5.getNetworkStatus;
142
178
  }
143
179
  });
144
180
  Object.defineProperty(exports, "getToken", {
@@ -174,61 +210,61 @@ Object.defineProperty(exports, "injectStore", {
174
210
  Object.defineProperty(exports, "isAadhaar", {
175
211
  enumerable: true,
176
212
  get: function () {
177
- return _index8.isAadhaar;
213
+ return _index7.isAadhaar;
178
214
  }
179
215
  });
180
216
  Object.defineProperty(exports, "isAlphanumeric", {
181
217
  enumerable: true,
182
218
  get: function () {
183
- return _index8.isAlphanumeric;
219
+ return _index7.isAlphanumeric;
184
220
  }
185
221
  });
186
222
  Object.defineProperty(exports, "isBetween", {
187
223
  enumerable: true,
188
224
  get: function () {
189
- return _index8.isBetween;
225
+ return _index7.isBetween;
190
226
  }
191
227
  });
192
228
  Object.defineProperty(exports, "isEmail", {
193
229
  enumerable: true,
194
230
  get: function () {
195
- return _index8.isEmail;
231
+ return _index7.isEmail;
196
232
  }
197
233
  });
198
234
  Object.defineProperty(exports, "isGstin", {
199
235
  enumerable: true,
200
236
  get: function () {
201
- return _index8.isGstin;
237
+ return _index7.isGstin;
202
238
  }
203
239
  });
204
240
  Object.defineProperty(exports, "isHexColor", {
205
241
  enumerable: true,
206
242
  get: function () {
207
- return _index8.isHexColor;
243
+ return _index7.isHexColor;
208
244
  }
209
245
  });
210
246
  Object.defineProperty(exports, "isIfsc", {
211
247
  enumerable: true,
212
248
  get: function () {
213
- return _index8.isIfsc;
249
+ return _index7.isIfsc;
214
250
  }
215
251
  });
216
252
  Object.defineProperty(exports, "isIndianMobile", {
217
253
  enumerable: true,
218
254
  get: function () {
219
- return _index8.isIndianMobile;
255
+ return _index7.isIndianMobile;
220
256
  }
221
257
  });
222
258
  Object.defineProperty(exports, "isIndianPincode", {
223
259
  enumerable: true,
224
260
  get: function () {
225
- return _index8.isIndianPincode;
261
+ return _index7.isIndianPincode;
226
262
  }
227
263
  });
228
264
  Object.defineProperty(exports, "isInteger", {
229
265
  enumerable: true,
230
266
  get: function () {
231
- return _index8.isInteger;
267
+ return _index7.isInteger;
232
268
  }
233
269
  });
234
270
  Object.defineProperty(exports, "isJWTExpired", {
@@ -240,55 +276,97 @@ Object.defineProperty(exports, "isJWTExpired", {
240
276
  Object.defineProperty(exports, "isNonEmpty", {
241
277
  enumerable: true,
242
278
  get: function () {
243
- return _index8.isNonEmpty;
279
+ return _index7.isNonEmpty;
244
280
  }
245
281
  });
246
282
  Object.defineProperty(exports, "isNumeric", {
247
283
  enumerable: true,
248
284
  get: function () {
249
- return _index8.isNumeric;
285
+ return _index7.isNumeric;
250
286
  }
251
287
  });
252
288
  Object.defineProperty(exports, "isPan", {
253
289
  enumerable: true,
254
290
  get: function () {
255
- return _index8.isPan;
291
+ return _index7.isPan;
256
292
  }
257
293
  });
258
294
  Object.defineProperty(exports, "isPhone", {
259
295
  enumerable: true,
260
296
  get: function () {
261
- return _index8.isPhone;
297
+ return _index7.isPhone;
298
+ }
299
+ });
300
+ Object.defineProperty(exports, "isRetryableStatus", {
301
+ enumerable: true,
302
+ get: function () {
303
+ return _retry.isRetryableStatus;
304
+ }
305
+ });
306
+ Object.defineProperty(exports, "isStorageAvailable", {
307
+ enumerable: true,
308
+ get: function () {
309
+ return _index6.isStorageAvailable;
262
310
  }
263
311
  });
264
312
  Object.defineProperty(exports, "isStrongPassword", {
265
313
  enumerable: true,
266
314
  get: function () {
267
- return _index8.isStrongPassword;
315
+ return _index7.isStrongPassword;
268
316
  }
269
317
  });
270
318
  Object.defineProperty(exports, "isUrl", {
271
319
  enumerable: true,
272
320
  get: function () {
273
- return _index8.isUrl;
321
+ return _index7.isUrl;
322
+ }
323
+ });
324
+ Object.defineProperty(exports, "isValidPhoneNumber", {
325
+ enumerable: true,
326
+ get: function () {
327
+ return _index3.isValidPhoneNumber;
328
+ }
329
+ });
330
+ Object.defineProperty(exports, "logCurl", {
331
+ enumerable: true,
332
+ get: function () {
333
+ return _curl.logCurl;
274
334
  }
275
335
  });
276
336
  Object.defineProperty(exports, "maxLength", {
277
337
  enumerable: true,
278
338
  get: function () {
279
- return _index8.maxLength;
339
+ return _index7.maxLength;
280
340
  }
281
341
  });
282
342
  Object.defineProperty(exports, "minLength", {
283
343
  enumerable: true,
284
344
  get: function () {
285
- return _index8.minLength;
345
+ return _index7.minLength;
286
346
  }
287
347
  });
288
348
  Object.defineProperty(exports, "normalizePhone", {
289
349
  enumerable: true,
290
350
  get: function () {
291
- return _index2.normalizePhone;
351
+ return _index3.normalizePhone;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "parseDeepLink", {
355
+ enumerable: true,
356
+ get: function () {
357
+ return _index2.parseDeepLink;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "parsePhoneNumber", {
361
+ enumerable: true,
362
+ get: function () {
363
+ return _index3.parsePhoneNumber;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "parsePhoneNumberFromString", {
367
+ enumerable: true,
368
+ get: function () {
369
+ return _index3.parsePhoneNumberFromString;
292
370
  }
293
371
  });
294
372
  Object.defineProperty(exports, "publicClient", {
@@ -309,16 +387,28 @@ Object.defineProperty(exports, "resetConfig", {
309
387
  return _index.resetConfig;
310
388
  }
311
389
  });
390
+ Object.defineProperty(exports, "resetRefreshState", {
391
+ enumerable: true,
392
+ get: function () {
393
+ return _userClient.resetRefreshState;
394
+ }
395
+ });
312
396
  Object.defineProperty(exports, "setConfig", {
313
397
  enumerable: true,
314
398
  get: function () {
315
399
  return _index.setConfig;
316
400
  }
317
401
  });
402
+ Object.defineProperty(exports, "setDeviceContext", {
403
+ enumerable: true,
404
+ get: function () {
405
+ return _index4.setDeviceContext;
406
+ }
407
+ });
318
408
  Object.defineProperty(exports, "setDeviceInfoImplementation", {
319
409
  enumerable: true,
320
410
  get: function () {
321
- return _index9.setDeviceInfoImplementation;
411
+ return _index8.setDeviceInfoImplementation;
322
412
  }
323
413
  });
324
414
  Object.defineProperty(exports, "setKeychainImplementation", {
@@ -327,10 +417,16 @@ Object.defineProperty(exports, "setKeychainImplementation", {
327
417
  return _authStore.setKeychainImplementation;
328
418
  }
329
419
  });
420
+ Object.defineProperty(exports, "setNetworkStatusImplementation", {
421
+ enumerable: true,
422
+ get: function () {
423
+ return _index5.setNetworkStatusImplementation;
424
+ }
425
+ });
330
426
  Object.defineProperty(exports, "setRemoteLogger", {
331
427
  enumerable: true,
332
428
  get: function () {
333
- return _index3.setRemoteLogger;
429
+ return _index4.setRemoteLogger;
334
430
  }
335
431
  });
336
432
  Object.defineProperty(exports, "setStorageImplementation", {
@@ -345,16 +441,22 @@ Object.defineProperty(exports, "storeToken", {
345
441
  return _authStore.storeToken;
346
442
  }
347
443
  });
444
+ Object.defineProperty(exports, "useDeepLink", {
445
+ enumerable: true,
446
+ get: function () {
447
+ return _index2.useDeepLink;
448
+ }
449
+ });
348
450
  Object.defineProperty(exports, "useNetworkStatus", {
349
451
  enumerable: true,
350
452
  get: function () {
351
- return _index4.useNetworkStatus;
453
+ return _index5.useNetworkStatus;
352
454
  }
353
455
  });
354
456
  Object.defineProperty(exports, "useVersionCheck", {
355
457
  enumerable: true,
356
458
  get: function () {
357
- return _index9.useVersionCheck;
459
+ return _index8.useVersionCheck;
358
460
  }
359
461
  });
360
462
  Object.defineProperty(exports, "userClient", {
@@ -363,21 +465,22 @@ Object.defineProperty(exports, "userClient", {
363
465
  return _userClient.default;
364
466
  }
365
467
  });
468
+ var _curl = require("./api/curl.js");
366
469
  var _publicClient = _interopRequireDefault(require("./api/publicClient.js"));
470
+ var _retry = require("./api/retry.js");
367
471
  var _userClient = _interopRequireWildcard(require("./api/userClient.js"));
368
472
  var _authStore = require("./auth/authStore.js");
369
473
  var _jwt = require("./auth/jwt.js");
370
474
  var _index = require("./config/index.js");
371
- var _index2 = require("./formatters/index.js");
475
+ var _index2 = require("./deepLink/index.js");
476
+ var _index3 = require("./formatters/index.js");
372
477
  var _initSDK = require("./initSDK.js");
373
478
  var _initUserAuth = require("./initUserAuth.js");
374
- var _index3 = require("./logger/index.js");
375
- var _index4 = require("./network/index.js");
376
- var _index5 = require("./permissions/index.js");
479
+ var _index4 = require("./logger/index.js");
480
+ var _index5 = require("./network/index.js");
377
481
  var _index6 = require("./storage/index.js");
378
- var _index7 = require("./utils/index.js");
379
- var _index8 = require("./validators/index.js");
380
- var _index9 = require("./versionCheck/index.js");
482
+ var _index7 = require("./validators/index.js");
483
+ var _index8 = require("./versionCheck/index.js");
381
484
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
382
485
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
383
486
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.initWebority = void 0;
7
+ var _authStore = require("./auth/authStore.js");
7
8
  var _index = require("./config/index.js");
9
+ var _index2 = require("./logger/index.js");
10
+ var _networkStatus = require("./network/networkStatus.js");
11
+ var _index3 = require("./storage/index.js");
8
12
  /**
9
13
  * Simple initialization API for Webority packages
10
14
  * One function to configure everything needed
@@ -37,9 +41,26 @@ const initWebority = config => {
37
41
  loggingEnabled: config.loggingEnabled ?? true,
38
42
  logLevel: config.logLevel || 'info',
39
43
  environment: config.environment || 'Development',
40
- country: (config.country || 'in').toLowerCase()
44
+ country: (config.country || 'in').toLowerCase(),
45
+ appId: config.appId ?? null,
46
+ appVersion: config.appVersion ?? null,
47
+ logCurl: config.logCurl ?? false
41
48
  });
42
- console.log('✅ Webority packages initialized successfully');
49
+
50
+ // Only what the caller actually passed is wired. Calling a setter with
51
+ // `undefined` would reset a backend an app had already injected by hand,
52
+ // which is why each is guarded rather than passed straight through.
53
+ const backends = config.backends;
54
+ if (backends?.storage) {
55
+ (0, _index3.setStorageImplementation)(backends.storage);
56
+ }
57
+ if (backends?.keychain) {
58
+ (0, _authStore.setKeychainImplementation)(backends.keychain);
59
+ }
60
+ if (backends?.network) {
61
+ (0, _networkStatus.setNetworkStatusImplementation)(backends.network);
62
+ }
63
+ _index2.Logger.info('[@webority-technologies/mobile-core] initialized');
43
64
  };
44
65
  exports.initWebority = initWebority;
45
66
  //# sourceMappingURL=initSDK.js.map
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.initUserAuth = void 0;
7
7
  var _userClient = require("./api/userClient.js");
8
+ var _index = require("./logger/index.js");
8
9
  /**
9
10
  * Simple initialization API for Webority User package
10
11
  * Easy setup for Redux integration
@@ -32,7 +33,7 @@ const initUserAuth = (store, authActions) => {
32
33
  }
33
34
  (0, _userClient.injectStore)(store);
34
35
  (0, _userClient.injectAuthActions)(authActions);
35
- console.log(' Webority User package initialized with Redux');
36
+ _index.Logger.info('[@webority-technologies/mobile-core] user auth wired to the store');
36
37
  };
37
38
  exports.initUserAuth = initUserAuth;
38
39
  //# sourceMappingURL=initUserAuth.js.map