api-gateway-react-native 1.0.0 → 2.0.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 (14) hide show
  1. package/android/libs/apiGateway-release.aar +0 -0
  2. package/ios/TNApiGetwaySDK.xcframework/Info.plist +5 -5
  3. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Headers/TNApiGatewayCrypto.h +12 -24
  4. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Info.plist +0 -0
  5. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.abi.json +12 -2
  6. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/TNApiGetwaySDK +0 -0
  7. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/_CodeSignature/CodeResources +7 -7
  8. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Headers/TNApiGatewayCrypto.h +12 -24
  9. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Info.plist +0 -0
  10. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json +12 -2
  11. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +12 -2
  12. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/TNApiGetwaySDK +0 -0
  13. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/_CodeSignature/CodeResources +11 -11
  14. package/package.json +1 -1
Binary file
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>TNApiGetwaySDK.framework/TNApiGetwaySDK</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>TNApiGetwaySDK.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>TNApiGetwaySDK.framework/TNApiGetwaySDK</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>TNApiGetwaySDK.framework</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -1,33 +1,21 @@
1
- //
2
- // TNApiGatewayCrypto.h
3
- // TNMapSDK
4
- //
5
-
6
1
  #import <Foundation/Foundation.h>
7
2
 
8
3
  NS_ASSUME_NONNULL_BEGIN
9
4
 
10
5
  @interface TNApiGatewayCrypto : NSObject
11
6
 
12
- /// Equivalent to nativeGenerateAESKey()
13
- + (NSString *)generateAESKey;
14
-
15
- /// Equivalent to nativeMethod()
16
- + (NSDictionary<NSString *, NSString *> *)encryptPayloadForHeaders:(NSString *)jsonString
17
- publicKeyPEM:(NSString *)publicKeyPEM
18
- dataIdentity:(NSString *)dataIdentity
19
- clientIdentity:(NSString *)clientIdentity;
20
-
21
- /// Equivalent to nativeDataIdentityMethod()
22
- + (NSString *)encryptAESKey:(NSString *)aesKeyBase64
23
- publicKeyPEM:(NSString *)publicKeyPEM;
24
-
25
- /// Equivalent to nativeClientIdentityMethod()
26
- + (NSString *)encryptClientPayload:(NSString *)jsonString
27
- aesKeyBase64:(NSString *)aesKeyBase64;
28
-
29
- /// Equivalent to nativeGetServerTime()
30
- + (NSTimeInterval)fetchServerTime;
7
+ + (NSArray<NSString *> *)tnGenerateECDHKeypair;
8
+ + (NSString *)tnGenerateAESKeyWithServerPublicKey:(NSString *)serverPublicKey
9
+ clientPrivateKey:(NSString *)clientPrivateKey;
10
+ + (NSString *)tnEncryptClientIdentity:(NSString *)payloadJson
11
+ aesKeyBase64:(NSString *)aesKeyB64;
12
+ + (NSString *)tnEncryptAESKey:(NSString *)aesKeyBase64
13
+ publicKeyPEM:(NSString *)serverPublicKey;
14
+ + (int64_t)tnGetServerTime;
15
+
16
+ // Add these
17
+ + (NSString *)base64Encode:(NSString *)input;
18
+ + (NSString *)base64EncodeData:(NSData *)data;
31
19
 
32
20
  @end
33
21
 
@@ -339,6 +339,16 @@
339
339
  }
340
340
  ]
341
341
  },
342
+ {
343
+ "kind": "Import",
344
+ "name": "Foundation",
345
+ "printedName": "Foundation",
346
+ "declKind": "Import",
347
+ "moduleName": "TNApiGetwaySDK",
348
+ "declAttributes": [
349
+ "RawDocComment"
350
+ ]
351
+ },
342
352
  {
343
353
  "kind": "Import",
344
354
  "name": "Foundation",
@@ -1328,8 +1338,8 @@
1328
1338
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/Config.swift",
1329
1339
  "kind": "BooleanLiteral",
1330
1340
  "offset": 213,
1331
- "length": 4,
1332
- "value": "true"
1341
+ "length": 5,
1342
+ "value": "false"
1333
1343
  },
