Skip to content

Commit

Permalink
Glia Core SDK Release 0.33.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BitriseBot authored and dukhovnyi committed Jun 14, 2022
1 parent 9fca54d commit 12ed7ba
Show file tree
Hide file tree
Showing 15 changed files with 300 additions and 453 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.33.3/SalemoveSDK.xcframework.zip",
checksum: "6022b274530da0aa8edecbfa35492f7df2a7c4e3c6975a39b7e2b96fe96a934c"
url: "https://github.com/salemove/ios-bundle/releases/download/0.33.4/SalemoveSDK.xcframework.zip",
checksum: "894c7b4cb4e19b6e27efbbb1b16cd94b0e205ef3f554cbb2f776f7591ccfa10e"
),
.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.33.3'
s.version = '0.33.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
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ typedef SWIFT_ENUM(NSInteger, ConfigurationError, open) {
};
static NSString * _Nonnull const ConfigurationErrorDomain = @"SalemoveSDK.ConfigurationError";

/// Error of the visitor context
/// Deprecated.
typedef SWIFT_ENUM(NSInteger, ContextError, open) {
/// The context URL is invalid.
ContextErrorInvalidURL = 0,
Expand Down Expand Up @@ -695,19 +695,10 @@ 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,16 +720,31 @@ 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 @@ -760,23 +766,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;
Expand Down Expand Up @@ -972,33 +972,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _



@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Deprecated. Use <code>fetchFile(engagementFile:progress:completion:)</code> instead.
- (void)fetchFile:(NSString * _Nonnull)id progress:(void (^ _Nullable)(EngagementFileProgress * _Nonnull))progress completion:(void (^ _Nonnull)(EngagementFileData * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use fetchFile(engagementFile:progress:completion:) instead.");
/// Deprecated. Use <code>send(selectedOptionValue:completion:)</code> instead.
- (void)sendWithSelectedOptionValue:(NSString * _Nonnull)selectedOptionValue messageId:(NSString * _Nonnull)messageId completion:(void (^ _Nonnull)(Message * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use send(selectedOptionValue:completion:) instead.");
/// Deprecated. Use <code>Salemove.configure(with:)</code> instead.
- (BOOL)configureWithAppToken:(NSString * _Nonnull)appToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(with:) throws` instead.");
/// Change the site used by the client library.
/// \param site The siteID that should be selected.
///
///
/// throws:
/// <code>ConfigurationError.invalidSite</code>
- (BOOL)configureWithSite:(NSString * _Nonnull)site error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead.");
/// Change the environment used by the client library.
/// \param environment The environment baseURL that should be selected.
///
///
/// throws:
/// <code>ConfigurationError.invalidEnvironment</code>
- (BOOL)configureWithEnvironment:(NSString * _Nonnull)environment error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead.");
/// Deprecated.
- (BOOL)configureWithApiToken:(NSString * _Nonnull)apiToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Api token is not supported.");
@end

@class VisitorContext;

@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 All @@ -1010,45 +983,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _
/// \param completion The closure that will be called once the SDK detects an active engagement.
///
- (void)waitForActiveEngagementWithCompletion:(void (^ _Nonnull)(Engagement * _Nullable, SalemoveError * _Nullable))completion;
/// Request an Engagement with a selected Operator.
/// This method is the equivalent of calling <code>requestEngagementWith:visitorContext:options:completion:</code>
/// with the <code>options</code> parameter set to an <code>EngagementMediaOptions</code> instance with <code>type</code>
/// as <code>MediaType.text</code>.
/// 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>
/// <li>
/// <code>GeneralError.internalError</code>
/// </li>
/// <li>
/// <code>GeneralError.networkError</code>
/// </li>
/// <li>
/// <code>ContextError.invalidURL</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidSite</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidEnvironment</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidAppToken</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidApiToken</code>
/// </li>
/// <li>
/// <code>EngagementError.operatorUnavailable</code>
/// </li>
/// </ul>
/// \param selectedOperator The Operator that will be selected.
///
/// \param visitorContext The visitor context that should be displayed.
///
/// \param completion A callback that will return the <code>EngagementRequest</code> or <code>SalemoveError</code>.
///
- (void)requestEngagementWithSelectedOperator:(Operator * _Nonnull)selectedOperator visitorContext:(VisitorContext * _Nonnull)visitorContext completion:(void (^ _Nonnull)(EngagementRequest * _Nullable, SalemoveError * _Nullable))completion;
/// Cancel an ongoing EngagementRequest
/// <ul>
/// <li>
Expand Down Expand Up @@ -1153,55 +1087,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _


@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Queue for an Engagement with a specific queue.
/// If you decide to use this method with <code>shouldCloseAllQueues</code> as <code>false</code>, please note that you will
/// need to cancel any active queue tickets yourself. This can be done by calling <code>dequeueFromActiveQueueTickets</code>.
/// This method is the equivalent of calling <code>queueForEngagement:visitorContext:shouldCloseAllQueues:mediaType:completion:</code>
/// with the <code>options</code> parameter set to an <code>EngagementMediaOptions</code> instance with <code>type</code>
/// as <code>MediaType.text</code>.
/// 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>
/// <li>
/// <code>GeneralError.internalError</code>
/// </li>
/// <li>
/// <code>GeneralError.networkError</code>
/// </li>
/// <li>
/// <code>ContextError.invalidURL</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidSite</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidEnvironment</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidAppToken</code>
/// </li>
/// <li>
/// <code>ConfigurationError.invalidApiToken</code>
/// </li>
/// <li>
/// <code>QueueError.queueClosed</code>
/// </li>
/// <li>
/// <code>QueueError.queueFull</code>
/// </li>
/// <li>
/// <code>QueueError.invalidId</code>
/// </li>
/// </ul>
/// \param queueID The ID that will be used by the client library
///
/// \param visitorContext The visitor context that should be displayed
///
/// \param shouldCloseAllQueues If <code>true</code>, the method closes all active queue tickets. The default value is <code>true</code>.
///
/// \param completion A callback that will return the <code>QueueTicket</code> or <code>SalemoveError</code>
///
- (void)queueForEngagementWithQueueID:(NSString * _Nonnull)queueID visitorContext:(VisitorContext * _Nonnull)visitorContext shouldCloseAllQueues:(BOOL)shouldCloseAllQueues completion:(void (^ _Nonnull)(QueueTicket * _Nullable, SalemoveError * _Nullable))completion;
/// Cancels all active queue tickets that the current visitor has.
/// Use this method to avoid attempting to enter a queue while the visitor is already enqueued. If you call <code>queueForEngagement</code>
/// with <code>shouldCloseAllQueues</code> set to <code>true</code>, this method is called for you before attempting to enqueue into a new queue.
Expand Down Expand Up @@ -1359,6 +1244,37 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _
- (void)unsubscribeFromUpdatesWithQueueCallbackId:(NSString * _Nonnull)queueCallbackId onError:(void (^ _Nonnull)(SalemoveError * _Nonnull))onError;
@end

@class VisitorContext;

@interface Salemove (SWIFT_EXTENSION(SalemoveSDK))
/// Deprecated. Use <code>fetchFile(engagementFile:progress:completion:)</code> instead.
- (void)fetchFile:(NSString * _Nonnull)id progress:(void (^ _Nullable)(EngagementFileProgress * _Nonnull))progress completion:(void (^ _Nonnull)(EngagementFileData * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use fetchFile(engagementFile:progress:completion:) instead.");
/// Deprecated. Use <code>send(selectedOptionValue:completion:)</code> instead.
- (void)sendWithSelectedOptionValue:(NSString * _Nonnull)selectedOptionValue messageId:(NSString * _Nonnull)messageId completion:(void (^ _Nonnull)(Message * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use send(selectedOptionValue:completion:) instead.");
/// Deprecated. Use <code>Salemove.configure(with:)</code> instead.
- (BOOL)configureWithAppToken:(NSString * _Nonnull)appToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(with:) throws` instead.");
/// Change the site used by the client library.
/// \param site The siteID that should be selected.
///
///
/// throws:
/// <code>ConfigurationError.invalidSite</code>
- (BOOL)configureWithSite:(NSString * _Nonnull)site error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead.");
/// Change the environment used by the client library.
/// \param environment The environment baseURL that should be selected.
///
///
/// throws:
/// <code>ConfigurationError.invalidEnvironment</code>
- (BOOL)configureWithEnvironment:(NSString * _Nonnull)environment error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead.");
/// Deprecated.
- (BOOL)configureWithApiToken:(NSString * _Nonnull)apiToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Api token is not supported.");
/// Deprecated.
- (void)queueForEngagementWithQueueID:(NSString * _Nonnull)queueID visitorContext:(VisitorContext * _Nonnull)visitorContext shouldCloseAllQueues:(BOOL)shouldCloseAllQueues completion:(void (^ _Nonnull)(QueueTicket * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use queueForEngagement(queueID:visitorContext:shouldCloseAllQueues:completion:) with Optional<VisitorContext> instead.");
/// Deprecated.
- (void)requestEngagementWithSelectedOperator:(Operator * _Nonnull)selectedOperator visitorContext:(VisitorContext * _Nonnull)visitorContext completion:(void (^ _Nonnull)(EngagementRequest * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use requestEngagementWith(selectedOperator:visitorContext:completion:) with Optional<VisitorContext> instead.");
@end



/// The basic gateway class that interacts with the client library through the app delegate
Expand Down Expand Up @@ -1467,6 +1383,9 @@ SWIFT_CLASS("_TtC11SalemoveSDK14VisitorContext")
@end





SWIFT_CLASS("_TtC11SalemoveSDK25VisitorScreenSharingState")
@interface VisitorScreenSharingState : NSObject
/// ScreenSharing status, which is one of <code>ScreenSharingStatus</code>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 12ed7ba

Please sign in to comment.