@usesophi/sophi-event-react-native 0.0.0-stage → 0.0.1-alpha01
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.
- package/LICENSE +4 -0
- package/README.md +116 -2
- package/SophiEventSDK-ReactNative.podspec +23 -0
- package/android/build.gradle +39 -0
- package/android/consumer-rules.pro +1 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/sophi/eventreactnative/SophiEventsModule.kt +199 -0
- package/android/src/main/java/com/sophi/eventreactnative/SophiEventsPackage.kt +11 -0
- package/index.ts +4 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/Info.plist +44 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Headers/SophiEventSDK-Swift.h +382 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios.abi.json +21707 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/PrivacyInfo.xcprivacy +153 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64/SophiEventSDK.framework/SophiEventSDK +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Headers/SophiEventSDK-Swift.h +760 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +21707 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +21707 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/SophiEventSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +413 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/PrivacyInfo.xcprivacy +153 -0
- package/ios/Frameworks/SophiEventSDK.xcframework/ios-arm64_x86_64-simulator/SophiEventSDK.framework/SophiEventSDK +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/Info.plist +44 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Headers/SophiIdentity-Swift.h +382 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Info.plist +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios.abi.json +6314 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios.private.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/PrivacyInfo.xcprivacy +50 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64/SophiIdentity.framework/SophiIdentity +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Headers/SophiIdentity-Swift.h +760 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Info.plist +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios-simulator.abi.json +6314 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/arm64-apple-ios-simulator.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/x86_64-apple-ios-simulator.abi.json +6314 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/SophiIdentity.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +170 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/PrivacyInfo.xcprivacy +50 -0
- package/ios/Frameworks/SophiIdentity.xcframework/ios-arm64_x86_64-simulator/SophiIdentity.framework/SophiIdentity +0 -0
- package/ios/SophiEventsModule.m +54 -0
- package/ios/SophiEventsModuleImpl.swift +178 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +10 -0
- package/lib/src/SophiEvents.d.ts +3 -0
- package/lib/src/SophiEvents.js +11 -0
- package/lib/src/client.d.ts +60 -0
- package/lib/src/client.js +151 -0
- package/lib/src/types.d.ts +204 -0
- package/lib/src/types.js +3 -0
- package/lib/src/wire.d.ts +10 -0
- package/lib/src/wire.js +191 -0
- package/native-versions.json +16 -0
- package/package.json +62 -4
- package/react-native.config.js +10 -0
- package/src/SophiEvents.ts +13 -0
- package/src/client.ts +191 -0
- package/src/types.ts +216 -0
- package/src/wire.ts +189 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name SophiEventSDK -module-alias Module___SophiEventSDK=SophiEventSDK -module-alias Module____StringProcessing=_StringProcessing -module-alias Module____SwiftConcurrencyShims=_SwiftConcurrencyShims -module-alias Module____Concurrency=_Concurrency -module-alias Module___UIKit=UIKit -module-alias Module___SQLite3=SQLite3 -module-alias Module___SophiIdentity=SophiIdentity
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
|
+
import Foundation
|
|
6
|
+
import Module___SQLite3
|
|
7
|
+
import Module___SophiIdentity
|
|
8
|
+
import Swift
|
|
9
|
+
import Module___UIKit
|
|
10
|
+
import Module____Concurrency
|
|
11
|
+
import Module____StringProcessing
|
|
12
|
+
import Module____SwiftConcurrencyShims
|
|
13
|
+
public enum ExternalEventType : Swift.String, Swift.Codable, Swift.Sendable, Swift.CaseIterable {
|
|
14
|
+
case pageView
|
|
15
|
+
case identify
|
|
16
|
+
case productView
|
|
17
|
+
case listingView
|
|
18
|
+
case basketView
|
|
19
|
+
case purchase
|
|
20
|
+
case addToCart
|
|
21
|
+
case removeFromCart
|
|
22
|
+
case checkoutStarted
|
|
23
|
+
case custom
|
|
24
|
+
public init?(rawValue: Swift.String)
|
|
25
|
+
public typealias AllCases = [Module___SophiEventSDK.ExternalEventType]
|
|
26
|
+
public typealias RawValue = Swift.String
|
|
27
|
+
nonisolated public static var allCases: [Module___SophiEventSDK.ExternalEventType] {
|
|
28
|
+
get
|
|
29
|
+
}
|
|
30
|
+
public var rawValue: Swift.String {
|
|
31
|
+
get
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
public enum PageType : Swift.String, Swift.Codable, Swift.Sendable, Swift.CaseIterable {
|
|
35
|
+
case home
|
|
36
|
+
case category
|
|
37
|
+
case product
|
|
38
|
+
case basket
|
|
39
|
+
case checkout
|
|
40
|
+
case confirmation
|
|
41
|
+
case search
|
|
42
|
+
case account
|
|
43
|
+
case custom
|
|
44
|
+
public init?(rawValue: Swift.String)
|
|
45
|
+
public typealias AllCases = [Module___SophiEventSDK.PageType]
|
|
46
|
+
public typealias RawValue = Swift.String
|
|
47
|
+
nonisolated public static var allCases: [Module___SophiEventSDK.PageType] {
|
|
48
|
+
get
|
|
49
|
+
}
|
|
50
|
+
public var rawValue: Swift.String {
|
|
51
|
+
get
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
extension Module___SophiEventSDK.PageObject {
|
|
55
|
+
public init(type: Module___SophiEventSDK.PageType, url: Swift.String, title: Swift.String? = nil, language: Swift.String? = nil, categoryId: Swift.String? = nil, searchQuery: Swift.String? = nil, custom: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil)
|
|
56
|
+
}
|
|
57
|
+
public struct SophiEvent : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
58
|
+
public var type: Module___SophiEventSDK.ExternalEventType
|
|
59
|
+
public var page: Module___SophiEventSDK.PageObject
|
|
60
|
+
public var product: Module___SophiEventSDK.ProductObject?
|
|
61
|
+
public var basket: Module___SophiEventSDK.BasketObject?
|
|
62
|
+
public var listing: Module___SophiEventSDK.ListingObject?
|
|
63
|
+
public var transaction: Module___SophiEventSDK.TransactionObject?
|
|
64
|
+
public var user: Module___SophiEventSDK.UserObject?
|
|
65
|
+
public var custom: [Swift.String : Module___SophiEventSDK.JSONValue]?
|
|
66
|
+
public init(type: Module___SophiEventSDK.ExternalEventType, page: Module___SophiEventSDK.PageObject, product: Module___SophiEventSDK.ProductObject? = nil, basket: Module___SophiEventSDK.BasketObject? = nil, listing: Module___SophiEventSDK.ListingObject? = nil, transaction: Module___SophiEventSDK.TransactionObject? = nil, user: Module___SophiEventSDK.UserObject? = nil, custom: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil)
|
|
67
|
+
public static func == (a: Module___SophiEventSDK.SophiEvent, b: Module___SophiEventSDK.SophiEvent) -> Swift.Bool
|
|
68
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
69
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
70
|
+
}
|
|
71
|
+
public struct EventValidationError : Swift.Error, Swift.Equatable, Swift.Sendable, Foundation.LocalizedError {
|
|
72
|
+
public let fields: [Swift.String]
|
|
73
|
+
public var errorDescription: Swift.String? {
|
|
74
|
+
get
|
|
75
|
+
}
|
|
76
|
+
public static func == (a: Module___SophiEventSDK.EventValidationError, b: Module___SophiEventSDK.EventValidationError) -> Swift.Bool
|
|
77
|
+
}
|
|
78
|
+
extension Module___SophiEventSDK.SophiEventSDK {
|
|
79
|
+
@discardableResult
|
|
80
|
+
public func pageView(_ page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
81
|
+
@discardableResult
|
|
82
|
+
public func productView(_ product: Module___SophiEventSDK.ProductObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
83
|
+
@discardableResult
|
|
84
|
+
public func listingView(_ listing: Module___SophiEventSDK.ListingObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
85
|
+
@discardableResult
|
|
86
|
+
public func basketView(_ basket: Module___SophiEventSDK.BasketObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
87
|
+
@discardableResult
|
|
88
|
+
public func addToCart(_ product: Module___SophiEventSDK.ProductObject, basket: Module___SophiEventSDK.BasketObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
89
|
+
@discardableResult
|
|
90
|
+
public func removeFromCart(_ product: Module___SophiEventSDK.ProductObject, basket: Module___SophiEventSDK.BasketObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
91
|
+
@discardableResult
|
|
92
|
+
public func checkoutStarted(_ basket: Module___SophiEventSDK.BasketObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
93
|
+
@discardableResult
|
|
94
|
+
public func purchase(_ transaction: Module___SophiEventSDK.TransactionObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
95
|
+
@discardableResult
|
|
96
|
+
public func identify(_ user: Module___SophiEventSDK.UserObject, page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
97
|
+
@discardableResult
|
|
98
|
+
public func custom(_ properties: [Swift.String : Module___SophiEventSDK.JSONValue], page: Module___SophiEventSDK.PageObject) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
99
|
+
}
|
|
100
|
+
public struct SophiQueueLimits : Swift.Sendable, Swift.Equatable {
|
|
101
|
+
public var maxAge: Foundation.TimeInterval
|
|
102
|
+
public var maxEvents: Swift.Int
|
|
103
|
+
public var maxBytes: Swift.Int
|
|
104
|
+
public var maxEventBytes: Swift.Int
|
|
105
|
+
public init(maxAge: Foundation.TimeInterval = 7 * 86400, maxEvents: Swift.Int = 10_000, maxBytes: Swift.Int = 10 * 1024 * 1024, maxEventBytes: Swift.Int = 64 * 1024)
|
|
106
|
+
public static func == (a: Module___SophiEventSDK.SophiQueueLimits, b: Module___SophiEventSDK.SophiQueueLimits) -> Swift.Bool
|
|
107
|
+
}
|
|
108
|
+
public enum SophiEventError : Swift.Error, Swift.Equatable, Swift.Sendable {
|
|
109
|
+
case notConfigured, invalidConfiguration, queueFull, eventTooLarge, storageUnavailable
|
|
110
|
+
case identityChanged, backendUnsupported
|
|
111
|
+
case http(Swift.Int)
|
|
112
|
+
case invalidReceipt
|
|
113
|
+
case network
|
|
114
|
+
case analyticsDisabled
|
|
115
|
+
case mergePending
|
|
116
|
+
case duplicateIdentityModule
|
|
117
|
+
public static func == (a: Module___SophiEventSDK.SophiEventError, b: Module___SophiEventSDK.SophiEventError) -> Swift.Bool
|
|
118
|
+
}
|
|
119
|
+
extension Module___SophiEventSDK.SophiEventError : Foundation.LocalizedError {
|
|
120
|
+
public var errorDescription: Swift.String? {
|
|
121
|
+
get
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
public struct PageObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
125
|
+
public var type: Swift.String
|
|
126
|
+
public var url: Swift.String
|
|
127
|
+
public var title: Swift.String?
|
|
128
|
+
public var language: Swift.String?
|
|
129
|
+
public var categoryId: Swift.String?
|
|
130
|
+
public var searchQuery: Swift.String?
|
|
131
|
+
public var custom: [Swift.String : Module___SophiEventSDK.JSONValue]?
|
|
132
|
+
public init(type: Swift.String, url: Swift.String, title: Swift.String? = nil, language: Swift.String? = nil, categoryId: Swift.String? = nil, searchQuery: Swift.String? = nil, custom: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil)
|
|
133
|
+
public static func == (a: Module___SophiEventSDK.PageObject, b: Module___SophiEventSDK.PageObject) -> Swift.Bool
|
|
134
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
135
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
136
|
+
}
|
|
137
|
+
public struct ConsentObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
138
|
+
public var gdprOptin: Swift.Bool
|
|
139
|
+
public var version: Swift.String
|
|
140
|
+
public var timestamp: Swift.Int64
|
|
141
|
+
public init(gdprOptin: Swift.Bool, version: Swift.String, timestamp: Swift.Int64)
|
|
142
|
+
public static func == (a: Module___SophiEventSDK.ConsentObject, b: Module___SophiEventSDK.ConsentObject) -> Swift.Bool
|
|
143
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
144
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
145
|
+
}
|
|
146
|
+
public struct IdentityObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
147
|
+
public var uuid: Swift.String?
|
|
148
|
+
public var email: Swift.String?
|
|
149
|
+
public var phoneNumber: Swift.String?
|
|
150
|
+
public init(uuid: Swift.String? = nil, email: Swift.String? = nil, phoneNumber: Swift.String? = nil)
|
|
151
|
+
public static func == (a: Module___SophiEventSDK.IdentityObject, b: Module___SophiEventSDK.IdentityObject) -> Swift.Bool
|
|
152
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
153
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
154
|
+
}
|
|
155
|
+
public struct ProfileObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
156
|
+
public var name: Swift.String?
|
|
157
|
+
public var surname: Swift.String?
|
|
158
|
+
public var gender: Swift.String?
|
|
159
|
+
public var birthday: Swift.String?
|
|
160
|
+
public var language: Swift.String?
|
|
161
|
+
public init(name: Swift.String? = nil, surname: Swift.String? = nil, gender: Swift.String? = nil, birthday: Swift.String? = nil, language: Swift.String? = nil)
|
|
162
|
+
public static func == (a: Module___SophiEventSDK.ProfileObject, b: Module___SophiEventSDK.ProfileObject) -> Swift.Bool
|
|
163
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
164
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
165
|
+
}
|
|
166
|
+
public struct BehaviorObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
167
|
+
public var returning: Swift.Bool?
|
|
168
|
+
public var hasTransacted: Swift.Bool?
|
|
169
|
+
public var transactionCount: Swift.Int64?
|
|
170
|
+
public var lastTransactionAt: Swift.Int64?
|
|
171
|
+
public init(returning: Swift.Bool? = nil, hasTransacted: Swift.Bool? = nil, transactionCount: Swift.Int64? = nil, lastTransactionAt: Swift.Int64? = nil)
|
|
172
|
+
public static func == (a: Module___SophiEventSDK.BehaviorObject, b: Module___SophiEventSDK.BehaviorObject) -> Swift.Bool
|
|
173
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
174
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
175
|
+
}
|
|
176
|
+
public struct SegmentationObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
177
|
+
public var staticSegmentIds: [Module___SophiEventSDK.JSONValue]?
|
|
178
|
+
public init(staticSegmentIds: [Module___SophiEventSDK.JSONValue]? = nil)
|
|
179
|
+
public static func == (a: Module___SophiEventSDK.SegmentationObject, b: Module___SophiEventSDK.SegmentationObject) -> Swift.Bool
|
|
180
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
181
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
182
|
+
}
|
|
183
|
+
public struct UserObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
184
|
+
public var consent: Module___SophiEventSDK.ConsentObject
|
|
185
|
+
public var identity: Module___SophiEventSDK.IdentityObject?
|
|
186
|
+
public var profile: Module___SophiEventSDK.ProfileObject?
|
|
187
|
+
public var behavior: Module___SophiEventSDK.BehaviorObject?
|
|
188
|
+
public var segmentation: Module___SophiEventSDK.SegmentationObject?
|
|
189
|
+
public var custom: [Swift.String : Module___SophiEventSDK.JSONValue]?
|
|
190
|
+
public init(consent: Module___SophiEventSDK.ConsentObject, identity: Module___SophiEventSDK.IdentityObject? = nil, profile: Module___SophiEventSDK.ProfileObject? = nil, behavior: Module___SophiEventSDK.BehaviorObject? = nil, segmentation: Module___SophiEventSDK.SegmentationObject? = nil, custom: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil)
|
|
191
|
+
public static func == (a: Module___SophiEventSDK.UserObject, b: Module___SophiEventSDK.UserObject) -> Swift.Bool
|
|
192
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
193
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
194
|
+
}
|
|
195
|
+
public struct ProductObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
196
|
+
public var id: Swift.String
|
|
197
|
+
public var categoryIds: [Swift.String]
|
|
198
|
+
public var name: Swift.String
|
|
199
|
+
public var url: Swift.String
|
|
200
|
+
public var productImageUrl: Swift.String
|
|
201
|
+
public var taxonomy: [Swift.String]
|
|
202
|
+
public var currency: Swift.String
|
|
203
|
+
public var unitPrice: Swift.Double
|
|
204
|
+
public var unitSalePrice: Swift.Double
|
|
205
|
+
public var inStock: Swift.Int
|
|
206
|
+
public var variantId: Swift.String?
|
|
207
|
+
public var sku: Swift.String?
|
|
208
|
+
public var groupCode: Swift.String?
|
|
209
|
+
public var omnibusPrice: Swift.Double?
|
|
210
|
+
public var stock: Swift.Int64?
|
|
211
|
+
public var brand: Swift.String?
|
|
212
|
+
public var color: Swift.String?
|
|
213
|
+
public var size: Swift.String?
|
|
214
|
+
public var gender: Swift.String?
|
|
215
|
+
public var locale: Swift.String?
|
|
216
|
+
public var description: Swift.String?
|
|
217
|
+
public var tags: [Swift.String]?
|
|
218
|
+
public var custom: [Swift.String : Module___SophiEventSDK.JSONValue]?
|
|
219
|
+
public init(id: Swift.String, categoryIds: [Swift.String], name: Swift.String, url: Swift.String, productImageUrl: Swift.String, taxonomy: [Swift.String], currency: Swift.String, unitPrice: Swift.Double, unitSalePrice: Swift.Double, inStock: Swift.Int, variantId: Swift.String? = nil, sku: Swift.String? = nil, groupCode: Swift.String? = nil, omnibusPrice: Swift.Double? = nil, stock: Swift.Int64? = nil, brand: Swift.String? = nil, color: Swift.String? = nil, size: Swift.String? = nil, gender: Swift.String? = nil, locale: Swift.String? = nil, description: Swift.String? = nil, tags: [Swift.String]? = nil, custom: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil)
|
|
220
|
+
public static func == (a: Module___SophiEventSDK.ProductObject, b: Module___SophiEventSDK.ProductObject) -> Swift.Bool
|
|
221
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
222
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
223
|
+
}
|
|
224
|
+
public struct LineItem : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
225
|
+
public var productId: Swift.String
|
|
226
|
+
public var quantity: Swift.Int
|
|
227
|
+
public var currency: Swift.String
|
|
228
|
+
public var unitPrice: Swift.Double
|
|
229
|
+
public var unitSalePrice: Swift.Double
|
|
230
|
+
public var lineTotal: Swift.Double
|
|
231
|
+
public var variantId: Swift.String?
|
|
232
|
+
public var sku: Swift.String?
|
|
233
|
+
public init(productId: Swift.String, quantity: Swift.Int, currency: Swift.String, unitPrice: Swift.Double, unitSalePrice: Swift.Double, lineTotal: Swift.Double, variantId: Swift.String? = nil, sku: Swift.String? = nil)
|
|
234
|
+
public static func == (a: Module___SophiEventSDK.LineItem, b: Module___SophiEventSDK.LineItem) -> Swift.Bool
|
|
235
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
236
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
237
|
+
}
|
|
238
|
+
public struct BasketObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
239
|
+
public var currency: Swift.String
|
|
240
|
+
public var total: Swift.Double
|
|
241
|
+
public var lineItems: [Module___SophiEventSDK.LineItem]
|
|
242
|
+
public var basketId: Swift.String?
|
|
243
|
+
public var subtotal: Swift.Double?
|
|
244
|
+
public var tax: Swift.Double?
|
|
245
|
+
public var shippingCost: Swift.Double?
|
|
246
|
+
public var discountTotal: Swift.Double?
|
|
247
|
+
public var couponCode: Swift.String?
|
|
248
|
+
public init(currency: Swift.String, total: Swift.Double, lineItems: [Module___SophiEventSDK.LineItem], basketId: Swift.String? = nil, subtotal: Swift.Double? = nil, tax: Swift.Double? = nil, shippingCost: Swift.Double? = nil, discountTotal: Swift.Double? = nil, couponCode: Swift.String? = nil)
|
|
249
|
+
public static func == (a: Module___SophiEventSDK.BasketObject, b: Module___SophiEventSDK.BasketObject) -> Swift.Bool
|
|
250
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
251
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
252
|
+
}
|
|
253
|
+
public struct ListingItem : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
254
|
+
public var productId: Swift.String
|
|
255
|
+
public var position: Swift.Int
|
|
256
|
+
public var name: Swift.String
|
|
257
|
+
public var url: Swift.String
|
|
258
|
+
public var productImageUrl: Swift.String
|
|
259
|
+
public var currency: Swift.String
|
|
260
|
+
public var unitPrice: Swift.Double
|
|
261
|
+
public var unitSalePrice: Swift.Double
|
|
262
|
+
public var variantId: Swift.String?
|
|
263
|
+
public var inStock: Swift.Int?
|
|
264
|
+
public var brand: Swift.String?
|
|
265
|
+
public init(productId: Swift.String, position: Swift.Int, name: Swift.String, url: Swift.String, productImageUrl: Swift.String, currency: Swift.String, unitPrice: Swift.Double, unitSalePrice: Swift.Double, variantId: Swift.String? = nil, inStock: Swift.Int? = nil, brand: Swift.String? = nil)
|
|
266
|
+
public static func == (a: Module___SophiEventSDK.ListingItem, b: Module___SophiEventSDK.ListingItem) -> Swift.Bool
|
|
267
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
268
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
269
|
+
}
|
|
270
|
+
public struct ListingObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
271
|
+
public var categoryId: Swift.String?
|
|
272
|
+
public var slug: Swift.String?
|
|
273
|
+
public var searchQuery: Swift.String?
|
|
274
|
+
public var name: Swift.String?
|
|
275
|
+
public var taxonomy: [Swift.String]?
|
|
276
|
+
public var totalResults: Swift.Int?
|
|
277
|
+
public var pageNumber: Swift.Int?
|
|
278
|
+
public var pageSize: Swift.Int?
|
|
279
|
+
public var sort: Swift.String?
|
|
280
|
+
public var appliedFilters: [Swift.String : Module___SophiEventSDK.JSONValue]?
|
|
281
|
+
public var items: [Module___SophiEventSDK.ListingItem]?
|
|
282
|
+
public init(categoryId: Swift.String? = nil, slug: Swift.String? = nil, searchQuery: Swift.String? = nil, name: Swift.String? = nil, taxonomy: [Swift.String]? = nil, totalResults: Swift.Int? = nil, pageNumber: Swift.Int? = nil, pageSize: Swift.Int? = nil, sort: Swift.String? = nil, appliedFilters: [Swift.String : Module___SophiEventSDK.JSONValue]? = nil, items: [Module___SophiEventSDK.ListingItem]? = nil)
|
|
283
|
+
public static func == (a: Module___SophiEventSDK.ListingObject, b: Module___SophiEventSDK.ListingObject) -> Swift.Bool
|
|
284
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
285
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
286
|
+
}
|
|
287
|
+
public struct TransactionObject : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
288
|
+
public var orderId: Swift.String
|
|
289
|
+
public var currency: Swift.String
|
|
290
|
+
public var total: Swift.Double
|
|
291
|
+
public var lineItems: [Module___SophiEventSDK.LineItem]
|
|
292
|
+
public var subtotal: Swift.Double?
|
|
293
|
+
public var tax: Swift.Double?
|
|
294
|
+
public var shippingCost: Swift.Double?
|
|
295
|
+
public var discountTotal: Swift.Double?
|
|
296
|
+
public var couponCode: Swift.String?
|
|
297
|
+
public var paymentMethod: Swift.String?
|
|
298
|
+
public init(orderId: Swift.String, currency: Swift.String, total: Swift.Double, lineItems: [Module___SophiEventSDK.LineItem], subtotal: Swift.Double? = nil, tax: Swift.Double? = nil, shippingCost: Swift.Double? = nil, discountTotal: Swift.Double? = nil, couponCode: Swift.String? = nil, paymentMethod: Swift.String? = nil)
|
|
299
|
+
public static func == (a: Module___SophiEventSDK.TransactionObject, b: Module___SophiEventSDK.TransactionObject) -> Swift.Bool
|
|
300
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
301
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
302
|
+
}
|
|
303
|
+
indirect public enum JSONValue : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
304
|
+
case string(Swift.String)
|
|
305
|
+
case number(Swift.Double)
|
|
306
|
+
case bool(Swift.Bool)
|
|
307
|
+
case object([Swift.String : Module___SophiEventSDK.JSONValue])
|
|
308
|
+
case array([Module___SophiEventSDK.JSONValue])
|
|
309
|
+
case null
|
|
310
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
311
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
312
|
+
public static func == (a: Module___SophiEventSDK.JSONValue, b: Module___SophiEventSDK.JSONValue) -> Swift.Bool
|
|
313
|
+
}
|
|
314
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByStringLiteral {
|
|
315
|
+
public init(stringLiteral value: Swift.String)
|
|
316
|
+
public typealias ExtendedGraphemeClusterLiteralType = Swift.String
|
|
317
|
+
public typealias StringLiteralType = Swift.String
|
|
318
|
+
public typealias UnicodeScalarLiteralType = Swift.String
|
|
319
|
+
}
|
|
320
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByIntegerLiteral {
|
|
321
|
+
public init(integerLiteral value: Swift.Int64)
|
|
322
|
+
public typealias IntegerLiteralType = Swift.Int64
|
|
323
|
+
}
|
|
324
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByFloatLiteral {
|
|
325
|
+
public init(floatLiteral value: Swift.Double)
|
|
326
|
+
public typealias FloatLiteralType = Swift.Double
|
|
327
|
+
}
|
|
328
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByBooleanLiteral {
|
|
329
|
+
public init(booleanLiteral value: Swift.Bool)
|
|
330
|
+
public typealias BooleanLiteralType = Swift.Bool
|
|
331
|
+
}
|
|
332
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByNilLiteral {
|
|
333
|
+
public init(nilLiteral: ())
|
|
334
|
+
}
|
|
335
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByArrayLiteral {
|
|
336
|
+
public init(arrayLiteral elements: Module___SophiEventSDK.JSONValue...)
|
|
337
|
+
public typealias ArrayLiteralElement = Module___SophiEventSDK.JSONValue
|
|
338
|
+
}
|
|
339
|
+
extension Module___SophiEventSDK.JSONValue : Swift.ExpressibleByDictionaryLiteral {
|
|
340
|
+
public init(dictionaryLiteral elements: (Swift.String, Module___SophiEventSDK.JSONValue)...)
|
|
341
|
+
public typealias Key = Swift.String
|
|
342
|
+
public typealias Value = Module___SophiEventSDK.JSONValue
|
|
343
|
+
}
|
|
344
|
+
public struct SophiEventConfiguration : Swift.Sendable {
|
|
345
|
+
public let apiKey: Swift.String
|
|
346
|
+
public let baseURL: Foundation.URL
|
|
347
|
+
public let externalUserID: Swift.String?
|
|
348
|
+
public let analyticsEnabled: Swift.Bool?
|
|
349
|
+
public let queueLimits: Module___SophiEventSDK.SophiQueueLimits
|
|
350
|
+
public init(apiKey: Swift.String, baseURL: Foundation.URL = URL(string: "https://api.usesophi.com")!, analyticsEnabled: Swift.Bool? = nil, queueLimits: Module___SophiEventSDK.SophiQueueLimits = .init(), externalUserID: Swift.String? = nil)
|
|
351
|
+
}
|
|
352
|
+
public struct SophiEventReceipt : Swift.Equatable, Swift.Sendable {
|
|
353
|
+
public enum Status : Swift.String, Swift.Sendable {
|
|
354
|
+
case queued, disabled, deliveredMemoryOnly
|
|
355
|
+
public init?(rawValue: Swift.String)
|
|
356
|
+
public typealias RawValue = Swift.String
|
|
357
|
+
public var rawValue: Swift.String {
|
|
358
|
+
get
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
public let id: Foundation.UUID?
|
|
362
|
+
public let status: Module___SophiEventSDK.SophiEventReceipt.Status
|
|
363
|
+
public static func == (a: Module___SophiEventSDK.SophiEventReceipt, b: Module___SophiEventSDK.SophiEventReceipt) -> Swift.Bool
|
|
364
|
+
}
|
|
365
|
+
public struct SophiFlushResult : Swift.Equatable, Swift.Sendable {
|
|
366
|
+
public var delivered: Swift.Int {
|
|
367
|
+
get
|
|
368
|
+
}
|
|
369
|
+
public var retried: Swift.Int {
|
|
370
|
+
get
|
|
371
|
+
}
|
|
372
|
+
public var discarded: Swift.Int {
|
|
373
|
+
get
|
|
374
|
+
}
|
|
375
|
+
public var pending: Swift.Int {
|
|
376
|
+
get
|
|
377
|
+
}
|
|
378
|
+
public var pausedReason: Swift.String? {
|
|
379
|
+
get
|
|
380
|
+
}
|
|
381
|
+
public static func == (a: Module___SophiEventSDK.SophiFlushResult, b: Module___SophiEventSDK.SophiFlushResult) -> Swift.Bool
|
|
382
|
+
}
|
|
383
|
+
public struct SophiEventDiagnostic : Swift.Sendable {
|
|
384
|
+
public let code: Swift.String
|
|
385
|
+
public let eventID: Foundation.UUID?
|
|
386
|
+
public let count: Swift.Int
|
|
387
|
+
}
|
|
388
|
+
@_hasMissingDesignatedInitializers public actor SophiEventSDK {
|
|
389
|
+
public static let shared: Module___SophiEventSDK.SophiEventSDK
|
|
390
|
+
public static let version: Swift.String
|
|
391
|
+
public func configure(_ config: Module___SophiEventSDK.SophiEventConfiguration, onDiagnostic: (@Sendable (Module___SophiEventSDK.SophiEventDiagnostic) -> Swift.Void)? = nil) throws
|
|
392
|
+
public func setAnalyticsEnabled(_ enabled: Swift.Bool) throws
|
|
393
|
+
public func updateUser(_ externalUserID: Swift.String?) throws
|
|
394
|
+
public func logout() throws
|
|
395
|
+
@discardableResult
|
|
396
|
+
public func track(_ event: Module___SophiEventSDK.SophiEvent) async throws -> Module___SophiEventSDK.SophiEventReceipt
|
|
397
|
+
public func flush() async throws -> Module___SophiEventSDK.SophiFlushResult
|
|
398
|
+
public func pendingCount() throws -> Swift.Int
|
|
399
|
+
@objc deinit
|
|
400
|
+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
401
|
+
@_semantics("defaultActor") nonisolated final public var unownedExecutor: Module____Concurrency.UnownedSerialExecutor {
|
|
402
|
+
get
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
extension Module___SophiEventSDK.ExternalEventType : Swift.Equatable {}
|
|
406
|
+
extension Module___SophiEventSDK.ExternalEventType : Swift.Hashable {}
|
|
407
|
+
extension Module___SophiEventSDK.ExternalEventType : Swift.RawRepresentable {}
|
|
408
|
+
extension Module___SophiEventSDK.PageType : Swift.Equatable {}
|
|
409
|
+
extension Module___SophiEventSDK.PageType : Swift.Hashable {}
|
|
410
|
+
extension Module___SophiEventSDK.PageType : Swift.RawRepresentable {}
|
|
411
|
+
extension Module___SophiEventSDK.SophiEventReceipt.Status : Swift.Equatable {}
|
|
412
|
+
extension Module___SophiEventSDK.SophiEventReceipt.Status : Swift.Hashable {}
|
|
413
|
+
extension Module___SophiEventSDK.SophiEventReceipt.Status : Swift.RawRepresentable {}
|