1334
1344
  {
1335
1345
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/EncryptionCache.swift",
@@ -10,7 +10,7 @@
10
10
  </data>
11
11
  <key>Headers/TNApiGatewayCrypto.h</key>
12
12
  <data>
13
- 0f15dSbkHIkr4Ofj8MWfESQtcdM=
13
+ RKWRtfupzFqmOExlgERAivlwiQk=
14
14
  </data>
15
15
  <key>Headers/TNApiGetwaySDK.h</key>
16
16
  <data>
@@ -18,11 +18,11 @@
18
18
  </data>
19
19
  <key>Info.plist</key>
20
20
  <data>
21
- 59Hcqv6c8oTA/1yvY/KeYTUqBvQ=
21
+ R3pBnMrKGriB0/eMMc7GdUR74vk=
22
22
  </data>
23
23
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.abi.json</key>
24
24
  <data>
25
- gRILf2Jn5xocP5QMiLmySfHrWrE=
25
+ OyDT6Ws6I57uUlXutI6+xq3GEUc=
26
26
  </data>
27
27
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
28
28
  <data>
@@ -38,7 +38,7 @@
38
38
  </data>
39
39
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
40
40
  <data>
41
- ZnwFDs93Ea9R03De6blM9HH33hM=
41
+ V7H6+tRNAtulXJm/SNkIYT2FXEw=
42
42
  </data>
43
43
  <key>Modules/module.modulemap</key>
44
44
  <data>
@@ -58,7 +58,7 @@
58
58
  <dict>
59
59
  <key>hash2</key>
60
60
  <data>
61
- cjOuGHuFEHIi6GBfAkeKPT9CmYOxSaIvDPXZ3Op1h9M=
61
+ PYtMLHutitjnQ+dA7KVHwzaVCHcOI23u5StI1hMHuak=
62
62
  </data>
63
63
  </dict>
64
64
  <key>Headers/TNApiGetwaySDK.h</key>
@@ -72,7 +72,7 @@
72
72
  <dict>
73
73
  <key>hash2</key>
74
74
  <data>
75
- LiKI+WFYyLwa8ZeCw7c05j38J5WE1loF3XxlguqD5fs=
75
+ kRhtERXyvExzeWGowARbA3KOqE6qD2Z4cUjfluMXmwA=
76
76
  </data>
77
77
  </dict>
78
78
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
@@ -100,7 +100,7 @@
100
100
  <dict>
101
101
  <key>hash2</key>
102
102
  <data>
103
- Ja5TytcXSgDY8NKeTDDUVvH4ABCIIj5cDvSrNxc/9nI=
103
+ lqggZJICV5jfWuMzfL3+Ll7w+6BnJt61FAzIfeyrDAo=
104
104
  </data>
105
105
  </dict>
106
106
  <key>Modules/module.modulemap</key>
@@ -1,33 +1,21 @@
1
- //
2
- // TNApiGatewayCrypto.h
3
- // TNMapSDK
4
- //
5
-
6
1
  #import <Foundation/Foundation.h>
7
2
 
8
3
  NS_ASSUME_NONNULL_BEGIN
9
4
 
10
5
  @interface TNApiGatewayCrypto : NSObject
11
6
 
12
- /// Equivalent to nativeGenerateAESKey()
13
- + (NSString *)generateAESKey;
14
-
15
- /// Equivalent to nativeMethod()
16
- + (NSDictionary<NSString *, NSString *> *)encryptPayloadForHeaders:(NSString *)jsonString
17
- publicKeyPEM:(NSString *)publicKeyPEM
18
- dataIdentity:(NSString *)dataIdentity
19
- clientIdentity:(NSString *)clientIdentity;
20
-
21
- /// Equivalent to nativeDataIdentityMethod()
22
- + (NSString *)encryptAESKey:(NSString *)aesKeyBase64
23
- publicKeyPEM:(NSString *)publicKeyPEM;
24
-
25
- /// Equivalent to nativeClientIdentityMethod()
26
- + (NSString *)encryptClientPayload:(NSString *)jsonString
27
- aesKeyBase64:(NSString *)aesKeyBase64;
28
-
29
- /// Equivalent to nativeGetServerTime()
30
- + (NSTimeInterval)fetchServerTime;
7
+ + (NSArray<NSString *> *)tnGenerateECDHKeypair;
8
+ + (NSString *)tnGenerateAESKeyWithServerPublicKey:(NSString *)serverPublicKey
9
+ clientPrivateKey:(NSString *)clientPrivateKey;
10
+ + (NSString *)tnEncryptClientIdentity:(NSString *)payloadJson
11
+ aesKeyBase64:(NSString *)aesKeyB64;
12
+ + (NSString *)tnEncryptAESKey:(NSString *)aesKeyBase64
13
+ publicKeyPEM:(NSString *)serverPublicKey;
14
+ + (int64_t)tnGetServerTime;
15
+
16
+ // Add these
17
+ + (NSString *)base64Encode:(NSString *)input;
18
+ + (NSString *)base64EncodeData:(NSData *)data;
31
19
 
32
20
  @end
33
21
 
@@ -339,6 +339,16 @@
339
339
  }
340
340
  ]
341
341
  },
342
+ {
343
+ "kind": "Import",
344
+ "name": "Foundation",
345
+ "printedName": "Foundation",
346
+ "declKind": "Import",
347
+ "moduleName": "TNApiGetwaySDK",
348
+ "declAttributes": [
349
+ "RawDocComment"
350
+ ]
351
+ },
342
352
  {
343
353
  "kind": "Import",
344
354
  "name": "Foundation",
@@ -1328,8 +1338,8 @@
1328
1338
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/Config.swift",
1329
1339
  "kind": "BooleanLiteral",
1330
1340
  "offset": 213,
1331
- "length": 4,
1332
- "value": "true"
1341
+ "length": 5,
1342
+ "value": "false"
1333
1343
  },
1334
1344
  {
1335
1345
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/EncryptionCache.swift",
@@ -339,6 +339,16 @@
339
339
  }
