@sanctum-key/react-native-sdk 1.0.7 → 1.0.9

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 (85) hide show
  1. package/README.md +4 -4
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/AndroidManifest.xml +1 -1
  4. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +6 -6
  5. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +2 -2
  6. package/build/package.json +5 -5
  7. package/build/src/App.d.ts +2 -2
  8. package/build/src/App.d.ts.map +1 -1
  9. package/build/src/App.js +2 -2
  10. package/build/src/App.js.map +1 -1
  11. package/build/src/{SanctumKeySdk.types.d.ts → TransfergratisSdk.types.d.ts} +3 -3
  12. package/build/src/TransfergratisSdk.types.d.ts.map +1 -0
  13. package/build/src/TransfergratisSdk.types.js +2 -0
  14. package/build/src/TransfergratisSdk.types.js.map +1 -0
  15. package/build/src/{SanctumKeySdkModule.d.ts → TransfergratisSdkModule.d.ts} +4 -4
  16. package/build/src/TransfergratisSdkModule.d.ts.map +1 -0
  17. package/build/src/{SanctumKeySdkModule.js → TransfergratisSdkModule.js} +2 -2
  18. package/build/src/TransfergratisSdkModule.js.map +1 -0
  19. package/build/src/{SanctumKeySdkModule.web.d.ts → TransfergratisSdkModule.web.d.ts} +4 -4
  20. package/build/src/TransfergratisSdkModule.web.d.ts.map +1 -0
  21. package/build/src/{SanctumKeySdkModule.web.js → TransfergratisSdkModule.web.js} +3 -3
  22. package/build/src/TransfergratisSdkModule.web.js.map +1 -0
  23. package/build/src/TransfergratisSdkView.d.ts +4 -0
  24. package/build/src/TransfergratisSdkView.d.ts.map +1 -0
  25. package/build/src/TransfergratisSdkView.js +7 -0
  26. package/build/src/TransfergratisSdkView.js.map +1 -0
  27. package/build/src/TransfergratisSdkView.web.d.ts +4 -0
  28. package/build/src/TransfergratisSdkView.web.d.ts.map +1 -0
  29. package/build/src/{SanctumKeySdkView.web.js → TransfergratisSdkView.web.js} +2 -2
  30. package/build/src/TransfergratisSdkView.web.js.map +1 -0
  31. package/build/src/api/axios.js +2 -2
  32. package/build/src/api/axios.js.map +1 -1
  33. package/build/src/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -1
  34. package/build/src/components/KYCElements/PhoneVerificationTemplate.js +16 -144
  35. package/build/src/components/KYCElements/PhoneVerificationTemplate.js.map +1 -1
  36. package/build/src/components/NativeCameraView.js +1 -1
  37. package/build/src/components/NativeCameraView.js.map +1 -1
  38. package/build/src/config/KYCConfig.js +1 -1
  39. package/build/src/config/KYCConfig.js.map +1 -1
  40. package/build/src/config/allowedDomains.js +6 -6
  41. package/build/src/config/allowedDomains.js.map +1 -1
  42. package/build/src/index.d.ts +3 -3
  43. package/build/src/index.d.ts.map +1 -1
  44. package/build/src/index.js +3 -3
  45. package/build/src/index.js.map +1 -1
  46. package/build/src/modules/api/KYCService.d.ts +2 -1
  47. package/build/src/modules/api/KYCService.d.ts.map +1 -1
  48. package/build/src/modules/api/KYCService.js +19 -25
  49. package/build/src/modules/api/KYCService.js.map +1 -1
  50. package/build/src/modules/camera/NativeCameraModule.js +17 -17
  51. package/build/src/modules/camera/NativeCameraModule.js.map +1 -1
  52. package/expo-module.config.json +2 -2
  53. package/ios/TransfergratisSdk.podspec +2 -2
  54. package/ios/TransfergratisSdkModule.swift +12 -12
  55. package/package.json +5 -5
  56. package/src/App.tsx +2 -2
  57. package/src/{SanctumKeySdk.types.ts → TransfergratisSdk.types.ts} +2 -2
  58. package/src/{SanctumKeySdkModule.ts → TransfergratisSdkModule.ts} +3 -3
  59. package/src/{SanctumKeySdkModule.web.ts → TransfergratisSdkModule.web.ts} +3 -3
  60. package/src/TransfergratisSdkView.tsx +11 -0
  61. package/src/{SanctumKeySdkView.web.tsx → TransfergratisSdkView.web.tsx} +2 -2
  62. package/src/api/axios.ts +2 -2
  63. package/src/components/KYCElements/PhoneVerificationTemplate.tsx +24 -184
  64. package/src/components/NativeCameraView.tsx +1 -1
  65. package/src/config/KYCConfig.ts +1 -1
  66. package/src/config/allowedDomains.ts +6 -6
  67. package/src/i18n/README.md +1 -1
  68. package/src/index.ts +3 -3
  69. package/src/modules/api/KYCService.ts +20 -30
  70. package/src/modules/camera/NativeCameraModule.ts +17 -17
  71. package/build/src/SanctumKeySdk.types.d.ts.map +0 -1
  72. package/build/src/SanctumKeySdk.types.js +0 -2
  73. package/build/src/SanctumKeySdk.types.js.map +0 -1
  74. package/build/src/SanctumKeySdkModule.d.ts.map +0 -1
  75. package/build/src/SanctumKeySdkModule.js.map +0 -1
  76. package/build/src/SanctumKeySdkModule.web.d.ts.map +0 -1
  77. package/build/src/SanctumKeySdkModule.web.js.map +0 -1
  78. package/build/src/SanctumKeySdkView.d.ts +0 -4
  79. package/build/src/SanctumKeySdkView.d.ts.map +0 -1
  80. package/build/src/SanctumKeySdkView.js +0 -7
  81. package/build/src/SanctumKeySdkView.js.map +0 -1
  82. package/build/src/SanctumKeySdkView.web.d.ts +0 -4
  83. package/build/src/SanctumKeySdkView.web.d.ts.map +0 -1
  84. package/build/src/SanctumKeySdkView.web.js.map +0 -1
  85. package/src/SanctumKeySdkView.tsx +0 -11
