diff --git a/PyrusServiceDesk.podspec b/PyrusServiceDesk.podspec index b57db16f..086b4144 100644 --- a/PyrusServiceDesk.podspec +++ b/PyrusServiceDesk.podspec @@ -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" } diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/Info.plist b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/Info.plist index 7783b085..ced0cb1d 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/Info.plist +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/Info.plist @@ -8,32 +8,32 @@ BinaryPath PyrusServiceDesk.framework/PyrusServiceDesk LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath PyrusServiceDesk.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator BinaryPath PyrusServiceDesk.framework/PyrusServiceDesk LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath PyrusServiceDesk.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h index 2784fdd5..0f768935 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h @@ -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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -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 * _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; diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.abi.json b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.abi.json index 60dfeb8c..8484426f 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.abi.json +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.abi.json @@ -3870,7 +3870,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -3945,7 +3974,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -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", @@ -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": [ @@ -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\"" }, @@ -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\"" }, diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.private.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.private.swiftinterface index 9ac81f20..75697c0c 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.private.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.private.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftdoc b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftdoc index f226bf57..3c88c17e 100644 Binary files a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftdoc and b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftinterface index 9ac81f20..75697c0c 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/PyrusServiceDesk b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/PyrusServiceDesk index 9e5d7d57..b262ac28 100755 Binary files a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/PyrusServiceDesk and b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64/PyrusServiceDesk.framework/PyrusServiceDesk differ diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h index f1420efe..0d40a7b1 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Headers/PyrusServiceDesk-Swift.h @@ -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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -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 * _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; @@ -991,7 +991,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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -1001,7 +1001,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 * _Nullable)fieldsData; /// Init PyrusServiceDesk with new clientId. /// \param clientId clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created /// @@ -1012,7 +1012,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 * _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; diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.abi.json b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.abi.json index 60dfeb8c..8484426f 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.abi.json +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.abi.json @@ -3870,7 +3870,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -3945,7 +3974,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -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", @@ -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": [ @@ -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\"" }, @@ -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\"" }, diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface index 2ef13978..3cb43639 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc index be570b65..91c68c84 100644 Binary files a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 2ef13978..3cb43639 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json index 60dfeb8c..8484426f 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json @@ -3870,7 +3870,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -3945,7 +3974,7 @@ { "kind": "Function", "name": "createWith", - "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:)", + "printedName": "createWith(_:reset:domain:loggingEnabled:authorizationToken:fieldsData:)", "children": [ { "kind": "TypeNominal", @@ -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": [ @@ -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", @@ -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": [ @@ -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\"" }, @@ -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\"" }, diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface index c6ed3c8a..f90146d2 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index f18052c5..0340297a 100644 Binary files a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index c6ed3c8a..f90146d2 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -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)?) diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/PyrusServiceDesk b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/PyrusServiceDesk index ec0ecd2e..dbbdfd6b 100755 Binary files a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/PyrusServiceDesk and b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/PyrusServiceDesk differ diff --git a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/_CodeSignature/CodeResources b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/_CodeSignature/CodeResources index 5420520a..b312a204 100644 --- a/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/_CodeSignature/CodeResources +++ b/PyrusServiceDeskIOS/Framework/PyrusServiceDesk.xcframework/ios-arm64_x86_64-simulator/PyrusServiceDesk.framework/_CodeSignature/CodeResources @@ -66,7 +66,7 @@ Headers/PyrusServiceDesk-Swift.h - Oa+1wbyc44zrUxpoEJQBsr+3DPs= + ZSFEFQrCeizqnGn2tKOW1T3LwEc= Headers/PyrusServiceDesk.h @@ -78,43 +78,43 @@ Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.abi.json - Anoi9P87fIJolgQh6YeNs9xDrJc= + eCLh7EghFzbI5HVDvxwP87a+CVM= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - 1gdNTiXjOmep4ZZKZDpzwq6uiPI= + 5dM68isKkyJ2sZge3GXIVShrx4E= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc - +91Kmg1JKwPLQgFnD76gfS5iNbg= + H+XqFEGcupt8lSS5LBAr43FFgRw= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface - 1gdNTiXjOmep4ZZKZDpzwq6uiPI= + 5dM68isKkyJ2sZge3GXIVShrx4E= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftmodule - DoYe++tys6e9lYBLCGz1x+9m77U= + dhJKv/N0TM6GIXC/0UMEyyy/UWA= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json - Anoi9P87fIJolgQh6YeNs9xDrJc= + eCLh7EghFzbI5HVDvxwP87a+CVM= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - CjtjqAt28seAi53/pM27+QV9Tws= + RQ4LSalSFpskpkCYMy+dMD25FwI= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - V0fPyrxI8AMXGkriPtTWmQvcQkY= + gqzQGe39H/hiJAFdHSpbqPtjiqc= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - CjtjqAt28seAi53/pM27+QV9Tws= + RQ4LSalSFpskpkCYMy+dMD25FwI= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - jtSVcphUgLsBLQJWv40dtPyw9Xo= + mXg5go0MOgV37q0wrQEuLTenHcs= Modules/module.modulemap @@ -883,11 +883,11 @@ hash - Oa+1wbyc44zrUxpoEJQBsr+3DPs= + ZSFEFQrCeizqnGn2tKOW1T3LwEc= hash2 - rq74fwRQoEDg3ueKgus0VdjPiynoOYAliQg1IHSoxxw= + JB2Ioqs9ArL8hZO30+U4boCoySVD2N65xBz+OrTPQys= Headers/PyrusServiceDesk.h @@ -905,110 +905,110 @@ hash - Anoi9P87fIJolgQh6YeNs9xDrJc= + eCLh7EghFzbI5HVDvxwP87a+CVM= hash2 - ioxYwgUVTT3S/5WSWdTBOGviI/1faUsL2Ytbg8kaxIA= + qivsei9DKCO7hdJbnYJnCEO5COxQOy8bdBS+J4uNtjY= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface hash - 1gdNTiXjOmep4ZZKZDpzwq6uiPI= + 5dM68isKkyJ2sZge3GXIVShrx4E= hash2 - YF7QAz4QQs+7nqAwzHoMuiQB7p3e2rdzaS4gLJJN5VU= + pMHWP00o+tDsacZwqhuT+7CUj1SeAHuL7NUkGHvNqrw= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftdoc hash - +91Kmg1JKwPLQgFnD76gfS5iNbg= + H+XqFEGcupt8lSS5LBAr43FFgRw= hash2 - HnCTBNMLmSmRWHhBlVx9YkauXcwSPgiTKHXddZS2JSg= + 90JJKx2rSu3/8lyAirHORj8fHEKd0ihW/Fm2V6eOzX8= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash - 1gdNTiXjOmep4ZZKZDpzwq6uiPI= + 5dM68isKkyJ2sZge3GXIVShrx4E= hash2 - YF7QAz4QQs+7nqAwzHoMuiQB7p3e2rdzaS4gLJJN5VU= + pMHWP00o+tDsacZwqhuT+7CUj1SeAHuL7NUkGHvNqrw= Modules/PyrusServiceDesk.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash - DoYe++tys6e9lYBLCGz1x+9m77U= + dhJKv/N0TM6GIXC/0UMEyyy/UWA= hash2 - DDBLKC3QKQ/7RSpase2XkGc+F2u89beQX6wjjIiLMRw= + cacYaX0YnzEiK6mMk05nS1n294Js3naY+eKr2YK4soQ= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.abi.json hash - Anoi9P87fIJolgQh6YeNs9xDrJc= + eCLh7EghFzbI5HVDvxwP87a+CVM= hash2 - ioxYwgUVTT3S/5WSWdTBOGviI/1faUsL2Ytbg8kaxIA= + qivsei9DKCO7hdJbnYJnCEO5COxQOy8bdBS+J4uNtjY= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface hash - CjtjqAt28seAi53/pM27+QV9Tws= + RQ4LSalSFpskpkCYMy+dMD25FwI= hash2 - sIpcTLssBSoukwG7FKuBy2NH0Y1j+EL/0hLc2odYcUs= + nq1ppNjHOpCEyLUq7j597xZsIKnf4cXOto14ziNiTP8= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash - V0fPyrxI8AMXGkriPtTWmQvcQkY= + gqzQGe39H/hiJAFdHSpbqPtjiqc= hash2 - ZekZwKPAA3opTWW7hxme1tF1uxUEhGN4Ooi6FROUg20= + sKXin/u8FMGCyZgm4j5x7zdTJVxKMuuGeW/9wiA4xZ4= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash - CjtjqAt28seAi53/pM27+QV9Tws= + RQ4LSalSFpskpkCYMy+dMD25FwI= hash2 - sIpcTLssBSoukwG7FKuBy2NH0Y1j+EL/0hLc2odYcUs= + nq1ppNjHOpCEyLUq7j597xZsIKnf4cXOto14ziNiTP8= Modules/PyrusServiceDesk.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash - jtSVcphUgLsBLQJWv40dtPyw9Xo= + mXg5go0MOgV37q0wrQEuLTenHcs= hash2 - GhakxxX+O+v/OfY87ptON+lLwRQxNXTH1Nf86pXSL8Y= + /bOakVsRx6WSfOTMJ84ZLgEvZMeFw+DMVTKlJPQd/fQ= Modules/module.modulemap diff --git a/PyrusServiceDeskIOS/PyrusServiceDesk.xcodeproj/xcuserdata/kirilllybov.xcuserdatad/xcschemes/xcschememanagement.plist b/PyrusServiceDeskIOS/PyrusServiceDesk.xcodeproj/xcuserdata/kirilllybov.xcuserdatad/xcschemes/xcschememanagement.plist index 65e4a7b0..5ab410c9 100644 --- a/PyrusServiceDeskIOS/PyrusServiceDesk.xcodeproj/xcuserdata/kirilllybov.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/PyrusServiceDeskIOS/PyrusServiceDesk.xcodeproj/xcuserdata/kirilllybov.xcuserdatad/xcschemes/xcschememanagement.plist @@ -14,6 +14,16 @@ orderHint 0 + PyrusServiceDeskIOS.xcscheme_^#shared#^_ + + orderHint + 2 + + PyrusServiceDeskTests.xcscheme_^#shared#^_ + + orderHint + 3 + Testc.xcscheme_^#shared#^_ orderHint diff --git a/PyrusServiceDeskIOS/PyrusServiceDesk/PyrusServiceDeskCreator.swift b/PyrusServiceDeskIOS/PyrusServiceDesk/PyrusServiceDeskCreator.swift index 219b5f27..8b673d7c 100644 --- a/PyrusServiceDeskIOS/PyrusServiceDesk/PyrusServiceDeskCreator.swift +++ b/PyrusServiceDeskIOS/PyrusServiceDesk/PyrusServiceDeskCreator.swift @@ -179,12 +179,13 @@ import UIKit static var securityKey: String? static var loggingEnabled: Bool = false + static var fieldsData: [String: String]? ///Init PyrusServiceDesk with new clientId. ///- parameter clientId: clientId using for all requests. If clientId not setted PyrusServiceDesk Controller will not be created ///- parameter domain: Base domain for network requests. If the [domain] is null, the default pyrus.com will be used. ///- parameter 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. - @objc static public func createWith(_ clientId: String?, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil) { - createWith(clientId, userId: nil, securityKey: nil, reset: false, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken) + @objc static public func createWith(_ clientId: String?, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil, fieldsData: [String: String]? = nil) { + createWith(clientId, userId: nil, securityKey: nil, reset: false, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken, fieldsData: fieldsData) } ///Init PyrusServiceDesk with new clientId. @@ -192,8 +193,8 @@ import UIKit ///- parameter reset: If true, user will be reseted ///- parameter domain: Base domain for network requests. If the [domain] is null, the default pyrus.com will be used. ///- parameter 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. - @objc static public func createWith(_ clientId: String?, reset: Bool, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil) { - createWith(clientId, userId: nil, securityKey: nil, reset: reset, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken) + @objc static public func createWith(_ clientId: String?, reset: Bool, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil, fieldsData: [String: String]? = nil) { + createWith(clientId, userId: nil, securityKey: nil, reset: reset, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken, fieldsData: fieldsData) } ///Init PyrusServiceDesk with new clientId. @@ -202,10 +203,10 @@ import UIKit ///- parameter securityKey: security key of the user for safe initialization //////- parameter domain: Base domain for network requests. If the [domain] is null, the default pyrus.com will be used. ///- parameter 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. - @objc static public func createWith(_ clientId: String?, userId: String?, securityKey: String?, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil) { - createWith(clientId, userId: userId, securityKey: securityKey, reset: false, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken) + @objc static public func createWith(_ clientId: String?, userId: String?, securityKey: String?, domain: String? = nil, loggingEnabled: Bool = false, authorizationToken: String? = nil, fieldsData: [String: String]? = nil) { + createWith(clientId, userId: userId, securityKey: securityKey, reset: false, domain: domain, loggingEnabled: loggingEnabled, authorizationToken: authorizationToken, fieldsData: fieldsData) } - private static func createWith(_ clientId: String?, userId: String?, securityKey: String?, reset: Bool, domain: String?, loggingEnabled: Bool, authorizationToken: String?) { + private static func createWith(_ clientId: String?, userId: String?, securityKey: String?, reset: Bool, domain: String?, loggingEnabled: Bool, authorizationToken: String?, fieldsData: [String: String]?) { PyrusServiceDesk.loggingEnabled = loggingEnabled guard let clientId = clientId, clientId.count > 0 else { EventsLogger.logEvent(.emptyClientId) @@ -225,6 +226,7 @@ import UIKit PyrusServiceDesk.customUserId = userId PyrusServiceDesk.createUserId(reset) PyrusServiceDesk.authorizationToken = authorizationToken + PyrusServiceDesk.fieldsData = fieldsData lastSetPushToken = nil if needReloadUI { PyrusServiceDesk.mainController?.updateTitleChat() diff --git a/PyrusServiceDeskIOS/PyrusServiceDesk/Requests/PSDMessageSender.swift b/PyrusServiceDeskIOS/PyrusServiceDesk/Requests/PSDMessageSender.swift index df99578a..1209a160 100644 --- a/PyrusServiceDeskIOS/PyrusServiceDesk/Requests/PSDMessageSender.swift +++ b/PyrusServiceDeskIOS/PyrusServiceDesk/Requests/PSDMessageSender.swift @@ -8,7 +8,7 @@ let createdAtParameter = "created_at" let attachmentsParameter = "attachments" let guidParameter = "guid" let CLIENT_ID_KEY = "client_id" - +let EXTRA_FIELDS_KEY = "extra_fields" class PSDMessageSender: NSObject { /** @@ -91,6 +91,9 @@ class PSDMessageSender: NSObject { if let attachments = attachments, attachments.count > 0{ parameters[attachmentsParameter] = generateAttacments(attachments) } + if let fieldsData = PyrusServiceDesk.fieldsData { + parameters[EXTRA_FIELDS_KEY] = fieldsData + } let request = URLRequest.createRequest(type:.updateFeed, parameters: parameters) let task = PyrusServiceDesk.mainSession.dataTask(with: request) { data, response, error in