340
340
  ]
341
341
  },
342
+ {
343
+ "kind": "Import",
344
+ "name": "Foundation",
345
+ "printedName": "Foundation",
346
+ "declKind": "Import",
347
+ "moduleName": "TNApiGetwaySDK",
348
+ "declAttributes": [
349
+ "RawDocComment"
350
+ ]
351
+ },
342
352
  {
343
353
  "kind": "Import",
344
354
  "name": "Foundation",
@@ -1328,8 +1338,8 @@
1328
1338
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/Config.swift",
1329
1339
  "kind": "BooleanLiteral",
1330
1340
  "offset": 213,
1331
- "length": 4,
1332
- "value": "true"
1341
+ "length": 5,
1342
+ "value": "false"
1333
1343
  },
1334
1344
  {
1335
1345
  "filePath": "\/Users\/technonext\/tn\/vcs\/api-gatway-ios-library \/TNApiGetwaySDK\/EncryptionCache.swift",
@@ -10,7 +10,7 @@
10
10
  </data>
11
11
  <key>Headers/TNApiGatewayCrypto.h</key>
12
12
  <data>
13
- 0f15dSbkHIkr4Ofj8MWfESQtcdM=
13
+ RKWRtfupzFqmOExlgERAivlwiQk=
14
14
  </data>
15
15
  <key>Headers/TNApiGetwaySDK.h</key>
16
16
  <data>
@@ -18,11 +18,11 @@
18
18
  </data>
19
19
  <key>Info.plist</key>
20
20
  <data>
21
- fqlC2GoUiC4stUiXo0ZGohr+b0w=
21
+ TFub76JQblJan1RVel6n/0YBvBU=
22
22
  </data>
23
23
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
24
24
  <data>
25
- gRILf2Jn5xocP5QMiLmySfHrWrE=
25
+ OyDT6Ws6I57uUlXutI6+xq3GEUc=
26
26
  </data>
27
27
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
28
28
  <data>
@@ -38,11 +38,11 @@
38
38
  </data>
39
39
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
40
40
  <data>
41
- k23JbQP1KOZM96Cpv0qvZQl+Cvo=
41
+ eKTk6BIJT6aMt+Yu/4cef1Y59IY=
42
42
  </data>
43
43
  <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
44
44
  <data>
45
- gRILf2Jn5xocP5QMiLmySfHrWrE=
45
+ OyDT6Ws6I57uUlXutI6+xq3GEUc=
46
46
  </data>
47
47
  <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
48
48
  <data>
@@ -58,7 +58,7 @@
58
58
  </data>
59
59
  <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
60
60
  <data>
61
- iup0C5kfQbBBeFhb4jX9E9pRgHI=
61
+ xQ7g3ny7NFw/G/7CNyK8GK9nGFQ=
62
62
  </data>
63
63
  <key>Modules/module.modulemap</key>
64
64
  <data>
@@ -78,7 +78,7 @@
78
78
  <dict>
79
79
  <key>hash2</key>
80
80
  <data>
81
- cjOuGHuFEHIi6GBfAkeKPT9CmYOxSaIvDPXZ3Op1h9M=
81
+ PYtMLHutitjnQ+dA7KVHwzaVCHcOI23u5StI1hMHuak=
82
82
  </data>
83
83
  </dict>
84
84
  <key>Headers/TNApiGetwaySDK.h</key>
@@ -92,7 +92,7 @@
92
92
  <dict>
93
93
  <key>hash2</key>
94
94
  <data>
95
- LiKI+WFYyLwa8ZeCw7c05j38J5WE1loF3XxlguqD5fs=
95
+ kRhtERXyvExzeWGowARbA3KOqE6qD2Z4cUjfluMXmwA=
96
96
  </data>
97
97
  </dict>
98
98
  <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
@@ -120,14 +120,14 @@
120
120
  <dict>
121
121
  <key>hash2</key>
122
122
  <data>
123
- kLnATEQlpHIkaNvT3emPbOSUuV1rZ+gez+PoGh/3oP4=
123
+ ADvsVBcsw2vVtwf2U1rxn5gHPR++gkGQLaCIG+pNpB4=
124
124
  </data>
125
125
  </dict>
126
126
  <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
127
127
  <dict>
128
128
  <key>hash2</key>
129
129
  <data>
130
- LiKI+WFYyLwa8ZeCw7c05j38J5WE1loF3XxlguqD5fs=
130
+ kRhtERXyvExzeWGowARbA3KOqE6qD2Z4cUjfluMXmwA=
131
131
  </data>
132
132
  </dict>
133
133
  <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
@@ -155,7 +155,7 @@
155
155
  <dict>
156
156
  <key>hash2</key>
157
157
  <data>
158
- dY04BH3gVgNo0L0gBPOk+7zJzquTffh7Kt7q+kRVztY=
158
+ ltiKs6rnrXp4y+XzNdOuJct/wWhjF+NNwUBXzhooahU=
159
159
  </data>
160
160
  </dict>
161
161
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-gateway-react-native",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "api-gatway-react-native-sdk",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",