Skip to content

Commit

Permalink
Merge pull request #127 from simplygoodsoftware/kl/addFieldsData
Browse files Browse the repository at this point in the history
add logic
  • Loading branch information
LinaMur authored Sep 12, 2024
2 parents 66677b8 + c1f6f32 commit 5c32616
Show file tree
Hide file tree
Showing 22 changed files with 428 additions and 131 deletions.
2 changes: 1 addition & 1 deletion PyrusServiceDesk.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = 'PyrusServiceDesk'
spec.version = '3.0.30'
spec.version = '3.0.31'
spec.summary = "Create a service with chat with support."
spec.homepage = 'https://pyrus.com'
spec.license = { :type => "MIT", :file => "LICENSE.txt" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>PyrusServiceDesk.framework/PyrusServiceDesk</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>PyrusServiceDesk.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>BinaryPath</key>
<string>PyrusServiceDesk.framework/PyrusServiceDesk</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>PyrusServiceDesk.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 @@ -433,7 +433,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) void (^ _Nullable onAuth
///
/// \param loggingEnabled If true, then the library will write logs, and they can be sent as a file to chat by clicking the “Send Library Logs” button in the menu under the “+” sign.
///
+ (void)createWith:(NSString * _Nullable)clientId domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken;
+ (void)createWith:(NSString * _Nullable)clientId domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken fieldsData:(NSDictionary<NSString *, NSString *> * _Nullable)fieldsData;
/// Init PyrusServiceDesk with new clientId.
/// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created
///
Expand All @@ -443,7 +443,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) void (^ _Nullable onAuth
///
/// \param loggingEnabled If true, then the library will write logs, and they can be sent as a file to chat by clicking the “Send Library Logs” button in the menu under the “+” sign.
///
+ (void)createWith:(NSString * _Nullable)clientId reset:(BOOL)reset domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken;
+ (void)createWith:(NSString * _Nullable)clientId reset:(BOOL)reset domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken fieldsData:(NSDictionary<NSString *, NSString *> * _Nullable)fieldsData;
/// Init PyrusServiceDesk with new clientId.
/// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created
///
Expand All @@ -454,7 +454,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) void (^ _Nullable onAuth
///
/// \param loggingEnabled If true, then the library will write logs, and they can be sent as a file to chat by clicking the “Send Library Logs” button in the menu under the “+” sign.
///
+ (void)createWith:(NSString * _Nullable)clientId userId:(NSString * _Nullable)userId securityKey:(NSString * _Nullable)securityKey domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken;
+ (void)createWith:(NSString * _Nullable)clientId userId:(NSString * _Nullable)userId securityKey:(NSString * _Nullable)securityKey domain:(NSString * _Nullable)domain loggingEnabled:(BOOL)loggingEnabled authorizationToken:(NSString * _Nullable)authorizationToken fieldsData:(NSDictionary<NSString *, NSString *> * _Nullable)fieldsData;
+ (void)refreshOnError:(void (^ _Nullable)(NSError * _Nullable))onError;
/// Scrolls chat to bottom, starts refreshing chat and shows fake message from support is psd is open.
+ (void)refreshFromPushWithMessageId:(NSInteger)messageId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3870,7 +3870,7 @@
{
"kind": "Function",
"name": "createWith",
"printedName": "createWith(_:domain:loggingEnabled:authorizationToken:)",
"printedName": "createWith(_:domain:loggingEnabled:authorizationToken:fieldsData:)",
"children": [
{
"kind": "TypeNominal",
Expand Down Expand Up @@ -3927,11 +3927,40 @@
],
"hasDefaultArg": true,
"usr": "s:Sq"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "[Swift.String : Swift.String]?",
"children": [
{
"kind": "TypeNominal",
"name": "Dictionary",
"printedName": "[Swift.String : Swift.String]",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
},
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:SD"
}
],
"hasDefaultArg": true,
"usr": "s:Sq"
}
],
"declKind": "Func",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:domain:loggingEnabled:authorizationToken:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_6domain14loggingEnabled18authorizationTokenySSSg_AGSbAGtFZ",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:domain:loggingEnabled:authorizationToken:fieldsData:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_6domain14loggingEnabled18authorizationToken10fieldsDataySSSg_AHSbAHSDyS2SGSgtFZ",
"moduleName": "PyrusServiceDesk",
"static": true,
"declAttributes": [
Expand All @@ -3945,7 +3974,7 @@
{
"kind": "Function",
"name": "createWith",
"printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:)",
"printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:fieldsData:)",
"children": [
{
"kind": "TypeNominal",
Expand Down Expand Up @@ -4008,11 +4037,40 @@
],
"hasDefaultArg": true,
"usr": "s:Sq"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "[Swift.String : Swift.String]?",
"children": [
{
"kind": "TypeNominal",
"name": "Dictionary",
"printedName": "[Swift.String : Swift.String]",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
},
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:SD"
}
],
"hasDefaultArg": true,
"usr": "s:Sq"
}
],
"declKind": "Func",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:reset:domain:loggingEnabled:authorizationToken:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_5reset6domain14loggingEnabled18authorizationTokenySSSg_SbAHSbAHtFZ",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:reset:domain:loggingEnabled:authorizationToken:fieldsData:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_5reset6domain14loggingEnabled18authorizationToken10fieldsDataySSSg_SbAISbAISDyS2SGSgtFZ",
"moduleName": "PyrusServiceDesk",
"static": true,
"declAttributes": [
Expand All @@ -4026,7 +4084,7 @@
{
"kind": "Function",
"name": "createWith",
"printedName": "createWith(_:userId:securityKey:domain:loggingEnabled:authorizationToken:)",
"printedName": "createWith(_:userId:securityKey:domain:loggingEnabled:authorizationToken:fieldsData:)",
"children": [
{
"kind": "TypeNominal",
Expand Down Expand Up @@ -4111,11 +4169,40 @@
],
"hasDefaultArg": true,
"usr": "s:Sq"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "[Swift.String : Swift.String]?",
"children": [
{
"kind": "TypeNominal",
"name": "Dictionary",
"printedName": "[Swift.String : Swift.String]",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
},
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:SD"
}
],
"hasDefaultArg": true,
"usr": "s:Sq"
}
],
"declKind": "Func",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:userId:securityKey:domain:loggingEnabled:authorizationToken:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_6userId11securityKey6domain14loggingEnabled18authorizationTokenySSSg_A3ISbAItFZ",
"usr": "c:@M@PyrusServiceDesk@objc(cs)PyrusServiceDesk(cm)createWith:userId:securityKey:domain:loggingEnabled:authorizationToken:fieldsData:",
"mangledName": "$s16PyrusServiceDeskAAC10createWith_6userId11securityKey6domain14loggingEnabled18authorizationToken10fieldsDataySSSg_A3JSbAJSDyS2SGSgtFZ",
"moduleName": "PyrusServiceDesk",
"static": true,
"declAttributes": [
Expand Down Expand Up @@ -4868,28 +4955,35 @@
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/Requests\/PSDMessageSender.swift",
"kind": "StringLiteral",
"offset": 3018,
"offset": 318,
"length": 14,
"value": "\"extra_fields\""
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/Requests\/PSDMessageSender.swift",
"kind": "StringLiteral",
"offset": 3055,
"length": 9,
"value": "\"comment\""
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/Requests\/PSDMessageSender.swift",
"kind": "StringLiteral",
"offset": 3071,
"offset": 3108,
"length": 11,
"value": "\"user_name\""
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/Requests\/PSDMessageSender.swift",
"kind": "StringLiteral",
"offset": 3124,
"offset": 3161,
"length": 8,
"value": "\"ticket\""
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/Requests\/PSDMessageSender.swift",
"kind": "StringLiteral",
"offset": 3179,
"offset": 3216,
"length": 13,
"value": "\"description\""
},
Expand Down Expand Up @@ -7164,42 +7258,42 @@
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "BooleanLiteral",
"offset": 10133,
"offset": 10178,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "BooleanLiteral",
"offset": 11021,
"offset": 11127,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "BooleanLiteral",
"offset": 12041,
"offset": 12208,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "StringLiteral",
"offset": 15173,
"offset": 15481,
"length": 11,
"value": "\"PSDUserId\""
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "BooleanLiteral",
"offset": 15239,
"offset": 15547,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/galinamuraveva\/pyrusservicedesk\/PyrusServiceDeskIOS\/PyrusServiceDesk\/PyrusServiceDeskCreator.swift",
"kind": "StringLiteral",
"offset": 21998,
"offset": 22306,
"length": 19,
"value": "\"Default_User_Name\""
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ public enum VerticalAlignment {
@objc public static func subscribeToReplies(_ subscriber: (any NewReplySubscriber)?)
@objc public static func unsubscribeFromReplies(_ subscriber: (any NewReplySubscriber)?)
@objc public static func subscribeToGogEvents(_ subscriber: any LogEvents)
@objc public static func createWith(_ clientId: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, reset: Swift.Bool, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, userId: Swift.String?, securityKey: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func createWith(_ clientId: Swift.String?, reset: Swift.Bool, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func createWith(_ clientId: Swift.String?, userId: Swift.String?, securityKey: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func refresh(onError: (((any Swift.Error)?) -> Swift.Void)? = nil)
@objc public static func refreshFromPush(messageId: Swift.Int)
@objc public static func present(_ viewController: UIKit.UIViewController, animated: Swift.Bool, completion: (() -> Swift.Void)?)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ public enum VerticalAlignment {
@objc public static func subscribeToReplies(_ subscriber: (any NewReplySubscriber)?)
@objc public static func unsubscribeFromReplies(_ subscriber: (any NewReplySubscriber)?)
@objc public static func subscribeToGogEvents(_ subscriber: any LogEvents)
@objc public static func createWith(_ clientId: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, reset: Swift.Bool, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, userId: Swift.String?, securityKey: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil)
@objc public static func createWith(_ clientId: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func createWith(_ clientId: Swift.String?, reset: Swift.Bool, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func createWith(_ clientId: Swift.String?, userId: Swift.String?, securityKey: Swift.String?, domain: Swift.String? = nil, loggingEnabled: Swift.Bool = false, authorizationToken: Swift.String? = nil, fieldsData: [Swift.String : Swift.String]? = nil)
@objc public static func refresh(onError: (((any Swift.Error)?) -> Swift.Void)? = nil)
@objc public static func refreshFromPush(messageId: Swift.Int)
@objc public static func present(_ viewController: UIKit.UIViewController, animated: Swift.Bool, completion: (() -> Swift.Void)?)
Expand Down
Binary file not shown.
Loading

0 comments on commit 5c32616

Please sign in to comment.