Skip to content

Commit

Permalink
Glia Core SDK Release 0.34.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BitriseBot authored and dukhovnyi committed Sep 22, 2022
1 parent 6c25171 commit ca584aa
Show file tree
Hide file tree
Showing 16 changed files with 344 additions and 107 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ let package = Package(
),
.binaryTarget(
name: "SalemoveSDK",
url: "https://github.com/salemove/ios-bundle/releases/download/0.34.3/SalemoveSDK.xcframework.zip",
checksum: "359c218ea2200953cfd8cf98f10b28deccf4100ec1f3b9cdfa8827dd49cffc76"
url: "https://github.com/salemove/ios-bundle/releases/download/0.34.4/SalemoveSDK.xcframework.zip",
checksum: "0559bf4151b718526f010dd82a67b380ffbffc8f52bee5daa7b94578f45fceab"
),
.target(
name: "GliaSDK",
Expand Down
2 changes: 1 addition & 1 deletion SalemoveSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SalemoveSDK'
s.version = '0.34.3'
s.version = '0.34.4'
s.summary = 'The Salemove iOS library'
s.description = 'The Salemove iOS library brings the in-person customer experience to iOS devices.'
s.homepage = 'https://github.com/salemove/ios-sdk'
Expand Down
10 changes: 5 additions & 5 deletions SalemoveSDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SalemoveSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SalemoveSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ SWIFT_CLASS("_TtC11SalemoveSDK8Operator")
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
/// Operator picture, see OperatorPicture class for more details.
@property (nonatomic, readonly, strong) OperatorPicture * _Nullable picture;
/// Overriding of isEqual is necessary in order to compare the operators in the Widget SDK.
/// Without it, operator with the same data fields is considered different.
/// This creates unnecessary behavior, such as generation of event,
/// where operator becomes engaged twice, which in turn is reflected in the Widgets UI.
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand All @@ -560,6 +565,11 @@ SWIFT_CLASS("_TtC11SalemoveSDK15OperatorPicture")
/// </li>
/// </ul>
@property (nonatomic, readonly, copy) NSString * _Nullable url;
/// Overriding of isEqual is necessary in order to compare the operators in the Widget SDK.
/// Without it, operator with the same data fields is considered different.
/// This creates unnecessary behavior, such as generation of event,
/// where operator becomes engaged twice, which in turn is reflected in the Widgets UI.
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down Expand Up @@ -696,18 +706,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _


@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Request a VisitorCode for current Visitor
/// A Visitor code can be displayed to the Visitor. The Visitor can then inform OmniBrowse Operators of their code.
/// OmniBrowse Operators use the Visitor’s code to start an OmniBrowse Engagement with the Visitor.
/// Each Visitor code is generated on demand and is unique for every Visitor on a particular site. Upon the first time
/// this function is called for a Visitor the code is generated and returned. For each successive call thereafter the
/// same code will be returned as long as the code has not expired. The expiration time for Visitor codes is 3 hours.
/// During that time the code can be used to initiate an engagement. Once Operator uses the Visitor code to initiate
/// an engagement, the code will expire immediately. When the Visitor Code expires this function will return a new
/// Visitor code.
/// The expiration time is important to take note of if you plan on retrieving the code only once during the Visitor’s
/// session. A new code should be requested once the initial one has expired. When Visitor provides an expired code
/// to Operator the Operator will not be able to connect with the Visitor.
/// Request media upgrade with specific offer
/// If the request is unsuccessful for any reason then the completion will have an Error.
/// The Error may have one of the following causes:
/// <ul>
Expand All @@ -729,17 +728,33 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _
/// <li>
/// <code>ConfigurationError.invalidApiToken</code>
/// </li>
/// <li>
/// <code>MediaUpgradeError.requestError</code>
/// </li>
/// </ul>
/// \param completion A callback that will return the visitor code or <code>SalemoveError</code>
/// \param offer The `MediaUpgradeOffer’ that is used for the request
///
- (void)requestVisitorCodeWithCompletion:(void (^ _Nonnull)(NSString * _Nullable, SalemoveError * _Nullable))completion;
/// \param completion A callback that returns the upgrade result or <code>SalemoveError</code>
///
- (void)requestMediaUpgradeWithOffer:(MediaUpgradeOffer * _Nonnull)offer completion:(void (^ _Nonnull)(BOOL, SalemoveError * _Nullable))completion;
@end




@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Request media upgrade with specific offer
/// Request a VisitorCode for current Visitor
/// A Visitor code can be displayed to the Visitor. The Visitor can then inform OmniBrowse Operators of their code.
/// OmniBrowse Operators use the Visitor’s code to start an OmniBrowse Engagement with the Visitor.
/// Each Visitor code is generated on demand and is unique for every Visitor on a particular site. Upon the first time
/// this function is called for a Visitor the code is generated and returned. For each successive call thereafter the
/// same code will be returned as long as the code has not expired. The expiration time for Visitor codes is 3 hours.
/// During that time the code can be used to initiate an engagement. Once Operator uses the Visitor code to initiate
/// an engagement, the code will expire immediately. When the Visitor Code expires this function will return a new
/// Visitor code.
/// The expiration time is important to take note of if you plan on retrieving the code only once during the Visitor’s
/// session. A new code should be requested once the initial one has expired. When Visitor provides an expired code
/// to Operator the Operator will not be able to connect with the Visitor.
/// If the request is unsuccessful for any reason then the completion will have an Error.
/// The Error may have one of the following causes:
/// <ul>
Expand All @@ -761,26 +776,17 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _
/// <li>
/// <code>ConfigurationError.invalidApiToken</code>
/// </li>
/// <li>
/// <code>MediaUpgradeError.requestError</code>
/// </li>
/// </ul>
/// \param offer The `MediaUpgradeOffer’ that is used for the request
///
/// \param completion A callback that returns the upgrade result or <code>SalemoveError</code>
/// \param completion A callback that will return the visitor code or <code>SalemoveError</code>
///
- (void)requestMediaUpgradeWithOffer:(MediaUpgradeOffer * _Nonnull)offer completion:(void (^ _Nonnull)(BOOL, SalemoveError * _Nullable))completion;
- (void)requestVisitorCodeWithCompletion:(void (^ _Nonnull)(NSString * _Nullable, SalemoveError * _Nullable))completion;
@end






@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Clear the use session of the client library
- (void)clearSession;
@end


@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
Expand All @@ -797,6 +803,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _
@end


@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Clear the use session of the client library
- (void)clearSession;
@end


@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Uploads a file to an engagement. The uploaded file can be later sent as part of a chat message attachments.
/// If Glia’s servers require a security check for the uploaded file, then it will be triggered automatically. The completion
Expand Down Expand Up @@ -873,7 +885,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _




@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Send a chat message.
/// If the request is unsuccessful for any reason then the completion will have an Error.
Expand Down Expand Up @@ -972,6 +983,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _




@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Waits until there is an active engagement handled by the SDK.
/// If the SDK already has an active engagement present, then it returns information about it through
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,30 @@ public enum PushNotificationsType : Swift.Int {
get
}
}
public enum AnyCodable : Swift.Equatable {
case string(Swift.String)
case number(Swift.Double)
case object([Swift.String : SalemoveSDK.AnyCodable])
case array([SalemoveSDK.AnyCodable])
case bool(Swift.Bool)
case null
public static func == (a: SalemoveSDK.AnyCodable, b: SalemoveSDK.AnyCodable) -> Swift.Bool
}
extension SalemoveSDK.AnyCodable : Swift.Codable {
public func encode(to encoder: Swift.Encoder) throws
public init(from decoder: Swift.Decoder) throws
}
extension SalemoveSDK.Salemove {
@objc final public func uploadFileToEngagement(_ file: SalemoveSDK.EngagementFile, progress: SalemoveSDK.EngagementFileProgressBlock?, completion: @escaping SalemoveSDK.EngagementFileCompletionBlock)
@objc final public func fetchFile(engagementFile: SalemoveSDK.EngagementFile, progress: SalemoveSDK.EngagementFileProgressBlock?, completion: @escaping SalemoveSDK.EngagementFileFetchCompletionBlock)
}
@_hasMissingDesignatedInitializers @objc public class Attachment : ObjectiveC.NSObject, Swift.Decodable {
@objc public class Attachment : ObjectiveC.NSObject, Swift.Decodable {
final public let type: SalemoveSDK.AttachmentType?
final public let selectedOption: Swift.String?
final public let options: [SalemoveSDK.SingleChoiceOption]?
final public let imageUrl: Swift.String?
final public let files: [SalemoveSDK.EngagementFile]?
public init(type: SalemoveSDK.AttachmentType?, selectedOption: Swift.String?, options: [SalemoveSDK.SingleChoiceOption]?, files: [SalemoveSDK.EngagementFile]?, imageUrl: Swift.String?)
public init(file: SalemoveSDK.EngagementFile)
public init(files: [SalemoveSDK.EngagementFile])
@objc deinit
Expand Down Expand Up @@ -167,7 +181,24 @@ extension SalemoveSDK.Salemove.Configuration {
}
extension SalemoveSDK.Message {
public struct Metadata {
public enum CodingKeys : Swift.String, Swift.CodingKey {
case metadata
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public func decode<T>(_ type: T.Type) throws -> T where T : Swift.Decodable
public init(container: Swift.KeyedDecodingContainer<SalemoveSDK.Message.Metadata.CodingKeys>)
}
}
public enum MessageSender : Swift.String, Swift.Decodable {
Expand Down Expand Up @@ -488,6 +519,10 @@ extension SalemoveSDK.Salemove {
@objc final public func requestEngagedOperator(completion: @escaping SalemoveSDK.OperatorBlock)
@objc final public func endEngagement(completion: @escaping SalemoveSDK.SuccessBlock)
}
extension SalemoveSDK.Salemove {
public typealias IdToken = SalemoveSDK.Tagged<(SalemoveSDK.Salemove, idToken: ()), Swift.String>
final public func authentication(with behavior: SalemoveSDK.Salemove.Authentication.Behavior) throws -> SalemoveSDK.Salemove.Authentication
}
extension SalemoveSDK.Salemove {
final public func send(option: SalemoveSDK.SingleChoiceOption, completion: @escaping (Swift.Result<SalemoveSDK.Message, Swift.Error>) -> Swift.Void)
@objc final public func send(message: Swift.String = "", attachment: SalemoveSDK.Attachment? = nil, completion: @escaping SalemoveSDK.MessageBlock)
Expand Down Expand Up @@ -729,6 +764,28 @@ infix operator &/ : DefaultPrecedence
public init(isTyping: Swift.Bool)
@objc deinit
}
extension SalemoveSDK.Salemove {
public struct Authentication {
}
}
extension SalemoveSDK.Salemove.Authentication {
public func authenticate(with idToken: SalemoveSDK.Salemove.IdToken, completion: @escaping (Swift.Result<Swift.Void, SalemoveSDK.SalemoveError>) -> Swift.Void)
public func deauthenticate(_ completion: @escaping (Swift.Result<Swift.Void, SalemoveSDK.SalemoveError>) -> Swift.Void)
public var isAuthenticated: Swift.Bool {
get
}
public init()
}
extension SalemoveSDK.Salemove.Authentication {
public enum Behavior {
case restrictedDuringEngagement
public static func == (a: SalemoveSDK.Salemove.Authentication.Behavior, b: SalemoveSDK.Salemove.Authentication.Behavior) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
}
@objc public enum VideoScalingOptions : Swift.Int {
case fill
case aspectFit
Expand Down Expand Up @@ -769,6 +826,7 @@ extension SalemoveSDK.StreamView : WebRTC.RTCVideoViewDelegate {
}
@_hasMissingDesignatedInitializers @objc public class OperatorPicture : ObjectiveC.NSObject {
@objc final public let url: Swift.String?
@objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
@objc deinit
}
@objc public enum GeneralError : Swift.Int, Swift.Error {
Expand Down Expand Up @@ -942,6 +1000,9 @@ public enum QueueStatus : Swift.String, Swift.Codable {
}
@objc deinit
}
extension SalemoveSDK.Salemove {
final public func fetchChatTranscript(_ completion: @escaping (Swift.Result<[SalemoveSDK.Message], SalemoveSDK.SalemoveError>) -> Swift.Void)
}
extension SalemoveSDK.Salemove {
@objc final public func configureLogLevel(level: SalemoveSDK.LogLevel)
}
Expand All @@ -956,6 +1017,7 @@ extension SalemoveSDK.Salemove {
get
}
public init(id: Swift.String, name: Swift.String, picture: SalemoveSDK.OperatorPicture?, availableMedia: [SalemoveSDK.MediaType]?)
@objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
@objc deinit
}
public typealias InternalOperatorTypingStatusUpdate = (SalemoveSDK.OperatorTypingStatus) -> Swift.Void
Expand Down Expand Up @@ -1017,6 +1079,9 @@ extension SalemoveSDK.PushNotificationsType : Swift.Hashable {}
extension SalemoveSDK.PushNotificationsType : Swift.RawRepresentable {}
extension SalemoveSDK.Salemove.Configuration.PushNotifications : Swift.Equatable {}
extension SalemoveSDK.Salemove.Configuration.PushNotifications : Swift.Hashable {}
extension SalemoveSDK.Message.Metadata.CodingKeys : Swift.Equatable {}
extension SalemoveSDK.Message.Metadata.CodingKeys : Swift.Hashable {}
extension SalemoveSDK.Message.Metadata.CodingKeys : Swift.RawRepresentable {}
extension SalemoveSDK.MessageSender : Swift.Equatable {}
extension SalemoveSDK.MessageSender : Swift.Hashable {}
extension SalemoveSDK.MessageSender : Swift.RawRepresentable {}
Expand Down Expand Up @@ -1044,6 +1109,8 @@ extension SalemoveSDK.Survey.QuestionType : Swift.RawRepresentable {}
extension SalemoveSDK.PushType : Swift.Equatable {}
extension SalemoveSDK.PushType : Swift.Hashable {}
extension SalemoveSDK.PushType : Swift.RawRepresentable {}
extension SalemoveSDK.Salemove.Authentication.Behavior : Swift.Equatable {}
extension SalemoveSDK.Salemove.Authentication.Behavior : Swift.Hashable {}
extension SalemoveSDK.VideoScalingOptions : Swift.Equatable {}
extension SalemoveSDK.VideoScalingOptions : Swift.Hashable {}
extension SalemoveSDK.VideoScalingOptions : Swift.RawRepresentable {}
Expand Down
Binary file not shown.
Loading

0 comments on commit ca584aa

Please sign in to comment.