Skip to content

Commit

Permalink
* Added status2 features
Browse files Browse the repository at this point in the history
    * Added `SBDSKTicket.Constants.Status2` constants
    * Added `status2` property in `SBDSKTicket` class
    * Added `getAllTicketList(offset:customFieldFilter:completionHandler:)` function in `SBDSKTicket` class
    * Added `getTicketList(offset:customFieldFilter:status2:completionHandler:)` function in `SBDSKTicket` class
  • Loading branch information
Jaesung Lee committed Feb 3, 2023
1 parent 39ac0e2 commit c3b943f
Show file tree
Hide file tree
Showing 26 changed files with 436 additions and 281 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

### v1.1.2 (Feb 3, 2023)
* Added status2 features
* Added `SBDSKTicket.Constants.Status2` constants
* Added `status2` property in `SBDSKTicket` class
* Added `getAllTicketList(offset:customFieldFilter:completionHandler:)` function in `SBDSKTicket` class
* Added `getTicketList(offset:customFieldFilter:status2:completionHandler:)` function in `SBDSKTicket` class

### v1.1.1 (Nov 11, 2022)
* Fixed bug that refreshed ticket has no channel
* Improved stabilities
Expand Down
2 changes: 1 addition & 1 deletion 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.1.1"
s.version = "1.1.2"
s.summary = "SendBird Desk iOS Framework"
s.homepage = "https://sendbird.com"
s.license = "Commercial"
Expand Down
18 changes: 9 additions & 9 deletions SendBirdDesk.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>SendBirdDesk.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SendBirdDesk.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ SWIFT_CLASS("_TtC12SendBirdDesk11SBDSKTicket")
/// The title of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// The status of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable status;
@property (nonatomic, readonly, copy) NSString * _Nullable status SWIFT_DEPRECATED_MSG("This property has been deprecated. Please use `status2` instead.");
/// The status2 of this ticket.
/// since:
/// 1.1.2
@property (nonatomic, readonly, copy) NSString * _Nullable status2;
/// The agent who is in charge of this ticket.
@property (nonatomic, readonly, strong) SBDSKAgent * _Nullable agent;
/// The channel where the <span>agent</span> and the customer are chatting.
Expand Down Expand Up @@ -993,7 +997,11 @@ SWIFT_CLASS("_TtC12SendBirdDesk11SBDSKTicket")
/// The title of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// The status of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable status;
@property (nonatomic, readonly, copy) NSString * _Nullable status SWIFT_DEPRECATED_MSG("This property has been deprecated. Please use `status2` instead.");
/// The status2 of this ticket.
/// since:
/// 1.1.2
@property (nonatomic, readonly, copy) NSString * _Nullable status2;
/// The agent who is in charge of this ticket.
@property (nonatomic, readonly, strong) SBDSKAgent * _Nullable agent;
/// The channel where the <span>agent</span> and the customer are chatting.
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swif
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
public struct Constants {
public struct Status2 {
public static let procative: Swift.String
public static let pending: Swift.String
public static let workInProgress: Swift.String
public static let active: Swift.String
public static let idle: Swift.String
public static let closed: Swift.String
}
}
@objc public var ticketId: Swift.Int64 {
get
}
@objc public var title: Swift.String? {
get
}
@available(*, deprecated, message: "This property has been deprecated. Please use `status2` instead.")
@objc public var status: Swift.String? {
get
}
@objc public var status2: Swift.String? {
get
}
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
Expand Down Expand Up @@ -120,6 +134,8 @@ extension SendBirdDesk.SBDSKTicket {
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getAllTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, status2: [Swift.String], completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swif
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
public struct Constants {
public struct Status2 {
public static let procative: Swift.String
public static let pending: Swift.String
public static let workInProgress: Swift.String
public static let active: Swift.String
public static let idle: Swift.String
public static let closed: Swift.String
}
}
@objc public var ticketId: Swift.Int64 {
get
}
@objc public var title: Swift.String? {
get
}
@available(*, deprecated, message: "This property has been deprecated. Please use `status2` instead.")
@objc public var status: Swift.String? {
get
}
@objc public var status2: Swift.String? {
get
}
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
Expand Down Expand Up @@ -120,6 +134,8 @@ extension SendBirdDesk.SBDSKTicket {
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getAllTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, status2: [Swift.String], completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand Down
Binary file not shown.
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.1.1</string>
<string>1.1.2</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ SWIFT_CLASS("_TtC12SendBirdDesk11SBDSKTicket")
/// The title of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// The status of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable status;
@property (nonatomic, readonly, copy) NSString * _Nullable status SWIFT_DEPRECATED_MSG("This property has been deprecated. Please use `status2` instead.");
/// The status2 of this ticket.
/// since:
/// 1.1.2
@property (nonatomic, readonly, copy) NSString * _Nullable status2;
/// The agent who is in charge of this ticket.
@property (nonatomic, readonly, strong) SBDSKAgent * _Nullable agent;
/// The channel where the <span>agent</span> and the customer are chatting.
Expand Down Expand Up @@ -993,7 +997,11 @@ SWIFT_CLASS("_TtC12SendBirdDesk11SBDSKTicket")
/// The title of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// The status of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable status;
@property (nonatomic, readonly, copy) NSString * _Nullable status SWIFT_DEPRECATED_MSG("This property has been deprecated. Please use `status2` instead.");
/// The status2 of this ticket.
/// since:
/// 1.1.2
@property (nonatomic, readonly, copy) NSString * _Nullable status2;
/// The agent who is in charge of this ticket.
@property (nonatomic, readonly, strong) SBDSKAgent * _Nullable agent;
/// The channel where the <span>agent</span> and the customer are chatting.
Expand Down Expand Up @@ -1622,7 +1630,11 @@ SWIFT_CLASS("_TtC12SendBirdDesk11SBDSKTicket")
/// The title of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// The status of this ticket.
@property (nonatomic, readonly, copy) NSString * _Nullable status;
@property (nonatomic, readonly, copy) NSString * _Nullable status SWIFT_DEPRECATED_MSG("This property has been deprecated. Please use `status2` instead.");
/// The status2 of this ticket.
/// since:
/// 1.1.2
@property (nonatomic, readonly, copy) NSString * _Nullable status2;
/// The agent who is in charge of this ticket.
@property (nonatomic, readonly, strong) SBDSKAgent * _Nullable agent;
/// The channel where the <span>agent</span> and the customer are chatting.
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swif
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
public struct Constants {
public struct Status2 {
public static let procative: Swift.String
public static let pending: Swift.String
public static let workInProgress: Swift.String
public static let active: Swift.String
public static let idle: Swift.String
public static let closed: Swift.String
}
}
@objc public var ticketId: Swift.Int64 {
get
}
@objc public var title: Swift.String? {
get
}
@available(*, deprecated, message: "This property has been deprecated. Please use `status2` instead.")
@objc public var status: Swift.String? {
get
}
@objc public var status2: Swift.String? {
get
}
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
Expand Down Expand Up @@ -120,6 +134,8 @@ extension SendBirdDesk.SBDSKTicket {
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getAllTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, status2: [Swift.String], completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swif
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
public struct Constants {
public struct Status2 {
public static let procative: Swift.String
public static let pending: Swift.String
public static let workInProgress: Swift.String
public static let active: Swift.String
public static let idle: Swift.String
public static let closed: Swift.String
}
}
@objc public var ticketId: Swift.Int64 {
get
}
@objc public var title: Swift.String? {
get
}
@available(*, deprecated, message: "This property has been deprecated. Please use `status2` instead.")
@objc public var status: Swift.String? {
get
}
@objc public var status2: Swift.String? {
get
}
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
Expand Down Expand Up @@ -120,6 +134,8 @@ extension SendBirdDesk.SBDSKTicket {
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getAllTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, status2: [Swift.String], completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swif
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
public struct Constants {
public struct Status2 {
public static let procative: Swift.String
public static let pending: Swift.String
public static let workInProgress: Swift.String
public static let active: Swift.String
public static let idle: Swift.String
public static let closed: Swift.String
}
}
@objc public var ticketId: Swift.Int64 {
get
}
@objc public var title: Swift.String? {
get
}
@available(*, deprecated, message: "This property has been deprecated. Please use `status2` instead.")
@objc public var status: Swift.String? {
get
}
@objc public var status2: Swift.String? {
get
}
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
Expand Down Expand Up @@ -120,6 +134,8 @@ extension SendBirdDesk.SBDSKTicket {
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getAllTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
public static func getTicketList(offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, status2: [Swift.String], completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand Down
Binary file not shown.
Loading

0 comments on commit c3b943f

Please sign in to comment.