Skip to content

Commit

Permalink
Release 1.0.14
Browse files Browse the repository at this point in the history
* Added supports for BotKey.
    * Added option to specify botKey when creating `SBDSKTicket`.
* Added `SBDSKTicket.cancel(transferGroupKey:completionHandler:)`.
* Added support for FAQ.
    * Added `SBDSKTicket.selectQuestion(faqFileId:question:completionHandler:)`.
    * Added `SBDSKFAQData` and `SBDSKFAQResult`.
  • Loading branch information
mininny committed May 21, 2021
1 parent bee36b2 commit b54ac58
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

### v1.0.14 (May 21, 2021)
* Added supports for BotKey.
* Added option to specify botKey when creating `SBDSKTicket`.
* Added `SBDSKTicket.cancel(transferGroupKey:completionHandler:)`.
* Added support for FAQ.
* Added `SBDSKTicket.selectQuestion(faqFileId:question:completionHandler:)`.
* Added `SBDSKFAQData` and `SBDSKFAQResult`.

### v1.0.13 (Feb 26, 2021)
* Improved handling of error code.

Expand Down
2 changes: 1 addition & 1 deletion SendBirdDesk.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0.13</string>
<string>1.0.14</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.
26 changes: 26 additions & 0 deletions SendBirdDesk.framework/Headers/SBDSKFAQData.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// SBDSKFAQData.h
// SendBirdDesk
//
// Created by Minhyuk Kim on 2021/05/20.
// Copyright © 2021 Jed Gyeong. All rights reserved.
//

#ifndef SBDSKFAQData_h
#define SBDSKFAQData_h

#import <Foundation/Foundation.h>
#import <SendBirdSDK/SendBirdSDK.h>
#import "SBDSKFAQResult.h"

@interface SBDSKFAQData : NSObject

@property (atomic, readonly) long long faqFileId;
@property (atomic, strong, readonly, nonnull) NSString *type;
@property (atomic, strong, readonly, nonnull) NSArray<SBDSKFAQResult *> *faqResults;

- (nullable instancetype)initWithMesage:(nonnull SBDBaseMessage *)message;

@end

#endif /* SBDSKFAQData_h */
27 changes: 27 additions & 0 deletions SendBirdDesk.framework/Headers/SBDSKFAQResult.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// SBDSKFAQResult.h
// SendBirdDesk
//
// Created by Minhyuk Kim on 2021/05/20.
// Copyright © 2021 Jed Gyeong. All rights reserved.
//

#ifndef SBDSKFAQResult_h
#define SBDSKFAQResult_h

#import <Foundation/Foundation.h>

@interface SBDSKFAQResult : NSObject

@property (atomic, strong, readonly, nullable) NSString *category;
@property (atomic, strong, readonly, nullable) NSString *question;
@property (atomic, strong, readonly, nullable) NSString *answer;
@property (atomic, strong, readonly, nullable) NSString *keyword;
@property (atomic, strong, readonly, nullable) NSString *url;
@property (atomic, strong, readonly, nullable) NSString *imageURL;

- (nullable instancetype)initWithDictionary:(nonnull NSDictionary *)dict;

@end

#endif /* SBDSKFAQResult_h */
44 changes: 44 additions & 0 deletions SendBirdDesk.framework/Headers/SBDSKTicket.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,29 @@ Creates a new ticket with information.
relatedChannels:(nullable NSArray<NSString *> *)relatedChannels
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Creates a new ticket with information.
@param title The <span>title</span> of a new ticket.
@param userName The customer's name.
@param groupKey The agent group key.
@param customFields The custom fields that the admin already sets on dashboard.
@param priority The priority level of ticket.
@param relatedChannels List of Urls of the channels related with the ticket.
@param botKey Specifies the identifier of a bot to assign the created ticket to the bot, not to other live agents.
@param completionHandler The handler block to execute. If the method creates a ticket successfully, the `ticket` object will be valid and the `error` will be nil.
@since 1.0.14
*/
+ (void)createTicketWithTitle:(nullable NSString *)title
userName:(nullable NSString *)userName
groupKey:(nullable NSString *)groupKey
customFields:(nullable NSDictionary<NSString *, NSString *> *)customFields
priority:(SBDSKTicketPriority)priority
relatedChannels:(nullable NSArray<NSString *> *)relatedChannels
botKey:(nullable NSString *)botKey
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Creates a new ticket with information.
Expand Down Expand Up @@ -319,4 +342,25 @@ Sets the specific ticket's related channels. The method accepts an array of stri
- (void)closeWithComment:(NSString * _Nullable)comment
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Cancel this ticket.
@param transferGroupKey group key to transfer this ticket to. Nullable.
@param completionHandler Callback handler.
@since 1.0.14
*/
- (void)cancelWithTransferGroupKey:(NSString * _Nullable)transferGroupKey
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Select a question.
@param faqFileId File id of FAQ question to select
@param question Question to select.
@param completionHandler Callback handler.
@since 1.0.14
*/
- (void)selectQuestionWithFaqFileId:(long long)faqFileId
question:(nonnull NSString *)question
completionHandler:(nullable void (^)(SBDError * _Nullable error))completionHandler;
@end
1 change: 1 addition & 0 deletions SendBirdDesk.framework/Headers/SendBirdDesk.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ FOUNDATION_EXPORT const unsigned char SendBirdDeskVersionString[];
#import "SBDSKMain.h"
#import "SBDSKAgent.h"
#import "SBDSKTicket.h"
#import "SBDSKFAQData.h"
Binary file modified SendBirdDesk.framework/Info.plist
Binary file not shown.
Binary file modified SendBirdDesk.framework/SendBirdDesk
Binary file not shown.
4 changes: 2 additions & 2 deletions SendBirdDesk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SendBirdDesk"
s.version = "1.0.13"
s.version = "1.0.14"
s.summary = "SendBird Desk iOS Framework"
s.homepage = "https://sendbird.com"
s.license = "Commercial"
Expand All @@ -12,5 +12,5 @@ Pod::Spec.new do |s|
s.ios.vendored_frameworks = 'SendBirdDesk.framework'
s.ios.frameworks = ["UIKit", "AVFoundation", "AVKit", "UserNotifications"]

s.dependency 'SendBirdSDK'
s.dependency 'SendBirdSDK', "~> 3.0.200"
end

0 comments on commit b54ac58

Please sign in to comment.