package/README.md CHANGED
@@ -45,7 +45,7 @@ npm install @sanctum-key/react-native-sdk --legacy-peer-deps
45
45
  Use `npx expo install` so Expo automatically resolves the correct versions for your SDK build (e.g., SDK 53 or 54):
46
46
 
47
47
  ```bash
48
- npx expo install react-native-vision-camera expo-location expo-image-manipulator react-native-svg expo-file-system
48
+ npx expo install react-native-vision-camera expo-location expo-image-manipulator react-native-svg expo-file-system expo-dev-client
49
49
  ```
50
50
 
51
51
  ### Step 3 — Install Standard NPM Dependencies
@@ -130,7 +130,7 @@ The recommended approach is to use the JSON template system to configure your KY
130
130
  ```tsx
131
131
  import React, { useState } from 'react';
132
132
  import { Alert, View, StyleSheet } from 'react-native';
133
- import { LaunchSanctumKeyKYC, VerificationState } from '@sanctum-key/react-native-sdk';
133
+ import { LaunchTransferGratisKYC, VerificationState } from '@sanctum-key/react-native-sdk';
134
134
 
135
135
  export default function App() {
136
136
  const [showKYC, setShowKYC] = useState(true);
@@ -139,7 +139,7 @@ export default function App() {
139
139
 
140
140
  return (
141
141
  <View style={styles.container}>
142
- <LaunchSanctumKeyKYC
142
+ <LaunchTransferGratisKYC
143
143
  onComplete={(data: VerificationState) => {
144
144
  Alert.alert('Success', 'KYC Verification Completed');
145
145
  setShowKYC(false);
@@ -263,7 +263,7 @@ This project is licensed under the **MIT License** — see the [LICENSE](./LICEN
263
263
 
264
264
  ## Support
265
265
 
266
- For support, email [support@SanctumKey.com](mailto:support@sanctumkey.com) or open an issue on GitHub.
266
+ For support, email [support@transfergratis.com](mailto:support@sanctumkey.com) or open an issue on GitHub.
267
267
 
268
268
 
269
269
  Built with ❤️ by the [Sanctum Key](https://service.sanctumkey.com) Team
@@ -1,6 +1,6 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
- group = 'kyc.SanctumKey.com'
3
+ group = 'kyc.transfergratis.com'
4
4
  version = '0.1.18'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -32,7 +32,7 @@ if (useManagedAndroidSdkVersions) {
32
32
  }
33
33
 
34
34
  android {
35
- namespace "kyc.SanctumKey.com"
35
+ namespace "kyc.transfergratis.com"
36
36
  defaultConfig {
37
37
  versionCode 1
38
38
  versionName "0.1.0"
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
3
  xmlns:tools="http://schemas.android.com/tools"
4
- package="kyc.SanctumKey.com">
4
+ package="kyc.transfergratis.com">
5
5
 
6
6
  <!--
7
7
  Permissions nécessaires pour KYC:
@@ -1,4 +1,4 @@
1
- package kyc.SanctumKey.com
1
+ package kyc.transfergratis.com
2
2
 
3
3
  import android.Manifest
4
4
  import android.content.pm.PackageManager
@@ -8,12 +8,12 @@ import expo.modules.kotlin.modules.Module
8
8
  import expo.modules.kotlin.modules.ModuleDefinition
9
9
  import expo.modules.kotlin.Promise
10
10
 
11
- class SanctumKeySdkModule : Module() {
11
+ class TransfergratisSdkModule : Module() {
12
12
  private val CAMERA_PERMISSION_REQUEST = 100
13
13
  private var currentPhotoPath: String? = null
14
14
 
15
15
  override fun definition() = ModuleDefinition {
16
- Name("SanctumKeySdk")
16
+ Name("TransfergratisSdk")
17
17
 
18
18
  Constants(
19
19
  "PI" to Math.PI
@@ -114,12 +114,12 @@ class SanctumKeySdkModule : Module() {
114
114
 
115
115
 
116
116
  // Vue native pour la caméra avec instructions
117
- View(SanctumKeySdkView::class) {
118
- Prop("instructions") { view: SanctumKeySdkView, instructions: String ->
117
+ View(TransfergratisSdkView::class) {
118
+ Prop("instructions") { view: TransfergratisSdkView, instructions: String ->
119
119
  view.setInstructions(instructions)
120
120
  }
121
121
 
122
- Prop("showCamera") { view: SanctumKeySdkView, show: Boolean ->
122
+ Prop("showCamera") { view: TransfergratisSdkView, show: Boolean ->
123
123
  view.showCamera(show)
124
124
  }
125
125
 
@@ -1,4 +1,4 @@
1
- package kyc.SanctumKey.com
1
+ package kyc.transfergratis.com
2
2
 
3
3
  import android.content.Context
4
4
  import android.graphics.Color
@@ -13,7 +13,7 @@ import expo.modules.kotlin.AppContext
13
13
  import expo.modules.kotlin.viewevent.EventDispatcher
14
14
  import expo.modules.kotlin.views.ExpoView
15
15
 
16
- class SanctumKeySdkView(context: Context, appContext: AppContext) : ExpoView(context, appContext) {
16
+ class TransfergratisSdkView(context: Context, appContext: AppContext) : ExpoView(context, appContext) {
17
17
  private val onCapture by EventDispatcher()
18
18
  private val onError by EventDispatcher()
19
19
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanctum-key/react-native-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Sanctum Key React Native SDK",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -25,13 +25,13 @@
25
25
  "kyc",
26
26
  "identity-verification"
27
27
  ],
28
- "repository": "https://github.com/SanctumKeyOrg/KYC-User-Frontend",
28
+ "repository": "https://github.com/TransfergratisOrg/KYC-User-Frontend",
29
29
  "bugs": {
30
- "url": "https://github.com/SanctumKeyOrg/KYC-User-Frontend/issues"
30
+ "url": "https://github.com/TransfergratisOrg/KYC-User-Frontend/issues"
31
31
  },
32
- "author": "mesha-SanctumKey <loic.lontchi@SanctumKey.com> (https://github.com/mesha-SanctumKey)",
32
+ "author": "mesha-transfergratis <loic.lontchi@transfergratis.com> (https://github.com/mesha-transfergratis)",
33
33
  "license": "MIT",
34
- "homepage": "https://github.com/SanctumKeyOrg/KYC-User-Frontend#readme",
34
+ "homepage": "https://github.com/TransfergratisOrg/KYC-User-Frontend#readme",
35
35
  "files": [
36
36
  "build",
37
37
  "src",
@@ -1,3 +1,3 @@
1
- declare const LaunchSanctumKeyKYC: () => import("react").JSX.Element;
2
- export default LaunchSanctumKeyKYC;
1
+ declare const LaunchTransferGratisKYC: () => import("react").JSX.Element;
2
+ export default LaunchTransferGratisKYC;
3
3
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,mBAAmB,mCAExB,CAAA;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,uBAAuB,mCAE5B,CAAA;AAED,eAAe,uBAAuB,CAAC"}
package/build/src/App.js CHANGED
@@ -2,8 +2,8 @@ import CameraCaptureEx from "./components/example/CameraCaptureEx";
2
2
  // import SelfieCaptureEx from "./components/example/SelfieCaptureEx";
3
3
  // import { KYCExample } from "./components/KYCExample";
4
4
  // import { KYCFlow } from "./components/KYCFlow"
5
- const LaunchSanctumKeyKYC = () => {
5
+ const LaunchTransferGratisKYC = () => {
6
6
  return <CameraCaptureEx />;
7
7
  };
8
- export default LaunchSanctumKeyKYC;
8
+ export default LaunchTransferGratisKYC;
9
9
  //# sourceMappingURL=App.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,sEAAsE;AACtE,wDAAwD;AACxD,iDAAiD;AACjD,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAC7B,OAAO,CAAC,eAAe,CAAA,EAAE,CAAA;AAC7B,CAAC,CAAA;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["import CameraCaptureEx from \"./components/example/CameraCaptureEx\";\n// import SelfieCaptureEx from \"./components/example/SelfieCaptureEx\";\n// import { KYCExample } from \"./components/KYCExample\";\n// import { KYCFlow } from \"./components/KYCFlow\"\nconst LaunchSanctumKeyKYC = () =>{\n return <CameraCaptureEx/>\n}\n\nexport default LaunchSanctumKeyKYC;"]}
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,sEAAsE;AACtE,wDAAwD;AACxD,iDAAiD;AACjD,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,eAAe,CAAA,EAAE,CAAA;AAC7B,CAAC,CAAA;AAED,eAAe,uBAAuB,CAAC","sourcesContent":["import CameraCaptureEx from \"./components/example/CameraCaptureEx\";\n// import SelfieCaptureEx from \"./components/example/SelfieCaptureEx\";\n// import { KYCExample } from \"./components/KYCExample\";\n// import { KYCFlow } from \"./components/KYCFlow\"\nconst LaunchTransferGratisKYC = () =>{\n return <CameraCaptureEx/>\n}\n\nexport default LaunchTransferGratisKYC;"]}
@@ -11,12 +11,12 @@ export type FileSelectedEventPayload = {
11
11
  export type ErrorEventPayload = {
12
12
  message: string;
13
13
  };
14
- export type SanctumKeySdkModuleEvents = {
14
+ export type TransfergratisSdkModuleEvents = {
15
15
  onCameraCapture: (params: CameraCaptureEventPayload) => void;
16
16
  onFileSelected: (params: FileSelectedEventPayload) => void;
17
17
  onError: (params: ErrorEventPayload) => void;
18
18
  };
19
- export type SanctumKeySdkViewProps = {
19
+ export type TransfergratisSdkViewProps = {
20
20
  instructions: string;
21
21
  showCamera: boolean;
22
22
  onCapture?: (event: {
@@ -29,4 +29,4 @@ export type SanctumKeySdkViewProps = {
29
29
  }) => void;
30
30
  style?: StyleProp<ViewStyle>;
31
31
  };
32
- //# sourceMappingURL=SanctumKeySdk.types.d.ts.map
32
+ //# sourceMappingURL=TransfergratisSdk.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdk.types.d.ts","sourceRoot":"","sources":["../../src/TransfergratisSdk.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,eAAe,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC3D,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,iBAAiB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TransfergratisSdk.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdk.types.js","sourceRoot":"","sources":["../../src/TransfergratisSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nexport type CameraCaptureEventPayload = {\n instructions?: string;\n status: 'opened' | 'captured';\n path?: string;\n};\n\nexport type FileSelectedEventPayload = {\n uri: string;\n path: string;\n};\n\nexport type ErrorEventPayload = {\n message: string;\n};\n\nexport type TransfergratisSdkModuleEvents = {\n onCameraCapture: (params: CameraCaptureEventPayload) => void;\n onFileSelected: (params: FileSelectedEventPayload) => void;\n onError: (params: ErrorEventPayload) => void;\n};\n\nexport type TransfergratisSdkViewProps = {\n instructions: string;\n showCamera: boolean;\n onCapture?: (event: { nativeEvent: { action: 'capture' | 'retake' } }) => void;\n onError?: (event: { nativeEvent: ErrorEventPayload }) => void;\n style?: StyleProp<ViewStyle>;\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { NativeModule } from 'expo';
2
- import { SanctumKeySdkModuleEvents } from './SanctumKeySdk.types';
3
- declare class SanctumKeySdkModule extends NativeModule<SanctumKeySdkModuleEvents> {
2
+ import { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';
3
+ declare class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {
4
4
  PI: number;
5
5
  testModule(): Promise<string>;
6
6
  requestCameraPermission(): Promise<boolean>;
@@ -16,6 +16,6 @@ declare class SanctumKeySdkModule extends NativeModule<SanctumKeySdkModuleEvents
16
16
  error?: string;
17
17
  }>;
18
18
  }
19
- declare const _default: SanctumKeySdkModule;
19
+ declare const _default: TransfergratisSdkModule;
20
20
  export default _default;
21
- //# sourceMappingURL=SanctumKeySdkModule.d.ts.map
21
+ //# sourceMappingURL=TransfergratisSdkModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkModule.d.ts","sourceRoot":"","sources":["../../src/TransfergratisSdkModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,OAAO,uBAAwB,SAAQ,YAAY,CAAC,6BAA6B,CAAC;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAC7B,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAC3C,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9G,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnH;;AAGD,wBAAiF"}
@@ -1,4 +1,4 @@
1
1
  import { requireNativeModule } from 'expo-modules-core';
2
2
  // This call loads the native module object from the JSI.
3
- export default requireNativeModule('SanctumKeySdk');
4
- //# sourceMappingURL=SanctumKeySdkModule.js.map
3
+ export default requireNativeModule('TransfergratisSdk');
4
+ //# sourceMappingURL=TransfergratisSdkModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkModule.js","sourceRoot":"","sources":["../../src/TransfergratisSdkModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAcxD,yDAAyD;AACzD,eAAe,mBAAmB,CAA0B,mBAAmB,CAAC,CAAC","sourcesContent":["import { requireNativeModule } from 'expo-modules-core';\n\nimport { NativeModule } from 'expo';\n\nimport { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';\n\ndeclare class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {\n PI: number;\n testModule(): Promise<string>;\n requestCameraPermission(): Promise<boolean>;\n openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }>;\n openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }>;\n}\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<TransfergratisSdkModule>('TransfergratisSdk');\n"]}
@@ -1,6 +1,6 @@
1
1
  import { NativeModule } from 'expo';
2
- import { SanctumKeySdkModuleEvents } from './SanctumKeySdk.types';
3
- declare class SanctumKeySdkModule extends NativeModule<SanctumKeySdkModuleEvents> {
2
+ import { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';
3
+ declare class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {
4
4
  PI: number;
5
5
  requestCameraPermission(): Promise<boolean>;
6
6
  openCameraWithInstructions(instructions: string): Promise<{
@@ -15,6 +15,6 @@ declare class SanctumKeySdkModule extends NativeModule<SanctumKeySdkModuleEvents
15
15
  error?: string;
16
16
  }>;
17
17
  }
18
- declare const _default: typeof SanctumKeySdkModule;
18
+ declare const _default: typeof TransfergratisSdkModule;
19
19
  export default _default;
20
- //# sourceMappingURL=SanctumKeySdkModule.web.d.ts.map
20
+ //# sourceMappingURL=TransfergratisSdkModule.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkModule.web.d.ts","sourceRoot":"","sources":["../../src/TransfergratisSdkModule.web.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E,cAAM,uBAAwB,SAAQ,YAAY,CAAC,6BAA6B,CAAC;IAC/E,EAAE,SAAW;IAEP,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAK3C,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ9G,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAOzH;;AAED,wBAAqF"}
@@ -1,6 +1,6 @@
1
1
  import { registerWebModule } from 'expo-modules-core';
2
2
  import { NativeModule } from 'expo';
3
- class SanctumKeySdkModule extends NativeModule {
3
+ class TransfergratisSdkModule extends NativeModule {
4
4
  PI = Math.PI;
5
5
  async requestCameraPermission() {
6
6
  console.warn('Camera permission not available on web');
@@ -21,5 +21,5 @@ class SanctumKeySdkModule extends NativeModule {
21
21
  };
22
22
  }
23
23
  }
24
- export default registerWebModule(SanctumKeySdkModule, 'SanctumKeySdkModule');
25
- //# sourceMappingURL=SanctumKeySdkModule.web.js.map
24
+ export default registerWebModule(TransfergratisSdkModule, 'TransfergratisSdkModule');
25
+ //# sourceMappingURL=TransfergratisSdkModule.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkModule.web.js","sourceRoot":"","sources":["../../src/TransfergratisSdkModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,MAAM,uBAAwB,SAAQ,YAA2C;IAC/E,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;IAEb,KAAK,CAAC,uBAAuB;QAC3B,OAAO,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;QACvD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,YAAoB;QACnD,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAC5C,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,sCAAsC;SAC9C,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,YAAsB;QACzC,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACjD,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,2CAA2C;SACnD,CAAC;IACJ,CAAC;CACF;AAED,eAAe,iBAAiB,CAAC,uBAAuB,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import { registerWebModule } from 'expo-modules-core';\nimport { NativeModule } from 'expo';\n\nimport { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';\n\nclass TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {\n PI = Math.PI;\n \n async requestCameraPermission(): Promise<boolean> {\n console.warn('Camera permission not available on web');\n return false;\n }\n \n async openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }> {\n console.warn('Camera not available on web');\n return {\n success: false,\n error: 'Camera not available on web platform'\n };\n }\n \n async openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }> {\n console.warn('File picker not available on web');\n return {\n success: false,\n error: 'File picker not available on web platform'\n };\n }\n}\n\nexport default registerWebModule(TransfergratisSdkModule, 'TransfergratisSdkModule');\n"]}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TransfergratisSdkViewProps } from './TransfergratisSdk.types';
3
+ export default function TransfergratisSdkView(props: TransfergratisSdkViewProps): React.JSX.Element;
4
+ //# sourceMappingURL=TransfergratisSdkView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkView.d.ts","sourceRoot":"","sources":["../../src/TransfergratisSdkView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAKvE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAE9E"}
@@ -0,0 +1,7 @@
1
+ import { requireNativeView } from 'expo';
2
+ import * as React from 'react';
3
+ const NativeView = requireNativeView('TransfergratisSdk');
4
+ export default function TransfergratisSdkView(props) {
5
+ return <NativeView {...props}/>;
6
+ }
7
+ //# sourceMappingURL=TransfergratisSdkView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkView.js","sourceRoot":"","sources":["../../src/TransfergratisSdkView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,UAAU,GACd,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAiC;IAC7E,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnC,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\nimport * as React from 'react';\n\nimport { TransfergratisSdkViewProps } from './TransfergratisSdk.types';\n\nconst NativeView: React.ComponentType<TransfergratisSdkViewProps> =\n requireNativeView('TransfergratisSdk');\n\nexport default function TransfergratisSdkView(props: TransfergratisSdkViewProps) {\n return <NativeView {...props} />;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TransfergratisSdkViewProps } from './TransfergratisSdk.types';
3
+ export default function TransfergratisSdkView(props: TransfergratisSdkViewProps): React.JSX.Element;
4
+ //# sourceMappingURL=TransfergratisSdkView.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkView.web.d.ts","sourceRoot":"","sources":["../../src/TransfergratisSdkView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAU9E"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export default function SanctumKeySdkView(props) {
2
+ export default function TransfergratisSdkView(props) {
3
3
  return (<div>
4
4
  {/* <iframe
5
5
  style={{ flex: 1 }}
@@ -8,4 +8,4 @@ export default function SanctumKeySdkView(props) {
8
8
  /> */}
9
9
  </div>);
10
10
  }
11
- //# sourceMappingURL=SanctumKeySdkView.web.js.map
11
+ //# sourceMappingURL=TransfergratisSdkView.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransfergratisSdkView.web.js","sourceRoot":"","sources":["../../src/TransfergratisSdkView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAiC;IAC7E,OAAO,CACL,CAAC,GAAG,CACF;MAAA,CAAC;;;;aAII,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport { TransfergratisSdkViewProps } from './TransfergratisSdk.types';\n\nexport default function TransfergratisSdkView(props: TransfergratisSdkViewProps) {\n return (\n <div>\n {/* <iframe\n style={{ flex: 1 }}\n src={props.url}\n onLoad={() => props.onLoad({ nativeEvent: { url: props.url } })}\n /> */}\n </div>\n );\n}\n"]}
@@ -81,12 +81,12 @@ export class HttpClient {
81
81
  export default HttpClient;
82
82
  // ml service api
83
83
  export const mlService = new HttpClient({
84
- baseURL: 'https://api.ml.SanctumKey.com',
84
+ baseURL: 'https://api.ml.transfergratis.com',
85
85
  apiKey: 'your-api-key',
86
86
  });
87
87
  // backedn service api
88
88
  export const backendService = new HttpClient({
89
- baseURL: 'https://api.backend.SanctumKey.com',
89
+ baseURL: 'https://api.backend.transfergratis.com',
90
90
  apiKey: 'your-api-key',
91
91
  });
92
92
  //# sourceMappingURL=axios.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"axios.js","sourceRoot":"","sources":["../../../src/api/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAef,MAAM,OAAO,UAAU;IACX,QAAQ,CAAgB;IACxB,MAAM,CAAU;IAChB,SAAS,CAAU;IAE3B,YAAY,aAA+B;QACvC,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;YACzB,OAAO,EAAE,aAAa,CAAC,OAAO;YAC9B,OAAO,EAAE,aAAa,CAAC,SAAS,IAAI,KAAK;YACzC,OAAO,EAAE;gBACL,MAAM,EAAE,kBAAkB;gBAC1B,cAAc,EAAE,kBAAkB;aACrC;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAClC,CAAC,OAAmC,EAAE,EAAE;YACpC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;YACtC,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,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AAa,CAAC,CAAC;QAC9D,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;CACJ;AAED,eAAe,UAAU,CAAC;AAG1B,iBAAiB;AACjB,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC;IACpC,OAAO,EAAE,+BAA+B;IACxC,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC;AACH,sBAAsB;AACtB,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC;IACzC,OAAO,EAAE,oCAAoC;IAC7C,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC","sourcesContent":["import axios, {\n AxiosInstance,\n AxiosRequestConfig,\n InternalAxiosRequestConfig,\n AxiosResponse,\n} from 'axios';\n\nexport type ApiConfiguration = {\n baseURL: string;\n apiKey?: string;\n authToken?: string;\n timeoutMs?: number;\n};\n\nexport type ApiErrorData = {\n message?: string;\n code?: string | number;\n details?: unknown;\n};\n\nexport class HttpClient {\n private instance: AxiosInstance;\n private apiKey?: string;\n private authToken?: string;\n\n constructor(configuration: ApiConfiguration) {\n this.apiKey = configuration.apiKey;\n this.authToken = configuration.authToken;\n this.instance = axios.create({\n baseURL: configuration.baseURL,\n timeout: configuration.timeoutMs ?? 15000,\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n });\n\n this.instance.interceptors.request.use(\n (request: InternalAxiosRequestConfig) => {\n const headers = request.headers ?? {};\n if (this.apiKey && !headers['x-api-key']) {\n headers['x-api-key'] = this.apiKey;\n }\n if (this.authToken && !headers.Authorization) {\n headers.Authorization = `Bearer ${this.authToken}`;\n }\n request.headers = headers;\n return request;\n },\n (error) => Promise.reject(error)\n );\n\n this.instance.interceptors.response.use(\n (response: AxiosResponse) => response,\n (error) => {\n if (!error.response) {\n return Promise.reject({\n message: 'Network error. Please check your connection.',\n code: 'network_error',\n details: error?.message,\n } as ApiErrorData);\n }\n const { status, data } = error.response as AxiosResponse<ApiErrorData>;\n if (status === 401) {\n return Promise.reject({\n message: data?.message || 'Unauthorized',\n code: 401,\n details: data,\n } as ApiErrorData);\n }\n return Promise.reject({\n message: data?.message || 'Request failed',\n code: status,\n details: data,\n } as ApiErrorData);\n }\n );\n }\n\n setAuthToken(token?: string): void {\n this.authToken = token;\n }\n\n setApiKey(key?: string): void {\n this.apiKey = key;\n }\n\n setBaseURL(url: string): void {\n this.instance.defaults.baseURL = url;\n }\n\n async get<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.get<T>(url, requestConfig);\n return res.data as T;\n }\n\n async post<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.post<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async put<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.put<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async patch<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.patch<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async delete<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.delete<T>(url, requestConfig);\n return res.data as T;\n }\n}\n\nexport default HttpClient;\n\n\n// ml service api\nexport const mlService = new HttpClient({\n baseURL: 'https://api.ml.SanctumKey.com',\n apiKey: 'your-api-key',\n});\n// backedn service api\nexport const backendService = new HttpClient({\n baseURL: 'https://api.backend.SanctumKey.com',\n apiKey: 'your-api-key',\n});\n\n\n"]}
1
+ {"version":3,"file":"axios.js","sourceRoot":"","sources":["../../../src/api/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAef,MAAM,OAAO,UAAU;IACX,QAAQ,CAAgB;IACxB,MAAM,CAAU;IAChB,SAAS,CAAU;IAE3B,YAAY,aAA+B;QACvC,IAAI,CAAC,MAAM,G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,EACR,aAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAI,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QACjE,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,KAAK,CACP,GAAW,EACX,IAAQ,EACR,aAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAI,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QACnE,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAc,GAAW,EAAE,aAAkC;QACrE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAI,GAAG,EAAE,aAAa,CAAC,CAAC;QAC9D,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;CACJ;AAED,eAAe,UAAU,CAAC;AAG1B,iBAAiB;AACjB,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC;IACpC,OAAO,EAAE,mCAAmC;IAC5C,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC;AACH,sBAAsB;AACtB,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC;IACzC,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC","sourcesContent":["import axios, {\n AxiosInstance,\n AxiosRequestConfig,\n InternalAxiosRequestConfig,\n AxiosResponse,\n} from 'axios';\n\nexport type ApiConfiguration = {\n baseURL: string;\n apiKey?: string;\n authToken?: string;\n timeoutMs?: number;\n};\n\nexport type ApiErrorData = {\n message?: string;\n code?: string | number;\n details?: unknown;\n};\n\nexport class HttpClient {\n private instance: AxiosInstance;\n private apiKey?: string;\n private authToken?: string;\n\n constructor(configuration: ApiConfiguration) {\n this.apiKey = configuration.apiKey;\n this.authToken = configuration.authToken;\n this.instance = axios.create({\n baseURL: configuration.baseURL,\n timeout: configuration.timeoutMs ?? 15000,\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n });\n\n this.instance.interceptors.request.use(\n (request: InternalAxiosRequestConfig) => {\n const headers = request.headers ?? {};\n if (this.apiKey && !headers['x-api-key']) {\n headers['x-api-key'] = this.apiKey;\n }\n if (this.authToken && !headers.Authorization) {\n headers.Authorization = `Bearer ${this.authToken}`;\n }\n request.headers = headers;\n return request;\n },\n (error) => Promise.reject(error)\n );\n\n this.instance.interceptors.response.use(\n (response: AxiosResponse) => response,\n (error) => {\n if (!error.response) {\n return Promise.reject({\n message: 'Network error. Please check your connection.',\n code: 'network_error',\n details: error?.message,\n } as ApiErrorData);\n }\n const { status, data } = error.response as AxiosResponse<ApiErrorData>;\n if (status === 401) {\n return Promise.reject({\n message: data?.message || 'Unauthorized',\n code: 401,\n details: data,\n } as ApiErrorData);\n }\n return Promise.reject({\n message: data?.message || 'Request failed',\n code: status,\n details: data,\n } as ApiErrorData);\n }\n );\n }\n\n setAuthToken(token?: string): void {\n this.authToken = token;\n }\n\n setApiKey(key?: string): void {\n this.apiKey = key;\n }\n\n setBaseURL(url: string): void {\n this.instance.defaults.baseURL = url;\n }\n\n async get<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.get<T>(url, requestConfig);\n return res.data as T;\n }\n\n async post<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.post<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async put<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.put<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async patch<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.patch<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async delete<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.delete<T>(url, requestConfig);\n return res.data as T;\n }\n}\n\nexport default HttpClient;\n\n\n// ml service api\nexport const mlService = new HttpClient({\n baseURL: 'https://api.ml.transfergratis.com',\n apiKey: 'your-api-key',\n});\n// backedn service api\nexport const backendService = new HttpClient({\n baseURL: 'https://api.backend.transfergratis.com',\n apiKey: 'your-api-key',\n});\n\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneVerificationTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/PhoneVerificationTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAiB,MAAM,uBAAuB,CAAC;AAMzE,UAAU,8BAA8B;IACpC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAkBD,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAsR9E,CAAC"}
1
+ {"version":3,"file":"PhoneVerificationTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/PhoneVerificationTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAiB,MAAM,uBAAuB,CAAC;AAMzE,UAAU,8BAA8B;IACpC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAKD,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAuN9E,CAAC"}