vialink-react-native-sdk 2.1.5 → 2.1.7

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 (24) hide show
  1. package/android/libs/vialink-sdk.aar +0 -0
  2. package/dist/index.js +1 -1
  3. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  4. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.abi.json +4 -4
  5. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.package.swiftinterface +1 -1
  6. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
  7. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  8. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
  9. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/ViaLinkCore +0 -0
  10. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  11. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  12. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.abi.json +4 -4
  13. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +1 -1
  14. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
  15. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  16. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
  17. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +4 -4
  18. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +1 -1
  19. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
  20. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  21. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
  22. package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/ViaLinkCore +0 -0
  23. package/package.json +1 -1
  24. package/vialink-react-native-sdk.podspec +1 -1
Binary file
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var reactNative=require('react-native');var {ViaLinkSDK:n}=reactNative.NativeModules,i=new reactNative.NativeEventEmitter(n),m=/^[A-Za-z0-9_-]{1,100}$/,r=class a{constructor(){this.payment={initiated:async e=>{if(!e||typeof e!="object")throw new Error("args\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");if(typeof e.orderId!="string"||!m.test(e.orderId))throw new Error("order_id \uD615\uC2DD\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (1~100\uC790, \uC601\uBB38/\uC22B\uC790/\uD558\uC774\uD508/\uC5B8\uB354\uC2A4\uCF54\uC5B4).");if(typeof e.amount!="number"||!Number.isFinite(e.amount)||e.amount<=0)throw new Error("amount\uB294 0\uBCF4\uB2E4 \uD070 \uC22B\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4.");if(typeof e.currency!="string"||e.currency.trim().length===0)throw new Error("currency\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");let t=await n.paymentInitiated({orderId:e.orderId,amount:e.amount,currency:e.currency.trim().toUpperCase(),linkId:e.linkId??null,paymentMethod:e.paymentMethod??null,metadata:e.metadata??null});return {success:!!t?.success,paymentEventId:String(t?.paymentEventId??"")}}};}static get shared(){return this._instance||(this._instance=new a),this._instance}async configure(e){await n.configure(e);}onDeepLink(e){this.deepLinkSub?.remove(),this.deepLinkSub=i.addListener("onDeepLink",e);}onDeferredDeepLink(e){this.deferredSub?.remove(),this.deferredSub=i.addListener("onDeferredDeepLink",e);}track(e,t){n.track(e,t??null);}async createLink(e,t,o,d="dynamic"){return n.createLink(e,t??null,o??null,d)}destroy(){this.deepLinkSub?.remove(),this.deferredSub?.remove();}};exports.ViaLinkSDK=r;
1
+ 'use strict';var reactNative=require('react-native');var {ViaLinkSDK:n}=reactNative.NativeModules,i=new reactNative.NativeEventEmitter(n),u=/^[A-Za-z0-9_-]{1,100}$/,r=class a{constructor(){this.payment={initiated:async e=>{if(!e||typeof e!="object")throw new Error("args\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");if(typeof e.orderId!="string"||!u.test(e.orderId))throw new Error("order_id \uD615\uC2DD\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (1~100\uC790, \uC601\uBB38/\uC22B\uC790/\uD558\uC774\uD508/\uC5B8\uB354\uC2A4\uCF54\uC5B4).");if(typeof e.amount!="number"||!Number.isFinite(e.amount)||e.amount<=0)throw new Error("amount\uB294 0\uBCF4\uB2E4 \uD070 \uC22B\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4.");if(typeof e.currency!="string"||e.currency.trim().length===0)throw new Error("currency\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");let t=await n.paymentInitiated({orderId:e.orderId,amount:e.amount,currency:e.currency.trim().toUpperCase(),linkId:e.linkId??null,paymentMethod:e.paymentMethod??null,metadata:e.metadata??null});return {success:!!t?.success,paymentEventId:String(t?.paymentEventId??"")}}};}static get shared(){return this._instance||(this._instance=new a),this._instance}async configure(e){await n.configure(e);}onDeepLink(e){this.deepLinkSub?.remove(),this.deepLinkSub=i.addListener("onDeepLink",e);}onDeferredDeepLink(e){this.deferredSub?.remove(),this.deferredSub=i.addListener("onDeferredDeepLink",e);}track(e,t){n.track(e,t??null);}async createLink(e,t,o,d="static"){return n.createLink(e,t??null,o??null,d)}destroy(){this.deepLinkSub?.remove(),this.deferredSub?.remove();}};exports.ViaLinkSDK=r;
@@ -2477,14 +2477,14 @@
2477
2477
  {
2478
2478
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2479
2479
  "kind": "StringLiteral",
2480
- "offset": 9395,
2481
- "length": 9,
2482
- "value": "\"dynamic\""
2480
+ "offset": 9348,
2481
+ "length": 8,
2482
+ "value": "\"static\""
2483
2483
  },
2484
2484
  {
2485
2485
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2486
2486
  "kind": "StringLiteral",
2487
- "offset": 11826,
2487
+ "offset": 11778,
2488
2488
  "length": 26,
2489
2489
  "value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
2490
2490
  }
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -2477,14 +2477,14 @@
2477
2477
  {
2478
2478
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2479
2479
  "kind": "StringLiteral",
2480
- "offset": 9395,
2481
- "length": 9,
2482
- "value": "\"dynamic\""
2480
+ "offset": 9348,
2481
+ "length": 8,
2482
+ "value": "\"static\""
2483
2483
  },
2484
2484
  {
2485
2485
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2486
2486
  "kind": "StringLiteral",
2487
- "offset": 11826,
2487
+ "offset": 11778,
2488
2488
  "length": 26,
2489
2489
  "value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
2490
2490
  }
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -2477,14 +2477,14 @@
2477
2477
  {
2478
2478
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2479
2479
  "kind": "StringLiteral",
2480
- "offset": 9395,
2481
- "length": 9,
2482
- "value": "\"dynamic\""
2480
+ "offset": 9348,
2481
+ "length": 8,
2482
+ "value": "\"static\""
2483
2483
  },
2484
2484
  {
2485
2485
  "filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
2486
2486
  "kind": "StringLiteral",
2487
- "offset": 11826,
2487
+ "offset": 11778,
2488
2488
  "length": 26,
2489
2489
  "value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
2490
2490
  }
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
55
55
  @discardableResult
56
56
  final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
57
57
  final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
58
- final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "dynamic") async throws -> Swift.String
58
+ final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
59
59
  public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
60
60
  case notConfigured
61
61
  case invalidResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vialink-react-native-sdk",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "ViaLink 딥링크 SDK for React Native (네이티브 브릿지)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "vialink-react-native-sdk"
3
- s.version = "2.1.5"
3
+ s.version = "2.1.7"
4
4
  s.summary = "ViaLink Deep Link SDK for React Native"
5
5
  s.homepage = "https://vialink.app"
6
6
  s.license = "MIT"